nosleepp 0.2.0 → 0.2.2
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 +106 -0
- package/package.json +32 -30
- package/bin/nosleepp-darwin-arm64 +0 -0
- package/bin/nosleepp-darwin-x64 +0 -0
- package/bin/nosleepp-win32-x64.exe +0 -0
package/README.md
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
# nosleepp
|
|
2
|
+
|
|
3
|
+
Keep your computer awake while AI agents are actively working.
|
|
4
|
+
|
|
5
|
+
**[View on GitHub](https://github.com/peterintech/nosleepp)**
|
|
6
|
+
|
|
7
|
+
`nosleepp` is built for agent tools such as Codex, Claude Code, OpenCode, Antigravity, and Cursor. It does not treat an app as working just because it is open. It samples process activity and only reports agents that show measurable CPU or child-process activity.
|
|
8
|
+
|
|
9
|
+
## Install Globally
|
|
10
|
+
|
|
11
|
+
Install it globally so the `nosleepp` command is available from any terminal:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npm install -g nosleepp
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Then run:
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
nosleepp watch
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Quick Start
|
|
24
|
+
|
|
25
|
+
Check whether any agent is actively working:
|
|
26
|
+
|
|
27
|
+
```bash
|
|
28
|
+
nosleepp list
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Keep your computer awake while agents are working:
|
|
32
|
+
|
|
33
|
+
```bash
|
|
34
|
+
nosleepp watch
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Show matching agents even when they are open but idle:
|
|
38
|
+
|
|
39
|
+
```bash
|
|
40
|
+
nosleepp list --all
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
Check once and exit with a script-friendly status code:
|
|
44
|
+
|
|
45
|
+
```bash
|
|
46
|
+
nosleepp watch --once
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
## Supported Platforms
|
|
50
|
+
|
|
51
|
+
| Platform | Status |
|
|
52
|
+
| ------------------- | ----------------- |
|
|
53
|
+
| Windows x64 | Supported |
|
|
54
|
+
| macOS Apple Silicon | Supported |
|
|
55
|
+
| macOS Intel | Supported |
|
|
56
|
+
| Linux | Not supported yet |
|
|
57
|
+
|
|
58
|
+
`nosleepp` prevents system idle sleep. It does not force your display to stay awake.
|
|
59
|
+
|
|
60
|
+
## How It Detects Work
|
|
61
|
+
|
|
62
|
+
`nosleepp` samples running processes for 2 seconds by default.
|
|
63
|
+
|
|
64
|
+
An agent is marked `working` when either:
|
|
65
|
+
|
|
66
|
+
- the agent process or one of its descendant processes gains enough CPU time, or
|
|
67
|
+
- a descendant process appears or disappears during the sample window.
|
|
68
|
+
|
|
69
|
+
If an agent app is open but idle, `nosleepp list` hides it by default. Use `nosleepp list --all` to show idle matches too.
|
|
70
|
+
|
|
71
|
+
## Useful Commands
|
|
72
|
+
|
|
73
|
+
```bash
|
|
74
|
+
nosleepp list
|
|
75
|
+
nosleepp list --json
|
|
76
|
+
nosleepp list --all
|
|
77
|
+
nosleepp watch
|
|
78
|
+
nosleepp watch --interval 5s
|
|
79
|
+
nosleepp watch --quiet 1m
|
|
80
|
+
nosleepp version
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
## Add Custom Agents
|
|
84
|
+
|
|
85
|
+
Use `--agent` to add or override process names:
|
|
86
|
+
|
|
87
|
+
```bash
|
|
88
|
+
nosleepp watch --agent "MyAgent=myagent,myagent-helper"
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
You can pass `--agent` more than once.
|
|
92
|
+
|
|
93
|
+
## Exit Codes
|
|
94
|
+
|
|
95
|
+
| Code | Meaning |
|
|
96
|
+
| ---- | ------------------------------------------------ |
|
|
97
|
+
| `0` | Success, or `watch --once` found a working agent |
|
|
98
|
+
| `1` | `watch --once` found no working agents |
|
|
99
|
+
| `2` | Invalid CLI usage |
|
|
100
|
+
| `3` | Platform power-state or watcher runtime error |
|
|
101
|
+
|
|
102
|
+
---
|
|
103
|
+
|
|
104
|
+
**Its nosleepp not nosleep - the extra 'p' stands for persistence till the job is done :)**
|
|
105
|
+
|
|
106
|
+
**Like nosleepp?** [Star it on GitHub](https://github.com/peterintech/nosleepp) — it helps others find it. Contributions, issues, and ideas are welcome!
|
package/package.json
CHANGED
|
@@ -1,30 +1,32 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "nosleepp",
|
|
3
|
-
"version": "0.2.
|
|
4
|
-
"description": "Keep your PC awake while AI agents are working",
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"bin/nosleepp-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "nosleepp",
|
|
3
|
+
"version": "0.2.2",
|
|
4
|
+
"description": "Keep your PC awake while AI agents are working",
|
|
5
|
+
"preferGlobal": true,
|
|
6
|
+
"bin": {
|
|
7
|
+
"nosleepp": "./index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"README.md",
|
|
11
|
+
"index.js",
|
|
12
|
+
"lib/resolve-binary.js",
|
|
13
|
+
"bin/nosleepp-win32-x64.exe",
|
|
14
|
+
"bin/nosleepp-darwin-arm64",
|
|
15
|
+
"bin/nosleepp-darwin-x64"
|
|
16
|
+
],
|
|
17
|
+
"keywords": [
|
|
18
|
+
"nosleepp",
|
|
19
|
+
"agents",
|
|
20
|
+
"cli",
|
|
21
|
+
"caffeinate",
|
|
22
|
+
"windows",
|
|
23
|
+
"macos"
|
|
24
|
+
],
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"scripts": {
|
|
27
|
+
"test": "node --test"
|
|
28
|
+
},
|
|
29
|
+
"engines": {
|
|
30
|
+
"node": ">=18"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
Binary file
|
package/bin/nosleepp-darwin-x64
DELETED
|
Binary file
|
|
Binary file
|