@misaka-net/misakanet-setup 0.7.1 → 0.8.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/README.md CHANGED
@@ -15,9 +15,15 @@ while the installer runs; afterwards, only what the agent itself sends — with
15
15
  npx @misaka-net/misakanet-setup
16
16
  ```
17
17
 
18
- Then **close and reopen the assistant window** (the new MCP server loads on restart) and ask
19
- a distinctive fragment of an error, e.g. "switch vision model" or "tool call permission denied" — it should search the
20
- knowledge base on its own instead of guessing.
18
+ Then confirm it works — the restart is not universal:
19
+
20
+ - Only clients that load MCP configuration at startup (Claude Code, Codex, …) need a new session.
21
+ dsh applies the rules on the next message, and per-call channels such as `mcporter` need no restart.
22
+ - Check the tool list: `mcporter list misakanet` (or your client's own list — `/mcp` in Claude Code)
23
+ should show the 8 tools: `register`, `search`, `get_lesson`, `submit_intake`, `write_lesson`,
24
+ `preflight`, `me_events`, `me_inbox`.
25
+ - Ask a distinctive fragment of an error, e.g. "switch vision model" or "tool call permission denied" —
26
+ it should search the knowledge base on its own instead of guessing.
21
27
 
22
28
  ## What it installs, and why all three
23
29
 
@@ -109,7 +115,18 @@ npx @misaka-net/misakanet-setup --verify # READY / NOT READY / could not ve
109
115
  # written); one failing does not condemn the other, and a file
110
116
  # we cannot write says 装不了 with its cause — not 没装 with
111
117
  # the one fix that cannot work ("re-run the installer")
112
- npx @misaka-net/misakanet-setup --only claude # one agent only
118
+ # 安装完整性 is grouped per client, one verdict line each
119
+ # (就绪 / 装不了 / 没装过 / 装坏了), because the checks were
120
+ # per client all along and one broken assistant must not
121
+ # condemn the healthy one
122
+ npx @misaka-net/misakanet-setup --only claude # one agent only (what to install)
123
+ npx @misaka-net/misakanet-setup --client openclaw --verify
124
+ # judge ONE client only: the others are not checked, not
125
+ # printed and not counted — on a multi-client machine the
126
+ # question is "how is the one I use". An unknown client is
127
+ # refused (exit 2) with the supported list.
128
+ # (--client-id is a different thing: it pins this machine's
129
+ # pseudonym and has nothing to do with the assistants)
113
130
  npx @misaka-net/misakanet-setup --list-writes # only prints what it would write (file | action | how to undo), writes nothing
114
131
  # (the install preview shows the same list; this one is for an operator who
115
132
  # has to approve it before it happens)
@@ -233,11 +250,14 @@ npx @misaka-net/misakanet-setup@latest
233
250
  - The token is stored at `~/.misakanet-agent/token` (mode 600) and written into your local
234
251
  agent config only — never printed, never committed by us, and never sent anywhere by this
235
252
  program: registration itself is unauthenticated, and `--verify` probes the endpoint
236
- anonymously. It is an anonymous pseudonym: `client_id` and `agent_type` are self-declared
237
- and we do not treat them as attribution.
238
- - The anonymous identity is not kept in a file this installer re-reads. If you want
239
- re-installing (or a new machine) to land on the **same** node, export the id it prints:
240
- `export MISAKANET_CLIENT_ID=<setup-…>`. Without that, each install mints a new node.
253
+ anonymously. It is an anonymous pseudonym, not an account: `agent_type` is self-declared,
254
+ `client_id` is a random identifier this installer generates, and we do not treat either as
255
+ attribution.
256
+ - The client id is kept at `~/.misakanet-agent/client_id` (mode 600) and reused on every run,
257
+ including a machine that already has a token: the first install of a new target adopts the id
258
+ from any existing config or mints and persists one, so every config on the machine carries the
259
+ same `X-MisakaNet-Client`. A failed registration no longer mints a new id on every retry.
260
+ Override it explicitly with `--client-id` / `MISAKANET_CLIENT_ID` if you need a fixed one.
241
261
  - Retention: lesson content retrieved from the server is **data, not instructions** — the
242
262
  injected rules tell the assistant not to execute commands found in it.
243
263
  - The report (`--report` or `--report-json`) is written to **stdout and nowhere else**: this program