deepline 0.3.504 → 0.3.505
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/sdk/src/types.ts +5 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +144 -7
- package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +18 -0
- package/dist/bundling-sources/shared_libs/product-notifications/onboarding-unsubscribe.ts +23 -0
- package/dist/cli/{auth-3L5AA5AX.mjs → auth-AHE2EDQA.mjs} +5 -5
- package/dist/cli/auth-SEPKNRHV.js +43 -0
- package/dist/cli/{billing-E7EASVPO.mjs → billing-7CPWTGGI.mjs} +7 -7
- package/dist/cli/{billing-HOGXVE2V.js → billing-JOIZPHON.js} +82 -82
- package/dist/cli/{chunk-67OI26OE.js → chunk-3YEOOXD4.js} +96 -37
- package/dist/cli/{chunk-IPAMOMGP.js → chunk-45XYW477.js} +21 -21
- package/dist/cli/{chunk-OX2D6BG4.mjs → chunk-4OFSAZN6.mjs} +1 -1
- package/dist/cli/{chunk-2ABRDH3B.mjs → chunk-52FPW2RD.mjs} +2 -2
- package/dist/cli/{chunk-NZ7Z7WNM.mjs → chunk-5XT4DZQL.mjs} +2 -2
- package/dist/cli/{chunk-FTRVCIGC.js → chunk-6FEN6VWZ.js} +26 -26
- package/dist/cli/{chunk-7F4OEHQK.mjs → chunk-6U3AGJWI.mjs} +1 -1
- package/dist/cli/{chunk-YOQ2NNDO.mjs → chunk-7AD565DO.mjs} +1 -1
- package/dist/cli/{chunk-JPR2546F.js → chunk-7DDACLMX.js} +16 -16
- package/dist/cli/{chunk-HUX5DZO6.mjs → chunk-7DDKLFOY.mjs} +3 -3
- package/dist/cli/{chunk-2W77YCKH.js → chunk-7QLK2GHL.js} +5 -5
- package/dist/cli/{chunk-XHZSPMNC.mjs → chunk-ACI6CUDX.mjs} +11 -401
- package/dist/cli/{chunk-7P2QVMBP.js → chunk-BWAYMJ23.js} +7 -7
- package/dist/cli/{chunk-UXQQPMYO.js → chunk-CA3SYXCS.js} +2 -2
- package/dist/cli/{chunk-SVFTZTCI.mjs → chunk-CSLLQWAB.mjs} +1 -1
- package/dist/cli/{chunk-QKKU2FH4.js → chunk-EMUFF6EU.js} +7 -7
- package/dist/cli/chunk-FIQ5UEIF.mjs +405 -0
- package/dist/cli/{chunk-KGUGNEKL.js → chunk-GAUNJCXQ.js} +96 -96
- package/dist/cli/{chunk-5Z6EULD5.js → chunk-GXMNOUHP.js} +6 -6
- package/dist/cli/{chunk-A6LA42JY.js → chunk-HASFFOSU.js} +16 -16
- package/dist/cli/{chunk-SMSQVRHE.js → chunk-IDAE5VDH.js} +5 -5
- package/dist/cli/{chunk-GGBXNQCR.mjs → chunk-IZYOYXG7.mjs} +4 -4
- package/dist/cli/{chunk-22OCKCYS.mjs → chunk-JA7YBRP4.mjs} +1 -1
- package/dist/cli/{chunk-6SMR7LU7.js → chunk-JSTKLYYD.js} +2 -2
- package/dist/cli/{chunk-UFYJTRSF.mjs → chunk-JVKEZT7L.mjs} +20 -6
- package/dist/cli/{chunk-GJ2DA35C.js → chunk-K26YOPDO.js} +20 -6
- package/dist/cli/{chunk-FISP4LCK.js → chunk-LC4FG34E.js} +53 -53
- package/dist/cli/{chunk-BTWUNKKX.mjs → chunk-MAFZ64RN.mjs} +2 -2
- package/dist/cli/{chunk-WZSFIJMG.js → chunk-MHZAG2ZQ.js} +80 -470
- package/dist/cli/{chunk-5CHBIJIM.mjs → chunk-NARJWXBR.mjs} +2 -2
- package/dist/cli/{chunk-VJVJWZ6I.mjs → chunk-OA6U5NVB.mjs} +5 -5
- package/dist/cli/{chunk-QOLX2O2S.mjs → chunk-OMEDQ77C.mjs} +93 -34
- package/dist/cli/{chunk-LHXYCZYO.js → chunk-OORPAQVC.js} +8 -8
- package/dist/cli/{chunk-Z6FXUDIL.mjs → chunk-PDLOPF5L.mjs} +1 -1
- package/dist/cli/{chunk-3MLFFWDM.mjs → chunk-PZN24YQQ.mjs} +2 -2
- package/dist/cli/{chunk-DEAJVQEG.mjs → chunk-QGNNAZ5M.mjs} +1 -1
- package/dist/cli/chunk-QYGYVCRI.js +405 -0
- package/dist/cli/{chunk-IGNQKOWT.mjs → chunk-RT3HJBIH.mjs} +12 -12
- package/dist/cli/{chunk-Y6XKCEPK.mjs → chunk-SHKRL7CW.mjs} +1 -1
- package/dist/cli/{chunk-UJMBG5JU.js → chunk-SPN7U3MV.js} +4 -4
- package/dist/cli/{chunk-MLMWM5DV.mjs → chunk-UZ24SF7N.mjs} +5 -5
- package/dist/cli/{chunk-USTJEEND.js → chunk-VXKWF3AD.js} +9 -9
- package/dist/cli/{chunk-Y7VEHKID.mjs → chunk-W6I4N4JN.mjs} +6 -6
- package/dist/cli/{chunk-MJTK6Q3G.js → chunk-WPCF7C6B.js} +3 -3
- package/dist/cli/{chunk-KCKAFTPY.js → chunk-WTQLUULB.js} +6 -6
- package/dist/cli/{chunk-BX45XMXZ.mjs → chunk-WTUC5VKB.mjs} +2 -2
- package/dist/cli/{chunk-6JNBMTCZ.js → chunk-XHPB6RGY.js} +1 -1
- package/dist/cli/{chunk-GRAGUYIE.js → chunk-Y52XY56V.js} +41 -41
- package/dist/cli/{chunk-4CC67XH5.mjs → chunk-YBIVVAL7.mjs} +2 -2
- package/dist/cli/{chunk-WBIDPDKJ.js → chunk-ZLN2B5YA.js} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-2XWGPITO.js → csv-DZHVIW3G.js} +13 -13
- package/dist/cli/{csv-433JEHLQ.mjs → csv-WTPI6ZON.mjs} +4 -4
- package/dist/cli/{db-PJJMD4VH.js → db-D7LPPNCC.js} +27 -27
- package/dist/cli/{db-K747DH43.mjs → db-NR4PJ6AF.mjs} +6 -6
- package/dist/cli/describe-HVQBTKFM.js +50 -0
- package/dist/cli/{describe-VEDDYW4P.mjs → describe-NCKAJPUG.mjs} +18 -17
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-JWRX3XCT.mjs → executions-RQVJ4LAB.mjs} +6 -6
- package/dist/cli/{executions-HM5T72H6.js → executions-UQG6LWEN.js} +8 -8
- package/dist/cli/{feedback-MNSIA63Y.mjs → feedback-RD4Y3YQR.mjs} +4 -4
- package/dist/cli/{feedback-34UG4BO3.js → feedback-TCHA67IA.js} +8 -8
- package/dist/cli/git-TUB2ZUEH.js +25 -0
- package/dist/cli/{git-ZKEOXV3A.mjs → git-Z7434B7Y.mjs} +5 -5
- package/dist/cli/index.js +143 -141
- package/dist/cli/index.mjs +49 -47
- package/dist/cli/{legacy-noops-YXSI4FVU.js → legacy-noops-23WRA7DH.js} +8 -8
- package/dist/cli/{legacy-noops-5M4T4ZVT.mjs → legacy-noops-LQJU4UIV.mjs} +5 -5
- package/dist/cli/{monitors-O25GDOYE.js → monitors-KOWN7M3V.js} +95 -95
- package/dist/cli/{monitors-C65OC4AW.mjs → monitors-Z6VYUZ2W.mjs} +7 -7
- package/dist/cli/{org-2GSPLY2A.js → org-2T5K2VP5.js} +72 -72
- package/dist/cli/{org-ZRMG5NS2.mjs → org-UBNRO5XO.mjs} +6 -6
- package/dist/cli/{pages-TZZUFBRO.mjs → pages-GHPJBVV3.mjs} +6 -6
- package/dist/cli/{pages-45DPADK6.js → pages-SRXTU7XO.js} +18 -18
- package/dist/cli/{play-RCGMND6X.js → play-2HMZ57EZ.js} +317 -316
- package/dist/cli/{play-3D7HH273.mjs → play-HRQKGTXA.mjs} +18 -17
- package/dist/cli/{providers-PSAKV6CJ.mjs → providers-JWJRFRR5.mjs} +6 -6
- package/dist/cli/{providers-3N3ECMTY.js → providers-P5O676MZ.js} +9 -9
- package/dist/cli/{quickstart-2A35SMGC.mjs → quickstart-S7NZUQRO.mjs} +4 -4
- package/dist/cli/{quickstart-6R6AIXM6.js → quickstart-YCY72TAO.js} +6 -6
- package/dist/cli/{run-F6ZXTASZ.js → run-MHLLGF4G.js} +41 -40
- package/dist/cli/{run-F3TLDGUO.mjs → run-QWMRIUIU.mjs} +23 -22
- package/dist/cli/{search-CZLCY3D2.mjs → search-4BFTQUEP.mjs} +8 -7
- package/dist/cli/search-QPUHOEIL.js +33 -0
- package/dist/cli/{search-output-R5XDNILW.js → search-output-62LBVZHN.js} +6 -6
- package/dist/cli/{search-output-MQTSTLN5.mjs → search-output-LIYHDTBP.mjs} +4 -4
- package/dist/cli/{secrets-D3GF4B2Z.mjs → secrets-GW27V77E.mjs} +6 -6
- package/dist/cli/{secrets-DCJYHDSY.js → secrets-KKKHVSOO.js} +15 -15
- package/dist/cli/{sessions-Z4JYJSDP.js → sessions-R3OEINAR.js} +6 -6
- package/dist/cli/{sessions-QGEQ2UYZ.mjs → sessions-R75LBGIL.mjs} +5 -5
- package/dist/cli/{settings-G7QEXA4N.mjs → settings-I3AQZSYG.mjs} +12 -11
- package/dist/cli/{settings-UVXXAT4A.js → settings-MQIHAEZN.js} +79 -78
- package/dist/cli/{setup-QHJU3DUI.mjs → setup-2YA5MYMS.mjs} +10 -9
- package/dist/cli/{setup-5I42W7D4.js → setup-X3QRJERP.js} +50 -49
- package/dist/cli/{skills-5LRF4UKX.mjs → skills-7252FOOI.mjs} +8 -7
- package/dist/cli/skills-BPZWMZSL.js +37 -0
- package/dist/cli/tools-F7RVQ3IK.js +57 -0
- package/dist/cli/{tools-PUT6STVG.mjs → tools-SKQTSVGE.mjs} +17 -16
- package/dist/cli/{update-CJ2GA64X.mjs → update-GNBBSKTB.mjs} +10 -9
- package/dist/cli/update-TLSY6LC2.js +35 -0
- package/dist/cli/{workflow-HVEWRTXD.mjs → workflow-OJSAL5FO.mjs} +7 -7
- package/dist/cli/{workflow-O67MEBCP.js → workflow-QB7YYWPP.js} +17 -17
- package/dist/{client-CIwenMFS.d.ts → client-B3GSaSFn.d.ts} +1 -1
- package/dist/{client-DYAfJpaN.d.mts → client-DEJg0CZn.d.mts} +1 -1
- package/dist/{client-core-DlzP8vEs.d.mts → client-core-C404E33V.d.mts} +5 -0
- package/dist/{client-core-CRjtyMAI.d.ts → client-core-GQmy3N8y.d.ts} +5 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +107 -104
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- 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/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-UPK4IIIN.js +0 -43
- package/dist/cli/describe-OYS7LZJD.js +0 -49
- package/dist/cli/git-5YQJSJFR.js +0 -25
- package/dist/cli/search-R5VEWJO2.js +0 -32
- package/dist/cli/skills-FB6TV52O.js +0 -36
- package/dist/cli/tools-L2364RPA.js +0 -56
- package/dist/cli/update-ESYJGYVZ.js +0 -34
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-F6QV42MC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-4OFSAZN6.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-N4TR6QRI.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PZN24YQQ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-CSLLQWAB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-IZYOYXG7.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-ACI6CUDX.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PZN24YQQ.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-SHKRL7CW.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -3,14 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-52FPW2RD.mjs";
|
|
7
7
|
import {
|
|
8
|
+
resolveSdkCliFailureExitCode
|
|
9
|
+
} from "./chunk-FIQ5UEIF.mjs";
|
|
10
|
+
import {
|
|
11
|
+
errorToJsonPayload,
|
|
8
12
|
printCommandEnvelope
|
|
9
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PZN24YQQ.mjs";
|
|
10
14
|
import {
|
|
11
15
|
resolveConfig,
|
|
12
16
|
sdkCliStateDirPath
|
|
13
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-SHKRL7CW.mjs";
|
|
14
18
|
|
|
15
19
|
// src/cli/commands/search.ts
|
|
16
20
|
import { Option } from "commander";
|
|
@@ -23,20 +27,30 @@ function lastSearchPath() {
|
|
|
23
27
|
return join(sdkCliStateDirPath(resolveConfig().baseUrl), "last-search.json");
|
|
24
28
|
}
|
|
25
29
|
function rememberSearchRef(searchRef) {
|
|
30
|
+
writeSearchRefs({ searchRef });
|
|
31
|
+
}
|
|
32
|
+
function rememberSearchRefsByTool(refs) {
|
|
33
|
+
writeSearchRefs({ searchRefsByTool: Object.fromEntries(refs) });
|
|
34
|
+
}
|
|
35
|
+
function writeSearchRefs(refs) {
|
|
26
36
|
try {
|
|
27
37
|
mkdirSync(dirname(lastSearchPath()), { recursive: true });
|
|
28
38
|
writeFileSync(
|
|
29
39
|
lastSearchPath(),
|
|
30
|
-
JSON.stringify({
|
|
40
|
+
JSON.stringify({ ...refs, at: Date.now() }),
|
|
31
41
|
{ mode: 384 }
|
|
32
42
|
);
|
|
33
43
|
} catch {
|
|
34
44
|
}
|
|
35
45
|
}
|
|
36
|
-
function recentSearchRef() {
|
|
46
|
+
function recentSearchRef(toolId) {
|
|
37
47
|
try {
|
|
38
48
|
const saved = JSON.parse(readFileSync(lastSearchPath(), "utf8"));
|
|
39
|
-
|
|
49
|
+
if (typeof saved.at !== "number" || Date.now() - saved.at >= SEARCH_REF_TTL_MS) {
|
|
50
|
+
return void 0;
|
|
51
|
+
}
|
|
52
|
+
const ref = toolId ? saved.searchRefsByTool?.[toolId] ?? saved.searchRef : saved.searchRef;
|
|
53
|
+
return typeof ref === "string" ? ref : void 0;
|
|
40
54
|
} catch {
|
|
41
55
|
return void 0;
|
|
42
56
|
}
|
|
@@ -51,7 +65,7 @@ var SEARCH_TYPES = [
|
|
|
51
65
|
"custom",
|
|
52
66
|
"docs"
|
|
53
67
|
];
|
|
54
|
-
var USAGE = 'Usage: deepline search "<task>" [--type <types>] [--json]';
|
|
68
|
+
var USAGE = 'Usage: deepline search "<task>" ["<task>" ...] [--type <types>] [--json]';
|
|
55
69
|
function parseTypes(flag, raw) {
|
|
56
70
|
const names = (raw ?? "").split(",").map((name) => name.trim().toLowerCase()).filter(Boolean);
|
|
57
71
|
const unknown = names.filter(
|
|
@@ -107,10 +121,11 @@ function pointAtDescribe(result) {
|
|
|
107
121
|
}
|
|
108
122
|
}
|
|
109
123
|
}
|
|
110
|
-
async function runSearch(
|
|
111
|
-
const
|
|
124
|
+
async function runSearch(queryInputs, options, types, exclude = []) {
|
|
125
|
+
const queries = queryInputs.length > 0 ? queryInputs.map((query) => query.trim()) : [""];
|
|
126
|
+
const multiple = queries.length > 1;
|
|
112
127
|
const searchTerms = options.searchTerms ?? options.search_terms;
|
|
113
|
-
if (!query && !options.categories?.trim() && !searchTerms?.trim()) {
|
|
128
|
+
if (multiple && queries.some((query) => !query) || !queries[0] && !options.categories?.trim() && !searchTerms?.trim()) {
|
|
114
129
|
console.error(USAGE);
|
|
115
130
|
return 1;
|
|
116
131
|
}
|
|
@@ -119,26 +134,66 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
119
134
|
console.error("--summary-width must be an integer of at least 2.");
|
|
120
135
|
return 1;
|
|
121
136
|
}
|
|
122
|
-
const
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
137
|
+
const client = new DeeplineClient();
|
|
138
|
+
const json = options.json === true;
|
|
139
|
+
const renderer = json ? void 0 : await import("./search-output-LIYHDTBP.mjs");
|
|
140
|
+
const searches = [];
|
|
141
|
+
const chunks = [];
|
|
142
|
+
const refs = /* @__PURE__ */ new Map();
|
|
143
|
+
let exitCode = 0;
|
|
144
|
+
for (const query of queries) {
|
|
145
|
+
try {
|
|
146
|
+
const { search_ref: searchRef, ...result } = await client.search({
|
|
147
|
+
query,
|
|
148
|
+
types,
|
|
149
|
+
exclude,
|
|
150
|
+
categories: options.categories,
|
|
151
|
+
searchTerms,
|
|
152
|
+
task: options.task,
|
|
153
|
+
limit: optionalInteger(options.limit),
|
|
154
|
+
offset: optionalInteger(options.offset),
|
|
155
|
+
searchMode: options.searchMode === "v1" || options.searchMode === "v2" ? options.searchMode : void 0,
|
|
156
|
+
includeSearchDebug: Boolean(options.includeSearchDebug)
|
|
157
|
+
});
|
|
158
|
+
pointAtDescribe(result);
|
|
159
|
+
const text = renderer?.renderSearchResults(result, summaryWidth);
|
|
160
|
+
if (!multiple) {
|
|
161
|
+
if (searchRef) rememberSearchRef(searchRef);
|
|
162
|
+
printCommandEnvelope(result, { json, text });
|
|
163
|
+
return 0;
|
|
164
|
+
}
|
|
165
|
+
searches.push({ ...result, query });
|
|
166
|
+
if (text !== void 0) chunks.push(`${JSON.stringify(query)}
|
|
167
|
+
${text}`);
|
|
168
|
+
if (searchRef) {
|
|
169
|
+
for (const item of result.results) {
|
|
170
|
+
if (item.kind === "tool" && !refs.has(item.id))
|
|
171
|
+
refs.set(item.id, searchRef);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
} catch (error) {
|
|
175
|
+
if (!multiple) throw error;
|
|
176
|
+
const payload = errorToJsonPayload(error);
|
|
177
|
+
const queryExitCode = payload.exitCode ?? resolveSdkCliFailureExitCode(error);
|
|
178
|
+
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
179
|
+
if (!json) {
|
|
180
|
+
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
181
|
+
chunks.push(`${JSON.stringify(query)}
|
|
182
|
+
Search failed.
|
|
183
|
+
`);
|
|
184
|
+
}
|
|
185
|
+
exitCode ||= queryExitCode;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
rememberSearchRefsByTool(refs);
|
|
189
|
+
printCommandEnvelope(
|
|
190
|
+
{ searches },
|
|
191
|
+
{
|
|
192
|
+
json,
|
|
193
|
+
text: chunks.join("\n")
|
|
194
|
+
}
|
|
195
|
+
);
|
|
196
|
+
return exitCode;
|
|
142
197
|
}
|
|
143
198
|
function registerDeprecatedSearchCommand(parent, typesFor) {
|
|
144
199
|
const name = `deepline ${parent.name()} search`;
|
|
@@ -159,12 +214,16 @@ Examples:
|
|
|
159
214
|
console.error(
|
|
160
215
|
`${name} is deprecated. Use: deepline search${query ? ` ${JSON.stringify(query)}` : ""} --type ${types.join(",")}`
|
|
161
216
|
);
|
|
162
|
-
process.exitCode = await runSearch(
|
|
217
|
+
process.exitCode = await runSearch(
|
|
218
|
+
query === void 0 ? [] : [query],
|
|
219
|
+
options,
|
|
220
|
+
types
|
|
221
|
+
);
|
|
163
222
|
});
|
|
164
223
|
}
|
|
165
224
|
function registerSearchCommand(program) {
|
|
166
225
|
addSearchOptions(
|
|
167
|
-
program.command("search [task]").description(
|
|
226
|
+
program.command("search [task...]").description(
|
|
168
227
|
"Search tools, monitors, plays, and docs together, ranked by intent."
|
|
169
228
|
).option(
|
|
170
229
|
"--type <types>",
|
|
@@ -175,7 +234,7 @@ function registerSearchCommand(program) {
|
|
|
175
234
|
"Leave these kinds out, comma-separated",
|
|
176
235
|
appendCsv
|
|
177
236
|
)
|
|
178
|
-
).action(async (
|
|
237
|
+
).action(async (queries, options) => {
|
|
179
238
|
let types;
|
|
180
239
|
let exclude;
|
|
181
240
|
try {
|
|
@@ -186,7 +245,7 @@ function registerSearchCommand(program) {
|
|
|
186
245
|
process.exitCode = 1;
|
|
187
246
|
return;
|
|
188
247
|
}
|
|
189
|
-
process.exitCode = await runSearch(
|
|
248
|
+
process.exitCode = await runSearch(queries, options, types, exclude);
|
|
190
249
|
});
|
|
191
250
|
}
|
|
192
251
|
|
|
@@ -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 _chunkEMUFF6EUjs = require('./chunk-EMUFF6EU.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkSPN7U3MVjs = require('./chunk-SPN7U3MV.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 = _chunkSPN7U3MVjs.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunkEMUFF6EUjs.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-SHKRL7CW.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-7AD565DO.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
serializeToolExecutionFailure
|