@probelabs/visor 0.1.68 → 0.1.70
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/ai-review-service.d.ts.map +1 -1
- package/dist/index.js +145 -125
- package/dist/output/code-review/schema.json +1 -1
- package/package.json +3 -3
|
@@ -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,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AS,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,IAAI;IAI3D;;OAEG;IACH,cAAc,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;IAIvC;;OAEG;YACW,iBAAiB;IAsF/B;;OAEG;IACH,OAAO,CAAC,eAAe;IAgSvB;;OAEG;IACH,OAAO,CAAC,SAAS;IAIjB;;OAEG;YACW,iCAAiC;IAuE/C;;OAEG;YACW,cAAc;IAsL5B;;OAEG;YACW,iBAAiB;IAiE/B;;OAEG;IACH,OAAO,CAAC,eAAe;IAkPvB;;;OAGG;IACH,OAAO,CAAC,uBAAuB;IAc/B;;OAEG;IACH,OAAO,CAAC,2BAA2B;IAqDnC;;OAEG;YACW,oBAAoB;IAgDlC;;OAEG;IACH,OAAO,CAAC,eAAe;CAuBxB"}
|
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.70';
|
|
3
3
|
/******/ (() => { // webpackBootstrap
|
|
4
4
|
/******/ var __webpack_modules__ = ({
|
|
5
5
|
|
|
@@ -94117,6 +94117,7 @@ ${prContext}
|
|
|
94117
94117
|
<rule>For INCREMENTAL analysis, ONLY review changes in commit_diff section</rule>
|
|
94118
94118
|
<rule>For FULL analysis, review all changes in full_diff section</rule>
|
|
94119
94119
|
<rule>Reference specific XML elements like files_summary, metadata when providing context</rule>
|
|
94120
|
+
<rule>SEVERITY ASSIGNMENT: All severity levels (critical, error, warning, info) should be based on the NEW code being introduced, not on what it fixes. When code INTRODUCES new problems (bugs, vulnerabilities, performance issues, breaking changes), assign appropriate severity (critical/error/warning). When code FIXES or IMPROVES existing issues, use lower severity (info/warning) to acknowledge the improvement. This applies to all issue types: security, performance, style, logic, documentation. The schema provides detailed severity level definitions.</rule>
|
|
94120
94121
|
</rules>
|
|
94121
94122
|
</review_request>`;
|
|
94122
94123
|
}
|
|
@@ -101130,6 +101131,14 @@ async function handleIssueComment(octokit, owner, repo, context, inputs, actionC
|
|
|
101130
101131
|
const command = (0, commands_1.parseComment)(comment.body, availableCommands);
|
|
101131
101132
|
if (!command) {
|
|
101132
101133
|
console.log('No valid command found in comment');
|
|
101134
|
+
// For issue comments (not PRs), run event-driven checks instead of command-based logic
|
|
101135
|
+
// This allows checks with `on: [issue_comment]` to execute based on their `if` conditions
|
|
101136
|
+
if (!isPullRequest && _actionChecksToRun && _actionChecksToRun.length > 0 && config) {
|
|
101137
|
+
console.log('📋 No command found, but this is an issue comment - running event-driven checks');
|
|
101138
|
+
// Run the checks that were determined by the main run() function
|
|
101139
|
+
await handleIssueEvent(octokit, owner, repo, context, inputs, config, _actionChecksToRun);
|
|
101140
|
+
}
|
|
101141
|
+
// For PRs without commands, or issues without checks to run, return early
|
|
101133
101142
|
return;
|
|
101134
101143
|
}
|
|
101135
101144
|
console.log(`Processing command: ${command.type}`);
|
|
@@ -146030,7 +146039,7 @@ var require_package = __commonJS({
|
|
|
146030
146039
|
module2.exports = {
|
|
146031
146040
|
name: "@aws-sdk/client-bedrock-runtime",
|
|
146032
146041
|
description: "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
|
|
146033
|
-
version: "3.
|
|
146042
|
+
version: "3.901.0",
|
|
146034
146043
|
scripts: {
|
|
146035
146044
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
146036
146045
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-runtime",
|
|
@@ -146049,51 +146058,51 @@ var require_package = __commonJS({
|
|
|
146049
146058
|
dependencies: {
|
|
146050
146059
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
146051
146060
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
146052
|
-
"@aws-sdk/core": "3.
|
|
146053
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
146054
|
-
"@aws-sdk/eventstream-handler-node": "3.
|
|
146055
|
-
"@aws-sdk/middleware-eventstream": "3.
|
|
146056
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
146057
|
-
"@aws-sdk/middleware-logger": "3.
|
|
146058
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
146059
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
146060
|
-
"@aws-sdk/middleware-websocket": "3.
|
|
146061
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
146062
|
-
"@aws-sdk/token-providers": "3.
|
|
146063
|
-
"@aws-sdk/types": "3.
|
|
146064
|
-
"@aws-sdk/util-endpoints": "3.
|
|
146065
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
146066
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
146067
|
-
"@smithy/config-resolver": "^4.
|
|
146068
|
-
"@smithy/core": "^3.
|
|
146069
|
-
"@smithy/eventstream-serde-browser": "^4.
|
|
146070
|
-
"@smithy/eventstream-serde-config-resolver": "^4.
|
|
146071
|
-
"@smithy/eventstream-serde-node": "^4.
|
|
146072
|
-
"@smithy/fetch-http-handler": "^5.
|
|
146073
|
-
"@smithy/hash-node": "^4.
|
|
146074
|
-
"@smithy/invalid-dependency": "^4.
|
|
146075
|
-
"@smithy/middleware-content-length": "^4.
|
|
146076
|
-
"@smithy/middleware-endpoint": "^4.
|
|
146077
|
-
"@smithy/middleware-retry": "^4.
|
|
146078
|
-
"@smithy/middleware-serde": "^4.
|
|
146079
|
-
"@smithy/middleware-stack": "^4.
|
|
146080
|
-
"@smithy/node-config-provider": "^4.
|
|
146081
|
-
"@smithy/node-http-handler": "^4.
|
|
146082
|
-
"@smithy/protocol-http": "^5.
|
|
146083
|
-
"@smithy/smithy-client": "^4.
|
|
146084
|
-
"@smithy/types": "^4.
|
|
146085
|
-
"@smithy/url-parser": "^4.
|
|
146086
|
-
"@smithy/util-base64": "^4.
|
|
146087
|
-
"@smithy/util-body-length-browser": "^4.
|
|
146088
|
-
"@smithy/util-body-length-node": "^4.
|
|
146089
|
-
"@smithy/util-defaults-mode-browser": "^4.
|
|
146090
|
-
"@smithy/util-defaults-mode-node": "^4.
|
|
146091
|
-
"@smithy/util-endpoints": "^3.
|
|
146092
|
-
"@smithy/util-middleware": "^4.
|
|
146093
|
-
"@smithy/util-retry": "^4.
|
|
146094
|
-
"@smithy/util-stream": "^4.
|
|
146095
|
-
"@smithy/util-utf8": "^4.
|
|
146096
|
-
"@smithy/uuid": "^1.
|
|
146061
|
+
"@aws-sdk/core": "3.901.0",
|
|
146062
|
+
"@aws-sdk/credential-provider-node": "3.901.0",
|
|
146063
|
+
"@aws-sdk/eventstream-handler-node": "3.901.0",
|
|
146064
|
+
"@aws-sdk/middleware-eventstream": "3.901.0",
|
|
146065
|
+
"@aws-sdk/middleware-host-header": "3.901.0",
|
|
146066
|
+
"@aws-sdk/middleware-logger": "3.901.0",
|
|
146067
|
+
"@aws-sdk/middleware-recursion-detection": "3.901.0",
|
|
146068
|
+
"@aws-sdk/middleware-user-agent": "3.901.0",
|
|
146069
|
+
"@aws-sdk/middleware-websocket": "3.901.0",
|
|
146070
|
+
"@aws-sdk/region-config-resolver": "3.901.0",
|
|
146071
|
+
"@aws-sdk/token-providers": "3.901.0",
|
|
146072
|
+
"@aws-sdk/types": "3.901.0",
|
|
146073
|
+
"@aws-sdk/util-endpoints": "3.901.0",
|
|
146074
|
+
"@aws-sdk/util-user-agent-browser": "3.901.0",
|
|
146075
|
+
"@aws-sdk/util-user-agent-node": "3.901.0",
|
|
146076
|
+
"@smithy/config-resolver": "^4.3.0",
|
|
146077
|
+
"@smithy/core": "^3.14.0",
|
|
146078
|
+
"@smithy/eventstream-serde-browser": "^4.2.0",
|
|
146079
|
+
"@smithy/eventstream-serde-config-resolver": "^4.3.0",
|
|
146080
|
+
"@smithy/eventstream-serde-node": "^4.2.0",
|
|
146081
|
+
"@smithy/fetch-http-handler": "^5.3.0",
|
|
146082
|
+
"@smithy/hash-node": "^4.2.0",
|
|
146083
|
+
"@smithy/invalid-dependency": "^4.2.0",
|
|
146084
|
+
"@smithy/middleware-content-length": "^4.2.0",
|
|
146085
|
+
"@smithy/middleware-endpoint": "^4.3.0",
|
|
146086
|
+
"@smithy/middleware-retry": "^4.4.0",
|
|
146087
|
+
"@smithy/middleware-serde": "^4.2.0",
|
|
146088
|
+
"@smithy/middleware-stack": "^4.2.0",
|
|
146089
|
+
"@smithy/node-config-provider": "^4.3.0",
|
|
146090
|
+
"@smithy/node-http-handler": "^4.3.0",
|
|
146091
|
+
"@smithy/protocol-http": "^5.3.0",
|
|
146092
|
+
"@smithy/smithy-client": "^4.7.0",
|
|
146093
|
+
"@smithy/types": "^4.6.0",
|
|
146094
|
+
"@smithy/url-parser": "^4.2.0",
|
|
146095
|
+
"@smithy/util-base64": "^4.2.0",
|
|
146096
|
+
"@smithy/util-body-length-browser": "^4.2.0",
|
|
146097
|
+
"@smithy/util-body-length-node": "^4.2.0",
|
|
146098
|
+
"@smithy/util-defaults-mode-browser": "^4.2.0",
|
|
146099
|
+
"@smithy/util-defaults-mode-node": "^4.2.0",
|
|
146100
|
+
"@smithy/util-endpoints": "^3.2.0",
|
|
146101
|
+
"@smithy/util-middleware": "^4.2.0",
|
|
146102
|
+
"@smithy/util-retry": "^4.2.0",
|
|
146103
|
+
"@smithy/util-stream": "^4.4.0",
|
|
146104
|
+
"@smithy/util-utf8": "^4.2.0",
|
|
146105
|
+
"@smithy/uuid": "^1.1.0",
|
|
146097
146106
|
tslib: "^2.6.2"
|
|
146098
146107
|
},
|
|
146099
146108
|
devDependencies: {
|
|
@@ -146830,7 +146839,7 @@ var require_package2 = __commonJS({
|
|
|
146830
146839
|
module2.exports = {
|
|
146831
146840
|
name: "@aws-sdk/client-sso",
|
|
146832
146841
|
description: "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native",
|
|
146833
|
-
version: "3.
|
|
146842
|
+
version: "3.901.0",
|
|
146834
146843
|
scripts: {
|
|
146835
146844
|
build: "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
146836
146845
|
"build:cjs": "node ../../scripts/compilation/inline client-sso",
|
|
@@ -146849,41 +146858,41 @@ var require_package2 = __commonJS({
|
|
|
146849
146858
|
dependencies: {
|
|
146850
146859
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
146851
146860
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
146852
|
-
"@aws-sdk/core": "3.
|
|
146853
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
146854
|
-
"@aws-sdk/middleware-logger": "3.
|
|
146855
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
146856
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
146857
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
146858
|
-
"@aws-sdk/types": "3.
|
|
146859
|
-
"@aws-sdk/util-endpoints": "3.
|
|
146860
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
146861
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
146862
|
-
"@smithy/config-resolver": "^4.
|
|
146863
|
-
"@smithy/core": "^3.
|
|
146864
|
-
"@smithy/fetch-http-handler": "^5.
|
|
146865
|
-
"@smithy/hash-node": "^4.
|
|
146866
|
-
"@smithy/invalid-dependency": "^4.
|
|
146867
|
-
"@smithy/middleware-content-length": "^4.
|
|
146868
|
-
"@smithy/middleware-endpoint": "^4.
|
|
146869
|
-
"@smithy/middleware-retry": "^4.
|
|
146870
|
-
"@smithy/middleware-serde": "^4.
|
|
146871
|
-
"@smithy/middleware-stack": "^4.
|
|
146872
|
-
"@smithy/node-config-provider": "^4.
|
|
146873
|
-
"@smithy/node-http-handler": "^4.
|
|
146874
|
-
"@smithy/protocol-http": "^5.
|
|
146875
|
-
"@smithy/smithy-client": "^4.
|
|
146876
|
-
"@smithy/types": "^4.
|
|
146877
|
-
"@smithy/url-parser": "^4.
|
|
146878
|
-
"@smithy/util-base64": "^4.
|
|
146879
|
-
"@smithy/util-body-length-browser": "^4.
|
|
146880
|
-
"@smithy/util-body-length-node": "^4.
|
|
146881
|
-
"@smithy/util-defaults-mode-browser": "^4.
|
|
146882
|
-
"@smithy/util-defaults-mode-node": "^4.
|
|
146883
|
-
"@smithy/util-endpoints": "^3.
|
|
146884
|
-
"@smithy/util-middleware": "^4.
|
|
146885
|
-
"@smithy/util-retry": "^4.
|
|
146886
|
-
"@smithy/util-utf8": "^4.
|
|
146861
|
+
"@aws-sdk/core": "3.901.0",
|
|
146862
|
+
"@aws-sdk/middleware-host-header": "3.901.0",
|
|
146863
|
+
"@aws-sdk/middleware-logger": "3.901.0",
|
|
146864
|
+
"@aws-sdk/middleware-recursion-detection": "3.901.0",
|
|
146865
|
+
"@aws-sdk/middleware-user-agent": "3.901.0",
|
|
146866
|
+
"@aws-sdk/region-config-resolver": "3.901.0",
|
|
146867
|
+
"@aws-sdk/types": "3.901.0",
|
|
146868
|
+
"@aws-sdk/util-endpoints": "3.901.0",
|
|
146869
|
+
"@aws-sdk/util-user-agent-browser": "3.901.0",
|
|
146870
|
+
"@aws-sdk/util-user-agent-node": "3.901.0",
|
|
146871
|
+
"@smithy/config-resolver": "^4.3.0",
|
|
146872
|
+
"@smithy/core": "^3.14.0",
|
|
146873
|
+
"@smithy/fetch-http-handler": "^5.3.0",
|
|
146874
|
+
"@smithy/hash-node": "^4.2.0",
|
|
146875
|
+
"@smithy/invalid-dependency": "^4.2.0",
|
|
146876
|
+
"@smithy/middleware-content-length": "^4.2.0",
|
|
146877
|
+
"@smithy/middleware-endpoint": "^4.3.0",
|
|
146878
|
+
"@smithy/middleware-retry": "^4.4.0",
|
|
146879
|
+
"@smithy/middleware-serde": "^4.2.0",
|
|
146880
|
+
"@smithy/middleware-stack": "^4.2.0",
|
|
146881
|
+
"@smithy/node-config-provider": "^4.3.0",
|
|
146882
|
+
"@smithy/node-http-handler": "^4.3.0",
|
|
146883
|
+
"@smithy/protocol-http": "^5.3.0",
|
|
146884
|
+
"@smithy/smithy-client": "^4.7.0",
|
|
146885
|
+
"@smithy/types": "^4.6.0",
|
|
146886
|
+
"@smithy/url-parser": "^4.2.0",
|
|
146887
|
+
"@smithy/util-base64": "^4.2.0",
|
|
146888
|
+
"@smithy/util-body-length-browser": "^4.2.0",
|
|
146889
|
+
"@smithy/util-body-length-node": "^4.2.0",
|
|
146890
|
+
"@smithy/util-defaults-mode-browser": "^4.2.0",
|
|
146891
|
+
"@smithy/util-defaults-mode-node": "^4.2.0",
|
|
146892
|
+
"@smithy/util-endpoints": "^3.2.0",
|
|
146893
|
+
"@smithy/util-middleware": "^4.2.0",
|
|
146894
|
+
"@smithy/util-retry": "^4.2.0",
|
|
146895
|
+
"@smithy/util-utf8": "^4.2.0",
|
|
146887
146896
|
tslib: "^2.6.2"
|
|
146888
146897
|
},
|
|
146889
146898
|
devDependencies: {
|
|
@@ -148032,7 +148041,7 @@ var init_package = __esm({
|
|
|
148032
148041
|
"node_modules/@aws-sdk/nested-clients/package.json"() {
|
|
148033
148042
|
package_default = {
|
|
148034
148043
|
name: "@aws-sdk/nested-clients",
|
|
148035
|
-
version: "3.
|
|
148044
|
+
version: "3.901.0",
|
|
148036
148045
|
description: "Nested clients for AWS SDK packages.",
|
|
148037
148046
|
main: "./dist-cjs/index.js",
|
|
148038
148047
|
module: "./dist-es/index.js",
|
|
@@ -148061,41 +148070,41 @@ var init_package = __esm({
|
|
|
148061
148070
|
dependencies: {
|
|
148062
148071
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
148063
148072
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
148064
|
-
"@aws-sdk/core": "3.
|
|
148065
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
148066
|
-
"@aws-sdk/middleware-logger": "3.
|
|
148067
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
148068
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
148069
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
148070
|
-
"@aws-sdk/types": "3.
|
|
148071
|
-
"@aws-sdk/util-endpoints": "3.
|
|
148072
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
148073
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
148074
|
-
"@smithy/config-resolver": "^4.
|
|
148075
|
-
"@smithy/core": "^3.
|
|
148076
|
-
"@smithy/fetch-http-handler": "^5.
|
|
148077
|
-
"@smithy/hash-node": "^4.
|
|
148078
|
-
"@smithy/invalid-dependency": "^4.
|
|
148079
|
-
"@smithy/middleware-content-length": "^4.
|
|
148080
|
-
"@smithy/middleware-endpoint": "^4.
|
|
148081
|
-
"@smithy/middleware-retry": "^4.
|
|
148082
|
-
"@smithy/middleware-serde": "^4.
|
|
148083
|
-
"@smithy/middleware-stack": "^4.
|
|
148084
|
-
"@smithy/node-config-provider": "^4.
|
|
148085
|
-
"@smithy/node-http-handler": "^4.
|
|
148086
|
-
"@smithy/protocol-http": "^5.
|
|
148087
|
-
"@smithy/smithy-client": "^4.
|
|
148088
|
-
"@smithy/types": "^4.
|
|
148089
|
-
"@smithy/url-parser": "^4.
|
|
148090
|
-
"@smithy/util-base64": "^4.
|
|
148091
|
-
"@smithy/util-body-length-browser": "^4.
|
|
148092
|
-
"@smithy/util-body-length-node": "^4.
|
|
148093
|
-
"@smithy/util-defaults-mode-browser": "^4.
|
|
148094
|
-
"@smithy/util-defaults-mode-node": "^4.
|
|
148095
|
-
"@smithy/util-endpoints": "^3.
|
|
148096
|
-
"@smithy/util-middleware": "^4.
|
|
148097
|
-
"@smithy/util-retry": "^4.
|
|
148098
|
-
"@smithy/util-utf8": "^4.
|
|
148073
|
+
"@aws-sdk/core": "3.901.0",
|
|
148074
|
+
"@aws-sdk/middleware-host-header": "3.901.0",
|
|
148075
|
+
"@aws-sdk/middleware-logger": "3.901.0",
|
|
148076
|
+
"@aws-sdk/middleware-recursion-detection": "3.901.0",
|
|
148077
|
+
"@aws-sdk/middleware-user-agent": "3.901.0",
|
|
148078
|
+
"@aws-sdk/region-config-resolver": "3.901.0",
|
|
148079
|
+
"@aws-sdk/types": "3.901.0",
|
|
148080
|
+
"@aws-sdk/util-endpoints": "3.901.0",
|
|
148081
|
+
"@aws-sdk/util-user-agent-browser": "3.901.0",
|
|
148082
|
+
"@aws-sdk/util-user-agent-node": "3.901.0",
|
|
148083
|
+
"@smithy/config-resolver": "^4.3.0",
|
|
148084
|
+
"@smithy/core": "^3.14.0",
|
|
148085
|
+
"@smithy/fetch-http-handler": "^5.3.0",
|
|
148086
|
+
"@smithy/hash-node": "^4.2.0",
|
|
148087
|
+
"@smithy/invalid-dependency": "^4.2.0",
|
|
148088
|
+
"@smithy/middleware-content-length": "^4.2.0",
|
|
148089
|
+
"@smithy/middleware-endpoint": "^4.3.0",
|
|
148090
|
+
"@smithy/middleware-retry": "^4.4.0",
|
|
148091
|
+
"@smithy/middleware-serde": "^4.2.0",
|
|
148092
|
+
"@smithy/middleware-stack": "^4.2.0",
|
|
148093
|
+
"@smithy/node-config-provider": "^4.3.0",
|
|
148094
|
+
"@smithy/node-http-handler": "^4.3.0",
|
|
148095
|
+
"@smithy/protocol-http": "^5.3.0",
|
|
148096
|
+
"@smithy/smithy-client": "^4.7.0",
|
|
148097
|
+
"@smithy/types": "^4.6.0",
|
|
148098
|
+
"@smithy/url-parser": "^4.2.0",
|
|
148099
|
+
"@smithy/util-base64": "^4.2.0",
|
|
148100
|
+
"@smithy/util-body-length-browser": "^4.2.0",
|
|
148101
|
+
"@smithy/util-body-length-node": "^4.2.0",
|
|
148102
|
+
"@smithy/util-defaults-mode-browser": "^4.2.0",
|
|
148103
|
+
"@smithy/util-defaults-mode-node": "^4.2.0",
|
|
148104
|
+
"@smithy/util-endpoints": "^3.2.0",
|
|
148105
|
+
"@smithy/util-middleware": "^4.2.0",
|
|
148106
|
+
"@smithy/util-retry": "^4.2.0",
|
|
148107
|
+
"@smithy/util-utf8": "^4.2.0",
|
|
148099
148108
|
tslib: "^2.6.2"
|
|
148100
148109
|
},
|
|
148101
148110
|
devDependencies: {
|
|
@@ -180179,6 +180188,7 @@ FIXING METHODOLOGY:
|
|
|
180179
180188
|
- Incorrect formatting for diagram-specific elements
|
|
180180
180189
|
- **Parentheses in node labels or subgraph names**: Wrap text containing parentheses in double quotes to prevent GitHub parsing errors
|
|
180181
180190
|
- Single quotes in node labels (GitHub's parser expects double quotes)
|
|
180191
|
+
- **Edge/Arrow labels with spaces**: MUST use pipe syntax like "A --|Label Text|--> B" or "A -- |Label Text| --> B". NEVER use double quotes like "A -- \\"Label\\" --> B" which is INVALID
|
|
180182
180192
|
4. **Preserve semantic meaning** - never change the intended flow or relationships
|
|
180183
180193
|
5. **Use proper escaping** for special characters and spaces
|
|
180184
180194
|
6. **Ensure consistency** in naming conventions and formatting
|
|
@@ -180210,7 +180220,11 @@ When presented with a broken Mermaid diagram, analyze it thoroughly and provide
|
|
|
180210
180220
|
model: this.options.model,
|
|
180211
180221
|
debug: this.options.debug,
|
|
180212
180222
|
tracer: this.options.tracer,
|
|
180213
|
-
allowEdit: this.options.allowEdit
|
|
180223
|
+
allowEdit: this.options.allowEdit,
|
|
180224
|
+
maxIterations: 2,
|
|
180225
|
+
// Limit mermaid fixing to 2 iterations to prevent long loops
|
|
180226
|
+
disableMermaidValidation: true
|
|
180227
|
+
// CRITICAL: Disable mermaid validation in nested agent to prevent infinite recursion
|
|
180214
180228
|
});
|
|
180215
180229
|
}
|
|
180216
180230
|
return this.agent;
|
|
@@ -180269,9 +180283,7 @@ ${contentToFix}
|
|
|
180269
180283
|
|
|
180270
180284
|
Provide only the corrected Mermaid diagram within a mermaid code block. Do not add any explanations or additional text.`;
|
|
180271
180285
|
try {
|
|
180272
|
-
const result = await this.agent.answer(prompt, []
|
|
180273
|
-
schema: "Return only valid Mermaid diagram code within ```mermaid code block"
|
|
180274
|
-
});
|
|
180286
|
+
const result = await this.agent.answer(prompt, []);
|
|
180275
180287
|
const extractedDiagram = this.extractCorrectedDiagram(result);
|
|
180276
180288
|
return extractedDiagram || result;
|
|
180277
180289
|
} catch (error2) {
|
|
@@ -181008,6 +181020,7 @@ var init_ProbeAgent = __esm({
|
|
|
181008
181020
|
init_mockProvider();
|
|
181009
181021
|
init_index();
|
|
181010
181022
|
init_schemaUtils();
|
|
181023
|
+
init_xmlParsingUtils();
|
|
181011
181024
|
init_mcp();
|
|
181012
181025
|
MAX_TOOL_ITERATIONS = parseInt(process.env.MAX_TOOL_ITERATIONS || "30", 10);
|
|
181013
181026
|
MAX_HISTORY_MESSAGES = 100;
|
|
@@ -181027,6 +181040,7 @@ var init_ProbeAgent = __esm({
|
|
|
181027
181040
|
* @param {boolean} [options.debug] - Enable debug mode
|
|
181028
181041
|
* @param {boolean} [options.outline] - Enable outline-xml format for search results
|
|
181029
181042
|
* @param {number} [options.maxResponseTokens] - Maximum tokens for AI responses
|
|
181043
|
+
* @param {number} [options.maxIterations] - Maximum tool iterations (overrides MAX_TOOL_ITERATIONS env var)
|
|
181030
181044
|
* @param {boolean} [options.disableMermaidValidation=false] - Disable automatic mermaid diagram validation and fixing
|
|
181031
181045
|
* @param {boolean} [options.enableMcp=false] - Enable MCP tool integration
|
|
181032
181046
|
* @param {string} [options.mcpConfigPath] - Path to MCP configuration file
|
|
@@ -181043,6 +181057,7 @@ var init_ProbeAgent = __esm({
|
|
|
181043
181057
|
this.tracer = options.tracer || null;
|
|
181044
181058
|
this.outline = !!options.outline;
|
|
181045
181059
|
this.maxResponseTokens = options.maxResponseTokens || parseInt(process.env.MAX_RESPONSE_TOKENS || "0", 10) || null;
|
|
181060
|
+
this.maxIterations = options.maxIterations || null;
|
|
181046
181061
|
this.disableMermaidValidation = !!options.disableMermaidValidation;
|
|
181047
181062
|
this.enableBash = !!options.enableBash;
|
|
181048
181063
|
this.bashConfig = options.bashConfig || {};
|
|
@@ -181737,11 +181752,12 @@ You are working with a repository located at: ${searchDirectory}
|
|
|
181737
181752
|
let currentIteration = 0;
|
|
181738
181753
|
let completionAttempted = false;
|
|
181739
181754
|
let finalResult = "I was unable to complete your request due to reaching the maximum number of tool iterations.";
|
|
181740
|
-
const
|
|
181755
|
+
const baseMaxIterations = this.maxIterations || MAX_TOOL_ITERATIONS;
|
|
181756
|
+
const maxIterations = options.schema ? baseMaxIterations + 4 : baseMaxIterations;
|
|
181741
181757
|
if (this.debug) {
|
|
181742
181758
|
console.log(`[DEBUG] Starting agentic flow for question: ${message.substring(0, 100)}...`);
|
|
181743
181759
|
if (options.schema) {
|
|
181744
|
-
console.log(`[DEBUG] Schema provided, using extended iteration limit: ${maxIterations} (base: ${
|
|
181760
|
+
console.log(`[DEBUG] Schema provided, using extended iteration limit: ${maxIterations} (base: ${baseMaxIterations})`);
|
|
181745
181761
|
}
|
|
181746
181762
|
}
|
|
181747
181763
|
while (currentIteration < maxIterations && !completionAttempted) {
|
|
@@ -182406,6 +182422,10 @@ Convert your previous response content into actual JSON data that follows this s
|
|
|
182406
182422
|
} else if (this.debug) {
|
|
182407
182423
|
console.log(`[DEBUG] Mermaid validation: Skipped final validation due to disableMermaidValidation option`);
|
|
182408
182424
|
}
|
|
182425
|
+
finalResult = removeThinkingTags(finalResult);
|
|
182426
|
+
if (this.debug) {
|
|
182427
|
+
console.log(`[DEBUG] Removed thinking tags from final result`);
|
|
182428
|
+
}
|
|
182409
182429
|
return finalResult;
|
|
182410
182430
|
} catch (error2) {
|
|
182411
182431
|
console.error(`[ERROR] ProbeAgent.answer failed:`, error2);
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"severity": {
|
|
40
40
|
"type": "string",
|
|
41
41
|
"enum": ["info", "warning", "error", "critical"],
|
|
42
|
-
"description": "Issue severity level: info (suggestions/improvements), warning (should fix), error (must fix), critical (
|
|
42
|
+
"description": "Issue severity level based on the NEW CODE being introduced: info (suggestions/improvements), warning (should fix), error (must fix), critical (NEW security vulnerabilities, data loss risks, or breaking changes that block deployment). IMPORTANT: Use 'critical' ONLY when NEW problematic code is INTRODUCED, NOT when existing issues are being FIXED. Fixes and improvements should use 'info' or 'warning' severity."
|
|
43
43
|
},
|
|
44
44
|
"category": {
|
|
45
45
|
"type": "string",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@probelabs/visor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.70",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"bin": {
|
|
6
6
|
"visor": "./dist/index.js"
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"release:prerelease": "./scripts/release.sh prerelease",
|
|
41
41
|
"docs:validate": "node scripts/validate-readme-links.js",
|
|
42
42
|
"workshop:setup": "npm install -D reveal-md@6.1.2",
|
|
43
|
-
"workshop:serve": "reveal-md
|
|
43
|
+
"workshop:serve": "cd workshop && reveal-md slides.md -w",
|
|
44
44
|
"workshop:export": "reveal-md workshop/slides.md --static workshop/build",
|
|
45
45
|
"workshop:pdf": "reveal-md workshop/slides.md --print workshop/Visor-Workshop.pdf --print-size letter",
|
|
46
46
|
"workshop:pdf:ci": "reveal-md workshop/slides.md --print workshop/Visor-Workshop.pdf --print-size letter --puppeteer-launch-args=\"--no-sandbox --disable-dev-shm-usage\"",
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
"@octokit/auth-app": "^8.1.0",
|
|
74
74
|
"@octokit/core": "^7.0.3",
|
|
75
75
|
"@octokit/rest": "^22.0.0",
|
|
76
|
-
"@probelabs/probe": "0.6.0-
|
|
76
|
+
"@probelabs/probe": "^0.6.0-rc115",
|
|
77
77
|
"@types/commander": "^2.12.0",
|
|
78
78
|
"@types/uuid": "^10.0.0",
|
|
79
79
|
"cli-table3": "^0.6.5",
|