saterminal 0.5.0 → 0.5.1

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/README.md CHANGED
@@ -23,6 +23,13 @@ bun install
23
23
  bun run dev
24
24
  ```
25
25
 
26
+ Build and run the packaged application directly with Nix:
27
+
28
+ ```sh
29
+ nix build
30
+ ./result/bin/sat --help
31
+ ```
32
+
26
33
  The first launch asks before creating `~/.saterminal`. Choose a focus, press Enter, and start answering. Everything needed for practice is already in the package.
27
34
 
28
35
  Practice deliberately hides difficulty, domain, and skill while a question is active. The header shows only the running timer. After submitting, the answer screen restores the complete question beside the marked choices and explanation, then reveals timing and question metadata for review.
@@ -166,4 +173,12 @@ This is the only normal workflow that needs the network. It downloads Practice S
166
173
  nix develop -c bun run typecheck
167
174
  nix develop -c bun test
168
175
  nix develop -c bun run src/cli/index.ts --help
176
+ nix build
177
+ ./result/bin/sat --version
178
+ ```
179
+
180
+ When `bun.lock` changes, regenerate the committed Nix dependency expression before building:
181
+
182
+ ```sh
183
+ nix develop -c bun run nix:deps
169
184
  ```
package/package.json CHANGED
@@ -1,17 +1,19 @@
1
1
  {
2
2
  "name": "saterminal",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "sat": "src/cli/index.ts"
7
7
  },
8
8
  "files": [
9
9
  "data",
10
- "src"
10
+ "src",
11
+ "tsconfig.json"
11
12
  ],
12
13
  "scripts": {
13
14
  "dev": "bun run src/cli/index.ts",
14
15
  "start": "bun run src/cli/index.ts",
16
+ "nix:deps": "bun2nix -o nix/bun.nix",
15
17
  "update-bank": "bun run scripts/update-question-bank.ts",
16
18
  "test": "bun test",
17
19
  "typecheck": "tsc --noEmit"
@@ -30,6 +32,7 @@
30
32
  "@types/he": "^1.2.3",
31
33
  "@types/react": "19.2.0",
32
34
  "p-limit": "^7.3.0",
35
+ "react-devtools-core": "7.0.1",
33
36
  "typescript": "^7.0.2"
34
37
  }
35
38
  }
package/src/cli/index.ts CHANGED
File without changes
package/tsconfig.json ADDED
@@ -0,0 +1,34 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "ESNext",
5
+ "moduleResolution": "Bundler",
6
+ "jsx": "react-jsx",
7
+ "strict": true,
8
+ "skipLibCheck": true,
9
+ "types": [
10
+ "bun"
11
+ ],
12
+ "allowImportingTsExtensions": true,
13
+ "noEmit": true,
14
+ "paths": {
15
+ "@/*": [
16
+ "./src/*"
17
+ ],
18
+ "@data/*": [
19
+ "./data/*"
20
+ ],
21
+ "@scripts/*": [
22
+ "./scripts/*"
23
+ ]
24
+ }
25
+ },
26
+ "include": [
27
+ "src/**/*.ts",
28
+ "src/**/*.tsx",
29
+ "src/**/*.d.ts",
30
+ "test/**/*.ts",
31
+ "test/**/*.tsx",
32
+ "scripts/**/*.ts"
33
+ ]
34
+ }