deepline 0.3.498 → 0.3.500

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 (123) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  3. package/dist/cli/auth-H4PCVUN3.js +43 -0
  4. package/dist/cli/{auth-TNYYAPIX.mjs → auth-WK3FDPRP.mjs} +5 -5
  5. package/dist/cli/{billing-MP43H3ZK.js → billing-K7UHZUF4.js} +79 -79
  6. package/dist/cli/{billing-G6QBOZAE.mjs → billing-O3LVKXE7.mjs} +6 -6
  7. package/dist/cli/{chunk-4RSOYJ67.mjs → chunk-4CJWOLOS.mjs} +3 -3
  8. package/dist/cli/{chunk-6JVJZ7YG.mjs → chunk-56QAHX2K.mjs} +1 -1
  9. package/dist/cli/{chunk-OFNXUDEC.mjs → chunk-5AC7NUQN.mjs} +5 -5
  10. package/dist/cli/{chunk-MRHMC33S.mjs → chunk-5JXGYSXH.mjs} +1 -1
  11. package/dist/cli/{chunk-VUNAIAMX.js → chunk-5KAZGZG7.js} +5 -5
  12. package/dist/cli/{chunk-3XNYGMPZ.mjs → chunk-5TVY5OEH.mjs} +10 -10
  13. package/dist/cli/{chunk-YCGVVUGX.js → chunk-74VKLBJD.js} +9 -9
  14. package/dist/cli/{chunk-UA2GU7NB.js → chunk-BIE57V6K.js} +7 -7
  15. package/dist/cli/{chunk-IE6FYMUS.mjs → chunk-C7355NMU.mjs} +1 -1
  16. package/dist/cli/{chunk-PAHFVOFZ.mjs → chunk-CBZTKDXW.mjs} +1 -1
  17. package/dist/cli/{chunk-H7YR4EYF.mjs → chunk-CIV5GJAE.mjs} +9 -5
  18. package/dist/cli/{chunk-C7BH7T3T.mjs → chunk-FJZUG633.mjs} +2 -2
  19. package/dist/cli/{chunk-TDUTNTA5.js → chunk-G3NA4R7M.js} +53 -53
  20. package/dist/cli/{chunk-TLG75Q77.js → chunk-GBRI644Y.js} +53 -53
  21. package/dist/cli/{chunk-VFYKFPZD.js → chunk-GOO4VI5M.js} +16 -16
  22. package/dist/cli/{chunk-ZEYB6QPW.mjs → chunk-HI2BFS5S.mjs} +2 -2
  23. package/dist/cli/{chunk-PKTJN6PF.js → chunk-IX2DPYIV.js} +3 -3
  24. package/dist/cli/{chunk-2QS3MCJ2.mjs → chunk-IZ6YWXIK.mjs} +2 -2
  25. package/dist/cli/{chunk-VETP54NO.mjs → chunk-JHNFUCVT.mjs} +4 -4
  26. package/dist/cli/{chunk-XGUGFGCF.js → chunk-K3BHKRMS.js} +3 -3
  27. package/dist/cli/{chunk-IUCAVYXR.js → chunk-KEBNXJSK.js} +16 -16
  28. package/dist/cli/{chunk-UUFZFJL4.mjs → chunk-L7X6ADNM.mjs} +4 -4
  29. package/dist/cli/{chunk-IBCROFZW.js → chunk-LNMY2T5S.js} +41 -41
  30. package/dist/cli/{chunk-O4H53SJ4.mjs → chunk-MAHLIWOF.mjs} +2 -2
  31. package/dist/cli/{chunk-EHOC6NCN.mjs → chunk-PGRPNRP6.mjs} +1 -1
  32. package/dist/cli/{chunk-QERMP4TW.js → chunk-PHGMC33I.js} +2 -2
  33. package/dist/cli/{chunk-BQIEYWGQ.js → chunk-Q2FXZ4Z5.js} +94 -94
  34. package/dist/cli/{chunk-KLA4IUOI.mjs → chunk-QRKCCY4L.mjs} +28 -22
  35. package/dist/cli/{chunk-PHBJ2VDS.js → chunk-RAZ3TMOS.js} +7 -7
  36. package/dist/cli/{chunk-OL2QEEXF.js → chunk-REIKJREB.js} +5 -5
  37. package/dist/cli/{chunk-DB7SJKGI.js → chunk-RHE4YI4H.js} +6 -6
  38. package/dist/cli/{chunk-TPQFCUPV.js → chunk-SNJNPRIV.js} +15 -11
  39. package/dist/cli/{chunk-XNYAIV4E.js → chunk-SNPZ2QWL.js} +8 -8
  40. package/dist/cli/{chunk-SR3PRGWB.mjs → chunk-SRS2D27G.mjs} +1 -1
  41. package/dist/cli/{chunk-RZA6HSXX.mjs → chunk-T4AGTOKQ.mjs} +6 -6
  42. package/dist/cli/{chunk-2HCZHIMT.mjs → chunk-TFFJ2PRN.mjs} +5 -3
  43. package/dist/cli/{chunk-EAQXRAVF.js → chunk-TOGCDNMH.js} +4 -4
  44. package/dist/cli/{chunk-QDNP6KOF.js → chunk-U5GFP26N.js} +21 -21
  45. package/dist/cli/{chunk-ELZYHPE7.mjs → chunk-V7MZYIA7.mjs} +5 -5
  46. package/dist/cli/{chunk-FPRS3FP4.js → chunk-VLCY4F6E.js} +26 -26
  47. package/dist/cli/{chunk-RZO743TC.mjs → chunk-VPVEPGYS.mjs} +2 -2
  48. package/dist/cli/{chunk-XUTIBRKF.js → chunk-W64Y7GE7.js} +1 -1
  49. package/dist/cli/{chunk-KV4RNW2H.mjs → chunk-X5SO7RV5.mjs} +4 -4
  50. package/dist/cli/{chunk-QUIJUNXX.js → chunk-X7ODM2LK.js} +30 -24
  51. package/dist/cli/{chunk-LGE6ZOEO.mjs → chunk-XCBOOB73.mjs} +1 -1
  52. package/dist/cli/{chunk-4TVN2676.mjs → chunk-XUOZYAP5.mjs} +2 -2
  53. package/dist/cli/{chunk-N3T3L3WW.js → chunk-YPTZJ7LO.js} +5 -3
  54. package/dist/cli/{chunk-KRR2Z2FH.js → chunk-Z5LE7NXM.js} +2 -2
  55. package/dist/cli/command-docs.js +2 -2
  56. package/dist/cli/command-docs.mjs +1 -1
  57. package/dist/cli/{csv-LBUOESU2.mjs → csv-DEUOSTEB.mjs} +4 -4
  58. package/dist/cli/{csv-SCXUWRVV.js → csv-MWCWNIBJ.js} +13 -13
  59. package/dist/cli/{db-CC2D2GSL.js → db-Q6IRXTTG.js} +27 -27
  60. package/dist/cli/{db-3SI2OXIV.mjs → db-QM5R5BRY.mjs} +6 -6
  61. package/dist/cli/describe-BZ544347.js +50 -0
  62. package/dist/cli/{describe-ZK5CMT4M.mjs → describe-CQZ7TBOG.mjs} +17 -17
  63. package/dist/cli/{executions-YKYQIRPP.js → executions-DCCDXSQI.js} +8 -8
  64. package/dist/cli/{executions-DVPHIG2I.mjs → executions-SWBKFCY2.mjs} +6 -6
  65. package/dist/cli/{feedback-BVLYZ3BM.js → feedback-EU3EYF4V.js} +8 -8
  66. package/dist/cli/{feedback-UQRMPU2S.mjs → feedback-Q27HN3SB.mjs} +4 -4
  67. package/dist/cli/git-NW6BAXX2.js +25 -0
  68. package/dist/cli/{git-WTMZ66HP.mjs → git-SEQFTQ4N.mjs} +5 -5
  69. package/dist/cli/index.js +141 -141
  70. package/dist/cli/index.mjs +41 -41
  71. package/dist/cli/{legacy-noops-TVJ5WOBD.js → legacy-noops-LCQDEVA3.js} +8 -8
  72. package/dist/cli/{legacy-noops-RUQT6DB3.mjs → legacy-noops-XKH4VREG.mjs} +5 -5
  73. package/dist/cli/{monitors-ZQBZMFUL.mjs → monitors-4XWBV46I.mjs} +7 -7
  74. package/dist/cli/{monitors-UYYJBO6U.js → monitors-DJCID6X5.js} +95 -95
  75. package/dist/cli/{org-4TZED2IF.js → org-BU4FG5PN.js} +72 -72
  76. package/dist/cli/{org-UACQHFY6.mjs → org-PSBGXBRW.mjs} +6 -6
  77. package/dist/cli/{pages-HDYYGZOT.js → pages-3PHJYXYB.js} +18 -18
  78. package/dist/cli/{pages-R2KSZCYK.mjs → pages-7QLXLJGQ.mjs} +6 -6
  79. package/dist/cli/{play-DQ4AZ2NV.mjs → play-4OLYXRCG.mjs} +37 -27
  80. package/dist/cli/{play-ZMYWHAV3.js → play-S3CWPQKB.js} +406 -396
  81. package/dist/cli/{providers-X53WCX46.mjs → providers-JT7C2QTC.mjs} +6 -6
  82. package/dist/cli/{providers-I7GXTYG4.js → providers-U4JUMLB2.js} +9 -9
  83. package/dist/cli/{quickstart-DKVF32MY.mjs → quickstart-DQF5CF2I.mjs} +4 -4
  84. package/dist/cli/{quickstart-GKW46HUR.js → quickstart-OUSMXLYZ.js} +6 -6
  85. package/dist/cli/{run-VLX775L5.js → run-6XXHLB4X.js} +82 -43
  86. package/dist/cli/{run-A36EBVLD.mjs → run-RECNI77K.mjs} +69 -30
  87. package/dist/cli/search-BIQ62ZBE.js +32 -0
  88. package/dist/cli/{search-QHO4AYS2.mjs → search-JN7K3GC6.mjs} +7 -7
  89. package/dist/cli/{search-output-P7GWSTNO.js → search-output-JGNYXDWZ.js} +6 -6
  90. package/dist/cli/{search-output-YF5HCWKU.mjs → search-output-L6PC5SPM.mjs} +4 -4
  91. package/dist/cli/{secrets-3X56AV2F.js → secrets-TX6PCZ77.js} +15 -15
  92. package/dist/cli/{secrets-XTHBAX26.mjs → secrets-UOXZWHBY.mjs} +6 -6
  93. package/dist/cli/{sessions-4ZVZABXN.mjs → sessions-DTE733EH.mjs} +5 -5
  94. package/dist/cli/{sessions-AJUQJR4G.js → sessions-GCEIX4KB.js} +6 -6
  95. package/dist/cli/{settings-R7RQC5Z3.js → settings-UGXSDHR5.js} +78 -78
  96. package/dist/cli/{settings-AX5JF47R.mjs → settings-ZGIMRCTC.mjs} +11 -11
  97. package/dist/cli/{setup-QB62E6K5.js → setup-JYB6Z376.js} +49 -49
  98. package/dist/cli/{setup-DTXQODYK.mjs → setup-UT7AO53D.mjs} +9 -9
  99. package/dist/cli/{skills-N6OY5ABC.mjs → skills-4QJCMN7J.mjs} +7 -7
  100. package/dist/cli/skills-53LCPB5R.js +36 -0
  101. package/dist/cli/tools-HKJK6UNJ.js +57 -0
  102. package/dist/cli/{tools-3T4GKGS4.mjs → tools-RGNXIAA6.mjs} +16 -16
  103. package/dist/cli/{update-QDT4SFW3.mjs → update-Q62EVSXZ.mjs} +9 -9
  104. package/dist/cli/update-QMZSFTFZ.js +34 -0
  105. package/dist/cli/{workflow-FW3FPOWU.js → workflow-GENV47RD.js} +17 -17
  106. package/dist/cli/{workflow-Q7LQETNW.mjs → workflow-YNIOWM7J.mjs} +7 -7
  107. package/dist/index.js +9 -9
  108. package/dist/index.mjs +6 -6
  109. package/dist/install-integrity.json +100 -100
  110. package/dist/release.d.mts +1 -1
  111. package/dist/release.d.ts +1 -1
  112. package/dist/release.js +2 -2
  113. package/dist/release.mjs +1 -1
  114. package/dist/server.js +5 -5
  115. package/dist/server.mjs +3 -3
  116. package/package.json +1 -1
  117. package/dist/cli/auth-NYYFDCMT.js +0 -43
  118. package/dist/cli/describe-DAUL3SDQ.js +0 -50
  119. package/dist/cli/git-MFIJCRX6.js +0 -25
  120. package/dist/cli/search-STXZIGVB.js +0 -32
  121. package/dist/cli/skills-IEP5L5MQ.js +0 -36
  122. package/dist/cli/tools-JWBXEZKY.js +0 -57
  123. package/dist/cli/update-QME3C2VP.js +0 -34
@@ -5,8 +5,10 @@ import {
5
5
  } from "./chunk-SAW3FBCA.mjs";
6
6
  import {
7
7
  csvSafeJsonString,
8
- csvStringFromRows
9
- } from "./chunk-H7YR4EYF.mjs";
8
+ csvStringFromRows,
9
+ markJsonOutputHandled,
10
+ writeRawStderr
11
+ } from "./chunk-CIV5GJAE.mjs";
10
12
 
11
13
  // src/cli/describe-options.ts
12
14
  function addDescribeOptions(command, options = {}) {
@@ -533,11 +535,8 @@ function preflightExecutionOutput(options) {
533
535
  },
534
536
  ran: false
535
537
  },
536
- // A rejected destination must not be opened, nor may errors pollute data stdout.
537
- {
538
- receiptJson: options.receiptJson,
539
- ...dataOnStdout(options) ? { jsonOut: "-" } : {}
540
- }
538
+ options,
539
+ { skipReceiptFile: true }
541
540
  );
542
541
  return false;
543
542
  }
@@ -644,7 +643,7 @@ function csvText(rows, columns = []) {
644
643
  });
645
644
  return csvStringFromRows(projection.rows, projection.columns);
646
645
  }
647
- function writeExecutionOutput(result, options) {
646
+ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
648
647
  let temp;
649
648
  const temporary = (name) => join(temp ??= mkdtempSync(join(tmpdir(), "deepline-output-")), name);
650
649
  const jsonText = (value) => `${JSON.stringify(value, null, 2)}
@@ -767,13 +766,16 @@ function writeExecutionOutput(result, options) {
767
766
  error: result.error ?? null,
768
767
  next: result.next ?? {}
769
768
  };
770
- const receiptFile = options.receiptOut ? persist(options.receiptOut, jsonText(receipt)) : null;
771
- printReceipt(receipt, options, {
772
- receiptFile,
773
- data: hasData ? result.data : void 0,
774
- ran: result.ran,
775
- declared: result.declared
776
- });
769
+ if (options.receiptOut && !skipReceiptFile) {
770
+ persist(options.receiptOut, jsonText(receipt));
771
+ markJsonOutputHandled();
772
+ } else {
773
+ printReceipt(receipt, options, {
774
+ data: hasData ? result.data : void 0,
775
+ ran: result.ran,
776
+ declared: result.declared
777
+ });
778
+ }
777
779
  if (stdoutData !== void 0) process.stdout.write(stdoutData);
778
780
  } catch (error) {
779
781
  let recoveryFile = null;
@@ -781,6 +783,7 @@ function writeExecutionOutput(result, options) {
781
783
  if (result.data !== void 0) recoveryFile = ensureJson();
782
784
  } catch {
783
785
  }
786
+ const retryWarning = "Do not re-execute paid work.";
784
787
  const failure = {
785
788
  status: "output_failed",
786
789
  id: result.id,
@@ -793,16 +796,16 @@ function writeExecutionOutput(result, options) {
793
796
  schemaFile: null,
794
797
  logsFile: options.logsFile ?? null,
795
798
  collections: [],
796
- warnings: [],
799
+ warnings: options.receiptOut !== void 0 && result.id ? [retryWarning] : [],
797
800
  error: {
798
801
  message: error instanceof Error ? error.message : String(error),
799
802
  recoveryFile
800
803
  },
801
804
  next: result.next ?? {}
802
805
  };
803
- printReceipt(failure, options, { receiptFile: null, ran: result.ran });
806
+ printReceipt(failure, options, { ran: result.ran });
804
807
  throw new ExecutionOutputError(
805
- `Output failed${result.id ? ` for ${result.id}` : ""}: ${error instanceof Error ? error.message : String(error)}. Do not re-execute paid work.`,
808
+ `Output failed${result.id ? ` for ${result.id}` : ""}: ${error instanceof Error ? error.message : String(error)}. ${retryWarning}`,
806
809
  { cause: error }
807
810
  );
808
811
  }
@@ -951,9 +954,6 @@ function receiptText(receipt, options, extra) {
951
954
  )
952
955
  ]);
953
956
  }
954
- if (extra.receiptFile) {
955
- sections.push([`JSON receipt: ${extra.receiptFile}`]);
956
- }
957
957
  if (resultSection) sections.push(resultSection);
958
958
  return `${sections.map((lines) => lines.join("\n")).join("\n\n")}
959
959
  `;
@@ -1026,7 +1026,12 @@ function resultLines(title, data, declared, options) {
1026
1026
  function printReceipt(receipt, options, extra) {
1027
1027
  const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
1028
1028
  ` : receiptText(receipt, options, extra);
1029
- (dataOnStdout(options) ? process.stderr : process.stdout).write(text);
1029
+ if (options.receiptOut !== void 0) {
1030
+ writeRawStderr(text);
1031
+ markJsonOutputHandled();
1032
+ } else {
1033
+ (dataOnStdout(options) ? process.stderr : process.stdout).write(text);
1034
+ }
1030
1035
  }
1031
1036
  function openLogDestination(output) {
1032
1037
  if (output.logsOut === "-") {
@@ -1054,6 +1059,7 @@ export {
1054
1059
  underscoreKeysLast,
1055
1060
  orderRunExportJson,
1056
1061
  writeRunDatasetCsv,
1062
+ ExecutionOutputError,
1057
1063
  preflightExecutionOutput,
1058
1064
  outputCollections,
1059
1065
  writeExecutionOutput,
@@ -3,14 +3,14 @@
3
3
  var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
4
4
 
5
5
 
6
- var _chunkOL2QEEXFjs = require('./chunk-OL2QEEXF.js');
6
+ var _chunkREIKJREBjs = require('./chunk-REIKJREB.js');
7
7
 
8
8
 
9
- var _chunkTPQFCUPVjs = require('./chunk-TPQFCUPV.js');
9
+ var _chunkSNJNPRIVjs = require('./chunk-SNJNPRIV.js');
10
10
 
11
11
 
12
12
 
13
- var _chunkXGUGFGCFjs = require('./chunk-XGUGFGCF.js');
13
+ var _chunkK3BHKRMSjs = require('./chunk-K3BHKRMS.js');
14
14
 
15
15
  // src/cli/commands/search.ts
16
16
  var _commander = require('commander');
@@ -20,7 +20,7 @@ var _fs = require('fs');
20
20
  var _path = require('path');
21
21
  var SEARCH_REF_TTL_MS = 15 * 6e4;
22
22
  function lastSearchPath() {
23
- return _path.join.call(void 0, _chunkXGUGFGCFjs.sdkCliStateDirPath.call(void 0, _chunkXGUGFGCFjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
23
+ return _path.join.call(void 0, _chunkK3BHKRMSjs.sdkCliStateDirPath.call(void 0, _chunkK3BHKRMSjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
24
24
  }
25
25
  function rememberSearchRef(searchRef) {
26
26
  try {
@@ -119,7 +119,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
119
119
  console.error("--summary-width must be an integer of at least 2.");
120
120
  return 1;
121
121
  }
122
- const { search_ref: searchRef, ...result } = await new (0, _chunkOL2QEEXFjs.DeeplineClient)().search({
122
+ const { search_ref: searchRef, ...result } = await new (0, _chunkREIKJREBjs.DeeplineClient)().search({
123
123
  query,
124
124
  types,
125
125
  exclude,
@@ -133,8 +133,8 @@ async function runSearch(queryInput, options, types, exclude = []) {
133
133
  });
134
134
  if (searchRef) rememberSearchRef(searchRef);
135
135
  pointAtDescribe(result);
136
- const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-P7GWSTNO.js")));
137
- _chunkTPQFCUPVjs.printCommandEnvelope.call(void 0, result, {
136
+ const { renderSearchResults } = await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-JGNYXDWZ.js")));
137
+ _chunkSNJNPRIVjs.printCommandEnvelope.call(void 0, result, {
138
138
  json: options.json === true,
139
139
  text: renderSearchResults(result, summaryWidth)
140
140
  });
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkUA2GU7NBjs = require('./chunk-UA2GU7NB.js');
3
+ var _chunkBIE57V6Kjs = require('./chunk-BIE57V6K.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkXGUGFGCFjs = require('./chunk-XGUGFGCF.js');
7
+ var _chunkK3BHKRMSjs = require('./chunk-K3BHKRMS.js');
8
8
 
9
9
  // src/client.ts
10
- var DeeplineClient2 = class extends _chunkUA2GU7NBjs.DeeplineClient {
10
+ var DeeplineClient2 = class extends _chunkBIE57V6Kjs.DeeplineClient {
11
11
  constructor(options) {
12
- const config = _chunkXGUGFGCFjs.resolveConfig.call(void 0, options);
13
- super(config, new (0, _chunkXGUGFGCFjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
12
+ const config = _chunkK3BHKRMSjs.resolveConfig.call(void 0, options);
13
+ super(config, new (0, _chunkK3BHKRMSjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
14
14
  }
15
15
  };
16
16
 
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkQERMP4TWjs = require('./chunk-QERMP4TW.js');
3
+ var _chunkPHGMC33Ijs = require('./chunk-PHGMC33I.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkTLG75Q77js = require('./chunk-TLG75Q77.js');
8
+ var _chunkGBRI644Yjs = require('./chunk-GBRI644Y.js');
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -18,11 +18,11 @@ function usesCliPlayAdmission(command, args) {
18
18
  }
19
19
  async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
20
20
  _optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
21
- if (maintenancePolicy !== "off") _chunkTLG75Q77js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
- const compatibility = await _chunkQERMP4TWjs.traceCliSpan.call(void 0,
21
+ if (maintenancePolicy !== "off") _chunkGBRI644Yjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
+ const compatibility = await _chunkPHGMC33Ijs.traceCliSpan.call(void 0,
23
23
  "cli.sdk_compatibility",
24
24
  { baseUrl, command: "plays run" },
25
- () => _chunkTLG75Q77js.checkSdkCompatibility.call(void 0, baseUrl, {
25
+ () => _chunkGBRI644Yjs.checkSdkCompatibility.call(void 0, baseUrl, {
26
26
  command: "plays run",
27
27
  persistCache: maintenancePolicy !== "off",
28
28
  signal
@@ -30,7 +30,7 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
30
30
  );
31
31
  _optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
32
32
  if (compatibility.error) throw compatibility.error;
33
- _chunkTLG75Q77js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
33
+ _chunkGBRI644Yjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
34
34
  quietAdvisory: true
35
35
  });
36
36
  }
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkXGUGFGCFjs = require('./chunk-XGUGFGCF.js');
5
+ var _chunkK3BHKRMSjs = require('./chunk-K3BHKRMS.js');
6
6
 
7
7
 
8
- var _chunkEAQXRAVFjs = require('./chunk-EAQXRAVF.js');
8
+ var _chunkTOGCDNMHjs = require('./chunk-TOGCDNMH.js');
9
9
 
10
10
 
11
11
 
@@ -125,7 +125,7 @@ var ANSI_PATTERN = /\x1b\[[0-9;?]*[A-Za-z]|\r/g;
125
125
  var installed = false;
126
126
  var pending = [];
127
127
  var rawStderrWrite = null;
128
- var stdoutWritten = false;
128
+ var jsonOutputHandled = false;
129
129
  function isJsonOutputMode() {
130
130
  return process.argv.includes("--json");
131
131
  }
@@ -135,7 +135,7 @@ function installJsonStderrGuard() {
135
135
  rawStderrWrite = process.stderr.write.bind(process.stderr);
136
136
  const stdoutWrite = process.stdout.write.bind(process.stdout);
137
137
  process.stdout.write = ((...args) => {
138
- stdoutWritten = true;
138
+ markJsonOutputHandled();
139
139
  return stdoutWrite(...args);
140
140
  });
141
141
  const capture = (chunk) => {
@@ -162,8 +162,11 @@ function addJsonNotice(notice) {
162
162
  function writeRawStderr(text) {
163
163
  (_nullishCoalesce(rawStderrWrite, () => ( process.stderr.write.bind(process.stderr))))(text);
164
164
  }
165
+ function markJsonOutputHandled() {
166
+ jsonOutputHandled = true;
167
+ }
165
168
  function takeSilentJsonFailureMessage(exitCode) {
166
- if (!installed || stdoutWritten || !exitCode || Number(exitCode) === 0) {
169
+ if (!installed || jsonOutputHandled || !exitCode || Number(exitCode) === 0) {
167
170
  return null;
168
171
  }
169
172
  const index = pending.findIndex((notice) => typeof notice === "string");
@@ -290,8 +293,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
290
293
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
291
294
  var defaultBrowserCommandRunner = childProcess;
292
295
  function getAuthedHttpClient() {
293
- const config = _chunkXGUGFGCFjs.resolveConfig.call(void 0, );
294
- return { config, http: new (0, _chunkXGUGFGCFjs.HttpClient)(config) };
296
+ const config = _chunkK3BHKRMSjs.resolveConfig.call(void 0, );
297
+ return { config, http: new (0, _chunkK3BHKRMSjs.HttpClient)(config) };
295
298
  }
296
299
  function stableOsUserId() {
297
300
  try {
@@ -631,7 +634,7 @@ function collectLocalEnvInfo() {
631
634
  os: `${process.platform} ${process.arch}`,
632
635
  node_version: process.version,
633
636
  home_dir: homeDir,
634
- agent_runtime: _chunkEAQXRAVFjs.detectAgentRuntime.call(void 0, )
637
+ agent_runtime: _chunkTOGCDNMHjs.detectAgentRuntime.call(void 0, )
635
638
  };
636
639
  const env = process.env;
637
640
  const optional = {
@@ -878,9 +881,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
878
881
  }
879
882
  function withAgentCommandContext(value) {
880
883
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
881
- return _chunkEAQXRAVFjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
884
+ return _chunkTOGCDNMHjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
882
885
  ...valueRecord,
883
- command_context: _chunkXGUGFGCFjs.resolveCliCommandContext.call(void 0, )
886
+ command_context: _chunkK3BHKRMSjs.resolveCliCommandContext.call(void 0, )
884
887
  } : value;
885
888
  }
886
889
  function printJson(value, fields) {
@@ -1074,4 +1077,5 @@ function printCommandEnvelope(envelope, options = {}) {
1074
1077
 
1075
1078
 
1076
1079
 
1077
- exports.parseJsonFields = parseJsonFields; exports.jsonFieldArgs = jsonFieldArgs; exports.describeArgs = describeArgs; exports.isJsonOutputMode = isJsonOutputMode; exports.installJsonStderrGuard = installJsonStderrGuard; exports.addJsonNotice = addJsonNotice; exports.writeRawStderr = writeRawStderr; exports.takeSilentJsonFailureMessage = takeSilentJsonFailureMessage; exports.getAuthedHttpClient = getAuthedHttpClient; exports.openInBrowser = openInBrowser; exports.sleep = sleep; exports.collectLocalEnvInfo = collectLocalEnvInfo; exports.readCsvRows = readCsvRows; exports.csvStringFromRows = csvStringFromRows; exports.csvSafeJsonString = csvSafeJsonString; exports.recordRows = recordRows; exports.dataExportRows = dataExportRows; exports.dataExportColumns = dataExportColumns; exports.dataExportCsvString = dataExportCsvString; exports.markdownTableFromRows = markdownTableFromRows; exports.printJson = printJson; exports.printCompactJson = printCompactJson; exports.formatToolExecutionErrorDiagnostic = formatToolExecutionErrorDiagnostic; exports.errorToJsonPayload = errorToJsonPayload; exports.formatProviderConcurrencyDiagnostic = formatProviderConcurrencyDiagnostic; exports.printJsonError = printJsonError; exports.shouldEmitJson = shouldEmitJson; exports.argsWantJson = argsWantJson; exports.createTimestampedName = createTimestampedName; exports.clip = clip; exports.renderCommandEnvelopeText = renderCommandEnvelopeText; exports.printCommandEnvelope = printCommandEnvelope;
1080
+
1081
+ exports.parseJsonFields = parseJsonFields; exports.jsonFieldArgs = jsonFieldArgs; exports.describeArgs = describeArgs; exports.isJsonOutputMode = isJsonOutputMode; exports.installJsonStderrGuard = installJsonStderrGuard; exports.addJsonNotice = addJsonNotice; exports.writeRawStderr = writeRawStderr; exports.markJsonOutputHandled = markJsonOutputHandled; exports.takeSilentJsonFailureMessage = takeSilentJsonFailureMessage; exports.getAuthedHttpClient = getAuthedHttpClient; exports.openInBrowser = openInBrowser; exports.sleep = sleep; exports.collectLocalEnvInfo = collectLocalEnvInfo; exports.readCsvRows = readCsvRows; exports.csvStringFromRows = csvStringFromRows; exports.csvSafeJsonString = csvSafeJsonString; exports.recordRows = recordRows; exports.dataExportRows = dataExportRows; exports.dataExportColumns = dataExportColumns; exports.dataExportCsvString = dataExportCsvString; exports.markdownTableFromRows = markdownTableFromRows; exports.printJson = printJson; exports.printCompactJson = printCompactJson; exports.formatToolExecutionErrorDiagnostic = formatToolExecutionErrorDiagnostic; exports.errorToJsonPayload = errorToJsonPayload; exports.formatProviderConcurrencyDiagnostic = formatProviderConcurrencyDiagnostic; exports.printJsonError = printJsonError; exports.shouldEmitJson = shouldEmitJson; exports.argsWantJson = argsWantJson; exports.createTimestampedName = createTimestampedName; exports.clip = clip; exports.renderCommandEnvelopeText = renderCommandEnvelopeText; exports.printCommandEnvelope = printCommandEnvelope;
@@ -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 _chunkTPQFCUPVjs = require('./chunk-TPQFCUPV.js');
4
+ var _chunkSNJNPRIVjs = require('./chunk-SNJNPRIV.js');
5
5
 
6
6
 
7
- var _chunkEAQXRAVFjs = require('./chunk-EAQXRAVF.js');
7
+ var _chunkTOGCDNMHjs = require('./chunk-TOGCDNMH.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 = _chunkEAQXRAVFjs.agentSessionIdFromEnvironment.call(void 0,
142
+ const sessionId = _chunkTOGCDNMHjs.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 } = _chunkTPQFCUPVjs.getAuthedHttpClient.call(void 0, );
454
+ const { http } = _chunkSNJNPRIVjs.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
- _chunkTPQFCUPVjs.printCommandEnvelope.call(void 0,
487
+ _chunkSNJNPRIVjs.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
- _chunkTPQFCUPVjs.printCommandEnvelope.call(void 0,
519
+ _chunkSNJNPRIVjs.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
- _chunkTPQFCUPVjs.printCommandEnvelope.call(void 0,
569
+ _chunkSNJNPRIVjs.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
- _chunkTPQFCUPVjs.printCommandEnvelope.call(void 0,
677
+ _chunkSNJNPRIVjs.printCommandEnvelope.call(void 0,
678
678
  {
679
679
  ok: true,
680
680
  file: outputPath,
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.498",
52
+ version: "0.3.500",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  seedToolListScript
3
- } from "./chunk-3XNYGMPZ.mjs";
3
+ } from "./chunk-5TVY5OEH.mjs";
4
4
  import {
5
5
  addDescribeOptions
6
- } from "./chunk-KLA4IUOI.mjs";
6
+ } from "./chunk-QRKCCY4L.mjs";
7
7
  import {
8
8
  describeLookupsFor,
9
9
  describeName,
@@ -14,18 +14,18 @@ import {
14
14
  } from "./chunk-SAW3FBCA.mjs";
15
15
  import {
16
16
  DeeplineClient
17
- } from "./chunk-RZO743TC.mjs";
17
+ } from "./chunk-VPVEPGYS.mjs";
18
18
  import {
19
19
  failureReportHeaders,
20
20
  isFailureReportingDisabled
21
- } from "./chunk-UUFZFJL4.mjs";
21
+ } from "./chunk-L7X6ADNM.mjs";
22
22
  import {
23
23
  printCommandEnvelope
24
- } from "./chunk-H7YR4EYF.mjs";
24
+ } from "./chunk-CIV5GJAE.mjs";
25
25
  import {
26
26
  autoDetectBaseUrl,
27
27
  resolveApiKeyForBaseUrl
28
- } from "./chunk-PAHFVOFZ.mjs";
28
+ } from "./chunk-CBZTKDXW.mjs";
29
29
 
30
30
  // src/cli/commands/describe.ts
31
31
  import { writeFileSync } from "fs";
@@ -459,9 +459,11 @@ Examples:
459
459
  deepline run -e 'return { doubled: input.n * 2 };' --input '{"n":21}'
460
460
  Output:
461
461
  A receipt: what ran, its status and cost, where the data was saved, and
462
- the first values. The full data is always saved to a file; --csv-out and
463
- --json-out choose where. --fields picks values and CSV columns. Exit code
464
- 0 completed, 1 failed or still running, 2 nothing ran.
462
+ the first values. --receipt-out <path> writes the JSON receipt only to that
463
+ new file, even with --json. File errors go to stderr. Use --json-out - or
464
+ --csv-out - to pipe result data to stdout.
465
+ --fields picks values and CSV columns. Exit code 0 completed, 1 failed or
466
+ still running, 2 nothing ran.
465
467
  Cost:
466
468
  What the tool or play charges. --max-credits caps a play run. Running an
467
469
  interrupted call again replays it without paying twice.
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
16
16
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
17
17
 
18
18
 
19
- var _chunkXUTIBRKFjs = require('./chunk-XUTIBRKF.js');
19
+ var _chunkW64Y7GE7js = require('./chunk-W64Y7GE7.js');
20
20
 
21
21
  // src/version.ts
22
- var SDK_VERSION = _chunkXUTIBRKFjs.SDK_RELEASE.version;
23
- var SDK_API_MAJOR = _chunkXUTIBRKFjs.SDK_RELEASE.contracts.api.currentMajor;
24
- var SDK_API_CONTRACT = _nullishCoalesce(_chunkXUTIBRKFjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
22
+ var SDK_VERSION = _chunkW64Y7GE7js.SDK_RELEASE.version;
23
+ var SDK_API_MAJOR = _chunkW64Y7GE7js.SDK_RELEASE.contracts.api.currentMajor;
24
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkW64Y7GE7js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
25
25
 
26
26
  // src/agent-runtime.ts
27
27
  var _os = require('os');
@@ -4,20 +4,20 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkVFYKFPZDjs = require('./chunk-VFYKFPZD.js');
7
+ var _chunkGOO4VI5Mjs = require('./chunk-GOO4VI5M.js');
8
8
 
9
9
 
10
- var _chunkTLG75Q77js = require('./chunk-TLG75Q77.js');
10
+ var _chunkGBRI644Yjs = require('./chunk-GBRI644Y.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkTPQFCUPVjs = require('./chunk-TPQFCUPV.js');
14
+ var _chunkSNJNPRIVjs = require('./chunk-SNJNPRIV.js');
15
15
 
16
16
 
17
- var _chunkXGUGFGCFjs = require('./chunk-XGUGFGCF.js');
17
+ var _chunkK3BHKRMSjs = require('./chunk-K3BHKRMS.js');
18
18
 
19
19
 
20
- var _chunkEAQXRAVFjs = require('./chunk-EAQXRAVF.js');
20
+ var _chunkTOGCDNMHjs = require('./chunk-TOGCDNMH.js');
21
21
 
22
22
  // src/cli/compatibility-catalog.ts
23
23
  var readers = /* @__PURE__ */ new WeakMap();
@@ -44,7 +44,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
44
44
  async function reportAutoUpdateEvent(input) {
45
45
  let apiKey = "";
46
46
  try {
47
- apiKey = _chunkXGUGFGCFjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
47
+ apiKey = _chunkK3BHKRMSjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
48
48
  } catch (e2) {
49
49
  return;
50
50
  }
@@ -60,15 +60,15 @@ async function reportAutoUpdateEvent(input) {
60
60
  headers: {
61
61
  Authorization: `Bearer ${apiKey}`,
62
62
  "Content-Type": "application/json",
63
- "User-Agent": `deepline-ts-sdk/${_chunkEAQXRAVFjs.SDK_VERSION}`,
63
+ "User-Agent": `deepline-ts-sdk/${_chunkTOGCDNMHjs.SDK_VERSION}`,
64
64
  "X-Deepline-Client-Family": "sdk",
65
65
  "X-Deepline-CLI-Family": "sdk",
66
- "X-Deepline-CLI-Version": _chunkEAQXRAVFjs.SDK_VERSION,
67
- "X-Deepline-SDK-Version": _chunkEAQXRAVFjs.SDK_VERSION
66
+ "X-Deepline-CLI-Version": _chunkTOGCDNMHjs.SDK_VERSION,
67
+ "X-Deepline-SDK-Version": _chunkTOGCDNMHjs.SDK_VERSION
68
68
  },
69
69
  body: JSON.stringify({
70
70
  event: input.event,
71
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkEAQXRAVFjs.SDK_VERSION,
71
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkTOGCDNMHjs.SDK_VERSION,
72
72
  target_version: input.response.latest,
73
73
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
74
74
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -87,13 +87,13 @@ function envTruthy(name) {
87
87
  return value === "1" || value === "true" || value === "yes";
88
88
  }
89
89
  function shouldSkipSelfUpdate(policy) {
90
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkVFYKFPZDjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkTLG75Q77js.isCiEnvironment.call(void 0, );
90
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkGOO4VI5Mjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkGBRI644Yjs.isCiEnvironment.call(void 0, );
91
91
  }
92
92
  function isDowngradeAutoUpdateResponse(response) {
93
93
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
94
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkEAQXRAVFjs.SDK_VERSION;
94
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkTOGCDNMHjs.SDK_VERSION;
95
95
  if (!target) return false;
96
- return _chunkVFYKFPZDjs.compareUpdateVersions.call(void 0, target, current) < 0;
96
+ return _chunkGOO4VI5Mjs.compareUpdateVersions.call(void 0, target, current) < 0;
97
97
  }
98
98
  function relaunchCurrentCommand(plan, runtime = {}) {
99
99
  return new Promise((resolve) => {
@@ -146,7 +146,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
146
146
  }
147
147
  if (isDowngradeAutoUpdateResponse(response)) {
148
148
  const target = response.latest;
149
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkEAQXRAVFjs.SDK_VERSION;
149
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkTOGCDNMHjs.SDK_VERSION;
150
150
  process.stderr.write(
151
151
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
152
152
  `
@@ -154,21 +154,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
154
154
  return false;
155
155
  }
156
156
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
157
- const plan = _chunkVFYKFPZDjs.resolveUpdatePlan.call(void 0, {
157
+ const plan = _chunkGOO4VI5Mjs.resolveUpdatePlan.call(void 0, {
158
158
  packageSpec,
159
159
  requireVerifiedNpmOwnership: true,
160
160
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
161
161
  });
162
- if (!_chunkVFYKFPZDjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
162
+ if (!_chunkGOO4VI5Mjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
163
163
  return false;
164
164
  }
165
165
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
166
166
  deferredAutoUpdate = async () => {
167
167
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
168
168
  };
169
- if (_chunkTPQFCUPVjs.isJsonOutputMode.call(void 0, )) {
169
+ if (_chunkSNJNPRIVjs.isJsonOutputMode.call(void 0, )) {
170
170
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
171
- _chunkTPQFCUPVjs.addJsonNotice.call(void 0, {
171
+ _chunkSNJNPRIVjs.addJsonNotice.call(void 0, {
172
172
  code: "sdk_update_queued",
173
173
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
174
174
  });
@@ -181,7 +181,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
181
181
  return true;
182
182
  }
183
183
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
184
- if (!_chunkVFYKFPZDjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
184
+ if (!_chunkGOO4VI5Mjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
185
185
  const autoUpdate = response.auto_update;
186
186
  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";
187
187
  process.stderr.write(
@@ -194,7 +194,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
194
194
  event: "started",
195
195
  installKind: plan.kind
196
196
  });
197
- const updateResult = await _chunkVFYKFPZDjs.runAutomaticUpdatePlan.call(void 0, plan);
197
+ const updateResult = await _chunkGOO4VI5Mjs.runAutomaticUpdatePlan.call(void 0, plan);
198
198
  if (updateResult.status === "skipped_previous_failure") {
199
199
  void reportAutoUpdateEvent({
200
200
  baseUrl,
@@ -245,7 +245,7 @@ var _crypto = require('crypto');
245
245
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
246
246
  var activeToolExecuteCommand = null;
247
247
  function progressLine(line) {
248
- if (!_chunkTPQFCUPVjs.isJsonOutputMode.call(void 0, )) console.error(line);
248
+ if (!_chunkSNJNPRIVjs.isJsonOutputMode.call(void 0, )) console.error(line);
249
249
  }
250
250
  function beginToolExecuteCommand() {
251
251
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -4,20 +4,20 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-OFNXUDEC.mjs";
7
+ } from "./chunk-5AC7NUQN.mjs";
8
8
  import {
9
9
  isCiEnvironment
10
- } from "./chunk-UUFZFJL4.mjs";
10
+ } from "./chunk-L7X6ADNM.mjs";
11
11
  import {
12
12
  addJsonNotice,
13
13
  isJsonOutputMode
14
- } from "./chunk-H7YR4EYF.mjs";
14
+ } from "./chunk-CIV5GJAE.mjs";
15
15
  import {
16
16
  resolveApiKeyForBaseUrl
17
- } from "./chunk-PAHFVOFZ.mjs";
17
+ } from "./chunk-CBZTKDXW.mjs";
18
18
  import {
19
19
  SDK_VERSION
20
- } from "./chunk-MRHMC33S.mjs";
20
+ } from "./chunk-5JXGYSXH.mjs";
21
21
 
22
22
  // src/cli/compatibility-catalog.ts
23
23
  var readers = /* @__PURE__ */ new WeakMap();