carrick 0.3.176 → 0.3.177

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carrick",
3
- "version": "0.3.176",
3
+ "version": "0.3.177",
4
4
  "carrickCache": {
5
5
  "cache_version": 22,
6
6
  "intent_cache_version": 2
@@ -115,11 +115,11 @@
115
115
  "zod": "^3.23.0"
116
116
  },
117
117
  "optionalDependencies": {
118
- "@carrick-tools/cli-darwin-arm64": "0.3.176",
119
- "@carrick-tools/cli-darwin-x64": "0.3.176",
120
- "@carrick-tools/cli-linux-arm64": "0.3.176",
121
- "@carrick-tools/cli-linux-x64": "0.3.176",
122
- "@carrick-tools/cli-win32-x64": "0.3.176"
118
+ "@carrick-tools/cli-darwin-arm64": "0.3.177",
119
+ "@carrick-tools/cli-darwin-x64": "0.3.177",
120
+ "@carrick-tools/cli-linux-arm64": "0.3.177",
121
+ "@carrick-tools/cli-linux-x64": "0.3.177",
122
+ "@carrick-tools/cli-win32-x64": "0.3.177"
123
123
  },
124
124
  "devDependencies": {
125
125
  "@types/node": "^24.13.3"
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "carrick",
3
3
  "description": "Claude Code plugin for Carrick, which indexes TypeScript codebases across service and repository boundaries. After each edit it adds the file's routes, calls, and cross-service type mismatches to the session, and it registers Carrick's language server. It pairs with the Carrick MCP server, which lets agents search functions by intent rather than name.",
4
- "version": "0.3.176",
4
+ "version": "0.3.177",
5
5
  "author": {
6
6
  "name": "Carrick",
7
7
  "email": "hello@carrick.tools"
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: carrick-audit
3
- description: Use when the ask is what is wrong in this codebase, what to clean up, or a health check of the project. Reads what the Carrick index already flags on main (type mismatches between endpoints and their callers, functions written twice), proves each item in source, and returns a fix list. It reads a lot of source, so it uses many tokens; narrow it to one service where you can.
3
+ description: Use when the ask is what is wrong in this codebase, what to clean up, or a health check of the project. Reads what the Carrick index already flags on main (calls that reach no route, type mismatches between endpoints and their callers, functions written twice), proves each item in source, and returns a fix list. It reads a lot of source, so it uses many tokens; narrow it to one service where you can.
4
4
  ---
5
5
 
6
6
  # What the index flags on main, proven in source
@@ -23,8 +23,9 @@ get_project_map({{SCOPE}})
23
23
  ```
24
24
 
25
25
  Note the counts under FOUND ON MAIN: type mismatches and similar functions.
26
+ Note also how many unmatched calls it says match no route.
26
27
 
27
- Your first words to the user are the two counts and the cap you will use,
28
+ Your first words to the user are the three counts and the cap you will use,
28
29
  written before you open any source. Where
29
30
  you can ask, offer to narrow to one service or cap the count. Where you cannot
30
31
  wait for a reply, such as a non-interactive run, the run caps each section at
@@ -105,12 +106,44 @@ Where the members sit in separate apps, check their package.json files for a
105
106
  package they already share. Where one exists, the fix is to move the function
106
107
  there and import it; where none does, say so: the fix is a new shared package.
107
108
 
108
- ## 4. Report
109
+ ## 4. Calls that reach no route
110
+
111
+ ```
112
+ get_service_graph({{SCOPE}}, limit: 200)
113
+ ```
114
+
115
+ Read `unmatched_by_reason`. Take only the rows of `unmatched_calls` whose
116
+ `reason` is `no_matching_producer`, `no_case_answers` or `procedure_unserved`:
117
+ each names an operation no indexed service serves. Page with `offset` until
118
+ you hold as many as `unmatched_by_reason` counts for those reasons. This
119
+ section has no cap: read every one. Leave the other reasons and the whole
120
+ `model_calls_unplaced` list alone: they go to third parties or to a base
121
+ Carrick has not placed, and are not evidence of a broken call.
122
+
123
+ For each row, open the call site at its file and line. Then grep the whole
124
+ workspace for the last two segments of the path, or for the operation, event or
125
+ topic name, to find a route or handler that serves it under another prefix or
126
+ in another router.
127
+
128
+ Class each row:
129
+
130
+ - **REAL**: the line makes this call, and nothing in the workspace serves it.
131
+ Say what the user sees when it fails, and name the nearest route that does
132
+ exist, such as the same handler mounted under another prefix.
133
+ - **FALSE**: the line does not make this call (a `candidate: model` row whose
134
+ path is not in the source), or a route does serve it. Name the route's
135
+ file and line.
136
+ - **OUTSIDE**: the call is meant for something this project does not hold, such
137
+ as a third party or a service that is not indexed. Say which.
138
+ - **CAN'T TELL**: you cannot find what should serve it. Say what you looked for.
139
+
140
+ ## 5. Report
109
141
 
110
142
  One table per section, with the class column never empty, and the counts read
111
143
  against the counts from step 1 and any cap.
112
144
 
113
- Then a fix list: every REAL and DUPLICATE, most harmful first, each with
145
+ Then a fix list: every REAL and DUPLICATE, most harmful first (a REAL call
146
+ that reaches no route goes before a duplicate), each with
114
147
  file:line and the change in one line ("send createdAt from
115
148
  formatTaskResponse"; "move validateName into a shared package and delete the
116
149
  two copies"). TYPE-ONLY items go in a short list after it, as optional tidying.
@@ -122,10 +155,10 @@ List every refused call under the tables, including any you then worked around.
122
155
  Name the protocols the findings came from (HTTP, GraphQL, sockets, pub/sub,
123
156
  queues, RPC routers) and the ones that held none.
124
157
 
125
- Not covered yet: calls that reach no route, endpoints nobody calls, and routes
126
- that change data without an auth check. Say so in the report.
158
+ Not covered yet: endpoints nobody calls, and routes that change data without
159
+ an auth check. Say so in the report.
127
160
 
128
- ## 5. Act
161
+ ## 6. Act
129
162
 
130
163
  Change nothing yet. Ask the user which items on the fix list to apply, and apply
131
164
  only those.