deepline 0.3.459 → 0.3.460

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 (101) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +11 -20
  3. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +72 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +51 -3
  5. package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +5 -1
  6. package/dist/cli/{auth-2RM2ZC6E.mjs → auth-HKA6ZVHQ.mjs} +4 -4
  7. package/dist/cli/auth-VDOCNR7H.js +40 -0
  8. package/dist/cli/{billing-FYF2GJ25.mjs → billing-26G44S5N.mjs} +4 -4
  9. package/dist/cli/{billing-4BZABEOA.js → billing-MTO2ZZ3G.js} +73 -73
  10. package/dist/cli/{chunk-ACCQ5OM7.js → chunk-2PBN4SZE.js} +16 -16
  11. package/dist/cli/{chunk-JOSOQJ5P.js → chunk-2WRO2UJ5.js} +51 -51
  12. package/dist/cli/{chunk-Z4YO4J4J.js → chunk-2XHWOQF4.js} +50 -50
  13. package/dist/cli/{chunk-Y35FCRLQ.mjs → chunk-526R2HON.mjs} +1 -1
  14. package/dist/cli/{chunk-U3VAYRUL.js → chunk-BHGII2D6.js} +6 -6
  15. package/dist/cli/{chunk-SOUQUQQE.mjs → chunk-CTRPCARW.mjs} +8 -8
  16. package/dist/cli/{chunk-OQW2YP3P.mjs → chunk-EJGBLXDZ.mjs} +1 -1
  17. package/dist/cli/{chunk-OD236M42.mjs → chunk-KADIT5NV.mjs} +2 -2
  18. package/dist/cli/{chunk-RLQDDJZZ.mjs → chunk-LAWEURCT.mjs} +1 -1
  19. package/dist/cli/{chunk-KB4XJRQW.js → chunk-LJTFZOHU.js} +8 -8
  20. package/dist/cli/{chunk-FFUQFRKZ.js → chunk-LMAULZLF.js} +20 -20
  21. package/dist/cli/{chunk-MHMRLS7W.mjs → chunk-LVJOFUU7.mjs} +3 -3
  22. package/dist/cli/{chunk-2JSVKNLG.js → chunk-M52JQSLK.js} +3 -3
  23. package/dist/cli/{chunk-BIPMJKLI.mjs → chunk-MLFR6DVF.mjs} +5 -5
  24. package/dist/cli/{chunk-KDDB5S6E.mjs → chunk-NH6JSJW6.mjs} +3 -3
  25. package/dist/cli/{chunk-S5TTNBEZ.js → chunk-NRGGFVVB.js} +35 -35
  26. package/dist/cli/{chunk-HU7JG4RL.mjs → chunk-OJ6RUKVT.mjs} +1 -1
  27. package/dist/cli/{chunk-7AGGDRNR.mjs → chunk-OMM54B3X.mjs} +1 -1
  28. package/dist/cli/{chunk-PI65FBEA.js → chunk-QGAWTBIR.js} +81 -81
  29. package/dist/cli/{chunk-VLJXYDGZ.js → chunk-QJLKYYPX.js} +4 -4
  30. package/dist/cli/{chunk-HUVI6EBF.js → chunk-RBTTUYZZ.js} +1 -1
  31. package/dist/cli/{chunk-FPPCTKV6.js → chunk-RDPTDDKX.js} +2 -2
  32. package/dist/cli/{chunk-5WGW57KC.mjs → chunk-RZSTT45F.mjs} +3 -3
  33. package/dist/cli/{chunk-LSJYTDEK.mjs → chunk-S4Q2XCGM.mjs} +1 -1
  34. package/dist/cli/{chunk-OY4JQBJG.js → chunk-UKFZT7RF.js} +2 -2
  35. package/dist/cli/{chunk-FBMVFOD7.js → chunk-VJAEA4CS.js} +8 -8
  36. package/dist/cli/{chunk-LGOI2BRX.js → chunk-VTODQWQA.js} +10 -10
  37. package/dist/cli/{chunk-7DFM5YLL.mjs → chunk-W3BE3CHK.mjs} +4 -4
  38. package/dist/cli/{chunk-ZAJAGMXA.mjs → chunk-XAYO3Q2X.mjs} +2 -2
  39. package/dist/cli/{chunk-UIKSAVAE.js → chunk-YHTQM5XI.js} +26 -26
  40. package/dist/cli/{chunk-5KC7RLJO.js → chunk-YS2YBSJB.js} +6 -6
  41. package/dist/cli/{chunk-4EBJNT5C.mjs → chunk-YULBYKAK.mjs} +2 -2
  42. package/dist/cli/{chunk-NLRKZJZF.mjs → chunk-YVBWO647.mjs} +2 -2
  43. package/dist/cli/{chunk-MNNMPS6J.mjs → chunk-ZR2RLI4O.mjs} +1 -1
  44. package/dist/cli/{csv-LRIV3RXE.js → csv-6FNFYJUC.js} +12 -12
  45. package/dist/cli/{csv-SDVEU3O5.mjs → csv-MDHT4BKK.mjs} +3 -3
  46. package/dist/cli/{db-NHYULZTM.mjs → db-74O3RFWY.mjs} +4 -4
  47. package/dist/cli/{db-JS4OEDNY.js → db-D6AMVOEW.js} +25 -25
  48. package/dist/cli/{describe-ZFKCZHOJ.js → describe-QW54QQNB.js} +17 -17
  49. package/dist/cli/{describe-H5F72Q3S.mjs → describe-TOMIAT37.mjs} +13 -13
  50. package/dist/cli/{executions-QPAKZTNQ.js → executions-N4FMGVSC.js} +6 -6
  51. package/dist/cli/{executions-25YKX4K3.mjs → executions-PVSF4HUF.mjs} +4 -4
  52. package/dist/cli/{feedback-Z3BES6L6.mjs → feedback-OB7NANZW.mjs} +3 -3
  53. package/dist/cli/{feedback-O63Z5O2R.js → feedback-WFSPCAI2.js} +7 -7
  54. package/dist/cli/git-4PMBJSH5.js +24 -0
  55. package/dist/cli/{git-V7S3IBLO.mjs → git-FHUSPAEU.mjs} +4 -4
  56. package/dist/cli/index.js +132 -132
  57. package/dist/cli/index.mjs +37 -37
  58. package/dist/cli/{legacy-noops-ZLLYEGQ6.js → legacy-noops-ECHNA5HN.js} +7 -7
  59. package/dist/cli/{legacy-noops-VRT5WZ5I.mjs → legacy-noops-HMK4BSCI.mjs} +4 -4
  60. package/dist/cli/{monitors-44KSWY3M.mjs → monitors-U7VQ3EZM.mjs} +5 -5
  61. package/dist/cli/{monitors-T7FKIDDY.js → monitors-XLLFNENH.js} +89 -89
  62. package/dist/cli/{org-BZE4CGIT.mjs → org-6H3USO5M.mjs} +4 -4
  63. package/dist/cli/{org-KPPG2KY4.js → org-QX6ER2HN.js} +66 -66
  64. package/dist/cli/{play-CHTP4NKR.mjs → play-MOB2WYOR.mjs} +11 -11
  65. package/dist/cli/{play-M5P74N3E.js → play-WNB7HBZK.js} +284 -284
  66. package/dist/cli/{providers-L3PK7NHU.js → providers-7M3DISKX.js} +7 -7
  67. package/dist/cli/{providers-CGLPOOXA.mjs → providers-CXEZ23E2.mjs} +4 -4
  68. package/dist/cli/{quickstart-LJ7HELWE.js → quickstart-CLJT4AZL.js} +5 -5
  69. package/dist/cli/{quickstart-NWG35AKK.mjs → quickstart-ZFCHKHF6.mjs} +3 -3
  70. package/dist/cli/search-4CCQCTVD.js +30 -0
  71. package/dist/cli/{search-723TVSNC.mjs → search-FVYWYIC3.mjs} +5 -5
  72. package/dist/cli/{secrets-ONN3Z5Y6.mjs → secrets-WAMPTQFC.mjs} +4 -4
  73. package/dist/cli/{secrets-SVSSLPWB.js → secrets-YRLKZQS5.js} +13 -13
  74. package/dist/cli/{sessions-7LYPPYUY.js → sessions-44J6WIVU.js} +5 -5
  75. package/dist/cli/{sessions-3KAEYQ3U.mjs → sessions-IQ332BJH.mjs} +4 -4
  76. package/dist/cli/{settings-2CBJI7FY.mjs → settings-22S6NIFQ.mjs} +9 -9
  77. package/dist/cli/{settings-JGJZO7EX.js → settings-4IJR2I2T.js} +76 -76
  78. package/dist/cli/{setup-AIAOO7R4.js → setup-3FWSRNOX.js} +43 -43
  79. package/dist/cli/{setup-BJCBDH34.mjs → setup-OZUPKKPW.mjs} +8 -8
  80. package/dist/cli/{skills-7QSQPQXX.mjs → skills-5CW3NFP3.mjs} +6 -6
  81. package/dist/cli/skills-LMNM6B5F.js +30 -0
  82. package/dist/cli/tools-AGBBDJ7P.js +45 -0
  83. package/dist/cli/{tools-I7LYXHDR.mjs → tools-NOPBDRGW.mjs} +13 -13
  84. package/dist/cli/{update-LKY5OJ56.mjs → update-IBULOV7P.mjs} +8 -8
  85. package/dist/cli/update-U3W6USVD.js +32 -0
  86. package/dist/cli/{workflow-DD32BU7Y.mjs → workflow-MVZT7MWT.mjs} +5 -5
  87. package/dist/cli/{workflow-Y4HGE7MB.js → workflow-Z7FW6GT2.js} +15 -15
  88. package/dist/index.js +6 -6
  89. package/dist/index.mjs +3 -3
  90. package/dist/install-integrity.json +80 -80
  91. package/dist/release.d.mts +1 -1
  92. package/dist/release.d.ts +1 -1
  93. package/dist/release.js +2 -2
  94. package/dist/release.mjs +1 -1
  95. package/package.json +1 -1
  96. package/dist/cli/auth-EAFWPDJG.js +0 -40
  97. package/dist/cli/git-KSRP3PNB.js +0 -24
  98. package/dist/cli/search-PESQULBG.js +0 -30
  99. package/dist/cli/skills-WECIGARR.js +0 -30
  100. package/dist/cli/tools-HTEMYXT2.js +0 -45
  101. package/dist/cli/update-J4LSPXHD.js +0 -32
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkVLJXYDGZjs = require('./chunk-VLJXYDGZ.js');
6
+ var _chunkQJLKYYPXjs = require('./chunk-QJLKYYPX.js');
7
7
 
8
8
 
9
9
 
@@ -288,8 +288,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
288
288
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
289
289
  var defaultBrowserCommandRunner = childProcess;
290
290
  function getAuthedHttpClient() {
291
- const config = _chunkVLJXYDGZjs.resolveConfig.call(void 0, );
292
- return { config, http: new (0, _chunkVLJXYDGZjs.HttpClient)(config) };
291
+ const config = _chunkQJLKYYPXjs.resolveConfig.call(void 0, );
292
+ return { config, http: new (0, _chunkQJLKYYPXjs.HttpClient)(config) };
293
293
  }
294
294
  function stableOsUserId() {
295
295
  try {
@@ -629,7 +629,7 @@ function collectLocalEnvInfo() {
629
629
  os: `${process.platform} ${process.arch}`,
630
630
  node_version: process.version,
631
631
  home_dir: homeDir,
632
- agent_runtime: _chunkVLJXYDGZjs.detectAgentRuntime.call(void 0, )
632
+ agent_runtime: _chunkQJLKYYPXjs.detectAgentRuntime.call(void 0, )
633
633
  };
634
634
  const env = process.env;
635
635
  const optional = {
@@ -876,9 +876,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
876
876
  }
877
877
  function withAgentCommandContext(value) {
878
878
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
879
- return _chunkVLJXYDGZjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
879
+ return _chunkQJLKYYPXjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
880
880
  ...valueRecord,
881
- command_context: _chunkVLJXYDGZjs.resolveCliCommandContext.call(void 0, )
881
+ command_context: _chunkQJLKYYPXjs.resolveCliCommandContext.call(void 0, )
882
882
  } : value;
883
883
  }
884
884
  function printJson(value, fields) {
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  recentSearchRef,
7
7
  registerDeprecatedSearchCommand
8
- } from "./chunk-MHMRLS7W.mjs";
8
+ } from "./chunk-LVJOFUU7.mjs";
9
9
  import {
10
10
  arrayField,
11
11
  formatModelDescription,
@@ -48,7 +48,7 @@ import {
48
48
  import {
49
49
  DeeplineClient,
50
50
  validateExecutionIdempotencyKey
51
- } from "./chunk-MNNMPS6J.mjs";
51
+ } from "./chunk-ZR2RLI4O.mjs";
52
52
  import {
53
53
  stableStringify
54
54
  } from "./chunk-UBKA33KY.mjs";
@@ -58,18 +58,18 @@ import {
58
58
  maybeAutoUpdateAndRelaunch,
59
59
  registerCompatibilityCatalog,
60
60
  runToolExecuteStage
61
- } from "./chunk-7DFM5YLL.mjs";
61
+ } from "./chunk-W3BE3CHK.mjs";
62
62
  import {
63
63
  isCliTraceEnabled,
64
64
  recordCliTrace,
65
65
  resolveCliMaintenancePolicy
66
- } from "./chunk-RLQDDJZZ.mjs";
66
+ } from "./chunk-LAWEURCT.mjs";
67
67
  import {
68
68
  checkSdkCompatibility,
69
69
  enforceSdkCompatibilityResponse,
70
70
  flushDeferredSkillsSyncNotices,
71
71
  syncSdkSkillsIfNeeded
72
- } from "./chunk-5WGW57KC.mjs";
72
+ } from "./chunk-RZSTT45F.mjs";
73
73
  import {
74
74
  printCommandEnvelope,
75
75
  printCompactJson,
@@ -77,12 +77,12 @@ import {
77
77
  printJsonError,
78
78
  renderCommandEnvelopeText,
79
79
  shouldEmitJson
80
- } from "./chunk-Y35FCRLQ.mjs";
80
+ } from "./chunk-526R2HON.mjs";
81
81
  import {
82
82
  readSdkSkillsLocalVersion,
83
83
  resolveConfig,
84
84
  sdkCliStateDirPath
85
- } from "./chunk-7AGGDRNR.mjs";
85
+ } from "./chunk-OMM54B3X.mjs";
86
86
  import {
87
87
  DeeplineError
88
88
  } from "./chunk-HBL4PM5Q.mjs";
@@ -971,7 +971,7 @@ Examples:
971
971
  process.exitCode = await narrowView();
972
972
  return;
973
973
  }
974
- const { describeAnything } = await import("./describe-H5F72Q3S.mjs");
974
+ const { describeAnything } = await import("./describe-TOMIAT37.mjs");
975
975
  process.exitCode = await describeAnything(
976
976
  toolId,
977
977
  {
@@ -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.459",
52
+ version: "0.3.460",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "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."
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-RLQDDJZZ.mjs";
3
+ } from "./chunk-LAWEURCT.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-5WGW57KC.mjs";
8
+ } from "./chunk-RZSTT45F.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-Y35FCRLQ.mjs";
3
+ } from "./chunk-526R2HON.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -3,15 +3,15 @@
3
3
  var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
4
4
 
5
5
 
6
- var _chunkLGOI2BRXjs = require('./chunk-LGOI2BRX.js');
6
+ var _chunkVTODQWQAjs = require('./chunk-VTODQWQA.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkU3VAYRULjs = require('./chunk-U3VAYRUL.js');
10
+ var _chunkBHGII2D6js = require('./chunk-BHGII2D6.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkVLJXYDGZjs = require('./chunk-VLJXYDGZ.js');
14
+ var _chunkQJLKYYPXjs = require('./chunk-QJLKYYPX.js');
15
15
 
16
16
 
17
17
 
@@ -5713,7 +5713,7 @@ var _fs = require('fs');
5713
5713
  var _path = require('path');
5714
5714
  var SEARCH_REF_TTL_MS = 15 * 6e4;
5715
5715
  function lastSearchPath() {
5716
- return _path.join.call(void 0, _chunkVLJXYDGZjs.sdkCliStateDirPath.call(void 0, _chunkVLJXYDGZjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
5716
+ return _path.join.call(void 0, _chunkQJLKYYPXjs.sdkCliStateDirPath.call(void 0, _chunkQJLKYYPXjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
5717
5717
  }
5718
5718
  function rememberSearchRef(searchRef) {
5719
5719
  try {
@@ -5877,7 +5877,7 @@ var OPTIONAL_COLUMNS = [
5877
5877
  ];
5878
5878
  function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5879
5879
  if (result.results.length === 0)
5880
- return _chunkU3VAYRULjs.renderCommandEnvelopeText.call(void 0, result);
5880
+ return _chunkBHGII2D6js.renderCommandEnvelopeText.call(void 0, result);
5881
5881
  const rows = result.results.map((item) => searchRow(item, summaryWidth));
5882
5882
  const kinds = new Set(rows.map((row) => row.kind));
5883
5883
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -5902,7 +5902,7 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5902
5902
  actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
5903
5903
  };
5904
5904
  const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
5905
- ${_chunkU3VAYRULjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5905
+ ${_chunkBHGII2D6js.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5906
5906
  const notes = rows.flatMap(
5907
5907
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
5908
5908
  );
@@ -5987,7 +5987,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
5987
5987
  console.error("--summary-width must be an integer of at least 2.");
5988
5988
  return 1;
5989
5989
  }
5990
- const { search_ref: searchRef, ...result } = await new (0, _chunkLGOI2BRXjs.DeeplineClient)().search({
5990
+ const { search_ref: searchRef, ...result } = await new (0, _chunkVTODQWQAjs.DeeplineClient)().search({
5991
5991
  query,
5992
5992
  types,
5993
5993
  exclude,
@@ -6001,7 +6001,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
6001
6001
  });
6002
6002
  if (searchRef) rememberSearchRef(searchRef);
6003
6003
  pointAtDescribe(result);
6004
- _chunkU3VAYRULjs.printCommandEnvelope.call(void 0, result, {
6004
+ _chunkBHGII2D6js.printCommandEnvelope.call(void 0, result, {
6005
6005
  json: options.json === true,
6006
6006
  text: renderSearchResults(result, summaryWidth)
6007
6007
  });
@@ -4,18 +4,18 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkACCQ5OM7js = require('./chunk-ACCQ5OM7.js');
7
+ var _chunk2PBN4SZEjs = require('./chunk-2PBN4SZE.js');
8
8
 
9
9
 
10
- var _chunkJOSOQJ5Pjs = require('./chunk-JOSOQJ5P.js');
10
+ var _chunk2WRO2UJ5js = require('./chunk-2WRO2UJ5.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkU3VAYRULjs = require('./chunk-U3VAYRUL.js');
14
+ var _chunkBHGII2D6js = require('./chunk-BHGII2D6.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkVLJXYDGZjs = require('./chunk-VLJXYDGZ.js');
18
+ var _chunkQJLKYYPXjs = require('./chunk-QJLKYYPX.js');
19
19
 
20
20
  // src/cli/compatibility-catalog.ts
21
21
  var readers = /* @__PURE__ */ new WeakMap();
@@ -42,7 +42,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
42
42
  async function reportAutoUpdateEvent(input) {
43
43
  let apiKey = "";
44
44
  try {
45
- apiKey = _chunkVLJXYDGZjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
45
+ apiKey = _chunkQJLKYYPXjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
46
46
  } catch (e2) {
47
47
  return;
48
48
  }
@@ -58,15 +58,15 @@ async function reportAutoUpdateEvent(input) {
58
58
  headers: {
59
59
  Authorization: `Bearer ${apiKey}`,
60
60
  "Content-Type": "application/json",
61
- "User-Agent": `deepline-ts-sdk/${_chunkVLJXYDGZjs.SDK_VERSION}`,
61
+ "User-Agent": `deepline-ts-sdk/${_chunkQJLKYYPXjs.SDK_VERSION}`,
62
62
  "X-Deepline-Client-Family": "sdk",
63
63
  "X-Deepline-CLI-Family": "sdk",
64
- "X-Deepline-CLI-Version": _chunkVLJXYDGZjs.SDK_VERSION,
65
- "X-Deepline-SDK-Version": _chunkVLJXYDGZjs.SDK_VERSION
64
+ "X-Deepline-CLI-Version": _chunkQJLKYYPXjs.SDK_VERSION,
65
+ "X-Deepline-SDK-Version": _chunkQJLKYYPXjs.SDK_VERSION
66
66
  },
67
67
  body: JSON.stringify({
68
68
  event: input.event,
69
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkVLJXYDGZjs.SDK_VERSION,
69
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkQJLKYYPXjs.SDK_VERSION,
70
70
  target_version: input.response.latest,
71
71
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
72
72
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -85,13 +85,13 @@ function envTruthy(name) {
85
85
  return value === "1" || value === "true" || value === "yes";
86
86
  }
87
87
  function shouldSkipSelfUpdate(policy) {
88
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkACCQ5OM7js.shouldRunCliAutoUpdate.call(void 0, ) || _chunkJOSOQJ5Pjs.isCiEnvironment.call(void 0, );
88
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk2PBN4SZEjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunk2WRO2UJ5js.isCiEnvironment.call(void 0, );
89
89
  }
90
90
  function isDowngradeAutoUpdateResponse(response) {
91
91
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
92
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkVLJXYDGZjs.SDK_VERSION;
92
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkQJLKYYPXjs.SDK_VERSION;
93
93
  if (!target) return false;
94
- return _chunkACCQ5OM7js.compareUpdateVersions.call(void 0, target, current) < 0;
94
+ return _chunk2PBN4SZEjs.compareUpdateVersions.call(void 0, target, current) < 0;
95
95
  }
96
96
  function relaunchCurrentCommand(plan, runtime = {}) {
97
97
  return new Promise((resolve) => {
@@ -144,7 +144,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
144
144
  }
145
145
  if (isDowngradeAutoUpdateResponse(response)) {
146
146
  const target = response.latest;
147
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkVLJXYDGZjs.SDK_VERSION;
147
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkQJLKYYPXjs.SDK_VERSION;
148
148
  process.stderr.write(
149
149
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
150
150
  `
@@ -152,21 +152,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
152
152
  return false;
153
153
  }
154
154
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
155
- const plan = _chunkACCQ5OM7js.resolveUpdatePlan.call(void 0, {
155
+ const plan = _chunk2PBN4SZEjs.resolveUpdatePlan.call(void 0, {
156
156
  packageSpec,
157
157
  requireVerifiedNpmOwnership: true,
158
158
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
159
159
  });
160
- if (!_chunkACCQ5OM7js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
160
+ if (!_chunk2PBN4SZEjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
161
161
  return false;
162
162
  }
163
163
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
164
164
  deferredAutoUpdate = async () => {
165
165
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
166
166
  };
167
- if (_chunkU3VAYRULjs.isJsonOutputMode.call(void 0, )) {
167
+ if (_chunkBHGII2D6js.isJsonOutputMode.call(void 0, )) {
168
168
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
169
- _chunkU3VAYRULjs.addJsonNotice.call(void 0, {
169
+ _chunkBHGII2D6js.addJsonNotice.call(void 0, {
170
170
  code: "sdk_update_queued",
171
171
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
172
172
  });
@@ -179,7 +179,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
179
179
  return true;
180
180
  }
181
181
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
182
- if (!_chunkACCQ5OM7js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
182
+ if (!_chunk2PBN4SZEjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
183
183
  const autoUpdate = response.auto_update;
184
184
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
185
185
  process.stderr.write(
@@ -192,7 +192,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
192
192
  event: "started",
193
193
  installKind: plan.kind
194
194
  });
195
- const updateResult = await _chunkACCQ5OM7js.runAutomaticUpdatePlan.call(void 0, plan);
195
+ const updateResult = await _chunk2PBN4SZEjs.runAutomaticUpdatePlan.call(void 0, plan);
196
196
  if (updateResult.status === "skipped_previous_failure") {
197
197
  void reportAutoUpdateEvent({
198
198
  baseUrl,
@@ -243,7 +243,7 @@ var _crypto = require('crypto');
243
243
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
244
244
  var activeToolExecuteCommand = null;
245
245
  function progressLine(line) {
246
- if (!_chunkU3VAYRULjs.isJsonOutputMode.call(void 0, )) console.error(line);
246
+ if (!_chunkBHGII2D6js.isJsonOutputMode.call(void 0, )) console.error(line);
247
247
  }
248
248
  function beginToolExecuteCommand() {
249
249
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -3,15 +3,15 @@ import {
3
3
  } from "./chunk-LJ5747UC.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-MNNMPS6J.mjs";
6
+ } from "./chunk-ZR2RLI4O.mjs";
7
7
  import {
8
8
  printCommandEnvelope,
9
9
  renderCommandEnvelopeText
10
- } from "./chunk-Y35FCRLQ.mjs";
10
+ } from "./chunk-526R2HON.mjs";
11
11
  import {
12
12
  resolveConfig,
13
13
  sdkCliStateDirPath
14
- } from "./chunk-7AGGDRNR.mjs";
14
+ } from "./chunk-OMM54B3X.mjs";
15
15
  import {
16
16
  __commonJS,
17
17
  __toESM
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkU3VAYRULjs = require('./chunk-U3VAYRUL.js');
3
+ var _chunkBHGII2D6js = require('./chunk-BHGII2D6.js');
4
4
 
5
5
  // src/cli/progress.ts
6
6
  var _worker_threads = require('worker_threads');
@@ -15,7 +15,7 @@ var CliProgress = (_class = class {
15
15
 
16
16
  // --json output is one JSON document: progress never renders under it.
17
17
  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);
18
- this.enabled = enabled && !_chunkU3VAYRULjs.isJsonOutputMode.call(void 0, );
18
+ this.enabled = enabled && !_chunkBHGII2D6js.isJsonOutputMode.call(void 0, );
19
19
  }
20
20
  phase(message) {
21
21
  if (!this.enabled || this.lastMessage === message) {
@@ -40,7 +40,7 @@ var CliProgress = (_class = class {
40
40
  this.settle("\u2717");
41
41
  }
42
42
  writeLogLine(line) {
43
- if (_chunkU3VAYRULjs.isJsonOutputMode.call(void 0, )) return;
43
+ if (_chunkBHGII2D6js.isJsonOutputMode.call(void 0, )) return;
44
44
  if (!this.enabled) {
45
45
  process.stderr.write(`${line}
46
46
  `);
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-LSJYTDEK.mjs";
4
+ } from "./chunk-S4Q2XCGM.mjs";
5
5
  import {
6
6
  runSkillsCommand
7
- } from "./chunk-KDDB5S6E.mjs";
7
+ } from "./chunk-NH6JSJW6.mjs";
8
8
  import {
9
9
  resolveShellSpawn
10
- } from "./chunk-5WGW57KC.mjs";
10
+ } from "./chunk-RZSTT45F.mjs";
11
11
  import {
12
12
  printCommandEnvelope
13
- } from "./chunk-Y35FCRLQ.mjs";
13
+ } from "./chunk-526R2HON.mjs";
14
14
  import {
15
15
  autoDetectBaseUrl
16
- } from "./chunk-7AGGDRNR.mjs";
16
+ } from "./chunk-OMM54B3X.mjs";
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  import { spawn, spawnSync } from "child_process";
@@ -11,10 +11,10 @@ import {
11
11
  skillsInstallLeasePath,
12
12
  skillsSourceUrl,
13
13
  syncSdkSkillsIfNeeded
14
- } from "./chunk-5WGW57KC.mjs";
14
+ } from "./chunk-RZSTT45F.mjs";
15
15
  import {
16
16
  printCommandEnvelope
17
- } from "./chunk-Y35FCRLQ.mjs";
17
+ } from "./chunk-526R2HON.mjs";
18
18
  import {
19
19
  SDK_VERSION,
20
20
  autoDetectBaseUrl,
@@ -22,7 +22,7 @@ import {
22
22
  ensureProjectPrivatePathsIgnored,
23
23
  resolveProjectPinTarget,
24
24
  sdkCliStateDirPath
25
- } from "./chunk-7AGGDRNR.mjs";
25
+ } from "./chunk-OMM54B3X.mjs";
26
26
 
27
27
  // src/cli/commands/skills.ts
28
28
  import { spawn } from "child_process";