docs: update README and memory notes

This commit is contained in:
2026-05-02 00:23:11 +02:00
parent 197cbb161c
commit 95eb1d265f
5 changed files with 29 additions and 3 deletions
+3
View File
@@ -0,0 +1,3 @@
- README is more detailed than memory files; keep memory compact.
- Use `state.md` for evolving engine/demo/API details.
- `project.md` should stay as a short pointer file.
+6
View File
@@ -0,0 +1,6 @@
# Project memory
- RPN calculator JS project.
- Read `.memory/state.md` for current state.
- Keep names and commands in English.
- Update memory files based on events: engine, demo, API, commands, exports, docs, or tasks.
+7
View File
@@ -0,0 +1,7 @@
# State
- Core engine: `src/rpn-calculator.js`
- Active demo: `samples/dev/` (HP48-style UI)
- Public API: `push`, `pop`, `clear`, `swap`, `remove`, `edit`, `isValidIndex`, `input`, `command`, `getOperationsByCategory`, `getConstants`
- Config: `maxSize`, `base`, `angleMode`, `enabledCommands`
- Commands: arithmetic, stack, trigonometry, constants `pi` and `e`
- Exports: browser `window.RpnCalculator`, CommonJS `module.exports`
+4
View File
@@ -0,0 +1,4 @@
- Keep `.memory/project.md` short.
- Update `.memory/state.md` after project changes.
- Reconcile README and demo docs if behavior changes.
- Track future work around keyboard UX, stack selection, and command docs.