deepline 0.3.323 → 0.3.325

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 (128) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/types.ts +6 -0
  3. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +2 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +454 -129
  5. package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +407 -37
  6. package/dist/bundling-sources/shared_libs/play-runtime/governor/governor.ts +18 -4
  7. package/dist/bundling-sources/shared_libs/play-runtime/governor/rate-state-backend.ts +16 -1
  8. package/dist/bundling-sources/shared_libs/play-runtime/map-execution-frame.ts +6 -2
  9. package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +1 -1
  10. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +2 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/gradient2-concurrency-controller.ts +15 -5
  12. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-capacity-policy.ts +1 -0
  13. package/dist/bundling-sources/shared_libs/play-runtime/provider-capacity/provider-concurrency-policy.ts +7 -2
  14. package/dist/bundling-sources/shared_libs/play-runtime/provider-row-retry-queue.ts +65 -0
  15. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +2 -0
  16. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +7 -1
  17. package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +1 -0
  18. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +5 -0
  19. package/dist/bundling-sources/shared_libs/play-runtime/runtime-flow.ts +34 -5
  20. package/dist/bundling-sources/shared_libs/play-runtime/runtime-map-row-feed.ts +116 -15
  21. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +59 -6
  22. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +294 -37
  23. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +73 -0
  24. package/dist/bundling-sources/shared_libs/play-runtime/suspension.ts +2 -0
  25. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +41 -3
  26. package/dist/bundling-sources/shared_libs/plays/artifact-types.ts +9 -0
  27. package/dist/cli/{auth-4TYSEEPE.mjs → auth-PIZESRPC.mjs} +4 -4
  28. package/dist/cli/auth-RXCD4GOV.js +31 -0
  29. package/dist/cli/{billing-HYX3OWXB.js → billing-DQKFCQV5.js} +70 -70
  30. package/dist/cli/{billing-QDER3JLM.mjs → billing-HSL6VTCM.mjs} +4 -4
  31. package/dist/cli/{chunk-VN433ENM.mjs → chunk-5FHU7TV4.mjs} +2 -2
  32. package/dist/cli/{chunk-ZF6WOSMW.mjs → chunk-5TYU3UIS.mjs} +1 -1
  33. package/dist/cli/{chunk-YY6EASRE.mjs → chunk-6RMKHN7S.mjs} +4 -4
  34. package/dist/cli/{chunk-CXJND6CJ.mjs → chunk-6VZDSBK6.mjs} +2 -2
  35. package/dist/cli/{chunk-JGTV5QNG.mjs → chunk-7MD453WV.mjs} +6 -6
  36. package/dist/cli/{chunk-3OTHDXTV.mjs → chunk-AQUNQJ5Y.mjs} +1 -1
  37. package/dist/cli/{chunk-FNKBVKQX.js → chunk-CV5GDCKN.js} +15 -15
  38. package/dist/cli/{chunk-WOG5IKUF.js → chunk-DLW7X2UK.js} +220 -220
  39. package/dist/cli/{chunk-BC3E7GEW.mjs → chunk-H5TJBRSC.mjs} +5 -5
  40. package/dist/cli/{chunk-LXUY7LRE.js → chunk-HPTQEWCF.js} +60 -60
  41. package/dist/cli/{chunk-GUPKB4UE.js → chunk-HUKWYHBG.js} +2 -2
  42. package/dist/cli/{chunk-BEG62AQW.js → chunk-K7FC5IUU.js} +1 -1
  43. package/dist/cli/{chunk-I7TAO4XH.js → chunk-KZNFYOHX.js} +6 -6
  44. package/dist/cli/{chunk-UMUH2FVZ.js → chunk-MNKDSR2J.js} +6 -6
  45. package/dist/cli/{chunk-UE55ECMI.mjs → chunk-NWBARG3F.mjs} +1 -1
  46. package/dist/cli/{chunk-KLIHE4X5.js → chunk-OOPSX57I.js} +6 -6
  47. package/dist/cli/{chunk-3I4KDUKY.mjs → chunk-OPERWJR6.mjs} +3 -3
  48. package/dist/cli/{chunk-HUQVA5MR.js → chunk-PBNZXZCW.js} +48 -48
  49. package/dist/cli/{chunk-HSZD4VBE.js → chunk-PVDQ55PS.js} +4 -4
  50. package/dist/cli/{chunk-HJN5KR42.mjs → chunk-PWV2M4LW.mjs} +1 -1
  51. package/dist/cli/{chunk-M2WAAIM4.js → chunk-QQ2FG5W3.js} +6 -6
  52. package/dist/cli/{chunk-OQPG3ND3.js → chunk-UYFWTIKF.js} +26 -26
  53. package/dist/cli/{chunk-2HYJDTQT.mjs → chunk-WW4XZIVM.mjs} +2 -2
  54. package/dist/cli/{chunk-FGD2M25K.mjs → chunk-XIVUB36F.mjs} +1 -1
  55. package/dist/cli/{chunk-W2V624T6.mjs → chunk-YE3O2UHM.mjs} +1 -1
  56. package/dist/cli/{chunk-EWFKMQFO.js → chunk-YXRPWMGN.js} +50 -50
  57. package/dist/cli/client-562MULXK.js +20 -0
  58. package/dist/cli/{client-CEX7EHUM.mjs → client-57SR4KVM.mjs} +3 -3
  59. package/dist/cli/{csv-GBPRJ6YU.js → csv-5DJSC6BD.js} +12 -12
  60. package/dist/cli/{csv-LR5KWOIK.mjs → csv-G2FRMOXL.mjs} +3 -3
  61. package/dist/cli/{db-VFKXAHQA.js → db-NVO7P4VO.js} +20 -20
  62. package/dist/cli/{db-4BMCUU34.mjs → db-WWZEXM3N.mjs} +4 -4
  63. package/dist/cli/{describe-VTLU5KX5.mjs → describe-26OMF3A4.mjs} +8 -8
  64. package/dist/cli/{describe-BYWGWALB.js → describe-M26LHDBQ.js} +15 -15
  65. package/dist/cli/{executions-NGREVSY6.mjs → executions-2LLHY3IL.mjs} +4 -4
  66. package/dist/cli/{executions-DU7I6YEU.js → executions-KI47LPKE.js} +6 -6
  67. package/dist/cli/{feedback-PHPAWVHC.js → feedback-2Y26C2BZ.js} +6 -6
  68. package/dist/cli/{feedback-GUY2CCGF.mjs → feedback-O26VL2OF.mjs} +3 -3
  69. package/dist/cli/git-KGPX5YPD.js +23 -0
  70. package/dist/cli/{git-22YV3DFJ.mjs → git-UVPGZN3K.mjs} +4 -4
  71. package/dist/cli/index.js +75 -75
  72. package/dist/cli/index.mjs +31 -31
  73. package/dist/cli/{legacy-noops-V72GCF5R.js → legacy-noops-H6Y3SEVB.js} +7 -7
  74. package/dist/cli/{legacy-noops-YEQDVI6U.mjs → legacy-noops-IK5CH72U.mjs} +4 -4
  75. package/dist/cli/{monitors-MVJBQDQG.js → monitors-JL6TTQCI.js} +85 -85
  76. package/dist/cli/{monitors-QOCAMBRV.mjs → monitors-SFVVMAJT.mjs} +4 -4
  77. package/dist/cli/{org-DMIOMJK6.js → org-OVMAZCQS.js} +60 -60
  78. package/dist/cli/{org-A53XV2UQ.mjs → org-SSDONL57.mjs} +4 -4
  79. package/dist/cli/play-3DB4MSHN.js +152 -0
  80. package/dist/cli/{play-73L74CUW.mjs → play-X6NPACUO.mjs} +7 -7
  81. package/dist/cli/{providers-PEOAZYM6.js → providers-E24JDWSR.js} +7 -7
  82. package/dist/cli/{providers-6LDD5X5G.mjs → providers-ONUBYYY4.mjs} +4 -4
  83. package/dist/cli/{quickstart-PXMC66UG.mjs → quickstart-B7NIXACV.mjs} +3 -3
  84. package/dist/cli/{quickstart-33IPDK2I.js → quickstart-TB7C3DLG.js} +5 -5
  85. package/dist/cli/{search-FJEJDKPA.mjs → search-N3QUIATW.mjs} +5 -5
  86. package/dist/cli/search-NJ637YGQ.js +26 -0
  87. package/dist/cli/{secrets-3SCAG3T7.js → secrets-CPCVFDYB.js} +13 -13
  88. package/dist/cli/{secrets-Q3ZWHE5S.mjs → secrets-V7Z4M67T.mjs} +4 -4
  89. package/dist/cli/{sessions-QJB4LSNZ.js → sessions-E4FIZLQP.js} +5 -5
  90. package/dist/cli/{sessions-RY3SCVN7.mjs → sessions-PDOBKAKO.mjs} +4 -4
  91. package/dist/cli/{settings-VTYJKMI6.mjs → settings-QYHYHZDI.mjs} +7 -7
  92. package/dist/cli/{settings-DLAE6POM.js → settings-UVM2WDE4.js} +74 -74
  93. package/dist/cli/{setup-LM2VWSFE.js → setup-3JFAXQLJ.js} +41 -41
  94. package/dist/cli/{setup-UYQ4V4GP.mjs → setup-4RLAETDW.mjs} +6 -6
  95. package/dist/cli/skills-BYRYG64R.js +28 -0
  96. package/dist/cli/{skills-2OKHLQF7.mjs → skills-ZX2JSWOZ.mjs} +4 -4
  97. package/dist/cli/{tools-F5RYANCG.mjs → tools-EGXCVIPJ.mjs} +6 -6
  98. package/dist/cli/tools-TAWOAY5X.js +38 -0
  99. package/dist/cli/{update-5FDHGSNE.mjs → update-7FEKRQFE.mjs} +6 -6
  100. package/dist/cli/update-H24GEBXM.js +28 -0
  101. package/dist/cli/{workflow-EQMKPCUV.js → workflow-54VCKIG2.js} +15 -15
  102. package/dist/cli/{workflow-TWQH53ZO.mjs → workflow-7V7TTTKK.mjs} +5 -5
  103. package/dist/{client-BV68GMPo.d.ts → client-Bb4Jjzmj.d.ts} +7 -1
  104. package/dist/{client-D9ACjiRC.d.mts → client-COa-3GHK.d.mts} +7 -1
  105. package/dist/{compiler-manifest-BXcZ4P4W.d.mts → compiler-manifest-CsnWj-AK.d.mts} +6 -0
  106. package/dist/{compiler-manifest-BXcZ4P4W.d.ts → compiler-manifest-CsnWj-AK.d.ts} +6 -0
  107. package/dist/index.d.mts +4 -4
  108. package/dist/index.d.ts +4 -4
  109. package/dist/index.js +6 -6
  110. package/dist/index.mjs +3 -3
  111. package/dist/install-integrity.json +79 -78
  112. package/dist/plays/bundle-play-file.d.mts +2 -2
  113. package/dist/plays/bundle-play-file.d.ts +2 -2
  114. package/dist/plays/run-request.d.mts +2 -2
  115. package/dist/plays/run-request.d.ts +2 -2
  116. package/dist/release.d.mts +1 -1
  117. package/dist/release.d.ts +1 -1
  118. package/dist/release.js +2 -2
  119. package/dist/release.mjs +1 -1
  120. package/package.json +1 -1
  121. package/dist/cli/auth-KWPQ4JVV.js +0 -31
  122. package/dist/cli/client-YMQ2QFV7.js +0 -20
  123. package/dist/cli/git-W5NEI2BP.js +0 -23
  124. package/dist/cli/play-NBFCGFVC.js +0 -152
  125. package/dist/cli/search-FPUK2H6Y.js +0 -26
  126. package/dist/cli/skills-5NH6JX5H.js +0 -28
  127. package/dist/cli/tools-ZPGDY3I2.js +0 -38
  128. package/dist/cli/update-W5KBXMKC.js +0 -28
@@ -7,7 +7,7 @@ import {
7
7
  import {
8
8
  recentSearchRef,
9
9
  registerDeprecatedSearchCommand
10
- } from "./chunk-3I4KDUKY.mjs";
10
+ } from "./chunk-OPERWJR6.mjs";
11
11
  import {
12
12
  extractSummaryFields,
13
13
  projectRowOutput,
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-MIMASXO4.mjs";
19
19
  import {
20
20
  DeeplineClient
21
- } from "./chunk-FGD2M25K.mjs";
21
+ } from "./chunk-XIVUB36F.mjs";
22
22
  import {
23
23
  beginToolExecuteCommand,
24
24
  getToolExecuteInvocationId,
@@ -33,11 +33,11 @@ import {
33
33
  printJsonError,
34
34
  renderCommandEnvelopeText,
35
35
  shouldEmitJson
36
- } from "./chunk-3OTHDXTV.mjs";
36
+ } from "./chunk-AQUNQJ5Y.mjs";
37
37
  import {
38
38
  resolveConfig,
39
39
  sdkCliStateDirPath
40
- } from "./chunk-W2V624T6.mjs";
40
+ } from "./chunk-YE3O2UHM.mjs";
41
41
  import {
42
42
  DeeplineError
43
43
  } from "./chunk-NXGCO4JB.mjs";
@@ -1010,7 +1010,7 @@ Examples:
1010
1010
  process.exitCode = await narrowView();
1011
1011
  return;
1012
1012
  }
1013
- const { describeAnything } = await import("./describe-VTLU5KX5.mjs");
1013
+ const { describeAnything } = await import("./describe-26OMF3A4.mjs");
1014
1014
  process.exitCode = await describeAnything(
1015
1015
  toolId,
1016
1016
  { ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
@@ -3,7 +3,7 @@
3
3
  var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
4
4
 
5
5
 
6
- var _chunkM2WAAIM4js = require('./chunk-M2WAAIM4.js');
6
+ var _chunkQQ2FG5W3js = require('./chunk-QQ2FG5W3.js');
7
7
 
8
8
 
9
9
 
@@ -22,7 +22,7 @@ var _chunkM2WAAIM4js = require('./chunk-M2WAAIM4.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkHSZD4VBEjs = require('./chunk-HSZD4VBE.js');
25
+ var _chunkPVDQ55PSjs = require('./chunk-PVDQ55PS.js');
26
26
 
27
27
 
28
28
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -116,7 +116,7 @@ function skillsSourceUrl(baseUrl) {
116
116
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
117
117
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
118
118
  const [firstSkillName, ...extraSkillNames] = skillNames;
119
- const agents = _nullishCoalesce(options.agents, () => ( _chunkHSZD4VBEjs.DEFAULT_SKILL_AGENTS));
119
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkPVDQ55PSjs.DEFAULT_SKILL_AGENTS));
120
120
  const values = {
121
121
  skills_index_url: skillsIndexUrl(baseUrl),
122
122
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -192,7 +192,7 @@ function shouldSkipCompatibilityCheck() {
192
192
  return value === "1" || value === "true" || value === "yes";
193
193
  }
194
194
  function sdkCompatibilityCachePath(baseUrl, homeDir = _os.homedir.call(void 0, )) {
195
- return _path.join.call(void 0, _chunkHSZD4VBEjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
195
+ return _path.join.call(void 0, _chunkPVDQ55PSjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
196
196
  }
197
197
  function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
198
198
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -200,9 +200,9 @@ function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
200
200
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
201
201
  return JSON.stringify({
202
202
  baseUrl: baseUrl.replace(/\/$/, ""),
203
- version: _chunkHSZD4VBEjs.SDK_VERSION,
204
- apiContract: _chunkHSZD4VBEjs.SDK_API_CONTRACT,
205
- apiMajor: _chunkHSZD4VBEjs.SDK_API_MAJOR,
203
+ version: _chunkPVDQ55PSjs.SDK_VERSION,
204
+ apiContract: _chunkPVDQ55PSjs.SDK_API_CONTRACT,
205
+ apiMajor: _chunkPVDQ55PSjs.SDK_API_MAJOR,
206
206
  command: _optionalChain([command, 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]) || null,
207
207
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
208
208
  });
@@ -210,8 +210,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
210
210
  function legacyCompatibilityCacheKey(baseUrl, command) {
211
211
  return JSON.stringify({
212
212
  baseUrl: baseUrl.replace(/\/$/, ""),
213
- version: _chunkHSZD4VBEjs.SDK_VERSION,
214
- apiContract: _chunkHSZD4VBEjs.SDK_API_CONTRACT,
213
+ version: _chunkPVDQ55PSjs.SDK_VERSION,
214
+ apiContract: _chunkPVDQ55PSjs.SDK_API_CONTRACT,
215
215
  command: _optionalChain([command, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || null
216
216
  });
217
217
  }
@@ -304,7 +304,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
304
304
  );
305
305
  try {
306
306
  const url = new URL("/api/v2/sdk/compat", baseUrl);
307
- url.searchParams.set("version", _chunkHSZD4VBEjs.SDK_VERSION);
307
+ url.searchParams.set("version", _chunkPVDQ55PSjs.SDK_VERSION);
308
308
  if (_optionalChain([options, 'access', _19 => _19.command, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()])) {
309
309
  url.searchParams.set("command", options.command.trim());
310
310
  }
@@ -317,13 +317,13 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
317
317
  const response = await fetch(url, {
318
318
  method: "GET",
319
319
  headers: {
320
- ..._chunkHSZD4VBEjs.deploymentProtectionHeaders.call(void 0, ),
321
- "User-Agent": `deepline-ts-sdk/${_chunkHSZD4VBEjs.SDK_VERSION}`,
322
- "X-Deepline-SDK-Version": _chunkHSZD4VBEjs.SDK_VERSION,
323
- "X-Deepline-API-Major": String(_chunkHSZD4VBEjs.SDK_API_MAJOR),
324
- "X-Deepline-API-Contract": _chunkHSZD4VBEjs.SDK_API_CONTRACT,
320
+ ..._chunkPVDQ55PSjs.deploymentProtectionHeaders.call(void 0, ),
321
+ "User-Agent": `deepline-ts-sdk/${_chunkPVDQ55PSjs.SDK_VERSION}`,
322
+ "X-Deepline-SDK-Version": _chunkPVDQ55PSjs.SDK_VERSION,
323
+ "X-Deepline-API-Major": String(_chunkPVDQ55PSjs.SDK_API_MAJOR),
324
+ "X-Deepline-API-Contract": _chunkPVDQ55PSjs.SDK_API_CONTRACT,
325
325
  "X-Deepline-CLI-Update-Preferences": "1",
326
- ...options.catalog ? { Authorization: `Bearer ${_chunkHSZD4VBEjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
326
+ ...options.catalog ? { Authorization: `Bearer ${_chunkPVDQ55PSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
327
327
  },
328
328
  signal: controller.signal
329
329
  });
@@ -574,7 +574,7 @@ function buildEnvironmentContext() {
574
574
  node_version: process.version,
575
575
  runtime: "Node.js",
576
576
  hostname: _os.hostname.call(void 0, ),
577
- agent_runtime: _chunkHSZD4VBEjs.detectAgentRuntime.call(void 0, )
577
+ agent_runtime: _chunkPVDQ55PSjs.detectAgentRuntime.call(void 0, )
578
578
  };
579
579
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
580
580
  const normalized = _optionalChain([process, 'access', _32 => _32.env, 'access', _33 => _33[key], 'optionalAccess', _34 => _34.trim, 'call', _35 => _35()]);
@@ -598,12 +598,12 @@ function failureReportHeaders(apiKey) {
598
598
  return {
599
599
  Authorization: `Bearer ${apiKey}`,
600
600
  "Content-Type": "application/json",
601
- "User-Agent": `deepline-ts-sdk/${_chunkHSZD4VBEjs.SDK_VERSION}`,
601
+ "User-Agent": `deepline-ts-sdk/${_chunkPVDQ55PSjs.SDK_VERSION}`,
602
602
  "X-Deepline-Client-Family": "sdk",
603
603
  "X-Deepline-CLI-Family": "sdk",
604
- "X-Deepline-Agent-Runtime": _chunkHSZD4VBEjs.detectAgentRuntime.call(void 0, ),
605
- "X-Deepline-CLI-Version": _chunkHSZD4VBEjs.SDK_VERSION,
606
- "X-Deepline-SDK-Version": _chunkHSZD4VBEjs.SDK_VERSION
604
+ "X-Deepline-Agent-Runtime": _chunkPVDQ55PSjs.detectAgentRuntime.call(void 0, ),
605
+ "X-Deepline-CLI-Version": _chunkPVDQ55PSjs.SDK_VERSION,
606
+ "X-Deepline-SDK-Version": _chunkPVDQ55PSjs.SDK_VERSION
607
607
  };
608
608
  }
609
609
  async function postFailureReport(input) {
@@ -631,7 +631,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
631
631
  if (isFailureReportingDisabled()) return false;
632
632
  let apiKey = "";
633
633
  try {
634
- apiKey = _chunkHSZD4VBEjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
634
+ apiKey = _chunkPVDQ55PSjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
635
635
  } catch (e7) {
636
636
  return false;
637
637
  }
@@ -658,7 +658,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
658
658
  failure_code: failureCode2,
659
659
  failure_stage: failureStage,
660
660
  error_body: "Automatic Deepline skills installation failed.",
661
- cli_version: _chunkHSZD4VBEjs.SDK_VERSION,
661
+ cli_version: _chunkPVDQ55PSjs.SDK_VERSION,
662
662
  context: {
663
663
  environment: buildEnvironmentContext(),
664
664
  skills_sync: {
@@ -778,7 +778,7 @@ function buildFailureReport(input) {
778
778
  failure_kind: failureKind,
779
779
  failure_code: code,
780
780
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
781
- cli_version: _chunkHSZD4VBEjs.SDK_VERSION,
781
+ cli_version: _chunkPVDQ55PSjs.SDK_VERSION,
782
782
  context: {
783
783
  base_url: redactFailureText(input.baseUrl, 400),
784
784
  command_summary: sanitizeCommand(input.argv),
@@ -798,8 +798,8 @@ async function maybeReportSdkCliFailure(input) {
798
798
  if (isServerLoggedPlayRunStartFailure(input)) return false;
799
799
  const exitCode = resolvedExitCode(input);
800
800
  if (!shouldReport({ exitCode, error: input.error })) return false;
801
- const baseUrl = _chunkHSZD4VBEjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
802
- const apiKey = _chunkHSZD4VBEjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
801
+ const baseUrl = _chunkPVDQ55PSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
802
+ const apiKey = _chunkPVDQ55PSjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
803
803
  if (!apiKey) return false;
804
804
  return postFailureReport({
805
805
  baseUrl,
@@ -820,25 +820,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
820
820
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
821
821
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
822
822
  function shouldSkipSkillsSync() {
823
- if (_chunkHSZD4VBEjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
823
+ if (_chunkPVDQ55PSjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
824
824
  return true;
825
825
  }
826
826
  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()]);
827
827
  return value === "1" || value === "true" || value === "yes" || value === "on";
828
828
  }
829
829
  function unavailableSkillsNoticePath(baseUrl) {
830
- return _path.join.call(void 0, _chunkHSZD4VBEjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
830
+ return _path.join.call(void 0, _chunkPVDQ55PSjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
831
831
  }
832
832
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
833
833
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
834
- var agentLeaseSegment = _chunkHSZD4VBEjs.skillsAgentPathSegment;
834
+ var agentLeaseSegment = _chunkPVDQ55PSjs.skillsAgentPathSegment;
835
835
  function sortedLeaseAgents(agents) {
836
- const expanded = agents.includes("*") ? [...agents, ..._chunkHSZD4VBEjs.KNOWN_SKILL_AGENTS] : agents;
836
+ const expanded = agents.includes("*") ? [...agents, ..._chunkPVDQ55PSjs.KNOWN_SKILL_AGENTS] : agents;
837
837
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
838
838
  }
839
839
  function inProgressSkillsSyncPath(baseUrl, agent) {
840
840
  return _path.join.call(void 0,
841
- _chunkHSZD4VBEjs.sdkCliStateDirPath.call(void 0, baseUrl),
841
+ _chunkPVDQ55PSjs.sdkCliStateDirPath.call(void 0, baseUrl),
842
842
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
843
843
  );
844
844
  }
@@ -997,7 +997,7 @@ var SkillsStateUnavailableError = class extends Error {
997
997
  constructor(baseUrl, error) {
998
998
  const detail = error instanceof Error ? error.message : String(error);
999
999
  super(
1000
- `Could not save skills state in ${_chunkHSZD4VBEjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1000
+ `Could not save skills state in ${_chunkPVDQ55PSjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1001
1001
  );
1002
1002
  this.name = "SkillsStateUnavailableError";
1003
1003
  }
@@ -1082,7 +1082,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
1082
1082
  }
1083
1083
  function deferredSkillsNoticePath(baseUrl, agents) {
1084
1084
  return _path.join.call(void 0,
1085
- _chunkHSZD4VBEjs.sdkCliStateDirPath.call(void 0, baseUrl),
1085
+ _chunkPVDQ55PSjs.sdkCliStateDirPath.call(void 0, baseUrl),
1086
1086
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
1087
1087
  );
1088
1088
  }
@@ -1116,8 +1116,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
1116
1116
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
1117
1117
  }
1118
1118
  function flushDeferredSkillsSyncNotices(baseUrl) {
1119
- if (shouldSkipSkillsSync() || _chunkHSZD4VBEjs.hasActivePluginSkills.call(void 0, )) return;
1120
- const agents = _chunkHSZD4VBEjs.resolveAutoSyncSkillAgents.call(void 0, );
1119
+ if (shouldSkipSkillsSync() || _chunkPVDQ55PSjs.hasActivePluginSkills.call(void 0, )) return;
1120
+ const agents = _chunkPVDQ55PSjs.resolveAutoSyncSkillAgents.call(void 0, );
1121
1121
  if (agents.length === 0) return;
1122
1122
  flushDeferredSkillsNotices(baseUrl, agents);
1123
1123
  }
@@ -1133,7 +1133,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
1133
1133
  }
1134
1134
  function failedSkillsSyncPath(baseUrl, agents) {
1135
1135
  return _path.join.call(void 0,
1136
- _chunkHSZD4VBEjs.sdkCliStateDirPath.call(void 0, baseUrl),
1136
+ _chunkPVDQ55PSjs.sdkCliStateDirPath.call(void 0, baseUrl),
1137
1137
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
1138
1138
  );
1139
1139
  }
@@ -1162,7 +1162,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
1162
1162
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
1163
1163
  writeMarkedSkillsSyncVersion(path, remoteVersion);
1164
1164
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
1165
- const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkHSZD4VBEjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1165
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkPVDQ55PSjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1166
1166
  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.`;
1167
1167
  notice(
1168
1168
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -1250,7 +1250,7 @@ function buildSdkSkillNames(v1SkillNames2) {
1250
1250
  return sortedUniqueSkillNames(v1SkillNames2);
1251
1251
  }
1252
1252
  function isDefaultAgentSet(agents) {
1253
- return agents.length === _chunkHSZD4VBEjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkHSZD4VBEjs.DEFAULT_SKILL_AGENTS[index]);
1253
+ return agents.length === _chunkPVDQ55PSjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkPVDQ55PSjs.DEFAULT_SKILL_AGENTS[index]);
1254
1254
  }
1255
1255
  function safeSkillFilePath(value) {
1256
1256
  if (typeof value !== "string" || !value) return false;
@@ -1447,7 +1447,7 @@ function probeInstallers(timeoutMs) {
1447
1447
  }
1448
1448
  function noInstallerProbePath(baseUrl) {
1449
1449
  return _path.join.call(void 0,
1450
- _chunkHSZD4VBEjs.sdkCliStateDirPath.call(void 0, baseUrl),
1450
+ _chunkPVDQ55PSjs.sdkCliStateDirPath.call(void 0, baseUrl),
1451
1451
  "skills-sync-no-installer-unknown.json"
1452
1452
  );
1453
1453
  }
@@ -1526,7 +1526,7 @@ function temporarySkillsSyncSkipCommand() {
1526
1526
  function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
1527
1527
  return resolveShellSpawn(install.command, install.args, platform2);
1528
1528
  }
1529
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkHSZD4VBEjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1529
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkPVDQ55PSjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1530
1530
  const commands = [];
1531
1531
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1532
1532
  if (probes.bunx === "available") {
@@ -1678,11 +1678,11 @@ function writeSdkSkillsStatusLine(line) {
1678
1678
  }
1679
1679
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1680
1680
  if (shouldSkipSkillsSync()) return;
1681
- const usingPluginSkills = _chunkHSZD4VBEjs.hasActivePluginSkills.call(void 0, );
1681
+ const usingPluginSkills = _chunkPVDQ55PSjs.hasActivePluginSkills.call(void 0, );
1682
1682
  if (usingPluginSkills) {
1683
1683
  return;
1684
1684
  }
1685
- const agents = _chunkHSZD4VBEjs.resolveAutoSyncSkillAgents.call(void 0, );
1685
+ const agents = _chunkPVDQ55PSjs.resolveAutoSyncSkillAgents.call(void 0, );
1686
1686
  if (options.mode === "detached" && agents.length > 0) {
1687
1687
  flushDeferredSkillsNotices(baseUrl, agents);
1688
1688
  }
@@ -1710,7 +1710,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1710
1710
  return;
1711
1711
  }
1712
1712
  try {
1713
- const localVersion = _chunkHSZD4VBEjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1713
+ const localVersion = _chunkPVDQ55PSjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1714
1714
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1715
1715
  needsUpdate: options.update.needs_update,
1716
1716
  remoteVersion: options.update.remote.version
@@ -1876,7 +1876,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1876
1876
  }
1877
1877
  }
1878
1878
  runLegacySkillsCleanup(agents);
1879
- if (!_chunkHSZD4VBEjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1879
+ if (!_chunkPVDQ55PSjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1880
1880
  notice(
1881
1881
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1882
1882
  );
@@ -1935,7 +1935,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
1935
1935
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
1936
1936
  }
1937
1937
  function resolveLocalRoot() {
1938
- const target = _chunkHSZD4VBEjs.resolveProjectPinTarget.call(void 0, );
1938
+ const target = _chunkPVDQ55PSjs.resolveProjectPinTarget.call(void 0, );
1939
1939
  if (!target.ok) {
1940
1940
  throw new Error(
1941
1941
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -1946,7 +1946,7 @@ function resolveLocalRoot() {
1946
1946
  return target.dir;
1947
1947
  }
1948
1948
  function detectSkillsAgents(input) {
1949
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunkHSZD4VBEjs.detectAgentRuntime.call(void 0, )));
1949
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkPVDQ55PSjs.detectAgentRuntime.call(void 0, )));
1950
1950
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
1951
1951
  if (knownAgent) return [knownAgent];
1952
1952
  const roots = [
@@ -1961,7 +1961,7 @@ function detectSkillsAgents(input) {
1961
1961
  return detected.length > 0 ? detected : ["*"];
1962
1962
  }
1963
1963
  function skillsStatePathForScope(baseUrl, scope, root) {
1964
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkHSZD4VBEjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
1964
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkPVDQ55PSjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
1965
1965
  }
1966
1966
  function buildSkillsPlan(input) {
1967
1967
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
@@ -2083,7 +2083,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2083
2083
  scope = normalizeScope(options.scope);
2084
2084
  root = scope === "local" ? resolveLocalRoot() : null;
2085
2085
  } catch (error) {
2086
- _chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
2086
+ _chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
2087
2087
  {
2088
2088
  ok: false,
2089
2089
  status: "failed",
@@ -2095,22 +2095,22 @@ async function runSkillsCommand(options, dependencies = {}) {
2095
2095
  );
2096
2096
  return 2;
2097
2097
  }
2098
- const baseUrl = _chunkHSZD4VBEjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
2098
+ const baseUrl = _chunkPVDQ55PSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
2099
2099
  const catalog = {
2100
2100
  skillNames: [...DEFAULT_SDK_SKILL_NAMES],
2101
- version: _chunkHSZD4VBEjs.SDK_VERSION
2101
+ version: _chunkPVDQ55PSjs.SDK_VERSION
2102
2102
  };
2103
2103
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
2104
2104
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
2105
2105
  if (options.dryRun) {
2106
- _chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
2106
+ _chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
2107
2107
  { ok: true, status: "planned", dryRun: true, ...plan },
2108
2108
  { json: options.json }
2109
2109
  );
2110
2110
  return 0;
2111
2111
  }
2112
2112
  if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !hasFailedAutomaticSkillsSync(baseUrl, agents)) {
2113
- _chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
2113
+ _chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
2114
2114
  {
2115
2115
  ok: true,
2116
2116
  status: "current",
@@ -2145,7 +2145,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2145
2145
  .../* @__PURE__ */ new Set([...plan.skillNames, ...LEGACY_SKILL_NAMES_TO_REMOVE])
2146
2146
  ];
2147
2147
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
2148
- _chunkHSZD4VBEjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
2148
+ _chunkPVDQ55PSjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
2149
2149
  ".deepline/",
2150
2150
  ...agentRoots.flatMap(
2151
2151
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -2163,7 +2163,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2163
2163
  } };
2164
2164
  } catch (error) {
2165
2165
  if (!(error instanceof SkillsStateUnavailableError)) throw error;
2166
- _chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
2166
+ _chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
2167
2167
  {
2168
2168
  ok: false,
2169
2169
  status: "failed",
@@ -2179,7 +2179,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2179
2179
  return 5;
2180
2180
  }
2181
2181
  if (!lease) {
2182
- _chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
2182
+ _chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
2183
2183
  {
2184
2184
  ok: false,
2185
2185
  status: "failed",
@@ -2225,7 +2225,7 @@ async function runSkillsInstallWithLease(input) {
2225
2225
  throw new Error("Could not install the current Deepline skills.");
2226
2226
  }
2227
2227
  } catch (error) {
2228
- _chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
2228
+ _chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
2229
2229
  {
2230
2230
  ok: false,
2231
2231
  status: "failed",
@@ -2264,7 +2264,7 @@ async function runSkillsInstallWithLease(input) {
2264
2264
  {
2265
2265
  schemaVersion: 1,
2266
2266
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
2267
- cliVersion: _chunkHSZD4VBEjs.SDK_VERSION,
2267
+ cliVersion: _chunkPVDQ55PSjs.SDK_VERSION,
2268
2268
  scope,
2269
2269
  agents,
2270
2270
  skillsVersion: plan.version,
@@ -2279,7 +2279,7 @@ async function runSkillsInstallWithLease(input) {
2279
2279
  if (scope === "global") {
2280
2280
  clearFailedAutomaticSkillsSync(baseUrl, agents);
2281
2281
  }
2282
- _chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
2282
+ _chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
2283
2283
  {
2284
2284
  ok: true,
2285
2285
  status: "complete",
@@ -2328,7 +2328,7 @@ Examples:
2328
2328
  ).action(async (options) => {
2329
2329
  const claim = _optionalChain([options, 'access', _88 => _88.claim, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]);
2330
2330
  if (!claim) {
2331
- _chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
2331
+ _chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
2332
2332
  {
2333
2333
  ok: false,
2334
2334
  status: "failed",
@@ -2341,7 +2341,7 @@ Examples:
2341
2341
  process.exitCode = 2;
2342
2342
  return;
2343
2343
  }
2344
- await syncSdkSkillsIfNeeded(_chunkHSZD4VBEjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
2344
+ await syncSdkSkillsIfNeeded(_chunkPVDQ55PSjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
2345
2345
  mode: "inline",
2346
2346
  notices: "defer",
2347
2347
  claim
@@ -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 _chunkLXUY7LREjs = require('./chunk-LXUY7LRE.js');
3
+ var _chunkHPTQEWCFjs = require('./chunk-HPTQEWCF.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 = _chunkLXUY7LREjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkHPTQEWCFjs.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,
@@ -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.323",
52
+ version: "0.3.325",
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
@@ -1,20 +1,20 @@
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 _chunkUMUH2FVZjs = require('./chunk-UMUH2FVZ.js');
3
+ var _chunkMNKDSR2Jjs = require('./chunk-MNKDSR2J.js');
4
4
 
5
5
 
6
- var _chunkM2WAAIM4js = require('./chunk-M2WAAIM4.js');
6
+ var _chunkQQ2FG5W3js = require('./chunk-QQ2FG5W3.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkHSZD4VBEjs = require('./chunk-HSZD4VBE.js');
10
+ var _chunkPVDQ55PSjs = require('./chunk-PVDQ55PS.js');
11
11
 
12
12
  // src/cli/search-ref.ts
13
13
  var _fs = require('fs');
14
14
  var _path = require('path');
15
15
  var SEARCH_REF_TTL_MS = 15 * 6e4;
16
16
  function lastSearchPath() {
17
- return _path.join.call(void 0, _chunkHSZD4VBEjs.sdkCliStateDirPath.call(void 0, _chunkHSZD4VBEjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
17
+ return _path.join.call(void 0, _chunkPVDQ55PSjs.sdkCliStateDirPath.call(void 0, _chunkPVDQ55PSjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
18
18
  }
19
19
  function rememberSearchRef(searchRef) {
20
20
  try {
@@ -97,7 +97,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
97
97
  console.error(USAGE);
98
98
  return 1;
99
99
  }
100
- const { search_ref: searchRef, ...result } = await new (0, _chunkUMUH2FVZjs.DeeplineClient)().search({
100
+ const { search_ref: searchRef, ...result } = await new (0, _chunkMNKDSR2Jjs.DeeplineClient)().search({
101
101
  query,
102
102
  types,
103
103
  exclude,
@@ -111,7 +111,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
111
111
  });
112
112
  if (searchRef) rememberSearchRef(searchRef);
113
113
  pointAtDescribe(result);
114
- _chunkM2WAAIM4js.printCommandEnvelope.call(void 0, result, {
114
+ _chunkQQ2FG5W3js.printCommandEnvelope.call(void 0, result, {
115
115
  json: options.json === true
116
116
  });
117
117
  return 0;
@@ -14,7 +14,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkHSZD4VBEjs = require('./chunk-HSZD4VBE.js');
17
+ var _chunkPVDQ55PSjs = require('./chunk-PVDQ55PS.js');
18
18
 
19
19
 
20
20
 
@@ -2757,8 +2757,8 @@ function runtimeSelectionHeaders(runtime) {
2757
2757
  }
2758
2758
  const receivers = _optionalChain([process, 'access', _99 => _99.env, 'access', _100 => _100.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _101 => _101.trim, 'call', _102 => _102()]);
2759
2759
  return {
2760
- [_chunkHSZD4VBEjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2761
- ...receivers ? { [_chunkHSZD4VBEjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2760
+ [_chunkPVDQ55PSjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2761
+ ...receivers ? { [_chunkPVDQ55PSjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2762
2762
  };
2763
2763
  }
2764
2764
  function isolatedCiRuntimeEventReadHeaders() {
@@ -2774,7 +2774,7 @@ function isolatedCiRuntimeEventReadHeaders() {
2774
2774
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
2775
2775
  );
2776
2776
  }
2777
- return { [_chunkHSZD4VBEjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2777
+ return { [_chunkPVDQ55PSjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2778
2778
  }
2779
2779
  function normalizeTestPolicyOverrides(value, source) {
2780
2780
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -3075,8 +3075,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
3075
3075
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3076
3076
  */
3077
3077
  constructor(options) {
3078
- this.config = _chunkHSZD4VBEjs.resolveConfig.call(void 0, options);
3079
- this.http = new (0, _chunkHSZD4VBEjs.HttpClient)(this.config);
3078
+ this.config = _chunkPVDQ55PSjs.resolveConfig.call(void 0, options);
3079
+ this.http = new (0, _chunkPVDQ55PSjs.HttpClient)(this.config);
3080
3080
  this.toolCalls = new ToolCalls(
3081
3081
  this.http,
3082
3082
  this.config.timeout,
@@ -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.323",
52
+ version: "0.3.325",
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
@@ -1,7 +1,7 @@
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 _chunkM2WAAIM4js = require('./chunk-M2WAAIM4.js');
4
+ var _chunkQQ2FG5W3js = require('./chunk-QQ2FG5W3.js');
5
5
 
6
6
  // src/cli/commands/sessions.ts
7
7
 
@@ -420,7 +420,7 @@ function buildSessionUploadContent(raw) {
420
420
  return { encodedContent: encoded, needsChunking: true };
421
421
  }
422
422
  async function uploadPayload(path, payload) {
423
- const { http } = _chunkM2WAAIM4js.getAuthedHttpClient.call(void 0, );
423
+ const { http } = _chunkQQ2FG5W3js.getAuthedHttpClient.call(void 0, );
424
424
  return await http.post(path, payload);
425
425
  }
426
426
  async function uploadChunkedSessions(sessions, options) {
@@ -452,7 +452,7 @@ async function uploadChunkedSessions(sessions, options) {
452
452
  environments: sessions.map(() => detectShellContext()),
453
453
  ...options.rating ? { rating: options.rating } : {}
454
454
  });
455
- _chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
455
+ _chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
456
456
  {
457
457
  ...response,
458
458
  ok: true,
@@ -481,7 +481,7 @@ async function handleSessionsSend(options) {
481
481
  filename: _path.basename.call(void 0, filePath),
482
482
  ...rating ? { rating } : {}
483
483
  });
484
- _chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
484
+ _chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
485
485
  {
486
486
  ...response2,
487
487
  ok: true,
@@ -530,7 +530,7 @@ async function handleSessionsSend(options) {
530
530
  environment: detectShellContext(),
531
531
  ...rating ? { rating } : {}
532
532
  });
533
- _chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
533
+ _chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
534
534
  {
535
535
  ...response,
536
536
  ok: true,
@@ -635,7 +635,7 @@ ${refreshMeta}
635
635
  </body>
636
636
  </html>`;
637
637
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
638
- _chunkM2WAAIM4js.printCommandEnvelope.call(void 0,
638
+ _chunkQQ2FG5W3js.printCommandEnvelope.call(void 0,
639
639
  {
640
640
  ok: true,
641
641
  file: outputPath,
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-FGD2M25K.mjs";
3
+ } from "./chunk-XIVUB36F.mjs";
4
4
  import {
5
5
  printCommandEnvelope
6
- } from "./chunk-3OTHDXTV.mjs";
6
+ } from "./chunk-AQUNQJ5Y.mjs";
7
7
  import {
8
8
  resolveConfig,
9
9
  sdkCliStateDirPath
10
- } from "./chunk-W2V624T6.mjs";
10
+ } from "./chunk-YE3O2UHM.mjs";
11
11
 
12
12
  // src/cli/search-ref.ts
13
13
  import { mkdirSync, readFileSync, writeFileSync } from "fs";