deepline 0.3.373 → 0.3.375
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/runner-backends/backends/daytona-payload-transport.ts +1 -53
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +15 -23
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +65 -3
- package/dist/cli/auth-B7CLYD7R.js +35 -0
- package/dist/cli/{auth-7BMCDCRH.mjs → auth-U3Y7DTIG.mjs} +6 -4
- package/dist/cli/{billing-GKI7B4JF.js → billing-P2DNRAND.js} +73 -73
- package/dist/cli/{billing-RZEHHMPU.mjs → billing-TKARGBO3.mjs} +4 -4
- package/dist/cli/{chunk-IUYKSTWB.mjs → chunk-4GP56LRE.mjs} +12 -12
- package/dist/cli/{chunk-JSK6GUY6.js → chunk-4WINCNNH.js} +13 -9
- package/dist/cli/{chunk-CLEB5KUZ.js → chunk-ADSZGPYZ.js} +1 -1
- package/dist/cli/{chunk-E6BZWURC.mjs → chunk-B2LFDTXZ.mjs} +15 -6
- package/dist/cli/{chunk-JP2YA3AV.mjs → chunk-B3TQIJ6L.mjs} +1 -1
- package/dist/cli/{chunk-NVZAZGHA.js → chunk-CUIBDSSS.js} +8 -8
- package/dist/cli/{chunk-E7MGPPM5.js → chunk-DAG4ZBTJ.js} +1495 -1495
- package/dist/cli/{chunk-YPVTQRUM.js → chunk-DHTG5CCI.js} +15 -6
- package/dist/cli/{chunk-EYXSAB7O.js → chunk-F5CU5ALX.js} +26 -26
- package/dist/cli/{chunk-46JCJ7FT.mjs → chunk-FWF24ULX.mjs} +13 -9
- package/dist/cli/{chunk-JHUMUIU6.js → chunk-GN5QM2BB.js} +6 -6
- package/dist/cli/{chunk-BM47AKUZ.js → chunk-HEF6UDGA.js} +235 -235
- package/dist/cli/{chunk-ORBVXCTL.js → chunk-HP4BE43N.js} +52 -51
- package/dist/cli/{chunk-YHHY2YHK.mjs → chunk-HSIVHAZA.mjs} +3 -3
- package/dist/cli/{chunk-P5JPGZNI.mjs → chunk-IG3GOO4T.mjs} +1 -1
- package/dist/cli/{chunk-ND4BVWWZ.js → chunk-IQTHRG6E.js} +15 -15
- package/dist/cli/{chunk-S5OTS6H5.js → chunk-KK4XPUVA.js} +8 -8
- package/dist/cli/{chunk-IHQQNWU4.js → chunk-LZUWGLM4.js} +2 -2
- package/dist/cli/{chunk-W3H422KP.js → chunk-M2HVNJ47.js} +60 -60
- package/dist/cli/{chunk-HNLXC5BP.mjs → chunk-M5QDOHLG.mjs} +1 -1
- package/dist/cli/{chunk-XMME4SCK.mjs → chunk-MKS7C3YR.mjs} +3 -2
- package/dist/cli/{chunk-ECA6NQYL.mjs → chunk-MPQSBHMA.mjs} +4 -4
- package/dist/cli/{chunk-D2CZ4Y5G.js → chunk-MTBQEND4.js} +15 -15
- package/dist/cli/{chunk-XJYUQBHY.js → chunk-NVXMPGM4.js} +65 -84
- package/dist/cli/{chunk-6JCVL7CE.mjs → chunk-QEEIEHGV.mjs} +2 -2
- package/dist/cli/{chunk-TB73PXE3.mjs → chunk-SJVJZOPT.mjs} +2 -2
- package/dist/cli/{chunk-QSV76EMO.mjs → chunk-STYH5U6W.mjs} +7 -7
- package/dist/cli/{chunk-R6TPSZLN.mjs → chunk-Z4ARN4X3.mjs} +2 -2
- package/dist/cli/{chunk-PZ26EKNC.mjs → chunk-ZFWU5V2A.mjs} +13 -32
- package/dist/cli/{chunk-Y32GUTEN.mjs → chunk-ZHXPNJQI.mjs} +1467 -1467
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-3FNCVMWA.mjs → csv-3FTYTEJ3.mjs} +3 -3
- package/dist/cli/{csv-NFQYQWWO.js → csv-WAEVGKHF.js} +12 -12
- package/dist/cli/{db-VA7HULGR.mjs → db-HUGGFIVS.mjs} +4 -4
- package/dist/cli/{db-CTLGRV3X.js → db-UDMDGNKO.js} +29 -29
- package/dist/cli/{describe-GXGRMP2M.mjs → describe-EOBOGTB5.mjs} +130 -20
- package/dist/cli/{describe-IUHOEPKY.js → describe-SIAKZYRK.js} +144 -34
- package/dist/cli/{executions-DSK3HRPU.js → executions-HYYP27MG.js} +6 -6
- package/dist/cli/{executions-OZQDZQIK.mjs → executions-O6Z2HSLK.mjs} +4 -4
- package/dist/cli/{feedback-KTMLMWKV.js → feedback-3DWSBHKS.js} +7 -7
- package/dist/cli/{feedback-ZOY7R4JD.mjs → feedback-RRAMGMQV.mjs} +3 -3
- package/dist/cli/{git-FIOI4IA2.mjs → git-KVAK7VOL.mjs} +4 -4
- package/dist/cli/git-M36KWCCG.js +23 -0
- package/dist/cli/index.js +106 -91
- package/dist/cli/index.mjs +63 -48
- package/dist/cli/{legacy-noops-KQZWSABN.mjs → legacy-noops-MQNCDMY7.mjs} +4 -4
- package/dist/cli/{legacy-noops-WXAYRQMQ.js → legacy-noops-V5GQXXUR.js} +7 -7
- package/dist/cli/{monitors-VHNWIF4V.mjs → monitors-6FB63TDM.mjs} +4 -4
- package/dist/cli/{monitors-LPUCHRNJ.js → monitors-RFGQILPW.js} +85 -85
- package/dist/cli/{org-GWHWBCMD.js → org-L33EPH2E.js} +64 -64
- package/dist/cli/{org-UW7NPGEY.mjs → org-TZPQDDVX.mjs} +4 -4
- package/dist/cli/{play-FNM2E66T.mjs → play-PU23OETO.mjs} +8 -8
- package/dist/cli/play-YR2XQARF.js +155 -0
- package/dist/cli/{providers-6D6R3PWX.js → providers-2RHIKO22.js} +7 -7
- package/dist/cli/{providers-XAZMYDWS.mjs → providers-QGQR6ZZF.mjs} +4 -4
- package/dist/cli/{quickstart-OK65PGZL.mjs → quickstart-24DQYBW7.mjs} +3 -3
- package/dist/cli/{quickstart-HBUWBVH6.js → quickstart-BGQVPI7W.js} +5 -5
- package/dist/cli/{search-XY6JOTS2.mjs → search-EUN7YFMX.mjs} +5 -5
- package/dist/cli/search-OHELMK6E.js +26 -0
- package/dist/cli/{secrets-W2LDLU2W.mjs → secrets-OOHN6LNJ.mjs} +4 -4
- package/dist/cli/{secrets-6CYCPK7T.js → secrets-XL7GUTQA.js} +13 -13
- package/dist/cli/{sessions-GOYEKNTJ.js → sessions-FD5XB7M2.js} +5 -5
- package/dist/cli/{sessions-JAX7PGXU.mjs → sessions-SDN4C3YS.mjs} +4 -4
- package/dist/cli/{settings-OACUQOCM.mjs → settings-3MXRXYXI.mjs} +7 -7
- package/dist/cli/{settings-QMFYFCT7.js → settings-6ZEKVAYL.js} +74 -74
- package/dist/cli/{setup-2KA5TZBZ.mjs → setup-DWTR6HNT.mjs} +6 -6
- package/dist/cli/{setup-36VOOGVA.js → setup-VKQ5EJZR.js} +41 -41
- package/dist/cli/skills-6GFW4GCW.js +28 -0
- package/dist/cli/{skills-QY4BX5ZX.mjs → skills-ISG5UUZW.mjs} +4 -4
- package/dist/cli/{tools-UCB2QRVC.mjs → tools-JTC3DR6M.mjs} +7 -7
- package/dist/cli/tools-LK4L6VCK.js +40 -0
- package/dist/cli/{update-327MHUO4.mjs → update-GMTVIHCG.mjs} +6 -6
- package/dist/cli/update-PSJLAW4Q.js +28 -0
- package/dist/cli/{workflow-G7BU54KW.js → workflow-2765Y3Y5.js} +15 -15
- package/dist/cli/{workflow-HJN4GA5A.mjs → workflow-3POT3VFY.mjs} +5 -5
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +76 -78
- 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/package.json +1 -1
- package/dist/cli/auth-BWCNRUG3.js +0 -33
- package/dist/cli/client-FO6LMHT4.mjs +0 -20
- package/dist/cli/client-KAWK7FJR.js +0 -20
- package/dist/cli/git-5P5FLEUC.js +0 -23
- package/dist/cli/play-EVBIC7Z5.js +0 -155
- package/dist/cli/search-6ZY2XWP2.js +0 -26
- package/dist/cli/skills-6GPIEPTP.js +0 -28
- package/dist/cli/tools-RTECP4WT.js +0 -40
- package/dist/cli/update-WR65EHBN.js +0 -28
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkGN5QM2BBjs = require('./chunk-GN5QM2BB.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -25,7 +25,7 @@ var _chunkJHUMUIU6js = require('./chunk-JHUMUIU6.js');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkIQTHRG6Ejs = require('./chunk-IQTHRG6E.js');
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
|
|
@@ -52,7 +52,7 @@ function statusBannerLine(value) {
|
|
|
52
52
|
return `Service notice: ${banner.message}`;
|
|
53
53
|
}
|
|
54
54
|
function envFilePath(baseUrl) {
|
|
55
|
-
return
|
|
55
|
+
return _chunkIQTHRG6Ejs.hostEnvFilePath.call(void 0, baseUrl);
|
|
56
56
|
}
|
|
57
57
|
function normalizeAuthScope(value) {
|
|
58
58
|
if (!value || value === "global") return "global";
|
|
@@ -65,7 +65,7 @@ function parseAuthScope(args) {
|
|
|
65
65
|
}
|
|
66
66
|
function pendingClaimPath(baseUrl, scope) {
|
|
67
67
|
if (scope === "folder") {
|
|
68
|
-
const target =
|
|
68
|
+
const target = _chunkIQTHRG6Ejs.resolveProjectPinTarget.call(void 0, );
|
|
69
69
|
if (!target.ok) {
|
|
70
70
|
throw new Error(
|
|
71
71
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -75,10 +75,10 @@ function pendingClaimPath(baseUrl, scope) {
|
|
|
75
75
|
}
|
|
76
76
|
return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
|
|
77
77
|
}
|
|
78
|
-
return `${
|
|
78
|
+
return `${_chunkIQTHRG6Ejs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
79
79
|
}
|
|
80
80
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
81
|
-
return `${
|
|
81
|
+
return `${_chunkIQTHRG6Ejs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
82
82
|
}
|
|
83
83
|
function savePendingClaim(baseUrl, claim) {
|
|
84
84
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -180,21 +180,21 @@ function parseRegisterWaitMode(args) {
|
|
|
180
180
|
function shouldWaitForRegisterClaim(mode) {
|
|
181
181
|
if (mode === "yes") return true;
|
|
182
182
|
if (mode === "no") return false;
|
|
183
|
-
return
|
|
183
|
+
return _chunkIQTHRG6Ejs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
184
184
|
}
|
|
185
185
|
function saveEnvValues(values, baseUrl, scope) {
|
|
186
186
|
const filtered = {
|
|
187
|
-
...values[
|
|
188
|
-
...values[
|
|
189
|
-
...values[
|
|
190
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
187
|
+
...values[_chunkIQTHRG6Ejs.HOST_URL_ENV] ? { [_chunkIQTHRG6Ejs.HOST_URL_ENV]: values[_chunkIQTHRG6Ejs.HOST_URL_ENV] } : {},
|
|
188
|
+
...values[_chunkIQTHRG6Ejs.API_KEY_ENV] ? { [_chunkIQTHRG6Ejs.API_KEY_ENV]: values[_chunkIQTHRG6Ejs.API_KEY_ENV] } : {},
|
|
189
|
+
...values[_chunkIQTHRG6Ejs.ACTIVE_ORG_ID_ENV] ? { [_chunkIQTHRG6Ejs.ACTIVE_ORG_ID_ENV]: values[_chunkIQTHRG6Ejs.ACTIVE_ORG_ID_ENV] } : {},
|
|
190
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkIQTHRG6Ejs.ACTIVE_ORG_NAME_ENV) ? { [_chunkIQTHRG6Ejs.ACTIVE_ORG_NAME_ENV]: values[_chunkIQTHRG6Ejs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
191
191
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
192
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
192
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkIQTHRG6Ejs.FEATURES_ENV) ? { [_chunkIQTHRG6Ejs.FEATURES_ENV]: values[_chunkIQTHRG6Ejs.FEATURES_ENV] } : {}
|
|
193
193
|
};
|
|
194
194
|
if (scope === "folder") {
|
|
195
|
-
|
|
195
|
+
_chunkIQTHRG6Ejs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
196
196
|
} else {
|
|
197
|
-
|
|
197
|
+
_chunkIQTHRG6Ejs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
function activeOrgEnvValues(data) {
|
|
@@ -202,21 +202,21 @@ function activeOrgEnvValues(data) {
|
|
|
202
202
|
if (!orgId) return {};
|
|
203
203
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
204
204
|
return {
|
|
205
|
-
[
|
|
206
|
-
[
|
|
207
|
-
...
|
|
205
|
+
[_chunkIQTHRG6Ejs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
206
|
+
[_chunkIQTHRG6Ejs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
207
|
+
..._chunkIQTHRG6Ejs.featureEnvValues.call(void 0, data)
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
210
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
211
211
|
const headers = {
|
|
212
212
|
"Content-Type": "application/json",
|
|
213
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
213
|
+
"User-Agent": `deepline-ts-sdk/${_chunkIQTHRG6Ejs.SDK_VERSION}`,
|
|
214
214
|
"X-Deepline-Client-Family": "sdk",
|
|
215
215
|
"X-Deepline-CLI-Family": "sdk",
|
|
216
|
-
"X-Deepline-Agent-Runtime":
|
|
217
|
-
"X-Deepline-CLI-Version":
|
|
218
|
-
"X-Deepline-SDK-Version":
|
|
219
|
-
"X-Deepline-API-Contract":
|
|
216
|
+
"X-Deepline-Agent-Runtime": _chunkIQTHRG6Ejs.detectAgentRuntime.call(void 0, ),
|
|
217
|
+
"X-Deepline-CLI-Version": _chunkIQTHRG6Ejs.SDK_VERSION,
|
|
218
|
+
"X-Deepline-SDK-Version": _chunkIQTHRG6Ejs.SDK_VERSION,
|
|
219
|
+
"X-Deepline-API-Contract": _chunkIQTHRG6Ejs.SDK_API_CONTRACT
|
|
220
220
|
};
|
|
221
221
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
222
222
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -254,7 +254,7 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
254
254
|
throw lastError instanceof Error ? lastError : new Error(String(lastError));
|
|
255
255
|
}
|
|
256
256
|
async function reportSetupCompleted(input) {
|
|
257
|
-
const apiKey = input.authScope === "folder" ?
|
|
257
|
+
const apiKey = input.authScope === "folder" ? _chunkIQTHRG6Ejs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkIQTHRG6Ejs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
258
258
|
if (!apiKey) return;
|
|
259
259
|
try {
|
|
260
260
|
await httpJson(
|
|
@@ -351,7 +351,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
|
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
async function handleRegister(args) {
|
|
354
|
-
const baseUrl =
|
|
354
|
+
const baseUrl = _chunkIQTHRG6Ejs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
355
355
|
let orgName = "";
|
|
356
356
|
let orgId = "";
|
|
357
357
|
let agentName = "";
|
|
@@ -406,19 +406,19 @@ async function handleRegister(args) {
|
|
|
406
406
|
});
|
|
407
407
|
saveEnvValues(
|
|
408
408
|
{
|
|
409
|
-
[
|
|
409
|
+
[_chunkIQTHRG6Ejs.HOST_URL_ENV]: baseUrl
|
|
410
410
|
},
|
|
411
411
|
baseUrl,
|
|
412
412
|
authScope
|
|
413
413
|
);
|
|
414
414
|
}
|
|
415
415
|
if (claimUrl) {
|
|
416
|
-
const shouldOpen = waitMode !== "no" &&
|
|
416
|
+
const shouldOpen = waitMode !== "no" && _chunkIQTHRG6Ejs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
417
417
|
console.log(
|
|
418
418
|
shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
|
|
419
419
|
);
|
|
420
420
|
console.log(` ${claimUrl}`);
|
|
421
|
-
if (shouldOpen)
|
|
421
|
+
if (shouldOpen) _chunkGN5QM2BBjs.openInBrowser.call(void 0, claimUrl);
|
|
422
422
|
}
|
|
423
423
|
if (data.cli_message) {
|
|
424
424
|
console.log(String(data.cli_message));
|
|
@@ -461,8 +461,8 @@ async function handleRegister(args) {
|
|
|
461
461
|
if (apiKey) {
|
|
462
462
|
saveEnvValues(
|
|
463
463
|
{
|
|
464
|
-
[
|
|
465
|
-
[
|
|
464
|
+
[_chunkIQTHRG6Ejs.HOST_URL_ENV]: baseUrl,
|
|
465
|
+
[_chunkIQTHRG6Ejs.API_KEY_ENV]: apiKey,
|
|
466
466
|
...activeOrgEnvValues(statusData)
|
|
467
467
|
},
|
|
468
468
|
baseUrl,
|
|
@@ -484,7 +484,7 @@ async function handleRegister(args) {
|
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
async function handleWait(args) {
|
|
487
|
-
const baseUrl =
|
|
487
|
+
const baseUrl = _chunkIQTHRG6Ejs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
488
488
|
let timeoutSeconds = 300;
|
|
489
489
|
let requestedScope;
|
|
490
490
|
if (args.includes("--auth-scope")) {
|
|
@@ -508,7 +508,7 @@ async function handleWait(args) {
|
|
|
508
508
|
const authScope = resumed.scope;
|
|
509
509
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _11 => _11.claimToken]), () => ( ""));
|
|
510
510
|
if (!pendingClaim) {
|
|
511
|
-
const scopedApiKey = authScope === "folder" ?
|
|
511
|
+
const scopedApiKey = authScope === "folder" ? _chunkIQTHRG6Ejs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkIQTHRG6Ejs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
512
512
|
if (scopedApiKey) {
|
|
513
513
|
console.log("Already connected.");
|
|
514
514
|
return EXIT_OK;
|
|
@@ -551,8 +551,8 @@ async function handleWait(args) {
|
|
|
551
551
|
if (apiKey) {
|
|
552
552
|
saveEnvValues(
|
|
553
553
|
{
|
|
554
|
-
[
|
|
555
|
-
[
|
|
554
|
+
[_chunkIQTHRG6Ejs.HOST_URL_ENV]: baseUrl,
|
|
555
|
+
[_chunkIQTHRG6Ejs.API_KEY_ENV]: apiKey,
|
|
556
556
|
...activeOrgEnvValues(data)
|
|
557
557
|
},
|
|
558
558
|
baseUrl,
|
|
@@ -576,8 +576,8 @@ async function handleWait(args) {
|
|
|
576
576
|
return EXIT_AUTH;
|
|
577
577
|
}
|
|
578
578
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
579
|
-
const baseUrl =
|
|
580
|
-
const apiKey =
|
|
579
|
+
const baseUrl = _chunkIQTHRG6Ejs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
580
|
+
const apiKey = _chunkIQTHRG6Ejs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
581
581
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
582
582
|
try {
|
|
583
583
|
const { status, data } = await httpJson(
|
|
@@ -600,9 +600,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
async function handleStatus(args) {
|
|
603
|
-
const baseUrl =
|
|
603
|
+
const baseUrl = _chunkIQTHRG6Ejs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
604
604
|
const reveal = args.includes("--reveal");
|
|
605
|
-
const jsonOutput =
|
|
605
|
+
const jsonOutput = _chunkGN5QM2BBjs.argsWantJson.call(void 0, args);
|
|
606
606
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
607
607
|
let authScope = null;
|
|
608
608
|
if (hasExplicitAuthScope) {
|
|
@@ -642,14 +642,14 @@ async function handleStatus(args) {
|
|
|
642
642
|
};
|
|
643
643
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
644
644
|
}
|
|
645
|
-
const apiKey = authScope === "folder" ?
|
|
645
|
+
const apiKey = authScope === "folder" ? _chunkIQTHRG6Ejs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkIQTHRG6Ejs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkIQTHRG6Ejs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
646
646
|
if (!apiKey) {
|
|
647
647
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
648
648
|
baseUrl,
|
|
649
649
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
650
650
|
);
|
|
651
651
|
if (pendingClaim) {
|
|
652
|
-
|
|
652
|
+
_chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
|
|
653
653
|
{
|
|
654
654
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
655
655
|
status: "pending",
|
|
@@ -670,7 +670,7 @@ async function handleStatus(args) {
|
|
|
670
670
|
);
|
|
671
671
|
return EXIT_OK;
|
|
672
672
|
}
|
|
673
|
-
|
|
673
|
+
_chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
|
|
674
674
|
{
|
|
675
675
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
676
676
|
status: "not connected",
|
|
@@ -703,7 +703,7 @@ async function handleStatus(args) {
|
|
|
703
703
|
}
|
|
704
704
|
);
|
|
705
705
|
if (status === 401 || status === 403) {
|
|
706
|
-
|
|
706
|
+
_chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
|
|
707
707
|
{
|
|
708
708
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
709
709
|
status: "unauthorized",
|
|
@@ -730,7 +730,7 @@ async function handleStatus(args) {
|
|
|
730
730
|
console.error(`Auth status error (status ${status}).`);
|
|
731
731
|
return EXIT_SERVER;
|
|
732
732
|
}
|
|
733
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
733
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkIQTHRG6Ejs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
734
734
|
clearSatisfiedPendingClaim(
|
|
735
735
|
baseUrl,
|
|
736
736
|
resolvedAuthScope,
|
|
@@ -758,28 +758,28 @@ async function handleStatus(args) {
|
|
|
758
758
|
if (apiKeyResp) {
|
|
759
759
|
saveEnvValues(
|
|
760
760
|
{
|
|
761
|
-
[
|
|
762
|
-
[
|
|
761
|
+
[_chunkIQTHRG6Ejs.HOST_URL_ENV]: baseUrl,
|
|
762
|
+
[_chunkIQTHRG6Ejs.API_KEY_ENV]: apiKeyResp,
|
|
763
763
|
...activeOrgEnvValues(data)
|
|
764
764
|
},
|
|
765
765
|
baseUrl,
|
|
766
766
|
resolvedAuthScope
|
|
767
767
|
);
|
|
768
768
|
if (resolvedAuthScope === "folder") {
|
|
769
|
-
const target =
|
|
769
|
+
const target = _chunkIQTHRG6Ejs.resolveProjectPinTarget.call(void 0, );
|
|
770
770
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
771
771
|
} else {
|
|
772
772
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
776
|
-
saveEnvValues(
|
|
775
|
+
} else if (resolvedAuthScope === "folder" || _chunkIQTHRG6Ejs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
776
|
+
saveEnvValues(_chunkIQTHRG6Ejs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
777
777
|
}
|
|
778
|
-
|
|
778
|
+
_chunkGN5QM2BBjs.printCommandEnvelope.call(void 0,
|
|
779
779
|
{
|
|
780
780
|
...payload,
|
|
781
|
-
...
|
|
782
|
-
command_context:
|
|
781
|
+
..._chunkIQTHRG6Ejs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
782
|
+
command_context: _chunkIQTHRG6Ejs.resolveCliCommandContext.call(void 0,
|
|
783
783
|
{ baseUrl, apiKey },
|
|
784
784
|
resolvedAuthScope
|
|
785
785
|
)
|
|
@@ -935,4 +935,5 @@ Examples:
|
|
|
935
935
|
|
|
936
936
|
|
|
937
937
|
|
|
938
|
-
|
|
938
|
+
|
|
939
|
+
exports.EXIT_WORKSPACE_MISMATCH = EXIT_WORKSPACE_MISMATCH; exports.resolvePendingAuthClaimForResume = resolvePendingAuthClaimForResume; exports.readPendingAuthClaim = readPendingAuthClaim; exports.clearPendingClaim = clearPendingClaim; exports.clearSatisfiedPendingClaim = clearSatisfiedPendingClaim; exports.httpJson = httpJson; exports.reportSetupCompleted = reportSetupCompleted; exports.handleRegister = handleRegister; exports.handleWait = handleWait; exports.authStatusLine = authStatusLine; exports.handleStatus = handleStatus; exports.registerAuthCommands = registerAuthCommands;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZHXPNJQI.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope,
|
|
6
6
|
renderCommandEnvelopeText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-M5QDOHLG.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveConfig,
|
|
10
10
|
sdkCliStateDirPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-4GP56LRE.mjs";
|
|
12
12
|
|
|
13
13
|
// src/cli/commands/search.ts
|
|
14
14
|
import { Option } from "commander";
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.375",
|
|
53
53
|
updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
|
|
54
54
|
packageCapabilities: {
|
|
55
55
|
updatePreferences: 1
|
|
@@ -14,7 +14,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
14
14
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkADSZGPYZjs = require('./chunk-ADSZGPYZ.js');
|
|
18
18
|
|
|
19
19
|
// src/errors.ts
|
|
20
20
|
var CustomerDbQueryOutcomeUnknownError = (_class = class extends _chunk7P5AA3SNjs.DeeplineError {
|
|
@@ -743,9 +743,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
// src/version.ts
|
|
746
|
-
var SDK_VERSION =
|
|
747
|
-
var SDK_API_MAJOR =
|
|
748
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
746
|
+
var SDK_VERSION = _chunkADSZGPYZjs.SDK_RELEASE.version;
|
|
747
|
+
var SDK_API_MAJOR = _chunkADSZGPYZjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
748
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkADSZGPYZjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
749
749
|
|
|
750
750
|
// src/agent-runtime.ts
|
|
751
751
|
|
|
@@ -944,17 +944,6 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
944
944
|
return complete;
|
|
945
945
|
}
|
|
946
946
|
|
|
947
|
-
// ../play-runtime/coordinator-headers.ts
|
|
948
|
-
var COORDINATOR_INTERNAL_TOKEN_HEADER = "x-deepline-internal-token";
|
|
949
|
-
var COORDINATOR_URL_OVERRIDE_HEADER = "x-deepline-coordinator-url";
|
|
950
|
-
var WORKER_CALLBACK_URL_OVERRIDE_HEADER = "x-deepline-worker-callback-url";
|
|
951
|
-
var RUNTIME_SCHEDULER_SCHEMA_OVERRIDE_HEADER = "x-deepline-runtime-scheduler-schema";
|
|
952
|
-
var RUNTIME_ENVIRONMENT_TOKEN_HEADER = "x-deepline-runtime-environment-token";
|
|
953
|
-
var RETAINED_PIPELINE_RECEIVERS_HEADER = "x-deepline-retained-pipeline-receivers";
|
|
954
|
-
var ABSURD_RELEASE_OVERRIDE_HEADER = "x-deepline-absurd-release";
|
|
955
|
-
var PREFERRED_RECEIPT_GATEWAY_MACHINE_ID_HEADER = "x-deepline-preferred-receipt-gateway-machine-id";
|
|
956
|
-
var SYNTHETIC_RUN_HEADER = "x-deepline-synthetic-run";
|
|
957
|
-
|
|
958
947
|
// src/deployment-protection.ts
|
|
959
948
|
function deploymentProtectionHeaders() {
|
|
960
949
|
const token = typeof process !== "undefined" ? _optionalChain([process, 'access', _153 => _153.env, 'optionalAccess', _154 => _154.VERCEL_PROTECTION_BYPASS_TOKEN]) : void 0;
|
|
@@ -971,6 +960,17 @@ var fetchWithDeploymentProtection = (input, init) => {
|
|
|
971
960
|
return fetch(input, { ...init, headers });
|
|
972
961
|
};
|
|
973
962
|
|
|
963
|
+
// ../play-runtime/coordinator-headers.ts
|
|
964
|
+
var COORDINATOR_INTERNAL_TOKEN_HEADER = "x-deepline-internal-token";
|
|
965
|
+
var COORDINATOR_URL_OVERRIDE_HEADER = "x-deepline-coordinator-url";
|
|
966
|
+
var WORKER_CALLBACK_URL_OVERRIDE_HEADER = "x-deepline-worker-callback-url";
|
|
967
|
+
var RUNTIME_SCHEDULER_SCHEMA_OVERRIDE_HEADER = "x-deepline-runtime-scheduler-schema";
|
|
968
|
+
var RUNTIME_ENVIRONMENT_TOKEN_HEADER = "x-deepline-runtime-environment-token";
|
|
969
|
+
var RETAINED_PIPELINE_RECEIVERS_HEADER = "x-deepline-retained-pipeline-receivers";
|
|
970
|
+
var ABSURD_RELEASE_OVERRIDE_HEADER = "x-deepline-absurd-release";
|
|
971
|
+
var PREFERRED_RECEIPT_GATEWAY_MACHINE_ID_HEADER = "x-deepline-preferred-receipt-gateway-machine-id";
|
|
972
|
+
var SYNTHETIC_RUN_HEADER = "x-deepline-synthetic-run";
|
|
973
|
+
|
|
974
974
|
// ../play-runtime/runtime-incident-drills.ts
|
|
975
975
|
var RUNTIME_TEST_FAULT_IDS = [
|
|
976
976
|
"receipt_complete_write_fail",
|
|
@@ -1,14 +1,14 @@
|
|
|
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 _chunkDAG4ZBTJjs = require('./chunk-DAG4ZBTJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkGN5QM2BBjs = require('./chunk-GN5QM2BB.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkIQTHRG6Ejs = require('./chunk-IQTHRG6E.js');
|
|
12
12
|
|
|
13
13
|
// src/cli/commands/search.ts
|
|
14
14
|
var _commander = require('commander');
|
|
@@ -18,7 +18,7 @@ var _fs = require('fs');
|
|
|
18
18
|
var _path = require('path');
|
|
19
19
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
20
20
|
function lastSearchPath() {
|
|
21
|
-
return _path.join.call(void 0,
|
|
21
|
+
return _path.join.call(void 0, _chunkIQTHRG6Ejs.sdkCliStateDirPath.call(void 0, _chunkIQTHRG6Ejs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
22
22
|
}
|
|
23
23
|
function rememberSearchRef(searchRef) {
|
|
24
24
|
try {
|
|
@@ -259,7 +259,7 @@ function searchRow(item) {
|
|
|
259
259
|
}
|
|
260
260
|
function renderSearchResults(result) {
|
|
261
261
|
if (result.results.length === 0)
|
|
262
|
-
return
|
|
262
|
+
return _chunkGN5QM2BBjs.renderCommandEnvelopeText.call(void 0, result);
|
|
263
263
|
const rows = result.results.map(searchRow);
|
|
264
264
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
265
265
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -283,7 +283,7 @@ function renderSearchResults(result) {
|
|
|
283
283
|
actions: _optionalChain([render, 'optionalAccess', _11 => _11.actions])
|
|
284
284
|
};
|
|
285
285
|
const followUps = _optionalChain([remaining, 'access', _12 => _12.sections, 'optionalAccess', _13 => _13.length]) || _optionalChain([remaining, 'access', _14 => _14.actions, 'optionalAccess', _15 => _15.length]) ? `
|
|
286
|
-
${
|
|
286
|
+
${_chunkGN5QM2BBjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
287
287
|
const notes = rows.flatMap(
|
|
288
288
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
289
289
|
);
|
|
@@ -360,7 +360,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
360
360
|
console.error(USAGE);
|
|
361
361
|
return 1;
|
|
362
362
|
}
|
|
363
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
363
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkDAG4ZBTJjs.DeeplineClient)().search({
|
|
364
364
|
query,
|
|
365
365
|
types,
|
|
366
366
|
exclude,
|
|
@@ -374,7 +374,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
374
374
|
});
|
|
375
375
|
if (searchRef) rememberSearchRef(searchRef);
|
|
376
376
|
pointAtDescribe(result);
|
|
377
|
-
|
|
377
|
+
_chunkGN5QM2BBjs.printCommandEnvelope.call(void 0, result, {
|
|
378
378
|
json: options.json === true,
|
|
379
379
|
text: renderSearchResults(result)
|
|
380
380
|
});
|
|
@@ -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 _chunkM2HVNJ47js = require('./chunk-M2HVNJ47.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 = _chunkM2HVNJ47js.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,
|