@sentry/warden 0.1.0 → 0.2.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/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +3 -1
- package/dist/cli/commands/init.js.map +1 -1
- package/dist/cli/commands/setup-app/manifest.d.ts.map +1 -1
- package/dist/cli/commands/setup-app/manifest.js +3 -1
- package/dist/cli/commands/setup-app/manifest.js.map +1 -1
- package/dist/cli/commands/setup-app.js +1 -1
- package/dist/cli/commands/setup-app.js.map +1 -1
- package/dist/cli/files.d.ts +11 -1
- package/dist/cli/files.d.ts.map +1 -1
- package/dist/cli/files.js +145 -4
- package/dist/cli/files.js.map +1 -1
- package/dist/cli/git.d.ts.map +1 -1
- package/dist/cli/git.js +5 -9
- package/dist/cli/git.js.map +1 -1
- package/dist/cli/index.js +0 -0
- package/dist/cli/output/icons.d.ts +4 -0
- package/dist/cli/output/icons.d.ts.map +1 -1
- package/dist/cli/output/icons.js +4 -0
- package/dist/cli/output/icons.js.map +1 -1
- package/dist/cli/output/ink-runner.d.ts +20 -0
- package/dist/cli/output/ink-runner.d.ts.map +1 -1
- package/dist/cli/output/ink-runner.js +53 -19
- package/dist/cli/output/ink-runner.js.map +1 -1
- package/dist/cli/output/tasks.d.ts.map +1 -1
- package/dist/cli/output/tasks.js +5 -1
- package/dist/cli/output/tasks.js.map +1 -1
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +15 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/diff/coalesce.d.ts +32 -2
- package/dist/diff/coalesce.d.ts.map +1 -1
- package/dist/diff/coalesce.js +174 -2
- package/dist/diff/coalesce.js.map +1 -1
- package/dist/output/dedup.d.ts.map +1 -1
- package/dist/output/dedup.js +8 -3
- package/dist/output/dedup.js.map +1 -1
- package/dist/output/renderer.d.ts.map +1 -1
- package/dist/output/renderer.js +49 -5
- package/dist/output/renderer.js.map +1 -1
- package/dist/output/stale.d.ts.map +1 -1
- package/dist/output/stale.js +7 -0
- package/dist/output/stale.js.map +1 -1
- package/dist/output/types.d.ts +15 -1
- package/dist/output/types.d.ts.map +1 -1
- package/dist/sdk/analyze.d.ts +18 -0
- package/dist/sdk/analyze.d.ts.map +1 -0
- package/dist/sdk/analyze.js +425 -0
- package/dist/sdk/analyze.js.map +1 -0
- package/dist/sdk/errors.d.ts +23 -0
- package/dist/sdk/errors.d.ts.map +1 -0
- package/dist/sdk/errors.js +72 -0
- package/dist/sdk/errors.js.map +1 -0
- package/dist/sdk/extract.d.ts +44 -0
- package/dist/sdk/extract.d.ts.map +1 -0
- package/dist/sdk/extract.js +224 -0
- package/dist/sdk/extract.js.map +1 -0
- package/dist/sdk/prepare.d.ts +13 -0
- package/dist/sdk/prepare.d.ts.map +1 -0
- package/dist/sdk/prepare.js +73 -0
- package/dist/sdk/prepare.js.map +1 -0
- package/dist/sdk/prompt.d.ts +30 -0
- package/dist/sdk/prompt.d.ts.map +1 -0
- package/dist/sdk/prompt.js +109 -0
- package/dist/sdk/prompt.js.map +1 -0
- package/dist/sdk/retry.d.ts +12 -0
- package/dist/sdk/retry.d.ts.map +1 -0
- package/dist/sdk/retry.js +31 -0
- package/dist/sdk/retry.js.map +1 -0
- package/dist/sdk/runner.d.ts +22 -199
- package/dist/sdk/runner.d.ts.map +1 -1
- package/dist/sdk/runner.js +26 -884
- package/dist/sdk/runner.js.map +1 -1
- package/dist/sdk/types.d.ts +127 -0
- package/dist/sdk/types.d.ts.map +1 -0
- package/dist/sdk/types.js +5 -0
- package/dist/sdk/types.js.map +1 -0
- package/dist/sdk/usage.d.ts +20 -0
- package/dist/sdk/usage.d.ts.map +1 -0
- package/dist/sdk/usage.js +44 -0
- package/dist/sdk/usage.js.map +1 -0
- package/dist/skills/remote.d.ts.map +1 -1
- package/dist/skills/remote.js +3 -7
- package/dist/skills/remote.js.map +1 -1
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -0
- package/dist/types/index.js.map +1 -1
- package/dist/utils/exec.d.ts +61 -0
- package/dist/utils/exec.d.ts.map +1 -0
- package/dist/utils/exec.js +111 -0
- package/dist/utils/exec.js.map +1 -0
- package/dist/utils/index.d.ts +2 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/index.js +1 -0
- package/dist/utils/index.js.map +1 -1
- package/package.json +15 -16
- package/.agents/skills/find-bugs/SKILL.md +0 -75
- package/.agents/skills/vercel-react-best-practices/AGENTS.md +0 -2934
- package/.agents/skills/vercel-react-best-practices/SKILL.md +0 -136
- package/.agents/skills/vercel-react-best-practices/rules/advanced-event-handler-refs.md +0 -55
- package/.agents/skills/vercel-react-best-practices/rules/advanced-init-once.md +0 -42
- package/.agents/skills/vercel-react-best-practices/rules/advanced-use-latest.md +0 -39
- package/.agents/skills/vercel-react-best-practices/rules/async-api-routes.md +0 -38
- package/.agents/skills/vercel-react-best-practices/rules/async-defer-await.md +0 -80
- package/.agents/skills/vercel-react-best-practices/rules/async-dependencies.md +0 -51
- package/.agents/skills/vercel-react-best-practices/rules/async-parallel.md +0 -28
- package/.agents/skills/vercel-react-best-practices/rules/async-suspense-boundaries.md +0 -99
- package/.agents/skills/vercel-react-best-practices/rules/bundle-barrel-imports.md +0 -59
- package/.agents/skills/vercel-react-best-practices/rules/bundle-conditional.md +0 -31
- package/.agents/skills/vercel-react-best-practices/rules/bundle-defer-third-party.md +0 -49
- package/.agents/skills/vercel-react-best-practices/rules/bundle-dynamic-imports.md +0 -35
- package/.agents/skills/vercel-react-best-practices/rules/bundle-preload.md +0 -50
- package/.agents/skills/vercel-react-best-practices/rules/client-event-listeners.md +0 -74
- package/.agents/skills/vercel-react-best-practices/rules/client-localstorage-schema.md +0 -71
- package/.agents/skills/vercel-react-best-practices/rules/client-passive-event-listeners.md +0 -48
- package/.agents/skills/vercel-react-best-practices/rules/client-swr-dedup.md +0 -56
- package/.agents/skills/vercel-react-best-practices/rules/js-batch-dom-css.md +0 -107
- package/.agents/skills/vercel-react-best-practices/rules/js-cache-function-results.md +0 -80
- package/.agents/skills/vercel-react-best-practices/rules/js-cache-property-access.md +0 -28
- package/.agents/skills/vercel-react-best-practices/rules/js-cache-storage.md +0 -70
- package/.agents/skills/vercel-react-best-practices/rules/js-combine-iterations.md +0 -32
- package/.agents/skills/vercel-react-best-practices/rules/js-early-exit.md +0 -50
- package/.agents/skills/vercel-react-best-practices/rules/js-hoist-regexp.md +0 -45
- package/.agents/skills/vercel-react-best-practices/rules/js-index-maps.md +0 -37
- package/.agents/skills/vercel-react-best-practices/rules/js-length-check-first.md +0 -49
- package/.agents/skills/vercel-react-best-practices/rules/js-min-max-loop.md +0 -82
- package/.agents/skills/vercel-react-best-practices/rules/js-set-map-lookups.md +0 -24
- package/.agents/skills/vercel-react-best-practices/rules/js-tosorted-immutable.md +0 -57
- package/.agents/skills/vercel-react-best-practices/rules/rendering-activity.md +0 -26
- package/.agents/skills/vercel-react-best-practices/rules/rendering-animate-svg-wrapper.md +0 -47
- package/.agents/skills/vercel-react-best-practices/rules/rendering-conditional-render.md +0 -40
- package/.agents/skills/vercel-react-best-practices/rules/rendering-content-visibility.md +0 -38
- package/.agents/skills/vercel-react-best-practices/rules/rendering-hoist-jsx.md +0 -46
- package/.agents/skills/vercel-react-best-practices/rules/rendering-hydration-no-flicker.md +0 -82
- package/.agents/skills/vercel-react-best-practices/rules/rendering-hydration-suppress-warning.md +0 -30
- package/.agents/skills/vercel-react-best-practices/rules/rendering-svg-precision.md +0 -28
- package/.agents/skills/vercel-react-best-practices/rules/rendering-usetransition-loading.md +0 -75
- package/.agents/skills/vercel-react-best-practices/rules/rerender-defer-reads.md +0 -39
- package/.agents/skills/vercel-react-best-practices/rules/rerender-dependencies.md +0 -45
- package/.agents/skills/vercel-react-best-practices/rules/rerender-derived-state-no-effect.md +0 -40
- package/.agents/skills/vercel-react-best-practices/rules/rerender-derived-state.md +0 -29
- package/.agents/skills/vercel-react-best-practices/rules/rerender-functional-setstate.md +0 -74
- package/.agents/skills/vercel-react-best-practices/rules/rerender-lazy-state-init.md +0 -58
- package/.agents/skills/vercel-react-best-practices/rules/rerender-memo-with-default-value.md +0 -38
- package/.agents/skills/vercel-react-best-practices/rules/rerender-memo.md +0 -44
- package/.agents/skills/vercel-react-best-practices/rules/rerender-move-effect-to-event.md +0 -45
- package/.agents/skills/vercel-react-best-practices/rules/rerender-simple-expression-in-memo.md +0 -35
- package/.agents/skills/vercel-react-best-practices/rules/rerender-transitions.md +0 -40
- package/.agents/skills/vercel-react-best-practices/rules/rerender-use-ref-transient-values.md +0 -73
- package/.agents/skills/vercel-react-best-practices/rules/server-after-nonblocking.md +0 -73
- package/.agents/skills/vercel-react-best-practices/rules/server-auth-actions.md +0 -96
- package/.agents/skills/vercel-react-best-practices/rules/server-cache-lru.md +0 -41
- package/.agents/skills/vercel-react-best-practices/rules/server-cache-react.md +0 -76
- package/.agents/skills/vercel-react-best-practices/rules/server-dedup-props.md +0 -65
- package/.agents/skills/vercel-react-best-practices/rules/server-parallel-fetching.md +0 -83
- package/.agents/skills/vercel-react-best-practices/rules/server-serialization.md +0 -38
- package/.claude/settings.json +0 -57
- package/.claude/skills/agent-prompt/SKILL.md +0 -54
- package/.claude/skills/agent-prompt/references/agentic-patterns.md +0 -94
- package/.claude/skills/agent-prompt/references/anti-patterns.md +0 -140
- package/.claude/skills/agent-prompt/references/context-design.md +0 -124
- package/.claude/skills/agent-prompt/references/core-principles.md +0 -75
- package/.claude/skills/agent-prompt/references/model-guidance.md +0 -118
- package/.claude/skills/agent-prompt/references/output-formats.md +0 -98
- package/.claude/skills/agent-prompt/references/skill-structure.md +0 -115
- package/.claude/skills/agent-prompt/references/system-prompts.md +0 -115
- package/.claude/skills/notseer/SKILL.md +0 -131
- package/.claude/skills/skill-writer/SKILL.md +0 -140
- package/.claude/skills/testing-guidelines/SKILL.md +0 -132
- package/.claude/skills/warden-skill/SKILL.md +0 -250
- package/.claude/skills/warden-skill/references/config-schema.md +0 -133
- package/.dex/config.toml +0 -2
- package/.github/workflows/ci.yml +0 -33
- package/.github/workflows/release.yml +0 -59
- package/.github/workflows/warden.yml +0 -40
- package/AGENTS.md +0 -89
- package/CONTRIBUTING.md +0 -60
- package/SPEC.md +0 -263
- package/action.yml +0 -87
- package/assets/favicon.png +0 -0
- package/assets/warden-icon-bw.svg +0 -5
- package/assets/warden-icon-purple.png +0 -0
- package/assets/warden-icon-purple.svg +0 -5
- package/dist/action/159.index.js +0 -523
- package/dist/action/159.index.js.map +0 -1
- package/dist/action/action/index.d.ts +0 -2
- package/dist/action/action/index.d.ts.map +0 -1
- package/dist/action/action/main.d.ts +0 -2
- package/dist/action/action/main.d.ts.map +0 -1
- package/dist/action/cli/args.d.ts +0 -74
- package/dist/action/cli/args.d.ts.map +0 -1
- package/dist/action/cli/args.test.d.ts +0 -2
- package/dist/action/cli/args.test.d.ts.map +0 -1
- package/dist/action/cli/commands/add.d.ts +0 -7
- package/dist/action/cli/commands/add.d.ts.map +0 -1
- package/dist/action/cli/commands/init.d.ts +0 -10
- package/dist/action/cli/commands/init.d.ts.map +0 -1
- package/dist/action/cli/commands/init.test.d.ts +0 -2
- package/dist/action/cli/commands/init.test.d.ts.map +0 -1
- package/dist/action/cli/commands/setup-app/browser.d.ts +0 -9
- package/dist/action/cli/commands/setup-app/browser.d.ts.map +0 -1
- package/dist/action/cli/commands/setup-app/credentials.d.ts +0 -15
- package/dist/action/cli/commands/setup-app/credentials.d.ts.map +0 -1
- package/dist/action/cli/commands/setup-app/manifest.d.ts +0 -24
- package/dist/action/cli/commands/setup-app/manifest.d.ts.map +0 -1
- package/dist/action/cli/commands/setup-app/server.d.ts +0 -28
- package/dist/action/cli/commands/setup-app/server.d.ts.map +0 -1
- package/dist/action/cli/commands/setup-app.d.ts +0 -11
- package/dist/action/cli/commands/setup-app.d.ts.map +0 -1
- package/dist/action/cli/commands/sync.d.ts +0 -9
- package/dist/action/cli/commands/sync.d.ts.map +0 -1
- package/dist/action/cli/context.d.ts +0 -27
- package/dist/action/cli/context.d.ts.map +0 -1
- package/dist/action/cli/files.d.ts +0 -22
- package/dist/action/cli/files.d.ts.map +0 -1
- package/dist/action/cli/files.test.d.ts +0 -2
- package/dist/action/cli/files.test.d.ts.map +0 -1
- package/dist/action/cli/fix.d.ts +0 -41
- package/dist/action/cli/fix.d.ts.map +0 -1
- package/dist/action/cli/fix.test.d.ts +0 -2
- package/dist/action/cli/fix.test.d.ts.map +0 -1
- package/dist/action/cli/git.d.ts +0 -73
- package/dist/action/cli/git.d.ts.map +0 -1
- package/dist/action/cli/git.test.d.ts +0 -2
- package/dist/action/cli/git.test.d.ts.map +0 -1
- package/dist/action/cli/index.d.ts +0 -3
- package/dist/action/cli/index.d.ts.map +0 -1
- package/dist/action/cli/main.d.ts +0 -7
- package/dist/action/cli/main.d.ts.map +0 -1
- package/dist/action/cli/output/box.d.ts +0 -75
- package/dist/action/cli/output/box.d.ts.map +0 -1
- package/dist/action/cli/output/formatters.d.ts +0 -90
- package/dist/action/cli/output/formatters.d.ts.map +0 -1
- package/dist/action/cli/output/formatters.test.d.ts +0 -2
- package/dist/action/cli/output/formatters.test.d.ts.map +0 -1
- package/dist/action/cli/output/icons.d.ts +0 -11
- package/dist/action/cli/output/icons.d.ts.map +0 -1
- package/dist/action/cli/output/index.d.ts +0 -10
- package/dist/action/cli/output/index.d.ts.map +0 -1
- package/dist/action/cli/output/ink-runner.d.ts +0 -9
- package/dist/action/cli/output/ink-runner.d.ts.map +0 -1
- package/dist/action/cli/output/jsonl.d.ts +0 -43
- package/dist/action/cli/output/jsonl.d.ts.map +0 -1
- package/dist/action/cli/output/jsonl.test.d.ts +0 -2
- package/dist/action/cli/output/jsonl.test.d.ts.map +0 -1
- package/dist/action/cli/output/reporter.d.ts +0 -108
- package/dist/action/cli/output/reporter.d.ts.map +0 -1
- package/dist/action/cli/output/tasks.d.ts +0 -89
- package/dist/action/cli/output/tasks.d.ts.map +0 -1
- package/dist/action/cli/output/tty.d.ts +0 -21
- package/dist/action/cli/output/tty.d.ts.map +0 -1
- package/dist/action/cli/output/tty.test.d.ts +0 -2
- package/dist/action/cli/output/tty.test.d.ts.map +0 -1
- package/dist/action/cli/output/verbosity.d.ts +0 -20
- package/dist/action/cli/output/verbosity.d.ts.map +0 -1
- package/dist/action/cli/output/verbosity.test.d.ts +0 -2
- package/dist/action/cli/output/verbosity.test.d.ts.map +0 -1
- package/dist/action/cli/terminal.d.ts +0 -19
- package/dist/action/cli/terminal.d.ts.map +0 -1
- package/dist/action/cli/terminal.test.d.ts +0 -2
- package/dist/action/cli/terminal.test.d.ts.map +0 -1
- package/dist/action/config/index.d.ts +0 -4
- package/dist/action/config/index.d.ts.map +0 -1
- package/dist/action/config/loader.d.ts +0 -27
- package/dist/action/config/loader.d.ts.map +0 -1
- package/dist/action/config/loader.test.d.ts +0 -2
- package/dist/action/config/loader.test.d.ts.map +0 -1
- package/dist/action/config/schema.d.ts +0 -318
- package/dist/action/config/schema.d.ts.map +0 -1
- package/dist/action/config/writer.d.ts +0 -11
- package/dist/action/config/writer.d.ts.map +0 -1
- package/dist/action/config/writer.test.d.ts +0 -2
- package/dist/action/config/writer.test.d.ts.map +0 -1
- package/dist/action/diff/classify.d.ts +0 -29
- package/dist/action/diff/classify.d.ts.map +0 -1
- package/dist/action/diff/classify.test.d.ts +0 -2
- package/dist/action/diff/classify.test.d.ts.map +0 -1
- package/dist/action/diff/coalesce.d.ts +0 -42
- package/dist/action/diff/coalesce.d.ts.map +0 -1
- package/dist/action/diff/coalesce.test.d.ts +0 -2
- package/dist/action/diff/coalesce.test.d.ts.map +0 -1
- package/dist/action/diff/context.d.ts +0 -30
- package/dist/action/diff/context.d.ts.map +0 -1
- package/dist/action/diff/context.test.d.ts +0 -2
- package/dist/action/diff/context.test.d.ts.map +0 -1
- package/dist/action/diff/index.d.ts +0 -5
- package/dist/action/diff/index.d.ts.map +0 -1
- package/dist/action/diff/parser.d.ts +0 -52
- package/dist/action/diff/parser.d.ts.map +0 -1
- package/dist/action/diff/parser.test.d.ts +0 -2
- package/dist/action/diff/parser.test.d.ts.map +0 -1
- package/dist/action/event/context.d.ts +0 -9
- package/dist/action/event/context.d.ts.map +0 -1
- package/dist/action/event/index.d.ts +0 -3
- package/dist/action/event/index.d.ts.map +0 -1
- package/dist/action/event/schedule-context.d.ts +0 -30
- package/dist/action/event/schedule-context.d.ts.map +0 -1
- package/dist/action/examples/examples.integration.test.d.ts +0 -2
- package/dist/action/examples/examples.integration.test.d.ts.map +0 -1
- package/dist/action/examples/index.d.ts +0 -50
- package/dist/action/examples/index.d.ts.map +0 -1
- package/dist/action/examples/index.test.d.ts +0 -2
- package/dist/action/examples/index.test.d.ts.map +0 -1
- package/dist/action/examples/setup.d.ts +0 -2
- package/dist/action/examples/setup.d.ts.map +0 -1
- package/dist/action/index.d.ts +0 -11
- package/dist/action/index.d.ts.map +0 -1
- package/dist/action/index.js +0 -38231
- package/dist/action/index.js.map +0 -1
- package/dist/action/licenses.txt +0 -992
- package/dist/action/main.d.ts +0 -2
- package/dist/action/main.d.ts.map +0 -1
- package/dist/action/main.js +0 -707
- package/dist/action/main.js.map +0 -1
- package/dist/action/output/dedup.d.ts +0 -153
- package/dist/action/output/dedup.d.ts.map +0 -1
- package/dist/action/output/dedup.test.d.ts +0 -2
- package/dist/action/output/dedup.test.d.ts.map +0 -1
- package/dist/action/output/github-checks.d.ts +0 -106
- package/dist/action/output/github-checks.d.ts.map +0 -1
- package/dist/action/output/github-checks.test.d.ts +0 -2
- package/dist/action/output/github-checks.test.d.ts.map +0 -1
- package/dist/action/output/github-issues.d.ts +0 -35
- package/dist/action/output/github-issues.d.ts.map +0 -1
- package/dist/action/output/index.d.ts +0 -6
- package/dist/action/output/index.d.ts.map +0 -1
- package/dist/action/output/issue-renderer.d.ts +0 -20
- package/dist/action/output/issue-renderer.d.ts.map +0 -1
- package/dist/action/output/renderer.d.ts +0 -4
- package/dist/action/output/renderer.d.ts.map +0 -1
- package/dist/action/output/renderer.test.d.ts +0 -2
- package/dist/action/output/renderer.test.d.ts.map +0 -1
- package/dist/action/output/stale.d.ts +0 -31
- package/dist/action/output/stale.d.ts.map +0 -1
- package/dist/action/output/stale.test.d.ts +0 -2
- package/dist/action/output/stale.test.d.ts.map +0 -1
- package/dist/action/output/types.d.ts +0 -31
- package/dist/action/output/types.d.ts.map +0 -1
- package/dist/action/package.json +0 -3
- package/dist/action/sdk/index.d.ts +0 -2
- package/dist/action/sdk/index.d.ts.map +0 -1
- package/dist/action/sdk/runner.d.ts +0 -202
- package/dist/action/sdk/runner.d.ts.map +0 -1
- package/dist/action/sdk/runner.test.d.ts +0 -2
- package/dist/action/sdk/runner.test.d.ts.map +0 -1
- package/dist/action/skills/index.d.ts +0 -5
- package/dist/action/skills/index.d.ts.map +0 -1
- package/dist/action/skills/loader.d.ts +0 -111
- package/dist/action/skills/loader.d.ts.map +0 -1
- package/dist/action/skills/loader.test.d.ts +0 -2
- package/dist/action/skills/loader.test.d.ts.map +0 -1
- package/dist/action/skills/remote.d.ts +0 -117
- package/dist/action/skills/remote.d.ts.map +0 -1
- package/dist/action/skills/remote.test.d.ts +0 -2
- package/dist/action/skills/remote.test.d.ts.map +0 -1
- package/dist/action/sourcemap-register.cjs +0 -1
- package/dist/action/triggers/matcher.d.ts +0 -30
- package/dist/action/triggers/matcher.d.ts.map +0 -1
- package/dist/action/triggers/matcher.test.d.ts +0 -2
- package/dist/action/triggers/matcher.test.d.ts.map +0 -1
- package/dist/action/types/index.d.ts +0 -269
- package/dist/action/types/index.d.ts.map +0 -1
- package/dist/action/utils/async.d.ts +0 -5
- package/dist/action/utils/async.d.ts.map +0 -1
- package/dist/action/utils/index.d.ts +0 -16
- package/dist/action/utils/index.d.ts.map +0 -1
- package/dist/action/utils/index.test.d.ts +0 -2
- package/dist/action/utils/index.test.d.ts.map +0 -1
- package/dist/action/utils/version.d.ts +0 -3
- package/dist/action/utils/version.d.ts.map +0 -1
- package/dist/cli/args.test.d.ts +0 -2
- package/dist/cli/args.test.d.ts.map +0 -1
- package/dist/cli/args.test.js +0 -392
- package/dist/cli/args.test.js.map +0 -1
- package/dist/cli/commands/init.test.d.ts +0 -2
- package/dist/cli/commands/init.test.d.ts.map +0 -1
- package/dist/cli/commands/init.test.js +0 -117
- package/dist/cli/commands/init.test.js.map +0 -1
- package/dist/cli/files.test.d.ts +0 -2
- package/dist/cli/files.test.d.ts.map +0 -1
- package/dist/cli/files.test.js +0 -117
- package/dist/cli/files.test.js.map +0 -1
- package/dist/cli/fix.test.d.ts +0 -2
- package/dist/cli/fix.test.d.ts.map +0 -1
- package/dist/cli/fix.test.js +0 -251
- package/dist/cli/fix.test.js.map +0 -1
- package/dist/cli/git.test.d.ts +0 -2
- package/dist/cli/git.test.d.ts.map +0 -1
- package/dist/cli/git.test.js +0 -96
- package/dist/cli/git.test.js.map +0 -1
- package/dist/cli/output/formatters.test.d.ts +0 -2
- package/dist/cli/output/formatters.test.d.ts.map +0 -1
- package/dist/cli/output/formatters.test.js +0 -152
- package/dist/cli/output/formatters.test.js.map +0 -1
- package/dist/cli/output/jsonl.test.d.ts +0 -2
- package/dist/cli/output/jsonl.test.d.ts.map +0 -1
- package/dist/cli/output/jsonl.test.js +0 -284
- package/dist/cli/output/jsonl.test.js.map +0 -1
- package/dist/cli/output/tty.test.d.ts +0 -2
- package/dist/cli/output/tty.test.d.ts.map +0 -1
- package/dist/cli/output/tty.test.js +0 -105
- package/dist/cli/output/tty.test.js.map +0 -1
- package/dist/cli/output/verbosity.test.d.ts +0 -2
- package/dist/cli/output/verbosity.test.d.ts.map +0 -1
- package/dist/cli/output/verbosity.test.js +0 -35
- package/dist/cli/output/verbosity.test.js.map +0 -1
- package/dist/cli/terminal.test.d.ts +0 -2
- package/dist/cli/terminal.test.d.ts.map +0 -1
- package/dist/cli/terminal.test.js +0 -123
- package/dist/cli/terminal.test.js.map +0 -1
- package/dist/config/loader.test.d.ts +0 -2
- package/dist/config/loader.test.d.ts.map +0 -1
- package/dist/config/loader.test.js +0 -263
- package/dist/config/loader.test.js.map +0 -1
- package/dist/config/writer.test.d.ts +0 -2
- package/dist/config/writer.test.d.ts.map +0 -1
- package/dist/config/writer.test.js +0 -98
- package/dist/config/writer.test.js.map +0 -1
- package/dist/diff/classify.test.d.ts +0 -2
- package/dist/diff/classify.test.d.ts.map +0 -1
- package/dist/diff/classify.test.js +0 -140
- package/dist/diff/classify.test.js.map +0 -1
- package/dist/diff/coalesce.test.d.ts +0 -2
- package/dist/diff/coalesce.test.d.ts.map +0 -1
- package/dist/diff/coalesce.test.js +0 -159
- package/dist/diff/coalesce.test.js.map +0 -1
- package/dist/diff/context.test.d.ts +0 -2
- package/dist/diff/context.test.d.ts.map +0 -1
- package/dist/diff/context.test.js +0 -190
- package/dist/diff/context.test.js.map +0 -1
- package/dist/diff/parser.test.d.ts +0 -2
- package/dist/diff/parser.test.d.ts.map +0 -1
- package/dist/diff/parser.test.js +0 -178
- package/dist/diff/parser.test.js.map +0 -1
- package/dist/examples/examples.integration.test.d.ts +0 -2
- package/dist/examples/examples.integration.test.d.ts.map +0 -1
- package/dist/examples/examples.integration.test.js +0 -55
- package/dist/examples/examples.integration.test.js.map +0 -1
- package/dist/examples/index.test.d.ts +0 -2
- package/dist/examples/index.test.d.ts.map +0 -1
- package/dist/examples/index.test.js +0 -88
- package/dist/examples/index.test.js.map +0 -1
- package/dist/output/dedup.test.d.ts +0 -2
- package/dist/output/dedup.test.d.ts.map +0 -1
- package/dist/output/dedup.test.js +0 -357
- package/dist/output/dedup.test.js.map +0 -1
- package/dist/output/github-checks.test.d.ts +0 -2
- package/dist/output/github-checks.test.d.ts.map +0 -1
- package/dist/output/github-checks.test.js +0 -255
- package/dist/output/github-checks.test.js.map +0 -1
- package/dist/output/renderer.test.d.ts +0 -2
- package/dist/output/renderer.test.d.ts.map +0 -1
- package/dist/output/renderer.test.js +0 -645
- package/dist/output/renderer.test.js.map +0 -1
- package/dist/output/stale.test.d.ts +0 -2
- package/dist/output/stale.test.d.ts.map +0 -1
- package/dist/output/stale.test.js +0 -330
- package/dist/output/stale.test.js.map +0 -1
- package/dist/sdk/runner.test.d.ts +0 -2
- package/dist/sdk/runner.test.d.ts.map +0 -1
- package/dist/sdk/runner.test.js +0 -677
- package/dist/sdk/runner.test.js.map +0 -1
- package/dist/skills/loader.test.d.ts +0 -2
- package/dist/skills/loader.test.d.ts.map +0 -1
- package/dist/skills/loader.test.js +0 -241
- package/dist/skills/loader.test.js.map +0 -1
- package/dist/skills/remote.test.d.ts +0 -2
- package/dist/skills/remote.test.d.ts.map +0 -1
- package/dist/skills/remote.test.js +0 -582
- package/dist/skills/remote.test.js.map +0 -1
- package/dist/triggers/matcher.test.d.ts +0 -2
- package/dist/triggers/matcher.test.d.ts.map +0 -1
- package/dist/triggers/matcher.test.js +0 -234
- package/dist/triggers/matcher.test.js.map +0 -1
- package/dist/utils/index.test.d.ts +0 -2
- package/dist/utils/index.test.d.ts.map +0 -1
- package/dist/utils/index.test.js +0 -68
- package/dist/utils/index.test.js.map +0 -1
- package/docs/astro.config.mjs +0 -43
- package/docs/package.json +0 -19
- package/docs/pnpm-lock.yaml +0 -4000
- package/docs/public/favicon.svg +0 -5
- package/docs/src/components/Code.astro +0 -141
- package/docs/src/components/PackageManagerTabs.astro +0 -183
- package/docs/src/components/Terminal.astro +0 -212
- package/docs/src/layouts/Base.astro +0 -380
- package/docs/src/pages/cli.astro +0 -167
- package/docs/src/pages/config.astro +0 -395
- package/docs/src/pages/guide.astro +0 -450
- package/docs/src/pages/index.astro +0 -490
- package/docs/src/styles/global.css +0 -551
- package/docs/src/utils/version.ts +0 -6
- package/docs/tsconfig.json +0 -3
- package/docs/vercel.json +0 -5
- package/eslint.config.js +0 -33
- package/src/action/index.ts +0 -1
- package/src/action/main.ts +0 -868
- package/src/cli/args.test.ts +0 -477
- package/src/cli/args.ts +0 -414
- package/src/cli/commands/add.ts +0 -447
- package/src/cli/commands/init.test.ts +0 -137
- package/src/cli/commands/init.ts +0 -134
- package/src/cli/commands/setup-app/browser.ts +0 -38
- package/src/cli/commands/setup-app/credentials.ts +0 -45
- package/src/cli/commands/setup-app/manifest.ts +0 -48
- package/src/cli/commands/setup-app/server.ts +0 -172
- package/src/cli/commands/setup-app.ts +0 -156
- package/src/cli/commands/sync.ts +0 -114
- package/src/cli/context.ts +0 -131
- package/src/cli/files.test.ts +0 -155
- package/src/cli/files.ts +0 -89
- package/src/cli/fix.test.ts +0 -310
- package/src/cli/fix.ts +0 -387
- package/src/cli/git.test.ts +0 -119
- package/src/cli/git.ts +0 -318
- package/src/cli/index.ts +0 -14
- package/src/cli/main.ts +0 -672
- package/src/cli/output/box.ts +0 -235
- package/src/cli/output/formatters.test.ts +0 -187
- package/src/cli/output/formatters.ts +0 -269
- package/src/cli/output/icons.ts +0 -13
- package/src/cli/output/index.ts +0 -44
- package/src/cli/output/ink-runner.tsx +0 -337
- package/src/cli/output/jsonl.test.ts +0 -347
- package/src/cli/output/jsonl.ts +0 -126
- package/src/cli/output/reporter.ts +0 -434
- package/src/cli/output/tasks.ts +0 -374
- package/src/cli/output/tty.test.ts +0 -117
- package/src/cli/output/tty.ts +0 -60
- package/src/cli/output/verbosity.test.ts +0 -40
- package/src/cli/output/verbosity.ts +0 -31
- package/src/cli/terminal.test.ts +0 -148
- package/src/cli/terminal.ts +0 -301
- package/src/config/index.ts +0 -3
- package/src/config/loader.test.ts +0 -313
- package/src/config/loader.ts +0 -103
- package/src/config/schema.ts +0 -168
- package/src/config/writer.test.ts +0 -119
- package/src/config/writer.ts +0 -84
- package/src/diff/classify.test.ts +0 -162
- package/src/diff/classify.ts +0 -92
- package/src/diff/coalesce.test.ts +0 -208
- package/src/diff/coalesce.ts +0 -133
- package/src/diff/context.test.ts +0 -226
- package/src/diff/context.ts +0 -201
- package/src/diff/index.ts +0 -4
- package/src/diff/parser.test.ts +0 -212
- package/src/diff/parser.ts +0 -149
- package/src/event/context.ts +0 -132
- package/src/event/index.ts +0 -2
- package/src/event/schedule-context.ts +0 -101
- package/src/examples/examples.integration.test.ts +0 -66
- package/src/examples/index.test.ts +0 -101
- package/src/examples/index.ts +0 -122
- package/src/examples/setup.ts +0 -25
- package/src/index.ts +0 -115
- package/src/output/dedup.test.ts +0 -419
- package/src/output/dedup.ts +0 -607
- package/src/output/github-checks.test.ts +0 -300
- package/src/output/github-checks.ts +0 -476
- package/src/output/github-issues.ts +0 -329
- package/src/output/index.ts +0 -5
- package/src/output/issue-renderer.ts +0 -197
- package/src/output/renderer.test.ts +0 -727
- package/src/output/renderer.ts +0 -217
- package/src/output/stale.test.ts +0 -375
- package/src/output/stale.ts +0 -155
- package/src/output/types.ts +0 -34
- package/src/sdk/index.ts +0 -1
- package/src/sdk/runner.test.ts +0 -806
- package/src/sdk/runner.ts +0 -1232
- package/src/skills/index.ts +0 -36
- package/src/skills/loader.test.ts +0 -300
- package/src/skills/loader.ts +0 -423
- package/src/skills/remote.test.ts +0 -704
- package/src/skills/remote.ts +0 -604
- package/src/triggers/matcher.test.ts +0 -277
- package/src/triggers/matcher.ts +0 -152
- package/src/types/index.ts +0 -194
- package/src/utils/async.ts +0 -18
- package/src/utils/index.test.ts +0 -84
- package/src/utils/index.ts +0 -51
- package/src/utils/version.ts +0 -17
- package/tsconfig.json +0 -25
- package/vitest.config.ts +0 -8
- package/vitest.integration.config.ts +0 -11
- package/warden.toml +0 -19
|
@@ -1,318 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"writer.test.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/config/writer.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,29 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"classify.test.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/diff/classify.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,42 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"coalesce.test.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/diff/coalesce.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"context.test.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/diff/context.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,52 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"parser.test.d.ts","sourceRoot":"","sources":["file:///home/runner/work/warden/warden/src/diff/parser.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,30 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1 +0,0 @@
|
|
|
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":""}
|