kankaku-claude 0.2.0 → 0.2.1
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/CHANGELOG.md +3 -0
- package/README.md +12 -8
- package/commands/sync-all.md +9 -0
- package/commands/sync-status.md +9 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
|
8
8
|
|
|
9
9
|
### Added
|
|
10
10
|
|
|
11
|
+
- `/kankaku:sync-status` and `/kankaku:sync-all` slash commands for local
|
|
12
|
+
sync state inspection and full hub sync, respectively.
|
|
13
|
+
|
|
11
14
|
- Phase 1: per-prompt work records from Claude Code hooks. Writes one
|
|
12
15
|
`WorkRecord` per user prompt to `<KANKAKU_DIR>/worklog.jsonl`, in the same
|
|
13
16
|
schema the kankaku pi extension writes, so kankaku's existing
|
package/README.md
CHANGED
|
@@ -85,8 +85,11 @@ anything behind in whatever project happens to be open.
|
|
|
85
85
|
and the last cost the statusline reported (wraps `node src/cli.ts status`).
|
|
86
86
|
- `/kankaku:setup` — prints the `statusLine` snippet described above (wraps
|
|
87
87
|
`node src/cli.ts setup`).
|
|
88
|
-
- `/kankaku:sync` — manually syncs local work records to the hub
|
|
89
|
-
`node src/cli.ts sync`; the slash command does not forward arguments).
|
|
88
|
+
- `/kankaku:sync` — manually syncs recent local work records to the hub
|
|
89
|
+
(wraps `node src/cli.ts sync`; the slash command does not forward arguments).
|
|
90
|
+
- `/kankaku:sync-status` — inspects local pending counts and sync state
|
|
91
|
+
(wraps `node src/cli.ts sync status`; no hub request or credentials required).
|
|
92
|
+
- `/kankaku:sync-all` — requests a full sync (wraps `node src/cli.ts sync all`).
|
|
90
93
|
|
|
91
94
|
The report, status, and setup subcommands are also available directly via
|
|
92
95
|
`node src/cli.ts <report|status|setup>`; `report` accepts `--days N` and
|
|
@@ -96,9 +99,10 @@ defaults to the last 7 days.
|
|
|
96
99
|
|
|
97
100
|
Configure hub credentials with `KANKAKU_PB_URL`, `KANKAKU_PB_EMAIL`, and
|
|
98
101
|
`KANKAKU_PB_PASSWORD`, or use `~/.kankaku/credentials.json` (the shared
|
|
99
|
-
kankaku hub credential file). Then run `/kankaku:sync` or
|
|
100
|
-
`
|
|
101
|
-
|
|
102
|
+
kankaku hub credential file). Then run `/kankaku:sync` for recent records or
|
|
103
|
+
`/kankaku:sync-all` for a full sync in the project whose worklog you want to
|
|
104
|
+
upload. Use `/kankaku:sync-status` to inspect local sync state without a hub
|
|
105
|
+
request or credentials. The same operations are available directly via CLI:
|
|
102
106
|
|
|
103
107
|
| Command | Purpose |
|
|
104
108
|
|---------|---------|
|
|
@@ -181,9 +185,9 @@ also runs for the current session's own leftover state at `SessionEnd`.
|
|
|
181
185
|
document a link between a `SubagentStart`/`SubagentStop` pair and the
|
|
182
186
|
`tool_use_id` that launched it, so kankaku-claude cannot join them; the
|
|
183
187
|
subagent's own time is not separately measured here.
|
|
184
|
-
- **Hub sync is best-effort.** Use `/kankaku:sync`
|
|
185
|
-
|
|
186
|
-
`KANKAKU_SYNC_PROMPT` is `truncated` or `full`.
|
|
188
|
+
- **Hub sync is best-effort.** Use `/kankaku:sync` to retry recent records or
|
|
189
|
+
`/kankaku:sync-all` to request a full sync. Prompts are omitted from uploads
|
|
190
|
+
unless `KANKAKU_SYNC_PROMPT` is `truncated` or `full`.
|
|
187
191
|
|
|
188
192
|
See [kankaku.io](https://kankaku.io) for the pi extension this plugin shares
|
|
189
193
|
its worklog format with.
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Request a full sync of local kankaku work records to the hub
|
|
3
|
+
allowed-tools: Bash(node:*)
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Run the kankaku CLI sync all command and show its output to the user verbatim,
|
|
7
|
+
inside a code block, with no summarizing or reformatting:
|
|
8
|
+
|
|
9
|
+
!node "${CLAUDE_PLUGIN_ROOT}/src/cli.ts" sync all
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
---
|
|
2
|
+
description: Show local kankaku hub sync status
|
|
3
|
+
allowed-tools: Bash(node:*)
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
Run the kankaku CLI sync status command and show its output to the user verbatim,
|
|
7
|
+
inside a code block, with no summarizing or reformatting:
|
|
8
|
+
|
|
9
|
+
!node "${CLAUDE_PLUGIN_ROOT}/src/cli.ts" sync status
|