deepline 0.3.524 → 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 +8 -0
- 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/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/play-runtime/context.ts +38 -0
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +94 -9
- 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-QXJMVLPN.mjs → auth-TH3VGYBK.mjs} +5 -5
- package/dist/cli/{billing-SNSIFM4B.mjs → billing-CMHFI2LN.mjs} +8 -8
- package/dist/cli/{billing-N5R4HTHT.js → billing-TWKVUFU2.js} +83 -83
- package/dist/cli/{chunk-TZTWH53O.js → chunk-2WFVLOB7.js} +1 -1
- package/dist/cli/{chunk-BXVYVIMB.js → chunk-4UWXFXQF.js} +3 -3
- package/dist/cli/{chunk-II3BJKCH.mjs → chunk-5BSGWIQD.mjs} +2 -2
- package/dist/cli/{chunk-WOEPDSO3.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-RIX26ZJD.mjs → chunk-7C4F4TLR.mjs} +1 -1
- package/dist/cli/{chunk-RTDX5NNN.mjs → chunk-7OF3A4KJ.mjs} +3 -3
- package/dist/cli/{chunk-2ZWNIS54.js → chunk-AVDEYOVP.js} +269 -269
- package/dist/cli/{chunk-GJYLC4JB.mjs → chunk-BNH4Y35W.mjs} +2 -2
- package/dist/cli/{chunk-I75VRGQG.js → chunk-CKTRQSRA.js} +22 -22
- package/dist/cli/{chunk-R457IMHJ.mjs → chunk-CLTL7ZJI.mjs} +1 -1
- package/dist/cli/{chunk-7E6B7VMS.js → chunk-CQSANB3V.js} +5 -5
- package/dist/cli/{chunk-7OQGZBDG.js → chunk-CWRL6IQP.js} +13 -6
- package/dist/cli/{chunk-HLAFGQPV.mjs → chunk-CZNEQMJR.mjs} +5 -2
- package/dist/cli/{chunk-7QM6DNR4.js → chunk-DYS3KWYF.js} +11 -11
- package/dist/cli/{chunk-GMO3JDZA.mjs → chunk-EP6YH6QJ.mjs} +2 -2
- package/dist/cli/{chunk-V4RJ57MA.js → chunk-ESWM2JW4.js} +2 -2
- package/dist/cli/{chunk-YGOI5ZE5.mjs → chunk-ETHVJ2ZE.mjs} +1 -1
- package/dist/cli/{chunk-3WWTBQHC.mjs → chunk-GCLNX72G.mjs} +2 -2
- package/dist/cli/{chunk-R2VZVHJP.mjs → chunk-GESIFFQX.mjs} +1 -1
- package/dist/cli/{chunk-BXIQD2IY.mjs → chunk-IMO3HXWZ.mjs} +1 -1
- package/dist/cli/{chunk-2ZX7XSAQ.mjs → chunk-JVWSIA2V.mjs} +4 -4
- package/dist/cli/{chunk-YXVYPYIP.js → chunk-KBOSALBI.js} +10 -10
- package/dist/cli/{chunk-RUULUCBP.js → chunk-KEZ3KBWW.js} +10 -10
- package/dist/cli/{chunk-YCIXY66B.mjs → chunk-KPINGHIF.mjs} +2 -2
- package/dist/cli/{chunk-KKPBCB6D.mjs → chunk-LAMGJQDY.mjs} +2 -2
- package/dist/cli/{chunk-OCT4SUJA.js → chunk-LE537GBC.js} +13 -6
- package/dist/cli/{chunk-HTYT2OHB.js → chunk-LXKH4MKH.js} +6 -6
- package/dist/cli/{chunk-EO55Y4QW.mjs → chunk-M43ZYNDA.mjs} +5 -5
- package/dist/cli/{chunk-PFKKZVFK.js → chunk-MHBSRNI7.js} +41 -41
- package/dist/cli/{chunk-ANKD3AIR.js → chunk-MRUFGOJR.js} +2 -2
- package/dist/cli/{chunk-Z4MOEQSY.js → chunk-N4MMU3QF.js} +21 -21
- package/dist/cli/{chunk-ATATJNJ6.js → chunk-NB2ECLQE.js} +9 -9
- package/dist/cli/{chunk-YKFW3NNA.mjs → chunk-NO4URKKT.mjs} +5 -5
- package/dist/cli/{chunk-66N76YZG.js → chunk-NRBCETWL.js} +44 -44
- package/dist/cli/{chunk-OQ5G7RFQ.mjs → chunk-OWQF6WVH.mjs} +10 -3
- package/dist/cli/{chunk-CH7JVSA7.mjs → chunk-OXFIJYN3.mjs} +8 -8
- package/dist/cli/{chunk-EQNAQENZ.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-V7KUBDEB.js → chunk-QR7VYYNM.js} +144 -141
- package/dist/cli/{chunk-KSQXBLRW.mjs → chunk-RMZ6CISE.mjs} +3 -3
- package/dist/cli/{chunk-GTGJBZVH.js → chunk-S5LUY3KJ.js} +7 -7
- package/dist/cli/{chunk-SF4QJVBE.js → chunk-TFEGJEYO.js} +3 -3
- package/dist/cli/{chunk-VHTVXS5A.js → chunk-TO72GW5I.js} +16 -16
- package/dist/cli/{chunk-WCVIPZWX.mjs → chunk-TXSBPBHB.mjs} +5 -5
- package/dist/cli/{chunk-MW3YMPD2.mjs → chunk-U4M32NFS.mjs} +1 -1
- package/dist/cli/{chunk-NUC7ZVDG.mjs → chunk-UQYKSOGO.mjs} +5 -5
- package/dist/cli/{chunk-536TGWR6.mjs → chunk-UXF3ODJJ.mjs} +2 -2
- package/dist/cli/{chunk-LRWDZDBS.js → chunk-V2GN4PLK.js} +5 -5
- package/dist/cli/{chunk-SMWFOGUT.js → chunk-V65J64FL.js} +53 -53
- package/dist/cli/{chunk-V2YIBBVT.mjs → chunk-VYIAWAKJ.mjs} +1 -1
- package/dist/cli/{chunk-JDIQBZ6O.js → chunk-WA3FG7DH.js} +14 -14
- package/dist/cli/{chunk-XURWFEXM.mjs → chunk-WEYFSBAD.mjs} +13 -6
- package/dist/cli/{chunk-T43FF5PF.mjs → chunk-WGRDOPAK.mjs} +2 -2
- package/dist/cli/{chunk-NTLBZUHD.js → chunk-XYIECA7M.js} +4 -2
- package/dist/cli/{chunk-FXTV5B3D.mjs → chunk-YC7FKAJ4.mjs} +12 -12
- package/dist/cli/{chunk-BN5VKY4X.js → chunk-ZS2WHWWL.js} +7 -7
- package/dist/cli/{chunk-PFKWKWUJ.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-Q2LWKXAV.js → csv-5JHWVJ5N.js} +13 -13
- package/dist/cli/{csv-HT2JBCW2.mjs → csv-OO554TPX.mjs} +4 -4
- package/dist/cli/{db-XEV4WEE4.js → db-CYQJ4OXF.js} +28 -28
- package/dist/cli/{db-CS3XQ2LX.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-L6XFG5MP.mjs → executions-F34DORW6.mjs} +7 -7
- package/dist/cli/{executions-JCC34WAD.js → executions-K7EGCRKX.js} +9 -9
- package/dist/cli/{feedback-AWBDO5I6.mjs → feedback-GQHKCS66.mjs} +5 -5
- package/dist/cli/{feedback-HV2M2G7N.js → feedback-NOQVCA3Q.js} +10 -10
- package/dist/cli/{git-S4LRXTRX.mjs → git-2EEITXDB.mjs} +5 -5
- package/dist/cli/git-UU4YFJ2Q.js +25 -0
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-7MOKBL4O.mjs → legacy-noops-JHMY5XRB.mjs} +6 -6
- package/dist/cli/{legacy-noops-RGSZUD6V.js → legacy-noops-RFNHQ7RG.js} +9 -9
- package/dist/cli/{monitors-XQNXDZPQ.mjs → monitors-RDMP6SPZ.mjs} +8 -8
- package/dist/cli/{monitors-JEFM2C5W.js → monitors-UKRZ4BDK.js} +101 -101
- package/dist/cli/{org-GYLA5V32.js → org-OX7TYTHV.js} +87 -87
- package/dist/cli/{org-KTMJZGTN.mjs → org-RF3G4KMB.mjs} +7 -7
- package/dist/cli/{pages-WOMU2T2O.mjs → pages-FBM3MGSP.mjs} +7 -7
- package/dist/cli/{pages-RY4U7OCL.js → pages-MKQT5LFV.js} +19 -19
- package/dist/cli/{play-2Q6MWJ3D.js → play-OOVX2DMV.js} +756 -707
- package/dist/cli/{play-KOYGGNYS.mjs → play-YWC2UORM.mjs} +151 -102
- package/dist/cli/{providers-HOIRHMN2.js → providers-2CGZYLER.js} +10 -10
- package/dist/cli/{providers-7YKDITJC.mjs → providers-3PEQESIU.mjs} +7 -7
- package/dist/cli/{quickstart-OWCJOSQA.js → quickstart-6AANHKQZ.js} +6 -6
- package/dist/cli/{quickstart-RDXHSMVX.mjs → quickstart-KVB36SOW.mjs} +4 -4
- package/dist/cli/{run-MT2ABKO5.js → run-NJ7WV5TK.js} +46 -46
- package/dist/cli/{run-RT73NDP5.mjs → run-QC23NRKO.mjs} +27 -27
- package/dist/cli/{search-CJPKIGSA.mjs → search-7BMFFZI2.mjs} +9 -9
- package/dist/cli/search-NH4DTXUK.js +33 -0
- package/dist/cli/{search-output-AREMA544.mjs → search-output-CALZ4ZI2.mjs} +4 -4
- package/dist/cli/{search-output-OSBZ7WK6.js → search-output-XC2AVBFX.js} +6 -6
- package/dist/cli/{secrets-BTIY2FEJ.mjs → secrets-7ZHA57DI.mjs} +7 -7
- package/dist/cli/{secrets-OV6KH633.js → secrets-VHU4B2D4.js} +16 -16
- package/dist/cli/sessions-2TE5JWVP.js +18 -0
- package/dist/cli/{sessions-3CO3ZFOD.mjs → sessions-YYULWFZE.mjs} +6 -6
- package/dist/cli/{settings-7BQIC7QN.mjs → settings-AVY4NNHI.mjs} +14 -14
- package/dist/cli/{settings-LBIECYDB.js → settings-WV77QJGD.js} +87 -87
- package/dist/cli/{setup-XPTSNNES.mjs → setup-AOUJ3RMU.mjs} +10 -10
- package/dist/cli/{setup-QZE7QR3F.js → setup-GE5TLTC4.js} +50 -50
- package/dist/cli/{skills-TGGKIQLT.mjs → skills-FVWO2G66.mjs} +8 -8
- package/dist/cli/skills-OL7LD6QX.js +37 -0
- package/dist/cli/{tools-MKIFX2TQ.mjs → tools-URE655B4.mjs} +20 -20
- package/dist/cli/tools-VQ5JO6DI.js +57 -0
- package/dist/cli/{update-5R3D3WNH.mjs → update-5B4G4345.mjs} +10 -10
- package/dist/cli/update-7ZOIOTZN.js +35 -0
- package/dist/cli/{views-VHKDHHUP.mjs → views-GSECJ5IK.mjs} +7 -7
- package/dist/cli/{views-VPWEINIA.js → views-IC762HEQ.js} +19 -19
- package/dist/cli/{workflow-D5DF65N6.mjs → workflow-6UQM565I.mjs} +8 -8
- package/dist/cli/{workflow-7K2VEQ4V.js → workflow-EME7ZEOV.js} +18 -18
- package/dist/{client-C5_6W8yd.d.mts → client-Bd2meveV.d.mts} +1 -1
- package/dist/{client-iXW4TOat.d.ts → client-CBCVhL8U.d.ts} +1 -1
- package/dist/{client-core-Dob428Z4.d.mts → client-core-CGj8V9mw.d.mts} +67 -0
- package/dist/{client-core-B-GPfmaC.d.ts → client-core-CsRRWCFy.d.ts} +67 -0
- 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/auth-OKPHHMMP.js +0 -43
- package/dist/cli/describe-5G5NXO5E.js +0 -50
- package/dist/cli/describe-OUTXLDGZ.mjs +0 -50
- package/dist/cli/git-GDPTG52F.js +0 -25
- package/dist/cli/search-7VBA6IGS.js +0 -33
- package/dist/cli/sessions-B3WNEWRW.js +0 -18
- package/dist/cli/skills-TXBRTWEV.js +0 -37
- package/dist/cli/tools-RZJV4X3J.js +0 -57
- package/dist/cli/update-YWGGPWUA.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
|
`
|
|
@@ -1502,7 +1500,7 @@ Input:
|
|
|
1502
1500
|
[[cli:
|
|
1503
1501
|
Output (JSON):
|
|
1504
1502
|
kind "run_overview", runUrl (the Play page with this run selected),
|
|
1505
|
-
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,
|
|
1506
1504
|
reused, failed, completedRows}}, failures.steps[], errorDetails,
|
|
1507
1505
|
rowOutcomes, warnings[], datasets[] {datasetId, name, rowCount, summary,
|
|
1508
1506
|
storage {schema, table}, preview {returnedRows, totalRows, partial, rows}},
|
|
@@ -1532,6 +1530,15 @@ Output fields:
|
|
|
1532
1530
|
run.status queued, running, completed, failed, or stopped. Only
|
|
1533
1531
|
the last three are terminal.
|
|
1534
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.
|
|
1535
1542
|
steps[].label the step's state in one line, as the dashboard shows
|
|
1536
1543
|
it.
|
|
1537
1544
|
datasets[].summary.reportedPopulation {totalRows, persistedRows,
|
|
@@ -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";
|
|
@@ -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,
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-M43ZYNDA.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-GCLNX72G.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-U4M32NFS.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-OWQF6WVH.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
30
|
} from "./chunk-5JPKRDFC.mjs";
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkS5LUY3KJjs = require('./chunk-S5LUY3KJ.js');
|
|
12
12
|
|
|
13
13
|
// src/cli/describe-options.ts
|
|
14
14
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -26,7 +26,7 @@ function addDescribeOptions(command, options = {}) {
|
|
|
26
26
|
"Show only the in-play example, and explain how it takes inputs and returns outputs"
|
|
27
27
|
).option("--no-example", "Hide the run examples").option(
|
|
28
28
|
"--full-schema",
|
|
29
|
-
`Print every field: a long schema unfolded (over ${
|
|
29
|
+
`Print every field: a long schema unfolded (over ${_chunkXYIECA7Mjs.SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
|
|
30
30
|
).option(
|
|
31
31
|
"--fields <names>",
|
|
32
32
|
"Show only these fields, comma-separated, plus every required input"
|
|
@@ -249,7 +249,7 @@ function projectRunDatasetCell(value) {
|
|
|
249
249
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
250
250
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
251
251
|
if (typeof logicalValue === "object") {
|
|
252
|
-
return
|
|
252
|
+
return _chunkS5LUY3KJjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
253
253
|
}
|
|
254
254
|
return logicalValue;
|
|
255
255
|
}
|
|
@@ -641,7 +641,7 @@ function csvText(rows, columns = []) {
|
|
|
641
641
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
642
642
|
columns
|
|
643
643
|
});
|
|
644
|
-
return
|
|
644
|
+
return _chunkS5LUY3KJjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
645
645
|
}
|
|
646
646
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
647
647
|
let temp;
|
|
@@ -768,7 +768,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
768
768
|
};
|
|
769
769
|
if (options.receiptOut && !skipReceiptFile) {
|
|
770
770
|
persist(options.receiptOut, jsonText(receipt));
|
|
771
|
-
|
|
771
|
+
_chunkS5LUY3KJjs.markJsonOutputHandled.call(void 0, );
|
|
772
772
|
} else {
|
|
773
773
|
printReceipt(receipt, options, {
|
|
774
774
|
data: hasData ? result.data : void 0,
|
|
@@ -871,9 +871,9 @@ function annotated(schema, values) {
|
|
|
871
871
|
function shapeLines(title, data) {
|
|
872
872
|
const schema = annotated(observedSchema(data), [data]);
|
|
873
873
|
const block = (heading, fieldSchema) => {
|
|
874
|
-
const { lines, folded } =
|
|
874
|
+
const { lines, folded } = _chunkXYIECA7Mjs.fieldBlockLines.call(void 0,
|
|
875
875
|
heading,
|
|
876
|
-
|
|
876
|
+
_chunkXYIECA7Mjs.schemaFields.call(void 0, fieldSchema)
|
|
877
877
|
);
|
|
878
878
|
return [
|
|
879
879
|
...lines,
|
|
@@ -1027,8 +1027,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1027
1027
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1028
1028
|
` : receiptText(receipt, options, extra);
|
|
1029
1029
|
if (options.receiptOut !== void 0) {
|
|
1030
|
-
|
|
1031
|
-
|
|
1030
|
+
_chunkS5LUY3KJjs.writeRawStderr.call(void 0, text);
|
|
1031
|
+
_chunkS5LUY3KJjs.markJsonOutputHandled.call(void 0, );
|
|
1032
1032
|
} else {
|
|
1033
1033
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1034
1034
|
}
|
|
@@ -1,13 +1,13 @@
|
|
|
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 _chunkP62LON53js = require('./chunk-P62LON53.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkS5LUY3KJjs = require('./chunk-S5LUY3KJ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkLE537GBCjs = require('./chunk-LE537GBC.js');
|
|
11
11
|
|
|
12
12
|
// src/cli/commands/sessions.ts
|
|
13
13
|
|
|
@@ -142,7 +142,7 @@ function currentSessionFile(agent) {
|
|
|
142
142
|
const newestFirst = listSessionFiles(agent).sort(
|
|
143
143
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
144
144
|
);
|
|
145
|
-
const sessionId =
|
|
145
|
+
const sessionId = _chunkLE537GBCjs.agentSessionIdFromEnvironment.call(void 0,
|
|
146
146
|
process.env,
|
|
147
147
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
148
148
|
);
|
|
@@ -454,7 +454,7 @@ function buildSessionUploadContent(raw) {
|
|
|
454
454
|
return { encodedContent: encoded, needsChunking: true };
|
|
455
455
|
}
|
|
456
456
|
async function uploadPayload(path, payload) {
|
|
457
|
-
const { http } =
|
|
457
|
+
const { http } = _chunkS5LUY3KJjs.getAuthedHttpClient.call(void 0, );
|
|
458
458
|
return await http.post(path, payload);
|
|
459
459
|
}
|
|
460
460
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -487,7 +487,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
487
487
|
...options.rating ? { rating: options.rating } : {}
|
|
488
488
|
});
|
|
489
489
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
490
|
-
|
|
490
|
+
_chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
|
|
491
491
|
{
|
|
492
492
|
...response,
|
|
493
493
|
ok: true,
|
|
@@ -508,7 +508,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
508
508
|
);
|
|
509
509
|
}
|
|
510
510
|
async function handleSessionsSend(options) {
|
|
511
|
-
if (
|
|
511
|
+
if (_chunkP62LON53js.rejectRestrictedFeedback.call(void 0, options)) return;
|
|
512
512
|
const rating = parseSessionRating(options.rating);
|
|
513
513
|
if (options.file) {
|
|
514
514
|
const filePath = _path.resolve.call(void 0, options.file);
|
|
@@ -520,7 +520,7 @@ async function handleSessionsSend(options) {
|
|
|
520
520
|
filename: _path.basename.call(void 0, filePath),
|
|
521
521
|
...rating ? { rating } : {}
|
|
522
522
|
});
|
|
523
|
-
|
|
523
|
+
_chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
|
|
524
524
|
{
|
|
525
525
|
...response2,
|
|
526
526
|
ok: true,
|
|
@@ -570,7 +570,7 @@ async function handleSessionsSend(options) {
|
|
|
570
570
|
...rating ? { rating } : {}
|
|
571
571
|
});
|
|
572
572
|
const sessionIds = built.map((session) => session.sessionId);
|
|
573
|
-
|
|
573
|
+
_chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
|
|
574
574
|
{
|
|
575
575
|
...response,
|
|
576
576
|
ok: true,
|
|
@@ -678,7 +678,7 @@ ${refreshMeta}
|
|
|
678
678
|
</body>
|
|
679
679
|
</html>`;
|
|
680
680
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
681
|
-
|
|
681
|
+
_chunkS5LUY3KJjs.printCommandEnvelope.call(void 0,
|
|
682
682
|
{
|
|
683
683
|
ok: true,
|
|
684
684
|
file: outputPath,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CZNEQMJR.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-U4M32NFS.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CZNEQMJR.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-U4M32NFS.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|