@trygocode/notify 0.1.2 → 0.1.3
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 +178 -104
- package/dist/src/claude.js +27 -14
- package/dist/src/cli.js +52 -0
- package/dist/src/cursor.js +25 -12
- package/dist/src/mcp.js +1 -38
- package/dist/src/on_stop.js +132 -0
- package/dist/src/opencode.js +292 -0
- package/dist/src/push.js +69 -1
- package/dist/src/setup.js +12 -7
- package/dist/src/uninstall.js +2 -0
- package/dist/src/version.js +1 -1
- package/package.json +3 -21
- package/snippets/ralph-homer.sh +3 -3
- package/CHANGELOG.md +0 -59
- package/LICENSE +0 -21
- package/assets/README.md +0 -13
- package/assets/banner.png +0 -0
- package/assets/icon-128.png +0 -0
- package/assets/icon-512.png +0 -0
- package/assets/icon.svg +0 -8
package/CHANGELOG.md
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
# Changelog
|
|
2
|
-
|
|
3
|
-
All notable changes to `@trygocode/notify` are documented here. This project
|
|
4
|
-
follows [Semantic Versioning](https://semver.org).
|
|
5
|
-
|
|
6
|
-
## [0.1.2] — 2026-06-04
|
|
7
|
-
|
|
8
|
-
### Fixed
|
|
9
|
-
- **Hooks now work without a global install.** The Cursor `stop` hook and the
|
|
10
|
-
Claude Code `Stop`/`Notification`/`SubagentStop` hooks (and the Ralph/Homer
|
|
11
|
-
loop snippet) shelled out to a bare `gocode-notify send …`, which only
|
|
12
|
-
resolves when the package is installed globally on `PATH`. After an
|
|
13
|
-
`npx @trygocode/notify setup` (the documented flow) the binary was NOT on
|
|
14
|
-
`PATH`, so every hook silently failed (the `|| true` guard hid it) and no
|
|
15
|
-
phone notification was ever sent on agent completion. The hooks now invoke
|
|
16
|
-
`npx -y @trygocode/notify send …`, matching the MCP entry's invocation form,
|
|
17
|
-
so they work out of the box with zero global footprint. The idempotent
|
|
18
|
-
merge/uninstall markers were widened to `notify send` so they detect and
|
|
19
|
-
cleanly replace BOTH the new form and any legacy bare-command hook from an
|
|
20
|
-
older install.
|
|
21
|
-
|
|
22
|
-
## [0.1.1] — 2026-06-03
|
|
23
|
-
|
|
24
|
-
### Changed
|
|
25
|
-
- **Real GoCode artwork** — replaced placeholder mark with the official GoCode
|
|
26
|
-
Notify icon (`icon-512.png` / `icon-128.png`) and a README hero banner. MCP
|
|
27
|
-
server `icons` metadata now points at the real PNGs.
|
|
28
|
-
- **Clearer docs** — the free GoCode phone app is now called out up front as a
|
|
29
|
-
required component, the "free" status is stated explicitly, and a new
|
|
30
|
-
**GoCode platform settings** section documents auto-push, safe pull-before-push,
|
|
31
|
-
AI-Solve conflict resolution, and review-&-merge.
|
|
32
|
-
- Renamed "Ralph / Homer loops" to "Ralph Wiggum / Autopilot script loops"
|
|
33
|
-
throughout for readers unfamiliar with the internal codenames.
|
|
34
|
-
|
|
35
|
-
## [0.1.0] — 2026-06-03
|
|
36
|
-
|
|
37
|
-
Initial public release.
|
|
38
|
-
|
|
39
|
-
### Added
|
|
40
|
-
- **One-command install** — `npx @trygocode/notify@latest setup` pairs the machine,
|
|
41
|
-
auto-detects your agent runtimes, and merges hooks + the MCP server + an
|
|
42
|
-
anti-double-ping rule into each (Cursor, Claude Code, OpenCode). Idempotent;
|
|
43
|
-
safe to re-run; `--force` re-pairs.
|
|
44
|
-
- **Three notification triggers** — (A) runtime hooks (Cursor `stop`; Claude Code
|
|
45
|
-
`Stop` / `Notification` / `SubagentStop`), (B) the `gocode_notify` MCP tool for
|
|
46
|
-
explicit "ping me when X is done" requests, (C) an opt-in Ralph/Homer loop
|
|
47
|
-
completion/halt snippet.
|
|
48
|
-
- **Secure pairing** — a short-lived 6-digit code is exchanged for a scoped,
|
|
49
|
-
push-only API key stored locally (`~/.gocode/credentials`, chmod 600). The key
|
|
50
|
-
can only send pushes to your own phone; revoke any time from the app.
|
|
51
|
-
- **Offline outbox** — sends made while the server is unreachable are queued and
|
|
52
|
-
flushed best-effort later, so a blocked agent is never caused by a slow push.
|
|
53
|
-
- **`status` self-diagnosis**, `test` round-trip push, and a clean `uninstall`
|
|
54
|
-
that removes exactly what this tool added.
|
|
55
|
-
- **MCP server metadata** — `icons` + `websiteUrl` (SEP-973) so compatible clients
|
|
56
|
-
can show the GoCode mark next to the server.
|
|
57
|
-
|
|
58
|
-
[0.1.1]: https://github.com/joseph-lewis/gocode-notify/releases/tag/v0.1.1
|
|
59
|
-
[0.1.0]: https://github.com/joseph-lewis/gocode-notify/releases/tag/v0.1.0
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 GoCode
|
|
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/assets/README.md
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
# Assets
|
|
2
|
-
|
|
3
|
-
Brand assets for **GoCode Notify**.
|
|
4
|
-
|
|
5
|
-
| File | Used by |
|
|
6
|
-
|---|---|
|
|
7
|
-
| `icon-512.png` | Primary GoCode Notify mark (512×512). README header + MCP server icon metadata. |
|
|
8
|
-
| `icon-128.png` | MCP server icon metadata (128×128). |
|
|
9
|
-
| `icon.svg` | Scalable fallback mark. |
|
|
10
|
-
| `banner.png` | README hero banner (1280×320). |
|
|
11
|
-
|
|
12
|
-
All marks are the official GoCode logo. Keep filenames identical so the MCP icon
|
|
13
|
-
URLs (served over GitHub's raw CDN) and README image links keep resolving.
|
package/assets/banner.png
DELETED
|
Binary file
|
package/assets/icon-128.png
DELETED
|
Binary file
|
package/assets/icon-512.png
DELETED
|
Binary file
|
package/assets/icon.svg
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="128" height="128" viewBox="0 0 128 128" role="img" aria-label="GoCode Notify">
|
|
2
|
-
<!-- Placeholder GoCode Notify mark. Replace with the real GoCode logo (keep this filename). -->
|
|
3
|
-
<rect width="128" height="128" rx="28" fill="#0B1020"/>
|
|
4
|
-
<text x="20" y="74" font-family="ui-monospace, SFMono-Regular, Menlo, monospace" font-size="40" font-weight="700" fill="#5EE6A8">>_</text>
|
|
5
|
-
<!-- bell -->
|
|
6
|
-
<path d="M86 44a14 14 0 0 0-28 0c0 16-6 20-6 24h40c0-4-6-8-6-24z" fill="#FFC857"/>
|
|
7
|
-
<circle cx="72" cy="92" r="6" fill="#FFC857"/>
|
|
8
|
-
</svg>
|