deepline 0.3.411 → 0.3.413

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 (108) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/types.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +11 -11
  4. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +0 -1
  5. package/dist/cli/{auth-YD6ZTMB2.mjs → auth-3D4KKBVE.mjs} +4 -4
  6. package/dist/cli/auth-5NDVMF4F.js +40 -0
  7. package/dist/cli/{billing-ZT46GV4C.mjs → billing-2EOBIABD.mjs} +4 -4
  8. package/dist/cli/{billing-2L3MOB42.js → billing-EJQFNJSI.js} +73 -73
  9. package/dist/cli/{chunk-FRVPOXGB.js → chunk-2T2JTZT2.js} +79 -79
  10. package/dist/cli/{chunk-XJD6LZCO.mjs → chunk-4GEA7QZY.mjs} +1 -1
  11. package/dist/cli/{chunk-7DSMMCXP.js → chunk-5PE74ZQ4.js} +35 -35
  12. package/dist/cli/{chunk-4O4WNFFC.js → chunk-7GGLDFIU.js} +16 -16
  13. package/dist/cli/{chunk-IR3AKJAY.mjs → chunk-CUY5U4QK.mjs} +3 -3
  14. package/dist/cli/{chunk-M6OASCVL.mjs → chunk-D65C5V3L.mjs} +2 -2
  15. package/dist/cli/{chunk-JYHSEGRM.js → chunk-EGZUJT3T.js} +8 -8
  16. package/dist/cli/{chunk-OGSXENOF.mjs → chunk-GH4FIWEU.mjs} +1 -1
  17. package/dist/cli/{chunk-LWBM5FFL.js → chunk-GNDHF3ZI.js} +50 -50
  18. package/dist/cli/{chunk-RFES6Q2J.mjs → chunk-HCBTS7KU.mjs} +8 -8
  19. package/dist/cli/{chunk-2WUY3VNK.js → chunk-HNL6FVEL.js} +2 -2
  20. package/dist/cli/{chunk-TPFD4F5S.js → chunk-ID4QO6ME.js} +52 -52
  21. package/dist/cli/{chunk-5IGDNBG7.js → chunk-JXNCP2M5.js} +26 -26
  22. package/dist/cli/{chunk-NQWIZ5PZ.js → chunk-KSJS5F57.js} +20 -20
  23. package/dist/cli/{chunk-OZSC6CEW.js → chunk-LF5WZGBG.js} +4 -4
  24. package/dist/cli/{chunk-RMINBDYY.js → chunk-NCWUFF6U.js} +1 -1
  25. package/dist/cli/{chunk-5LRWWMRV.mjs → chunk-OT5HUMKM.mjs} +5 -5
  26. package/dist/cli/{chunk-E52TKKVI.mjs → chunk-OXUDZTF3.mjs} +1 -1
  27. package/dist/cli/{chunk-UAEVKAUR.mjs → chunk-PDW33FLZ.mjs} +1 -1
  28. package/dist/cli/{chunk-U5AQKE3T.js → chunk-QR4SD7RI.js} +10 -10
  29. package/dist/cli/{chunk-6AUE6JXY.js → chunk-REVPPQFK.js} +6 -6
  30. package/dist/cli/{chunk-G43JLBDE.mjs → chunk-V5L3WCSG.mjs} +3 -3
  31. package/dist/cli/{chunk-BJV3VSKE.mjs → chunk-VHBCEFS7.mjs} +1 -1
  32. package/dist/cli/{chunk-IPGV6VFA.mjs → chunk-VTL3NDUG.mjs} +3 -3
  33. package/dist/cli/{chunk-E4KBNNNB.mjs → chunk-VZ57YWB6.mjs} +1 -1
  34. package/dist/cli/{chunk-XAB47ZRV.mjs → chunk-WDQYMXDK.mjs} +4 -4
  35. package/dist/cli/{chunk-2NI6DHN7.js → chunk-X5FXFSHJ.js} +2 -2
  36. package/dist/cli/{chunk-JQMZUWNM.mjs → chunk-Y3MHIAMV.mjs} +2 -2
  37. package/dist/cli/{chunk-VGHWJL4W.js → chunk-YAM52S2K.js} +8 -8
  38. package/dist/cli/{chunk-4BA6ATHA.mjs → chunk-YCPKC54Z.mjs} +2 -2
  39. package/dist/cli/{chunk-ZHWBU36H.js → chunk-ZDY367QD.js} +6 -6
  40. package/dist/cli/{chunk-PO2VU6WV.mjs → chunk-ZGVFEBX7.mjs} +2 -2
  41. package/dist/cli/{csv-BKNRRW7D.mjs → csv-3GKD6ODW.mjs} +3 -3
  42. package/dist/cli/{csv-SVDP2EU7.js → csv-FVLNH7XW.js} +12 -12
  43. package/dist/cli/{db-LU4KLRM6.mjs → db-TFECIZXA.mjs} +4 -4
  44. package/dist/cli/{db-OQ6S7TTZ.js → db-YBLULEQY.js} +25 -25
  45. package/dist/cli/{describe-U4KOGDRA.mjs → describe-4CGSYQ6N.mjs} +12 -12
  46. package/dist/cli/{describe-45TGETKR.js → describe-Y4XESTCE.js} +16 -16
  47. package/dist/cli/describe-core.d.mts +1 -1
  48. package/dist/cli/describe-core.d.ts +1 -1
  49. package/dist/cli/{executions-VZN56VRC.js → executions-F7S72KOK.js} +6 -6
  50. package/dist/cli/{executions-2GAAUXLA.mjs → executions-GSXZKYBA.mjs} +4 -4
  51. package/dist/cli/{feedback-NS76B5GU.js → feedback-GCCC2YTL.js} +7 -7
  52. package/dist/cli/{feedback-XW5IWA5R.mjs → feedback-PMCZCNOK.mjs} +3 -3
  53. package/dist/cli/git-NOKHD2LT.js +24 -0
  54. package/dist/cli/{git-CLI66XP6.mjs → git-RNPGVB5K.mjs} +4 -4
  55. package/dist/cli/index.js +131 -131
  56. package/dist/cli/index.mjs +36 -36
  57. package/dist/cli/{legacy-noops-ODDOMLBL.mjs → legacy-noops-FNJK7BKV.mjs} +4 -4
  58. package/dist/cli/{legacy-noops-HCFB3ZOV.js → legacy-noops-J4CNOAAZ.js} +7 -7
  59. package/dist/cli/{monitors-7WXQ7JFT.js → monitors-IRPUBNV3.js} +84 -84
  60. package/dist/cli/{monitors-ZXX456TE.mjs → monitors-LZDR7Y5R.mjs} +4 -4
  61. package/dist/cli/{org-YUN3TLNP.mjs → org-CG5H5PYW.mjs} +4 -4
  62. package/dist/cli/{org-YLX5PHBQ.js → org-GMQQV4B4.js} +64 -64
  63. package/dist/cli/{play-LL73A7EP.mjs → play-AQJXC3UT.mjs} +15 -13
  64. package/dist/cli/{play-YGOXL52D.js → play-JGBMKAVZ.js} +288 -286
  65. package/dist/cli/{providers-RHCIU2PX.js → providers-6W2LUEB2.js} +7 -7
  66. package/dist/cli/{providers-35QSAUHL.mjs → providers-TU5QOBJL.mjs} +4 -4
  67. package/dist/cli/{quickstart-6BN3LCZH.mjs → quickstart-NIED5SQP.mjs} +3 -3
  68. package/dist/cli/{quickstart-ORMM4NRK.js → quickstart-XO4LNJIB.js} +5 -5
  69. package/dist/cli/search-46BMUNKI.js +30 -0
  70. package/dist/cli/{search-GAERWLSE.mjs → search-P322OCZS.mjs} +5 -5
  71. package/dist/cli/{secrets-FCL5PALY.mjs → secrets-36GD5ORQ.mjs} +4 -4
  72. package/dist/cli/{secrets-3AFCTGT7.js → secrets-5JX66PSU.js} +13 -13
  73. package/dist/cli/{sessions-RSSL7I7O.mjs → sessions-EU5EGYQA.mjs} +4 -4
  74. package/dist/cli/{sessions-3OEHEQG7.js → sessions-TRPCS2XC.js} +5 -5
  75. package/dist/cli/{settings-RX5K4I7H.js → settings-2GBXXYEC.js} +75 -75
  76. package/dist/cli/{settings-GE4NRE7Y.mjs → settings-XZCFPMJK.mjs} +8 -8
  77. package/dist/cli/{setup-N3ZNAEL5.js → setup-3R62S2HC.js} +42 -42
  78. package/dist/cli/{setup-X3RXGG4F.mjs → setup-62YVBUGJ.mjs} +7 -7
  79. package/dist/cli/{skills-5JEAJBDE.mjs → skills-GCRGKFZZ.mjs} +5 -5
  80. package/dist/cli/skills-GVWVI3WO.js +29 -0
  81. package/dist/cli/{tools-JOKUWEBZ.mjs → tools-PZ5BRPG4.mjs} +12 -12
  82. package/dist/cli/tools-VFSX2OY3.js +44 -0
  83. package/dist/cli/update-KHJC44FI.js +31 -0
  84. package/dist/cli/{update-UBHEVFR3.mjs → update-Y2VCL75Z.mjs} +7 -7
  85. package/dist/cli/{workflow-FR6EXAXF.mjs → workflow-THUIMN33.mjs} +5 -5
  86. package/dist/cli/{workflow-SZAVOHN6.js → workflow-ZSV2DPQ3.js} +15 -15
  87. package/dist/{client-74k4IPh6.d.mts → client-D2A39edb.d.mts} +1 -1
  88. package/dist/{client-C1IK1f8c.d.ts → client-D6w0_gN1.d.ts} +1 -1
  89. package/dist/index.d.mts +2 -2
  90. package/dist/index.d.ts +2 -2
  91. package/dist/index.js +6 -6
  92. package/dist/index.mjs +3 -3
  93. package/dist/install-integrity.json +80 -80
  94. package/dist/plays/play-description.d.mts +1 -1
  95. package/dist/plays/play-description.d.ts +1 -1
  96. package/dist/plays/run-request.d.mts +1 -1
  97. package/dist/plays/run-request.d.ts +1 -1
  98. package/dist/release.d.mts +1 -1
  99. package/dist/release.d.ts +1 -1
  100. package/dist/release.js +2 -2
  101. package/dist/release.mjs +1 -1
  102. package/package.json +1 -1
  103. package/dist/cli/auth-M7TBLW55.js +0 -40
  104. package/dist/cli/git-VGYRGFEN.js +0 -24
  105. package/dist/cli/search-EWDMUPHR.js +0 -30
  106. package/dist/cli/skills-VAAQVEQC.js +0 -29
  107. package/dist/cli/tools-BYYOT2DU.js +0 -44
  108. package/dist/cli/update-36G4ZD7B.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 _chunkZHWBU36Hjs = require('./chunk-ZHWBU36H.js');
3
+ var _chunkZDY367QDjs = require('./chunk-ZDY367QD.js');
4
4
 
5
5
 
6
6
 
@@ -17,13 +17,13 @@ var _chunkZHWBU36Hjs = require('./chunk-ZHWBU36H.js');
17
17
 
18
18
 
19
19
 
20
- var _chunkOZSC6CEWjs = require('./chunk-OZSC6CEW.js');
20
+ var _chunkLF5WZGBGjs = require('./chunk-LF5WZGBG.js');
21
21
 
22
22
 
23
23
  var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
24
24
 
25
25
 
26
- var _chunkRMINBDYYjs = require('./chunk-RMINBDYY.js');
26
+ var _chunkNCWUFF6Ujs = require('./chunk-NCWUFF6U.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, _chunkOZSC6CEWjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
61
+ return _path.join.call(void 0, _chunkLF5WZGBGjs.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: _chunkOZSC6CEWjs.SDK_VERSION,
70
- apiContract: _chunkOZSC6CEWjs.SDK_API_CONTRACT,
71
- apiMajor: _chunkOZSC6CEWjs.SDK_API_MAJOR,
69
+ version: _chunkLF5WZGBGjs.SDK_VERSION,
70
+ apiContract: _chunkLF5WZGBGjs.SDK_API_CONTRACT,
71
+ apiMajor: _chunkLF5WZGBGjs.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: _chunkOZSC6CEWjs.SDK_VERSION,
80
- apiContract: _chunkOZSC6CEWjs.SDK_API_CONTRACT,
79
+ version: _chunkLF5WZGBGjs.SDK_VERSION,
80
+ apiContract: _chunkLF5WZGBGjs.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, _chunkOZSC6CEWjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
105
+ const path = _path.join.call(void 0, _chunkLF5WZGBGjs.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", _chunkOZSC6CEWjs.SDK_VERSION);
189
+ url.searchParams.set("version", _chunkLF5WZGBGjs.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(_chunkRMINBDYYjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
197
+ String(_chunkNCWUFF6Ujs.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
- ..._chunkOZSC6CEWjs.deploymentProtectionHeaders.call(void 0, ),
210
- "User-Agent": `deepline-ts-sdk/${_chunkOZSC6CEWjs.SDK_VERSION}`,
211
- "X-Deepline-SDK-Version": _chunkOZSC6CEWjs.SDK_VERSION,
212
- "X-Deepline-API-Major": String(_chunkOZSC6CEWjs.SDK_API_MAJOR),
213
- "X-Deepline-API-Contract": _chunkOZSC6CEWjs.SDK_API_CONTRACT,
209
+ ..._chunkLF5WZGBGjs.deploymentProtectionHeaders.call(void 0, ),
210
+ "User-Agent": `deepline-ts-sdk/${_chunkLF5WZGBGjs.SDK_VERSION}`,
211
+ "X-Deepline-SDK-Version": _chunkLF5WZGBGjs.SDK_VERSION,
212
+ "X-Deepline-API-Major": String(_chunkLF5WZGBGjs.SDK_API_MAJOR),
213
+ "X-Deepline-API-Contract": _chunkLF5WZGBGjs.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 ${_chunkOZSC6CEWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
216
+ ...options.catalog ? { Authorization: `Bearer ${_chunkLF5WZGBGjs.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
@@ -370,7 +370,7 @@ function skillsSourceUrl(baseUrl) {
370
370
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
371
371
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
372
372
  const [firstSkillName, ...extraSkillNames] = skillNames;
373
- const agents = _nullishCoalesce(options.agents, () => ( _chunkOZSC6CEWjs.DEFAULT_SKILL_AGENTS));
373
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkLF5WZGBGjs.DEFAULT_SKILL_AGENTS));
374
374
  const values = {
375
375
  skills_index_url: skillsIndexUrl(baseUrl),
376
376
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -409,7 +409,7 @@ var CliProgress = (_class = class {
409
409
 
410
410
  // --json output is one JSON document: progress never renders under it.
411
411
  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);
412
- this.enabled = enabled && !_chunkZHWBU36Hjs.isJsonOutputMode.call(void 0, );
412
+ this.enabled = enabled && !_chunkZDY367QDjs.isJsonOutputMode.call(void 0, );
413
413
  }
414
414
  phase(message) {
415
415
  if (!this.enabled || this.lastMessage === message) {
@@ -434,7 +434,7 @@ var CliProgress = (_class = class {
434
434
  this.settle("\u2717");
435
435
  }
436
436
  writeLogLine(line) {
437
- if (_chunkZHWBU36Hjs.isJsonOutputMode.call(void 0, )) return;
437
+ if (_chunkZDY367QDjs.isJsonOutputMode.call(void 0, )) return;
438
438
  if (!this.enabled) {
439
439
  process.stderr.write(`${line}
440
440
  `);
@@ -736,7 +736,7 @@ function buildEnvironmentContext() {
736
736
  node_version: process.version,
737
737
  runtime: "Node.js",
738
738
  hostname: _os.hostname.call(void 0, ),
739
- agent_runtime: _chunkOZSC6CEWjs.detectAgentRuntime.call(void 0, )
739
+ agent_runtime: _chunkLF5WZGBGjs.detectAgentRuntime.call(void 0, )
740
740
  };
741
741
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
742
742
  const normalized = _optionalChain([process, 'access', _60 => _60.env, 'access', _61 => _61[key], 'optionalAccess', _62 => _62.trim, 'call', _63 => _63()]);
@@ -758,15 +758,15 @@ function buildEnvironmentContext() {
758
758
  }
759
759
  function failureReportHeaders(apiKey) {
760
760
  return {
761
- ..._chunkOZSC6CEWjs.deploymentProtectionHeaders.call(void 0, ),
761
+ ..._chunkLF5WZGBGjs.deploymentProtectionHeaders.call(void 0, ),
762
762
  Authorization: `Bearer ${apiKey}`,
763
763
  "Content-Type": "application/json",
764
- "User-Agent": `deepline-ts-sdk/${_chunkOZSC6CEWjs.SDK_VERSION}`,
764
+ "User-Agent": `deepline-ts-sdk/${_chunkLF5WZGBGjs.SDK_VERSION}`,
765
765
  "X-Deepline-Client-Family": "sdk",
766
766
  "X-Deepline-CLI-Family": "sdk",
767
- "X-Deepline-Agent-Runtime": _chunkOZSC6CEWjs.detectAgentRuntime.call(void 0, ),
768
- "X-Deepline-CLI-Version": _chunkOZSC6CEWjs.SDK_VERSION,
769
- "X-Deepline-SDK-Version": _chunkOZSC6CEWjs.SDK_VERSION
767
+ "X-Deepline-Agent-Runtime": _chunkLF5WZGBGjs.detectAgentRuntime.call(void 0, ),
768
+ "X-Deepline-CLI-Version": _chunkLF5WZGBGjs.SDK_VERSION,
769
+ "X-Deepline-SDK-Version": _chunkLF5WZGBGjs.SDK_VERSION
770
770
  };
771
771
  }
772
772
  async function postFailureReport(input) {
@@ -794,7 +794,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
794
794
  if (isFailureReportingDisabled()) return false;
795
795
  let apiKey = "";
796
796
  try {
797
- apiKey = _chunkOZSC6CEWjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
797
+ apiKey = _chunkLF5WZGBGjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
798
798
  } catch (e9) {
799
799
  return false;
800
800
  }
@@ -821,7 +821,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
821
821
  failure_code: failureCode2,
822
822
  failure_stage: failureStage,
823
823
  error_body: "Automatic Deepline skills installation failed.",
824
- cli_version: _chunkOZSC6CEWjs.SDK_VERSION,
824
+ cli_version: _chunkLF5WZGBGjs.SDK_VERSION,
825
825
  context: {
826
826
  environment: buildEnvironmentContext(),
827
827
  skills_sync: {
@@ -941,7 +941,7 @@ function buildFailureReport(input) {
941
941
  failure_kind: failureKind,
942
942
  failure_code: code,
943
943
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
944
- cli_version: _chunkOZSC6CEWjs.SDK_VERSION,
944
+ cli_version: _chunkLF5WZGBGjs.SDK_VERSION,
945
945
  context: {
946
946
  base_url: redactFailureText(input.baseUrl, 400),
947
947
  command_summary: sanitizeCommand(input.argv),
@@ -961,8 +961,8 @@ async function maybeReportSdkCliFailure(input) {
961
961
  if (isServerLoggedPlayRunStartFailure(input)) return false;
962
962
  const exitCode = resolvedExitCode(input);
963
963
  if (!shouldReport({ exitCode, error: input.error })) return false;
964
- const baseUrl = _chunkOZSC6CEWjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
965
- const apiKey = _chunkOZSC6CEWjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
964
+ const baseUrl = _chunkLF5WZGBGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
965
+ const apiKey = _chunkLF5WZGBGjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
966
966
  if (!apiKey) return false;
967
967
  return postFailureReport({
968
968
  baseUrl,
@@ -999,25 +999,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
999
999
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
1000
1000
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
1001
1001
  function shouldSkipSkillsSync() {
1002
- if (_chunkOZSC6CEWjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
1002
+ if (_chunkLF5WZGBGjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
1003
1003
  return true;
1004
1004
  }
1005
1005
  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()]);
1006
1006
  return value === "1" || value === "true" || value === "yes" || value === "on";
1007
1007
  }
1008
1008
  function unavailableSkillsNoticePath(baseUrl) {
1009
- return _path.join.call(void 0, _chunkOZSC6CEWjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
1009
+ return _path.join.call(void 0, _chunkLF5WZGBGjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
1010
1010
  }
1011
1011
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
1012
1012
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
1013
- var agentLeaseSegment = _chunkOZSC6CEWjs.skillsAgentPathSegment;
1013
+ var agentLeaseSegment = _chunkLF5WZGBGjs.skillsAgentPathSegment;
1014
1014
  function sortedLeaseAgents(agents) {
1015
- const expanded = agents.includes("*") ? [...agents, ..._chunkOZSC6CEWjs.KNOWN_SKILL_AGENTS] : agents;
1015
+ const expanded = agents.includes("*") ? [...agents, ..._chunkLF5WZGBGjs.KNOWN_SKILL_AGENTS] : agents;
1016
1016
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
1017
1017
  }
1018
1018
  function inProgressSkillsSyncPath(baseUrl, agent) {
1019
1019
  return _path.join.call(void 0,
1020
- _chunkOZSC6CEWjs.sdkCliStateDirPath.call(void 0, baseUrl),
1020
+ _chunkLF5WZGBGjs.sdkCliStateDirPath.call(void 0, baseUrl),
1021
1021
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
1022
1022
  );
1023
1023
  }
@@ -1176,7 +1176,7 @@ var SkillsStateUnavailableError = class extends Error {
1176
1176
  constructor(baseUrl, error) {
1177
1177
  const detail = error instanceof Error ? error.message : String(error);
1178
1178
  super(
1179
- `Could not save skills state in ${_chunkOZSC6CEWjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1179
+ `Could not save skills state in ${_chunkLF5WZGBGjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1180
1180
  );
1181
1181
  this.name = "SkillsStateUnavailableError";
1182
1182
  }
@@ -1261,7 +1261,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
1261
1261
  }
1262
1262
  function deferredSkillsNoticePath(baseUrl, agents) {
1263
1263
  return _path.join.call(void 0,
1264
- _chunkOZSC6CEWjs.sdkCliStateDirPath.call(void 0, baseUrl),
1264
+ _chunkLF5WZGBGjs.sdkCliStateDirPath.call(void 0, baseUrl),
1265
1265
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
1266
1266
  );
1267
1267
  }
@@ -1295,8 +1295,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
1295
1295
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
1296
1296
  }
1297
1297
  function flushDeferredSkillsSyncNotices(baseUrl) {
1298
- if (shouldSkipSkillsSync() || _chunkOZSC6CEWjs.hasActivePluginSkills.call(void 0, )) return;
1299
- const agents = _chunkOZSC6CEWjs.resolveAutoSyncSkillAgents.call(void 0, );
1298
+ if (shouldSkipSkillsSync() || _chunkLF5WZGBGjs.hasActivePluginSkills.call(void 0, )) return;
1299
+ const agents = _chunkLF5WZGBGjs.resolveAutoSyncSkillAgents.call(void 0, );
1300
1300
  if (agents.length === 0) return;
1301
1301
  flushDeferredSkillsNotices(baseUrl, agents);
1302
1302
  }
@@ -1312,7 +1312,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
1312
1312
  }
1313
1313
  function failedSkillsSyncPath(baseUrl, agents) {
1314
1314
  return _path.join.call(void 0,
1315
- _chunkOZSC6CEWjs.sdkCliStateDirPath.call(void 0, baseUrl),
1315
+ _chunkLF5WZGBGjs.sdkCliStateDirPath.call(void 0, baseUrl),
1316
1316
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
1317
1317
  );
1318
1318
  }
@@ -1341,7 +1341,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
1341
1341
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
1342
1342
  writeMarkedSkillsSyncVersion(path, remoteVersion);
1343
1343
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
1344
- const manualCommand = _optionalChain([probes, 'optionalAccess', _93 => _93.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkOZSC6CEWjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1344
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _93 => _93.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkLF5WZGBGjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1345
1345
  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.`;
1346
1346
  notice(
1347
1347
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -1429,7 +1429,7 @@ function buildSdkSkillNames(v1SkillNames2) {
1429
1429
  return sortedUniqueSkillNames(v1SkillNames2);
1430
1430
  }
1431
1431
  function isDefaultAgentSet(agents) {
1432
- return agents.length === _chunkOZSC6CEWjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkOZSC6CEWjs.DEFAULT_SKILL_AGENTS[index]);
1432
+ return agents.length === _chunkLF5WZGBGjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkLF5WZGBGjs.DEFAULT_SKILL_AGENTS[index]);
1433
1433
  }
1434
1434
  function safeSkillFilePath(value) {
1435
1435
  if (typeof value !== "string" || !value) return false;
@@ -1586,10 +1586,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
1586
1586
  method: "POST",
1587
1587
  headers: { "Content-Type": "application/json" },
1588
1588
  body: JSON.stringify({
1589
- sdk_cli: { version: _chunkOZSC6CEWjs.SDK_VERSION },
1589
+ sdk_cli: { version: _chunkLF5WZGBGjs.SDK_VERSION },
1590
1590
  skills: {
1591
1591
  version: localVersion,
1592
- capability: _chunkRMINBDYYjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1592
+ capability: _chunkNCWUFF6Ujs.SDK_RELEASE.packageCapabilities.skillsGuidance
1593
1593
  }
1594
1594
  }),
1595
1595
  signal: controller.signal
@@ -1628,7 +1628,7 @@ function probeInstallers(timeoutMs) {
1628
1628
  }
1629
1629
  function noInstallerProbePath(baseUrl) {
1630
1630
  return _path.join.call(void 0,
1631
- _chunkOZSC6CEWjs.sdkCliStateDirPath.call(void 0, baseUrl),
1631
+ _chunkLF5WZGBGjs.sdkCliStateDirPath.call(void 0, baseUrl),
1632
1632
  "skills-sync-no-installer-unknown.json"
1633
1633
  );
1634
1634
  }
@@ -1707,7 +1707,7 @@ function temporarySkillsSyncSkipCommand() {
1707
1707
  function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
1708
1708
  return resolveShellSpawn(install.command, install.args, platform2);
1709
1709
  }
1710
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkOZSC6CEWjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1710
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkLF5WZGBGjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1711
1711
  const commands = [];
1712
1712
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1713
1713
  if (probes.bunx === "available") {
@@ -1859,11 +1859,11 @@ function writeSdkSkillsStatusLine(line) {
1859
1859
  }
1860
1860
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1861
1861
  if (shouldSkipSkillsSync()) return;
1862
- const usingPluginSkills = _chunkOZSC6CEWjs.hasActivePluginSkills.call(void 0, );
1862
+ const usingPluginSkills = _chunkLF5WZGBGjs.hasActivePluginSkills.call(void 0, );
1863
1863
  if (usingPluginSkills) {
1864
1864
  return;
1865
1865
  }
1866
- const agents = _chunkOZSC6CEWjs.resolveAutoSyncSkillAgents.call(void 0, );
1866
+ const agents = _chunkLF5WZGBGjs.resolveAutoSyncSkillAgents.call(void 0, );
1867
1867
  if (options.mode === "detached" && agents.length > 0) {
1868
1868
  flushDeferredSkillsNotices(baseUrl, agents);
1869
1869
  }
@@ -1891,7 +1891,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1891
1891
  return;
1892
1892
  }
1893
1893
  try {
1894
- const localVersion = _chunkOZSC6CEWjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1894
+ const localVersion = _chunkLF5WZGBGjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1895
1895
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1896
1896
  needsUpdate: options.update.needs_update,
1897
1897
  remoteVersion: options.update.remote.version
@@ -2057,7 +2057,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
2057
2057
  }
2058
2058
  }
2059
2059
  runLegacySkillsCleanup(agents);
2060
- if (!_chunkOZSC6CEWjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
2060
+ if (!_chunkLF5WZGBGjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
2061
2061
  notice(
2062
2062
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
2063
2063
  );
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkZHWBU36Hjs = require('./chunk-ZHWBU36H.js');
5
+ var _chunkZDY367QDjs = require('./chunk-ZDY367QD.js');
6
6
 
7
7
 
8
- var _chunkOZSC6CEWjs = require('./chunk-OZSC6CEW.js');
8
+ var _chunkLF5WZGBGjs = require('./chunk-LF5WZGBG.js');
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
32
32
  return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
33
33
  }
34
34
  async function handleList(options) {
35
- const { http } = _chunkZHWBU36Hjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkZHWBU36Hjs.printCommandEnvelope.call(void 0,
39
+ _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
40
40
  {
41
41
  projects: payload.projects,
42
42
  count: payload.projects.length,
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
73
73
  }
74
74
  }
75
75
  async function handleStatus(options) {
76
- const { http } = _chunkZHWBU36Hjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
77
77
  const payload = await http.get("/api/v2/github/installation");
78
78
  const installation = payload.installation;
79
79
  const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
@@ -136,7 +136,7 @@ async function handleStatus(options) {
136
136
  )
137
137
  );
138
138
  }
139
- _chunkZHWBU36Hjs.printCommandEnvelope.call(void 0,
139
+ _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
140
140
  {
141
141
  installation,
142
142
  installations: _nullishCoalesce(payload.installations, () => ( [])),
@@ -147,10 +147,10 @@ async function handleStatus(options) {
147
147
  );
148
148
  }
149
149
  async function handleRepos(options) {
150
- const { http } = _chunkZHWBU36Hjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
151
151
  const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
152
152
  const payload = await http.get(`/api/v2/github/repos${query}`);
153
- _chunkZHWBU36Hjs.printCommandEnvelope.call(void 0,
153
+ _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
154
154
  {
155
155
  installation: payload.installation,
156
156
  repositories: payload.repositories,
@@ -171,7 +171,7 @@ async function handleRepos(options) {
171
171
  }
172
172
  async function resolveRepoId(repo, installation) {
173
173
  if (/^\d+$/.test(repo)) return Number(repo);
174
- const { http } = _chunkZHWBU36Hjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
175
175
  const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
176
176
  const payload = await http.get(
177
177
  `/api/v2/github/repos${query}`
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
188
188
  }
189
189
  async function handleLink(repo, options) {
190
190
  const repoId = await resolveRepoId(repo, options.installation);
191
- const { http } = _chunkZHWBU36Hjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
192
192
  const payload = await http.post("/api/v2/play-projects", {
193
193
  repoId,
194
194
  ...options.installation !== void 0 ? { installationId: options.installation } : {},
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
197
197
  ...options.branch !== void 0 ? { productionBranch: options.branch } : {},
198
198
  ...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
199
199
  });
200
- _chunkZHWBU36Hjs.printCommandEnvelope.call(void 0,
200
+ _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
201
201
  {
202
202
  project: payload.project,
203
203
  render: {
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
220
220
  );
221
221
  }
222
222
  async function handleGet(id, options) {
223
- const { http } = _chunkZHWBU36Hjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkZHWBU36Hjs.printCommandEnvelope.call(void 0,
227
+ _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
228
228
  {
229
229
  project: payload.project,
230
230
  render: {
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
240
240
  );
241
241
  }
242
242
  async function handleSet(id, options) {
243
- const { http } = _chunkZHWBU36Hjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
244
244
  const payload = await http.patch(
245
245
  `/api/v2/play-projects/${encodeURIComponent(id)}`,
246
246
  {
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
251
251
  ...options.disabled !== void 0 ? { disabled: options.disabled } : {}
252
252
  }
253
253
  );
254
- _chunkZHWBU36Hjs.printCommandEnvelope.call(void 0,
254
+ _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
255
255
  {
256
256
  project: payload.project,
257
257
  render: {
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
264
264
  );
265
265
  }
266
266
  async function handleUnlink(id, options) {
267
- const { http } = _chunkZHWBU36Hjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkZHWBU36Hjs.printCommandEnvelope.call(void 0,
269
+ _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
270
270
  {
271
271
  ok: true,
272
272
  id,
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
286
286
  );
287
287
  }
288
288
  async function handleConnect(options) {
289
- const baseUrl = _chunkOZSC6CEWjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkLF5WZGBGjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkZHWBU36Hjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkZHWBU36Hjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkZDY367QDjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
293
293
  {
294
294
  connectUrl,
295
295
  browser: opened,
@@ -311,7 +311,7 @@ async function handleConnect(options) {
311
311
  );
312
312
  }
313
313
  async function handleDeploymentsList(options) {
314
- const { http } = _chunkZHWBU36Hjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
315
315
  const query = new URLSearchParams();
316
316
  if (options.repo) query.set("projectId", options.repo);
317
317
  if (options.limit) query.set("limit", options.limit);
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
319
319
  const payload = await http.get(
320
320
  `/api/v2/deployments${suffix}`
321
321
  );
322
- _chunkZHWBU36Hjs.printCommandEnvelope.call(void 0,
322
+ _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  deployments: payload.deployments,
325
325
  count: payload.deployments.length,
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
363
363
  ]);
364
364
  }
365
365
  async function handleDeploymentGet(id, options) {
366
- const { http } = _chunkZHWBU36Hjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
367
367
  const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
368
368
  const playLines = renderDeploymentPlayLines(payload.deployment.results);
369
369
  const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
370
370
  const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
371
- _chunkZHWBU36Hjs.printCommandEnvelope.call(void 0,
371
+ _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
372
372
  {
373
373
  deployment: payload.deployment,
374
374
  project: payload.project,
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
387
387
  );
388
388
  }
389
389
  async function handleDeploymentCancel(id, options) {
390
- const { http } = _chunkZHWBU36Hjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkZDY367QDjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkZHWBU36Hjs.printCommandEnvelope.call(void 0,
392
+ _chunkZDY367QDjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -4,18 +4,18 @@
4
4
 
5
5
 
6
6
 
7
- var _chunk4O4WNFFCjs = require('./chunk-4O4WNFFC.js');
7
+ var _chunk7GGLDFIUjs = require('./chunk-7GGLDFIU.js');
8
8
 
9
9
 
10
- var _chunkTPFD4F5Sjs = require('./chunk-TPFD4F5S.js');
10
+ var _chunkID4QO6MEjs = require('./chunk-ID4QO6ME.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkZHWBU36Hjs = require('./chunk-ZHWBU36H.js');
14
+ var _chunkZDY367QDjs = require('./chunk-ZDY367QD.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkOZSC6CEWjs = require('./chunk-OZSC6CEW.js');
18
+ var _chunkLF5WZGBGjs = require('./chunk-LF5WZGBG.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 = _chunkOZSC6CEWjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
45
+ apiKey = _chunkLF5WZGBGjs.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/${_chunkOZSC6CEWjs.SDK_VERSION}`,
61
+ "User-Agent": `deepline-ts-sdk/${_chunkLF5WZGBGjs.SDK_VERSION}`,
62
62
  "X-Deepline-Client-Family": "sdk",
63
63
  "X-Deepline-CLI-Family": "sdk",
64
- "X-Deepline-CLI-Version": _chunkOZSC6CEWjs.SDK_VERSION,
65
- "X-Deepline-SDK-Version": _chunkOZSC6CEWjs.SDK_VERSION
64
+ "X-Deepline-CLI-Version": _chunkLF5WZGBGjs.SDK_VERSION,
65
+ "X-Deepline-SDK-Version": _chunkLF5WZGBGjs.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()]) || _chunkOZSC6CEWjs.SDK_VERSION,
69
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkLF5WZGBGjs.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") || !_chunk4O4WNFFCjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkTPFD4F5Sjs.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") || !_chunk7GGLDFIUjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkID4QO6MEjs.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()]) || _chunkOZSC6CEWjs.SDK_VERSION;
92
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkLF5WZGBGjs.SDK_VERSION;
93
93
  if (!target) return false;
94
- return _chunk4O4WNFFCjs.compareUpdateVersions.call(void 0, target, current) < 0;
94
+ return _chunk7GGLDFIUjs.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()]) || _chunkOZSC6CEWjs.SDK_VERSION;
147
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkLF5WZGBGjs.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 = _chunk4O4WNFFCjs.resolveUpdatePlan.call(void 0, {
155
+ const plan = _chunk7GGLDFIUjs.resolveUpdatePlan.call(void 0, {
156
156
  packageSpec,
157
157
  requireVerifiedNpmOwnership: true,
158
158
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
159
159
  });
160
- if (!_chunk4O4WNFFCjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
160
+ if (!_chunk7GGLDFIUjs.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 (_chunkZHWBU36Hjs.isJsonOutputMode.call(void 0, )) {
167
+ if (_chunkZDY367QDjs.isJsonOutputMode.call(void 0, )) {
168
168
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
169
- _chunkZHWBU36Hjs.addJsonNotice.call(void 0, {
169
+ _chunkZDY367QDjs.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 (!_chunk4O4WNFFCjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
182
+ if (!_chunk7GGLDFIUjs.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 _chunk4O4WNFFCjs.runAutomaticUpdatePlan.call(void 0, plan);
195
+ const updateResult = await _chunk7GGLDFIUjs.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 (!_chunkZHWBU36Hjs.isJsonOutputMode.call(void 0, )) console.error(line);
246
+ if (!_chunkZDY367QDjs.isJsonOutputMode.call(void 0, )) console.error(line);
247
247
  }
248
248
  function beginToolExecuteCommand() {
249
249
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;