useakit 0.2.0-dev.99 → 0.3.0-dev.115
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/README.md +3 -17
- package/dist/index.mjs +109 -172
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -69,15 +69,6 @@ a-kit add release # back to agent kit's version when you're done
|
|
|
69
69
|
|
|
70
70
|
A kit is a named bundle of your organization's skills, like `frontend`, made in agent kit's web or through its MCP server. `a-kit add kit/frontend` installs all of them (`kit/acme/frontend` names the organization when more than one of yours has a kit by that name) and records the kit in the lock. `a-kit update` then follows the kit: skills added to it get installed, and skills taken out of it get removed, unless you also added them on their own, another kit you installed still has them, you edited them, or you linked them.
|
|
71
71
|
|
|
72
|
-
## Reporting a session that went wrong
|
|
73
|
-
|
|
74
|
-
Installing skills also installs `report-session-issue`. Tell your agent "report this conversation" and it asks what went wrong, lists the project's private words, and runs `a-kit report`. The command:
|
|
75
|
-
|
|
76
|
-
- reads the session from Claude Code's or Codex's own log;
|
|
77
|
-
- scrubs it on your machine: secrets, emails, IPs, your user and machine names, paths to the repo and home, and the words the agent mapped; long tool outputs are cut to 2,000 characters (`--full-outputs` keeps them);
|
|
78
|
-
- links the agent kit skills installed here, and whether the agent loaded each;
|
|
79
|
-
- writes the scrubbed transcript to a file to check (`--dry-run` stops there), then sends it to your organization's Reports.
|
|
80
|
-
|
|
81
72
|
## Auto-update
|
|
82
73
|
|
|
83
74
|
Installing skills for Claude Code also adds a `SessionStart` hook to `~/.claude/settings.json` that checks your global skills when a session starts or resumes. A background process, so the session doesn't wait for it, sends agent kit what your global lock has and gets back one fingerprint of it: the version each skill's channel installs, each kit's skills, each public skill's version. When the fingerprint isn't the one your last update left, it runs `a-kit update -g`; when it is, that one request is all. Sessions that start within the same minute check once. It skips the check 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.
|
|
@@ -92,12 +83,7 @@ a-kit auto-update on # turn it back on
|
|
|
92
83
|
|
|
93
84
|
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.
|
|
94
85
|
|
|
95
|
-
The repository (its `origin` remote) and the branch you're on go too,
|
|
96
|
-
|
|
97
|
-
- a repo with an `agent-kit.lock.json`, which installs skills from agent kit;
|
|
98
|
-
- or one of your organizations' projects' repositories, told only to that organization: another organization's skill loaded there doesn't say which repository it was.
|
|
99
|
-
|
|
100
|
-
From any other repo, neither is sent. The hook decides from a list of the projects' repositories kept in `~/.config/agent-kit/`, never waiting for the API: it's asked for again once a day, so a repository added to a project starts sending within a day, or right away after `a-kit update`.
|
|
86
|
+
The repository (its `origin` remote) and the branch you're on go too, only from a repo with an `agent-kit.lock.json`, which installs skills from agent kit. From any other repo, neither is sent.
|
|
101
87
|
|
|
102
88
|
```sh
|
|
103
89
|
a-kit telemetry # whether it's on
|
|
@@ -109,14 +95,14 @@ a-kit telemetry on # turn it back on
|
|
|
109
95
|
|
|
110
96
|
### Importing past sessions
|
|
111
97
|
|
|
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
|
|
98
|
+
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 skills from agent kit it loaded, and its tokens, cost and prompts by model, each at the time it happened.
|
|
113
99
|
|
|
114
100
|
```sh
|
|
115
101
|
a-kit telemetry import --dry-run # what it would send, sending nothing
|
|
116
102
|
a-kit telemetry import # send it
|
|
117
103
|
```
|
|
118
104
|
|
|
119
|
-
The same rules as live telemetry apply: only a session in a
|
|
105
|
+
The same rules as live telemetry apply: only a session in a repo with an `agent-kit.lock.json` is sent, and nothing of the others leaves the machine, nor of a session whose folder is gone (a worktree removed since); 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
106
|
|
|
121
107
|
## Heartbeat
|
|
122
108
|
|