deepline 0.3.518 → 0.3.519

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 (127) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +7 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +142 -68
  4. package/dist/cli/{artifacts-EAOGAB5K.js → artifacts-YRKH7KNC.js} +18 -18
  5. package/dist/cli/{artifacts-LGFPVJSE.mjs → artifacts-ZZULJ6X5.mjs} +6 -6
  6. package/dist/cli/auth-DF6WJLN2.js +43 -0
  7. package/dist/cli/{auth-FXXZIWLI.mjs → auth-WU2BDO3T.mjs} +5 -5
  8. package/dist/cli/{billing-4Q5WAB5D.mjs → billing-DG62VVXW.mjs} +6 -6
  9. package/dist/cli/{billing-ESZXVREA.js → billing-MUMMBMQK.js} +79 -79
  10. package/dist/cli/{chunk-HIJM54NU.js → chunk-25WXWSFS.js} +22 -22
  11. package/dist/cli/{chunk-XA7OTIYW.mjs → chunk-3CUIIVGR.mjs} +1 -1
  12. package/dist/cli/{chunk-K5GUMXRT.js → chunk-4ECU5DI3.js} +26 -26
  13. package/dist/cli/{chunk-ZJ3HEEGF.js → chunk-4PWBHYH4.js} +7 -7
  14. package/dist/cli/{chunk-BVQDUYXJ.js → chunk-52DFTRVC.js} +16 -16
  15. package/dist/cli/{chunk-W3UFYU63.mjs → chunk-5A2SIIPH.mjs} +1 -1
  16. package/dist/cli/{chunk-LTCNF6KG.mjs → chunk-A7W3CCU5.mjs} +5 -5
  17. package/dist/cli/{chunk-QX4QFGU7.mjs → chunk-AL7FDMD6.mjs} +1 -1
  18. package/dist/cli/{chunk-MNWLM3FA.mjs → chunk-AXA5DFY5.mjs} +1 -1
  19. package/dist/cli/{chunk-SNFRDG7G.js → chunk-BQYXIAJM.js} +3 -3
  20. package/dist/cli/{chunk-6IPKRQMH.js → chunk-C7ZD4LXZ.js} +2 -2
  21. package/dist/cli/{chunk-2DRW5ALK.mjs → chunk-CBMTBMIJ.mjs} +1 -1
  22. package/dist/cli/{chunk-KIYDPAGX.mjs → chunk-CRE3OGHH.mjs} +2 -2
  23. package/dist/cli/{chunk-M4DA3HTT.js → chunk-E6YWCXII.js} +16 -16
  24. package/dist/cli/{chunk-5X4P3MNG.js → chunk-EMV6EHK2.js} +9 -9
  25. package/dist/cli/{chunk-NQFVQCCV.js → chunk-F6XD4CRW.js} +1 -1
  26. package/dist/cli/{chunk-4YR3W2YB.mjs → chunk-FEJKDR67.mjs} +1 -1
  27. package/dist/cli/{chunk-DYWQ72ZQ.mjs → chunk-FJAGGBDR.mjs} +1 -1
  28. package/dist/cli/{chunk-TU5RR775.mjs → chunk-FTJ2D3XD.mjs} +3 -3
  29. package/dist/cli/{chunk-VHFICSS7.js → chunk-G2QD575P.js} +6 -6
  30. package/dist/cli/{chunk-GDMO6MMY.js → chunk-GO467AXG.js} +41 -41
  31. package/dist/cli/{chunk-RFUJBBJE.mjs → chunk-HKKC7J6K.mjs} +6 -6
  32. package/dist/cli/{chunk-3NMQ5EIV.js → chunk-HXPHRSNM.js} +14 -14
  33. package/dist/cli/{chunk-J2UOHFDH.js → chunk-I3ICKVYH.js} +53 -53
  34. package/dist/cli/{chunk-L4RQDVCN.mjs → chunk-IMIHYCJ5.mjs} +5 -5
  35. package/dist/cli/{chunk-TH2AQ4VG.mjs → chunk-J4X4RNSP.mjs} +3 -3
  36. package/dist/cli/{chunk-B26LSUCI.js → chunk-LKYLIZ5X.js} +2 -2
  37. package/dist/cli/{chunk-L256EFFV.mjs → chunk-MI5DKOBD.mjs} +2 -2
  38. package/dist/cli/{chunk-KQV75ZUA.mjs → chunk-N3LUYBOB.mjs} +10 -10
  39. package/dist/cli/{chunk-B2MSOFEI.mjs → chunk-NH22WUUG.mjs} +2 -2
  40. package/dist/cli/{chunk-V6DIYGTK.mjs → chunk-NIJE62ZD.mjs} +1 -1
  41. package/dist/cli/{chunk-2G6MARKU.js → chunk-O655PVT4.js} +7 -7
  42. package/dist/cli/{chunk-ENVSFG5E.js → chunk-ORNLTNBN.js} +44 -44
  43. package/dist/cli/{chunk-UY5JSZDA.js → chunk-P62S3ZMS.js} +11 -11
  44. package/dist/cli/{chunk-ST7WCRVQ.js → chunk-PK6VYYEY.js} +5 -5
  45. package/dist/cli/{chunk-YNIH4YTR.mjs → chunk-R3OAKFHJ.mjs} +5 -5
  46. package/dist/cli/{chunk-2LBKIVIW.mjs → chunk-RHQKDHCX.mjs} +2 -2
  47. package/dist/cli/{chunk-X6H3JGOP.mjs → chunk-RQ2BHYUM.mjs} +2 -2
  48. package/dist/cli/{chunk-JKSLK5PS.js → chunk-RQDD2VV3.js} +5 -5
  49. package/dist/cli/{chunk-RYHNKT4P.mjs → chunk-RU5JRQKJ.mjs} +2 -2
  50. package/dist/cli/{chunk-LLO5UYI5.js → chunk-S7R4O62I.js} +6 -6
  51. package/dist/cli/{chunk-WTQF2Z6X.mjs → chunk-SBF4K3QF.mjs} +4 -4
  52. package/dist/cli/{chunk-R4ZEJD5F.js → chunk-TT2XB433.js} +4 -4
  53. package/dist/cli/{chunk-RASCFMYI.mjs → chunk-UB2REJPL.mjs} +2 -2
  54. package/dist/cli/{chunk-XJ5NVLIP.js → chunk-UMPHUAGZ.js} +3 -3
  55. package/dist/cli/{chunk-7X32UR2E.js → chunk-XBS4RDKU.js} +96 -96
  56. package/dist/cli/{chunk-REEWKGQZ.js → chunk-XUCAH3LN.js} +10 -10
  57. package/dist/cli/{chunk-G6BD4K3K.mjs → chunk-Y7D6L4M7.mjs} +5 -5
  58. package/dist/cli/{chunk-KP5AAMJ3.mjs → chunk-YRU46P7H.mjs} +1 -1
  59. package/dist/cli/{chunk-ICHUGGZ3.js → chunk-ZQ23WQP3.js} +2 -2
  60. package/dist/cli/{csv-KRGEVVN7.mjs → csv-3TUJHAOW.mjs} +4 -4
  61. package/dist/cli/{csv-RLFOF4P4.js → csv-BKWIYPMK.js} +13 -13
  62. package/dist/cli/{db-NJC3NPOL.js → db-EJMJDKDA.js} +27 -27
  63. package/dist/cli/{db-2B6G4YO3.mjs → db-I75IQ7XI.mjs} +6 -6
  64. package/dist/cli/describe-EAK3MPTG.js +50 -0
  65. package/dist/cli/{describe-BLJFAM4U.mjs → describe-RUFLLRIN.mjs} +18 -18
  66. package/dist/cli/{executions-ENELLT7A.js → executions-TQJCMUUG.js} +8 -8
  67. package/dist/cli/{executions-25XYBGJ5.mjs → executions-VW3MYJEE.mjs} +6 -6
  68. package/dist/cli/{feedback-5OAKHVQE.mjs → feedback-76342G7E.mjs} +5 -5
  69. package/dist/cli/{feedback-UPI2JQPL.js → feedback-UFAEXH5B.js} +10 -10
  70. package/dist/cli/{git-MRYSIZV4.mjs → git-L5XKAODI.mjs} +5 -5
  71. package/dist/cli/git-OOCPCIGZ.js +25 -0
  72. package/dist/cli/index.js +141 -141
  73. package/dist/cli/index.mjs +43 -43
  74. package/dist/cli/{legacy-noops-OJD5KYUO.mjs → legacy-noops-DKAZ7JG3.mjs} +6 -6
  75. package/dist/cli/{legacy-noops-DHEWQKER.js → legacy-noops-DM66YISP.js} +9 -9
  76. package/dist/cli/{monitors-22AFKUQN.js → monitors-NKDIH4TY.js} +100 -100
  77. package/dist/cli/{monitors-24JM24NV.mjs → monitors-QXEJI54B.mjs} +7 -7
  78. package/dist/cli/{org-I2X7ZZGQ.mjs → org-KZQCVREB.mjs} +6 -6
  79. package/dist/cli/{org-HNYKUDJB.js → org-NKIIBUNO.js} +72 -72
  80. package/dist/cli/{pages-4LSYUDES.mjs → pages-E7IT5SWT.mjs} +6 -6
  81. package/dist/cli/{pages-OUSF2RNH.js → pages-UJUFCJEL.js} +18 -18
  82. package/dist/cli/{play-64XKQRA4.mjs → play-AKL5E2DF.mjs} +18 -18
  83. package/dist/cli/{play-ESY43EFW.js → play-SPI5MO67.js} +317 -317
  84. package/dist/cli/{providers-ENWSSRYR.js → providers-4NVQ3FSC.js} +9 -9
  85. package/dist/cli/{providers-VHK26CSP.mjs → providers-6HSSVI74.mjs} +6 -6
  86. package/dist/cli/{quickstart-4NNLQMD7.mjs → quickstart-EHLEHSMI.mjs} +4 -4
  87. package/dist/cli/{quickstart-TZ6IAUMS.js → quickstart-FEQD7S4Z.js} +6 -6
  88. package/dist/cli/{run-RR7KPWP7.js → run-GH6ECTJF.js} +41 -41
  89. package/dist/cli/{run-DOH3AMYU.mjs → run-IWVM7BD6.mjs} +23 -23
  90. package/dist/cli/search-NIRYA3VL.js +33 -0
  91. package/dist/cli/{search-YFOCGXWL.mjs → search-X4CDMN7J.mjs} +8 -8
  92. package/dist/cli/{search-output-AOTV6C36.js → search-output-IIYMGZTQ.js} +6 -6
  93. package/dist/cli/{search-output-IV2HSRLQ.mjs → search-output-PJ7N5WUQ.mjs} +4 -4
  94. package/dist/cli/{secrets-GMFCHPTV.mjs → secrets-4YPMC7XZ.mjs} +6 -6
  95. package/dist/cli/{secrets-ATPM2AXV.js → secrets-QPP2FXID.js} +15 -15
  96. package/dist/cli/sessions-5I2IFTW7.js +18 -0
  97. package/dist/cli/{sessions-X3M4H2WY.mjs → sessions-BEOI47VZ.mjs} +6 -6
  98. package/dist/cli/{settings-4V52LMWP.js → settings-FZDONKPW.js} +86 -86
  99. package/dist/cli/{settings-GRXFOR5V.mjs → settings-VHULXNY3.mjs} +13 -13
  100. package/dist/cli/{setup-63WAXGPH.mjs → setup-5IV3NHGD.mjs} +10 -10
  101. package/dist/cli/{setup-OCCXAVQL.js → setup-LZ6IN5JS.js} +50 -50
  102. package/dist/cli/{skills-IVGTO4NE.mjs → skills-FZAFBW5J.mjs} +8 -8
  103. package/dist/cli/skills-WJWLFSHI.js +37 -0
  104. package/dist/cli/tools-SH35NRGU.js +57 -0
  105. package/dist/cli/{tools-KGHX6MLB.mjs → tools-TLBH3RFK.mjs} +17 -17
  106. package/dist/cli/{update-2OBZ4IUJ.mjs → update-KPLIZYOV.mjs} +10 -10
  107. package/dist/cli/update-MA46YSGR.js +35 -0
  108. package/dist/cli/{workflow-HGLO4V7R.js → workflow-ACHPT3DD.js} +17 -17
  109. package/dist/cli/{workflow-ZZOATQYV.mjs → workflow-GYJOYYWK.mjs} +7 -7
  110. package/dist/index.js +9 -9
  111. package/dist/index.mjs +6 -6
  112. package/dist/install-integrity.json +104 -104
  113. package/dist/release.d.mts +1 -1
  114. package/dist/release.d.ts +1 -1
  115. package/dist/release.js +2 -2
  116. package/dist/release.mjs +1 -1
  117. package/dist/server.js +5 -5
  118. package/dist/server.mjs +3 -3
  119. package/package.json +1 -1
  120. package/dist/cli/auth-CLNPH65D.js +0 -43
  121. package/dist/cli/describe-DRMUODJN.js +0 -50
  122. package/dist/cli/git-P4OPT6Q7.js +0 -25
  123. package/dist/cli/search-SE6PM33H.js +0 -33
  124. package/dist/cli/sessions-NN3H2KSE.js +0 -18
  125. package/dist/cli/skills-6XXVKQP4.js +0 -37
  126. package/dist/cli/tools-5COWG5TH.js +0 -57
  127. package/dist/cli/update-SQD25OCL.js +0 -35
@@ -4,21 +4,21 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkBVQDUYXJjs = require('./chunk-BVQDUYXJ.js');
7
+ var _chunk52DFTRVCjs = require('./chunk-52DFTRVC.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkENVSFG5Ejs = require('./chunk-ENVSFG5E.js');
11
+ var _chunkORNLTNBNjs = require('./chunk-ORNLTNBN.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkZJ3HEEGFjs = require('./chunk-ZJ3HEEGF.js');
15
+ var _chunk4PWBHYH4js = require('./chunk-4PWBHYH4.js');
16
16
 
17
17
 
18
- var _chunkSNFRDG7Gjs = require('./chunk-SNFRDG7G.js');
18
+ var _chunkBQYXIAJMjs = require('./chunk-BQYXIAJM.js');
19
19
 
20
20
 
21
- var _chunkR4ZEJD5Fjs = require('./chunk-R4ZEJD5F.js');
21
+ var _chunkTT2XB433js = require('./chunk-TT2XB433.js');
22
22
 
23
23
  // src/cli/compatibility-catalog.ts
24
24
  var readers = /* @__PURE__ */ new WeakMap();
@@ -45,7 +45,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
45
45
  async function reportAutoUpdateEvent(input) {
46
46
  let apiKey = "";
47
47
  try {
48
- apiKey = _chunkSNFRDG7Gjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
48
+ apiKey = _chunkBQYXIAJMjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
49
49
  } catch (e2) {
50
50
  return;
51
51
  }
@@ -61,15 +61,15 @@ async function reportAutoUpdateEvent(input) {
61
61
  headers: {
62
62
  Authorization: `Bearer ${apiKey}`,
63
63
  "Content-Type": "application/json",
64
- "User-Agent": `deepline-ts-sdk/${_chunkR4ZEJD5Fjs.SDK_VERSION}`,
64
+ "User-Agent": `deepline-ts-sdk/${_chunkTT2XB433js.SDK_VERSION}`,
65
65
  "X-Deepline-Client-Family": "sdk",
66
66
  "X-Deepline-CLI-Family": "sdk",
67
- "X-Deepline-CLI-Version": _chunkR4ZEJD5Fjs.SDK_VERSION,
68
- "X-Deepline-SDK-Version": _chunkR4ZEJD5Fjs.SDK_VERSION
67
+ "X-Deepline-CLI-Version": _chunkTT2XB433js.SDK_VERSION,
68
+ "X-Deepline-SDK-Version": _chunkTT2XB433js.SDK_VERSION
69
69
  },
70
70
  body: JSON.stringify({
71
71
  event: input.event,
72
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkR4ZEJD5Fjs.SDK_VERSION,
72
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkTT2XB433js.SDK_VERSION,
73
73
  target_version: input.response.latest,
74
74
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
75
75
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -88,13 +88,13 @@ function envTruthy(name) {
88
88
  return value === "1" || value === "true" || value === "yes";
89
89
  }
90
90
  function shouldSkipSelfUpdate(policy) {
91
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkBVQDUYXJjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkENVSFG5Ejs.isCiEnvironment.call(void 0, );
91
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk52DFTRVCjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkORNLTNBNjs.isCiEnvironment.call(void 0, );
92
92
  }
93
93
  function isDowngradeAutoUpdateResponse(response) {
94
94
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
95
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkR4ZEJD5Fjs.SDK_VERSION;
95
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkTT2XB433js.SDK_VERSION;
96
96
  if (!target) return false;
97
- return _chunkBVQDUYXJjs.compareUpdateVersions.call(void 0, target, current) < 0;
97
+ return _chunk52DFTRVCjs.compareUpdateVersions.call(void 0, target, current) < 0;
98
98
  }
99
99
  function relaunchCurrentCommand(plan, runtime = {}) {
100
100
  return new Promise((resolve) => {
@@ -147,7 +147,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
147
147
  }
148
148
  if (isDowngradeAutoUpdateResponse(response)) {
149
149
  const target = response.latest;
150
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkR4ZEJD5Fjs.SDK_VERSION;
150
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkTT2XB433js.SDK_VERSION;
151
151
  process.stderr.write(
152
152
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
153
153
  `
@@ -155,21 +155,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
155
155
  return false;
156
156
  }
157
157
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
158
- const plan = _chunkBVQDUYXJjs.resolveUpdatePlan.call(void 0, {
158
+ const plan = _chunk52DFTRVCjs.resolveUpdatePlan.call(void 0, {
159
159
  packageSpec,
160
160
  requireVerifiedNpmOwnership: true,
161
161
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
162
162
  });
163
- if (!_chunkBVQDUYXJjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
163
+ if (!_chunk52DFTRVCjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
164
164
  return false;
165
165
  }
166
166
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
167
167
  deferredAutoUpdate = async () => {
168
168
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
169
169
  };
170
- if (_chunkZJ3HEEGFjs.isJsonOutputMode.call(void 0, )) {
170
+ if (_chunk4PWBHYH4js.isJsonOutputMode.call(void 0, )) {
171
171
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
172
- _chunkZJ3HEEGFjs.addJsonNotice.call(void 0, {
172
+ _chunk4PWBHYH4js.addJsonNotice.call(void 0, {
173
173
  code: "sdk_update_queued",
174
174
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
175
175
  });
@@ -182,7 +182,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
182
182
  return true;
183
183
  }
184
184
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
185
- if (!_chunkBVQDUYXJjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
185
+ if (!_chunk52DFTRVCjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
186
186
  const autoUpdate = response.auto_update;
187
187
  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";
188
188
  process.stderr.write(
@@ -195,7 +195,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
195
195
  event: "started",
196
196
  installKind: plan.kind
197
197
  });
198
- const updateResult = await _chunkBVQDUYXJjs.runAutomaticUpdatePlan.call(void 0, plan);
198
+ const updateResult = await _chunk52DFTRVCjs.runAutomaticUpdatePlan.call(void 0, plan);
199
199
  if (updateResult.status === "skipped_previous_failure") {
200
200
  void reportAutoUpdateEvent({
201
201
  baseUrl,
@@ -233,7 +233,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
233
233
  exitCode: 0
234
234
  });
235
235
  try {
236
- await _chunkENVSFG5Ejs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
236
+ await _chunkORNLTNBNjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
237
237
  mode: "detached",
238
238
  update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
239
239
  afterCliUpdate: {
@@ -260,7 +260,7 @@ var _crypto = require('crypto');
260
260
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
261
261
  var activeToolExecuteCommand = null;
262
262
  function progressLine(line) {
263
- if (!_chunkZJ3HEEGFjs.isJsonOutputMode.call(void 0, )) console.error(line);
263
+ if (!_chunk4PWBHYH4js.isJsonOutputMode.call(void 0, )) console.error(line);
264
264
  }
265
265
  function beginToolExecuteCommand() {
266
266
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-KIYDPAGX.mjs";
3
+ } from "./chunk-CRE3OGHH.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkZJ3HEEGFjs = require('./chunk-ZJ3HEEGF.js');
5
+ var _chunk4PWBHYH4js = require('./chunk-4PWBHYH4.js');
6
6
 
7
7
 
8
- var _chunkSNFRDG7Gjs = require('./chunk-SNFRDG7G.js');
8
+ var _chunkBQYXIAJMjs = require('./chunk-BQYXIAJM.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 } = _chunkZJ3HEEGFjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunk4PWBHYH4js.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkZJ3HEEGFjs.printCommandEnvelope.call(void 0,
39
+ _chunk4PWBHYH4js.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 } = _chunkZJ3HEEGFjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunk4PWBHYH4js.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
- _chunkZJ3HEEGFjs.printCommandEnvelope.call(void 0,
139
+ _chunk4PWBHYH4js.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 } = _chunkZJ3HEEGFjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunk4PWBHYH4js.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
- _chunkZJ3HEEGFjs.printCommandEnvelope.call(void 0,
153
+ _chunk4PWBHYH4js.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 } = _chunkZJ3HEEGFjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunk4PWBHYH4js.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 } = _chunkZJ3HEEGFjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunk4PWBHYH4js.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
- _chunkZJ3HEEGFjs.printCommandEnvelope.call(void 0,
200
+ _chunk4PWBHYH4js.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 } = _chunkZJ3HEEGFjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunk4PWBHYH4js.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkZJ3HEEGFjs.printCommandEnvelope.call(void 0,
227
+ _chunk4PWBHYH4js.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 } = _chunkZJ3HEEGFjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunk4PWBHYH4js.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
- _chunkZJ3HEEGFjs.printCommandEnvelope.call(void 0,
254
+ _chunk4PWBHYH4js.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 } = _chunkZJ3HEEGFjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunk4PWBHYH4js.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkZJ3HEEGFjs.printCommandEnvelope.call(void 0,
269
+ _chunk4PWBHYH4js.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 = _chunkSNFRDG7Gjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkBQYXIAJMjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkZJ3HEEGFjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkZJ3HEEGFjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunk4PWBHYH4js.openInBrowser.call(void 0, connectUrl);
292
+ _chunk4PWBHYH4js.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 } = _chunkZJ3HEEGFjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunk4PWBHYH4js.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
- _chunkZJ3HEEGFjs.printCommandEnvelope.call(void 0,
322
+ _chunk4PWBHYH4js.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 } = _chunkZJ3HEEGFjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunk4PWBHYH4js.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
- _chunkZJ3HEEGFjs.printCommandEnvelope.call(void 0,
371
+ _chunk4PWBHYH4js.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 } = _chunkZJ3HEEGFjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunk4PWBHYH4js.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkZJ3HEEGFjs.printCommandEnvelope.call(void 0,
392
+ _chunk4PWBHYH4js.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkSNFRDG7Gjs = require('./chunk-SNFRDG7G.js');
5
+ var _chunkBQYXIAJMjs = require('./chunk-BQYXIAJM.js');
6
6
 
7
7
 
8
- var _chunkR4ZEJD5Fjs = require('./chunk-R4ZEJD5F.js');
8
+ var _chunkTT2XB433js = require('./chunk-TT2XB433.js');
9
9
 
10
10
 
11
11
 
@@ -294,8 +294,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
294
294
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
295
295
  var defaultBrowserCommandRunner = childProcess;
296
296
  function getAuthedHttpClient() {
297
- const config = _chunkSNFRDG7Gjs.resolveConfig.call(void 0, );
298
- return { config, http: new (0, _chunkSNFRDG7Gjs.HttpClient)(config) };
297
+ const config = _chunkBQYXIAJMjs.resolveConfig.call(void 0, );
298
+ return { config, http: new (0, _chunkBQYXIAJMjs.HttpClient)(config) };
299
299
  }
300
300
  function stableOsUserId() {
301
301
  try {
@@ -635,7 +635,7 @@ function collectLocalEnvInfo() {
635
635
  os: `${process.platform} ${process.arch}`,
636
636
  node_version: process.version,
637
637
  home_dir: homeDir,
638
- agent_runtime: _chunkR4ZEJD5Fjs.detectAgentRuntime.call(void 0, )
638
+ agent_runtime: _chunkTT2XB433js.detectAgentRuntime.call(void 0, )
639
639
  };
640
640
  const env = process.env;
641
641
  const optional = {
@@ -882,9 +882,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
882
882
  }
883
883
  function withAgentCommandContext(value) {
884
884
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
885
- return _chunkR4ZEJD5Fjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
885
+ return _chunkTT2XB433js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
886
886
  ...valueRecord,
887
- command_context: _chunkSNFRDG7Gjs.resolveCliCommandContext.call(void 0, )
887
+ command_context: _chunkBQYXIAJMjs.resolveCliCommandContext.call(void 0, )
888
888
  } : value;
889
889
  }
890
890
  function printJson(value, fields) {
@@ -1,19 +1,19 @@
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 _chunkB26LSUCIjs = require('./chunk-B26LSUCI.js');
4
+ var _chunkLKYLIZ5Xjs = require('./chunk-LKYLIZ5X.js');
5
5
 
6
6
 
7
- var _chunkGDMO6MMYjs = require('./chunk-GDMO6MMY.js');
7
+ var _chunkGO467AXGjs = require('./chunk-GO467AXG.js');
8
8
 
9
9
 
10
- var _chunkENVSFG5Ejs = require('./chunk-ENVSFG5E.js');
10
+ var _chunkORNLTNBNjs = require('./chunk-ORNLTNBN.js');
11
11
 
12
12
 
13
- var _chunkZJ3HEEGFjs = require('./chunk-ZJ3HEEGF.js');
13
+ var _chunk4PWBHYH4js = require('./chunk-4PWBHYH4.js');
14
14
 
15
15
 
16
- var _chunkSNFRDG7Gjs = require('./chunk-SNFRDG7G.js');
16
+ var _chunkBQYXIAJMjs = require('./chunk-BQYXIAJM.js');
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  var _child_process = require('child_process');
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
495
495
  }
496
496
  function resolveNpmGlobalPrefix(env) {
497
497
  try {
498
- const plan = _chunkENVSFG5Ejs.resolveShellSpawn.call(void 0,
498
+ const plan = _chunkORNLTNBNjs.resolveShellSpawn.call(void 0,
499
499
  "npm",
500
500
  ["prefix", "-g"],
501
501
  process.platform,
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
556
556
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
557
557
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
558
558
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
559
- const npmVersion = options.npmVersion === void 0 ? _chunkB26LSUCIjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkB26LSUCIjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
559
+ const npmVersion = options.npmVersion === void 0 ? _chunkLKYLIZ5Xjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunkLKYLIZ5Xjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
561
561
  const args = installPrefix ? [
562
562
  "install",
563
563
  "-g",
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
567
567
  packageSpec
568
568
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
569
569
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
570
- _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkSNFRDG7Gjs.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkBQYXIAJMjs.autoDetectBaseUrl.call(void 0, )
571
571
  );
572
572
  return {
573
573
  kind: "npm-global",
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
816
816
  function runCommand(command, args, env = process.env) {
817
817
  return new Promise((resolveResult) => {
818
818
  let output = "";
819
- const plan = _chunkENVSFG5Ejs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunkORNLTNBNjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
820
820
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
821
821
  stdio: ["inherit", "pipe", "pipe"],
822
822
  shell: plan.shell,
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1199
1199
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1200
1200
  }
1201
1201
  async function runUpdateCommand(options, dependencies = {}) {
1202
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkSNFRDG7Gjs.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkBQYXIAJMjs.autoDetectBaseUrl));
1203
1203
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1204
1204
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1205
1205
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1206
1206
  const originalWrite = process.stdout.write.bind(process.stdout);
1207
1207
  process.stdout.write = (() => true);
1208
1208
  try {
1209
- const exitCode = await _chunkGDMO6MMYjs.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkGO467AXGjs.runSkillsCommand.call(void 0, { json: true });
1210
1210
  if (exitCode !== 0) {
1211
1211
  throw new Error(
1212
1212
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1277
1277
  ]
1278
1278
  };
1279
1279
  if (options.json && !options.executeWithJson) {
1280
- _chunkZJ3HEEGFjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunk4PWBHYH4js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunkZJ3HEEGFjs.printCommandEnvelope.call(void 0,
1284
+ _chunk4PWBHYH4js.printCommandEnvelope.call(void 0,
1285
1285
  {
1286
1286
  ...plan,
1287
1287
  render: {
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1294
1294
  return 0;
1295
1295
  }
1296
1296
  if (plan.kind === "source" || plan.kind === "homebrew") {
1297
- _chunkZJ3HEEGFjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunk4PWBHYH4js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1298
1298
  return 0;
1299
1299
  }
1300
1300
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills install
1324
1324
  );
1325
1325
  }
1326
1326
  if (options.executeWithJson && options.json) {
1327
- _chunkZJ3HEEGFjs.printCommandEnvelope.call(void 0,
1327
+ _chunk4PWBHYH4js.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-ZPGGW27Q.mjs";
18
18
  import {
19
19
  SDK_RELEASE
20
- } from "./chunk-V6DIYGTK.mjs";
20
+ } from "./chunk-NIJE62ZD.mjs";
21
21
 
22
22
  // src/version.ts
23
23
  var SDK_VERSION = SDK_RELEASE.version;
@@ -4,21 +4,21 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-L4RQDVCN.mjs";
7
+ } from "./chunk-IMIHYCJ5.mjs";
8
8
  import {
9
9
  isCiEnvironment,
10
10
  syncSdkSkillsIfNeeded
11
- } from "./chunk-YNIH4YTR.mjs";
11
+ } from "./chunk-R3OAKFHJ.mjs";
12
12
  import {
13
13
  addJsonNotice,
14
14
  isJsonOutputMode
15
- } from "./chunk-KIYDPAGX.mjs";
15
+ } from "./chunk-CRE3OGHH.mjs";
16
16
  import {
17
17
  resolveApiKeyForBaseUrl
18
- } from "./chunk-2DRW5ALK.mjs";
18
+ } from "./chunk-CBMTBMIJ.mjs";
19
19
  import {
20
20
  SDK_VERSION
21
- } from "./chunk-W3UFYU63.mjs";
21
+ } from "./chunk-5A2SIIPH.mjs";
22
22
 
23
23
  // src/cli/compatibility-catalog.ts
24
24
  var readers = /* @__PURE__ */ new WeakMap();
@@ -8,7 +8,7 @@ import {
8
8
  csvStringFromRows,
9
9
  markJsonOutputHandled,
10
10
  writeRawStderr
11
- } from "./chunk-KIYDPAGX.mjs";
11
+ } from "./chunk-CRE3OGHH.mjs";
12
12
 
13
13
  // src/cli/describe-options.ts
14
14
  function addDescribeOptions(command, options = {}) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-YNIH4YTR.mjs";
3
+ } from "./chunk-R3OAKFHJ.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkR4ZEJD5Fjs = require('./chunk-R4ZEJD5F.js');
4
+ var _chunkTT2XB433js = require('./chunk-TT2XB433.js');
5
5
 
6
6
 
7
7
  var _chunkT2N3B7IQjs = require('./chunk-T2N3B7IQ.js');
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
711
711
  }
712
712
  }
713
713
  function resolveAutoSyncSkillAgents() {
714
- switch (_chunkR4ZEJD5Fjs.detectAgentRuntime.call(void 0, )) {
714
+ switch (_chunkTT2XB433js.detectAgentRuntime.call(void 0, )) {
715
715
  case "codex":
716
716
  return ["codex"];
717
717
  case "claude_code":
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
781
781
  }
782
782
 
783
783
  // src/http.ts
784
- var HttpClient2 = class extends _chunkR4ZEJD5Fjs.HttpClient {
784
+ var HttpClient2 = class extends _chunkTT2XB433js.HttpClient {
785
785
  constructor(config) {
786
786
  super(config, readSdkSkillsLocalVersion);
787
787
  }
@@ -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(); } }
2
2
 
3
- var _chunkZJ3HEEGFjs = require('./chunk-ZJ3HEEGF.js');
3
+ var _chunk4PWBHYH4js = require('./chunk-4PWBHYH4.js');
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  var _commander = require('commander');
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
33
33
  sinceStartMs: now - cliTraceStartedAt,
34
34
  ...event
35
35
  };
36
- _chunkZJ3HEEGFjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunk4PWBHYH4js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HttpClient,
3
3
  detectAgentRuntime
4
- } from "./chunk-W3UFYU63.mjs";
4
+ } from "./chunk-5A2SIIPH.mjs";
5
5
  import {
6
6
  ConfigError
7
7
  } from "./chunk-QNHHZ63P.mjs";
@@ -2,10 +2,10 @@ import {
2
2
  HttpClient,
3
3
  resolveCliCommandContext,
4
4
  resolveConfig
5
- } from "./chunk-2DRW5ALK.mjs";
5
+ } from "./chunk-CBMTBMIJ.mjs";
6
6
  import {
7
7
  detectAgentRuntime
8
- } from "./chunk-W3UFYU63.mjs";
8
+ } from "./chunk-5A2SIIPH.mjs";
9
9
  import {
10
10
  DeeplineError,
11
11
  readToolUpstreamResponse,