@probelabs/visor 0.1.57 → 0.1.59
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"","sourceRoot":"","sources":["file:///home/runner/work/visor/visor/src/ai-review-service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAE9C,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AACvC,OAAO,EAAE,aAAa,EAAe,MAAM,YAAY,CAAC;AAWxD,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,QAAQ,GAAG,WAAW,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,GAAG,aAAa,CAAC;IAClF,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC,CAAC;CACzD;AAED,MAAM,WAAW,WAAW;IAC1B,gCAAgC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,uCAAuC;IACvC,WAAW,EAAE,MAAM,CAAC;IACpB,gDAAgD;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,YAAY,EAAE,MAAM,CAAC;IACrB,sCAAsC;IACtC,cAAc,EAAE,MAAM,CAAC;IACvB,kCAAkC;IAClC,YAAY,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,cAAc,EAAE,MAAM,CAAC;IACvB,6BAA6B;IAC7B,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;IAClB,qCAAqC;IACrC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AM,EAAE,CAAC;QAAC,OAAO,EAAE,MAAM,EAAE,CAAA;KAAE;IAgBnF;;OAEG;IACG,aAAa,IAAI,OAAO,CAC5B,KAAK,CAAC;QACJ,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,SAAS,EAAE,OAAO,CAAC;QACnB,YAAY,EAAE,MAAM,EAAE,CAAC;KACxB,CAAC,CACH;IAID;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAsDzB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAgCzB;;OAEG;IACH,OAAO,CAAC,mBAAmB;IA+B3B,OAAO,CAAC,cAAc;IAkBtB;;OAEG;IACG,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;IASzC;;OAEG;IACG,yBAAyB,CAC7B,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,aAAa,EAC5B,MAAM,CAAC,EAAE,OAAO,gBAAgB,EAAE,WAAW,GAC5C,OAAO,CAAC,sBAAsB,EAAE,CAAC;IA+EpC;;OAEG;IACG,mBAAmB,IAAI,OAAO,CAAC;QACnC,eAAe,EAAE,OAAO,CAAC;QACzB,UAAU,EAAE,OAAO,CAAC;QACpB,MAAM,EAAE,MAAM,CAAC;QACf,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IAmBF;;OAEG;YACW,sBAAsB;IAiEpC;;OAEG;YACW,4BAA4B;IA4B1C;;OAEG;YACW,+BAA+B;IA2E7C;;OAEG;YACW,6BAA6B;IAyB3C;;;OAGG;IACH,OAAO,CAAC,mBAAmB;IA4F3B;;OAEG;IACH,OAAO,CAAC,mBAAmB;CAa5B"}
|
|
@@ -40,6 +40,21 @@ export declare class DependencyResolver {
|
|
|
40
40
|
valid: boolean;
|
|
41
41
|
errors: string[];
|
|
42
42
|
};
|
|
43
|
+
/**
|
|
44
|
+
* Get all transitive dependencies (ancestors) for a given check
|
|
45
|
+
* This returns all checks that must complete before the given check can run,
|
|
46
|
+
* not just the direct dependencies.
|
|
47
|
+
*
|
|
48
|
+
* For example, if A -> B -> C, then:
|
|
49
|
+
* - getAllDependencies(C) returns [A, B]
|
|
50
|
+
* - getAllDependencies(B) returns [A]
|
|
51
|
+
* - getAllDependencies(A) returns []
|
|
52
|
+
*
|
|
53
|
+
* @param checkId The check to find dependencies for
|
|
54
|
+
* @param nodes The dependency graph nodes
|
|
55
|
+
* @returns Array of all transitive dependency IDs
|
|
56
|
+
*/
|
|
57
|
+
static getAllDependencies(checkId: string, nodes: Map<string, CheckNode>): string[];
|
|
43
58
|
/**
|
|
44
59
|
* Get execution statistics for debugging
|
|
45
60
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"","sourceRoot":"","sources":["file:///home/runner/work/visor/visor/src/dependency-resolver.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,UAAU,EAAE,MAAM,EAAE,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,sCAAsC;IACtC,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,+EAA+E;IAC/E,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAC9B,cAAc,EAAE,cAAc,EAAE,CAAC;IACjC,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,qBAAa,kBAAkB;IAC7B;;OAEG;IACH,MAAM,CAAC,oBAAoB,CAAC,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GAAG,eAAe;IA8CzF;;OAEG;IACH,OAAO,CAAC,MAAM,CAAC,YAAY;IA6C3B;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAs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;;;OAGG;IACH,OAAO,CAAC,MAAM,CAAC,eAAe;IAsC9B;;OAEG;IACH,MAAM,CAAC,oBAAoB,CACzB,QAAQ,EAAE,MAAM,EAAE,EAClB,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,GACrC;QAAE,KAAK,EAAE,OAAO,CAAC;QAAC,MAAM,EAAE,MAAM,EAAE,CAAA;KAAE;IAuBvC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,GAAG,MAAM,EAAE;IA0BnF;;OAEG;IACH,MAAM,CAAC,iBAAiB,CAAC,KAAK,EAAE,eAAe,GAAG;QAChD,WAAW,EAAE,MAAM,CAAC;QACpB,cAAc,EAAE,MAAM,CAAC;QACvB,cAAc,EAAE,MAAM,CAAC;QACvB,kBAAkB,EAAE,MAAM,CAAC;QAC3B,sBAAsB,EAAE,MAAM,CAAC;KAChC;CAiBF"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
process.env.VISOR_VERSION = '0.1.
|
|
2
|
+
process.env.VISOR_VERSION = '0.1.59';
|
|
3
3
|
/******/ (() => { // webpackBootstrap
|
|
4
4
|
/******/ var __webpack_modules__ = ({
|
|
5
5
|
|
|
@@ -94765,6 +94765,29 @@ ${prInfo.fullDiff ? this.escapeXml(prInfo.fullDiff) : ''}
|
|
|
94765
94765
|
}
|
|
94766
94766
|
}
|
|
94767
94767
|
}
|
|
94768
|
+
// Check if this is a custom schema (free-form data)
|
|
94769
|
+
// Custom schemas are:
|
|
94770
|
+
// 1. Inline schemas (effectiveSchema === 'custom')
|
|
94771
|
+
// 2. File-based custom schemas (starts with ./ or contains .json)
|
|
94772
|
+
// 3. Any schema that is NOT 'code-review' or other built-in schemas
|
|
94773
|
+
const isCustomSchema = _schema === 'custom' ||
|
|
94774
|
+
(_schema && (_schema.startsWith('./') || _schema.endsWith('.json'))) ||
|
|
94775
|
+
(_schema && _schema !== 'code-review' && !_schema.includes('output/'));
|
|
94776
|
+
if (isCustomSchema) {
|
|
94777
|
+
// For custom schemas, preserve ALL fields from the parsed JSON
|
|
94778
|
+
// Don't force the response into the standard ReviewSummary format
|
|
94779
|
+
log('📋 Custom schema detected - preserving all fields from parsed JSON');
|
|
94780
|
+
log(`📊 Schema: ${_schema}`);
|
|
94781
|
+
log(`📊 Custom schema keys: ${Object.keys(reviewData).join(', ')}`);
|
|
94782
|
+
// Return the full parsed data as the output, with an empty issues array
|
|
94783
|
+
// This allows downstream checks to access all custom fields via outputs
|
|
94784
|
+
const result = {
|
|
94785
|
+
issues: [], // Empty array for custom schemas (no code review issues)
|
|
94786
|
+
output: reviewData, // Preserve ALL custom schema fields here
|
|
94787
|
+
};
|
|
94788
|
+
log('✅ Successfully created ReviewSummary with custom schema output');
|
|
94789
|
+
return result;
|
|
94790
|
+
}
|
|
94768
94791
|
// Standard code-review schema processing
|
|
94769
94792
|
log('🔍 Validating parsed review data...');
|
|
94770
94793
|
log(`📊 Overall score: ${0}`);
|
|
@@ -95736,6 +95759,11 @@ class CheckExecutionEngine {
|
|
|
95736
95759
|
// Note: We'll get the provider dynamically per check, not a single one for all
|
|
95737
95760
|
const sessionIds = new Map(); // checkName -> sessionId
|
|
95738
95761
|
let shouldStopExecution = false;
|
|
95762
|
+
let completedChecksCount = 0;
|
|
95763
|
+
const totalChecksCount = stats.totalChecks;
|
|
95764
|
+
let skippedChecksCount = 0;
|
|
95765
|
+
let failedChecksCount = 0;
|
|
95766
|
+
const executionStartTime = Date.now();
|
|
95739
95767
|
for (let levelIndex = 0; levelIndex < dependencyGraph.executionOrder.length && !shouldStopExecution; levelIndex++) {
|
|
95740
95768
|
const executionGroup = dependencyGraph.executionOrder[levelIndex];
|
|
95741
95769
|
// Check if any checks in this level require session reuse - if so, force sequential execution
|
|
@@ -95762,6 +95790,9 @@ class CheckExecutionEngine {
|
|
|
95762
95790
|
result: null,
|
|
95763
95791
|
};
|
|
95764
95792
|
}
|
|
95793
|
+
const checkStartTime = Date.now();
|
|
95794
|
+
completedChecksCount++;
|
|
95795
|
+
logger_1.logger.step(`Running check: ${checkName} [${completedChecksCount}/${totalChecksCount}]`);
|
|
95765
95796
|
try {
|
|
95766
95797
|
if (debug) {
|
|
95767
95798
|
log(`🔧 Debug: Starting check: ${checkName} at level ${executionGroup.level}`);
|
|
@@ -95777,6 +95808,8 @@ class CheckExecutionEngine {
|
|
|
95777
95808
|
previousResults: results,
|
|
95778
95809
|
});
|
|
95779
95810
|
if (!shouldRun) {
|
|
95811
|
+
skippedChecksCount++;
|
|
95812
|
+
logger_1.logger.info(`⏭ Skipping check: ${checkName} (if condition evaluated to false)`);
|
|
95780
95813
|
if (debug) {
|
|
95781
95814
|
log(`🔧 Debug: Skipping check '${checkName}' - if condition evaluated to false`);
|
|
95782
95815
|
}
|
|
@@ -95786,6 +95819,7 @@ class CheckExecutionEngine {
|
|
|
95786
95819
|
result: {
|
|
95787
95820
|
issues: [],
|
|
95788
95821
|
},
|
|
95822
|
+
skipped: true,
|
|
95789
95823
|
};
|
|
95790
95824
|
}
|
|
95791
95825
|
}
|
|
@@ -95816,15 +95850,25 @@ class CheckExecutionEngine {
|
|
|
95816
95850
|
...(checkConfig.ai || {}),
|
|
95817
95851
|
},
|
|
95818
95852
|
};
|
|
95819
|
-
// Pass results from dependencies
|
|
95853
|
+
// Pass results from ALL transitive dependencies (not just direct ones)
|
|
95854
|
+
// This ensures the "outputs" variable has access to all ancestor check results
|
|
95820
95855
|
const dependencyResults = new Map();
|
|
95821
95856
|
let isForEachDependent = false;
|
|
95822
95857
|
let forEachItems = [];
|
|
95823
95858
|
let forEachParentName;
|
|
95824
|
-
|
|
95859
|
+
// Get all transitive dependencies (ancestors) for this check
|
|
95860
|
+
const allDependencies = dependency_resolver_1.DependencyResolver.getAllDependencies(checkName, dependencyGraph.nodes);
|
|
95861
|
+
// Include results from ALL dependencies (direct and transitive)
|
|
95862
|
+
for (const depId of allDependencies) {
|
|
95825
95863
|
if (results.has(depId)) {
|
|
95826
95864
|
const depResult = results.get(depId);
|
|
95827
95865
|
dependencyResults.set(depId, depResult);
|
|
95866
|
+
}
|
|
95867
|
+
}
|
|
95868
|
+
// Check direct dependencies for forEach behavior
|
|
95869
|
+
for (const depId of checkConfig.depends_on || []) {
|
|
95870
|
+
if (results.has(depId)) {
|
|
95871
|
+
const depResult = results.get(depId);
|
|
95828
95872
|
// Check if this dependency has forEach enabled
|
|
95829
95873
|
const depForEachResult = depResult;
|
|
95830
95874
|
if (depForEachResult.isForEach && Array.isArray(depForEachResult.forEachItems)) {
|
|
@@ -95964,6 +96008,14 @@ class CheckExecutionEngine {
|
|
|
95964
96008
|
...finalResult,
|
|
95965
96009
|
issues: enrichedIssues,
|
|
95966
96010
|
};
|
|
96011
|
+
const checkDuration = ((Date.now() - checkStartTime) / 1000).toFixed(1);
|
|
96012
|
+
const issueCount = enrichedIssues.length;
|
|
96013
|
+
if (issueCount > 0) {
|
|
96014
|
+
logger_1.logger.success(`Check complete: ${checkName} (${checkDuration}s) - ${issueCount} issue${issueCount === 1 ? '' : 's'} found`);
|
|
96015
|
+
}
|
|
96016
|
+
else {
|
|
96017
|
+
logger_1.logger.success(`Check complete: ${checkName} (${checkDuration}s)`);
|
|
96018
|
+
}
|
|
95967
96019
|
return {
|
|
95968
96020
|
checkName,
|
|
95969
96021
|
error: null,
|
|
@@ -95971,7 +96023,10 @@ class CheckExecutionEngine {
|
|
|
95971
96023
|
};
|
|
95972
96024
|
}
|
|
95973
96025
|
catch (error) {
|
|
96026
|
+
failedChecksCount++;
|
|
95974
96027
|
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
96028
|
+
const checkDuration = ((Date.now() - checkStartTime) / 1000).toFixed(1);
|
|
96029
|
+
logger_1.logger.error(`✖ Check failed: ${checkName} (${checkDuration}s) - ${errorMessage}`);
|
|
95975
96030
|
if (debug) {
|
|
95976
96031
|
log(`🔧 Debug: Error in check ${checkName}: ${errorMessage}`);
|
|
95977
96032
|
}
|
|
@@ -95990,6 +96045,13 @@ class CheckExecutionEngine {
|
|
|
95990
96045
|
const result = levelResults[i];
|
|
95991
96046
|
const checkConfig = config.checks[checkName];
|
|
95992
96047
|
if (result.status === 'fulfilled' && result.value.result && !result.value.error) {
|
|
96048
|
+
// Skip storing results for skipped checks (they should not appear in outputs)
|
|
96049
|
+
if (result.value.skipped) {
|
|
96050
|
+
if (debug) {
|
|
96051
|
+
log(`🔧 Debug: Not storing result for skipped check "${checkName}"`);
|
|
96052
|
+
}
|
|
96053
|
+
continue;
|
|
96054
|
+
}
|
|
95993
96055
|
const reviewResult = result.value.result;
|
|
95994
96056
|
// Handle forEach logic - process array outputs
|
|
95995
96057
|
const reviewSummaryWithOutput = reviewResult;
|
|
@@ -96081,12 +96143,28 @@ class CheckExecutionEngine {
|
|
|
96081
96143
|
}
|
|
96082
96144
|
}
|
|
96083
96145
|
}
|
|
96084
|
-
// Log final execution
|
|
96085
|
-
|
|
96086
|
-
|
|
96146
|
+
// Log final execution summary
|
|
96147
|
+
const executionDuration = ((Date.now() - executionStartTime) / 1000).toFixed(1);
|
|
96148
|
+
const successfulChecks = totalChecksCount - failedChecksCount - skippedChecksCount;
|
|
96149
|
+
logger_1.logger.info('');
|
|
96150
|
+
logger_1.logger.step(`Execution complete (${executionDuration}s)`);
|
|
96151
|
+
logger_1.logger.info(` ✔ Successful: ${successfulChecks}/${totalChecksCount}`);
|
|
96152
|
+
if (skippedChecksCount > 0) {
|
|
96153
|
+
logger_1.logger.info(` ⏭ Skipped: ${skippedChecksCount}`);
|
|
96087
96154
|
}
|
|
96088
|
-
|
|
96089
|
-
|
|
96155
|
+
if (failedChecksCount > 0) {
|
|
96156
|
+
logger_1.logger.info(` ✖ Failed: ${failedChecksCount}`);
|
|
96157
|
+
}
|
|
96158
|
+
if (shouldStopExecution) {
|
|
96159
|
+
logger_1.logger.warn(` ⚠️ Execution stopped early due to fail-fast`);
|
|
96160
|
+
}
|
|
96161
|
+
if (debug) {
|
|
96162
|
+
if (shouldStopExecution) {
|
|
96163
|
+
log(`🛑 Execution stopped early due to fail-fast after processing ${results.size} of ${checks.length} checks`);
|
|
96164
|
+
}
|
|
96165
|
+
else {
|
|
96166
|
+
log(`✅ Dependency-aware execution completed successfully for all ${results.size} checks`);
|
|
96167
|
+
}
|
|
96090
96168
|
}
|
|
96091
96169
|
// Cleanup sessions after execution
|
|
96092
96170
|
if (sessionIds.size > 0 && debug) {
|
|
@@ -98687,6 +98765,41 @@ class DependencyResolver {
|
|
|
98687
98765
|
errors,
|
|
98688
98766
|
};
|
|
98689
98767
|
}
|
|
98768
|
+
/**
|
|
98769
|
+
* Get all transitive dependencies (ancestors) for a given check
|
|
98770
|
+
* This returns all checks that must complete before the given check can run,
|
|
98771
|
+
* not just the direct dependencies.
|
|
98772
|
+
*
|
|
98773
|
+
* For example, if A -> B -> C, then:
|
|
98774
|
+
* - getAllDependencies(C) returns [A, B]
|
|
98775
|
+
* - getAllDependencies(B) returns [A]
|
|
98776
|
+
* - getAllDependencies(A) returns []
|
|
98777
|
+
*
|
|
98778
|
+
* @param checkId The check to find dependencies for
|
|
98779
|
+
* @param nodes The dependency graph nodes
|
|
98780
|
+
* @returns Array of all transitive dependency IDs
|
|
98781
|
+
*/
|
|
98782
|
+
static getAllDependencies(checkId, nodes) {
|
|
98783
|
+
const allDeps = new Set();
|
|
98784
|
+
const visited = new Set();
|
|
98785
|
+
const collectDependencies = (currentId) => {
|
|
98786
|
+
if (visited.has(currentId)) {
|
|
98787
|
+
return;
|
|
98788
|
+
}
|
|
98789
|
+
visited.add(currentId);
|
|
98790
|
+
const node = nodes.get(currentId);
|
|
98791
|
+
if (!node) {
|
|
98792
|
+
return;
|
|
98793
|
+
}
|
|
98794
|
+
// Add direct dependencies and recurse
|
|
98795
|
+
for (const depId of node.dependencies) {
|
|
98796
|
+
allDeps.add(depId);
|
|
98797
|
+
collectDependencies(depId);
|
|
98798
|
+
}
|
|
98799
|
+
};
|
|
98800
|
+
collectDependencies(checkId);
|
|
98801
|
+
return Array.from(allDeps);
|
|
98802
|
+
}
|
|
98690
98803
|
/**
|
|
98691
98804
|
* Get execution statistics for debugging
|
|
98692
98805
|
*/
|
|
@@ -126706,9 +126819,10 @@ function parseXmlToolCall(xmlString, validTools = DEFAULT_VALID_TOOLS) {
|
|
|
126706
126819
|
if (openIndex === -1) {
|
|
126707
126820
|
continue;
|
|
126708
126821
|
}
|
|
126709
|
-
|
|
126822
|
+
let closeIndex = xmlString.indexOf(closeTag, openIndex + openTag.length);
|
|
126823
|
+
let hasClosingTag = closeIndex !== -1;
|
|
126710
126824
|
if (closeIndex === -1) {
|
|
126711
|
-
|
|
126825
|
+
closeIndex = xmlString.length;
|
|
126712
126826
|
}
|
|
126713
126827
|
const innerContent = xmlString.substring(
|
|
126714
126828
|
openIndex + openTag.length,
|
|
@@ -126750,9 +126864,17 @@ function parseXmlToolCall(xmlString, validTools = DEFAULT_VALID_TOOLS) {
|
|
|
126750
126864
|
if (paramOpenIndex === -1) {
|
|
126751
126865
|
continue;
|
|
126752
126866
|
}
|
|
126753
|
-
|
|
126867
|
+
let paramCloseIndex = innerContent.indexOf(paramCloseTag, paramOpenIndex + paramOpenTag.length);
|
|
126754
126868
|
if (paramCloseIndex === -1) {
|
|
126755
|
-
|
|
126869
|
+
let nextTagIndex = innerContent.length;
|
|
126870
|
+
for (const nextParam of commonParams3) {
|
|
126871
|
+
const nextOpenTag = `<${nextParam}>`;
|
|
126872
|
+
const nextIndex = innerContent.indexOf(nextOpenTag, paramOpenIndex + paramOpenTag.length);
|
|
126873
|
+
if (nextIndex !== -1 && nextIndex < nextTagIndex) {
|
|
126874
|
+
nextTagIndex = nextIndex;
|
|
126875
|
+
}
|
|
126876
|
+
}
|
|
126877
|
+
paramCloseIndex = nextTagIndex;
|
|
126756
126878
|
}
|
|
126757
126879
|
let paramValue = innerContent.substring(
|
|
126758
126880
|
paramOpenIndex + paramOpenTag.length,
|
|
@@ -139314,9 +139436,10 @@ var init_ProtocolLib = __esm({
|
|
|
139314
139436
|
return { errorSchema, errorMetadata };
|
|
139315
139437
|
} catch (e3) {
|
|
139316
139438
|
dataObject.message = dataObject.message ?? dataObject.Message ?? "UnknownError";
|
|
139317
|
-
const
|
|
139439
|
+
const synthetic = TypeRegistry.for("smithy.ts.sdk.synthetic." + namespace);
|
|
139440
|
+
const baseExceptionSchema = synthetic.getBaseException();
|
|
139318
139441
|
if (baseExceptionSchema) {
|
|
139319
|
-
const ErrorCtor = baseExceptionSchema
|
|
139442
|
+
const ErrorCtor = synthetic.getErrorCtor(baseExceptionSchema) ?? Error;
|
|
139320
139443
|
throw Object.assign(new ErrorCtor({ name: errorName }), errorMetadata, dataObject);
|
|
139321
139444
|
}
|
|
139322
139445
|
throw Object.assign(new Error(errorName), errorMetadata, dataObject);
|
|
@@ -139383,7 +139506,8 @@ var init_AwsSmithyRpcV2CborProtocol = __esm({
|
|
|
139383
139506
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorName, this.options.defaultNamespace, response, dataObject, metadata);
|
|
139384
139507
|
const ns = NormalizedSchema.of(errorSchema);
|
|
139385
139508
|
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
139386
|
-
const
|
|
139509
|
+
const ErrorCtor = TypeRegistry.for(errorSchema.namespace).getErrorCtor(errorSchema) ?? Error;
|
|
139510
|
+
const exception = new ErrorCtor(message);
|
|
139387
139511
|
const output = {};
|
|
139388
139512
|
for (const [name14, member] of ns.structIterator()) {
|
|
139389
139513
|
output[name14] = this.deserializer.readValue(member, dataObject[name14]);
|
|
@@ -140925,7 +141049,8 @@ var init_AwsJsonRpcProtocol = __esm({
|
|
|
140925
141049
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
|
|
140926
141050
|
const ns = NormalizedSchema.of(errorSchema);
|
|
140927
141051
|
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
140928
|
-
const
|
|
141052
|
+
const ErrorCtor = TypeRegistry.for(errorSchema.namespace).getErrorCtor(errorSchema) ?? Error;
|
|
141053
|
+
const exception = new ErrorCtor(message);
|
|
140929
141054
|
const output = {};
|
|
140930
141055
|
for (const [name14, member] of ns.structIterator()) {
|
|
140931
141056
|
const target = member.getMergedTraits().jsonName ?? name14;
|
|
@@ -141054,7 +141179,8 @@ var init_AwsRestJsonProtocol = __esm({
|
|
|
141054
141179
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
|
|
141055
141180
|
const ns = NormalizedSchema.of(errorSchema);
|
|
141056
141181
|
const message = dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
141057
|
-
const
|
|
141182
|
+
const ErrorCtor = TypeRegistry.for(errorSchema.namespace).getErrorCtor(errorSchema) ?? Error;
|
|
141183
|
+
const exception = new ErrorCtor(message);
|
|
141058
141184
|
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
141059
141185
|
const output = {};
|
|
141060
141186
|
for (const [name14, member] of ns.structIterator()) {
|
|
@@ -142466,7 +142592,8 @@ var init_AwsQueryProtocol = __esm({
|
|
|
142466
142592
|
};
|
|
142467
142593
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, errorData, metadata, (registry, errorName) => registry.find((schema) => NormalizedSchema.of(schema).getMergedTraits().awsQueryError?.[0] === errorName));
|
|
142468
142594
|
const ns = NormalizedSchema.of(errorSchema);
|
|
142469
|
-
const
|
|
142595
|
+
const ErrorCtor = TypeRegistry.for(errorSchema.namespace).getErrorCtor(errorSchema) ?? Error;
|
|
142596
|
+
const exception = new ErrorCtor(message);
|
|
142470
142597
|
const output = {
|
|
142471
142598
|
Error: errorData.Error
|
|
142472
142599
|
};
|
|
@@ -142928,7 +143055,8 @@ var init_AwsRestXmlProtocol = __esm({
|
|
|
142928
143055
|
const { errorSchema, errorMetadata } = await this.mixin.getErrorSchemaOrThrowBaseException(errorIdentifier, this.options.defaultNamespace, response, dataObject, metadata);
|
|
142929
143056
|
const ns = NormalizedSchema.of(errorSchema);
|
|
142930
143057
|
const message = dataObject.Error?.message ?? dataObject.Error?.Message ?? dataObject.message ?? dataObject.Message ?? "Unknown";
|
|
142931
|
-
const
|
|
143058
|
+
const ErrorCtor = TypeRegistry.for(errorSchema.namespace).getErrorCtor(errorSchema) ?? Error;
|
|
143059
|
+
const exception = new ErrorCtor(message);
|
|
142932
143060
|
await this.deserializeHttpMessage(errorSchema, context, response, dataObject);
|
|
142933
143061
|
const output = {};
|
|
142934
143062
|
for (const [name14, member] of ns.structIterator()) {
|
|
@@ -146879,7 +147007,7 @@ var require_package = __commonJS({
|
|
|
146879
147007
|
module2.exports = {
|
|
146880
147008
|
name: "@aws-sdk/client-bedrock-runtime",
|
|
146881
147009
|
description: "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
|
|
146882
|
-
version: "3.
|
|
147010
|
+
version: "3.899.0",
|
|
146883
147011
|
scripts: {
|
|
146884
147012
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
146885
147013
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
|
|
@@ -146898,23 +147026,23 @@ var require_package = __commonJS({
|
|
|
146898
147026
|
dependencies: {
|
|
146899
147027
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
146900
147028
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
146901
|
-
"@aws-sdk/core": "3.
|
|
146902
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
147029
|
+
"@aws-sdk/core": "3.899.0",
|
|
147030
|
+
"@aws-sdk/credential-provider-node": "3.899.0",
|
|
146903
147031
|
"@aws-sdk/eventstream-handler-node": "3.893.0",
|
|
146904
147032
|
"@aws-sdk/middleware-eventstream": "3.893.0",
|
|
146905
147033
|
"@aws-sdk/middleware-host-header": "3.893.0",
|
|
146906
147034
|
"@aws-sdk/middleware-logger": "3.893.0",
|
|
146907
147035
|
"@aws-sdk/middleware-recursion-detection": "3.893.0",
|
|
146908
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
147036
|
+
"@aws-sdk/middleware-user-agent": "3.899.0",
|
|
146909
147037
|
"@aws-sdk/middleware-websocket": "3.893.0",
|
|
146910
147038
|
"@aws-sdk/region-config-resolver": "3.893.0",
|
|
146911
|
-
"@aws-sdk/token-providers": "3.
|
|
147039
|
+
"@aws-sdk/token-providers": "3.899.0",
|
|
146912
147040
|
"@aws-sdk/types": "3.893.0",
|
|
146913
147041
|
"@aws-sdk/util-endpoints": "3.895.0",
|
|
146914
147042
|
"@aws-sdk/util-user-agent-browser": "3.893.0",
|
|
146915
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
147043
|
+
"@aws-sdk/util-user-agent-node": "3.899.0",
|
|
146916
147044
|
"@smithy/config-resolver": "^4.2.2",
|
|
146917
|
-
"@smithy/core": "^3.
|
|
147045
|
+
"@smithy/core": "^3.13.0",
|
|
146918
147046
|
"@smithy/eventstream-serde-browser": "^4.1.1",
|
|
146919
147047
|
"@smithy/eventstream-serde-config-resolver": "^4.2.1",
|
|
146920
147048
|
"@smithy/eventstream-serde-node": "^4.1.1",
|
|
@@ -146922,21 +147050,21 @@ var require_package = __commonJS({
|
|
|
146922
147050
|
"@smithy/hash-node": "^4.1.1",
|
|
146923
147051
|
"@smithy/invalid-dependency": "^4.1.1",
|
|
146924
147052
|
"@smithy/middleware-content-length": "^4.1.1",
|
|
146925
|
-
"@smithy/middleware-endpoint": "^4.2.
|
|
146926
|
-
"@smithy/middleware-retry": "^4.3.
|
|
147053
|
+
"@smithy/middleware-endpoint": "^4.2.5",
|
|
147054
|
+
"@smithy/middleware-retry": "^4.3.1",
|
|
146927
147055
|
"@smithy/middleware-serde": "^4.1.1",
|
|
146928
147056
|
"@smithy/middleware-stack": "^4.1.1",
|
|
146929
147057
|
"@smithy/node-config-provider": "^4.2.2",
|
|
146930
147058
|
"@smithy/node-http-handler": "^4.2.1",
|
|
146931
147059
|
"@smithy/protocol-http": "^5.2.1",
|
|
146932
|
-
"@smithy/smithy-client": "^4.6.
|
|
147060
|
+
"@smithy/smithy-client": "^4.6.5",
|
|
146933
147061
|
"@smithy/types": "^4.5.0",
|
|
146934
147062
|
"@smithy/url-parser": "^4.1.1",
|
|
146935
147063
|
"@smithy/util-base64": "^4.1.0",
|
|
146936
147064
|
"@smithy/util-body-length-browser": "^4.1.0",
|
|
146937
147065
|
"@smithy/util-body-length-node": "^4.1.0",
|
|
146938
|
-
"@smithy/util-defaults-mode-browser": "^4.1.
|
|
146939
|
-
"@smithy/util-defaults-mode-node": "^4.1.
|
|
147066
|
+
"@smithy/util-defaults-mode-browser": "^4.1.5",
|
|
147067
|
+
"@smithy/util-defaults-mode-node": "^4.1.5",
|
|
146940
147068
|
"@smithy/util-endpoints": "^3.1.2",
|
|
146941
147069
|
"@smithy/util-middleware": "^4.1.1",
|
|
146942
147070
|
"@smithy/util-retry": "^4.1.2",
|
|
@@ -147728,7 +147856,7 @@ var require_package2 = __commonJS({
|
|
|
147728
147856
|
module2.exports = {
|
|
147729
147857
|
name: "@aws-sdk/client-sso",
|
|
147730
147858
|
description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
147731
|
-
version: "3.
|
|
147859
|
+
version: "3.899.0",
|
|
147732
147860
|
scripts: {
|
|
147733
147861
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
147734
147862
|
"build:cjs": "node ../../scripts/compilation/inline client-sso",
|
|
@@ -147747,37 +147875,37 @@ var require_package2 = __commonJS({
|
|
|
147747
147875
|
dependencies: {
|
|
147748
147876
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
147749
147877
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
147750
|
-
"@aws-sdk/core": "3.
|
|
147878
|
+
"@aws-sdk/core": "3.899.0",
|
|
147751
147879
|
"@aws-sdk/middleware-host-header": "3.893.0",
|
|
147752
147880
|
"@aws-sdk/middleware-logger": "3.893.0",
|
|
147753
147881
|
"@aws-sdk/middleware-recursion-detection": "3.893.0",
|
|
147754
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
147882
|
+
"@aws-sdk/middleware-user-agent": "3.899.0",
|
|
147755
147883
|
"@aws-sdk/region-config-resolver": "3.893.0",
|
|
147756
147884
|
"@aws-sdk/types": "3.893.0",
|
|
147757
147885
|
"@aws-sdk/util-endpoints": "3.895.0",
|
|
147758
147886
|
"@aws-sdk/util-user-agent-browser": "3.893.0",
|
|
147759
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
147887
|
+
"@aws-sdk/util-user-agent-node": "3.899.0",
|
|
147760
147888
|
"@smithy/config-resolver": "^4.2.2",
|
|
147761
|
-
"@smithy/core": "^3.
|
|
147889
|
+
"@smithy/core": "^3.13.0",
|
|
147762
147890
|
"@smithy/fetch-http-handler": "^5.2.1",
|
|
147763
147891
|
"@smithy/hash-node": "^4.1.1",
|
|
147764
147892
|
"@smithy/invalid-dependency": "^4.1.1",
|
|
147765
147893
|
"@smithy/middleware-content-length": "^4.1.1",
|
|
147766
|
-
"@smithy/middleware-endpoint": "^4.2.
|
|
147767
|
-
"@smithy/middleware-retry": "^4.3.
|
|
147894
|
+
"@smithy/middleware-endpoint": "^4.2.5",
|
|
147895
|
+
"@smithy/middleware-retry": "^4.3.1",
|
|
147768
147896
|
"@smithy/middleware-serde": "^4.1.1",
|
|
147769
147897
|
"@smithy/middleware-stack": "^4.1.1",
|
|
147770
147898
|
"@smithy/node-config-provider": "^4.2.2",
|
|
147771
147899
|
"@smithy/node-http-handler": "^4.2.1",
|
|
147772
147900
|
"@smithy/protocol-http": "^5.2.1",
|
|
147773
|
-
"@smithy/smithy-client": "^4.6.
|
|
147901
|
+
"@smithy/smithy-client": "^4.6.5",
|
|
147774
147902
|
"@smithy/types": "^4.5.0",
|
|
147775
147903
|
"@smithy/url-parser": "^4.1.1",
|
|
147776
147904
|
"@smithy/util-base64": "^4.1.0",
|
|
147777
147905
|
"@smithy/util-body-length-browser": "^4.1.0",
|
|
147778
147906
|
"@smithy/util-body-length-node": "^4.1.0",
|
|
147779
|
-
"@smithy/util-defaults-mode-browser": "^4.1.
|
|
147780
|
-
"@smithy/util-defaults-mode-node": "^4.1.
|
|
147907
|
+
"@smithy/util-defaults-mode-browser": "^4.1.5",
|
|
147908
|
+
"@smithy/util-defaults-mode-node": "^4.1.5",
|
|
147781
147909
|
"@smithy/util-endpoints": "^3.1.2",
|
|
147782
147910
|
"@smithy/util-middleware": "^4.1.1",
|
|
147783
147911
|
"@smithy/util-retry": "^4.1.2",
|
|
@@ -149009,7 +149137,7 @@ var init_package = __esm({
|
|
|
149009
149137
|
"node_modules/@aws-sdk/nested-clients/package.json"() {
|
|
149010
149138
|
package_default = {
|
|
149011
149139
|
name: "@aws-sdk/nested-clients",
|
|
149012
|
-
version: "3.
|
|
149140
|
+
version: "3.899.0",
|
|
149013
149141
|
description: "Nested clients for AWS SDK packages.",
|
|
149014
149142
|
main: "./dist-cjs/index.js",
|
|
149015
149143
|
module: "./dist-es/index.js",
|
|
@@ -149038,37 +149166,37 @@ var init_package = __esm({
|
|
|
149038
149166
|
dependencies: {
|
|
149039
149167
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
149040
149168
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
149041
|
-
"@aws-sdk/core": "3.
|
|
149169
|
+
"@aws-sdk/core": "3.899.0",
|
|
149042
149170
|
"@aws-sdk/middleware-host-header": "3.893.0",
|
|
149043
149171
|
"@aws-sdk/middleware-logger": "3.893.0",
|
|
149044
149172
|
"@aws-sdk/middleware-recursion-detection": "3.893.0",
|
|
149045
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
149173
|
+
"@aws-sdk/middleware-user-agent": "3.899.0",
|
|
149046
149174
|
"@aws-sdk/region-config-resolver": "3.893.0",
|
|
149047
149175
|
"@aws-sdk/types": "3.893.0",
|
|
149048
149176
|
"@aws-sdk/util-endpoints": "3.895.0",
|
|
149049
149177
|
"@aws-sdk/util-user-agent-browser": "3.893.0",
|
|
149050
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
149178
|
+
"@aws-sdk/util-user-agent-node": "3.899.0",
|
|
149051
149179
|
"@smithy/config-resolver": "^4.2.2",
|
|
149052
|
-
"@smithy/core": "^3.
|
|
149180
|
+
"@smithy/core": "^3.13.0",
|
|
149053
149181
|
"@smithy/fetch-http-handler": "^5.2.1",
|
|
149054
149182
|
"@smithy/hash-node": "^4.1.1",
|
|
149055
149183
|
"@smithy/invalid-dependency": "^4.1.1",
|
|
149056
149184
|
"@smithy/middleware-content-length": "^4.1.1",
|
|
149057
|
-
"@smithy/middleware-endpoint": "^4.2.
|
|
149058
|
-
"@smithy/middleware-retry": "^4.3.
|
|
149185
|
+
"@smithy/middleware-endpoint": "^4.2.5",
|
|
149186
|
+
"@smithy/middleware-retry": "^4.3.1",
|
|
149059
149187
|
"@smithy/middleware-serde": "^4.1.1",
|
|
149060
149188
|
"@smithy/middleware-stack": "^4.1.1",
|
|
149061
149189
|
"@smithy/node-config-provider": "^4.2.2",
|
|
149062
149190
|
"@smithy/node-http-handler": "^4.2.1",
|
|
149063
149191
|
"@smithy/protocol-http": "^5.2.1",
|
|
149064
|
-
"@smithy/smithy-client": "^4.6.
|
|
149192
|
+
"@smithy/smithy-client": "^4.6.5",
|
|
149065
149193
|
"@smithy/types": "^4.5.0",
|
|
149066
149194
|
"@smithy/url-parser": "^4.1.1",
|
|
149067
149195
|
"@smithy/util-base64": "^4.1.0",
|
|
149068
149196
|
"@smithy/util-body-length-browser": "^4.1.0",
|
|
149069
149197
|
"@smithy/util-body-length-node": "^4.1.0",
|
|
149070
|
-
"@smithy/util-defaults-mode-browser": "^4.1.
|
|
149071
|
-
"@smithy/util-defaults-mode-node": "^4.1.
|
|
149198
|
+
"@smithy/util-defaults-mode-browser": "^4.1.5",
|
|
149199
|
+
"@smithy/util-defaults-mode-node": "^4.1.5",
|
|
149072
149200
|
"@smithy/util-endpoints": "^3.1.2",
|
|
149073
149201
|
"@smithy/util-middleware": "^4.1.1",
|
|
149074
149202
|
"@smithy/util-retry": "^4.1.2",
|
|
@@ -153538,6 +153666,7 @@ var require_dist_cjs65 = __commonJS({
|
|
|
153538
153666
|
END_TURN: "end_turn",
|
|
153539
153667
|
GUARDRAIL_INTERVENED: "guardrail_intervened",
|
|
153540
153668
|
MAX_TOKENS: "max_tokens",
|
|
153669
|
+
MODEL_CONTEXT_WINDOW_EXCEEDED: "model_context_window_exceeded",
|
|
153541
153670
|
STOP_SEQUENCE: "stop_sequence",
|
|
153542
153671
|
TOOL_USE: "tool_use"
|
|
153543
153672
|
};
|
|
@@ -154467,6 +154596,9 @@ var require_dist_cjs65 = __commonJS({
|
|
|
154467
154596
|
case "ServiceQuotaExceededException":
|
|
154468
154597
|
case "com.amazonaws.bedrockruntime#ServiceQuotaExceededException":
|
|
154469
154598
|
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
154599
|
+
case "ServiceUnavailableException":
|
|
154600
|
+
case "com.amazonaws.bedrockruntime#ServiceUnavailableException":
|
|
154601
|
+
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
154470
154602
|
case "ThrottlingException":
|
|
154471
154603
|
case "com.amazonaws.bedrockruntime#ThrottlingException":
|
|
154472
154604
|
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
@@ -154482,9 +154614,6 @@ var require_dist_cjs65 = __commonJS({
|
|
|
154482
154614
|
case "ModelTimeoutException":
|
|
154483
154615
|
case "com.amazonaws.bedrockruntime#ModelTimeoutException":
|
|
154484
154616
|
throw await de_ModelTimeoutExceptionRes(parsedOutput, context);
|
|
154485
|
-
case "ServiceUnavailableException":
|
|
154486
|
-
case "com.amazonaws.bedrockruntime#ServiceUnavailableException":
|
|
154487
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
|
|
154488
154617
|
case "ModelStreamErrorException":
|
|
154489
154618
|
case "com.amazonaws.bedrockruntime#ModelStreamErrorException":
|
|
154490
154619
|
throw await de_ModelStreamErrorExceptionRes(parsedOutput, context);
|
|
@@ -156831,13 +156960,42 @@ var init_tokenCounter = __esm({
|
|
|
156831
156960
|
|
|
156832
156961
|
// src/agent/xmlParsingUtils.js
|
|
156833
156962
|
function removeThinkingTags(xmlString) {
|
|
156834
|
-
|
|
156963
|
+
let result = xmlString;
|
|
156964
|
+
result = result.replace(/<thinking>[\s\S]*?<\/thinking>/g, "");
|
|
156965
|
+
const thinkingIndex = result.indexOf("<thinking>");
|
|
156966
|
+
if (thinkingIndex !== -1) {
|
|
156967
|
+
const afterThinking = result.substring(thinkingIndex + "<thinking>".length);
|
|
156968
|
+
const toolPattern = /<(search|query|extract|listFiles|searchFiles|implement|attempt_completion|attempt_complete)>/;
|
|
156969
|
+
const toolMatch = afterThinking.match(toolPattern);
|
|
156970
|
+
if (toolMatch) {
|
|
156971
|
+
const toolStart = thinkingIndex + "<thinking>".length + toolMatch.index;
|
|
156972
|
+
result = result.substring(0, thinkingIndex) + result.substring(toolStart);
|
|
156973
|
+
} else {
|
|
156974
|
+
result = result.substring(0, thinkingIndex);
|
|
156975
|
+
}
|
|
156976
|
+
}
|
|
156977
|
+
return result.trim();
|
|
156835
156978
|
}
|
|
156836
156979
|
function extractThinkingContent(xmlString) {
|
|
156837
156980
|
const thinkingMatch = xmlString.match(/<thinking>([\s\S]*?)<\/thinking>/);
|
|
156838
156981
|
return thinkingMatch ? thinkingMatch[1].trim() : null;
|
|
156839
156982
|
}
|
|
156840
156983
|
function checkAttemptCompleteRecovery(cleanedXmlString, validTools = []) {
|
|
156984
|
+
const attemptCompletionMatch = cleanedXmlString.match(/<attempt_completion>([\s\S]*?)(?:<\/attempt_completion>|$)/);
|
|
156985
|
+
if (attemptCompletionMatch) {
|
|
156986
|
+
const content = attemptCompletionMatch[1].trim();
|
|
156987
|
+
const hasClosingTag = cleanedXmlString.includes("</attempt_completion>");
|
|
156988
|
+
if (content) {
|
|
156989
|
+
return {
|
|
156990
|
+
toolName: "attempt_completion",
|
|
156991
|
+
params: { result: content }
|
|
156992
|
+
};
|
|
156993
|
+
}
|
|
156994
|
+
return {
|
|
156995
|
+
toolName: "attempt_completion",
|
|
156996
|
+
params: { result: hasClosingTag ? "" : "__PREVIOUS_RESPONSE__" }
|
|
156997
|
+
};
|
|
156998
|
+
}
|
|
156841
156999
|
const attemptCompletePatterns = [
|
|
156842
157000
|
// Standard shorthand with optional whitespace
|
|
156843
157001
|
/^<attempt_complete>\s*$/,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@probelabs/visor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.59",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"bin": {
|
|
6
6
|
"visor": "./dist/index.js"
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"@octokit/auth-app": "^8.1.0",
|
|
68
68
|
"@octokit/core": "^7.0.3",
|
|
69
69
|
"@octokit/rest": "^22.0.0",
|
|
70
|
-
"@probelabs/probe": "^0.6.0-
|
|
70
|
+
"@probelabs/probe": "^0.6.0-rc109",
|
|
71
71
|
"@types/commander": "^2.12.0",
|
|
72
72
|
"@types/uuid": "^10.0.0",
|
|
73
73
|
"cli-table3": "^0.6.5",
|