deepline 0.3.502 → 0.3.504
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 +26 -0
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +9 -0
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +35 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +13 -0
- package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +0 -8
- package/dist/bundling-sources/shared_libs/observability/dlq.ts +174 -0
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +20 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +62 -2
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +667 -62
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +55 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +20 -2
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +46 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execution-gateway-invocation-fence.ts +80 -4
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-egress-fetch.ts +95 -0
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +292 -45
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +7 -3
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +31 -1
- package/dist/bundling-sources/shared_libs/play-runtime/post-code-recovery-policy.ts +231 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ending-event.ts +55 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +126 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +38 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +2 -9
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +51 -19
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/local-process.ts +9 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +12 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +42 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +26 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +53 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +631 -19
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-inventory.ts +719 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +206 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/latest-cache-result.ts +83 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1432 -157
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +61 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +29 -8
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-queue-health.ts +27 -2
- package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +45 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +129 -14
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +10 -1
- package/dist/cli/{auth-EFHLOVG4.mjs → auth-3L5AA5AX.mjs} +5 -5
- package/dist/cli/auth-UPK4IIIN.js +43 -0
- package/dist/cli/{billing-Q5XKEYPP.mjs → billing-E7EASVPO.mjs} +19 -12
- package/dist/cli/{billing-SKT2VE34.js → billing-HOGXVE2V.js} +92 -85
- package/dist/cli/{chunk-L5CTJY74.mjs → chunk-22OCKCYS.mjs} +2 -2
- package/dist/cli/{chunk-YWOQYYYS.mjs → chunk-2ABRDH3B.mjs} +2 -2
- package/dist/cli/{chunk-IL666WJE.js → chunk-2W77YCKH.js} +5 -5
- package/dist/cli/{chunk-2MVIS2UI.mjs → chunk-3MLFFWDM.mjs} +2 -2
- package/dist/cli/{chunk-HMZF2CSP.mjs → chunk-4CC67XH5.mjs} +2 -2
- package/dist/cli/{chunk-NXVYLX3F.mjs → chunk-5CHBIJIM.mjs} +10 -6
- package/dist/cli/chunk-5LUF4LAR.mjs +209 -0
- package/dist/cli/{chunk-JL6H4H3G.js → chunk-5Z6EULD5.js} +6 -6
- package/dist/cli/{chunk-32YQBJON.js → chunk-67OI26OE.js} +7 -7
- package/dist/cli/{chunk-LA3UYRVZ.js → chunk-6JNBMTCZ.js} +1 -1
- package/dist/cli/{chunk-DYHTXGLX.js → chunk-6SMR7LU7.js} +2 -2
- package/dist/cli/{chunk-OFBLT2LQ.mjs → chunk-7F4OEHQK.mjs} +1 -1
- package/dist/cli/{chunk-DRBD4IYQ.mjs → chunk-7MJYZ33I.mjs} +2 -6
- package/dist/cli/{chunk-UOANF3DR.js → chunk-7P2QVMBP.js} +26 -7
- package/dist/cli/{chunk-GINKIZ7S.js → chunk-A6LA42JY.js} +16 -16
- package/dist/cli/{chunk-FVM4PS5Q.js → chunk-BN5VKY4X.js} +25 -12
- package/dist/cli/{chunk-Z2H7OQ6E.mjs → chunk-BTWUNKKX.mjs} +2 -2
- package/dist/cli/{chunk-R5F7JXT4.mjs → chunk-BX45XMXZ.mjs} +2 -2
- package/dist/cli/{chunk-NKLM4J4X.mjs → chunk-DEAJVQEG.mjs} +1 -1
- package/dist/cli/{chunk-JFBJLNBI.js → chunk-FISP4LCK.js} +53 -53
- package/dist/cli/{chunk-OEUMXKR5.js → chunk-FTRVCIGC.js} +26 -26
- package/dist/cli/{chunk-YL2CCF6T.mjs → chunk-GGBXNQCR.mjs} +4 -4
- package/dist/cli/{chunk-YPTZJ7LO.js → chunk-GJ2DA35C.js} +100 -17
- package/dist/cli/{chunk-2S2F6YSI.js → chunk-GRAGUYIE.js} +41 -41
- package/dist/cli/{chunk-2JS3H6H6.mjs → chunk-HUX5DZO6.mjs} +3 -3
- package/dist/cli/{chunk-4CCMD7QM.mjs → chunk-IGNQKOWT.mjs} +32 -15
- package/dist/cli/{chunk-WKFAX2K7.js → chunk-IPAMOMGP.js} +21 -21
- package/dist/cli/{chunk-SAW3FBCA.mjs → chunk-ITJ7NB2D.mjs} +6 -0
- package/dist/cli/{chunk-Q3NM6ZL3.js → chunk-JPR2546F.js} +23 -21
- package/dist/cli/{chunk-X5MGQ7UT.js → chunk-KCKAFTPY.js} +10 -10
- package/dist/cli/{chunk-TAK3MVXY.js → chunk-KGUGNEKL.js} +284 -267
- package/dist/cli/{chunk-OVZOMSH2.js → chunk-LHXYCZYO.js} +8 -8
- package/dist/cli/{chunk-QOJBRCAS.js → chunk-MJTK6Q3G.js} +3 -3
- package/dist/cli/{chunk-MYUISF3P.mjs → chunk-MLMWM5DV.mjs} +5 -5
- package/dist/cli/{chunk-JO5FFSR7.js → chunk-NTLBZUHD.js} +6 -0
- package/dist/cli/{chunk-MP5QY4A2.mjs → chunk-NZ7Z7WNM.mjs} +2 -2
- package/dist/cli/{chunk-HIVRCTDR.mjs → chunk-OX2D6BG4.mjs} +20 -1
- package/dist/cli/{chunk-YDXEXVBV.js → chunk-QKKU2FH4.js} +7 -7
- package/dist/cli/{chunk-3KEZVGGV.mjs → chunk-QOLX2O2S.mjs} +4 -4
- package/dist/cli/{chunk-JFUXUSKB.mjs → chunk-R2VZVHJP.mjs} +15 -2
- package/dist/cli/chunk-R7J7CJPZ.js +209 -0
- package/dist/cli/{chunk-XMKUJ44Z.js → chunk-SMSQVRHE.js} +5 -5
- package/dist/cli/{chunk-54QXWK3C.mjs → chunk-SVFTZTCI.mjs} +1 -1
- package/dist/cli/{chunk-FWDAEWCD.js → chunk-TMQUMILM.js} +19 -23
- package/dist/cli/{chunk-TFFJ2PRN.mjs → chunk-UFYJTRSF.mjs} +98 -15
- package/dist/cli/{chunk-EUWRKWT4.js → chunk-UJMBG5JU.js} +5 -4
- package/dist/cli/{chunk-DKAMCJIT.js → chunk-USTJEEND.js} +17 -13
- package/dist/cli/{chunk-AJL2Q6IQ.js → chunk-UXQQPMYO.js} +2 -2
- package/dist/cli/{chunk-7ZYSXSJJ.mjs → chunk-VJVJWZ6I.mjs} +5 -5
- package/dist/cli/{chunk-JLYDLK6X.js → chunk-WBIDPDKJ.js} +3 -3
- package/dist/cli/{chunk-QNELA7SX.js → chunk-WZSFIJMG.js} +53 -53
- package/dist/cli/{chunk-NZXB27TP.mjs → chunk-XHZSPMNC.mjs} +4 -4
- package/dist/cli/{chunk-W5CHE5Q2.mjs → chunk-Y6XKCEPK.mjs} +1 -1
- package/dist/cli/{chunk-4WTC5SSN.mjs → chunk-Y7VEHKID.mjs} +10 -8
- package/dist/cli/{chunk-3MJSWVQ2.mjs → chunk-YOQ2NNDO.mjs} +2 -1
- package/dist/cli/{chunk-ZNB6GR3P.mjs → chunk-Z6FXUDIL.mjs} +1 -1
- package/dist/cli/command-docs.d.mts +2 -1
- package/dist/cli/command-docs.d.ts +2 -1
- package/dist/cli/command-docs.js +6 -2
- package/dist/cli/command-docs.mjs +5 -1
- package/dist/cli/{csv-OXGSCV75.js → csv-2XWGPITO.js} +13 -13
- package/dist/cli/{csv-6AEPKKCO.mjs → csv-433JEHLQ.mjs} +4 -4
- package/dist/cli/{db-K3KRK4CZ.mjs → db-K747DH43.mjs} +6 -6
- package/dist/cli/{db-6NVHDUZY.js → db-PJJMD4VH.js} +27 -27
- package/dist/cli/describe-OYS7LZJD.js +49 -0
- package/dist/cli/{describe-P3ZJS7TQ.mjs → describe-VEDDYW4P.mjs} +20 -20
- package/dist/cli/describe-core.d.mts +8 -4
- package/dist/cli/describe-core.d.ts +8 -4
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-2C2FFG52.js → executions-HM5T72H6.js} +8 -8
- package/dist/cli/{executions-I7XW6WWK.mjs → executions-JWRX3XCT.mjs} +6 -6
- package/dist/cli/{feedback-47B57A5Y.js → feedback-34UG4BO3.js} +8 -8
- package/dist/cli/{feedback-RSTNBJAI.mjs → feedback-MNSIA63Y.mjs} +4 -4
- package/dist/cli/git-5YQJSJFR.js +25 -0
- package/dist/cli/{git-3G5AFKBT.mjs → git-ZKEOXV3A.mjs} +5 -5
- package/dist/cli/index.js +144 -142
- package/dist/cli/index.mjs +44 -42
- package/dist/cli/{legacy-noops-NQ262TKL.mjs → legacy-noops-5M4T4ZVT.mjs} +5 -5
- package/dist/cli/{legacy-noops-P665PBG4.js → legacy-noops-YXSI4FVU.js} +8 -8
- package/dist/cli/{monitors-KUPZODZS.mjs → monitors-C65OC4AW.mjs} +7 -7
- package/dist/cli/{monitors-IPWAD7LS.js → monitors-O25GDOYE.js} +95 -95
- package/dist/cli/{org-WFC3N672.js → org-2GSPLY2A.js} +72 -72
- package/dist/cli/{org-ZCQGEM3L.mjs → org-ZRMG5NS2.mjs} +6 -6
- package/dist/cli/{pages-N5BNC67L.js → pages-45DPADK6.js} +18 -18
- package/dist/cli/{pages-VE66IU7B.mjs → pages-TZZUFBRO.mjs} +6 -6
- package/dist/cli/{play-EIMDIAJB.mjs → play-3D7HH273.mjs} +138 -226
- package/dist/cli/{play-NKIRJSKX.js → play-RCGMND6X.js} +454 -542
- package/dist/cli/{providers-XU3AGY2F.js → providers-3N3ECMTY.js} +9 -9
- package/dist/cli/{providers-KDTJ63ED.mjs → providers-PSAKV6CJ.mjs} +6 -6
- package/dist/cli/{quickstart-TXFXUODF.mjs → quickstart-2A35SMGC.mjs} +4 -4
- package/dist/cli/{quickstart-OSCHOSXU.js → quickstart-6R6AIXM6.js} +6 -6
- package/dist/cli/{run-ODGML35U.mjs → run-F3TLDGUO.mjs} +25 -25
- package/dist/cli/{run-ET2KVTPK.js → run-F6ZXTASZ.js} +44 -44
- package/dist/cli/{search-DK67K6PR.mjs → search-CZLCY3D2.mjs} +7 -7
- package/dist/cli/search-R5VEWJO2.js +32 -0
- package/dist/cli/{search-output-6SOKQTCW.mjs → search-output-MQTSTLN5.mjs} +5 -5
- package/dist/cli/{search-output-KXP4FA62.js → search-output-R5XDNILW.js} +7 -7
- package/dist/cli/{secrets-C6SYTMU7.mjs → secrets-D3GF4B2Z.mjs} +6 -6
- package/dist/cli/{secrets-WPS6NMNK.js → secrets-DCJYHDSY.js} +15 -15
- package/dist/cli/{sessions-PXVOH34X.mjs → sessions-QGEQ2UYZ.mjs} +5 -5
- package/dist/cli/{sessions-IP562J5Z.js → sessions-Z4JYJSDP.js} +6 -6
- package/dist/cli/{settings-FBUQGYVJ.mjs → settings-G7QEXA4N.mjs} +11 -11
- package/dist/cli/{settings-SUDUIVMY.js → settings-UVXXAT4A.js} +78 -78
- package/dist/cli/{setup-I5H6IOEY.js → setup-5I42W7D4.js} +49 -49
- package/dist/cli/{setup-JSIMTR73.mjs → setup-QHJU3DUI.mjs} +9 -9
- package/dist/cli/{skills-FJQ3LX6N.mjs → skills-5LRF4UKX.mjs} +7 -7
- package/dist/cli/skills-FB6TV52O.js +36 -0
- package/dist/cli/tools-L2364RPA.js +56 -0
- package/dist/cli/{tools-IGBK4BVE.mjs → tools-PUT6STVG.mjs} +18 -18
- package/dist/cli/{update-7MTT6F5K.mjs → update-CJ2GA64X.mjs} +9 -9
- package/dist/cli/update-ESYJGYVZ.js +34 -0
- package/dist/cli/{workflow-PM2J2OU3.mjs → workflow-HVEWRTXD.mjs} +7 -7
- package/dist/cli/{workflow-UX3ZX6BQ.js → workflow-O67MEBCP.js} +17 -17
- package/dist/{client-Bn8FwKGO.d.ts → client-CIwenMFS.d.ts} +1 -1
- package/dist/{client-CfNRmjLK.d.mts → client-DYAfJpaN.d.mts} +1 -1
- package/dist/{client-core-B91EV0WS.d.ts → client-core-CRjtyMAI.d.ts} +25 -2
- package/dist/{client-core-BG8Cgrmk.d.mts → client-core-DlzP8vEs.d.mts} +25 -2
- package/dist/{compiler-manifest-DlXDyndN.d.mts → compiler-manifest-DaJrA2KV.d.mts} +1 -1
- package/dist/{compiler-manifest-DlXDyndN.d.ts → compiler-manifest-DaJrA2KV.d.ts} +1 -1
- package/dist/{errors-BtriA2ld.d.mts → errors-BKnSYueU.d.mts} +1 -1
- package/dist/{errors-DmcLykM7.d.ts → errors-KLga4bLr.d.ts} +1 -1
- package/dist/{index-DI0sR_fX.d.mts → index-C-8AFpWy.d.mts} +1 -1
- package/dist/{index--Jw-slHY.d.ts → index-C5nAZ-VS.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +125 -116
- 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 +12 -5
- 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/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 +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-VM3IKP5F.js +0 -43
- package/dist/cli/describe-JOUAXXPE.js +0 -49
- package/dist/cli/git-OPKIC6JQ.js +0 -25
- package/dist/cli/search-6U54Y3OK.js +0 -32
- package/dist/cli/skills-VHININXC.js +0 -36
- package/dist/cli/tools-XMBMHVKF.js +0 -56
- package/dist/cli/update-H7JVW43I.js +0 -34
package/dist/cli/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk5Z6EULD5js = require('./chunk-5Z6EULD5.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
@@ -10,17 +10,17 @@ var _chunkJL6H4H3Gjs = require('./chunk-JL6H4H3G.js');
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkIPAMOMGPjs = require('./chunk-IPAMOMGP.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
21
|
-
require('./chunk-
|
|
22
|
-
require('./chunk-
|
|
23
|
-
require('./chunk-
|
|
20
|
+
var _chunkUXQQPMYOjs = require('./chunk-UXQQPMYO.js');
|
|
21
|
+
require('./chunk-A6LA42JY.js');
|
|
22
|
+
require('./chunk-6SMR7LU7.js');
|
|
23
|
+
require('./chunk-GRAGUYIE.js');
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
@@ -38,15 +38,17 @@ require('./chunk-2S2F6YSI.js');
|
|
|
38
38
|
|
|
39
39
|
|
|
40
40
|
|
|
41
|
-
var
|
|
41
|
+
var _chunkWZSFIJMGjs = require('./chunk-WZSFIJMG.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkMJTK6Q3Gjs = require('./chunk-MJTK6Q3G.js');
|
|
45
45
|
|
|
46
46
|
|
|
47
47
|
|
|
48
48
|
|
|
49
|
-
var
|
|
49
|
+
var _chunkGJ2DA35Cjs = require('./chunk-GJ2DA35C.js');
|
|
50
|
+
require('./chunk-R7J7CJPZ.js');
|
|
51
|
+
require('./chunk-YGCKMI5P.js');
|
|
50
52
|
|
|
51
53
|
|
|
52
54
|
|
|
@@ -59,7 +61,7 @@ var _chunkYPTZJ7LOjs = require('./chunk-YPTZJ7LO.js');
|
|
|
59
61
|
|
|
60
62
|
|
|
61
63
|
|
|
62
|
-
var
|
|
64
|
+
var _chunkQKKU2FH4js = require('./chunk-QKKU2FH4.js');
|
|
63
65
|
|
|
64
66
|
|
|
65
67
|
|
|
@@ -67,18 +69,18 @@ var _chunkYDXEXVBVjs = require('./chunk-YDXEXVBV.js');
|
|
|
67
69
|
|
|
68
70
|
|
|
69
71
|
|
|
70
|
-
var
|
|
72
|
+
var _chunkWBIDPDKJjs = require('./chunk-WBIDPDKJ.js');
|
|
71
73
|
|
|
72
74
|
|
|
73
75
|
|
|
74
76
|
|
|
75
|
-
var
|
|
77
|
+
var _chunkUJMBG5JUjs = require('./chunk-UJMBG5JU.js');
|
|
76
78
|
|
|
77
79
|
|
|
78
80
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
79
81
|
require('./chunk-XNYIZMNQ.js');
|
|
80
82
|
require('./chunk-DIAWYWT5.js');
|
|
81
|
-
require('./chunk-
|
|
83
|
+
require('./chunk-6JNBMTCZ.js');
|
|
82
84
|
require('./chunk-OG64RBAC.js');
|
|
83
85
|
require('./chunk-RLX5ZFNX.js');
|
|
84
86
|
require('./chunk-COGTRVWW.js');
|
|
@@ -159,56 +161,56 @@ var _os = require('os');
|
|
|
159
161
|
var COMMAND_GROUPS = [
|
|
160
162
|
{
|
|
161
163
|
names: ["auth"],
|
|
162
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
164
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-UPK4IIIN.js")))).registerAuthCommands
|
|
163
165
|
},
|
|
164
166
|
{
|
|
165
167
|
names: ["providers"],
|
|
166
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-
|
|
168
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-3N3ECMTY.js")))).registerProviderCommands
|
|
167
169
|
},
|
|
168
170
|
{
|
|
169
171
|
names: ["search"],
|
|
170
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-
|
|
172
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-R5VEWJO2.js")))).registerSearchCommand
|
|
171
173
|
},
|
|
172
174
|
{
|
|
173
175
|
names: ["describe"],
|
|
174
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-
|
|
176
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-OYS7LZJD.js")))).registerDescribeCommand
|
|
175
177
|
},
|
|
176
178
|
{
|
|
177
179
|
names: ["run"],
|
|
178
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-
|
|
180
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./run-F6ZXTASZ.js")))).registerRunCommand
|
|
179
181
|
},
|
|
180
182
|
{
|
|
181
183
|
names: ["tools"],
|
|
182
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
184
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-L2364RPA.js")))).registerToolsCommands
|
|
183
185
|
},
|
|
184
186
|
{
|
|
185
187
|
names: ["executions"],
|
|
186
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-
|
|
188
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-HM5T72H6.js")))).registerExecutionsCommands
|
|
187
189
|
},
|
|
188
190
|
{
|
|
189
191
|
names: ["plays", "runs"],
|
|
190
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
192
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-RCGMND6X.js")))).registerPlayCommands
|
|
191
193
|
},
|
|
192
194
|
{
|
|
193
195
|
names: ["sessions"],
|
|
194
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-
|
|
196
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-Z4JYJSDP.js")))).registerSessionsCommands
|
|
195
197
|
},
|
|
196
198
|
{
|
|
197
199
|
names: ["workflows"],
|
|
198
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-
|
|
200
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-O67MEBCP.js")))).registerWorkflowCommands
|
|
199
201
|
},
|
|
200
202
|
{
|
|
201
203
|
names: ["pages"],
|
|
202
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-
|
|
204
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./pages-45DPADK6.js")))).registerPagesCommands
|
|
203
205
|
},
|
|
204
206
|
{
|
|
205
207
|
names: ["secrets"],
|
|
206
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-
|
|
208
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-DCJYHDSY.js")))).registerSecretsCommands
|
|
207
209
|
},
|
|
208
210
|
{
|
|
209
211
|
names: ["settings", "notifications"],
|
|
210
212
|
load: async () => {
|
|
211
|
-
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-
|
|
213
|
+
const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-UVXXAT4A.js")));
|
|
212
214
|
return (p) => {
|
|
213
215
|
commands.registerSettingsCommands(p);
|
|
214
216
|
commands.registerNotificationCommands(p);
|
|
@@ -217,51 +219,51 @@ var COMMAND_GROUPS = [
|
|
|
217
219
|
},
|
|
218
220
|
{
|
|
219
221
|
names: ["billing"],
|
|
220
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-
|
|
222
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-HOGXVE2V.js")))).registerBillingCommands
|
|
221
223
|
},
|
|
222
224
|
{
|
|
223
225
|
names: ["monitors"],
|
|
224
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-
|
|
226
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-O25GDOYE.js")))).registerMonitorsCommands
|
|
225
227
|
},
|
|
226
228
|
{
|
|
227
229
|
names: ["org"],
|
|
228
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-
|
|
230
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-2GSPLY2A.js")))).registerOrgCommands
|
|
229
231
|
},
|
|
230
232
|
{
|
|
231
233
|
names: ["git", "projects", "deployments"],
|
|
232
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-
|
|
234
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-5YQJSJFR.js")))).registerGitCommands
|
|
233
235
|
},
|
|
234
236
|
{
|
|
235
237
|
names: ["csv"],
|
|
236
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-
|
|
238
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-2XWGPITO.js")))).registerCsvCommands
|
|
237
239
|
},
|
|
238
240
|
{
|
|
239
241
|
names: ["db"],
|
|
240
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-
|
|
242
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-PJJMD4VH.js")))).registerDbCommands
|
|
241
243
|
},
|
|
242
244
|
{
|
|
243
245
|
names: ["feedback"],
|
|
244
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-
|
|
246
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-34UG4BO3.js")))).registerFeedbackCommands
|
|
245
247
|
},
|
|
246
248
|
{
|
|
247
249
|
names: ["enrich", "session", "backend"],
|
|
248
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-
|
|
250
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-YXSI4FVU.js")))).registerDeprecatedCommands
|
|
249
251
|
},
|
|
250
252
|
{
|
|
251
253
|
names: ["update"],
|
|
252
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-
|
|
254
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-ESYJGYVZ.js")))).registerUpdateCommand
|
|
253
255
|
},
|
|
254
256
|
{
|
|
255
257
|
names: ["skills", "skills-auto-sync"],
|
|
256
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-
|
|
258
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-FB6TV52O.js")))).registerSkillsCommand
|
|
257
259
|
},
|
|
258
260
|
{
|
|
259
261
|
names: ["setup", "doctor"],
|
|
260
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-
|
|
262
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-5I42W7D4.js")))).registerSetupCommands
|
|
261
263
|
},
|
|
262
264
|
{
|
|
263
265
|
names: ["quickstart"],
|
|
264
|
-
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-
|
|
266
|
+
load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-6R6AIXM6.js")))).registerQuickstartCommands
|
|
265
267
|
}
|
|
266
268
|
];
|
|
267
269
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -287,8 +289,8 @@ function registerDeeplineInlineCommands(program) {
|
|
|
287
289
|
function createDeferredPlayRunMaintenance(input) {
|
|
288
290
|
return async () => {
|
|
289
291
|
try {
|
|
290
|
-
const skillsVersion =
|
|
291
|
-
const compatibility = await
|
|
292
|
+
const skillsVersion = _chunkWBIDPDKJjs.readSdkSkillsLocalVersion.call(void 0, input.baseUrl);
|
|
293
|
+
const compatibility = await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
292
294
|
"cli.sdk_compatibility_deferred",
|
|
293
295
|
{
|
|
294
296
|
baseUrl: input.baseUrl,
|
|
@@ -296,24 +298,24 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
296
298
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
297
299
|
},
|
|
298
300
|
async () => {
|
|
299
|
-
const trusted =
|
|
301
|
+
const trusted = _chunkWZSFIJMGjs.readTrustedCleanCompatibility.call(void 0,
|
|
300
302
|
input.baseUrl,
|
|
301
303
|
"plays run",
|
|
302
304
|
skillsVersion
|
|
303
305
|
);
|
|
304
306
|
if (trusted) return { response: trusted, error: null };
|
|
305
|
-
return
|
|
307
|
+
return _chunkWZSFIJMGjs.checkSdkCompatibility.call(void 0, input.baseUrl, {
|
|
306
308
|
command: "plays run",
|
|
307
309
|
skillsVersion,
|
|
308
310
|
persistCache: input.policy !== "off",
|
|
309
|
-
catalog:
|
|
311
|
+
catalog: _chunkIPAMOMGPjs.compatibilityCatalog.call(void 0, input.command)
|
|
310
312
|
});
|
|
311
313
|
}
|
|
312
314
|
);
|
|
313
315
|
if (compatibility.error || !compatibility.response) return;
|
|
314
316
|
const automaticUpdate = compatibility.response.auto_update;
|
|
315
317
|
if (_optionalChain([automaticUpdate, 'optionalAccess', _4 => _4.should_auto_update]) && !automaticUpdate.required && automaticUpdate.reason !== "rollback_forced") {
|
|
316
|
-
await
|
|
318
|
+
await _chunkIPAMOMGPjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
317
319
|
compatibility.response,
|
|
318
320
|
input.baseUrl,
|
|
319
321
|
input.policy
|
|
@@ -323,7 +325,7 @@ function createDeferredPlayRunMaintenance(input) {
|
|
|
323
325
|
compatibility.response,
|
|
324
326
|
"skills"
|
|
325
327
|
) ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
|
|
326
|
-
await
|
|
328
|
+
await _chunkWZSFIJMGjs.syncSdkSkillsIfNeeded.call(void 0, input.baseUrl, {
|
|
327
329
|
update: skillsUpdate,
|
|
328
330
|
mode: "detached"
|
|
329
331
|
});
|
|
@@ -351,8 +353,8 @@ var MAX_SESSIONS = 20;
|
|
|
351
353
|
function helpSeenPath(homeDir = _os.homedir.call(void 0, )) {
|
|
352
354
|
return _path.join.call(void 0, homeDir, ".local", "deepline", "sdk-cli", "help-seen.json");
|
|
353
355
|
}
|
|
354
|
-
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId =
|
|
355
|
-
const explicit =
|
|
356
|
+
function resolveHelpDetail(argv, key, homeDir = _os.homedir.call(void 0, ), sessionId = _chunkUJMBG5JUjs.agentSessionIdFromEnvironment.call(void 0, )) {
|
|
357
|
+
const explicit = _chunkGJ2DA35Cjs.helpDetailFromArgv.call(void 0, argv);
|
|
356
358
|
if (explicit === "quiet") return { detail: "quiet", firstRead: false };
|
|
357
359
|
if (!sessionId) return { detail: explicit, firstRead: false };
|
|
358
360
|
const path = helpSeenPath(homeDir);
|
|
@@ -418,7 +420,7 @@ function writeSessions(path, sessions) {
|
|
|
418
420
|
}
|
|
419
421
|
|
|
420
422
|
// src/cli/output-size-reporting.ts
|
|
421
|
-
var REPORT_MIN_LINES =
|
|
423
|
+
var REPORT_MIN_LINES = 60;
|
|
422
424
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
423
425
|
var FLUSH_TIMEOUT_MS = 250;
|
|
424
426
|
var EMPTY_TALLY = {
|
|
@@ -449,7 +451,7 @@ function shouldReport(stdout, stderr) {
|
|
|
449
451
|
}
|
|
450
452
|
function toolName(action) {
|
|
451
453
|
const [toolId] = _optionalChain([action, 'optionalAccess', _5 => _5.path]) === "tools execute" ? action.args : [];
|
|
452
|
-
return typeof toolId === "string" ?
|
|
454
|
+
return typeof toolId === "string" ? _chunkWZSFIJMGjs.redactFailureText.call(void 0, toolId) : null;
|
|
453
455
|
}
|
|
454
456
|
function chunkText(chunk) {
|
|
455
457
|
if (typeof chunk === "string") return chunk;
|
|
@@ -480,14 +482,14 @@ function watch(stream) {
|
|
|
480
482
|
}
|
|
481
483
|
async function postCommandOutput(body) {
|
|
482
484
|
try {
|
|
483
|
-
const baseUrl =
|
|
484
|
-
const apiKey =
|
|
485
|
+
const baseUrl = _chunkWBIDPDKJjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
486
|
+
const apiKey = _chunkWBIDPDKJjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
485
487
|
if (!apiKey) return;
|
|
486
|
-
const agentSessionId =
|
|
488
|
+
const agentSessionId = _chunkUJMBG5JUjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
487
489
|
await fetch(new URL("/api/v2/telemetry/command-output", baseUrl), {
|
|
488
490
|
method: "POST",
|
|
489
491
|
headers: {
|
|
490
|
-
...
|
|
492
|
+
..._chunkWZSFIJMGjs.failureReportHeaders.call(void 0, apiKey),
|
|
491
493
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {}
|
|
492
494
|
},
|
|
493
495
|
body: JSON.stringify(body),
|
|
@@ -503,14 +505,14 @@ function startOutputSizeReporting(invocation, streams = {
|
|
|
503
505
|
const stdoutWatch = watch(streams.stdout);
|
|
504
506
|
const stderrWatch = watch(streams.stderr);
|
|
505
507
|
return async (finished) => {
|
|
506
|
-
if (
|
|
508
|
+
if (_chunkWZSFIJMGjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
507
509
|
const [stdout, stderr] = await Promise.all([
|
|
508
510
|
stdoutWatch.settled(),
|
|
509
511
|
stderrWatch.settled()
|
|
510
512
|
]);
|
|
511
513
|
if (!shouldReport(stdout, stderr)) return;
|
|
512
514
|
await postCommandOutput({
|
|
513
|
-
command:
|
|
515
|
+
command: _chunkWZSFIJMGjs.sanitizeCommand.call(void 0, invocation.argv),
|
|
514
516
|
tool: toolName(finished.action),
|
|
515
517
|
exit_code: typeof finished.exitCode === "number" ? finished.exitCode : null,
|
|
516
518
|
duration_ms: Math.max(0, Date.now() - invocation.startedAtMs),
|
|
@@ -541,7 +543,7 @@ function silenceCommanderErrorOutput(command) {
|
|
|
541
543
|
function printUsageErrorJson(code, message, commandPath) {
|
|
542
544
|
const unknownName = code === "commander.unknownCommand" ? _optionalChain([/unknown command '([^']+)'/, 'access', _6 => _6.exec, 'call', _7 => _7(message), 'optionalAccess', _8 => _8[1]]) : void 0;
|
|
543
545
|
const helpPath = unknownName && commandPath.endsWith(` ${unknownName}`) ? commandPath.slice(0, -unknownName.length - 1) : commandPath;
|
|
544
|
-
|
|
546
|
+
_chunkQKKU2FH4js.printJson.call(void 0, {
|
|
545
547
|
ok: false,
|
|
546
548
|
error: {
|
|
547
549
|
code,
|
|
@@ -603,7 +605,7 @@ function topLevelCommandKnown(program, commandName) {
|
|
|
603
605
|
);
|
|
604
606
|
}
|
|
605
607
|
async function runPlayRunnerHealthCheck() {
|
|
606
|
-
|
|
608
|
+
_chunkWBIDPDKJjs.resolveConfig.call(void 0, );
|
|
607
609
|
const dir = await _promises.mkdtemp.call(void 0, _path.join.call(void 0, _os.tmpdir.call(void 0, ), "deepline-health-play-"));
|
|
608
610
|
const file = _path.join.call(void 0, dir, "health-check.play.ts");
|
|
609
611
|
try {
|
|
@@ -633,7 +635,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
633
635
|
});
|
|
634
636
|
let exitCode = 1;
|
|
635
637
|
try {
|
|
636
|
-
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
638
|
+
const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-RCGMND6X.js")));
|
|
637
639
|
exitCode = await handlePlayRun([
|
|
638
640
|
file,
|
|
639
641
|
"--input",
|
|
@@ -673,7 +675,7 @@ function preflightErrorMessage(error) {
|
|
|
673
675
|
return error instanceof Error ? error.message : String(error);
|
|
674
676
|
}
|
|
675
677
|
async function runPreflightCheck() {
|
|
676
|
-
const baseUrl =
|
|
678
|
+
const baseUrl = _chunkWBIDPDKJjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
677
679
|
const healthController = new AbortController();
|
|
678
680
|
const healthTimeout = setTimeout(
|
|
679
681
|
() => healthController.abort(),
|
|
@@ -690,14 +692,14 @@ async function runPreflightCheck() {
|
|
|
690
692
|
}).catch((error) => ({
|
|
691
693
|
status: "unreachable",
|
|
692
694
|
version: null,
|
|
693
|
-
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` :
|
|
695
|
+
error: healthController.signal.aborted ? `Request to ${baseUrl} timed out after ${PREFLIGHT_TIMEOUT_MS}ms.` : _chunkUJMBG5JUjs.connectionFailureMessage.call(void 0,
|
|
694
696
|
baseUrl,
|
|
695
697
|
error instanceof Error ? error : new Error(String(error))
|
|
696
698
|
)
|
|
697
699
|
})).finally(() => clearTimeout(healthTimeout));
|
|
698
|
-
const apiKey =
|
|
699
|
-
const http = apiKey ? new (0,
|
|
700
|
-
|
|
700
|
+
const apiKey = _chunkWBIDPDKJjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
701
|
+
const http = apiKey ? new (0, _chunkWBIDPDKJjs.HttpClient)(
|
|
702
|
+
_chunkWBIDPDKJjs.resolveConfig.call(void 0, {
|
|
701
703
|
baseUrl,
|
|
702
704
|
apiKey,
|
|
703
705
|
timeout: PREFLIGHT_TIMEOUT_MS,
|
|
@@ -742,7 +744,7 @@ async function runPreflightCheck() {
|
|
|
742
744
|
const connected = authStatus === "connected" || authStatus === "claimed";
|
|
743
745
|
return {
|
|
744
746
|
status: healthResult.status === "ok" && connected ? "ok" : "check",
|
|
745
|
-
cli_version:
|
|
747
|
+
cli_version: _chunkUJMBG5JUjs.SDK_VERSION,
|
|
746
748
|
host: baseUrl,
|
|
747
749
|
health: {
|
|
748
750
|
status: healthResult.status,
|
|
@@ -769,7 +771,7 @@ async function runPreflightCheck() {
|
|
|
769
771
|
{
|
|
770
772
|
title: "preflight",
|
|
771
773
|
lines: [
|
|
772
|
-
`cli: ${
|
|
774
|
+
`cli: ${_chunkUJMBG5JUjs.SDK_VERSION}`,
|
|
773
775
|
`host: ${baseUrl}`,
|
|
774
776
|
`health: ${healthResult.status}`,
|
|
775
777
|
..."error" in healthResult ? [` ${healthResult.error}`] : [],
|
|
@@ -796,12 +798,12 @@ function printPreflightHuman(data) {
|
|
|
796
798
|
}
|
|
797
799
|
async function newerCliCommandHint(baseUrl, command) {
|
|
798
800
|
if (!command.trim()) return null;
|
|
799
|
-
const { response, error } = await
|
|
801
|
+
const { response, error } = await _chunkWZSFIJMGjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
|
|
800
802
|
if (error || !response) return null;
|
|
801
803
|
const introduced = response.command_introduced_in;
|
|
802
804
|
if (introduced) {
|
|
803
805
|
return [
|
|
804
|
-
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${
|
|
806
|
+
`\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkUJMBG5JUjs.SDK_VERSION}.`,
|
|
805
807
|
` ${introduced.reason}`,
|
|
806
808
|
` Update with: ${response.update_command}`,
|
|
807
809
|
" Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
|
|
@@ -810,32 +812,32 @@ async function newerCliCommandHint(baseUrl, command) {
|
|
|
810
812
|
if (!response.update_required) return null;
|
|
811
813
|
return [
|
|
812
814
|
response.message,
|
|
813
|
-
` Installed: ${
|
|
815
|
+
` Installed: ${_chunkUJMBG5JUjs.SDK_VERSION}. Run: ${response.update_command}`,
|
|
814
816
|
" If an agent skill told you to run this, the skill is newer than this CLI."
|
|
815
817
|
].join("\n");
|
|
816
818
|
}
|
|
817
819
|
async function runMain(ensureTransport, onAction) {
|
|
818
820
|
const mainStartedAt = Date.now();
|
|
819
|
-
|
|
821
|
+
_chunkQKKU2FH4js.installJsonStderrGuard.call(void 0, );
|
|
820
822
|
let rootHelpStatus = "";
|
|
821
823
|
let commandFailed = false;
|
|
822
824
|
const deferredMaintenance = { inlinePlay: null };
|
|
823
|
-
|
|
825
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
824
826
|
phase: "cli.main_start",
|
|
825
827
|
argv: process.argv.slice(2)
|
|
826
828
|
});
|
|
827
829
|
const printStartupPhase = shouldPrintStartupPhase();
|
|
828
|
-
const progress = printStartupPhase ?
|
|
830
|
+
const progress = printStartupPhase ? _chunkMJTK6Q3Gjs.createCliProgress.call(void 0, true) : null;
|
|
829
831
|
if (printStartupPhase) {
|
|
830
832
|
_optionalChain([progress, 'optionalAccess', _14 => _14.phase, 'call', _15 => _15("loading deepline cli")]);
|
|
831
833
|
}
|
|
832
834
|
const program = new (0, _commander.Command)();
|
|
833
835
|
program.name("deepline").description(
|
|
834
836
|
"Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
|
|
835
|
-
).version(
|
|
837
|
+
).version(_chunkUJMBG5JUjs.SDK_VERSION, "-v, --version", "Show version").option(
|
|
836
838
|
"--maintenance <policy>",
|
|
837
839
|
"Installation maintenance: configured preferences or off; independent of output format",
|
|
838
|
-
|
|
840
|
+
_chunkUXQQPMYOjs.parseCliMaintenancePolicy,
|
|
839
841
|
"configured"
|
|
840
842
|
).exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
|
|
841
843
|
"beforeAll",
|
|
@@ -884,33 +886,33 @@ Exit codes:
|
|
|
884
886
|
5 server/runtime/provider failure; 7 validation/check failed.
|
|
885
887
|
`
|
|
886
888
|
).addHelpText("afterAll", ({ command }) => {
|
|
887
|
-
const key =
|
|
889
|
+
const key = _chunkGJ2DA35Cjs.commandDocKey.call(void 0, command);
|
|
888
890
|
const { detail, firstRead } = resolveHelpDetail(process.argv, key);
|
|
889
|
-
return
|
|
891
|
+
return _chunkGJ2DA35Cjs.renderCommandExplanation.call(void 0, key, detail, { firstRead });
|
|
890
892
|
});
|
|
891
893
|
program.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
892
894
|
onAction({
|
|
893
895
|
path: compatibilityCommandPath(actionCommand),
|
|
894
896
|
args: actionCommand.processedArgs
|
|
895
897
|
});
|
|
896
|
-
const maintenance =
|
|
898
|
+
const maintenance = _chunkUXQQPMYOjs.resolveCliMaintenancePolicy.call(void 0,
|
|
897
899
|
actionCommand.optsWithGlobals()
|
|
898
900
|
);
|
|
899
901
|
if (actionCommand.name() !== "version") {
|
|
900
902
|
await ensureTransport();
|
|
901
903
|
}
|
|
902
|
-
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() === _chunkWZSFIJMGjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
|
|
903
905
|
return;
|
|
904
906
|
}
|
|
905
907
|
const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
|
|
906
908
|
const isToolExecuteCommand = compatibilityCommand === "tools execute";
|
|
907
909
|
if (isToolExecuteCommand) {
|
|
908
|
-
|
|
910
|
+
_chunkIPAMOMGPjs.beginToolExecuteCommand.call(void 0, );
|
|
909
911
|
}
|
|
910
912
|
if (isToolExecuteCommand) {
|
|
911
|
-
const baseUrl =
|
|
912
|
-
if (maintenance !== "off")
|
|
913
|
-
|
|
913
|
+
const baseUrl = _chunkWBIDPDKJjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
914
|
+
if (maintenance !== "off") _chunkWZSFIJMGjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
915
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
914
916
|
phase: "cli.sdk_compatibility_deferred_to_tool_execute",
|
|
915
917
|
baseUrl,
|
|
916
918
|
command: compatibilityCommand
|
|
@@ -918,9 +920,9 @@ Exit codes:
|
|
|
918
920
|
return;
|
|
919
921
|
}
|
|
920
922
|
const playDryRun = compatibilityCommand === "plays run" && actionCommand.optsWithGlobals().dryRun === true;
|
|
921
|
-
if (!playDryRun &&
|
|
923
|
+
if (!playDryRun && _chunk5Z6EULD5js.usesInlinePlayAdmission.call(void 0, compatibilityCommand, process.argv.slice(2))) {
|
|
922
924
|
if (maintenance !== "off") {
|
|
923
|
-
const baseUrl =
|
|
925
|
+
const baseUrl = _chunkWBIDPDKJjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
924
926
|
deferredMaintenance.inlinePlay = createDeferredPlayRunMaintenance({
|
|
925
927
|
baseUrl,
|
|
926
928
|
command: actionCommand,
|
|
@@ -929,27 +931,27 @@ Exit codes:
|
|
|
929
931
|
}
|
|
930
932
|
return;
|
|
931
933
|
}
|
|
932
|
-
const runStartupStage = (stage, action) => isToolExecuteCommand ?
|
|
934
|
+
const runStartupStage = (stage, action) => isToolExecuteCommand ? _chunkIPAMOMGPjs.runToolExecuteStage.call(void 0, stage, action) : Promise.resolve(action());
|
|
933
935
|
if (printStartupPhase) {
|
|
934
936
|
_optionalChain([progress, 'optionalAccess', _16 => _16.phase, 'call', _17 => _17("checking sdk compatibility")]);
|
|
935
937
|
}
|
|
936
938
|
const startup = await runStartupStage("SDK compatibility", async () => {
|
|
937
|
-
const baseUrl =
|
|
938
|
-
if (maintenance !== "off")
|
|
939
|
+
const baseUrl = _chunkWBIDPDKJjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
940
|
+
if (maintenance !== "off") _chunkWZSFIJMGjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
939
941
|
const shouldDeferSkillsSync = isToolExecuteCommand || maintenance === "off" || shouldDeferSkillsSyncForCommand();
|
|
940
|
-
const skillsVersion = shouldDeferSkillsSync ? void 0 :
|
|
941
|
-
const trusted = isToolExecuteCommand ? null :
|
|
942
|
+
const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkWBIDPDKJjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
943
|
+
const trusted = isToolExecuteCommand ? null : _chunkWZSFIJMGjs.readTrustedCleanCompatibility.call(void 0,
|
|
942
944
|
baseUrl,
|
|
943
945
|
compatibilityCommand,
|
|
944
946
|
skillsVersion
|
|
945
947
|
);
|
|
946
|
-
const fastDeadline = !isToolExecuteCommand && trusted === null &&
|
|
948
|
+
const fastDeadline = !isToolExecuteCommand && trusted === null && _chunkWZSFIJMGjs.readFreshCleanCompatibility.call(void 0,
|
|
947
949
|
baseUrl,
|
|
948
950
|
compatibilityCommand,
|
|
949
951
|
skillsVersion
|
|
950
952
|
) !== null;
|
|
951
953
|
if (trusted) {
|
|
952
|
-
|
|
954
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
953
955
|
phase: "cli.sdk_compatibility",
|
|
954
956
|
ms: 0,
|
|
955
957
|
ok: true,
|
|
@@ -959,7 +961,7 @@ Exit codes:
|
|
|
959
961
|
source: "trusted_cache"
|
|
960
962
|
});
|
|
961
963
|
}
|
|
962
|
-
const compatibility = trusted ? { response: trusted, error: null } : await
|
|
964
|
+
const compatibility = trusted ? { response: trusted, error: null } : await _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
963
965
|
"cli.sdk_compatibility",
|
|
964
966
|
{
|
|
965
967
|
baseUrl,
|
|
@@ -967,12 +969,12 @@ Exit codes:
|
|
|
967
969
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
|
|
968
970
|
fastDeadline
|
|
969
971
|
},
|
|
970
|
-
() =>
|
|
972
|
+
() => _chunkWZSFIJMGjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
971
973
|
command: compatibilityCommand,
|
|
972
974
|
skillsVersion,
|
|
973
975
|
persistCache: !isToolExecuteCommand && maintenance !== "off",
|
|
974
|
-
catalog:
|
|
975
|
-
...fastDeadline ? { timeoutMs:
|
|
976
|
+
catalog: _chunkIPAMOMGPjs.compatibilityCatalog.call(void 0, actionCommand),
|
|
977
|
+
...fastDeadline ? { timeoutMs: _chunkWZSFIJMGjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
|
|
976
978
|
})
|
|
977
979
|
);
|
|
978
980
|
if (compatibility.error) {
|
|
@@ -983,7 +985,7 @@ Exit codes:
|
|
|
983
985
|
response: null
|
|
984
986
|
};
|
|
985
987
|
}
|
|
986
|
-
const relaunched = await
|
|
988
|
+
const relaunched = await _chunkIPAMOMGPjs.maybeAutoUpdateAndRelaunch.call(void 0,
|
|
987
989
|
compatibility.response,
|
|
988
990
|
baseUrl,
|
|
989
991
|
maintenance
|
|
@@ -997,14 +999,14 @@ Exit codes:
|
|
|
997
999
|
};
|
|
998
1000
|
}
|
|
999
1001
|
const policy = compatibility.response;
|
|
1000
|
-
const jsonOutput =
|
|
1001
|
-
|
|
1002
|
+
const jsonOutput = _chunkQKKU2FH4js.isJsonOutputMode.call(void 0, );
|
|
1003
|
+
_chunkWZSFIJMGjs.enforceSdkCompatibilityResponse.call(void 0, policy, {
|
|
1002
1004
|
quietAdvisory: jsonOutput || // The queued update already says what is about to happen.
|
|
1003
|
-
|
|
1005
|
+
_chunkIPAMOMGPjs.hasDeferredAutoUpdate.call(void 0, ) || maintenance === "off" || !_chunkWZSFIJMGjs.claimUpdateAdvisory.call(void 0, baseUrl)
|
|
1004
1006
|
});
|
|
1005
1007
|
const advisory = compatibility.response;
|
|
1006
|
-
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !
|
|
1007
|
-
|
|
1008
|
+
if (jsonOutput && advisory && (advisory.status === "deprecated" || advisory.status === "update_available") && !_chunkWZSFIJMGjs.isCiEnvironment.call(void 0, ) && !_chunkIPAMOMGPjs.hasDeferredAutoUpdate.call(void 0, )) {
|
|
1009
|
+
_chunkQKKU2FH4js.addJsonNotice.call(void 0, { code: advisory.status, message: advisory.message });
|
|
1008
1010
|
}
|
|
1009
1011
|
return {
|
|
1010
1012
|
shouldContinue: true,
|
|
@@ -1021,10 +1023,10 @@ Exit codes:
|
|
|
1021
1023
|
const skillsUpdate = startup.response && Object.prototype.hasOwnProperty.call(startup.response, "skills") ? _nullishCoalesce(startup.response.skills, () => ( null)) : void 0;
|
|
1022
1024
|
await runStartupStage(
|
|
1023
1025
|
"agent skills sync",
|
|
1024
|
-
() =>
|
|
1026
|
+
() => _chunkUXQQPMYOjs.traceCliSpan.call(void 0,
|
|
1025
1027
|
"cli.sdk_skills_sync",
|
|
1026
1028
|
{ baseUrl: startup.baseUrl },
|
|
1027
|
-
() =>
|
|
1029
|
+
() => _chunkWZSFIJMGjs.syncSdkSkillsIfNeeded.call(void 0, startup.baseUrl, {
|
|
1028
1030
|
update: skillsUpdate,
|
|
1029
1031
|
mode: "detached"
|
|
1030
1032
|
})
|
|
@@ -1036,16 +1038,16 @@ Exit codes:
|
|
|
1036
1038
|
program,
|
|
1037
1039
|
process.argv.slice(2)
|
|
1038
1040
|
);
|
|
1039
|
-
const commandRegistrationStartedAt =
|
|
1041
|
+
const commandRegistrationStartedAt = _chunkUXQQPMYOjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1040
1042
|
await registerDeeplineCommandGroups(program, requestedCommand);
|
|
1041
1043
|
if (commandRegistrationStartedAt !== void 0) {
|
|
1042
|
-
|
|
1044
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
1043
1045
|
phase: "cli.command_registration",
|
|
1044
1046
|
ms: performance.now() - commandRegistrationStartedAt
|
|
1045
1047
|
});
|
|
1046
1048
|
}
|
|
1047
1049
|
const { preflight, health, version } = registerDeeplineInlineCommands(program);
|
|
1048
|
-
if (
|
|
1050
|
+
if (_chunkQKKU2FH4js.isJsonOutputMode.call(void 0, )) silenceCommanderErrorOutput(program);
|
|
1049
1051
|
preflight.addHelpText(
|
|
1050
1052
|
"after",
|
|
1051
1053
|
`
|
|
@@ -1061,8 +1063,8 @@ Examples:
|
|
|
1061
1063
|
`
|
|
1062
1064
|
).action(async (options) => {
|
|
1063
1065
|
const data = await runPreflightCheck();
|
|
1064
|
-
if (
|
|
1065
|
-
|
|
1066
|
+
if (_chunkQKKU2FH4js.shouldEmitJson.call(void 0, options.json)) {
|
|
1067
|
+
_chunkQKKU2FH4js.printJson.call(void 0, data);
|
|
1066
1068
|
} else {
|
|
1067
1069
|
printPreflightHuman(data);
|
|
1068
1070
|
}
|
|
@@ -1087,7 +1089,7 @@ Examples:
|
|
|
1087
1089
|
).action(async (options) => {
|
|
1088
1090
|
if (options.playRunner) {
|
|
1089
1091
|
const data = await runPlayRunnerHealthCheck();
|
|
1090
|
-
|
|
1092
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0, data, {
|
|
1091
1093
|
json: options.json,
|
|
1092
1094
|
text: `play runner: ${data.playRunner.status} (${data.playRunner.check})
|
|
1093
1095
|
`
|
|
@@ -1095,15 +1097,15 @@ Examples:
|
|
|
1095
1097
|
return;
|
|
1096
1098
|
}
|
|
1097
1099
|
try {
|
|
1098
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1099
|
-
const baseUrl =
|
|
1100
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-UPK4IIIN.js")));
|
|
1101
|
+
const baseUrl = _chunkWBIDPDKJjs.resolveBaseUrlOnly.call(void 0, );
|
|
1100
1102
|
const [{ status, data }, banner] = await Promise.all([
|
|
1101
1103
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
1102
1104
|
readStatusBanner(baseUrl)
|
|
1103
1105
|
]);
|
|
1104
1106
|
if (status !== 200) throw new Error(`HTTP ${status}`);
|
|
1105
1107
|
const lines = [`${baseUrl}: ${data.status}`, statusBannerLine(banner)];
|
|
1106
|
-
|
|
1108
|
+
_chunkQKKU2FH4js.printCommandEnvelope.call(void 0,
|
|
1107
1109
|
{ ...data, status_banner: banner },
|
|
1108
1110
|
{
|
|
1109
1111
|
json: options.json,
|
|
@@ -1131,16 +1133,16 @@ Examples:
|
|
|
1131
1133
|
`
|
|
1132
1134
|
).action((options) => {
|
|
1133
1135
|
if (options.json) {
|
|
1134
|
-
|
|
1136
|
+
_chunkQKKU2FH4js.printCompactJson.call(void 0, { version: _chunkUJMBG5JUjs.SDK_VERSION });
|
|
1135
1137
|
return;
|
|
1136
1138
|
}
|
|
1137
|
-
process.stdout.write(`deepline ${
|
|
1139
|
+
process.stdout.write(`deepline ${_chunkUJMBG5JUjs.SDK_VERSION}
|
|
1138
1140
|
`);
|
|
1139
1141
|
});
|
|
1140
1142
|
if (process.argv.slice(2).length === 0) {
|
|
1141
1143
|
program.outputHelp({ error: true });
|
|
1142
1144
|
console.error("\nerror: missing command (see usage above)");
|
|
1143
|
-
|
|
1145
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
1144
1146
|
phase: "cli.main_total",
|
|
1145
1147
|
ms: Date.now() - mainStartedAt,
|
|
1146
1148
|
ok: false,
|
|
@@ -1152,16 +1154,16 @@ Examples:
|
|
|
1152
1154
|
const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
|
|
1153
1155
|
if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
|
|
1154
1156
|
const unknownCommandMessage = `error: unknown command '${requestedTopLevelCommand}'`;
|
|
1155
|
-
if (!
|
|
1156
|
-
const baseUrl =
|
|
1157
|
+
if (!_chunkQKKU2FH4js.isJsonOutputMode.call(void 0, )) console.error(unknownCommandMessage);
|
|
1158
|
+
const baseUrl = _chunkWBIDPDKJjs.autoDetectBaseUrl.call(void 0, );
|
|
1157
1159
|
await ensureTransport();
|
|
1158
1160
|
const versionHint = await newerCliCommandHint(
|
|
1159
1161
|
baseUrl,
|
|
1160
1162
|
requestedTopLevelCommand
|
|
1161
1163
|
);
|
|
1162
|
-
if (
|
|
1164
|
+
if (_chunkQKKU2FH4js.isJsonOutputMode.call(void 0, )) {
|
|
1163
1165
|
if (versionHint) {
|
|
1164
|
-
|
|
1166
|
+
_chunkQKKU2FH4js.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1165
1167
|
}
|
|
1166
1168
|
printUsageErrorJson(
|
|
1167
1169
|
"commander.unknownCommand",
|
|
@@ -1183,18 +1185,18 @@ Examples:
|
|
|
1183
1185
|
const helpArgs = process.argv.slice(2);
|
|
1184
1186
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1185
1187
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1186
|
-
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-
|
|
1187
|
-
rootHelpStatus = `Version: ${
|
|
1188
|
+
const { authStatusLine } = await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-UPK4IIIN.js")));
|
|
1189
|
+
rootHelpStatus = `Version: ${_chunkUJMBG5JUjs.SDK_VERSION}
|
|
1188
1190
|
${await authStatusLine()}
|
|
1189
1191
|
`;
|
|
1190
1192
|
}
|
|
1191
1193
|
await program.parseAsync(process.argv);
|
|
1192
|
-
|
|
1194
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
1193
1195
|
phase: "cli.main_total",
|
|
1194
1196
|
ms: Date.now() - mainStartedAt,
|
|
1195
1197
|
ok: true
|
|
1196
1198
|
});
|
|
1197
|
-
await
|
|
1199
|
+
await _chunkWZSFIJMGjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1198
1200
|
argv: process.argv.slice(2),
|
|
1199
1201
|
startedAtMs: mainStartedAt,
|
|
1200
1202
|
exitCode: typeof process.exitCode === "number" ? process.exitCode : null
|
|
@@ -1202,14 +1204,14 @@ ${await authStatusLine()}
|
|
|
1202
1204
|
} catch (error) {
|
|
1203
1205
|
commandFailed = true;
|
|
1204
1206
|
const commanderError = asCommanderError(error);
|
|
1205
|
-
|
|
1207
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
1206
1208
|
phase: "cli.main_total",
|
|
1207
1209
|
ms: Date.now() - mainStartedAt,
|
|
1208
1210
|
ok: false,
|
|
1209
1211
|
error: error instanceof Error ? error.message : String(error)
|
|
1210
1212
|
});
|
|
1211
1213
|
_optionalChain([progress, 'optionalAccess', _20 => _20.fail, 'call', _21 => _21()]);
|
|
1212
|
-
const wantsJson =
|
|
1214
|
+
const wantsJson = _chunkQKKU2FH4js.isJsonOutputMode.call(void 0, );
|
|
1213
1215
|
if (commanderError) {
|
|
1214
1216
|
const grammarError = [
|
|
1215
1217
|
"commander.unknownCommand",
|
|
@@ -1220,12 +1222,12 @@ ${await authStatusLine()}
|
|
|
1220
1222
|
if (grammarError) {
|
|
1221
1223
|
await ensureTransport();
|
|
1222
1224
|
const versionHint = await newerCliCommandHint(
|
|
1223
|
-
|
|
1225
|
+
_chunkWBIDPDKJjs.autoDetectBaseUrl.call(void 0, ),
|
|
1224
1226
|
commandPath
|
|
1225
1227
|
);
|
|
1226
1228
|
if (wantsJson) {
|
|
1227
1229
|
if (versionHint) {
|
|
1228
|
-
|
|
1230
|
+
_chunkQKKU2FH4js.addJsonNotice.call(void 0, { code: "newer_cli_command", message: versionHint });
|
|
1229
1231
|
}
|
|
1230
1232
|
} else {
|
|
1231
1233
|
if (versionHint) console.error(versionHint);
|
|
@@ -1245,55 +1247,55 @@ ${await authStatusLine()}
|
|
|
1245
1247
|
return;
|
|
1246
1248
|
} else if (wantsJson) {
|
|
1247
1249
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1248
|
-
|
|
1250
|
+
_chunkQKKU2FH4js.addJsonNotice.call(void 0, {
|
|
1249
1251
|
code: "auth_required",
|
|
1250
1252
|
message: `Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`
|
|
1251
1253
|
});
|
|
1252
1254
|
}
|
|
1253
|
-
const providerConcurrency =
|
|
1255
|
+
const providerConcurrency = _chunkQKKU2FH4js.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1254
1256
|
if (providerConcurrency) {
|
|
1255
|
-
|
|
1257
|
+
_chunkQKKU2FH4js.addJsonNotice.call(void 0, {
|
|
1256
1258
|
code: "provider_concurrency",
|
|
1257
1259
|
message: providerConcurrency
|
|
1258
1260
|
});
|
|
1259
1261
|
}
|
|
1260
|
-
const payload =
|
|
1261
|
-
|
|
1262
|
+
const payload = _chunkQKKU2FH4js.errorToJsonPayload.call(void 0, error);
|
|
1263
|
+
_chunkQKKU2FH4js.printJson.call(void 0, {
|
|
1262
1264
|
...payload,
|
|
1263
1265
|
// The envelope names the code the process exits with, so a caller
|
|
1264
1266
|
// that only reads stdout still cannot mistake a failure for data.
|
|
1265
|
-
exitCode: _nullishCoalesce(payload.exitCode, () => (
|
|
1267
|
+
exitCode: _nullishCoalesce(payload.exitCode, () => ( _chunkWZSFIJMGjs.resolveSdkCliFailureExitCode.call(void 0, error))),
|
|
1266
1268
|
...error instanceof _chunkALJJRZNJjs.AuthError ? { next: AUTH_RECOVERY_COMMAND } : {}
|
|
1267
1269
|
});
|
|
1268
1270
|
} else if (error instanceof Error) {
|
|
1269
1271
|
console.error(`Error: ${error.message}`);
|
|
1270
|
-
const toolDiagnostic =
|
|
1272
|
+
const toolDiagnostic = _chunkQKKU2FH4js.formatToolExecutionErrorDiagnostic.call(void 0, error);
|
|
1271
1273
|
if (toolDiagnostic) console.error(toolDiagnostic);
|
|
1272
1274
|
if (error instanceof _chunkALJJRZNJjs.AuthError) {
|
|
1273
1275
|
console.error(`Not authenticated. Run: ${AUTH_RECOVERY_COMMAND}`);
|
|
1274
1276
|
}
|
|
1275
|
-
const providerConcurrency =
|
|
1277
|
+
const providerConcurrency = _chunkQKKU2FH4js.formatProviderConcurrencyDiagnostic.call(void 0, error);
|
|
1276
1278
|
if (providerConcurrency) console.error(providerConcurrency);
|
|
1277
1279
|
} else {
|
|
1278
1280
|
console.error(`Error: ${String(error)}`);
|
|
1279
1281
|
}
|
|
1280
1282
|
const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
|
|
1281
|
-
const failureExitCode = _nullishCoalesce(explicitExitCode, () => (
|
|
1283
|
+
const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkWZSFIJMGjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
1282
1284
|
process.exitCode = failureExitCode;
|
|
1283
|
-
await
|
|
1285
|
+
await _chunkWZSFIJMGjs.maybeReportSdkCliFailure.call(void 0, {
|
|
1284
1286
|
argv: process.argv.slice(2),
|
|
1285
1287
|
startedAtMs: mainStartedAt,
|
|
1286
1288
|
exitCode: failureExitCode,
|
|
1287
1289
|
error
|
|
1288
1290
|
});
|
|
1289
1291
|
} finally {
|
|
1290
|
-
|
|
1292
|
+
_chunkIPAMOMGPjs.finishToolExecuteCommand.call(void 0, );
|
|
1291
1293
|
const maintainInlinePlay = deferredMaintenance.inlinePlay;
|
|
1292
1294
|
deferredMaintenance.inlinePlay = null;
|
|
1293
1295
|
if (commandFailed || typeof process.exitCode === "number" && process.exitCode !== 0) {
|
|
1294
1296
|
await _optionalChain([maintainInlinePlay, 'optionalCall', _22 => _22()]);
|
|
1295
1297
|
}
|
|
1296
|
-
await
|
|
1298
|
+
await _chunkIPAMOMGPjs.runDeferredAutoUpdate.call(void 0, );
|
|
1297
1299
|
}
|
|
1298
1300
|
process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
|
|
1299
1301
|
}
|
|
@@ -1301,7 +1303,7 @@ async function main() {
|
|
|
1301
1303
|
let disposeTransport;
|
|
1302
1304
|
const ensureTransport = async () => {
|
|
1303
1305
|
if (disposeTransport) return;
|
|
1304
|
-
const transportStartedAt =
|
|
1306
|
+
const transportStartedAt = _chunkUXQQPMYOjs.isCliTraceEnabled.call(void 0, ) ? performance.now() : void 0;
|
|
1305
1307
|
const hasProxy = [
|
|
1306
1308
|
"HTTP_PROXY",
|
|
1307
1309
|
"http_proxy",
|
|
@@ -1313,7 +1315,7 @@ async function main() {
|
|
|
1313
1315
|
disposeTransport = configureCliTransport();
|
|
1314
1316
|
}
|
|
1315
1317
|
if (transportStartedAt !== void 0) {
|
|
1316
|
-
|
|
1318
|
+
_chunkUXQQPMYOjs.recordCliTrace.call(void 0, {
|
|
1317
1319
|
phase: "cli.transport_setup",
|
|
1318
1320
|
ms: performance.now() - transportStartedAt
|
|
1319
1321
|
});
|
|
@@ -1330,9 +1332,9 @@ async function main() {
|
|
|
1330
1332
|
action = dispatched;
|
|
1331
1333
|
skipOutputReport = dispatched.path === "tools execute" || dispatched.path === "plays run" && process.argv.includes("--json");
|
|
1332
1334
|
});
|
|
1333
|
-
const silentFailure =
|
|
1335
|
+
const silentFailure = _chunkQKKU2FH4js.takeSilentJsonFailureMessage.call(void 0, process.exitCode);
|
|
1334
1336
|
if (silentFailure) {
|
|
1335
|
-
|
|
1337
|
+
_chunkQKKU2FH4js.printJson.call(void 0, {
|
|
1336
1338
|
ok: false,
|
|
1337
1339
|
exitCode: Number(process.exitCode),
|
|
1338
1340
|
error: { code: "CLI_ERROR", message: silentFailure }
|