@probelabs/visor 0.1.184-ee → 0.1.185-ee

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.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env node
2
- process.env.VISOR_VERSION = '0.1.184';
2
+ process.env.VISOR_VERSION = '0.1.185';
3
3
  process.env.PROBE_VERSION = '0.6.0-rc311';
4
- process.env.VISOR_COMMIT_SHA = 'fa523b7486d2550f30d84ebab4c46da43fafecaf';
5
- process.env.VISOR_COMMIT_SHORT = 'fa523b7';
4
+ process.env.VISOR_COMMIT_SHA = 'f9abecd13dcbb0020e419e5dd40b6bd276eee07c';
5
+ process.env.VISOR_COMMIT_SHORT = 'f9abecd';
6
6
  /******/ (() => { // webpackBootstrap
7
7
  /******/ var __webpack_modules__ = ({
8
8
 
@@ -341786,29 +341786,30 @@ class McpServerRunner {
341786
341786
  return 'No response from workflow.';
341787
341787
  // The output history (reviewSummary.history) contains outputs keyed by step ID.
341788
341788
  // For assistant workflows the steps are e.g. chat.route-intent, chat.build-config,
341789
- // chat.generate-response. The final AI response is the LAST step that has a .text
341790
- // field with substantial content (not a short routing label).
341789
+ // chat.generate-response. The final AI response is the LAST step that produced
341790
+ // a text output not the longest, since routing/classification steps can produce
341791
+ // longer text than the actual response.
341791
341792
  const history = result?.reviewSummary?.history;
341792
341793
  if (history && typeof history === 'object') {
341793
- // Collect all candidate text outputs, keeping the last (deepest) one
341794
- let bestText = '';
341794
+ // Pick the last step's text output (iteration order preserves insertion order)
341795
+ let lastText = '';
341795
341796
  for (const [, outputs] of Object.entries(history)) {
341796
341797
  if (!Array.isArray(outputs))
341797
341798
  continue;
341798
341799
  for (const item of outputs) {
341799
341800
  const text = item?.text ?? item?.output?.text;
341800
- if (typeof text === 'string' && text.length > bestText.length) {
341801
- bestText = text;
341801
+ if (typeof text === 'string' && text.trim().length > 0) {
341802
+ lastText = text;
341802
341803
  }
341803
341804
  }
341804
341805
  }
341805
- if (bestText)
341806
- return bestText;
341806
+ if (lastText)
341807
+ return lastText;
341807
341808
  }
341808
- // Grouped results from execution statistics
341809
+ // Grouped results from execution statistics — pick the last text output
341809
341810
  const grouped = result?.executionStatistics?.groupedResults;
341810
341811
  if (grouped && typeof grouped === 'object') {
341811
- let bestText = '';
341812
+ let lastText = '';
341812
341813
  for (const checkResults of Object.values(grouped)) {
341813
341814
  if (!Array.isArray(checkResults))
341814
341815
  continue;
@@ -341816,13 +341817,13 @@ class McpServerRunner {
341816
341817
  const text = cr?.output?.text ??
341817
341818
  (typeof cr?.output === 'string' ? cr.output : null) ??
341818
341819
  (typeof cr?.content === 'string' && cr.content.trim() ? cr.content : null);
341819
- if (typeof text === 'string' && text.length > bestText.length) {
341820
- bestText = text;
341820
+ if (typeof text === 'string' && text.trim().length > 0) {
341821
+ lastText = text;
341821
341822
  }
341822
341823
  }
341823
341824
  }
341824
- if (bestText)
341825
- return bestText;
341825
+ if (lastText)
341826
+ return lastText;
341826
341827
  }
341827
341828
  // Direct properties on result
341828
341829
  if (result?.text)
@@ -1 +1 @@
1
- {"version":3,"file":"mcp-server-runner.d.ts","sourceRoot":"","sources":["file:///home/runner/work/visor/visor/src/runners/mcp-server-runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AACvC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AAC9D,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,mCAAmC,CAAC;AAWrF,MAAM,WAAW,kBAAkB;IACjC,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,YAAY,CAAC,EAA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