summrise-agent 0.0.1 → 1.2.453

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 ADDED
@@ -0,0 +1,72 @@
1
+ # summrise-agent
2
+
3
+ Windows device MCP server — terminal (PTY/SSH/serial), memory, system tools
4
+ and a web panel, with an Electron desktop shell. Installable as a global npm
5
+ package; the `summrise` CLI manages setup, updates and the tunnel.
6
+
7
+ ## Install (fresh device)
8
+
9
+ ```powershell
10
+ npm i -g https://agent.saisi.online/summrise-agent/summrise-agent-latest.tgz
11
+ summrise setup --reg-key <key-from-console> # --reg-key is optional (local mode works without it)
12
+ ```
13
+
14
+ `setup` installs to the registry-configured directory
15
+ (`HKLM\SOFTWARE\Summrise\Agent\InstallDir`), registers the boot-start
16
+ `SummriseAgent` scheduled task as SYSTEM (no execution-time limit,
17
+ restart-on-failure ×8, 5-min repetition watchdog) and starts it. With a
18
+ registration key the device registers itself with a Summrise Gate console.
19
+
20
+ ## Update (one click)
21
+
22
+ ```powershell
23
+ npm i -g --prefix (Split-Path (Get-Command summrise).Source) https://agent.saisi.online/summrise-agent/summrise-agent-latest.tgz
24
+ summrise update
25
+ ```
26
+
27
+ **The `--prefix` is not optional on a device that is already set up.** Plain
28
+ `npm i -g <url>` installs into npm's DEFAULT global prefix, which is not where
29
+ `summrise` lives when the agent runs as SYSTEM. On a real device the two prefixes
30
+ disagreed (`summrise` resolved to `D:\Summrise\components\npm-global\summrise.ps1` while
31
+ `npm prefix -g` was `C:\WINDOWS\system32\config\systemprofile\AppData\Roaming\npm`):
32
+ npm printed success, `summrise update` then ran the OLD CLI from the other prefix and
33
+ staged the OLD exe, and the device quietly stayed on its previous release with no
34
+ error anywhere. `Split-Path (Get-Command summrise).Source` asks the machine where
35
+ `summrise` actually is, so the install lands where the running CLI will find it.
36
+
37
+ That applies to UPDATE only. A fresh install has no `summrise` to ask, and the
38
+ command above this section is correct as written.
39
+
40
+ Verify by EFFECT, not by exit code: after the update, `/api/status` must report
41
+ the new release AND `etc\.summrise-release` must equal it. The exe's mtime is what
42
+ caught the silent case last time.
43
+
44
+ `update` stages the new exe, then swaps it via a WMI-launched
45
+ script (survives the CLI and the agent dying): stop task → kill agent
46
+ tree → copy with retry → restart task. The terminal connection
47
+ drops ~10 s; reconnect afterwards. Even a failed copy restarts the task —
48
+ the device is never left dark.
49
+
50
+ ## CLI commands
51
+
52
+ ```
53
+ summrise <setup|status|start|stop|restart|update|uninstall|run|tunnel>
54
+ ```
55
+
56
+ ## Features
57
+
58
+ - **OSC 633 shell integration** (VS Code approach): PowerShell prompts and
59
+ command boundaries arrive as invisible sequences — clean display, exit codes.
60
+ - **56 MCP tools**: terminal (27: PTY/SSH/serial, history with exit codes, SFTP,
61
+ saved connections, secrets, background jobs), system (9), memory (6),
62
+ mcp-client (4), monitor (4), playwright (2), runs (2), update (agent_update),
63
+ design (page_view). Measured from `agent/spec-tools.json`, which
64
+ `cargo test spec_snapshot` regenerates from the live registry.
65
+ - **Electron desktop shell**: tray with live agent status, native menu,
66
+ CDP :9333 for AI-driven UI.
67
+ - **Memory plugin**: device-local knowledge base with multi-word search and
68
+ compaction.
69
+
70
+ ## License
71
+
72
+ MIT — see the repository LICENSE.