deepline 0.3.363 → 0.3.365

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 (102) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +21 -0
  3. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +2 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/durability-store.ts +3 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/map-execution-frame.ts +39 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/map-row-outcome.ts +3 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +1 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/row-failure-summary.ts +139 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +14 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +26 -2
  11. package/dist/cli/{auth-4X5IPPQY.mjs → auth-4S26H44S.mjs} +4 -4
  12. package/dist/cli/auth-AXY27RN4.js +33 -0
  13. package/dist/cli/{billing-PG5LC7A4.mjs → billing-IMSQT3SR.mjs} +4 -4
  14. package/dist/cli/{billing-A7CKW7AN.js → billing-JD3SGKJN.js} +73 -73
  15. package/dist/cli/{chunk-FIZHV5SW.js → chunk-4LQ3MCZU.js} +62 -60
  16. package/dist/cli/{chunk-6453ELCN.mjs → chunk-5OMKEQGL.mjs} +1 -1
  17. package/dist/cli/{chunk-HK5L26A2.mjs → chunk-6RX64O34.mjs} +1 -1
  18. package/dist/cli/{chunk-BCUUOP2S.mjs → chunk-6ZZX3NVM.mjs} +2 -2
  19. package/dist/cli/{chunk-QQOQ7FCJ.js → chunk-7MF27ZQA.js} +2 -2
  20. package/dist/cli/{chunk-JXIA7B4Q.mjs → chunk-7MS7JCBB.mjs} +4 -2
  21. package/dist/cli/{chunk-2VHSNTGJ.js → chunk-E66FPPCT.js} +15 -15
  22. package/dist/cli/{chunk-BTPEPEJR.js → chunk-FTP4HYWY.js} +1 -1
  23. package/dist/cli/{chunk-SDCD7OH4.js → chunk-HHZIOAWI.js} +224 -224
  24. package/dist/cli/{chunk-GC5J26KZ.js → chunk-HNZNRS6I.js} +9 -9
  25. package/dist/cli/{chunk-VID352NP.js → chunk-L7CUNWVR.js} +4 -4
  26. package/dist/cli/{chunk-XB7NSDSX.js → chunk-LYLMIZIK.js} +26 -26
  27. package/dist/cli/{chunk-NWHXW4M4.mjs → chunk-NDQBGF6U.mjs} +1 -1
  28. package/dist/cli/{chunk-3LL7F4VL.mjs → chunk-NFBQAQRE.mjs} +5 -5
  29. package/dist/cli/{chunk-MC5IFDUJ.mjs → chunk-QGVNIGCS.mjs} +1 -1
  30. package/dist/cli/{chunk-KNQ3PNZ7.js → chunk-QNJZROLE.js} +50 -50
  31. package/dist/cli/{chunk-IYRMVSNR.mjs → chunk-QTBWSCF4.mjs} +3 -3
  32. package/dist/cli/{chunk-AG7AXHHA.js → chunk-UIZZ6CC6.js} +8 -8
  33. package/dist/cli/{chunk-DJDA57VF.mjs → chunk-VHWW76SC.mjs} +6 -6
  34. package/dist/cli/{chunk-DZBDG6V7.js → chunk-VZRENGJ2.js} +8 -8
  35. package/dist/cli/{chunk-NVQLHOXI.mjs → chunk-WJ4IGJR4.mjs} +4 -4
  36. package/dist/cli/{chunk-VTKCTJWG.js → chunk-XA7MAC3G.js} +6 -6
  37. package/dist/cli/{chunk-OM3GDDKW.mjs → chunk-XH7A4IWD.mjs} +2 -2
  38. package/dist/cli/{chunk-6TSA3G3I.js → chunk-XPYEE2AU.js} +45 -45
  39. package/dist/cli/{chunk-TVMGRV4A.mjs → chunk-YKRINWA2.mjs} +1 -1
  40. package/dist/cli/{chunk-CLXZXGJD.mjs → chunk-YME4BTRK.mjs} +2 -2
  41. package/dist/cli/client-OBQBVVUE.js +20 -0
  42. package/dist/cli/{client-FCVDAPRF.mjs → client-TIT2YEEY.mjs} +3 -3
  43. package/dist/cli/{csv-5JHK77KT.mjs → csv-64W5LJIT.mjs} +3 -3
  44. package/dist/cli/{csv-6LOALPZU.js → csv-XYARLBKW.js} +12 -12
  45. package/dist/cli/{db-3MOAOVCW.js → db-52N7JAVE.js} +29 -29
  46. package/dist/cli/{db-MRTQDSJB.mjs → db-BGC5QKV6.mjs} +4 -4
  47. package/dist/cli/{describe-ZO2BH3V2.mjs → describe-3ZSRFCHD.mjs} +8 -8
  48. package/dist/cli/{describe-VOU44BDZ.js → describe-DPDNIXVH.js} +15 -15
  49. package/dist/cli/{executions-H7GY5KI3.js → executions-WVIUSOSA.js} +6 -6
  50. package/dist/cli/{executions-HOOTTSXV.mjs → executions-ZIMU47UG.mjs} +4 -4
  51. package/dist/cli/{feedback-4U7FFIS5.mjs → feedback-7Z2PUW4R.mjs} +3 -3
  52. package/dist/cli/{feedback-SH4V2B65.js → feedback-VS5A3KAR.js} +7 -7
  53. package/dist/cli/{git-QKEH2SFT.mjs → git-JTIF7PN4.mjs} +4 -4
  54. package/dist/cli/git-QJYLQED2.js +23 -0
  55. package/dist/cli/index.js +82 -82
  56. package/dist/cli/index.mjs +32 -32
  57. package/dist/cli/{legacy-noops-AWQ2T2C6.mjs → legacy-noops-7IR7H7N4.mjs} +4 -4
  58. package/dist/cli/{legacy-noops-UWXUHHDX.js → legacy-noops-B2WDO6FW.js} +7 -7
  59. package/dist/cli/{monitors-JEQ5YYLX.mjs → monitors-LWBSJ3OX.mjs} +4 -4
  60. package/dist/cli/{monitors-4MAKL2VN.js → monitors-OESDIJVL.js} +85 -85
  61. package/dist/cli/{org-C7N5OMSW.js → org-ENJDFLCZ.js} +157 -60
  62. package/dist/cli/{org-2C74R6WM.mjs → org-T7OXEG5L.mjs} +101 -4
  63. package/dist/cli/{play-LN7URHHN.mjs → play-FOB5OCJ3.mjs} +7 -7
  64. package/dist/cli/play-Z6SXXNP5.js +153 -0
  65. package/dist/cli/{providers-LVG7PESP.js → providers-3OGXEWHS.js} +7 -7
  66. package/dist/cli/{providers-2HOUYSJM.mjs → providers-TU3QNHIS.mjs} +4 -4
  67. package/dist/cli/{quickstart-56TVYIZW.js → quickstart-DM4UGC7C.js} +5 -5
  68. package/dist/cli/{quickstart-DYU6XFQF.mjs → quickstart-VSVPWMNU.mjs} +3 -3
  69. package/dist/cli/search-26IGFUMM.js +26 -0
  70. package/dist/cli/{search-HF7PKAGT.mjs → search-CBHKG7YA.mjs} +5 -5
  71. package/dist/cli/{secrets-SIILJU3C.mjs → secrets-6ZQF4M27.mjs} +4 -4
  72. package/dist/cli/{secrets-P5CWA6ZL.js → secrets-YTN4ZA4T.js} +13 -13
  73. package/dist/cli/{sessions-TC3IN56Y.mjs → sessions-BPRYFAWJ.mjs} +4 -4
  74. package/dist/cli/{sessions-QHWGNJ5R.js → sessions-ZO7IOGUF.js} +5 -5
  75. package/dist/cli/{settings-F6HEQVKL.js → settings-N65YB4QA.js} +74 -74
  76. package/dist/cli/{settings-HUII4D54.mjs → settings-WYCYXUM7.mjs} +7 -7
  77. package/dist/cli/{setup-EDQQAIZ3.mjs → setup-KLEY2DJT.mjs} +6 -6
  78. package/dist/cli/{setup-62IL6VFZ.js → setup-RW4BMAKA.js} +41 -41
  79. package/dist/cli/{skills-KY4MRCQP.mjs → skills-DFXLS3KI.mjs} +4 -4
  80. package/dist/cli/skills-XTGVE76M.js +28 -0
  81. package/dist/cli/tools-AK4XQBQJ.js +40 -0
  82. package/dist/cli/{tools-7K3KPDVB.mjs → tools-UDSCRFZN.mjs} +6 -6
  83. package/dist/cli/{update-T2BM6XEI.mjs → update-3MKDIO3Y.mjs} +6 -6
  84. package/dist/cli/update-NIIEFTPX.js +28 -0
  85. package/dist/cli/{workflow-ZSAF2S66.js → workflow-64Y2B5YZ.js} +15 -15
  86. package/dist/cli/{workflow-ONMVUYGO.mjs → workflow-XNYXVEVF.mjs} +5 -5
  87. package/dist/index.js +6 -6
  88. package/dist/index.mjs +3 -3
  89. package/dist/install-integrity.json +75 -74
  90. package/dist/release.d.mts +1 -1
  91. package/dist/release.d.ts +1 -1
  92. package/dist/release.js +2 -2
  93. package/dist/release.mjs +1 -1
  94. package/package.json +1 -1
  95. package/dist/cli/auth-IIY7PILQ.js +0 -33
  96. package/dist/cli/client-FUDC2ULP.js +0 -20
  97. package/dist/cli/git-IW6D5HOP.js +0 -23
  98. package/dist/cli/play-J3W7VDAZ.js +0 -153
  99. package/dist/cli/search-YNNBIM73.js +0 -26
  100. package/dist/cli/skills-3PA4O6CP.js +0 -28
  101. package/dist/cli/tools-U6SM7MXM.js +0 -40
  102. package/dist/cli/update-7XMTB6YL.js +0 -28
@@ -3,7 +3,7 @@
3
3
  var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
4
4
 
5
5
 
6
- var _chunkVTKCTJWGjs = require('./chunk-VTKCTJWG.js');
6
+ var _chunkXA7MAC3Gjs = require('./chunk-XA7MAC3G.js');
7
7
 
8
8
 
9
9
 
@@ -22,7 +22,7 @@ var _chunkVTKCTJWGjs = require('./chunk-VTKCTJWG.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkVID352NPjs = require('./chunk-VID352NP.js');
25
+ var _chunkL7CUNWVRjs = require('./chunk-L7CUNWVR.js');
26
26
 
27
27
 
28
28
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -87,8 +87,10 @@ var DEFAULT_V1_SKILL_NAMES = [
87
87
  // LEGACY_SKILL_NAMES_TO_REMOVE once those CLIs are out of the field.
88
88
  "deepline-feedback",
89
89
  "deepline-gtm",
90
+ "deepline-start",
90
91
  "deepline-plays",
91
92
  "deepline-quickstart",
93
+ "deepline-research",
92
94
  "deepline-scoring",
93
95
  "find-qualified-titles",
94
96
  "linkedin-url-lookup",
@@ -121,7 +123,7 @@ function skillsSourceUrl(baseUrl) {
121
123
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
122
124
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
123
125
  const [firstSkillName, ...extraSkillNames] = skillNames;
124
- const agents = _nullishCoalesce(options.agents, () => ( _chunkVID352NPjs.DEFAULT_SKILL_AGENTS));
126
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkL7CUNWVRjs.DEFAULT_SKILL_AGENTS));
125
127
  const values = {
126
128
  skills_index_url: skillsIndexUrl(baseUrl),
127
129
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -197,7 +199,7 @@ function shouldSkipCompatibilityCheck() {
197
199
  return value === "1" || value === "true" || value === "yes";
198
200
  }
199
201
  function sdkCompatibilityCachePath(baseUrl, homeDir = _os.homedir.call(void 0, )) {
200
- return _path.join.call(void 0, _chunkVID352NPjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
202
+ return _path.join.call(void 0, _chunkL7CUNWVRjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
201
203
  }
202
204
  function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
203
205
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -205,9 +207,9 @@ function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
205
207
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
206
208
  return JSON.stringify({
207
209
  baseUrl: baseUrl.replace(/\/$/, ""),
208
- version: _chunkVID352NPjs.SDK_VERSION,
209
- apiContract: _chunkVID352NPjs.SDK_API_CONTRACT,
210
- apiMajor: _chunkVID352NPjs.SDK_API_MAJOR,
210
+ version: _chunkL7CUNWVRjs.SDK_VERSION,
211
+ apiContract: _chunkL7CUNWVRjs.SDK_API_CONTRACT,
212
+ apiMajor: _chunkL7CUNWVRjs.SDK_API_MAJOR,
211
213
  command: _optionalChain([command, 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]) || null,
212
214
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
213
215
  });
@@ -215,8 +217,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
215
217
  function legacyCompatibilityCacheKey(baseUrl, command) {
216
218
  return JSON.stringify({
217
219
  baseUrl: baseUrl.replace(/\/$/, ""),
218
- version: _chunkVID352NPjs.SDK_VERSION,
219
- apiContract: _chunkVID352NPjs.SDK_API_CONTRACT,
220
+ version: _chunkL7CUNWVRjs.SDK_VERSION,
221
+ apiContract: _chunkL7CUNWVRjs.SDK_API_CONTRACT,
220
222
  command: _optionalChain([command, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || null
221
223
  });
222
224
  }
@@ -309,7 +311,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
309
311
  );
310
312
  try {
311
313
  const url = new URL("/api/v2/sdk/compat", baseUrl);
312
- url.searchParams.set("version", _chunkVID352NPjs.SDK_VERSION);
314
+ url.searchParams.set("version", _chunkL7CUNWVRjs.SDK_VERSION);
313
315
  if (_optionalChain([options, 'access', _19 => _19.command, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()])) {
314
316
  url.searchParams.set("command", options.command.trim());
315
317
  }
@@ -322,13 +324,13 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
322
324
  const response = await fetch(url, {
323
325
  method: "GET",
324
326
  headers: {
325
- ..._chunkVID352NPjs.deploymentProtectionHeaders.call(void 0, ),
326
- "User-Agent": `deepline-ts-sdk/${_chunkVID352NPjs.SDK_VERSION}`,
327
- "X-Deepline-SDK-Version": _chunkVID352NPjs.SDK_VERSION,
328
- "X-Deepline-API-Major": String(_chunkVID352NPjs.SDK_API_MAJOR),
329
- "X-Deepline-API-Contract": _chunkVID352NPjs.SDK_API_CONTRACT,
327
+ ..._chunkL7CUNWVRjs.deploymentProtectionHeaders.call(void 0, ),
328
+ "User-Agent": `deepline-ts-sdk/${_chunkL7CUNWVRjs.SDK_VERSION}`,
329
+ "X-Deepline-SDK-Version": _chunkL7CUNWVRjs.SDK_VERSION,
330
+ "X-Deepline-API-Major": String(_chunkL7CUNWVRjs.SDK_API_MAJOR),
331
+ "X-Deepline-API-Contract": _chunkL7CUNWVRjs.SDK_API_CONTRACT,
330
332
  "X-Deepline-CLI-Update-Preferences": "1",
331
- ...options.catalog ? { Authorization: `Bearer ${_chunkVID352NPjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
333
+ ...options.catalog ? { Authorization: `Bearer ${_chunkL7CUNWVRjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
332
334
  },
333
335
  signal: controller.signal
334
336
  });
@@ -581,7 +583,7 @@ function buildEnvironmentContext() {
581
583
  node_version: process.version,
582
584
  runtime: "Node.js",
583
585
  hostname: _os.hostname.call(void 0, ),
584
- agent_runtime: _chunkVID352NPjs.detectAgentRuntime.call(void 0, )
586
+ agent_runtime: _chunkL7CUNWVRjs.detectAgentRuntime.call(void 0, )
585
587
  };
586
588
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
587
589
  const normalized = _optionalChain([process, 'access', _32 => _32.env, 'access', _33 => _33[key], 'optionalAccess', _34 => _34.trim, 'call', _35 => _35()]);
@@ -605,12 +607,12 @@ function failureReportHeaders(apiKey) {
605
607
  return {
606
608
  Authorization: `Bearer ${apiKey}`,
607
609
  "Content-Type": "application/json",
608
- "User-Agent": `deepline-ts-sdk/${_chunkVID352NPjs.SDK_VERSION}`,
610
+ "User-Agent": `deepline-ts-sdk/${_chunkL7CUNWVRjs.SDK_VERSION}`,
609
611
  "X-Deepline-Client-Family": "sdk",
610
612
  "X-Deepline-CLI-Family": "sdk",
611
- "X-Deepline-Agent-Runtime": _chunkVID352NPjs.detectAgentRuntime.call(void 0, ),
612
- "X-Deepline-CLI-Version": _chunkVID352NPjs.SDK_VERSION,
613
- "X-Deepline-SDK-Version": _chunkVID352NPjs.SDK_VERSION
613
+ "X-Deepline-Agent-Runtime": _chunkL7CUNWVRjs.detectAgentRuntime.call(void 0, ),
614
+ "X-Deepline-CLI-Version": _chunkL7CUNWVRjs.SDK_VERSION,
615
+ "X-Deepline-SDK-Version": _chunkL7CUNWVRjs.SDK_VERSION
614
616
  };
615
617
  }
616
618
  async function postFailureReport(input) {
@@ -638,7 +640,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
638
640
  if (isFailureReportingDisabled()) return false;
639
641
  let apiKey = "";
640
642
  try {
641
- apiKey = _chunkVID352NPjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
643
+ apiKey = _chunkL7CUNWVRjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
642
644
  } catch (e7) {
643
645
  return false;
644
646
  }
@@ -665,7 +667,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
665
667
  failure_code: failureCode2,
666
668
  failure_stage: failureStage,
667
669
  error_body: "Automatic Deepline skills installation failed.",
668
- cli_version: _chunkVID352NPjs.SDK_VERSION,
670
+ cli_version: _chunkL7CUNWVRjs.SDK_VERSION,
669
671
  context: {
670
672
  environment: buildEnvironmentContext(),
671
673
  skills_sync: {
@@ -785,7 +787,7 @@ function buildFailureReport(input) {
785
787
  failure_kind: failureKind,
786
788
  failure_code: code,
787
789
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
788
- cli_version: _chunkVID352NPjs.SDK_VERSION,
790
+ cli_version: _chunkL7CUNWVRjs.SDK_VERSION,
789
791
  context: {
790
792
  base_url: redactFailureText(input.baseUrl, 400),
791
793
  command_summary: sanitizeCommand(input.argv),
@@ -805,8 +807,8 @@ async function maybeReportSdkCliFailure(input) {
805
807
  if (isServerLoggedPlayRunStartFailure(input)) return false;
806
808
  const exitCode = resolvedExitCode(input);
807
809
  if (!shouldReport({ exitCode, error: input.error })) return false;
808
- const baseUrl = _chunkVID352NPjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
809
- const apiKey = _chunkVID352NPjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
810
+ const baseUrl = _chunkL7CUNWVRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
811
+ const apiKey = _chunkL7CUNWVRjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
810
812
  if (!apiKey) return false;
811
813
  return postFailureReport({
812
814
  baseUrl,
@@ -827,25 +829,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
827
829
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
828
830
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
829
831
  function shouldSkipSkillsSync() {
830
- if (_chunkVID352NPjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
832
+ if (_chunkL7CUNWVRjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
831
833
  return true;
832
834
  }
833
835
  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()]);
834
836
  return value === "1" || value === "true" || value === "yes" || value === "on";
835
837
  }
836
838
  function unavailableSkillsNoticePath(baseUrl) {
837
- return _path.join.call(void 0, _chunkVID352NPjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
839
+ return _path.join.call(void 0, _chunkL7CUNWVRjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
838
840
  }
839
841
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
840
842
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
841
- var agentLeaseSegment = _chunkVID352NPjs.skillsAgentPathSegment;
843
+ var agentLeaseSegment = _chunkL7CUNWVRjs.skillsAgentPathSegment;
842
844
  function sortedLeaseAgents(agents) {
843
- const expanded = agents.includes("*") ? [...agents, ..._chunkVID352NPjs.KNOWN_SKILL_AGENTS] : agents;
845
+ const expanded = agents.includes("*") ? [...agents, ..._chunkL7CUNWVRjs.KNOWN_SKILL_AGENTS] : agents;
844
846
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
845
847
  }
846
848
  function inProgressSkillsSyncPath(baseUrl, agent) {
847
849
  return _path.join.call(void 0,
848
- _chunkVID352NPjs.sdkCliStateDirPath.call(void 0, baseUrl),
850
+ _chunkL7CUNWVRjs.sdkCliStateDirPath.call(void 0, baseUrl),
849
851
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
850
852
  );
851
853
  }
@@ -1004,7 +1006,7 @@ var SkillsStateUnavailableError = class extends Error {
1004
1006
  constructor(baseUrl, error) {
1005
1007
  const detail = error instanceof Error ? error.message : String(error);
1006
1008
  super(
1007
- `Could not save skills state in ${_chunkVID352NPjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1009
+ `Could not save skills state in ${_chunkL7CUNWVRjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1008
1010
  );
1009
1011
  this.name = "SkillsStateUnavailableError";
1010
1012
  }
@@ -1089,7 +1091,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
1089
1091
  }
1090
1092
  function deferredSkillsNoticePath(baseUrl, agents) {
1091
1093
  return _path.join.call(void 0,
1092
- _chunkVID352NPjs.sdkCliStateDirPath.call(void 0, baseUrl),
1094
+ _chunkL7CUNWVRjs.sdkCliStateDirPath.call(void 0, baseUrl),
1093
1095
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
1094
1096
  );
1095
1097
  }
@@ -1123,8 +1125,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
1123
1125
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
1124
1126
  }
1125
1127
  function flushDeferredSkillsSyncNotices(baseUrl) {
1126
- if (shouldSkipSkillsSync() || _chunkVID352NPjs.hasActivePluginSkills.call(void 0, )) return;
1127
- const agents = _chunkVID352NPjs.resolveAutoSyncSkillAgents.call(void 0, );
1128
+ if (shouldSkipSkillsSync() || _chunkL7CUNWVRjs.hasActivePluginSkills.call(void 0, )) return;
1129
+ const agents = _chunkL7CUNWVRjs.resolveAutoSyncSkillAgents.call(void 0, );
1128
1130
  if (agents.length === 0) return;
1129
1131
  flushDeferredSkillsNotices(baseUrl, agents);
1130
1132
  }
@@ -1140,7 +1142,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
1140
1142
  }
1141
1143
  function failedSkillsSyncPath(baseUrl, agents) {
1142
1144
  return _path.join.call(void 0,
1143
- _chunkVID352NPjs.sdkCliStateDirPath.call(void 0, baseUrl),
1145
+ _chunkL7CUNWVRjs.sdkCliStateDirPath.call(void 0, baseUrl),
1144
1146
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
1145
1147
  );
1146
1148
  }
@@ -1169,7 +1171,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
1169
1171
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
1170
1172
  writeMarkedSkillsSyncVersion(path, remoteVersion);
1171
1173
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
1172
- const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkVID352NPjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1174
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkL7CUNWVRjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1173
1175
  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.`;
1174
1176
  notice(
1175
1177
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -1257,7 +1259,7 @@ function buildSdkSkillNames(v1SkillNames2) {
1257
1259
  return sortedUniqueSkillNames(v1SkillNames2);
1258
1260
  }
1259
1261
  function isDefaultAgentSet(agents) {
1260
- return agents.length === _chunkVID352NPjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkVID352NPjs.DEFAULT_SKILL_AGENTS[index]);
1262
+ return agents.length === _chunkL7CUNWVRjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkL7CUNWVRjs.DEFAULT_SKILL_AGENTS[index]);
1261
1263
  }
1262
1264
  function safeSkillFilePath(value) {
1263
1265
  if (typeof value !== "string" || !value) return false;
@@ -1454,7 +1456,7 @@ function probeInstallers(timeoutMs) {
1454
1456
  }
1455
1457
  function noInstallerProbePath(baseUrl) {
1456
1458
  return _path.join.call(void 0,
1457
- _chunkVID352NPjs.sdkCliStateDirPath.call(void 0, baseUrl),
1459
+ _chunkL7CUNWVRjs.sdkCliStateDirPath.call(void 0, baseUrl),
1458
1460
  "skills-sync-no-installer-unknown.json"
1459
1461
  );
1460
1462
  }
@@ -1533,7 +1535,7 @@ function temporarySkillsSyncSkipCommand() {
1533
1535
  function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
1534
1536
  return resolveShellSpawn(install.command, install.args, platform2);
1535
1537
  }
1536
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkVID352NPjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1538
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkL7CUNWVRjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1537
1539
  const commands = [];
1538
1540
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1539
1541
  if (probes.bunx === "available") {
@@ -1685,11 +1687,11 @@ function writeSdkSkillsStatusLine(line) {
1685
1687
  }
1686
1688
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1687
1689
  if (shouldSkipSkillsSync()) return;
1688
- const usingPluginSkills = _chunkVID352NPjs.hasActivePluginSkills.call(void 0, );
1690
+ const usingPluginSkills = _chunkL7CUNWVRjs.hasActivePluginSkills.call(void 0, );
1689
1691
  if (usingPluginSkills) {
1690
1692
  return;
1691
1693
  }
1692
- const agents = _chunkVID352NPjs.resolveAutoSyncSkillAgents.call(void 0, );
1694
+ const agents = _chunkL7CUNWVRjs.resolveAutoSyncSkillAgents.call(void 0, );
1693
1695
  if (options.mode === "detached" && agents.length > 0) {
1694
1696
  flushDeferredSkillsNotices(baseUrl, agents);
1695
1697
  }
@@ -1717,7 +1719,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1717
1719
  return;
1718
1720
  }
1719
1721
  try {
1720
- const localVersion = _chunkVID352NPjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1722
+ const localVersion = _chunkL7CUNWVRjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1721
1723
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1722
1724
  needsUpdate: options.update.needs_update,
1723
1725
  remoteVersion: options.update.remote.version
@@ -1883,7 +1885,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1883
1885
  }
1884
1886
  }
1885
1887
  runLegacySkillsCleanup(agents);
1886
- if (!_chunkVID352NPjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1888
+ if (!_chunkL7CUNWVRjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1887
1889
  notice(
1888
1890
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1889
1891
  );
@@ -1942,7 +1944,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
1942
1944
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
1943
1945
  }
1944
1946
  function resolveLocalRoot() {
1945
- const target = _chunkVID352NPjs.resolveProjectPinTarget.call(void 0, );
1947
+ const target = _chunkL7CUNWVRjs.resolveProjectPinTarget.call(void 0, );
1946
1948
  if (!target.ok) {
1947
1949
  throw new Error(
1948
1950
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -1953,7 +1955,7 @@ function resolveLocalRoot() {
1953
1955
  return target.dir;
1954
1956
  }
1955
1957
  function detectSkillsAgents(input) {
1956
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunkVID352NPjs.detectAgentRuntime.call(void 0, )));
1958
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkL7CUNWVRjs.detectAgentRuntime.call(void 0, )));
1957
1959
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
1958
1960
  if (knownAgent) return [knownAgent];
1959
1961
  const roots = [
@@ -1968,7 +1970,7 @@ function detectSkillsAgents(input) {
1968
1970
  return detected.length > 0 ? detected : ["*"];
1969
1971
  }
1970
1972
  function skillsStatePathForScope(baseUrl, scope, root) {
1971
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkVID352NPjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
1973
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkL7CUNWVRjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
1972
1974
  }
1973
1975
  function buildSkillsPlan(input) {
1974
1976
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
@@ -2090,7 +2092,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2090
2092
  scope = normalizeScope(options.scope);
2091
2093
  root = scope === "local" ? resolveLocalRoot() : null;
2092
2094
  } catch (error) {
2093
- _chunkVTKCTJWGjs.printCommandEnvelope.call(void 0,
2095
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
2094
2096
  {
2095
2097
  ok: false,
2096
2098
  status: "failed",
@@ -2102,22 +2104,22 @@ async function runSkillsCommand(options, dependencies = {}) {
2102
2104
  );
2103
2105
  return 2;
2104
2106
  }
2105
- const baseUrl = _chunkVID352NPjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
2107
+ const baseUrl = _chunkL7CUNWVRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
2106
2108
  const catalog = {
2107
2109
  skillNames: [...DEFAULT_SDK_SKILL_NAMES],
2108
- version: _chunkVID352NPjs.SDK_VERSION
2110
+ version: _chunkL7CUNWVRjs.SDK_VERSION
2109
2111
  };
2110
2112
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
2111
2113
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
2112
2114
  if (options.dryRun) {
2113
- _chunkVTKCTJWGjs.printCommandEnvelope.call(void 0,
2115
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
2114
2116
  { ok: true, status: "planned", dryRun: true, ...plan },
2115
2117
  { json: options.json }
2116
2118
  );
2117
2119
  return 0;
2118
2120
  }
2119
2121
  if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !hasFailedAutomaticSkillsSync(baseUrl, agents)) {
2120
- _chunkVTKCTJWGjs.printCommandEnvelope.call(void 0,
2122
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
2121
2123
  {
2122
2124
  ok: true,
2123
2125
  status: "current",
@@ -2152,7 +2154,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2152
2154
  .../* @__PURE__ */ new Set([...plan.skillNames, ...LEGACY_SKILL_NAMES_TO_REMOVE])
2153
2155
  ];
2154
2156
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
2155
- _chunkVID352NPjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
2157
+ _chunkL7CUNWVRjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
2156
2158
  ".deepline/",
2157
2159
  ...agentRoots.flatMap(
2158
2160
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -2170,7 +2172,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2170
2172
  } };
2171
2173
  } catch (error) {
2172
2174
  if (!(error instanceof SkillsStateUnavailableError)) throw error;
2173
- _chunkVTKCTJWGjs.printCommandEnvelope.call(void 0,
2175
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
2174
2176
  {
2175
2177
  ok: false,
2176
2178
  status: "failed",
@@ -2186,7 +2188,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2186
2188
  return 5;
2187
2189
  }
2188
2190
  if (!lease) {
2189
- _chunkVTKCTJWGjs.printCommandEnvelope.call(void 0,
2191
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
2190
2192
  {
2191
2193
  ok: false,
2192
2194
  status: "failed",
@@ -2232,7 +2234,7 @@ async function runSkillsInstallWithLease(input) {
2232
2234
  throw new Error("Could not install the current Deepline skills.");
2233
2235
  }
2234
2236
  } catch (error) {
2235
- _chunkVTKCTJWGjs.printCommandEnvelope.call(void 0,
2237
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
2236
2238
  {
2237
2239
  ok: false,
2238
2240
  status: "failed",
@@ -2271,7 +2273,7 @@ async function runSkillsInstallWithLease(input) {
2271
2273
  {
2272
2274
  schemaVersion: 1,
2273
2275
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
2274
- cliVersion: _chunkVID352NPjs.SDK_VERSION,
2276
+ cliVersion: _chunkL7CUNWVRjs.SDK_VERSION,
2275
2277
  scope,
2276
2278
  agents,
2277
2279
  skillsVersion: plan.version,
@@ -2286,7 +2288,7 @@ async function runSkillsInstallWithLease(input) {
2286
2288
  if (scope === "global") {
2287
2289
  clearFailedAutomaticSkillsSync(baseUrl, agents);
2288
2290
  }
2289
- _chunkVTKCTJWGjs.printCommandEnvelope.call(void 0,
2291
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
2290
2292
  {
2291
2293
  ok: true,
2292
2294
  status: "complete",
@@ -2335,7 +2337,7 @@ Examples:
2335
2337
  ).action(async (options) => {
2336
2338
  const claim = _optionalChain([options, 'access', _88 => _88.claim, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]);
2337
2339
  if (!claim) {
2338
- _chunkVTKCTJWGjs.printCommandEnvelope.call(void 0,
2340
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
2339
2341
  {
2340
2342
  ok: false,
2341
2343
  status: "failed",
@@ -2348,7 +2350,7 @@ Examples:
2348
2350
  process.exitCode = 2;
2349
2351
  return;
2350
2352
  }
2351
- await syncSdkSkillsIfNeeded(_chunkVID352NPjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
2353
+ await syncSdkSkillsIfNeeded(_chunkL7CUNWVRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
2352
2354
  mode: "inline",
2353
2355
  notices: "defer",
2354
2356
  claim
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-NXGCO4JB.mjs";
15
15
  import {
16
16
  SDK_RELEASE
17
- } from "./chunk-TVMGRV4A.mjs";
17
+ } from "./chunk-YKRINWA2.mjs";
18
18
 
19
19
  // src/errors.ts
20
20
  var CustomerDbQueryOutcomeUnknownError = class extends DeeplineError {
@@ -21,7 +21,7 @@ import {
21
21
  RETAINED_PIPELINE_RECEIVERS_HEADER,
22
22
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
23
23
  resolveConfig
24
- } from "./chunk-6453ELCN.mjs";
24
+ } from "./chunk-5OMKEQGL.mjs";
25
25
  import {
26
26
  DeeplineError,
27
27
  TOOL_EXECUTION_ERROR_SCHEMA_HEADER,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-NWHXW4M4.mjs";
4
+ } from "./chunk-NDQBGF6U.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-6453ELCN.mjs";
7
+ } from "./chunk-5OMKEQGL.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -1,6 +1,6 @@
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 _chunkFIZHV5SWjs = require('./chunk-FIZHV5SW.js');
3
+ var _chunk4LQ3MCZUjs = require('./chunk-4LQ3MCZU.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkFIZHV5SWjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunk4LQ3MCZUjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-GAMFK2ZP.mjs";
4
4
  import {
5
5
  printCommandEnvelope
6
- } from "./chunk-NWHXW4M4.mjs";
6
+ } from "./chunk-NDQBGF6U.mjs";
7
7
  import {
8
8
  DEFAULT_SKILL_AGENTS,
9
9
  KNOWN_SKILL_AGENTS,
@@ -22,7 +22,7 @@ import {
22
22
  sdkCliStateDirPath,
23
23
  skillsAgentPathSegment,
24
24
  writeSdkSkillsLocalVersion
25
- } from "./chunk-6453ELCN.mjs";
25
+ } from "./chunk-5OMKEQGL.mjs";
26
26
  import {
27
27
  DeeplineError
28
28
  } from "./chunk-NXGCO4JB.mjs";
@@ -87,8 +87,10 @@ var DEFAULT_V1_SKILL_NAMES = [
87
87
  // LEGACY_SKILL_NAMES_TO_REMOVE once those CLIs are out of the field.
88
88
  "deepline-feedback",
89
89
  "deepline-gtm",
90
+ "deepline-start",
90
91
  "deepline-plays",
91
92
  "deepline-quickstart",
93
+ "deepline-research",
92
94
  "deepline-scoring",
93
95
  "find-qualified-titles",
94
96
  "linkedin-url-lookup",
@@ -1,17 +1,17 @@
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 _chunkQQOQ7FCJjs = require('./chunk-QQOQ7FCJ.js');
4
+ var _chunk7MF27ZQAjs = require('./chunk-7MF27ZQA.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkFIZHV5SWjs = require('./chunk-FIZHV5SW.js');
8
+ var _chunk4LQ3MCZUjs = require('./chunk-4LQ3MCZU.js');
9
9
 
10
10
 
11
- var _chunkVTKCTJWGjs = require('./chunk-VTKCTJWG.js');
11
+ var _chunkXA7MAC3Gjs = require('./chunk-XA7MAC3G.js');
12
12
 
13
13
 
14
- var _chunkVID352NPjs = require('./chunk-VID352NP.js');
14
+ var _chunkL7CUNWVRjs = require('./chunk-L7CUNWVR.js');
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  var _child_process = require('child_process');
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
489
489
  }
490
490
  function resolveNpmGlobalPrefix(env) {
491
491
  try {
492
- const plan = _chunkFIZHV5SWjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
492
+ const plan = _chunk4LQ3MCZUjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
493
493
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
494
494
  encoding: "utf8",
495
495
  env,
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
545
545
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
546
546
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
547
547
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
548
- const npmVersion = options.npmVersion === void 0 ? _chunkQQOQ7FCJjs.readNpmVersion.call(void 0, env) : options.npmVersion;
549
- const npmGlobalInstallFlags = _chunkQQOQ7FCJjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
548
+ const npmVersion = options.npmVersion === void 0 ? _chunk7MF27ZQAjs.readNpmVersion.call(void 0, env) : options.npmVersion;
549
+ const npmGlobalInstallFlags = _chunk7MF27ZQAjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
550
550
  const args = installPrefix ? [
551
551
  "install",
552
552
  "-g",
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
556
556
  packageSpec
557
557
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
558
558
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
559
- _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkVID352NPjs.autoDetectBaseUrl.call(void 0, )
559
+ _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkL7CUNWVRjs.autoDetectBaseUrl.call(void 0, )
560
560
  );
561
561
  return {
562
562
  kind: "npm-global",
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
703
703
  function runCommand(command, args, env = process.env) {
704
704
  return new Promise((resolveResult) => {
705
705
  let output = "";
706
- const plan = _chunkFIZHV5SWjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
706
+ const plan = _chunk4LQ3MCZUjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
707
707
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
708
708
  stdio: ["inherit", "pipe", "pipe"],
709
709
  shell: plan.shell,
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1079
1079
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1080
1080
  }
1081
1081
  async function runUpdateCommand(options, dependencies = {}) {
1082
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkVID352NPjs.autoDetectBaseUrl));
1082
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkL7CUNWVRjs.autoDetectBaseUrl));
1083
1083
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1084
1084
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1085
1085
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1086
1086
  const originalWrite = process.stdout.write.bind(process.stdout);
1087
1087
  process.stdout.write = (() => true);
1088
1088
  try {
1089
- const exitCode = await _chunkFIZHV5SWjs.runSkillsCommand.call(void 0, { json: true });
1089
+ const exitCode = await _chunk4LQ3MCZUjs.runSkillsCommand.call(void 0, { json: true });
1090
1090
  if (exitCode !== 0) {
1091
1091
  throw new Error(
1092
1092
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1157
1157
  ]
1158
1158
  };
1159
1159
  if (options.json && !options.executeWithJson) {
1160
- _chunkVTKCTJWGjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1160
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1161
1161
  return 0;
1162
1162
  }
1163
1163
  if (options.printCommand) {
1164
- _chunkVTKCTJWGjs.printCommandEnvelope.call(void 0,
1164
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
1165
1165
  {
1166
1166
  ...plan,
1167
1167
  render: {
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1174
1174
  return 0;
1175
1175
  }
1176
1176
  if (plan.kind === "source" || plan.kind === "homebrew") {
1177
- _chunkVTKCTJWGjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1177
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1178
1178
  return 0;
1179
1179
  }
1180
1180
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills --json
1204
1204
  );
1205
1205
  }
1206
1206
  if (options.executeWithJson && options.json) {
1207
- _chunkVTKCTJWGjs.printCommandEnvelope.call(void 0,
1207
+ _chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
1208
1208
  {
1209
1209
  ok: true,
1210
1210
  pinnedVersion
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.363",
52
+ version: "0.3.365",
53
53
  updateSummary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release.",
54
54
  packageCapabilities: {
55
55
  updatePreferences: 1