deepline 0.3.404 → 0.3.406

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 (91) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +4 -4
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +1 -1
  4. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +4 -0
  5. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +43 -4
  6. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machine-lifecycle.ts +101 -0
  7. package/dist/cli/auth-K5QAZH42.js +40 -0
  8. package/dist/cli/{auth-DVJWHHC3.mjs → auth-U7LIMXIS.mjs} +4 -4
  9. package/dist/cli/{billing-MHS6WS77.js → billing-5ABVIJFU.js} +73 -73
  10. package/dist/cli/{billing-7UDFOLCT.mjs → billing-KGGS3444.mjs} +4 -4
  11. package/dist/cli/{chunk-EDSBH6W7.mjs → chunk-2MLY2ZBT.mjs} +2 -2
  12. package/dist/cli/{chunk-FF2H4YLR.mjs → chunk-2OFPPAUY.mjs} +4 -4
  13. package/dist/cli/{chunk-NRI4TJVF.mjs → chunk-42RUJLQI.mjs} +1 -1
  14. package/dist/cli/{chunk-7CFSSEN3.js → chunk-4REBZQNK.js} +44 -44
  15. package/dist/cli/{chunk-OHGXSFDQ.mjs → chunk-5IGBBYXH.mjs} +1 -1
  16. package/dist/cli/{chunk-VPCIT5N6.mjs → chunk-77UGRG6X.mjs} +3 -3
  17. package/dist/cli/{chunk-XKVJZ5JC.mjs → chunk-7ZMVAV2B.mjs} +5 -5
  18. package/dist/cli/{chunk-CBMYUXAT.js → chunk-APLRSERF.js} +10 -10
  19. package/dist/cli/{chunk-DSXMTZ64.mjs → chunk-CGX4NSS3.mjs} +1 -1
  20. package/dist/cli/{chunk-AYUR2RZ6.js → chunk-EKS2FXL5.js} +8 -8
  21. package/dist/cli/{chunk-B2BO6G7L.js → chunk-FQBKK5DG.js} +26 -26
  22. package/dist/cli/{chunk-Y5QWK7SS.js → chunk-IE6IKRQA.js} +15 -15
  23. package/dist/cli/{chunk-OPGILU75.js → chunk-KPU53YBB.js} +65 -65
  24. package/dist/cli/{chunk-W3SACRLJ.js → chunk-N43PX2CA.js} +8 -8
  25. package/dist/cli/{chunk-L3JGXPGB.js → chunk-N6DJQQ2S.js} +50 -50
  26. package/dist/cli/{chunk-ODKHUBU3.js → chunk-NYDRX6JJ.js} +6 -6
  27. package/dist/cli/{chunk-KTWTQPYM.mjs → chunk-OPHLT4TM.mjs} +2 -2
  28. package/dist/cli/{chunk-ANL3NJV5.mjs → chunk-RXDJKAM2.mjs} +5 -5
  29. package/dist/cli/{chunk-M55M5LDV.mjs → chunk-T7YF4MQH.mjs} +3 -3
  30. package/dist/cli/{chunk-TFIB4VNU.mjs → chunk-V3OTRWVK.mjs} +2 -2
  31. package/dist/cli/{chunk-V5DPHNTE.js → chunk-W2BAO4OR.js} +2 -2
  32. package/dist/cli/{chunk-URQAM7RR.js → chunk-W3ZNQE5Y.js} +1 -1
  33. package/dist/cli/{chunk-JJZOGHEF.mjs → chunk-YLV6PT6B.mjs} +1 -1
  34. package/dist/cli/{chunk-GPWTKORH.js → chunk-YSAZVLJD.js} +4 -4
  35. package/dist/cli/{csv-TG7SSGXW.mjs → csv-HXJAAW3H.mjs} +3 -3
  36. package/dist/cli/{csv-7BXOAC3V.js → csv-U36TIOKU.js} +12 -12
  37. package/dist/cli/{db-GBVIPT7D.mjs → db-GRWD3JAC.mjs} +4 -4
  38. package/dist/cli/{db-BQCWAL3D.js → db-T5MLQQWJ.js} +25 -25
  39. package/dist/cli/{describe-6LP2CWEF.mjs → describe-HXFEIZFO.mjs} +6 -6
  40. package/dist/cli/{describe-3ROS6TC6.js → describe-NFX6THJE.js} +10 -10
  41. package/dist/cli/{executions-KCKC2KKP.js → executions-KBHTDL3A.js} +6 -6
  42. package/dist/cli/{executions-4TJOBZOQ.mjs → executions-YGOS5E44.mjs} +4 -4
  43. package/dist/cli/{feedback-CGJNFV3G.mjs → feedback-NEQGCSHB.mjs} +3 -3
  44. package/dist/cli/{feedback-7T77UCIV.js → feedback-VP3GWJIH.js} +7 -7
  45. package/dist/cli/git-63RYCZSI.js +24 -0
  46. package/dist/cli/{git-5E3HETBN.mjs → git-JJ3CHOTL.mjs} +4 -4
  47. package/dist/cli/index.js +89 -89
  48. package/dist/cli/index.mjs +32 -32
  49. package/dist/cli/{legacy-noops-4FGVQLLD.mjs → legacy-noops-A6KGBODU.mjs} +4 -4
  50. package/dist/cli/{legacy-noops-X5MCVE34.js → legacy-noops-ITTD33ZN.js} +7 -7
  51. package/dist/cli/{monitors-OTAQWJH5.js → monitors-DXVP5YFC.js} +84 -84
  52. package/dist/cli/{monitors-QRZEIITA.mjs → monitors-NGEXCUEY.mjs} +4 -4
  53. package/dist/cli/{org-A6KANSFR.mjs → org-34DBJSFP.mjs} +4 -4
  54. package/dist/cli/{org-B3JK2BND.js → org-C4ZTOSQC.js} +64 -64
  55. package/dist/cli/{play-HLDZVD47.js → play-5FWTZCHN.js} +231 -231
  56. package/dist/cli/{play-CN6DOFMT.mjs → play-SVLQKZBG.mjs} +7 -7
  57. package/dist/cli/{providers-XGCTTZ7T.js → providers-QWR2HRNY.js} +7 -7
  58. package/dist/cli/{providers-EVPLX6BG.mjs → providers-RQTSGYE4.mjs} +4 -4
  59. package/dist/cli/{quickstart-LTH2MZNQ.js → quickstart-DHFNEMGY.js} +5 -5
  60. package/dist/cli/{quickstart-HXORYMNO.mjs → quickstart-W5UHZAEU.mjs} +3 -3
  61. package/dist/cli/{search-S4JOGJMH.mjs → search-U4AJC3FH.mjs} +5 -5
  62. package/dist/cli/search-YAYYU3WD.js +30 -0
  63. package/dist/cli/{secrets-JV3TPKE6.js → secrets-HH4H7BLE.js} +13 -13
  64. package/dist/cli/{secrets-VNHUBHLN.mjs → secrets-YSMQ7CVZ.mjs} +4 -4
  65. package/dist/cli/{sessions-QYYFCXGY.js → sessions-AJZXYUCJ.js} +5 -5
  66. package/dist/cli/{sessions-CDBTN53U.mjs → sessions-URONRCTV.mjs} +4 -4
  67. package/dist/cli/{settings-I6LQQCMK.mjs → settings-KGAMW4MN.mjs} +7 -7
  68. package/dist/cli/{settings-YYZ2IHFU.js → settings-QAW62BH4.js} +74 -74
  69. package/dist/cli/{setup-IZQI5RZA.js → setup-KAMFU5VE.js} +41 -41
  70. package/dist/cli/{setup-X24RP6O7.mjs → setup-P54DPBFO.mjs} +6 -6
  71. package/dist/cli/skills-M2GGHYJU.js +29 -0
  72. package/dist/cli/{skills-UYIFSY2Y.mjs → skills-UMWRJ6TL.mjs} +4 -4
  73. package/dist/cli/{tools-IR5JEQF6.mjs → tools-HN4EFVY7.mjs} +6 -6
  74. package/dist/cli/{tools-BLP2VRAN.js → tools-HX3BHT55.js} +7 -7
  75. package/dist/cli/{update-MXFLD3ZQ.mjs → update-7AFQCJ75.mjs} +6 -6
  76. package/dist/cli/update-I23NN5QI.js +29 -0
  77. package/dist/cli/{workflow-CZ6CXXOL.js → workflow-7EHU5ZPX.js} +15 -15
  78. package/dist/cli/{workflow-QGY342J5.mjs → workflow-ARDO4VHU.mjs} +5 -5
  79. package/dist/index.js +6 -6
  80. package/dist/index.mjs +3 -3
  81. package/dist/install-integrity.json +70 -70
  82. package/dist/release.d.mts +1 -1
  83. package/dist/release.d.ts +1 -1
  84. package/dist/release.js +2 -2
  85. package/dist/release.mjs +1 -1
  86. package/package.json +1 -1
  87. package/dist/cli/auth-UIC53AE2.js +0 -40
  88. package/dist/cli/git-DRUSBG74.js +0 -24
  89. package/dist/cli/search-MH6VAITK.js +0 -30
  90. package/dist/cli/skills-U4MIVNPW.js +0 -29
  91. package/dist/cli/update-EIYE45GT.js +0 -29
@@ -5,7 +5,7 @@ var _chunkZAAKSJASjs = require('./chunk-ZAAKSJAS.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkW3SACRLJjs = require('./chunk-W3SACRLJ.js');
8
+ var _chunkN43PX2CAjs = require('./chunk-N43PX2CA.js');
9
9
 
10
10
 
11
11
 
@@ -45,7 +45,7 @@ var _chunkZ4VNJOF7js = require('./chunk-Z4VNJOF7.js');
45
45
 
46
46
 
47
47
 
48
- var _chunkCBMYUXATjs = require('./chunk-CBMYUXAT.js');
48
+ var _chunkAPLRSERFjs = require('./chunk-APLRSERF.js');
49
49
 
50
50
 
51
51
  var _chunkXDVT3GOMjs = require('./chunk-XDVT3GOM.js');
@@ -62,11 +62,11 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
62
62
 
63
63
 
64
64
 
65
- var _chunkODKHUBU3js = require('./chunk-ODKHUBU3.js');
65
+ var _chunkNYDRX6JJjs = require('./chunk-NYDRX6JJ.js');
66
66
 
67
67
 
68
68
 
69
- var _chunkGPWTKORHjs = require('./chunk-GPWTKORH.js');
69
+ var _chunkYSAZVLJDjs = require('./chunk-YSAZVLJD.js');
70
70
 
71
71
 
72
72
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -145,10 +145,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
145
145
  }
146
146
  };
147
147
  function pendingToolExecutionPath(input) {
148
- const config = _chunkGPWTKORHjs.resolveConfig.call(void 0, );
148
+ const config = _chunkYSAZVLJDjs.resolveConfig.call(void 0, );
149
149
  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");
150
150
  return _path.join.call(void 0,
151
- _chunkGPWTKORHjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
151
+ _chunkYSAZVLJDjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
152
152
  `pending-tool-execution-${fingerprint}.json`
153
153
  );
154
154
  }
@@ -436,12 +436,12 @@ function categoryEnumerationRender(summaries) {
436
436
  };
437
437
  }
438
438
  async function listToolCategories(emitJson, compact) {
439
- const client = new (0, _chunkCBMYUXATjs.DeeplineClient)();
439
+ const client = new (0, _chunkAPLRSERFjs.DeeplineClient)();
440
440
  const rawTools = await client.listTools({ compact });
441
441
  const items = rawTools.map(toListedTool);
442
442
  const summaries = aggregateCategorySummaries(rawTools);
443
443
  const outputItems = compact ? items.map(compactTool) : items;
444
- _chunkODKHUBU3js.printCommandEnvelope.call(void 0,
444
+ _chunkNYDRX6JJjs.printCommandEnvelope.call(void 0,
445
445
  {
446
446
  tools: outputItems,
447
447
  count: outputItems.length,
@@ -460,7 +460,7 @@ function unknownCategoryError(category, summaries, emitJson) {
460
460
  const known = summaries.map((item) => item.name);
461
461
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
462
462
  if (emitJson) {
463
- _chunkODKHUBU3js.printJson.call(void 0, {
463
+ _chunkNYDRX6JJjs.printJson.call(void 0, {
464
464
  ok: false,
465
465
  exitCode: 4,
466
466
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -474,13 +474,13 @@ function unknownCategoryError(category, summaries, emitJson) {
474
474
  const render = categoryEnumerationRender(summaries);
475
475
  console.error(message);
476
476
  console.error("");
477
- console.error(_chunkODKHUBU3js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
477
+ console.error(_chunkNYDRX6JJjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
478
478
  console.error("");
479
479
  console.error(`Valid categories: ${known.join(", ")}`);
480
480
  return 4;
481
481
  }
482
482
  async function listToolsInCategory(category, emitJson) {
483
- const client = new (0, _chunkCBMYUXATjs.DeeplineClient)();
483
+ const client = new (0, _chunkAPLRSERFjs.DeeplineClient)();
484
484
  const rawTools = await client.listTools({
485
485
  categories: category,
486
486
  compact: false
@@ -517,7 +517,7 @@ async function listToolsInCategory(category, emitJson) {
517
517
  }
518
518
  ]
519
519
  };
520
- _chunkODKHUBU3js.printCommandEnvelope.call(void 0,
520
+ _chunkNYDRX6JJjs.printCommandEnvelope.call(void 0,
521
521
  {
522
522
  category,
523
523
  total: rows.length,
@@ -530,7 +530,7 @@ async function listToolsInCategory(category, emitJson) {
530
530
  return 0;
531
531
  }
532
532
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
533
- const client = new (0, _chunkCBMYUXATjs.DeeplineClient)();
533
+ const client = new (0, _chunkAPLRSERFjs.DeeplineClient)();
534
534
  const items = (await client.listTools({
535
535
  categories: requestedCategories.join(","),
536
536
  compact
@@ -559,7 +559,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
559
559
  ]
560
560
  };
561
561
  const outputItems = compact ? items.map(compactTool) : items;
562
- _chunkODKHUBU3js.printCommandEnvelope.call(void 0,
562
+ _chunkNYDRX6JJjs.printCommandEnvelope.call(void 0,
563
563
  {
564
564
  tools: outputItems,
565
565
  count: outputItems.length,
@@ -578,13 +578,13 @@ async function listTools(category, options = {}) {
578
578
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]), () => ( ""));
579
579
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
580
580
  const compact = options.compact !== false;
581
- const emitJson = options.json === true || _chunkODKHUBU3js.shouldEmitJson.call(void 0, );
581
+ const emitJson = options.json === true || _chunkNYDRX6JJjs.shouldEmitJson.call(void 0, );
582
582
  if (positional && flagCategories.length > 0) {
583
583
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
584
584
  if (!flagIsSameSingle) {
585
585
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
586
586
  if (emitJson) {
587
- _chunkODKHUBU3js.printJson.call(void 0, {
587
+ _chunkNYDRX6JJjs.printJson.call(void 0, {
588
588
  ok: false,
589
589
  exitCode: 2,
590
590
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -611,7 +611,7 @@ async function grepTools(queryInput, options = {}) {
611
611
  console.error("Usage: deepline tools grep <query> [--json]");
612
612
  return 1;
613
613
  }
614
- const client = new (0, _chunkCBMYUXATjs.DeeplineClient)();
614
+ const client = new (0, _chunkAPLRSERFjs.DeeplineClient)();
615
615
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
616
616
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
617
617
  const jsonOutput = options.json === true;
@@ -654,7 +654,7 @@ async function grepTools(queryInput, options = {}) {
654
654
  query,
655
655
  mode
656
656
  }) : null;
657
- _chunkODKHUBU3js.printCommandEnvelope.call(void 0,
657
+ _chunkNYDRX6JJjs.printCommandEnvelope.call(void 0,
658
658
  {
659
659
  tools: outputTools,
660
660
  count: outputTools.length,
@@ -672,7 +672,7 @@ async function grepTools(queryInput, options = {}) {
672
672
  } : {},
673
673
  commandTemplates: TOOL_COMMAND_TEMPLATES
674
674
  },
675
- { json: options.json || _chunkODKHUBU3js.shouldEmitJson.call(void 0, ) }
675
+ { json: options.json || _chunkNYDRX6JJjs.shouldEmitJson.call(void 0, ) }
676
676
  );
677
677
  return 0;
678
678
  }
@@ -790,7 +790,7 @@ Output:
790
790
  "--credentials-file must contain a nonempty JSON object of string credential values."
791
791
  );
792
792
  }
793
- const result = await new (0, _chunkCBMYUXATjs.DeeplineClient)().setIntegrationCredentials(
793
+ const result = await new (0, _chunkAPLRSERFjs.DeeplineClient)().setIntegrationCredentials(
794
794
  provider,
795
795
  credentials
796
796
  );
@@ -800,7 +800,7 @@ Output:
800
800
  );
801
801
  }
802
802
  const confirmation = { provider, credential_saved: true };
803
- if (_chunkODKHUBU3js.shouldEmitJson.call(void 0, options.json))
803
+ if (_chunkNYDRX6JJjs.shouldEmitJson.call(void 0, options.json))
804
804
  console.log(JSON.stringify(confirmation));
805
805
  else
806
806
  console.log(
@@ -840,7 +840,7 @@ Examples:
840
840
  json: Boolean(options.json)
841
841
  });
842
842
  });
843
- _chunkW3SACRLJjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
843
+ _chunkN43PX2CAjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
844
844
  tools.command("grep <query>").description(
845
845
  "Literal grep over tool ids, descriptions, categories, and input fields."
846
846
  ).addHelpText(
@@ -941,7 +941,7 @@ Examples:
941
941
  process.exitCode = await narrowView();
942
942
  return;
943
943
  }
944
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-3ROS6TC6.js")));
944
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-NFX6THJE.js")));
945
945
  process.exitCode = await describeAnything(
946
946
  toolId,
947
947
  {
@@ -1027,7 +1027,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1027
1027
  console.error("Usage: deepline tools describe <toolId> [--json]");
1028
1028
  return 1;
1029
1029
  }
1030
- const client = new (0, _chunkCBMYUXATjs.DeeplineClient)();
1030
+ const client = new (0, _chunkAPLRSERFjs.DeeplineClient)();
1031
1031
  let tool;
1032
1032
  try {
1033
1033
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1081,7 +1081,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1081
1081
  const lines = toolPricingOnlyLines(tool, toolId);
1082
1082
  if (inferenceQuote)
1083
1083
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1084
- _chunkODKHUBU3js.printCommandEnvelope.call(void 0,
1084
+ _chunkNYDRX6JJjs.printCommandEnvelope.call(void 0,
1085
1085
  {
1086
1086
  toolId: String(tool.toolId || toolId),
1087
1087
  cost: _chunkZM2YPJQJjs.Capability.fromCatalogEntry(tool).describe().customerCost(),
@@ -1104,7 +1104,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1104
1104
  void 0,
1105
1105
  seedToolListScript
1106
1106
  );
1107
- _chunkODKHUBU3js.printCompactJson.call(void 0, {
1107
+ _chunkNYDRX6JJjs.printCompactJson.call(void 0, {
1108
1108
  toolId: contract.toolId,
1109
1109
  ...options.schemaOnly ? {
1110
1110
  inputSchema: contract.inputSchema,
@@ -1127,7 +1127,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1127
1127
  return 0;
1128
1128
  }
1129
1129
  if (options.contractJson) {
1130
- _chunkODKHUBU3js.printCompactJson.call(void 0, {
1130
+ _chunkNYDRX6JJjs.printCompactJson.call(void 0, {
1131
1131
  ..._chunkFERRDNMOjs.toolContractJsonForDescribe.call(void 0,
1132
1132
  tool,
1133
1133
  toolId,
@@ -1141,7 +1141,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1141
1141
  }
1142
1142
  const emitJson = options.json === true;
1143
1143
  if (emitJson) {
1144
- _chunkODKHUBU3js.printCompactJson.call(void 0, {
1144
+ _chunkNYDRX6JJjs.printCompactJson.call(void 0, {
1145
1145
  ..._chunkFERRDNMOjs.toolMetadataJsonForDescribe.call(void 0, tool, toolId, seedToolListScript),
1146
1146
  ...modelDescription ? { modelOptions: modelDescription } : {},
1147
1147
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -2002,7 +2002,7 @@ function parseExecuteOptions(toolId, options, output) {
2002
2002
  outputFormat = normalizeOutputFormat(options.outputFormat);
2003
2003
  }
2004
2004
  if (options.idempotencyKey !== void 0) {
2005
- _chunkCBMYUXATjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2005
+ _chunkAPLRSERFjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2006
2006
  }
2007
2007
  if (options.recoveryTimeoutMs !== void 0) {
2008
2008
  const parsed = Number(options.recoveryTimeoutMs);
@@ -2302,20 +2302,20 @@ function buildToolExecuteRowArtifactEnvelope(input) {
2302
2302
  }
2303
2303
  async function executeTool(toolId, options) {
2304
2304
  const output = toolExecuteJsonOption(options.json);
2305
- const wantsJson = _chunkODKHUBU3js.shouldEmitJson.call(void 0, output.requested) || (_nullishCoalesce(options.outputFormat, () => ( "auto"))).trim().toLowerCase() !== "csv";
2305
+ const wantsJson = _chunkNYDRX6JJjs.shouldEmitJson.call(void 0, output.requested) || (_nullishCoalesce(options.outputFormat, () => ( "auto"))).trim().toLowerCase() !== "csv";
2306
2306
  let parsed;
2307
2307
  try {
2308
2308
  parsed = parseExecuteOptions(toolId, options, output);
2309
2309
  } catch (error) {
2310
2310
  if (wantsJson) {
2311
- _chunkODKHUBU3js.printJsonError.call(void 0, error);
2311
+ _chunkNYDRX6JJjs.printJsonError.call(void 0, error);
2312
2312
  } else {
2313
2313
  console.error(error instanceof Error ? error.message : String(error));
2314
2314
  }
2315
2315
  return error instanceof _chunk7P5AA3SNjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2316
2316
  }
2317
2317
  const cliInvocationId = _nullishCoalesce(_chunkQJBJZVG6js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, )));
2318
- const client = new (0, _chunkCBMYUXATjs.DeeplineClient)();
2318
+ const client = new (0, _chunkAPLRSERFjs.DeeplineClient)();
2319
2319
  let metadata;
2320
2320
  try {
2321
2321
  metadata = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
@@ -2330,7 +2330,7 @@ async function executeTool(toolId, options) {
2330
2330
  );
2331
2331
  if (play) {
2332
2332
  if (wantsJson) {
2333
- _chunkODKHUBU3js.printJsonError.call(void 0,
2333
+ _chunkNYDRX6JJjs.printJsonError.call(void 0,
2334
2334
  new Error(playAliasToolErrorMessage(parsed.toolId, play))
2335
2335
  );
2336
2336
  } else {
@@ -2343,7 +2343,7 @@ async function executeTool(toolId, options) {
2343
2343
  }
2344
2344
  if (_chunkFERRDNMOjs.isPlayLikeTool.call(void 0, metadata)) {
2345
2345
  if (wantsJson) {
2346
- _chunkODKHUBU3js.printJsonError.call(void 0,
2346
+ _chunkNYDRX6JJjs.printJsonError.call(void 0,
2347
2347
  new Error(
2348
2348
  playLikeToolExecuteErrorMessage(
2349
2349
  parsed.toolId,
@@ -2391,7 +2391,7 @@ async function executeTool(toolId, options) {
2391
2391
  responseIntent,
2392
2392
  ...idempotencyKey ? { idempotencyKey } : {},
2393
2393
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
2394
- searchRef: _chunkW3SACRLJjs.recentSearchRef.call(void 0, ),
2394
+ searchRef: _chunkN43PX2CAjs.recentSearchRef.call(void 0, ),
2395
2395
  cliInvocationId,
2396
2396
  onResponseReceived: _chunkZAAKSJASjs.recordApiResponse
2397
2397
  }).catch((error) => {
@@ -2432,7 +2432,7 @@ async function executeTool(toolId, options) {
2432
2432
  const executeExitCode = toolExecuteExitCode(baseEnvelope);
2433
2433
  const delivered = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, "output delivery", () => {
2434
2434
  if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && wantsJson)) {
2435
- _chunkODKHUBU3js.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
2435
+ _chunkNYDRX6JJjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
2436
2436
  return true;
2437
2437
  }
2438
2438
  if (parsed.outputFormat === "json_file") {
@@ -2440,7 +2440,7 @@ async function executeTool(toolId, options) {
2440
2440
  rawResponse,
2441
2441
  `payload_${parsed.toolId}`
2442
2442
  );
2443
- _chunkODKHUBU3js.printCommandEnvelope.call(void 0,
2443
+ _chunkNYDRX6JJjs.printCommandEnvelope.call(void 0,
2444
2444
  {
2445
2445
  ...baseEnvelope,
2446
2446
  local: {
@@ -2462,7 +2462,7 @@ async function executeTool(toolId, options) {
2462
2462
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
2463
2463
  );
2464
2464
  if (wantsJson) {
2465
- _chunkODKHUBU3js.printJsonError.call(void 0, error);
2465
+ _chunkNYDRX6JJjs.printJsonError.call(void 0, error);
2466
2466
  } else {
2467
2467
  console.error(error.message);
2468
2468
  }
@@ -2473,7 +2473,7 @@ async function executeTool(toolId, options) {
2473
2473
  rawResponse,
2474
2474
  `payload_${parsed.toolId}`
2475
2475
  );
2476
- _chunkODKHUBU3js.printCommandEnvelope.call(void 0,
2476
+ _chunkNYDRX6JJjs.printCommandEnvelope.call(void 0,
2477
2477
  {
2478
2478
  ...baseEnvelope,
2479
2479
  local: {
@@ -2484,7 +2484,7 @@ async function executeTool(toolId, options) {
2484
2484
  );
2485
2485
  return true;
2486
2486
  }
2487
- _chunkODKHUBU3js.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
2487
+ _chunkNYDRX6JJjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
2488
2488
  return true;
2489
2489
  }
2490
2490
  const rowOutput = _chunkHGFFYVXNjs.projectRowOutput.call(void 0, listConversion);
@@ -2508,7 +2508,7 @@ async function executeTool(toolId, options) {
2508
2508
  seededScript
2509
2509
  });
2510
2510
  if (parsed.outputFormat === "csv_file") {
2511
- _chunkODKHUBU3js.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
2511
+ _chunkNYDRX6JJjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
2512
2512
  return true;
2513
2513
  }
2514
2514
  if (parsed.outPath) {
@@ -2516,7 +2516,7 @@ async function executeTool(toolId, options) {
2516
2516
  toolId: parsed.toolId,
2517
2517
  idempotencyKey
2518
2518
  });
2519
- _chunkODKHUBU3js.printCommandEnvelope.call(void 0, materializedEnvelope, {
2519
+ _chunkNYDRX6JJjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
2520
2520
  json: wantsJson,
2521
2521
  text: `Wrote ${csv.rowCount} row(s) to ${csv.path}
2522
2522
  inspect: ${inspection.inspect}
@@ -2525,7 +2525,7 @@ inspect: ${inspection.inspect}
2525
2525
  return true;
2526
2526
  }
2527
2527
  if (parsed.noPreview) {
2528
- _chunkODKHUBU3js.printCommandEnvelope.call(void 0,
2528
+ _chunkNYDRX6JJjs.printCommandEnvelope.call(void 0,
2529
2529
  {
2530
2530
  ...materializedEnvelope,
2531
2531
  local: {
@@ -2538,7 +2538,7 @@ inspect: ${inspection.inspect}
2538
2538
  );
2539
2539
  return true;
2540
2540
  }
2541
- _chunkODKHUBU3js.printCommandEnvelope.call(void 0, materializedEnvelope, {
2541
+ _chunkNYDRX6JJjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
2542
2542
  json: wantsJson && parsed.outputFormat !== "csv"
2543
2543
  });
2544
2544
  return true;
@@ -3,7 +3,7 @@ import {
3
3
  detectAgentRuntime,
4
4
  resolveCliCommandContext,
5
5
  resolveConfig
6
- } from "./chunk-DSXMTZ64.mjs";
6
+ } from "./chunk-CGX4NSS3.mjs";
7
7
  import {
8
8
  DeeplineError,
9
9
  serializeToolExecutionFailure
@@ -3,15 +3,15 @@ import {
3
3
  } from "./chunk-LJ5747UC.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-XKVJZ5JC.mjs";
6
+ } from "./chunk-7ZMVAV2B.mjs";
7
7
  import {
8
8
  printCommandEnvelope,
9
9
  renderCommandEnvelopeText
10
- } from "./chunk-OHGXSFDQ.mjs";
10
+ } from "./chunk-5IGBBYXH.mjs";
11
11
  import {
12
12
  resolveConfig,
13
13
  sdkCliStateDirPath
14
- } from "./chunk-DSXMTZ64.mjs";
14
+ } from "./chunk-CGX4NSS3.mjs";
15
15
 
16
16
  // src/cli/commands/search.ts
17
17
  import { Option } from "commander";
@@ -24,7 +24,7 @@ import {
24
24
  RETAINED_PIPELINE_RECEIVERS_HEADER,
25
25
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
26
26
  resolveConfig
27
- } from "./chunk-DSXMTZ64.mjs";
27
+ } from "./chunk-CGX4NSS3.mjs";
28
28
  import {
29
29
  CustomerDbQueryOutcomeUnknownError
30
30
  } from "./chunk-YHPYUZZX.mjs";
@@ -6064,10 +6064,10 @@ var DeeplineClient = class _DeeplineClient {
6064
6064
  }
6065
6065
  );
6066
6066
  if (definition.tool !== "deepline.analytics") return deployed;
6067
- const setup = await this.setupMonitor(
6068
- definition.tool,
6069
- definition.payload ?? {}
6070
- );
6067
+ const setup = await this.setupMonitor(definition.tool, {
6068
+ ...definition.payload,
6069
+ monitor_key: definition.key
6070
+ });
6071
6071
  return {
6072
6072
  ...deployed,
6073
6073
  monitor: {
@@ -24,7 +24,7 @@ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkGPWTKORHjs = require('./chunk-GPWTKORH.js');
27
+ var _chunkYSAZVLJDjs = require('./chunk-YSAZVLJD.js');
28
28
 
29
29
 
30
30
  var _chunkQ2E4E4FJjs = require('./chunk-Q2E4E4FJ.js');
@@ -2889,8 +2889,8 @@ function runtimeSelectionHeaders(runtime, env) {
2889
2889
  }
2890
2890
  const receivers = _optionalChain([env, 'access', _97 => _97.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _98 => _98.trim, 'call', _99 => _99()]);
2891
2891
  return {
2892
- [_chunkGPWTKORHjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2893
- ...receivers ? { [_chunkGPWTKORHjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2892
+ [_chunkYSAZVLJDjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2893
+ ...receivers ? { [_chunkYSAZVLJDjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2894
2894
  };
2895
2895
  }
2896
2896
  function isolatedCiRuntimeEventReadHeaders(env) {
@@ -2906,7 +2906,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
2906
2906
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
2907
2907
  );
2908
2908
  }
2909
- return { [_chunkGPWTKORHjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2909
+ return { [_chunkYSAZVLJDjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2910
2910
  }
2911
2911
  function normalizeTestPolicyOverrides(value, source) {
2912
2912
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -3197,9 +3197,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
3197
3197
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3198
3198
  */
3199
3199
  constructor(options) {
3200
- this.config = _chunkGPWTKORHjs.resolveConfig.call(void 0, options);
3200
+ this.config = _chunkYSAZVLJDjs.resolveConfig.call(void 0, options);
3201
3201
  this.environment = _nullishCoalesce(this.config.environment, () => ( process.env));
3202
- this.http = new (0, _chunkGPWTKORHjs.HttpClient)(this.config);
3202
+ this.http = new (0, _chunkYSAZVLJDjs.HttpClient)(this.config);
3203
3203
  this.toolCalls = new ToolCalls(
3204
3204
  this.http,
3205
3205
  this.config.timeout,
@@ -6064,10 +6064,10 @@ var DeeplineClient = (_class = class _DeeplineClient {
6064
6064
  }
6065
6065
  );
6066
6066
  if (definition.tool !== "deepline.analytics") return deployed;
6067
- const setup = await this.setupMonitor(
6068
- definition.tool,
6069
- _nullishCoalesce(definition.payload, () => ( {}))
6070
- );
6067
+ const setup = await this.setupMonitor(definition.tool, {
6068
+ ...definition.payload,
6069
+ monitor_key: definition.key
6070
+ });
6071
6071
  return {
6072
6072
  ...deployed,
6073
6073
  monitor: {
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-NXGCO4JB.mjs";
18
18
  import {
19
19
  SDK_RELEASE
20
- } from "./chunk-NRI4TJVF.mjs";
20
+ } from "./chunk-42RUJLQI.mjs";
21
21
 
22
22
  // src/config.ts
23
23
  import {
@@ -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 _chunkODKHUBU3js = require('./chunk-ODKHUBU3.js');
4
+ var _chunkNYDRX6JJjs = require('./chunk-NYDRX6JJ.js');
5
5
 
6
6
 
7
- var _chunkGPWTKORHjs = require('./chunk-GPWTKORH.js');
7
+ var _chunkYSAZVLJDjs = require('./chunk-YSAZVLJD.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 = _chunkGPWTKORHjs.agentSessionIdFromEnvironment.call(void 0, );
142
+ const sessionId = _chunkYSAZVLJDjs.agentSessionIdFromEnvironment.call(void 0, );
143
143
  const cwd = process.cwd();
144
144
  return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
145
145
  (candidate) => sessionStartedInDirectory(candidate, cwd)
@@ -448,7 +448,7 @@ function buildSessionUploadContent(raw) {
448
448
  return { encodedContent: encoded, needsChunking: true };
449
449
  }
450
450
  async function uploadPayload(path, payload) {
451
- const { http } = _chunkODKHUBU3js.getAuthedHttpClient.call(void 0, );
451
+ const { http } = _chunkNYDRX6JJjs.getAuthedHttpClient.call(void 0, );
452
452
  return await http.post(path, payload);
453
453
  }
454
454
  async function uploadChunkedSessions(sessions, options) {
@@ -481,7 +481,7 @@ async function uploadChunkedSessions(sessions, options) {
481
481
  ...options.rating ? { rating: options.rating } : {}
482
482
  });
483
483
  const sessionIds = sessions.map((session) => session.sessionId);
484
- _chunkODKHUBU3js.printCommandEnvelope.call(void 0,
484
+ _chunkNYDRX6JJjs.printCommandEnvelope.call(void 0,
485
485
  {
486
486
  ...response,
487
487
  ok: true,
@@ -513,7 +513,7 @@ async function handleSessionsSend(options) {
513
513
  filename: _path.basename.call(void 0, filePath),
514
514
  ...rating ? { rating } : {}
515
515
  });
516
- _chunkODKHUBU3js.printCommandEnvelope.call(void 0,
516
+ _chunkNYDRX6JJjs.printCommandEnvelope.call(void 0,
517
517
  {
518
518
  ...response2,
519
519
  ok: true,
@@ -563,7 +563,7 @@ async function handleSessionsSend(options) {
563
563
  ...rating ? { rating } : {}
564
564
  });
565
565
  const sessionIds = built.map((session) => session.sessionId);
566
- _chunkODKHUBU3js.printCommandEnvelope.call(void 0,
566
+ _chunkNYDRX6JJjs.printCommandEnvelope.call(void 0,
567
567
  {
568
568
  ...response,
569
569
  ok: true,
@@ -671,7 +671,7 @@ ${refreshMeta}
671
671
  </body>
672
672
  </html>`;
673
673
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
674
- _chunkODKHUBU3js.printCommandEnvelope.call(void 0,
674
+ _chunkNYDRX6JJjs.printCommandEnvelope.call(void 0,
675
675
  {
676
676
  ok: true,
677
677
  file: outputPath,