deepline 0.3.519 → 0.3.520

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 (141) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +160 -2
  3. package/dist/bundling-sources/shared_libs/play-runtime/execute-server-timing.ts +22 -0
  4. package/dist/cli/{artifacts-YRKH7KNC.js → artifacts-4DSPSIU5.js} +18 -18
  5. package/dist/cli/{artifacts-ZZULJ6X5.mjs → artifacts-D6PU7SBC.mjs} +6 -6
  6. package/dist/cli/{auth-WU2BDO3T.mjs → auth-MXKNPUXW.mjs} +5 -5
  7. package/dist/cli/auth-TH4JV6BH.js +43 -0
  8. package/dist/cli/{billing-DG62VVXW.mjs → billing-SQ26NKGH.mjs} +6 -6
  9. package/dist/cli/{billing-MUMMBMQK.js → billing-WEYCNJIR.js} +79 -79
  10. package/dist/cli/{chunk-XUCAH3LN.js → chunk-2BJILUE3.js} +10 -10
  11. package/dist/cli/{chunk-UB2REJPL.mjs → chunk-2EDGA7OE.mjs} +2 -2
  12. package/dist/cli/{chunk-ZQ23WQP3.js → chunk-3YHS4BLB.js} +2 -2
  13. package/dist/cli/{chunk-ORNLTNBN.js → chunk-4VR5OTYP.js} +44 -44
  14. package/dist/cli/{chunk-F6XD4CRW.js → chunk-5ECMRQCL.js} +1 -1
  15. package/dist/cli/{chunk-N3LUYBOB.mjs → chunk-5TEXJM6F.mjs} +10 -10
  16. package/dist/cli/{chunk-NIJE62ZD.mjs → chunk-6GI7BYSL.mjs} +1 -1
  17. package/dist/cli/{chunk-NH22WUUG.mjs → chunk-6T2LB43P.mjs} +2 -2
  18. package/dist/cli/{chunk-IMIHYCJ5.mjs → chunk-6VY2SJ6B.mjs} +5 -5
  19. package/dist/cli/{chunk-4ECU5DI3.js → chunk-6XJA23MZ.js} +26 -26
  20. package/dist/cli/{chunk-P62S3ZMS.js → chunk-74MOIEDC.js} +11 -11
  21. package/dist/cli/{chunk-GO467AXG.js → chunk-7QAX5VBT.js} +41 -41
  22. package/dist/cli/{chunk-EMV6EHK2.js → chunk-7VJKHJY7.js} +9 -9
  23. package/dist/cli/{chunk-AL7FDMD6.mjs → chunk-A5VR463F.mjs} +1 -1
  24. package/dist/cli/{chunk-RQDD2VV3.js → chunk-AM7HMWNA.js} +5 -5
  25. package/dist/cli/{chunk-RHQKDHCX.mjs → chunk-ASGGZ6BI.mjs} +2 -2
  26. package/dist/cli/{chunk-S7R4O62I.js → chunk-AVW2LKRF.js} +6 -6
  27. package/dist/cli/{chunk-TT2XB433.js → chunk-BHAP6FIZ.js} +4 -4
  28. package/dist/cli/{chunk-52DFTRVC.js → chunk-D5VTWJ7K.js} +16 -16
  29. package/dist/cli/{chunk-YRU46P7H.mjs → chunk-DQQ6FDE6.mjs} +1 -1
  30. package/dist/cli/{chunk-C7ZD4LXZ.js → chunk-FWGTBR3W.js} +2 -2
  31. package/dist/cli/{chunk-G2QD575P.js → chunk-GVTHFDKN.js} +6 -6
  32. package/dist/cli/{chunk-PK6VYYEY.js → chunk-I4GBCKBL.js} +5 -5
  33. package/dist/cli/{chunk-XBS4RDKU.js → chunk-JO2MQ6XR.js} +96 -96
  34. package/dist/cli/{chunk-HKKC7J6K.mjs → chunk-KCISDDNK.mjs} +6 -6
  35. package/dist/cli/{chunk-3CUIIVGR.mjs → chunk-KKSMHTQO.mjs} +1 -1
  36. package/dist/cli/{chunk-E6YWCXII.js → chunk-KTAOVRXT.js} +16 -16
  37. package/dist/cli/{chunk-LKYLIZ5X.js → chunk-LUIPBI6P.js} +2 -2
  38. package/dist/cli/{chunk-25WXWSFS.js → chunk-LYIJ3YUP.js} +22 -22
  39. package/dist/cli/{chunk-J4X4RNSP.mjs → chunk-M6YHS5V7.mjs} +3 -3
  40. package/dist/cli/{chunk-CRE3OGHH.mjs → chunk-NLIO6QLP.mjs} +2 -2
  41. package/dist/cli/{chunk-FEJKDR67.mjs → chunk-NNUJQ5O2.mjs} +1 -1
  42. package/dist/cli/{chunk-A7W3CCU5.mjs → chunk-NPRSGUHB.mjs} +5 -5
  43. package/dist/cli/{chunk-MI5DKOBD.mjs → chunk-NWSKBWQM.mjs} +2 -2
  44. package/dist/cli/{chunk-I3ICKVYH.js → chunk-ORAWUIMN.js} +53 -53
  45. package/dist/cli/{chunk-CBMTBMIJ.mjs → chunk-QQGRQRCS.mjs} +1 -1
  46. package/dist/cli/{chunk-SBF4K3QF.mjs → chunk-QSWPDYOP.mjs} +4 -4
  47. package/dist/cli/{chunk-FJAGGBDR.mjs → chunk-SHB2BNI6.mjs} +23 -1
  48. package/dist/cli/{chunk-R3OAKFHJ.mjs → chunk-TQTQ3YYA.mjs} +5 -5
  49. package/dist/cli/{chunk-Y7D6L4M7.mjs → chunk-U5646OVV.mjs} +5 -5
  50. package/dist/cli/{chunk-BQYXIAJM.js → chunk-UA4MXESL.js} +3 -3
  51. package/dist/cli/{chunk-AXA5DFY5.mjs → chunk-V6BUWQBI.mjs} +1 -1
  52. package/dist/cli/{chunk-FTJ2D3XD.mjs → chunk-VSLU4JZV.mjs} +3 -3
  53. package/dist/cli/{chunk-O655PVT4.js → chunk-VSPNBBRT.js} +29 -7
  54. package/dist/cli/{chunk-5A2SIIPH.mjs → chunk-XU57CH42.mjs} +1 -1
  55. package/dist/cli/{chunk-UMPHUAGZ.js → chunk-XXDY7K7F.js} +3 -3
  56. package/dist/cli/{chunk-4PWBHYH4.js → chunk-Y5QYWFRI.js} +7 -7
  57. package/dist/cli/{chunk-HXPHRSNM.js → chunk-YHHLLONU.js} +14 -14
  58. package/dist/cli/{chunk-RQ2BHYUM.mjs → chunk-YP3G2CP6.mjs} +2 -2
  59. package/dist/cli/{chunk-RU5JRQKJ.mjs → chunk-YVQLXMJU.mjs} +2 -2
  60. package/dist/cli/{csv-3TUJHAOW.mjs → csv-T7HIELZ2.mjs} +4 -4
  61. package/dist/cli/{csv-BKWIYPMK.js → csv-VJNR6FOZ.js} +13 -13
  62. package/dist/cli/{db-EJMJDKDA.js → db-JF2I54V7.js} +27 -27
  63. package/dist/cli/{db-I75IQ7XI.mjs → db-OE2EXZXL.mjs} +6 -6
  64. package/dist/cli/describe-4FLGKRCA.js +50 -0
  65. package/dist/cli/{describe-RUFLLRIN.mjs → describe-HXZZC3LC.mjs} +18 -18
  66. package/dist/cli/describe-core.d.mts +2 -2
  67. package/dist/cli/describe-core.d.ts +2 -2
  68. package/dist/cli/{executions-VW3MYJEE.mjs → executions-4BXRIJFF.mjs} +6 -6
  69. package/dist/cli/{executions-TQJCMUUG.js → executions-UQ2H6MJZ.js} +8 -8
  70. package/dist/cli/{feedback-UFAEXH5B.js → feedback-MKFN7DYY.js} +10 -10
  71. package/dist/cli/{feedback-76342G7E.mjs → feedback-TXF5CQKA.mjs} +5 -5
  72. package/dist/cli/git-B2QO3SLK.js +25 -0
  73. package/dist/cli/{git-L5XKAODI.mjs → git-MG3NAV65.mjs} +5 -5
  74. package/dist/cli/index.js +141 -141
  75. package/dist/cli/index.mjs +43 -43
  76. package/dist/cli/{legacy-noops-DM66YISP.js → legacy-noops-R76I2OWW.js} +9 -9
  77. package/dist/cli/{legacy-noops-DKAZ7JG3.mjs → legacy-noops-XSDY46XD.mjs} +6 -6
  78. package/dist/cli/{monitors-NKDIH4TY.js → monitors-FS3DIDM7.js} +100 -100
  79. package/dist/cli/{monitors-QXEJI54B.mjs → monitors-NVT5YQKV.mjs} +7 -7
  80. package/dist/cli/{org-NKIIBUNO.js → org-SBI6FC6D.js} +72 -72
  81. package/dist/cli/{org-KZQCVREB.mjs → org-XU7JONWS.mjs} +6 -6
  82. package/dist/cli/{pages-UJUFCJEL.js → pages-2CZFJJV6.js} +18 -18
  83. package/dist/cli/{pages-E7IT5SWT.mjs → pages-AFB5DVBR.mjs} +6 -6
  84. package/dist/cli/{play-AKL5E2DF.mjs → play-EQEIT5S4.mjs} +18 -18
  85. package/dist/cli/{play-SPI5MO67.js → play-WZH72UGC.js} +317 -317
  86. package/dist/cli/{providers-6HSSVI74.mjs → providers-3VXTATHF.mjs} +6 -6
  87. package/dist/cli/{providers-4NVQ3FSC.js → providers-SHSVUQA3.js} +9 -9
  88. package/dist/cli/{quickstart-EHLEHSMI.mjs → quickstart-45YS4SOD.mjs} +4 -4
  89. package/dist/cli/{quickstart-FEQD7S4Z.js → quickstart-KPVPK3VL.js} +6 -6
  90. package/dist/cli/{run-GH6ECTJF.js → run-U5RWBX5J.js} +41 -41
  91. package/dist/cli/{run-IWVM7BD6.mjs → run-XEHRZT57.mjs} +23 -23
  92. package/dist/cli/{search-X4CDMN7J.mjs → search-V7XIWBQ2.mjs} +8 -8
  93. package/dist/cli/search-Z2V43OPM.js +33 -0
  94. package/dist/cli/{search-output-PJ7N5WUQ.mjs → search-output-3KAJUV2A.mjs} +4 -4
  95. package/dist/cli/{search-output-IIYMGZTQ.js → search-output-ZNIICV5Z.js} +6 -6
  96. package/dist/cli/{secrets-QPP2FXID.js → secrets-53TUV6JK.js} +15 -15
  97. package/dist/cli/{secrets-4YPMC7XZ.mjs → secrets-SCSG3QXJ.mjs} +6 -6
  98. package/dist/cli/sessions-BOJCVLR7.js +18 -0
  99. package/dist/cli/{sessions-BEOI47VZ.mjs → sessions-MCTHLLK3.mjs} +6 -6
  100. package/dist/cli/{settings-VHULXNY3.mjs → settings-Q2HKACSE.mjs} +13 -13
  101. package/dist/cli/{settings-FZDONKPW.js → settings-ZNOXOIX2.js} +86 -86
  102. package/dist/cli/{setup-LZ6IN5JS.js → setup-GO4EULLY.js} +50 -50
  103. package/dist/cli/{setup-5IV3NHGD.mjs → setup-WKM35SZJ.mjs} +10 -10
  104. package/dist/cli/skills-B4BAH2B2.js +37 -0
  105. package/dist/cli/{skills-FZAFBW5J.mjs → skills-DZZLW6OV.mjs} +8 -8
  106. package/dist/cli/{tools-TLBH3RFK.mjs → tools-EKVSK6X4.mjs} +17 -17
  107. package/dist/cli/tools-Z5NCKIAB.js +57 -0
  108. package/dist/cli/{update-KPLIZYOV.mjs → update-FPHYVHSC.mjs} +10 -10
  109. package/dist/cli/update-XCL7F5T6.js +35 -0
  110. package/dist/cli/{workflow-ACHPT3DD.js → workflow-27H3NCNY.js} +17 -17
  111. package/dist/cli/{workflow-GYJOYYWK.mjs → workflow-5YAZK5EI.mjs} +7 -7
  112. package/dist/{client-CswZYCGj.d.ts → client-DhEOE19l.d.ts} +1 -1
  113. package/dist/{client-core-C1xVOg8Y.d.mts → client-core-BGiSMrBD.d.mts} +1 -1
  114. package/dist/{client-core-D2pLt36Q.d.ts → client-core-DYCGaRBZ.d.ts} +1 -1
  115. package/dist/{client-CpSiHSti.d.mts → client-lJmz2QwF.d.mts} +1 -1
  116. package/dist/index.d.mts +3 -3
  117. package/dist/index.d.ts +3 -3
  118. package/dist/index.js +9 -9
  119. package/dist/index.mjs +6 -6
  120. package/dist/install-integrity.json +108 -108
  121. package/dist/plays/play-description.d.mts +1 -1
  122. package/dist/plays/play-description.d.ts +1 -1
  123. package/dist/plays/run-request.d.mts +1 -1
  124. package/dist/plays/run-request.d.ts +1 -1
  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.d.mts +2 -2
  130. package/dist/server.d.ts +2 -2
  131. package/dist/server.js +5 -5
  132. package/dist/server.mjs +3 -3
  133. package/package.json +1 -1
  134. package/dist/cli/auth-DF6WJLN2.js +0 -43
  135. package/dist/cli/describe-EAK3MPTG.js +0 -50
  136. package/dist/cli/git-OOCPCIGZ.js +0 -25
  137. package/dist/cli/search-NIRYA3VL.js +0 -33
  138. package/dist/cli/sessions-5I2IFTW7.js +0 -18
  139. package/dist/cli/skills-WJWLFSHI.js +0 -37
  140. package/dist/cli/tools-SH35NRGU.js +0 -57
  141. package/dist/cli/update-MA46YSGR.js +0 -35
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  seedToolListScript
3
- } from "./chunk-N3LUYBOB.mjs";
3
+ } from "./chunk-5TEXJM6F.mjs";
4
4
  import {
5
5
  addDescribeOptions
6
- } from "./chunk-AL7FDMD6.mjs";
6
+ } from "./chunk-A5VR463F.mjs";
7
7
  import {
8
8
  describeLookupsFor,
9
9
  describeName,
@@ -14,18 +14,18 @@ import {
14
14
  } from "./chunk-ITJ7NB2D.mjs";
15
15
  import {
16
16
  DeeplineClient
17
- } from "./chunk-NH22WUUG.mjs";
17
+ } from "./chunk-6T2LB43P.mjs";
18
18
  import {
19
19
  failureReportHeaders,
20
20
  isFailureReportingDisabled
21
- } from "./chunk-RHQKDHCX.mjs";
21
+ } from "./chunk-ASGGZ6BI.mjs";
22
22
  import {
23
23
  printCommandEnvelope
24
- } from "./chunk-CRE3OGHH.mjs";
24
+ } from "./chunk-NLIO6QLP.mjs";
25
25
  import {
26
26
  autoDetectBaseUrl,
27
27
  resolveApiKeyForBaseUrl
28
- } from "./chunk-CBMTBMIJ.mjs";
28
+ } from "./chunk-QQGRQRCS.mjs";
29
29
 
30
30
  // src/cli/commands/describe.ts
31
31
  import { writeFileSync } from "fs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-CRE3OGHH.mjs";
3
+ } from "./chunk-NLIO6QLP.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -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 _chunkXBS4RDKUjs = require('./chunk-XBS4RDKU.js');
3
+ var _chunkJO2MQ6XRjs = require('./chunk-JO2MQ6XR.js');
4
4
 
5
5
 
6
- var _chunkG2QD575Pjs = require('./chunk-G2QD575P.js');
6
+ var _chunkGVTHFDKNjs = require('./chunk-GVTHFDKN.js');
7
7
 
8
8
 
9
9
 
@@ -14,18 +14,18 @@ var _chunkRVHUW4TNjs = require('./chunk-RVHUW4TN.js');
14
14
  var _chunkNTLBZUHDjs = require('./chunk-NTLBZUHD.js');
15
15
 
16
16
 
17
- var _chunkPK6VYYEYjs = require('./chunk-PK6VYYEY.js');
17
+ var _chunkI4GBCKBLjs = require('./chunk-I4GBCKBL.js');
18
18
 
19
19
 
20
20
 
21
- var _chunkHXPHRSNMjs = require('./chunk-HXPHRSNM.js');
21
+ var _chunkYHHLLONUjs = require('./chunk-YHHLLONU.js');
22
22
 
23
23
 
24
- var _chunk4PWBHYH4js = require('./chunk-4PWBHYH4.js');
24
+ var _chunkY5QYWFRIjs = require('./chunk-Y5QYWFRI.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkBQYXIAJMjs = require('./chunk-BQYXIAJM.js');
28
+ var _chunkUA4MXESLjs = require('./chunk-UA4MXESL.js');
29
29
 
30
30
  // src/cli/commands/describe.ts
31
31
  var _fs = require('fs');
@@ -34,14 +34,14 @@ var _path = require('path');
34
34
  // src/cli/doc-read-reporting.ts
35
35
  var REPORT_TIMEOUT_MS = 1e3;
36
36
  async function reportDocRead(docId) {
37
- if (_chunkHXPHRSNMjs.isFailureReportingDisabled.call(void 0, )) return;
37
+ if (_chunkYHHLLONUjs.isFailureReportingDisabled.call(void 0, )) return;
38
38
  try {
39
- const baseUrl = _chunkBQYXIAJMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
40
- const apiKey = _chunkBQYXIAJMjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
39
+ const baseUrl = _chunkUA4MXESLjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
40
+ const apiKey = _chunkUA4MXESLjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
41
41
  if (!apiKey) return;
42
42
  await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
43
43
  method: "POST",
44
- headers: _chunkHXPHRSNMjs.failureReportHeaders.call(void 0, apiKey),
44
+ headers: _chunkYHHLLONUjs.failureReportHeaders.call(void 0, apiKey),
45
45
  body: JSON.stringify({ doc_id: docId }),
46
46
  signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
47
47
  });
@@ -54,16 +54,16 @@ function nothingNamed(name) {
54
54
  return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
55
55
  }
56
56
  function findNamed2(name, options) {
57
- return _chunkRVHUW4TNjs.findNamed.call(void 0, name, options, _chunkRVHUW4TNjs.describeLookupsFor.call(void 0, new (0, _chunkPK6VYYEYjs.DeeplineClient)()));
57
+ return _chunkRVHUW4TNjs.findNamed.call(void 0, name, options, _chunkRVHUW4TNjs.describeLookupsFor.call(void 0, new (0, _chunkI4GBCKBLjs.DeeplineClient)()));
58
58
  }
59
59
  async function describeAnything(name, options, onMissing) {
60
- const client = new (0, _chunkPK6VYYEYjs.DeeplineClient)();
60
+ const client = new (0, _chunkI4GBCKBLjs.DeeplineClient)();
61
61
  const lookups = _chunkRVHUW4TNjs.describeLookupsFor.call(void 0, client);
62
62
  const outcome = await _chunkRVHUW4TNjs.describeName.call(void 0, name, options, {
63
63
  ...lookups,
64
64
  // `tools describe` has already fetched the tool for its compatibility check.
65
65
  tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
66
- seedStarterScript: _chunkXBS4RDKUjs.seedToolListScript
66
+ seedStarterScript: _chunkJO2MQ6XRjs.seedToolListScript
67
67
  });
68
68
  if (outcome.status === "missing") {
69
69
  if (onMissing) return onMissing();
@@ -89,18 +89,18 @@ function deliver(envelope, lines, { json, out }) {
89
89
  ` : text;
90
90
  _fs.writeFileSync.call(void 0, path, content);
91
91
  const bytes = Buffer.byteLength(content);
92
- _chunk4PWBHYH4js.printCommandEnvelope.call(void 0,
92
+ _chunkY5QYWFRIjs.printCommandEnvelope.call(void 0,
93
93
  { path, bytes },
94
94
  { json, text: `Wrote ${path} (${bytes} bytes)
95
95
  ` }
96
96
  );
97
97
  return 0;
98
98
  }
99
- _chunk4PWBHYH4js.printCommandEnvelope.call(void 0, envelope, { json, text });
99
+ _chunkY5QYWFRIjs.printCommandEnvelope.call(void 0, envelope, { json, text });
100
100
  return 0;
101
101
  }
102
102
  function registerDescribeCommand(program) {
103
- _chunkG2QD575Pjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
103
+ _chunkGVTHFDKNjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
104
104
  "Describe anything search returns: a tool, monitor type, or play."
105
105
  ).addHelpText(
106
106
  "after",
@@ -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 _chunkORNLTNBNjs = require('./chunk-ORNLTNBN.js');
3
+ var _chunk4VR5OTYPjs = require('./chunk-4VR5OTYP.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 = _chunkORNLTNBNjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunk4VR5OTYPjs.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,
@@ -4,21 +4,21 @@
4
4
 
5
5
 
6
6
 
7
- var _chunk52DFTRVCjs = require('./chunk-52DFTRVC.js');
7
+ var _chunkD5VTWJ7Kjs = require('./chunk-D5VTWJ7K.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkORNLTNBNjs = require('./chunk-ORNLTNBN.js');
11
+ var _chunk4VR5OTYPjs = require('./chunk-4VR5OTYP.js');
12
12
 
13
13
 
14
14
 
15
- var _chunk4PWBHYH4js = require('./chunk-4PWBHYH4.js');
15
+ var _chunkY5QYWFRIjs = require('./chunk-Y5QYWFRI.js');
16
16
 
17
17
 
18
- var _chunkBQYXIAJMjs = require('./chunk-BQYXIAJM.js');
18
+ var _chunkUA4MXESLjs = require('./chunk-UA4MXESL.js');
19
19
 
20
20
 
21
- var _chunkTT2XB433js = require('./chunk-TT2XB433.js');
21
+ var _chunkBHAP6FIZjs = require('./chunk-BHAP6FIZ.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 = _chunkBQYXIAJMjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
48
+ apiKey = _chunkUA4MXESLjs.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/${_chunkTT2XB433js.SDK_VERSION}`,
64
+ "User-Agent": `deepline-ts-sdk/${_chunkBHAP6FIZjs.SDK_VERSION}`,
65
65
  "X-Deepline-Client-Family": "sdk",
66
66
  "X-Deepline-CLI-Family": "sdk",
67
- "X-Deepline-CLI-Version": _chunkTT2XB433js.SDK_VERSION,
68
- "X-Deepline-SDK-Version": _chunkTT2XB433js.SDK_VERSION
67
+ "X-Deepline-CLI-Version": _chunkBHAP6FIZjs.SDK_VERSION,
68
+ "X-Deepline-SDK-Version": _chunkBHAP6FIZjs.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()]) || _chunkTT2XB433js.SDK_VERSION,
72
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkBHAP6FIZjs.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") || !_chunk52DFTRVCjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkORNLTNBNjs.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") || !_chunkD5VTWJ7Kjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunk4VR5OTYPjs.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()]) || _chunkTT2XB433js.SDK_VERSION;
95
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkBHAP6FIZjs.SDK_VERSION;
96
96
  if (!target) return false;
97
- return _chunk52DFTRVCjs.compareUpdateVersions.call(void 0, target, current) < 0;
97
+ return _chunkD5VTWJ7Kjs.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()]) || _chunkTT2XB433js.SDK_VERSION;
150
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkBHAP6FIZjs.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 = _chunk52DFTRVCjs.resolveUpdatePlan.call(void 0, {
158
+ const plan = _chunkD5VTWJ7Kjs.resolveUpdatePlan.call(void 0, {
159
159
  packageSpec,
160
160
  requireVerifiedNpmOwnership: true,
161
161
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
162
162
  });
163
- if (!_chunk52DFTRVCjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
163
+ if (!_chunkD5VTWJ7Kjs.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 (_chunk4PWBHYH4js.isJsonOutputMode.call(void 0, )) {
170
+ if (_chunkY5QYWFRIjs.isJsonOutputMode.call(void 0, )) {
171
171
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
172
- _chunk4PWBHYH4js.addJsonNotice.call(void 0, {
172
+ _chunkY5QYWFRIjs.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 (!_chunk52DFTRVCjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
185
+ if (!_chunkD5VTWJ7Kjs.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 _chunk52DFTRVCjs.runAutomaticUpdatePlan.call(void 0, plan);
198
+ const updateResult = await _chunkD5VTWJ7Kjs.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 _chunkORNLTNBNjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
236
+ await _chunk4VR5OTYPjs.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 (!_chunk4PWBHYH4js.isJsonOutputMode.call(void 0, )) console.error(line);
263
+ if (!_chunkY5QYWFRIjs.isJsonOutputMode.call(void 0, )) console.error(line);
264
264
  }
265
265
  function beginToolExecuteCommand() {
266
266
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  rejectRestrictedFeedback
3
- } from "./chunk-FEJKDR67.mjs";
3
+ } from "./chunk-NNUJQ5O2.mjs";
4
4
  import {
5
5
  getAuthedHttpClient,
6
6
  printCommandEnvelope
7
- } from "./chunk-CRE3OGHH.mjs";
7
+ } from "./chunk-NLIO6QLP.mjs";
8
8
  import {
9
9
  agentSessionIdFromEnvironment
10
- } from "./chunk-5A2SIIPH.mjs";
10
+ } from "./chunk-XU57CH42.mjs";
11
11
 
12
12
  // src/cli/commands/sessions.ts
13
13
  import {
@@ -2,10 +2,10 @@ import {
2
2
  HttpClient,
3
3
  resolveCliCommandContext,
4
4
  resolveConfig
5
- } from "./chunk-CBMTBMIJ.mjs";
5
+ } from "./chunk-QQGRQRCS.mjs";
6
6
  import {
7
7
  detectAgentRuntime
8
- } from "./chunk-5A2SIIPH.mjs";
8
+ } from "./chunk-XU57CH42.mjs";
9
9
  import {
10
10
  DeeplineError,
11
11
  readToolUpstreamResponse,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  printCommandEnvelope
3
- } from "./chunk-CRE3OGHH.mjs";
3
+ } from "./chunk-NLIO6QLP.mjs";
4
4
 
5
5
  // src/cli/feedback-preferences.ts
6
6
  import {
@@ -4,21 +4,21 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-IMIHYCJ5.mjs";
7
+ } from "./chunk-6VY2SJ6B.mjs";
8
8
  import {
9
9
  isCiEnvironment,
10
10
  syncSdkSkillsIfNeeded
11
- } from "./chunk-R3OAKFHJ.mjs";
11
+ } from "./chunk-TQTQ3YYA.mjs";
12
12
  import {
13
13
  addJsonNotice,
14
14
  isJsonOutputMode
15
- } from "./chunk-CRE3OGHH.mjs";
15
+ } from "./chunk-NLIO6QLP.mjs";
16
16
  import {
17
17
  resolveApiKeyForBaseUrl
18
- } from "./chunk-CBMTBMIJ.mjs";
18
+ } from "./chunk-QQGRQRCS.mjs";
19
19
  import {
20
20
  SDK_VERSION
21
- } from "./chunk-5A2SIIPH.mjs";
21
+ } from "./chunk-XU57CH42.mjs";
22
22
 
23
23
  // src/cli/compatibility-catalog.ts
24
24
  var readers = /* @__PURE__ */ new WeakMap();
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-3CUIIVGR.mjs";
3
+ } from "./chunk-KKSMHTQO.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-R3OAKFHJ.mjs";
8
+ } from "./chunk-TQTQ3YYA.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {