deepline 0.3.353 → 0.3.354
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/scheduler-backends/postgres.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +54 -40
- package/dist/cli/auth-6UTAYZYH.js +31 -0
- package/dist/cli/{auth-FVIZVTCB.mjs → auth-WLFZLPVL.mjs} +4 -4
- package/dist/cli/{billing-NWL7KQPZ.js → billing-7MEEEXP4.js} +73 -73
- package/dist/cli/{billing-PYTYGWPG.mjs → billing-V3C4NWJ5.mjs} +4 -4
- package/dist/cli/{chunk-2UWRFDI4.js → chunk-2OPNMVYN.js} +60 -60
- package/dist/cli/{chunk-ZCCXX55K.js → chunk-2XBK5U34.js} +45 -45
- package/dist/cli/{chunk-Z6LVVOOJ.js → chunk-3BA35GCA.js} +15 -15
- package/dist/cli/{chunk-55XOA2VW.js → chunk-3GRDLU4K.js} +8 -8
- package/dist/cli/{chunk-NPU4SMKT.js → chunk-3NL4REIK.js} +9 -9
- package/dist/cli/{chunk-XI5IMY45.js → chunk-427S6HR2.js} +2 -2
- package/dist/cli/{chunk-HU4SUDWU.js → chunk-5MSRAFIT.js} +224 -224
- package/dist/cli/{chunk-EDEO7NG4.js → chunk-B6SRSDBH.js} +1 -1
- package/dist/cli/{chunk-VALAAQQM.js → chunk-C4YFKD7B.js} +48 -48
- package/dist/cli/{chunk-BVHUTDCW.mjs → chunk-D454FGPP.mjs} +5 -5
- package/dist/cli/{chunk-IVGFLYQ6.mjs → chunk-EKWPCKO6.mjs} +1 -1
- package/dist/cli/{chunk-CXMSK2VV.mjs → chunk-F75TFBVN.mjs} +2 -2
- package/dist/cli/{chunk-DY253DRK.mjs → chunk-GOKAXPGN.mjs} +2 -2
- package/dist/cli/{chunk-CQQ5N4YO.mjs → chunk-GVXFIFI3.mjs} +2 -2
- package/dist/cli/{chunk-RRDCBCRI.mjs → chunk-HEN4YY2R.mjs} +1 -1
- package/dist/cli/{chunk-M4UPRX3M.js → chunk-IH23RQXJ.js} +8 -8
- package/dist/cli/{chunk-37F4EUJA.mjs → chunk-JJEJHAGS.mjs} +6 -6
- package/dist/cli/{chunk-NZNUDZDW.mjs → chunk-JXXX7TZZ.mjs} +2 -2
- package/dist/cli/{chunk-NFEQHNDQ.js → chunk-NGXUDPUI.js} +26 -26
- package/dist/cli/{chunk-D477W2OQ.mjs → chunk-NV6NBSPH.mjs} +4 -4
- package/dist/cli/{chunk-GFLHAA2O.mjs → chunk-OSVY4AVM.mjs} +1 -1
- package/dist/cli/{chunk-LLI4RITH.mjs → chunk-PRBOPYT2.mjs} +3 -3
- package/dist/cli/{chunk-JHPVZR6F.js → chunk-QFD3VXQS.js} +4 -4
- package/dist/cli/{chunk-R2T4HQ64.js → chunk-RQJORG4F.js} +6 -6
- package/dist/cli/{chunk-ZDEO3EGW.mjs → chunk-XAXLATYC.mjs} +1 -1
- package/dist/cli/{chunk-U3FUXTIB.mjs → chunk-YK2XGEY3.mjs} +1 -1
- package/dist/cli/client-5BVCEKM5.js +20 -0
- package/dist/cli/{client-IH7I5D7T.mjs → client-TIVZM7GK.mjs} +3 -3
- package/dist/cli/{csv-G5WXNCLQ.mjs → csv-E62E67L3.mjs} +3 -3
- package/dist/cli/{csv-TJIWKUCX.js → csv-VAH6JJHI.js} +12 -12
- package/dist/cli/{db-EBHV2MGE.mjs → db-7MCHARO3.mjs} +4 -4
- package/dist/cli/{db-3DCS2JXS.js → db-FKDG7M3X.js} +29 -29
- package/dist/cli/{describe-5XKBPWD7.js → describe-3WPU75JN.js} +15 -15
- package/dist/cli/{describe-QUOLGZKH.mjs → describe-ZSCT6QLG.mjs} +8 -8
- package/dist/cli/{executions-EERWIJ5I.mjs → executions-NCSDSHIX.mjs} +4 -4
- package/dist/cli/{executions-NYIOENKH.js → executions-UBJJ55LI.js} +6 -6
- package/dist/cli/{feedback-4RYJJCYL.mjs → feedback-RE2TLLSM.mjs} +3 -3
- package/dist/cli/{feedback-Z2I5MQYZ.js → feedback-UBKR7RHE.js} +7 -7
- package/dist/cli/git-44MZ22NK.js +23 -0
- package/dist/cli/{git-EMU7AKX3.mjs → git-AQNH4NAK.mjs} +4 -4
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-BEUYYRSU.js → legacy-noops-C7UKYNEP.js} +7 -7
- package/dist/cli/{legacy-noops-HHLNM523.mjs → legacy-noops-ZNMQTD2K.mjs} +4 -4
- package/dist/cli/{monitors-BVJSHUV4.mjs → monitors-CUXMXMGC.mjs} +4 -4
- package/dist/cli/{monitors-KQXLMPZ4.js → monitors-NC3UXIDA.js} +85 -85
- package/dist/cli/{org-HRYNVOUH.js → org-DHAXJFQ2.js} +60 -60
- package/dist/cli/{org-KSROOKSJ.mjs → org-IIW7IEJ7.mjs} +4 -4
- package/dist/cli/{play-PGFW6PFE.mjs → play-4MMSBBJP.mjs} +7 -7
- package/dist/cli/play-D46UW6OL.js +153 -0
- package/dist/cli/{providers-BJM725CV.js → providers-OLCJYWZM.js} +7 -7
- package/dist/cli/{providers-EUKJK6ZE.mjs → providers-YX7CS6XU.mjs} +4 -4
- package/dist/cli/{quickstart-72JYHUJC.mjs → quickstart-EEXIL4UP.mjs} +3 -3
- package/dist/cli/{quickstart-FEERYTYY.js → quickstart-ZVB2X32N.js} +5 -5
- package/dist/cli/search-QH2DTRZK.js +26 -0
- package/dist/cli/{search-LUAIOM56.mjs → search-U3OEMJVA.mjs} +5 -5
- package/dist/cli/{secrets-YYFRYS2Z.mjs → secrets-DQBMEYHR.mjs} +4 -4
- package/dist/cli/{secrets-J65QCH57.js → secrets-Q5WQHPIH.js} +13 -13
- package/dist/cli/{sessions-WBA67YYT.mjs → sessions-EUUOJ42J.mjs} +4 -4
- package/dist/cli/{sessions-FWUUEK6V.js → sessions-RH7HXUZT.js} +5 -5
- package/dist/cli/{settings-RUMTSUE5.mjs → settings-3YYNL5RL.mjs} +7 -7
- package/dist/cli/{settings-I7AZ4JVI.js → settings-M4ODWSAR.js} +74 -74
- package/dist/cli/{setup-BHRRNT5C.mjs → setup-377NYJFE.mjs} +6 -6
- package/dist/cli/{setup-R3IUFNDP.js → setup-UIM7ARVP.js} +41 -41
- package/dist/cli/skills-K4SF37HO.js +28 -0
- package/dist/cli/{skills-EKD5O7GQ.mjs → skills-S4XLO4XM.mjs} +4 -4
- package/dist/cli/tools-BK5GMDP4.js +40 -0
- package/dist/cli/{tools-L5OA2343.mjs → tools-VECGJHSR.mjs} +6 -6
- package/dist/cli/{update-UUHL6FER.mjs → update-EXH5POHP.mjs} +6 -6
- package/dist/cli/update-U5B3IFKL.js +28 -0
- package/dist/cli/{workflow-V24VHOQT.mjs → workflow-5BLDGBNS.mjs} +5 -5
- package/dist/cli/{workflow-7NBSG5OT.js → workflow-YQTJKRZ3.js} +15 -15
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +74 -74
- 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-GJZ3S4QH.js +0 -31
- package/dist/cli/client-Z6BCEGFA.js +0 -20
- package/dist/cli/git-QYQ5ZFIG.js +0 -23
- package/dist/cli/play-CRHUA45Q.js +0 -153
- package/dist/cli/search-X25S2U54.js +0 -26
- package/dist/cli/skills-OOZ5SDVB.js +0 -28
- package/dist/cli/tools-MYH33NTL.js +0 -40
- package/dist/cli/update-EWNPE3NF.js +0 -28
|
@@ -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.354",
|
|
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
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkRQJORG4Fjs = require('./chunk-RQJORG4F.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -25,7 +25,7 @@ var _chunkR2T4HQ64js = require('./chunk-R2T4HQ64.js');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkQFD3VXQSjs = require('./chunk-QFD3VXQS.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 _chunkQFD3VXQSjs.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 = _chunkQFD3VXQSjs.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 `${_chunkQFD3VXQSjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
79
79
|
}
|
|
80
80
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
81
|
-
return `${
|
|
81
|
+
return `${_chunkQFD3VXQSjs.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 _chunkQFD3VXQSjs.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[_chunkQFD3VXQSjs.HOST_URL_ENV] ? { [_chunkQFD3VXQSjs.HOST_URL_ENV]: values[_chunkQFD3VXQSjs.HOST_URL_ENV] } : {},
|
|
188
|
+
...values[_chunkQFD3VXQSjs.API_KEY_ENV] ? { [_chunkQFD3VXQSjs.API_KEY_ENV]: values[_chunkQFD3VXQSjs.API_KEY_ENV] } : {},
|
|
189
|
+
...values[_chunkQFD3VXQSjs.ACTIVE_ORG_ID_ENV] ? { [_chunkQFD3VXQSjs.ACTIVE_ORG_ID_ENV]: values[_chunkQFD3VXQSjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
190
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkQFD3VXQSjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkQFD3VXQSjs.ACTIVE_ORG_NAME_ENV]: values[_chunkQFD3VXQSjs.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, _chunkQFD3VXQSjs.FEATURES_ENV) ? { [_chunkQFD3VXQSjs.FEATURES_ENV]: values[_chunkQFD3VXQSjs.FEATURES_ENV] } : {}
|
|
193
193
|
};
|
|
194
194
|
if (scope === "folder") {
|
|
195
|
-
|
|
195
|
+
_chunkQFD3VXQSjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
196
196
|
} else {
|
|
197
|
-
|
|
197
|
+
_chunkQFD3VXQSjs.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
|
+
[_chunkQFD3VXQSjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
206
|
+
[_chunkQFD3VXQSjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
207
|
+
..._chunkQFD3VXQSjs.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/${_chunkQFD3VXQSjs.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": _chunkQFD3VXQSjs.detectAgentRuntime.call(void 0, ),
|
|
217
|
+
"X-Deepline-CLI-Version": _chunkQFD3VXQSjs.SDK_VERSION,
|
|
218
|
+
"X-Deepline-SDK-Version": _chunkQFD3VXQSjs.SDK_VERSION,
|
|
219
|
+
"X-Deepline-API-Contract": _chunkQFD3VXQSjs.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" ? _chunkQFD3VXQSjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkQFD3VXQSjs.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 = _chunkQFD3VXQSjs.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
|
+
[_chunkQFD3VXQSjs.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" && _chunkQFD3VXQSjs.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) _chunkRQJORG4Fjs.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
|
+
[_chunkQFD3VXQSjs.HOST_URL_ENV]: baseUrl,
|
|
465
|
+
[_chunkQFD3VXQSjs.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 = _chunkQFD3VXQSjs.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" ? _chunkQFD3VXQSjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkQFD3VXQSjs.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
|
+
[_chunkQFD3VXQSjs.HOST_URL_ENV]: baseUrl,
|
|
555
|
+
[_chunkQFD3VXQSjs.API_KEY_ENV]: apiKey,
|
|
556
556
|
...activeOrgEnvValues(data)
|
|
557
557
|
},
|
|
558
558
|
baseUrl,
|
|
@@ -576,9 +576,9 @@ async function handleWait(args) {
|
|
|
576
576
|
return EXIT_AUTH;
|
|
577
577
|
}
|
|
578
578
|
async function handleStatus(args) {
|
|
579
|
-
const baseUrl =
|
|
579
|
+
const baseUrl = _chunkQFD3VXQSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
580
580
|
const reveal = args.includes("--reveal");
|
|
581
|
-
const jsonOutput =
|
|
581
|
+
const jsonOutput = _chunkRQJORG4Fjs.argsWantJson.call(void 0, args);
|
|
582
582
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
583
583
|
let authScope = null;
|
|
584
584
|
if (hasExplicitAuthScope) {
|
|
@@ -618,14 +618,14 @@ async function handleStatus(args) {
|
|
|
618
618
|
};
|
|
619
619
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
620
620
|
}
|
|
621
|
-
const apiKey = authScope === "folder" ?
|
|
621
|
+
const apiKey = authScope === "folder" ? _chunkQFD3VXQSjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkQFD3VXQSjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkQFD3VXQSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
622
622
|
if (!apiKey) {
|
|
623
623
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
624
624
|
baseUrl,
|
|
625
625
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
626
626
|
);
|
|
627
627
|
if (pendingClaim) {
|
|
628
|
-
|
|
628
|
+
_chunkRQJORG4Fjs.printCommandEnvelope.call(void 0,
|
|
629
629
|
{
|
|
630
630
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
631
631
|
status: "pending",
|
|
@@ -646,7 +646,7 @@ async function handleStatus(args) {
|
|
|
646
646
|
);
|
|
647
647
|
return EXIT_OK;
|
|
648
648
|
}
|
|
649
|
-
|
|
649
|
+
_chunkRQJORG4Fjs.printCommandEnvelope.call(void 0,
|
|
650
650
|
{
|
|
651
651
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
652
652
|
status: "not connected",
|
|
@@ -679,7 +679,7 @@ async function handleStatus(args) {
|
|
|
679
679
|
}
|
|
680
680
|
);
|
|
681
681
|
if (status === 401 || status === 403) {
|
|
682
|
-
|
|
682
|
+
_chunkRQJORG4Fjs.printCommandEnvelope.call(void 0,
|
|
683
683
|
{
|
|
684
684
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
685
685
|
status: "unauthorized",
|
|
@@ -706,7 +706,7 @@ async function handleStatus(args) {
|
|
|
706
706
|
console.error(`Auth status error (status ${status}).`);
|
|
707
707
|
return EXIT_SERVER;
|
|
708
708
|
}
|
|
709
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
709
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkQFD3VXQSjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
710
710
|
clearSatisfiedPendingClaim(
|
|
711
711
|
baseUrl,
|
|
712
712
|
resolvedAuthScope,
|
|
@@ -734,28 +734,28 @@ async function handleStatus(args) {
|
|
|
734
734
|
if (apiKeyResp) {
|
|
735
735
|
saveEnvValues(
|
|
736
736
|
{
|
|
737
|
-
[
|
|
738
|
-
[
|
|
737
|
+
[_chunkQFD3VXQSjs.HOST_URL_ENV]: baseUrl,
|
|
738
|
+
[_chunkQFD3VXQSjs.API_KEY_ENV]: apiKeyResp,
|
|
739
739
|
...activeOrgEnvValues(data)
|
|
740
740
|
},
|
|
741
741
|
baseUrl,
|
|
742
742
|
resolvedAuthScope
|
|
743
743
|
);
|
|
744
744
|
if (resolvedAuthScope === "folder") {
|
|
745
|
-
const target =
|
|
745
|
+
const target = _chunkQFD3VXQSjs.resolveProjectPinTarget.call(void 0, );
|
|
746
746
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
747
747
|
} else {
|
|
748
748
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
749
749
|
}
|
|
750
750
|
}
|
|
751
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
752
|
-
saveEnvValues(
|
|
751
|
+
} else if (resolvedAuthScope === "folder" || _chunkQFD3VXQSjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
752
|
+
saveEnvValues(_chunkQFD3VXQSjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
753
753
|
}
|
|
754
|
-
|
|
754
|
+
_chunkRQJORG4Fjs.printCommandEnvelope.call(void 0,
|
|
755
755
|
{
|
|
756
756
|
...payload,
|
|
757
|
-
...
|
|
758
|
-
command_context:
|
|
757
|
+
..._chunkQFD3VXQSjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
758
|
+
command_context: _chunkQFD3VXQSjs.resolveCliCommandContext.call(void 0,
|
|
759
759
|
{ baseUrl, apiKey },
|
|
760
760
|
resolvedAuthScope
|
|
761
761
|
)
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
recentSearchRef,
|
|
13
13
|
registerDeprecatedSearchCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PRBOPYT2.mjs";
|
|
15
15
|
import {
|
|
16
16
|
extractSummaryFields,
|
|
17
17
|
projectRowOutput,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
import {
|
|
24
24
|
DeeplineClient,
|
|
25
25
|
validateExecutionIdempotencyKey
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-EKWPCKO6.mjs";
|
|
27
27
|
import {
|
|
28
28
|
beginToolExecuteCommand,
|
|
29
29
|
getToolExecuteInvocationId,
|
|
@@ -37,11 +37,11 @@ import {
|
|
|
37
37
|
printJsonError,
|
|
38
38
|
renderCommandEnvelopeText,
|
|
39
39
|
shouldEmitJson
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-XAXLATYC.mjs";
|
|
41
41
|
import {
|
|
42
42
|
resolveConfig,
|
|
43
43
|
sdkCliStateDirPath
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-YK2XGEY3.mjs";
|
|
45
45
|
import {
|
|
46
46
|
playToolListGetterMode
|
|
47
47
|
} from "./chunk-7E66A24V.mjs";
|
|
@@ -1030,7 +1030,7 @@ Examples:
|
|
|
1030
1030
|
process.exitCode = await narrowView();
|
|
1031
1031
|
return;
|
|
1032
1032
|
}
|
|
1033
|
-
const { describeAnything } = await import("./describe-
|
|
1033
|
+
const { describeAnything } = await import("./describe-ZSCT6QLG.mjs");
|
|
1034
1034
|
process.exitCode = await describeAnything(
|
|
1035
1035
|
toolId,
|
|
1036
1036
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-GAMFK2ZP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XAXLATYC.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_SKILL_AGENTS,
|
|
9
9
|
KNOWN_SKILL_AGENTS,
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
sdkCliStateDirPath,
|
|
23
23
|
skillsAgentPathSegment,
|
|
24
24
|
writeSdkSkillsLocalVersion
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-YK2XGEY3.mjs";
|
|
26
26
|
import {
|
|
27
27
|
DeeplineError
|
|
28
28
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XAXLATYC.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-YK2XGEY3.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-XAXLATYC.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-YK2XGEY3.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -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.354",
|
|
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
|
|
@@ -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 _chunk3NL4REIKjs = require('./chunk-3NL4REIK.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkRQJORG4Fjs = require('./chunk-RQJORG4F.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkQFD3VXQSjs = require('./chunk-QFD3VXQS.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, _chunkQFD3VXQSjs.sdkCliStateDirPath.call(void 0, _chunkQFD3VXQSjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
22
22
|
}
|
|
23
23
|
function rememberSearchRef(searchRef) {
|
|
24
24
|
try {
|
|
@@ -145,7 +145,7 @@ function searchRow(item) {
|
|
|
145
145
|
}
|
|
146
146
|
function renderSearchResults(result) {
|
|
147
147
|
if (result.results.length === 0)
|
|
148
|
-
return
|
|
148
|
+
return _chunkRQJORG4Fjs.renderCommandEnvelopeText.call(void 0, result);
|
|
149
149
|
const rows = result.results.map(searchRow);
|
|
150
150
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
151
151
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -169,7 +169,7 @@ function renderSearchResults(result) {
|
|
|
169
169
|
actions: _optionalChain([render, 'optionalAccess', _11 => _11.actions])
|
|
170
170
|
};
|
|
171
171
|
const followUps = _optionalChain([remaining, 'access', _12 => _12.sections, 'optionalAccess', _13 => _13.length]) || _optionalChain([remaining, 'access', _14 => _14.actions, 'optionalAccess', _15 => _15.length]) ? `
|
|
172
|
-
${
|
|
172
|
+
${_chunkRQJORG4Fjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
173
173
|
const notes = rows.flatMap(
|
|
174
174
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
175
175
|
);
|
|
@@ -246,7 +246,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
246
246
|
console.error(USAGE);
|
|
247
247
|
return 1;
|
|
248
248
|
}
|
|
249
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
249
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunk3NL4REIKjs.DeeplineClient)().search({
|
|
250
250
|
query,
|
|
251
251
|
types,
|
|
252
252
|
exclude,
|
|
@@ -260,7 +260,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
260
260
|
});
|
|
261
261
|
if (searchRef) rememberSearchRef(searchRef);
|
|
262
262
|
pointAtDescribe(result);
|
|
263
|
-
|
|
263
|
+
_chunkRQJORG4Fjs.printCommandEnvelope.call(void 0, result, {
|
|
264
264
|
json: options.json === true,
|
|
265
265
|
text: renderSearchResults(result)
|
|
266
266
|
});
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
} from "./chunk-EDWJY6T4.mjs";
|
|
12
12
|
import {
|
|
13
13
|
registerDeprecatedSearchCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PRBOPYT2.mjs";
|
|
15
15
|
import {
|
|
16
16
|
handleDeploymentGet,
|
|
17
17
|
handleDeploymentsList
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-GOKAXPGN.mjs";
|
|
19
19
|
import {
|
|
20
20
|
pinLocalPlayImports,
|
|
21
21
|
planLocalPlayExecution
|
|
@@ -34,7 +34,7 @@ import {
|
|
|
34
34
|
normalizeRunEventOperationRequest,
|
|
35
35
|
parseLogLevel,
|
|
36
36
|
playInputExampleArgs
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-EKWPCKO6.mjs";
|
|
38
38
|
import {
|
|
39
39
|
CSV_DATA_INPUT_KEY,
|
|
40
40
|
buildNamedPlayRunRequest,
|
|
@@ -67,10 +67,10 @@ import {
|
|
|
67
67
|
printJsonError,
|
|
68
68
|
renderCommandEnvelopeText,
|
|
69
69
|
shouldEmitJson
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-XAXLATYC.mjs";
|
|
71
71
|
import {
|
|
72
72
|
fetchWithDeploymentProtection
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-YK2XGEY3.mjs";
|
|
74
74
|
import {
|
|
75
75
|
PLAY_DEFAULT_EXPORT,
|
|
76
76
|
extractDefinedPlayName,
|
|
@@ -16473,7 +16473,7 @@ Examples:
|
|
|
16473
16473
|
process.exitCode = await ownView();
|
|
16474
16474
|
return;
|
|
16475
16475
|
}
|
|
16476
|
-
const { describeAnything } = await import("./describe-
|
|
16476
|
+
const { describeAnything } = await import("./describe-ZSCT6QLG.mjs");
|
|
16477
16477
|
process.exitCode = await describeAnything(
|
|
16478
16478
|
name,
|
|
16479
16479
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XAXLATYC.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-YK2XGEY3.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|