@nordhavnhq/runner 0.0.0-stage → 0.95.0
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/bin/cliclick +0 -0
- package/dist/brand.d.ts +5 -0
- package/dist/brand.js +18 -0
- package/dist/cli/agent.d.ts +9 -0
- package/dist/cli/agent.js +80 -0
- package/dist/cli/folder.d.ts +2 -0
- package/dist/cli/folder.js +103 -0
- package/dist/cli/init.d.ts +2 -0
- package/dist/cli/init.js +67 -0
- package/dist/cli/lifecycle.d.ts +3 -0
- package/dist/cli/lifecycle.js +149 -0
- package/dist/cli/link.d.ts +42 -0
- package/dist/cli/link.js +314 -0
- package/dist/cli/logs.d.ts +2 -0
- package/dist/cli/logs.js +147 -0
- package/dist/cli/prompts.d.ts +7 -0
- package/dist/cli/prompts.js +13 -0
- package/dist/cli/ps.d.ts +2 -0
- package/dist/cli/ps.js +81 -0
- package/dist/cli/relay.d.ts +4 -0
- package/dist/cli/relay.js +29 -0
- package/dist/cli/update.d.ts +6 -0
- package/dist/cli/update.js +131 -0
- package/dist/config.d.ts +166 -0
- package/dist/config.js +383 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +145 -0
- package/dist/legacy-env.d.ts +4 -0
- package/dist/legacy-env.js +32 -0
- package/dist/paths.d.ts +37 -0
- package/dist/paths.js +92 -0
- package/dist/runtime/daemon.d.ts +57 -0
- package/dist/runtime/daemon.js +159 -0
- package/dist/runtime/dev-start.d.ts +31 -0
- package/dist/runtime/dev-start.js +110 -0
- package/dist/runtime/file-claims.d.ts +58 -0
- package/dist/runtime/file-claims.js +174 -0
- package/dist/runtime/fs-browse.d.ts +18 -0
- package/dist/runtime/fs-browse.js +104 -0
- package/dist/runtime/fs-checkout.d.ts +154 -0
- package/dist/runtime/fs-checkout.js +1049 -0
- package/dist/runtime/fs-git-index.d.ts +22 -0
- package/dist/runtime/fs-git-index.js +133 -0
- package/dist/runtime/fs-git.d.ts +16 -0
- package/dist/runtime/fs-git.js +424 -0
- package/dist/runtime/git-relay.d.ts +46 -0
- package/dist/runtime/git-relay.js +259 -0
- package/dist/runtime/git-unpushed.d.ts +36 -0
- package/dist/runtime/git-unpushed.js +93 -0
- package/dist/runtime/node-version.d.ts +12 -0
- package/dist/runtime/node-version.js +39 -0
- package/dist/runtime/preview-tunnel.d.ts +16 -0
- package/dist/runtime/preview-tunnel.js +135 -0
- package/dist/runtime/processes.d.ts +61 -0
- package/dist/runtime/processes.js +408 -0
- package/dist/runtime/project-node-download.d.ts +17 -0
- package/dist/runtime/project-node-download.js +137 -0
- package/dist/runtime/project-node.d.ts +65 -0
- package/dist/runtime/project-node.js +223 -0
- package/dist/runtime/reap-scratch.d.ts +22 -0
- package/dist/runtime/reap-scratch.js +112 -0
- package/dist/runtime/spill-tool-output.d.ts +14 -0
- package/dist/runtime/spill-tool-output.js +84 -0
- package/dist/runtime/up.d.ts +6 -0
- package/dist/runtime/up.js +1325 -0
- package/dist/tools/_coerce.d.ts +2 -0
- package/dist/tools/_coerce.js +26 -0
- package/dist/tools/_commit-scope.d.ts +14 -0
- package/dist/tools/_commit-scope.js +70 -0
- package/dist/tools/_jail.d.ts +68 -0
- package/dist/tools/_jail.js +209 -0
- package/dist/tools/_output.d.ts +24 -0
- package/dist/tools/_output.js +48 -0
- package/dist/tools/_ripgrep.d.ts +46 -0
- package/dist/tools/_ripgrep.js +148 -0
- package/dist/tools/_run-worktree.d.ts +10 -0
- package/dist/tools/_run-worktree.js +27 -0
- package/dist/tools/_shell-words.d.ts +15 -0
- package/dist/tools/_shell-words.js +43 -0
- package/dist/tools/_sonar/astro.d.ts +6 -0
- package/dist/tools/_sonar/astro.js +45 -0
- package/dist/tools/_sonar/blade.d.ts +3 -0
- package/dist/tools/_sonar/blade.js +53 -0
- package/dist/tools/_sonar/build.d.ts +44 -0
- package/dist/tools/_sonar/build.js +147 -0
- package/dist/tools/_sonar/changed.d.ts +21 -0
- package/dist/tools/_sonar/changed.js +230 -0
- package/dist/tools/_sonar/diagnose/delta.d.ts +27 -0
- package/dist/tools/_sonar/diagnose/delta.js +64 -0
- package/dist/tools/_sonar/diagnose/detect.d.ts +39 -0
- package/dist/tools/_sonar/diagnose/detect.js +117 -0
- package/dist/tools/_sonar/diagnose/index.d.ts +13 -0
- package/dist/tools/_sonar/diagnose/index.js +217 -0
- package/dist/tools/_sonar/diagnose/lint-worker.d.ts +1 -0
- package/dist/tools/_sonar/diagnose/lint-worker.js +48 -0
- package/dist/tools/_sonar/diagnose/pool.d.ts +22 -0
- package/dist/tools/_sonar/diagnose/pool.js +149 -0
- package/dist/tools/_sonar/diagnose/rules.d.ts +23 -0
- package/dist/tools/_sonar/diagnose/rules.js +131 -0
- package/dist/tools/_sonar/diagnose/types-worker.d.ts +1 -0
- package/dist/tools/_sonar/diagnose/types-worker.js +183 -0
- package/dist/tools/_sonar/files.d.ts +14 -0
- package/dist/tools/_sonar/files.js +121 -0
- package/dist/tools/_sonar/graph.d.ts +34 -0
- package/dist/tools/_sonar/graph.js +164 -0
- package/dist/tools/_sonar/hints.d.ts +116 -0
- package/dist/tools/_sonar/hints.js +545 -0
- package/dist/tools/_sonar/imports.d.ts +38 -0
- package/dist/tools/_sonar/imports.js +275 -0
- package/dist/tools/_sonar/index.d.ts +79 -0
- package/dist/tools/_sonar/index.js +462 -0
- package/dist/tools/_sonar/keys.d.ts +5 -0
- package/dist/tools/_sonar/keys.js +248 -0
- package/dist/tools/_sonar/laravel-routes.d.ts +15 -0
- package/dist/tools/_sonar/laravel-routes.js +263 -0
- package/dist/tools/_sonar/laravel.d.ts +64 -0
- package/dist/tools/_sonar/laravel.js +326 -0
- package/dist/tools/_sonar/location.d.ts +33 -0
- package/dist/tools/_sonar/location.js +137 -0
- package/dist/tools/_sonar/map.d.ts +43 -0
- package/dist/tools/_sonar/map.js +212 -0
- package/dist/tools/_sonar/parse.d.ts +3 -0
- package/dist/tools/_sonar/parse.js +76 -0
- package/dist/tools/_sonar/prewarm.d.ts +9 -0
- package/dist/tools/_sonar/prewarm.js +96 -0
- package/dist/tools/_sonar/prisma.d.ts +9 -0
- package/dist/tools/_sonar/prisma.js +51 -0
- package/dist/tools/_sonar/refs.d.ts +7 -0
- package/dist/tools/_sonar/refs.js +273 -0
- package/dist/tools/_sonar/render.d.ts +66 -0
- package/dist/tools/_sonar/render.js +498 -0
- package/dist/tools/_sonar/resolve.d.ts +63 -0
- package/dist/tools/_sonar/resolve.js +402 -0
- package/dist/tools/_sonar/roots.d.ts +4 -0
- package/dist/tools/_sonar/roots.js +42 -0
- package/dist/tools/_sonar/routes.d.ts +5 -0
- package/dist/tools/_sonar/routes.js +247 -0
- package/dist/tools/_sonar/serve.d.ts +12 -0
- package/dist/tools/_sonar/serve.js +104 -0
- package/dist/tools/_sonar/suggest.d.ts +23 -0
- package/dist/tools/_sonar/suggest.js +114 -0
- package/dist/tools/_sonar/tests.d.ts +21 -0
- package/dist/tools/_sonar/tests.js +134 -0
- package/dist/tools/_sonar/tsconfig.d.ts +34 -0
- package/dist/tools/_sonar/tsconfig.js +188 -0
- package/dist/tools/_sonar/types.d.ts +81 -0
- package/dist/tools/_sonar/types.js +6 -0
- package/dist/tools/_symbols.d.ts +27 -0
- package/dist/tools/_symbols.js +461 -0
- package/dist/tools/_test-report.d.ts +47 -0
- package/dist/tools/_test-report.js +203 -0
- package/dist/tools/_touched.d.ts +44 -0
- package/dist/tools/_touched.js +195 -0
- package/dist/tools/_upload.d.ts +26 -0
- package/dist/tools/_upload.js +132 -0
- package/dist/tools/_worktree-setup.d.ts +29 -0
- package/dist/tools/_worktree-setup.js +204 -0
- package/dist/tools/browser.d.ts +2 -0
- package/dist/tools/browser.js +8 -0
- package/dist/tools/commit-guard.d.ts +44 -0
- package/dist/tools/commit-guard.js +165 -0
- package/dist/tools/computer.d.ts +13 -0
- package/dist/tools/computer.js +952 -0
- package/dist/tools/console.d.ts +44 -0
- package/dist/tools/console.js +739 -0
- package/dist/tools/database.d.ts +28 -0
- package/dist/tools/database.js +152 -0
- package/dist/tools/filesystem.d.ts +36 -0
- package/dist/tools/filesystem.js +506 -0
- package/dist/tools/git-tag.d.ts +10 -0
- package/dist/tools/git-tag.js +164 -0
- package/dist/tools/git.d.ts +52 -0
- package/dist/tools/git.js +1272 -0
- package/dist/tools/http.d.ts +12 -0
- package/dist/tools/http.js +119 -0
- package/dist/tools/image.d.ts +8 -0
- package/dist/tools/image.js +551 -0
- package/dist/tools/index.d.ts +13 -0
- package/dist/tools/index.js +58 -0
- package/dist/tools/outline.d.ts +20 -0
- package/dist/tools/outline.js +98 -0
- package/dist/tools/search.d.ts +17 -0
- package/dist/tools/search.js +391 -0
- package/dist/tools/sonar.d.ts +17 -0
- package/dist/tools/sonar.js +231 -0
- package/dist/tools/testing.d.ts +36 -0
- package/dist/tools/testing.js +273 -0
- package/dist/tools/upload.d.ts +8 -0
- package/dist/tools/upload.js +106 -0
- package/dist/tools/webcam.d.ts +28 -0
- package/dist/tools/webcam.js +967 -0
- package/dist/update/install-kind.d.ts +35 -0
- package/dist/update/install-kind.js +109 -0
- package/dist/update/install.d.ts +32 -0
- package/dist/update/install.js +187 -0
- package/dist/update/manifest.d.ts +18 -0
- package/dist/update/manifest.js +73 -0
- package/dist/update/peers.d.ts +18 -0
- package/dist/update/peers.js +43 -0
- package/dist/update/policy.d.ts +20 -0
- package/dist/update/policy.js +49 -0
- package/dist/update/supervisor.d.ts +25 -0
- package/dist/update/supervisor.js +83 -0
- package/dist/update/updater.d.ts +44 -0
- package/dist/update/updater.js +116 -0
- package/dist/utils/format.d.ts +50 -0
- package/dist/utils/format.js +190 -0
- package/dist/version.d.ts +17 -0
- package/dist/version.js +63 -0
- package/dist/version.json +5 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/act-tools.d.ts +15 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/act-tools.js +541 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/cast-hub.d.ts +25 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/cast-hub.js +137 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/guard.d.ts +21 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/guard.js +104 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/host-protocol.d.ts +47 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/host-protocol.js +41 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/host.d.ts +18 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/host.js +15 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/index.d.ts +13 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/index.js +28 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/live-input.d.ts +74 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/live-input.js +93 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/live-open.d.ts +4 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/live-open.js +57 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/live.d.ts +148 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/live.js +179 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/local-live.d.ts +31 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/local-live.js +262 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/marks.d.ts +36 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/marks.js +173 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/page-events.d.ts +27 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/page-events.js +82 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/page-tools.d.ts +13 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/page-tools.js +526 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/params.d.ts +12 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/params.js +32 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/pick.d.ts +24 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/pick.js +76 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/session.d.ts +225 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/session.js +507 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/shots.d.ts +11 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/shots.js +103 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/show.d.ts +10 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/show.js +190 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/target.d.ts +37 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/target.js +82 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/tour.d.ts +19 -0
- package/node_modules/@nordhavnhq/runner-browser/dist/tour.js +178 -0
- package/node_modules/@nordhavnhq/runner-browser/package.json +18 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/config.d.ts +96 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/config.js +25 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/connection.d.ts +276 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/connection.js +507 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/constants.d.ts +48 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/constants.js +95 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/batch.d.ts +94 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/batch.js +219 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/calls.d.ts +136 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/calls.js +214 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/fs.d.ts +735 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/fs.js +40 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/loop.d.ts +362 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/loop.js +703 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/own-files.d.ts +105 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/own-files.js +202 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/phases.d.ts +204 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/phases.js +497 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/pins.d.ts +45 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/pins.js +176 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/processes.d.ts +74 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/processes.js +72 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/release-tag.d.ts +59 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/release-tag.js +117 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/replay.d.ts +62 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/replay.js +84 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/tool-names.d.ts +27 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/tool-names.js +80 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/version.d.ts +22 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/version.js +22 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/wire.d.ts +595 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/contract/wire.js +85 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/index.d.ts +43 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/index.js +50 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/inference.d.ts +135 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/inference.js +945 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/mcp.d.ts +67 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/mcp.js +47 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/platform.d.ts +21 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/platform.js +25 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/auto-load.d.ts +39 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/auto-load.js +67 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/background-commands.d.ts +61 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/background-commands.js +58 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/chat-run-ends.d.ts +23 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/chat-run-ends.js +42 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/duration.d.ts +6 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/duration.js +12 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/events.d.ts +150 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/events.js +36 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/extract-json.d.ts +14 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/extract-json.js +49 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/handle-chat.d.ts +109 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/handle-chat.js +894 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/handle-task.d.ts +73 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/handle-task.js +765 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/loop.d.ts +246 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/loop.js +621 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/messages.d.ts +88 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/messages.js +188 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/pending-steers.d.ts +15 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/pending-steers.js +10 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/phased-loop.d.ts +16 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/phased-loop.js +97 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/project-instructions.d.ts +22 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/project-instructions.js +47 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/run-tools.d.ts +26 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/run-tools.js +48 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/scratch-prompt.d.ts +8 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/scratch-prompt.js +19 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/side-question.d.ts +76 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/side-question.js +155 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/task-validation.d.ts +43 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/task-validation.js +37 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/unload-toolset.d.ts +49 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/unload-toolset.js +104 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/write-scope.d.ts +16 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/runtime/write-scope.js +6 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/tools/delegate.d.ts +86 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/tools/delegate.js +141 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/tools/index.d.ts +179 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/tools/index.js +35 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/tools/mcp.d.ts +21 -0
- package/node_modules/@nordhavnhq/runner-runtime/dist/tools/mcp.js +179 -0
- package/node_modules/@nordhavnhq/runner-runtime/package.json +18 -0
- package/package.json +33 -4
- package/README.md +0 -3
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import { readFileSync } from 'node:fs';
|
|
2
|
+
import { join } from 'node:path';
|
|
3
|
+
import { runRipgrep } from '../_ripgrep.js';
|
|
4
|
+
import { inScope, isTestPath } from './graph.js';
|
|
5
|
+
import { Budget, fileSymbols, GROUP_OVER, GROUP_OVER_WITHIN, listed, pushFolderGroups } from './render.js';
|
|
6
|
+
import { closeNames, folderGroups } from './suggest.js';
|
|
7
|
+
// ─── Sonar: where a symbol is used ──────────
|
|
8
|
+
//
|
|
9
|
+
// The index narrows the search: the files that define the name, the files
|
|
10
|
+
// that import those (one more hop through a re-export), and for a component
|
|
11
|
+
// the files using its tag. Only those are read and scanned for the word. A
|
|
12
|
+
// name the index has no definition for falls back to a plain text search
|
|
13
|
+
// over the repo, and says so.
|
|
14
|
+
const MAX_LINES_PER_FILE = 12;
|
|
15
|
+
const MAX_FILES_SHOWN = 40;
|
|
16
|
+
/** Over GROUP_OVER files: this many files by use count under the folder rollup. */
|
|
17
|
+
const TOP_FILES = 10;
|
|
18
|
+
const TOP_FILE_MIN_LINES = 3;
|
|
19
|
+
// Template files, where `</X>` closes a tag that already counted at its `<X`.
|
|
20
|
+
const TEMPLATE_FILE = /\.(vue|astro|svelte|blade\.php)$/;
|
|
21
|
+
const CLOSING_TAG = /<\/[\w.:-]+\s*>/g;
|
|
22
|
+
/** The line as tested for a use: in a template file, closing tags are not uses. */
|
|
23
|
+
function usable(path, text) {
|
|
24
|
+
return TEMPLATE_FILE.test(path) ? text.replace(CLOSING_TAG, '') : text;
|
|
25
|
+
}
|
|
26
|
+
function escapeRe(s) {
|
|
27
|
+
return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
28
|
+
}
|
|
29
|
+
function kebab(name) {
|
|
30
|
+
return name.replace(/([a-z0-9])([A-Z])/g, '$1-$2').toLowerCase();
|
|
31
|
+
}
|
|
32
|
+
function findDefinitions(index, word, parent, path) {
|
|
33
|
+
const pick = (fold) => {
|
|
34
|
+
const out = [];
|
|
35
|
+
for (const f of index.files.values()) {
|
|
36
|
+
if (path && f.path !== path)
|
|
37
|
+
continue;
|
|
38
|
+
for (const s of fileSymbols(f)) {
|
|
39
|
+
if (fold(s.name) !== fold(word))
|
|
40
|
+
continue;
|
|
41
|
+
if (parent !== null && fold(s.parent ?? '') !== fold(parent))
|
|
42
|
+
continue;
|
|
43
|
+
out.push({ file: f, symbol: s });
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
return out;
|
|
47
|
+
};
|
|
48
|
+
const exact = pick(v => v);
|
|
49
|
+
return exact.length > 0 ? exact : pick(v => v.toLowerCase());
|
|
50
|
+
}
|
|
51
|
+
function reexports(f, word) {
|
|
52
|
+
return f.imports.some(i => i.reexport && (i.names ?? []).some(n => n === '*' || n === word));
|
|
53
|
+
}
|
|
54
|
+
/** Files worth scanning: the definers, their importers, and one hop through a re-export. */
|
|
55
|
+
function refCandidates(index, defs, word) {
|
|
56
|
+
const out = new Set();
|
|
57
|
+
for (const d of defs) {
|
|
58
|
+
out.add(d.file.path);
|
|
59
|
+
for (const imp of index.importers.get(d.file.path) ?? []) {
|
|
60
|
+
out.add(imp);
|
|
61
|
+
const via = index.files.get(imp);
|
|
62
|
+
if (via && reexports(via, word))
|
|
63
|
+
for (const next of index.importers.get(imp) ?? [])
|
|
64
|
+
out.add(next);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
return [...out];
|
|
68
|
+
}
|
|
69
|
+
function scanFile(root, path, re) {
|
|
70
|
+
let content;
|
|
71
|
+
try {
|
|
72
|
+
content = readFileSync(join(root, path), 'utf-8');
|
|
73
|
+
}
|
|
74
|
+
catch {
|
|
75
|
+
return null;
|
|
76
|
+
}
|
|
77
|
+
const lines = [];
|
|
78
|
+
content.split('\n').forEach((text, i) => { if (re.test(usable(path, text)))
|
|
79
|
+
lines.push({ line: i + 1, text: text.trim().slice(0, 140) }); });
|
|
80
|
+
return lines.length > 0 ? { path, lines } : null;
|
|
81
|
+
}
|
|
82
|
+
function pushHits(out, hits, defLines) {
|
|
83
|
+
for (const h of hits.slice(0, MAX_FILES_SHOWN)) {
|
|
84
|
+
out.push(`${h.path} (${h.lines.length})`);
|
|
85
|
+
for (const l of h.lines.slice(0, MAX_LINES_PER_FILE)) {
|
|
86
|
+
out.push(` ${l.line}: ${defLines.get(h.path)?.has(l.line) ? '[def] ' : ''}${l.text}`);
|
|
87
|
+
}
|
|
88
|
+
if (h.lines.length > MAX_LINES_PER_FILE)
|
|
89
|
+
out.push(` +${h.lines.length - MAX_LINES_PER_FILE} more lines`);
|
|
90
|
+
}
|
|
91
|
+
if (hits.length > MAX_FILES_SHOWN)
|
|
92
|
+
out.push(`+${hits.length - MAX_FILES_SHOWN} more files`);
|
|
93
|
+
}
|
|
94
|
+
/** Many files: lines per folder and the files that use it most, instead of every line. */
|
|
95
|
+
function pushSummary(out, hits) {
|
|
96
|
+
const lineCount = new Map(hits.map(h => [h.path, h.lines.length]));
|
|
97
|
+
pushFolderGroups(out, folderGroups(hits.map(h => h.path), p => lineCount.get(p) ?? 0), 'files, lines');
|
|
98
|
+
// Files that name it 1 or 2 times (an import and a call) are the norm, not worth a row.
|
|
99
|
+
const top = hits.filter(h => h.lines.length >= TOP_FILE_MIN_LINES).sort((a, b) => b.lines.length - a.lines.length || a.path.localeCompare(b.path)).slice(0, TOP_FILES);
|
|
100
|
+
if (top.length > 0)
|
|
101
|
+
out.push(` top files (lines):`);
|
|
102
|
+
for (const h of top)
|
|
103
|
+
out.push(` ${String(h.lines.length).padStart(4)} ${h.path}`);
|
|
104
|
+
out.push('Pass `path` (a folder or a file from above) to see the lines there.');
|
|
105
|
+
}
|
|
106
|
+
/** Every line per file when few files (or narrowed to a folder), else the folder summary. */
|
|
107
|
+
function pushUses(out, hits, defLines, within) {
|
|
108
|
+
const flat = hits.length <= (within ? GROUP_OVER_WITHIN : GROUP_OVER);
|
|
109
|
+
if (flat || folderGroups(hits.map(h => h.path)).length <= 1)
|
|
110
|
+
pushHits(out, hits, defLines);
|
|
111
|
+
else
|
|
112
|
+
pushSummary(out, hits);
|
|
113
|
+
}
|
|
114
|
+
function sortHits(hits, first) {
|
|
115
|
+
const rank = (h) => (first.has(h.path) ? 0 : isTestPath(h.path) ? 2 : 1);
|
|
116
|
+
return hits.sort((a, b) => rank(a) - rank(b) || a.path.localeCompare(b.path));
|
|
117
|
+
}
|
|
118
|
+
async function textFallback(index, word, within) {
|
|
119
|
+
const pattern = `\\b${escapeRe(word)}\\b`;
|
|
120
|
+
const wordRe = new RegExp(`\\b${escapeRe(word)}\\b`);
|
|
121
|
+
const rg = await runRipgrep({ pattern, cwd: index.root, ignoreCase: false, mode: 'content', context: 0, maxFileBytes: 512 * 1024, maxRecords: 500 });
|
|
122
|
+
const byFile = new Map();
|
|
123
|
+
if (rg && rg.kind === 'content') {
|
|
124
|
+
for (const l of rg.lines) {
|
|
125
|
+
if (!l.match || !wordRe.test(usable(l.path, l.text)))
|
|
126
|
+
continue;
|
|
127
|
+
const h = byFile.get(l.path) ?? { path: l.path, lines: [] };
|
|
128
|
+
h.lines.push({ line: l.line, text: l.text.trim().slice(0, 140) });
|
|
129
|
+
byFile.set(l.path, h);
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
const re = new RegExp(`(?<![\\w$])${escapeRe(word)}(?![\\w$])`);
|
|
134
|
+
for (const p of index.files.keys()) {
|
|
135
|
+
const h = scanFile(index.root, p, re);
|
|
136
|
+
if (h)
|
|
137
|
+
byFile.set(p, h);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
const hits = sortHits([...byFile.values()].filter(h => inScope(h.path, within)), new Set());
|
|
141
|
+
const out = new Budget();
|
|
142
|
+
const under = within ? ` under ${within}` : ' over the repo';
|
|
143
|
+
out.push(`No definition of "${word}" in the index: TEXT MATCH ONLY${under} (${hits.length} file(s)${rg?.kind === 'content' && rg.truncated ? ', stopped at 500 lines' : ''}).`);
|
|
144
|
+
if (hits.length === 0) {
|
|
145
|
+
const close = closeNames(word, [...index.files.values()].flatMap(f => f.symbols.map(s => s.name)));
|
|
146
|
+
return `${out.text()}\nNothing found. ${close.length ? `Did you mean: ${close.join(', ')}` : 'Check the spelling, or runner_sonar { action: "find" } for similar names.'}`;
|
|
147
|
+
}
|
|
148
|
+
pushUses(out, hits, new Map(), within);
|
|
149
|
+
return out.text('a longer, more specific name narrows the text search');
|
|
150
|
+
}
|
|
151
|
+
function defsHeader(word, defs, path) {
|
|
152
|
+
const files = [...new Set(defs.map(d => d.file.path))];
|
|
153
|
+
const where = defs.slice(0, 6).map(d => `${d.symbol.kind} ${d.file.path}:${d.symbol.start}`);
|
|
154
|
+
const ambiguous = files.length > 1 && !path ? ` Defined in ${files.length} files: pass \`path\` to pick one; uses of all are shown.` : '';
|
|
155
|
+
return `refs of "${word}": ${listed(where, 6)}.${ambiguous}`;
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Uses of a symbol, read from the files the import graph points at. `path`
|
|
159
|
+
* is a file that defines it (picks that definition), or a folder or file to
|
|
160
|
+
* show the uses in (every definition).
|
|
161
|
+
*/
|
|
162
|
+
export async function renderRefs(index, query, path) {
|
|
163
|
+
const q = query.trim().replace(/\(\)$/, '').replace(/::|->|#/g, '.');
|
|
164
|
+
const dot = q.lastIndexOf('.');
|
|
165
|
+
const word = dot === -1 ? q : q.slice(dot + 1);
|
|
166
|
+
const parent = dot === -1 ? null : q.slice(0, dot).split('.').pop();
|
|
167
|
+
if (!/^[\w$-]+$/.test(word))
|
|
168
|
+
return `Error: refs takes a symbol name ("saveTask", "TaskStore.save"), not "${query}". Search text with runner_grep.`;
|
|
169
|
+
const { defs, picked, within } = pickDefinitions(index, word, parent, path);
|
|
170
|
+
if (defs.length === 0)
|
|
171
|
+
return textFallback(index, word, within);
|
|
172
|
+
const model = defs.find(d => d.file.lang === 'prisma' && d.symbol.kind === 'model');
|
|
173
|
+
const viaClient = model ? await prismaClientHits(index, model.symbol.name, within) : [];
|
|
174
|
+
return renderUses(index, defs, picked ? path : undefined, within, viaClient);
|
|
175
|
+
}
|
|
176
|
+
// ─── Prisma models ──────────────────────────
|
|
177
|
+
//
|
|
178
|
+
// The generated client is gitignored, so no import edge leads from a model
|
|
179
|
+
// to its users: they are found by how the client is used instead. Delegate
|
|
180
|
+
// calls (`db.task.findMany(`, `tx.task.update(`), the generated types
|
|
181
|
+
// (`Prisma.TaskWhereInput`) and the model type itself in files that import it
|
|
182
|
+
// from the client.
|
|
183
|
+
const PRISMA_OPS = 'findMany|findFirst|findFirstOrThrow|findUnique|findUniqueOrThrow|create|createMany|createManyAndReturn|update|updateMany|updateManyAndReturn|upsert|delete|deleteMany|count|aggregate|groupBy';
|
|
184
|
+
const CLIENT_GLOB = '*.{ts,tsx,js,jsx,mjs,cjs,mts,cts,vue,svelte,astro}';
|
|
185
|
+
function mergeHits(into, more) {
|
|
186
|
+
const have = into.get(more.path);
|
|
187
|
+
if (!have) {
|
|
188
|
+
into.set(more.path, { path: more.path, lines: [...more.lines] });
|
|
189
|
+
return;
|
|
190
|
+
}
|
|
191
|
+
const seen = new Set(have.lines.map(l => l.line));
|
|
192
|
+
for (const l of more.lines)
|
|
193
|
+
if (!seen.has(l.line))
|
|
194
|
+
have.lines.push(l);
|
|
195
|
+
have.lines.sort((a, b) => a.line - b.line);
|
|
196
|
+
}
|
|
197
|
+
/** Uses of a Prisma model through the client: delegate calls, generated types, imported model types. */
|
|
198
|
+
async function prismaClientHits(index, model, within) {
|
|
199
|
+
const delegate = model[0].toLowerCase() + model.slice(1);
|
|
200
|
+
const byFile = new Map();
|
|
201
|
+
const pattern = `\\.${delegate}\\.(?:${PRISMA_OPS})\\b|\\bPrisma\\.${model}[A-Z]\\w*`;
|
|
202
|
+
const rg = await runRipgrep({ pattern, cwd: index.root, ignoreCase: false, mode: 'content', context: 0, maxFileBytes: 512 * 1024, maxRecords: 3000, glob: CLIENT_GLOB });
|
|
203
|
+
if (rg && rg.kind === 'content') {
|
|
204
|
+
for (const l of rg.lines)
|
|
205
|
+
if (l.match)
|
|
206
|
+
mergeHits(byFile, { path: l.path, lines: [{ line: l.line, text: l.text.trim().slice(0, 140) }] });
|
|
207
|
+
}
|
|
208
|
+
else {
|
|
209
|
+
const re = new RegExp(pattern);
|
|
210
|
+
for (const f of index.files.values()) {
|
|
211
|
+
const h = scanFile(index.root, f.path, re);
|
|
212
|
+
if (h)
|
|
213
|
+
mergeHits(byFile, h);
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
const importRe = new RegExp(`import[^;]*\\b${escapeRe(model)}\\b[^;]*from\\s*['"][^'"]*prisma[^'"]*['"]`);
|
|
217
|
+
const wordRe = new RegExp(`(?<![\\w$])${escapeRe(model)}(?![\\w$])`);
|
|
218
|
+
for (const f of index.files.values()) {
|
|
219
|
+
if (!f.imports.some(i => /prisma/i.test(i.spec)))
|
|
220
|
+
continue;
|
|
221
|
+
let src;
|
|
222
|
+
try {
|
|
223
|
+
src = readFileSync(join(index.root, f.path), 'utf-8');
|
|
224
|
+
}
|
|
225
|
+
catch {
|
|
226
|
+
continue;
|
|
227
|
+
}
|
|
228
|
+
if (!importRe.test(src))
|
|
229
|
+
continue;
|
|
230
|
+
const h = scanFile(index.root, f.path, wordRe);
|
|
231
|
+
if (h)
|
|
232
|
+
mergeHits(byFile, h);
|
|
233
|
+
}
|
|
234
|
+
return [...byFile.values()].filter(h => inScope(h.path, within));
|
|
235
|
+
}
|
|
236
|
+
/** `path` that defines the word picks those definitions; any other `path` narrows where uses are shown. */
|
|
237
|
+
function pickDefinitions(index, word, parent, path) {
|
|
238
|
+
const picked = path && index.files.has(path) ? findDefinitions(index, word, parent, path) : [];
|
|
239
|
+
if (picked.length > 0)
|
|
240
|
+
return { defs: picked, picked: true, within: '' };
|
|
241
|
+
return { defs: findDefinitions(index, word, parent), picked: false, within: path ?? '' };
|
|
242
|
+
}
|
|
243
|
+
function renderUses(index, defs, pickedPath, within, viaClient = []) {
|
|
244
|
+
const name = defs[0].symbol.name;
|
|
245
|
+
const isComponent = defs.some(d => d.symbol.kind === 'component');
|
|
246
|
+
// Nuxt also registers every component as `Lazy<Name>` / `<lazy-name>`: those are uses too.
|
|
247
|
+
const re = isComponent
|
|
248
|
+
? new RegExp(`(?<![\\w$])(?:Lazy)?${escapeRe(name)}(?![\\w$])|<(?:lazy-)?${escapeRe(kebab(name))}(?=[\\s/>])`)
|
|
249
|
+
: new RegExp(`(?<![\\w$])${escapeRe(name)}(?![\\w$])`);
|
|
250
|
+
const candidates = refCandidates(index, defs, name).filter(p => inScope(p, within));
|
|
251
|
+
const merged = new Map();
|
|
252
|
+
for (const h of candidates.map(p => scanFile(index.root, p, re)))
|
|
253
|
+
if (h)
|
|
254
|
+
mergeHits(merged, h);
|
|
255
|
+
const namingCandidates = merged.size;
|
|
256
|
+
for (const h of viaClient)
|
|
257
|
+
mergeHits(merged, h);
|
|
258
|
+
const hits = [...merged.values()];
|
|
259
|
+
const defFiles = new Set(defs.map(d => d.file.path));
|
|
260
|
+
const defLines = new Map();
|
|
261
|
+
for (const d of defs)
|
|
262
|
+
defLines.set(d.file.path, new Set([...(defLines.get(d.file.path) ?? []), d.symbol.start]));
|
|
263
|
+
const out = new Budget();
|
|
264
|
+
out.push(defsHeader(name, defs, pickedPath));
|
|
265
|
+
const lines = hits.reduce((n, h) => n + h.lines.length, 0);
|
|
266
|
+
const checked = candidates.length;
|
|
267
|
+
const silent = checked - namingCandidates;
|
|
268
|
+
const client = viaClient.length > 0 ? ` + ${viaClient.length} through the Prisma client (db.${name[0].toLowerCase()}${name.slice(1)}.*, Prisma.${name}*, imported types)` : '';
|
|
269
|
+
out.push(`${checked} file(s) checked${within ? ` under ${within}` : ''} (definers + importers${isComponent ? ' + tag users' : ''})${client}, ${hits.length} name it, ${lines} line(s)${silent > 0 ? `; ${silent} import the file without naming "${name}"` : ''}.`);
|
|
270
|
+
pushUses(out, sortHits(hits, defFiles), defLines, within);
|
|
271
|
+
out.push(`Not seen: auto-imports, dynamic or string references${defs.some(d => d.file.lang === 'php') ? ', Laravel route names, container bindings' : ''}. runner_grep for a full text search.`);
|
|
272
|
+
return out.text('pass `path` to pick one definition');
|
|
273
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { type FolderGroup } from './suggest.js';
|
|
2
|
+
import type { SonarFile, SonarIndex, SonarSymbol } from './types.js';
|
|
3
|
+
export declare const SONAR_MAX_CHARS = 6000;
|
|
4
|
+
/** Lines up to a char budget; counts what it had to leave out. */
|
|
5
|
+
export declare class Budget {
|
|
6
|
+
private readonly max;
|
|
7
|
+
readonly lines: string[];
|
|
8
|
+
private used;
|
|
9
|
+
dropped: number;
|
|
10
|
+
constructor(max?: number);
|
|
11
|
+
/** Add a line; false (and counted) when it no longer fits. */
|
|
12
|
+
push(line: string): boolean;
|
|
13
|
+
get room(): number;
|
|
14
|
+
text(hint?: string): string;
|
|
15
|
+
}
|
|
16
|
+
/** Up to `max` items, then ", +N more". */
|
|
17
|
+
export declare function listed(items: string[], max: number, sepr?: string): string;
|
|
18
|
+
/** What an index that fell behind says (overview header, end of other answers), or null when it is current. */
|
|
19
|
+
export declare function renderStale(index: SonarIndex, opts?: OverviewOptions): string | null;
|
|
20
|
+
/** True when a load did more than serve the index held in memory (a build, a re-read, a removal): worth a line. */
|
|
21
|
+
export declare function loadWasNotable(index: SonarIndex): boolean;
|
|
22
|
+
/** Where the index came from and what its load cost: `cache: disk, updated in 40 ms (2 re-read, 0 gone)`. */
|
|
23
|
+
export declare function renderLoadStats(index: SonarIndex): string;
|
|
24
|
+
export interface OverviewOptions {
|
|
25
|
+
/** A catch-up build runs for this index now (build.ts catchUpSonar). */
|
|
26
|
+
catchingUp?: boolean;
|
|
27
|
+
}
|
|
28
|
+
/** The map of the repo, or of one folder of it; the header says when the index fell behind. */
|
|
29
|
+
export declare function renderOverview(index: SonarIndex, scope: string, opts?: OverviewOptions): string;
|
|
30
|
+
export interface SymbolHit {
|
|
31
|
+
file: SonarFile;
|
|
32
|
+
symbol: SonarSymbol;
|
|
33
|
+
tier: number;
|
|
34
|
+
}
|
|
35
|
+
/** Symbols of a file plus, for a .vue file, the component it is. */
|
|
36
|
+
export declare function fileSymbols(f: SonarFile): SonarSymbol[];
|
|
37
|
+
/** Symbols matching a name: exact, then prefix, then substring (case-insensitive). */
|
|
38
|
+
export declare function findSymbolHits(index: SonarIndex, query: string, scope: string, kind?: string): SymbolHit[];
|
|
39
|
+
/** Names one find asks for at most (`A|B|C`). */
|
|
40
|
+
export declare const FIND_MAX_NAMES = 5;
|
|
41
|
+
/**
|
|
42
|
+
* The code of one symbol with its doc comment: whole up to BODY_MAX_LINES; a
|
|
43
|
+
* longer one with members (a class) lists them, any other shows its first
|
|
44
|
+
* BODY_MAX_LINES lines and how to read on.
|
|
45
|
+
*/
|
|
46
|
+
export declare function renderBody(h: SymbolHit, lineOf: (path: string, line: number) => string, max: number): string;
|
|
47
|
+
/**
|
|
48
|
+
* The ranked matches with their declaration lines; several names (`A|B`) get
|
|
49
|
+
* one block each. With `read`, a name with exactly one definition gets its
|
|
50
|
+
* code too, so the read_file round after a find is not needed.
|
|
51
|
+
*/
|
|
52
|
+
export declare function renderFind(index: SonarIndex, query: string, scope: string, kind: string | undefined, lineOf: (path: string, line: number) => string, read?: boolean): string;
|
|
53
|
+
/** One file: symbols (local consts counted), imports (grouped by folder when many), importers. */
|
|
54
|
+
export declare function renderFile(index: SonarIndex, f: SonarFile, lineOf?: (path: string, line: number) => string, max?: number): string;
|
|
55
|
+
/** A list of files longer than this is shown as folders with counts. */
|
|
56
|
+
export declare const GROUP_OVER = 30;
|
|
57
|
+
/** Narrowed to a folder (`path` for refs, `query` for impact), a list stays flat up to this many. */
|
|
58
|
+
export declare const GROUP_OVER_WITHIN = 80;
|
|
59
|
+
/** Folder rows `dir/ files [lines]`, the biggest first, at most 20. */
|
|
60
|
+
export declare function pushFolderGroups(out: Budget, groups: FolderGroup[], unit: 'files' | 'files, lines'): void;
|
|
61
|
+
/**
|
|
62
|
+
* What depends on a file, by depth, tests apart. A level with more than
|
|
63
|
+
* GROUP_OVER files shows folders with counts; `within` (a folder) lists the
|
|
64
|
+
* files of that folder only.
|
|
65
|
+
*/
|
|
66
|
+
export declare function renderImpact(index: SonarIndex, f: SonarFile, depth: number, within?: string): string;
|