@sentry/warden 0.0.0 → 0.1.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/.github/workflows/ci.yml +1 -1
- package/.github/workflows/release.yml +6 -1
- package/.github/workflows/warden.yml +1 -1
- package/dist/action/159.index.js +523 -0
- package/dist/action/159.index.js.map +1 -0
- package/dist/action/action/index.d.ts +2 -0
- package/dist/action/action/index.d.ts.map +1 -0
- package/dist/action/action/main.d.ts +2 -0
- package/dist/action/action/main.d.ts.map +1 -0
- package/dist/action/cli/args.d.ts +74 -0
- package/dist/action/cli/args.d.ts.map +1 -0
- package/dist/action/cli/args.test.d.ts +2 -0
- package/dist/action/cli/args.test.d.ts.map +1 -0
- package/dist/action/cli/commands/add.d.ts +7 -0
- package/dist/action/cli/commands/add.d.ts.map +1 -0
- package/dist/action/cli/commands/init.d.ts +10 -0
- package/dist/action/cli/commands/init.d.ts.map +1 -0
- package/dist/action/cli/commands/init.test.d.ts +2 -0
- package/dist/action/cli/commands/init.test.d.ts.map +1 -0
- package/dist/action/cli/commands/setup-app/browser.d.ts +9 -0
- package/dist/action/cli/commands/setup-app/browser.d.ts.map +1 -0
- package/dist/action/cli/commands/setup-app/credentials.d.ts +15 -0
- package/dist/action/cli/commands/setup-app/credentials.d.ts.map +1 -0
- package/dist/action/cli/commands/setup-app/manifest.d.ts +24 -0
- package/dist/action/cli/commands/setup-app/manifest.d.ts.map +1 -0
- package/dist/action/cli/commands/setup-app/server.d.ts +28 -0
- package/dist/action/cli/commands/setup-app/server.d.ts.map +1 -0
- package/dist/action/cli/commands/setup-app.d.ts +11 -0
- package/dist/action/cli/commands/setup-app.d.ts.map +1 -0
- package/dist/action/cli/commands/sync.d.ts +9 -0
- package/dist/action/cli/commands/sync.d.ts.map +1 -0
- package/dist/action/cli/context.d.ts +27 -0
- package/dist/action/cli/context.d.ts.map +1 -0
- package/dist/action/cli/files.d.ts +22 -0
- package/dist/action/cli/files.d.ts.map +1 -0
- package/dist/action/cli/files.test.d.ts +2 -0
- package/dist/action/cli/files.test.d.ts.map +1 -0
- package/dist/action/cli/fix.d.ts +41 -0
- package/dist/action/cli/fix.d.ts.map +1 -0
- package/dist/action/cli/fix.test.d.ts +2 -0
- package/dist/action/cli/fix.test.d.ts.map +1 -0
- package/dist/action/cli/git.d.ts +73 -0
- package/dist/action/cli/git.d.ts.map +1 -0
- package/dist/action/cli/git.test.d.ts +2 -0
- package/dist/action/cli/git.test.d.ts.map +1 -0
- package/dist/action/cli/index.d.ts +3 -0
- package/dist/action/cli/index.d.ts.map +1 -0
- package/dist/action/cli/main.d.ts +7 -0
- package/dist/action/cli/main.d.ts.map +1 -0
- package/dist/action/cli/output/box.d.ts +75 -0
- package/dist/action/cli/output/box.d.ts.map +1 -0
- package/dist/action/cli/output/formatters.d.ts +90 -0
- package/dist/action/cli/output/formatters.d.ts.map +1 -0
- package/dist/action/cli/output/formatters.test.d.ts +2 -0
- package/dist/action/cli/output/formatters.test.d.ts.map +1 -0
- package/dist/action/cli/output/icons.d.ts +11 -0
- package/dist/action/cli/output/icons.d.ts.map +1 -0
- package/dist/action/cli/output/index.d.ts +10 -0
- package/dist/action/cli/output/index.d.ts.map +1 -0
- package/dist/action/cli/output/ink-runner.d.ts +9 -0
- package/dist/action/cli/output/ink-runner.d.ts.map +1 -0
- package/dist/action/cli/output/jsonl.d.ts +43 -0
- package/dist/action/cli/output/jsonl.d.ts.map +1 -0
- package/dist/action/cli/output/jsonl.test.d.ts +2 -0
- package/dist/action/cli/output/jsonl.test.d.ts.map +1 -0
- package/dist/action/cli/output/reporter.d.ts +108 -0
- package/dist/action/cli/output/reporter.d.ts.map +1 -0
- package/dist/action/cli/output/tasks.d.ts +89 -0
- package/dist/action/cli/output/tasks.d.ts.map +1 -0
- package/dist/action/cli/output/tty.d.ts +21 -0
- package/dist/action/cli/output/tty.d.ts.map +1 -0
- package/dist/action/cli/output/tty.test.d.ts +2 -0
- package/dist/action/cli/output/tty.test.d.ts.map +1 -0
- package/dist/action/cli/output/verbosity.d.ts +20 -0
- package/dist/action/cli/output/verbosity.d.ts.map +1 -0
- package/dist/action/cli/output/verbosity.test.d.ts +2 -0
- package/dist/action/cli/output/verbosity.test.d.ts.map +1 -0
- package/dist/action/cli/terminal.d.ts +19 -0
- package/dist/action/cli/terminal.d.ts.map +1 -0
- package/dist/action/cli/terminal.test.d.ts +2 -0
- package/dist/action/cli/terminal.test.d.ts.map +1 -0
- package/dist/action/config/index.d.ts +4 -0
- package/dist/action/config/index.d.ts.map +1 -0
- package/dist/action/config/loader.d.ts +27 -0
- package/dist/action/config/loader.d.ts.map +1 -0
- package/dist/action/config/loader.test.d.ts +2 -0
- package/dist/action/config/loader.test.d.ts.map +1 -0
- package/dist/action/config/schema.d.ts +318 -0
- package/dist/action/config/schema.d.ts.map +1 -0
- package/dist/action/config/writer.d.ts +11 -0
- package/dist/action/config/writer.d.ts.map +1 -0
- package/dist/action/config/writer.test.d.ts +2 -0
- package/dist/action/config/writer.test.d.ts.map +1 -0
- package/dist/action/diff/classify.d.ts +29 -0
- package/dist/action/diff/classify.d.ts.map +1 -0
- package/dist/action/diff/classify.test.d.ts +2 -0
- package/dist/action/diff/classify.test.d.ts.map +1 -0
- package/dist/action/diff/coalesce.d.ts +42 -0
- package/dist/action/diff/coalesce.d.ts.map +1 -0
- package/dist/action/diff/coalesce.test.d.ts +2 -0
- package/dist/action/diff/coalesce.test.d.ts.map +1 -0
- package/dist/action/diff/context.d.ts +30 -0
- package/dist/action/diff/context.d.ts.map +1 -0
- package/dist/action/diff/context.test.d.ts +2 -0
- package/dist/action/diff/context.test.d.ts.map +1 -0
- package/dist/action/diff/index.d.ts +5 -0
- package/dist/action/diff/index.d.ts.map +1 -0
- package/dist/action/diff/parser.d.ts +52 -0
- package/dist/action/diff/parser.d.ts.map +1 -0
- package/dist/action/diff/parser.test.d.ts +2 -0
- package/dist/action/diff/parser.test.d.ts.map +1 -0
- package/dist/action/event/context.d.ts +9 -0
- package/dist/action/event/context.d.ts.map +1 -0
- package/dist/action/event/index.d.ts +3 -0
- package/dist/action/event/index.d.ts.map +1 -0
- package/dist/action/event/schedule-context.d.ts +30 -0
- package/dist/action/event/schedule-context.d.ts.map +1 -0
- package/dist/action/examples/examples.integration.test.d.ts +2 -0
- package/dist/action/examples/examples.integration.test.d.ts.map +1 -0
- package/dist/action/examples/index.d.ts +50 -0
- package/dist/action/examples/index.d.ts.map +1 -0
- package/dist/action/examples/index.test.d.ts +2 -0
- package/dist/action/examples/index.test.d.ts.map +1 -0
- package/dist/action/examples/setup.d.ts +2 -0
- package/dist/action/examples/setup.d.ts.map +1 -0
- package/dist/action/index.d.ts +11 -0
- package/dist/action/index.d.ts.map +1 -0
- package/dist/action/index.js +38231 -0
- package/dist/action/index.js.map +1 -0
- package/dist/action/licenses.txt +992 -0
- package/dist/action/main.d.ts +2 -0
- package/dist/action/main.d.ts.map +1 -0
- package/dist/action/main.js +707 -0
- package/dist/action/main.js.map +1 -0
- package/dist/action/output/dedup.d.ts +153 -0
- package/dist/action/output/dedup.d.ts.map +1 -0
- package/dist/action/output/dedup.test.d.ts +2 -0
- package/dist/action/output/dedup.test.d.ts.map +1 -0
- package/dist/action/output/github-checks.d.ts +106 -0
- package/dist/action/output/github-checks.d.ts.map +1 -0
- package/dist/action/output/github-checks.test.d.ts +2 -0
- package/dist/action/output/github-checks.test.d.ts.map +1 -0
- package/dist/action/output/github-issues.d.ts +35 -0
- package/dist/action/output/github-issues.d.ts.map +1 -0
- package/dist/action/output/index.d.ts +6 -0
- package/dist/action/output/index.d.ts.map +1 -0
- package/dist/action/output/issue-renderer.d.ts +20 -0
- package/dist/action/output/issue-renderer.d.ts.map +1 -0
- package/dist/action/output/renderer.d.ts +4 -0
- package/dist/action/output/renderer.d.ts.map +1 -0
- package/dist/action/output/renderer.test.d.ts +2 -0
- package/dist/action/output/renderer.test.d.ts.map +1 -0
- package/dist/action/output/stale.d.ts +31 -0
- package/dist/action/output/stale.d.ts.map +1 -0
- package/dist/action/output/stale.test.d.ts +2 -0
- package/dist/action/output/stale.test.d.ts.map +1 -0
- package/dist/action/output/types.d.ts +31 -0
- package/dist/action/output/types.d.ts.map +1 -0
- package/dist/action/package.json +3 -0
- package/dist/action/sdk/index.d.ts +2 -0
- package/dist/action/sdk/index.d.ts.map +1 -0
- package/dist/action/sdk/runner.d.ts +202 -0
- package/dist/action/sdk/runner.d.ts.map +1 -0
- package/dist/action/sdk/runner.test.d.ts +2 -0
- package/dist/action/sdk/runner.test.d.ts.map +1 -0
- package/dist/action/skills/index.d.ts +5 -0
- package/dist/action/skills/index.d.ts.map +1 -0
- package/dist/action/skills/loader.d.ts +111 -0
- package/dist/action/skills/loader.d.ts.map +1 -0
- package/dist/action/skills/loader.test.d.ts +2 -0
- package/dist/action/skills/loader.test.d.ts.map +1 -0
- package/dist/action/skills/remote.d.ts +117 -0
- package/dist/action/skills/remote.d.ts.map +1 -0
- package/dist/action/skills/remote.test.d.ts +2 -0
- package/dist/action/skills/remote.test.d.ts.map +1 -0
- package/dist/action/sourcemap-register.cjs +1 -0
- package/dist/action/triggers/matcher.d.ts +30 -0
- package/dist/action/triggers/matcher.d.ts.map +1 -0
- package/dist/action/triggers/matcher.test.d.ts +2 -0
- package/dist/action/triggers/matcher.test.d.ts.map +1 -0
- package/dist/action/types/index.d.ts +269 -0
- package/dist/action/types/index.d.ts.map +1 -0
- package/dist/action/utils/async.d.ts +5 -0
- package/dist/action/utils/async.d.ts.map +1 -0
- package/dist/action/utils/index.d.ts +16 -0
- package/dist/action/utils/index.d.ts.map +1 -0
- package/dist/action/utils/index.test.d.ts +2 -0
- package/dist/action/utils/index.test.d.ts.map +1 -0
- package/dist/action/utils/version.d.ts +3 -0
- package/dist/action/utils/version.d.ts.map +1 -0
- package/dist/cli/args.d.ts +74 -0
- package/dist/cli/args.d.ts.map +1 -0
- package/dist/cli/args.js +359 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/args.test.d.ts +2 -0
- package/dist/cli/args.test.d.ts.map +1 -0
- package/dist/cli/args.test.js +392 -0
- package/dist/cli/args.test.js.map +1 -0
- package/dist/cli/commands/add.d.ts +7 -0
- package/dist/cli/commands/add.d.ts.map +1 -0
- package/dist/cli/commands/add.js +380 -0
- package/dist/cli/commands/add.js.map +1 -0
- package/dist/cli/commands/init.d.ts +10 -0
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +113 -0
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/init.test.d.ts +2 -0
- package/dist/cli/commands/init.test.d.ts.map +1 -0
- package/dist/cli/commands/init.test.js +117 -0
- package/dist/cli/commands/init.test.js.map +1 -0
- package/dist/cli/commands/setup-app/browser.d.ts +9 -0
- package/dist/cli/commands/setup-app/browser.d.ts.map +1 -0
- package/dist/cli/commands/setup-app/browser.js +36 -0
- package/dist/cli/commands/setup-app/browser.js.map +1 -0
- package/dist/cli/commands/setup-app/credentials.d.ts +15 -0
- package/dist/cli/commands/setup-app/credentials.d.ts.map +1 -0
- package/dist/cli/commands/setup-app/credentials.js +29 -0
- package/dist/cli/commands/setup-app/credentials.js.map +1 -0
- package/dist/cli/commands/setup-app/manifest.d.ts +24 -0
- package/dist/cli/commands/setup-app/manifest.d.ts.map +1 -0
- package/dist/cli/commands/setup-app/manifest.js +29 -0
- package/dist/cli/commands/setup-app/manifest.js.map +1 -0
- package/dist/cli/commands/setup-app/server.d.ts +28 -0
- package/dist/cli/commands/setup-app/server.d.ts.map +1 -0
- package/dist/cli/commands/setup-app/server.js +136 -0
- package/dist/cli/commands/setup-app/server.js.map +1 -0
- package/dist/cli/commands/setup-app.d.ts +11 -0
- package/dist/cli/commands/setup-app.d.ts.map +1 -0
- package/dist/cli/commands/setup-app.js +139 -0
- package/dist/cli/commands/setup-app.js.map +1 -0
- package/dist/cli/commands/sync.d.ts +9 -0
- package/dist/cli/commands/sync.d.ts.map +1 -0
- package/dist/cli/commands/sync.js +96 -0
- package/dist/cli/commands/sync.js.map +1 -0
- package/dist/cli/context.d.ts +27 -0
- package/dist/cli/context.d.ts.map +1 -0
- package/dist/cli/context.js +101 -0
- package/dist/cli/context.js.map +1 -0
- package/dist/cli/files.d.ts +22 -0
- package/dist/cli/files.d.ts.map +1 -0
- package/dist/cli/files.js +66 -0
- package/dist/cli/files.js.map +1 -0
- package/dist/cli/files.test.d.ts +2 -0
- package/dist/cli/files.test.d.ts.map +1 -0
- package/dist/cli/files.test.js +117 -0
- package/dist/cli/files.test.js.map +1 -0
- package/dist/cli/fix.d.ts +41 -0
- package/dist/cli/fix.d.ts.map +1 -0
- package/dist/cli/fix.js +320 -0
- package/dist/cli/fix.js.map +1 -0
- package/dist/cli/fix.test.d.ts +2 -0
- package/dist/cli/fix.test.d.ts.map +1 -0
- package/dist/cli/fix.test.js +251 -0
- package/dist/cli/fix.test.js.map +1 -0
- package/dist/cli/git.d.ts +73 -0
- package/dist/cli/git.d.ts.map +1 -0
- package/dist/cli/git.js +267 -0
- package/dist/cli/git.js.map +1 -0
- package/dist/cli/git.test.d.ts +2 -0
- package/dist/cli/git.test.d.ts.map +1 -0
- package/dist/cli/git.test.js +96 -0
- package/dist/cli/git.test.js.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +13 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/main.d.ts +7 -0
- package/dist/cli/main.d.ts.map +1 -0
- package/dist/cli/main.js +560 -0
- package/dist/cli/main.js.map +1 -0
- package/dist/cli/output/box.d.ts +75 -0
- package/dist/cli/output/box.d.ts.map +1 -0
- package/dist/cli/output/box.js +191 -0
- package/dist/cli/output/box.js.map +1 -0
- package/dist/cli/output/formatters.d.ts +90 -0
- package/dist/cli/output/formatters.d.ts.map +1 -0
- package/dist/cli/output/formatters.js +248 -0
- package/dist/cli/output/formatters.js.map +1 -0
- package/dist/cli/output/formatters.test.d.ts +2 -0
- package/dist/cli/output/formatters.test.d.ts.map +1 -0
- package/dist/cli/output/formatters.test.js +152 -0
- package/dist/cli/output/formatters.test.js.map +1 -0
- package/dist/cli/output/icons.d.ts +11 -0
- package/dist/cli/output/icons.d.ts.map +1 -0
- package/dist/cli/output/icons.js +11 -0
- package/dist/cli/output/icons.js.map +1 -0
- package/dist/cli/output/index.d.ts +10 -0
- package/dist/cli/output/index.d.ts.map +1 -0
- package/dist/cli/output/index.js +10 -0
- package/dist/cli/output/index.js.map +1 -0
- package/dist/cli/output/ink-runner.d.ts +9 -0
- package/dist/cli/output/ink-runner.d.ts.map +1 -0
- package/dist/cli/output/ink-runner.js +207 -0
- package/dist/cli/output/ink-runner.js.map +1 -0
- package/dist/cli/output/jsonl.d.ts +43 -0
- package/dist/cli/output/jsonl.d.ts.map +1 -0
- package/dist/cli/output/jsonl.js +89 -0
- package/dist/cli/output/jsonl.js.map +1 -0
- package/dist/cli/output/jsonl.test.d.ts +2 -0
- package/dist/cli/output/jsonl.test.d.ts.map +1 -0
- package/dist/cli/output/jsonl.test.js +284 -0
- package/dist/cli/output/jsonl.test.js.map +1 -0
- package/dist/cli/output/reporter.d.ts +108 -0
- package/dist/cli/output/reporter.d.ts.map +1 -0
- package/dist/cli/output/reporter.js +378 -0
- package/dist/cli/output/reporter.js.map +1 -0
- package/dist/cli/output/tasks.d.ts +89 -0
- package/dist/cli/output/tasks.d.ts.map +1 -0
- package/dist/cli/output/tasks.js +251 -0
- package/dist/cli/output/tasks.js.map +1 -0
- package/dist/cli/output/tty.d.ts +21 -0
- package/dist/cli/output/tty.d.ts.map +1 -0
- package/dist/cli/output/tty.js +44 -0
- package/dist/cli/output/tty.js.map +1 -0
- package/dist/cli/output/tty.test.d.ts +2 -0
- package/dist/cli/output/tty.test.d.ts.map +1 -0
- package/dist/cli/output/tty.test.js +105 -0
- package/dist/cli/output/tty.test.js.map +1 -0
- package/dist/cli/output/verbosity.d.ts +20 -0
- package/dist/cli/output/verbosity.d.ts.map +1 -0
- package/dist/cli/output/verbosity.js +32 -0
- package/dist/cli/output/verbosity.js.map +1 -0
- package/dist/cli/output/verbosity.test.d.ts +2 -0
- package/dist/cli/output/verbosity.test.d.ts.map +1 -0
- package/dist/cli/output/verbosity.test.js +35 -0
- package/dist/cli/output/verbosity.test.js.map +1 -0
- package/dist/cli/terminal.d.ts +19 -0
- package/dist/cli/terminal.d.ts.map +1 -0
- package/dist/cli/terminal.js +247 -0
- package/dist/cli/terminal.js.map +1 -0
- package/dist/cli/terminal.test.d.ts +2 -0
- package/dist/cli/terminal.test.d.ts.map +1 -0
- package/dist/cli/terminal.test.js +123 -0
- package/dist/cli/terminal.test.js.map +1 -0
- package/dist/config/index.d.ts +4 -0
- package/dist/config/index.d.ts.map +1 -0
- package/dist/config/index.js +4 -0
- package/dist/config/index.js.map +1 -0
- package/dist/config/loader.d.ts +27 -0
- package/dist/config/loader.d.ts.map +1 -0
- package/dist/config/loader.js +77 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/loader.test.d.ts +2 -0
- package/dist/config/loader.test.d.ts.map +1 -0
- package/dist/config/loader.test.js +263 -0
- package/dist/config/loader.test.js.map +1 -0
- package/dist/config/schema.d.ts +318 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +137 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/config/writer.d.ts +11 -0
- package/dist/config/writer.d.ts.map +1 -0
- package/dist/config/writer.js +74 -0
- package/dist/config/writer.js.map +1 -0
- package/dist/config/writer.test.d.ts +2 -0
- package/dist/config/writer.test.d.ts.map +1 -0
- package/dist/config/writer.test.js +98 -0
- package/dist/config/writer.test.js.map +1 -0
- package/dist/diff/classify.d.ts +29 -0
- package/dist/diff/classify.d.ts.map +1 -0
- package/dist/diff/classify.js +74 -0
- package/dist/diff/classify.js.map +1 -0
- package/dist/diff/classify.test.d.ts +2 -0
- package/dist/diff/classify.test.d.ts.map +1 -0
- package/dist/diff/classify.test.js +140 -0
- package/dist/diff/classify.test.js.map +1 -0
- package/dist/diff/coalesce.d.ts +42 -0
- package/dist/diff/coalesce.d.ts.map +1 -0
- package/dist/diff/coalesce.js +104 -0
- package/dist/diff/coalesce.js.map +1 -0
- package/dist/diff/coalesce.test.d.ts +2 -0
- package/dist/diff/coalesce.test.d.ts.map +1 -0
- package/dist/diff/coalesce.test.js +159 -0
- package/dist/diff/coalesce.test.js.map +1 -0
- package/dist/diff/context.d.ts +30 -0
- package/dist/diff/context.d.ts.map +1 -0
- package/dist/diff/context.js +144 -0
- package/dist/diff/context.js.map +1 -0
- package/dist/diff/context.test.d.ts +2 -0
- package/dist/diff/context.test.d.ts.map +1 -0
- package/dist/diff/context.test.js +190 -0
- package/dist/diff/context.test.js.map +1 -0
- package/dist/diff/index.d.ts +5 -0
- package/dist/diff/index.d.ts.map +1 -0
- package/dist/diff/index.js +5 -0
- package/dist/diff/index.js.map +1 -0
- package/dist/diff/parser.d.ts +52 -0
- package/dist/diff/parser.d.ts.map +1 -0
- package/dist/diff/parser.js +95 -0
- package/dist/diff/parser.js.map +1 -0
- package/dist/diff/parser.test.d.ts +2 -0
- package/dist/diff/parser.test.d.ts.map +1 -0
- package/dist/diff/parser.test.js +178 -0
- package/dist/diff/parser.test.js.map +1 -0
- package/dist/event/context.d.ts +9 -0
- package/dist/event/context.d.ts.map +1 -0
- package/dist/event/context.js +94 -0
- package/dist/event/context.js.map +1 -0
- package/dist/event/index.d.ts +3 -0
- package/dist/event/index.d.ts.map +1 -0
- package/dist/event/index.js +3 -0
- package/dist/event/index.js.map +1 -0
- package/dist/event/schedule-context.d.ts +30 -0
- package/dist/event/schedule-context.d.ts.map +1 -0
- package/dist/event/schedule-context.js +57 -0
- package/dist/event/schedule-context.js.map +1 -0
- package/dist/examples/examples.integration.test.d.ts +2 -0
- package/dist/examples/examples.integration.test.d.ts.map +1 -0
- package/dist/examples/examples.integration.test.js +55 -0
- package/dist/examples/examples.integration.test.js.map +1 -0
- package/dist/examples/index.d.ts +50 -0
- package/dist/examples/index.d.ts.map +1 -0
- package/dist/examples/index.js +104 -0
- package/dist/examples/index.js.map +1 -0
- package/dist/examples/index.test.d.ts +2 -0
- package/dist/examples/index.test.d.ts.map +1 -0
- package/dist/examples/index.test.js +88 -0
- package/dist/examples/index.test.js.map +1 -0
- package/dist/examples/setup.d.ts +2 -0
- package/dist/examples/setup.d.ts.map +1 -0
- package/dist/examples/setup.js +22 -0
- package/dist/examples/setup.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +57 -0
- package/dist/index.js.map +1 -0
- package/dist/output/dedup.d.ts +153 -0
- package/dist/output/dedup.d.ts.map +1 -0
- package/dist/output/dedup.js +416 -0
- package/dist/output/dedup.js.map +1 -0
- package/dist/output/dedup.test.d.ts +2 -0
- package/dist/output/dedup.test.d.ts.map +1 -0
- package/dist/output/dedup.test.js +357 -0
- package/dist/output/dedup.test.js.map +1 -0
- package/dist/output/github-checks.d.ts +106 -0
- package/dist/output/github-checks.d.ts.map +1 -0
- package/dist/output/github-checks.js +321 -0
- package/dist/output/github-checks.js.map +1 -0
- package/dist/output/github-checks.test.d.ts +2 -0
- package/dist/output/github-checks.test.d.ts.map +1 -0
- package/dist/output/github-checks.test.js +255 -0
- package/dist/output/github-checks.test.js.map +1 -0
- package/dist/output/github-issues.d.ts +35 -0
- package/dist/output/github-issues.d.ts.map +1 -0
- package/dist/output/github-issues.js +246 -0
- package/dist/output/github-issues.js.map +1 -0
- package/dist/output/index.d.ts +6 -0
- package/dist/output/index.d.ts.map +1 -0
- package/dist/output/index.js +6 -0
- package/dist/output/index.js.map +1 -0
- package/dist/output/issue-renderer.d.ts +20 -0
- package/dist/output/issue-renderer.d.ts.map +1 -0
- package/dist/output/issue-renderer.js +154 -0
- package/dist/output/issue-renderer.js.map +1 -0
- package/dist/output/renderer.d.ts +4 -0
- package/dist/output/renderer.d.ts.map +1 -0
- package/dist/output/renderer.js +168 -0
- package/dist/output/renderer.js.map +1 -0
- package/dist/output/renderer.test.d.ts +2 -0
- package/dist/output/renderer.test.d.ts.map +1 -0
- package/dist/output/renderer.test.js +645 -0
- package/dist/output/renderer.test.js.map +1 -0
- package/dist/output/stale.d.ts +31 -0
- package/dist/output/stale.d.ts.map +1 -0
- package/dist/output/stale.js +114 -0
- package/dist/output/stale.js.map +1 -0
- package/dist/output/stale.test.d.ts +2 -0
- package/dist/output/stale.test.d.ts.map +1 -0
- package/dist/output/stale.test.js +330 -0
- package/dist/output/stale.test.js.map +1 -0
- package/dist/output/types.d.ts +31 -0
- package/dist/output/types.d.ts.map +1 -0
- package/dist/output/types.js +2 -0
- package/dist/output/types.js.map +1 -0
- package/dist/sdk/index.d.ts +2 -0
- package/dist/sdk/index.d.ts.map +1 -0
- package/dist/sdk/index.js +2 -0
- package/dist/sdk/index.js.map +1 -0
- package/dist/sdk/runner.d.ts +202 -0
- package/dist/sdk/runner.d.ts.map +1 -0
- package/dist/sdk/runner.js +888 -0
- package/dist/sdk/runner.js.map +1 -0
- package/dist/sdk/runner.test.d.ts +2 -0
- package/dist/sdk/runner.test.d.ts.map +1 -0
- package/dist/sdk/runner.test.js +677 -0
- package/dist/sdk/runner.test.js.map +1 -0
- package/dist/skills/index.d.ts +5 -0
- package/dist/skills/index.d.ts.map +1 -0
- package/dist/skills/index.js +3 -0
- package/dist/skills/index.js.map +1 -0
- package/dist/skills/loader.d.ts +111 -0
- package/dist/skills/loader.d.ts.map +1 -0
- package/dist/skills/loader.js +319 -0
- package/dist/skills/loader.js.map +1 -0
- package/dist/skills/loader.test.d.ts +2 -0
- package/dist/skills/loader.test.d.ts.map +1 -0
- package/dist/skills/loader.test.js +241 -0
- package/dist/skills/loader.test.js.map +1 -0
- package/dist/skills/remote.d.ts +117 -0
- package/dist/skills/remote.d.ts.map +1 -0
- package/dist/skills/remote.js +496 -0
- package/dist/skills/remote.js.map +1 -0
- package/dist/skills/remote.test.d.ts +2 -0
- package/dist/skills/remote.test.d.ts.map +1 -0
- package/dist/skills/remote.test.js +582 -0
- package/dist/skills/remote.test.js.map +1 -0
- package/dist/triggers/matcher.d.ts +30 -0
- package/dist/triggers/matcher.d.ts.map +1 -0
- package/dist/triggers/matcher.js +122 -0
- package/dist/triggers/matcher.js.map +1 -0
- package/dist/triggers/matcher.test.d.ts +2 -0
- package/dist/triggers/matcher.test.d.ts.map +1 -0
- package/dist/triggers/matcher.test.js +234 -0
- package/dist/triggers/matcher.test.js.map +1 -0
- package/dist/types/index.d.ts +269 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +162 -0
- package/dist/types/index.js.map +1 -0
- package/dist/utils/async.d.ts +5 -0
- package/dist/utils/async.d.ts.map +1 -0
- package/dist/utils/async.js +13 -0
- package/dist/utils/async.js.map +1 -0
- package/dist/utils/index.d.ts +16 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/dist/utils/index.js +44 -0
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/index.test.d.ts +2 -0
- package/dist/utils/index.test.d.ts.map +1 -0
- package/dist/utils/index.test.js +68 -0
- package/dist/utils/index.test.js.map +1 -0
- package/dist/utils/version.d.ts +3 -0
- package/dist/utils/version.d.ts.map +1 -0
- package/dist/utils/version.js +16 -0
- package/dist/utils/version.js.map +1 -0
- package/docs/src/pages/config.astro +2 -1
- package/docs/src/pages/guide.astro +2 -1
- package/docs/src/utils/version.ts +6 -0
- package/package.json +12 -2
- package/src/cli/args.ts +2 -3
- package/src/cli/commands/init.test.ts +2 -1
- package/src/cli/commands/init.ts +3 -1
- package/src/cli/output/reporter.ts +3 -4
- package/src/utils/index.ts +1 -0
- package/src/utils/version.ts +17 -0
- package/.claude/settings.local.json +0 -88
- package/docs/.claude/settings.local.json +0 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer.js","sourceRoot":"","sources":["../../src/output/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAG7E,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,SAAS,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O,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"renderer.test.d.ts","sourceRoot":"","sources":["../../src/output/renderer.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,645 @@
|
|
|
1
|
+
import { describe, it, expect } from 'vitest';
|
|
2
|
+
import { renderSkillReport } from './renderer.js';
|
|
3
|
+
import { parseMarker } from './dedup.js';
|
|
4
|
+
describe('renderSkillReport', () => {
|
|
5
|
+
const baseReport = {
|
|
6
|
+
skill: 'security-review',
|
|
7
|
+
summary: 'Found 2 potential issues',
|
|
8
|
+
findings: [],
|
|
9
|
+
};
|
|
10
|
+
it('renders empty findings report', () => {
|
|
11
|
+
const result = renderSkillReport(baseReport);
|
|
12
|
+
expect(result.review).toBeUndefined();
|
|
13
|
+
expect(result.summaryComment).toContain('security-review');
|
|
14
|
+
expect(result.summaryComment).toContain('No findings to report');
|
|
15
|
+
});
|
|
16
|
+
it('renders findings with inline comments', () => {
|
|
17
|
+
const report = {
|
|
18
|
+
...baseReport,
|
|
19
|
+
findings: [
|
|
20
|
+
{
|
|
21
|
+
id: 'sql-injection-1',
|
|
22
|
+
severity: 'critical',
|
|
23
|
+
title: 'SQL Injection',
|
|
24
|
+
description: 'User input passed directly to query',
|
|
25
|
+
location: {
|
|
26
|
+
path: 'src/db.ts',
|
|
27
|
+
startLine: 42,
|
|
28
|
+
endLine: 45,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
};
|
|
33
|
+
const result = renderSkillReport(report);
|
|
34
|
+
expect(result.review).toBeDefined();
|
|
35
|
+
const review = result.review;
|
|
36
|
+
expect(review.event).toBe('REQUEST_CHANGES');
|
|
37
|
+
expect(review.comments).toHaveLength(1);
|
|
38
|
+
expect(review.comments[0].path).toBe('src/db.ts');
|
|
39
|
+
expect(review.comments[0].line).toBe(45);
|
|
40
|
+
expect(review.comments[0].body).toContain('SQL Injection');
|
|
41
|
+
});
|
|
42
|
+
it('includes skill attribution footnote in comments', () => {
|
|
43
|
+
const report = {
|
|
44
|
+
...baseReport,
|
|
45
|
+
skill: 'code-review',
|
|
46
|
+
findings: [
|
|
47
|
+
{
|
|
48
|
+
id: 'f1',
|
|
49
|
+
severity: 'medium',
|
|
50
|
+
title: 'Issue',
|
|
51
|
+
description: 'Details',
|
|
52
|
+
location: {
|
|
53
|
+
path: 'src/file.ts',
|
|
54
|
+
startLine: 10,
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
],
|
|
58
|
+
};
|
|
59
|
+
const result = renderSkillReport(report);
|
|
60
|
+
expect(result.review).toBeDefined();
|
|
61
|
+
expect(result.review.comments[0].body).toContain('<sub>warden: code-review</sub>');
|
|
62
|
+
});
|
|
63
|
+
it('includes deduplication marker in comments', () => {
|
|
64
|
+
const report = {
|
|
65
|
+
...baseReport,
|
|
66
|
+
skill: 'security-review',
|
|
67
|
+
findings: [
|
|
68
|
+
{
|
|
69
|
+
id: 'f1',
|
|
70
|
+
severity: 'high',
|
|
71
|
+
title: 'SQL Injection',
|
|
72
|
+
description: 'User input passed to query',
|
|
73
|
+
location: {
|
|
74
|
+
path: 'src/db.ts',
|
|
75
|
+
startLine: 42,
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
};
|
|
80
|
+
const result = renderSkillReport(report);
|
|
81
|
+
expect(result.review).toBeDefined();
|
|
82
|
+
const body = result.review.comments[0].body;
|
|
83
|
+
// Verify marker is present and parseable
|
|
84
|
+
const marker = parseMarker(body);
|
|
85
|
+
expect(marker).not.toBeNull();
|
|
86
|
+
expect(marker.path).toBe('src/db.ts');
|
|
87
|
+
expect(marker.line).toBe(42);
|
|
88
|
+
expect(marker.contentHash).toMatch(/^[a-f0-9]{8}$/);
|
|
89
|
+
});
|
|
90
|
+
it('sets start_line for multi-line findings', () => {
|
|
91
|
+
const report = {
|
|
92
|
+
...baseReport,
|
|
93
|
+
findings: [
|
|
94
|
+
{
|
|
95
|
+
id: 'multi-line-1',
|
|
96
|
+
severity: 'medium',
|
|
97
|
+
title: 'Multi-line issue',
|
|
98
|
+
description: 'Spans multiple lines',
|
|
99
|
+
location: {
|
|
100
|
+
path: 'src/code.ts',
|
|
101
|
+
startLine: 10,
|
|
102
|
+
endLine: 15,
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
],
|
|
106
|
+
};
|
|
107
|
+
const result = renderSkillReport(report);
|
|
108
|
+
const comment = result.review.comments[0];
|
|
109
|
+
expect(comment.line).toBe(15);
|
|
110
|
+
expect(comment.start_line).toBe(10);
|
|
111
|
+
expect(comment.start_side).toBe('RIGHT');
|
|
112
|
+
});
|
|
113
|
+
it('does not set start_line for single-line findings', () => {
|
|
114
|
+
const report = {
|
|
115
|
+
...baseReport,
|
|
116
|
+
findings: [
|
|
117
|
+
{
|
|
118
|
+
id: 'single-line-1',
|
|
119
|
+
severity: 'medium',
|
|
120
|
+
title: 'Single-line issue',
|
|
121
|
+
description: 'On one line',
|
|
122
|
+
location: {
|
|
123
|
+
path: 'src/code.ts',
|
|
124
|
+
startLine: 25,
|
|
125
|
+
},
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
};
|
|
129
|
+
const result = renderSkillReport(report);
|
|
130
|
+
const comment = result.review.comments[0];
|
|
131
|
+
expect(comment.line).toBe(25);
|
|
132
|
+
expect(comment.start_line).toBeUndefined();
|
|
133
|
+
expect(comment.start_side).toBeUndefined();
|
|
134
|
+
});
|
|
135
|
+
it('does not set start_line when startLine equals endLine', () => {
|
|
136
|
+
const report = {
|
|
137
|
+
...baseReport,
|
|
138
|
+
findings: [
|
|
139
|
+
{
|
|
140
|
+
id: 'same-line-1',
|
|
141
|
+
severity: 'medium',
|
|
142
|
+
title: 'Same line issue',
|
|
143
|
+
description: 'Start and end are same',
|
|
144
|
+
location: {
|
|
145
|
+
path: 'src/code.ts',
|
|
146
|
+
startLine: 30,
|
|
147
|
+
endLine: 30,
|
|
148
|
+
},
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
};
|
|
152
|
+
const result = renderSkillReport(report);
|
|
153
|
+
const comment = result.review.comments[0];
|
|
154
|
+
expect(comment.line).toBe(30);
|
|
155
|
+
expect(comment.start_line).toBeUndefined();
|
|
156
|
+
expect(comment.start_side).toBeUndefined();
|
|
157
|
+
});
|
|
158
|
+
it('renders suggested fixes as GitHub suggestions', () => {
|
|
159
|
+
const report = {
|
|
160
|
+
...baseReport,
|
|
161
|
+
findings: [
|
|
162
|
+
{
|
|
163
|
+
id: 'fix-1',
|
|
164
|
+
severity: 'medium',
|
|
165
|
+
title: 'Use parameterized query',
|
|
166
|
+
description: 'Replace string concatenation with parameters',
|
|
167
|
+
location: {
|
|
168
|
+
path: 'src/db.ts',
|
|
169
|
+
startLine: 10,
|
|
170
|
+
},
|
|
171
|
+
suggestedFix: {
|
|
172
|
+
description: 'Use prepared statement',
|
|
173
|
+
diff: `--- a/src/db.ts
|
|
174
|
+
+++ b/src/db.ts
|
|
175
|
+
@@ -10,1 +10,1 @@
|
|
176
|
+
-const query = "SELECT * FROM users WHERE id = " + id;
|
|
177
|
+
+const query = "SELECT * FROM users WHERE id = ?";`,
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
],
|
|
181
|
+
};
|
|
182
|
+
const result = renderSkillReport(report);
|
|
183
|
+
const review = result.review;
|
|
184
|
+
expect(review.comments[0].body).toContain('```suggestion');
|
|
185
|
+
expect(review.comments[0].body).toContain('const query = "SELECT * FROM users WHERE id = ?";');
|
|
186
|
+
});
|
|
187
|
+
it('groups findings by file in summary', () => {
|
|
188
|
+
const report = {
|
|
189
|
+
...baseReport,
|
|
190
|
+
findings: [
|
|
191
|
+
{
|
|
192
|
+
id: 'f1',
|
|
193
|
+
severity: 'medium',
|
|
194
|
+
title: 'Issue A',
|
|
195
|
+
description: 'Details',
|
|
196
|
+
location: { path: 'src/a.ts', startLine: 10 },
|
|
197
|
+
},
|
|
198
|
+
{
|
|
199
|
+
id: 'f2',
|
|
200
|
+
severity: 'low',
|
|
201
|
+
title: 'Issue B',
|
|
202
|
+
description: 'Details',
|
|
203
|
+
location: { path: 'src/b.ts', startLine: 20 },
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
id: 'f3',
|
|
207
|
+
severity: 'info',
|
|
208
|
+
title: 'Issue C',
|
|
209
|
+
description: 'Details',
|
|
210
|
+
location: { path: 'src/a.ts', startLine: 30 },
|
|
211
|
+
},
|
|
212
|
+
],
|
|
213
|
+
};
|
|
214
|
+
const result = renderSkillReport(report);
|
|
215
|
+
expect(result.summaryComment).toContain('`src/a.ts`');
|
|
216
|
+
expect(result.summaryComment).toContain('`src/b.ts`');
|
|
217
|
+
});
|
|
218
|
+
it('sorts findings by severity', () => {
|
|
219
|
+
const report = {
|
|
220
|
+
...baseReport,
|
|
221
|
+
findings: [
|
|
222
|
+
{
|
|
223
|
+
id: 'f1',
|
|
224
|
+
severity: 'low',
|
|
225
|
+
title: 'Low Issue',
|
|
226
|
+
description: 'Details',
|
|
227
|
+
location: { path: 'src/a.ts', startLine: 10 },
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
id: 'f2',
|
|
231
|
+
severity: 'critical',
|
|
232
|
+
title: 'Critical Issue',
|
|
233
|
+
description: 'Details',
|
|
234
|
+
location: { path: 'src/a.ts', startLine: 20 },
|
|
235
|
+
},
|
|
236
|
+
],
|
|
237
|
+
};
|
|
238
|
+
const result = renderSkillReport(report);
|
|
239
|
+
const review = result.review;
|
|
240
|
+
expect(review.comments[0].body).toContain('Critical Issue');
|
|
241
|
+
});
|
|
242
|
+
it('requests changes for critical/high severity', () => {
|
|
243
|
+
const criticalReport = {
|
|
244
|
+
...baseReport,
|
|
245
|
+
findings: [
|
|
246
|
+
{
|
|
247
|
+
id: 'f1',
|
|
248
|
+
severity: 'critical',
|
|
249
|
+
title: 'Critical',
|
|
250
|
+
description: 'Details',
|
|
251
|
+
location: { path: 'src/a.ts', startLine: 1 },
|
|
252
|
+
},
|
|
253
|
+
],
|
|
254
|
+
};
|
|
255
|
+
const highReport = {
|
|
256
|
+
...baseReport,
|
|
257
|
+
findings: [
|
|
258
|
+
{
|
|
259
|
+
id: 'f1',
|
|
260
|
+
severity: 'high',
|
|
261
|
+
title: 'High',
|
|
262
|
+
description: 'Details',
|
|
263
|
+
location: { path: 'src/a.ts', startLine: 1 },
|
|
264
|
+
},
|
|
265
|
+
],
|
|
266
|
+
};
|
|
267
|
+
const mediumReport = {
|
|
268
|
+
...baseReport,
|
|
269
|
+
findings: [
|
|
270
|
+
{
|
|
271
|
+
id: 'f1',
|
|
272
|
+
severity: 'medium',
|
|
273
|
+
title: 'Medium',
|
|
274
|
+
description: 'Details',
|
|
275
|
+
location: { path: 'src/a.ts', startLine: 1 },
|
|
276
|
+
},
|
|
277
|
+
],
|
|
278
|
+
};
|
|
279
|
+
const criticalResult = renderSkillReport(criticalReport);
|
|
280
|
+
const highResult = renderSkillReport(highReport);
|
|
281
|
+
const mediumResult = renderSkillReport(mediumReport);
|
|
282
|
+
expect(criticalResult.review.event).toBe('REQUEST_CHANGES');
|
|
283
|
+
expect(highResult.review.event).toBe('REQUEST_CHANGES');
|
|
284
|
+
expect(mediumResult.review.event).toBe('COMMENT');
|
|
285
|
+
});
|
|
286
|
+
it('respects maxFindings option', () => {
|
|
287
|
+
const report = {
|
|
288
|
+
...baseReport,
|
|
289
|
+
findings: Array.from({ length: 10 }, (_, i) => ({
|
|
290
|
+
id: `f${i}`,
|
|
291
|
+
severity: 'info',
|
|
292
|
+
title: `Finding ${i}`,
|
|
293
|
+
description: 'Details',
|
|
294
|
+
location: { path: 'src/a.ts', startLine: i + 1 },
|
|
295
|
+
})),
|
|
296
|
+
};
|
|
297
|
+
const result = renderSkillReport(report, { maxFindings: 3 });
|
|
298
|
+
expect(result.review.comments).toHaveLength(3);
|
|
299
|
+
});
|
|
300
|
+
it('handles findings without location', () => {
|
|
301
|
+
const report = {
|
|
302
|
+
...baseReport,
|
|
303
|
+
findings: [
|
|
304
|
+
{
|
|
305
|
+
id: 'f1',
|
|
306
|
+
severity: 'medium',
|
|
307
|
+
title: 'General Issue',
|
|
308
|
+
description: 'Applies to whole project',
|
|
309
|
+
},
|
|
310
|
+
],
|
|
311
|
+
};
|
|
312
|
+
const result = renderSkillReport(report);
|
|
313
|
+
expect(result.review).toBeUndefined();
|
|
314
|
+
expect(result.summaryComment).toContain('General Issue');
|
|
315
|
+
expect(result.summaryComment).toContain('General');
|
|
316
|
+
});
|
|
317
|
+
describe('commentOn filtering', () => {
|
|
318
|
+
it('filters findings by commentOn threshold', () => {
|
|
319
|
+
const report = {
|
|
320
|
+
...baseReport,
|
|
321
|
+
findings: [
|
|
322
|
+
{
|
|
323
|
+
id: 'f1',
|
|
324
|
+
severity: 'critical',
|
|
325
|
+
title: 'Critical Issue',
|
|
326
|
+
description: 'Critical details',
|
|
327
|
+
location: { path: 'src/a.ts', startLine: 10 },
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
id: 'f2',
|
|
331
|
+
severity: 'high',
|
|
332
|
+
title: 'High Issue',
|
|
333
|
+
description: 'High details',
|
|
334
|
+
location: { path: 'src/a.ts', startLine: 20 },
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
id: 'f3',
|
|
338
|
+
severity: 'medium',
|
|
339
|
+
title: 'Medium Issue',
|
|
340
|
+
description: 'Medium details',
|
|
341
|
+
location: { path: 'src/a.ts', startLine: 30 },
|
|
342
|
+
},
|
|
343
|
+
{
|
|
344
|
+
id: 'f4',
|
|
345
|
+
severity: 'low',
|
|
346
|
+
title: 'Low Issue',
|
|
347
|
+
description: 'Low details',
|
|
348
|
+
location: { path: 'src/a.ts', startLine: 40 },
|
|
349
|
+
},
|
|
350
|
+
],
|
|
351
|
+
};
|
|
352
|
+
// commentOn='high' should only include critical and high
|
|
353
|
+
const result = renderSkillReport(report, { commentOn: 'high' });
|
|
354
|
+
expect(result.review).toBeDefined();
|
|
355
|
+
expect(result.review.comments).toHaveLength(2);
|
|
356
|
+
expect(result.review.comments.map((c) => c.body)).toEqual([
|
|
357
|
+
expect.stringContaining('Critical Issue'),
|
|
358
|
+
expect.stringContaining('High Issue'),
|
|
359
|
+
]);
|
|
360
|
+
});
|
|
361
|
+
it('shows all findings when commentOn is not specified', () => {
|
|
362
|
+
const report = {
|
|
363
|
+
...baseReport,
|
|
364
|
+
findings: [
|
|
365
|
+
{
|
|
366
|
+
id: 'f1',
|
|
367
|
+
severity: 'critical',
|
|
368
|
+
title: 'Critical Issue',
|
|
369
|
+
description: 'Details',
|
|
370
|
+
location: { path: 'src/a.ts', startLine: 10 },
|
|
371
|
+
},
|
|
372
|
+
{
|
|
373
|
+
id: 'f2',
|
|
374
|
+
severity: 'info',
|
|
375
|
+
title: 'Info Issue',
|
|
376
|
+
description: 'Details',
|
|
377
|
+
location: { path: 'src/a.ts', startLine: 20 },
|
|
378
|
+
},
|
|
379
|
+
],
|
|
380
|
+
};
|
|
381
|
+
const result = renderSkillReport(report);
|
|
382
|
+
expect(result.review.comments).toHaveLength(2);
|
|
383
|
+
});
|
|
384
|
+
it('returns empty review when all findings are filtered out', () => {
|
|
385
|
+
const report = {
|
|
386
|
+
...baseReport,
|
|
387
|
+
findings: [
|
|
388
|
+
{
|
|
389
|
+
id: 'f1',
|
|
390
|
+
severity: 'low',
|
|
391
|
+
title: 'Low Issue',
|
|
392
|
+
description: 'Details',
|
|
393
|
+
location: { path: 'src/a.ts', startLine: 10 },
|
|
394
|
+
},
|
|
395
|
+
{
|
|
396
|
+
id: 'f2',
|
|
397
|
+
severity: 'info',
|
|
398
|
+
title: 'Info Issue',
|
|
399
|
+
description: 'Details',
|
|
400
|
+
location: { path: 'src/a.ts', startLine: 20 },
|
|
401
|
+
},
|
|
402
|
+
],
|
|
403
|
+
};
|
|
404
|
+
const result = renderSkillReport(report, { commentOn: 'high' });
|
|
405
|
+
expect(result.review).toBeUndefined();
|
|
406
|
+
expect(result.summaryComment).toContain('No findings to report');
|
|
407
|
+
});
|
|
408
|
+
it('applies commentOn filter before maxFindings limit', () => {
|
|
409
|
+
const report = {
|
|
410
|
+
...baseReport,
|
|
411
|
+
findings: [
|
|
412
|
+
{
|
|
413
|
+
id: 'f1',
|
|
414
|
+
severity: 'critical',
|
|
415
|
+
title: 'Critical Issue',
|
|
416
|
+
description: 'Details',
|
|
417
|
+
location: { path: 'src/a.ts', startLine: 10 },
|
|
418
|
+
},
|
|
419
|
+
{
|
|
420
|
+
id: 'f2',
|
|
421
|
+
severity: 'low',
|
|
422
|
+
title: 'Low Issue 1',
|
|
423
|
+
description: 'Details',
|
|
424
|
+
location: { path: 'src/a.ts', startLine: 20 },
|
|
425
|
+
},
|
|
426
|
+
{
|
|
427
|
+
id: 'f3',
|
|
428
|
+
severity: 'low',
|
|
429
|
+
title: 'Low Issue 2',
|
|
430
|
+
description: 'Details',
|
|
431
|
+
location: { path: 'src/a.ts', startLine: 30 },
|
|
432
|
+
},
|
|
433
|
+
],
|
|
434
|
+
};
|
|
435
|
+
// With commentOn='high' and maxFindings=2, should only show critical (1 finding)
|
|
436
|
+
// because low findings are filtered out first
|
|
437
|
+
const result = renderSkillReport(report, { commentOn: 'high', maxFindings: 2 });
|
|
438
|
+
expect(result.review.comments).toHaveLength(1);
|
|
439
|
+
expect(result.review.comments[0].body).toContain('Critical Issue');
|
|
440
|
+
});
|
|
441
|
+
});
|
|
442
|
+
describe('stats footer', () => {
|
|
443
|
+
it('includes stats footer in summary comment when stats are available', () => {
|
|
444
|
+
const report = {
|
|
445
|
+
...baseReport,
|
|
446
|
+
findings: [
|
|
447
|
+
{
|
|
448
|
+
id: 'f1',
|
|
449
|
+
severity: 'medium',
|
|
450
|
+
title: 'Issue',
|
|
451
|
+
description: 'Details',
|
|
452
|
+
location: { path: 'src/a.ts', startLine: 10 },
|
|
453
|
+
},
|
|
454
|
+
],
|
|
455
|
+
durationMs: 15800,
|
|
456
|
+
usage: {
|
|
457
|
+
inputTokens: 3000,
|
|
458
|
+
outputTokens: 680,
|
|
459
|
+
costUSD: 0.0048,
|
|
460
|
+
},
|
|
461
|
+
};
|
|
462
|
+
const result = renderSkillReport(report);
|
|
463
|
+
expect(result.summaryComment).toContain('⏱ 15.8s');
|
|
464
|
+
expect(result.summaryComment).toContain('3.0k in / 680 out');
|
|
465
|
+
expect(result.summaryComment).toContain('$0.0048');
|
|
466
|
+
expect(result.summaryComment).toContain('<sub>');
|
|
467
|
+
});
|
|
468
|
+
it('review body is empty (stats only in summary comment)', () => {
|
|
469
|
+
const report = {
|
|
470
|
+
...baseReport,
|
|
471
|
+
findings: [
|
|
472
|
+
{
|
|
473
|
+
id: 'f1',
|
|
474
|
+
severity: 'medium',
|
|
475
|
+
title: 'Issue',
|
|
476
|
+
description: 'Details',
|
|
477
|
+
location: { path: 'src/a.ts', startLine: 10 },
|
|
478
|
+
},
|
|
479
|
+
],
|
|
480
|
+
durationMs: 12300,
|
|
481
|
+
usage: {
|
|
482
|
+
inputTokens: 2500,
|
|
483
|
+
outputTokens: 450,
|
|
484
|
+
costUSD: 0.0032,
|
|
485
|
+
},
|
|
486
|
+
};
|
|
487
|
+
const result = renderSkillReport(report);
|
|
488
|
+
expect(result.review).toBeDefined();
|
|
489
|
+
expect(result.review.body).toBe('');
|
|
490
|
+
});
|
|
491
|
+
it('includes stats footer in empty findings report', () => {
|
|
492
|
+
const report = {
|
|
493
|
+
...baseReport,
|
|
494
|
+
findings: [],
|
|
495
|
+
durationMs: 8200,
|
|
496
|
+
usage: {
|
|
497
|
+
inputTokens: 1800,
|
|
498
|
+
outputTokens: 320,
|
|
499
|
+
costUSD: 0.0021,
|
|
500
|
+
},
|
|
501
|
+
};
|
|
502
|
+
const result = renderSkillReport(report);
|
|
503
|
+
expect(result.summaryComment).toContain('No findings to report');
|
|
504
|
+
expect(result.summaryComment).toContain('⏱ 8.2s');
|
|
505
|
+
expect(result.summaryComment).toContain('1.8k in / 320 out');
|
|
506
|
+
expect(result.summaryComment).toContain('$0.0021');
|
|
507
|
+
});
|
|
508
|
+
it('omits stats footer when no stats available', () => {
|
|
509
|
+
const report = {
|
|
510
|
+
...baseReport,
|
|
511
|
+
findings: [],
|
|
512
|
+
};
|
|
513
|
+
const result = renderSkillReport(report);
|
|
514
|
+
expect(result.summaryComment).not.toContain('⏱');
|
|
515
|
+
expect(result.summaryComment).not.toContain('<sub>');
|
|
516
|
+
});
|
|
517
|
+
});
|
|
518
|
+
describe('check run link', () => {
|
|
519
|
+
it('shows link to full report when findings are filtered out', () => {
|
|
520
|
+
const report = {
|
|
521
|
+
...baseReport,
|
|
522
|
+
findings: [
|
|
523
|
+
{
|
|
524
|
+
id: 'f1',
|
|
525
|
+
severity: 'high',
|
|
526
|
+
title: 'High Issue',
|
|
527
|
+
description: 'Details',
|
|
528
|
+
location: { path: 'src/a.ts', startLine: 10 },
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
id: 'f2',
|
|
532
|
+
severity: 'low',
|
|
533
|
+
title: 'Low Issue',
|
|
534
|
+
description: 'Details',
|
|
535
|
+
location: { path: 'src/a.ts', startLine: 20 },
|
|
536
|
+
},
|
|
537
|
+
{
|
|
538
|
+
id: 'f3',
|
|
539
|
+
severity: 'info',
|
|
540
|
+
title: 'Info Issue',
|
|
541
|
+
description: 'Details',
|
|
542
|
+
location: { path: 'src/a.ts', startLine: 30 },
|
|
543
|
+
},
|
|
544
|
+
],
|
|
545
|
+
};
|
|
546
|
+
const result = renderSkillReport(report, {
|
|
547
|
+
commentOn: 'high',
|
|
548
|
+
checkRunUrl: 'https://github.com/owner/repo/runs/123',
|
|
549
|
+
totalFindings: 3,
|
|
550
|
+
});
|
|
551
|
+
expect(result.summaryComment).toContain('View 2 additional findings in Checks');
|
|
552
|
+
expect(result.summaryComment).toContain('https://github.com/owner/repo/runs/123');
|
|
553
|
+
});
|
|
554
|
+
it('shows singular "finding" when only one is hidden', () => {
|
|
555
|
+
const report = {
|
|
556
|
+
...baseReport,
|
|
557
|
+
findings: [
|
|
558
|
+
{
|
|
559
|
+
id: 'f1',
|
|
560
|
+
severity: 'high',
|
|
561
|
+
title: 'High Issue',
|
|
562
|
+
description: 'Details',
|
|
563
|
+
location: { path: 'src/a.ts', startLine: 10 },
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
id: 'f2',
|
|
567
|
+
severity: 'low',
|
|
568
|
+
title: 'Low Issue',
|
|
569
|
+
description: 'Details',
|
|
570
|
+
location: { path: 'src/a.ts', startLine: 20 },
|
|
571
|
+
},
|
|
572
|
+
],
|
|
573
|
+
};
|
|
574
|
+
const result = renderSkillReport(report, {
|
|
575
|
+
commentOn: 'high',
|
|
576
|
+
checkRunUrl: 'https://github.com/owner/repo/runs/123',
|
|
577
|
+
totalFindings: 2,
|
|
578
|
+
});
|
|
579
|
+
expect(result.summaryComment).toContain('View 1 additional finding in Checks');
|
|
580
|
+
});
|
|
581
|
+
it('shows link when all findings filtered out', () => {
|
|
582
|
+
const report = {
|
|
583
|
+
...baseReport,
|
|
584
|
+
findings: [
|
|
585
|
+
{
|
|
586
|
+
id: 'f1',
|
|
587
|
+
severity: 'low',
|
|
588
|
+
title: 'Low Issue',
|
|
589
|
+
description: 'Details',
|
|
590
|
+
location: { path: 'src/a.ts', startLine: 10 },
|
|
591
|
+
},
|
|
592
|
+
],
|
|
593
|
+
};
|
|
594
|
+
const result = renderSkillReport(report, {
|
|
595
|
+
commentOn: 'high',
|
|
596
|
+
checkRunUrl: 'https://github.com/owner/repo/runs/123',
|
|
597
|
+
totalFindings: 1,
|
|
598
|
+
});
|
|
599
|
+
expect(result.summaryComment).toContain('No findings to report');
|
|
600
|
+
expect(result.summaryComment).toContain('View 1 additional finding in Checks');
|
|
601
|
+
});
|
|
602
|
+
it('does not show link when no checkRunUrl provided', () => {
|
|
603
|
+
const report = {
|
|
604
|
+
...baseReport,
|
|
605
|
+
findings: [
|
|
606
|
+
{
|
|
607
|
+
id: 'f1',
|
|
608
|
+
severity: 'high',
|
|
609
|
+
title: 'High Issue',
|
|
610
|
+
description: 'Details',
|
|
611
|
+
location: { path: 'src/a.ts', startLine: 10 },
|
|
612
|
+
},
|
|
613
|
+
],
|
|
614
|
+
};
|
|
615
|
+
const result = renderSkillReport(report, {
|
|
616
|
+
commentOn: 'high',
|
|
617
|
+
totalFindings: 3,
|
|
618
|
+
});
|
|
619
|
+
expect(result.summaryComment).not.toContain('View');
|
|
620
|
+
expect(result.summaryComment).not.toContain('additional finding');
|
|
621
|
+
});
|
|
622
|
+
it('does not show link when no findings are hidden', () => {
|
|
623
|
+
const report = {
|
|
624
|
+
...baseReport,
|
|
625
|
+
findings: [
|
|
626
|
+
{
|
|
627
|
+
id: 'f1',
|
|
628
|
+
severity: 'high',
|
|
629
|
+
title: 'High Issue',
|
|
630
|
+
description: 'Details',
|
|
631
|
+
location: { path: 'src/a.ts', startLine: 10 },
|
|
632
|
+
},
|
|
633
|
+
],
|
|
634
|
+
};
|
|
635
|
+
const result = renderSkillReport(report, {
|
|
636
|
+
commentOn: 'high',
|
|
637
|
+
checkRunUrl: 'https://github.com/owner/repo/runs/123',
|
|
638
|
+
totalFindings: 1,
|
|
639
|
+
});
|
|
640
|
+
expect(result.summaryComment).not.toContain('View');
|
|
641
|
+
expect(result.summaryComment).not.toContain('additional finding');
|
|
642
|
+
});
|
|
643
|
+
});
|
|
644
|
+
});
|
|
645
|
+
//# sourceMappingURL=renderer.test.js.map
|