promptlock-cli 1.0.0
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/LICENSE +21 -0
- package/README.md +63 -0
- package/bundle/cli.js +9629 -0
- package/bundle/hook-forwarder.js +234 -0
- package/package.json +62 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Mark Guggenheim
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# promptlock-cli
|
|
2
|
+
|
|
3
|
+
The Mac half of **PromptLock**. It watches Cursor, Claude Code and Codex through
|
|
4
|
+
their own hook systems and tells the PromptLock app on your iPhone when an agent is
|
|
5
|
+
working — so that, inside a focus session, your distracting apps are open while a
|
|
6
|
+
prompt is running and shut the moment it finishes.
|
|
7
|
+
|
|
8
|
+
Requires macOS and Node 18 or newer. The iPhone app is distributed separately.
|
|
9
|
+
|
|
10
|
+
## Install and set up
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
npx promptlock-cli connect
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
That detects your agents, opens a pairing window for the phone, installs the
|
|
17
|
+
hooks, and offers to keep a small background daemon running across reboots.
|
|
18
|
+
|
|
19
|
+
## Commands
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
promptlock connect set everything up, start to finish
|
|
23
|
+
promptlock pair open a pairing window on its own
|
|
24
|
+
promptlock test replay a ten-second session so a paired phone can prove it works
|
|
25
|
+
promptlock start run the daemon in the foreground
|
|
26
|
+
promptlock doctor per-agent health: version, hooks, marker freshness, round trip
|
|
27
|
+
promptlock service install | uninstall | status — the login-time LaunchAgent
|
|
28
|
+
promptlock uninstall remove the hooks and forwarder this tool installed
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
`promptlock --help` has the full list, the exit codes and every file it writes.
|
|
32
|
+
`warpfocus` is kept as an alias for `promptlock`.
|
|
33
|
+
|
|
34
|
+
## What it writes
|
|
35
|
+
|
|
36
|
+
| path | what |
|
|
37
|
+
| --- | --- |
|
|
38
|
+
| `~/.warp-focus/` | config and the hook forwarder |
|
|
39
|
+
| `~/.cursor/hooks.json`, `~/.claude/settings.json`, `~/.codex/hooks.json` | our entries only, marked and backed up first |
|
|
40
|
+
| `~/Library/LaunchAgents/com.markgugg.warpfocus.plist` | the optional login service |
|
|
41
|
+
| `~/Library/Application Support/WarpFocus/`, `~/Library/Logs/WarpFocus/` | the service's pinned runtime and its rotated logs |
|
|
42
|
+
|
|
43
|
+
Those `warp` paths are the historical internal name and are deliberate — see
|
|
44
|
+
`docs/PROJECT.md` in the repository. The product is PromptLock.
|
|
45
|
+
|
|
46
|
+
## Removing it
|
|
47
|
+
|
|
48
|
+
```
|
|
49
|
+
npx promptlock-cli uninstall
|
|
50
|
+
npx promptlock-cli service uninstall
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Privacy
|
|
54
|
+
|
|
55
|
+
Nothing leaves your Mac except the state your own paired iPhone reads: which
|
|
56
|
+
agent, which project, what it is doing in a few safe words, and whether it is
|
|
57
|
+
running. Never source code, shell output, prompts, agent reasoning or repository
|
|
58
|
+
contents. There is no account.
|
|
59
|
+
|
|
60
|
+
Bluetooth is optional. Without Xcode Command Line Tools installed PromptLock says
|
|
61
|
+
so and carries on over wifi.
|
|
62
|
+
|
|
63
|
+
MIT licensed.
|