carrick 0.3.141 → 0.3.142

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/bin/carrick.mjs CHANGED
@@ -312,6 +312,35 @@ function extraHelp() {
312
312
  ].join("\n");
313
313
  }
314
314
 
315
+ /**
316
+ * `lsp --help` and `templates --help` print their own help and exit 0. Before
317
+ * this, `lsp` started the language server on any argument and `templates`
318
+ * read `--help` as a template name and refused it (carrick-cloud#2884).
319
+ */
320
+ const SUBCOMMAND_HELP = {
321
+ lsp: [
322
+ "carrick lsp --stdio",
323
+ "",
324
+ "Run the language server on stdin and stdout, for an editor or an agent that",
325
+ "speaks LSP. It reads the index this folder already holds and writes nothing",
326
+ "into the repository.",
327
+ "",
328
+ ],
329
+ templates: [
330
+ "carrick templates <name> [--variable value]...",
331
+ "",
332
+ "Print a file to add to a repo to stdout: `workflow` (the GitHub Actions",
333
+ "workflow) or `carrick.json`. Each --variable value pair fills a placeholder",
334
+ "of that name, for example `--default-branch trunk`. It writes no file.",
335
+ "",
336
+ ],
337
+ };
338
+ const helpLines = SUBCOMMAND_HELP[command];
339
+ if (helpLines && rest.some((argument) => argument === "--help" || argument === "-h")) {
340
+ process.stdout.write(helpLines.join("\n"));
341
+ process.exit(0);
342
+ }
343
+
315
344
  switch (command) {
316
345
  case "login": {
317
346
  const { login } = await import("../dist/auth/run.js");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carrick",
3
- "version": "0.3.141",
3
+ "version": "0.3.142",
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.141",
119
- "@carrick-tools/cli-darwin-x64": "0.3.141",
120
- "@carrick-tools/cli-linux-arm64": "0.3.141",
121
- "@carrick-tools/cli-linux-x64": "0.3.141",
122
- "@carrick-tools/cli-win32-x64": "0.3.141"
118
+ "@carrick-tools/cli-darwin-arm64": "0.3.142",
119
+ "@carrick-tools/cli-darwin-x64": "0.3.142",
120
+ "@carrick-tools/cli-linux-arm64": "0.3.142",
121
+ "@carrick-tools/cli-linux-x64": "0.3.142",
122
+ "@carrick-tools/cli-win32-x64": "0.3.142"
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.141",
4
+ "version": "0.3.142",
5
5
  "author": {
6
6
  "name": "Carrick",
7
7
  "email": "hello@carrick.tools"