useakit 0.2.0-dev.25 → 0.2.0-dev.27

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.
Files changed (3) hide show
  1. package/README.md +23 -1
  2. package/dist/index.mjs +99 -88
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -62,16 +62,38 @@ Installing skills also installs `report-session-issue`. Tell your agent "report
62
62
  - links the agent kit skills installed here, and whether the agent loaded each;
63
63
  - writes the scrubbed transcript to a file to check (`--dry-run` stops there), then sends it to your organization's Reports.
64
64
 
65
+ ## Auto-update
66
+
67
+ Installing skills for Claude Code also adds a `SessionStart` hook to `~/.claude/settings.json` that runs `a-kit update -g` when a session starts or resumes. It runs in a background process, so the session doesn't wait for it, and at most once an hour, however many sessions start. It skips the run when nothing is installed everywhere or you're not logged in. A project's skills aren't touched: they live in its repo, so they change only when you run `a-kit update` there.
68
+
69
+ ```sh
70
+ a-kit auto-update # whether it's on
71
+ a-kit auto-update off # stop it and remove the hook
72
+ a-kit auto-update on # turn it back on
73
+ ```
74
+
65
75
  ## Telemetry
66
76
 
67
77
  Installing skills for Claude Code also adds a hook to `~/.claude/settings.json`, so each time Claude Code loads a skill installed from agent kit (on its own or because you typed `/<skill>`), it reports the skill, its version, the agent, this machine (a random id and its hostname) and when. Your organization sees it on the skills table and each skill's page. Nothing else is sent: not your prompts, not your code. Reports that can't be sent wait in `~/.config/agent-kit/` for the next one.
68
78
 
69
79
  ```sh
70
80
  a-kit telemetry # whether it's on
71
- a-kit telemetry off # stop reporting and remove the hook
81
+ a-kit telemetry off # stop reporting and remove its hooks
72
82
  a-kit telemetry on # turn it back on
73
83
  ```
74
84
 
75
85
  `DO_NOT_TRACK=1` or `AGENT_KIT_TELEMETRY=0` also stop it.
76
86
 
87
+ ## Heartbeat
88
+
89
+ Logging in or installing skills also installs a timer (a systemd user timer on Linux, a launchd agent on macOS) that tells agent kit, every 5 minutes, this machine's hostname, system, the CLI's version, the agents on it and the skills installed everywhere (-g). Your organization's Machines page shows whether each machine is on and which skills are behind their channel; admins see every member's machines, members only their own. Logging in, installing and updating send it right away too; on a system without a timer (Windows), Claude Code's `SessionStart` hook sends it instead. On Linux the timer stops while you're logged out unless you run `loginctl enable-linger`.
90
+
91
+ ```sh
92
+ a-kit heartbeat # whether it's on, the timer's files and the last one sent
93
+ a-kit heartbeat off # stop reporting and remove the timer
94
+ a-kit heartbeat on # turn it back on
95
+ ```
96
+
97
+ `DO_NOT_TRACK=1` or `AGENT_KIT_TELEMETRY=0` also stop it.
98
+
77
99
  Needs Node.js 20.12 or newer.