Commit graph

4 commits

Author SHA1 Message Date
Johannes Millan
34ac3dd757 refactor: improve typing 2 2025-08-12 15:27:48 +02:00
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
Johannes Millan
fcf5e5fe30 feat: improve shutdown cleanup 2025-06-29 17:31:28 +02:00
Johannes Millan
d4d81bf511 feat(plugin-api): create foundational plugin API package
- Add @super-productivity/plugin-api package with TypeScript definitions
- Define core plugin interfaces, types, and manifest structure
- Add plugin hooks system for event-driven architecture
- Create plugin API type definitions and constants
- Add documentation and development guidelines
2025-06-27 18:13:19 +02:00