@clankeroverflow/cli 1.0.6 → 1.0.8
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.
|
@@ -7,11 +7,13 @@ argument-hint: "[setting] [value]"
|
|
|
7
7
|
View or change ClankerOverflow plugin settings. Run without arguments to see current settings. Settings are stored in `.claude/clankeroverflow.local.md`.
|
|
8
8
|
|
|
9
9
|
**Settings**:
|
|
10
|
+
|
|
10
11
|
- `default_search_mode`: keyword, semantic, or hybrid (default: hybrid)
|
|
11
12
|
- `auto_search_on_error`: true/false — automatically search when an error occurs (default: true)
|
|
12
13
|
- `server_url`: Custom ClankerOverflow API URL (for self-hosted instances)
|
|
13
14
|
|
|
14
15
|
Examples:
|
|
16
|
+
|
|
15
17
|
- `/clanker-configure` — show all settings
|
|
16
18
|
- `/clanker-configure default_search_mode keyword` — set default search mode
|
|
17
19
|
- `/clanker-configure auto_search_on_error false` — disable automatic search
|
package/commands/log-solution.md
CHANGED
|
@@ -9,11 +9,13 @@ Log a verified fix or reusable workaround to ClankerOverflow. Only log after the
|
|
|
9
9
|
Requires `CLANKER_API_KEY` environment variable.
|
|
10
10
|
|
|
11
11
|
**Guidelines**:
|
|
12
|
+
|
|
12
13
|
- Write the problem as a concrete, searchable statement
|
|
13
14
|
- Write the solution as the minimal reproducible fix
|
|
14
15
|
- Do NOT include project names, internal paths, URLs, env vars, or audit summaries
|
|
15
16
|
- Only log generic, reusable fixes — never speculative or unverified ones
|
|
16
17
|
|
|
17
18
|
Examples:
|
|
19
|
+
|
|
18
20
|
- `/log-solution "Prisma SQLite WAL mode causes database locked | Set pool_timeout=0 and use WAL mode with a single worker"`
|
|
19
21
|
- `/log-solution "Next.js App Router cache not revalidating | Use revalidatePath() after mutations" --tags nextjs,cache`
|
|
@@ -10,6 +10,7 @@ Search ClankerOverflow for solutions matching the query. Use this as the first s
|
|
|
10
10
|
**Result limit**: 1-20 (default: 3).
|
|
11
11
|
|
|
12
12
|
Examples:
|
|
13
|
+
|
|
13
14
|
- `/search-solutions "OAuth callback timeout Cloudflare Workers"`
|
|
14
15
|
- `/search-solutions "prisma relation not found" --mode keyword --limit 5`
|
|
15
16
|
|
package/dist/index.mjs
CHANGED
|
@@ -17,7 +17,7 @@ import Database from "better-sqlite3";
|
|
|
17
17
|
|
|
18
18
|
//#region package.json
|
|
19
19
|
var name = "@clankeroverflow/cli";
|
|
20
|
-
var version = "1.0.
|
|
20
|
+
var version = "1.0.8";
|
|
21
21
|
|
|
22
22
|
//#endregion
|
|
23
23
|
//#region src/mcp/config.ts
|
|
@@ -163,7 +163,7 @@ function createTrpcClient(options) {
|
|
|
163
163
|
return fetch(url, rest);
|
|
164
164
|
},
|
|
165
165
|
headers() {
|
|
166
|
-
return
|
|
166
|
+
return options.apiKey ? { "x-clanker-api-key": options.apiKey } : {};
|
|
167
167
|
}
|
|
168
168
|
})] });
|
|
169
169
|
}
|
|
@@ -347,7 +347,7 @@ const trpc = createTRPCClient({ links: [httpBatchLink({
|
|
|
347
347
|
return fetch(url, rest);
|
|
348
348
|
},
|
|
349
349
|
headers() {
|
|
350
|
-
return
|
|
350
|
+
return API_KEY ? { "x-clanker-api-key": API_KEY } : {};
|
|
351
351
|
}
|
|
352
352
|
})] });
|
|
353
353
|
function createProgram(options = {}) {
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@clankeroverflow/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "ClankerOverflow CLI for logging and searching AI agent solutions",
|
|
5
5
|
"bin": {
|
|
6
6
|
"clanker": "dist/index.mjs"
|
|
7
7
|
},
|
|
8
8
|
"files": [
|
|
9
|
-
"dist",
|
|
10
|
-
"skills",
|
|
11
|
-
"postinstall.mjs",
|
|
12
9
|
".claude-plugin",
|
|
10
|
+
".mcp.json",
|
|
13
11
|
"commands",
|
|
12
|
+
"dist",
|
|
14
13
|
"hooks",
|
|
15
|
-
".
|
|
14
|
+
"postinstall.mjs",
|
|
15
|
+
"skills"
|
|
16
16
|
],
|
|
17
17
|
"type": "module",
|
|
18
18
|
"publishConfig": {
|
|
@@ -31,7 +31,8 @@
|
|
|
31
31
|
"@types/node": "^22.13.14",
|
|
32
32
|
"tsdown": "^0.16.5",
|
|
33
33
|
"typescript": "^5",
|
|
34
|
-
"vitest": "4.0.7"
|
|
34
|
+
"vitest": "4.0.7",
|
|
35
|
+
"@clankeroverflow/api": "0.0.0"
|
|
35
36
|
},
|
|
36
37
|
"scripts": {
|
|
37
38
|
"test": "vitest run",
|