deepline 0.3.415 → 0.3.417

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 (111) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  3. package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +6 -1
  4. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +53 -32
  5. package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +1 -1
  6. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +14 -0
  7. package/dist/bundling-sources/shared_libs/security/receipt-admission-token.ts +64 -9
  8. package/dist/cli/{auth-3R7XJOU4.mjs → auth-2WNDS7OY.mjs} +4 -4
  9. package/dist/cli/auth-3NIULVL4.js +40 -0
  10. package/dist/cli/{billing-CEQACJBE.mjs → billing-4Z7QGTTO.mjs} +4 -4
  11. package/dist/cli/{billing-63YR65DL.js → billing-P26TYS3F.js} +73 -73
  12. package/dist/cli/{chunk-TOUMT7XB.mjs → chunk-2HQOCIFE.mjs} +2 -2
  13. package/dist/cli/{chunk-KOQGG5WZ.js → chunk-3FPDXTYQ.js} +16 -16
  14. package/dist/cli/{chunk-EMWMLURG.mjs → chunk-3U6CYHMT.mjs} +1 -1
  15. package/dist/cli/{chunk-DI63MOEP.js → chunk-5D477CAK.js} +28 -19
  16. package/dist/cli/{chunk-JM3BQNP2.mjs → chunk-723EDOP2.mjs} +2 -2
  17. package/dist/cli/{chunk-OJ4N5XMI.js → chunk-A3G7FZXB.js} +35 -35
  18. package/dist/cli/{chunk-5MP7LBHF.js → chunk-C3YRH3EQ.js} +2 -2
  19. package/dist/cli/{chunk-OJGQ7JE3.mjs → chunk-CCRV2MCO.mjs} +1 -1
  20. package/dist/cli/{chunk-Y2CT65YJ.mjs → chunk-ECKCIGJC.mjs} +1 -1
  21. package/dist/cli/{chunk-IOULR7YA.js → chunk-EHGFSE44.js} +1 -1
  22. package/dist/cli/{chunk-CQ5FHAX2.mjs → chunk-GRIE5VE3.mjs} +1 -1
  23. package/dist/cli/{chunk-Q44253PX.mjs → chunk-H25KUAJM.mjs} +1 -1
  24. package/dist/cli/{chunk-U4RSPPD7.mjs → chunk-H67BP5SQ.mjs} +3 -3
  25. package/dist/cli/{chunk-6WQGIJSW.mjs → chunk-IHHPUALO.mjs} +1 -1
  26. package/dist/cli/{chunk-BBQTQRDC.js → chunk-IX6CRC7R.js} +6 -6
  27. package/dist/cli/{chunk-WAPSY6F3.js → chunk-L5YPTOLF.js} +10 -10
  28. package/dist/cli/{chunk-TQU3G7NC.mjs → chunk-MRBM5H5V.mjs} +4 -4
  29. package/dist/cli/{chunk-EV6OLL4W.mjs → chunk-NATVQHG6.mjs} +5 -5
  30. package/dist/cli/{chunk-UCE2CYXP.js → chunk-OLCY3CTW.js} +2 -2
  31. package/dist/cli/{chunk-N4SYPFH4.js → chunk-OW7VBN4Q.js} +6 -6
  32. package/dist/cli/{chunk-H3ZWEHLG.js → chunk-QLP4Z6JG.js} +4 -4
  33. package/dist/cli/{chunk-UOGTM7NF.js → chunk-QS7WRPCP.js} +50 -50
  34. package/dist/cli/{chunk-44SXWCI5.js → chunk-R7HAELOE.js} +52 -52
  35. package/dist/cli/{chunk-LEPECCA5.mjs → chunk-RRBYMSN6.mjs} +2 -2
  36. package/dist/cli/{chunk-UK22LQKF.mjs → chunk-TNFYPFMU.mjs} +8 -8
  37. package/dist/cli/{chunk-D34G5I2G.js → chunk-ULGMHMTD.js} +8 -8
  38. package/dist/cli/{chunk-5L3NL6HV.mjs → chunk-W2DLQJ35.mjs} +23 -14
  39. package/dist/cli/{chunk-WQXQDVHQ.mjs → chunk-WRM2OWWT.mjs} +2 -2
  40. package/dist/cli/{chunk-CKP2OAKZ.js → chunk-Y2HY7GL3.js} +20 -20
  41. package/dist/cli/{chunk-F66SBZUA.js → chunk-YGZV4IVP.js} +79 -79
  42. package/dist/cli/{chunk-5RZZHZEJ.mjs → chunk-Z7IVSY3A.mjs} +3 -3
  43. package/dist/cli/{chunk-M2I4TC2C.js → chunk-ZJFUKGDR.js} +26 -26
  44. package/dist/cli/{csv-PKQX3TSA.js → csv-PHHEOCRC.js} +12 -12
  45. package/dist/cli/{csv-2KFJJLDT.mjs → csv-UKZDQDD5.mjs} +3 -3
  46. package/dist/cli/{db-PLBBJZSD.js → db-DUMQYDPZ.js} +25 -25
  47. package/dist/cli/{db-N26UHFY7.mjs → db-K3N4AJHP.mjs} +4 -4
  48. package/dist/cli/{describe-7RR4IO2K.mjs → describe-LYS7YLGP.mjs} +12 -12
  49. package/dist/cli/{describe-QGZ33RCB.js → describe-RSQAAZWX.js} +16 -16
  50. package/dist/cli/describe-core.d.mts +1 -1
  51. package/dist/cli/describe-core.d.ts +1 -1
  52. package/dist/cli/{executions-XUFGT3SW.mjs → executions-A7OT35MH.mjs} +4 -4
  53. package/dist/cli/{executions-A7JY32A5.js → executions-FQI2EGXY.js} +6 -6
  54. package/dist/cli/{feedback-PIDESS5I.mjs → feedback-E77JS5G4.mjs} +3 -3
  55. package/dist/cli/{feedback-GU7HYQPX.js → feedback-EGTCQ4VW.js} +7 -7
  56. package/dist/cli/git-PHGV243L.js +24 -0
  57. package/dist/cli/{git-ST2L7VCM.mjs → git-Y66QSXUA.mjs} +4 -4
  58. package/dist/cli/index.js +131 -131
  59. package/dist/cli/index.mjs +36 -36
  60. package/dist/cli/{legacy-noops-Q4D3TT7J.js → legacy-noops-BUEO7ZIG.js} +7 -7
  61. package/dist/cli/{legacy-noops-WLZ3HD5L.mjs → legacy-noops-E7NYDS2S.mjs} +4 -4
  62. package/dist/cli/{monitors-DQBYHBTI.js → monitors-IGOA4L5O.js} +84 -84
  63. package/dist/cli/{monitors-4DRP7ABU.mjs → monitors-YGX7XZHL.mjs} +4 -4
  64. package/dist/cli/{org-XMP5FH4W.mjs → org-IUCMNFCG.mjs} +4 -4
  65. package/dist/cli/{org-JDFN2BMD.js → org-QOVN4IJE.js} +64 -64
  66. package/dist/cli/{play-LSEV7CLQ.mjs → play-BASBWJY7.mjs} +10 -10
  67. package/dist/cli/{play-AVX67TTR.js → play-GCQETZW6.js} +283 -283
  68. package/dist/cli/{providers-3B7KUXCF.mjs → providers-RF7LEMAP.mjs} +4 -4
  69. package/dist/cli/{providers-QOUY73G2.js → providers-VC5QBJZ3.js} +7 -7
  70. package/dist/cli/{quickstart-BVKDXXBN.js → quickstart-64EULHRG.js} +5 -5
  71. package/dist/cli/{quickstart-KFITIZGE.mjs → quickstart-7GAOQSQA.mjs} +3 -3
  72. package/dist/cli/search-7TOXLL4V.js +30 -0
  73. package/dist/cli/{search-MXMDK6BE.mjs → search-UOMJJUVT.mjs} +5 -5
  74. package/dist/cli/{secrets-PHV2PC55.js → secrets-GGXQOSGV.js} +13 -13
  75. package/dist/cli/{secrets-IX6ZHGMU.mjs → secrets-MIIKANZ7.mjs} +4 -4
  76. package/dist/cli/{sessions-2YAIVSQY.js → sessions-L7OMZEPU.js} +5 -5
  77. package/dist/cli/{sessions-NHNLYXBA.mjs → sessions-VQENKFWC.mjs} +4 -4
  78. package/dist/cli/{settings-APUXXPOD.js → settings-GKI7CZ62.js} +75 -75
  79. package/dist/cli/{settings-SAHN4OJN.mjs → settings-JCJPJCKF.mjs} +8 -8
  80. package/dist/cli/{setup-QOZSIUEX.mjs → setup-BN25RDMT.mjs} +7 -7
  81. package/dist/cli/{setup-URQ7BG5P.js → setup-P4AM7K34.js} +42 -42
  82. package/dist/cli/{skills-FLNMB5IF.mjs → skills-3M2OV4EQ.mjs} +5 -5
  83. package/dist/cli/skills-NGE2YPQJ.js +29 -0
  84. package/dist/cli/{tools-USDETSBP.mjs → tools-337Y5WWW.mjs} +12 -12
  85. package/dist/cli/tools-ROHOYYLK.js +44 -0
  86. package/dist/cli/update-6ZC2XCW6.js +31 -0
  87. package/dist/cli/{update-ZPY45JN4.mjs → update-A3Y6PY7O.mjs} +7 -7
  88. package/dist/cli/{workflow-GSEM32G7.mjs → workflow-LPO25MX7.mjs} +5 -5
  89. package/dist/cli/{workflow-KYWMP2JG.js → workflow-XQATHEOS.js} +15 -15
  90. package/dist/{client-D2A39edb.d.mts → client-CNfY1AzH.d.mts} +57 -13
  91. package/dist/{client-D6w0_gN1.d.ts → client-CNjtvsqn.d.ts} +57 -13
  92. package/dist/index.d.mts +2 -2
  93. package/dist/index.d.ts +2 -2
  94. package/dist/index.js +6 -6
  95. package/dist/index.mjs +3 -3
  96. package/dist/install-integrity.json +80 -80
  97. package/dist/plays/play-description.d.mts +1 -1
  98. package/dist/plays/play-description.d.ts +1 -1
  99. package/dist/plays/run-request.d.mts +1 -1
  100. package/dist/plays/run-request.d.ts +1 -1
  101. package/dist/release.d.mts +1 -1
  102. package/dist/release.d.ts +1 -1
  103. package/dist/release.js +2 -2
  104. package/dist/release.mjs +1 -1
  105. package/package.json +1 -1
  106. package/dist/cli/auth-BPP3XUUK.js +0 -40
  107. package/dist/cli/git-EGJIIULI.js +0 -24
  108. package/dist/cli/search-UWPN4TLM.js +0 -30
  109. package/dist/cli/skills-ODG4WSUP.js +0 -29
  110. package/dist/cli/tools-R43QU6JL.js +0 -44
  111. package/dist/cli/update-AGI5HJUV.js +0 -31
@@ -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; } var _class;
2
2
 
3
- var _chunkN4SYPFH4js = require('./chunk-N4SYPFH4.js');
3
+ var _chunkOW7VBN4Qjs = require('./chunk-OW7VBN4Q.js');
4
4
 
5
5
 
6
6
 
@@ -17,13 +17,13 @@ var _chunkN4SYPFH4js = require('./chunk-N4SYPFH4.js');
17
17
 
18
18
 
19
19
 
20
- var _chunkH3ZWEHLGjs = require('./chunk-H3ZWEHLG.js');
20
+ var _chunkQLP4Z6JGjs = require('./chunk-QLP4Z6JG.js');
21
21
 
22
22
 
23
23
  var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
24
24
 
25
25
 
26
- var _chunkIOULR7YAjs = require('./chunk-IOULR7YA.js');
26
+ var _chunkEHGFSE44js = require('./chunk-EHGFSE44.js');
27
27
 
28
28
  // src/compat.ts
29
29
  var _crypto = require('crypto');
@@ -58,7 +58,7 @@ function shouldSkipCompatibilityCheck() {
58
58
  return value === "1" || value === "true" || value === "yes";
59
59
  }
60
60
  function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
61
- return _path.join.call(void 0, _chunkH3ZWEHLGjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
61
+ return _path.join.call(void 0, _chunkQLP4Z6JGjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
62
62
  }
63
63
  function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
64
64
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -66,9 +66,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
66
66
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
67
67
  return JSON.stringify({
68
68
  baseUrl: baseUrl.replace(/\/$/, ""),
69
- version: _chunkH3ZWEHLGjs.SDK_VERSION,
70
- apiContract: _chunkH3ZWEHLGjs.SDK_API_CONTRACT,
71
- apiMajor: _chunkH3ZWEHLGjs.SDK_API_MAJOR,
69
+ version: _chunkQLP4Z6JGjs.SDK_VERSION,
70
+ apiContract: _chunkQLP4Z6JGjs.SDK_API_CONTRACT,
71
+ apiMajor: _chunkQLP4Z6JGjs.SDK_API_MAJOR,
72
72
  command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
73
73
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
74
74
  });
@@ -76,8 +76,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
76
76
  function legacyCompatibilityCacheKey(baseUrl, command) {
77
77
  return JSON.stringify({
78
78
  baseUrl: baseUrl.replace(/\/$/, ""),
79
- version: _chunkH3ZWEHLGjs.SDK_VERSION,
80
- apiContract: _chunkH3ZWEHLGjs.SDK_API_CONTRACT,
79
+ version: _chunkQLP4Z6JGjs.SDK_VERSION,
80
+ apiContract: _chunkQLP4Z6JGjs.SDK_API_CONTRACT,
81
81
  command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
82
82
  });
83
83
  }
@@ -102,7 +102,7 @@ function isSavedWithin(savedAt, windowMs, now) {
102
102
  }
103
103
  var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
104
104
  function claimUpdateAdvisory(baseUrl, now = Date.now()) {
105
- const path = _path.join.call(void 0, _chunkH3ZWEHLGjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
105
+ const path = _path.join.call(void 0, _chunkQLP4Z6JGjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
106
106
  try {
107
107
  const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
108
108
  if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
@@ -186,7 +186,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
186
186
  );
187
187
  try {
188
188
  const url = new URL("/api/v2/sdk/compat", baseUrl);
189
- url.searchParams.set("version", _chunkH3ZWEHLGjs.SDK_VERSION);
189
+ url.searchParams.set("version", _chunkQLP4Z6JGjs.SDK_VERSION);
190
190
  if (_optionalChain([options, 'access', _27 => _27.command, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()])) {
191
191
  url.searchParams.set("command", options.command.trim());
192
192
  }
@@ -194,7 +194,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
194
194
  url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
195
195
  url.searchParams.set(
196
196
  "skills_cli_capability",
197
- String(_chunkIOULR7YAjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
197
+ String(_chunkEHGFSE44js.SDK_RELEASE.packageCapabilities.skillsGuidance)
198
198
  );
199
199
  }
200
200
  if (options.catalog) {
@@ -206,14 +206,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
206
206
  const response = await fetch(url, {
207
207
  method: "GET",
208
208
  headers: {
209
- ..._chunkH3ZWEHLGjs.deploymentProtectionHeaders.call(void 0, ),
210
- "User-Agent": `deepline-ts-sdk/${_chunkH3ZWEHLGjs.SDK_VERSION}`,
211
- "X-Deepline-SDK-Version": _chunkH3ZWEHLGjs.SDK_VERSION,
212
- "X-Deepline-API-Major": String(_chunkH3ZWEHLGjs.SDK_API_MAJOR),
213
- "X-Deepline-API-Contract": _chunkH3ZWEHLGjs.SDK_API_CONTRACT,
209
+ ..._chunkQLP4Z6JGjs.deploymentProtectionHeaders.call(void 0, ),
210
+ "User-Agent": `deepline-ts-sdk/${_chunkQLP4Z6JGjs.SDK_VERSION}`,
211
+ "X-Deepline-SDK-Version": _chunkQLP4Z6JGjs.SDK_VERSION,
212
+ "X-Deepline-API-Major": String(_chunkQLP4Z6JGjs.SDK_API_MAJOR),
213
+ "X-Deepline-API-Contract": _chunkQLP4Z6JGjs.SDK_API_CONTRACT,
214
214
  "X-Deepline-CLI-Update-Preferences": "1",
215
215
  "X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
216
- ...options.catalog ? { Authorization: `Bearer ${_chunkH3ZWEHLGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
216
+ ...options.catalog ? { Authorization: `Bearer ${_chunkQLP4Z6JGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
217
217
  ..._optionalChain([options, 'access', _30 => _30.catalog, 'optionalAccess', _31 => _31.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
218
218
  },
219
219
  signal: controller.signal
@@ -374,7 +374,7 @@ function skillsSourceUrl(baseUrl) {
374
374
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
375
375
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
376
376
  const [firstSkillName, ...extraSkillNames] = skillNames;
377
- const agents = _nullishCoalesce(options.agents, () => ( _chunkH3ZWEHLGjs.DEFAULT_SKILL_AGENTS));
377
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkQLP4Z6JGjs.DEFAULT_SKILL_AGENTS));
378
378
  const values = {
379
379
  skills_index_url: skillsIndexUrl(baseUrl),
380
380
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -413,7 +413,7 @@ var CliProgress = (_class = class {
413
413
 
414
414
  // --json output is one JSON document: progress never renders under it.
415
415
  constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);
416
- this.enabled = enabled && !_chunkN4SYPFH4js.isJsonOutputMode.call(void 0, );
416
+ this.enabled = enabled && !_chunkOW7VBN4Qjs.isJsonOutputMode.call(void 0, );
417
417
  }
418
418
  phase(message) {
419
419
  if (!this.enabled || this.lastMessage === message) {
@@ -438,7 +438,7 @@ var CliProgress = (_class = class {
438
438
  this.settle("\u2717");
439
439
  }
440
440
  writeLogLine(line) {
441
- if (_chunkN4SYPFH4js.isJsonOutputMode.call(void 0, )) return;
441
+ if (_chunkOW7VBN4Qjs.isJsonOutputMode.call(void 0, )) return;
442
442
  if (!this.enabled) {
443
443
  process.stderr.write(`${line}
444
444
  `);
@@ -740,7 +740,7 @@ function buildEnvironmentContext() {
740
740
  node_version: process.version,
741
741
  runtime: "Node.js",
742
742
  hostname: _os.hostname.call(void 0, ),
743
- agent_runtime: _chunkH3ZWEHLGjs.detectAgentRuntime.call(void 0, )
743
+ agent_runtime: _chunkQLP4Z6JGjs.detectAgentRuntime.call(void 0, )
744
744
  };
745
745
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
746
746
  const normalized = _optionalChain([process, 'access', _60 => _60.env, 'access', _61 => _61[key], 'optionalAccess', _62 => _62.trim, 'call', _63 => _63()]);
@@ -762,15 +762,15 @@ function buildEnvironmentContext() {
762
762
  }
763
763
  function failureReportHeaders(apiKey) {
764
764
  return {
765
- ..._chunkH3ZWEHLGjs.deploymentProtectionHeaders.call(void 0, ),
765
+ ..._chunkQLP4Z6JGjs.deploymentProtectionHeaders.call(void 0, ),
766
766
  Authorization: `Bearer ${apiKey}`,
767
767
  "Content-Type": "application/json",
768
- "User-Agent": `deepline-ts-sdk/${_chunkH3ZWEHLGjs.SDK_VERSION}`,
768
+ "User-Agent": `deepline-ts-sdk/${_chunkQLP4Z6JGjs.SDK_VERSION}`,
769
769
  "X-Deepline-Client-Family": "sdk",
770
770
  "X-Deepline-CLI-Family": "sdk",
771
- "X-Deepline-Agent-Runtime": _chunkH3ZWEHLGjs.detectAgentRuntime.call(void 0, ),
772
- "X-Deepline-CLI-Version": _chunkH3ZWEHLGjs.SDK_VERSION,
773
- "X-Deepline-SDK-Version": _chunkH3ZWEHLGjs.SDK_VERSION
771
+ "X-Deepline-Agent-Runtime": _chunkQLP4Z6JGjs.detectAgentRuntime.call(void 0, ),
772
+ "X-Deepline-CLI-Version": _chunkQLP4Z6JGjs.SDK_VERSION,
773
+ "X-Deepline-SDK-Version": _chunkQLP4Z6JGjs.SDK_VERSION
774
774
  };
775
775
  }
776
776
  async function postFailureReport(input) {
@@ -798,7 +798,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
798
798
  if (isFailureReportingDisabled()) return false;
799
799
  let apiKey = "";
800
800
  try {
801
- apiKey = _chunkH3ZWEHLGjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
801
+ apiKey = _chunkQLP4Z6JGjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
802
802
  } catch (e9) {
803
803
  return false;
804
804
  }
@@ -825,7 +825,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
825
825
  failure_code: failureCode2,
826
826
  failure_stage: failureStage,
827
827
  error_body: "Automatic Deepline skills installation failed.",
828
- cli_version: _chunkH3ZWEHLGjs.SDK_VERSION,
828
+ cli_version: _chunkQLP4Z6JGjs.SDK_VERSION,
829
829
  context: {
830
830
  environment: buildEnvironmentContext(),
831
831
  skills_sync: {
@@ -945,7 +945,7 @@ function buildFailureReport(input) {
945
945
  failure_kind: failureKind,
946
946
  failure_code: code,
947
947
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
948
- cli_version: _chunkH3ZWEHLGjs.SDK_VERSION,
948
+ cli_version: _chunkQLP4Z6JGjs.SDK_VERSION,
949
949
  context: {
950
950
  base_url: redactFailureText(input.baseUrl, 400),
951
951
  command_summary: sanitizeCommand(input.argv),
@@ -965,8 +965,8 @@ async function maybeReportSdkCliFailure(input) {
965
965
  if (isServerLoggedPlayRunStartFailure(input)) return false;
966
966
  const exitCode = resolvedExitCode(input);
967
967
  if (!shouldReport({ exitCode, error: input.error })) return false;
968
- const baseUrl = _chunkH3ZWEHLGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
969
- const apiKey = _chunkH3ZWEHLGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
968
+ const baseUrl = _chunkQLP4Z6JGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
969
+ const apiKey = _chunkQLP4Z6JGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
970
970
  if (!apiKey) return false;
971
971
  return postFailureReport({
972
972
  baseUrl,
@@ -1003,25 +1003,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
1003
1003
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
1004
1004
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
1005
1005
  function shouldSkipSkillsSync() {
1006
- if (_chunkH3ZWEHLGjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
1006
+ if (_chunkQLP4Z6JGjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
1007
1007
  return true;
1008
1008
  }
1009
1009
  const value = _optionalChain([process, 'access', _84 => _84.env, 'access', _85 => _85.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _86 => _86.trim, 'call', _87 => _87(), 'access', _88 => _88.toLowerCase, 'call', _89 => _89()]);
1010
1010
  return value === "1" || value === "true" || value === "yes" || value === "on";
1011
1011
  }
1012
1012
  function unavailableSkillsNoticePath(baseUrl) {
1013
- return _path.join.call(void 0, _chunkH3ZWEHLGjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
1013
+ return _path.join.call(void 0, _chunkQLP4Z6JGjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
1014
1014
  }
1015
1015
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
1016
1016
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
1017
- var agentLeaseSegment = _chunkH3ZWEHLGjs.skillsAgentPathSegment;
1017
+ var agentLeaseSegment = _chunkQLP4Z6JGjs.skillsAgentPathSegment;
1018
1018
  function sortedLeaseAgents(agents) {
1019
- const expanded = agents.includes("*") ? [...agents, ..._chunkH3ZWEHLGjs.KNOWN_SKILL_AGENTS] : agents;
1019
+ const expanded = agents.includes("*") ? [...agents, ..._chunkQLP4Z6JGjs.KNOWN_SKILL_AGENTS] : agents;
1020
1020
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
1021
1021
  }
1022
1022
  function inProgressSkillsSyncPath(baseUrl, agent) {
1023
1023
  return _path.join.call(void 0,
1024
- _chunkH3ZWEHLGjs.sdkCliStateDirPath.call(void 0, baseUrl),
1024
+ _chunkQLP4Z6JGjs.sdkCliStateDirPath.call(void 0, baseUrl),
1025
1025
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
1026
1026
  );
1027
1027
  }
@@ -1180,7 +1180,7 @@ var SkillsStateUnavailableError = class extends Error {
1180
1180
  constructor(baseUrl, error) {
1181
1181
  const detail = error instanceof Error ? error.message : String(error);
1182
1182
  super(
1183
- `Could not save skills state in ${_chunkH3ZWEHLGjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1183
+ `Could not save skills state in ${_chunkQLP4Z6JGjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1184
1184
  );
1185
1185
  this.name = "SkillsStateUnavailableError";
1186
1186
  }
@@ -1265,7 +1265,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
1265
1265
  }
1266
1266
  function deferredSkillsNoticePath(baseUrl, agents) {
1267
1267
  return _path.join.call(void 0,
1268
- _chunkH3ZWEHLGjs.sdkCliStateDirPath.call(void 0, baseUrl),
1268
+ _chunkQLP4Z6JGjs.sdkCliStateDirPath.call(void 0, baseUrl),
1269
1269
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
1270
1270
  );
1271
1271
  }
@@ -1299,8 +1299,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
1299
1299
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
1300
1300
  }
1301
1301
  function flushDeferredSkillsSyncNotices(baseUrl) {
1302
- if (shouldSkipSkillsSync() || _chunkH3ZWEHLGjs.hasActivePluginSkills.call(void 0, )) return;
1303
- const agents = _chunkH3ZWEHLGjs.resolveAutoSyncSkillAgents.call(void 0, );
1302
+ if (shouldSkipSkillsSync() || _chunkQLP4Z6JGjs.hasActivePluginSkills.call(void 0, )) return;
1303
+ const agents = _chunkQLP4Z6JGjs.resolveAutoSyncSkillAgents.call(void 0, );
1304
1304
  if (agents.length === 0) return;
1305
1305
  flushDeferredSkillsNotices(baseUrl, agents);
1306
1306
  }
@@ -1316,7 +1316,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
1316
1316
  }
1317
1317
  function failedSkillsSyncPath(baseUrl, agents) {
1318
1318
  return _path.join.call(void 0,
1319
- _chunkH3ZWEHLGjs.sdkCliStateDirPath.call(void 0, baseUrl),
1319
+ _chunkQLP4Z6JGjs.sdkCliStateDirPath.call(void 0, baseUrl),
1320
1320
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
1321
1321
  );
1322
1322
  }
@@ -1345,7 +1345,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
1345
1345
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
1346
1346
  writeMarkedSkillsSyncVersion(path, remoteVersion);
1347
1347
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
1348
- const manualCommand = _optionalChain([probes, 'optionalAccess', _93 => _93.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkH3ZWEHLGjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1348
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _93 => _93.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkQLP4Z6JGjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1349
1349
  const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _94 => _94.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.`;
1350
1350
  notice(
1351
1351
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -1433,7 +1433,7 @@ function buildSdkSkillNames(v1SkillNames2) {
1433
1433
  return sortedUniqueSkillNames(v1SkillNames2);
1434
1434
  }
1435
1435
  function isDefaultAgentSet(agents) {
1436
- return agents.length === _chunkH3ZWEHLGjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkH3ZWEHLGjs.DEFAULT_SKILL_AGENTS[index]);
1436
+ return agents.length === _chunkQLP4Z6JGjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkQLP4Z6JGjs.DEFAULT_SKILL_AGENTS[index]);
1437
1437
  }
1438
1438
  function safeSkillFilePath(value) {
1439
1439
  if (typeof value !== "string" || !value) return false;
@@ -1590,10 +1590,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
1590
1590
  method: "POST",
1591
1591
  headers: { "Content-Type": "application/json" },
1592
1592
  body: JSON.stringify({
1593
- sdk_cli: { version: _chunkH3ZWEHLGjs.SDK_VERSION },
1593
+ sdk_cli: { version: _chunkQLP4Z6JGjs.SDK_VERSION },
1594
1594
  skills: {
1595
1595
  version: localVersion,
1596
- capability: _chunkIOULR7YAjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1596
+ capability: _chunkEHGFSE44js.SDK_RELEASE.packageCapabilities.skillsGuidance
1597
1597
  }
1598
1598
  }),
1599
1599
  signal: controller.signal
@@ -1632,7 +1632,7 @@ function probeInstallers(timeoutMs) {
1632
1632
  }
1633
1633
  function noInstallerProbePath(baseUrl) {
1634
1634
  return _path.join.call(void 0,
1635
- _chunkH3ZWEHLGjs.sdkCliStateDirPath.call(void 0, baseUrl),
1635
+ _chunkQLP4Z6JGjs.sdkCliStateDirPath.call(void 0, baseUrl),
1636
1636
  "skills-sync-no-installer-unknown.json"
1637
1637
  );
1638
1638
  }
@@ -1711,7 +1711,7 @@ function temporarySkillsSyncSkipCommand() {
1711
1711
  function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
1712
1712
  return resolveShellSpawn(install.command, install.args, platform2);
1713
1713
  }
1714
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkH3ZWEHLGjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1714
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkQLP4Z6JGjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1715
1715
  const commands = [];
1716
1716
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1717
1717
  if (probes.bunx === "available") {
@@ -1863,11 +1863,11 @@ function writeSdkSkillsStatusLine(line) {
1863
1863
  }
1864
1864
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1865
1865
  if (shouldSkipSkillsSync()) return;
1866
- const usingPluginSkills = _chunkH3ZWEHLGjs.hasActivePluginSkills.call(void 0, );
1866
+ const usingPluginSkills = _chunkQLP4Z6JGjs.hasActivePluginSkills.call(void 0, );
1867
1867
  if (usingPluginSkills) {
1868
1868
  return;
1869
1869
  }
1870
- const agents = _chunkH3ZWEHLGjs.resolveAutoSyncSkillAgents.call(void 0, );
1870
+ const agents = _chunkQLP4Z6JGjs.resolveAutoSyncSkillAgents.call(void 0, );
1871
1871
  if (options.mode === "detached" && agents.length > 0) {
1872
1872
  flushDeferredSkillsNotices(baseUrl, agents);
1873
1873
  }
@@ -1895,7 +1895,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1895
1895
  return;
1896
1896
  }
1897
1897
  try {
1898
- const localVersion = _chunkH3ZWEHLGjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1898
+ const localVersion = _chunkQLP4Z6JGjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1899
1899
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1900
1900
  needsUpdate: options.update.needs_update,
1901
1901
  remoteVersion: options.update.remote.version
@@ -2061,7 +2061,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
2061
2061
  }
2062
2062
  }
2063
2063
  runLegacySkillsCleanup(agents);
2064
- if (!_chunkH3ZWEHLGjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
2064
+ if (!_chunkQLP4Z6JGjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
2065
2065
  notice(
2066
2066
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
2067
2067
  );
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-OJGQ7JE3.mjs";
5
+ } from "./chunk-CCRV2MCO.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-Q44253PX.mjs";
8
+ } from "./chunk-H25KUAJM.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  recentSearchRef,
7
7
  registerDeprecatedSearchCommand
8
- } from "./chunk-5L3NL6HV.mjs";
8
+ } from "./chunk-W2DLQJ35.mjs";
9
9
  import {
10
10
  arrayField,
11
11
  formatModelDescription,
@@ -45,7 +45,7 @@ import {
45
45
  import {
46
46
  DeeplineClient,
47
47
  validateExecutionIdempotencyKey
48
- } from "./chunk-Y2CT65YJ.mjs";
48
+ } from "./chunk-ECKCIGJC.mjs";
49
49
  import {
50
50
  stableStringify
51
51
  } from "./chunk-UBKA33KY.mjs";
@@ -55,18 +55,18 @@ import {
55
55
  maybeAutoUpdateAndRelaunch,
56
56
  registerCompatibilityCatalog,
57
57
  runToolExecuteStage
58
- } from "./chunk-TQU3G7NC.mjs";
58
+ } from "./chunk-MRBM5H5V.mjs";
59
59
  import {
60
60
  isCliTraceEnabled,
61
61
  recordCliTrace,
62
62
  resolveCliMaintenancePolicy
63
- } from "./chunk-CQ5FHAX2.mjs";
63
+ } from "./chunk-GRIE5VE3.mjs";
64
64
  import {
65
65
  checkSdkCompatibility,
66
66
  enforceSdkCompatibilityResponse,
67
67
  flushDeferredSkillsSyncNotices,
68
68
  syncSdkSkillsIfNeeded
69
- } from "./chunk-5RZZHZEJ.mjs";
69
+ } from "./chunk-Z7IVSY3A.mjs";
70
70
  import {
71
71
  printCommandEnvelope,
72
72
  printCompactJson,
@@ -74,12 +74,12 @@ import {
74
74
  printJsonError,
75
75
  renderCommandEnvelopeText,
76
76
  shouldEmitJson
77
- } from "./chunk-OJGQ7JE3.mjs";
77
+ } from "./chunk-CCRV2MCO.mjs";
78
78
  import {
79
79
  readSdkSkillsLocalVersion,
80
80
  resolveConfig,
81
81
  sdkCliStateDirPath
82
- } from "./chunk-Q44253PX.mjs";
82
+ } from "./chunk-H25KUAJM.mjs";
83
83
  import {
84
84
  DeeplineError
85
85
  } from "./chunk-E4IXDAZI.mjs";
@@ -962,7 +962,7 @@ Examples:
962
962
  process.exitCode = await narrowView();
963
963
  return;
964
964
  }
965
- const { describeAnything } = await import("./describe-7RR4IO2K.mjs");
965
+ const { describeAnything } = await import("./describe-LYS7YLGP.mjs");
966
966
  process.exitCode = await describeAnything(
967
967
  toolId,
968
968
  {
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkN4SYPFH4js = require('./chunk-N4SYPFH4.js');
4
+ var _chunkOW7VBN4Qjs = require('./chunk-OW7VBN4Q.js');
5
5
 
6
6
 
7
- var _chunkH3ZWEHLGjs = require('./chunk-H3ZWEHLG.js');
7
+ var _chunkQLP4Z6JGjs = require('./chunk-QLP4Z6JG.js');
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
 
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
139
139
  const newestFirst = listSessionFiles(agent).sort(
140
140
  (a, b) => b.mtimeMs - a.mtimeMs
141
141
  );
142
- const sessionId = _chunkH3ZWEHLGjs.agentSessionIdFromEnvironment.call(void 0,
142
+ const sessionId = _chunkQLP4Z6JGjs.agentSessionIdFromEnvironment.call(void 0,
143
143
  process.env,
144
144
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
145
145
  );
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
451
451
  return { encodedContent: encoded, needsChunking: true };
452
452
  }
453
453
  async function uploadPayload(path, payload) {
454
- const { http } = _chunkN4SYPFH4js.getAuthedHttpClient.call(void 0, );
454
+ const { http } = _chunkOW7VBN4Qjs.getAuthedHttpClient.call(void 0, );
455
455
  return await http.post(path, payload);
456
456
  }
457
457
  async function uploadChunkedSessions(sessions, options) {
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
484
484
  ...options.rating ? { rating: options.rating } : {}
485
485
  });
486
486
  const sessionIds = sessions.map((session) => session.sessionId);
487
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
487
+ _chunkOW7VBN4Qjs.printCommandEnvelope.call(void 0,
488
488
  {
489
489
  ...response,
490
490
  ok: true,
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
516
516
  filename: _path.basename.call(void 0, filePath),
517
517
  ...rating ? { rating } : {}
518
518
  });
519
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
519
+ _chunkOW7VBN4Qjs.printCommandEnvelope.call(void 0,
520
520
  {
521
521
  ...response2,
522
522
  ok: true,
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
566
566
  ...rating ? { rating } : {}
567
567
  });
568
568
  const sessionIds = built.map((session) => session.sessionId);
569
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
569
+ _chunkOW7VBN4Qjs.printCommandEnvelope.call(void 0,
570
570
  {
571
571
  ...response,
572
572
  ok: true,
@@ -674,7 +674,7 @@ ${refreshMeta}
674
674
  </body>
675
675
  </html>`;
676
676
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
677
- _chunkN4SYPFH4js.printCommandEnvelope.call(void 0,
677
+ _chunkOW7VBN4Qjs.printCommandEnvelope.call(void 0,
678
678
  {
679
679
  ok: true,
680
680
  file: outputPath,
@@ -3,15 +3,15 @@ import {
3
3
  } from "./chunk-LJ5747UC.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-Y2CT65YJ.mjs";
6
+ } from "./chunk-ECKCIGJC.mjs";
7
7
  import {
8
8
  printCommandEnvelope,
9
9
  renderCommandEnvelopeText
10
- } from "./chunk-OJGQ7JE3.mjs";
10
+ } from "./chunk-CCRV2MCO.mjs";
11
11
  import {
12
12
  resolveConfig,
13
13
  sdkCliStateDirPath
14
- } from "./chunk-Q44253PX.mjs";
14
+ } from "./chunk-H25KUAJM.mjs";
15
15
  import {
16
16
  __commonJS,
17
17
  __toESM
@@ -5759,11 +5759,12 @@ function formatTextTable(rows, columns) {
5759
5759
  }
5760
5760
 
5761
5761
  // src/cli/search-output.ts
5762
- function clipSummary(value) {
5762
+ var DEFAULT_SUMMARY_WIDTH = 140;
5763
+ function clipSummary(value, width) {
5763
5764
  const characters = Array.from(value.replace(/\s+/gu, " ").trim());
5764
- return characters.length <= 78 ? characters.join("") : `${characters.slice(0, 77).join("")}\u2026`;
5765
+ return characters.length <= width ? characters.join("") : `${characters.slice(0, width - 1).join("")}\u2026`;
5765
5766
  }
5766
- function pricingDisplay(item) {
5767
+ function pricingDisplay(item, noteWidth) {
5767
5768
  const pricing = item.pricing;
5768
5769
  const observedCost = item.observedCost;
5769
5770
  if (observedCost) {
@@ -5813,7 +5814,7 @@ function pricingDisplay(item) {
5813
5814
  return { cost: "unknown", notes: [] };
5814
5815
  return {
5815
5816
  cost: pricing.unit === "usage" ? "usage-based" : "variable",
5816
- notes: display ? [clipSummary(display)] : []
5817
+ notes: display ? [clipSummary(display, noteWidth)] : []
5817
5818
  };
5818
5819
  }
5819
5820
  var RATE_WINDOW_UNITS = {
@@ -5841,8 +5842,8 @@ function latencyDisplay(ms) {
5841
5842
  if (ms < 6e4) return `${(ms / 1e3).toFixed(ms < 1e4 ? 1 : 0)}s`;
5842
5843
  return `${(ms / 6e4).toFixed(1)}min`;
5843
5844
  }
5844
- function searchRow(item) {
5845
- const { cost, notes } = pricingDisplay(item);
5845
+ function searchRow(item, summaryWidth) {
5846
+ const { cost, notes } = pricingDisplay(item, summaryWidth);
5846
5847
  const observedMax = item.billingSource === "own_provider_credentials" ? "" : observedMaxText(item.pricing);
5847
5848
  if (observedMax)
5848
5849
  notes.push(`${observedMax[0].toUpperCase()}${observedMax.slice(1)}.`);
@@ -5861,7 +5862,7 @@ function searchRow(item) {
5861
5862
  failureRate: failureRateDisplay(item.failureRate),
5862
5863
  // Production p95 latency of successful calls; absent for the same reason.
5863
5864
  p95: latencyDisplay(item.latencyP95Ms),
5864
- summary: clipSummary(item.description ?? ""),
5865
+ summary: clipSummary(item.description ?? "", summaryWidth),
5865
5866
  notes
5866
5867
  };
5867
5868
  }
@@ -5870,10 +5871,10 @@ var OPTIONAL_COLUMNS = [
5870
5871
  { header: "FAILURES", key: "failureRate" },
5871
5872
  { header: "P95", key: "p95" }
5872
5873
  ];
5873
- function renderSearchResults(result) {
5874
+ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5874
5875
  if (result.results.length === 0)
5875
5876
  return renderCommandEnvelopeText(result);
5876
- const rows = result.results.map(searchRow);
5877
+ const rows = result.results.map((item) => searchRow(item, summaryWidth));
5877
5878
  const kinds = new Set(rows.map((row) => row.kind));
5878
5879
  const onlyTools = kinds.size === 1 && kinds.has("tool");
5879
5880
  const columns = [
@@ -5950,7 +5951,10 @@ function addSearchOptions(command) {
5950
5951
  ).option(
5951
5952
  "--search_terms <terms>",
5952
5953
  "Comma-separated structured search terms; may be used without a task"
5953
- ).option("--search-terms <terms>", "Alias for --search_terms").addOption(new 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");
5954
+ ).option("--search-terms <terms>", "Alias for --search_terms").addOption(new Option("--task <sentence>").hideHelp()).option("--limit <count>", "Maximum ranked results to return (1-50)").option(
5955
+ "--summary-width <chars>",
5956
+ `Characters of each description shown in the readable list (default ${DEFAULT_SUMMARY_WIDTH})`
5957
+ ).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");
5954
5958
  }
5955
5959
  function pointAtDescribe(result) {
5956
5960
  const old = /`deepline (tools|plays) describe [^`]*`/;
@@ -5974,6 +5978,11 @@ async function runSearch(queryInput, options, types, exclude = []) {
5974
5978
  console.error(USAGE);
5975
5979
  return 1;
5976
5980
  }
5981
+ const summaryWidth = optionalInteger(options.summaryWidth) ?? DEFAULT_SUMMARY_WIDTH;
5982
+ if (!Number.isInteger(summaryWidth) || summaryWidth < 2) {
5983
+ console.error("--summary-width must be an integer of at least 2.");
5984
+ return 1;
5985
+ }
5977
5986
  const { search_ref: searchRef, ...result } = await new DeeplineClient().search({
5978
5987
  query,
5979
5988
  types,
@@ -5990,7 +5999,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
5990
5999
  pointAtDescribe(result);
5991
6000
  printCommandEnvelope(result, {
5992
6001
  json: options.json === true,
5993
- text: renderSearchResults(result)
6002
+ text: renderSearchResults(result, summaryWidth)
5994
6003
  });
5995
6004
  return 0;
5996
6005
  }
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-CQ5FHAX2.mjs";
3
+ } from "./chunk-GRIE5VE3.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-5RZZHZEJ.mjs";
8
+ } from "./chunk-Z7IVSY3A.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {