deepline 0.3.342 → 0.3.343

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 (103) hide show
  1. package/dist/bundling-sources/sdk/src/http.ts +9 -1
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +2 -0
  4. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +33 -0
  5. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +15 -0
  6. package/dist/cli/{auth-7GVSCIFY.mjs → auth-IPOSX2NV.mjs} +4 -4
  7. package/dist/cli/auth-J2C5CQ7M.js +31 -0
  8. package/dist/cli/{billing-BVCHOOOJ.mjs → billing-CWTZDAOC.mjs} +4 -4
  9. package/dist/cli/{billing-CQDTIFBF.js → billing-ZZKX4IFS.js} +71 -71
  10. package/dist/cli/{chunk-OJH4W52K.mjs → chunk-2Y2QZJBT.mjs} +1 -1
  11. package/dist/cli/{chunk-B2PMPAIJ.js → chunk-63UBRDGC.js} +60 -60
  12. package/dist/cli/{chunk-3BGGXEO5.js → chunk-AUB3AW3P.js} +8 -4
  13. package/dist/cli/{chunk-ERC3XIUO.js → chunk-BCF43TLG.js} +27 -28
  14. package/dist/cli/{chunk-FT4V72RC.mjs → chunk-CVIAYYLR.mjs} +2 -2
  15. package/dist/cli/{chunk-SBXCXMYT.mjs → chunk-DEDNTNXS.mjs} +1 -1
  16. package/dist/cli/{chunk-4EW5CMVL.js → chunk-ELZ4HEPQ.js} +227 -227
  17. package/dist/cli/{chunk-K2P365R2.js → chunk-ERFIHZXT.js} +57 -67
  18. package/dist/cli/{chunk-KM3JYG56.js → chunk-FM36CTMM.js} +9 -9
  19. package/dist/cli/{chunk-KYHNFT7T.js → chunk-FSNKEEBA.js} +1 -1
  20. package/dist/cli/{chunk-GAQGAH34.mjs → chunk-GISYO3JA.mjs} +22 -23
  21. package/dist/cli/{chunk-DL5YQFZ6.js → chunk-IPEE3DIV.js} +6 -6
  22. package/dist/cli/{chunk-W5BMDA4F.js → chunk-JGW7AR5N.js} +2 -2
  23. package/dist/cli/{chunk-DP2XSXRA.js → chunk-JS7JVUZZ.js} +8 -8
  24. package/dist/cli/{chunk-GEGCG7MG.mjs → chunk-KLEZD6JX.mjs} +8 -8
  25. package/dist/cli/{chunk-BIA27ZNI.mjs → chunk-LY33N2W6.mjs} +2 -2
  26. package/dist/cli/{chunk-XAMWA45P.mjs → chunk-QV2WIEUP.mjs} +11 -21
  27. package/dist/cli/{chunk-VZHA6YHU.mjs → chunk-RB2ELEQ5.mjs} +4 -4
  28. package/dist/cli/{chunk-5Y2DDT5K.js → chunk-RDXH4KXG.js} +26 -26
  29. package/dist/cli/{chunk-AC7QCWXV.mjs → chunk-U5L6FIIL.mjs} +1 -1
  30. package/dist/cli/{chunk-4LPBIUQ2.mjs → chunk-UJFBO6QV.mjs} +2 -2
  31. package/dist/cli/{chunk-G6TM2GK2.mjs → chunk-W6LB26RC.mjs} +5 -1
  32. package/dist/cli/{chunk-IDTUEEF4.mjs → chunk-WBXTRZAX.mjs} +1 -1
  33. package/dist/cli/{chunk-LQGHKRNZ.js → chunk-XOX3Y5OP.js} +48 -48
  34. package/dist/cli/{chunk-3BY3UMYO.js → chunk-ZGIXGBKF.js} +15 -15
  35. package/dist/cli/{chunk-ECBT2RXL.mjs → chunk-ZQFYR6NT.mjs} +8 -8
  36. package/dist/cli/{client-UMFL6LP2.mjs → client-7ZUYHDCL.mjs} +3 -3
  37. package/dist/cli/client-CCDQC7ZY.js +20 -0
  38. package/dist/cli/{csv-EFHLVMV2.mjs → csv-6CFRU4CQ.mjs} +3 -3
  39. package/dist/cli/{csv-HYZKDWVL.js → csv-7BL43EOB.js} +12 -12
  40. package/dist/cli/{db-RPWOYGIJ.js → db-EJETRBBT.js} +29 -29
  41. package/dist/cli/{db-GVC55S5W.mjs → db-RUKRHPBV.mjs} +4 -4
  42. package/dist/cli/{describe-X5WLZXOS.mjs → describe-AVBCGKX4.mjs} +8 -8
  43. package/dist/cli/{describe-EPNNEVZG.js → describe-N46DGDQ4.js} +15 -15
  44. package/dist/cli/{executions-MPEF66XO.mjs → executions-FCTCQYY3.mjs} +4 -4
  45. package/dist/cli/{executions-MEQFDGRU.js → executions-OPBBBSDT.js} +6 -6
  46. package/dist/cli/{feedback-SCZSITXP.js → feedback-RSPSGS2W.js} +7 -7
  47. package/dist/cli/{feedback-I4UNJEHC.mjs → feedback-XY7F7FF6.mjs} +3 -3
  48. package/dist/cli/git-DZTOBIUF.js +23 -0
  49. package/dist/cli/{git-5H4ZVTTV.mjs → git-ZQ534TRG.mjs} +4 -4
  50. package/dist/cli/index.js +80 -80
  51. package/dist/cli/index.mjs +32 -32
  52. package/dist/cli/{legacy-noops-326HSG4F.mjs → legacy-noops-S4Q4TBKQ.mjs} +4 -4
  53. package/dist/cli/{legacy-noops-BH6IRSKQ.js → legacy-noops-WCLAYQNO.js} +7 -7
  54. package/dist/cli/{monitors-AZ64IIUO.mjs → monitors-7EONZILI.mjs} +4 -4
  55. package/dist/cli/{monitors-SIXPXBKU.js → monitors-UD6C7YUQ.js} +85 -85
  56. package/dist/cli/{org-4VX6L3SZ.js → org-EGED4FVT.js} +60 -60
  57. package/dist/cli/{org-2FAU4GBK.mjs → org-SPZF2UBU.mjs} +4 -4
  58. package/dist/cli/play-5MDIQGCF.js +153 -0
  59. package/dist/cli/{play-7VQABXW7.mjs → play-KXWJX7RB.mjs} +7 -7
  60. package/dist/cli/{providers-WWEGDKWO.js → providers-HWGPSJZ7.js} +7 -7
  61. package/dist/cli/{providers-DOFRWRDC.mjs → providers-P2MRBKX2.mjs} +4 -4
  62. package/dist/cli/{quickstart-64NWQZXP.js → quickstart-CL4AB46M.js} +5 -5
  63. package/dist/cli/{quickstart-JXN53CUE.mjs → quickstart-VEEHUU7O.mjs} +3 -3
  64. package/dist/cli/search-6H77HQL3.js +26 -0
  65. package/dist/cli/{search-NREYIQO7.mjs → search-D7CLJLVU.mjs} +5 -5
  66. package/dist/cli/{secrets-FGZSIICG.js → secrets-NGB5OD2W.js} +13 -13
  67. package/dist/cli/{secrets-LO2S3ASQ.mjs → secrets-ZDW4MTJL.mjs} +4 -4
  68. package/dist/cli/{sessions-FYHXMESN.mjs → sessions-HYUYIAHB.mjs} +4 -4
  69. package/dist/cli/{sessions-VOLIMKDL.js → sessions-MTN3SBTL.js} +5 -5
  70. package/dist/cli/{settings-WABX7ZVG.mjs → settings-RMABGZ6N.mjs} +7 -7
  71. package/dist/cli/{settings-EYQHZTCR.js → settings-X43X7H54.js} +74 -74
  72. package/dist/cli/{setup-JVECE4TU.mjs → setup-N7KUH3AM.mjs} +6 -6
  73. package/dist/cli/{setup-7H5EAAZK.js → setup-QEM6U5TO.js} +41 -41
  74. package/dist/cli/skills-7H2OD626.js +28 -0
  75. package/dist/cli/{skills-BEVLJDUH.mjs → skills-H3STANPK.mjs} +4 -4
  76. package/dist/cli/{tools-5D32S2CY.mjs → tools-FSEOJNTY.mjs} +6 -6
  77. package/dist/cli/tools-UYW5T5PU.js +40 -0
  78. package/dist/cli/{update-EMNDLIDA.mjs → update-6BUK4OLS.mjs} +6 -6
  79. package/dist/cli/update-K743Q4EF.js +28 -0
  80. package/dist/cli/{workflow-BBMZ2A2Y.js → workflow-4GZCYDZS.js} +15 -15
  81. package/dist/cli/{workflow-MMTSJB3D.mjs → workflow-Q7RJGAKL.mjs} +5 -5
  82. package/dist/{client-B-hjM1NX.d.mts → client-BHReRdWK.d.mts} +41 -0
  83. package/dist/{client-txa3om01.d.ts → client-DW3zASj8.d.ts} +41 -0
  84. package/dist/index.d.mts +2 -2
  85. package/dist/index.d.ts +2 -2
  86. package/dist/index.js +6 -6
  87. package/dist/index.mjs +3 -3
  88. package/dist/install-integrity.json +76 -76
  89. package/dist/plays/run-request.d.mts +1 -1
  90. package/dist/plays/run-request.d.ts +1 -1
  91. package/dist/release.d.mts +1 -1
  92. package/dist/release.d.ts +1 -1
  93. package/dist/release.js +2 -2
  94. package/dist/release.mjs +1 -1
  95. package/package.json +1 -1
  96. package/dist/cli/auth-BFOCE76P.js +0 -31
  97. package/dist/cli/client-FCOLYBLU.js +0 -20
  98. package/dist/cli/git-YA73D6HG.js +0 -23
  99. package/dist/cli/play-SDZWMYJM.js +0 -153
  100. package/dist/cli/search-VKOBBQAN.js +0 -26
  101. package/dist/cli/skills-4WHWKCUN.js +0 -28
  102. package/dist/cli/tools-SGLGLR2H.js +0 -40
  103. package/dist/cli/update-HRB4G5LS.js +0 -28
@@ -3,7 +3,7 @@
3
3
  var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
4
4
 
5
5
 
6
- var _chunkDL5YQFZ6js = require('./chunk-DL5YQFZ6.js');
6
+ var _chunkIPEE3DIVjs = require('./chunk-IPEE3DIV.js');
7
7
 
8
8
 
9
9
 
@@ -22,7 +22,7 @@ var _chunkDL5YQFZ6js = require('./chunk-DL5YQFZ6.js');
22
22
 
23
23
 
24
24
 
25
- var _chunk3BGGXEO5js = require('./chunk-3BGGXEO5.js');
25
+ var _chunkAUB3AW3Pjs = require('./chunk-AUB3AW3P.js');
26
26
 
27
27
 
28
28
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -117,7 +117,7 @@ function skillsSourceUrl(baseUrl) {
117
117
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
118
118
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
119
119
  const [firstSkillName, ...extraSkillNames] = skillNames;
120
- const agents = _nullishCoalesce(options.agents, () => ( _chunk3BGGXEO5js.DEFAULT_SKILL_AGENTS));
120
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkAUB3AW3Pjs.DEFAULT_SKILL_AGENTS));
121
121
  const values = {
122
122
  skills_index_url: skillsIndexUrl(baseUrl),
123
123
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -193,7 +193,7 @@ function shouldSkipCompatibilityCheck() {
193
193
  return value === "1" || value === "true" || value === "yes";
194
194
  }
195
195
  function sdkCompatibilityCachePath(baseUrl, homeDir = _os.homedir.call(void 0, )) {
196
- return _path.join.call(void 0, _chunk3BGGXEO5js.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
196
+ return _path.join.call(void 0, _chunkAUB3AW3Pjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
197
197
  }
198
198
  function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
199
199
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -201,9 +201,9 @@ function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
201
201
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
202
202
  return JSON.stringify({
203
203
  baseUrl: baseUrl.replace(/\/$/, ""),
204
- version: _chunk3BGGXEO5js.SDK_VERSION,
205
- apiContract: _chunk3BGGXEO5js.SDK_API_CONTRACT,
206
- apiMajor: _chunk3BGGXEO5js.SDK_API_MAJOR,
204
+ version: _chunkAUB3AW3Pjs.SDK_VERSION,
205
+ apiContract: _chunkAUB3AW3Pjs.SDK_API_CONTRACT,
206
+ apiMajor: _chunkAUB3AW3Pjs.SDK_API_MAJOR,
207
207
  command: _optionalChain([command, 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]) || null,
208
208
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
209
209
  });
@@ -211,8 +211,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
211
211
  function legacyCompatibilityCacheKey(baseUrl, command) {
212
212
  return JSON.stringify({
213
213
  baseUrl: baseUrl.replace(/\/$/, ""),
214
- version: _chunk3BGGXEO5js.SDK_VERSION,
215
- apiContract: _chunk3BGGXEO5js.SDK_API_CONTRACT,
214
+ version: _chunkAUB3AW3Pjs.SDK_VERSION,
215
+ apiContract: _chunkAUB3AW3Pjs.SDK_API_CONTRACT,
216
216
  command: _optionalChain([command, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || null
217
217
  });
218
218
  }
@@ -305,7 +305,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
305
305
  );
306
306
  try {
307
307
  const url = new URL("/api/v2/sdk/compat", baseUrl);
308
- url.searchParams.set("version", _chunk3BGGXEO5js.SDK_VERSION);
308
+ url.searchParams.set("version", _chunkAUB3AW3Pjs.SDK_VERSION);
309
309
  if (_optionalChain([options, 'access', _19 => _19.command, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()])) {
310
310
  url.searchParams.set("command", options.command.trim());
311
311
  }
@@ -318,13 +318,13 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
318
318
  const response = await fetch(url, {
319
319
  method: "GET",
320
320
  headers: {
321
- ..._chunk3BGGXEO5js.deploymentProtectionHeaders.call(void 0, ),
322
- "User-Agent": `deepline-ts-sdk/${_chunk3BGGXEO5js.SDK_VERSION}`,
323
- "X-Deepline-SDK-Version": _chunk3BGGXEO5js.SDK_VERSION,
324
- "X-Deepline-API-Major": String(_chunk3BGGXEO5js.SDK_API_MAJOR),
325
- "X-Deepline-API-Contract": _chunk3BGGXEO5js.SDK_API_CONTRACT,
321
+ ..._chunkAUB3AW3Pjs.deploymentProtectionHeaders.call(void 0, ),
322
+ "User-Agent": `deepline-ts-sdk/${_chunkAUB3AW3Pjs.SDK_VERSION}`,
323
+ "X-Deepline-SDK-Version": _chunkAUB3AW3Pjs.SDK_VERSION,
324
+ "X-Deepline-API-Major": String(_chunkAUB3AW3Pjs.SDK_API_MAJOR),
325
+ "X-Deepline-API-Contract": _chunkAUB3AW3Pjs.SDK_API_CONTRACT,
326
326
  "X-Deepline-CLI-Update-Preferences": "1",
327
- ...options.catalog ? { Authorization: `Bearer ${_chunk3BGGXEO5js.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
327
+ ...options.catalog ? { Authorization: `Bearer ${_chunkAUB3AW3Pjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
328
328
  },
329
329
  signal: controller.signal
330
330
  });
@@ -577,7 +577,7 @@ function buildEnvironmentContext() {
577
577
  node_version: process.version,
578
578
  runtime: "Node.js",
579
579
  hostname: _os.hostname.call(void 0, ),
580
- agent_runtime: _chunk3BGGXEO5js.detectAgentRuntime.call(void 0, )
580
+ agent_runtime: _chunkAUB3AW3Pjs.detectAgentRuntime.call(void 0, )
581
581
  };
582
582
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
583
583
  const normalized = _optionalChain([process, 'access', _32 => _32.env, 'access', _33 => _33[key], 'optionalAccess', _34 => _34.trim, 'call', _35 => _35()]);
@@ -601,12 +601,12 @@ function failureReportHeaders(apiKey) {
601
601
  return {
602
602
  Authorization: `Bearer ${apiKey}`,
603
603
  "Content-Type": "application/json",
604
- "User-Agent": `deepline-ts-sdk/${_chunk3BGGXEO5js.SDK_VERSION}`,
604
+ "User-Agent": `deepline-ts-sdk/${_chunkAUB3AW3Pjs.SDK_VERSION}`,
605
605
  "X-Deepline-Client-Family": "sdk",
606
606
  "X-Deepline-CLI-Family": "sdk",
607
- "X-Deepline-Agent-Runtime": _chunk3BGGXEO5js.detectAgentRuntime.call(void 0, ),
608
- "X-Deepline-CLI-Version": _chunk3BGGXEO5js.SDK_VERSION,
609
- "X-Deepline-SDK-Version": _chunk3BGGXEO5js.SDK_VERSION
607
+ "X-Deepline-Agent-Runtime": _chunkAUB3AW3Pjs.detectAgentRuntime.call(void 0, ),
608
+ "X-Deepline-CLI-Version": _chunkAUB3AW3Pjs.SDK_VERSION,
609
+ "X-Deepline-SDK-Version": _chunkAUB3AW3Pjs.SDK_VERSION
610
610
  };
611
611
  }
612
612
  async function postFailureReport(input) {
@@ -634,7 +634,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
634
634
  if (isFailureReportingDisabled()) return false;
635
635
  let apiKey = "";
636
636
  try {
637
- apiKey = _chunk3BGGXEO5js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
637
+ apiKey = _chunkAUB3AW3Pjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
638
638
  } catch (e7) {
639
639
  return false;
640
640
  }
@@ -661,7 +661,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
661
661
  failure_code: failureCode2,
662
662
  failure_stage: failureStage,
663
663
  error_body: "Automatic Deepline skills installation failed.",
664
- cli_version: _chunk3BGGXEO5js.SDK_VERSION,
664
+ cli_version: _chunkAUB3AW3Pjs.SDK_VERSION,
665
665
  context: {
666
666
  environment: buildEnvironmentContext(),
667
667
  skills_sync: {
@@ -781,7 +781,7 @@ function buildFailureReport(input) {
781
781
  failure_kind: failureKind,
782
782
  failure_code: code,
783
783
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
784
- cli_version: _chunk3BGGXEO5js.SDK_VERSION,
784
+ cli_version: _chunkAUB3AW3Pjs.SDK_VERSION,
785
785
  context: {
786
786
  base_url: redactFailureText(input.baseUrl, 400),
787
787
  command_summary: sanitizeCommand(input.argv),
@@ -801,8 +801,8 @@ async function maybeReportSdkCliFailure(input) {
801
801
  if (isServerLoggedPlayRunStartFailure(input)) return false;
802
802
  const exitCode = resolvedExitCode(input);
803
803
  if (!shouldReport({ exitCode, error: input.error })) return false;
804
- const baseUrl = _chunk3BGGXEO5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
805
- const apiKey = _chunk3BGGXEO5js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
804
+ const baseUrl = _chunkAUB3AW3Pjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
805
+ const apiKey = _chunkAUB3AW3Pjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
806
806
  if (!apiKey) return false;
807
807
  return postFailureReport({
808
808
  baseUrl,
@@ -823,25 +823,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
823
823
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
824
824
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
825
825
  function shouldSkipSkillsSync() {
826
- if (_chunk3BGGXEO5js.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
826
+ if (_chunkAUB3AW3Pjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
827
827
  return true;
828
828
  }
829
829
  const value = _optionalChain([process, 'access', _56 => _56.env, 'access', _57 => _57.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _58 => _58.trim, 'call', _59 => _59(), 'access', _60 => _60.toLowerCase, 'call', _61 => _61()]);
830
830
  return value === "1" || value === "true" || value === "yes" || value === "on";
831
831
  }
832
832
  function unavailableSkillsNoticePath(baseUrl) {
833
- return _path.join.call(void 0, _chunk3BGGXEO5js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
833
+ return _path.join.call(void 0, _chunkAUB3AW3Pjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
834
834
  }
835
835
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
836
836
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
837
- var agentLeaseSegment = _chunk3BGGXEO5js.skillsAgentPathSegment;
837
+ var agentLeaseSegment = _chunkAUB3AW3Pjs.skillsAgentPathSegment;
838
838
  function sortedLeaseAgents(agents) {
839
- const expanded = agents.includes("*") ? [...agents, ..._chunk3BGGXEO5js.KNOWN_SKILL_AGENTS] : agents;
839
+ const expanded = agents.includes("*") ? [...agents, ..._chunkAUB3AW3Pjs.KNOWN_SKILL_AGENTS] : agents;
840
840
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
841
841
  }
842
842
  function inProgressSkillsSyncPath(baseUrl, agent) {
843
843
  return _path.join.call(void 0,
844
- _chunk3BGGXEO5js.sdkCliStateDirPath.call(void 0, baseUrl),
844
+ _chunkAUB3AW3Pjs.sdkCliStateDirPath.call(void 0, baseUrl),
845
845
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
846
846
  );
847
847
  }
@@ -1000,7 +1000,7 @@ var SkillsStateUnavailableError = class extends Error {
1000
1000
  constructor(baseUrl, error) {
1001
1001
  const detail = error instanceof Error ? error.message : String(error);
1002
1002
  super(
1003
- `Could not save skills state in ${_chunk3BGGXEO5js.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1003
+ `Could not save skills state in ${_chunkAUB3AW3Pjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1004
1004
  );
1005
1005
  this.name = "SkillsStateUnavailableError";
1006
1006
  }
@@ -1085,7 +1085,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
1085
1085
  }
1086
1086
  function deferredSkillsNoticePath(baseUrl, agents) {
1087
1087
  return _path.join.call(void 0,
1088
- _chunk3BGGXEO5js.sdkCliStateDirPath.call(void 0, baseUrl),
1088
+ _chunkAUB3AW3Pjs.sdkCliStateDirPath.call(void 0, baseUrl),
1089
1089
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
1090
1090
  );
1091
1091
  }
@@ -1119,8 +1119,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
1119
1119
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
1120
1120
  }
1121
1121
  function flushDeferredSkillsSyncNotices(baseUrl) {
1122
- if (shouldSkipSkillsSync() || _chunk3BGGXEO5js.hasActivePluginSkills.call(void 0, )) return;
1123
- const agents = _chunk3BGGXEO5js.resolveAutoSyncSkillAgents.call(void 0, );
1122
+ if (shouldSkipSkillsSync() || _chunkAUB3AW3Pjs.hasActivePluginSkills.call(void 0, )) return;
1123
+ const agents = _chunkAUB3AW3Pjs.resolveAutoSyncSkillAgents.call(void 0, );
1124
1124
  if (agents.length === 0) return;
1125
1125
  flushDeferredSkillsNotices(baseUrl, agents);
1126
1126
  }
@@ -1136,7 +1136,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
1136
1136
  }
1137
1137
  function failedSkillsSyncPath(baseUrl, agents) {
1138
1138
  return _path.join.call(void 0,
1139
- _chunk3BGGXEO5js.sdkCliStateDirPath.call(void 0, baseUrl),
1139
+ _chunkAUB3AW3Pjs.sdkCliStateDirPath.call(void 0, baseUrl),
1140
1140
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
1141
1141
  );
1142
1142
  }
@@ -1165,7 +1165,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
1165
1165
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
1166
1166
  writeMarkedSkillsSyncVersion(path, remoteVersion);
1167
1167
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
1168
- const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunk3BGGXEO5js.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1168
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkAUB3AW3Pjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1169
1169
  const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _66 => _66.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
1170
1170
  notice(
1171
1171
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -1253,7 +1253,7 @@ function buildSdkSkillNames(v1SkillNames2) {
1253
1253
  return sortedUniqueSkillNames(v1SkillNames2);
1254
1254
  }
1255
1255
  function isDefaultAgentSet(agents) {
1256
- return agents.length === _chunk3BGGXEO5js.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunk3BGGXEO5js.DEFAULT_SKILL_AGENTS[index]);
1256
+ return agents.length === _chunkAUB3AW3Pjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkAUB3AW3Pjs.DEFAULT_SKILL_AGENTS[index]);
1257
1257
  }
1258
1258
  function safeSkillFilePath(value) {
1259
1259
  if (typeof value !== "string" || !value) return false;
@@ -1450,7 +1450,7 @@ function probeInstallers(timeoutMs) {
1450
1450
  }
1451
1451
  function noInstallerProbePath(baseUrl) {
1452
1452
  return _path.join.call(void 0,
1453
- _chunk3BGGXEO5js.sdkCliStateDirPath.call(void 0, baseUrl),
1453
+ _chunkAUB3AW3Pjs.sdkCliStateDirPath.call(void 0, baseUrl),
1454
1454
  "skills-sync-no-installer-unknown.json"
1455
1455
  );
1456
1456
  }
@@ -1529,7 +1529,7 @@ function temporarySkillsSyncSkipCommand() {
1529
1529
  function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
1530
1530
  return resolveShellSpawn(install.command, install.args, platform2);
1531
1531
  }
1532
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunk3BGGXEO5js.DEFAULT_SKILL_AGENTS, knownProbes) {
1532
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkAUB3AW3Pjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1533
1533
  const commands = [];
1534
1534
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1535
1535
  if (probes.bunx === "available") {
@@ -1681,11 +1681,11 @@ function writeSdkSkillsStatusLine(line) {
1681
1681
  }
1682
1682
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1683
1683
  if (shouldSkipSkillsSync()) return;
1684
- const usingPluginSkills = _chunk3BGGXEO5js.hasActivePluginSkills.call(void 0, );
1684
+ const usingPluginSkills = _chunkAUB3AW3Pjs.hasActivePluginSkills.call(void 0, );
1685
1685
  if (usingPluginSkills) {
1686
1686
  return;
1687
1687
  }
1688
- const agents = _chunk3BGGXEO5js.resolveAutoSyncSkillAgents.call(void 0, );
1688
+ const agents = _chunkAUB3AW3Pjs.resolveAutoSyncSkillAgents.call(void 0, );
1689
1689
  if (options.mode === "detached" && agents.length > 0) {
1690
1690
  flushDeferredSkillsNotices(baseUrl, agents);
1691
1691
  }
@@ -1713,7 +1713,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1713
1713
  return;
1714
1714
  }
1715
1715
  try {
1716
- const localVersion = _chunk3BGGXEO5js.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1716
+ const localVersion = _chunkAUB3AW3Pjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1717
1717
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1718
1718
  needsUpdate: options.update.needs_update,
1719
1719
  remoteVersion: options.update.remote.version
@@ -1879,7 +1879,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1879
1879
  }
1880
1880
  }
1881
1881
  runLegacySkillsCleanup(agents);
1882
- if (!_chunk3BGGXEO5js.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1882
+ if (!_chunkAUB3AW3Pjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1883
1883
  notice(
1884
1884
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1885
1885
  );
@@ -1938,7 +1938,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
1938
1938
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
1939
1939
  }
1940
1940
  function resolveLocalRoot() {
1941
- const target = _chunk3BGGXEO5js.resolveProjectPinTarget.call(void 0, );
1941
+ const target = _chunkAUB3AW3Pjs.resolveProjectPinTarget.call(void 0, );
1942
1942
  if (!target.ok) {
1943
1943
  throw new Error(
1944
1944
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -1949,7 +1949,7 @@ function resolveLocalRoot() {
1949
1949
  return target.dir;
1950
1950
  }
1951
1951
  function detectSkillsAgents(input) {
1952
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunk3BGGXEO5js.detectAgentRuntime.call(void 0, )));
1952
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkAUB3AW3Pjs.detectAgentRuntime.call(void 0, )));
1953
1953
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
1954
1954
  if (knownAgent) return [knownAgent];
1955
1955
  const roots = [
@@ -1964,7 +1964,7 @@ function detectSkillsAgents(input) {
1964
1964
  return detected.length > 0 ? detected : ["*"];
1965
1965
  }
1966
1966
  function skillsStatePathForScope(baseUrl, scope, root) {
1967
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunk3BGGXEO5js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
1967
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkAUB3AW3Pjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
1968
1968
  }
1969
1969
  function buildSkillsPlan(input) {
1970
1970
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
@@ -2086,7 +2086,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2086
2086
  scope = normalizeScope(options.scope);
2087
2087
  root = scope === "local" ? resolveLocalRoot() : null;
2088
2088
  } catch (error) {
2089
- _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
2089
+ _chunkIPEE3DIVjs.printCommandEnvelope.call(void 0,
2090
2090
  {
2091
2091
  ok: false,
2092
2092
  status: "failed",
@@ -2098,22 +2098,22 @@ async function runSkillsCommand(options, dependencies = {}) {
2098
2098
  );
2099
2099
  return 2;
2100
2100
  }
2101
- const baseUrl = _chunk3BGGXEO5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
2101
+ const baseUrl = _chunkAUB3AW3Pjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
2102
2102
  const catalog = {
2103
2103
  skillNames: [...DEFAULT_SDK_SKILL_NAMES],
2104
- version: _chunk3BGGXEO5js.SDK_VERSION
2104
+ version: _chunkAUB3AW3Pjs.SDK_VERSION
2105
2105
  };
2106
2106
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
2107
2107
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
2108
2108
  if (options.dryRun) {
2109
- _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
2109
+ _chunkIPEE3DIVjs.printCommandEnvelope.call(void 0,
2110
2110
  { ok: true, status: "planned", dryRun: true, ...plan },
2111
2111
  { json: options.json }
2112
2112
  );
2113
2113
  return 0;
2114
2114
  }
2115
2115
  if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !hasFailedAutomaticSkillsSync(baseUrl, agents)) {
2116
- _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
2116
+ _chunkIPEE3DIVjs.printCommandEnvelope.call(void 0,
2117
2117
  {
2118
2118
  ok: true,
2119
2119
  status: "current",
@@ -2148,7 +2148,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2148
2148
  .../* @__PURE__ */ new Set([...plan.skillNames, ...LEGACY_SKILL_NAMES_TO_REMOVE])
2149
2149
  ];
2150
2150
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
2151
- _chunk3BGGXEO5js.ensureProjectPrivatePathsIgnored.call(void 0, root, [
2151
+ _chunkAUB3AW3Pjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
2152
2152
  ".deepline/",
2153
2153
  ...agentRoots.flatMap(
2154
2154
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -2166,7 +2166,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2166
2166
  } };
2167
2167
  } catch (error) {
2168
2168
  if (!(error instanceof SkillsStateUnavailableError)) throw error;
2169
- _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
2169
+ _chunkIPEE3DIVjs.printCommandEnvelope.call(void 0,
2170
2170
  {
2171
2171
  ok: false,
2172
2172
  status: "failed",
@@ -2182,7 +2182,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2182
2182
  return 5;
2183
2183
  }
2184
2184
  if (!lease) {
2185
- _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
2185
+ _chunkIPEE3DIVjs.printCommandEnvelope.call(void 0,
2186
2186
  {
2187
2187
  ok: false,
2188
2188
  status: "failed",
@@ -2228,7 +2228,7 @@ async function runSkillsInstallWithLease(input) {
2228
2228
  throw new Error("Could not install the current Deepline skills.");
2229
2229
  }
2230
2230
  } catch (error) {
2231
- _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
2231
+ _chunkIPEE3DIVjs.printCommandEnvelope.call(void 0,
2232
2232
  {
2233
2233
  ok: false,
2234
2234
  status: "failed",
@@ -2267,7 +2267,7 @@ async function runSkillsInstallWithLease(input) {
2267
2267
  {
2268
2268
  schemaVersion: 1,
2269
2269
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
2270
- cliVersion: _chunk3BGGXEO5js.SDK_VERSION,
2270
+ cliVersion: _chunkAUB3AW3Pjs.SDK_VERSION,
2271
2271
  scope,
2272
2272
  agents,
2273
2273
  skillsVersion: plan.version,
@@ -2282,7 +2282,7 @@ async function runSkillsInstallWithLease(input) {
2282
2282
  if (scope === "global") {
2283
2283
  clearFailedAutomaticSkillsSync(baseUrl, agents);
2284
2284
  }
2285
- _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
2285
+ _chunkIPEE3DIVjs.printCommandEnvelope.call(void 0,
2286
2286
  {
2287
2287
  ok: true,
2288
2288
  status: "complete",
@@ -2331,7 +2331,7 @@ Examples:
2331
2331
  ).action(async (options) => {
2332
2332
  const claim = _optionalChain([options, 'access', _88 => _88.claim, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]);
2333
2333
  if (!claim) {
2334
- _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0,
2334
+ _chunkIPEE3DIVjs.printCommandEnvelope.call(void 0,
2335
2335
  {
2336
2336
  ok: false,
2337
2337
  status: "failed",
@@ -2344,7 +2344,7 @@ Examples:
2344
2344
  process.exitCode = 2;
2345
2345
  return;
2346
2346
  }
2347
- await syncSdkSkillsIfNeeded(_chunk3BGGXEO5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
2347
+ await syncSdkSkillsIfNeeded(_chunkAUB3AW3Pjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
2348
2348
  mode: "inline",
2349
2349
  notices: "defer",
2350
2350
  claim
@@ -4,7 +4,7 @@
4
4
  var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
5
5
 
6
6
 
7
- var _chunkKYHNFT7Tjs = require('./chunk-KYHNFT7T.js');
7
+ var _chunkFSNKEEBAjs = require('./chunk-FSNKEEBA.js');
8
8
 
9
9
 
10
10
 
@@ -743,9 +743,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
743
743
  }
744
744
 
745
745
  // src/version.ts
746
- var SDK_VERSION = _chunkKYHNFT7Tjs.SDK_RELEASE.version;
747
- var SDK_API_MAJOR = _chunkKYHNFT7Tjs.SDK_RELEASE.contracts.api.currentMajor;
748
- var SDK_API_CONTRACT = _nullishCoalesce(_chunkKYHNFT7Tjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
746
+ var SDK_VERSION = _chunkFSNKEEBAjs.SDK_RELEASE.version;
747
+ var SDK_API_MAJOR = _chunkFSNKEEBAjs.SDK_RELEASE.contracts.api.currentMajor;
748
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkFSNKEEBAjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
749
749
 
750
750
  // src/agent-runtime.ts
751
751
 
@@ -1383,6 +1383,10 @@ var HttpClient = class {
1383
1383
  if (skillsVersion) {
1384
1384
  headers["X-Deepline-Skills-Version"] = skillsVersion;
1385
1385
  }
1386
+ const agentSessionId = agentSessionIdFromEnvironment();
1387
+ if (agentSessionId) {
1388
+ headers["X-Deepline-Agent-Session-Id"] = agentSessionId;
1389
+ }
1386
1390
  const playArtifactR2Prefix = typeof process !== "undefined" ? _optionalChain([process, 'access', _159 => _159.env, 'optionalAccess', _160 => _160.DEEPLINE_PLAY_ARTIFACT_R2_PREFIX]) : void 0;
1387
1391
  if (playArtifactR2Prefix) {
1388
1392
  headers["x-deepline-play-artifact-r2-prefix"] = playArtifactR2Prefix;
@@ -1,21 +1,24 @@
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 _chunkKM3JYG56js = require('./chunk-KM3JYG56.js');
3
+ var _chunkFM36CTMMjs = require('./chunk-FM36CTMM.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkDL5YQFZ6js = require('./chunk-DL5YQFZ6.js');
7
+ var _chunkIPEE3DIVjs = require('./chunk-IPEE3DIV.js');
8
8
 
9
9
 
10
10
 
11
- var _chunk3BGGXEO5js = require('./chunk-3BGGXEO5.js');
11
+ var _chunkAUB3AW3Pjs = require('./chunk-AUB3AW3P.js');
12
+
13
+ // src/cli/commands/search.ts
14
+ var _commander = require('commander');
12
15
 
13
16
  // src/cli/search-ref.ts
14
17
  var _fs = require('fs');
15
18
  var _path = require('path');
16
19
  var SEARCH_REF_TTL_MS = 15 * 6e4;
17
20
  function lastSearchPath() {
18
- return _path.join.call(void 0, _chunk3BGGXEO5js.sdkCliStateDirPath.call(void 0, _chunk3BGGXEO5js.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
21
+ return _path.join.call(void 0, _chunkAUB3AW3Pjs.sdkCliStateDirPath.call(void 0, _chunkAUB3AW3Pjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
19
22
  }
20
23
  function rememberSearchRef(searchRef) {
21
24
  try {
@@ -127,7 +130,7 @@ function searchRow(item) {
127
130
  }
128
131
  function renderSearchResults(result) {
129
132
  if (result.results.length === 0)
130
- return _chunkDL5YQFZ6js.renderCommandEnvelopeText.call(void 0, result);
133
+ return _chunkIPEE3DIVjs.renderCommandEnvelopeText.call(void 0, result);
131
134
  const rows = result.results.map(searchRow);
132
135
  const kinds = new Set(rows.map((row) => row.kind));
133
136
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -144,7 +147,7 @@ function renderSearchResults(result) {
144
147
  actions: _optionalChain([render, 'optionalAccess', _9 => _9.actions])
145
148
  };
146
149
  const followUps = _optionalChain([remaining, 'access', _10 => _10.sections, 'optionalAccess', _11 => _11.length]) || _optionalChain([remaining, 'access', _12 => _12.actions, 'optionalAccess', _13 => _13.length]) ? `
147
- ${_chunkDL5YQFZ6js.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
150
+ ${_chunkIPEE3DIVjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
148
151
  const notes = rows.flatMap(
149
152
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
150
153
  );
@@ -171,7 +174,7 @@ var SEARCH_TYPES = [
171
174
  "prebuilts",
172
175
  "custom"
173
176
  ];
174
- var USAGE = "Usage: deepline search [query] [--type <types>] [--categories <categories>] [--search_terms <terms>] [--json]";
177
+ var USAGE = "Usage: deepline search [task] [--type <types>] [--categories <categories>] [--search_terms <terms>] [--json]";
175
178
  function parseTypes(flag, raw) {
176
179
  const names = (_nullishCoalesce(raw, () => ( ""))).split(",").map((name) => name.trim().toLowerCase()).filter(Boolean);
177
180
  const unknown = names.filter(
@@ -193,14 +196,11 @@ function appendCsv(value, previous) {
193
196
  function addSearchOptions(command) {
194
197
  return command.option(
195
198
  "--categories <categories>",
196
- "Comma-separated tool categories; may be used without a query"
199
+ "Comma-separated tool categories; may be used without a task"
197
200
  ).option(
198
201
  "--search_terms <terms>",
199
- "Comma-separated structured search terms; may be used without a query"
200
- ).option("--search-terms <terms>", "Alias for --search_terms").option(
201
- "--task <sentence>",
202
- "What you are trying to accomplish: input you have -> result you need"
203
- ).option("--limit <count>", "Maximum ranked results to return (1-50)").option("--offset <count>", "Zero-based ranked result offset").option("--search-mode <mode>", "Ranked search mode: v1 or v2").option("--include-search-debug", "Include ranked search debug metadata").option("--json", "Emit JSON output instead of the readable default");
202
+ "Comma-separated structured search terms; may be used without a task"
203
+ ).option("--search-terms <terms>", "Alias for --search_terms").addOption(new (0, _commander.Option)("--task <sentence>").hideHelp()).option("--limit <count>", "Maximum ranked results to return (1-50)").option("--offset <count>", "Zero-based ranked result offset").option("--search-mode <mode>", "Ranked search mode: v1 or v2").option("--include-search-debug", "Include ranked search debug metadata").option("--json", "Emit JSON output instead of the readable default");
204
204
  }
205
205
  function pointAtDescribe(result) {
206
206
  const old = /`deepline (tools|plays) describe [^`]*`/;
@@ -224,7 +224,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
224
224
  console.error(USAGE);
225
225
  return 1;
226
226
  }
227
- const { search_ref: searchRef, ...result } = await new (0, _chunkKM3JYG56js.DeeplineClient)().search({
227
+ const { search_ref: searchRef, ...result } = await new (0, _chunkFM36CTMMjs.DeeplineClient)().search({
228
228
  query,
229
229
  types,
230
230
  exclude,
@@ -238,7 +238,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
238
238
  });
239
239
  if (searchRef) rememberSearchRef(searchRef);
240
240
  pointAtDescribe(result);
241
- _chunkDL5YQFZ6js.printCommandEnvelope.call(void 0, result, {
241
+ _chunkIPEE3DIVjs.printCommandEnvelope.call(void 0, result, {
242
242
  json: options.json === true,
243
243
  text: renderSearchResults(result)
244
244
  });
@@ -247,7 +247,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
247
247
  function registerDeprecatedSearchCommand(parent, typesFor) {
248
248
  const name = `deepline ${parent.name()} search`;
249
249
  addSearchOptions(
250
- parent.command("search [query]").description(`Deprecated. Use deepline search --type <types>.`).addHelpText(
250
+ parent.command("search [task]").description(`Deprecated. Use deepline search --type <types>.`).addHelpText(
251
251
  "after",
252
252
  `
253
253
  Notes:
@@ -255,7 +255,7 @@ Notes:
255
255
  matching --type and returns the same results envelope.
256
256
 
257
257
  Examples:
258
- deepline search email --type ${typesFor({}).join(",")}
258
+ deepline search "name and company domain -> work email" --type ${typesFor({}).join(",")}
259
259
  `
260
260
  ).option("--all", "Include plays your workspace created").option("--compact", "Accepted for compatibility; results are compact")
261
261
  ).action(async (query, options) => {
@@ -268,7 +268,7 @@ Examples:
268
268
  }
269
269
  function registerSearchCommand(program) {
270
270
  addSearchOptions(
271
- program.command("search [query]").description(
271
+ program.command("search [task]").description(
272
272
  "Search tools, monitors, and plays together, ranked by intent."
273
273
  ).addHelpText(
274
274
  "after",
@@ -287,22 +287,21 @@ Notes:
287
287
  Ranking uses a third-party AI relevance model. For plays your workspace
288
288
  created it is sent only the play name and description, never play code.
289
289
  Both flags may be repeated: --type tools --type prebuilts.
290
- Provide a query, or omit it only when --categories and/or --search_terms is
291
- supplied. Use --limit and --offset to page (limit 1-50, offset zero-based);
292
- JSON includes next_offset. Pass --task with one sentence on what you are
293
- trying to accomplish: the input you have and the result you need. It
294
- materially improves ranking, especially for short queries.
290
+ The task is one sentence on what you are trying to accomplish, written as
291
+ the input you have -> the result you need. Do not send keywords: the
292
+ sentence is what ranks the results. Omit it only when --categories and/or
293
+ --search_terms is supplied. Use --limit and --offset to page (limit 1-50,
294
+ offset zero-based); JSON includes next_offset.
295
295
  Search prints a readable result list by default, piped or not, and that is
296
296
  the recommended form. Pass --json only when a program parses the result.
297
297
  Readable prices are Deepline credits with a per-row unit. Estimates and
298
298
  observed historical charges are labelled; usage-based prices are not quotes.
299
299
 
300
300
  Examples:
301
- deepline search "find work email"
302
- deepline search "find work email" --type tools --limit 10
303
- deepline search "company to contacts" --type plays
304
- deepline search "enrich a company" --exclude monitors,custom
305
- deepline search linkedin --task "I have 200 LinkedIn profile URLs and need each person's current title and company"
301
+ deepline search "first name, last name and company domain -> verified work email"
302
+ deepline search "200 LinkedIn profile URLs -> each person's current title and company" --type tools --limit 10
303
+ deepline search "company domain -> contacts in sales leadership" --type plays
304
+ deepline search "company domain -> headcount, funding and industry" --exclude monitors,custom
306
305
  deepline search --type tools --categories company_search --search_terms "investors,funding"
307
306
  `
308
307
  ).option(
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-OJH4W52K.mjs";
4
+ } from "./chunk-2Y2QZJBT.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-G6TM2GK2.mjs";
7
+ } from "./chunk-W6LB26RC.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -15,7 +15,7 @@ import {
15
15
  RETAINED_PIPELINE_RECEIVERS_HEADER,
16
16
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
17
17
  resolveConfig
18
- } from "./chunk-G6TM2GK2.mjs";
18
+ } from "./chunk-W6LB26RC.mjs";
19
19
  import {
20
20
  PLAY_RUNTIME_BACKENDS,
21
21
  RAW_V2_TOOL_RESPONSE_CONTRACT,