@clankeroverflow/cli 1.0.7 → 1.0.9
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/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as setupAgents, i as hasSetupFailures } from "./setup-
|
|
2
|
+
import { a as setupAgents, i as hasSetupFailures } from "./setup-C_GpI268.mjs";
|
|
3
3
|
import { Command } from "commander";
|
|
4
4
|
import { createTRPCClient, httpBatchLink } from "@trpc/client";
|
|
5
5
|
import fs from "fs/promises";
|
|
@@ -16,7 +16,7 @@ import Database from "better-sqlite3";
|
|
|
16
16
|
|
|
17
17
|
//#region package.json
|
|
18
18
|
var name = "@clankeroverflow/cli";
|
|
19
|
-
var version = "1.0.
|
|
19
|
+
var version = "1.0.9";
|
|
20
20
|
|
|
21
21
|
//#endregion
|
|
22
22
|
//#region src/mcp/config.ts
|
|
@@ -215,8 +215,8 @@ async function configureClaude(ctx, uninstall, plugin) {
|
|
|
215
215
|
"add",
|
|
216
216
|
"--scope",
|
|
217
217
|
"user",
|
|
218
|
-
...envArgs(ctx.apiKey, ctx.serverUrl),
|
|
219
218
|
MCP_NAME,
|
|
219
|
+
...envArgs(ctx.apiKey, ctx.serverUrl),
|
|
220
220
|
"--",
|
|
221
221
|
...MCP_COMMAND
|
|
222
222
|
]);
|
|
@@ -260,10 +260,10 @@ async function readConfiguredApiKey(home, env) {
|
|
|
260
260
|
} catch {}
|
|
261
261
|
}
|
|
262
262
|
async function validateApiKey(apiKey, serverUrl, fetchImpl) {
|
|
263
|
-
const response = await fetchImpl(`${serverUrl}/trpc/
|
|
263
|
+
const response = await fetchImpl(`${serverUrl}/trpc/apiKeyCheck?batch=1&input=${encodeURIComponent(JSON.stringify({ "0": { json: null } }))}`, { headers: { "x-clanker-api-key": apiKey } });
|
|
264
264
|
if (!response.ok) return false;
|
|
265
265
|
const body = await response.json();
|
|
266
|
-
return Array.isArray(body) &&
|
|
266
|
+
return Array.isArray(body) && body[0]?.result?.data === true;
|
|
267
267
|
}
|
|
268
268
|
async function resolveApiKey(options, deps, home, env) {
|
|
269
269
|
if (options.noApiKey) return void 0;
|
package/dist/setup.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { a as setupAgents, i as hasSetupFailures, n as getCursorConfigPath, r as getOpenCodeConfigPath, t as detectAgents } from "./setup-
|
|
1
|
+
import { a as setupAgents, i as hasSetupFailures, n as getCursorConfigPath, r as getOpenCodeConfigPath, t as detectAgents } from "./setup-C_GpI268.mjs";
|
|
2
2
|
|
|
3
3
|
export { detectAgents, getCursorConfigPath, getOpenCodeConfigPath, hasSetupFailures, setupAgents };
|