deepline 0.3.440 → 0.3.442

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 (135) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +10 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +37 -15
  4. package/dist/bundling-sources/shared_libs/plays/tool-execution-error.ts +17 -3
  5. package/dist/bundling-sources/shared_libs/tool-execution-error.ts +17 -3
  6. package/dist/cli/{auth-KBORTFO6.mjs → auth-CUZJMTNS.mjs} +6 -6
  7. package/dist/cli/auth-HAO2GLGH.js +40 -0
  8. package/dist/cli/{billing-VJSUCB5I.mjs → billing-SWH3WAMC.mjs} +7 -7
  9. package/dist/cli/{billing-RE5WN7IQ.js → billing-W2U5VKFI.js} +83 -83
  10. package/dist/cli/{chunk-VXQQZV4A.js → chunk-2GVUZA6C.js} +33 -33
  11. package/dist/cli/{chunk-R2P756BJ.js → chunk-2JHQ24IT.js} +16 -16
  12. package/dist/cli/{chunk-MAMVGOSC.mjs → chunk-4QF2K7TM.mjs} +1 -1
  13. package/dist/cli/{chunk-O7PC3VOI.mjs → chunk-5ZQEDZDQ.mjs} +1 -1
  14. package/dist/cli/{chunk-GWC7OBRD.mjs → chunk-6YWIRIOI.mjs} +2 -2
  15. package/dist/cli/{chunk-Z7SKBAOU.js → chunk-77DW6WSO.js} +93 -93
  16. package/dist/cli/{chunk-4RKPT6IE.js → chunk-7BH4ZOWE.js} +2 -2
  17. package/dist/cli/{chunk-N5D4EMIY.mjs → chunk-7DH2FD7Y.mjs} +1 -1
  18. package/dist/cli/{chunk-PCNOULRB.mjs → chunk-7ICMVQL5.mjs} +4 -4
  19. package/dist/cli/{chunk-WU4U6VSB.js → chunk-A6QCMBGL.js} +5 -5
  20. package/dist/cli/{chunk-NPBJI7RE.js → chunk-ALJJRZNJ.js} +8 -8
  21. package/dist/cli/{chunk-ZLD46RSR.mjs → chunk-AR5YQQF5.mjs} +2 -2
  22. package/dist/cli/{chunk-GFEWNYQ4.js → chunk-C4WXHMKN.js} +2 -2
  23. package/dist/cli/{chunk-KAJK6XVI.js → chunk-CFUTOWE4.js} +6 -6
  24. package/dist/cli/{chunk-M6WSQZHP.js → chunk-D5IOUCJS.js} +57 -57
  25. package/dist/cli/{chunk-ATTUUPIU.js → chunk-D7IDBZDR.js} +8 -8
  26. package/dist/cli/{chunk-PPDBRJRW.js → chunk-DIAWYWT5.js} +6 -1
  27. package/dist/cli/{chunk-42YHEY2R.mjs → chunk-DUUY2JKP.mjs} +2 -2
  28. package/dist/cli/{chunk-KCC3FKIW.mjs → chunk-FAG4DFUC.mjs} +1 -1
  29. package/dist/cli/{chunk-V74O7X2X.mjs → chunk-GEHYAQSI.mjs} +2 -2
  30. package/dist/cli/{chunk-RDIN3NKA.js → chunk-GEQOPXOS.js} +2 -2
  31. package/dist/cli/{chunk-E4IXDAZI.mjs → chunk-HBL4PM5Q.mjs} +6 -1
  32. package/dist/cli/{chunk-4GHEUG6W.js → chunk-HYJKJJUM.js} +20 -20
  33. package/dist/cli/{chunk-2H4EY7KH.js → chunk-JKVRBCZL.js} +26 -26
  34. package/dist/cli/{chunk-V2ZITVZA.js → chunk-K2DHO3IM.js} +26 -26
  35. package/dist/cli/{chunk-R7GGDUOM.mjs → chunk-KKTRHDLN.mjs} +3 -3
  36. package/dist/cli/{chunk-OX5JAD3D.mjs → chunk-L2FWEP4G.mjs} +4 -4
  37. package/dist/cli/{chunk-BBYGXP2I.js → chunk-L3JU24MF.js} +12 -12
  38. package/dist/cli/{chunk-OOVQITRM.js → chunk-LCT6MTYQ.js} +50 -50
  39. package/dist/cli/{chunk-GJI7C2OU.js → chunk-NBFXQCWM.js} +8 -8
  40. package/dist/cli/{chunk-CWFN7MUU.mjs → chunk-O765GAOA.mjs} +9 -9
  41. package/dist/cli/{chunk-T6XBX45B.mjs → chunk-ODWSTSRJ.mjs} +5 -5
  42. package/dist/cli/{chunk-NUX2QHNC.mjs → chunk-OZDT2CZW.mjs} +1 -1
  43. package/dist/cli/{chunk-XL4FJX7J.mjs → chunk-P4GMPKMW.mjs} +3 -3
  44. package/dist/cli/{chunk-CI56TXRS.js → chunk-RR2LZVRA.js} +35 -35
  45. package/dist/cli/{chunk-EPABMF45.js → chunk-RWK35AB3.js} +6 -6
  46. package/dist/cli/{chunk-DS7Y7X26.mjs → chunk-SKXQZUMX.mjs} +1 -1
  47. package/dist/cli/{chunk-RAJP44MZ.mjs → chunk-SMM2EKDC.mjs} +1 -1
  48. package/dist/cli/{chunk-FGTKAXRJ.js → chunk-SOCWFREM.js} +101 -101
  49. package/dist/cli/{chunk-HNMQSS7P.js → chunk-SZUU2WTZ.js} +1 -1
  50. package/dist/cli/{chunk-K23LXA4N.mjs → chunk-TP4TMEML.mjs} +2 -2
  51. package/dist/cli/{chunk-NIR2UK5V.mjs → chunk-VLQWLPQU.mjs} +1 -1
  52. package/dist/cli/{chunk-GOHOTLUV.mjs → chunk-WY4W6PRD.mjs} +4 -4
  53. package/dist/cli/{chunk-GRAEERVE.mjs → chunk-YGMUSZLV.mjs} +3 -3
  54. package/dist/cli/{csv-L64ECPD5.js → csv-C5Z4OZQN.js} +14 -14
  55. package/dist/cli/{csv-MP3WOYPE.mjs → csv-HSR32EPA.mjs} +5 -5
  56. package/dist/cli/{db-RZJK6LGN.js → db-AK4ZYYRP.js} +34 -34
  57. package/dist/cli/{db-FOV7GHXS.mjs → db-JJGI4J5I.mjs} +7 -7
  58. package/dist/cli/{describe-R2BEQHVZ.mjs → describe-C35MTKF4.mjs} +16 -16
  59. package/dist/cli/{describe-WWENJAG2.js → describe-JVSD6F2G.js} +22 -22
  60. package/dist/cli/describe-core.d.mts +2 -2
  61. package/dist/cli/describe-core.d.ts +2 -2
  62. package/dist/cli/describe-core.js +4 -4
  63. package/dist/cli/describe-core.mjs +3 -3
  64. package/dist/cli/{executions-3LFEK56I.js → executions-ZEA7O4PX.js} +9 -9
  65. package/dist/cli/{executions-C5WO6TGN.mjs → executions-ZECDB4NA.mjs} +7 -7
  66. package/dist/cli/{feedback-K6OAZUQ4.mjs → feedback-W7UL4V47.mjs} +5 -5
  67. package/dist/cli/{feedback-EMWUZ4LV.js → feedback-WQC4SX75.js} +9 -9
  68. package/dist/cli/git-E7CXCBZZ.js +24 -0
  69. package/dist/cli/{git-DJLL3OCZ.mjs → git-QBB7LEAV.mjs} +6 -6
  70. package/dist/cli/index.js +136 -136
  71. package/dist/cli/index.mjs +38 -38
  72. package/dist/cli/{legacy-noops-57SRSZ7M.js → legacy-noops-2QPJTEF4.js} +9 -9
  73. package/dist/cli/{legacy-noops-EAJG56KP.mjs → legacy-noops-E5NFHPKQ.mjs} +6 -6
  74. package/dist/cli/{monitors-FHTQ6227.mjs → monitors-E56RLT6N.mjs} +7 -7
  75. package/dist/cli/{monitors-OI57AAIG.js → monitors-MWBA46VZ.js} +93 -93
  76. package/dist/cli/{org-26EHPBKF.js → org-HGIWXACI.js} +69 -69
  77. package/dist/cli/{org-YGHFZTWJ.mjs → org-KE2DDK5A.mjs} +7 -7
  78. package/dist/cli/{play-KBKWTIXK.mjs → play-LGTF4IYG.mjs} +15 -15
  79. package/dist/cli/{play-PXGYS4DH.js → play-WO5UXBZM.js} +373 -373
  80. package/dist/cli/{providers-YPFEVK5C.mjs → providers-77KQS23B.mjs} +7 -7
  81. package/dist/cli/{providers-IZYBWI6M.js → providers-AIJPT54M.js} +10 -10
  82. package/dist/cli/{quickstart-RBCTFLI3.js → quickstart-CZQFBJVH.js} +7 -7
  83. package/dist/cli/{quickstart-SJ2M56CV.mjs → quickstart-EFMHLU4T.mjs} +5 -5
  84. package/dist/cli/{search-PSPZTTKR.mjs → search-U5KEPKNV.mjs} +8 -8
  85. package/dist/cli/search-XMNR7CYI.js +30 -0
  86. package/dist/cli/{secrets-XIWKYXGD.js → secrets-CBBR73U4.js} +16 -16
  87. package/dist/cli/{secrets-BCS4FE5D.mjs → secrets-JYHZIRO4.mjs} +7 -7
  88. package/dist/cli/{sessions-L3UEERFX.mjs → sessions-T74U74J7.mjs} +6 -6
  89. package/dist/cli/sessions-XA2EZDXD.js +16 -0
  90. package/dist/cli/{settings-SFFP7AR5.mjs → settings-C45BH4CU.mjs} +11 -11
  91. package/dist/cli/{settings-X2GMYBE7.js → settings-ND4437UB.js} +78 -78
  92. package/dist/cli/{setup-4ERUKDQ5.js → setup-FQ7JS4HM.js} +44 -44
  93. package/dist/cli/{setup-QIHAXFBL.mjs → setup-QDH6FAEZ.mjs} +9 -9
  94. package/dist/cli/skills-CSA2YFW6.js +29 -0
  95. package/dist/cli/{skills-BYNSDIKJ.mjs → skills-ZFSBA754.mjs} +7 -7
  96. package/dist/cli/tools-GUALRDI7.js +44 -0
  97. package/dist/cli/{tools-PQSMCIA7.mjs → tools-OVGOFORB.mjs} +15 -15
  98. package/dist/cli/{update-BI4E6UXI.mjs → update-BNU7VX5M.mjs} +9 -9
  99. package/dist/cli/update-K4WJSWDB.js +31 -0
  100. package/dist/cli/{workflow-PMRFMZVP.mjs → workflow-FX6GLQ3H.mjs} +8 -8
  101. package/dist/cli/{workflow-52P63K65.js → workflow-JSSXWU3T.js} +18 -18
  102. package/dist/{client-Doml68vC.d.mts → client-BCmnJaL9.d.mts} +1 -1
  103. package/dist/{client-9nH8tx4R.d.ts → client-BqQ7Rb11.d.ts} +1 -1
  104. package/dist/{compiler-manifest-CF2qngKr.d.ts → compiler-manifest-CWz_sNOQ.d.mts} +6 -2
  105. package/dist/{compiler-manifest-CF2qngKr.d.mts → compiler-manifest-CWz_sNOQ.d.ts} +6 -2
  106. package/dist/{index-Bq37k0sE.d.ts → index-4NPXDzlD.d.ts} +1 -1
  107. package/dist/{index-DTI-iNw8.d.mts → index-BF2JB_Ug.d.mts} +1 -1
  108. package/dist/index.d.mts +5 -5
  109. package/dist/index.d.ts +5 -5
  110. package/dist/index.js +10 -10
  111. package/dist/index.mjs +6 -6
  112. package/dist/install-integrity.json +96 -96
  113. package/dist/plays/bundle-play-file.d.mts +3 -3
  114. package/dist/plays/bundle-play-file.d.ts +3 -3
  115. package/dist/plays/bundle-play-file.mjs +2 -2
  116. package/dist/plays/csv-data-input.js +3 -3
  117. package/dist/plays/csv-data-input.mjs +2 -2
  118. package/dist/plays/play-description.d.mts +2 -2
  119. package/dist/plays/play-description.d.ts +2 -2
  120. package/dist/plays/run-request.d.mts +2 -2
  121. package/dist/plays/run-request.d.ts +2 -2
  122. package/dist/plays/run-request.js +3 -3
  123. package/dist/plays/run-request.mjs +2 -2
  124. package/dist/release.d.mts +1 -1
  125. package/dist/release.d.ts +1 -1
  126. package/dist/release.js +2 -2
  127. package/dist/release.mjs +1 -1
  128. package/package.json +1 -1
  129. package/dist/cli/auth-LXI5K7V6.js +0 -40
  130. package/dist/cli/git-2BW2UDK6.js +0 -24
  131. package/dist/cli/search-5CFJRSGN.js +0 -30
  132. package/dist/cli/sessions-YX2AJF5I.js +0 -16
  133. package/dist/cli/skills-EOPZVMJS.js +0 -29
  134. package/dist/cli/tools-UEZW4OD7.js +0 -44
  135. package/dist/cli/update-6TOZCQ4Y.js +0 -31
@@ -5,7 +5,7 @@ var _chunkGXOQRZXGjs = require('./chunk-GXOQRZXG.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkGJI7C2OUjs = require('./chunk-GJI7C2OU.js');
8
+ var _chunkNBFXQCWMjs = require('./chunk-NBFXQCWM.js');
9
9
 
10
10
 
11
11
 
@@ -45,7 +45,7 @@ var _chunkHGFFYVXNjs = require('./chunk-HGFFYVXN.js');
45
45
 
46
46
 
47
47
 
48
- var _chunkFGTKAXRJjs = require('./chunk-FGTKAXRJ.js');
48
+ var _chunkSOCWFREMjs = require('./chunk-SOCWFREM.js');
49
49
 
50
50
 
51
51
  var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
@@ -55,18 +55,18 @@ var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
55
55
 
56
56
 
57
57
 
58
- var _chunk4GHEUG6Wjs = require('./chunk-4GHEUG6W.js');
58
+ var _chunkHYJKJJUMjs = require('./chunk-HYJKJJUM.js');
59
59
 
60
60
 
61
61
 
62
62
 
63
- var _chunk4RKPT6IEjs = require('./chunk-4RKPT6IE.js');
63
+ var _chunk7BH4ZOWEjs = require('./chunk-7BH4ZOWE.js');
64
64
 
65
65
 
66
66
 
67
67
 
68
68
 
69
- var _chunkM6WSQZHPjs = require('./chunk-M6WSQZHP.js');
69
+ var _chunkD5IOUCJSjs = require('./chunk-D5IOUCJS.js');
70
70
 
71
71
 
72
72
 
@@ -74,15 +74,15 @@ var _chunkM6WSQZHPjs = require('./chunk-M6WSQZHP.js');
74
74
 
75
75
 
76
76
 
77
- var _chunkBBYGXP2Ijs = require('./chunk-BBYGXP2I.js');
77
+ var _chunkL3JU24MFjs = require('./chunk-L3JU24MF.js');
78
78
 
79
79
 
80
80
 
81
81
 
82
- var _chunkVXQQZV4Ajs = require('./chunk-VXQQZV4A.js');
82
+ var _chunk2GVUZA6Cjs = require('./chunk-2GVUZA6C.js');
83
83
 
84
84
 
85
- var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
85
+ var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
86
86
 
87
87
  // src/cli/commands/tools.ts
88
88
  var _commander = require('commander');
@@ -158,10 +158,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
158
158
  }
159
159
  };
160
160
  function pendingToolExecutionPath(input) {
161
- const config = _chunkVXQQZV4Ajs.resolveConfig.call(void 0, );
161
+ const config = _chunk2GVUZA6Cjs.resolveConfig.call(void 0, );
162
162
  const fingerprint = _crypto.createHash.call(void 0, "sha256").update(config.baseUrl).update("\0").update(_crypto.createHash.call(void 0, "sha256").update(config.apiKey).digest("hex")).update("\0").update(input.toolId).update("\0").update(_chunkXDVT3GOMjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
163
163
  return _path.join.call(void 0,
164
- _chunkVXQQZV4Ajs.sdkCliStateDirPath.call(void 0, config.baseUrl),
164
+ _chunk2GVUZA6Cjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
165
165
  `pending-tool-execution-${fingerprint}.json`
166
166
  );
167
167
  }
@@ -437,13 +437,13 @@ function categoryEnumerationRender(summaries) {
437
437
  };
438
438
  }
439
439
  async function listToolCategories(emitJson, compact) {
440
- const client = new (0, _chunkFGTKAXRJjs.DeeplineClient)();
440
+ const client = new (0, _chunkSOCWFREMjs.DeeplineClient)();
441
441
  if (!emitJson) {
442
442
  const summaries2 = (await client.listToolCategories()).map((category) => ({
443
443
  ...category,
444
444
  description: describeToolCategory(category.name)
445
445
  }));
446
- _chunkBBYGXP2Ijs.printCommandEnvelope.call(void 0,
446
+ _chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
447
447
  { categories: summaries2, render: categoryEnumerationRender(summaries2) },
448
448
  { json: false }
449
449
  );
@@ -453,7 +453,7 @@ async function listToolCategories(emitJson, compact) {
453
453
  const items = rawTools.map(toListedTool);
454
454
  const summaries = aggregateCategorySummaries(rawTools);
455
455
  const outputItems = compact ? items.map(compactTool) : items;
456
- _chunkBBYGXP2Ijs.printCommandEnvelope.call(void 0,
456
+ _chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
457
457
  {
458
458
  tools: outputItems,
459
459
  count: outputItems.length,
@@ -472,7 +472,7 @@ function unknownCategoryError(category, summaries, emitJson) {
472
472
  const known = summaries.map((item) => item.name);
473
473
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
474
474
  if (emitJson) {
475
- _chunkBBYGXP2Ijs.printJson.call(void 0, {
475
+ _chunkL3JU24MFjs.printJson.call(void 0, {
476
476
  ok: false,
477
477
  exitCode: 4,
478
478
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -486,13 +486,13 @@ function unknownCategoryError(category, summaries, emitJson) {
486
486
  const render = categoryEnumerationRender(summaries);
487
487
  console.error(message);
488
488
  console.error("");
489
- console.error(_chunkBBYGXP2Ijs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
489
+ console.error(_chunkL3JU24MFjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
490
490
  console.error("");
491
491
  console.error(`Valid categories: ${known.join(", ")}`);
492
492
  return 4;
493
493
  }
494
494
  async function listToolsInCategory(category, emitJson) {
495
- const client = new (0, _chunkFGTKAXRJjs.DeeplineClient)();
495
+ const client = new (0, _chunkSOCWFREMjs.DeeplineClient)();
496
496
  const { tools: rawTools, categories } = await client.listToolsInCategory(category);
497
497
  const summaries = categories.map((item) => ({
498
498
  ...item,
@@ -528,7 +528,7 @@ async function listToolsInCategory(category, emitJson) {
528
528
  }
529
529
  ]
530
530
  };
531
- _chunkBBYGXP2Ijs.printCommandEnvelope.call(void 0,
531
+ _chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
532
532
  {
533
533
  category,
534
534
  total: rows.length,
@@ -541,7 +541,7 @@ async function listToolsInCategory(category, emitJson) {
541
541
  return 0;
542
542
  }
543
543
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
544
- const client = new (0, _chunkFGTKAXRJjs.DeeplineClient)();
544
+ const client = new (0, _chunkSOCWFREMjs.DeeplineClient)();
545
545
  const items = (await client.listTools({
546
546
  categories: requestedCategories.join(","),
547
547
  compact
@@ -570,7 +570,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
570
570
  ]
571
571
  };
572
572
  const outputItems = compact ? items.map(compactTool) : items;
573
- _chunkBBYGXP2Ijs.printCommandEnvelope.call(void 0,
573
+ _chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
574
574
  {
575
575
  tools: outputItems,
576
576
  count: outputItems.length,
@@ -589,13 +589,13 @@ async function listTools(category, options = {}) {
589
589
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
590
590
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
591
591
  const compact = options.compact !== false;
592
- const emitJson = options.json === true || _chunkBBYGXP2Ijs.shouldEmitJson.call(void 0, );
592
+ const emitJson = options.json === true || _chunkL3JU24MFjs.shouldEmitJson.call(void 0, );
593
593
  if (positional && flagCategories.length > 0) {
594
594
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
595
595
  if (!flagIsSameSingle) {
596
596
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
597
597
  if (emitJson) {
598
- _chunkBBYGXP2Ijs.printJson.call(void 0, {
598
+ _chunkL3JU24MFjs.printJson.call(void 0, {
599
599
  ok: false,
600
600
  exitCode: 2,
601
601
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -622,7 +622,7 @@ async function grepTools(queryInput, options = {}) {
622
622
  console.error("Usage: deepline tools grep <query> [--json]");
623
623
  return 1;
624
624
  }
625
- const client = new (0, _chunkFGTKAXRJjs.DeeplineClient)();
625
+ const client = new (0, _chunkSOCWFREMjs.DeeplineClient)();
626
626
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
627
627
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
628
628
  const jsonOutput = options.json === true;
@@ -646,7 +646,7 @@ async function grepTools(queryInput, options = {}) {
646
646
  query,
647
647
  mode
648
648
  }) : null;
649
- _chunkBBYGXP2Ijs.printCommandEnvelope.call(void 0,
649
+ _chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
650
650
  {
651
651
  tools: outputTools,
652
652
  count: outputTools.length,
@@ -664,7 +664,7 @@ async function grepTools(queryInput, options = {}) {
664
664
  } : {},
665
665
  commandTemplates: TOOL_COMMAND_TEMPLATES
666
666
  },
667
- { json: options.json || _chunkBBYGXP2Ijs.shouldEmitJson.call(void 0, ) }
667
+ { json: options.json || _chunkL3JU24MFjs.shouldEmitJson.call(void 0, ) }
668
668
  );
669
669
  return 0;
670
670
  }
@@ -707,7 +707,7 @@ async function findPlayForToolId(client, toolId, cliInvocationId) {
707
707
  return _nullishCoalesce(plays.find((play) => playIdentifiers(play).includes(requested)), () => ( null));
708
708
  }
709
709
  function isMissingToolMetadataError(error) {
710
- return error instanceof _chunkPPDBRJRWjs.DeeplineError && error.statusCode === 404;
710
+ return error instanceof _chunkDIAWYWT5js.DeeplineError && error.statusCode === 404;
711
711
  }
712
712
  function playAliasToolErrorMessage(toolId, play) {
713
713
  const playName = _nullishCoalesce(play.reference, () => ( play.name));
@@ -775,7 +775,7 @@ Output:
775
775
  if (options.preset !== void 0 && (options.scopes !== void 0 || options.optionalScopes !== void 0))
776
776
  throw new Error("Use --preset or individual scopes, not both.");
777
777
  const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
778
- const result2 = await new (0, _chunkFGTKAXRJjs.DeeplineClient)().startIntegrationOAuth(
778
+ const result2 = await new (0, _chunkSOCWFREMjs.DeeplineClient)().startIntegrationOAuth(
779
779
  provider,
780
780
  {
781
781
  ...options.preset !== void 0 ? { preset: options.preset } : {},
@@ -787,7 +787,7 @@ Output:
787
787
  throw new Error(
788
788
  "The API did not return an OAuth authorization URL."
789
789
  );
790
- if (_chunkBBYGXP2Ijs.shouldEmitJson.call(void 0, options.json))
790
+ if (_chunkL3JU24MFjs.shouldEmitJson.call(void 0, options.json))
791
791
  console.log(
792
792
  JSON.stringify({ provider, redirect_url: result2.redirect_url })
793
793
  );
@@ -813,7 +813,7 @@ Output:
813
813
  "--credentials-file must contain a nonempty JSON object of string credential values."
814
814
  );
815
815
  }
816
- const result = await new (0, _chunkFGTKAXRJjs.DeeplineClient)().setIntegrationCredentials(
816
+ const result = await new (0, _chunkSOCWFREMjs.DeeplineClient)().setIntegrationCredentials(
817
817
  provider,
818
818
  credentials
819
819
  );
@@ -823,7 +823,7 @@ Output:
823
823
  );
824
824
  }
825
825
  const confirmation = { provider, credential_saved: true };
826
- if (_chunkBBYGXP2Ijs.shouldEmitJson.call(void 0, options.json))
826
+ if (_chunkL3JU24MFjs.shouldEmitJson.call(void 0, options.json))
827
827
  console.log(JSON.stringify(confirmation));
828
828
  else
829
829
  console.log(
@@ -863,7 +863,7 @@ Examples:
863
863
  json: Boolean(options.json)
864
864
  });
865
865
  });
866
- _chunkGJI7C2OUjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
866
+ _chunkNBFXQCWMjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
867
867
  tools.command("grep <query>").description(
868
868
  "Regex grep over tool ids, descriptions, categories, and input fields."
869
869
  ).addHelpText(
@@ -898,7 +898,7 @@ Examples:
898
898
  });
899
899
  const addToolMetadataCommand = (command) => {
900
900
  let compatibilityMetadata;
901
- _chunk4GHEUG6Wjs.registerCompatibilityCatalog.call(void 0, command, () => ({
901
+ _chunkHYJKJJUMjs.registerCompatibilityCatalog.call(void 0, command, () => ({
902
902
  toolId: command.args[0],
903
903
  acceptMetadata: (metadata) => {
904
904
  compatibilityMetadata = metadata;
@@ -968,7 +968,7 @@ Examples:
968
968
  process.exitCode = await narrowView();
969
969
  return;
970
970
  }
971
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-WWENJAG2.js")));
971
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-JVSD6F2G.js")));
972
972
  process.exitCode = await describeAnything(
973
973
  toolId,
974
974
  {
@@ -1052,7 +1052,7 @@ Examples:
1052
1052
  options,
1053
1053
  void 0,
1054
1054
  true,
1055
- _chunk4RKPT6IEjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1055
+ _chunk7BH4ZOWEjs.resolveCliMaintenancePolicy.call(void 0, command.optsWithGlobals())
1056
1056
  );
1057
1057
  }
1058
1058
  );
@@ -1060,13 +1060,13 @@ Examples:
1060
1060
  function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1061
1061
  let metadata;
1062
1062
  const startedAt = performance.now();
1063
- const baseUrl = _chunkVXQQZV4Ajs.resolveConfig.call(void 0, ).baseUrl;
1064
- _chunk4RKPT6IEjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1065
- const result = _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
1063
+ const baseUrl = _chunk2GVUZA6Cjs.resolveConfig.call(void 0, ).baseUrl;
1064
+ _chunk7BH4ZOWEjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_compatibility_start" });
1065
+ const result = _chunkHYJKJJUMjs.runToolExecuteStage.call(void 0,
1066
1066
  "SDK compatibility",
1067
- () => _chunkM6WSQZHPjs.checkSdkCompatibility.call(void 0, baseUrl, {
1067
+ () => _chunkD5IOUCJSjs.checkSdkCompatibility.call(void 0, baseUrl, {
1068
1068
  command: "tools execute",
1069
- skillsVersion: _chunkVXQQZV4Ajs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1069
+ skillsVersion: _chunk2GVUZA6Cjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
1070
1070
  persistCache: false,
1071
1071
  timeoutMs: TOOL_EXECUTE_PREFLIGHT_TIMEOUT_MS,
1072
1072
  catalog: {
@@ -1080,7 +1080,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1080
1080
  })
1081
1081
  ).then(
1082
1082
  (compatibility) => {
1083
- _chunk4RKPT6IEjs.recordCliTrace.call(void 0, {
1083
+ _chunk7BH4ZOWEjs.recordCliTrace.call(void 0, {
1084
1084
  phase: "cli.tool_execute_compatibility_ready",
1085
1085
  ms: performance.now() - startedAt,
1086
1086
  ok: compatibility.error === null,
@@ -1089,7 +1089,7 @@ function beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) {
1089
1089
  return compatibility;
1090
1090
  },
1091
1091
  (error) => {
1092
- _chunk4RKPT6IEjs.recordCliTrace.call(void 0, {
1092
+ _chunk7BH4ZOWEjs.recordCliTrace.call(void 0, {
1093
1093
  phase: "cli.tool_execute_compatibility_ready",
1094
1094
  ms: performance.now() - startedAt,
1095
1095
  ok: false
@@ -1104,7 +1104,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1104
1104
  console.error("Usage: deepline tools describe <toolId> [--json]");
1105
1105
  return 1;
1106
1106
  }
1107
- const client = new (0, _chunkFGTKAXRJjs.DeeplineClient)();
1107
+ const client = new (0, _chunkSOCWFREMjs.DeeplineClient)();
1108
1108
  let tool;
1109
1109
  try {
1110
1110
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1158,7 +1158,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1158
1158
  const lines = toolPricingOnlyLines(tool, toolId);
1159
1159
  if (inferenceQuote)
1160
1160
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1161
- _chunkBBYGXP2Ijs.printCommandEnvelope.call(void 0,
1161
+ _chunkL3JU24MFjs.printCommandEnvelope.call(void 0,
1162
1162
  {
1163
1163
  toolId: String(tool.toolId || toolId),
1164
1164
  cost: _chunkZM2YPJQJjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
@@ -1181,7 +1181,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1181
1181
  void 0,
1182
1182
  seedToolListScript
1183
1183
  );
1184
- _chunkBBYGXP2Ijs.printCompactJson.call(void 0, {
1184
+ _chunkL3JU24MFjs.printCompactJson.call(void 0, {
1185
1185
  toolId: contract.toolId,
1186
1186
  ...options.schemaOnly ? {
1187
1187
  inputSchema: contract.inputSchema,
@@ -1204,7 +1204,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1204
1204
  return 0;
1205
1205
  }
1206
1206
  if (options.contractJson) {
1207
- _chunkBBYGXP2Ijs.printCompactJson.call(void 0, {
1207
+ _chunkL3JU24MFjs.printCompactJson.call(void 0, {
1208
1208
  ..._chunkR2QWSSAGjs.toolContractJsonForDescribe.call(void 0,
1209
1209
  tool,
1210
1210
  toolId,
@@ -1218,7 +1218,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1218
1218
  }
1219
1219
  const emitJson = options.json === true;
1220
1220
  if (emitJson) {
1221
- _chunkBBYGXP2Ijs.printCompactJson.call(void 0, {
1221
+ _chunkL3JU24MFjs.printCompactJson.call(void 0, {
1222
1222
  ..._chunkR2QWSSAGjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1223
1223
  ...modelDescription ? { modelOptions: modelDescription } : {},
1224
1224
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -2079,7 +2079,7 @@ function parseExecuteOptions(toolId, options, output) {
2079
2079
  outputFormat = normalizeOutputFormat(options.outputFormat);
2080
2080
  }
2081
2081
  if (options.idempotencyKey !== void 0) {
2082
- _chunkFGTKAXRJjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2082
+ _chunkSOCWFREMjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2083
2083
  }
2084
2084
  if (options.recoveryTimeoutMs !== void 0) {
2085
2085
  const parsed = Number(options.recoveryTimeoutMs);
@@ -2400,19 +2400,19 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2400
2400
  parsed = parseExecuteOptions(toolId, options, output);
2401
2401
  } catch (error) {
2402
2402
  if (wantsJson) {
2403
- _chunkBBYGXP2Ijs.printJsonError.call(void 0, error);
2403
+ _chunkL3JU24MFjs.printJsonError.call(void 0, error);
2404
2404
  } else {
2405
2405
  console.error(error instanceof Error ? error.message : String(error));
2406
2406
  }
2407
- return error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2407
+ return error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2408
2408
  }
2409
- const cliInvocationId = _nullishCoalesce(_chunk4GHEUG6Wjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunk4GHEUG6Wjs.beginToolExecuteCommand.call(void 0, )));
2409
+ const cliInvocationId = _nullishCoalesce(_chunkHYJKJJUMjs.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkHYJKJJUMjs.beginToolExecuteCommand.call(void 0, )));
2410
2410
  const deferredCompatibility = deferCompatibility ? beginDeferredToolExecuteCompatibility(toolId, cliInvocationId) : void 0;
2411
- const tracing = _chunk4RKPT6IEjs.isCliTraceEnabled.call(void 0, );
2411
+ const tracing = _chunk7BH4ZOWEjs.isCliTraceEnabled.call(void 0, );
2412
2412
  const clientStartedAt = tracing ? performance.now() : void 0;
2413
- const client = new (0, _chunkFGTKAXRJjs.DeeplineClient)();
2413
+ const client = new (0, _chunkSOCWFREMjs.DeeplineClient)();
2414
2414
  if (clientStartedAt !== void 0) {
2415
- _chunk4RKPT6IEjs.recordCliTrace.call(void 0, {
2415
+ _chunk7BH4ZOWEjs.recordCliTrace.call(void 0, {
2416
2416
  phase: "cli.tool_execute_client_setup",
2417
2417
  ms: performance.now() - clientStartedAt
2418
2418
  });
@@ -2421,18 +2421,18 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2421
2421
  const readMetadata = async () => {
2422
2422
  if (metadata) return metadata;
2423
2423
  try {
2424
- metadata = await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
2424
+ metadata = await _chunkHYJKJJUMjs.runToolExecuteStage.call(void 0,
2425
2425
  "tool metadata lookup",
2426
2426
  () => client.getTool(parsed.toolId, { cliInvocationId })
2427
2427
  );
2428
2428
  } catch (error) {
2429
2429
  if (isMissingToolMetadataError(error)) {
2430
- const play = await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
2430
+ const play = await _chunkHYJKJJUMjs.runToolExecuteStage.call(void 0,
2431
2431
  "play alias lookup",
2432
2432
  () => findPlayForToolId(client, parsed.toolId, cliInvocationId)
2433
2433
  );
2434
2434
  if (play) {
2435
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
2435
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
2436
2436
  playAliasToolErrorMessage(parsed.toolId, play),
2437
2437
  400,
2438
2438
  "PLAY_ALIAS_USED_AS_TOOL"
@@ -2442,7 +2442,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2442
2442
  throw error;
2443
2443
  }
2444
2444
  if (_chunkR2QWSSAGjs.isPlayLikeTool.call(void 0, metadata)) {
2445
- throw new (0, _chunkPPDBRJRWjs.DeeplineError)(
2445
+ throw new (0, _chunkDIAWYWT5js.DeeplineError)(
2446
2446
  playLikeToolExecuteErrorMessage(
2447
2447
  parsed.toolId,
2448
2448
  metadata
@@ -2465,8 +2465,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2465
2465
  try {
2466
2466
  metadata = await readMetadata();
2467
2467
  } catch (error) {
2468
- if (error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2469
- if (wantsJson) _chunkBBYGXP2Ijs.printJsonError.call(void 0, error);
2468
+ if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2469
+ if (wantsJson) _chunkL3JU24MFjs.printJsonError.call(void 0, error);
2470
2470
  else console.error(error.message);
2471
2471
  return 2;
2472
2472
  }
@@ -2481,8 +2481,8 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2481
2481
  try {
2482
2482
  metadata = await readMetadata();
2483
2483
  } catch (error) {
2484
- if (error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2485
- if (wantsJson) _chunkBBYGXP2Ijs.printJsonError.call(void 0, error);
2484
+ if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "PLAY_ALIAS_USED_AS_TOOL") {
2485
+ if (wantsJson) _chunkL3JU24MFjs.printJsonError.call(void 0, error);
2486
2486
  else console.error(error.message);
2487
2487
  return 2;
2488
2488
  }
@@ -2508,11 +2508,11 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2508
2508
  responseIntent,
2509
2509
  ...idempotencyKey ? { idempotencyKey } : {},
2510
2510
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
2511
- searchRef: _chunkGJI7C2OUjs.recentSearchRef.call(void 0, ),
2511
+ searchRef: _chunkNBFXQCWMjs.recentSearchRef.call(void 0, ),
2512
2512
  cliInvocationId,
2513
2513
  onResponseReceived: _chunkGXOQRZXGjs.recordApiResponse,
2514
2514
  ...tracing ? {
2515
- onServerTiming: (serverTiming) => _chunk4RKPT6IEjs.recordCliTrace.call(void 0, {
2515
+ onServerTiming: (serverTiming) => _chunk7BH4ZOWEjs.recordCliTrace.call(void 0, {
2516
2516
  phase: "tool_execute_server_timing",
2517
2517
  cliInvocationId,
2518
2518
  serverTiming,
@@ -2523,49 +2523,49 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2523
2523
  let rawResponse;
2524
2524
  let successfulCompatibilityResponse;
2525
2525
  try {
2526
- const executeResult = await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
2526
+ const executeResult = await _chunkHYJKJJUMjs.runToolExecuteStage.call(void 0,
2527
2527
  "execute request",
2528
2528
  async () => {
2529
2529
  try {
2530
2530
  if (tracing) {
2531
2531
  submissionStartedAt = performance.now();
2532
- _chunk4RKPT6IEjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2532
+ _chunk7BH4ZOWEjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2533
2533
  }
2534
2534
  return await client.executeTool(parsed.toolId, parsed.params, {
2535
2535
  ...executeOptions,
2536
2536
  atomicToolOnly: true
2537
2537
  });
2538
2538
  } catch (error) {
2539
- if (!(error instanceof _chunkPPDBRJRWjs.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
2539
+ if (!(error instanceof _chunkDIAWYWT5js.DeeplineError) || error.code !== "ATOMIC_TOOL_EXECUTE_UNSUPPORTED")
2540
2540
  throw error;
2541
- const baseUrl = _chunkVXQQZV4Ajs.resolveConfig.call(void 0, ).baseUrl;
2541
+ const baseUrl = _chunk2GVUZA6Cjs.resolveConfig.call(void 0, ).baseUrl;
2542
2542
  if (maintenancePolicy !== "off") {
2543
- _chunkM6WSQZHPjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2543
+ _chunkD5IOUCJSjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
2544
2544
  }
2545
- const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
2545
+ const compatibility = deferredCompatibility ? await deferredCompatibility.result : await _chunkHYJKJJUMjs.runToolExecuteStage.call(void 0,
2546
2546
  "SDK compatibility",
2547
- () => _chunkM6WSQZHPjs.checkSdkCompatibility.call(void 0, baseUrl, {
2547
+ () => _chunkD5IOUCJSjs.checkSdkCompatibility.call(void 0, baseUrl, {
2548
2548
  command: "tools execute",
2549
- skillsVersion: _chunkVXQQZV4Ajs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2549
+ skillsVersion: _chunk2GVUZA6Cjs.readSdkSkillsLocalVersion.call(void 0, baseUrl),
2550
2550
  persistCache: maintenancePolicy !== "off"
2551
2551
  })
2552
2552
  );
2553
2553
  if (compatibility.error) throw compatibility.error;
2554
2554
  metadata = _nullishCoalesce(_optionalChain([deferredCompatibility, 'optionalAccess', _28 => _28.readMetadata, 'call', _29 => _29()]), () => ( metadata));
2555
- if (maintenancePolicy !== "off" && await _chunk4GHEUG6Wjs.maybeAutoUpdateAndRelaunch.call(void 0,
2555
+ if (maintenancePolicy !== "off" && await _chunkHYJKJJUMjs.maybeAutoUpdateAndRelaunch.call(void 0,
2556
2556
  compatibility.response,
2557
2557
  baseUrl,
2558
2558
  maintenancePolicy
2559
2559
  )) {
2560
2560
  return void 0;
2561
2561
  }
2562
- _chunkM6WSQZHPjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2562
+ _chunkD5IOUCJSjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
2563
2563
  quietAdvisory: wantsJson
2564
2564
  });
2565
2565
  if (maintenancePolicy !== "off") {
2566
- await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
2566
+ await _chunkHYJKJJUMjs.runToolExecuteStage.call(void 0,
2567
2567
  "agent skills sync",
2568
- () => _chunkM6WSQZHPjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2568
+ () => _chunkD5IOUCJSjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
2569
2569
  update: _optionalChain([compatibility, 'access', _30 => _30.response, 'optionalAccess', _31 => _31.skills]),
2570
2570
  mode: "detached"
2571
2571
  })
@@ -2574,7 +2574,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2574
2574
  const legacyMetadata = await readMetadata();
2575
2575
  if (tracing) {
2576
2576
  submissionStartedAt = performance.now();
2577
- _chunk4RKPT6IEjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2577
+ _chunk7BH4ZOWEjs.recordCliTrace.call(void 0, { phase: "cli.tool_execute_request_start" });
2578
2578
  }
2579
2579
  return client.executeTool(parsed.toolId, parsed.params, {
2580
2580
  ...executeOptions,
@@ -2593,10 +2593,10 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2593
2593
  } catch (e4) {
2594
2594
  }
2595
2595
  metadata = _nullishCoalesce(deferredCompatibility.readMetadata(), () => ( metadata));
2596
- const updateRequiredBeforeExecution = error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
2596
+ const updateRequiredBeforeExecution = error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "SDK_UPDATE_REQUIRED";
2597
2597
  if (updateRequiredBeforeExecution && maintenancePolicy !== "off" && compatibility && !compatibility.error) {
2598
- const baseUrl = _chunkVXQQZV4Ajs.resolveConfig.call(void 0, ).baseUrl;
2599
- if (await _chunk4GHEUG6Wjs.maybeAutoUpdateAndRelaunch.call(void 0,
2598
+ const baseUrl = _chunk2GVUZA6Cjs.resolveConfig.call(void 0, ).baseUrl;
2599
+ if (await _chunkHYJKJJUMjs.maybeAutoUpdateAndRelaunch.call(void 0,
2600
2600
  compatibility.response,
2601
2601
  baseUrl,
2602
2602
  maintenancePolicy
@@ -2605,17 +2605,17 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2605
2605
  }
2606
2606
  }
2607
2607
  }
2608
- if (error instanceof _chunkPPDBRJRWjs.DeeplineError && error.code === "SDK_UPDATE_REQUIRED")
2608
+ if (error instanceof _chunkDIAWYWT5js.DeeplineError && error.code === "SDK_UPDATE_REQUIRED")
2609
2609
  throw error;
2610
2610
  let failure = error;
2611
2611
  try {
2612
2612
  await readMetadata();
2613
2613
  } catch (diagnosticError) {
2614
- if (diagnosticError instanceof _chunkPPDBRJRWjs.DeeplineError && diagnosticError.code === "PLAY_ALIAS_USED_AS_TOOL")
2614
+ if (diagnosticError instanceof _chunkDIAWYWT5js.DeeplineError && diagnosticError.code === "PLAY_ALIAS_USED_AS_TOOL")
2615
2615
  failure = diagnosticError;
2616
2616
  }
2617
- if (failure instanceof _chunkPPDBRJRWjs.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
2618
- if (wantsJson) _chunkBBYGXP2Ijs.printJsonError.call(void 0, failure);
2617
+ if (failure instanceof _chunkDIAWYWT5js.DeeplineError && failure.code === "PLAY_ALIAS_USED_AS_TOOL") {
2618
+ if (wantsJson) _chunkL3JU24MFjs.printJsonError.call(void 0, failure);
2619
2619
  else console.error(failure.message);
2620
2620
  return 2;
2621
2621
  }
@@ -2642,9 +2642,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2642
2642
  successfulCompatibilityResponse = _nullishCoalesce(compatibilityResponse, () => ( void 0));
2643
2643
  const autoUpdate = _optionalChain([compatibilityResponse, 'optionalAccess', _37 => _37.auto_update]);
2644
2644
  if (maintenancePolicy !== "off" && compatibilityResponse && _optionalChain([autoUpdate, 'optionalAccess', _38 => _38.should_auto_update]) && !autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
2645
- await _chunk4GHEUG6Wjs.maybeAutoUpdateAndRelaunch.call(void 0,
2645
+ await _chunkHYJKJJUMjs.maybeAutoUpdateAndRelaunch.call(void 0,
2646
2646
  compatibilityResponse,
2647
- _chunkVXQQZV4Ajs.resolveConfig.call(void 0, ).baseUrl,
2647
+ _chunk2GVUZA6Cjs.resolveConfig.call(void 0, ).baseUrl,
2648
2648
  maintenancePolicy
2649
2649
  );
2650
2650
  }
@@ -2679,7 +2679,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2679
2679
  const { _metadata, ...execution } = rawResponse;
2680
2680
  rawResponse = execution;
2681
2681
  }
2682
- const { listConversion, summary, baseEnvelope } = await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
2682
+ const { listConversion, summary, baseEnvelope } = await _chunkHYJKJJUMjs.runToolExecuteStage.call(void 0,
2683
2683
  "result formatting",
2684
2684
  async () => {
2685
2685
  const listConversion2 = _chunkHGFFYVXNjs.tryConvertToList.call(void 0, rawResponse, {
@@ -2714,9 +2714,9 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2714
2714
  }
2715
2715
  skillsSyncAttempted = true;
2716
2716
  try {
2717
- await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
2717
+ await _chunkHYJKJJUMjs.runToolExecuteStage.call(void 0,
2718
2718
  "agent skills sync",
2719
- () => _chunkM6WSQZHPjs.syncSdkSkillsIfNeeded.call(void 0, _chunkVXQQZV4Ajs.resolveConfig.call(void 0, ).baseUrl, {
2719
+ () => _chunkD5IOUCJSjs.syncSdkSkillsIfNeeded.call(void 0, _chunk2GVUZA6Cjs.resolveConfig.call(void 0, ).baseUrl, {
2720
2720
  update: deliveredCompatibilityResponse.skills,
2721
2721
  mode: "detached"
2722
2722
  })
@@ -2727,15 +2727,15 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2727
2727
  );
2728
2728
  }
2729
2729
  };
2730
- const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkBBYGXP2Ijs.printCommandEnvelope.call(void 0, envelope, {
2730
+ const printDeliveredEnvelope = (envelope, options2 = {}) => _chunkL3JU24MFjs.printCommandEnvelope.call(void 0, envelope, {
2731
2731
  ...options2,
2732
2732
  json: _nullishCoalesce(options2.json, () => ( wantsJson))
2733
2733
  });
2734
2734
  const printDeliveredJsonEnvelope = async (envelope, options2 = {}) => {
2735
2735
  await syncSkillsForDeliveredOutput();
2736
- _chunkBBYGXP2Ijs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
2736
+ _chunkL3JU24MFjs.printCommandEnvelope.call(void 0, envelope, { ...options2, json: true });
2737
2737
  };
2738
- const delivered = await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
2738
+ const delivered = await _chunkHYJKJJUMjs.runToolExecuteStage.call(void 0, "output delivery", async () => {
2739
2739
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
2740
2740
  await printDeliveredJsonEnvelope(baseEnvelope);
2741
2741
  return true;
@@ -2764,7 +2764,7 @@ async function executeTool(toolId, options, compatibilityMetadata, deferCompatib
2764
2764
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
2765
2765
  );
2766
2766
  if (wantsJson) {
2767
- _chunkBBYGXP2Ijs.printJsonError.call(void 0, error);
2767
+ _chunkL3JU24MFjs.printJsonError.call(void 0, error);
2768
2768
  } else {
2769
2769
  console.error(error.message);
2770
2770
  }
@@ -2859,13 +2859,13 @@ inspect: ${inspection.inspect}
2859
2859
  return true;
2860
2860
  });
2861
2861
  if (delivered) {
2862
- await _chunk4GHEUG6Wjs.runToolExecuteStage.call(void 0,
2862
+ await _chunkHYJKJJUMjs.runToolExecuteStage.call(void 0,
2863
2863
  "acknowledge delivery",
2864
2864
  () => recovery.acknowledgeDelivery()
2865
2865
  );
2866
2866
  }
2867
2867
  if (delivered && deliveredCompatibilityResponse && deliveredCompatibilityResponse.update_required !== true) {
2868
- _chunkM6WSQZHPjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
2868
+ _chunkD5IOUCJSjs.enforceSdkCompatibilityResponse.call(void 0, deliveredCompatibilityResponse, {
2869
2869
  quietAdvisory: wantsJson || maintenancePolicy === "off" || _optionalChain([deliveredCompatibilityResponse, 'access', _40 => _40.auto_update, 'optionalAccess', _41 => _41.should_auto_update]) === true
2870
2870
  });
2871
2871
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkBBYGXP2Ijs = require('./chunk-BBYGXP2I.js');
3
+ var _chunkL3JU24MFjs = require('./chunk-L3JU24MF.js');
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  var _commander = require('commander');
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
33
33
  sinceStartMs: now - cliTraceStartedAt,
34
34
  ...event
35
35
  };
36
- _chunkBBYGXP2Ijs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunkL3JU24MFjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {
@@ -14,7 +14,7 @@ import {
14
14
  import {
15
15
  SUPPORTED_TOOL_EXECUTION_ERROR_SCHEMA_VERSIONS,
16
16
  TOOL_EXECUTION_ERROR_SCHEMA_VERSION
17
- } from "./chunk-E4IXDAZI.mjs";
17
+ } from "./chunk-HBL4PM5Q.mjs";
18
18
  import {
19
19
  CURRENT_PLAY_ARTIFACT_CONTRACT_VERSION
20
20
  } from "./chunk-WZYKRD7T.mjs";