super-productivity/electron
tomdevelops 6ab71c870e
feat: add os module support to plugin node executor
Enable plugins to access the Node.js 'os' module for system information
gathering alongside the existing fs and path modules.

Changes:
- Updated canExecuteDirectly() regex pattern to allow 'os' module imports
- Added os module import to executeDirectly() sandbox environment
- Extended sandbox require() function to provide access to os module

This allows plugins to access system information like platform, architecture,
memory usage, CPU info, and network interfaces through the standard Node.js
os module while maintaining the existing security restrictions.

The os module is considered safe as it provides read-only system information
and doesn't allow file system modifications or process execution.
2025-07-27 06:45:24 +02:00
..
assets/icons fix: wrong icon for kde title bar 2025-07-22 20:42:28 +02:00
overlay-indicator feat: improve shutdown cleanup 2025-06-29 17:31:28 +02:00
shared-with-frontend Merge branch 'feat/overlay-indicator' 2025-06-27 22:37:14 +02:00
backup.ts fix: linting 2025-05-01 13:04:23 +02:00
common.const.ts fix: windows crashing issue on minimize #3423 2024-09-09 15:17:24 +02:00
CONFIG.ts fix(electron): don't send idle time all the time 2019-01-27 20:52:11 +01:00
debug.ts feat(overlayIndicator): implement basic overlay 2025-06-27 14:22:27 +02:00
electronAPI.d.ts Merge branch 'feat/overlay-indicator' 2025-06-27 22:37:14 +02:00
error-handler-with-frontend-inform.ts feat(electronSecurity): make electron log work again 2023-12-15 16:38:00 +01:00
full-screen-blocker.ts feat: improve shutdown cleanup 2025-06-29 17:31:28 +02:00
get-settings.ts feat(electronSecurity): make electron log work again 2023-12-15 16:38:00 +01:00
idle-time-handler.ts fix: idle detection errors and system freezes after hibernation 2025-06-21 08:43:24 +02:00
indicator.ts feat(overlayIndicator): implement basic overlay 2025-06-27 14:22:27 +02:00
ipc-handler.ts feat(plugin-api): create foundational plugin API package 2025-06-27 18:13:19 +02:00
jira.ts Reimplemented support for Jira Personal Access Tokens (PAT) 2025-01-08 19:27:47 +01:00
local-file-sync.ts feat(pfapi): make removing files work for local file sync 2025-04-12 13:56:47 +02:00
lockscreen.ts refactor(elctron): add typing wherever possible and simplify 2022-01-30 20:12:41 +01:00
main-window.ts fix: overlay-indicator.ts not being cleaned up 2025-06-29 21:00:44 +02:00
main.ts feat: cleaner startup for electron #2942 #1678 2023-12-29 12:57:33 +01:00
plugin-node-executor.ts feat: add os module support to plugin node executor 2025-07-27 06:45:24 +02:00
preload.ts fix: use contextBridge for Electron API exposure with context isolation 2025-06-27 22:48:28 +02:00
protocol-handler.ts feat: add protocol handling to allow adding tasks from other apps 2025-07-25 19:15:40 +02:00
simple-store.ts feat(electronSecurity): add security layer for exec commands 2023-12-17 15:05:15 +01:00
start-app.ts feat: add protocol handling to allow adding tasks from other apps 2025-07-25 19:15:40 +02:00
tsconfig.electron.json build: make electron build work 2025-04-15 16:27:09 +02:00
various-shared.ts feat(overlayIndicator): implement basic overlay 2025-06-27 14:22:27 +02:00