deepline 0.3.570 → 0.3.571

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 (140) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +25 -0
  3. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +1 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +17 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +2 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-connection-probe.ts +199 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +43 -0
  8. package/dist/cli/{auth-KHJKNEYN.mjs → auth-ARGNQK7A.mjs} +5 -5
  9. package/dist/cli/auth-FKYYYCME.js +44 -0
  10. package/dist/cli/{billing-Q4BRUODF.js → billing-KAKODYTN.js} +99 -99
  11. package/dist/cli/{billing-R5AO4M3S.mjs → billing-QRZTHCBX.mjs} +8 -8
  12. package/dist/cli/{chunk-2GTLZNSK.js → chunk-2IZOCGOA.js} +53 -53
  13. package/dist/cli/{chunk-3YHMHV6U.mjs → chunk-336AHC7H.mjs} +4 -4
  14. package/dist/cli/{chunk-2MXS53XJ.js → chunk-6N3NTEJ6.js} +20 -20
  15. package/dist/cli/{chunk-OWEUQCBZ.js → chunk-6OP5UW7C.js} +48 -48
  16. package/dist/cli/{chunk-DPZAEVPO.js → chunk-73P76DCN.js} +20 -20
  17. package/dist/cli/{chunk-ZZ4D74UL.mjs → chunk-7HAYEKC4.mjs} +1 -1
  18. package/dist/cli/{chunk-UDN6EYBJ.js → chunk-7JGHNZTD.js} +4 -4
  19. package/dist/cli/{chunk-73RTZMDV.mjs → chunk-A3B54QEW.mjs} +3 -3
  20. package/dist/cli/{chunk-HPWP2B3D.mjs → chunk-A3IVPA6Q.mjs} +1 -1
  21. package/dist/cli/{chunk-FABLUH75.js → chunk-A5HDA22N.js} +3 -3
  22. package/dist/cli/{chunk-YXJVYY5V.mjs → chunk-AD7BGMTL.mjs} +2 -2
  23. package/dist/cli/{chunk-OPZHUL6T.js → chunk-AOMVAXGX.js} +10 -10
  24. package/dist/cli/{chunk-FDSQSUZF.js → chunk-C27FK36H.js} +5 -5
  25. package/dist/cli/{chunk-NIO2T6OC.js → chunk-C3FHMJ4A.js} +2 -2
  26. package/dist/cli/{chunk-I5EZZFQL.mjs → chunk-C6XV2DPY.mjs} +3 -3
  27. package/dist/cli/{chunk-O3ET4XR3.mjs → chunk-CF6CSAMJ.mjs} +4 -4
  28. package/dist/cli/{chunk-MH3WE5O6.mjs → chunk-CFMIWRGD.mjs} +2 -2
  29. package/dist/cli/{chunk-OV6EKORX.js → chunk-CITDBSXI.js} +26 -26
  30. package/dist/cli/{chunk-77HEH4RY.mjs → chunk-CR6IPQBB.mjs} +1 -1
  31. package/dist/cli/{chunk-UWQLRBXY.mjs → chunk-ETGM6PIR.mjs} +5 -5
  32. package/dist/cli/{chunk-WINZRS3A.mjs → chunk-FQP5VSVF.mjs} +1 -1
  33. package/dist/cli/{chunk-WNUFRUNS.js → chunk-GACQOGRS.js} +15 -15
  34. package/dist/cli/{chunk-BEE5VGCL.mjs → chunk-GCE5KOJJ.mjs} +11 -11
  35. package/dist/cli/{chunk-GPXLMRCB.js → chunk-GOUKX6XD.js} +3 -3
  36. package/dist/cli/{chunk-TWHTVGGW.mjs → chunk-GRD3DLH7.mjs} +2 -2
  37. package/dist/cli/{chunk-GFGXDDJH.mjs → chunk-H6QMUX7Y.mjs} +2 -2
  38. package/dist/cli/{chunk-ZZ7ZH27W.js → chunk-HGER4CJA.js} +5 -5
  39. package/dist/cli/{chunk-PERYT4ZA.js → chunk-IFKZQCPX.js} +1 -1
  40. package/dist/cli/{chunk-W26YT37U.js → chunk-ILKUKEWX.js} +41 -41
  41. package/dist/cli/{chunk-NR7QW2E7.js → chunk-IXFFOZZQ.js} +2 -2
  42. package/dist/cli/{chunk-2GBOHROU.mjs → chunk-J5KW2ZDB.mjs} +1 -1
  43. package/dist/cli/{chunk-J6PTH725.js → chunk-MFBFQUQK.js} +6 -6
  44. package/dist/cli/{chunk-JSHE4W6W.js → chunk-NAGGCF6Y.js} +5 -5
  45. package/dist/cli/{chunk-EEUBKKJE.mjs → chunk-PO3NOBHU.mjs} +1 -1
  46. package/dist/cli/{chunk-YQP4ZUOJ.js → chunk-PTM5V5FV.js} +7 -7
  47. package/dist/cli/{chunk-I4N62RWB.mjs → chunk-QRMTITKL.mjs} +2 -2
  48. package/dist/cli/{chunk-CHHXUEVC.js → chunk-RBPR5ZNN.js} +100 -100
  49. package/dist/cli/{chunk-PSMYOQFI.js → chunk-SJYLLHHZ.js} +13 -13
  50. package/dist/cli/{chunk-XHFSNMEU.mjs → chunk-TJU2BECV.mjs} +3 -3
  51. package/dist/cli/{chunk-NVYQ6WCW.mjs → chunk-UBNRPJKO.mjs} +5 -5
  52. package/dist/cli/{chunk-MVHKTZCX.mjs → chunk-UTGHPC5D.mjs} +1 -1
  53. package/dist/cli/{chunk-SOZ2SB43.js → chunk-VLQB65HI.js} +9 -9
  54. package/dist/cli/{chunk-RS6KPFQX.mjs → chunk-VULSFPD4.mjs} +5 -5
  55. package/dist/cli/{chunk-Q4P6STRD.js → chunk-WOU2WS6S.js} +23 -23
  56. package/dist/cli/{chunk-OOTXBEHG.mjs → chunk-WZOUXILM.mjs} +1 -1
  57. package/dist/cli/{chunk-J6M2AX3P.js → chunk-XD4MT4BH.js} +8 -8
  58. package/dist/cli/{chunk-EJB4V77N.mjs → chunk-YDM5WSXO.mjs} +5 -5
  59. package/dist/cli/{chunk-TMT3S2JR.mjs → chunk-YDULFKDL.mjs} +2 -2
  60. package/dist/cli/{chunk-NWAFCOUF.js → chunk-YGGHPEWP.js} +15 -15
  61. package/dist/cli/{chunk-ZGOCDLJQ.js → chunk-YQ36Z23U.js} +2 -2
  62. package/dist/cli/{chunk-5OOGWYSR.mjs → chunk-Z3DSCE5F.mjs} +1 -1
  63. package/dist/cli/{chunk-EYEPXZNS.mjs → chunk-Z6OUUAIV.mjs} +2 -2
  64. package/dist/cli/{concurrent-runs-help-Q26CEJ7I.mjs → concurrent-runs-help-VPYB4ODC.mjs} +6 -6
  65. package/dist/cli/concurrent-runs-help-VUMIMYO7.js +22 -0
  66. package/dist/cli/{csv-Z34I5QIU.js → csv-GHGDSFNV.js} +13 -13
  67. package/dist/cli/{csv-6LI6HLKG.mjs → csv-RALLG3MG.mjs} +4 -4
  68. package/dist/cli/{db-NUDEYQCF.js → db-722SKSIB.js} +27 -27
  69. package/dist/cli/{db-K5GKIKQU.mjs → db-HB65VYRR.mjs} +6 -6
  70. package/dist/cli/{describe-EB4KTEPT.mjs → describe-Q6M7PUBU.mjs} +18 -18
  71. package/dist/cli/describe-SG2N62VE.js +50 -0
  72. package/dist/cli/{executions-DAGHJZEI.mjs → executions-G3M75HW2.mjs} +6 -6
  73. package/dist/cli/{executions-KHOUABZ3.js → executions-GQNV3LNU.js} +8 -8
  74. package/dist/cli/{feedback-XLAWTPK2.js → feedback-B43F2FBL.js} +14 -14
  75. package/dist/cli/{feedback-A57YETEA.mjs → feedback-CSDBYSRS.mjs} +6 -6
  76. package/dist/cli/git-IJHKRWTR.js +26 -0
  77. package/dist/cli/{git-U3FNR34D.mjs → git-IZ4Y3RAW.mjs} +5 -5
  78. package/dist/cli/index.js +143 -143
  79. package/dist/cli/index.mjs +45 -45
  80. package/dist/cli/{integrations-LXUMB4RY.mjs → integrations-DT7EGM2Y.mjs} +7 -7
  81. package/dist/cli/{integrations-YVOJ5D6W.js → integrations-OLCUWZ6Z.js} +29 -29
  82. package/dist/cli/{legacy-noops-4Z2RBTHW.mjs → legacy-noops-4TPT534L.mjs} +6 -6
  83. package/dist/cli/{legacy-noops-IZVLGQZJ.js → legacy-noops-FTGNTO3U.js} +9 -9
  84. package/dist/cli/{mcp-GRGI3KYH.js → mcp-3IDWLBKK.js} +24 -24
  85. package/dist/cli/{mcp-ZHXRVV7D.mjs → mcp-5KDJJT7M.mjs} +4 -4
  86. package/dist/cli/{monitors-XFN5D6EW.js → monitors-7GOZBKJR.js} +100 -100
  87. package/dist/cli/{monitors-7ZVYJ3CX.mjs → monitors-EOAA5RQO.mjs} +7 -7
  88. package/dist/cli/{org-YY5JTKNV.mjs → org-H5I56A4F.mjs} +6 -6
  89. package/dist/cli/{org-RWWXN5TK.js → org-UJ5SWQJ5.js} +121 -121
  90. package/dist/cli/{outcomes-AOZVYNJT.js → outcomes-24KFY2X5.js} +14 -14
  91. package/dist/cli/{outcomes-MGWUZNQ6.mjs → outcomes-MG57YXJX.mjs} +6 -6
  92. package/dist/cli/{play-AJR7BT3R.mjs → play-MXPXRAUM.mjs} +19 -19
  93. package/dist/cli/{play-S34KIOWS.js → play-PPPACSQE.js} +324 -324
  94. package/dist/cli/{providers-QRWQGVIC.mjs → providers-5ZN3MO6E.mjs} +6 -6
  95. package/dist/cli/{providers-S4WMWHBW.js → providers-LTYNEXLB.js} +9 -9
  96. package/dist/cli/{quickstart-NLAIOXVY.mjs → quickstart-ENDTTNLE.mjs} +4 -4
  97. package/dist/cli/{quickstart-GET2M3BQ.js → quickstart-UBDHX7PT.js} +6 -6
  98. package/dist/cli/{run-BOHHBZSI.js → run-6O6LQVWD.js} +44 -44
  99. package/dist/cli/{run-R2RYHNVS.mjs → run-QJJSP35C.mjs} +23 -23
  100. package/dist/cli/{search-VBIVRRRO.mjs → search-PXZPVXDK.mjs} +7 -7
  101. package/dist/cli/search-TYPJWK4I.js +32 -0
  102. package/dist/cli/{search-output-EVNRKEGZ.js → search-output-H3ZQLJUF.js} +6 -6
  103. package/dist/cli/{search-output-OCYIQFV6.mjs → search-output-KRR4YOJX.mjs} +4 -4
  104. package/dist/cli/{secrets-TNCO45WJ.mjs → secrets-HIGERL4N.mjs} +6 -6
  105. package/dist/cli/{secrets-52T2SCZ5.js → secrets-QZMXBI64.js} +15 -15
  106. package/dist/cli/{sessions-4XE7AR3A.mjs → sessions-4SGQAX3F.mjs} +6 -6
  107. package/dist/cli/sessions-OS4ZBU4K.js +23 -0
  108. package/dist/cli/{settings-TKRF2B3K.js → settings-FFTTVDRV.js} +85 -85
  109. package/dist/cli/{settings-ZFCHR7MW.mjs → settings-UQLHVBOP.mjs} +12 -12
  110. package/dist/cli/{setup-QY3ZML4C.mjs → setup-R5MBUG5M.mjs} +9 -9
  111. package/dist/cli/{setup-AWNE4VNL.js → setup-SS3MABJP.js} +49 -49
  112. package/dist/cli/skills-FVDSEEUL.js +37 -0
  113. package/dist/cli/{skills-GUGJDCFY.mjs → skills-X6PNEVWX.mjs} +7 -7
  114. package/dist/cli/tools-ORTGWD63.js +57 -0
  115. package/dist/cli/{tools-NBKPWOWD.mjs → tools-YFW3FXAB.mjs} +17 -17
  116. package/dist/cli/{update-KLGVIBRY.mjs → update-HX5BNFLQ.mjs} +9 -9
  117. package/dist/cli/update-RWVNNNHN.js +37 -0
  118. package/dist/cli/{views-MDXEIVQ7.js → views-BGCRC22G.js} +21 -21
  119. package/dist/cli/{views-OEOW2EZO.mjs → views-FH5XL2PU.mjs} +6 -6
  120. package/dist/cli/{workflow-PUSTWPW4.js → workflow-UY5PZBIK.js} +17 -17
  121. package/dist/cli/{workflow-LK4SIUOM.mjs → workflow-VLNDGNJI.mjs} +7 -7
  122. package/dist/index.js +9 -9
  123. package/dist/index.mjs +6 -6
  124. package/dist/install-integrity.json +113 -112
  125. package/dist/release.d.mts +1 -1
  126. package/dist/release.d.ts +1 -1
  127. package/dist/release.js +2 -2
  128. package/dist/release.mjs +1 -1
  129. package/dist/server.js +5 -5
  130. package/dist/server.mjs +3 -3
  131. package/package.json +1 -1
  132. package/dist/cli/auth-X2LWGPF4.js +0 -44
  133. package/dist/cli/concurrent-runs-help-QDURIV4N.js +0 -22
  134. package/dist/cli/describe-BY7LKP53.js +0 -50
  135. package/dist/cli/git-CR6PBWBH.js +0 -26
  136. package/dist/cli/search-CZVM2OX5.js +0 -32
  137. package/dist/cli/sessions-GOHYDYMH.js +0 -23
  138. package/dist/cli/skills-54CGCMPF.js +0 -37
  139. package/dist/cli/tools-A7FEGDPX.js +0 -57
  140. package/dist/cli/update-3J52CJHB.js +0 -37
@@ -1,15 +1,15 @@
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 _chunkZGOCDLJQjs = require('./chunk-ZGOCDLJQ.js');
3
+ var _chunkYQ36Z23Ujs = require('./chunk-YQ36Z23U.js');
4
4
 
5
5
 
6
6
 
7
- var _chunk2MXS53XJjs = require('./chunk-2MXS53XJ.js');
7
+ var _chunk6N3NTEJ6js = require('./chunk-6N3NTEJ6.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkUDN6EYBJjs = require('./chunk-UDN6EYBJ.js');
12
+ var _chunk7JGHNZTDjs = require('./chunk-7JGHNZTD.js');
13
13
 
14
14
  // src/cli/commands/sessions.ts
15
15
 
@@ -55,7 +55,7 @@ function codexSessionsRoot() {
55
55
  }
56
56
  function listClaudeSessionFiles() {
57
57
  const files = [];
58
- for (const root of _chunkUDN6EYBJjs.claudeProjectsRoots.call(void 0, )) {
58
+ for (const root of _chunk7JGHNZTDjs.claudeProjectsRoots.call(void 0, )) {
59
59
  files.push(...listClaudeSessionFilesIn(root));
60
60
  }
61
61
  return files;
@@ -147,7 +147,7 @@ function currentSessionFile(agent) {
147
147
  const newestFirst = listSessionFiles(agent).sort(
148
148
  (a, b) => b.mtimeMs - a.mtimeMs
149
149
  );
150
- const sessionId = _chunkUDN6EYBJjs.agentSessionIdFromEnvironment.call(void 0,
150
+ const sessionId = _chunk7JGHNZTDjs.agentSessionIdFromEnvironment.call(void 0,
151
151
  process.env,
152
152
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
153
153
  );
@@ -156,7 +156,7 @@ function currentSessionFile(agent) {
156
156
  (candidate) => candidate.sessionId === sessionId
157
157
  );
158
158
  if (named) return named;
159
- const cowork = agent === "codex" ? null : _chunkUDN6EYBJjs.coworkTranscriptFromEnvironment.call(void 0, );
159
+ const cowork = agent === "codex" ? null : _chunk7JGHNZTDjs.coworkTranscriptFromEnvironment.call(void 0, );
160
160
  const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
161
161
  if (cowork && coworkStat) {
162
162
  return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
@@ -166,7 +166,7 @@ function currentSessionFile(agent) {
166
166
  ), () => ( newestFirst[0])), () => ( null));
167
167
  }
168
168
  function feedbackAgentSessionId(agentRuntime) {
169
- return _nullishCoalesce(_chunkUDN6EYBJjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunkUDN6EYBJjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
169
+ return _nullishCoalesce(_chunk7JGHNZTDjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunk7JGHNZTDjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
170
170
  }
171
171
  function sessionStartedInDirectory(candidate, cwd) {
172
172
  if (candidate.agent === "claude") {
@@ -215,7 +215,7 @@ function readCodexSessionId(filePath) {
215
215
  return null;
216
216
  }
217
217
  function sessionSearchDescription(agent) {
218
- const claude = _chunkUDN6EYBJjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
218
+ const claude = _chunk7JGHNZTDjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
219
219
  if (agent === "claude") return claude;
220
220
  if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
221
221
  return `${claude} or ~/.codex/sessions/**/*.jsonl`;
@@ -472,7 +472,7 @@ function buildSessionUploadContent(raw) {
472
472
  return { encodedContent: encoded, needsChunking: true };
473
473
  }
474
474
  async function uploadPayload(path, payload) {
475
- const { http } = _chunk2MXS53XJjs.getAuthedHttpClient.call(void 0, );
475
+ const { http } = _chunk6N3NTEJ6js.getAuthedHttpClient.call(void 0, );
476
476
  return await http.post(path, payload);
477
477
  }
478
478
  async function uploadChunkedSessions(sessions, options) {
@@ -550,7 +550,7 @@ async function uploadAgentSession(agentRuntime) {
550
550
  return target.sessionId;
551
551
  }
552
552
  async function handleSessionsSend(options) {
553
- if (_chunkZGOCDLJQjs.rejectRestrictedFeedback.call(void 0, options)) return;
553
+ if (_chunkYQ36Z23Ujs.rejectRestrictedFeedback.call(void 0, options)) return;
554
554
  const rating = parseSessionRating(options.rating);
555
555
  if (options.file) {
556
556
  const filePath = _path.resolve.call(void 0, options.file);
@@ -562,7 +562,7 @@ async function handleSessionsSend(options) {
562
562
  filename: _path.basename.call(void 0, filePath),
563
563
  ...rating ? { rating } : {}
564
564
  });
565
- _chunk2MXS53XJjs.printCommandEnvelope.call(void 0,
565
+ _chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
566
566
  {
567
567
  ...response2,
568
568
  ok: true,
@@ -594,7 +594,7 @@ async function handleSessionsSend(options) {
594
594
  labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
595
595
  });
596
596
  const sessionIds = built.map((session) => session.sessionId);
597
- _chunk2MXS53XJjs.printCommandEnvelope.call(void 0,
597
+ _chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
598
598
  {
599
599
  ...response,
600
600
  ok: true,
@@ -702,7 +702,7 @@ ${refreshMeta}
702
702
  </body>
703
703
  </html>`;
704
704
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
705
- _chunk2MXS53XJjs.printCommandEnvelope.call(void 0,
705
+ _chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
706
706
  {
707
707
  ok: true,
708
708
  file: outputPath,
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  rejectRestrictedFeedback
3
- } from "./chunk-WINZRS3A.mjs";
3
+ } from "./chunk-FQP5VSVF.mjs";
4
4
  import {
5
5
  getAuthedHttpClient,
6
6
  printCommandEnvelope
7
- } from "./chunk-I4N62RWB.mjs";
7
+ } from "./chunk-QRMTITKL.mjs";
8
8
  import {
9
9
  agentSessionIdFromEnvironment,
10
10
  claudeProjectsRoots,
11
11
  coworkTranscriptFromEnvironment
12
- } from "./chunk-HPWP2B3D.mjs";
12
+ } from "./chunk-A3IVPA6Q.mjs";
13
13
 
14
14
  // src/cli/commands/sessions.ts
15
15
  import {
@@ -4,22 +4,22 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-EJB4V77N.mjs";
7
+ } from "./chunk-YDM5WSXO.mjs";
8
8
  import {
9
9
  isCiEnvironment,
10
10
  resolveShellSpawn,
11
11
  syncSdkSkillsIfNeeded
12
- } from "./chunk-UWQLRBXY.mjs";
12
+ } from "./chunk-ETGM6PIR.mjs";
13
13
  import {
14
14
  addJsonNotice,
15
15
  isJsonOutputMode
16
- } from "./chunk-I4N62RWB.mjs";
16
+ } from "./chunk-QRMTITKL.mjs";
17
17
  import {
18
18
  resolveApiKeyForBaseUrl
19
- } from "./chunk-77HEH4RY.mjs";
19
+ } from "./chunk-CR6IPQBB.mjs";
20
20
  import {
21
21
  SDK_VERSION
22
- } from "./chunk-HPWP2B3D.mjs";
22
+ } from "./chunk-A3IVPA6Q.mjs";
23
23
 
24
24
  // src/cli/compatibility-catalog.ts
25
25
  var readers = /* @__PURE__ */ new WeakMap();
@@ -9,7 +9,7 @@ import {
9
9
  formatCliFailureDiagnostic,
10
10
  markJsonOutputHandled,
11
11
  writeRawStderr
12
- } from "./chunk-I4N62RWB.mjs";
12
+ } from "./chunk-QRMTITKL.mjs";
13
13
 
14
14
  // src/cli/describe-options.ts
15
15
  function addDescribeOptions(command, options = {}) {
@@ -3,7 +3,7 @@
3
3
  var _chunkCSPHSNBWjs = require('./chunk-CSPHSNBW.js');
4
4
 
5
5
 
6
- var _chunkJ6M2AX3Pjs = require('./chunk-J6M2AX3P.js');
6
+ var _chunkXD4MT4BHjs = require('./chunk-XD4MT4BH.js');
7
7
 
8
8
 
9
9
  var _chunkMJTVX4QKjs = require('./chunk-MJTVX4QK.js');
@@ -11,7 +11,7 @@ var _chunkMJTVX4QKjs = require('./chunk-MJTVX4QK.js');
11
11
 
12
12
 
13
13
 
14
- var _chunk2MXS53XJjs = require('./chunk-2MXS53XJ.js');
14
+ var _chunk6N3NTEJ6js = require('./chunk-6N3NTEJ6.js');
15
15
 
16
16
 
17
17
  var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
@@ -581,7 +581,7 @@ function parseInputFlagValue(raw) {
581
581
  return raw;
582
582
  }
583
583
  function parsePlayRunOptions(args, initialInput = null) {
584
- const selection = _chunk2MXS53XJjs.parseJsonFields.call(void 0, args, "run");
584
+ const selection = _chunk6N3NTEJ6js.parseJsonFields.call(void 0, args, "run");
585
585
  args = selection.args;
586
586
  const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
587
587
  let filePath = null;
@@ -593,7 +593,7 @@ function parsePlayRunOptions(args, initialInput = null) {
593
593
  let revisionSelector = null;
594
594
  const watch = !args.includes("--no-wait");
595
595
  const dryRun = args.includes("--dry-run");
596
- let jsonOutput = dryRun ? _chunk2MXS53XJjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunk2MXS53XJjs.argsWantJson.call(void 0, args);
596
+ let jsonOutput = dryRun ? _chunk6N3NTEJ6js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunk6N3NTEJ6js.argsWantJson.call(void 0, args);
597
597
  const fullJson = args.includes("--full");
598
598
  const force = args.includes("--force") || args.includes("--from-start");
599
599
  const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
@@ -657,7 +657,7 @@ function parsePlayRunOptions(args, initialInput = null) {
657
657
  "--log-level requires one of: debug, info, warn, error."
658
658
  );
659
659
  }
660
- const parsed = _chunkJ6M2AX3Pjs.parseLogLevel.call(void 0, value);
660
+ const parsed = _chunkXD4MT4BHjs.parseLogLevel.call(void 0, value);
661
661
  if (!parsed) {
662
662
  throw new Error(
663
663
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -990,7 +990,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
990
990
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
991
991
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
992
992
  );
993
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkJ6M2AX3Pjs.parseLogLevel.call(void 0, options.logLevel);
993
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkXD4MT4BHjs.parseLogLevel.call(void 0, options.logLevel);
994
994
  if (!logLevel)
995
995
  throw new Error("--log-level requires one of: debug, info, warn, error.");
996
996
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -1004,13 +1004,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
1004
1004
  if (debugAlias || debugMapLatency && logLevel === "info")
1005
1005
  logLevel = "debug";
1006
1006
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
1007
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunk2MXS53XJjs.parseJsonFields.call(void 0,
1008
- [...fullJson ? ["--full"] : [], ..._chunk2MXS53XJjs.jsonFieldArgs.call(void 0, options.json)],
1007
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunk6N3NTEJ6js.parseJsonFields.call(void 0,
1008
+ [...fullJson ? ["--full"] : [], ..._chunk6N3NTEJ6js.jsonFieldArgs.call(void 0, options.json)],
1009
1009
  "run"
1010
1010
  ).fields;
1011
1011
  const watch = options.wait === false ? false : base.watch;
1012
1012
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
1013
- const jsonOutput = dryRun || !watch ? explicitJson || _chunk2MXS53XJjs.argsWantJson.call(void 0, []) : explicitJson;
1013
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunk6N3NTEJ6js.argsWantJson.call(void 0, []) : explicitJson;
1014
1014
  const verboseLogs = Boolean(
1015
1015
  debugAlias || logLevel === "debug" || debugMapLatency
1016
1016
  );
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  seedToolListScript
3
- } from "./chunk-BEE5VGCL.mjs";
3
+ } from "./chunk-GCE5KOJJ.mjs";
4
4
  import {
5
5
  addDescribeOptions
6
- } from "./chunk-MVHKTZCX.mjs";
6
+ } from "./chunk-UTGHPC5D.mjs";
7
7
  import {
8
8
  describeLookupsFor,
9
9
  describeName,
@@ -14,16 +14,16 @@ import {
14
14
  } from "./chunk-BM4GE67C.mjs";
15
15
  import {
16
16
  DeeplineClient
17
- } from "./chunk-TWHTVGGW.mjs";
17
+ } from "./chunk-GRD3DLH7.mjs";
18
18
  import {
19
19
  failureReportHeaders,
20
20
  isFailureReportingDisabled,
21
21
  printCommandEnvelope
22
- } from "./chunk-I4N62RWB.mjs";
22
+ } from "./chunk-QRMTITKL.mjs";
23
23
  import {
24
24
  autoDetectBaseUrl,
25
25
  resolveApiKeyForBaseUrl
26
- } from "./chunk-77HEH4RY.mjs";
26
+ } from "./chunk-CR6IPQBB.mjs";
27
27
 
28
28
  // src/cli/commands/describe.ts
29
29
  import { writeFileSync } from "fs";
@@ -4,22 +4,22 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkDPZAEVPOjs = require('./chunk-DPZAEVPO.js');
7
+ var _chunk73P76DCNjs = require('./chunk-73P76DCN.js');
8
8
 
9
9
 
10
10
 
11
11
 
12
- var _chunkOWEUQCBZjs = require('./chunk-OWEUQCBZ.js');
12
+ var _chunk6OP5UW7Cjs = require('./chunk-6OP5UW7C.js');
13
13
 
14
14
 
15
15
 
16
- var _chunk2MXS53XJjs = require('./chunk-2MXS53XJ.js');
16
+ var _chunk6N3NTEJ6js = require('./chunk-6N3NTEJ6.js');
17
17
 
18
18
 
19
- var _chunkFABLUH75js = require('./chunk-FABLUH75.js');
19
+ var _chunkA5HDA22Njs = require('./chunk-A5HDA22N.js');
20
20
 
21
21
 
22
- var _chunkUDN6EYBJjs = require('./chunk-UDN6EYBJ.js');
22
+ var _chunk7JGHNZTDjs = require('./chunk-7JGHNZTD.js');
23
23
 
24
24
  // src/cli/compatibility-catalog.ts
25
25
  var readers = /* @__PURE__ */ new WeakMap();
@@ -46,7 +46,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
46
46
  async function reportAutoUpdateEvent(input) {
47
47
  let apiKey = "";
48
48
  try {
49
- apiKey = _chunkFABLUH75js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
49
+ apiKey = _chunkA5HDA22Njs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
50
50
  } catch (e2) {
51
51
  return;
52
52
  }
@@ -62,15 +62,15 @@ async function reportAutoUpdateEvent(input) {
62
62
  headers: {
63
63
  Authorization: `Bearer ${apiKey}`,
64
64
  "Content-Type": "application/json",
65
- "User-Agent": `deepline-ts-sdk/${_chunkUDN6EYBJjs.SDK_VERSION}`,
65
+ "User-Agent": `deepline-ts-sdk/${_chunk7JGHNZTDjs.SDK_VERSION}`,
66
66
  "X-Deepline-Client-Family": "sdk",
67
67
  "X-Deepline-CLI-Family": "sdk",
68
- "X-Deepline-CLI-Version": _chunkUDN6EYBJjs.SDK_VERSION,
69
- "X-Deepline-SDK-Version": _chunkUDN6EYBJjs.SDK_VERSION
68
+ "X-Deepline-CLI-Version": _chunk7JGHNZTDjs.SDK_VERSION,
69
+ "X-Deepline-SDK-Version": _chunk7JGHNZTDjs.SDK_VERSION
70
70
  },
71
71
  body: JSON.stringify({
72
72
  event: input.event,
73
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkUDN6EYBJjs.SDK_VERSION,
73
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunk7JGHNZTDjs.SDK_VERSION,
74
74
  target_version: input.response.latest,
75
75
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
76
76
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -89,19 +89,19 @@ function envTruthy(name) {
89
89
  return value === "1" || value === "true" || value === "yes";
90
90
  }
91
91
  function shouldSkipSelfUpdate(policy) {
92
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkDPZAEVPOjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkOWEUQCBZjs.isCiEnvironment.call(void 0, );
92
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk73P76DCNjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunk6OP5UW7Cjs.isCiEnvironment.call(void 0, );
93
93
  }
94
94
  function isDowngradeAutoUpdateResponse(response) {
95
95
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
96
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkUDN6EYBJjs.SDK_VERSION;
96
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunk7JGHNZTDjs.SDK_VERSION;
97
97
  if (!target) return false;
98
- return _chunkDPZAEVPOjs.compareUpdateVersions.call(void 0, target, current) < 0;
98
+ return _chunk73P76DCNjs.compareUpdateVersions.call(void 0, target, current) < 0;
99
99
  }
100
100
  function relaunchCurrentCommand(plan, runtime = {}) {
101
101
  return new Promise((resolve) => {
102
102
  const argv = _nullishCoalesce(runtime.argv, () => ( process.argv));
103
103
  const platform = _nullishCoalesce(runtime.platform, () => ( process.platform));
104
- const launch = plan.kind === "python-sidecar" ? _chunkOWEUQCBZjs.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
104
+ const launch = plan.kind === "python-sidecar" ? _chunk6OP5UW7Cjs.resolveShellSpawn.call(void 0, plan.sidecarPath, argv.slice(2), platform) : {
105
105
  command: _nullishCoalesce(runtime.execPath, () => ( process.execPath)),
106
106
  args: argv.slice(1),
107
107
  shell: false
@@ -148,7 +148,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
148
148
  }
149
149
  if (isDowngradeAutoUpdateResponse(response)) {
150
150
  const target = response.latest;
151
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkUDN6EYBJjs.SDK_VERSION;
151
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunk7JGHNZTDjs.SDK_VERSION;
152
152
  process.stderr.write(
153
153
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
154
154
  `
@@ -156,21 +156,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
156
156
  return false;
157
157
  }
158
158
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
159
- const plan = _chunkDPZAEVPOjs.resolveUpdatePlan.call(void 0, {
159
+ const plan = _chunk73P76DCNjs.resolveUpdatePlan.call(void 0, {
160
160
  packageSpec,
161
161
  requireVerifiedNpmOwnership: true,
162
162
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
163
163
  });
164
- if (!_chunkDPZAEVPOjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
164
+ if (!_chunk73P76DCNjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
165
165
  return false;
166
166
  }
167
167
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
168
168
  deferredAutoUpdate = async () => {
169
169
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
170
170
  };
171
- if (_chunk2MXS53XJjs.isJsonOutputMode.call(void 0, )) {
171
+ if (_chunk6N3NTEJ6js.isJsonOutputMode.call(void 0, )) {
172
172
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
173
- _chunk2MXS53XJjs.addJsonNotice.call(void 0, {
173
+ _chunk6N3NTEJ6js.addJsonNotice.call(void 0, {
174
174
  code: "sdk_update_queued",
175
175
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
176
176
  });
@@ -183,7 +183,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
183
183
  return true;
184
184
  }
185
185
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
186
- if (!_chunkDPZAEVPOjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
186
+ if (!_chunk73P76DCNjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
187
187
  const autoUpdate = response.auto_update;
188
188
  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";
189
189
  process.stderr.write(
@@ -196,7 +196,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
196
196
  event: "started",
197
197
  installKind: plan.kind
198
198
  });
199
- const updateResult = await _chunkDPZAEVPOjs.runAutomaticUpdatePlan.call(void 0, plan);
199
+ const updateResult = await _chunk73P76DCNjs.runAutomaticUpdatePlan.call(void 0, plan);
200
200
  if (updateResult.status === "skipped_previous_failure") {
201
201
  void reportAutoUpdateEvent({
202
202
  baseUrl,
@@ -234,7 +234,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
234
234
  exitCode: 0
235
235
  });
236
236
  try {
237
- await _chunkOWEUQCBZjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
237
+ await _chunk6OP5UW7Cjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
238
238
  mode: "detached",
239
239
  update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
240
240
  afterCliUpdate: {
@@ -261,7 +261,7 @@ var _crypto = require('crypto');
261
261
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
262
262
  var activeToolExecuteCommand = null;
263
263
  function progressLine(line) {
264
- if (!_chunk2MXS53XJjs.isJsonOutputMode.call(void 0, )) console.error(line);
264
+ if (!_chunk6N3NTEJ6js.isJsonOutputMode.call(void 0, )) console.error(line);
265
265
  }
266
266
  function beginToolExecuteCommand() {
267
267
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -37,7 +37,7 @@ import {
37
37
  RETAINED_PIPELINE_RECEIVERS_HEADER,
38
38
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
39
39
  SDK_API_MAJOR
40
- } from "./chunk-HPWP2B3D.mjs";
40
+ } from "./chunk-A3IVPA6Q.mjs";
41
41
  import {
42
42
  CustomerDbQueryOutcomeUnknownError
43
43
  } from "./chunk-ASB47RXJ.mjs";
@@ -37,7 +37,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
37
37
 
38
38
 
39
39
 
40
- var _chunkUDN6EYBJjs = require('./chunk-UDN6EYBJ.js');
40
+ var _chunk7JGHNZTDjs = require('./chunk-7JGHNZTD.js');
41
41
 
42
42
 
43
43
  var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
@@ -963,7 +963,7 @@ var ToolCalls = class {
963
963
  idempotencyKey,
964
964
  onResponse: (response2) => {
965
965
  lastResponse = null;
966
- atomicToolsSupported = response2.headers.get(_chunkUDN6EYBJjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
966
+ atomicToolsSupported = response2.headers.get(_chunk7JGHNZTDjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
967
967
  recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
968
968
  if (_optionalChain([options, 'optionalAccess', _38 => _38.onServerTiming])) {
969
969
  try {
@@ -1350,15 +1350,15 @@ function runtimeSelectionHeaders(runtime, env) {
1350
1350
  }
1351
1351
  const receivers = _optionalChain([env, 'access', _63 => _63.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _64 => _64.trim, 'call', _65 => _65()]);
1352
1352
  return {
1353
- [_chunkUDN6EYBJjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1354
- ...receivers ? { [_chunkUDN6EYBJjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1353
+ [_chunk7JGHNZTDjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1354
+ ...receivers ? { [_chunk7JGHNZTDjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1355
1355
  };
1356
1356
  }
1357
1357
  function playRunStartHeaders(runtime, env) {
1358
1358
  const headers = runtimeSelectionHeaders(runtime, env);
1359
1359
  const experimentSwitches = _optionalChain([env, 'access', _66 => _66.DEEPLINE_EXPERIMENT_SWITCHES, 'optionalAccess', _67 => _67.trim, 'call', _68 => _68()]);
1360
1360
  if (!experimentSwitches) return headers;
1361
- return { ...headers, [_chunkUDN6EYBJjs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
1361
+ return { ...headers, [_chunk7JGHNZTDjs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
1362
1362
  }
1363
1363
  function normalizeTestPolicyOverrides(value, source) {
1364
1364
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -1428,7 +1428,7 @@ var PlayClient = class {
1428
1428
  return _chunkMJTVX4QKjs.startPlayRun.call(void 0,
1429
1429
  this.http,
1430
1430
  resolved.request,
1431
- _optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkUDN6EYBJjs.SDK_API_MAJOR) } : headers,
1431
+ _optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunk7JGHNZTDjs.SDK_API_MAJOR) } : headers,
1432
1432
  options
1433
1433
  );
1434
1434
  }
@@ -3546,7 +3546,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
3546
3546
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
3547
3547
  );
3548
3548
  }
3549
- return { [_chunkUDN6EYBJjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3549
+ return { [_chunk7JGHNZTDjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3550
3550
  }
3551
3551
  function sleep(ms) {
3552
3552
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -4482,7 +4482,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4482
4482
  );
4483
4483
  const headers = _optionalChain([options, 'optionalAccess', _200 => _200.cliAdmission]) ? {
4484
4484
  ...runtimeHeaders,
4485
- "X-Deepline-API-Major": String(_chunkUDN6EYBJjs.SDK_API_MAJOR)
4485
+ "X-Deepline-API-Major": String(_chunk7JGHNZTDjs.SDK_API_MAJOR)
4486
4486
  } : runtimeHeaders;
4487
4487
  const http = this.http;
4488
4488
  let submitted = false;
@@ -1,23 +1,23 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-EEUBKKJE.mjs";
4
+ } from "./chunk-PO3NOBHU.mjs";
5
5
  import {
6
6
  runSkillsCommand
7
- } from "./chunk-3YHMHV6U.mjs";
7
+ } from "./chunk-336AHC7H.mjs";
8
8
  import {
9
9
  resolveShellSpawn
10
- } from "./chunk-UWQLRBXY.mjs";
10
+ } from "./chunk-ETGM6PIR.mjs";
11
11
  import {
12
12
  printCommandEnvelope
13
- } from "./chunk-I4N62RWB.mjs";
13
+ } from "./chunk-QRMTITKL.mjs";
14
14
  import {
15
15
  DEFAULT_MAX_RETRIES,
16
16
  DEFAULT_TIMEOUT,
17
17
  TRANSIENT_HTTP_STATUSES,
18
18
  autoDetectBaseUrl,
19
19
  defaultRetryBackoffMs
20
- } from "./chunk-77HEH4RY.mjs";
20
+ } from "./chunk-CR6IPQBB.mjs";
21
21
 
22
22
  // src/cli/commands/update.ts
23
23
  import { spawn, spawnSync } from "child_process";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-MF7PCM6C.mjs";
4
4
  import {
5
5
  parseLogLevel
6
- } from "./chunk-OOTXBEHG.mjs";
6
+ } from "./chunk-WZOUXILM.mjs";
7
7
  import {
8
8
  setDottedInputValue
9
9
  } from "./chunk-5TYLSS4Q.mjs";
@@ -11,7 +11,7 @@ import {
11
11
  argsWantJson,
12
12
  jsonFieldArgs,
13
13
  parseJsonFields
14
- } from "./chunk-I4N62RWB.mjs";
14
+ } from "./chunk-QRMTITKL.mjs";
15
15
  import {
16
16
  DeeplineError
17
17
  } from "./chunk-Z3A2S3QM.mjs";
@@ -1,9 +1,9 @@
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 _chunkCHHXUEVCjs = require('./chunk-CHHXUEVC.js');
3
+ var _chunkRBPR5ZNNjs = require('./chunk-RBPR5ZNN.js');
4
4
 
5
5
 
6
- var _chunkYQP4ZUOJjs = require('./chunk-YQP4ZUOJ.js');
6
+ var _chunkPTM5V5FVjs = require('./chunk-PTM5V5FV.js');
7
7
 
8
8
 
9
9
 
@@ -14,16 +14,16 @@ var _chunk6ASDTHENjs = require('./chunk-6ASDTHEN.js');
14
14
  var _chunkLHPYCJNLjs = require('./chunk-LHPYCJNL.js');
15
15
 
16
16
 
17
- var _chunkZZ7ZH27Wjs = require('./chunk-ZZ7ZH27W.js');
17
+ var _chunkHGER4CJAjs = require('./chunk-HGER4CJA.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
- var _chunk2MXS53XJjs = require('./chunk-2MXS53XJ.js');
22
+ var _chunk6N3NTEJ6js = require('./chunk-6N3NTEJ6.js');
23
23
 
24
24
 
25
25
 
26
- var _chunkFABLUH75js = require('./chunk-FABLUH75.js');
26
+ var _chunkA5HDA22Njs = require('./chunk-A5HDA22N.js');
27
27
 
28
28
  // src/cli/commands/describe.ts
29
29
  var _fs = require('fs');
@@ -32,14 +32,14 @@ var _path = require('path');
32
32
  // src/cli/doc-read-reporting.ts
33
33
  var REPORT_TIMEOUT_MS = 1e3;
34
34
  async function reportDocRead(docId) {
35
- if (_chunk2MXS53XJjs.isFailureReportingDisabled.call(void 0, )) return;
35
+ if (_chunk6N3NTEJ6js.isFailureReportingDisabled.call(void 0, )) return;
36
36
  try {
37
- const baseUrl = _chunkFABLUH75js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
38
- const apiKey = _chunkFABLUH75js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
37
+ const baseUrl = _chunkA5HDA22Njs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
38
+ const apiKey = _chunkA5HDA22Njs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
39
39
  if (!apiKey) return;
40
40
  await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
41
41
  method: "POST",
42
- headers: _chunk2MXS53XJjs.failureReportHeaders.call(void 0, apiKey),
42
+ headers: _chunk6N3NTEJ6js.failureReportHeaders.call(void 0, apiKey),
43
43
  body: JSON.stringify({ doc_id: docId }),
44
44
  signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
45
45
  });
@@ -52,16 +52,16 @@ function nothingNamed(name) {
52
52
  return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
53
53
  }
54
54
  function findNamed2(name, options) {
55
- return _chunk6ASDTHENjs.findNamed.call(void 0, name, options, _chunk6ASDTHENjs.describeLookupsFor.call(void 0, new (0, _chunkZZ7ZH27Wjs.DeeplineClient)()));
55
+ return _chunk6ASDTHENjs.findNamed.call(void 0, name, options, _chunk6ASDTHENjs.describeLookupsFor.call(void 0, new (0, _chunkHGER4CJAjs.DeeplineClient)()));
56
56
  }
57
57
  async function describeAnything(name, options, onMissing) {
58
- const client = new (0, _chunkZZ7ZH27Wjs.DeeplineClient)();
58
+ const client = new (0, _chunkHGER4CJAjs.DeeplineClient)();
59
59
  const lookups = _chunk6ASDTHENjs.describeLookupsFor.call(void 0, client);
60
60
  const outcome = await _chunk6ASDTHENjs.describeName.call(void 0, name, options, {
61
61
  ...lookups,
62
62
  // `tools describe` has already fetched the tool for its compatibility check.
63
63
  tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
64
- seedStarterScript: _chunkCHHXUEVCjs.seedToolListScript
64
+ seedStarterScript: _chunkRBPR5ZNNjs.seedToolListScript
65
65
  });
66
66
  if (outcome.status === "missing") {
67
67
  if (onMissing) return onMissing();
@@ -90,18 +90,18 @@ function deliver(envelope, lines, { json, out }) {
90
90
  ` : text;
91
91
  _fs.writeFileSync.call(void 0, path, content);
92
92
  const bytes = Buffer.byteLength(content);
93
- _chunk2MXS53XJjs.printCommandEnvelope.call(void 0,
93
+ _chunk6N3NTEJ6js.printCommandEnvelope.call(void 0,
94
94
  { path, bytes },
95
95
  { json, text: `Wrote ${path} (${bytes} bytes)
96
96
  ` }
97
97
  );
98
98
  return 0;
99
99
  }
100
- _chunk2MXS53XJjs.printCommandEnvelope.call(void 0, envelope, { json, text });
100
+ _chunk6N3NTEJ6js.printCommandEnvelope.call(void 0, envelope, { json, text });
101
101
  return 0;
102
102
  }
103
103
  function registerDescribeCommand(program) {
104
- _chunkYQP4ZUOJjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
104
+ _chunkPTM5V5FVjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
105
105
  "Describe anything search returns: a tool, monitor type, or play."
106
106
  ).addHelpText(
107
107
  "after",