deepline 0.3.523 → 0.3.525
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 +68 -60
- package/dist/bundling-sources/sdk/src/http-core.ts +14 -0
- package/dist/bundling-sources/sdk/src/plays/play-description.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +10 -0
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-dead-letter.ts +60 -14
- package/dist/bundling-sources/shared_libs/monitors/signal-radars/inbound-queue-delivery.ts +9 -3
- package/dist/bundling-sources/shared_libs/observability/dlq.ts +19 -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 +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +397 -22
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +473 -13
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +28 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-retry-summary.ts +202 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +60 -8
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-telemetry.ts +112 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +39 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +13 -5
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +10 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-retry-facts.ts +62 -0
- package/dist/cli/auth-K7PMRXNG.js +43 -0
- package/dist/cli/{auth-ENQUQS56.mjs → auth-TH3VGYBK.mjs} +5 -5
- package/dist/cli/{billing-6A27ULCX.mjs → billing-CMHFI2LN.mjs} +8 -8
- package/dist/cli/{billing-6HONTJOY.js → billing-TWKVUFU2.js} +83 -83
- package/dist/cli/{chunk-JMMNCJ7Z.js → chunk-2WFVLOB7.js} +1 -1
- package/dist/cli/{chunk-S4YKRH3W.js → chunk-4UWXFXQF.js} +3 -3
- package/dist/cli/{chunk-PCORO245.mjs → chunk-5BSGWIQD.mjs} +2 -2
- package/dist/cli/{chunk-SBGKKOCC.js → chunk-5JFAQUZS.js} +26 -26
- package/dist/cli/{chunk-RVHUW4TN.js → chunk-5YAJGRWB.js} +17 -17
- package/dist/cli/{chunk-ITJ7NB2D.mjs → chunk-7AOFSZJM.mjs} +3 -1
- package/dist/cli/{chunk-JVEFMOY2.mjs → chunk-7C4F4TLR.mjs} +1 -1
- package/dist/cli/{chunk-QMBL5ZIQ.mjs → chunk-7OF3A4KJ.mjs} +3 -3
- package/dist/cli/{chunk-326WVSWS.js → chunk-AVDEYOVP.js} +269 -269
- package/dist/cli/{chunk-GJYLC4JB.mjs → chunk-BNH4Y35W.mjs} +2 -2
- package/dist/cli/{chunk-ZWN4RXC2.js → chunk-CKTRQSRA.js} +22 -22
- package/dist/cli/{chunk-I62LJ7NU.mjs → chunk-CLTL7ZJI.mjs} +1 -1
- package/dist/cli/{chunk-IEVXYHGJ.js → chunk-CQSANB3V.js} +5 -5
- package/dist/cli/{chunk-QYXIODWH.js → chunk-CWRL6IQP.js} +44 -29
- package/dist/cli/{chunk-WVQOXYTQ.mjs → chunk-CZNEQMJR.mjs} +37 -34
- package/dist/cli/{chunk-4NWY7JBB.js → chunk-DYS3KWYF.js} +11 -11
- package/dist/cli/{chunk-HSVGP4CI.mjs → chunk-EP6YH6QJ.mjs} +2 -2
- package/dist/cli/{chunk-XYL26236.js → chunk-ESWM2JW4.js} +2 -2
- package/dist/cli/{chunk-6OZ2WSHD.mjs → chunk-ETHVJ2ZE.mjs} +1 -1
- package/dist/cli/{chunk-6DBRBWHC.mjs → chunk-GCLNX72G.mjs} +2 -2
- package/dist/cli/{chunk-R2VZVHJP.mjs → chunk-GESIFFQX.mjs} +1 -1
- package/dist/cli/{chunk-QSAC3IVI.mjs → chunk-IMO3HXWZ.mjs} +1 -1
- package/dist/cli/{chunk-JGZQBDYG.mjs → chunk-JVWSIA2V.mjs} +4 -4
- package/dist/cli/{chunk-7GNKAACY.js → chunk-KBOSALBI.js} +10 -10
- package/dist/cli/{chunk-K326BEVR.js → chunk-KEZ3KBWW.js} +10 -10
- package/dist/cli/{chunk-7M5FRSFP.mjs → chunk-KPINGHIF.mjs} +2 -2
- package/dist/cli/{chunk-UH3EAFFN.mjs → chunk-LAMGJQDY.mjs} +2 -2
- package/dist/cli/{chunk-UQN4VTZL.js → chunk-LE537GBC.js} +13 -6
- package/dist/cli/{chunk-PESMXAUG.js → chunk-LXKH4MKH.js} +6 -6
- package/dist/cli/{chunk-4V63IJCL.mjs → chunk-M43ZYNDA.mjs} +5 -5
- package/dist/cli/{chunk-XVXEARHC.js → chunk-MHBSRNI7.js} +41 -41
- package/dist/cli/{chunk-HUC5SGJQ.js → chunk-MRUFGOJR.js} +2 -2
- package/dist/cli/{chunk-RQN4PHRE.js → chunk-N4MMU3QF.js} +21 -21
- package/dist/cli/{chunk-2BRDHM4S.js → chunk-NB2ECLQE.js} +9 -9
- package/dist/cli/{chunk-DNXP3D5H.mjs → chunk-NO4URKKT.mjs} +5 -5
- package/dist/cli/{chunk-MZROKQV3.js → chunk-NRBCETWL.js} +44 -44
- package/dist/cli/{chunk-JCTTXLAZ.mjs → chunk-OWQF6WVH.mjs} +10 -3
- package/dist/cli/{chunk-NWTMQGPP.mjs → chunk-OXFIJYN3.mjs} +8 -8
- package/dist/cli/{chunk-FBMOBNJY.js → chunk-P62LON53.js} +2 -2
- package/dist/cli/{chunk-NMU3VR5U.js → chunk-PMH4GLMD.js} +1 -0
- package/dist/cli/{chunk-S3A4IXBQ.mjs → chunk-PSX3WHIH.mjs} +1 -0
- package/dist/cli/{chunk-N5MLEXZ7.js → chunk-QR7VYYNM.js} +176 -173
- package/dist/cli/{chunk-RKREB7MU.mjs → chunk-RMZ6CISE.mjs} +3 -3
- package/dist/cli/{chunk-V46J3UTM.js → chunk-S5LUY3KJ.js} +7 -7
- package/dist/cli/{chunk-MCXPJYBN.js → chunk-TFEGJEYO.js} +3 -3
- package/dist/cli/{chunk-MT3WG3KR.js → chunk-TO72GW5I.js} +16 -16
- package/dist/cli/{chunk-H7275EZU.mjs → chunk-TXSBPBHB.mjs} +5 -5
- package/dist/cli/{chunk-SXTVJIGB.mjs → chunk-U4M32NFS.mjs} +1 -1
- package/dist/cli/{chunk-5WFQXAD4.mjs → chunk-UQYKSOGO.mjs} +5 -5
- package/dist/cli/{chunk-KILRUAXF.mjs → chunk-UXF3ODJJ.mjs} +2 -2
- package/dist/cli/{chunk-36LQQL5C.js → chunk-V2GN4PLK.js} +5 -5
- package/dist/cli/{chunk-HUIFUE4L.js → chunk-V65J64FL.js} +53 -53
- package/dist/cli/{chunk-U6DLLV3S.mjs → chunk-VYIAWAKJ.mjs} +1 -1
- package/dist/cli/{chunk-WGVJA4I5.js → chunk-WA3FG7DH.js} +14 -14
- package/dist/cli/{chunk-MHTRYBXY.mjs → chunk-WEYFSBAD.mjs} +44 -29
- package/dist/cli/{chunk-LZL6V5M5.mjs → chunk-WGRDOPAK.mjs} +2 -2
- package/dist/cli/{chunk-NTLBZUHD.js → chunk-XYIECA7M.js} +4 -2
- package/dist/cli/{chunk-QOO5W5XS.mjs → chunk-YC7FKAJ4.mjs} +12 -12
- package/dist/cli/{chunk-BN5VKY4X.js → chunk-ZS2WHWWL.js} +7 -7
- package/dist/cli/{chunk-F3WRLFFM.mjs → chunk-ZWFTHEPT.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-UBACJK75.js → csv-5JHWVJ5N.js} +13 -13
- package/dist/cli/{csv-YFJ2JLUP.mjs → csv-OO554TPX.mjs} +4 -4
- package/dist/cli/{db-2ZPA2LZ7.js → db-CYQJ4OXF.js} +28 -28
- package/dist/cli/{db-NKGYTAQO.mjs → db-SQKJ6RKU.mjs} +7 -7
- package/dist/cli/describe-N7AKTUQV.mjs +50 -0
- package/dist/cli/describe-PASXOL3R.js +50 -0
- package/dist/cli/describe-core.d.mts +4 -2
- package/dist/cli/describe-core.d.ts +4 -2
- package/dist/cli/describe-core.js +5 -5
- package/dist/cli/describe-core.mjs +4 -4
- package/dist/cli/{executions-HTHQ7KKD.mjs → executions-F34DORW6.mjs} +7 -7
- package/dist/cli/{executions-NXMRGPIL.js → executions-K7EGCRKX.js} +9 -9
- package/dist/cli/{feedback-USP4T34P.mjs → feedback-GQHKCS66.mjs} +5 -5
- package/dist/cli/{feedback-TGVQACRO.js → feedback-NOQVCA3Q.js} +10 -10
- package/dist/cli/{git-KUONEHCD.mjs → git-2EEITXDB.mjs} +5 -5
- package/dist/cli/git-UU4YFJ2Q.js +25 -0
- package/dist/cli/index.js +146 -146
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{legacy-noops-B2GMHU42.mjs → legacy-noops-JHMY5XRB.mjs} +6 -6
- package/dist/cli/{legacy-noops-2JY3CQ24.js → legacy-noops-RFNHQ7RG.js} +9 -9
- package/dist/cli/{monitors-2OVBZJ6Z.mjs → monitors-RDMP6SPZ.mjs} +8 -8
- package/dist/cli/{monitors-XI6I52AX.js → monitors-UKRZ4BDK.js} +101 -101
- package/dist/cli/{org-5TUQ2H6Y.js → org-OX7TYTHV.js} +87 -87
- package/dist/cli/{org-BNJW764Y.mjs → org-RF3G4KMB.mjs} +7 -7
- package/dist/cli/{pages-QC3TQIPW.mjs → pages-FBM3MGSP.mjs} +7 -7
- package/dist/cli/{pages-UXCLX53Y.js → pages-MKQT5LFV.js} +19 -19
- package/dist/cli/{play-KRWMZ7FG.js → play-OOVX2DMV.js} +802 -713
- package/dist/cli/{play-45PPG5SZ.mjs → play-YWC2UORM.mjs} +197 -108
- package/dist/cli/{providers-RBUJ72Y3.js → providers-2CGZYLER.js} +10 -10
- package/dist/cli/{providers-JDT35MRL.mjs → providers-3PEQESIU.mjs} +7 -7
- package/dist/cli/{quickstart-JZ4Q3HFT.js → quickstart-6AANHKQZ.js} +6 -6
- package/dist/cli/{quickstart-GD2SWGAC.mjs → quickstart-KVB36SOW.mjs} +4 -4
- package/dist/cli/{run-JEAHA367.js → run-NJ7WV5TK.js} +46 -46
- package/dist/cli/{run-KIZ3HBI2.mjs → run-QC23NRKO.mjs} +27 -27
- package/dist/cli/{search-5UFNXHFK.mjs → search-7BMFFZI2.mjs} +9 -9
- package/dist/cli/search-NH4DTXUK.js +33 -0
- package/dist/cli/{search-output-HAXPKQO6.mjs → search-output-CALZ4ZI2.mjs} +4 -4
- package/dist/cli/{search-output-W3RDSVLE.js → search-output-XC2AVBFX.js} +6 -6
- package/dist/cli/{secrets-JAWT66B2.mjs → secrets-7ZHA57DI.mjs} +7 -7
- package/dist/cli/{secrets-PC7C2Q32.js → secrets-VHU4B2D4.js} +16 -16
- package/dist/cli/sessions-2TE5JWVP.js +18 -0
- package/dist/cli/{sessions-325V7G35.mjs → sessions-YYULWFZE.mjs} +6 -6
- package/dist/cli/{settings-FKHTA65P.mjs → settings-AVY4NNHI.mjs} +14 -14
- package/dist/cli/{settings-RGU6Y2QR.js → settings-WV77QJGD.js} +87 -87
- package/dist/cli/{setup-43GOYTFC.mjs → setup-AOUJ3RMU.mjs} +10 -10
- package/dist/cli/{setup-ZMZ7HU2I.js → setup-GE5TLTC4.js} +50 -50
- package/dist/cli/{skills-Q2VAHSXM.mjs → skills-FVWO2G66.mjs} +8 -8
- package/dist/cli/skills-OL7LD6QX.js +37 -0
- package/dist/cli/{tools-BUH7ZWDS.mjs → tools-URE655B4.mjs} +20 -20
- package/dist/cli/tools-VQ5JO6DI.js +57 -0
- package/dist/cli/{update-JFALWOHD.mjs → update-5B4G4345.mjs} +10 -10
- package/dist/cli/update-7ZOIOTZN.js +35 -0
- package/dist/cli/{artifacts-RBHR2DG4.mjs → views-GSECJ5IK.mjs} +77 -77
- package/dist/cli/views-IC762HEQ.js +270 -0
- package/dist/cli/{workflow-ISJKLY6X.mjs → workflow-6UQM565I.mjs} +8 -8
- package/dist/cli/{workflow-YELST32A.js → workflow-EME7ZEOV.js} +18 -18
- package/dist/{client-C2N7MofG.d.mts → client-Bd2meveV.d.mts} +1 -1
- package/dist/{client-C7lTRJjw.d.ts → client-CBCVhL8U.d.ts} +1 -1
- package/dist/{client-core-BTkDSKGn.d.mts → client-core-CGj8V9mw.d.mts} +110 -43
- package/dist/{client-core-hmhBi7Ib.d.ts → client-core-CsRRWCFy.d.ts} +110 -43
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +120 -118
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/play-description.js +2 -2
- package/dist/plays/play-description.mjs +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/artifacts-RZTS2JHZ.js +0 -270
- package/dist/cli/auth-DPWYFQR5.js +0 -43
- package/dist/cli/describe-GX7DRKWZ.mjs +0 -50
- package/dist/cli/describe-WQZF7MEG.js +0 -50
- package/dist/cli/git-X3SCQREB.js +0 -25
- package/dist/cli/search-6JULJMD7.js +0 -33
- package/dist/cli/sessions-WFUCOJHZ.js +0 -18
- package/dist/cli/skills-3XTQ6FFM.js +0 -37
- package/dist/cli/tools-UK2R4YXQ.js +0 -57
- package/dist/cli/update-LNKPHS54.js +0 -35
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatModelDescription,
|
|
4
4
|
publicToolSchemas,
|
|
5
5
|
toolMetadataJsonForDescribe
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GESIFFQX.mjs";
|
|
7
7
|
import {
|
|
8
8
|
buildPlayDashboardUrl,
|
|
9
9
|
byokLines,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
examples,
|
|
14
14
|
schemaLines,
|
|
15
15
|
topLevelField
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7AOFSZJM.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DeeplineError
|
|
19
19
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTO72GW5Ijs = require('./chunk-TO72GW5I.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkNRBCETWLjs = require('./chunk-NRBCETWL.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkS5LUY3KJjs = require('./chunk-S5LUY3KJ.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkTFEGJEYOjs = require('./chunk-TFEGJEYO.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkLE537GBCjs = require('./chunk-LE537GBC.js');
|
|
22
22
|
|
|
23
23
|
// src/cli/compatibility-catalog.ts
|
|
24
24
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -45,7 +45,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
45
45
|
async function reportAutoUpdateEvent(input) {
|
|
46
46
|
let apiKey = "";
|
|
47
47
|
try {
|
|
48
|
-
apiKey =
|
|
48
|
+
apiKey = _chunkTFEGJEYOjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
49
49
|
} catch (e2) {
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
@@ -61,15 +61,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
61
61
|
headers: {
|
|
62
62
|
Authorization: `Bearer ${apiKey}`,
|
|
63
63
|
"Content-Type": "application/json",
|
|
64
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
64
|
+
"User-Agent": `deepline-ts-sdk/${_chunkLE537GBCjs.SDK_VERSION}`,
|
|
65
65
|
"X-Deepline-Client-Family": "sdk",
|
|
66
66
|
"X-Deepline-CLI-Family": "sdk",
|
|
67
|
-
"X-Deepline-CLI-Version":
|
|
68
|
-
"X-Deepline-SDK-Version":
|
|
67
|
+
"X-Deepline-CLI-Version": _chunkLE537GBCjs.SDK_VERSION,
|
|
68
|
+
"X-Deepline-SDK-Version": _chunkLE537GBCjs.SDK_VERSION
|
|
69
69
|
},
|
|
70
70
|
body: JSON.stringify({
|
|
71
71
|
event: input.event,
|
|
72
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
72
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkLE537GBCjs.SDK_VERSION,
|
|
73
73
|
target_version: input.response.latest,
|
|
74
74
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
75
75
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -88,13 +88,13 @@ function envTruthy(name) {
|
|
|
88
88
|
return value === "1" || value === "true" || value === "yes";
|
|
89
89
|
}
|
|
90
90
|
function shouldSkipSelfUpdate(policy) {
|
|
91
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
91
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkTO72GW5Ijs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkNRBCETWLjs.isCiEnvironment.call(void 0, );
|
|
92
92
|
}
|
|
93
93
|
function isDowngradeAutoUpdateResponse(response) {
|
|
94
94
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
95
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
95
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkLE537GBCjs.SDK_VERSION;
|
|
96
96
|
if (!target) return false;
|
|
97
|
-
return
|
|
97
|
+
return _chunkTO72GW5Ijs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
98
98
|
}
|
|
99
99
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
100
100
|
return new Promise((resolve) => {
|
|
@@ -147,7 +147,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
147
147
|
}
|
|
148
148
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
149
149
|
const target = response.latest;
|
|
150
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
150
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkLE537GBCjs.SDK_VERSION;
|
|
151
151
|
process.stderr.write(
|
|
152
152
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
153
153
|
`
|
|
@@ -155,21 +155,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
155
155
|
return false;
|
|
156
156
|
}
|
|
157
157
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
158
|
-
const plan =
|
|
158
|
+
const plan = _chunkTO72GW5Ijs.resolveUpdatePlan.call(void 0, {
|
|
159
159
|
packageSpec,
|
|
160
160
|
requireVerifiedNpmOwnership: true,
|
|
161
161
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
162
162
|
});
|
|
163
|
-
if (!
|
|
163
|
+
if (!_chunkTO72GW5Ijs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
164
164
|
return false;
|
|
165
165
|
}
|
|
166
166
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
167
167
|
deferredAutoUpdate = async () => {
|
|
168
168
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
169
169
|
};
|
|
170
|
-
if (
|
|
170
|
+
if (_chunkS5LUY3KJjs.isJsonOutputMode.call(void 0, )) {
|
|
171
171
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
172
|
-
|
|
172
|
+
_chunkS5LUY3KJjs.addJsonNotice.call(void 0, {
|
|
173
173
|
code: "sdk_update_queued",
|
|
174
174
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
175
175
|
});
|
|
@@ -182,7 +182,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
182
182
|
return true;
|
|
183
183
|
}
|
|
184
184
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
185
|
-
if (!
|
|
185
|
+
if (!_chunkTO72GW5Ijs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
186
186
|
const autoUpdate = response.auto_update;
|
|
187
187
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
188
188
|
process.stderr.write(
|
|
@@ -195,7 +195,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
195
195
|
event: "started",
|
|
196
196
|
installKind: plan.kind
|
|
197
197
|
});
|
|
198
|
-
const updateResult = await
|
|
198
|
+
const updateResult = await _chunkTO72GW5Ijs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
199
199
|
if (updateResult.status === "skipped_previous_failure") {
|
|
200
200
|
void reportAutoUpdateEvent({
|
|
201
201
|
baseUrl,
|
|
@@ -233,7 +233,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
233
233
|
exitCode: 0
|
|
234
234
|
});
|
|
235
235
|
try {
|
|
236
|
-
await
|
|
236
|
+
await _chunkNRBCETWLjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
237
237
|
mode: "detached",
|
|
238
238
|
update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
|
|
239
239
|
afterCliUpdate: {
|
|
@@ -260,7 +260,7 @@ var _crypto = require('crypto');
|
|
|
260
260
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
261
261
|
var activeToolExecuteCommand = null;
|
|
262
262
|
function progressLine(line) {
|
|
263
|
-
if (!
|
|
263
|
+
if (!_chunkS5LUY3KJjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
264
264
|
}
|
|
265
265
|
function beginToolExecuteCommand() {
|
|
266
266
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQR7VYYNMjs = require('./chunk-QR7VYYNM.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTFEGJEYOjs = require('./chunk-TFEGJEYO.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunkTFEGJEYOjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkQR7VYYNMjs.PlayClient)(
|
|
142
|
+
new (0, _chunkTFEGJEYOjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -1181,18 +1181,16 @@ Related:
|
|
|
1181
1181
|
"plays get": {
|
|
1182
1182
|
core: `
|
|
1183
1183
|
Purpose:
|
|
1184
|
-
Full metadata for a play: revisions, source, triggers, and latest runs.
|
|
1184
|
+
[[cli:Full metadata for a play: revisions, source, triggers, and latest runs.]][[mcp:List or read the saved source files of one Play revision.]]
|
|
1185
1185
|
When:
|
|
1186
|
-
Only when describe is not enough: reading the source (
|
|
1187
|
-
file.play.ts), checking revisions, or auditing a saved play.
|
|
1186
|
+
[[cli:Only when describe is not enough: reading the source (--source --out file.play.ts), checking revisions, or auditing a saved play.]][[mcp:Before editing a saved Play. List its source paths, then read each needed file at the exact returned revision.]]
|
|
1188
1187
|
[[cli:
|
|
1189
1188
|
Input:
|
|
1190
1189
|
The play reference. --source prints or writes the source; --working,
|
|
1191
1190
|
--live, --revision <n> pick which source.
|
|
1192
1191
|
]]
|
|
1193
1192
|
Output (JSON):
|
|
1194
|
-
The play record with revision and trigger metadata; with
|
|
1195
|
-
TypeScript source.
|
|
1193
|
+
[[cli:The play record with revision and trigger metadata; with --source, the TypeScript source.]][[mcp:The revision, entrypoint, and file paths. With a file selected, the source chunk and its next offset.]]
|
|
1196
1194
|
Cost:
|
|
1197
1195
|
Free.
|
|
1198
1196
|
`
|
|
@@ -1250,7 +1248,11 @@ Input:
|
|
|
1250
1248
|
--no-wait returns the run id immediately instead of waiting.
|
|
1251
1249
|
--run-id-file <path> writes the run id as soon as the server accepts it.
|
|
1252
1250
|
--from-run <run-id> starts a new run with that run's retained input and
|
|
1253
|
-
pinned revision instead of a target and input.
|
|
1251
|
+
pinned revision instead of a target and input. With it, --idempotency-key
|
|
1252
|
+
<key> and --input-overrides <json> work as on runs rerun: a key dedups only
|
|
1253
|
+
the exact same rerun intent (source run, resulting input, pinned revision);
|
|
1254
|
+
the same key with a changed input gets a 409 conflict. Use one stable key
|
|
1255
|
+
per exact intent. Without a key each invocation starts a new run.
|
|
1254
1256
|
]]
|
|
1255
1257
|
[[cli:
|
|
1256
1258
|
Output (JSON, printed when the run ends):
|
|
@@ -1498,7 +1500,7 @@ Input:
|
|
|
1498
1500
|
[[cli:
|
|
1499
1501
|
Output (JSON):
|
|
1500
1502
|
kind "run_overview", runUrl (the Play page with this run selected),
|
|
1501
|
-
run {id, playName, status, startedAt, finishedAt, durationMs}, steps[] {id, kind, status, label, progress {total, executed,
|
|
1503
|
+
run {id, playName, status, startedAt, finishedAt, durationMs, retries}, steps[] {id, kind, status, label, progress {total, executed,
|
|
1502
1504
|
reused, failed, completedRows}}, failures.steps[], errorDetails,
|
|
1503
1505
|
rowOutcomes, warnings[], datasets[] {datasetId, name, rowCount, summary,
|
|
1504
1506
|
storage {schema, table}, preview {returnedRows, totalRows, partial, rows}},
|
|
@@ -1528,6 +1530,15 @@ Output fields:
|
|
|
1528
1530
|
run.status queued, running, completed, failed, or stopped. Only
|
|
1529
1531
|
the last three are terminal.
|
|
1530
1532
|
run.activity the current step while running, null when finished.
|
|
1533
|
+
run.retries failure-driven retries since the last resume:
|
|
1534
|
+
platformRecoveries {preCode, postCode} and
|
|
1535
|
+
recoveryOutcome (none, recovering, recovered,
|
|
1536
|
+
exhausted), plus resumeEpoch (runs resume count).
|
|
1537
|
+
Durable waits are not retries and are not counted. A
|
|
1538
|
+
retried attempt may repeat earlier work; these are
|
|
1539
|
+
counts, not proof that anything ran once. Provider
|
|
1540
|
+
retries inside one call are not counted; read them
|
|
1541
|
+
with runs logs <run-id> --kind activity.observed.
|
|
1531
1542
|
steps[].label the step's state in one line, as the dashboard shows
|
|
1532
1543
|
it.
|
|
1533
1544
|
datasets[].summary.reportedPopulation {totalRows, persistedRows,
|
|
@@ -1784,7 +1795,11 @@ When:
|
|
|
1784
1795
|
after fixing its cause, prefer runs resume.
|
|
1785
1796
|
[[cli:
|
|
1786
1797
|
Input:
|
|
1787
|
-
The run id. --json.
|
|
1798
|
+
The run id. --json. --input-overrides <json> changes existing scalar input
|
|
1799
|
+
fields. --idempotency-key <key> makes a retry return the same rerun: a key
|
|
1800
|
+
dedups only the exact same rerun intent (source run, resulting input,
|
|
1801
|
+
pinned revision); the same key with a changed input gets a 409 conflict and
|
|
1802
|
+
starts nothing. Use one stable key per exact intent.
|
|
1788
1803
|
]]
|
|
1789
1804
|
Output (JSON):
|
|
1790
1805
|
The new run's package, as plays run --json prints.
|
|
@@ -2025,17 +2040,17 @@ Avoid:
|
|
|
2025
2040
|
Do not post a link anywhere public: it opens the page for anyone holding it.
|
|
2026
2041
|
`
|
|
2027
2042
|
},
|
|
2028
|
-
|
|
2029
|
-
rolloutFeature: "
|
|
2043
|
+
views: {
|
|
2044
|
+
rolloutFeature: "views",
|
|
2030
2045
|
core: `
|
|
2031
2046
|
Purpose:
|
|
2032
|
-
Show what a Play returns at a fixed URL, https://
|
|
2047
|
+
Show what a Play returns at a fixed URL, https://views.deepline.com/<id>,
|
|
2033
2048
|
and keep every run. Also called a report or dashboard; use it to turn a
|
|
2034
|
-
static
|
|
2049
|
+
static view into one that stays current.
|
|
2035
2050
|
When:
|
|
2036
2051
|
To share results that change: run the Play again (or schedule it) and the
|
|
2037
|
-
|
|
2038
|
-
|
|
2052
|
+
view shows the new run. People can switch to earlier runs in the
|
|
2053
|
+
view itself.
|
|
2039
2054
|
How output is shown:
|
|
2040
2055
|
HTML output, { type: "html", content: "<h1>\u2026</h1>" }, renders as a page in a
|
|
2041
2056
|
sandbox. Scripts and https requests work; links to other sites ask first.
|
|
@@ -2044,16 +2059,16 @@ How output is shown:
|
|
|
2044
2059
|
audio, video, files, graphs, and readable values for everything else; the
|
|
2045
2060
|
same conventions as Deepline's browser extension.
|
|
2046
2061
|
The sequence:
|
|
2047
|
-
1. Create it: [[
|
|
2062
|
+
1. Create it: [[views create --name <name> --play <play>]]. The output
|
|
2048
2063
|
prints the URL and id. --input saves the input Refresh runs the Play with.
|
|
2049
|
-
2. Fill it in: [[
|
|
2064
|
+
2. Fill it in: [[views refresh <id>]] runs the Play. A scheduled Play
|
|
2050
2065
|
refreshes it automatically; every run of the Play appears in it.
|
|
2051
2066
|
3. Share it: the URL opens for workspace members by default.
|
|
2052
|
-
[[
|
|
2067
|
+
[[views set-access <id> public]] lets anyone with the URL open it and
|
|
2053
2068
|
see the output of every run of its Play, including runs started outside
|
|
2054
|
-
the
|
|
2055
|
-
4. Manage it: [[
|
|
2056
|
-
[[
|
|
2069
|
+
the view (by hand, on a schedule, or from the CLI).
|
|
2070
|
+
4. Manage it: [[views list]], [[views get <id>]],
|
|
2071
|
+
[[views edit <id>]], [[views runs <id>]], [[views delete <id>]].
|
|
2057
2072
|
Buttons in HTML output:
|
|
2058
2073
|
An HTML output may declare actions beside its content,
|
|
2059
2074
|
actions: [{ id, type: "run_play", play, input? }], and use
|
|
@@ -2061,20 +2076,20 @@ Buttons in HTML output:
|
|
|
2061
2076
|
opens a launch form where a signed-in member reviews the inputs and starts
|
|
2062
2077
|
the run. Plays in this workspace only; never for public visitors.
|
|
2063
2078
|
Permissions:
|
|
2064
|
-
[[
|
|
2065
|
-
refresh; admins change them with [[
|
|
2079
|
+
[[views permissions]] shows who may create, edit, delete, set access, and
|
|
2080
|
+
refresh; admins change them with [[views permissions set]].
|
|
2066
2081
|
Cost:
|
|
2067
|
-
|
|
2082
|
+
Views are free. Refresh and buttons start ordinary Play runs.
|
|
2068
2083
|
Avoid:
|
|
2069
|
-
Do not return secrets from a Play behind a public
|
|
2070
|
-
new
|
|
2084
|
+
Do not return secrets from a Play behind a public view, in any run. Do not create a
|
|
2085
|
+
new view per run; one view keeps every run.
|
|
2071
2086
|
`
|
|
2072
2087
|
},
|
|
2073
|
-
"
|
|
2074
|
-
rolloutFeature: "
|
|
2088
|
+
"views create": {
|
|
2089
|
+
rolloutFeature: "views",
|
|
2075
2090
|
core: `
|
|
2076
2091
|
Purpose:
|
|
2077
|
-
Create
|
|
2092
|
+
Create a view that shows a Play's runs at a fixed URL.
|
|
2078
2093
|
[[cli:
|
|
2079
2094
|
Input:
|
|
2080
2095
|
--name <name> (1-120 characters). --play <play>: a Play in this workspace,
|
|
@@ -2084,7 +2099,7 @@ Input:
|
|
|
2084
2099
|
Output (JSON):
|
|
2085
2100
|
id, name, url, play, input, access (workspace).
|
|
2086
2101
|
Errors (code):
|
|
2087
|
-
name_invalid, play_invalid, input_invalid, forbidden,
|
|
2102
|
+
name_invalid, play_invalid, input_invalid, forbidden, views_not_enabled.
|
|
2088
2103
|
Cost:
|
|
2089
2104
|
Free.
|
|
2090
2105
|
`
|
|
@@ -24,14 +24,14 @@ import {
|
|
|
24
24
|
import {
|
|
25
25
|
describePlayDetail,
|
|
26
26
|
describePlayListItem
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-PSX3WHIH.mjs";
|
|
28
28
|
import {
|
|
29
29
|
ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER,
|
|
30
30
|
COORDINATOR_INTERNAL_TOKEN_HEADER,
|
|
31
31
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
32
32
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
33
33
|
SDK_API_MAJOR
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-OWQF6WVH.mjs";
|
|
35
35
|
import {
|
|
36
36
|
CustomerDbQueryOutcomeUnknownError
|
|
37
37
|
} from "./chunk-QNHHZ63P.mjs";
|
|
@@ -3747,75 +3747,75 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
3747
3747
|
);
|
|
3748
3748
|
}
|
|
3749
3749
|
// ——————————————————————————————————————————————————————————
|
|
3750
|
-
//
|
|
3750
|
+
// Views
|
|
3751
3751
|
// ——————————————————————————————————————————————————————————
|
|
3752
|
-
/** List this workspace's
|
|
3753
|
-
async
|
|
3752
|
+
/** List this workspace's views, most recently changed first. */
|
|
3753
|
+
async listViews(input) {
|
|
3754
3754
|
const params = new URLSearchParams();
|
|
3755
3755
|
if (input?.cursor) params.set("cursor", input.cursor);
|
|
3756
3756
|
if (input?.limit) params.set("limit", String(input.limit));
|
|
3757
3757
|
const query = params.size > 0 ? `?${params}` : "";
|
|
3758
|
-
return await this.http.get(`/api/v2/
|
|
3758
|
+
return await this.http.get(`/api/v2/views${query}`);
|
|
3759
3759
|
}
|
|
3760
|
-
/** One
|
|
3761
|
-
async
|
|
3760
|
+
/** One view and what the caller may do with it. */
|
|
3761
|
+
async getView(id) {
|
|
3762
3762
|
return await this.http.get(
|
|
3763
|
-
`/api/v2/
|
|
3763
|
+
`/api/v2/views/${encodeURIComponent(id)}`
|
|
3764
3764
|
);
|
|
3765
3765
|
}
|
|
3766
|
-
/** Create
|
|
3767
|
-
async
|
|
3768
|
-
return await this.http.post("/api/v2/
|
|
3766
|
+
/** Create a view that shows a Play's runs at a fixed URL. */
|
|
3767
|
+
async createView(input) {
|
|
3768
|
+
return await this.http.post("/api/v2/views", input);
|
|
3769
3769
|
}
|
|
3770
3770
|
/** Change the name, description, Play, or saved input. */
|
|
3771
|
-
async
|
|
3771
|
+
async updateView(id, input) {
|
|
3772
3772
|
return await this.http.patch(
|
|
3773
|
-
`/api/v2/
|
|
3773
|
+
`/api/v2/views/${encodeURIComponent(id)}`,
|
|
3774
3774
|
input
|
|
3775
3775
|
);
|
|
3776
3776
|
}
|
|
3777
|
-
/** Who can open
|
|
3778
|
-
async
|
|
3777
|
+
/** Who can open a view: workspace members, or anyone with its URL. */
|
|
3778
|
+
async setViewAccess(id, access) {
|
|
3779
3779
|
return await this.http.post(
|
|
3780
|
-
`/api/v2/
|
|
3780
|
+
`/api/v2/views/${encodeURIComponent(id)}/access`,
|
|
3781
3781
|
{ access }
|
|
3782
3782
|
);
|
|
3783
3783
|
}
|
|
3784
|
-
/** Every run of the
|
|
3785
|
-
async
|
|
3784
|
+
/** Every run of the view's Play, newest first. */
|
|
3785
|
+
async listViewRuns(id, input) {
|
|
3786
3786
|
const params = new URLSearchParams();
|
|
3787
3787
|
if (input?.limit) params.set("limit", String(input.limit));
|
|
3788
3788
|
if (input?.offset) params.set("offset", String(input.offset));
|
|
3789
3789
|
const query = params.size > 0 ? `?${params}` : "";
|
|
3790
3790
|
return await this.http.get(
|
|
3791
|
-
`/api/v2/
|
|
3791
|
+
`/api/v2/views/${encodeURIComponent(id)}/runs${query}`
|
|
3792
3792
|
);
|
|
3793
3793
|
}
|
|
3794
3794
|
/**
|
|
3795
|
-
* Refresh
|
|
3796
|
-
* goes through the normal run API; the
|
|
3795
|
+
* Refresh a view: run its Play with its saved input (or `input`). The run
|
|
3796
|
+
* goes through the normal run API; the view shows it when it finishes.
|
|
3797
3797
|
*/
|
|
3798
|
-
async
|
|
3799
|
-
const intent = await this.http.post(`/api/v2/
|
|
3798
|
+
async refreshView(id, input) {
|
|
3799
|
+
const intent = await this.http.post(`/api/v2/views/${encodeURIComponent(id)}/refresh`, {});
|
|
3800
3800
|
const started = await this.startPlayRun({
|
|
3801
3801
|
name: intent.play,
|
|
3802
3802
|
input: input ?? intent.input
|
|
3803
3803
|
});
|
|
3804
|
-
return { ...started,
|
|
3804
|
+
return { ...started, view: intent.id };
|
|
3805
3805
|
}
|
|
3806
|
-
/** Delete
|
|
3807
|
-
async
|
|
3806
|
+
/** Delete a view. Its Play and runs are not touched. */
|
|
3807
|
+
async deleteView(id) {
|
|
3808
3808
|
return await this.http.delete(
|
|
3809
|
-
`/api/v2/
|
|
3809
|
+
`/api/v2/views/${encodeURIComponent(id)}`
|
|
3810
3810
|
);
|
|
3811
3811
|
}
|
|
3812
|
-
/** The workspace
|
|
3813
|
-
async
|
|
3814
|
-
return await this.http.get("/api/v2/
|
|
3812
|
+
/** The workspace view rules and what the caller may do. */
|
|
3813
|
+
async getViewPermissions() {
|
|
3814
|
+
return await this.http.get("/api/v2/views/permissions");
|
|
3815
3815
|
}
|
|
3816
|
-
/** Change
|
|
3817
|
-
async
|
|
3818
|
-
return await this.http.put("/api/v2/
|
|
3816
|
+
/** Change view rules. Admins only; omitted verbs keep their rule. */
|
|
3817
|
+
async setViewPermissions(rules) {
|
|
3818
|
+
return await this.http.put("/api/v2/views/permissions", { rules });
|
|
3819
3819
|
}
|
|
3820
3820
|
/** List secret metadata visible to the current workspace. */
|
|
3821
3821
|
async listSecrets() {
|
|
@@ -4835,6 +4835,9 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
4835
4835
|
if (options?.performance === true) {
|
|
4836
4836
|
params.append("include", "performance");
|
|
4837
4837
|
}
|
|
4838
|
+
if (options?.retries === true) {
|
|
4839
|
+
params.append("include", "retries");
|
|
4840
|
+
}
|
|
4838
4841
|
const query = params.size > 0 ? `?${params.toString()}` : "";
|
|
4839
4842
|
const response = await this.http.get(
|
|
4840
4843
|
`/api/v2/runs/${encodeURIComponent(runId)}${query}`,
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkV2GN4PLKjs = require('./chunk-V2GN4PLK.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkWA3FG7DHjs = require('./chunk-WA3FG7DH.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkS5LUY3KJjs = require('./chunk-S5LUY3KJ.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkTFEGJEYOjs = require('./chunk-TFEGJEYO.js');
|
|
18
18
|
|
|
19
19
|
// src/cli/commands/search.ts
|
|
20
20
|
var _commander = require('commander');
|
|
@@ -24,7 +24,7 @@ var _fs = require('fs');
|
|
|
24
24
|
var _path = require('path');
|
|
25
25
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
26
26
|
function lastSearchPath() {
|
|
27
|
-
return _path.join.call(void 0,
|
|
27
|
+
return _path.join.call(void 0, _chunkTFEGJEYOjs.sdkCliStateDirPath.call(void 0, _chunkTFEGJEYOjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
28
28
|
}
|
|
29
29
|
function rememberSearchRef(searchRef) {
|
|
30
30
|
writeSearchRefs({ searchRef });
|
|
@@ -134,9 +134,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
134
134
|
console.error("--summary-width must be an integer of at least 2.");
|
|
135
135
|
return 1;
|
|
136
136
|
}
|
|
137
|
-
const client = new (0,
|
|
137
|
+
const client = new (0, _chunkV2GN4PLKjs.DeeplineClient)();
|
|
138
138
|
const json = options.json === true;
|
|
139
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
139
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-XC2AVBFX.js")));
|
|
140
140
|
const searches = [];
|
|
141
141
|
const chunks = [];
|
|
142
142
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -159,7 +159,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
159
159
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
160
160
|
if (!multiple) {
|
|
161
161
|
if (searchRef) rememberSearchRef(searchRef);
|
|
162
|
-
|
|
162
|
+
_chunkS5LUY3KJjs.printCommandEnvelope.call(void 0, result, { json, text });
|
|
163
163
|
return 0;
|
|
164
164
|
}
|
|
165
165
|
searches.push({ ...result, query });
|
|
@@ -173,8 +173,8 @@ ${text}`);
|
|
|
173
173
|
}
|
|
174
174
|
} catch (error) {
|
|
175
175
|
if (!multiple) throw error;
|
|
176
|
-
const payload =
|
|
177
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
176
|
+
const payload = _chunkS5LUY3KJjs.errorToJsonPayload.call(void 0, error);
|
|
177
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkWA3FG7DHjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
178
178
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
179
179
|
if (!json) {
|
|
180
180
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -186,7 +186,7 @@ Search failed.
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
rememberSearchRefsByTool(refs);
|
|
189
|
-
|
|
189
|
+
_chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
|
|
190
190
|
{ searches },
|
|
191
191
|
{
|
|
192
192
|
json,
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-GCLNX72G.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-U4M32NFS.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkNRBCETWLjs = require('./chunk-NRBCETWL.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkNRBCETWLjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-U4M32NFS.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OWQF6WVH.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
readToolUpstreamResponse,
|