deepline 0.3.357 → 0.3.359
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 +7 -1
- package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +14 -1
- package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +52 -19
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +35 -18
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +202 -44
- package/dist/cli/auth-CN5UHM3M.js +33 -0
- package/dist/cli/{auth-5Y2YV5LY.mjs → auth-ZOW4L37H.mjs} +6 -4
- package/dist/cli/{billing-UOFR7KDB.mjs → billing-JPMZX77W.mjs} +5 -5
- package/dist/cli/{billing-Y6IKDJ6H.js → billing-YZJ5Q4ZC.js} +74 -74
- package/dist/cli/{chunk-LJTZVC2T.mjs → chunk-36TKIMVG.mjs} +2 -2
- package/dist/cli/{chunk-SXXUOZRS.js → chunk-3EF4OMSE.js} +6 -1
- package/dist/cli/{chunk-2NZUC5OS.mjs → chunk-4DCOBHTZ.mjs} +4 -4
- package/dist/cli/{chunk-4YXJTQ5X.js → chunk-5ZKZWXVN.js} +5 -5
- package/dist/cli/{chunk-NZ6BT4NL.mjs → chunk-72362UER.mjs} +7 -7
- package/dist/cli/{chunk-5UNTNKNX.js → chunk-ARNODHMC.js} +6 -6
- package/dist/cli/{chunk-N47R7S3E.mjs → chunk-BJYW3XTM.mjs} +6 -1
- package/dist/cli/{chunk-SMLKQAEB.mjs → chunk-DZ34Z4DO.mjs} +3 -3
- package/dist/cli/{chunk-SCY4UCEZ.js → chunk-EMMXSY6F.js} +75 -50
- package/dist/cli/{chunk-VG5WMYSF.mjs → chunk-FCZIE4UQ.mjs} +3 -3
- package/dist/cli/{chunk-EWTVIN3O.js → chunk-I7XYIKAK.js} +47 -47
- package/dist/cli/{chunk-VXH4225Y.mjs → chunk-JHX6XSLT.mjs} +27 -2
- package/dist/cli/{chunk-ZYPSNUDU.js → chunk-LDGO56ZU.js} +231 -231
- package/dist/cli/{chunk-WQSV34KV.js → chunk-LXKJTNB3.js} +11 -11
- package/dist/cli/{chunk-O7IM72KW.mjs → chunk-M2DOAC65.mjs} +15 -15
- package/dist/cli/{chunk-R5P3KFF5.js → chunk-P4CCF5ZV.js} +8 -8
- package/dist/cli/{chunk-CPQIVH6G.js → chunk-QDLSDKEK.js} +8 -8
- package/dist/cli/chunk-QFBHEQCQ.mjs +1421 -0
- package/dist/cli/chunk-QILHWZFP.js +1421 -0
- package/dist/cli/{chunk-C2EHMMME.js → chunk-SVAI3Z3Q.js} +64 -60
- package/dist/cli/{chunk-2AROJ4EZ.mjs → chunk-U2G2WO43.mjs} +2 -2
- package/dist/cli/{chunk-6P235JSN.js → chunk-UC6KM43R.js} +15 -15
- package/dist/cli/{chunk-XYD76KJB.mjs → chunk-UKXON54N.mjs} +8 -8
- package/dist/cli/{chunk-NEMHJYA4.js → chunk-VGXKDHTJ.js} +2 -2
- package/dist/cli/{chunk-J4A4MRBK.js → chunk-WLDT7GTI.js} +26 -26
- package/dist/cli/{chunk-IWBFG4XI.mjs → chunk-WNBXT425.mjs} +1 -1
- package/dist/cli/{chunk-PJYCAGKK.mjs → chunk-WR7H6MZ6.mjs} +1 -1
- package/dist/cli/{chunk-QYCAH7SM.mjs → chunk-ZY6QZZ5K.mjs} +6 -2
- package/dist/cli/{client-23QTYYIR.mjs → client-32IMOGBO.mjs} +4 -4
- package/dist/cli/client-TNHDPNDK.js +20 -0
- package/dist/cli/command-docs.d.mts +50 -0
- package/dist/cli/command-docs.d.ts +50 -0
- package/dist/cli/command-docs.js +13 -0
- package/dist/cli/command-docs.mjs +13 -0
- package/dist/cli/{csv-VKEF5C65.mjs → csv-4QWZUAJP.mjs} +3 -3
- package/dist/cli/{csv-SQIEBX66.js → csv-BCPDP5UL.js} +12 -12
- package/dist/cli/{db-Z33ZRE3N.js → db-OF2SH2BI.js} +30 -30
- package/dist/cli/{db-KX7FDHL4.mjs → db-T4CMZPJQ.mjs} +5 -5
- package/dist/cli/{describe-K2SJ22B3.mjs → describe-5WQ55FIR.mjs} +16 -16
- package/dist/cli/{describe-5ZQ6KIJH.js → describe-LIHZ4U6X.js} +21 -21
- package/dist/cli/{executions-KCZZY6SS.js → executions-JSXFOVBH.js} +7 -7
- package/dist/cli/{executions-452G2REF.mjs → executions-R7WAC2JA.mjs} +5 -5
- package/dist/cli/{feedback-55HU4EQY.mjs → feedback-2V5PBCPX.mjs} +3 -3
- package/dist/cli/{feedback-BM7ZNH7Y.js → feedback-Y42C4WP2.js} +7 -7
- package/dist/cli/git-D5SJIU36.js +23 -0
- package/dist/cli/{git-CAPESVAJ.mjs → git-Y6VXODAK.mjs} +4 -4
- package/dist/cli/index.js +183 -83
- package/dist/cli/index.mjs +145 -45
- package/dist/cli/{legacy-noops-PV5AWTIZ.js → legacy-noops-KDRTNUUC.js} +7 -7
- package/dist/cli/{legacy-noops-3B3MG33Y.mjs → legacy-noops-YEEZNYIS.mjs} +4 -4
- package/dist/cli/{monitors-43R6CUFK.mjs → monitors-7GHIY5BR.mjs} +5 -5
- package/dist/cli/{monitors-DVFEJHQT.js → monitors-RVXH73TC.js} +86 -86
- package/dist/cli/{org-BGCB45VI.js → org-OMUUGH6W.js} +61 -61
- package/dist/cli/{org-X5WSLJRD.mjs → org-ZGU7BBDD.mjs} +5 -5
- package/dist/cli/{play-OFO6XZ5L.mjs → play-PB6LSSNG.mjs} +11 -11
- package/dist/cli/play-XKIDMLH7.js +153 -0
- package/dist/cli/{providers-L2MPYA3E.mjs → providers-GFR4DPBC.mjs} +5 -5
- package/dist/cli/{providers-RJYHQC4J.js → providers-J3OTP5VK.js} +8 -8
- package/dist/cli/{quickstart-E6OWYYMT.js → quickstart-ALUTGFAA.js} +7 -7
- package/dist/cli/{quickstart-NHFMGZ3B.mjs → quickstart-MXH3LZQ5.mjs} +5 -5
- package/dist/cli/{search-IPTZAOUE.mjs → search-OVRR4XOJ.mjs} +6 -6
- package/dist/cli/search-X3IZW2TP.js +26 -0
- package/dist/cli/{secrets-6LD4CA2X.js → secrets-KT4OFUKB.js} +14 -14
- package/dist/cli/{secrets-TCOPPNXR.mjs → secrets-VXXVGDET.mjs} +5 -5
- package/dist/cli/{sessions-QV4LUKEP.js → sessions-GXDEX5EM.js} +5 -5
- package/dist/cli/{sessions-D4JETMAW.mjs → sessions-JP4XKXEJ.mjs} +4 -4
- package/dist/cli/{settings-JOYKXSY7.js → settings-BJT3RAJD.js} +75 -75
- package/dist/cli/{settings-IVJPCORG.mjs → settings-MMC5Q5FJ.mjs} +8 -8
- package/dist/cli/{setup-WCKQK7FE.mjs → setup-6LWUQ34C.mjs} +8 -8
- package/dist/cli/{setup-MIJZTYMH.js → setup-RP4VN7WE.js} +43 -43
- package/dist/cli/skills-3S5UET5W.js +28 -0
- package/dist/cli/{skills-GYWMUDDF.mjs → skills-VRVG63GO.mjs} +4 -4
- package/dist/cli/{tools-ILYNEPGQ.mjs → tools-M4VNLWYB.mjs} +8 -8
- package/dist/cli/tools-MTRW5VF6.js +40 -0
- package/dist/cli/update-5PPNAWY7.js +28 -0
- package/dist/cli/{update-P3VIHMC6.mjs → update-HXQVI37L.mjs} +6 -6
- package/dist/cli/{workflow-YWKK3A4X.js → workflow-JTA3DWCM.js} +19 -19
- package/dist/cli/{workflow-A6ID4C6N.mjs → workflow-PE2IONVL.mjs} +9 -9
- package/dist/index.js +13 -13
- package/dist/index.mjs +12 -12
- package/dist/install-integrity.json +80 -74
- package/dist/release.d.mts +5 -1
- package/dist/release.d.ts +5 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +6 -1
- package/dist/cli/auth-AABYKR2S.js +0 -31
- package/dist/cli/client-3DYV3HZ4.js +0 -20
- package/dist/cli/git-VESXOJ4M.js +0 -23
- package/dist/cli/play-ZO4HDGMC.js +0 -153
- package/dist/cli/search-2FJA6OH4.js +0 -26
- package/dist/cli/skills-JL4J5CII.js +0 -28
- package/dist/cli/tools-ZOKG4AX4.js +0 -40
- package/dist/cli/update-WUMDEAEE.js +0 -28
|
@@ -3,25 +3,25 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
+
var _chunkS6R3OX7Bjs = require('./chunk-S6R3OX7B.js');
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
|
|
10
|
-
var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
|
|
16
17
|
|
|
17
18
|
|
|
18
|
-
var _chunk4YXJTQ5Xjs = require('./chunk-4YXJTQ5X.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunk5ZKZWXVNjs = require('./chunk-5ZKZWXVN.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -167,7 +167,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
167
167
|
if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _2 => _2.code, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
|
|
168
168
|
// lost connections and explicitly unknown transaction resolution.
|
|
169
169
|
/^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
|
|
170
|
-
throw new (0,
|
|
170
|
+
throw new (0, _chunk5ZKZWXVNjs.CustomerDbQueryOutcomeUnknownError)(
|
|
171
171
|
error,
|
|
172
172
|
plan.request.body.operation_key
|
|
173
173
|
);
|
|
@@ -175,7 +175,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
175
175
|
throw error;
|
|
176
176
|
}
|
|
177
177
|
if (!result || typeof result !== "object" || Array.isArray(result) || typeof result.command !== "string" || !Array.isArray(result.columns) || !Array.isArray(result.rows) || typeof result.truncated !== "boolean" || result.row_count !== null && (!Number.isSafeInteger(result.row_count) || result.row_count < 0) || !Number.isSafeInteger(result.row_count_returned) || result.row_count_returned < 0) {
|
|
178
|
-
throw new (0,
|
|
178
|
+
throw new (0, _chunk5ZKZWXVNjs.CustomerDbQueryOutcomeUnknownError)(
|
|
179
179
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
180
180
|
"The SQL response did not contain a valid result.",
|
|
181
181
|
200,
|
|
@@ -186,7 +186,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
186
186
|
}
|
|
187
187
|
const operation = result.operation;
|
|
188
188
|
if (input.operationKey !== void 0 && (!operation || operation.operation_key !== input.operationKey || !Number.isSafeInteger(operation.completed_at_ms) || operation.completed_at_ms < 0 || !["executed", "operation_recovery"].includes(operation.source))) {
|
|
189
|
-
throw new (0,
|
|
189
|
+
throw new (0, _chunk5ZKZWXVNjs.CustomerDbQueryOutcomeUnknownError)(
|
|
190
190
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
191
191
|
"The server did not confirm the original atomic SQL operation.",
|
|
192
192
|
200,
|
|
@@ -2910,8 +2910,8 @@ function runtimeSelectionHeaders(runtime) {
|
|
|
2910
2910
|
}
|
|
2911
2911
|
const receivers = _optionalChain([process, 'access', _104 => _104.env, 'access', _105 => _105.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107()]);
|
|
2912
2912
|
return {
|
|
2913
|
-
[
|
|
2914
|
-
...receivers ? { [
|
|
2913
|
+
[_chunk5ZKZWXVNjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
2914
|
+
...receivers ? { [_chunk5ZKZWXVNjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
2915
2915
|
};
|
|
2916
2916
|
}
|
|
2917
2917
|
function isolatedCiRuntimeEventReadHeaders() {
|
|
@@ -2927,7 +2927,7 @@ function isolatedCiRuntimeEventReadHeaders() {
|
|
|
2927
2927
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
2928
2928
|
);
|
|
2929
2929
|
}
|
|
2930
|
-
return { [
|
|
2930
|
+
return { [_chunk5ZKZWXVNjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
2931
2931
|
}
|
|
2932
2932
|
function normalizeTestPolicyOverrides(value, source) {
|
|
2933
2933
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -3217,8 +3217,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3217
3217
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3218
3218
|
*/
|
|
3219
3219
|
constructor(options) {
|
|
3220
|
-
this.config =
|
|
3221
|
-
this.http = new (0,
|
|
3220
|
+
this.config = _chunk5ZKZWXVNjs.resolveConfig.call(void 0, options);
|
|
3221
|
+
this.http = new (0, _chunk5ZKZWXVNjs.HttpClient)(this.config);
|
|
3222
3222
|
this.toolCalls = new ToolCalls(
|
|
3223
3223
|
this.http,
|
|
3224
3224
|
this.config.timeout,
|
|
@@ -6,16 +6,24 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
shellQuote
|
|
8
8
|
} from "./chunk-OVDNJAJN.mjs";
|
|
9
|
+
import {
|
|
10
|
+
PLAY_DEFAULT_EXPORT,
|
|
11
|
+
extractDefinedPlayName,
|
|
12
|
+
isAstNode,
|
|
13
|
+
listPlayFileExports,
|
|
14
|
+
parsePlaySourceForAnalysis,
|
|
15
|
+
resolveEnabledExecutionProfile
|
|
16
|
+
} from "./chunk-DSWSEHRX.mjs";
|
|
9
17
|
import {
|
|
10
18
|
parseCsvDataInput
|
|
11
19
|
} from "./chunk-EDWJY6T4.mjs";
|
|
12
20
|
import {
|
|
13
21
|
registerDeprecatedSearchCommand
|
|
14
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-DZ34Z4DO.mjs";
|
|
15
23
|
import {
|
|
16
24
|
handleDeploymentGet,
|
|
17
25
|
handleDeploymentsList
|
|
18
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-36TKIMVG.mjs";
|
|
19
27
|
import {
|
|
20
28
|
pinLocalPlayImports,
|
|
21
29
|
planLocalPlayExecution
|
|
@@ -34,7 +42,7 @@ import {
|
|
|
34
42
|
normalizeRunEventOperationRequest,
|
|
35
43
|
parseLogLevel,
|
|
36
44
|
playInputExampleArgs
|
|
37
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-72362UER.mjs";
|
|
38
46
|
import {
|
|
39
47
|
CSV_DATA_INPUT_KEY,
|
|
40
48
|
buildNamedPlayRunRequest,
|
|
@@ -67,18 +75,10 @@ import {
|
|
|
67
75
|
printJsonError,
|
|
68
76
|
renderCommandEnvelopeText,
|
|
69
77
|
shouldEmitJson
|
|
70
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-WR7H6MZ6.mjs";
|
|
71
79
|
import {
|
|
72
80
|
fetchWithDeploymentProtection
|
|
73
|
-
} from "./chunk-
|
|
74
|
-
import {
|
|
75
|
-
PLAY_DEFAULT_EXPORT,
|
|
76
|
-
extractDefinedPlayName,
|
|
77
|
-
isAstNode,
|
|
78
|
-
listPlayFileExports,
|
|
79
|
-
parsePlaySourceForAnalysis,
|
|
80
|
-
resolveEnabledExecutionProfile
|
|
81
|
-
} from "./chunk-DSWSEHRX.mjs";
|
|
81
|
+
} from "./chunk-FCZIE4UQ.mjs";
|
|
82
82
|
import {
|
|
83
83
|
DeeplineError
|
|
84
84
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -10931,7 +10931,7 @@ function actionToCommand(action) {
|
|
|
10931
10931
|
return `deepline runs get ${record3.runId} --full --json`;
|
|
10932
10932
|
}
|
|
10933
10933
|
if (record3.kind === "deepline_run_billing" && typeof record3.runId === "string") {
|
|
10934
|
-
return `deepline
|
|
10934
|
+
return `deepline billing usage --run-id ${record3.runId} --json`;
|
|
10935
10935
|
}
|
|
10936
10936
|
if (record3.kind === "deepline_run_export" && typeof record3.runId === "string" && typeof record3.datasetPath === "string") {
|
|
10937
10937
|
return `deepline runs export ${record3.runId} --dataset ${shellQuote(
|
|
@@ -16476,7 +16476,7 @@ Examples:
|
|
|
16476
16476
|
process.exitCode = await ownView();
|
|
16477
16477
|
return;
|
|
16478
16478
|
}
|
|
16479
|
-
const { describeAnything } = await import("./describe-
|
|
16479
|
+
const { describeAnything } = await import("./describe-5WQ55FIR.mjs");
|
|
16480
16480
|
process.exitCode = await describeAnything(
|
|
16481
16481
|
name,
|
|
16482
16482
|
{
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _chunkARNODHMCjs = require('./chunk-ARNODHMC.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk5ZKZWXVNjs = require('./chunk-5ZKZWXVN.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunk5ZKZWXVNjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
143
143
|
const cwd = process.cwd();
|
|
144
144
|
return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
|
|
145
145
|
(candidate) => sessionStartedInDirectory(candidate, cwd)
|
|
@@ -448,7 +448,7 @@ function buildSessionUploadContent(raw) {
|
|
|
448
448
|
return { encodedContent: encoded, needsChunking: true };
|
|
449
449
|
}
|
|
450
450
|
async function uploadPayload(path, payload) {
|
|
451
|
-
const { http } =
|
|
451
|
+
const { http } = _chunkARNODHMCjs.getAuthedHttpClient.call(void 0, );
|
|
452
452
|
return await http.post(path, payload);
|
|
453
453
|
}
|
|
454
454
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -481,7 +481,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
481
481
|
...options.rating ? { rating: options.rating } : {}
|
|
482
482
|
});
|
|
483
483
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
484
|
-
|
|
484
|
+
_chunkARNODHMCjs.printCommandEnvelope.call(void 0,
|
|
485
485
|
{
|
|
486
486
|
...response,
|
|
487
487
|
ok: true,
|
|
@@ -513,7 +513,7 @@ async function handleSessionsSend(options) {
|
|
|
513
513
|
filename: _path.basename.call(void 0, filePath),
|
|
514
514
|
...rating ? { rating } : {}
|
|
515
515
|
});
|
|
516
|
-
|
|
516
|
+
_chunkARNODHMCjs.printCommandEnvelope.call(void 0,
|
|
517
517
|
{
|
|
518
518
|
...response2,
|
|
519
519
|
ok: true,
|
|
@@ -563,7 +563,7 @@ async function handleSessionsSend(options) {
|
|
|
563
563
|
...rating ? { rating } : {}
|
|
564
564
|
});
|
|
565
565
|
const sessionIds = built.map((session) => session.sessionId);
|
|
566
|
-
|
|
566
|
+
_chunkARNODHMCjs.printCommandEnvelope.call(void 0,
|
|
567
567
|
{
|
|
568
568
|
...response,
|
|
569
569
|
ok: true,
|
|
@@ -671,7 +671,7 @@ ${refreshMeta}
|
|
|
671
671
|
</body>
|
|
672
672
|
</html>`;
|
|
673
673
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
674
|
-
|
|
674
|
+
_chunkARNODHMCjs.printCommandEnvelope.call(void 0,
|
|
675
675
|
{
|
|
676
676
|
ok: true,
|
|
677
677
|
file: outputPath,
|
|
@@ -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 _chunkLXKJTNB3js = require('./chunk-LXKJTNB3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkARNODHMCjs = require('./chunk-ARNODHMC.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk5ZKZWXVNjs = require('./chunk-5ZKZWXVN.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, _chunk5ZKZWXVNjs.sdkCliStateDirPath.call(void 0, _chunk5ZKZWXVNjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
22
22
|
}
|
|
23
23
|
function rememberSearchRef(searchRef) {
|
|
24
24
|
try {
|
|
@@ -153,7 +153,7 @@ function searchRow(item) {
|
|
|
153
153
|
}
|
|
154
154
|
function renderSearchResults(result) {
|
|
155
155
|
if (result.results.length === 0)
|
|
156
|
-
return
|
|
156
|
+
return _chunkARNODHMCjs.renderCommandEnvelopeText.call(void 0, result);
|
|
157
157
|
const rows = result.results.map(searchRow);
|
|
158
158
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
159
159
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -177,7 +177,7 @@ function renderSearchResults(result) {
|
|
|
177
177
|
actions: _optionalChain([render, 'optionalAccess', _11 => _11.actions])
|
|
178
178
|
};
|
|
179
179
|
const followUps = _optionalChain([remaining, 'access', _12 => _12.sections, 'optionalAccess', _13 => _13.length]) || _optionalChain([remaining, 'access', _14 => _14.actions, 'optionalAccess', _15 => _15.length]) ? `
|
|
180
|
-
${
|
|
180
|
+
${_chunkARNODHMCjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
181
181
|
const notes = rows.flatMap(
|
|
182
182
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
183
183
|
);
|
|
@@ -254,7 +254,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
254
254
|
console.error(USAGE);
|
|
255
255
|
return 1;
|
|
256
256
|
}
|
|
257
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
257
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkLXKJTNB3js.DeeplineClient)().search({
|
|
258
258
|
query,
|
|
259
259
|
types,
|
|
260
260
|
exclude,
|
|
@@ -268,7 +268,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
268
268
|
});
|
|
269
269
|
if (searchRef) rememberSearchRef(searchRef);
|
|
270
270
|
pointAtDescribe(result);
|
|
271
|
-
|
|
271
|
+
_chunkARNODHMCjs.printCommandEnvelope.call(void 0, result, {
|
|
272
272
|
json: options.json === true,
|
|
273
273
|
text: renderSearchResults(result)
|
|
274
274
|
});
|