carrick 0.3.96 → 0.3.98
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 +42 -282
- package/bin/carrick.mjs +19 -14
- package/dist/auth/run.d.ts +1 -1
- package/dist/auth/run.js +1 -1
- package/dist/contract.d.ts +15 -0
- package/dist/contract.js.map +1 -1
- package/dist/global-install.js +6 -5
- package/dist/global-install.js.map +1 -1
- package/dist/hook/reuse.d.ts +8 -3
- package/dist/hook/reuse.js +15 -3
- package/dist/hook/reuse.js.map +1 -1
- package/dist/init/connect.js +1 -1
- package/dist/init/connect.js.map +1 -1
- package/dist/init/doctor.js +5 -2
- package/dist/init/doctor.js.map +1 -1
- package/dist/init/hosted.d.ts +18 -1
- package/dist/init/hosted.js +84 -16
- package/dist/init/hosted.js.map +1 -1
- package/dist/init/install-id.d.ts +2 -2
- package/dist/init/install-id.js +3 -3
- package/dist/init/install-id.js.map +1 -1
- package/dist/init/mcp.d.ts +2 -2
- package/dist/init/mcp.js +2 -2
- package/dist/init/mcp.js.map +1 -1
- package/dist/init/outdated.d.ts +1 -1
- package/dist/init/outdated.js +1 -1
- package/dist/init/outdated.js.map +1 -1
- package/dist/init/output.d.ts +18 -1
- package/dist/init/output.js +40 -1
- package/dist/init/output.js.map +1 -1
- package/dist/init/remove.d.ts +71 -2
- package/dist/init/remove.js +474 -145
- package/dist/init/remove.js.map +1 -1
- package/dist/init/repo-copies.d.ts +16 -4
- package/dist/init/repo-copies.js +20 -6
- package/dist/init/repo-copies.js.map +1 -1
- package/dist/init/run.d.ts +12 -16
- package/dist/init/run.js +25 -42
- package/dist/init/run.js.map +1 -1
- package/dist/update.js +1 -0
- package/dist/update.js.map +1 -1
- package/package.json +7 -7
- package/plugin/.claude-plugin/plugin.json +1 -1
- package/sidecar/dist/src/client-semantics.d.ts +36 -0
- package/sidecar/dist/src/client-semantics.js +1008 -0
- package/sidecar/dist/src/index.js +35 -0
- package/sidecar/dist/src/types.d.ts +83 -2
- package/sidecar/dist/src/validators.d.ts +463 -0
- package/sidecar/dist/src/validators.js +50 -0
package/README.md
CHANGED
|
@@ -1,312 +1,72 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center"><a href="https://carrick.tools"><img src="https://carrick.tools/brand/carrick-banner@2x.png" alt="Carrick" width="100%"></a></p>
|
|
2
2
|
|
|
3
|
-
Carrick
|
|
4
|
-
calls in the file you are editing, their counterparts in indexed repositories,
|
|
5
|
-
and whether their contracts agree. Configured editors show diagnostics, and
|
|
6
|
-
coding agents can receive context through supported hooks or explicit checks.
|
|
3
|
+
# Carrick
|
|
7
4
|
|
|
8
|
-
|
|
9
|
-
npm install -g carrick
|
|
10
|
-
carrick login
|
|
11
|
-
cd ~/code # a repo, or the folder that holds your repos
|
|
12
|
-
carrick init
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
`carrick login` opens the browser to authorise a Carrick workspace. `init`
|
|
16
|
-
accepts that credential or a `CARRICK_TOKEN` environment override, and signs in
|
|
17
|
-
through the browser itself when a terminal has neither. GitHub CLI credentials
|
|
18
|
-
do not grant Carrick access.
|
|
5
|
+
### TypeScript codebase intelligence for AI agents & IDEs.
|
|
19
6
|
|
|
20
|
-
|
|
21
|
-
fail on a defect that is already fixed. So every command reads a cached answer
|
|
22
|
-
to "is there a newer one", refreshes it in the background, and prints a line
|
|
23
|
-
naming the exact update command for the way this copy was installed. It never
|
|
24
|
-
blocks on the network, and `CARRICK_NO_UPDATE_CHECK=1` turns it off for a
|
|
25
|
-
reproducible run. The one thing it installs is an older **global** `carrick`
|
|
26
|
-
when you run through `npx`: that install answers your agent's hooks and every
|
|
27
|
-
new shell, so it is brought level with the version you just ran, using the
|
|
28
|
-
package manager that owns it and nothing that overrides your own npm
|
|
29
|
-
configuration. A machine with no global is never installed onto without a yes —
|
|
30
|
-
`carrick init` asks, and `carrick init --install-global` is the answer for a
|
|
31
|
-
script. In CI it warns
|
|
32
|
-
and continues, so a workflow decides its own version — and
|
|
33
|
-
`carrick-tools/carrick@v1` in a workflow already moves to each release.
|
|
7
|
+
Coding agents working across full-stack and multi-service codebases routinely rebuild existing helpers, trust stale type definitions, and modify API contracts without knowing who consumes them.
|
|
34
8
|
|
|
35
|
-
|
|
36
|
-
do about it, `■` something it could not do and why — and ends on the sentence
|
|
37
|
-
to paste to your agent. What it installs, the hooks included, is in the
|
|
38
|
-
[CLI reference](https://docs.carrick.tools/cli#workspace-initialisation). The CI
|
|
39
|
-
check and a `carrick.json` written by hand are in
|
|
40
|
-
[Building the index](https://docs.carrick.tools/building-the-index), and the
|
|
41
|
-
editor extension is in [In your editor](https://docs.carrick.tools/editor). Without a terminal — CI, an
|
|
42
|
-
agent's shell, a pipe — the same lines are written as plain text, with no colour
|
|
43
|
-
and no spinner.
|
|
9
|
+
Carrick solves this by indexing your entire TypeScript ecosystem, from frontend apps to backend services, whether they live in a monorepo or across multiple repositories. By integrating deeply with the TypeScript compiler, Carrick traces every route, type, and cross-service call while recording function behaviour—so agents search by intent rather than name and stay grounded in your real architecture.
|
|
44
10
|
|
|
45
|
-
|
|
46
|
-
Carrick — until you accept what it proposes:
|
|
11
|
+
Delivered via MCP for AI agents and LSP for IDEs, Carrick ensures models see existing endpoints and utilities before generating new code. The scanner is source-available, runs from your CLI or CI pipeline, and includes a Free plan so you can start building safer agent workflows immediately.
|
|
47
12
|
|
|
48
|
-
|
|
49
|
-
which ones, with every repo chosen to begin with. A folder routinely holds a
|
|
50
|
-
repo that should not be indexed, and a repo you leave out gets no proposal
|
|
51
|
-
entry, no project assignment and no connection. Without a terminal, name
|
|
52
|
-
them: `--repo owner/repo`, repeated or comma-separated. A folder of repos
|
|
53
|
-
with neither a terminal nor `--repo` stops there, having written nothing;
|
|
54
|
-
add `--yes` to cover all of them. A single repository is not a choice and is
|
|
55
|
-
never asked about.
|
|
56
|
-
2. **The project.** Which project the selected repos belong in.
|
|
57
|
-
3. **The proposal**, which names the packages found, the repos covered, any
|
|
58
|
-
project to create, and any repo that would move out of the project it is in
|
|
59
|
-
now. Answering no, or ending any question with Ctrl-C, ends the run with
|
|
60
|
-
nothing written.
|
|
13
|
+
## Get started
|
|
61
14
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
carrick init --project payments --allow-move
|
|
15
|
+
```bash
|
|
16
|
+
npm install -g carrick
|
|
17
|
+
carrick init
|
|
66
18
|
```
|
|
67
19
|
|
|
68
|
-
|
|
69
|
-
terminal where the API allows that and printing the project link where it does
|
|
70
|
-
not. A repo that is already in another project is **moved** out of it, which
|
|
71
|
-
changes what every agent querying either project can see, so the move is named
|
|
72
|
-
in the proposal with the project it comes out of and asked about separately.
|
|
73
|
-
`--yes` does not grant it: `--allow-move` does, and without either the run
|
|
74
|
-
stops before anything is moved.
|
|
75
|
-
|
|
76
|
-
Connected repos are placed from the terminal, so the GitHub App grant is the
|
|
77
|
-
only browser step; where the API has no assignment action, the command prints
|
|
78
|
-
the repo-assignment link and, in an interactive terminal, opens the page.
|
|
79
|
-
Either way the claim comes from a read. The CLI reads `resolve-repos` until
|
|
80
|
-
every covered repo reports `project_slug: "payments"`, and a repo connected to
|
|
81
|
-
another project remains pending. A target it cannot meet does not stop the run.
|
|
82
|
-
The hooks, the MCP connection and the proposal are written, and the command
|
|
83
|
-
says which browser steps are left.
|
|
84
|
-
|
|
85
|
-
Without `--project` the project step still runs: the command takes the project
|
|
86
|
-
the repos are already in, and otherwise lists the workspace's projects for you
|
|
87
|
-
to name one. An empty answer leaves the step to the browser. Every project is
|
|
88
|
-
printed as the dashboard shows it, display name and slug both — `Payments
|
|
89
|
-
(payments)`.
|
|
90
|
-
|
|
91
|
-
Each repository is identified by its `origin` remote. A remote written through
|
|
92
|
-
a per-account SSH host alias (`git@github.com-work:owner/repo.git`) is resolved
|
|
93
|
-
with `ssh -G`, so an alias whose `HostName` is `github.com` is an ordinary
|
|
94
|
-
GitHub repository here. When a repository still names none, `init` says which
|
|
95
|
-
one it was and what it read, and leaves that repository out of the project and
|
|
96
|
-
connection steps rather than dropping it quietly. `carrick init --repo
|
|
97
|
-
owner/repo` names the repository in that case: a `--repo` value that matches no
|
|
98
|
-
repo in the folder attaches to the one repo there that has no identity.
|
|
99
|
-
|
|
100
|
-
Credentials live in `$XDG_CONFIG_HOME/carrick/credentials.json`, falling back
|
|
101
|
-
to `~/.config/carrick/` on macOS and Linux or `%APPDATA%\carrick\` on Windows.
|
|
102
|
-
The file is written with mode 0600. `carrick logout` revokes that file's key
|
|
103
|
-
on the server, then removes the file; other machines and editor connections
|
|
104
|
-
stay signed in. If Carrick cannot be reached, the file is still removed and
|
|
105
|
-
the command says the key is still live. Unset `CARRICK_TOKEN` separately if
|
|
106
|
-
you set that override. Every issued key is listed, and can be revoked, at
|
|
107
|
-
[your account](https://app.carrick.tools/account).
|
|
108
|
-
|
|
109
|
-
Rust derives the same services for CI, local indexing and `init`. An existing
|
|
110
|
-
`carrick.json` is authoritative. When it is missing, `init` presents workspace
|
|
111
|
-
packages and their compiler configuration and writes that proposal to
|
|
112
|
-
`.carrick/proposal.json`, which is ignored. Each member in it also carries what
|
|
113
|
-
its own manifest says about it. That is `private`, `bin`, `main`, `exports`,
|
|
114
|
-
any deployment descriptor in its directory, and the members that depend on it,
|
|
115
|
-
so the application-versus-library decision is read rather than re-derived. It
|
|
116
|
-
writes no `carrick.json`: your agent turns the proposal into one, so the config
|
|
117
|
-
you commit is one somebody has read, and the first scan runs against it.
|
|
118
|
-
`carrick index` is the scan that asks Carrick to classify what the
|
|
119
|
-
deterministic passes could not, and it refuses to run until a `carrick.json`
|
|
120
|
-
exists. It is the only scan a first run makes.
|
|
121
|
-
|
|
122
|
-
Workspace detection handles a repo root or immediate sibling repositories.
|
|
123
|
-
An optional `carrick-workspace.json` adds paths through `repos` and removes
|
|
124
|
-
directory names through `exclude`. Where you leave a repo out of the selection,
|
|
125
|
-
init writes that name into `exclude` and records it under a `carrick` key
|
|
126
|
-
beside it: every later command reads the same answer, so the scans, the editor
|
|
127
|
-
hooks and the next `init` all leave that repo alone, and `carrick remove` takes
|
|
128
|
-
back the names init added and nothing you wrote yourself. `--repo` naming an
|
|
129
|
-
excluded repo is refused and says which file excludes it. `carrick derive
|
|
130
|
-
--workspace . --json` previews the Rust proposal without writing files or
|
|
131
|
-
scanning.
|
|
132
|
-
|
|
133
|
-
Deno projects use their existing `deno.json` or `deno.jsonc` and require Deno
|
|
134
|
-
2.9.4 or newer on PATH. Before local indexing, prepare their dependencies with
|
|
135
|
-
`deno install --frozen --node-modules-dir=none` from the Deno workspace root;
|
|
136
|
-
this prevents npm lifecycle scripts from running even when `allowScripts`
|
|
137
|
-
authorizes them. Generate any application-owned declarations through the
|
|
138
|
-
project's normal build before indexing.
|
|
139
|
-
|
|
140
|
-
Deno services normally omit `tsconfig`. An explicit ordinary TypeScript config
|
|
141
|
-
selects the TypeScript path; an explicit Deno config must be the nearest Deno
|
|
142
|
-
manifest, with `deno.json` taking precedence over `deno.jsonc`. Import maps must
|
|
143
|
-
be local files.
|
|
20
|
+
`carrick init` signs you in, asks which repositories to index and connects your agent. Your agent then writes each repository's `carrick.json` and runs the first scan. The [quick start](https://docs.carrick.tools/quickstart) has the details (Node 24 or newer).
|
|
144
21
|
|
|
145
|
-
##
|
|
22
|
+
## One index, three surfaces
|
|
146
23
|
|
|
147
|
-
|
|
148
|
-
`@carrick-tools/cli-<platform>-<arch>`, an optional dependency npm resolves by
|
|
149
|
-
`os` and `cpu`; the type sidecar, the language server and the hook scripts come
|
|
150
|
-
with this package. Installing Carrick requires no postinstall script, so
|
|
151
|
-
`--ignore-scripts` works. Dependency preparation and type checking during indexing
|
|
152
|
-
can download registry packages; `index` and `refresh` can also download
|
|
153
|
-
authenticated hosted indexes.
|
|
24
|
+
Search existing code through your agent, inspect live contracts in your editor, and catch breaking changes in your pull requests.
|
|
154
25
|
|
|
155
|
-
|
|
156
|
-
types in a Node process.
|
|
26
|
+
### In your agent
|
|
157
27
|
|
|
158
|
-
|
|
28
|
+
Give your AI assistants complete context on what already exists, how endpoints are shaped, and who breaks if something changes. Carrick maps every function by what it actually does, allowing agents to find existing implementations and build on them—even in repositories you haven't checked out locally. Endpoint types are pulled straight from the TypeScript compiler in the service that exposes them.
|
|
159
29
|
|
|
160
|
-
|
|
161
|
-
|---|---|
|
|
162
|
-
| `carrick login` | Authorise a Carrick workspace in the browser, or verify `CARRICK_TOKEN` |
|
|
163
|
-
| `carrick logout` | Remove the saved local credential |
|
|
164
|
-
| `carrick init [--repo OWNER/REPO]... [--project SLUG] [--allow-move]` | The repos this install covers, the project, the service proposal in `.carrick/`, the agent hooks, the MCP connection, and the prompt that writes `carrick.json` |
|
|
165
|
-
| `carrick doctor` | Re-check that setup: the declared paths, the CI workflow against the current template, the hooks, the MCP connection and how far the index is behind |
|
|
166
|
-
| `carrick remove [--keep-login]` | Undo all of that on this machine, and list the files the scaffold added to the repository |
|
|
167
|
-
| `carrick index` | Derive the workspace, apply optional repo overrides and write `.carrick/`, with Carrick classifying what the deterministic passes could not |
|
|
168
|
-
| `carrick refresh [--service X]` | Re-scan one repo, or all of them, and re-join the index. What the session-start hook runs |
|
|
169
|
-
| `carrick check <file>` | What the index knows about that file, verdicts included |
|
|
170
|
-
| `carrick touch <file>` | The same, without the verdicts |
|
|
171
|
-
| `carrick status` | What the index holds, and how far each repo has moved since |
|
|
172
|
-
| `carrick lsp --stdio` | The language server, for an editor or any LSP client |
|
|
173
|
-
| `carrick hook post-edit` | Claude Code PostToolUse hook, reading the tool payload on stdin |
|
|
174
|
-
| `carrick hook session-start` | Claude Code SessionStart hook |
|
|
175
|
-
| `carrick templates workflow` | Print the CI workflow to add to a repo |
|
|
176
|
-
| `carrick <path>` | The full scan, which is what the GitHub Action runs |
|
|
30
|
+
Works with any MCP-compatible agent, including Claude Code, Cursor, Windsurf, and Codex.
|
|
177
31
|
|
|
178
|
-
|
|
179
|
-
for the machine-readable shape, pinned in
|
|
180
|
-
[`docs/local-mode-output.md`](https://github.com/carrick-tools/carrick/blob/main/docs/local-mode-output.md).
|
|
32
|
+
### In your editor
|
|
181
33
|
|
|
182
|
-
|
|
34
|
+
Inspect cross-service contracts and jump between connected files without leaving your IDE. "Go to Definition" jumps directly from a service call to its handler when the code is on disk, while Code Lens displays every caller across your local index inline. If a frontend call and backend handler fall out of sync, Carrick surfaces type mismatches as native editor diagnostics.
|
|
183
35
|
|
|
184
|
-
|
|
185
|
-
`claude plugin marketplace add carrick-tools/carrick` then
|
|
186
|
-
`claude plugin install carrick@carrick` adds the language server too.
|
|
187
|
-
- **VS Code, Cursor, Windsurf**: the `carrick-tools.carrick` extension is a
|
|
188
|
-
client on `carrick lsp --stdio` and publishes diagnostics in the Problems
|
|
189
|
-
panel. Whether an editor-hosted agent reads those diagnostics depends on its
|
|
190
|
-
integration and configuration.
|
|
191
|
-
- **Neovim, Helix, Zed, JetBrains**: any LSP client, on the same command.
|
|
192
|
-
- **Anything else**: `carrick check <file>` on demand, and the pull request
|
|
193
|
-
check in CI.
|
|
36
|
+
Available on the Visual Studio Marketplace and Open VSX, or runnable as a standard LSP server.
|
|
194
37
|
|
|
195
|
-
|
|
38
|
+
### In your pull request
|
|
196
39
|
|
|
197
|
-
|
|
198
|
-
it, in the other repo. On a route it lists the call sites that reach it, and
|
|
199
|
-
the editor shows the picker. Carrick answers only inside a row the index holds,
|
|
200
|
-
and only when the file on the other side is on this disk, so every other jump
|
|
201
|
-
falls through to TypeScript exactly as it did before.
|
|
40
|
+
Bring the exact same index into CI to catch contract risks, duplicate work, and silent version drift. When a producer and consumer fall out of sync—regardless of protocol—Carrick flags the exact mismatch directly on your PR before it merges. It also checks dependency versions across services to catch conflicting package updates early.
|
|
202
41
|
|
|
203
|
-
##
|
|
42
|
+
## Skills
|
|
204
43
|
|
|
205
|
-
|
|
206
|
-
sends the same keys, with the `carrick.` prefix stripped, as
|
|
207
|
-
`initializationOptions`.
|
|
44
|
+
Carrick ships with four skills for the most common agent failures — breaking a caller in another service, rebuilding existing code, trusting a stale copy of another service's type, and missing places in a codebase-wide change. Each skill gets its answer from the Carrick index. `carrick init` installs them into `.claude/skills/` and `.agents/skills/`.
|
|
208
45
|
|
|
209
|
-
|
|
|
210
|
-
|
|
211
|
-
| `carrick.
|
|
212
|
-
| `carrick.
|
|
213
|
-
| `carrick.
|
|
214
|
-
| `carrick.
|
|
46
|
+
| Skill | Use it | What it returns |
|
|
47
|
+
| :--- | :--- | :--- |
|
|
48
|
+
| [`carrick-impact`](https://docs.carrick.tools/carrick-impact) | Before changing or deleting a route, handler, response shape, event or shared function, or to ask "who calls this?" | Everything that depends on the code you are about to change, with a file and line for each, and a type verdict for each consumer |
|
|
49
|
+
| [`carrick-reuse`](https://docs.carrick.tools/carrick-reuse) | At the end of a task that added or changed functions, or to ask "does this already exist?" | The new functions compared against the whole function index, and the places the project has built the same thing twice |
|
|
50
|
+
| [`carrick-drift`](https://docs.carrick.tools/carrick-drift) | Before changing a request or response type, or when a compatibility verdict names a problem you cannot place | The producer's type, each consumer call site's expected type and the stored verdict, side by side, one operation at a time |
|
|
51
|
+
| [`carrick-census`](https://docs.carrick.tools/carrick-census) | For "find every place that does X" questions | Every match for two wordings of one concept, paged to the end and joined into one list with a receipt |
|
|
215
52
|
|
|
216
|
-
|
|
53
|
+
## Ask your agent
|
|
217
54
|
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
authenticated hosted indexes and replay answers for unchanged files when the
|
|
223
|
-
hosted commit is available locally and cache versions match. Changed files
|
|
224
|
-
keep their local facts while their hosted model answers are withheld. Boundary
|
|
225
|
-
rows report enrichment status and remaining unclassified candidates; no model
|
|
226
|
-
runs on the local machine.
|
|
227
|
-
|
|
228
|
-
Hosted queries cover connected, indexed repositories in the selected Carrick
|
|
229
|
-
project, including repositories absent from this disk, using their most recent
|
|
230
|
-
default-branch indexes. They are available over MCP, and `carrick init`
|
|
231
|
-
connects Claude Code through `claude mcp add`. Cursor, Windsurf and VS Code
|
|
232
|
-
keep their configuration outside the workspace, so each is asked about by the
|
|
233
|
-
path of its file: the terminal offers the ones whose configuration directory
|
|
234
|
-
exists, ticked where the editor itself is detected, and a run with no terminal
|
|
235
|
-
writes one only when `--mcp EDITOR` names it. `--yes` does not cover them. A
|
|
236
|
-
`carrick` server is added to the file and every other entry in it is left
|
|
237
|
-
alone.
|
|
238
|
-
An entry init writes carries an `X-Carrick-Install-Id` header: a UUID generated
|
|
239
|
-
once, kept in `~/.carrick/install-id`, and sent with every MCP call so a slow
|
|
240
|
-
session can be told apart from a busy one. It says nothing about the machine or
|
|
241
|
-
the person — `carrick remove` deletes it, and the next `carrick init` mints
|
|
242
|
-
another. A `carrick` entry that is already there is left exactly as it is, with
|
|
243
|
-
or without the header: the header is part of what a client keys its sign-in on,
|
|
244
|
-
and nothing a user sees depends on it, so neither `init` nor `doctor` mentions
|
|
245
|
-
an entry that has none.
|
|
246
|
-
A machine with no client on it is given the line to run, with the
|
|
247
|
-
id already in it:
|
|
248
|
-
|
|
249
|
-
```
|
|
250
|
-
claude mcp add --scope user --transport http carrick https://api.carrick.tools/mcp --header "X-Carrick-Install-Id: <id>"
|
|
251
|
-
```
|
|
252
|
-
|
|
253
|
-
The first scan on a repository's default branch writes its hosted index. A
|
|
254
|
-
Claude Code session opened in a workspace still waiting for one starts
|
|
255
|
-
`carrick refresh` in the background, at most once an hour
|
|
256
|
-
(`CARRICK_REFRESH_COOLDOWN_MS` states another gap), so the hosted rows arrive
|
|
257
|
-
without a command to remember.
|
|
258
|
-
|
|
259
|
-
## Checking the setup
|
|
260
|
-
|
|
261
|
-
```
|
|
262
|
-
carrick doctor
|
|
263
|
-
```
|
|
264
|
-
|
|
265
|
-
What Carrick answers depends on decisions made once, at setup: which
|
|
266
|
-
directories are services, which shared roots they include, which tsconfig
|
|
267
|
-
resolves their types. The index itself is rebuilt by CI on every push to the
|
|
268
|
-
default branch; the configuration is not rebuilt by anything. `carrick doctor`
|
|
269
|
-
re-reads it and exits non-zero when it finds something:
|
|
270
|
-
|
|
271
|
-
- every `directory`, `include` and `tsconfig` a `carrick.json` declares exists,
|
|
272
|
-
- `.github/workflows/carrick.yml` still holds the current template, printed as
|
|
273
|
-
a diff of the lines it is missing (comments are not compared, and steps of
|
|
274
|
-
your own are shown but are not a finding),
|
|
275
|
-
- the agent hook entries are the ones this version installs, and the command
|
|
276
|
-
they run still resolves to this package,
|
|
277
|
-
- each agent client on this machine has the Carrick MCP server,
|
|
278
|
-
- the hosted index answers for every service, with the local index's distance
|
|
279
|
-
from the working tree and from the default branch as notes.
|
|
280
|
-
|
|
281
|
-
It writes nothing, runs no scan and costs nothing.
|
|
282
|
-
|
|
283
|
-
## Removing Carrick
|
|
284
|
-
|
|
285
|
-
```
|
|
286
|
-
carrick remove
|
|
287
|
-
npm uninstall -g carrick
|
|
288
|
-
```
|
|
55
|
+
- "Which functions handle webhook signing across our services?"
|
|
56
|
+
- "Where do we deduplicate users by email?"
|
|
57
|
+
- "What calls `/api/users`, and what response shape does each caller expect?"
|
|
58
|
+
- "Show me every function that retries on rate-limit errors."
|
|
289
59
|
|
|
290
|
-
|
|
291
|
-
removed: the Carrick hook entries in this folder's `.claude` settings, the
|
|
292
|
-
hooks and skills it copied into each repo here with their `.git/info/exclude`
|
|
293
|
-
lines, the `carrick` MCP server in each agent client's configuration, the `.carrick`
|
|
294
|
-
directory, and the saved credential. Other hooks, other MCP servers and the
|
|
295
|
-
settings files themselves stay; an MCP server called `carrick` that points at
|
|
296
|
-
anything other than `api.carrick.tools` is left alone and reported. Pass
|
|
297
|
-
`--keep-login` to keep the credential, and `--workspace DIR` to name a folder
|
|
298
|
-
other than this one. Running it twice is safe: the second run says there is
|
|
299
|
-
nothing left to remove.
|
|
60
|
+
## Docs
|
|
300
61
|
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
[app.carrick.tools/account](https://app.carrick.tools/account).
|
|
62
|
+
- [CLI reference](https://docs.carrick.tools/cli)
|
|
63
|
+
- [Building the index](https://docs.carrick.tools/building-the-index)
|
|
64
|
+
- [carrick.json](https://docs.carrick.tools/carrick-json)
|
|
65
|
+
- [MCP tools](https://docs.carrick.tools/mcp-tools)
|
|
66
|
+
- [Task skills](https://docs.carrick.tools/task-skills)
|
|
67
|
+
- [In your editor](https://docs.carrick.tools/editor)
|
|
308
68
|
|
|
309
69
|
## Licence
|
|
310
70
|
|
|
311
|
-
Elastic License 2.0. See
|
|
71
|
+
Carrick has a free tier, and paid plans are on the [pricing page](https://carrick.tools/pricing). Elastic License 2.0. See
|
|
312
72
|
[LICENSE.md](https://github.com/carrick-tools/carrick/blob/main/LICENSE.md).
|
package/bin/carrick.mjs
CHANGED
|
@@ -49,11 +49,11 @@ const [command, ...rest] = argv;
|
|
|
49
49
|
* The commands that say nothing about the state of the install (carrick#1333).
|
|
50
50
|
*
|
|
51
51
|
* `hook` and `lsp` are protocol channels — a line of prose on either is a line
|
|
52
|
-
* an agent reads as data — and `init`, `doctor` and `
|
|
53
|
-
* that write, audit and undo the very files the notice would be
|
|
54
|
-
* of them says it better in its own words.
|
|
52
|
+
* an agent reads as data — and `init`, `doctor`, `remove` and `uninstall` are
|
|
53
|
+
* the commands that write, audit and undo the very files the notice would be
|
|
54
|
+
* about, so each of them says it better in its own words.
|
|
55
55
|
*/
|
|
56
|
-
const NO_NOTICE = new Set(["hook", "lsp", "init", "doctor", "remove"]);
|
|
56
|
+
const NO_NOTICE = new Set(["hook", "lsp", "init", "doctor", "remove", "uninstall"]);
|
|
57
57
|
|
|
58
58
|
/**
|
|
59
59
|
* One line a day, on stderr, naming what an upgrade left behind here.
|
|
@@ -268,10 +268,12 @@ async function printVersion() {
|
|
|
268
268
|
* spawned for that text and answers none of these names, so its groups are
|
|
269
269
|
* repeated here as headings instead of being interleaved (carrick#976).
|
|
270
270
|
*
|
|
271
|
-
* `init`
|
|
272
|
-
* where the first run starts, and a
|
|
273
|
-
* must not be the reason they never
|
|
274
|
-
*
|
|
271
|
+
* `init`, `doctor`, `remove` and `uninstall` are named in the binary's own
|
|
272
|
+
* WORKSPACE block instead of here: `init` is where the first run starts, and a
|
|
273
|
+
* help text a reader stops part-way through must not be the reason they never
|
|
274
|
+
* find it (carrick#997 item 5). `doctor` and `remove` shipped named only in a
|
|
275
|
+
* sentence under this block, where nobody looking for them found them
|
|
276
|
+
* (carrick#1572). Their arguments are still this package's.
|
|
275
277
|
*/
|
|
276
278
|
function extraHelp() {
|
|
277
279
|
return [
|
|
@@ -302,9 +304,7 @@ function extraHelp() {
|
|
|
302
304
|
" background; it never installs anything.",
|
|
303
305
|
"",
|
|
304
306
|
"`carrick init [--project SLUG]` sets this folder up; `carrick init --help`",
|
|
305
|
-
"prints its own arguments.
|
|
306
|
-
"non-zero on anything it finds. `carrick remove` undoes what init wrote on",
|
|
307
|
-
"this machine and lists the files the scaffold added to the repository.",
|
|
307
|
+
"prints its own arguments.",
|
|
308
308
|
"",
|
|
309
309
|
].join("\n");
|
|
310
310
|
}
|
|
@@ -340,13 +340,18 @@ switch (command) {
|
|
|
340
340
|
const { init } = await import("../dist/init/run.js");
|
|
341
341
|
process.exit(await init(rest));
|
|
342
342
|
}
|
|
343
|
-
// Named here rather than left to the binary: `remove`
|
|
344
|
-
//
|
|
345
|
-
// (carrick#981).
|
|
343
|
+
// Named here rather than left to the binary: `remove` and `uninstall` are
|
|
344
|
+
// this package's own commands, and the binary reads a name it does not know
|
|
345
|
+
// as a path to scan (carrick#981). `remove` acts on one folder, `uninstall`
|
|
346
|
+
// on this machine (carrick#1573).
|
|
346
347
|
case "remove": {
|
|
347
348
|
const { remove } = await import("../dist/init/remove.js");
|
|
348
349
|
process.exit(await remove(rest));
|
|
349
350
|
}
|
|
351
|
+
case "uninstall": {
|
|
352
|
+
const { uninstall } = await import("../dist/init/remove.js");
|
|
353
|
+
process.exit(await uninstall(rest));
|
|
354
|
+
}
|
|
350
355
|
// Also this package's own: the hook, MCP and workflow halves of the check
|
|
351
356
|
// are things this package wrote, and the binary answers for the rest of it
|
|
352
357
|
// through `carrick status`.
|
package/dist/auth/run.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare function signIn(say?: (message: string) => void, signal?: AbortSi
|
|
|
14
14
|
* The browser page used to say "Next, run carrick init" to everyone, which was
|
|
15
15
|
* wrong under init itself and on every login after the first (carrick#1511).
|
|
16
16
|
* The terminal knows which it is: `carrick init` writes this machine's install
|
|
17
|
-
* id and `carrick
|
|
17
|
+
* id and `carrick uninstall` deletes it, so a machine without one has never been
|
|
18
18
|
* set up, and that is the only login with a step left.
|
|
19
19
|
*/
|
|
20
20
|
export declare function loginNextStep(installId?: string | null): string | null;
|
package/dist/auth/run.js
CHANGED
|
@@ -34,7 +34,7 @@ export async function signIn(say = (message) => process.stdout.write(`${message}
|
|
|
34
34
|
* The browser page used to say "Next, run carrick init" to everyone, which was
|
|
35
35
|
* wrong under init itself and on every login after the first (carrick#1511).
|
|
36
36
|
* The terminal knows which it is: `carrick init` writes this machine's install
|
|
37
|
-
* id and `carrick
|
|
37
|
+
* id and `carrick uninstall` deletes it, so a machine without one has never been
|
|
38
38
|
* set up, and that is the only login with a step left.
|
|
39
39
|
*/
|
|
40
40
|
export function loginNextStep(installId = readInstallId()) {
|
package/dist/contract.d.ts
CHANGED
|
@@ -190,6 +190,11 @@ export type StatusService = {
|
|
|
190
190
|
boundary?: Boundary;
|
|
191
191
|
boundary_note?: string;
|
|
192
192
|
boundary_lines?: string[];
|
|
193
|
+
/**
|
|
194
|
+
* The hosted row the hosted state below is about, or null when there is
|
|
195
|
+
* none (`HostedProvenance` in `src/local_mode/hosted.rs`).
|
|
196
|
+
*/
|
|
197
|
+
hosted?: StatusHosted | null;
|
|
193
198
|
/**
|
|
194
199
|
* What the hosted index held for this service at the last index or refresh.
|
|
195
200
|
* `no_index_yet` is a connected repo whose first CI scan has not landed —
|
|
@@ -197,6 +202,16 @@ export type StatusService = {
|
|
|
197
202
|
*/
|
|
198
203
|
hosted_state?: "enriched" | "no_index_yet" | "not_connected" | "remote_unnamed" | "not_signed_in" | "version_mismatch" | "commit_missing" | "read_failed";
|
|
199
204
|
};
|
|
205
|
+
/** Where a service's hosted row came from, as `carrick status` states it. */
|
|
206
|
+
export type StatusHosted = {
|
|
207
|
+
/** The full commit the hosted index was built at. */
|
|
208
|
+
commit: string;
|
|
209
|
+
indexed_at?: string;
|
|
210
|
+
/** `ci` or `laptop`; absent on a row stored before the field existed, which is a CI row. */
|
|
211
|
+
source?: string | null;
|
|
212
|
+
/** The GitHub login that uploaded it, when the row records one. */
|
|
213
|
+
uploaded_by?: string | null;
|
|
214
|
+
};
|
|
200
215
|
/**
|
|
201
216
|
* One repo of the workspace, for what moved in it that belongs to no service:
|
|
202
217
|
* a workflow file, a lockfile, an editor's settings. Stated once here rather
|
package/dist/contract.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,EAAE;AACF,yDAAyD;AACzD,+EAA+E;AAC/E,4DAA4D;AAC5D,6EAA6E;AAC7E,6EAA6E;AAC7E,+EAA+E;AAC/E,0CAA0C;AAqL1C,MAAM,CAAC,MAAM,MAAM,GAAG,iBAAiB,CAAC;AACxC,MAAM,CAAC,MAAM,aAAa,GAAG,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../src/contract.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,EAAE;AACF,yDAAyD;AACzD,+EAA+E;AAC/E,4DAA4D;AAC5D,6EAA6E;AAC7E,6EAA6E;AAC7E,+EAA+E;AAC/E,0CAA0C;AAqL1C,MAAM,CAAC,MAAM,MAAM,GAAG,iBAAiB,CAAC;AACxC,MAAM,CAAC,MAAM,aAAa,GAAG,kBAAkB,CAAC;AA4LhD,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI,IAAI,CAAC,KAAK,CAA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C;AAChB,CAAC;AAED,2DAA2D;AAC3D,MAAM,UAAU,WAAW,CAAC,IAAe;IACzC,OAAO,IAAI,CAAC,MAAM,KAAK,WAAW,CAAC;AACrC,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,YAAY,CAAC,MAAmB;IAC9C,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE;QAC1C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC;QAC7B,IAAI,CAAC,OAAO;YAAE,OAAO,KAAK,CAAC;QAC3B,OAAO,OAAO,CAAC,MAAM,IAAI,IAAI,IAAI,OAAO,CAAC,MAAM,KAAK,YAAY,CAAC;IACnE,CAAC,CAAC,CAAC;AACL,CAAC;AAED,wEAAwE;AACxE,MAAM,UAAU,cAAc,CAAC,MAAmB;IAChD,OAAO,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,YAAY,IAAI,EAAE,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACrF,CAAC"}
|
package/dist/global-install.js
CHANGED
|
@@ -331,12 +331,13 @@ export function syncGlobalInstall(options) {
|
|
|
331
331
|
/**
|
|
332
332
|
* The commands this never runs on.
|
|
333
333
|
*
|
|
334
|
-
* `hook` and `lsp` speak a protocol and run on every edit; `remove`
|
|
335
|
-
* undoing this install, and upgrading one on the way
|
|
336
|
-
* what they asked for. The three argument forms are the
|
|
337
|
-
* milliseconds and are typed to find something out, not to
|
|
334
|
+
* `hook` and `lsp` speak a protocol and run on every edit; `remove` and
|
|
335
|
+
* `uninstall` are somebody undoing this install, and upgrading one on the way
|
|
336
|
+
* out is the opposite of what they asked for. The three argument forms are the
|
|
337
|
+
* ones that answer in milliseconds and are typed to find something out, not to
|
|
338
|
+
* do work.
|
|
338
339
|
*/
|
|
339
|
-
const NO_SYNC = new Set(["hook", "lsp", "remove", "--version", "-V", "--help", "-h"]);
|
|
340
|
+
const NO_SYNC = new Set(["hook", "lsp", "remove", "uninstall", "--version", "-V", "--help", "-h"]);
|
|
340
341
|
/**
|
|
341
342
|
* Whether this invocation keeps the global install level.
|
|
342
343
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"global-install.js","sourceRoot":"","sources":["../src/global-install.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,qBAAqB;AACrB,EAAE;AACF,+EAA+E;AAC/E,gFAAgF;AAChF,gFAAgF;AAChF,iFAAiF;AACjF,4EAA4E;AAC5E,6EAA6E;AAC7E,0BAA0B;AAC1B,EAAE;AACF,2EAA2E;AAC3E,yEAAyE;AACzE,0EAA0E;AAC1E,8EAA8E;AAC9E,kDAAkD;AAClD,EAAE;AACF,6EAA6E;AAC7E,0EAA0E;AAC1E,gFAAgF;AAChF,qDAAqD;AACrD,6EAA6E;AAC7E,8EAA8E;AAC9E,6EAA6E;AAC7E,6EAA6E;AAC7E,0EAA0E;AAC1E,6EAA6E;AAC7E,2CAA2C;AAC3C,+EAA+E;AAC/E,0EAA0E;AAC1E,+EAA+E;AAC/E,8EAA8E;AAC9E,0BAA0B;AAC1B,4EAA4E;AAC5E,8EAA8E;AAC9E,6BAA6B;AAE7B,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAE/C,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,cAAc,EAAE,IAAI,EAAE,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAGtF,kEAAkE;AAClE,MAAM,UAAU,YAAY,CAAC,WAAmB,OAAO,CAAC,QAAQ;IAC9D,OAAO,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE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;IACF,OAAO,QAAQ,CAAC;AAClB,CAAC"}
|
package/dist/hook/reuse.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export type SessionRecord = {
|
|
|
26
26
|
export declare const MAX_ENTRIES = 20;
|
|
27
27
|
/** Where one session's record lives. */
|
|
28
28
|
export declare function sessionFile(sessionId: string, home?: string): string | null;
|
|
29
|
-
/** The directory `carrick
|
|
29
|
+
/** The directory `carrick uninstall` deletes. */
|
|
30
30
|
export declare function sessionsDir(home?: string): string;
|
|
31
31
|
/** A session's record, or an empty one. Never throws. */
|
|
32
32
|
export declare function readSession(sessionId: string, home?: string): SessionRecord;
|
|
@@ -39,11 +39,16 @@ export declare function readSession(sessionId: string, home?: string): SessionRe
|
|
|
39
39
|
*/
|
|
40
40
|
export declare function prune(home?: string, now?: number): void;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* How many session records this machine holds, changing nothing: the count
|
|
43
|
+
* `carrick uninstall` lists before it asks (carrick#1573).
|
|
44
|
+
*/
|
|
45
|
+
export declare function sessionRecords(home?: string): number;
|
|
46
|
+
/**
|
|
47
|
+
* Delete every session record on this machine, for `carrick uninstall`.
|
|
43
48
|
*
|
|
44
49
|
* Returns how many files went, so the command can stay silent about a machine
|
|
45
50
|
* that never recorded one. The remover lives beside the writer, which is the
|
|
46
|
-
* rule every other half of `carrick
|
|
51
|
+
* rule every other half of `carrick uninstall` follows (carrick#1034).
|
|
47
52
|
*/
|
|
48
53
|
export declare function removeSessions(home?: string): number;
|
|
49
54
|
/**
|