@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
package/dist/cli/args.js
ADDED
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
import { existsSync } from 'node:fs';
|
|
2
|
+
import { parseArgs } from 'node:util';
|
|
3
|
+
import { z } from 'zod';
|
|
4
|
+
import { SeverityThresholdSchema } from '../types/index.js';
|
|
5
|
+
import { getVersion } from '../utils/index.js';
|
|
6
|
+
export const CLIOptionsSchema = z.object({
|
|
7
|
+
targets: z.array(z.string()).optional(),
|
|
8
|
+
skill: z.string().optional(),
|
|
9
|
+
config: z.string().optional(),
|
|
10
|
+
json: z.boolean().default(false),
|
|
11
|
+
/** Write full run output to a JSONL file */
|
|
12
|
+
output: z.string().optional(),
|
|
13
|
+
failOn: SeverityThresholdSchema.optional(),
|
|
14
|
+
/** Only show findings at or above this severity in output */
|
|
15
|
+
commentOn: SeverityThresholdSchema.optional(),
|
|
16
|
+
help: z.boolean().default(false),
|
|
17
|
+
/** Max concurrent trigger/skill executions (default: 4) */
|
|
18
|
+
parallel: z.number().int().positive().optional(),
|
|
19
|
+
/** Model to use for analysis (fallback when not set in config) */
|
|
20
|
+
model: z.string().optional(),
|
|
21
|
+
// Verbosity options
|
|
22
|
+
quiet: z.boolean().default(false),
|
|
23
|
+
verbose: z.number().default(0),
|
|
24
|
+
color: z.boolean().optional(),
|
|
25
|
+
/** Automatically apply all suggested fixes */
|
|
26
|
+
fix: z.boolean().default(false),
|
|
27
|
+
/** Overwrite existing files (for init command) */
|
|
28
|
+
force: z.boolean().default(false),
|
|
29
|
+
/** List available skills (for add command) */
|
|
30
|
+
list: z.boolean().default(false),
|
|
31
|
+
/** Force interpretation of ambiguous targets as git refs */
|
|
32
|
+
git: z.boolean().default(false),
|
|
33
|
+
/** Remote repository reference for skills (e.g., "owner/repo" or "owner/repo@sha") */
|
|
34
|
+
remote: z.string().optional(),
|
|
35
|
+
/** Skip network operations - only use cached remote skills */
|
|
36
|
+
offline: z.boolean().default(false),
|
|
37
|
+
});
|
|
38
|
+
export function showVersion() {
|
|
39
|
+
console.log(`warden ${getVersion()}`);
|
|
40
|
+
}
|
|
41
|
+
const HELP_TEXT = `
|
|
42
|
+
Usage: warden [command] [targets...] [options]
|
|
43
|
+
|
|
44
|
+
Analyze code for security issues and code quality.
|
|
45
|
+
|
|
46
|
+
Commands:
|
|
47
|
+
init Initialize warden.toml and GitHub workflow
|
|
48
|
+
add [skill] Add a skill trigger to warden.toml
|
|
49
|
+
sync [remote] Update cached remote skills to latest
|
|
50
|
+
setup-app Create a GitHub App for Warden via manifest flow
|
|
51
|
+
(default) Run analysis on targets or using warden.toml triggers
|
|
52
|
+
|
|
53
|
+
Targets:
|
|
54
|
+
<files> Analyze specific files (e.g., src/auth.ts)
|
|
55
|
+
<glob> Analyze files matching pattern (e.g., "src/**/*.ts")
|
|
56
|
+
<git-ref> Analyze changes from git ref (e.g., HEAD~3, main..feature)
|
|
57
|
+
(none) Analyze uncommitted changes using warden.toml triggers
|
|
58
|
+
|
|
59
|
+
Options:
|
|
60
|
+
--skill <name> Run only this skill (default: run all built-in skills)
|
|
61
|
+
--config <path> Path to warden.toml (default: ./warden.toml)
|
|
62
|
+
-m, --model <model> Model to use (fallback when not set in config)
|
|
63
|
+
--json Output results as JSON
|
|
64
|
+
-o, --output <path> Write full run output to a JSONL file
|
|
65
|
+
--fail-on <severity> Exit with code 1 if findings >= severity
|
|
66
|
+
(off, critical, high, medium, low, info)
|
|
67
|
+
--comment-on <sev> Only show findings >= severity in output
|
|
68
|
+
(off, critical, high, medium, low, info)
|
|
69
|
+
--fix Automatically apply all suggested fixes
|
|
70
|
+
--parallel <n> Max concurrent trigger/skill executions (default: 4)
|
|
71
|
+
--git Force ambiguous targets to be treated as git refs
|
|
72
|
+
--quiet Errors and final summary only
|
|
73
|
+
-v, --verbose Show real-time findings and hunk details
|
|
74
|
+
-vv Show debug info (token counts, latencies)
|
|
75
|
+
--color / --no-color Override color detection
|
|
76
|
+
--help, -h Show this help message
|
|
77
|
+
--version, -V Show version number
|
|
78
|
+
|
|
79
|
+
Init Options:
|
|
80
|
+
-f, --force Overwrite existing files
|
|
81
|
+
|
|
82
|
+
Add Options:
|
|
83
|
+
--list List available skills
|
|
84
|
+
--remote <ref> Remote repository (owner/repo, URL, or with @sha)
|
|
85
|
+
|
|
86
|
+
Run Options:
|
|
87
|
+
--offline Use cached remote skills without network access
|
|
88
|
+
|
|
89
|
+
Setup-app Options:
|
|
90
|
+
--org <name> Create under organization (default: personal)
|
|
91
|
+
--port <number> Local server port (default: 3000)
|
|
92
|
+
--timeout <sec> Callback timeout in seconds (default: 300)
|
|
93
|
+
--name <string> Custom app name (default: Warden)
|
|
94
|
+
--no-open Print URL instead of opening browser
|
|
95
|
+
|
|
96
|
+
Examples:
|
|
97
|
+
warden init # Initialize warden configuration
|
|
98
|
+
warden add # Interactive skill selection
|
|
99
|
+
warden add security-review # Add specific skill trigger
|
|
100
|
+
warden add --list # List available skills
|
|
101
|
+
warden add --remote getsentry/skills --skill security-review
|
|
102
|
+
# Add remote skill trigger
|
|
103
|
+
warden add --remote https://github.com/getsentry/skills --skill security-review
|
|
104
|
+
# Add remote skill via URL
|
|
105
|
+
warden add --remote getsentry/skills@abc123 --skill security-review
|
|
106
|
+
# Add pinned remote skill
|
|
107
|
+
warden # Run triggers from warden.toml
|
|
108
|
+
warden src/auth.ts # Run all skills on file
|
|
109
|
+
warden src/auth.ts --skill security-review
|
|
110
|
+
# Run specific skill on file
|
|
111
|
+
warden "src/**/*.ts" # Run all skills on glob pattern
|
|
112
|
+
warden HEAD~3 # Run all skills on git changes
|
|
113
|
+
warden HEAD~3 --skill security-review # Run specific skill on git changes
|
|
114
|
+
warden --json # Output as JSON
|
|
115
|
+
warden --fail-on high # Fail if high+ severity findings
|
|
116
|
+
warden --offline # Use cached skills only
|
|
117
|
+
warden sync # Update all unpinned remote skills
|
|
118
|
+
warden setup-app # Create GitHub App interactively
|
|
119
|
+
warden setup-app --org myorg # Create app under organization
|
|
120
|
+
`;
|
|
121
|
+
export function showHelp() {
|
|
122
|
+
console.log(HELP_TEXT.trim());
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Detect if a target looks like a git ref vs a file path.
|
|
126
|
+
* Returns 'git' for git refs, 'file' for file paths.
|
|
127
|
+
*
|
|
128
|
+
* For ambiguous targets (no path separators, no extension), checks
|
|
129
|
+
* if a file/directory exists at that path before defaulting to git ref.
|
|
130
|
+
*/
|
|
131
|
+
export function detectTargetType(target, options = {}) {
|
|
132
|
+
const { cwd = process.cwd(), forceGit = false } = options;
|
|
133
|
+
// Git range syntax (e.g., main..feature, HEAD~3..HEAD)
|
|
134
|
+
if (target.includes('..')) {
|
|
135
|
+
return 'git';
|
|
136
|
+
}
|
|
137
|
+
// Relative ref syntax (e.g., HEAD~3, main^2)
|
|
138
|
+
if (/[~^]\d*$/.test(target)) {
|
|
139
|
+
return 'git';
|
|
140
|
+
}
|
|
141
|
+
// Common git refs
|
|
142
|
+
if (/^(HEAD|FETCH_HEAD|ORIG_HEAD|MERGE_HEAD)$/i.test(target)) {
|
|
143
|
+
return 'git';
|
|
144
|
+
}
|
|
145
|
+
// Contains path separators or glob characters → file
|
|
146
|
+
if (target.includes('/') || target.includes('*') || target.includes('?')) {
|
|
147
|
+
return 'file';
|
|
148
|
+
}
|
|
149
|
+
// Has a file extension → file
|
|
150
|
+
if (/\.\w+$/.test(target)) {
|
|
151
|
+
return 'file';
|
|
152
|
+
}
|
|
153
|
+
// Ambiguous target (no path separators, no extension)
|
|
154
|
+
// If --git flag is set, force git ref interpretation
|
|
155
|
+
if (forceGit) {
|
|
156
|
+
return 'git';
|
|
157
|
+
}
|
|
158
|
+
// Check if file/directory exists at this path
|
|
159
|
+
const fullPath = `${cwd}/${target}`;
|
|
160
|
+
if (existsSync(fullPath)) {
|
|
161
|
+
return 'file';
|
|
162
|
+
}
|
|
163
|
+
// Default to git ref (will be validated later)
|
|
164
|
+
return 'git';
|
|
165
|
+
}
|
|
166
|
+
/**
|
|
167
|
+
* Classify targets into git refs and file patterns.
|
|
168
|
+
*/
|
|
169
|
+
export function classifyTargets(targets, options = {}) {
|
|
170
|
+
const gitRefs = [];
|
|
171
|
+
const filePatterns = [];
|
|
172
|
+
for (const target of targets) {
|
|
173
|
+
if (detectTargetType(target, options) === 'git') {
|
|
174
|
+
gitRefs.push(target);
|
|
175
|
+
}
|
|
176
|
+
else {
|
|
177
|
+
filePatterns.push(target);
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
return { gitRefs, filePatterns };
|
|
181
|
+
}
|
|
182
|
+
/**
|
|
183
|
+
* Resolve color option from --color / --no-color flags.
|
|
184
|
+
* Returns undefined for auto-detect, true for forced color, false for no color.
|
|
185
|
+
*/
|
|
186
|
+
function resolveColorOption(values) {
|
|
187
|
+
if (values['no-color']) {
|
|
188
|
+
return false;
|
|
189
|
+
}
|
|
190
|
+
if (values.color) {
|
|
191
|
+
return true;
|
|
192
|
+
}
|
|
193
|
+
return undefined;
|
|
194
|
+
}
|
|
195
|
+
export function parseCliArgs(argv = process.argv.slice(2)) {
|
|
196
|
+
// Count -v flags before parsing (parseArgs doesn't handle multiple -v well)
|
|
197
|
+
let verboseCount = 0;
|
|
198
|
+
const filteredArgv = argv.filter((arg) => {
|
|
199
|
+
if (arg === '-v' || arg === '--verbose') {
|
|
200
|
+
verboseCount++;
|
|
201
|
+
return false;
|
|
202
|
+
}
|
|
203
|
+
if (arg === '-vv') {
|
|
204
|
+
verboseCount += 2;
|
|
205
|
+
return false;
|
|
206
|
+
}
|
|
207
|
+
return true;
|
|
208
|
+
});
|
|
209
|
+
const { values, positionals } = parseArgs({
|
|
210
|
+
args: filteredArgv,
|
|
211
|
+
options: {
|
|
212
|
+
skill: { type: 'string' },
|
|
213
|
+
config: { type: 'string' },
|
|
214
|
+
model: { type: 'string', short: 'm' },
|
|
215
|
+
json: { type: 'boolean', default: false },
|
|
216
|
+
output: { type: 'string', short: 'o' },
|
|
217
|
+
'fail-on': { type: 'string' },
|
|
218
|
+
'comment-on': { type: 'string' },
|
|
219
|
+
fix: { type: 'boolean', default: false },
|
|
220
|
+
force: { type: 'boolean', short: 'f', default: false },
|
|
221
|
+
list: { type: 'boolean', short: 'l', default: false },
|
|
222
|
+
remote: { type: 'string' },
|
|
223
|
+
offline: { type: 'boolean', default: false },
|
|
224
|
+
parallel: { type: 'string' },
|
|
225
|
+
git: { type: 'boolean', default: false },
|
|
226
|
+
help: { type: 'boolean', short: 'h', default: false },
|
|
227
|
+
version: { type: 'boolean', short: 'V', default: false },
|
|
228
|
+
quiet: { type: 'boolean', default: false },
|
|
229
|
+
color: { type: 'boolean' },
|
|
230
|
+
'no-color': { type: 'boolean' },
|
|
231
|
+
// setup-app options
|
|
232
|
+
org: { type: 'string' },
|
|
233
|
+
port: { type: 'string' },
|
|
234
|
+
timeout: { type: 'string' },
|
|
235
|
+
name: { type: 'string' },
|
|
236
|
+
open: { type: 'boolean', default: true },
|
|
237
|
+
'no-open': { type: 'boolean' },
|
|
238
|
+
},
|
|
239
|
+
allowPositionals: true,
|
|
240
|
+
});
|
|
241
|
+
if (values.version) {
|
|
242
|
+
return {
|
|
243
|
+
command: 'version',
|
|
244
|
+
options: CLIOptionsSchema.parse({}),
|
|
245
|
+
};
|
|
246
|
+
}
|
|
247
|
+
if (values.help) {
|
|
248
|
+
return {
|
|
249
|
+
command: 'help',
|
|
250
|
+
options: CLIOptionsSchema.parse({ help: true }),
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
// Filter out known commands from positionals
|
|
254
|
+
const commands = ['run', 'help', 'init', 'add', 'version', 'setup-app', 'sync'];
|
|
255
|
+
const targets = positionals.filter((p) => !commands.includes(p));
|
|
256
|
+
// Handle explicit help command
|
|
257
|
+
if (positionals.includes('help')) {
|
|
258
|
+
return {
|
|
259
|
+
command: 'help',
|
|
260
|
+
options: CLIOptionsSchema.parse({ help: true }),
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
// Handle explicit version command
|
|
264
|
+
if (positionals.includes('version')) {
|
|
265
|
+
return {
|
|
266
|
+
command: 'version',
|
|
267
|
+
options: CLIOptionsSchema.parse({}),
|
|
268
|
+
};
|
|
269
|
+
}
|
|
270
|
+
// Handle init command
|
|
271
|
+
if (positionals.includes('init')) {
|
|
272
|
+
return {
|
|
273
|
+
command: 'init',
|
|
274
|
+
options: CLIOptionsSchema.parse({
|
|
275
|
+
force: values.force,
|
|
276
|
+
quiet: values.quiet,
|
|
277
|
+
color: resolveColorOption(values),
|
|
278
|
+
}),
|
|
279
|
+
};
|
|
280
|
+
}
|
|
281
|
+
// Handle add command
|
|
282
|
+
if (positionals.includes('add')) {
|
|
283
|
+
// First positional after 'add' is the skill name
|
|
284
|
+
const addIndex = positionals.indexOf('add');
|
|
285
|
+
const skillArg = positionals[addIndex + 1];
|
|
286
|
+
return {
|
|
287
|
+
command: 'add',
|
|
288
|
+
options: CLIOptionsSchema.parse({
|
|
289
|
+
skill: values.skill ?? skillArg,
|
|
290
|
+
list: values.list,
|
|
291
|
+
remote: values.remote,
|
|
292
|
+
quiet: values.quiet,
|
|
293
|
+
color: resolveColorOption(values),
|
|
294
|
+
}),
|
|
295
|
+
};
|
|
296
|
+
}
|
|
297
|
+
// Handle sync command
|
|
298
|
+
if (positionals.includes('sync')) {
|
|
299
|
+
// First positional after 'sync' is the remote to sync, --remote flag takes precedence
|
|
300
|
+
const syncIndex = positionals.indexOf('sync');
|
|
301
|
+
const remoteArg = values.remote ?? positionals[syncIndex + 1];
|
|
302
|
+
return {
|
|
303
|
+
command: 'sync',
|
|
304
|
+
options: CLIOptionsSchema.parse({
|
|
305
|
+
remote: remoteArg,
|
|
306
|
+
quiet: values.quiet,
|
|
307
|
+
color: resolveColorOption(values),
|
|
308
|
+
}),
|
|
309
|
+
};
|
|
310
|
+
}
|
|
311
|
+
// Handle setup-app command
|
|
312
|
+
if (positionals.includes('setup-app')) {
|
|
313
|
+
return {
|
|
314
|
+
command: 'setup-app',
|
|
315
|
+
options: CLIOptionsSchema.parse({
|
|
316
|
+
quiet: values.quiet,
|
|
317
|
+
color: resolveColorOption(values),
|
|
318
|
+
}),
|
|
319
|
+
setupAppOptions: {
|
|
320
|
+
org: values.org,
|
|
321
|
+
port: values.port ? parseInt(values.port, 10) : 3000,
|
|
322
|
+
timeout: values.timeout ? parseInt(values.timeout, 10) : 300,
|
|
323
|
+
name: values.name,
|
|
324
|
+
open: !values['no-open'],
|
|
325
|
+
},
|
|
326
|
+
};
|
|
327
|
+
}
|
|
328
|
+
const rawOptions = {
|
|
329
|
+
targets: targets.length > 0 ? targets : undefined,
|
|
330
|
+
skill: values.skill,
|
|
331
|
+
config: values.config,
|
|
332
|
+
model: values.model,
|
|
333
|
+
json: values.json,
|
|
334
|
+
output: values.output,
|
|
335
|
+
failOn: values['fail-on'],
|
|
336
|
+
commentOn: values['comment-on'],
|
|
337
|
+
fix: values.fix,
|
|
338
|
+
force: values.force,
|
|
339
|
+
parallel: values.parallel ? parseInt(values.parallel, 10) : undefined,
|
|
340
|
+
git: values.git,
|
|
341
|
+
offline: values.offline,
|
|
342
|
+
help: values.help,
|
|
343
|
+
quiet: values.quiet,
|
|
344
|
+
verbose: verboseCount,
|
|
345
|
+
color: resolveColorOption(values),
|
|
346
|
+
};
|
|
347
|
+
const result = CLIOptionsSchema.safeParse(rawOptions);
|
|
348
|
+
if (!result.success) {
|
|
349
|
+
const issues = result.error.issues.map((i) => ` - ${i.path.join('.')}: ${i.message}`);
|
|
350
|
+
console.error('Invalid options:');
|
|
351
|
+
console.error(issues.join('\n'));
|
|
352
|
+
process.exit(1);
|
|
353
|
+
}
|
|
354
|
+
return {
|
|
355
|
+
command: 'run',
|
|
356
|
+
options: result.data,
|
|
357
|
+
};
|
|
358
|
+
}
|
|
359
|
+
//# sourceMappingURL=args.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"args.js","sourceRoot":"","sources":["../../src/cli/args.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAE5D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,MAAM,CAAC,MAAM,gBAAgB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