@r_masseater/watashi 0.1.1 → 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/.claude-plugin/plugin.json +1 -1
- package/README.md +19 -23
- package/dist/main.mjs +26533 -26518
- package/package.json +22 -14
- package/skills/send-conversations/SKILL.md +65 -0
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.
|
|
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
|
-
[
|
|
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.
|
|
10
|
-
|
|
11
|
-
|
|
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/
|
|
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/
|
|
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.
|
|
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
|
-
|
|
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
|