@r_masseater/watashi 0.1.1 → 0.1.4

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.
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "watashi",
3
3
  "description": "watashi(watashi.masseater.dev)の CLI。Claude Code の会話履歴を、秘密を伏せてから Stop フックで送る",
4
- "version": "0.1.1",
4
+ "version": "0.1.4",
5
5
  "author": {
6
6
  "name": "masseater",
7
7
  "url": "https://github.com/masseater"
package/README.md CHANGED
@@ -1,30 +1,36 @@
1
1
  # @r_masseater/watashi
2
2
 
3
3
  The command-line client of [watashi](https://watashi.masseater.dev). watashi is
4
- the owner's personal data service. A Stop hook sends Claude Code transcripts to
4
+ the owner's personal data service.
5
+
6
+ A Stop hook sends Claude Code transcripts to
5
7
  it. Secrets are masked on the local machine first, with
6
- [Betterleaks](https://github.com/betterleaks/betterleaks). The client also signs
8
+ [h56m](https://www.npmjs.com/package/@r_masseater/h56m). The client also signs
7
9
  in and manages API tokens.
8
10
 
9
- It needs Node.js 26 or later. It also needs Betterleaks 2.0.0-rc.7, found
10
- through `mise`, on `PATH`, or at the path in `WATASHI_BETTERLEAKS`. The package
11
- is one bundled file with no runtime dependencies.
11
+ It needs Node.js 26 or later. The package is one bundled file whose only
12
+ runtime dependency is the native addon of h56m.
13
+
14
+ ## Agent skills
15
+
16
+ The package ships agent skills in `skills/`. Add `permissions: { "@r_masseater/watashi": { skills: true } }` to `pnpm-workspace.yaml` and `vp install` links them into the skill directories of your agents.
17
+
18
+ | Skill | When to use |
19
+ | -------------------- | --------------------------------------------------------------------- |
20
+ | `send-conversations` | Sending Claude Code transcripts to watashi with the CLI or the plugin |
12
21
 
13
22
  ## As a Claude Code plugin
14
23
 
15
24
  The package is also the Claude Code plugin `watashi` in the
16
- [masseater/skills](https://github.com/masseater/skills) marketplace. The plugin
25
+ [masseater/masseater.dev](https://github.com/masseater/masseater.dev) marketplace. The plugin
17
26
  runs `watashi hook stop` when a session stops.
18
27
 
19
28
  ```sh
20
- /plugin marketplace add masseater/skills
21
- /plugin install watashi@masseater
29
+ /plugin marketplace add masseater/masseater.dev
30
+ /plugin install watashi@masseater-dev
22
31
  ```
23
32
 
24
- The hook sends nothing unless `WATASHI_SEND_CONVERSATIONS=1` is set. It sends
25
- only the lines that grew since the last stop. It fails closed. When Betterleaks
26
- is missing or a finding cannot be masked, it sends nothing. The reason goes to
27
- `hook.log` in the config directory.
33
+ The hook sends nothing unless `WATASHI_SEND_CONVERSATIONS=1` is set.
28
34
 
29
35
  ## As a command
30
36
 
@@ -35,19 +41,9 @@ npx @r_masseater/watashi conversation push --kind claude-code --session <id> <tr
35
41
  npx @r_masseater/watashi mask < transcript.jsonl
36
42
  ```
37
43
 
38
- `login` signs in through the browser with OAuth. It uses dynamic client
39
- registration and PKCE. The tokens go to `oauth.json`, readable only by the
40
- owner. A cloud session has no browser. There, issue a long-lived token on a
44
+ A cloud session has no browser. There, issue a long-lived token on a
41
45
  machine that is signed in, and set it as `WATASHI_TOKEN`.
42
46
 
43
- | Variable | Meaning |
44
- | ---------------------------- | ----------------------------------------------------------------------- |
45
- | `WATASHI_SEND_CONVERSATIONS` | `1` lets the Stop hook send transcripts |
46
- | `WATASHI_TOKEN` | A token from `token issue`, used instead of the saved login |
47
- | `WATASHI_URL` | The watashi origin, `https://watashi.masseater.dev` by default |
48
- | `WATASHI_HOME` | The config directory, `$XDG_CONFIG_HOME/watashi` or `~/.config/watashi` |
49
- | `WATASHI_BETTERLEAKS` | The Betterleaks binary to use; no other one is tried when it is set |
50
-
51
47
  ## License
52
48
 
53
49
  AGPL-3.0-only