useakit 0.2.0-dev.87 → 0.2.0-dev.89

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 +11 -0
  2. package/dist/index.mjs +115 -108
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -107,6 +107,17 @@ a-kit telemetry on # turn it back on
107
107
 
108
108
  `DO_NOT_TRACK=1` or `AGENT_KIT_TELEMETRY=0` also stop it.
109
109
 
110
+ ### Importing past sessions
111
+
112
+ Claude Code keeps a transcript of each session on your machine for about 30 days (`~/.claude/projects`, or under `CLAUDE_CONFIG_DIR`). `a-kit telemetry import` sends agent kit what live telemetry would have sent for each of them, so your organization sees the last month's work without waiting for new sessions: when each session started and ended, its repository and branches, the pull requests and issues its `gh` commands opened or changed, the issue a skill was started for, the skills from agent kit it loaded, and its tokens, cost and prompts by model, each at the time it happened.
113
+
114
+ ```sh
115
+ a-kit telemetry import --dry-run # what it would send, sending nothing
116
+ a-kit telemetry import # send it
117
+ ```
118
+
119
+ The same rules as live telemetry apply: only a session in a repository of your organizations' is sent, and nothing of the others leaves the machine; no prompt, response, command, file path or tool output is ever sent. A session keeps its id, so importing twice changes nothing, and a session live telemetry already sent is left as it is. A bot logged in with `a-kit login --token` imports its own sessions as itself. `a-kit telemetry show <session-id>` shows what was sent for an imported session, like a live one.
120
+
110
121
  ## Heartbeat
111
122
 
112
123
  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 their versions (from each one's `--version`), and the skills installed everywhere (-g). Your organization's Machines page shows whether each machine is on, and flags the ones with an agent older than its newest release or skills 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`.