deepline 0.3.335 → 0.3.337
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/internal-bootstrap-token.ts +81 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +18 -5
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +19 -8
- package/dist/bundling-sources/shared_libs/product-notifications/configuration-draft.ts +35 -0
- package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +52 -5
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +3 -5
- package/dist/cli/{auth-UAPR5UHG.mjs → auth-6EREYQBM.mjs} +4 -4
- package/dist/cli/auth-XS3LNSAH.js +31 -0
- package/dist/cli/{billing-7MFJB4YT.js → billing-HZBD5KW6.js} +71 -71
- package/dist/cli/{billing-2M2MOKZ2.mjs → billing-VMXYQMW6.mjs} +4 -4
- package/dist/cli/{chunk-OYWLA5NH.mjs → chunk-2LHYWYHM.mjs} +1 -1
- package/dist/cli/{chunk-5CYUDMCR.mjs → chunk-35JNW43E.mjs} +3 -3
- package/dist/cli/{chunk-T4A2PPAD.js → chunk-3OBY2AGM.js} +45 -45
- package/dist/cli/{chunk-L45TG5XU.js → chunk-4SRIWSEG.js} +60 -60
- package/dist/cli/{chunk-R6HWDMKH.mjs → chunk-5ERCVX2D.mjs} +2 -2
- package/dist/cli/{chunk-V67UHLXQ.js → chunk-5WTJ73QU.js} +225 -225
- package/dist/cli/{chunk-TMGNPDHK.js → chunk-6PGYQ6IG.js} +6 -6
- package/dist/cli/{chunk-U5MMLE2K.mjs → chunk-7MRAPBWB.mjs} +1 -1
- package/dist/cli/{chunk-H3ZK3C4S.js → chunk-A75J52BM.js} +4 -4
- package/dist/cli/{chunk-LD5NKLNP.mjs → chunk-FY65AYHZ.mjs} +4 -4
- package/dist/cli/{chunk-BC5OUOUV.mjs → chunk-GPN5QAN2.mjs} +2 -2
- package/dist/cli/{chunk-H6HO3EX2.mjs → chunk-HBM2UKEU.mjs} +1 -1
- package/dist/cli/{chunk-YJWCFMIA.js → chunk-HDI6GSRQ.js} +48 -48
- package/dist/cli/{chunk-DPTGX6LJ.mjs → chunk-IYK6XS5X.mjs} +6 -6
- package/dist/cli/{chunk-GP5TSYAJ.js → chunk-M7IN66XB.js} +15 -15
- package/dist/cli/{chunk-MGQODOU7.js → chunk-MHWEX6GA.js} +8 -8
- package/dist/cli/{chunk-H2QPAGD4.js → chunk-NC5ODEG7.js} +9 -9
- package/dist/cli/{chunk-HNWBP7F4.js → chunk-NIXE5325.js} +26 -26
- package/dist/cli/{chunk-Z3KXO6AE.mjs → chunk-NQ42LHHS.mjs} +1 -1
- package/dist/cli/{chunk-ROTTZP5Y.js → chunk-QEBA4KXE.js} +6 -6
- package/dist/cli/{chunk-NFZEBZN5.mjs → chunk-TB6HY4BW.mjs} +2 -2
- package/dist/cli/{chunk-G7YDITCA.mjs → chunk-VXCRG4J7.mjs} +1 -1
- package/dist/cli/{chunk-ZY6VIQF3.js → chunk-XFSDLHGS.js} +2 -2
- package/dist/cli/{chunk-FTX3SMNS.mjs → chunk-YQW2FPKQ.mjs} +1 -1
- package/dist/cli/{chunk-2BKBPQYB.js → chunk-YSR4PFTZ.js} +1 -1
- package/dist/cli/{chunk-F67PGWBO.mjs → chunk-ZUB3LXOI.mjs} +5 -5
- package/dist/cli/{client-O7SUBEWH.mjs → client-BLGAYJME.mjs} +3 -3
- package/dist/cli/client-ERDYIAWV.js +20 -0
- package/dist/cli/{csv-3QEFBKVA.mjs → csv-43QTLWPN.mjs} +3 -3
- package/dist/cli/{csv-RKCZ32SM.js → csv-6WIFI6WR.js} +12 -12
- package/dist/cli/{db-6NL2DXCZ.js → db-5XFKB76V.js} +29 -29
- package/dist/cli/{db-YA77SZH2.mjs → db-NCERSUPL.mjs} +4 -4
- package/dist/cli/{describe-3T6SY4OF.js → describe-4DNSNQKM.js} +15 -15
- package/dist/cli/{describe-WRGAPAY4.mjs → describe-V4BPRUES.mjs} +8 -8
- package/dist/cli/{executions-4QH4WOAS.js → executions-GQ4C2FGI.js} +6 -6
- package/dist/cli/{executions-QAXAJTVH.mjs → executions-IGXMYAYA.mjs} +4 -4
- package/dist/cli/{feedback-LE2I5YC6.js → feedback-UFFCKVNH.js} +6 -6
- package/dist/cli/{feedback-27PPTJMV.mjs → feedback-UVDBDHE4.mjs} +3 -3
- package/dist/cli/git-4ORFOHYQ.js +23 -0
- package/dist/cli/{git-C7WLGDRA.mjs → git-XI6XRTIZ.mjs} +4 -4
- package/dist/cli/index.js +79 -79
- package/dist/cli/index.mjs +31 -31
- package/dist/cli/{legacy-noops-LK44HVCZ.js → legacy-noops-5Z3YLPCN.js} +7 -7
- package/dist/cli/{legacy-noops-MENMLXEB.mjs → legacy-noops-IUJOLPED.mjs} +4 -4
- package/dist/cli/{monitors-EPYJCNDI.mjs → monitors-KUS3ROXZ.mjs} +4 -4
- package/dist/cli/{monitors-D2MOP24X.js → monitors-TZAGTEID.js} +85 -85
- package/dist/cli/{org-ZEXEZJWX.js → org-AHHROX6T.js} +60 -60
- package/dist/cli/{org-N5YSFPOM.mjs → org-SLIG47UE.mjs} +4 -4
- package/dist/cli/{play-EJJKDHUY.mjs → play-G4AQ2OZ5.mjs} +7 -7
- package/dist/cli/play-RRKTT3F2.js +153 -0
- package/dist/cli/{providers-BE7A6VON.js → providers-PBFVQ2EP.js} +7 -7
- package/dist/cli/{providers-5UPKT6WL.mjs → providers-XQIQO6M3.mjs} +4 -4
- package/dist/cli/{quickstart-FPBWZ3XR.mjs → quickstart-PCASXB6T.mjs} +3 -3
- package/dist/cli/{quickstart-QYWCXL3Z.js → quickstart-X6CLGXVG.js} +5 -5
- package/dist/cli/search-QGFQSDJI.js +26 -0
- package/dist/cli/{search-WN6UAW3I.mjs → search-ZTYQBKME.mjs} +5 -5
- package/dist/cli/{secrets-DGY65IAZ.mjs → secrets-IDF3FB7W.mjs} +4 -4
- package/dist/cli/{secrets-2NBEJSA7.js → secrets-N3DWWVAY.js} +13 -13
- package/dist/cli/{sessions-FQTEUX6Q.mjs → sessions-ECDSBB7P.mjs} +4 -4
- package/dist/cli/{sessions-EPSCU52L.js → sessions-SXXMNGUT.js} +5 -5
- package/dist/cli/{settings-AVW7W6KG.mjs → settings-FKARLN4C.mjs} +7 -7
- package/dist/cli/{settings-QWUYZKVG.js → settings-IXHK6BAK.js} +74 -74
- package/dist/cli/{setup-D3ZMOSVR.mjs → setup-LJG55UUU.mjs} +6 -6
- package/dist/cli/{setup-G7F5LIFR.js → setup-MJXYEE27.js} +41 -41
- package/dist/cli/{skills-744HOKKT.mjs → skills-3IBFR2ZU.mjs} +4 -4
- package/dist/cli/skills-RI3IZNWB.js +28 -0
- package/dist/cli/tools-NQJLSI4O.js +40 -0
- package/dist/cli/{tools-DJRG7RTC.mjs → tools-ZJTHJHAD.mjs} +6 -6
- package/dist/cli/update-JY7TJJDL.js +28 -0
- package/dist/cli/{update-ORTHR3FA.mjs → update-ZN34FLDH.mjs} +6 -6
- package/dist/cli/{workflow-XD7CRWCQ.mjs → workflow-LPCF7OMO.mjs} +5 -5
- package/dist/cli/{workflow-5IIN7CW2.js → workflow-VLCSTKPW.js} +15 -15
- package/dist/{client-PDAfbylh.d.mts → client-B-hjM1NX.d.mts} +18 -2
- package/dist/{client-DkoxT4wF.d.ts → client-txa3om01.d.ts} +18 -2
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +76 -76
- 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/package.json +1 -1
- package/dist/cli/auth-7K5HVWDU.js +0 -31
- package/dist/cli/client-JEP4W4GO.js +0 -20
- package/dist/cli/git-PY2E4CUB.js +0 -23
- package/dist/cli/play-ZLRJLPLS.js +0 -153
- package/dist/cli/search-XM4JURG3.js +0 -26
- package/dist/cli/skills-FNGT3DEV.js +0 -28
- package/dist/cli/tools-CPNEQIQP.js +0 -40
- package/dist/cli/update-K7FVDY7F.js +0 -28
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkA75J52BMjs = require('./chunk-A75J52BM.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
@@ -136,8 +136,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
136
136
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
137
137
|
var defaultBrowserCommandRunner = childProcess;
|
|
138
138
|
function getAuthedHttpClient() {
|
|
139
|
-
const config =
|
|
140
|
-
return { config, http: new (0,
|
|
139
|
+
const config = _chunkA75J52BMjs.resolveConfig.call(void 0, );
|
|
140
|
+
return { config, http: new (0, _chunkA75J52BMjs.HttpClient)(config) };
|
|
141
141
|
}
|
|
142
142
|
function stableOsUserId() {
|
|
143
143
|
try {
|
|
@@ -477,7 +477,7 @@ function collectLocalEnvInfo() {
|
|
|
477
477
|
os: `${process.platform} ${process.arch}`,
|
|
478
478
|
node_version: process.version,
|
|
479
479
|
home_dir: homeDir,
|
|
480
|
-
agent_runtime:
|
|
480
|
+
agent_runtime: _chunkA75J52BMjs.detectAgentRuntime.call(void 0, )
|
|
481
481
|
};
|
|
482
482
|
const env = process.env;
|
|
483
483
|
const optional = {
|
|
@@ -725,9 +725,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
725
725
|
}
|
|
726
726
|
function withAgentCommandContext(value) {
|
|
727
727
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
728
|
-
return
|
|
728
|
+
return _chunkA75J52BMjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
729
729
|
...valueRecord,
|
|
730
|
-
command_context:
|
|
730
|
+
command_context: _chunkA75J52BMjs.resolveCliCommandContext.call(void 0, )
|
|
731
731
|
} : value;
|
|
732
732
|
}
|
|
733
733
|
function printJson(value, fields) {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkYSR4PFTZjs = require('./chunk-YSR4PFTZ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
@@ -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 = _chunkYSR4PFTZjs.SDK_RELEASE.version;
|
|
747
|
+
var SDK_API_MAJOR = _chunkYSR4PFTZjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
748
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkYSR4PFTZjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
749
749
|
|
|
750
750
|
// src/agent-runtime.ts
|
|
751
751
|
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-HBM2UKEU.mjs";
|
|
5
5
|
import {
|
|
6
6
|
resolveShellSpawn,
|
|
7
7
|
runSkillsCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-TB6HY4BW.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YQW2FPKQ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
autoDetectBaseUrl
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NQ42LHHS.mjs";
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-YQW2FPKQ.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-NQ42LHHS.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk6PGYQ6IGjs = require('./chunk-6PGYQ6IG.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -25,7 +25,7 @@ var _chunkTMGNPDHKjs = require('./chunk-TMGNPDHK.js');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkA75J52BMjs = require('./chunk-A75J52BM.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 _chunkA75J52BMjs.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 = _chunkA75J52BMjs.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 `${_chunkA75J52BMjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
79
79
|
}
|
|
80
80
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
81
|
-
return `${
|
|
81
|
+
return `${_chunkA75J52BMjs.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 _chunkA75J52BMjs.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[_chunkA75J52BMjs.HOST_URL_ENV] ? { [_chunkA75J52BMjs.HOST_URL_ENV]: values[_chunkA75J52BMjs.HOST_URL_ENV] } : {},
|
|
188
|
+
...values[_chunkA75J52BMjs.API_KEY_ENV] ? { [_chunkA75J52BMjs.API_KEY_ENV]: values[_chunkA75J52BMjs.API_KEY_ENV] } : {},
|
|
189
|
+
...values[_chunkA75J52BMjs.ACTIVE_ORG_ID_ENV] ? { [_chunkA75J52BMjs.ACTIVE_ORG_ID_ENV]: values[_chunkA75J52BMjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
190
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkA75J52BMjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkA75J52BMjs.ACTIVE_ORG_NAME_ENV]: values[_chunkA75J52BMjs.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, _chunkA75J52BMjs.FEATURES_ENV) ? { [_chunkA75J52BMjs.FEATURES_ENV]: values[_chunkA75J52BMjs.FEATURES_ENV] } : {}
|
|
193
193
|
};
|
|
194
194
|
if (scope === "folder") {
|
|
195
|
-
|
|
195
|
+
_chunkA75J52BMjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
196
196
|
} else {
|
|
197
|
-
|
|
197
|
+
_chunkA75J52BMjs.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
|
+
[_chunkA75J52BMjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
206
|
+
[_chunkA75J52BMjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
207
|
+
..._chunkA75J52BMjs.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/${_chunkA75J52BMjs.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": _chunkA75J52BMjs.detectAgentRuntime.call(void 0, ),
|
|
217
|
+
"X-Deepline-CLI-Version": _chunkA75J52BMjs.SDK_VERSION,
|
|
218
|
+
"X-Deepline-SDK-Version": _chunkA75J52BMjs.SDK_VERSION,
|
|
219
|
+
"X-Deepline-API-Contract": _chunkA75J52BMjs.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" ? _chunkA75J52BMjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkA75J52BMjs.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 = _chunkA75J52BMjs.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
|
+
[_chunkA75J52BMjs.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" && _chunkA75J52BMjs.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) _chunk6PGYQ6IGjs.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
|
+
[_chunkA75J52BMjs.HOST_URL_ENV]: baseUrl,
|
|
465
|
+
[_chunkA75J52BMjs.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 = _chunkA75J52BMjs.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" ? _chunkA75J52BMjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkA75J52BMjs.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
|
+
[_chunkA75J52BMjs.HOST_URL_ENV]: baseUrl,
|
|
555
|
+
[_chunkA75J52BMjs.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 = _chunkA75J52BMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
580
580
|
const reveal = args.includes("--reveal");
|
|
581
|
-
const jsonOutput =
|
|
581
|
+
const jsonOutput = _chunk6PGYQ6IGjs.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" ? _chunkA75J52BMjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkA75J52BMjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkA75J52BMjs.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
|
+
_chunk6PGYQ6IGjs.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
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
650
650
|
{
|
|
651
651
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
652
652
|
status: "not connected",
|
|
@@ -682,7 +682,7 @@ async function handleStatus(args) {
|
|
|
682
682
|
}
|
|
683
683
|
);
|
|
684
684
|
if (status === 401 || status === 403) {
|
|
685
|
-
|
|
685
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
686
686
|
{
|
|
687
687
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
688
688
|
status: "unauthorized",
|
|
@@ -712,7 +712,7 @@ async function handleStatus(args) {
|
|
|
712
712
|
console.error(`Auth status error (status ${status}).`);
|
|
713
713
|
return EXIT_SERVER;
|
|
714
714
|
}
|
|
715
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
715
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkA75J52BMjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
716
716
|
clearSatisfiedPendingClaim(
|
|
717
717
|
baseUrl,
|
|
718
718
|
resolvedAuthScope,
|
|
@@ -740,28 +740,28 @@ async function handleStatus(args) {
|
|
|
740
740
|
if (apiKeyResp) {
|
|
741
741
|
saveEnvValues(
|
|
742
742
|
{
|
|
743
|
-
[
|
|
744
|
-
[
|
|
743
|
+
[_chunkA75J52BMjs.HOST_URL_ENV]: baseUrl,
|
|
744
|
+
[_chunkA75J52BMjs.API_KEY_ENV]: apiKeyResp,
|
|
745
745
|
...activeOrgEnvValues(data)
|
|
746
746
|
},
|
|
747
747
|
baseUrl,
|
|
748
748
|
resolvedAuthScope
|
|
749
749
|
);
|
|
750
750
|
if (resolvedAuthScope === "folder") {
|
|
751
|
-
const target =
|
|
751
|
+
const target = _chunkA75J52BMjs.resolveProjectPinTarget.call(void 0, );
|
|
752
752
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
753
753
|
} else {
|
|
754
754
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
755
755
|
}
|
|
756
756
|
}
|
|
757
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
758
|
-
saveEnvValues(
|
|
757
|
+
} else if (resolvedAuthScope === "folder" || _chunkA75J52BMjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
758
|
+
saveEnvValues(_chunkA75J52BMjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
759
759
|
}
|
|
760
|
-
|
|
760
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
761
761
|
{
|
|
762
762
|
...payload,
|
|
763
|
-
...
|
|
764
|
-
command_context:
|
|
763
|
+
..._chunkA75J52BMjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
764
|
+
command_context: _chunkA75J52BMjs.resolveCliCommandContext.call(void 0,
|
|
765
765
|
{ baseUrl, apiKey },
|
|
766
766
|
resolvedAuthScope
|
|
767
767
|
)
|
|
@@ -10,11 +10,11 @@ import {
|
|
|
10
10
|
} from "./chunk-EDWJY6T4.mjs";
|
|
11
11
|
import {
|
|
12
12
|
registerDeprecatedSearchCommand
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-35JNW43E.mjs";
|
|
14
14
|
import {
|
|
15
15
|
handleDeploymentGet,
|
|
16
16
|
handleDeploymentsList
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5ERCVX2D.mjs";
|
|
18
18
|
import {
|
|
19
19
|
PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY,
|
|
20
20
|
PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
normalizeRunEventOperationRequest,
|
|
40
40
|
parseLogLevel,
|
|
41
41
|
playInputExampleArgs
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-7MRAPBWB.mjs";
|
|
43
43
|
import {
|
|
44
44
|
CSV_DATA_INPUT_KEY,
|
|
45
45
|
buildNamedPlayRunRequest,
|
|
@@ -72,10 +72,10 @@ import {
|
|
|
72
72
|
printJsonError,
|
|
73
73
|
renderCommandEnvelopeText,
|
|
74
74
|
shouldEmitJson
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-YQW2FPKQ.mjs";
|
|
76
76
|
import {
|
|
77
77
|
fetchWithDeploymentProtection
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-NQ42LHHS.mjs";
|
|
79
79
|
import {
|
|
80
80
|
PLAY_DEFAULT_EXPORT,
|
|
81
81
|
extractDefinedPlayName,
|
|
@@ -18166,7 +18166,7 @@ Examples:
|
|
|
18166
18166
|
process.exitCode = await ownView();
|
|
18167
18167
|
return;
|
|
18168
18168
|
}
|
|
18169
|
-
const { describeAnything } = await import("./describe-
|
|
18169
|
+
const { describeAnything } = await import("./describe-V4BPRUES.mjs");
|
|
18170
18170
|
process.exitCode = await describeAnything(
|
|
18171
18171
|
name,
|
|
18172
18172
|
{
|
|
@@ -1,17 +1,17 @@
|
|
|
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 _chunkXFSDLHGSjs = require('./chunk-XFSDLHGS.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunk4SRIWSEGjs = require('./chunk-4SRIWSEG.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk6PGYQ6IGjs = require('./chunk-6PGYQ6IG.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkA75J52BMjs = require('./chunk-A75J52BM.js');
|
|
15
15
|
|
|
16
16
|
// src/cli/commands/update.ts
|
|
17
17
|
var _child_process = require('child_process');
|
|
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
|
|
|
489
489
|
}
|
|
490
490
|
function resolveNpmGlobalPrefix(env) {
|
|
491
491
|
try {
|
|
492
|
-
const plan =
|
|
492
|
+
const plan = _chunk4SRIWSEGjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
|
|
493
493
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
494
494
|
encoding: "utf8",
|
|
495
495
|
env,
|
|
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
545
545
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
546
546
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
547
547
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
548
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
549
|
-
const npmGlobalInstallFlags =
|
|
548
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkXFSDLHGSjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
549
|
+
const npmGlobalInstallFlags = _chunkXFSDLHGSjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
550
550
|
const args = installPrefix ? [
|
|
551
551
|
"install",
|
|
552
552
|
"-g",
|
|
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
packageSpec
|
|
557
557
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
558
558
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
559
|
-
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) ||
|
|
559
|
+
_optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkA75J52BMjs.autoDetectBaseUrl.call(void 0, )
|
|
560
560
|
);
|
|
561
561
|
return {
|
|
562
562
|
kind: "npm-global",
|
|
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
703
703
|
function runCommand(command, args, env = process.env) {
|
|
704
704
|
return new Promise((resolveResult) => {
|
|
705
705
|
let output = "";
|
|
706
|
-
const plan =
|
|
706
|
+
const plan = _chunk4SRIWSEGjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
707
707
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
708
708
|
stdio: ["inherit", "pipe", "pipe"],
|
|
709
709
|
shell: plan.shell,
|
|
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1079
1079
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1080
1080
|
}
|
|
1081
1081
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1082
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1082
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkA75J52BMjs.autoDetectBaseUrl));
|
|
1083
1083
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1084
1084
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1085
1085
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1086
1086
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1087
1087
|
process.stdout.write = (() => true);
|
|
1088
1088
|
try {
|
|
1089
|
-
const exitCode = await
|
|
1089
|
+
const exitCode = await _chunk4SRIWSEGjs.runSkillsCommand.call(void 0, { json: true });
|
|
1090
1090
|
if (exitCode !== 0) {
|
|
1091
1091
|
throw new Error(
|
|
1092
1092
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1157
1157
|
]
|
|
1158
1158
|
};
|
|
1159
1159
|
if (options.json && !options.executeWithJson) {
|
|
1160
|
-
|
|
1160
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1161
1161
|
return 0;
|
|
1162
1162
|
}
|
|
1163
1163
|
if (options.printCommand) {
|
|
1164
|
-
|
|
1164
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
1165
1165
|
{
|
|
1166
1166
|
...plan,
|
|
1167
1167
|
render: {
|
|
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1174
1174
|
return 0;
|
|
1175
1175
|
}
|
|
1176
1176
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1177
|
-
|
|
1177
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1178
1178
|
return 0;
|
|
1179
1179
|
}
|
|
1180
1180
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills --json
|
|
|
1204
1204
|
);
|
|
1205
1205
|
}
|
|
1206
1206
|
if (options.executeWithJson && options.json) {
|
|
1207
|
-
|
|
1207
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0,
|
|
1208
1208
|
{
|
|
1209
1209
|
ok: true,
|
|
1210
1210
|
pinnedVersion
|
|
@@ -1,21 +1,21 @@
|
|
|
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 _chunkNC5ODEG7js = require('./chunk-NC5ODEG7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk6PGYQ6IGjs = require('./chunk-6PGYQ6IG.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkA75J52BMjs = require('./chunk-A75J52BM.js');
|
|
12
12
|
|
|
13
13
|
// src/cli/search-ref.ts
|
|
14
14
|
var _fs = require('fs');
|
|
15
15
|
var _path = require('path');
|
|
16
16
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
17
17
|
function lastSearchPath() {
|
|
18
|
-
return _path.join.call(void 0,
|
|
18
|
+
return _path.join.call(void 0, _chunkA75J52BMjs.sdkCliStateDirPath.call(void 0, _chunkA75J52BMjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
19
19
|
}
|
|
20
20
|
function rememberSearchRef(searchRef) {
|
|
21
21
|
try {
|
|
@@ -127,7 +127,7 @@ function searchRow(item) {
|
|
|
127
127
|
}
|
|
128
128
|
function renderSearchResults(result) {
|
|
129
129
|
if (result.results.length === 0)
|
|
130
|
-
return
|
|
130
|
+
return _chunk6PGYQ6IGjs.renderCommandEnvelopeText.call(void 0, result);
|
|
131
131
|
const rows = result.results.map(searchRow);
|
|
132
132
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
133
133
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -144,7 +144,7 @@ function renderSearchResults(result) {
|
|
|
144
144
|
actions: _optionalChain([render, 'optionalAccess', _9 => _9.actions])
|
|
145
145
|
};
|
|
146
146
|
const followUps = _optionalChain([remaining, 'access', _10 => _10.sections, 'optionalAccess', _11 => _11.length]) || _optionalChain([remaining, 'access', _12 => _12.actions, 'optionalAccess', _13 => _13.length]) ? `
|
|
147
|
-
${
|
|
147
|
+
${_chunk6PGYQ6IGjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
148
148
|
const notes = rows.flatMap(
|
|
149
149
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
150
150
|
);
|
|
@@ -224,7 +224,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
224
224
|
console.error(USAGE);
|
|
225
225
|
return 1;
|
|
226
226
|
}
|
|
227
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
227
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkNC5ODEG7js.DeeplineClient)().search({
|
|
228
228
|
query,
|
|
229
229
|
types,
|
|
230
230
|
exclude,
|
|
@@ -238,7 +238,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
238
238
|
});
|
|
239
239
|
if (searchRef) rememberSearchRef(searchRef);
|
|
240
240
|
pointAtDescribe(result);
|
|
241
|
-
|
|
241
|
+
_chunk6PGYQ6IGjs.printCommandEnvelope.call(void 0, result, {
|
|
242
242
|
json: options.json === true,
|
|
243
243
|
text: renderSearchResults(result)
|
|
244
244
|
});
|