deepline 0.3.503 → 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.
Files changed (151) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/types.ts +5 -0
  3. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +35 -0
  4. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +1 -1
  5. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +13 -0
  6. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +144 -7
  8. package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +18 -0
  9. package/dist/bundling-sources/shared_libs/product-notifications/onboarding-unsubscribe.ts +23 -0
  10. package/dist/cli/{auth-IC4WLSE3.mjs → auth-AHE2EDQA.mjs} +5 -5
  11. package/dist/cli/auth-SEPKNRHV.js +43 -0
  12. package/dist/cli/{billing-2VOV64SD.mjs → billing-7CPWTGGI.mjs} +19 -12
  13. package/dist/cli/{billing-LWQOII22.js → billing-JOIZPHON.js} +92 -85
  14. package/dist/cli/{chunk-33JUK73X.js → chunk-3YEOOXD4.js} +96 -37
  15. package/dist/cli/{chunk-FVDTERO2.js → chunk-45XYW477.js} +21 -21
  16. package/dist/cli/{chunk-5GI6NKOE.mjs → chunk-4OFSAZN6.mjs} +1 -1
  17. package/dist/cli/{chunk-D27HP3HS.mjs → chunk-52FPW2RD.mjs} +2 -2
  18. package/dist/cli/chunk-5LUF4LAR.mjs +209 -0
  19. package/dist/cli/{chunk-VC5B462T.mjs → chunk-5XT4DZQL.mjs} +2 -2
  20. package/dist/cli/{chunk-26RSSTCF.js → chunk-6FEN6VWZ.js} +26 -26
  21. package/dist/cli/{chunk-7HEDCIR3.mjs → chunk-6U3AGJWI.mjs} +1 -1
  22. package/dist/cli/{chunk-KPBBT6OS.mjs → chunk-7AD565DO.mjs} +1 -1
  23. package/dist/cli/{chunk-FZHOWPSN.js → chunk-7DDACLMX.js} +16 -16
  24. package/dist/cli/{chunk-ZEQPCEV4.mjs → chunk-7DDKLFOY.mjs} +3 -3
  25. package/dist/cli/{chunk-WHP3FJ7T.js → chunk-7QLK2GHL.js} +5 -5
  26. package/dist/cli/{chunk-BI2Q45SY.mjs → chunk-ACI6CUDX.mjs} +11 -401
  27. package/dist/cli/{chunk-C5RQTTLP.js → chunk-BWAYMJ23.js} +7 -7
  28. package/dist/cli/{chunk-YXGPMTAK.js → chunk-CA3SYXCS.js} +2 -2
  29. package/dist/cli/{chunk-J6RBOLK7.mjs → chunk-CSLLQWAB.mjs} +1 -1
  30. package/dist/cli/{chunk-F73PD2XD.js → chunk-EMUFF6EU.js} +7 -7
  31. package/dist/cli/chunk-FIQ5UEIF.mjs +405 -0
  32. package/dist/cli/{chunk-2626LTU3.js → chunk-GAUNJCXQ.js} +96 -96
  33. package/dist/cli/{chunk-A2C6ONWA.js → chunk-GXMNOUHP.js} +6 -6
  34. package/dist/cli/{chunk-MJQOG4TZ.js → chunk-HASFFOSU.js} +16 -16
  35. package/dist/cli/{chunk-TCQYWZFS.js → chunk-IDAE5VDH.js} +5 -5
  36. package/dist/cli/{chunk-JJVN7OIX.mjs → chunk-IZYOYXG7.mjs} +4 -4
  37. package/dist/cli/{chunk-FHJ54BHH.mjs → chunk-JA7YBRP4.mjs} +1 -1
  38. package/dist/cli/{chunk-HRTDCXHI.js → chunk-JSTKLYYD.js} +2 -2
  39. package/dist/cli/{chunk-5M5WSFRZ.mjs → chunk-JVKEZT7L.mjs} +48 -8
  40. package/dist/cli/{chunk-4IIYSBEP.js → chunk-K26YOPDO.js} +50 -10
  41. package/dist/cli/{chunk-2K2QBLYO.js → chunk-LC4FG34E.js} +53 -53
  42. package/dist/cli/{chunk-XYZZZLN6.mjs → chunk-MAFZ64RN.mjs} +2 -2
  43. package/dist/cli/{chunk-B3X4YWQ6.js → chunk-MHZAG2ZQ.js} +80 -470
  44. package/dist/cli/{chunk-DPI5OYVU.mjs → chunk-NARJWXBR.mjs} +2 -2
  45. package/dist/cli/{chunk-GLZBFBJS.mjs → chunk-OA6U5NVB.mjs} +5 -5
  46. package/dist/cli/{chunk-URZNSJE2.mjs → chunk-OMEDQ77C.mjs} +93 -34
  47. package/dist/cli/{chunk-QIEYEY6Z.js → chunk-OORPAQVC.js} +8 -8
  48. package/dist/cli/{chunk-WS274KID.mjs → chunk-PDLOPF5L.mjs} +1 -1
  49. package/dist/cli/{chunk-KGLVATEB.mjs → chunk-PZN24YQQ.mjs} +2 -2
  50. package/dist/cli/{chunk-GIHNEYBG.mjs → chunk-QGNNAZ5M.mjs} +1 -1
  51. package/dist/cli/chunk-QYGYVCRI.js +405 -0
  52. package/dist/cli/chunk-R7J7CJPZ.js +209 -0
  53. package/dist/cli/{chunk-6XTE6C3W.mjs → chunk-RT3HJBIH.mjs} +12 -12
  54. package/dist/cli/{chunk-L3TZV625.mjs → chunk-SHKRL7CW.mjs} +1 -1
  55. package/dist/cli/{chunk-FIUTDSJX.js → chunk-SPN7U3MV.js} +4 -4
  56. package/dist/cli/{chunk-EQ3WMKFY.mjs → chunk-UZ24SF7N.mjs} +5 -5
  57. package/dist/cli/{chunk-AARF4SOW.js → chunk-VXKWF3AD.js} +9 -9
  58. package/dist/cli/{chunk-JPDD4Y53.mjs → chunk-W6I4N4JN.mjs} +6 -6
  59. package/dist/cli/{chunk-PVA3MWCO.js → chunk-WPCF7C6B.js} +3 -3
  60. package/dist/cli/{chunk-3CXHK4TW.js → chunk-WTQLUULB.js} +6 -6
  61. package/dist/cli/{chunk-EDMV4JT5.mjs → chunk-WTUC5VKB.mjs} +2 -2
  62. package/dist/cli/{chunk-IIP46RVC.js → chunk-XHPB6RGY.js} +1 -1
  63. package/dist/cli/{chunk-RVOBFO7C.js → chunk-Y52XY56V.js} +41 -41
  64. package/dist/cli/{chunk-K7NFFQFU.mjs → chunk-YBIVVAL7.mjs} +2 -2
  65. package/dist/cli/{chunk-HS63YBT5.js → chunk-ZLN2B5YA.js} +3 -3
  66. package/dist/cli/command-docs.d.mts +2 -1
  67. package/dist/cli/command-docs.d.ts +2 -1
  68. package/dist/cli/command-docs.js +6 -2
  69. package/dist/cli/command-docs.mjs +5 -1
  70. package/dist/cli/{csv-NEWCNOSZ.js → csv-DZHVIW3G.js} +13 -13
  71. package/dist/cli/{csv-2TXOI3UE.mjs → csv-WTPI6ZON.mjs} +4 -4
  72. package/dist/cli/{db-J3IJS4OG.js → db-D7LPPNCC.js} +27 -27
  73. package/dist/cli/{db-PX7EQEIG.mjs → db-NR4PJ6AF.mjs} +6 -6
  74. package/dist/cli/describe-HVQBTKFM.js +50 -0
  75. package/dist/cli/{describe-GQHGTZSL.mjs → describe-NCKAJPUG.mjs} +18 -17
  76. package/dist/cli/describe-core.d.mts +2 -2
  77. package/dist/cli/describe-core.d.ts +2 -2
  78. package/dist/cli/{executions-FFKK24RY.mjs → executions-RQVJ4LAB.mjs} +6 -6
  79. package/dist/cli/{executions-RO3TJUXL.js → executions-UQG6LWEN.js} +8 -8
  80. package/dist/cli/{feedback-ZTO56SRL.mjs → feedback-RD4Y3YQR.mjs} +4 -4
  81. package/dist/cli/{feedback-XRR4HIS6.js → feedback-TCHA67IA.js} +8 -8
  82. package/dist/cli/git-TUB2ZUEH.js +25 -0
  83. package/dist/cli/{git-FIPBVFYZ.mjs → git-Z7434B7Y.mjs} +5 -5
  84. package/dist/cli/index.js +145 -141
  85. package/dist/cli/index.mjs +51 -47
  86. package/dist/cli/{legacy-noops-MTBBGM27.js → legacy-noops-23WRA7DH.js} +8 -8
  87. package/dist/cli/{legacy-noops-AMD2NWHF.mjs → legacy-noops-LQJU4UIV.mjs} +5 -5
  88. package/dist/cli/{monitors-42PIGLBF.js → monitors-KOWN7M3V.js} +95 -95
  89. package/dist/cli/{monitors-24LDKDJX.mjs → monitors-Z6VYUZ2W.mjs} +7 -7
  90. package/dist/cli/{org-GQMCA3MN.js → org-2T5K2VP5.js} +72 -72
  91. package/dist/cli/{org-4B7SCFRL.mjs → org-UBNRO5XO.mjs} +6 -6
  92. package/dist/cli/{pages-PD5EGL2R.mjs → pages-GHPJBVV3.mjs} +6 -6
  93. package/dist/cli/{pages-RL2M62GJ.js → pages-SRXTU7XO.js} +18 -18
  94. package/dist/cli/{play-FST6ZAHW.js → play-2HMZ57EZ.js} +324 -517
  95. package/dist/cli/{play-5V54VTUR.mjs → play-HRQKGTXA.mjs} +24 -217
  96. package/dist/cli/{providers-N5YVCKPL.mjs → providers-JWJRFRR5.mjs} +6 -6
  97. package/dist/cli/{providers-HBUUPN7J.js → providers-P5O676MZ.js} +9 -9
  98. package/dist/cli/{quickstart-NJDDVTQR.mjs → quickstart-S7NZUQRO.mjs} +4 -4
  99. package/dist/cli/{quickstart-4QIQNSHG.js → quickstart-YCY72TAO.js} +6 -6
  100. package/dist/cli/{run-FGOKCG4J.js → run-MHLLGF4G.js} +41 -40
  101. package/dist/cli/{run-JHI5MTHD.mjs → run-QWMRIUIU.mjs} +23 -22
  102. package/dist/cli/{search-EWIZBIY2.mjs → search-4BFTQUEP.mjs} +8 -7
  103. package/dist/cli/search-QPUHOEIL.js +33 -0
  104. package/dist/cli/{search-output-TMQTRC2W.js → search-output-62LBVZHN.js} +6 -6
  105. package/dist/cli/{search-output-NAK3MWBH.mjs → search-output-LIYHDTBP.mjs} +4 -4
  106. package/dist/cli/{secrets-ONQVW5SR.mjs → secrets-GW27V77E.mjs} +6 -6
  107. package/dist/cli/{secrets-5TSUEOJB.js → secrets-KKKHVSOO.js} +15 -15
  108. package/dist/cli/{sessions-BSGE5EET.js → sessions-R3OEINAR.js} +6 -6
  109. package/dist/cli/{sessions-B7F5O3ZR.mjs → sessions-R75LBGIL.mjs} +5 -5
  110. package/dist/cli/{settings-SGGFQV5R.mjs → settings-I3AQZSYG.mjs} +12 -11
  111. package/dist/cli/{settings-47LARBRU.js → settings-MQIHAEZN.js} +79 -78
  112. package/dist/cli/{setup-ATGNXQUK.mjs → setup-2YA5MYMS.mjs} +10 -9
  113. package/dist/cli/{setup-BNFZFXO6.js → setup-X3QRJERP.js} +50 -49
  114. package/dist/cli/{skills-CIMBRM5R.mjs → skills-7252FOOI.mjs} +8 -7
  115. package/dist/cli/skills-BPZWMZSL.js +37 -0
  116. package/dist/cli/tools-F7RVQ3IK.js +57 -0
  117. package/dist/cli/{tools-DTDXAULX.mjs → tools-SKQTSVGE.mjs} +17 -16
  118. package/dist/cli/{update-EOIJBJCO.mjs → update-GNBBSKTB.mjs} +10 -9
  119. package/dist/cli/update-TLSY6LC2.js +35 -0
  120. package/dist/cli/{workflow-IWXUJPWY.mjs → workflow-OJSAL5FO.mjs} +7 -7
  121. package/dist/cli/{workflow-V5VKPICQ.js → workflow-QB7YYWPP.js} +17 -17
  122. package/dist/{client-CIwenMFS.d.ts → client-B3GSaSFn.d.ts} +1 -1
  123. package/dist/{client-DYAfJpaN.d.mts → client-DEJg0CZn.d.mts} +1 -1
  124. package/dist/{client-core-DlzP8vEs.d.mts → client-core-C404E33V.d.mts} +5 -0
  125. package/dist/{client-core-CRjtyMAI.d.ts → client-core-GQmy3N8y.d.ts} +5 -0
  126. package/dist/index.d.mts +3 -3
  127. package/dist/index.d.ts +3 -3
  128. package/dist/index.js +9 -9
  129. package/dist/index.mjs +6 -6
  130. package/dist/install-integrity.json +109 -104
  131. package/dist/plays/bundle-play-file.mjs +4 -4
  132. package/dist/plays/play-description.d.mts +1 -1
  133. package/dist/plays/play-description.d.ts +1 -1
  134. package/dist/plays/run-request.d.mts +1 -1
  135. package/dist/plays/run-request.d.ts +1 -1
  136. package/dist/release.d.mts +1 -1
  137. package/dist/release.d.ts +1 -1
  138. package/dist/release.js +2 -2
  139. package/dist/release.mjs +1 -1
  140. package/dist/server.d.mts +2 -2
  141. package/dist/server.d.ts +2 -2
  142. package/dist/server.js +5 -5
  143. package/dist/server.mjs +3 -3
  144. package/package.json +1 -1
  145. package/dist/cli/auth-ZCMSXZO4.js +0 -43
  146. package/dist/cli/describe-LE7EZCL4.js +0 -49
  147. package/dist/cli/git-26AH4XIO.js +0 -25
  148. package/dist/cli/search-CTKSEVSO.js +0 -32
  149. package/dist/cli/skills-6RD25MVM.js +0 -36
  150. package/dist/cli/tools-TDZH4XHS.js +0 -56
  151. package/dist/cli/update-Y32VT4VL.js +0 -34
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-F6QV42MC.mjs";
4
4
  import {
5
5
  parseLogLevel
6
- } from "./chunk-5GI6NKOE.mjs";
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-KGLVATEB.mjs";
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-J6RBOLK7.mjs";
4
+ } from "./chunk-CSLLQWAB.mjs";
5
5
  import {
6
6
  runSkillsCommand
7
- } from "./chunk-JJVN7OIX.mjs";
7
+ } from "./chunk-IZYOYXG7.mjs";
8
8
  import {
9
9
  resolveShellSpawn
10
- } from "./chunk-BI2Q45SY.mjs";
10
+ } from "./chunk-ACI6CUDX.mjs";
11
11
  import {
12
12
  printCommandEnvelope
13
- } from "./chunk-KGLVATEB.mjs";
13
+ } from "./chunk-PZN24YQQ.mjs";
14
14
  import {
15
15
  autoDetectBaseUrl
16
- } from "./chunk-L3TZV625.mjs";
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-D27HP3HS.mjs";
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-KGLVATEB.mjs";
13
+ } from "./chunk-PZN24YQQ.mjs";
10
14
  import {
11
15
  resolveConfig,
12
16
  sdkCliStateDirPath
13
- } from "./chunk-L3TZV625.mjs";
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({ searchRef, at: Date.now() }),
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
- return typeof saved.searchRef === "string" && typeof saved.at === "number" && Date.now() - saved.at < SEARCH_REF_TTL_MS ? saved.searchRef : void 0;
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(queryInput, options, types, exclude = []) {
111
- const query = queryInput?.trim() ?? "";
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 { search_ref: searchRef, ...result } = await new DeeplineClient().search({
123
- query,
124
- types,
125
- exclude,
126
- categories: options.categories,
127
- searchTerms,
128
- task: options.task,
129
- limit: optionalInteger(options.limit),
130
- offset: optionalInteger(options.offset),
131
- searchMode: options.searchMode === "v1" || options.searchMode === "v2" ? options.searchMode : void 0,
132
- includeSearchDebug: Boolean(options.includeSearchDebug)
133
- });
134
- if (searchRef) rememberSearchRef(searchRef);
135
- pointAtDescribe(result);
136
- const { renderSearchResults } = await import("./search-output-NAK3MWBH.mjs");
137
- printCommandEnvelope(result, {
138
- json: options.json === true,
139
- text: renderSearchResults(result, summaryWidth)
140
- });
141
- return 0;
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(query, options, types);
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 (query, options) => {
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(query, options, types, exclude);
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 _chunkF73PD2XDjs = require('./chunk-F73PD2XD.js');
4
+ var _chunkEMUFF6EUjs = require('./chunk-EMUFF6EU.js');
5
5
 
6
6
 
7
- var _chunkFIUTDSJXjs = require('./chunk-FIUTDSJX.js');
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 = _chunkFIUTDSJXjs.agentSessionIdFromEnvironment.call(void 0,
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 } = _chunkF73PD2XDjs.getAuthedHttpClient.call(void 0, );
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
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
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
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
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
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
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
- _chunkF73PD2XDjs.printCommandEnvelope.call(void 0,
677
+ _chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
678
678
  {
679
679
  ok: true,
680
680
  file: outputPath,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-KGLVATEB.mjs";
3
+ } from "./chunk-PZN24YQQ.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -2,10 +2,10 @@ import {
2
2
  HttpClient,
3
3
  resolveCliCommandContext,
4
4
  resolveConfig
5
- } from "./chunk-L3TZV625.mjs";
5
+ } from "./chunk-SHKRL7CW.mjs";
6
6
  import {
7
7
  detectAgentRuntime
8
- } from "./chunk-KPBBT6OS.mjs";
8
+ } from "./chunk-7AD565DO.mjs";
9
9
  import {
10
10
  DeeplineError,
11
11
  serializeToolExecutionFailure
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-KGLVATEB.mjs";
3
+ } from "./chunk-PZN24YQQ.mjs";
4
4
 
5
5
  // src/cli/progress.ts
6
6
  import { Worker } from "worker_threads";