@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,269 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const SeveritySchema: z.ZodEnum<{
|
|
3
|
+
critical: "critical";
|
|
4
|
+
high: "high";
|
|
5
|
+
medium: "medium";
|
|
6
|
+
low: "low";
|
|
7
|
+
info: "info";
|
|
8
|
+
}>;
|
|
9
|
+
export type Severity = z.infer<typeof SeveritySchema>;
|
|
10
|
+
export declare const ConfidenceSchema: z.ZodEnum<{
|
|
11
|
+
high: "high";
|
|
12
|
+
medium: "medium";
|
|
13
|
+
low: "low";
|
|
14
|
+
}>;
|
|
15
|
+
export type Confidence = z.infer<typeof ConfidenceSchema>;
|
|
16
|
+
/**
|
|
17
|
+
* Confidence order for comparison (lower = more confident).
|
|
18
|
+
* Single source of truth for confidence ordering across the codebase.
|
|
19
|
+
*/
|
|
20
|
+
export declare const CONFIDENCE_ORDER: Record<Confidence, number>;
|
|
21
|
+
export declare const SeverityThresholdSchema: z.ZodEnum<{
|
|
22
|
+
critical: "critical";
|
|
23
|
+
high: "high";
|
|
24
|
+
medium: "medium";
|
|
25
|
+
low: "low";
|
|
26
|
+
info: "info";
|
|
27
|
+
off: "off";
|
|
28
|
+
}>;
|
|
29
|
+
export type SeverityThreshold = z.infer<typeof SeverityThresholdSchema>;
|
|
30
|
+
/**
|
|
31
|
+
* Severity order for comparison (lower = more severe).
|
|
32
|
+
* Single source of truth for severity ordering across the codebase.
|
|
33
|
+
*/
|
|
34
|
+
export declare const SEVERITY_ORDER: Record<Severity, number>;
|
|
35
|
+
/**
|
|
36
|
+
* Filter findings to only include those at or above the given severity threshold.
|
|
37
|
+
* If no threshold is provided, returns all findings unchanged.
|
|
38
|
+
* If threshold is 'off', returns empty array (disabled).
|
|
39
|
+
*/
|
|
40
|
+
export declare function filterFindingsBySeverity(findings: Finding[], threshold?: SeverityThreshold): Finding[];
|
|
41
|
+
export declare const LocationSchema: z.ZodObject<{
|
|
42
|
+
path: z.ZodString;
|
|
43
|
+
startLine: z.ZodNumber;
|
|
44
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
export type Location = z.infer<typeof LocationSchema>;
|
|
47
|
+
export declare const SuggestedFixSchema: z.ZodObject<{
|
|
48
|
+
description: z.ZodString;
|
|
49
|
+
diff: z.ZodString;
|
|
50
|
+
}, z.core.$strip>;
|
|
51
|
+
export type SuggestedFix = z.infer<typeof SuggestedFixSchema>;
|
|
52
|
+
export declare const FindingSchema: z.ZodObject<{
|
|
53
|
+
id: z.ZodString;
|
|
54
|
+
severity: z.ZodEnum<{
|
|
55
|
+
critical: "critical";
|
|
56
|
+
high: "high";
|
|
57
|
+
medium: "medium";
|
|
58
|
+
low: "low";
|
|
59
|
+
info: "info";
|
|
60
|
+
}>;
|
|
61
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
62
|
+
high: "high";
|
|
63
|
+
medium: "medium";
|
|
64
|
+
low: "low";
|
|
65
|
+
}>>;
|
|
66
|
+
title: z.ZodString;
|
|
67
|
+
description: z.ZodString;
|
|
68
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
69
|
+
path: z.ZodString;
|
|
70
|
+
startLine: z.ZodNumber;
|
|
71
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
72
|
+
}, z.core.$strip>>;
|
|
73
|
+
suggestedFix: z.ZodOptional<z.ZodObject<{
|
|
74
|
+
description: z.ZodString;
|
|
75
|
+
diff: z.ZodString;
|
|
76
|
+
}, z.core.$strip>>;
|
|
77
|
+
elapsedMs: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
}, z.core.$strip>;
|
|
79
|
+
export type Finding = z.infer<typeof FindingSchema>;
|
|
80
|
+
export declare const UsageStatsSchema: z.ZodObject<{
|
|
81
|
+
inputTokens: z.ZodNumber;
|
|
82
|
+
outputTokens: z.ZodNumber;
|
|
83
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
84
|
+
cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
85
|
+
costUSD: z.ZodNumber;
|
|
86
|
+
}, z.core.$strip>;
|
|
87
|
+
export type UsageStats = z.infer<typeof UsageStatsSchema>;
|
|
88
|
+
export declare const SkippedFileSchema: z.ZodObject<{
|
|
89
|
+
filename: z.ZodString;
|
|
90
|
+
reason: z.ZodEnum<{
|
|
91
|
+
pattern: "pattern";
|
|
92
|
+
builtin: "builtin";
|
|
93
|
+
}>;
|
|
94
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
export type SkippedFile = z.infer<typeof SkippedFileSchema>;
|
|
97
|
+
export declare const SkillReportSchema: z.ZodObject<{
|
|
98
|
+
skill: z.ZodString;
|
|
99
|
+
summary: z.ZodString;
|
|
100
|
+
findings: z.ZodArray<z.ZodObject<{
|
|
101
|
+
id: z.ZodString;
|
|
102
|
+
severity: z.ZodEnum<{
|
|
103
|
+
critical: "critical";
|
|
104
|
+
high: "high";
|
|
105
|
+
medium: "medium";
|
|
106
|
+
low: "low";
|
|
107
|
+
info: "info";
|
|
108
|
+
}>;
|
|
109
|
+
confidence: z.ZodOptional<z.ZodEnum<{
|
|
110
|
+
high: "high";
|
|
111
|
+
medium: "medium";
|
|
112
|
+
low: "low";
|
|
113
|
+
}>>;
|
|
114
|
+
title: z.ZodString;
|
|
115
|
+
description: z.ZodString;
|
|
116
|
+
location: z.ZodOptional<z.ZodObject<{
|
|
117
|
+
path: z.ZodString;
|
|
118
|
+
startLine: z.ZodNumber;
|
|
119
|
+
endLine: z.ZodOptional<z.ZodNumber>;
|
|
120
|
+
}, z.core.$strip>>;
|
|
121
|
+
suggestedFix: z.ZodOptional<z.ZodObject<{
|
|
122
|
+
description: z.ZodString;
|
|
123
|
+
diff: z.ZodString;
|
|
124
|
+
}, z.core.$strip>>;
|
|
125
|
+
elapsedMs: z.ZodOptional<z.ZodNumber>;
|
|
126
|
+
}, z.core.$strip>>;
|
|
127
|
+
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
128
|
+
durationMs: z.ZodOptional<z.ZodNumber>;
|
|
129
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
130
|
+
inputTokens: z.ZodNumber;
|
|
131
|
+
outputTokens: z.ZodNumber;
|
|
132
|
+
cacheReadInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
cacheCreationInputTokens: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
costUSD: z.ZodNumber;
|
|
135
|
+
}, z.core.$strip>>;
|
|
136
|
+
skippedFiles: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
137
|
+
filename: z.ZodString;
|
|
138
|
+
reason: z.ZodEnum<{
|
|
139
|
+
pattern: "pattern";
|
|
140
|
+
builtin: "builtin";
|
|
141
|
+
}>;
|
|
142
|
+
pattern: z.ZodOptional<z.ZodString>;
|
|
143
|
+
}, z.core.$strip>>>;
|
|
144
|
+
failedHunks: z.ZodOptional<z.ZodNumber>;
|
|
145
|
+
}, z.core.$strip>;
|
|
146
|
+
export type SkillReport = z.infer<typeof SkillReportSchema>;
|
|
147
|
+
export declare const GitHubEventTypeSchema: z.ZodEnum<{
|
|
148
|
+
pull_request: "pull_request";
|
|
149
|
+
issues: "issues";
|
|
150
|
+
issue_comment: "issue_comment";
|
|
151
|
+
pull_request_review: "pull_request_review";
|
|
152
|
+
pull_request_review_comment: "pull_request_review_comment";
|
|
153
|
+
schedule: "schedule";
|
|
154
|
+
}>;
|
|
155
|
+
export type GitHubEventType = z.infer<typeof GitHubEventTypeSchema>;
|
|
156
|
+
export declare const PullRequestActionSchema: z.ZodEnum<{
|
|
157
|
+
closed: "closed";
|
|
158
|
+
reopened: "reopened";
|
|
159
|
+
opened: "opened";
|
|
160
|
+
synchronize: "synchronize";
|
|
161
|
+
}>;
|
|
162
|
+
export type PullRequestAction = z.infer<typeof PullRequestActionSchema>;
|
|
163
|
+
export declare const FileChangeSchema: z.ZodObject<{
|
|
164
|
+
filename: z.ZodString;
|
|
165
|
+
status: z.ZodEnum<{
|
|
166
|
+
added: "added";
|
|
167
|
+
removed: "removed";
|
|
168
|
+
modified: "modified";
|
|
169
|
+
renamed: "renamed";
|
|
170
|
+
copied: "copied";
|
|
171
|
+
changed: "changed";
|
|
172
|
+
unchanged: "unchanged";
|
|
173
|
+
}>;
|
|
174
|
+
additions: z.ZodNumber;
|
|
175
|
+
deletions: z.ZodNumber;
|
|
176
|
+
patch: z.ZodOptional<z.ZodString>;
|
|
177
|
+
chunks: z.ZodOptional<z.ZodNumber>;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
export type FileChange = z.infer<typeof FileChangeSchema>;
|
|
180
|
+
/**
|
|
181
|
+
* Count the number of chunks/hunks in a patch string.
|
|
182
|
+
* Each chunk starts with @@ -X,Y +A,B @@
|
|
183
|
+
*/
|
|
184
|
+
export declare function countPatchChunks(patch: string | undefined): number;
|
|
185
|
+
export declare const PullRequestContextSchema: z.ZodObject<{
|
|
186
|
+
number: z.ZodNumber;
|
|
187
|
+
title: z.ZodString;
|
|
188
|
+
body: z.ZodNullable<z.ZodString>;
|
|
189
|
+
author: z.ZodString;
|
|
190
|
+
baseBranch: z.ZodString;
|
|
191
|
+
headBranch: z.ZodString;
|
|
192
|
+
headSha: z.ZodString;
|
|
193
|
+
files: z.ZodArray<z.ZodObject<{
|
|
194
|
+
filename: z.ZodString;
|
|
195
|
+
status: z.ZodEnum<{
|
|
196
|
+
added: "added";
|
|
197
|
+
removed: "removed";
|
|
198
|
+
modified: "modified";
|
|
199
|
+
renamed: "renamed";
|
|
200
|
+
copied: "copied";
|
|
201
|
+
changed: "changed";
|
|
202
|
+
unchanged: "unchanged";
|
|
203
|
+
}>;
|
|
204
|
+
additions: z.ZodNumber;
|
|
205
|
+
deletions: z.ZodNumber;
|
|
206
|
+
patch: z.ZodOptional<z.ZodString>;
|
|
207
|
+
chunks: z.ZodOptional<z.ZodNumber>;
|
|
208
|
+
}, z.core.$strip>>;
|
|
209
|
+
}, z.core.$strip>;
|
|
210
|
+
export type PullRequestContext = z.infer<typeof PullRequestContextSchema>;
|
|
211
|
+
export declare const RepositoryContextSchema: z.ZodObject<{
|
|
212
|
+
owner: z.ZodString;
|
|
213
|
+
name: z.ZodString;
|
|
214
|
+
fullName: z.ZodString;
|
|
215
|
+
defaultBranch: z.ZodString;
|
|
216
|
+
}, z.core.$strip>;
|
|
217
|
+
export type RepositoryContext = z.infer<typeof RepositoryContextSchema>;
|
|
218
|
+
export declare const EventContextSchema: z.ZodObject<{
|
|
219
|
+
eventType: z.ZodEnum<{
|
|
220
|
+
pull_request: "pull_request";
|
|
221
|
+
issues: "issues";
|
|
222
|
+
issue_comment: "issue_comment";
|
|
223
|
+
pull_request_review: "pull_request_review";
|
|
224
|
+
pull_request_review_comment: "pull_request_review_comment";
|
|
225
|
+
schedule: "schedule";
|
|
226
|
+
}>;
|
|
227
|
+
action: z.ZodString;
|
|
228
|
+
repository: z.ZodObject<{
|
|
229
|
+
owner: z.ZodString;
|
|
230
|
+
name: z.ZodString;
|
|
231
|
+
fullName: z.ZodString;
|
|
232
|
+
defaultBranch: z.ZodString;
|
|
233
|
+
}, z.core.$strip>;
|
|
234
|
+
pullRequest: z.ZodOptional<z.ZodObject<{
|
|
235
|
+
number: z.ZodNumber;
|
|
236
|
+
title: z.ZodString;
|
|
237
|
+
body: z.ZodNullable<z.ZodString>;
|
|
238
|
+
author: z.ZodString;
|
|
239
|
+
baseBranch: z.ZodString;
|
|
240
|
+
headBranch: z.ZodString;
|
|
241
|
+
headSha: z.ZodString;
|
|
242
|
+
files: z.ZodArray<z.ZodObject<{
|
|
243
|
+
filename: z.ZodString;
|
|
244
|
+
status: z.ZodEnum<{
|
|
245
|
+
added: "added";
|
|
246
|
+
removed: "removed";
|
|
247
|
+
modified: "modified";
|
|
248
|
+
renamed: "renamed";
|
|
249
|
+
copied: "copied";
|
|
250
|
+
changed: "changed";
|
|
251
|
+
unchanged: "unchanged";
|
|
252
|
+
}>;
|
|
253
|
+
additions: z.ZodNumber;
|
|
254
|
+
deletions: z.ZodNumber;
|
|
255
|
+
patch: z.ZodOptional<z.ZodString>;
|
|
256
|
+
chunks: z.ZodOptional<z.ZodNumber>;
|
|
257
|
+
}, z.core.$strip>>;
|
|
258
|
+
}, z.core.$strip>>;
|
|
259
|
+
repoPath: z.ZodString;
|
|
260
|
+
}, z.core.$strip>;
|
|
261
|
+
export type EventContext = z.infer<typeof EventContextSchema>;
|
|
262
|
+
export declare const RetryConfigSchema: z.ZodObject<{
|
|
263
|
+
maxRetries: z.ZodDefault<z.ZodNumber>;
|
|
264
|
+
initialDelayMs: z.ZodDefault<z.ZodNumber>;
|
|
265
|
+
backoffMultiplier: z.ZodDefault<z.ZodNumber>;
|
|
266
|
+
maxDelayMs: z.ZodDefault<z.ZodNumber>;
|
|
267
|
+
}, z.core.$strip>;
|
|
268
|
+
export type RetryConfig = z.infer<typeof RetryConfigSchema>;
|
|
269
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/types/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"async.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/utils/async.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,wBAAsB,gBAAgB,CAAC,CAAC,EAAE,CAAC,EACzC,KAAK,EAAE,CAAC,EAAE,EACV,EAAE,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,EAC3B,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,CAAC,EAAE,CAAC,CAUd"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export { processInBatches } from './async.js';
|
|
2
|
+
export { getVersion, getMajorVersion } from './version.js';
|
|
3
|
+
/** Default concurrency for parallel trigger/skill execution */
|
|
4
|
+
export declare const DEFAULT_CONCURRENCY = 4;
|
|
5
|
+
/**
|
|
6
|
+
* Escape HTML special characters to prevent them from being interpreted as HTML.
|
|
7
|
+
* Preserves content inside markdown code blocks (```) and inline code (`).
|
|
8
|
+
* Used when rendering finding titles/descriptions in GitHub comments.
|
|
9
|
+
*/
|
|
10
|
+
export declare function escapeHtml(text: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* Get the Anthropic API key from environment variables.
|
|
13
|
+
* Checks WARDEN_ANTHROPIC_API_KEY first, then falls back to ANTHROPIC_API_KEY.
|
|
14
|
+
*/
|
|
15
|
+
export declare function getAnthropicApiKey(): string | undefined;
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE3D,+DAA+D;AAC/D,eAAO,MAAM,mBAAmB,IAAI,CAAC;AAErC;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA+B/C;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,GAAG,SAAS,CAEvD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/utils/index.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/utils/version.ts"],"names":[],"mappings":"AAMA,wBAAgB,UAAU,IAAI,MAAM,CAMnC;AAED,wBAAgB,eAAe,IAAI,MAAM,CAExC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CLIOptionsSchema: z.ZodObject<{
|
|
3
|
+
targets: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
4
|
+
skill: z.ZodOptional<z.ZodString>;
|
|
5
|
+
config: z.ZodOptional<z.ZodString>;
|
|
6
|
+
json: z.ZodDefault<z.ZodBoolean>;
|
|
7
|
+
output: z.ZodOptional<z.ZodString>;
|
|
8
|
+
failOn: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
critical: "critical";
|
|
10
|
+
high: "high";
|
|
11
|
+
medium: "medium";
|
|
12
|
+
low: "low";
|
|
13
|
+
info: "info";
|
|
14
|
+
off: "off";
|
|
15
|
+
}>>;
|
|
16
|
+
commentOn: z.ZodOptional<z.ZodEnum<{
|
|
17
|
+
critical: "critical";
|
|
18
|
+
high: "high";
|
|
19
|
+
medium: "medium";
|
|
20
|
+
low: "low";
|
|
21
|
+
info: "info";
|
|
22
|
+
off: "off";
|
|
23
|
+
}>>;
|
|
24
|
+
help: z.ZodDefault<z.ZodBoolean>;
|
|
25
|
+
parallel: z.ZodOptional<z.ZodNumber>;
|
|
26
|
+
model: z.ZodOptional<z.ZodString>;
|
|
27
|
+
quiet: z.ZodDefault<z.ZodBoolean>;
|
|
28
|
+
verbose: z.ZodDefault<z.ZodNumber>;
|
|
29
|
+
color: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
fix: z.ZodDefault<z.ZodBoolean>;
|
|
31
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
32
|
+
list: z.ZodDefault<z.ZodBoolean>;
|
|
33
|
+
git: z.ZodDefault<z.ZodBoolean>;
|
|
34
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
35
|
+
offline: z.ZodDefault<z.ZodBoolean>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type CLIOptions = z.infer<typeof CLIOptionsSchema>;
|
|
38
|
+
export interface SetupAppOptions {
|
|
39
|
+
org?: string;
|
|
40
|
+
port: number;
|
|
41
|
+
timeout: number;
|
|
42
|
+
name?: string;
|
|
43
|
+
open: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface ParsedArgs {
|
|
46
|
+
command: 'run' | 'help' | 'init' | 'add' | 'version' | 'setup-app' | 'sync';
|
|
47
|
+
options: CLIOptions;
|
|
48
|
+
setupAppOptions?: SetupAppOptions;
|
|
49
|
+
}
|
|
50
|
+
export declare function showVersion(): void;
|
|
51
|
+
export declare function showHelp(): void;
|
|
52
|
+
export interface DetectTargetTypeOptions {
|
|
53
|
+
/** Current working directory for filesystem checks */
|
|
54
|
+
cwd?: string;
|
|
55
|
+
/** Force git ref interpretation for ambiguous targets */
|
|
56
|
+
forceGit?: boolean;
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Detect if a target looks like a git ref vs a file path.
|
|
60
|
+
* Returns 'git' for git refs, 'file' for file paths.
|
|
61
|
+
*
|
|
62
|
+
* For ambiguous targets (no path separators, no extension), checks
|
|
63
|
+
* if a file/directory exists at that path before defaulting to git ref.
|
|
64
|
+
*/
|
|
65
|
+
export declare function detectTargetType(target: string, options?: DetectTargetTypeOptions): 'git' | 'file';
|
|
66
|
+
/**
|
|
67
|
+
* Classify targets into git refs and file patterns.
|
|
68
|
+
*/
|
|
69
|
+
export declare function classifyTargets(targets: string[], options?: DetectTargetTypeOptions): {
|
|
70
|
+
gitRefs: string[];
|
|
71
|
+
filePatterns: string[];
|
|
72
|
+
};
|
|
73
|
+
export declare function parseCliArgs(argv?: string[]): ParsedArgs;
|
|
74
|
+
//# sourceMappingURL=args.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../src/cli/args.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA+B3B,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,MAAM,WAAW,eAAe;IAC9B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,OAAO,CAAC;CACf;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,GAAG,WAAW,GAAG,MAAM,CAAC;IAC5E,OAAO,EAAE,UAAU,CAAC;IACpB,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAmFD,wBAAgB,QAAQ,IAAI,IAAI,CAE/B;AAED,MAAM,WAAW,uBAAuB;IACtC,sDAAsD;IACtD,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,yDAAyD;IACzD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,GAAE,uBAA4B,GAAG,KAAK,GAAG,MAAM,CA0CtG;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,OAAO,GAAE,uBAA4B,GAAG;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAE,CAavI;AAgBD,wBAAgB,YAAY,CAAC,IAAI,GAAE,MAAM,EAA0B,GAAG,UAAU,CAkL/E"}
|