@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,318 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ToolNameSchema: z.ZodEnum<{
|
|
3
|
+
Read: "Read";
|
|
4
|
+
Write: "Write";
|
|
5
|
+
Edit: "Edit";
|
|
6
|
+
Bash: "Bash";
|
|
7
|
+
Glob: "Glob";
|
|
8
|
+
Grep: "Grep";
|
|
9
|
+
WebFetch: "WebFetch";
|
|
10
|
+
WebSearch: "WebSearch";
|
|
11
|
+
}>;
|
|
12
|
+
export type ToolName = z.infer<typeof ToolNameSchema>;
|
|
13
|
+
export declare const ToolConfigSchema: z.ZodObject<{
|
|
14
|
+
allowed: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
15
|
+
Read: "Read";
|
|
16
|
+
Write: "Write";
|
|
17
|
+
Edit: "Edit";
|
|
18
|
+
Bash: "Bash";
|
|
19
|
+
Glob: "Glob";
|
|
20
|
+
Grep: "Grep";
|
|
21
|
+
WebFetch: "WebFetch";
|
|
22
|
+
WebSearch: "WebSearch";
|
|
23
|
+
}>>>;
|
|
24
|
+
denied: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
25
|
+
Read: "Read";
|
|
26
|
+
Write: "Write";
|
|
27
|
+
Edit: "Edit";
|
|
28
|
+
Bash: "Bash";
|
|
29
|
+
Glob: "Glob";
|
|
30
|
+
Grep: "Grep";
|
|
31
|
+
WebFetch: "WebFetch";
|
|
32
|
+
WebSearch: "WebSearch";
|
|
33
|
+
}>>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export type ToolConfig = z.infer<typeof ToolConfigSchema>;
|
|
36
|
+
export declare const SkillDefinitionSchema: z.ZodObject<{
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
description: z.ZodString;
|
|
39
|
+
prompt: z.ZodString;
|
|
40
|
+
tools: z.ZodOptional<z.ZodObject<{
|
|
41
|
+
allowed: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
42
|
+
Read: "Read";
|
|
43
|
+
Write: "Write";
|
|
44
|
+
Edit: "Edit";
|
|
45
|
+
Bash: "Bash";
|
|
46
|
+
Glob: "Glob";
|
|
47
|
+
Grep: "Grep";
|
|
48
|
+
WebFetch: "WebFetch";
|
|
49
|
+
WebSearch: "WebSearch";
|
|
50
|
+
}>>>;
|
|
51
|
+
denied: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
52
|
+
Read: "Read";
|
|
53
|
+
Write: "Write";
|
|
54
|
+
Edit: "Edit";
|
|
55
|
+
Bash: "Bash";
|
|
56
|
+
Glob: "Glob";
|
|
57
|
+
Grep: "Grep";
|
|
58
|
+
WebFetch: "WebFetch";
|
|
59
|
+
WebSearch: "WebSearch";
|
|
60
|
+
}>>>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
outputSchema: z.ZodOptional<z.ZodString>;
|
|
63
|
+
rootDir: z.ZodOptional<z.ZodString>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export type SkillDefinition = z.infer<typeof SkillDefinitionSchema>;
|
|
66
|
+
export declare const PathFilterSchema: z.ZodObject<{
|
|
67
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
68
|
+
ignorePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
export type PathFilter = z.infer<typeof PathFilterSchema>;
|
|
71
|
+
export declare const OutputConfigSchema: z.ZodObject<{
|
|
72
|
+
failOn: z.ZodOptional<z.ZodEnum<{
|
|
73
|
+
critical: "critical";
|
|
74
|
+
high: "high";
|
|
75
|
+
medium: "medium";
|
|
76
|
+
low: "low";
|
|
77
|
+
info: "info";
|
|
78
|
+
off: "off";
|
|
79
|
+
}>>;
|
|
80
|
+
commentOn: z.ZodOptional<z.ZodEnum<{
|
|
81
|
+
critical: "critical";
|
|
82
|
+
high: "high";
|
|
83
|
+
medium: "medium";
|
|
84
|
+
low: "low";
|
|
85
|
+
info: "info";
|
|
86
|
+
off: "off";
|
|
87
|
+
}>>;
|
|
88
|
+
maxFindings: z.ZodOptional<z.ZodNumber>;
|
|
89
|
+
commentOnSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
}, z.core.$strip>;
|
|
91
|
+
export type OutputConfig = z.infer<typeof OutputConfigSchema>;
|
|
92
|
+
export declare const ScheduleConfigSchema: z.ZodObject<{
|
|
93
|
+
issueTitle: z.ZodOptional<z.ZodString>;
|
|
94
|
+
createFixPR: z.ZodDefault<z.ZodBoolean>;
|
|
95
|
+
fixBranchPrefix: z.ZodDefault<z.ZodString>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
export type ScheduleConfig = z.infer<typeof ScheduleConfigSchema>;
|
|
98
|
+
export declare const TriggerSchema: z.ZodObject<{
|
|
99
|
+
name: z.ZodString;
|
|
100
|
+
event: z.ZodEnum<{
|
|
101
|
+
pull_request: "pull_request";
|
|
102
|
+
issues: "issues";
|
|
103
|
+
issue_comment: "issue_comment";
|
|
104
|
+
schedule: "schedule";
|
|
105
|
+
}>;
|
|
106
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
107
|
+
skill: z.ZodString;
|
|
108
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
109
|
+
filters: z.ZodOptional<z.ZodObject<{
|
|
110
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
111
|
+
ignorePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
112
|
+
}, z.core.$strip>>;
|
|
113
|
+
output: z.ZodOptional<z.ZodObject<{
|
|
114
|
+
failOn: z.ZodOptional<z.ZodEnum<{
|
|
115
|
+
critical: "critical";
|
|
116
|
+
high: "high";
|
|
117
|
+
medium: "medium";
|
|
118
|
+
low: "low";
|
|
119
|
+
info: "info";
|
|
120
|
+
off: "off";
|
|
121
|
+
}>>;
|
|
122
|
+
commentOn: z.ZodOptional<z.ZodEnum<{
|
|
123
|
+
critical: "critical";
|
|
124
|
+
high: "high";
|
|
125
|
+
medium: "medium";
|
|
126
|
+
low: "low";
|
|
127
|
+
info: "info";
|
|
128
|
+
off: "off";
|
|
129
|
+
}>>;
|
|
130
|
+
maxFindings: z.ZodOptional<z.ZodNumber>;
|
|
131
|
+
commentOnSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
132
|
+
}, z.core.$strip>>;
|
|
133
|
+
model: z.ZodOptional<z.ZodString>;
|
|
134
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
136
|
+
issueTitle: z.ZodOptional<z.ZodString>;
|
|
137
|
+
createFixPR: z.ZodDefault<z.ZodBoolean>;
|
|
138
|
+
fixBranchPrefix: z.ZodDefault<z.ZodString>;
|
|
139
|
+
}, z.core.$strip>>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
export type Trigger = z.infer<typeof TriggerSchema>;
|
|
142
|
+
export declare const RunnerConfigSchema: z.ZodObject<{
|
|
143
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
144
|
+
}, z.core.$strip>;
|
|
145
|
+
export type RunnerConfig = z.infer<typeof RunnerConfigSchema>;
|
|
146
|
+
export declare const FilePatternSchema: z.ZodObject<{
|
|
147
|
+
pattern: z.ZodString;
|
|
148
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
149
|
+
"per-hunk": "per-hunk";
|
|
150
|
+
"whole-file": "whole-file";
|
|
151
|
+
skip: "skip";
|
|
152
|
+
}>>;
|
|
153
|
+
}, z.core.$strip>;
|
|
154
|
+
export type FilePattern = z.infer<typeof FilePatternSchema>;
|
|
155
|
+
export declare const CoalesceConfigSchema: z.ZodObject<{
|
|
156
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
157
|
+
maxGapLines: z.ZodDefault<z.ZodNumber>;
|
|
158
|
+
maxChunkSize: z.ZodDefault<z.ZodNumber>;
|
|
159
|
+
}, z.core.$strip>;
|
|
160
|
+
export type CoalesceConfig = z.infer<typeof CoalesceConfigSchema>;
|
|
161
|
+
export declare const ChunkingConfigSchema: z.ZodObject<{
|
|
162
|
+
filePatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
163
|
+
pattern: z.ZodString;
|
|
164
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
165
|
+
"per-hunk": "per-hunk";
|
|
166
|
+
"whole-file": "whole-file";
|
|
167
|
+
skip: "skip";
|
|
168
|
+
}>>;
|
|
169
|
+
}, z.core.$strip>>>;
|
|
170
|
+
coalesce: z.ZodOptional<z.ZodObject<{
|
|
171
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
172
|
+
maxGapLines: z.ZodDefault<z.ZodNumber>;
|
|
173
|
+
maxChunkSize: z.ZodDefault<z.ZodNumber>;
|
|
174
|
+
}, z.core.$strip>>;
|
|
175
|
+
}, z.core.$strip>;
|
|
176
|
+
export type ChunkingConfig = z.infer<typeof ChunkingConfigSchema>;
|
|
177
|
+
export declare const DefaultsSchema: z.ZodObject<{
|
|
178
|
+
filters: z.ZodOptional<z.ZodObject<{
|
|
179
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
180
|
+
ignorePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
181
|
+
}, z.core.$strip>>;
|
|
182
|
+
output: z.ZodOptional<z.ZodObject<{
|
|
183
|
+
failOn: z.ZodOptional<z.ZodEnum<{
|
|
184
|
+
critical: "critical";
|
|
185
|
+
high: "high";
|
|
186
|
+
medium: "medium";
|
|
187
|
+
low: "low";
|
|
188
|
+
info: "info";
|
|
189
|
+
off: "off";
|
|
190
|
+
}>>;
|
|
191
|
+
commentOn: z.ZodOptional<z.ZodEnum<{
|
|
192
|
+
critical: "critical";
|
|
193
|
+
high: "high";
|
|
194
|
+
medium: "medium";
|
|
195
|
+
low: "low";
|
|
196
|
+
info: "info";
|
|
197
|
+
off: "off";
|
|
198
|
+
}>>;
|
|
199
|
+
maxFindings: z.ZodOptional<z.ZodNumber>;
|
|
200
|
+
commentOnSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
201
|
+
}, z.core.$strip>>;
|
|
202
|
+
model: z.ZodOptional<z.ZodString>;
|
|
203
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
204
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
205
|
+
chunking: z.ZodOptional<z.ZodObject<{
|
|
206
|
+
filePatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
207
|
+
pattern: z.ZodString;
|
|
208
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
209
|
+
"per-hunk": "per-hunk";
|
|
210
|
+
"whole-file": "whole-file";
|
|
211
|
+
skip: "skip";
|
|
212
|
+
}>>;
|
|
213
|
+
}, z.core.$strip>>>;
|
|
214
|
+
coalesce: z.ZodOptional<z.ZodObject<{
|
|
215
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
216
|
+
maxGapLines: z.ZodDefault<z.ZodNumber>;
|
|
217
|
+
maxChunkSize: z.ZodDefault<z.ZodNumber>;
|
|
218
|
+
}, z.core.$strip>>;
|
|
219
|
+
}, z.core.$strip>>;
|
|
220
|
+
batchDelayMs: z.ZodOptional<z.ZodNumber>;
|
|
221
|
+
}, z.core.$strip>;
|
|
222
|
+
export type Defaults = z.infer<typeof DefaultsSchema>;
|
|
223
|
+
export declare const WardenConfigSchema: z.ZodObject<{
|
|
224
|
+
version: z.ZodLiteral<1>;
|
|
225
|
+
defaults: z.ZodOptional<z.ZodObject<{
|
|
226
|
+
filters: z.ZodOptional<z.ZodObject<{
|
|
227
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
228
|
+
ignorePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
229
|
+
}, z.core.$strip>>;
|
|
230
|
+
output: z.ZodOptional<z.ZodObject<{
|
|
231
|
+
failOn: z.ZodOptional<z.ZodEnum<{
|
|
232
|
+
critical: "critical";
|
|
233
|
+
high: "high";
|
|
234
|
+
medium: "medium";
|
|
235
|
+
low: "low";
|
|
236
|
+
info: "info";
|
|
237
|
+
off: "off";
|
|
238
|
+
}>>;
|
|
239
|
+
commentOn: z.ZodOptional<z.ZodEnum<{
|
|
240
|
+
critical: "critical";
|
|
241
|
+
high: "high";
|
|
242
|
+
medium: "medium";
|
|
243
|
+
low: "low";
|
|
244
|
+
info: "info";
|
|
245
|
+
off: "off";
|
|
246
|
+
}>>;
|
|
247
|
+
maxFindings: z.ZodOptional<z.ZodNumber>;
|
|
248
|
+
commentOnSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
249
|
+
}, z.core.$strip>>;
|
|
250
|
+
model: z.ZodOptional<z.ZodString>;
|
|
251
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
252
|
+
defaultBranch: z.ZodOptional<z.ZodString>;
|
|
253
|
+
chunking: z.ZodOptional<z.ZodObject<{
|
|
254
|
+
filePatterns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
255
|
+
pattern: z.ZodString;
|
|
256
|
+
mode: z.ZodDefault<z.ZodEnum<{
|
|
257
|
+
"per-hunk": "per-hunk";
|
|
258
|
+
"whole-file": "whole-file";
|
|
259
|
+
skip: "skip";
|
|
260
|
+
}>>;
|
|
261
|
+
}, z.core.$strip>>>;
|
|
262
|
+
coalesce: z.ZodOptional<z.ZodObject<{
|
|
263
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
264
|
+
maxGapLines: z.ZodDefault<z.ZodNumber>;
|
|
265
|
+
maxChunkSize: z.ZodDefault<z.ZodNumber>;
|
|
266
|
+
}, z.core.$strip>>;
|
|
267
|
+
}, z.core.$strip>>;
|
|
268
|
+
batchDelayMs: z.ZodOptional<z.ZodNumber>;
|
|
269
|
+
}, z.core.$strip>>;
|
|
270
|
+
triggers: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
271
|
+
name: z.ZodString;
|
|
272
|
+
event: z.ZodEnum<{
|
|
273
|
+
pull_request: "pull_request";
|
|
274
|
+
issues: "issues";
|
|
275
|
+
issue_comment: "issue_comment";
|
|
276
|
+
schedule: "schedule";
|
|
277
|
+
}>;
|
|
278
|
+
actions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
279
|
+
skill: z.ZodString;
|
|
280
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
281
|
+
filters: z.ZodOptional<z.ZodObject<{
|
|
282
|
+
paths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
283
|
+
ignorePaths: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
284
|
+
}, z.core.$strip>>;
|
|
285
|
+
output: z.ZodOptional<z.ZodObject<{
|
|
286
|
+
failOn: z.ZodOptional<z.ZodEnum<{
|
|
287
|
+
critical: "critical";
|
|
288
|
+
high: "high";
|
|
289
|
+
medium: "medium";
|
|
290
|
+
low: "low";
|
|
291
|
+
info: "info";
|
|
292
|
+
off: "off";
|
|
293
|
+
}>>;
|
|
294
|
+
commentOn: z.ZodOptional<z.ZodEnum<{
|
|
295
|
+
critical: "critical";
|
|
296
|
+
high: "high";
|
|
297
|
+
medium: "medium";
|
|
298
|
+
low: "low";
|
|
299
|
+
info: "info";
|
|
300
|
+
off: "off";
|
|
301
|
+
}>>;
|
|
302
|
+
maxFindings: z.ZodOptional<z.ZodNumber>;
|
|
303
|
+
commentOnSuccess: z.ZodOptional<z.ZodBoolean>;
|
|
304
|
+
}, z.core.$strip>>;
|
|
305
|
+
model: z.ZodOptional<z.ZodString>;
|
|
306
|
+
maxTurns: z.ZodOptional<z.ZodNumber>;
|
|
307
|
+
schedule: z.ZodOptional<z.ZodObject<{
|
|
308
|
+
issueTitle: z.ZodOptional<z.ZodString>;
|
|
309
|
+
createFixPR: z.ZodDefault<z.ZodBoolean>;
|
|
310
|
+
fixBranchPrefix: z.ZodDefault<z.ZodString>;
|
|
311
|
+
}, z.core.$strip>>;
|
|
312
|
+
}, z.core.$strip>>>;
|
|
313
|
+
runner: z.ZodOptional<z.ZodObject<{
|
|
314
|
+
concurrency: z.ZodOptional<z.ZodNumber>;
|
|
315
|
+
}, z.core.$strip>>;
|
|
316
|
+
}, z.core.$strip>;
|
|
317
|
+
export type WardenConfig = z.infer<typeof WardenConfigSchema>;
|
|
318
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/config/schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,cAAc;;;;;;;;;EASzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAGtD,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;iBAG3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAG1D,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAQhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAGpE,eAAO,MAAM,gBAAgB;;;iBAG3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAG1D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;iBAM7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAG9D,eAAO,MAAM,oBAAoB;;;;iBAO/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGlE,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwCzB,CAAC;AACF,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAGpD,eAAO,MAAM,kBAAkB;;iBAG7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAG9D,eAAO,MAAM,iBAAiB;;;;;;;iBAK5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAG5D,eAAO,MAAM,oBAAoB;;;;iBAO/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGlE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;iBAK/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGlE,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAazB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAGtD,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Trigger } from './schema.js';
|
|
2
|
+
/**
|
|
3
|
+
* Generate TOML representation of a trigger.
|
|
4
|
+
*/
|
|
5
|
+
export declare function generateTriggerToml(trigger: Trigger): string;
|
|
6
|
+
/**
|
|
7
|
+
* Append a trigger to the warden.toml configuration file.
|
|
8
|
+
* Preserves existing content and formatting by appending to the end.
|
|
9
|
+
*/
|
|
10
|
+
export declare function appendTrigger(configPath: string, trigger: Trigger): void;
|
|
11
|
+
//# sourceMappingURL=writer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/config/writer.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,CAsD5D;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,GAAG,IAAI,CAiBxE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"writer.test.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/config/writer.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* File classification for chunking - determines how files should be processed
|
|
3
|
+
*/
|
|
4
|
+
import type { FilePattern } from '../config/schema.js';
|
|
5
|
+
/** Processing mode for a file */
|
|
6
|
+
export type FileMode = 'per-hunk' | 'whole-file' | 'skip';
|
|
7
|
+
/**
|
|
8
|
+
* Built-in patterns that are always applied before user patterns.
|
|
9
|
+
* These skip common lock files, minified code, and build artifacts.
|
|
10
|
+
*/
|
|
11
|
+
export declare const BUILTIN_SKIP_PATTERNS: string[];
|
|
12
|
+
/**
|
|
13
|
+
* Classify a file to determine how it should be processed.
|
|
14
|
+
*
|
|
15
|
+
* @param filename - The file path to classify
|
|
16
|
+
* @param userPatterns - Optional user-defined patterns (can override built-ins)
|
|
17
|
+
* @returns The processing mode: 'per-hunk', 'whole-file', or 'skip'
|
|
18
|
+
*
|
|
19
|
+
* Order of precedence:
|
|
20
|
+
* 1. User patterns are checked first (higher priority, allows overriding built-ins)
|
|
21
|
+
* 2. Built-in skip patterns are checked second
|
|
22
|
+
* 3. Default is 'per-hunk' if no patterns match
|
|
23
|
+
*/
|
|
24
|
+
export declare function classifyFile(filename: string, userPatterns?: FilePattern[]): FileMode;
|
|
25
|
+
/**
|
|
26
|
+
* Check if a file should be skipped based on classification.
|
|
27
|
+
*/
|
|
28
|
+
export declare function shouldSkipFile(filename: string, userPatterns?: FilePattern[]): boolean;
|
|
29
|
+
//# sourceMappingURL=classify.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classify.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/diff/classify.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAEvD,iCAAiC;AACjC,MAAM,MAAM,QAAQ,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,CAAC;AAE1D;;;GAGG;AACH,eAAO,MAAM,qBAAqB,UAiCjC,CAAC;AAEF;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAC1B,QAAQ,EAAE,MAAM,EAChB,YAAY,CAAC,EAAE,WAAW,EAAE,GAC3B,QAAQ,CAiBV;AAED;;GAEG;AACH,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,EAChB,YAAY,CAAC,EAAE,WAAW,EAAE,GAC3B,OAAO,CAET"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classify.test.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/diff/classify.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Hunk coalescing - merges nearby hunks into fewer, larger chunks
|
|
3
|
+
* to reduce the number of LLM API calls while keeping chunk sizes manageable.
|
|
4
|
+
*/
|
|
5
|
+
import type { DiffHunk } from './parser.js';
|
|
6
|
+
/** Default maximum gap in lines between hunks to merge */
|
|
7
|
+
export declare const DEFAULT_MAX_GAP_LINES = 30;
|
|
8
|
+
/** Default maximum chunk size in characters */
|
|
9
|
+
export declare const DEFAULT_MAX_CHUNK_SIZE = 8000;
|
|
10
|
+
/**
|
|
11
|
+
* Options for coalescing hunks.
|
|
12
|
+
*/
|
|
13
|
+
export interface CoalesceOptions {
|
|
14
|
+
/** Max lines gap between hunks to merge (default: 30) */
|
|
15
|
+
maxGapLines?: number;
|
|
16
|
+
/** Target max size per chunk in characters (default: 8000) */
|
|
17
|
+
maxChunkSize?: number;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Coalesce hunks that are close together into larger chunks.
|
|
21
|
+
*
|
|
22
|
+
* This reduces the number of LLM API calls by merging nearby hunks,
|
|
23
|
+
* while respecting size limits to keep chunks manageable.
|
|
24
|
+
*
|
|
25
|
+
* @param hunks - Array of hunks to coalesce
|
|
26
|
+
* @param options - Coalescing options (maxGapLines, maxChunkSize)
|
|
27
|
+
* @returns Array of coalesced hunks (may be smaller than input)
|
|
28
|
+
*
|
|
29
|
+
* Algorithm:
|
|
30
|
+
* 1. Sort hunks by start line
|
|
31
|
+
* 2. For each hunk, check if it can be merged with the previous:
|
|
32
|
+
* - Gap between hunks <= maxGapLines
|
|
33
|
+
* - Combined size <= maxChunkSize
|
|
34
|
+
* 3. If both conditions are met, merge; otherwise start a new chunk
|
|
35
|
+
*/
|
|
36
|
+
export declare function coalesceHunks(hunks: DiffHunk[], options?: CoalesceOptions): DiffHunk[];
|
|
37
|
+
/**
|
|
38
|
+
* Check if coalescing would reduce the number of hunks.
|
|
39
|
+
* Useful for deciding whether to show coalescing stats.
|
|
40
|
+
*/
|
|
41
|
+
export declare function wouldCoalesceReduce(hunks: DiffHunk[], options?: CoalesceOptions): boolean;
|
|
42
|
+
//# sourceMappingURL=coalesce.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coalesce.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/diff/coalesce.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAE5C,0DAA0D;AAC1D,eAAO,MAAM,qBAAqB,KAAK,CAAC;AAExC,+CAA+C;AAC/C,eAAO,MAAM,sBAAsB,OAAO,CAAC;AAE3C;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,yDAAyD;IACzD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8DAA8D;IAC9D,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AA4CD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,aAAa,CAC3B,KAAK,EAAE,QAAQ,EAAE,EACjB,OAAO,GAAE,eAAoB,GAC5B,QAAQ,EAAE,CAkCZ;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,QAAQ,EAAE,EACjB,OAAO,GAAE,eAAoB,GAC5B,OAAO,CAIT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"coalesce.test.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/diff/coalesce.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { DiffHunk, ParsedDiff } from './parser.js';
|
|
2
|
+
/** Clear the file cache (useful for testing or long-running processes) */
|
|
3
|
+
export declare function clearFileCache(): void;
|
|
4
|
+
export interface HunkWithContext {
|
|
5
|
+
/** File path */
|
|
6
|
+
filename: string;
|
|
7
|
+
/** The hunk being analyzed */
|
|
8
|
+
hunk: DiffHunk;
|
|
9
|
+
/** Lines before the hunk (from actual file) */
|
|
10
|
+
contextBefore: string[];
|
|
11
|
+
/** Lines after the hunk (from actual file) */
|
|
12
|
+
contextAfter: string[];
|
|
13
|
+
/** Start line of contextBefore */
|
|
14
|
+
contextStartLine: number;
|
|
15
|
+
/** Detected language from file extension */
|
|
16
|
+
language: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Expand a hunk with surrounding context from the actual file.
|
|
20
|
+
*/
|
|
21
|
+
export declare function expandHunkContext(repoPath: string, filename: string, hunk: DiffHunk, contextLines?: number): HunkWithContext;
|
|
22
|
+
/**
|
|
23
|
+
* Expand all hunks in a parsed diff with context.
|
|
24
|
+
*/
|
|
25
|
+
export declare function expandDiffContext(repoPath: string, diff: ParsedDiff, contextLines?: number): HunkWithContext[];
|
|
26
|
+
/**
|
|
27
|
+
* Format a hunk with context for LLM analysis.
|
|
28
|
+
*/
|
|
29
|
+
export declare function formatHunkForAnalysis(hunkCtx: HunkWithContext): string;
|
|
30
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/diff/context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAMxD,0EAA0E;AAC1E,wBAAgB,cAAc,IAAI,IAAI,CAErC;AAyBD,MAAM,WAAW,eAAe;IAC9B,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,8BAA8B;IAC9B,IAAI,EAAE,QAAQ,CAAC;IACf,+CAA+C;IAC/C,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,8CAA8C;IAC9C,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,kCAAkC;IAClC,gBAAgB,EAAE,MAAM,CAAC;IACzB,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,CAAC;CAClB;AA2DD;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,QAAQ,EACd,YAAY,SAAK,GAChB,eAAe,CA0BjB;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,UAAU,EAChB,YAAY,SAAK,GAChB,eAAe,EAAE,CAInB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,CAwCtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.test.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/diff/context.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/diff/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unified diff parser - extracts hunks from patch strings
|
|
3
|
+
*/
|
|
4
|
+
export interface DiffHunk {
|
|
5
|
+
/** Original file start line */
|
|
6
|
+
oldStart: number;
|
|
7
|
+
/** Original file line count */
|
|
8
|
+
oldCount: number;
|
|
9
|
+
/** New file start line */
|
|
10
|
+
newStart: number;
|
|
11
|
+
/** New file line count */
|
|
12
|
+
newCount: number;
|
|
13
|
+
/** Optional header (function/class name) */
|
|
14
|
+
header?: string;
|
|
15
|
+
/** The raw hunk content including the @@ line */
|
|
16
|
+
content: string;
|
|
17
|
+
/** Just the changed lines (without @@ header) */
|
|
18
|
+
lines: string[];
|
|
19
|
+
}
|
|
20
|
+
export interface ParsedDiff {
|
|
21
|
+
/** File path */
|
|
22
|
+
filename: string;
|
|
23
|
+
/** File status */
|
|
24
|
+
status: 'added' | 'removed' | 'modified' | 'renamed';
|
|
25
|
+
/** Individual hunks in this file */
|
|
26
|
+
hunks: DiffHunk[];
|
|
27
|
+
/** The full patch string */
|
|
28
|
+
rawPatch: string;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Parse a unified diff patch into hunks.
|
|
32
|
+
*/
|
|
33
|
+
export declare function parsePatch(patch: string): DiffHunk[];
|
|
34
|
+
/**
|
|
35
|
+
* Parse a file's patch into a structured diff object.
|
|
36
|
+
*/
|
|
37
|
+
export declare function parseFileDiff(filename: string, patch: string, status?: 'added' | 'removed' | 'modified' | 'renamed'): ParsedDiff;
|
|
38
|
+
/**
|
|
39
|
+
* Get the line range covered by a hunk (in the new file).
|
|
40
|
+
*/
|
|
41
|
+
export declare function getHunkLineRange(hunk: DiffHunk): {
|
|
42
|
+
start: number;
|
|
43
|
+
end: number;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Get an expanded line range for context.
|
|
47
|
+
*/
|
|
48
|
+
export declare function getExpandedLineRange(hunk: DiffHunk, contextLines?: number): {
|
|
49
|
+
start: number;
|
|
50
|
+
end: number;
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=parser.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/diff/parser.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,WAAW,QAAQ;IACvB,+BAA+B;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,+BAA+B;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,0BAA0B;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,iDAAiD;IACjD,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AAED,MAAM,WAAW,UAAU;IACzB,gBAAgB;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB;IAClB,MAAM,EAAE,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,SAAS,CAAC;IACrD,oCAAoC;IACpC,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,4BAA4B;IAC5B,QAAQ,EAAE,MAAM,CAAC;CAClB;AA8BD;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,QAAQ,EAAE,CA6CpD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAC3B,QAAQ,EAAE,MAAM,EAChB,KAAK,EAAE,MAAM,EACb,MAAM,GAAE,OAAO,GAAG,SAAS,GAAG,UAAU,GAAG,SAAsB,GAChE,UAAU,CAOZ;AAED;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,QAAQ,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAK/E;AAED;;GAEG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,QAAQ,EACd,YAAY,SAAK,GAChB;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAMhC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parser.test.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/diff/parser.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Octokit } from '@octokit/rest';
|
|
2
|
+
import { type EventContext } from '../types/index.js';
|
|
3
|
+
export declare class EventContextError extends Error {
|
|
4
|
+
constructor(message: string, options?: {
|
|
5
|
+
cause?: unknown;
|
|
6
|
+
});
|
|
7
|
+
}
|
|
8
|
+
export declare function buildEventContext(eventName: string, eventPayload: unknown, repoPath: string, octokit: Octokit): Promise<EventContext>;
|
|
9
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/event/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,OAAO,EAEL,KAAK,YAAY,EAIlB,MAAM,mBAAmB,CAAC;AAkC3B,qBAAa,iBAAkB,SAAQ,KAAK;gBAC9B,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE;CAI3D;AAED,wBAAsB,iBAAiB,CACrC,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,OAAO,EACrB,QAAQ,EAAE,MAAM,EAChB,OAAO,EAAE,OAAO,GACf,OAAO,CAAC,YAAY,CAAC,CAuDvB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/event/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { EventContext, FileChange } from '../types/index.js';
|
|
2
|
+
export interface ScheduleContextOptions {
|
|
3
|
+
/** Glob patterns from trigger's filters.paths */
|
|
4
|
+
patterns: string[];
|
|
5
|
+
/** Glob patterns from trigger's filters.ignorePaths */
|
|
6
|
+
ignorePatterns?: string[];
|
|
7
|
+
/** Repository root path (GITHUB_WORKSPACE) */
|
|
8
|
+
repoPath: string;
|
|
9
|
+
/** Repository owner (from GITHUB_REPOSITORY) */
|
|
10
|
+
owner: string;
|
|
11
|
+
/** Repository name */
|
|
12
|
+
name: string;
|
|
13
|
+
/** Default branch name */
|
|
14
|
+
defaultBranch: string;
|
|
15
|
+
/** Current commit SHA */
|
|
16
|
+
headSha: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Build an EventContext for scheduled runs.
|
|
20
|
+
*
|
|
21
|
+
* Creates a synthetic pullRequest context from file globs using real repo info.
|
|
22
|
+
* The runner processes this normally because the files have patch data.
|
|
23
|
+
*/
|
|
24
|
+
export declare function buildScheduleEventContext(options: ScheduleContextOptions): Promise<EventContext>;
|
|
25
|
+
/**
|
|
26
|
+
* Filter file changes to only include files matching the given patterns.
|
|
27
|
+
* Used when a schedule trigger has specific path filters.
|
|
28
|
+
*/
|
|
29
|
+
export declare function filterFilesByPatterns(files: FileChange[], patterns: string[], ignorePatterns?: string[]): FileChange[];
|
|
30
|
+
//# sourceMappingURL=schedule-context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedule-context.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/event/schedule-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAIlE,MAAM,WAAW,sBAAsB;IACrC,iDAAiD;IACjD,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,uDAAuD;IACvD,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B,8CAA8C;IAC9C,QAAQ,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,0BAA0B;IAC1B,aAAa,EAAE,MAAM,CAAC;IACtB,yBAAyB;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;GAKG;AACH,wBAAsB,yBAAyB,CAC7C,OAAO,EAAE,sBAAsB,GAC9B,OAAO,CAAC,YAAY,CAAC,CA8CvB;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,UAAU,EAAE,EACnB,QAAQ,EAAE,MAAM,EAAE,EAClB,cAAc,CAAC,EAAE,MAAM,EAAE,GACxB,UAAU,EAAE,CAed"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"examples.integration.test.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/examples/examples.integration.test.ts"],"names":[],"mappings":""}
|