saterminal 0.2.0 → 0.3.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/AGENTS.md +26 -12
- package/README.md +2 -1
- package/package.json +2 -2
- package/src/cli.ts +899 -0
- package/src/main.ts +10 -1
- package/src/progress.ts +48 -0
- package/src/state.ts +115 -6
- package/src/tui/app.ts +51 -15
- package/src/tui/frame.ts +210 -0
- package/src/tui/input.ts +33 -2
- package/src/tui/kit.ts +0 -20
- package/src/tui/question.ts +2 -60
- package/src/tui/render.ts +74 -83
- package/src/tui/types.ts +3 -0
- package/src/types/terminal-kit.d.ts +3 -0
- package/src/types.ts +17 -0
- package/test/cli.test.ts +223 -0
- package/test/frame.test.ts +94 -0
- package/test/progress.test.ts +18 -0
- package/test/state.test.ts +73 -3
- package/src/tui/terminal.ts +0 -110
package/AGENTS.md
CHANGED
|
@@ -1,23 +1,37 @@
|
|
|
1
|
+
# Environment
|
|
2
|
+
|
|
3
|
+
I use Nix & `direnv`. Glance `flake.nix` initially at once.
|
|
4
|
+
|
|
1
5
|
# Git
|
|
2
6
|
|
|
3
7
|
- Commit regularly.
|
|
4
|
-
-
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
-
|
|
8
|
+
- Prefer subsystem-first commit subjects over Conventional Commits.
|
|
9
|
+
- Use `subsystem: concise change`.
|
|
10
|
+
- Do not default to `feat(...)`, `fix(...)`, `chore(...)`, etc.
|
|
11
|
+
- Pick the subsystem people would search for later: `cli`, `state`, `tui`, `api`, `docs`, `nix`, `test`, or a narrower module when useful.
|
|
12
|
+
- Keep messages compact.
|
|
13
|
+
- A good small commit can be only a subject line.
|
|
14
|
+
- Add a body when the reason, tradeoff, or implementation detail matters.
|
|
15
|
+
- Body bullets should explain why/how, not repeat the subject.
|
|
16
|
+
- Prefer backticks for paths, commands, package names, settings, and other literal identifiers when they improve scanability.
|
|
8
17
|
|
|
9
18
|
```text
|
|
10
|
-
|
|
19
|
+
cli: render activity as square heatmap
|
|
11
20
|
|
|
12
|
-
-
|
|
13
|
-
-
|
|
14
|
-
-
|
|
21
|
+
- use one colored square per day instead of intensity glyphs
|
|
22
|
+
- keep empty days visible as gray cells
|
|
23
|
+
- orient the grid by week columns and weekday rows
|
|
15
24
|
```
|
|
16
25
|
|
|
17
26
|
```text
|
|
18
|
-
|
|
27
|
+
state: record attempt events
|
|
28
|
+
|
|
29
|
+
- keep `attempts.csv` as the latest per-question snapshot
|
|
30
|
+
- append every answer to `events.csv` for streaks and activity
|
|
31
|
+
```
|
|
19
32
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
- removing it keeps the repo focused on active configuration
|
|
33
|
+
```text
|
|
34
|
+
docs: tighten commit guidance
|
|
23
35
|
```
|
|
36
|
+
|
|
37
|
+
- Do not force a three-bullet format. Use fewer bullets, more bullets, or none based on the commit.
|
package/README.md
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
why?
|
|
2
2
|
|
|
3
3
|
- i don't like how the official SAT question bank forces u to download PDFs
|
|
4
|
-
- official SAT question bank + other third party question readers display the question difficulty and other metadata
|
|
4
|
+
- official SAT question bank + other third party question readers display the question difficulty and other metadata (their UIs are also quite chopped)
|
|
5
|
+
- used to use oneprep until i heard they started AI-generating questions, sooo...
|