deepline 0.3.455 → 0.3.456

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 (112) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +23 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/cli/{auth-BGPCPVHW.mjs → auth-OBWRDCK3.mjs} +4 -4
  4. package/dist/cli/auth-X5H25CM4.js +40 -0
  5. package/dist/cli/{billing-FCC2YOKB.js → billing-XDDTD7C3.js} +73 -73
  6. package/dist/cli/{billing-6BLEXHCR.mjs → billing-ZR4OHVLA.mjs} +4 -4
  7. package/dist/cli/{chunk-IUSGWMGK.mjs → chunk-4EMVWEUJ.mjs} +2 -2
  8. package/dist/cli/{chunk-LQH2KJ53.js → chunk-4X5H47H5.js} +81 -81
  9. package/dist/cli/{chunk-CZREA5NE.js → chunk-76GTVFFG.js} +8 -8
  10. package/dist/cli/{chunk-R2GLGLDR.mjs → chunk-77Z5BO7D.mjs} +21 -0
  11. package/dist/cli/{chunk-YIFCV77L.mjs → chunk-7PW2K3AT.mjs} +2 -2
  12. package/dist/cli/{chunk-RYGDM5BG.mjs → chunk-AGWG2PVB.mjs} +1 -1
  13. package/dist/cli/{chunk-3E4WSS35.mjs → chunk-APPPIUEW.mjs} +1 -1
  14. package/dist/cli/{chunk-NMJ4D2WO.js → chunk-AQFHU3DW.js} +21 -0
  15. package/dist/cli/{chunk-2SN2EEQW.js → chunk-BQWHXKXO.js} +16 -16
  16. package/dist/cli/{chunk-6F7TD4M4.js → chunk-CJTOZLFI.js} +6 -6
  17. package/dist/cli/{chunk-FCQ52RUB.mjs → chunk-GQVMERZ7.mjs} +2 -2
  18. package/dist/cli/{chunk-R5VMRVRN.mjs → chunk-HZODG765.mjs} +4 -4
  19. package/dist/cli/{chunk-2VHR5DXQ.mjs → chunk-IQ5OW2WC.mjs} +3 -3
  20. package/dist/cli/{chunk-EXZOUJCD.js → chunk-J2KWJKTM.js} +3 -3
  21. package/dist/cli/{chunk-MFKTYIBJ.js → chunk-K5TWU5I6.js} +51 -51
  22. package/dist/cli/{chunk-VMGTYM3A.js → chunk-KFCXTVDW.js} +20 -20
  23. package/dist/cli/{chunk-LRA5YJVV.mjs → chunk-M7FF76WO.mjs} +1 -1
  24. package/dist/cli/{chunk-3RQY2OG7.mjs → chunk-NXJEDRPH.mjs} +2 -2
  25. package/dist/cli/{chunk-J7WYWQF4.js → chunk-OQEIP4HF.js} +6 -6
  26. package/dist/cli/{chunk-WVGPAP7A.mjs → chunk-P5MB2PXV.mjs} +3 -3
  27. package/dist/cli/{chunk-MCMLQ7GD.js → chunk-PPF557JY.js} +8 -8
  28. package/dist/cli/{chunk-YKEWDVZC.js → chunk-QLB5T7IS.js} +26 -26
  29. package/dist/cli/{chunk-2R7JD2NY.js → chunk-S3D7OY6D.js} +4 -4
  30. package/dist/cli/{chunk-BCB2QNG4.js → chunk-SAO7KYJE.js} +2 -2
  31. package/dist/cli/{chunk-SMZUU4NY.js → chunk-SHWMFFKX.js} +2 -2
  32. package/dist/cli/{chunk-UVJLG5KD.js → chunk-SOUPX3YJ.js} +50 -50
  33. package/dist/cli/{chunk-4Z3X5CWI.mjs → chunk-U4JZWJ52.mjs} +1 -1
  34. package/dist/cli/{chunk-W3DIXRDT.js → chunk-VVYM2F7X.js} +21 -10
  35. package/dist/cli/{chunk-WBULEVM4.mjs → chunk-W64S7C55.mjs} +1 -1
  36. package/dist/cli/{chunk-6TOMXZX3.js → chunk-WEHXHC7N.js} +1 -1
  37. package/dist/cli/{chunk-VIGEE67Z.mjs → chunk-WXCYW6PA.mjs} +3 -3
  38. package/dist/cli/{chunk-B7K3QD5W.mjs → chunk-XRNBDUYR.mjs} +8 -8
  39. package/dist/cli/{chunk-RQMEYYN4.js → chunk-XVGEAB44.js} +35 -35
  40. package/dist/cli/{chunk-4BZFRLKU.mjs → chunk-YMV3AULG.mjs} +5 -5
  41. package/dist/cli/{chunk-DPTEABFU.mjs → chunk-ZCXFZSVH.mjs} +1 -1
  42. package/dist/cli/{chunk-PQ4JU2MV.mjs → chunk-ZODPS5JW.mjs} +12 -1
  43. package/dist/cli/command-docs.js +2 -2
  44. package/dist/cli/command-docs.mjs +1 -1
  45. package/dist/cli/{csv-TEAA2YV5.js → csv-B35BFYGT.js} +12 -12
  46. package/dist/cli/{csv-27T3L4RC.mjs → csv-P2ATJQUY.mjs} +3 -3
  47. package/dist/cli/{db-J3PPU7GX.js → db-ELEZFHG7.js} +25 -25
  48. package/dist/cli/{db-N3NRYYI4.mjs → db-PSITREEX.mjs} +4 -4
  49. package/dist/cli/{describe-PX7XBLZF.js → describe-AXWFWCWZ.js} +17 -17
  50. package/dist/cli/{describe-SJBCCTR7.mjs → describe-E2ZFRC5Z.mjs} +13 -13
  51. package/dist/cli/describe-core.d.mts +1 -1
  52. package/dist/cli/describe-core.d.ts +1 -1
  53. package/dist/cli/{executions-XN376RR4.mjs → executions-BZTPNWW2.mjs} +4 -4
  54. package/dist/cli/{executions-WXIL4C5M.js → executions-GWYPVJYE.js} +6 -6
  55. package/dist/cli/{feedback-KHJXJ2K7.mjs → feedback-F3RKOHZN.mjs} +3 -3
  56. package/dist/cli/{feedback-LG5NWE3R.js → feedback-UCW6EFOR.js} +7 -7
  57. package/dist/cli/git-HEKGLILK.js +24 -0
  58. package/dist/cli/{git-726A5HHA.mjs → git-LGQMBBO3.mjs} +4 -4
  59. package/dist/cli/index.js +136 -136
  60. package/dist/cli/index.mjs +38 -38
  61. package/dist/cli/{legacy-noops-V4WS63SD.mjs → legacy-noops-4TVFFILL.mjs} +4 -4
  62. package/dist/cli/{legacy-noops-QI6VN34P.js → legacy-noops-SRH3BPNV.js} +7 -7
  63. package/dist/cli/{monitors-ICQ2Q4XT.js → monitors-6NHXI3EW.js} +89 -89
  64. package/dist/cli/{monitors-AAWRYPHY.mjs → monitors-WBST3XUH.mjs} +5 -5
  65. package/dist/cli/{org-5JV6KYY2.js → org-5EFVZUB2.js} +66 -66
  66. package/dist/cli/{org-7VJKBTZX.mjs → org-DSDNRGDV.mjs} +4 -4
  67. package/dist/cli/{play-2D6ZIJEV.mjs → play-EKOV2T5N.mjs} +11 -11
  68. package/dist/cli/{play-HDI2MLJL.js → play-RMWBABCH.js} +284 -284
  69. package/dist/cli/{providers-KSKVBQFP.mjs → providers-AWNJWZWD.mjs} +46 -4
  70. package/dist/cli/{providers-GIE2W4ZG.js → providers-Y4EYH7IZ.js} +50 -8
  71. package/dist/cli/{quickstart-7OGLDF3M.mjs → quickstart-CPW66MBY.mjs} +3 -3
  72. package/dist/cli/{quickstart-JKNKNDXG.js → quickstart-JQ3W6LWQ.js} +5 -5
  73. package/dist/cli/search-PJXI2GJR.js +30 -0
  74. package/dist/cli/{search-CPKXOGV4.mjs → search-VP4Y6MQU.mjs} +5 -5
  75. package/dist/cli/{secrets-QHGLI7O6.mjs → secrets-2VEENFF4.mjs} +4 -4
  76. package/dist/cli/{secrets-LFQXTVIE.js → secrets-CPMHM5HU.js} +13 -13
  77. package/dist/cli/{sessions-HVMTS7N5.js → sessions-ALPCLDJI.js} +5 -5
  78. package/dist/cli/{sessions-M4OT6NPP.mjs → sessions-INDUUZ3K.mjs} +4 -4
  79. package/dist/cli/{settings-BJBOMHL2.mjs → settings-3YBZZPAM.mjs} +10 -10
  80. package/dist/cli/{settings-42WLEHAZ.js → settings-5PO4C33K.js} +77 -77
  81. package/dist/cli/{setup-ILUF7GCP.mjs → setup-7SOJ4INF.mjs} +8 -8
  82. package/dist/cli/{setup-6TZ4L5LT.js → setup-RK2MUVXO.js} +43 -43
  83. package/dist/cli/{skills-7RIWQDD6.mjs → skills-5PR5RTOX.mjs} +6 -6
  84. package/dist/cli/skills-J3243JQE.js +30 -0
  85. package/dist/cli/{tools-J3VDLDF2.mjs → tools-OSJJUP36.mjs} +13 -13
  86. package/dist/cli/tools-V2B44RFH.js +45 -0
  87. package/dist/cli/update-CKIL2SWB.js +32 -0
  88. package/dist/cli/{update-GMXJF4WT.mjs → update-TDCMXJ62.mjs} +8 -8
  89. package/dist/cli/{workflow-LVVK2N3T.js → workflow-6DKCCQYA.js} +15 -15
  90. package/dist/cli/{workflow-W7NQS26K.mjs → workflow-6O24O6LT.mjs} +5 -5
  91. package/dist/{client-BbU5_j7n.d.mts → client-BX2EVlPo.d.mts} +14 -0
  92. package/dist/{client-CYqG23K1.d.ts → client-CRz2laoR.d.ts} +14 -0
  93. package/dist/index.d.mts +2 -2
  94. package/dist/index.d.ts +2 -2
  95. package/dist/index.js +6 -6
  96. package/dist/index.mjs +3 -3
  97. package/dist/install-integrity.json +84 -84
  98. package/dist/plays/play-description.d.mts +1 -1
  99. package/dist/plays/play-description.d.ts +1 -1
  100. package/dist/plays/run-request.d.mts +1 -1
  101. package/dist/plays/run-request.d.ts +1 -1
  102. package/dist/release.d.mts +1 -1
  103. package/dist/release.d.ts +1 -1
  104. package/dist/release.js +2 -2
  105. package/dist/release.mjs +1 -1
  106. package/package.json +1 -1
  107. package/dist/cli/auth-SRR4DW75.js +0 -40
  108. package/dist/cli/git-PXYOFDQH.js +0 -24
  109. package/dist/cli/search-LOWDQS5X.js +0 -30
  110. package/dist/cli/skills-I5OWZZ2Z.js +0 -30
  111. package/dist/cli/tools-Y4SPWXFJ.js +0 -45
  112. package/dist/cli/update-HQ5WT3G6.js +0 -32
@@ -4,18 +4,18 @@
4
4
 
5
5
 
6
6
 
7
- var _chunk2SN2EEQWjs = require('./chunk-2SN2EEQW.js');
7
+ var _chunkBQWHXKXOjs = require('./chunk-BQWHXKXO.js');
8
8
 
9
9
 
10
- var _chunkMFKTYIBJjs = require('./chunk-MFKTYIBJ.js');
10
+ var _chunkK5TWU5I6js = require('./chunk-K5TWU5I6.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkJ7WYWQF4js = require('./chunk-J7WYWQF4.js');
14
+ var _chunkOQEIP4HFjs = require('./chunk-OQEIP4HF.js');
15
15
 
16
16
 
17
17
 
18
- var _chunk2R7JD2NYjs = require('./chunk-2R7JD2NY.js');
18
+ var _chunkS3D7OY6Djs = require('./chunk-S3D7OY6D.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 = _chunk2R7JD2NYjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
45
+ apiKey = _chunkS3D7OY6Djs.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/${_chunk2R7JD2NYjs.SDK_VERSION}`,
61
+ "User-Agent": `deepline-ts-sdk/${_chunkS3D7OY6Djs.SDK_VERSION}`,
62
62
  "X-Deepline-Client-Family": "sdk",
63
63
  "X-Deepline-CLI-Family": "sdk",
64
- "X-Deepline-CLI-Version": _chunk2R7JD2NYjs.SDK_VERSION,
65
- "X-Deepline-SDK-Version": _chunk2R7JD2NYjs.SDK_VERSION
64
+ "X-Deepline-CLI-Version": _chunkS3D7OY6Djs.SDK_VERSION,
65
+ "X-Deepline-SDK-Version": _chunkS3D7OY6Djs.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()]) || _chunk2R7JD2NYjs.SDK_VERSION,
69
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkS3D7OY6Djs.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") || !_chunk2SN2EEQWjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkMFKTYIBJjs.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") || !_chunkBQWHXKXOjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkK5TWU5I6js.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()]) || _chunk2R7JD2NYjs.SDK_VERSION;
92
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkS3D7OY6Djs.SDK_VERSION;
93
93
  if (!target) return false;
94
- return _chunk2SN2EEQWjs.compareUpdateVersions.call(void 0, target, current) < 0;
94
+ return _chunkBQWHXKXOjs.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()]) || _chunk2R7JD2NYjs.SDK_VERSION;
147
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkS3D7OY6Djs.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 = _chunk2SN2EEQWjs.resolveUpdatePlan.call(void 0, {
155
+ const plan = _chunkBQWHXKXOjs.resolveUpdatePlan.call(void 0, {
156
156
  packageSpec,
157
157
  requireVerifiedNpmOwnership: true,
158
158
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
159
159
  });
160
- if (!_chunk2SN2EEQWjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
160
+ if (!_chunkBQWHXKXOjs.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 (_chunkJ7WYWQF4js.isJsonOutputMode.call(void 0, )) {
167
+ if (_chunkOQEIP4HFjs.isJsonOutputMode.call(void 0, )) {
168
168
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
169
- _chunkJ7WYWQF4js.addJsonNotice.call(void 0, {
169
+ _chunkOQEIP4HFjs.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 (!_chunk2SN2EEQWjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
182
+ if (!_chunkBQWHXKXOjs.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 _chunk2SN2EEQWjs.runAutomaticUpdatePlan.call(void 0, plan);
195
+ const updateResult = await _chunkBQWHXKXOjs.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 (!_chunkJ7WYWQF4js.isJsonOutputMode.call(void 0, )) console.error(line);
246
+ if (!_chunkOQEIP4HFjs.isJsonOutputMode.call(void 0, )) console.error(line);
247
247
  }
248
248
  function beginToolExecuteCommand() {
249
249
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-HBL4PM5Q.mjs";
18
18
  import {
19
19
  SDK_RELEASE
20
- } from "./chunk-DPTEABFU.mjs";
20
+ } from "./chunk-ZCXFZSVH.mjs";
21
21
 
22
22
  // src/config.ts
23
23
  import {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-RYGDM5BG.mjs";
4
+ } from "./chunk-AGWG2PVB.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-LRA5YJVV.mjs";
7
+ } from "./chunk-M7FF76WO.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunk2R7JD2NYjs = require('./chunk-2R7JD2NY.js');
6
+ var _chunkS3D7OY6Djs = require('./chunk-S3D7OY6D.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 = _chunk2R7JD2NYjs.resolveConfig.call(void 0, );
292
- return { config, http: new (0, _chunk2R7JD2NYjs.HttpClient)(config) };
291
+ const config = _chunkS3D7OY6Djs.resolveConfig.call(void 0, );
292
+ return { config, http: new (0, _chunkS3D7OY6Djs.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: _chunk2R7JD2NYjs.detectAgentRuntime.call(void 0, )
632
+ agent_runtime: _chunkS3D7OY6Djs.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 _chunk2R7JD2NYjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
879
+ return _chunkS3D7OY6Djs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
880
880
  ...valueRecord,
881
- command_context: _chunk2R7JD2NYjs.resolveCliCommandContext.call(void 0, )
881
+ command_context: _chunkS3D7OY6Djs.resolveCliCommandContext.call(void 0, )
882
882
  } : value;
883
883
  }
884
884
  function printJson(value, fields) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-4Z3X5CWI.mjs";
3
+ } from "./chunk-U4JZWJ52.mjs";
4
4
  import {
5
5
  DEFAULT_SKILL_AGENTS,
6
6
  KNOWN_SKILL_AGENTS,
@@ -17,13 +17,13 @@ import {
17
17
  sdkCliStateDirPath,
18
18
  skillsAgentPathSegment,
19
19
  writeSdkSkillsLocalVersion
20
- } from "./chunk-LRA5YJVV.mjs";
20
+ } from "./chunk-M7FF76WO.mjs";
21
21
  import {
22
22
  DeeplineError
23
23
  } from "./chunk-HBL4PM5Q.mjs";
24
24
  import {
25
25
  SDK_RELEASE
26
- } from "./chunk-DPTEABFU.mjs";
26
+ } from "./chunk-ZCXFZSVH.mjs";
27
27
 
28
28
  // src/compat.ts
29
29
  import { randomUUID } from "crypto";
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkJ7WYWQF4js = require('./chunk-J7WYWQF4.js');
4
+ var _chunkOQEIP4HFjs = require('./chunk-OQEIP4HF.js');
5
5
 
6
6
 
7
- var _chunk2R7JD2NYjs = require('./chunk-2R7JD2NY.js');
7
+ var _chunkS3D7OY6Djs = require('./chunk-S3D7OY6D.js');
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
 
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
139
139
  const newestFirst = listSessionFiles(agent).sort(
140
140
  (a, b) => b.mtimeMs - a.mtimeMs
141
141
  );
142
- const sessionId = _chunk2R7JD2NYjs.agentSessionIdFromEnvironment.call(void 0,
142
+ const sessionId = _chunkS3D7OY6Djs.agentSessionIdFromEnvironment.call(void 0,
143
143
  process.env,
144
144
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
145
145
  );
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
451
451
  return { encodedContent: encoded, needsChunking: true };
452
452
  }
453
453
  async function uploadPayload(path, payload) {
454
- const { http } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
454
+ const { http } = _chunkOQEIP4HFjs.getAuthedHttpClient.call(void 0, );
455
455
  return await http.post(path, payload);
456
456
  }
457
457
  async function uploadChunkedSessions(sessions, options) {
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
484
484
  ...options.rating ? { rating: options.rating } : {}
485
485
  });
486
486
  const sessionIds = sessions.map((session) => session.sessionId);
487
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
487
+ _chunkOQEIP4HFjs.printCommandEnvelope.call(void 0,
488
488
  {
489
489
  ...response,
490
490
  ok: true,
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
516
516
  filename: _path.basename.call(void 0, filePath),
517
517
  ...rating ? { rating } : {}
518
518
  });
519
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
519
+ _chunkOQEIP4HFjs.printCommandEnvelope.call(void 0,
520
520
  {
521
521
  ...response2,
522
522
  ok: true,
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
566
566
  ...rating ? { rating } : {}
567
567
  });
568
568
  const sessionIds = built.map((session) => session.sessionId);
569
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
569
+ _chunkOQEIP4HFjs.printCommandEnvelope.call(void 0,
570
570
  {
571
571
  ...response,
572
572
  ok: true,
@@ -674,7 +674,7 @@ ${refreshMeta}
674
674
  </body>
675
675
  </html>`;
676
676
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
677
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
677
+ _chunkOQEIP4HFjs.printCommandEnvelope.call(void 0,
678
678
  {
679
679
  ok: true,
680
680
  file: outputPath,
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkJ7WYWQF4js = require('./chunk-J7WYWQF4.js');
5
+ var _chunkOQEIP4HFjs = require('./chunk-OQEIP4HF.js');
6
6
 
7
7
 
8
- var _chunk2R7JD2NYjs = require('./chunk-2R7JD2NY.js');
8
+ var _chunkS3D7OY6Djs = require('./chunk-S3D7OY6D.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkOQEIP4HFjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
39
+ _chunkOQEIP4HFjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkOQEIP4HFjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
139
+ _chunkOQEIP4HFjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkOQEIP4HFjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
153
+ _chunkOQEIP4HFjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkOQEIP4HFjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkOQEIP4HFjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
200
+ _chunkOQEIP4HFjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkOQEIP4HFjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
227
+ _chunkOQEIP4HFjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkOQEIP4HFjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
254
+ _chunkOQEIP4HFjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkOQEIP4HFjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
269
+ _chunkOQEIP4HFjs.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 = _chunk2R7JD2NYjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkS3D7OY6Djs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkJ7WYWQF4js.openInBrowser.call(void 0, connectUrl);
292
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkOQEIP4HFjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkOQEIP4HFjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkOQEIP4HFjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
322
+ _chunkOQEIP4HFjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkOQEIP4HFjs.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
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
371
+ _chunkOQEIP4HFjs.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 } = _chunkJ7WYWQF4js.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkOQEIP4HFjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkJ7WYWQF4js.printCommandEnvelope.call(void 0,
392
+ _chunkOQEIP4HFjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -17,7 +17,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
17
17
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
18
18
 
19
19
 
20
- var _chunk6TOMXZX3js = require('./chunk-6TOMXZX3.js');
20
+ var _chunkWEHXHC7Njs = require('./chunk-WEHXHC7N.js');
21
21
 
22
22
  // src/config.ts
23
23
 
@@ -649,9 +649,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
649
649
  }
650
650
 
651
651
  // src/version.ts
652
- var SDK_VERSION = _chunk6TOMXZX3js.SDK_RELEASE.version;
653
- var SDK_API_MAJOR = _chunk6TOMXZX3js.SDK_RELEASE.contracts.api.currentMajor;
654
- var SDK_API_CONTRACT = _nullishCoalesce(_chunk6TOMXZX3js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
652
+ var SDK_VERSION = _chunkWEHXHC7Njs.SDK_RELEASE.version;
653
+ var SDK_API_MAJOR = _chunkWEHXHC7Njs.SDK_RELEASE.contracts.api.currentMajor;
654
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkWEHXHC7Njs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
655
655
 
656
656
  // src/agent-runtime.ts
657
657
 
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkMFKTYIBJjs = require('./chunk-MFKTYIBJ.js');
3
+ var _chunkK5TWU5I6js = require('./chunk-K5TWU5I6.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkMFKTYIBJjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkK5TWU5I6js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,
@@ -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 _chunkJ7WYWQF4js = require('./chunk-J7WYWQF4.js');
3
+ var _chunkOQEIP4HFjs = require('./chunk-OQEIP4HF.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
- _chunkJ7WYWQF4js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunkOQEIP4HFjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {