@bobfrankston/msger 0.1.90 → 0.1.92

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
@@ -264,6 +264,12 @@ Keyboard Shortcuts:
264
264
  - Ctrl+Wheel/Plus/Minus: Zoom in/out
265
265
  - Ctrl+0: Reset zoom to 100%
266
266
 
267
+ Debug Mode:
268
+ - Set environment variable MSGER_DEBUG=1 for diagnostic output
269
+ - Shows: startup info, keyboard events, IPC messages, button clicks
270
+ - Example (PowerShell): $env:MSGER_DEBUG=1; msger "Test"
271
+ - Zero performance impact when disabled
272
+
267
273
  Notes:
268
274
  - If no options provided, all non-option arguments are concatenated as message
269
275
  - Press ESC to dismiss (returns button: "dismissed")
package/TODO.md CHANGED
@@ -1,39 +1,96 @@
1
1
  # msger TODO List
2
2
 
3
- ## Recent Session (2025-11-11 Evening) - Hash Option & Context Menu
3
+ ## Recent Session (2025-11-12) - Hash Option, F11 Fix, Button Response, Debug Mode
4
4
 
5
- **Status:** ✅ Hash option COMPLETED, ⏸️ Context menu DEFERRED
5
+ **Status:** ✅ COMPLETED - Version 0.1.91 (published to npm)
6
+
7
+ ### Installation Status:
8
+ - ✅ Windows build successful (0.1.91)
9
+ - ✅ Published to npm as @bobfrankston/msger@0.1.91
10
+ - ⚠️ WSL Linux build failed (Rust compile error E0432)
11
+ - ⚠️ Global install pending (npm needs time to propagate new version)
12
+ - Note: WSL build issue needs investigation, Windows version fully functional
13
+
14
+ ### Next Steps:
15
+ 1. Wait ~5-10 minutes for npm to propagate version 0.1.91
16
+ 2. Run `npm install -g @bobfrankston/msger` to install globally on Windows
17
+ 3. Investigate WSL build error (likely missing import or dependency issue)
18
+ 4. Optional: Manually install in WSL with `wsl npm install -g @bobfrankston/msger`
6
19
 
7
20
  ### What Was Implemented:
8
21
 
9
22
  1. **Hash Fragment Option (`-hash`)**
10
23
  - Appends hash fragment to URL (e.g., `-url "https://example.com" -hash section1`)
11
24
  - Automatically strips leading # to avoid ##
12
- - Requires `-url` to be set
25
+ - Requires `-url` to be set (throws error if hash without url)
13
26
  - Supported in JSON config files
27
+ - Implementation: shower.ts:204-212
28
+ - **Status:** ✅ Working
29
+
30
+ 2. **F11 Fullscreen Fix**
31
+ - **Issue:** JavaScript was intercepting F11 key and using HTML5 fullscreen instead of native
32
+ - **Fix:** Changed JavaScript F11 handler to use IPC `toggleFullscreen` action
33
+ - Now uses Rust's native window fullscreen (same as Rust's F11 handler)
34
+ - Implementation: template.html:329-348
35
+ - **Status:** ✅ Working
36
+
37
+ 3. **Button Response Optimization**
38
+ - **Issue:** OK button sometimes took long time to exit window
39
+ - **Fix:** Optimized event loop to check for button result first in MainEventsCleared
40
+ - Window now exits immediately when button clicked
41
+ - Implementation: main.rs:704-715
42
+ - **Status:** ✅ Working - instant response
43
+
44
+ 4. **Debug Mode (MSGER_DEBUG)**
45
+ - Added optional debug logging controlled by environment variable
46
+ - Usage: `$env:MSGER_DEBUG=1` then run msger
47
+ - Shows: startup, keyboard events, IPC messages, button clicks, exit flow
48
+ - Zero performance impact when disabled (compile-time checks)
49
+ - Implementation: main.rs:257-277, 612-635, 444-534
14
50
  - **Status:** ✅ Working
15
51
 
16
- 2. **Build Process Improvements**
52
+ 5. **Build Process Improvements**
17
53
  - Commented out Raspberry Pi build warning (build.ts:178-185)
18
54
  - Added automatic PATH cleaning for Windows builds to fix Git link.exe vs VS linker conflict
19
55
  - PATH fix function removes Git's /usr/bin from PATH (build.ts:34-43)
20
56
  - **Status:** ✅ Working
21
57
 
22
- 3. **Context Menu (Right-Click)**
58
+ 6. **Context Menu (Right-Click)**
23
59
  - Attempted to add right-click context menu with Fullscreen toggle
24
60
  - Code implemented in template.html and msger-api.js
25
- - **Issue:** Simulated keyboard events don't work, IPC toggleFullscreen works but menu conflicts with Windows system menu
61
+ - **Issue:** Menu conflicts with Windows system menu, simulated F12 doesn't work
26
62
  - **Decision:** Commented out for now, F11/F12 keyboard shortcuts work fine
27
63
  - **Status:** ⏸️ Code exists but commented out in template.html and msger-api.js
28
- - **TODO:** Revisit context menu implementation - possibly add more useful items or improve UX to avoid system menu conflict
64
+ - **TODO:** Revisit context menu implementation - possibly add more useful items or improve UX
65
+
66
+ 7. **Project Cleanup**
67
+ - Moved all test HTML files to `tests/` directory
68
+ - Files: test-msger-api.html, test-msger-functions.html, test-data-persistence.html, test-ipc-reach.html, msger-storage-demo.html, test-htmlfrom.html
29
69
 
30
70
  ### Files Modified:
31
- - `shower.ts` - Added hash field to MessageBoxOptions
71
+ - `package.json` - Version bumped to 0.1.90
72
+ - `shower.ts` - Added hash field to MessageBoxOptions, hash append logic
32
73
  - `clihandler.ts` - Added -hash CLI parsing, save/load support
33
- - `README.md` - Documented -hash option
74
+ - `README.md` - Documented -hash option, removed context menu mentions
34
75
  - `msger-native/build.ts` - Pi warning removed, PATH fix added
35
- - `msger-native/src/template.html` - Context menu code (commented out)
76
+ - `msger-native/src/main.rs` - Debug mode, F11 handling, button response optimization
77
+ - `msger-native/src/template.html` - F11 IPC fix, context menu code (commented out)
36
78
  - `msger-native/src/msger-api.js` - Context menu code (commented out)
79
+ - Test files moved to `tests/` directory
80
+
81
+ ### Testing:
82
+ ```bash
83
+ # Hash option
84
+ node . -url "https://example.com" -hash section1
85
+
86
+ # Debug mode
87
+ $env:MSGER_DEBUG=1
88
+ node . "Test message"
89
+
90
+ # F11 fullscreen toggle - works instantly
91
+ # F12 DevTools - works
92
+ # OK button - instant response
93
+ ```
37
94
 
38
95
  ### Future Work:
39
96
  - Consider more useful context menu items (Copy, Paste, etc.)
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/msger",
3
- "version": "0.1.90",
3
+ "version": "0.1.92",
4
4
  "description": "Fast, lightweight, cross-platform message box - Rust-powered alternative to msgview",
5
5
  "type": "module",
6
6
  "main": "./index.js",