deepline 0.3.353 → 0.3.354

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 (95) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +3 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +54 -40
  4. package/dist/cli/auth-6UTAYZYH.js +31 -0
  5. package/dist/cli/{auth-FVIZVTCB.mjs → auth-WLFZLPVL.mjs} +4 -4
  6. package/dist/cli/{billing-NWL7KQPZ.js → billing-7MEEEXP4.js} +73 -73
  7. package/dist/cli/{billing-PYTYGWPG.mjs → billing-V3C4NWJ5.mjs} +4 -4
  8. package/dist/cli/{chunk-2UWRFDI4.js → chunk-2OPNMVYN.js} +60 -60
  9. package/dist/cli/{chunk-ZCCXX55K.js → chunk-2XBK5U34.js} +45 -45
  10. package/dist/cli/{chunk-Z6LVVOOJ.js → chunk-3BA35GCA.js} +15 -15
  11. package/dist/cli/{chunk-55XOA2VW.js → chunk-3GRDLU4K.js} +8 -8
  12. package/dist/cli/{chunk-NPU4SMKT.js → chunk-3NL4REIK.js} +9 -9
  13. package/dist/cli/{chunk-XI5IMY45.js → chunk-427S6HR2.js} +2 -2
  14. package/dist/cli/{chunk-HU4SUDWU.js → chunk-5MSRAFIT.js} +224 -224
  15. package/dist/cli/{chunk-EDEO7NG4.js → chunk-B6SRSDBH.js} +1 -1
  16. package/dist/cli/{chunk-VALAAQQM.js → chunk-C4YFKD7B.js} +48 -48
  17. package/dist/cli/{chunk-BVHUTDCW.mjs → chunk-D454FGPP.mjs} +5 -5
  18. package/dist/cli/{chunk-IVGFLYQ6.mjs → chunk-EKWPCKO6.mjs} +1 -1
  19. package/dist/cli/{chunk-CXMSK2VV.mjs → chunk-F75TFBVN.mjs} +2 -2
  20. package/dist/cli/{chunk-DY253DRK.mjs → chunk-GOKAXPGN.mjs} +2 -2
  21. package/dist/cli/{chunk-CQQ5N4YO.mjs → chunk-GVXFIFI3.mjs} +2 -2
  22. package/dist/cli/{chunk-RRDCBCRI.mjs → chunk-HEN4YY2R.mjs} +1 -1
  23. package/dist/cli/{chunk-M4UPRX3M.js → chunk-IH23RQXJ.js} +8 -8
  24. package/dist/cli/{chunk-37F4EUJA.mjs → chunk-JJEJHAGS.mjs} +6 -6
  25. package/dist/cli/{chunk-NZNUDZDW.mjs → chunk-JXXX7TZZ.mjs} +2 -2
  26. package/dist/cli/{chunk-NFEQHNDQ.js → chunk-NGXUDPUI.js} +26 -26
  27. package/dist/cli/{chunk-D477W2OQ.mjs → chunk-NV6NBSPH.mjs} +4 -4
  28. package/dist/cli/{chunk-GFLHAA2O.mjs → chunk-OSVY4AVM.mjs} +1 -1
  29. package/dist/cli/{chunk-LLI4RITH.mjs → chunk-PRBOPYT2.mjs} +3 -3
  30. package/dist/cli/{chunk-JHPVZR6F.js → chunk-QFD3VXQS.js} +4 -4
  31. package/dist/cli/{chunk-R2T4HQ64.js → chunk-RQJORG4F.js} +6 -6
  32. package/dist/cli/{chunk-ZDEO3EGW.mjs → chunk-XAXLATYC.mjs} +1 -1
  33. package/dist/cli/{chunk-U3FUXTIB.mjs → chunk-YK2XGEY3.mjs} +1 -1
  34. package/dist/cli/client-5BVCEKM5.js +20 -0
  35. package/dist/cli/{client-IH7I5D7T.mjs → client-TIVZM7GK.mjs} +3 -3
  36. package/dist/cli/{csv-G5WXNCLQ.mjs → csv-E62E67L3.mjs} +3 -3
  37. package/dist/cli/{csv-TJIWKUCX.js → csv-VAH6JJHI.js} +12 -12
  38. package/dist/cli/{db-EBHV2MGE.mjs → db-7MCHARO3.mjs} +4 -4
  39. package/dist/cli/{db-3DCS2JXS.js → db-FKDG7M3X.js} +29 -29
  40. package/dist/cli/{describe-5XKBPWD7.js → describe-3WPU75JN.js} +15 -15
  41. package/dist/cli/{describe-QUOLGZKH.mjs → describe-ZSCT6QLG.mjs} +8 -8
  42. package/dist/cli/{executions-EERWIJ5I.mjs → executions-NCSDSHIX.mjs} +4 -4
  43. package/dist/cli/{executions-NYIOENKH.js → executions-UBJJ55LI.js} +6 -6
  44. package/dist/cli/{feedback-4RYJJCYL.mjs → feedback-RE2TLLSM.mjs} +3 -3
  45. package/dist/cli/{feedback-Z2I5MQYZ.js → feedback-UBKR7RHE.js} +7 -7
  46. package/dist/cli/git-44MZ22NK.js +23 -0
  47. package/dist/cli/{git-EMU7AKX3.mjs → git-AQNH4NAK.mjs} +4 -4
  48. package/dist/cli/index.js +79 -79
  49. package/dist/cli/index.mjs +31 -31
  50. package/dist/cli/{legacy-noops-BEUYYRSU.js → legacy-noops-C7UKYNEP.js} +7 -7
  51. package/dist/cli/{legacy-noops-HHLNM523.mjs → legacy-noops-ZNMQTD2K.mjs} +4 -4
  52. package/dist/cli/{monitors-BVJSHUV4.mjs → monitors-CUXMXMGC.mjs} +4 -4
  53. package/dist/cli/{monitors-KQXLMPZ4.js → monitors-NC3UXIDA.js} +85 -85
  54. package/dist/cli/{org-HRYNVOUH.js → org-DHAXJFQ2.js} +60 -60
  55. package/dist/cli/{org-KSROOKSJ.mjs → org-IIW7IEJ7.mjs} +4 -4
  56. package/dist/cli/{play-PGFW6PFE.mjs → play-4MMSBBJP.mjs} +7 -7
  57. package/dist/cli/play-D46UW6OL.js +153 -0
  58. package/dist/cli/{providers-BJM725CV.js → providers-OLCJYWZM.js} +7 -7
  59. package/dist/cli/{providers-EUKJK6ZE.mjs → providers-YX7CS6XU.mjs} +4 -4
  60. package/dist/cli/{quickstart-72JYHUJC.mjs → quickstart-EEXIL4UP.mjs} +3 -3
  61. package/dist/cli/{quickstart-FEERYTYY.js → quickstart-ZVB2X32N.js} +5 -5
  62. package/dist/cli/search-QH2DTRZK.js +26 -0
  63. package/dist/cli/{search-LUAIOM56.mjs → search-U3OEMJVA.mjs} +5 -5
  64. package/dist/cli/{secrets-YYFRYS2Z.mjs → secrets-DQBMEYHR.mjs} +4 -4
  65. package/dist/cli/{secrets-J65QCH57.js → secrets-Q5WQHPIH.js} +13 -13
  66. package/dist/cli/{sessions-WBA67YYT.mjs → sessions-EUUOJ42J.mjs} +4 -4
  67. package/dist/cli/{sessions-FWUUEK6V.js → sessions-RH7HXUZT.js} +5 -5
  68. package/dist/cli/{settings-RUMTSUE5.mjs → settings-3YYNL5RL.mjs} +7 -7
  69. package/dist/cli/{settings-I7AZ4JVI.js → settings-M4ODWSAR.js} +74 -74
  70. package/dist/cli/{setup-BHRRNT5C.mjs → setup-377NYJFE.mjs} +6 -6
  71. package/dist/cli/{setup-R3IUFNDP.js → setup-UIM7ARVP.js} +41 -41
  72. package/dist/cli/skills-K4SF37HO.js +28 -0
  73. package/dist/cli/{skills-EKD5O7GQ.mjs → skills-S4XLO4XM.mjs} +4 -4
  74. package/dist/cli/tools-BK5GMDP4.js +40 -0
  75. package/dist/cli/{tools-L5OA2343.mjs → tools-VECGJHSR.mjs} +6 -6
  76. package/dist/cli/{update-UUHL6FER.mjs → update-EXH5POHP.mjs} +6 -6
  77. package/dist/cli/update-U5B3IFKL.js +28 -0
  78. package/dist/cli/{workflow-V24VHOQT.mjs → workflow-5BLDGBNS.mjs} +5 -5
  79. package/dist/cli/{workflow-7NBSG5OT.js → workflow-YQTJKRZ3.js} +15 -15
  80. package/dist/index.js +6 -6
  81. package/dist/index.mjs +3 -3
  82. package/dist/install-integrity.json +74 -74
  83. package/dist/release.d.mts +1 -1
  84. package/dist/release.d.ts +1 -1
  85. package/dist/release.js +2 -2
  86. package/dist/release.mjs +1 -1
  87. package/package.json +1 -1
  88. package/dist/cli/auth-GJZ3S4QH.js +0 -31
  89. package/dist/cli/client-Z6BCEGFA.js +0 -20
  90. package/dist/cli/git-QYQ5ZFIG.js +0 -23
  91. package/dist/cli/play-CRHUA45Q.js +0 -153
  92. package/dist/cli/search-X25S2U54.js +0 -26
  93. package/dist/cli/skills-OOZ5SDVB.js +0 -28
  94. package/dist/cli/tools-MYH33NTL.js +0 -40
  95. package/dist/cli/update-EWNPE3NF.js +0 -28
@@ -11,7 +11,7 @@ var _chunkAID3OYVJjs = require('./chunk-AID3OYVJ.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkM4UPRX3Mjs = require('./chunk-M4UPRX3M.js');
14
+ var _chunkIH23RQXJjs = require('./chunk-IH23RQXJ.js');
15
15
 
16
16
 
17
17
 
@@ -23,7 +23,7 @@ var _chunkNXDRDJ4Kjs = require('./chunk-NXDRDJ4K.js');
23
23
 
24
24
 
25
25
 
26
- var _chunkNPU4SMKTjs = require('./chunk-NPU4SMKT.js');
26
+ var _chunk3NL4REIKjs = require('./chunk-3NL4REIK.js');
27
27
 
28
28
 
29
29
 
@@ -37,11 +37,11 @@ var _chunkQJBJZVG6js = require('./chunk-QJBJZVG6.js');
37
37
 
38
38
 
39
39
 
40
- var _chunkR2T4HQ64js = require('./chunk-R2T4HQ64.js');
40
+ var _chunkRQJORG4Fjs = require('./chunk-RQJORG4F.js');
41
41
 
42
42
 
43
43
 
44
- var _chunkJHPVZR6Fjs = require('./chunk-JHPVZR6F.js');
44
+ var _chunkQFD3VXQSjs = require('./chunk-QFD3VXQS.js');
45
45
 
46
46
 
47
47
  var _chunk5O4B6AUNjs = require('./chunk-5O4B6AUN.js');
@@ -89,10 +89,10 @@ var ToolCallRecovery = class _ToolCallRecovery {
89
89
  }
90
90
  };
91
91
  function pendingToolExecutionPath(input) {
92
- const config = _chunkJHPVZR6Fjs.resolveConfig.call(void 0, );
92
+ const config = _chunkQFD3VXQSjs.resolveConfig.call(void 0, );
93
93
  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(_chunkNXDRDJ4Kjs.stableStringify.call(void 0, input.params)).update("\0").update(input.responseIntent).digest("hex");
94
94
  return _path.join.call(void 0,
95
- _chunkJHPVZR6Fjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
95
+ _chunkQFD3VXQSjs.sdkCliStateDirPath.call(void 0, config.baseUrl),
96
96
  `pending-tool-execution-${fingerprint}.json`
97
97
  );
98
98
  }
@@ -536,12 +536,12 @@ function categoryEnumerationRender(summaries) {
536
536
  };
537
537
  }
538
538
  async function listToolCategories(emitJson, compact) {
539
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
539
+ const client = new (0, _chunk3NL4REIKjs.DeeplineClient)();
540
540
  const rawTools = await client.listTools({ compact });
541
541
  const items = rawTools.map(toListedTool);
542
542
  const summaries = aggregateCategorySummaries(rawTools);
543
543
  const outputItems = compact ? items.map(compactTool) : items;
544
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
544
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0,
545
545
  {
546
546
  tools: outputItems,
547
547
  count: outputItems.length,
@@ -560,7 +560,7 @@ function unknownCategoryError(category, summaries, emitJson) {
560
560
  const known = summaries.map((item) => item.name);
561
561
  const message = `Unknown tool category "${category}". Run \`deepline tools list\` to browse categories.`;
562
562
  if (emitJson) {
563
- _chunkR2T4HQ64js.printJson.call(void 0, {
563
+ _chunkRQJORG4Fjs.printJson.call(void 0, {
564
564
  ok: false,
565
565
  exitCode: 4,
566
566
  code: "TOOL_CATEGORY_NOT_FOUND",
@@ -574,13 +574,13 @@ function unknownCategoryError(category, summaries, emitJson) {
574
574
  const render = categoryEnumerationRender(summaries);
575
575
  console.error(message);
576
576
  console.error("");
577
- console.error(_chunkR2T4HQ64js.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
577
+ console.error(_chunkRQJORG4Fjs.renderCommandEnvelopeText.call(void 0, { render }).trimEnd());
578
578
  console.error("");
579
579
  console.error(`Valid categories: ${known.join(", ")}`);
580
580
  return 4;
581
581
  }
582
582
  async function listToolsInCategory(category, emitJson) {
583
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
583
+ const client = new (0, _chunk3NL4REIKjs.DeeplineClient)();
584
584
  const rawTools = await client.listTools({
585
585
  categories: category,
586
586
  compact: false
@@ -617,7 +617,7 @@ async function listToolsInCategory(category, emitJson) {
617
617
  }
618
618
  ]
619
619
  };
620
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
620
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0,
621
621
  {
622
622
  category,
623
623
  total: rows.length,
@@ -630,7 +630,7 @@ async function listToolsInCategory(category, emitJson) {
630
630
  return 0;
631
631
  }
632
632
  async function listToolsForCategoryFilter(requestedCategories, emitJson, compact) {
633
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
633
+ const client = new (0, _chunk3NL4REIKjs.DeeplineClient)();
634
634
  const items = (await client.listTools({
635
635
  categories: requestedCategories.join(","),
636
636
  compact
@@ -659,7 +659,7 @@ async function listToolsForCategoryFilter(requestedCategories, emitJson, compact
659
659
  ]
660
660
  };
661
661
  const outputItems = compact ? items.map(compactTool) : items;
662
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
662
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0,
663
663
  {
664
664
  tools: outputItems,
665
665
  count: outputItems.length,
@@ -678,13 +678,13 @@ async function listTools(category, options = {}) {
678
678
  const positional = _nullishCoalesce(_optionalChain([category, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]), () => ( ""));
679
679
  const flagCategories = (_nullishCoalesce(options.categories, () => ( ""))).split(",").map((item) => item.trim()).filter(Boolean);
680
680
  const compact = options.compact !== false;
681
- const emitJson = options.json === true || _chunkR2T4HQ64js.shouldEmitJson.call(void 0, );
681
+ const emitJson = options.json === true || _chunkRQJORG4Fjs.shouldEmitJson.call(void 0, );
682
682
  if (positional && flagCategories.length > 0) {
683
683
  const flagIsSameSingle = flagCategories.length === 1 && flagCategories[0] === positional;
684
684
  if (!flagIsSameSingle) {
685
685
  const message = `Category "${positional}" and --categories ${flagCategories.join(",")} disagree. Pass one: deepline tools list ${positional}`;
686
686
  if (emitJson) {
687
- _chunkR2T4HQ64js.printJson.call(void 0, {
687
+ _chunkRQJORG4Fjs.printJson.call(void 0, {
688
688
  ok: false,
689
689
  exitCode: 2,
690
690
  code: "TOOL_LIST_CATEGORY_CONFLICT",
@@ -711,7 +711,7 @@ async function grepTools(queryInput, options = {}) {
711
711
  console.error("Usage: deepline tools grep <query> [--json]");
712
712
  return 1;
713
713
  }
714
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
714
+ const client = new (0, _chunk3NL4REIKjs.DeeplineClient)();
715
715
  const requestedCategories = options.categories ? options.categories.split(",").map((item) => item.trim()).filter(Boolean) : [];
716
716
  const mode = _nullishCoalesce(options.mode, () => ( "all"));
717
717
  const jsonOutput = options.json === true;
@@ -754,7 +754,7 @@ async function grepTools(queryInput, options = {}) {
754
754
  query,
755
755
  mode
756
756
  }) : null;
757
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
757
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0,
758
758
  {
759
759
  tools: outputTools,
760
760
  count: outputTools.length,
@@ -772,7 +772,7 @@ async function grepTools(queryInput, options = {}) {
772
772
  } : {},
773
773
  commandTemplates: TOOL_COMMAND_TEMPLATES
774
774
  },
775
- { json: options.json || _chunkR2T4HQ64js.shouldEmitJson.call(void 0, ) }
775
+ { json: options.json || _chunkRQJORG4Fjs.shouldEmitJson.call(void 0, ) }
776
776
  );
777
777
  return 0;
778
778
  }
@@ -928,7 +928,7 @@ Examples:
928
928
  json: Boolean(options.json)
929
929
  });
930
930
  });
931
- _chunkM4UPRX3Mjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
931
+ _chunkIH23RQXJjs.registerDeprecatedSearchCommand.call(void 0, tools, () => ["tools", "monitors"]);
932
932
  tools.command("grep <query>").description(
933
933
  "Literal grep over tool ids, descriptions, categories, and input fields."
934
934
  ).addHelpText(
@@ -1030,7 +1030,7 @@ Examples:
1030
1030
  process.exitCode = await narrowView();
1031
1031
  return;
1032
1032
  }
1033
- const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-5XKBPWD7.js")));
1033
+ const { describeAnything } = await Promise.resolve().then(() => _interopRequireWildcard(require("./describe-3WPU75JN.js")));
1034
1034
  process.exitCode = await describeAnything(
1035
1035
  toolId,
1036
1036
  { ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
@@ -1112,7 +1112,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1112
1112
  console.error("Usage: deepline tools describe <toolId> [--json]");
1113
1113
  return 1;
1114
1114
  }
1115
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
1115
+ const client = new (0, _chunk3NL4REIKjs.DeeplineClient)();
1116
1116
  let tool;
1117
1117
  try {
1118
1118
  tool = await _asyncNullishCoalesce(compatibilityMetadata, async () => ( await client.getTool(toolId)));
@@ -1166,7 +1166,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1166
1166
  const lines = toolPricingOnlyLines(tool, toolId);
1167
1167
  if (inferenceQuote)
1168
1168
  lines.push(...inferenceQuoteSummaryLines(inferenceQuote));
1169
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
1169
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0,
1170
1170
  {
1171
1171
  toolId: String(tool.toolId || toolId),
1172
1172
  cost: Capability.fromCatalogEntry(tool).describe().customerCost(),
@@ -1184,7 +1184,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1184
1184
  }
1185
1185
  if ((options.schemaOnly || options.examplesOnly || options.gettersOnly) && !isMonitorTypeTool(tool) && !isPlayLikeTool(tool) && (options.json || options.contractJson)) {
1186
1186
  const contract = toolContractJsonForDescribe(tool, toolId);
1187
- _chunkR2T4HQ64js.printCompactJson.call(void 0, {
1187
+ _chunkRQJORG4Fjs.printCompactJson.call(void 0, {
1188
1188
  toolId: contract.toolId,
1189
1189
  ...options.schemaOnly ? {
1190
1190
  inputSchema: contract.inputSchema,
@@ -1207,7 +1207,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1207
1207
  return 0;
1208
1208
  }
1209
1209
  if (options.contractJson) {
1210
- _chunkR2T4HQ64js.printCompactJson.call(void 0, {
1210
+ _chunkRQJORG4Fjs.printCompactJson.call(void 0, {
1211
1211
  ...toolContractJsonForDescribe(tool, toolId),
1212
1212
  ...modelDescription ? { modelOptions: modelDescription } : {},
1213
1213
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -1216,7 +1216,7 @@ async function getTool(toolId, options = {}, compatibilityMetadata) {
1216
1216
  }
1217
1217
  const emitJson = options.json === true;
1218
1218
  if (emitJson) {
1219
- _chunkR2T4HQ64js.printCompactJson.call(void 0, {
1219
+ _chunkRQJORG4Fjs.printCompactJson.call(void 0, {
1220
1220
  ...toolMetadataJsonForDescribe(tool, toolId),
1221
1221
  ...modelDescription ? { modelOptions: modelDescription } : {},
1222
1222
  ...inferenceQuote ? { inferenceQuote } : {}
@@ -2627,7 +2627,7 @@ function parseExecuteOptions(toolId, options, output) {
2627
2627
  outputFormat = normalizeOutputFormat(options.outputFormat);
2628
2628
  }
2629
2629
  if (options.idempotencyKey !== void 0) {
2630
- _chunkNPU4SMKTjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2630
+ _chunk3NL4REIKjs.validateExecutionIdempotencyKey.call(void 0, options.idempotencyKey);
2631
2631
  }
2632
2632
  if (options.recoveryTimeoutMs !== void 0) {
2633
2633
  const parsed = Number(options.recoveryTimeoutMs);
@@ -2938,20 +2938,20 @@ function buildToolExecuteRowArtifactEnvelope(input) {
2938
2938
  }
2939
2939
  async function executeTool(toolId, options) {
2940
2940
  const output = toolExecuteJsonOption(options.json);
2941
- const wantsJson = _chunkR2T4HQ64js.shouldEmitJson.call(void 0, output.requested);
2941
+ const wantsJson = _chunkRQJORG4Fjs.shouldEmitJson.call(void 0, output.requested);
2942
2942
  let parsed;
2943
2943
  try {
2944
2944
  parsed = parseExecuteOptions(toolId, options, output);
2945
2945
  } catch (error) {
2946
2946
  if (wantsJson) {
2947
- _chunkR2T4HQ64js.printJsonError.call(void 0, error);
2947
+ _chunkRQJORG4Fjs.printJsonError.call(void 0, error);
2948
2948
  } else {
2949
2949
  console.error(error instanceof Error ? error.message : String(error));
2950
2950
  }
2951
2951
  return error instanceof _chunk7P5AA3SNjs.DeeplineError && error.code === "IDEMPOTENCY_KEY_INVALID" ? 2 : 1;
2952
2952
  }
2953
2953
  const cliInvocationId = _nullishCoalesce(_chunkQJBJZVG6js.getToolExecuteInvocationId.call(void 0, ), () => ( _chunkQJBJZVG6js.beginToolExecuteCommand.call(void 0, )));
2954
- const client = new (0, _chunkNPU4SMKTjs.DeeplineClient)();
2954
+ const client = new (0, _chunk3NL4REIKjs.DeeplineClient)();
2955
2955
  let metadata;
2956
2956
  try {
2957
2957
  metadata = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0,
@@ -2966,7 +2966,7 @@ async function executeTool(toolId, options) {
2966
2966
  );
2967
2967
  if (play) {
2968
2968
  if (wantsJson) {
2969
- _chunkR2T4HQ64js.printJsonError.call(void 0,
2969
+ _chunkRQJORG4Fjs.printJsonError.call(void 0,
2970
2970
  new Error(playAliasToolErrorMessage(parsed.toolId, play))
2971
2971
  );
2972
2972
  } else {
@@ -2979,7 +2979,7 @@ async function executeTool(toolId, options) {
2979
2979
  }
2980
2980
  if (isPlayLikeTool(metadata)) {
2981
2981
  if (wantsJson) {
2982
- _chunkR2T4HQ64js.printJsonError.call(void 0,
2982
+ _chunkRQJORG4Fjs.printJsonError.call(void 0,
2983
2983
  new Error(
2984
2984
  playLikeToolExecuteErrorMessage(
2985
2985
  parsed.toolId,
@@ -3015,7 +3015,7 @@ async function executeTool(toolId, options) {
3015
3015
  responseIntent,
3016
3016
  ...idempotencyKey ? { idempotencyKey } : {},
3017
3017
  ...parsed.recoveryTimeoutMs !== void 0 ? { recoveryTimeoutMs: parsed.recoveryTimeoutMs } : {},
3018
- searchRef: _chunkM4UPRX3Mjs.recentSearchRef.call(void 0, ),
3018
+ searchRef: _chunkIH23RQXJjs.recentSearchRef.call(void 0, ),
3019
3019
  cliInvocationId,
3020
3020
  onResponseReceived: _chunkMX53GIOBjs.recordApiResponse
3021
3021
  }).catch((error) => {
@@ -3055,8 +3055,8 @@ async function executeTool(toolId, options) {
3055
3055
  );
3056
3056
  const executeExitCode = toolExecuteExitCode(baseEnvelope);
3057
3057
  const delivered = await _chunkQJBJZVG6js.runToolExecuteStage.call(void 0, "output delivery", () => {
3058
- if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && _chunkR2T4HQ64js.shouldEmitJson.call(void 0, ))) {
3059
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
3058
+ if (!parsed.outPath && (parsed.outputFormat === "json" || parsed.outputFormat === "auto" && _chunkRQJORG4Fjs.shouldEmitJson.call(void 0, ))) {
3059
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: true });
3060
3060
  return true;
3061
3061
  }
3062
3062
  if (parsed.outputFormat === "json_file") {
@@ -3064,7 +3064,7 @@ async function executeTool(toolId, options) {
3064
3064
  rawResponse,
3065
3065
  `payload_${parsed.toolId}`
3066
3066
  );
3067
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
3067
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0,
3068
3068
  {
3069
3069
  ...baseEnvelope,
3070
3070
  local: {
@@ -3086,7 +3086,7 @@ async function executeTool(toolId, options) {
3086
3086
  `${parsed.toolId} did not expose row-shaped output to write as CSV. ${inspection.inspectDescription} Run: ${inspection.inspect}`
3087
3087
  );
3088
3088
  if (wantsJson) {
3089
- _chunkR2T4HQ64js.printJsonError.call(void 0, error);
3089
+ _chunkRQJORG4Fjs.printJsonError.call(void 0, error);
3090
3090
  } else {
3091
3091
  console.error(error.message);
3092
3092
  }
@@ -3097,18 +3097,18 @@ async function executeTool(toolId, options) {
3097
3097
  rawResponse,
3098
3098
  `payload_${parsed.toolId}`
3099
3099
  );
3100
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
3100
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0,
3101
3101
  {
3102
3102
  ...baseEnvelope,
3103
3103
  local: {
3104
3104
  payload_file: jsonPath
3105
3105
  }
3106
3106
  },
3107
- { json: parsed.outputFormat === "csv_file" || _chunkR2T4HQ64js.shouldEmitJson.call(void 0, ) }
3107
+ { json: parsed.outputFormat === "csv_file" || _chunkRQJORG4Fjs.shouldEmitJson.call(void 0, ) }
3108
3108
  );
3109
3109
  return true;
3110
3110
  }
3111
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
3111
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0, baseEnvelope, { json: false });
3112
3112
  return true;
3113
3113
  }
3114
3114
  const rowOutput = _chunkNXDRDJ4Kjs.projectRowOutput.call(void 0, listConversion);
@@ -3132,7 +3132,7 @@ async function executeTool(toolId, options) {
3132
3132
  seededScript
3133
3133
  });
3134
3134
  if (parsed.outputFormat === "csv_file") {
3135
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
3135
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: true });
3136
3136
  return true;
3137
3137
  }
3138
3138
  if (parsed.outPath) {
@@ -3140,7 +3140,7 @@ async function executeTool(toolId, options) {
3140
3140
  toolId: parsed.toolId,
3141
3141
  idempotencyKey
3142
3142
  });
3143
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, materializedEnvelope, {
3143
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0, materializedEnvelope, {
3144
3144
  json: wantsJson,
3145
3145
  text: `Wrote ${csv.rowCount} row(s) to ${csv.path}
3146
3146
  inspect: ${inspection.inspect}
@@ -3149,7 +3149,7 @@ inspect: ${inspection.inspect}
3149
3149
  return true;
3150
3150
  }
3151
3151
  if (parsed.noPreview) {
3152
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
3152
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0,
3153
3153
  {
3154
3154
  ...materializedEnvelope,
3155
3155
  local: {
@@ -3157,12 +3157,12 @@ inspect: ${inspection.inspect}
3157
3157
  output_path: csv.path
3158
3158
  }
3159
3159
  },
3160
- { json: _chunkR2T4HQ64js.shouldEmitJson.call(void 0, ), text: `${csv.path}
3160
+ { json: _chunkRQJORG4Fjs.shouldEmitJson.call(void 0, ), text: `${csv.path}
3161
3161
  ` }
3162
3162
  );
3163
3163
  return true;
3164
3164
  }
3165
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, materializedEnvelope, { json: false });
3165
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0, materializedEnvelope, { json: false });
3166
3166
  return true;
3167
3167
  });
3168
3168
  if (delivered) {
@@ -1,17 +1,17 @@
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 _chunkXI5IMY45js = require('./chunk-XI5IMY45.js');
4
+ var _chunk427S6HR2js = require('./chunk-427S6HR2.js');
5
5
 
6
6
 
7
7
 
8
- var _chunk2UWRFDI4js = require('./chunk-2UWRFDI4.js');
8
+ var _chunk2OPNMVYNjs = require('./chunk-2OPNMVYN.js');
9
9
 
10
10
 
11
- var _chunkR2T4HQ64js = require('./chunk-R2T4HQ64.js');
11
+ var _chunkRQJORG4Fjs = require('./chunk-RQJORG4F.js');
12
12
 
13
13
 
14
- var _chunkJHPVZR6Fjs = require('./chunk-JHPVZR6F.js');
14
+ var _chunkQFD3VXQSjs = require('./chunk-QFD3VXQS.js');
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  var _child_process = require('child_process');
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
489
489
  }
490
490
  function resolveNpmGlobalPrefix(env) {
491
491
  try {
492
- const plan = _chunk2UWRFDI4js.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
492
+ const plan = _chunk2OPNMVYNjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
493
493
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
494
494
  encoding: "utf8",
495
495
  env,
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
545
545
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
546
546
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
547
547
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
548
- const npmVersion = options.npmVersion === void 0 ? _chunkXI5IMY45js.readNpmVersion.call(void 0, env) : options.npmVersion;
549
- const npmGlobalInstallFlags = _chunkXI5IMY45js.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
548
+ const npmVersion = options.npmVersion === void 0 ? _chunk427S6HR2js.readNpmVersion.call(void 0, env) : options.npmVersion;
549
+ const npmGlobalInstallFlags = _chunk427S6HR2js.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
550
550
  const args = installPrefix ? [
551
551
  "install",
552
552
  "-g",
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
556
556
  packageSpec
557
557
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
558
558
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
559
- _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkJHPVZR6Fjs.autoDetectBaseUrl.call(void 0, )
559
+ _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkQFD3VXQSjs.autoDetectBaseUrl.call(void 0, )
560
560
  );
561
561
  return {
562
562
  kind: "npm-global",
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
703
703
  function runCommand(command, args, env = process.env) {
704
704
  return new Promise((resolveResult) => {
705
705
  let output = "";
706
- const plan = _chunk2UWRFDI4js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
706
+ const plan = _chunk2OPNMVYNjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
707
707
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
708
708
  stdio: ["inherit", "pipe", "pipe"],
709
709
  shell: plan.shell,
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1079
1079
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1080
1080
  }
1081
1081
  async function runUpdateCommand(options, dependencies = {}) {
1082
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkJHPVZR6Fjs.autoDetectBaseUrl));
1082
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkQFD3VXQSjs.autoDetectBaseUrl));
1083
1083
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1084
1084
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1085
1085
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1086
1086
  const originalWrite = process.stdout.write.bind(process.stdout);
1087
1087
  process.stdout.write = (() => true);
1088
1088
  try {
1089
- const exitCode = await _chunk2UWRFDI4js.runSkillsCommand.call(void 0, { json: true });
1089
+ const exitCode = await _chunk2OPNMVYNjs.runSkillsCommand.call(void 0, { json: true });
1090
1090
  if (exitCode !== 0) {
1091
1091
  throw new Error(
1092
1092
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1157
1157
  ]
1158
1158
  };
1159
1159
  if (options.json && !options.executeWithJson) {
1160
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1160
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1161
1161
  return 0;
1162
1162
  }
1163
1163
  if (options.printCommand) {
1164
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
1164
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0,
1165
1165
  {
1166
1166
  ...plan,
1167
1167
  render: {
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1174
1174
  return 0;
1175
1175
  }
1176
1176
  if (plan.kind === "source" || plan.kind === "homebrew") {
1177
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1177
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1178
1178
  return 0;
1179
1179
  }
1180
1180
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills --json
1204
1204
  );
1205
1205
  }
1206
1206
  if (options.executeWithJson && options.json) {
1207
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
1207
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0,
1208
1208
  {
1209
1209
  ok: true,
1210
1210
  pinnedVersion
@@ -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 _chunkR2T4HQ64js = require('./chunk-R2T4HQ64.js');
4
+ var _chunkRQJORG4Fjs = require('./chunk-RQJORG4F.js');
5
5
 
6
6
 
7
- var _chunkJHPVZR6Fjs = require('./chunk-JHPVZR6F.js');
7
+ var _chunkQFD3VXQSjs = require('./chunk-QFD3VXQS.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 = _chunkJHPVZR6Fjs.agentSessionIdFromEnvironment.call(void 0, );
142
+ const sessionId = _chunkQFD3VXQSjs.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 } = _chunkR2T4HQ64js.getAuthedHttpClient.call(void 0, );
451
+ const { http } = _chunkRQJORG4Fjs.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
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
484
+ _chunkRQJORG4Fjs.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
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
516
+ _chunkRQJORG4Fjs.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
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
566
+ _chunkRQJORG4Fjs.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
- _chunkR2T4HQ64js.printCommandEnvelope.call(void 0,
674
+ _chunkRQJORG4Fjs.printCommandEnvelope.call(void 0,
675
675
  {
676
676
  ok: true,
677
677
  file: outputPath,
@@ -15,7 +15,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkJHPVZR6Fjs = require('./chunk-JHPVZR6F.js');
18
+ var _chunkQFD3VXQSjs = require('./chunk-QFD3VXQS.js');
19
19
 
20
20
 
21
21
 
@@ -167,7 +167,7 @@ async function queryCustomerDatabase(http, input) {
167
167
  if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _2 => _2.code, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
168
168
  // lost connections and explicitly unknown transaction resolution.
169
169
  /^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
170
- throw new (0, _chunkJHPVZR6Fjs.CustomerDbQueryOutcomeUnknownError)(
170
+ throw new (0, _chunkQFD3VXQSjs.CustomerDbQueryOutcomeUnknownError)(
171
171
  error,
172
172
  plan.request.body.operation_key
173
173
  );
@@ -175,7 +175,7 @@ async function queryCustomerDatabase(http, input) {
175
175
  throw error;
176
176
  }
177
177
  if (!result || typeof result !== "object" || Array.isArray(result) || typeof result.command !== "string" || !Array.isArray(result.columns) || !Array.isArray(result.rows) || typeof result.truncated !== "boolean" || result.row_count !== null && (!Number.isSafeInteger(result.row_count) || result.row_count < 0) || !Number.isSafeInteger(result.row_count_returned) || result.row_count_returned < 0) {
178
- throw new (0, _chunkJHPVZR6Fjs.CustomerDbQueryOutcomeUnknownError)(
178
+ throw new (0, _chunkQFD3VXQSjs.CustomerDbQueryOutcomeUnknownError)(
179
179
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
180
180
  "The SQL response did not contain a valid result.",
181
181
  200,
@@ -186,7 +186,7 @@ async function queryCustomerDatabase(http, input) {
186
186
  }
187
187
  const operation = result.operation;
188
188
  if (input.operationKey !== void 0 && (!operation || operation.operation_key !== input.operationKey || !Number.isSafeInteger(operation.completed_at_ms) || operation.completed_at_ms < 0 || !["executed", "operation_recovery"].includes(operation.source))) {
189
- throw new (0, _chunkJHPVZR6Fjs.CustomerDbQueryOutcomeUnknownError)(
189
+ throw new (0, _chunkQFD3VXQSjs.CustomerDbQueryOutcomeUnknownError)(
190
190
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
191
191
  "The server did not confirm the original atomic SQL operation.",
192
192
  200,
@@ -2910,8 +2910,8 @@ function runtimeSelectionHeaders(runtime) {
2910
2910
  }
2911
2911
  const receivers = _optionalChain([process, 'access', _104 => _104.env, 'access', _105 => _105.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107()]);
2912
2912
  return {
2913
- [_chunkJHPVZR6Fjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2914
- ...receivers ? { [_chunkJHPVZR6Fjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2913
+ [_chunkQFD3VXQSjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2914
+ ...receivers ? { [_chunkQFD3VXQSjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2915
2915
  };
2916
2916
  }
2917
2917
  function isolatedCiRuntimeEventReadHeaders() {
@@ -2927,7 +2927,7 @@ function isolatedCiRuntimeEventReadHeaders() {
2927
2927
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
2928
2928
  );
2929
2929
  }
2930
- return { [_chunkJHPVZR6Fjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2930
+ return { [_chunkQFD3VXQSjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2931
2931
  }
2932
2932
  function normalizeTestPolicyOverrides(value, source) {
2933
2933
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -3217,8 +3217,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
3217
3217
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3218
3218
  */
3219
3219
  constructor(options) {
3220
- this.config = _chunkJHPVZR6Fjs.resolveConfig.call(void 0, options);
3221
- this.http = new (0, _chunkJHPVZR6Fjs.HttpClient)(this.config);
3220
+ this.config = _chunkQFD3VXQSjs.resolveConfig.call(void 0, options);
3221
+ this.http = new (0, _chunkQFD3VXQSjs.HttpClient)(this.config);
3222
3222
  this.toolCalls = new ToolCalls(
3223
3223
  this.http,
3224
3224
  this.config.timeout,
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk2UWRFDI4js = require('./chunk-2UWRFDI4.js');
3
+ var _chunk2OPNMVYNjs = require('./chunk-2OPNMVYN.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunk2UWRFDI4js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunk2OPNMVYNjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,