@probelabs/visor 0.1.105 → 0.1.106
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 +41 -43
- package/dist/sdk/check-execution-engine-PJZ4ZOKG.mjs +11 -0
- package/dist/sdk/check-execution-engine-PJZ4ZOKG.mjs.map +1 -0
- package/dist/sdk/chunk-BVFNRCHT.mjs +14129 -0
- package/dist/sdk/chunk-BVFNRCHT.mjs.map +1 -0
- package/dist/sdk/chunk-U7X54EMV.mjs +331 -0
- package/dist/sdk/chunk-U7X54EMV.mjs.map +1 -0
- package/dist/sdk/mermaid-telemetry-SN6A2TKW.mjs +61 -0
- package/dist/sdk/mermaid-telemetry-SN6A2TKW.mjs.map +1 -0
- package/dist/sdk/sdk.js +18 -3
- package/dist/sdk/sdk.js.map +1 -1
- package/dist/sdk/sdk.mjs +2 -2
- package/package.json +1 -1
- /package/dist/output/traces/{run-2025-10-22T17-14-47-726Z.ndjson → run-2025-10-22T18-22-56-873Z.ndjson} +0 -0
- /package/dist/traces/{run-2025-10-22T17-14-47-726Z.ndjson → run-2025-10-22T18-22-56-873Z.ndjson} +0 -0
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.106';
|
|
3
3
|
process.env.PROBE_VERSION = '0.6.0-rc154';
|
|
4
4
|
/******/ (() => { // webpackBootstrap
|
|
5
5
|
/******/ var __webpack_modules__ = ({
|
|
@@ -132576,44 +132576,22 @@ async function markCheckAsFailed(checkService, owner, repo, checkRunId, checkNam
|
|
|
132576
132576
|
if (process.env.VISOR_E2E_FORCE_RUN === 'true' ||
|
|
132577
132577
|
(process.env.NODE_ENV !== 'test' && process.env.JEST_WORKER_ID === undefined)) {
|
|
132578
132578
|
(async () => {
|
|
132579
|
-
//
|
|
132580
|
-
//
|
|
132581
|
-
// - But if user explicitly invokes CLI help/version/validate or --mode cli, honor CLI even in Actions
|
|
132582
|
-
const inGithub = process.env.GITHUB_ACTIONS === 'true' || !!process.env.GITHUB_ACTIONS;
|
|
132583
|
-
const forceE2E = process.env.VISOR_E2E_FORCE_RUN === 'true';
|
|
132579
|
+
// Explicit mode selection: --mode flag (or --cli) > Action input 'mode' > default 'cli'.
|
|
132580
|
+
// This avoids relying on GITHUB_ACTIONS heuristics.
|
|
132584
132581
|
const argv = process.argv.slice(2);
|
|
132585
|
-
const
|
|
132586
|
-
|
|
132587
|
-
|
|
132588
|
-
|
|
132589
|
-
|
|
132590
|
-
|
|
132591
|
-
|
|
132592
|
-
|
|
132593
|
-
|
|
132594
|
-
|
|
132595
|
-
|
|
132596
|
-
|
|
132597
|
-
|
|
132598
|
-
argv.includes('--version') ||
|
|
132599
|
-
argv.includes('-V') ||
|
|
132600
|
-
argv.includes('validate');
|
|
132601
|
-
const wantsCliJsonSarif = (() => {
|
|
132602
|
-
const outEq = argv.find(a => a.startsWith('--output='));
|
|
132603
|
-
if (outEq) {
|
|
132604
|
-
const v = outEq.split('=')[1]?.toLowerCase();
|
|
132605
|
-
if (v === 'json' || v === 'sarif')
|
|
132606
|
-
return true;
|
|
132607
|
-
}
|
|
132608
|
-
const outIdx = argv.indexOf('--output');
|
|
132609
|
-
if (outIdx >= 0) {
|
|
132610
|
-
const v = argv[outIdx + 1]?.toLowerCase();
|
|
132611
|
-
if (v === 'json' || v === 'sarif')
|
|
132612
|
-
return true;
|
|
132613
|
-
}
|
|
132614
|
-
return false;
|
|
132615
|
-
})();
|
|
132616
|
-
if (inGithub && !explicitCliMode && !wantsCliHelp && !forceE2E && !wantsCliJsonSarif) {
|
|
132582
|
+
const modeFromFlagEq = argv.find(a => a.startsWith('--mode='))?.split('=')[1];
|
|
132583
|
+
const modeIdx = argv.indexOf('--mode');
|
|
132584
|
+
const modeFromFlag = modeFromFlagEq || (modeIdx >= 0 ? argv[modeIdx + 1] : undefined);
|
|
132585
|
+
const shorthandCli = argv.includes('--cli');
|
|
132586
|
+
let modeFromInput = '';
|
|
132587
|
+
try {
|
|
132588
|
+
modeFromInput = (0, core_1.getInput)('mode') || '';
|
|
132589
|
+
}
|
|
132590
|
+
catch { }
|
|
132591
|
+
const mode = (modeFromFlag || (shorthandCli ? 'cli' : '') || modeFromInput || 'cli')
|
|
132592
|
+
.toString()
|
|
132593
|
+
.toLowerCase();
|
|
132594
|
+
if (mode === 'github-actions' || mode === 'github') {
|
|
132617
132595
|
// Run in GitHub Action mode explicitly and await completion to avoid early exit
|
|
132618
132596
|
try {
|
|
132619
132597
|
await run();
|
|
@@ -140999,10 +140977,30 @@ exports.DiagLogLevel = {
|
|
|
140999
140977
|
function createNoOpTracer() {
|
|
141000
140978
|
return {
|
|
141001
140979
|
startSpan: () => createNoOpSpan(),
|
|
141002
|
-
|
|
141003
|
-
|
|
141004
|
-
|
|
141005
|
-
|
|
140980
|
+
// Support both OTel v1 and v2 overloads:
|
|
140981
|
+
// - startActiveSpan(name, callback)
|
|
140982
|
+
// - startActiveSpan(name, options, callback)
|
|
140983
|
+
// - startActiveSpan(name, options, context, callback)
|
|
140984
|
+
startActiveSpan: (name, arg2, arg3, arg4) => {
|
|
140985
|
+
const span = createNoOpSpan();
|
|
140986
|
+
let cb = undefined;
|
|
140987
|
+
if (typeof arg2 === 'function')
|
|
140988
|
+
cb = arg2;
|
|
140989
|
+
else if (typeof arg3 === 'function')
|
|
140990
|
+
cb = arg3;
|
|
140991
|
+
else if (typeof arg4 === 'function')
|
|
140992
|
+
cb = arg4;
|
|
140993
|
+
if (typeof cb === 'function') {
|
|
140994
|
+
try {
|
|
140995
|
+
return cb(span);
|
|
140996
|
+
}
|
|
140997
|
+
catch {
|
|
140998
|
+
// swallow errors in no-op implementation
|
|
140999
|
+
return undefined;
|
|
141000
|
+
}
|
|
141001
|
+
}
|
|
141002
|
+
// No callback supplied: return a no-op span like the real API would
|
|
141003
|
+
return span;
|
|
141006
141004
|
},
|
|
141007
141005
|
};
|
|
141008
141006
|
}
|
|
@@ -271773,7 +271771,7 @@ module.exports = /*#__PURE__*/JSON.parse('{"application/1d-interleaved-parityfec
|
|
|
271773
271771
|
/***/ ((module) => {
|
|
271774
271772
|
|
|
271775
271773
|
"use strict";
|
|
271776
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"@probelabs/visor","version":"0.1.
|
|
271774
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"@probelabs/visor","version":"0.1.106","main":"dist/index.js","bin":{"visor":"./dist/index.js"},"exports":{".":{"require":"./dist/index.js","import":"./dist/index.js"},"./sdk":{"types":"./dist/sdk/sdk.d.ts","import":"./dist/sdk/sdk.mjs","require":"./dist/sdk/sdk.js"},"./cli":{"require":"./dist/index.js"}},"files":["dist/","defaults/","action.yml","README.md","LICENSE"],"publishConfig":{"access":"public","registry":"https://registry.npmjs.org/"},"scripts":{"build:cli":"ncc build src/index.ts -o dist && cp -r defaults dist/ && cp -r output dist/ && cp -r src/debug-visualizer/ui dist/debug-visualizer/ && node scripts/inject-version.js && echo \'#!/usr/bin/env node\' | cat - dist/index.js > temp && mv temp dist/index.js && chmod +x dist/index.js","build:sdk":"tsup src/sdk.ts --dts --sourcemap --format esm,cjs --out-dir dist/sdk","build":"npm run build:cli && npm run build:sdk","test":"jest","prepublishOnly":"npm run build","test:watch":"jest --watch","test:coverage":"jest --coverage","lint":"eslint src tests --ext .ts","lint:fix":"eslint src tests --ext .ts --fix","format":"prettier --write src tests","format:check":"prettier --check src tests","clean":"","prebuild":"npm run clean && node scripts/generate-config-schema.js","pretest":"node scripts/generate-config-schema.js && npm run build:cli","prepare":"husky","pre-commit":"lint-staged","deploy:site":"cd site && npx wrangler pages deploy . --project-name=visor-site --commit-dirty=true","deploy:worker":"npx wrangler deploy","deploy":"npm run deploy:site && npm run deploy:worker","release":"./scripts/release.sh","release:patch":"./scripts/release.sh patch","release:minor":"./scripts/release.sh minor","release:major":"./scripts/release.sh major","release:prerelease":"./scripts/release.sh prerelease","docs:validate":"node scripts/validate-readme-links.js","workshop:setup":"npm install -D reveal-md@6.1.2","workshop:serve":"cd workshop && reveal-md slides.md -w","workshop:export":"reveal-md workshop/slides.md --static workshop/build","workshop:pdf":"reveal-md workshop/slides.md --print workshop/Visor-Workshop.pdf --print-size letter","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\\"","workshop:pdf:a4":"reveal-md workshop/slides.md --print workshop/Visor-Workshop-A4.pdf --print-size A4","workshop:build":"npm run workshop:export && npm run workshop:pdf"},"keywords":["code-review","ai","github-action","cli","pr-review","visor"],"author":"Probe Labs","license":"MIT","description":"AI-powered code review tool for GitHub Pull Requests - CLI and GitHub Action","repository":{"type":"git","url":"git+https://github.com/probelabs/visor.git"},"bugs":{"url":"https://github.com/probelabs/visor/issues"},"homepage":"https://github.com/probelabs/visor#readme","dependencies":{"@actions/core":"^1.11.1","@modelcontextprotocol/sdk":"^1.20.1","@nyariv/sandboxjs":"^0.8.25","@octokit/action":"^8.0.2","@octokit/auth-app":"^8.1.0","@octokit/core":"^7.0.3","@octokit/rest":"^22.0.0","@probelabs/probe":"^0.6.0-rc154","@types/commander":"^2.12.0","@types/uuid":"^10.0.0","ajv":"^8.17.1","ajv-formats":"^3.0.1","cli-table3":"^0.6.5","commander":"^14.0.0","dotenv":"^17.2.3","ignore":"^7.0.5","js-yaml":"^4.1.0","liquidjs":"^10.21.1","node-cron":"^3.0.3","open":"^9.1.0","simple-git":"^3.28.0","uuid":"^11.1.0","ws":"^8.18.3"},"optionalDependencies":{"@opentelemetry/api":"^1.9.0","@opentelemetry/core":"^1.30.1","@opentelemetry/exporter-trace-otlp-grpc":"^0.203.0","@opentelemetry/exporter-trace-otlp-http":"^0.203.0","@opentelemetry/instrumentation":"^0.203.0","@opentelemetry/resources":"^1.30.1","@opentelemetry/sdk-metrics":"^1.30.1","@opentelemetry/sdk-node":"^0.203.0","@opentelemetry/sdk-trace-base":"^1.30.1","@opentelemetry/semantic-conventions":"^1.30.1"},"devDependencies":{"@eslint/js":"^9.34.0","@kie/act-js":"^2.6.2","@kie/mock-github":"^2.0.1","@types/jest":"^30.0.0","@types/js-yaml":"^4.0.9","@types/node":"^24.3.0","@types/node-cron":"^3.0.11","@types/ws":"^8.18.1","@typescript-eslint/eslint-plugin":"^8.42.0","@typescript-eslint/parser":"^8.42.0","@vercel/ncc":"^0.38.4","eslint":"^9.34.0","eslint-config-prettier":"^10.1.8","eslint-plugin-prettier":"^5.5.4","husky":"^9.1.7","jest":"^30.1.3","lint-staged":"^16.1.6","prettier":"^3.6.2","reveal-md":"^6.1.2","ts-jest":"^29.4.1","ts-json-schema-generator":"^1.5.1","ts-node":"^10.9.2","tsup":"^8.5.0","typescript":"^5.9.2","wrangler":"^3.0.0"},"peerDependencies":{"@anthropic/claude-code-sdk":"^1.0.0"},"peerDependenciesMeta":{"@anthropic/claude-code-sdk":{"optional":true}},"directories":{"test":"tests"},"lint-staged":{"src/**/*.{ts,js}":["eslint --fix","prettier --write"],"tests/**/*.{ts,js}":["eslint --fix","prettier --write"],"*.{json,md,yml,yaml}":["prettier --write"]}}');
|
|
271777
271775
|
|
|
271778
271776
|
/***/ })
|
|
271779
271777
|
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import {
|
|
2
|
+
CheckExecutionEngine
|
|
3
|
+
} from "./chunk-BVFNRCHT.mjs";
|
|
4
|
+
import "./chunk-TUTOLSFV.mjs";
|
|
5
|
+
import "./chunk-B5QBV2QJ.mjs";
|
|
6
|
+
import "./chunk-U7X54EMV.mjs";
|
|
7
|
+
import "./chunk-WMJKH4XE.mjs";
|
|
8
|
+
export {
|
|
9
|
+
CheckExecutionEngine
|
|
10
|
+
};
|
|
11
|
+
//# sourceMappingURL=check-execution-engine-PJZ4ZOKG.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
|