clocktopus 1.0.4 → 1.0.5

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
@@ -52,9 +52,17 @@ That's it. Start/stop timers from the Home tab.
52
52
  | `clocktopus serve:stop` | Stop the dashboard daemon |
53
53
  | `clocktopus serve:logs` | View dashboard daemon logs |
54
54
 
55
- ### Desktop App
55
+ ### Desktop App (macOS)
56
56
 
57
- A macOS menu bar app is available — see [desktop/README.md](desktop/README.md) for setup. It wraps the dashboard with a system tray icon that shows timer status.
57
+ A menu bar app is available — download the `.dmg` from [GitHub Releases](https://github.com/sajxraj/clocktopus/releases).
58
+
59
+ After installing, remove the quarantine flag (app is not code-signed):
60
+
61
+ ```bash
62
+ xattr -cr /Applications/Clocktopus.app
63
+ ```
64
+
65
+ The dashboard server must be running (`clocktopus serve`). See [desktop/README.md](desktop/README.md) for details.
58
66
 
59
67
  ---
60
68
 
@@ -1,5 +1,10 @@
1
1
  import { Hono } from 'hono';
2
2
  import { execSync } from 'child_process';
3
+ import path from 'path';
4
+ import { fileURLToPath } from 'url';
5
+ const __filename = fileURLToPath(import.meta.url);
6
+ const __dirname = path.dirname(__filename);
7
+ const SCRIPT_PATH = path.resolve(__dirname, '../../index.js');
3
8
  const monitorRoutes = new Hono();
4
9
  function pm2Exec(command) {
5
10
  try {
@@ -32,7 +37,7 @@ monitorRoutes.get('/monitor/status', (c) => {
32
37
  });
33
38
  monitorRoutes.post('/monitor/start', (c) => {
34
39
  const bunPath = execSync('which bun', { encoding: 'utf-8' }).trim();
35
- const result = pm2Exec(`bunx pm2 start dist/index.js --name clocktopus --interpreter ${bunPath} -- monitor`);
40
+ const result = pm2Exec(`bunx pm2 start ${SCRIPT_PATH} --name clocktopus --interpreter ${bunPath} -- monitor`);
36
41
  return c.json(result);
37
42
  });
38
43
  monitorRoutes.post('/monitor/stop', (c) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clocktopus",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "bin": {