deepline 0.3.519 → 0.3.520
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/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +160 -2
- package/dist/bundling-sources/shared_libs/play-runtime/execute-server-timing.ts +22 -0
- package/dist/cli/{artifacts-YRKH7KNC.js → artifacts-4DSPSIU5.js} +18 -18
- package/dist/cli/{artifacts-ZZULJ6X5.mjs → artifacts-D6PU7SBC.mjs} +6 -6
- package/dist/cli/{auth-WU2BDO3T.mjs → auth-MXKNPUXW.mjs} +5 -5
- package/dist/cli/auth-TH4JV6BH.js +43 -0
- package/dist/cli/{billing-DG62VVXW.mjs → billing-SQ26NKGH.mjs} +6 -6
- package/dist/cli/{billing-MUMMBMQK.js → billing-WEYCNJIR.js} +79 -79
- package/dist/cli/{chunk-XUCAH3LN.js → chunk-2BJILUE3.js} +10 -10
- package/dist/cli/{chunk-UB2REJPL.mjs → chunk-2EDGA7OE.mjs} +2 -2
- package/dist/cli/{chunk-ZQ23WQP3.js → chunk-3YHS4BLB.js} +2 -2
- package/dist/cli/{chunk-ORNLTNBN.js → chunk-4VR5OTYP.js} +44 -44
- package/dist/cli/{chunk-F6XD4CRW.js → chunk-5ECMRQCL.js} +1 -1
- package/dist/cli/{chunk-N3LUYBOB.mjs → chunk-5TEXJM6F.mjs} +10 -10
- package/dist/cli/{chunk-NIJE62ZD.mjs → chunk-6GI7BYSL.mjs} +1 -1
- package/dist/cli/{chunk-NH22WUUG.mjs → chunk-6T2LB43P.mjs} +2 -2
- package/dist/cli/{chunk-IMIHYCJ5.mjs → chunk-6VY2SJ6B.mjs} +5 -5
- package/dist/cli/{chunk-4ECU5DI3.js → chunk-6XJA23MZ.js} +26 -26
- package/dist/cli/{chunk-P62S3ZMS.js → chunk-74MOIEDC.js} +11 -11
- package/dist/cli/{chunk-GO467AXG.js → chunk-7QAX5VBT.js} +41 -41
- package/dist/cli/{chunk-EMV6EHK2.js → chunk-7VJKHJY7.js} +9 -9
- package/dist/cli/{chunk-AL7FDMD6.mjs → chunk-A5VR463F.mjs} +1 -1
- package/dist/cli/{chunk-RQDD2VV3.js → chunk-AM7HMWNA.js} +5 -5
- package/dist/cli/{chunk-RHQKDHCX.mjs → chunk-ASGGZ6BI.mjs} +2 -2
- package/dist/cli/{chunk-S7R4O62I.js → chunk-AVW2LKRF.js} +6 -6
- package/dist/cli/{chunk-TT2XB433.js → chunk-BHAP6FIZ.js} +4 -4
- package/dist/cli/{chunk-52DFTRVC.js → chunk-D5VTWJ7K.js} +16 -16
- package/dist/cli/{chunk-YRU46P7H.mjs → chunk-DQQ6FDE6.mjs} +1 -1
- package/dist/cli/{chunk-C7ZD4LXZ.js → chunk-FWGTBR3W.js} +2 -2
- package/dist/cli/{chunk-G2QD575P.js → chunk-GVTHFDKN.js} +6 -6
- package/dist/cli/{chunk-PK6VYYEY.js → chunk-I4GBCKBL.js} +5 -5
- package/dist/cli/{chunk-XBS4RDKU.js → chunk-JO2MQ6XR.js} +96 -96
- package/dist/cli/{chunk-HKKC7J6K.mjs → chunk-KCISDDNK.mjs} +6 -6
- package/dist/cli/{chunk-3CUIIVGR.mjs → chunk-KKSMHTQO.mjs} +1 -1
- package/dist/cli/{chunk-E6YWCXII.js → chunk-KTAOVRXT.js} +16 -16
- package/dist/cli/{chunk-LKYLIZ5X.js → chunk-LUIPBI6P.js} +2 -2
- package/dist/cli/{chunk-25WXWSFS.js → chunk-LYIJ3YUP.js} +22 -22
- package/dist/cli/{chunk-J4X4RNSP.mjs → chunk-M6YHS5V7.mjs} +3 -3
- package/dist/cli/{chunk-CRE3OGHH.mjs → chunk-NLIO6QLP.mjs} +2 -2
- package/dist/cli/{chunk-FEJKDR67.mjs → chunk-NNUJQ5O2.mjs} +1 -1
- package/dist/cli/{chunk-A7W3CCU5.mjs → chunk-NPRSGUHB.mjs} +5 -5
- package/dist/cli/{chunk-MI5DKOBD.mjs → chunk-NWSKBWQM.mjs} +2 -2
- package/dist/cli/{chunk-I3ICKVYH.js → chunk-ORAWUIMN.js} +53 -53
- package/dist/cli/{chunk-CBMTBMIJ.mjs → chunk-QQGRQRCS.mjs} +1 -1
- package/dist/cli/{chunk-SBF4K3QF.mjs → chunk-QSWPDYOP.mjs} +4 -4
- package/dist/cli/{chunk-FJAGGBDR.mjs → chunk-SHB2BNI6.mjs} +23 -1
- package/dist/cli/{chunk-R3OAKFHJ.mjs → chunk-TQTQ3YYA.mjs} +5 -5
- package/dist/cli/{chunk-Y7D6L4M7.mjs → chunk-U5646OVV.mjs} +5 -5
- package/dist/cli/{chunk-BQYXIAJM.js → chunk-UA4MXESL.js} +3 -3
- package/dist/cli/{chunk-AXA5DFY5.mjs → chunk-V6BUWQBI.mjs} +1 -1
- package/dist/cli/{chunk-FTJ2D3XD.mjs → chunk-VSLU4JZV.mjs} +3 -3
- package/dist/cli/{chunk-O655PVT4.js → chunk-VSPNBBRT.js} +29 -7
- package/dist/cli/{chunk-5A2SIIPH.mjs → chunk-XU57CH42.mjs} +1 -1
- package/dist/cli/{chunk-UMPHUAGZ.js → chunk-XXDY7K7F.js} +3 -3
- package/dist/cli/{chunk-4PWBHYH4.js → chunk-Y5QYWFRI.js} +7 -7
- package/dist/cli/{chunk-HXPHRSNM.js → chunk-YHHLLONU.js} +14 -14
- package/dist/cli/{chunk-RQ2BHYUM.mjs → chunk-YP3G2CP6.mjs} +2 -2
- package/dist/cli/{chunk-RU5JRQKJ.mjs → chunk-YVQLXMJU.mjs} +2 -2
- package/dist/cli/{csv-3TUJHAOW.mjs → csv-T7HIELZ2.mjs} +4 -4
- package/dist/cli/{csv-BKWIYPMK.js → csv-VJNR6FOZ.js} +13 -13
- package/dist/cli/{db-EJMJDKDA.js → db-JF2I54V7.js} +27 -27
- package/dist/cli/{db-I75IQ7XI.mjs → db-OE2EXZXL.mjs} +6 -6
- package/dist/cli/describe-4FLGKRCA.js +50 -0
- package/dist/cli/{describe-RUFLLRIN.mjs → describe-HXZZC3LC.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-VW3MYJEE.mjs → executions-4BXRIJFF.mjs} +6 -6
- package/dist/cli/{executions-TQJCMUUG.js → executions-UQ2H6MJZ.js} +8 -8
- package/dist/cli/{feedback-UFAEXH5B.js → feedback-MKFN7DYY.js} +10 -10
- package/dist/cli/{feedback-76342G7E.mjs → feedback-TXF5CQKA.mjs} +5 -5
- package/dist/cli/git-B2QO3SLK.js +25 -0
- package/dist/cli/{git-L5XKAODI.mjs → git-MG3NAV65.mjs} +5 -5
- package/dist/cli/index.js +141 -141
- package/dist/cli/index.mjs +43 -43
- package/dist/cli/{legacy-noops-DM66YISP.js → legacy-noops-R76I2OWW.js} +9 -9
- package/dist/cli/{legacy-noops-DKAZ7JG3.mjs → legacy-noops-XSDY46XD.mjs} +6 -6
- package/dist/cli/{monitors-NKDIH4TY.js → monitors-FS3DIDM7.js} +100 -100
- package/dist/cli/{monitors-QXEJI54B.mjs → monitors-NVT5YQKV.mjs} +7 -7
- package/dist/cli/{org-NKIIBUNO.js → org-SBI6FC6D.js} +72 -72
- package/dist/cli/{org-KZQCVREB.mjs → org-XU7JONWS.mjs} +6 -6
- package/dist/cli/{pages-UJUFCJEL.js → pages-2CZFJJV6.js} +18 -18
- package/dist/cli/{pages-E7IT5SWT.mjs → pages-AFB5DVBR.mjs} +6 -6
- package/dist/cli/{play-AKL5E2DF.mjs → play-EQEIT5S4.mjs} +18 -18
- package/dist/cli/{play-SPI5MO67.js → play-WZH72UGC.js} +317 -317
- package/dist/cli/{providers-6HSSVI74.mjs → providers-3VXTATHF.mjs} +6 -6
- package/dist/cli/{providers-4NVQ3FSC.js → providers-SHSVUQA3.js} +9 -9
- package/dist/cli/{quickstart-EHLEHSMI.mjs → quickstart-45YS4SOD.mjs} +4 -4
- package/dist/cli/{quickstart-FEQD7S4Z.js → quickstart-KPVPK3VL.js} +6 -6
- package/dist/cli/{run-GH6ECTJF.js → run-U5RWBX5J.js} +41 -41
- package/dist/cli/{run-IWVM7BD6.mjs → run-XEHRZT57.mjs} +23 -23
- package/dist/cli/{search-X4CDMN7J.mjs → search-V7XIWBQ2.mjs} +8 -8
- package/dist/cli/search-Z2V43OPM.js +33 -0
- package/dist/cli/{search-output-PJ7N5WUQ.mjs → search-output-3KAJUV2A.mjs} +4 -4
- package/dist/cli/{search-output-IIYMGZTQ.js → search-output-ZNIICV5Z.js} +6 -6
- package/dist/cli/{secrets-QPP2FXID.js → secrets-53TUV6JK.js} +15 -15
- package/dist/cli/{secrets-4YPMC7XZ.mjs → secrets-SCSG3QXJ.mjs} +6 -6
- package/dist/cli/sessions-BOJCVLR7.js +18 -0
- package/dist/cli/{sessions-BEOI47VZ.mjs → sessions-MCTHLLK3.mjs} +6 -6
- package/dist/cli/{settings-VHULXNY3.mjs → settings-Q2HKACSE.mjs} +13 -13
- package/dist/cli/{settings-FZDONKPW.js → settings-ZNOXOIX2.js} +86 -86
- package/dist/cli/{setup-LZ6IN5JS.js → setup-GO4EULLY.js} +50 -50
- package/dist/cli/{setup-5IV3NHGD.mjs → setup-WKM35SZJ.mjs} +10 -10
- package/dist/cli/skills-B4BAH2B2.js +37 -0
- package/dist/cli/{skills-FZAFBW5J.mjs → skills-DZZLW6OV.mjs} +8 -8
- package/dist/cli/{tools-TLBH3RFK.mjs → tools-EKVSK6X4.mjs} +17 -17
- package/dist/cli/tools-Z5NCKIAB.js +57 -0
- package/dist/cli/{update-KPLIZYOV.mjs → update-FPHYVHSC.mjs} +10 -10
- package/dist/cli/update-XCL7F5T6.js +35 -0
- package/dist/cli/{workflow-ACHPT3DD.js → workflow-27H3NCNY.js} +17 -17
- package/dist/cli/{workflow-GYJOYYWK.mjs → workflow-5YAZK5EI.mjs} +7 -7
- package/dist/{client-CswZYCGj.d.ts → client-DhEOE19l.d.ts} +1 -1
- package/dist/{client-core-C1xVOg8Y.d.mts → client-core-BGiSMrBD.d.mts} +1 -1
- package/dist/{client-core-D2pLt36Q.d.ts → client-core-DYCGaRBZ.d.ts} +1 -1
- package/dist/{client-CpSiHSti.d.mts → client-lJmz2QwF.d.mts} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +108 -108
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-DF6WJLN2.js +0 -43
- package/dist/cli/describe-EAK3MPTG.js +0 -50
- package/dist/cli/git-OOCPCIGZ.js +0 -25
- package/dist/cli/search-NIRYA3VL.js +0 -33
- package/dist/cli/sessions-5I2IFTW7.js +0 -18
- package/dist/cli/skills-WJWLFSHI.js +0 -37
- package/dist/cli/tools-SH35NRGU.js +0 -57
- package/dist/cli/update-MA46YSGR.js +0 -35
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkY5QYWFRIjs = require('./chunk-Y5QYWFRI.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunk4PWBHYH4js = require('./chunk-4PWBHYH4.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkUA4MXESLjs = require('./chunk-UA4MXESL.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkBHAP6FIZjs = require('./chunk-BHAP6FIZ.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkSQWET4SLjs = require('./chunk-SQWET4SL.js');
|
|
@@ -60,7 +60,7 @@ function statusBannerLine(value) {
|
|
|
60
60
|
return `Service notice: ${banner.message}`;
|
|
61
61
|
}
|
|
62
62
|
function envFilePath(baseUrl) {
|
|
63
|
-
return
|
|
63
|
+
return _chunkUA4MXESLjs.hostEnvFilePath.call(void 0, baseUrl);
|
|
64
64
|
}
|
|
65
65
|
function normalizeAuthScope(value) {
|
|
66
66
|
if (!value || value === "global") return "global";
|
|
@@ -73,7 +73,7 @@ function parseAuthScope(args) {
|
|
|
73
73
|
}
|
|
74
74
|
function pendingClaimPath(baseUrl, scope) {
|
|
75
75
|
if (scope === "folder") {
|
|
76
|
-
const target =
|
|
76
|
+
const target = _chunkUA4MXESLjs.resolveProjectPinTarget.call(void 0, );
|
|
77
77
|
if (!target.ok) {
|
|
78
78
|
throw new Error(
|
|
79
79
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -83,10 +83,10 @@ function pendingClaimPath(baseUrl, scope) {
|
|
|
83
83
|
}
|
|
84
84
|
return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
|
|
85
85
|
}
|
|
86
|
-
return `${
|
|
86
|
+
return `${_chunkUA4MXESLjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
87
87
|
}
|
|
88
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
89
|
-
return `${
|
|
89
|
+
return `${_chunkUA4MXESLjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
90
90
|
}
|
|
91
91
|
function savePendingClaim(baseUrl, claim) {
|
|
92
92
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -190,21 +190,21 @@ function parseRegisterWaitMode(args) {
|
|
|
190
190
|
function shouldWaitForRegisterClaim(mode) {
|
|
191
191
|
if (mode === "yes") return true;
|
|
192
192
|
if (mode === "no") return false;
|
|
193
|
-
return
|
|
193
|
+
return _chunkBHAP6FIZjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
194
194
|
}
|
|
195
195
|
function saveEnvValues(values, baseUrl, scope) {
|
|
196
196
|
const filtered = {
|
|
197
|
-
...values[
|
|
198
|
-
...values[
|
|
199
|
-
...values[
|
|
200
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
197
|
+
...values[_chunkUA4MXESLjs.HOST_URL_ENV] ? { [_chunkUA4MXESLjs.HOST_URL_ENV]: values[_chunkUA4MXESLjs.HOST_URL_ENV] } : {},
|
|
198
|
+
...values[_chunkUA4MXESLjs.API_KEY_ENV] ? { [_chunkUA4MXESLjs.API_KEY_ENV]: values[_chunkUA4MXESLjs.API_KEY_ENV] } : {},
|
|
199
|
+
...values[_chunkUA4MXESLjs.ACTIVE_ORG_ID_ENV] ? { [_chunkUA4MXESLjs.ACTIVE_ORG_ID_ENV]: values[_chunkUA4MXESLjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
200
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkUA4MXESLjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkUA4MXESLjs.ACTIVE_ORG_NAME_ENV]: values[_chunkUA4MXESLjs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
201
201
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
202
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
202
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkUA4MXESLjs.FEATURES_ENV) ? { [_chunkUA4MXESLjs.FEATURES_ENV]: values[_chunkUA4MXESLjs.FEATURES_ENV] } : {}
|
|
203
203
|
};
|
|
204
204
|
if (scope === "folder") {
|
|
205
|
-
|
|
205
|
+
_chunkUA4MXESLjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
206
206
|
} else {
|
|
207
|
-
|
|
207
|
+
_chunkUA4MXESLjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
208
208
|
}
|
|
209
209
|
}
|
|
210
210
|
function activeOrgEnvValues(data) {
|
|
@@ -212,21 +212,21 @@ function activeOrgEnvValues(data) {
|
|
|
212
212
|
if (!orgId) return {};
|
|
213
213
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
214
214
|
return {
|
|
215
|
-
[
|
|
216
|
-
[
|
|
217
|
-
...
|
|
215
|
+
[_chunkUA4MXESLjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
216
|
+
[_chunkUA4MXESLjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
217
|
+
..._chunkUA4MXESLjs.featureEnvValues.call(void 0, data)
|
|
218
218
|
};
|
|
219
219
|
}
|
|
220
220
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
221
221
|
const headers = {
|
|
222
222
|
"Content-Type": "application/json",
|
|
223
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
223
|
+
"User-Agent": `deepline-ts-sdk/${_chunkBHAP6FIZjs.SDK_VERSION}`,
|
|
224
224
|
"X-Deepline-Client-Family": "sdk",
|
|
225
225
|
"X-Deepline-CLI-Family": "sdk",
|
|
226
|
-
"X-Deepline-Agent-Runtime":
|
|
227
|
-
"X-Deepline-CLI-Version":
|
|
228
|
-
"X-Deepline-SDK-Version":
|
|
229
|
-
"X-Deepline-API-Contract":
|
|
226
|
+
"X-Deepline-Agent-Runtime": _chunkBHAP6FIZjs.detectAgentRuntime.call(void 0, ),
|
|
227
|
+
"X-Deepline-CLI-Version": _chunkBHAP6FIZjs.SDK_VERSION,
|
|
228
|
+
"X-Deepline-SDK-Version": _chunkBHAP6FIZjs.SDK_VERSION,
|
|
229
|
+
"X-Deepline-API-Contract": _chunkBHAP6FIZjs.SDK_API_CONTRACT
|
|
230
230
|
};
|
|
231
231
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
232
232
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -265,10 +265,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
265
265
|
if (failure.name === "AbortError" || failure.name === "TimeoutError") {
|
|
266
266
|
throw failure;
|
|
267
267
|
}
|
|
268
|
-
const causeCode =
|
|
268
|
+
const causeCode = _chunkBHAP6FIZjs.networkCauseCode.call(void 0, failure);
|
|
269
269
|
throw Object.assign(
|
|
270
270
|
new (0, _chunkSQWET4SLjs.DeeplineError)(
|
|
271
|
-
|
|
271
|
+
_chunkBHAP6FIZjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
|
|
272
272
|
void 0,
|
|
273
273
|
"NETWORK_ERROR",
|
|
274
274
|
causeCode ? { causeCode } : void 0
|
|
@@ -285,7 +285,7 @@ async function readStatusBanner(baseUrl) {
|
|
|
285
285
|
return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
|
|
286
286
|
}
|
|
287
287
|
async function reportSetupCompleted(input) {
|
|
288
|
-
const apiKey = input.authScope === "folder" ?
|
|
288
|
+
const apiKey = input.authScope === "folder" ? _chunkUA4MXESLjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkUA4MXESLjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
289
289
|
if (!apiKey) return;
|
|
290
290
|
try {
|
|
291
291
|
await httpJson(
|
|
@@ -414,7 +414,7 @@ function endClaimPollOnRefusal(status, data, baseUrl, authScope) {
|
|
|
414
414
|
return EXIT_SERVER;
|
|
415
415
|
}
|
|
416
416
|
async function handleRegister(args, options) {
|
|
417
|
-
const baseUrl =
|
|
417
|
+
const baseUrl = _chunkUA4MXESLjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
418
418
|
let orgName = "";
|
|
419
419
|
let orgId = "";
|
|
420
420
|
let agentName = "";
|
|
@@ -473,19 +473,19 @@ async function handleRegister(args, options) {
|
|
|
473
473
|
savePendingClaim(baseUrl, pendingClaim);
|
|
474
474
|
saveEnvValues(
|
|
475
475
|
{
|
|
476
|
-
[
|
|
476
|
+
[_chunkUA4MXESLjs.HOST_URL_ENV]: baseUrl
|
|
477
477
|
},
|
|
478
478
|
baseUrl,
|
|
479
479
|
authScope
|
|
480
480
|
);
|
|
481
481
|
}
|
|
482
482
|
if (claimUrl) {
|
|
483
|
-
const shouldOpen = waitMode !== "no" &&
|
|
483
|
+
const shouldOpen = waitMode !== "no" && _chunkBHAP6FIZjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
484
484
|
console.log(
|
|
485
485
|
shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
|
|
486
486
|
);
|
|
487
487
|
console.log(` ${claimUrl}`);
|
|
488
|
-
if (shouldOpen)
|
|
488
|
+
if (shouldOpen) _chunkY5QYWFRIjs.openInBrowser.call(void 0, claimUrl);
|
|
489
489
|
if (claimToken && pendingClaim.approvalLinkReporting && !_optionalChain([options, 'optionalAccess', _16 => _16.deferApprovalLinkReport])) {
|
|
490
490
|
await reportApprovalLinkShown(
|
|
491
491
|
baseUrl,
|
|
@@ -534,8 +534,8 @@ async function handleRegister(args, options) {
|
|
|
534
534
|
if (apiKey) {
|
|
535
535
|
saveEnvValues(
|
|
536
536
|
{
|
|
537
|
-
[
|
|
538
|
-
[
|
|
537
|
+
[_chunkUA4MXESLjs.HOST_URL_ENV]: baseUrl,
|
|
538
|
+
[_chunkUA4MXESLjs.API_KEY_ENV]: apiKey,
|
|
539
539
|
...activeOrgEnvValues(statusData)
|
|
540
540
|
},
|
|
541
541
|
baseUrl,
|
|
@@ -557,7 +557,7 @@ async function handleRegister(args, options) {
|
|
|
557
557
|
}
|
|
558
558
|
}
|
|
559
559
|
async function handleWait(args) {
|
|
560
|
-
const baseUrl =
|
|
560
|
+
const baseUrl = _chunkUA4MXESLjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
561
561
|
let timeoutSeconds = 300;
|
|
562
562
|
let requestedScope;
|
|
563
563
|
if (args.includes("--auth-scope")) {
|
|
@@ -581,7 +581,7 @@ async function handleWait(args) {
|
|
|
581
581
|
const authScope = resumed.scope;
|
|
582
582
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _17 => _17.claimToken]), () => ( ""));
|
|
583
583
|
if (!pendingClaim) {
|
|
584
|
-
const scopedApiKey = authScope === "folder" ?
|
|
584
|
+
const scopedApiKey = authScope === "folder" ? _chunkUA4MXESLjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkUA4MXESLjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
585
585
|
if (scopedApiKey) {
|
|
586
586
|
console.log("Already connected.");
|
|
587
587
|
return EXIT_OK;
|
|
@@ -623,8 +623,8 @@ async function handleWait(args) {
|
|
|
623
623
|
if (apiKey) {
|
|
624
624
|
saveEnvValues(
|
|
625
625
|
{
|
|
626
|
-
[
|
|
627
|
-
[
|
|
626
|
+
[_chunkUA4MXESLjs.HOST_URL_ENV]: baseUrl,
|
|
627
|
+
[_chunkUA4MXESLjs.API_KEY_ENV]: apiKey,
|
|
628
628
|
...activeOrgEnvValues(data)
|
|
629
629
|
},
|
|
630
630
|
baseUrl,
|
|
@@ -648,8 +648,8 @@ async function handleWait(args) {
|
|
|
648
648
|
return EXIT_AUTH;
|
|
649
649
|
}
|
|
650
650
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
651
|
-
const baseUrl =
|
|
652
|
-
const apiKey =
|
|
651
|
+
const baseUrl = _chunkUA4MXESLjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
652
|
+
const apiKey = _chunkUA4MXESLjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
653
653
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
654
654
|
try {
|
|
655
655
|
const { status, data } = await httpJson(
|
|
@@ -672,9 +672,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
672
672
|
}
|
|
673
673
|
}
|
|
674
674
|
async function handleStatus(args) {
|
|
675
|
-
const baseUrl =
|
|
675
|
+
const baseUrl = _chunkUA4MXESLjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
676
676
|
const reveal = args.includes("--reveal");
|
|
677
|
-
const jsonOutput =
|
|
677
|
+
const jsonOutput = _chunkY5QYWFRIjs.argsWantJson.call(void 0, args);
|
|
678
678
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
679
679
|
let authScope = null;
|
|
680
680
|
if (hasExplicitAuthScope) {
|
|
@@ -715,14 +715,14 @@ async function handleStatus(args) {
|
|
|
715
715
|
};
|
|
716
716
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
717
717
|
}
|
|
718
|
-
const apiKey = authScope === "folder" ?
|
|
718
|
+
const apiKey = authScope === "folder" ? _chunkUA4MXESLjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkUA4MXESLjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkUA4MXESLjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
719
719
|
if (!apiKey) {
|
|
720
720
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
721
721
|
baseUrl,
|
|
722
722
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
723
723
|
);
|
|
724
724
|
if (pendingClaim) {
|
|
725
|
-
|
|
725
|
+
_chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
|
|
726
726
|
{
|
|
727
727
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
728
728
|
status: "pending",
|
|
@@ -743,7 +743,7 @@ async function handleStatus(args) {
|
|
|
743
743
|
);
|
|
744
744
|
return EXIT_OK;
|
|
745
745
|
}
|
|
746
|
-
|
|
746
|
+
_chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
|
|
747
747
|
{
|
|
748
748
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
749
749
|
status: "not connected",
|
|
@@ -776,7 +776,7 @@ async function handleStatus(args) {
|
|
|
776
776
|
}
|
|
777
777
|
);
|
|
778
778
|
if (status === 401 || status === 403) {
|
|
779
|
-
|
|
779
|
+
_chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
|
|
780
780
|
{
|
|
781
781
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
782
782
|
status: "unauthorized",
|
|
@@ -803,7 +803,7 @@ async function handleStatus(args) {
|
|
|
803
803
|
console.error(`Auth status error (status ${status}).`);
|
|
804
804
|
return EXIT_SERVER;
|
|
805
805
|
}
|
|
806
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
806
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkUA4MXESLjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
807
807
|
clearSatisfiedPendingClaim(
|
|
808
808
|
baseUrl,
|
|
809
809
|
resolvedAuthScope,
|
|
@@ -831,28 +831,28 @@ async function handleStatus(args) {
|
|
|
831
831
|
if (apiKeyResp) {
|
|
832
832
|
saveEnvValues(
|
|
833
833
|
{
|
|
834
|
-
[
|
|
835
|
-
[
|
|
834
|
+
[_chunkUA4MXESLjs.HOST_URL_ENV]: baseUrl,
|
|
835
|
+
[_chunkUA4MXESLjs.API_KEY_ENV]: apiKeyResp,
|
|
836
836
|
...activeOrgEnvValues(data)
|
|
837
837
|
},
|
|
838
838
|
baseUrl,
|
|
839
839
|
resolvedAuthScope
|
|
840
840
|
);
|
|
841
841
|
if (resolvedAuthScope === "folder") {
|
|
842
|
-
const target =
|
|
842
|
+
const target = _chunkUA4MXESLjs.resolveProjectPinTarget.call(void 0, );
|
|
843
843
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
844
844
|
} else {
|
|
845
845
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
846
846
|
}
|
|
847
847
|
}
|
|
848
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
849
|
-
saveEnvValues(
|
|
848
|
+
} else if (resolvedAuthScope === "folder" || _chunkUA4MXESLjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
849
|
+
saveEnvValues(_chunkUA4MXESLjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
850
850
|
}
|
|
851
|
-
|
|
851
|
+
_chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
|
|
852
852
|
{
|
|
853
853
|
...payload,
|
|
854
|
-
...
|
|
855
|
-
command_context:
|
|
854
|
+
..._chunkBHAP6FIZjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
855
|
+
command_context: _chunkUA4MXESLjs.resolveCliCommandContext.call(void 0,
|
|
856
856
|
{ baseUrl, apiKey },
|
|
857
857
|
resolvedAuthScope
|
|
858
858
|
)
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TQTQ3YYA.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NLIO6QLP.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-QQGRQRCS.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-XU57CH42.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
30
|
} from "./chunk-5JPKRDFC.mjs";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
32
32
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
33
33
|
SDK_API_MAJOR
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-XU57CH42.mjs";
|
|
35
35
|
import {
|
|
36
36
|
CustomerDbQueryOutcomeUnknownError
|
|
37
37
|
} from "./chunk-QNHHZ63P.mjs";
|
|
@@ -243,6 +243,19 @@ var EXECUTE_SERVER_TIMING_STAGES = [
|
|
|
243
243
|
"execute",
|
|
244
244
|
"identity",
|
|
245
245
|
"usage_schedule",
|
|
246
|
+
// Handler slices that previously had no stage of their own. Each is a
|
|
247
|
+
// disjoint wall inside `total`; none overlaps the stages above.
|
|
248
|
+
// - `request_parse` body read/JSON parse, actor and route params, and the
|
|
249
|
+
// gateway attestation HMAC checks, after `auth`
|
|
250
|
+
// - `entitlements` tool entitlement read (only tools with tool limits)
|
|
251
|
+
// - `response_build` success-path async metadata, managed-create metadata
|
|
252
|
+
// and response serialization, after billing settlement
|
|
253
|
+
// - `call_evidence` runner calls only: clone, parse and re-serialize the
|
|
254
|
+
// response to attach provider call evidence
|
|
255
|
+
"request_parse",
|
|
256
|
+
"entitlements",
|
|
257
|
+
"response_build",
|
|
258
|
+
"call_evidence",
|
|
246
259
|
// Managed AI inference slices: `ai_prepare` includes request preparation and
|
|
247
260
|
// contains `ai_billing_authorize`; `ai_provider_work_start` is the durable
|
|
248
261
|
// pre-call transition; `ai_gateway_first_output` is the time to the first
|
|
@@ -283,6 +296,15 @@ var EXECUTE_SERVER_TIMING_STAGES = [
|
|
|
283
296
|
"body_parse",
|
|
284
297
|
"dispatch_pool",
|
|
285
298
|
"dispatch_callback",
|
|
299
|
+
// Relay pre-dispatch slices: upstream admission queueing, the
|
|
300
|
+
// retired-attempt fence (a refresh can wait up to 250 ms), and gateway-side
|
|
301
|
+
// provider permit validation. The relay appends them only when the request
|
|
302
|
+
// took that step. Like the relay stages above, the app handler's own header
|
|
303
|
+
// lists every stage at zero, and the later relay entry wins for a reader, so
|
|
304
|
+
// a zero here can also mean the relay did not take the step.
|
|
305
|
+
"relay_admission",
|
|
306
|
+
"attempt_fence",
|
|
307
|
+
"permit_validate",
|
|
286
308
|
// The execution relay measures its own upstream fetch. `upstream_headers`
|
|
287
309
|
// contains the app handler's `total`; subtracting those two clocks leaves
|
|
288
310
|
// only the Vercel/platform-or-transit boundary, never a made-up provider
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-DQQ6FDE6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ASGGZ6BI.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -14,17 +14,17 @@ import {
|
|
|
14
14
|
sdkCliStateDirPath,
|
|
15
15
|
skillsAgentPathSegment,
|
|
16
16
|
writeSdkSkillsLocalVersion
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QQGRQRCS.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_API_CONTRACT,
|
|
20
20
|
SDK_API_MAJOR,
|
|
21
21
|
SDK_VERSION,
|
|
22
22
|
deploymentProtectionHeaders,
|
|
23
23
|
detectAgentRuntime
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-XU57CH42.mjs";
|
|
25
25
|
import {
|
|
26
26
|
SDK_RELEASE
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-6GI7BYSL.mjs";
|
|
28
28
|
|
|
29
29
|
// src/compat.ts
|
|
30
30
|
import { randomUUID } from "crypto";
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6T2LB43P.mjs";
|
|
7
7
|
import {
|
|
8
8
|
resolveSdkCliFailureExitCode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ASGGZ6BI.mjs";
|
|
10
10
|
import {
|
|
11
11
|
errorToJsonPayload,
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-NLIO6QLP.mjs";
|
|
14
14
|
import {
|
|
15
15
|
resolveConfig,
|
|
16
16
|
sdkCliStateDirPath
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-QQGRQRCS.mjs";
|
|
18
18
|
|
|
19
19
|
// src/cli/commands/search.ts
|
|
20
20
|
import { Option } from "commander";
|
|
@@ -136,7 +136,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
136
136
|
}
|
|
137
137
|
const client = new DeeplineClient();
|
|
138
138
|
const json = options.json === true;
|
|
139
|
-
const renderer = json ? void 0 : await import("./search-output-
|
|
139
|
+
const renderer = json ? void 0 : await import("./search-output-3KAJUV2A.mjs");
|
|
140
140
|
const searches = [];
|
|
141
141
|
const chunks = [];
|
|
142
142
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -1,7 +1,7 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkBHAP6FIZjs = require('./chunk-BHAP6FIZ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunkT2N3B7IQjs = require('./chunk-T2N3B7IQ.js');
|
|
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function resolveAutoSyncSkillAgents() {
|
|
714
|
-
switch (
|
|
714
|
+
switch (_chunkBHAP6FIZjs.detectAgentRuntime.call(void 0, )) {
|
|
715
715
|
case "codex":
|
|
716
716
|
return ["codex"];
|
|
717
717
|
case "claude_code":
|
|
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
// src/http.ts
|
|
784
|
-
var HttpClient2 = class extends
|
|
784
|
+
var HttpClient2 = class extends _chunkBHAP6FIZjs.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NLIO6QLP.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-QQGRQRCS.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
29
|
connectionFailureMessage,
|
|
30
30
|
detectAgentRuntime,
|
|
31
31
|
networkCauseCode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-XU57CH42.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
@@ -31,7 +31,7 @@ var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkBHAP6FIZjs = require('./chunk-BHAP6FIZ.js');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkT2N3B7IQjs = require('./chunk-T2N3B7IQ.js');
|
|
@@ -243,6 +243,19 @@ var EXECUTE_SERVER_TIMING_STAGES = [
|
|
|
243
243
|
"execute",
|
|
244
244
|
"identity",
|
|
245
245
|
"usage_schedule",
|
|
246
|
+
// Handler slices that previously had no stage of their own. Each is a
|
|
247
|
+
// disjoint wall inside `total`; none overlaps the stages above.
|
|
248
|
+
// - `request_parse` body read/JSON parse, actor and route params, and the
|
|
249
|
+
// gateway attestation HMAC checks, after `auth`
|
|
250
|
+
// - `entitlements` tool entitlement read (only tools with tool limits)
|
|
251
|
+
// - `response_build` success-path async metadata, managed-create metadata
|
|
252
|
+
// and response serialization, after billing settlement
|
|
253
|
+
// - `call_evidence` runner calls only: clone, parse and re-serialize the
|
|
254
|
+
// response to attach provider call evidence
|
|
255
|
+
"request_parse",
|
|
256
|
+
"entitlements",
|
|
257
|
+
"response_build",
|
|
258
|
+
"call_evidence",
|
|
246
259
|
// Managed AI inference slices: `ai_prepare` includes request preparation and
|
|
247
260
|
// contains `ai_billing_authorize`; `ai_provider_work_start` is the durable
|
|
248
261
|
// pre-call transition; `ai_gateway_first_output` is the time to the first
|
|
@@ -283,6 +296,15 @@ var EXECUTE_SERVER_TIMING_STAGES = [
|
|
|
283
296
|
"body_parse",
|
|
284
297
|
"dispatch_pool",
|
|
285
298
|
"dispatch_callback",
|
|
299
|
+
// Relay pre-dispatch slices: upstream admission queueing, the
|
|
300
|
+
// retired-attempt fence (a refresh can wait up to 250 ms), and gateway-side
|
|
301
|
+
// provider permit validation. The relay appends them only when the request
|
|
302
|
+
// took that step. Like the relay stages above, the app handler's own header
|
|
303
|
+
// lists every stage at zero, and the later relay entry wins for a reader, so
|
|
304
|
+
// a zero here can also mean the relay did not take the step.
|
|
305
|
+
"relay_admission",
|
|
306
|
+
"attempt_fence",
|
|
307
|
+
"permit_validate",
|
|
286
308
|
// The execution relay measures its own upstream fetch. `upstream_headers`
|
|
287
309
|
// contains the app handler's `total`; subtracting those two clocks leaves
|
|
288
310
|
// only the Vercel/platform-or-transit boundary, never a made-up provider
|
|
@@ -652,7 +674,7 @@ var ToolCalls = class {
|
|
|
652
674
|
idempotencyKey,
|
|
653
675
|
onResponse: (response2) => {
|
|
654
676
|
lastResponse = null;
|
|
655
|
-
atomicToolsSupported = response2.headers.get(
|
|
677
|
+
atomicToolsSupported = response2.headers.get(_chunkBHAP6FIZjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
656
678
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
657
679
|
if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
|
|
658
680
|
try {
|
|
@@ -1107,8 +1129,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1107
1129
|
}
|
|
1108
1130
|
const receivers = _optionalChain([env, 'access', _55 => _55.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _56 => _56.trim, 'call', _57 => _57()]);
|
|
1109
1131
|
return {
|
|
1110
|
-
[
|
|
1111
|
-
...receivers ? { [
|
|
1132
|
+
[_chunkBHAP6FIZjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1133
|
+
...receivers ? { [_chunkBHAP6FIZjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1112
1134
|
};
|
|
1113
1135
|
}
|
|
1114
1136
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1179,7 +1201,7 @@ var PlayClient = class {
|
|
|
1179
1201
|
return _chunk6Y3DDRRNjs.startPlayRun.call(void 0,
|
|
1180
1202
|
this.http,
|
|
1181
1203
|
resolved.request,
|
|
1182
|
-
_optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1204
|
+
_optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkBHAP6FIZjs.SDK_API_MAJOR) } : headers,
|
|
1183
1205
|
options
|
|
1184
1206
|
);
|
|
1185
1207
|
}
|
|
@@ -3260,7 +3282,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3260
3282
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3261
3283
|
);
|
|
3262
3284
|
}
|
|
3263
|
-
return { [
|
|
3285
|
+
return { [_chunkBHAP6FIZjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3264
3286
|
}
|
|
3265
3287
|
function sleep(ms) {
|
|
3266
3288
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4150,7 +4172,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4150
4172
|
);
|
|
4151
4173
|
const headers = _optionalChain([options, 'optionalAccess', _188 => _188.cliAdmission]) ? {
|
|
4152
4174
|
...runtimeHeaders,
|
|
4153
|
-
"X-Deepline-API-Major": String(
|
|
4175
|
+
"X-Deepline-API-Major": String(_chunkBHAP6FIZjs.SDK_API_MAJOR)
|
|
4154
4176
|
} : runtimeHeaders;
|
|
4155
4177
|
const http = this.http;
|
|
4156
4178
|
let submitted = false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkY5QYWFRIjs = require('./chunk-Y5QYWFRI.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkY5QYWFRIjs.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkY5QYWFRIjs.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|