deepline 0.3.513 → 0.3.515
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/completed-answer.ts +134 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +25 -31
- package/dist/bundling-sources/shared_libs/play-runtime/durable-call-policy.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +33 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +71 -1
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -4
- package/dist/cli/{artifacts-SZA52D3P.js → artifacts-6ONZSASU.js} +18 -18
- package/dist/cli/{artifacts-AMM4RZNI.mjs → artifacts-C3262FEY.mjs} +6 -6
- package/dist/cli/{auth-3HQ7FXPX.mjs → auth-BVCHIFKH.mjs} +5 -5
- package/dist/cli/auth-VYECQ6PI.js +43 -0
- package/dist/cli/{billing-SVFRN4BJ.js → billing-APS3ELBH.js} +82 -82
- package/dist/cli/{billing-7AIKDEQQ.mjs → billing-DUKPCJD5.mjs} +7 -7
- package/dist/cli/{chunk-K3CUVLW7.mjs → chunk-2AVO64J2.mjs} +1 -1
- package/dist/cli/{chunk-ROIFA4H7.mjs → chunk-2SG4MRCI.mjs} +6 -6
- package/dist/cli/{chunk-KINDIV44.mjs → chunk-2T6ZOAXX.mjs} +4 -4
- package/dist/cli/{chunk-D72M5LBQ.js → chunk-4FN4WVGL.js} +10 -10
- package/dist/cli/{chunk-SDD75XIU.js → chunk-4H3XE5OX.js} +6 -6
- package/dist/cli/{chunk-3UKVFI2R.js → chunk-5I2L6VMP.js} +7 -7
- package/dist/cli/{chunk-QDGUDNVR.js → chunk-5TOFI5GC.js} +7 -7
- package/dist/cli/{chunk-OD72PULZ.mjs → chunk-5YFBVXFQ.mjs} +2 -2
- package/dist/cli/{chunk-7UVKC5G4.mjs → chunk-62PFEEX3.mjs} +1 -1
- package/dist/cli/{chunk-P63SBUEW.mjs → chunk-6FM7YDHA.mjs} +1 -1
- package/dist/cli/{chunk-TWHJ4WCA.js → chunk-7TFAKDSD.js} +16 -16
- package/dist/cli/{chunk-FC6BR2OA.mjs → chunk-AC3YRA3Y.mjs} +13 -12
- package/dist/cli/{chunk-JI2LKS5V.js → chunk-BSR56POG.js} +11 -11
- package/dist/cli/{chunk-P6TG7COR.js → chunk-BX5N4YT4.js} +53 -53
- package/dist/cli/{chunk-5IZXMA2L.js → chunk-C24VEYSP.js} +17 -4
- package/dist/cli/{chunk-7NIBAJML.mjs → chunk-CB4ZU276.mjs} +2 -2
- package/dist/cli/{chunk-MPOF4Z44.js → chunk-CZLYC62O.js} +1 -1
- package/dist/cli/{chunk-Z52XVM5I.js → chunk-DEGOD6EH.js} +3 -3
- package/dist/cli/{chunk-VMLZQ3VM.js → chunk-DWASXQF6.js} +14 -14
- package/dist/cli/{chunk-LA66PYB4.mjs → chunk-EA775NLJ.mjs} +2 -2
- package/dist/cli/{chunk-UDVX7HKU.js → chunk-F6OXFG5K.js} +16 -16
- package/dist/cli/{chunk-PGHCBL5G.js → chunk-FGKQ2MVA.js} +3 -3
- package/dist/cli/{chunk-XCP75LSJ.mjs → chunk-FHJTOHSE.mjs} +1 -1
- package/dist/cli/{chunk-JNNQ53BX.mjs → chunk-FVWUNN6J.mjs} +2 -2
- package/dist/cli/{chunk-YZW4ZLU3.js → chunk-GESSUOYZ.js} +38 -23
- package/dist/cli/{chunk-5UWWZLMX.mjs → chunk-HJ5B67S3.mjs} +17 -4
- package/dist/cli/{chunk-EAQQTYJL.js → chunk-HSESQ4OG.js} +5 -5
- package/dist/cli/{chunk-PFEFK2FB.js → chunk-JMPBBVRF.js} +26 -26
- package/dist/cli/{chunk-HDDE4Y4V.js → chunk-JUCUJFBH.js} +2 -2
- package/dist/cli/{chunk-6UVAYLQG.js → chunk-LVVWOMK6.js} +2 -2
- package/dist/cli/{chunk-FLG3VIDQ.mjs → chunk-LXOMP5AZ.mjs} +5 -5
- package/dist/cli/{chunk-JA5PBN44.js → chunk-M4DZLI3T.js} +6 -6
- package/dist/cli/{chunk-PPQU263U.mjs → chunk-MMZO25CN.mjs} +2 -2
- package/dist/cli/{chunk-3WHK7WCP.mjs → chunk-N43XH6VY.mjs} +3 -3
- package/dist/cli/{chunk-ROJ55CXM.mjs → chunk-NP6FLJ75.mjs} +1 -1
- package/dist/cli/{chunk-6JNRYX65.js → chunk-NTWNM5IW.js} +2 -2
- package/dist/cli/{chunk-ZDO67LFA.mjs → chunk-ODJS43GU.mjs} +5 -5
- package/dist/cli/{chunk-P2EHYH2Q.mjs → chunk-QPA3ZG56.mjs} +1 -1
- package/dist/cli/{chunk-46QVEEXR.mjs → chunk-R5RWDO75.mjs} +1 -1
- package/dist/cli/{chunk-ZKUXTF6X.mjs → chunk-RK5V6MFG.mjs} +2 -2
- package/dist/cli/{chunk-ORQVTTTM.js → chunk-RPXW5XUC.js} +5 -5
- package/dist/cli/{chunk-B4BKATGX.mjs → chunk-T6XPF7AP.mjs} +21 -6
- package/dist/cli/{chunk-H6WD65CD.js → chunk-TRJLHTHI.js} +99 -98
- package/dist/cli/{chunk-4EGBOZ53.js → chunk-TTH5IEHD.js} +9 -9
- package/dist/cli/{chunk-5T4SZPVO.mjs → chunk-TX4OUEUU.mjs} +2 -2
- package/dist/cli/{chunk-CEWRCUSH.mjs → chunk-TYUC56PS.mjs} +23 -12
- package/dist/cli/{chunk-ADB6FD2Q.js → chunk-UBY2MSP4.js} +41 -41
- package/dist/cli/{chunk-C5KH6FDN.mjs → chunk-Z6PDSCJ3.mjs} +3 -3
- package/dist/cli/{chunk-U5QR527Y.js → chunk-Z7YEZWP3.js} +62 -51
- package/dist/cli/{chunk-Y2SIHXYS.js → chunk-ZEZAFOH3.js} +4 -4
- package/dist/cli/{chunk-WFN6SB2B.mjs → chunk-ZL4C3NPO.mjs} +1 -1
- package/dist/cli/{chunk-3SE4O52N.mjs → chunk-ZMFR4BKH.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-WKF5O6C4.js → csv-L63HLRNM.js} +13 -13
- package/dist/cli/{csv-56JWAO3Y.mjs → csv-NOYOCDAK.mjs} +4 -4
- package/dist/cli/{db-SENEFS45.mjs → db-637BNZ2B.mjs} +6 -6
- package/dist/cli/{db-UURETUXZ.js → db-UBQFFOTS.js} +27 -27
- package/dist/cli/describe-C7FBGVGM.js +50 -0
- package/dist/cli/{describe-R3XKAGF5.mjs → describe-KAUMYSRG.mjs} +18 -18
- package/dist/cli/{executions-BAUUWHSW.mjs → executions-NGPKKOLW.mjs} +6 -6
- package/dist/cli/{executions-WZUS3S2K.js → executions-RNOBWJ3P.js} +8 -8
- package/dist/cli/{feedback-Z6A7WMJS.js → feedback-7BHVKCY5.js} +10 -10
- package/dist/cli/{feedback-5SCDE247.mjs → feedback-NREYHFEJ.mjs} +5 -5
- package/dist/cli/{git-246MRTK7.mjs → git-DSTDRP3J.mjs} +5 -5
- package/dist/cli/git-XTEKRVO3.js +25 -0
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-M242HT67.mjs → legacy-noops-TC7WNDQS.mjs} +6 -6
- package/dist/cli/{legacy-noops-AKETAVNI.js → legacy-noops-VTNA7T4P.js} +9 -9
- package/dist/cli/{monitors-QIHYTSKD.js → monitors-IC4NIUE5.js} +100 -100
- package/dist/cli/{monitors-N5T6PLCX.mjs → monitors-YNQ6LYCY.mjs} +7 -7
- package/dist/cli/{org-BSCPIN7Y.js → org-B47C34FY.js} +72 -72
- package/dist/cli/{org-YMDLKBVM.mjs → org-MF2UEFK4.mjs} +6 -6
- package/dist/cli/{pages-FRLPAY6I.mjs → pages-3EC54UPO.mjs} +6 -6
- package/dist/cli/{pages-BYSQBWD5.js → pages-A3JMHBHD.js} +18 -18
- package/dist/cli/{play-CMJI6RNI.mjs → play-BLFSS42Z.mjs} +18 -18
- package/dist/cli/{play-OIJAMP5P.js → play-LAEAIGU4.js} +317 -317
- package/dist/cli/{providers-KWFIH3E7.mjs → providers-PEXILFIA.mjs} +6 -6
- package/dist/cli/{providers-6Q7H2RYZ.js → providers-XNC5JF3F.js} +9 -9
- package/dist/cli/{quickstart-UZWAQ7VJ.mjs → quickstart-E2PKFV2L.mjs} +4 -4
- package/dist/cli/{quickstart-GU35UZPU.js → quickstart-XRU23BKT.js} +6 -6
- package/dist/cli/{run-AJ24G4CT.mjs → run-5QI3H7HH.mjs} +23 -23
- package/dist/cli/{run-OYOQIVBM.js → run-T7U6DRMZ.js} +41 -41
- package/dist/cli/search-A6HYC5XI.js +33 -0
- package/dist/cli/{search-2KNDV3DL.mjs → search-WLXLC3Z3.mjs} +8 -8
- package/dist/cli/{search-output-526FOJQD.js → search-output-7WXW6WZQ.js} +6 -6
- package/dist/cli/{search-output-X5TMIIA4.mjs → search-output-HGO5JVJO.mjs} +4 -4
- package/dist/cli/{secrets-QL5SMK62.js → secrets-TTGCKS7Z.js} +15 -15
- package/dist/cli/{secrets-XEOGG6TV.mjs → secrets-ZYDUC6NU.mjs} +6 -6
- package/dist/cli/{sessions-Z352OY5B.mjs → sessions-3KMK76O3.mjs} +6 -6
- package/dist/cli/sessions-5X4PTBB6.js +18 -0
- package/dist/cli/{settings-EKLYIRWJ.js → settings-LF43ODWF.js} +86 -86
- package/dist/cli/{settings-AET5AKBY.mjs → settings-YA3ZNWZA.mjs} +13 -13
- package/dist/cli/{setup-JPGTZYR2.mjs → setup-26D6ZPSI.mjs} +10 -10
- package/dist/cli/{setup-IJWDEYLG.js → setup-XBY4GXCA.js} +50 -50
- package/dist/cli/{skills-DGCK6723.mjs → skills-LYPZTDUL.mjs} +8 -8
- package/dist/cli/skills-ZA7YZBQC.js +37 -0
- package/dist/cli/{tools-7GEQLQWX.mjs → tools-5JNLULNK.mjs} +17 -17
- package/dist/cli/tools-LBDNLH4V.js +57 -0
- package/dist/cli/update-CEH2LRAC.js +35 -0
- package/dist/cli/{update-SAN6LDPT.mjs → update-UIO6RHIB.mjs} +10 -10
- package/dist/cli/{workflow-C66GOHRB.mjs → workflow-H5UVEIGG.mjs} +7 -7
- package/dist/cli/{workflow-E4NGYGGM.js → workflow-UQ2S2X42.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +107 -106
- package/dist/plays/bundle-play-file.mjs +6 -4
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-THCURTEC.js +0 -43
- package/dist/cli/describe-GIJAGNZM.js +0 -50
- package/dist/cli/git-D5UAIEQE.js +0 -25
- package/dist/cli/search-UZM6U4MZ.js +0 -33
- package/dist/cli/sessions-T27GUYZX.js +0 -18
- package/dist/cli/skills-MLMVPHWG.js +0 -37
- package/dist/cli/tools-5WBKZRLQ.js +0 -57
- package/dist/cli/update-JK4NLT4H.js +0 -35
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-RK5V6MFG.mjs";
|
|
4
4
|
import {
|
|
5
5
|
iterateCursorPages,
|
|
6
6
|
requireBillingIdempotencyKey
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6FM7YDHA.mjs";
|
|
8
8
|
import "./chunk-L2VKAASU.mjs";
|
|
9
9
|
import "./chunk-N4TR6QRI.mjs";
|
|
10
10
|
import "./chunk-S3A4IXBQ.mjs";
|
|
11
11
|
import "./chunk-BMCRTI6Z.mjs";
|
|
12
12
|
import {
|
|
13
13
|
PLAY_RUNTIME_PRICING_NOTE
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HJ5B67S3.mjs";
|
|
15
15
|
import "./chunk-5LUF4LAR.mjs";
|
|
16
16
|
import {
|
|
17
17
|
PLAY_SANDBOX_SIZE_INPUTS
|
|
@@ -22,9 +22,9 @@ import {
|
|
|
22
22
|
openInBrowser,
|
|
23
23
|
printCommandEnvelope,
|
|
24
24
|
shouldEmitJson
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-TX4OUEUU.mjs";
|
|
26
|
+
import "./chunk-ZMFR4BKH.mjs";
|
|
27
|
+
import "./chunk-62PFEEX3.mjs";
|
|
28
28
|
import {
|
|
29
29
|
AuthError,
|
|
30
30
|
ConfigError
|
|
@@ -33,7 +33,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-R5RWDO75.mjs";
|
|
37
37
|
import "./chunk-WZYKRD7T.mjs";
|
|
38
38
|
import "./chunk-KRD6H754.mjs";
|
|
39
39
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AC3YRA3Y.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-QPA3ZG56.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
@@ -14,18 +14,18 @@ import {
|
|
|
14
14
|
} from "./chunk-ITJ7NB2D.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-RK5V6MFG.mjs";
|
|
18
18
|
import {
|
|
19
19
|
failureReportHeaders,
|
|
20
20
|
isFailureReportingDisabled
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-5YFBVXFQ.mjs";
|
|
22
22
|
import {
|
|
23
23
|
printCommandEnvelope
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-TX4OUEUU.mjs";
|
|
25
25
|
import {
|
|
26
26
|
autoDetectBaseUrl,
|
|
27
27
|
resolveApiKeyForBaseUrl
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-ZMFR4BKH.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/describe.ts
|
|
31
31
|
import { writeFileSync } from "fs";
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TYUC56PS.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TX4OUEUU.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-ZMFR4BKH.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-62PFEEX3.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
30
|
} from "./chunk-5JPKRDFC.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkNTWNM5IWjs = require('./chunk-NTWNM5IW.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5I2L6VMPjs = require('./chunk-5I2L6VMP.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkZEZAFOH3js = require('./chunk-ZEZAFOH3.js');
|
|
11
11
|
|
|
12
12
|
// src/cli/commands/sessions.ts
|
|
13
13
|
|
|
@@ -142,7 +142,7 @@ function currentSessionFile(agent) {
|
|
|
142
142
|
const newestFirst = listSessionFiles(agent).sort(
|
|
143
143
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
144
144
|
);
|
|
145
|
-
const sessionId =
|
|
145
|
+
const sessionId = _chunkZEZAFOH3js.agentSessionIdFromEnvironment.call(void 0,
|
|
146
146
|
process.env,
|
|
147
147
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
148
148
|
);
|
|
@@ -454,7 +454,7 @@ function buildSessionUploadContent(raw) {
|
|
|
454
454
|
return { encodedContent: encoded, needsChunking: true };
|
|
455
455
|
}
|
|
456
456
|
async function uploadPayload(path, payload) {
|
|
457
|
-
const { http } =
|
|
457
|
+
const { http } = _chunk5I2L6VMPjs.getAuthedHttpClient.call(void 0, );
|
|
458
458
|
return await http.post(path, payload);
|
|
459
459
|
}
|
|
460
460
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -487,7 +487,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
487
487
|
...options.rating ? { rating: options.rating } : {}
|
|
488
488
|
});
|
|
489
489
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
490
|
-
|
|
490
|
+
_chunk5I2L6VMPjs.printCommandEnvelope.call(void 0,
|
|
491
491
|
{
|
|
492
492
|
...response,
|
|
493
493
|
ok: true,
|
|
@@ -508,7 +508,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
508
508
|
);
|
|
509
509
|
}
|
|
510
510
|
async function handleSessionsSend(options) {
|
|
511
|
-
if (
|
|
511
|
+
if (_chunkNTWNM5IWjs.rejectRestrictedFeedback.call(void 0, options)) return;
|
|
512
512
|
const rating = parseSessionRating(options.rating);
|
|
513
513
|
if (options.file) {
|
|
514
514
|
const filePath = _path.resolve.call(void 0, options.file);
|
|
@@ -520,7 +520,7 @@ async function handleSessionsSend(options) {
|
|
|
520
520
|
filename: _path.basename.call(void 0, filePath),
|
|
521
521
|
...rating ? { rating } : {}
|
|
522
522
|
});
|
|
523
|
-
|
|
523
|
+
_chunk5I2L6VMPjs.printCommandEnvelope.call(void 0,
|
|
524
524
|
{
|
|
525
525
|
...response2,
|
|
526
526
|
ok: true,
|
|
@@ -570,7 +570,7 @@ async function handleSessionsSend(options) {
|
|
|
570
570
|
...rating ? { rating } : {}
|
|
571
571
|
});
|
|
572
572
|
const sessionIds = built.map((session) => session.sessionId);
|
|
573
|
-
|
|
573
|
+
_chunk5I2L6VMPjs.printCommandEnvelope.call(void 0,
|
|
574
574
|
{
|
|
575
575
|
...response,
|
|
576
576
|
ok: true,
|
|
@@ -678,7 +678,7 @@ ${refreshMeta}
|
|
|
678
678
|
</body>
|
|
679
679
|
</html>`;
|
|
680
680
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
681
|
-
|
|
681
|
+
_chunk5I2L6VMPjs.printCommandEnvelope.call(void 0,
|
|
682
682
|
{
|
|
683
683
|
ok: true,
|
|
684
684
|
file: outputPath,
|
|
@@ -8,7 +8,7 @@ var _chunkNTLBZUHDjs = require('./chunk-NTLBZUHD.js');
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk5I2L6VMPjs = require('./chunk-5I2L6VMP.js');
|
|
12
12
|
|
|
13
13
|
// src/cli/describe-options.ts
|
|
14
14
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -249,7 +249,7 @@ function projectRunDatasetCell(value) {
|
|
|
249
249
|
const logicalValue = parseSerializedDatasetValue(value);
|
|
250
250
|
if (logicalValue === null || logicalValue === void 0) return logicalValue;
|
|
251
251
|
if (typeof logicalValue === "object") {
|
|
252
|
-
return
|
|
252
|
+
return _chunk5I2L6VMPjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
|
|
253
253
|
}
|
|
254
254
|
return logicalValue;
|
|
255
255
|
}
|
|
@@ -641,7 +641,7 @@ function csvText(rows, columns = []) {
|
|
|
641
641
|
rows: rows.map((row) => record(row) ? row : { value: row }),
|
|
642
642
|
columns
|
|
643
643
|
});
|
|
644
|
-
return
|
|
644
|
+
return _chunk5I2L6VMPjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
|
|
645
645
|
}
|
|
646
646
|
function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
|
|
647
647
|
let temp;
|
|
@@ -768,7 +768,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
|
|
|
768
768
|
};
|
|
769
769
|
if (options.receiptOut && !skipReceiptFile) {
|
|
770
770
|
persist(options.receiptOut, jsonText(receipt));
|
|
771
|
-
|
|
771
|
+
_chunk5I2L6VMPjs.markJsonOutputHandled.call(void 0, );
|
|
772
772
|
} else {
|
|
773
773
|
printReceipt(receipt, options, {
|
|
774
774
|
data: hasData ? result.data : void 0,
|
|
@@ -1027,8 +1027,8 @@ function printReceipt(receipt, options, extra) {
|
|
|
1027
1027
|
const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
|
|
1028
1028
|
` : receiptText(receipt, options, extra);
|
|
1029
1029
|
if (options.receiptOut !== void 0) {
|
|
1030
|
-
|
|
1031
|
-
|
|
1030
|
+
_chunk5I2L6VMPjs.writeRawStderr.call(void 0, text);
|
|
1031
|
+
_chunk5I2L6VMPjs.markJsonOutputHandled.call(void 0, );
|
|
1032
1032
|
} else {
|
|
1033
1033
|
(dataOnStdout(options) ? process.stderr : process.stdout).write(text);
|
|
1034
1034
|
}
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkFGKQ2MVAjs = require('./chunk-FGKQ2MVA.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkZEZAFOH3js = require('./chunk-ZEZAFOH3.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -293,8 +293,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
293
293
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
294
294
|
var defaultBrowserCommandRunner = childProcess;
|
|
295
295
|
function getAuthedHttpClient() {
|
|
296
|
-
const config =
|
|
297
|
-
return { config, http: new (0,
|
|
296
|
+
const config = _chunkFGKQ2MVAjs.resolveConfig.call(void 0, );
|
|
297
|
+
return { config, http: new (0, _chunkFGKQ2MVAjs.HttpClient)(config) };
|
|
298
298
|
}
|
|
299
299
|
function stableOsUserId() {
|
|
300
300
|
try {
|
|
@@ -634,7 +634,7 @@ function collectLocalEnvInfo() {
|
|
|
634
634
|
os: `${process.platform} ${process.arch}`,
|
|
635
635
|
node_version: process.version,
|
|
636
636
|
home_dir: homeDir,
|
|
637
|
-
agent_runtime:
|
|
637
|
+
agent_runtime: _chunkZEZAFOH3js.detectAgentRuntime.call(void 0, )
|
|
638
638
|
};
|
|
639
639
|
const env = process.env;
|
|
640
640
|
const optional = {
|
|
@@ -881,9 +881,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
881
881
|
}
|
|
882
882
|
function withAgentCommandContext(value) {
|
|
883
883
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
884
|
-
return
|
|
884
|
+
return _chunkZEZAFOH3js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
885
885
|
...valueRecord,
|
|
886
|
-
command_context:
|
|
886
|
+
command_context: _chunkFGKQ2MVAjs.resolveCliCommandContext.call(void 0, )
|
|
887
887
|
} : value;
|
|
888
888
|
}
|
|
889
889
|
function printJson(value, fields) {
|
|
@@ -31,7 +31,7 @@ var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkZEZAFOH3js = require('./chunk-ZEZAFOH3.js');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -652,7 +652,7 @@ var ToolCalls = class {
|
|
|
652
652
|
idempotencyKey,
|
|
653
653
|
onResponse: (response2) => {
|
|
654
654
|
lastResponse = null;
|
|
655
|
-
atomicToolsSupported = response2.headers.get(
|
|
655
|
+
atomicToolsSupported = response2.headers.get(_chunkZEZAFOH3js.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
656
656
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
657
657
|
if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
|
|
658
658
|
try {
|
|
@@ -1107,8 +1107,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1107
1107
|
}
|
|
1108
1108
|
const receivers = _optionalChain([env, 'access', _55 => _55.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _56 => _56.trim, 'call', _57 => _57()]);
|
|
1109
1109
|
return {
|
|
1110
|
-
[
|
|
1111
|
-
...receivers ? { [
|
|
1110
|
+
[_chunkZEZAFOH3js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1111
|
+
...receivers ? { [_chunkZEZAFOH3js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1112
1112
|
};
|
|
1113
1113
|
}
|
|
1114
1114
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1179,7 +1179,7 @@ var PlayClient = class {
|
|
|
1179
1179
|
return _chunkRNSHCJMEjs.startPlayRun.call(void 0,
|
|
1180
1180
|
this.http,
|
|
1181
1181
|
resolved.request,
|
|
1182
|
-
_optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1182
|
+
_optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkZEZAFOH3js.SDK_API_MAJOR) } : headers,
|
|
1183
1183
|
options
|
|
1184
1184
|
);
|
|
1185
1185
|
}
|
|
@@ -3260,7 +3260,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3260
3260
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3261
3261
|
);
|
|
3262
3262
|
}
|
|
3263
|
-
return { [
|
|
3263
|
+
return { [_chunkZEZAFOH3js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3264
3264
|
}
|
|
3265
3265
|
function sleep(ms) {
|
|
3266
3266
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4150,7 +4150,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4150
4150
|
);
|
|
4151
4151
|
const headers = _optionalChain([options, 'optionalAccess', _188 => _188.cliAdmission]) ? {
|
|
4152
4152
|
...runtimeHeaders,
|
|
4153
|
-
"X-Deepline-API-Major": String(
|
|
4153
|
+
"X-Deepline-API-Major": String(_chunkZEZAFOH3js.SDK_API_MAJOR)
|
|
4154
4154
|
} : runtimeHeaders;
|
|
4155
4155
|
const http = this.http;
|
|
4156
4156
|
let submitted = false;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
autoDetectBaseUrl,
|
|
3
3
|
resolveApiKeyForBaseUrl
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZMFR4BKH.mjs";
|
|
5
5
|
import {
|
|
6
6
|
SDK_VERSION,
|
|
7
7
|
agentSessionIdFromEnvironment,
|
|
8
8
|
deploymentProtectionHeaders,
|
|
9
9
|
detectAgentRuntime
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-62PFEEX3.mjs";
|
|
11
11
|
import {
|
|
12
12
|
DeeplineError
|
|
13
13
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTRJLHTHIjs = require('./chunk-TRJLHTHI.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunk4H3XE5OXjs = require('./chunk-4H3XE5OX.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,18 +14,18 @@ var _chunkTMQUMILMjs = require('./chunk-TMQUMILM.js');
|
|
|
14
14
|
var _chunkNTLBZUHDjs = require('./chunk-NTLBZUHD.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkHSESQ4OGjs = require('./chunk-HSESQ4OG.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkDWASXQF6js = require('./chunk-DWASXQF6.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunk5I2L6VMPjs = require('./chunk-5I2L6VMP.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkFGKQ2MVAjs = require('./chunk-FGKQ2MVA.js');
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/describe.ts
|
|
31
31
|
var _fs = require('fs');
|
|
@@ -34,14 +34,14 @@ var _path = require('path');
|
|
|
34
34
|
// src/cli/doc-read-reporting.ts
|
|
35
35
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
36
36
|
async function reportDocRead(docId) {
|
|
37
|
-
if (
|
|
37
|
+
if (_chunkDWASXQF6js.isFailureReportingDisabled.call(void 0, )) return;
|
|
38
38
|
try {
|
|
39
|
-
const baseUrl =
|
|
40
|
-
const apiKey =
|
|
39
|
+
const baseUrl = _chunkFGKQ2MVAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
40
|
+
const apiKey = _chunkFGKQ2MVAjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
41
41
|
if (!apiKey) return;
|
|
42
42
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
43
43
|
method: "POST",
|
|
44
|
-
headers:
|
|
44
|
+
headers: _chunkDWASXQF6js.failureReportHeaders.call(void 0, apiKey),
|
|
45
45
|
body: JSON.stringify({ doc_id: docId }),
|
|
46
46
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
47
47
|
});
|
|
@@ -54,16 +54,16 @@ function nothingNamed(name) {
|
|
|
54
54
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
55
55
|
}
|
|
56
56
|
function findNamed2(name, options) {
|
|
57
|
-
return _chunkTMQUMILMjs.findNamed.call(void 0, name, options, _chunkTMQUMILMjs.describeLookupsFor.call(void 0, new (0,
|
|
57
|
+
return _chunkTMQUMILMjs.findNamed.call(void 0, name, options, _chunkTMQUMILMjs.describeLookupsFor.call(void 0, new (0, _chunkHSESQ4OGjs.DeeplineClient)()));
|
|
58
58
|
}
|
|
59
59
|
async function describeAnything(name, options, onMissing) {
|
|
60
|
-
const client = new (0,
|
|
60
|
+
const client = new (0, _chunkHSESQ4OGjs.DeeplineClient)();
|
|
61
61
|
const lookups = _chunkTMQUMILMjs.describeLookupsFor.call(void 0, client);
|
|
62
62
|
const outcome = await _chunkTMQUMILMjs.describeName.call(void 0, name, options, {
|
|
63
63
|
...lookups,
|
|
64
64
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
65
65
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
66
|
-
seedStarterScript:
|
|
66
|
+
seedStarterScript: _chunkTRJLHTHIjs.seedToolListScript
|
|
67
67
|
});
|
|
68
68
|
if (outcome.status === "missing") {
|
|
69
69
|
if (onMissing) return onMissing();
|
|
@@ -89,18 +89,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
89
89
|
` : text;
|
|
90
90
|
_fs.writeFileSync.call(void 0, path, content);
|
|
91
91
|
const bytes = Buffer.byteLength(content);
|
|
92
|
-
|
|
92
|
+
_chunk5I2L6VMPjs.printCommandEnvelope.call(void 0,
|
|
93
93
|
{ path, bytes },
|
|
94
94
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
95
95
|
` }
|
|
96
96
|
);
|
|
97
97
|
return 0;
|
|
98
98
|
}
|
|
99
|
-
|
|
99
|
+
_chunk5I2L6VMPjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
100
100
|
return 0;
|
|
101
101
|
}
|
|
102
102
|
function registerDescribeCommand(program) {
|
|
103
|
-
|
|
103
|
+
_chunk4H3XE5OXjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
104
104
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
105
105
|
).addHelpText(
|
|
106
106
|
"after",
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-QPA3ZG56.mjs";
|
|
6
6
|
import {
|
|
7
7
|
recentSearchRef,
|
|
8
8
|
registerDeprecatedSearchCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ODJS43GU.mjs";
|
|
10
10
|
import {
|
|
11
11
|
Capability,
|
|
12
12
|
arrayField,
|
|
@@ -46,10 +46,10 @@ import {
|
|
|
46
46
|
} from "./chunk-FIVKWNMT.mjs";
|
|
47
47
|
import {
|
|
48
48
|
DeeplineClient
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-RK5V6MFG.mjs";
|
|
50
50
|
import {
|
|
51
51
|
validateExecutionIdempotencyKey
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-6FM7YDHA.mjs";
|
|
53
53
|
import {
|
|
54
54
|
stableStringify
|
|
55
55
|
} from "./chunk-BMCRTI6Z.mjs";
|
|
@@ -59,18 +59,18 @@ import {
|
|
|
59
59
|
maybeAutoUpdateAndRelaunch,
|
|
60
60
|
registerCompatibilityCatalog,
|
|
61
61
|
runToolExecuteStage
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-T6XPF7AP.mjs";
|
|
63
63
|
import {
|
|
64
64
|
isCliTraceEnabled,
|
|
65
65
|
recordCliTrace,
|
|
66
66
|
resolveCliMaintenancePolicy
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-NP6FLJ75.mjs";
|
|
68
68
|
import {
|
|
69
69
|
checkSdkCompatibility,
|
|
70
70
|
enforceSdkCompatibilityResponse,
|
|
71
71
|
flushDeferredSkillsSyncNotices,
|
|
72
72
|
syncSdkSkillsIfNeeded
|
|
73
|
-
} from "./chunk-
|
|
73
|
+
} from "./chunk-TYUC56PS.mjs";
|
|
74
74
|
import {
|
|
75
75
|
printCommandEnvelope,
|
|
76
76
|
printCompactJson,
|
|
@@ -78,12 +78,12 @@ import {
|
|
|
78
78
|
printJsonError,
|
|
79
79
|
renderCommandEnvelopeText,
|
|
80
80
|
shouldEmitJson
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-TX4OUEUU.mjs";
|
|
82
82
|
import {
|
|
83
83
|
readSdkSkillsLocalVersion,
|
|
84
84
|
resolveConfig,
|
|
85
85
|
sdkCliStateDirPath
|
|
86
|
-
} from "./chunk-
|
|
86
|
+
} from "./chunk-ZMFR4BKH.mjs";
|
|
87
87
|
import {
|
|
88
88
|
DeeplineError
|
|
89
89
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -332,7 +332,7 @@ function toolConnectionStatusMessage(input) {
|
|
|
332
332
|
return "requires your credentials \u2014 not connected (connect to use)";
|
|
333
333
|
}
|
|
334
334
|
if (input.connected === false && input.credentialStatus === "managed") {
|
|
335
|
-
return "temporarily unavailable";
|
|
335
|
+
return input.connectionMessage || "temporarily unavailable";
|
|
336
336
|
}
|
|
337
337
|
return null;
|
|
338
338
|
}
|
|
@@ -445,7 +445,8 @@ function notConnectedSuffix(tool) {
|
|
|
445
445
|
const connected = record.connected;
|
|
446
446
|
const message = toolConnectionStatusMessage({
|
|
447
447
|
connected: connected === false ? false : void 0,
|
|
448
|
-
credentialStatus: status || void 0
|
|
448
|
+
credentialStatus: status || void 0,
|
|
449
|
+
connectionMessage: stringField(record, "connectionMessage", "connection_message") || void 0
|
|
449
450
|
});
|
|
450
451
|
return message ? ` - \u26A0 ${message}` : "";
|
|
451
452
|
}
|
|
@@ -1053,7 +1054,7 @@ Examples:
|
|
|
1053
1054
|
process.exitCode = await narrowView();
|
|
1054
1055
|
return;
|
|
1055
1056
|
}
|
|
1056
|
-
const { describeAnything } = await import("./describe-
|
|
1057
|
+
const { describeAnything } = await import("./describe-KAUMYSRG.mjs");
|
|
1057
1058
|
process.exitCode = await describeAnything(
|
|
1058
1059
|
toolId,
|
|
1059
1060
|
{
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkHSESQ4OGjs = require('./chunk-HSESQ4OG.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkDWASXQF6js = require('./chunk-DWASXQF6.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunk5I2L6VMPjs = require('./chunk-5I2L6VMP.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkFGKQ2MVAjs = require('./chunk-FGKQ2MVA.js');
|
|
18
18
|
|
|
19
19
|
// src/cli/commands/search.ts
|
|
20
20
|
var _commander = require('commander');
|
|
@@ -24,7 +24,7 @@ var _fs = require('fs');
|
|
|
24
24
|
var _path = require('path');
|
|
25
25
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
26
26
|
function lastSearchPath() {
|
|
27
|
-
return _path.join.call(void 0,
|
|
27
|
+
return _path.join.call(void 0, _chunkFGKQ2MVAjs.sdkCliStateDirPath.call(void 0, _chunkFGKQ2MVAjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
28
28
|
}
|
|
29
29
|
function rememberSearchRef(searchRef) {
|
|
30
30
|
writeSearchRefs({ searchRef });
|
|
@@ -134,9 +134,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
134
134
|
console.error("--summary-width must be an integer of at least 2.");
|
|
135
135
|
return 1;
|
|
136
136
|
}
|
|
137
|
-
const client = new (0,
|
|
137
|
+
const client = new (0, _chunkHSESQ4OGjs.DeeplineClient)();
|
|
138
138
|
const json = options.json === true;
|
|
139
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
139
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-7WXW6WZQ.js")));
|
|
140
140
|
const searches = [];
|
|
141
141
|
const chunks = [];
|
|
142
142
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -159,7 +159,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
159
159
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
160
160
|
if (!multiple) {
|
|
161
161
|
if (searchRef) rememberSearchRef(searchRef);
|
|
162
|
-
|
|
162
|
+
_chunk5I2L6VMPjs.printCommandEnvelope.call(void 0, result, { json, text });
|
|
163
163
|
return 0;
|
|
164
164
|
}
|
|
165
165
|
searches.push({ ...result, query });
|
|
@@ -173,8 +173,8 @@ ${text}`);
|
|
|
173
173
|
}
|
|
174
174
|
} catch (error) {
|
|
175
175
|
if (!multiple) throw error;
|
|
176
|
-
const payload =
|
|
177
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
176
|
+
const payload = _chunk5I2L6VMPjs.errorToJsonPayload.call(void 0, error);
|
|
177
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkDWASXQF6js.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
178
178
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
179
179
|
if (!json) {
|
|
180
180
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -186,7 +186,7 @@ Search failed.
|
|
|
186
186
|
}
|
|
187
187
|
}
|
|
188
188
|
rememberSearchRefsByTool(refs);
|
|
189
|
-
|
|
189
|
+
_chunk5I2L6VMPjs.printCommandEnvelope.call(void 0,
|
|
190
190
|
{ searches },
|
|
191
191
|
{
|
|
192
192
|
json,
|