bbdata-cli 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/dist/bin/bbdata.d.ts +2 -0
- package/dist/bin/bbdata.js +1952 -0
- package/dist/bin/bbdata.js.map +1 -0
- package/dist/src/index.d.ts +347 -0
- package/dist/src/index.js +1857 -0
- package/dist/src/index.js.map +1 -0
- package/package.json +63 -0
- package/src/cache/schema.sql +34 -0
- package/src/templates/reports/advance-lineup.hbs +29 -0
- package/src/templates/reports/advance-sp.hbs +60 -0
- package/src/templates/reports/college-hitter-draft.hbs +49 -0
- package/src/templates/reports/college-pitcher-draft.hbs +48 -0
- package/src/templates/reports/dev-progress.hbs +29 -0
- package/src/templates/reports/draft-board-card.hbs +35 -0
- package/src/templates/reports/hs-prospect.hbs +48 -0
- package/src/templates/reports/partials/footer.hbs +7 -0
- package/src/templates/reports/partials/header.hbs +12 -0
- package/src/templates/reports/post-promotion.hbs +25 -0
- package/src/templates/reports/pro-hitter-eval.hbs +65 -0
- package/src/templates/reports/pro-pitcher-eval.hbs +69 -0
- package/src/templates/reports/relief-pitcher-quick.hbs +29 -0
- package/src/templates/reports/trade-target-onepager.hbs +45 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# College Pitcher Draft Report: {{player}}
|
|
2
|
+
|
|
3
|
+
**Season:** {{season}} | **Generated:** {{date}}
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Header
|
|
8
|
+
|
|
9
|
+
| Field | Value |
|
|
10
|
+
|-------|-------|
|
|
11
|
+
| Player | {{player}} |
|
|
12
|
+
| School | *To be filled* |
|
|
13
|
+
| Throws | *To be filled* |
|
|
14
|
+
| Age | *To be filled* |
|
|
15
|
+
| Height/Weight | *To be filled* |
|
|
16
|
+
|
|
17
|
+
## Physical
|
|
18
|
+
|
|
19
|
+
*Body type, athleticism, projectability — to be filled by evaluator*
|
|
20
|
+
|
|
21
|
+
## Arsenal Grades (20-80 Scale)
|
|
22
|
+
|
|
23
|
+
| Tool | Present | Future | Notes |
|
|
24
|
+
|------|---------|--------|-------|
|
|
25
|
+
| Fastball | — | — | *Velo, life, command* |
|
|
26
|
+
| Breaking Ball | — | — | *Type, spin, depth* |
|
|
27
|
+
| Changeup | — | — | *Fade, deception* |
|
|
28
|
+
| Command | — | — | *Zone control, sequencing* |
|
|
29
|
+
|
|
30
|
+
## Performance
|
|
31
|
+
|
|
32
|
+
*College stats: ERA, K/9, BB/9, WHIP — to be filled*
|
|
33
|
+
|
|
34
|
+
## Projection
|
|
35
|
+
|
|
36
|
+
*Ceiling, floor, likely outcome — to be filled by evaluator*
|
|
37
|
+
|
|
38
|
+
## Risk
|
|
39
|
+
|
|
40
|
+
*Injury history, workload, mechanics — to be filled by evaluator*
|
|
41
|
+
|
|
42
|
+
## Recommendation
|
|
43
|
+
|
|
44
|
+
*Draft round range, comparison, acquire/pass — to be filled*
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
*Generated by bbdata CLI*
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Development Progress Report: {{player}}
|
|
2
|
+
|
|
3
|
+
**Season:** {{season}} | **Generated:** {{date}}
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Current Stats
|
|
8
|
+
|
|
9
|
+
*Current level, slash line, K%, BB%, ISO — to be populated*
|
|
10
|
+
|
|
11
|
+
## Trend Analysis
|
|
12
|
+
|
|
13
|
+
*Month-over-month progression, key metric changes — to be populated*
|
|
14
|
+
|
|
15
|
+
## Mechanical Notes
|
|
16
|
+
|
|
17
|
+
*Changes, adjustments, coach observations — to be filled by evaluator*
|
|
18
|
+
|
|
19
|
+
## Development Goals
|
|
20
|
+
|
|
21
|
+
*Target areas for improvement — to be filled by development staff*
|
|
22
|
+
|
|
23
|
+
## Next Steps
|
|
24
|
+
|
|
25
|
+
*Promotion timeline, assignment recommendation — to be filled*
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
*Generated by bbdata CLI*
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# {{player}} — Draft Board Card
|
|
2
|
+
|
|
3
|
+
**Generated:** {{date}}
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
| Field | Value |
|
|
8
|
+
|-------|-------|
|
|
9
|
+
| **Name** | {{player}} |
|
|
10
|
+
| **Position** | *To be filled* |
|
|
11
|
+
| **School** | *To be filled* |
|
|
12
|
+
| **B/T** | *To be filled* |
|
|
13
|
+
| **Age** | *To be filled* |
|
|
14
|
+
|
|
15
|
+
### Tool Grades
|
|
16
|
+
|
|
17
|
+
| Hit | Power | Speed | Field | Arm | OFP |
|
|
18
|
+
|-----|-------|-------|-------|-----|-----|
|
|
19
|
+
| — | — | — | — | — | — |
|
|
20
|
+
|
|
21
|
+
### Projection
|
|
22
|
+
|
|
23
|
+
*One-line ceiling* — *To be filled*
|
|
24
|
+
|
|
25
|
+
### Comp
|
|
26
|
+
|
|
27
|
+
*Player comparison* — *To be filled*
|
|
28
|
+
|
|
29
|
+
### Round Range
|
|
30
|
+
|
|
31
|
+
*Expected draft range* — *To be filled*
|
|
32
|
+
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
*bbdata CLI · Draft room card format*
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# High School Prospect Report: {{player}}
|
|
2
|
+
|
|
3
|
+
**Season:** {{season}} | **Generated:** {{date}}
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Header
|
|
8
|
+
|
|
9
|
+
| Field | Value |
|
|
10
|
+
|-------|-------|
|
|
11
|
+
| Player | {{player}} |
|
|
12
|
+
| School | *To be filled* |
|
|
13
|
+
| Position | *To be filled* |
|
|
14
|
+
| Commitment | *To be filled* |
|
|
15
|
+
|
|
16
|
+
## Physical
|
|
17
|
+
|
|
18
|
+
*Body type, athleticism, projectability — to be filled*
|
|
19
|
+
|
|
20
|
+
## Tool Grades (20-80 Scale)
|
|
21
|
+
|
|
22
|
+
| Tool | Present | Future | Notes |
|
|
23
|
+
|------|---------|--------|-------|
|
|
24
|
+
| Hit | — | — | |
|
|
25
|
+
| Power | — | — | |
|
|
26
|
+
| Speed | — | — | |
|
|
27
|
+
| Field | — | — | |
|
|
28
|
+
| Arm | — | — | |
|
|
29
|
+
|
|
30
|
+
## Makeup
|
|
31
|
+
|
|
32
|
+
*Work ethic, competitiveness, coachability — to be filled*
|
|
33
|
+
|
|
34
|
+
## Projection
|
|
35
|
+
|
|
36
|
+
*Development timeline, ceiling, floor — to be filled*
|
|
37
|
+
|
|
38
|
+
## Signability
|
|
39
|
+
|
|
40
|
+
*Commitment strength, slot expectations — to be filled*
|
|
41
|
+
|
|
42
|
+
## Recommendation
|
|
43
|
+
|
|
44
|
+
*Draft/follow recommendation — to be filled*
|
|
45
|
+
|
|
46
|
+
---
|
|
47
|
+
|
|
48
|
+
*Generated by bbdata CLI*
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Post-Promotion Evaluation: {{player}}
|
|
2
|
+
|
|
3
|
+
**Season:** {{season}} | **Generated:** {{date}}
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Pre-Promotion Stats
|
|
8
|
+
|
|
9
|
+
*Stats at previous level — to be populated*
|
|
10
|
+
|
|
11
|
+
## Post-Promotion Stats
|
|
12
|
+
|
|
13
|
+
*Stats at new level — to be populated*
|
|
14
|
+
|
|
15
|
+
## Adjustment Analysis
|
|
16
|
+
|
|
17
|
+
*What changed, what didn't, approach differences — to be filled by evaluator*
|
|
18
|
+
|
|
19
|
+
## Recommendation
|
|
20
|
+
|
|
21
|
+
*Continue at level / promote / reassign — to be filled*
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
*Generated by bbdata CLI*
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
# Pro Hitter Evaluation: {{player}}
|
|
2
|
+
|
|
3
|
+
**Season:** {{season}} | **Audience:** {{audience}} | **Generated:** {{date}}
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Batted Ball Profile
|
|
8
|
+
|
|
9
|
+
{{#if data.hitter-batted-ball}}
|
|
10
|
+
| Metric | Value |
|
|
11
|
+
|--------|-------|
|
|
12
|
+
{{#each data.hitter-batted-ball}}
|
|
13
|
+
| {{this.Metric}} | {{this.Value}} |
|
|
14
|
+
{{/each}}
|
|
15
|
+
{{else}}
|
|
16
|
+
*Batted ball data not available*
|
|
17
|
+
{{/if}}
|
|
18
|
+
|
|
19
|
+
## Approach & Discipline
|
|
20
|
+
|
|
21
|
+
{{#if data.hitter-vs-pitch-type}}
|
|
22
|
+
| Pitch Type | Seen | Swing % | Whiff % | Foul % | In Play | Avg EV | SLG |
|
|
23
|
+
|------------|------|---------|---------|--------|---------|--------|-----|
|
|
24
|
+
{{#each data.hitter-vs-pitch-type}}
|
|
25
|
+
| {{this.[Pitch Type]}} | {{this.Seen}} | {{this.[Swing %]}} | {{this.[Whiff %]}} | {{this.[Foul %]}} | {{this.[In Play]}} | {{this.[Avg EV]}} | {{this.SLG}} |
|
|
26
|
+
{{/each}}
|
|
27
|
+
{{else}}
|
|
28
|
+
*Pitch type breakdown not available*
|
|
29
|
+
{{/if}}
|
|
30
|
+
|
|
31
|
+
## Hot/Cold Zones
|
|
32
|
+
|
|
33
|
+
{{#if data.hitter-hot-cold-zones}}
|
|
34
|
+
| Zone | Pitches | Swings | Whiff % | AVG | SLG |
|
|
35
|
+
|------|---------|--------|---------|-----|-----|
|
|
36
|
+
{{#each data.hitter-hot-cold-zones}}
|
|
37
|
+
| {{this.Zone}} | {{this.Pitches}} | {{this.Swings}} | {{this.[Whiff %]}} | {{this.AVG}} | {{this.SLG}} |
|
|
38
|
+
{{/each}}
|
|
39
|
+
{{else}}
|
|
40
|
+
*Zone data not available*
|
|
41
|
+
{{/if}}
|
|
42
|
+
|
|
43
|
+
## Splits Analysis
|
|
44
|
+
|
|
45
|
+
*To be populated: vs LHP/RHP, home/away*
|
|
46
|
+
|
|
47
|
+
## Trend Analysis
|
|
48
|
+
|
|
49
|
+
*To be populated: rolling average trends*
|
|
50
|
+
|
|
51
|
+
## Risk Assessment
|
|
52
|
+
|
|
53
|
+
*To be filled by evaluator: injury history, age curve, contract implications*
|
|
54
|
+
|
|
55
|
+
## Comparable Player
|
|
56
|
+
|
|
57
|
+
*To be filled by evaluator: statistical comp*
|
|
58
|
+
|
|
59
|
+
## Role Projection
|
|
60
|
+
|
|
61
|
+
*To be filled by evaluator: lineup position, expected production, Acquire / Pass / Monitor*
|
|
62
|
+
|
|
63
|
+
---
|
|
64
|
+
|
|
65
|
+
*Generated by bbdata CLI · Data sources: {{sources}}*
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# Pro Pitcher Evaluation: {{player}}
|
|
2
|
+
|
|
3
|
+
**Season:** {{season}} | **Audience:** {{audience}} | **Generated:** {{date}}
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Header
|
|
8
|
+
|
|
9
|
+
| Field | Value |
|
|
10
|
+
|-------|-------|
|
|
11
|
+
| Player | {{player}} |
|
|
12
|
+
| Season | {{season}} |
|
|
13
|
+
| Sources | {{sources}} |
|
|
14
|
+
|
|
15
|
+
## Pitch Arsenal
|
|
16
|
+
|
|
17
|
+
{{#if data.pitcher-arsenal}}
|
|
18
|
+
| Pitch Type | Usage % | Avg Velo | Avg Spin | H Break | V Break | Whiff % | Put Away % | Pitches |
|
|
19
|
+
|------------|---------|----------|----------|---------|---------|---------|------------|---------|
|
|
20
|
+
{{#each data.pitcher-arsenal}}
|
|
21
|
+
| {{this.[Pitch Type]}} | {{this.[Usage %]}} | {{this.[Avg Velo]}} | {{this.[Avg Spin]}} | {{this.[H Break]}} | {{this.[V Break]}} | {{this.[Whiff %]}} | {{this.[Put Away %]}} | {{this.Pitches}} |
|
|
22
|
+
{{/each}}
|
|
23
|
+
{{else}}
|
|
24
|
+
*Arsenal data not available*
|
|
25
|
+
{{/if}}
|
|
26
|
+
|
|
27
|
+
## Performance Profile
|
|
28
|
+
|
|
29
|
+
*Season statistics to be populated from FanGraphs data (ERA, FIP, xFIP, SIERA, K-BB%, WAR)*
|
|
30
|
+
|
|
31
|
+
## Splits Analysis
|
|
32
|
+
|
|
33
|
+
{{#if data.pitcher-handedness-splits}}
|
|
34
|
+
| vs | PA | AVG | SLG | K % | BB % | Avg EV | Whiff % |
|
|
35
|
+
|----|-----|-----|-----|-----|------|--------|---------|
|
|
36
|
+
{{#each data.pitcher-handedness-splits}}
|
|
37
|
+
| {{this.vs}} | {{this.PA}} | {{this.AVG}} | {{this.SLG}} | {{this.[K %]}} | {{this.[BB %]}} | {{this.[Avg EV]}} | {{this.[Whiff %]}} |
|
|
38
|
+
{{/each}}
|
|
39
|
+
{{else}}
|
|
40
|
+
*Splits data not available*
|
|
41
|
+
{{/if}}
|
|
42
|
+
|
|
43
|
+
## Trend Analysis
|
|
44
|
+
|
|
45
|
+
{{#if data.pitcher-velocity-trend}}
|
|
46
|
+
| Month | Avg Velo | Max Velo | Δ vs Prior | Pitches | Flag |
|
|
47
|
+
|-------|----------|----------|------------|---------|------|
|
|
48
|
+
{{#each data.pitcher-velocity-trend}}
|
|
49
|
+
| {{this.Month}} | {{this.[Avg Velo]}} | {{this.[Max Velo]}} | {{this.[Δ vs Prior]}} | {{this.Pitches}} | {{this.Flag}} |
|
|
50
|
+
{{/each}}
|
|
51
|
+
{{else}}
|
|
52
|
+
*Velocity trend data not available*
|
|
53
|
+
{{/if}}
|
|
54
|
+
|
|
55
|
+
## Risk Assessment
|
|
56
|
+
|
|
57
|
+
*To be filled by evaluator: injury history, mechanical concerns, workload flags*
|
|
58
|
+
|
|
59
|
+
## Comparable Player
|
|
60
|
+
|
|
61
|
+
*To be filled by evaluator: statistical comp to current/recent MLB pitcher*
|
|
62
|
+
|
|
63
|
+
## Role Projection
|
|
64
|
+
|
|
65
|
+
*To be filled by evaluator: SP1-5 / Setup / Closer / Middle Relief + Acquire / Pass / Monitor recommendation*
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
*Generated by bbdata CLI · Data sources: {{sources}}*
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
# Relief Pitcher Quick Eval: {{player}}
|
|
2
|
+
|
|
3
|
+
**Season:** {{season}} | **Generated:** {{date}}
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Arsenal
|
|
8
|
+
|
|
9
|
+
{{#if data.pitcher-arsenal}}
|
|
10
|
+
| Pitch | Usage | Velo | Whiff % |
|
|
11
|
+
|-------|-------|------|---------|
|
|
12
|
+
{{#each data.pitcher-arsenal}}
|
|
13
|
+
| {{this.[Pitch Type]}} | {{this.[Usage %]}} | {{this.[Avg Velo]}} | {{this.[Whiff %]}} |
|
|
14
|
+
{{/each}}
|
|
15
|
+
{{else}}
|
|
16
|
+
*Data not available*
|
|
17
|
+
{{/if}}
|
|
18
|
+
|
|
19
|
+
## Key Metrics
|
|
20
|
+
|
|
21
|
+
*ERA, FIP, K-BB%, leverage index — to be populated*
|
|
22
|
+
|
|
23
|
+
## Recommendation
|
|
24
|
+
|
|
25
|
+
*Acquire / Pass / Monitor — to be filled by evaluator*
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
*Generated by bbdata CLI · 1-page format*
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Trade Target: {{player}}
|
|
2
|
+
|
|
3
|
+
**Season:** {{season}} | **For:** {{audience}} | **Generated:** {{date}}
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## Key Stats
|
|
8
|
+
|
|
9
|
+
{{#if data.hitter-batted-ball}}
|
|
10
|
+
| Metric | Value |
|
|
11
|
+
|--------|-------|
|
|
12
|
+
{{#each data.hitter-batted-ball}}
|
|
13
|
+
| {{this.Metric}} | {{this.Value}} |
|
|
14
|
+
{{/each}}
|
|
15
|
+
{{else}}
|
|
16
|
+
{{#if data.pitcher-arsenal}}
|
|
17
|
+
| Pitch | Usage | Velo | Whiff % |
|
|
18
|
+
|-------|-------|------|---------|
|
|
19
|
+
{{#each data.pitcher-arsenal}}
|
|
20
|
+
| {{this.[Pitch Type]}} | {{this.[Usage %]}} | {{this.[Avg Velo]}} | {{this.[Whiff %]}} |
|
|
21
|
+
{{/each}}
|
|
22
|
+
{{else}}
|
|
23
|
+
*Stats to be populated*
|
|
24
|
+
{{/if}}
|
|
25
|
+
{{/if}}
|
|
26
|
+
|
|
27
|
+
## Strengths
|
|
28
|
+
|
|
29
|
+
*Top 2-3 strengths — to be filled*
|
|
30
|
+
|
|
31
|
+
## Concerns
|
|
32
|
+
|
|
33
|
+
*Top 2-3 concerns — to be filled*
|
|
34
|
+
|
|
35
|
+
## Fit Assessment
|
|
36
|
+
|
|
37
|
+
*How this player fits the acquiring team's needs — to be filled*
|
|
38
|
+
|
|
39
|
+
## Recommendation
|
|
40
|
+
|
|
41
|
+
**Acquire / Pass / Monitor** — *to be filled*
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
*Generated by bbdata CLI · Executive 1-page format*
|