openrune 0.3.5 → 0.3.6

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.
Files changed (2) hide show
  1. package/bootstrap.js +8 -4
  2. package/package.json +1 -1
package/bootstrap.js CHANGED
@@ -1,4 +1,8 @@
1
- // Simple entry point just load the bundled main process
2
- // Note: require('electron') works because Electron intercepts
3
- // the npm package resolution and returns its built-in module
4
- require('./dist/main.js')
1
+ // When loaded via Electron, start the desktop app
2
+ // When loaded via require('openrune'), export the Node.js API
3
+ try {
4
+ require('electron')
5
+ require('./dist/main.js')
6
+ } catch {
7
+ module.exports = require('./lib/index.js')
8
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openrune",
3
- "version": "0.3.5",
3
+ "version": "0.3.6",
4
4
  "description": "Rune — File-based AI Agent Harness for Claude Code",
5
5
  "keywords": ["ai", "agent", "claude", "desktop", "electron", "mcp", "claude-code", "harness", "automation"],
6
6
  "repository": {