@sandbaseai/cli 0.1.0 → 0.1.2
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/adapters/index.js +16 -12
- package/dist/cli.js +15 -6
- package/dist/clients.d.ts +11 -0
- package/dist/clients.js +29 -0
- package/dist/commands.js +23 -5
- package/dist/paths.js +11 -1
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/package.json +1 -1
package/dist/adapters/index.js
CHANGED
|
@@ -5,15 +5,16 @@ import { spawnSync } from "node:child_process";
|
|
|
5
5
|
import { parse as parseToml } from "smol-toml";
|
|
6
6
|
import { parseDocument } from "yaml";
|
|
7
7
|
import { atomicWrite, backup, readOptional, restore } from "../fs-safe.js";
|
|
8
|
+
import { clientProfiles } from "../clients.js";
|
|
8
9
|
import { configPath, sandbaseHome } from "../paths.js";
|
|
9
10
|
const defaultIO = { backup, write: atomicWrite, restore };
|
|
10
|
-
|
|
11
|
-
|
|
11
|
+
export function detectClient(client) { const profile = clientProfiles[client]; if (!profile.executable || profile.mode !== "auto")
|
|
12
|
+
return { installed: true, detail: "manual setup" }; const result = spawnSync(profile.executable, ["--version"], { encoding: "utf8", timeout: 5000 }); const detail = (result.stdout || result.stderr || "").trim().split("\n")[0] || "not found"; return { installed: result.status === 0, detail }; }
|
|
12
13
|
const start = "# >>> sandbase managed >>>", end = "# <<< sandbase managed <<<";
|
|
13
14
|
function block(client, bridge) {
|
|
14
15
|
if (client === "codex")
|
|
15
16
|
return `${start}\n[mcp_servers.sandbase]\ncommand = "node"\nargs = ["${bridge.replaceAll("\\", "\\\\").replaceAll('"', '\\"')}", "--client", "codex"]\n${end}`;
|
|
16
|
-
return ` ${start}\n sandbase:\n command: node\n args:\n - ${JSON.stringify(bridge)}\n - --client\n -
|
|
17
|
+
return ` ${start}\n sandbase:\n command: node\n args:\n - ${JSON.stringify(bridge)}\n - --client\n - ${client}\n ${end}`;
|
|
17
18
|
}
|
|
18
19
|
function managedText(raw, value) { const re = new RegExp(`${start.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}[\\s\\S]*?${end.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}`, "m"); return re.test(raw) ? raw.replace(re, value) : raw.replace(/\s*$/, "") + (raw.trim() ? "\n\n" : "") + value + "\n"; }
|
|
19
20
|
function removeManaged(raw) { return raw.replace(new RegExp(`\\n?[ \\t]*${start.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}[\\s\\S]*?[ \\t]*${end.replace(/[.*+?^${}()|[\]\\]/g, "\\$&")}\\n?`, "m"), "\n"); }
|
|
@@ -27,7 +28,7 @@ function removeHermesEntry(raw) { const lines = raw.split("\n"); const at = line
|
|
|
27
28
|
break;
|
|
28
29
|
end++;
|
|
29
30
|
} lines.splice(at, end - at); return lines.join("\n"); }
|
|
30
|
-
function hermesUpdate(raw, bridge) { const own = block(
|
|
31
|
+
function hermesUpdate(raw, bridge, client) { const own = block(client, bridge); const cleaned = removeHermesEntry(removeManaged(raw)).replace(/^(mcp_servers:[ \t]*)\n+/m, "$1\n"); if (/^mcp_servers:[ \t]*$/m.test(cleaned))
|
|
31
32
|
return cleaned.replace(/^mcp_servers:[ \t]*$/m, match => `${match}\n${own}`); return cleaned.replace(/\s*$/, "") + (cleaned.trim() ? "\n" : "") + `mcp_servers:\n${own}\n`; }
|
|
32
33
|
function jsonUpdate(raw, client, bridge, remove = false) { const obj = raw ? JSON.parse(raw) : {}; if (!obj || Array.isArray(obj))
|
|
33
34
|
throw new Error("Client configuration root must be an object"); const servers = obj.mcpServers === undefined ? {} : obj.mcpServers; if (!servers || typeof servers !== "object" || Array.isArray(servers))
|
|
@@ -36,12 +37,12 @@ function jsonUpdate(raw, client, bridge, remove = false) { const obj = raw ? JSO
|
|
|
36
37
|
else
|
|
37
38
|
map.sandbase = { command: "node", args: [bridge, "--client", client] }; obj.mcpServers = map; return JSON.stringify(obj, null, 2) + "\n"; }
|
|
38
39
|
function validateText(client, text) { if (!text.trim())
|
|
39
|
-
return; if (
|
|
40
|
+
return; const adapter = clientProfiles[client].adapter; if (adapter === "codex") {
|
|
40
41
|
const value = parseToml(text);
|
|
41
42
|
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
42
43
|
throw new Error("TOML root must be a table");
|
|
43
44
|
return;
|
|
44
|
-
} if (
|
|
45
|
+
} if (adapter === "yaml") {
|
|
45
46
|
const doc = parseDocument(text, { prettyErrors: false, uniqueKeys: true });
|
|
46
47
|
if (doc.errors.length)
|
|
47
48
|
throw doc.errors[0];
|
|
@@ -58,10 +59,11 @@ catch (e) {
|
|
|
58
59
|
throw e;
|
|
59
60
|
} return backupPath ? { path: target, backup: backupPath, changed: true } : { path: target, changed: true }; }
|
|
60
61
|
export async function rollbackBridge(result) { await rollback(result); }
|
|
61
|
-
export async function configure(client, bridge, env = process.env, io = defaultIO) { const
|
|
62
|
+
export async function configure(client, bridge, env = process.env, io = defaultIO) { const profile = clientProfiles[client]; if (profile.mode !== "auto" || !profile.adapter)
|
|
63
|
+
return { path: configPath(client, env), changed: false }; const path = configPath(client, env); const raw = await readOptional(path); let next; try {
|
|
62
64
|
const text = raw || "";
|
|
63
65
|
validateText(client, text);
|
|
64
|
-
next =
|
|
66
|
+
next = profile.adapter === "json" ? jsonUpdate(raw, client, bridge) : profile.adapter === "yaml" ? hermesUpdate(text, bridge, client) : managedText(text.includes(start) ? text : removeCodexEntry(text), block(client, bridge));
|
|
65
67
|
validateText(client, next);
|
|
66
68
|
}
|
|
67
69
|
catch {
|
|
@@ -76,10 +78,11 @@ catch (e) {
|
|
|
76
78
|
} return backupPath ? { path, backup: backupPath, changed: true } : { path, changed: true }; }
|
|
77
79
|
export async function rollback(result) { if (result.changed)
|
|
78
80
|
await restore(result.path, result.backup); }
|
|
79
|
-
export async function unregister(client, env = process.env) { const
|
|
81
|
+
export async function unregister(client, env = process.env) { const profile = clientProfiles[client]; if (profile.mode !== "auto" || !profile.adapter)
|
|
82
|
+
return false; const path = configPath(client, env); const raw = await readOptional(path); if (!raw)
|
|
80
83
|
return false; let next; try {
|
|
81
84
|
validateText(client, raw);
|
|
82
|
-
next =
|
|
85
|
+
next = profile.adapter === "json" ? jsonUpdate(raw, client, "", true) : profile.adapter === "codex" ? removeCodexEntry(removeManaged(raw)) : removeHermesEntry(removeManaged(raw));
|
|
83
86
|
validateText(client, next);
|
|
84
87
|
}
|
|
85
88
|
catch {
|
|
@@ -92,8 +95,9 @@ catch (e) {
|
|
|
92
95
|
await restore(path, backupPath);
|
|
93
96
|
throw e;
|
|
94
97
|
} return true; }
|
|
95
|
-
export async function isConfigured(client, env = process.env) { const
|
|
96
|
-
return false;
|
|
98
|
+
export async function isConfigured(client, env = process.env) { const profile = clientProfiles[client]; if (profile.mode !== "auto" || !profile.adapter)
|
|
99
|
+
return false; const raw = await readOptional(configPath(client, env)); if (!raw)
|
|
100
|
+
return false; if (profile.adapter === "json") {
|
|
97
101
|
try {
|
|
98
102
|
const o = JSON.parse(raw);
|
|
99
103
|
return !!o.mcpServers?.sandbase;
|
package/dist/cli.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { connect, doctor, unregister } from "./commands.js";
|
|
3
|
-
import {
|
|
3
|
+
import { detectClient } from "./adapters/index.js";
|
|
4
|
+
import { clientList, clientProfiles } from "./clients.js";
|
|
5
|
+
import { clients, isClient } from "./types.js";
|
|
4
6
|
if (Number(process.versions.node.split(".")[0]) < 20) {
|
|
5
7
|
console.error("SandBase CLI requires Node.js 20 or newer. Upgrade Node.js and retry.");
|
|
6
8
|
process.exit(1);
|
|
@@ -8,8 +10,15 @@ if (Number(process.versions.node.split(".")[0]) < 20) {
|
|
|
8
10
|
const [command, ...args] = process.argv.slice(2);
|
|
9
11
|
const at = args.indexOf("--client");
|
|
10
12
|
const value = at >= 0 ? args[at + 1] : undefined;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
function autoClient() {
|
|
14
|
+
return clients.find(client => {
|
|
15
|
+
const profile = clientProfiles[client];
|
|
16
|
+
return profile.mode === "auto" && !!profile.executable && detectClient(client).installed;
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
const resolved = value === "auto" || (!value && command === "connect") ? autoClient() : value && isClient(value) ? value : undefined;
|
|
20
|
+
if (!command || !resolved || (command !== "connect" && !value) || !["connect", "doctor", "unregister"].includes(command)) {
|
|
21
|
+
console.error(`Usage: sandbase <connect|doctor|unregister> --client <${clientList()}|auto>`);
|
|
13
22
|
process.exit(2);
|
|
14
23
|
}
|
|
15
24
|
const controller = new AbortController();
|
|
@@ -17,13 +26,13 @@ for (const signal of ["SIGINT", "SIGTERM"])
|
|
|
17
26
|
process.once(signal, () => controller.abort());
|
|
18
27
|
try {
|
|
19
28
|
if (command === "connect")
|
|
20
|
-
await connect(
|
|
29
|
+
await connect(resolved, { signal: controller.signal });
|
|
21
30
|
else if (command === "doctor") {
|
|
22
|
-
if (!(await doctor(
|
|
31
|
+
if (!(await doctor(resolved)))
|
|
23
32
|
process.exitCode = 1;
|
|
24
33
|
}
|
|
25
34
|
else
|
|
26
|
-
await unregister(
|
|
35
|
+
await unregister(resolved);
|
|
27
36
|
}
|
|
28
37
|
catch (e) {
|
|
29
38
|
const message = e instanceof Error ? e.message : "Unknown failure";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Client } from "./types.js";
|
|
2
|
+
export type InstallMode = "auto" | "manual" | "skill";
|
|
3
|
+
export interface ClientProfile {
|
|
4
|
+
id: Client;
|
|
5
|
+
label: string;
|
|
6
|
+
mode: InstallMode;
|
|
7
|
+
executable?: string;
|
|
8
|
+
adapter?: "codex" | "json" | "yaml";
|
|
9
|
+
}
|
|
10
|
+
export declare const clientProfiles: Record<Client, ClientProfile>;
|
|
11
|
+
export declare function clientList(): string;
|
package/dist/clients.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
export const clientProfiles = {
|
|
2
|
+
codex: { id: "codex", label: "Codex", mode: "auto", executable: "codex", adapter: "codex" },
|
|
3
|
+
"claude-code": { id: "claude-code", label: "Claude Code", mode: "auto", executable: "claude", adapter: "json" },
|
|
4
|
+
cursor: { id: "cursor", label: "Cursor", mode: "auto", executable: "cursor", adapter: "json" },
|
|
5
|
+
windsurf: { id: "windsurf", label: "Windsurf", mode: "manual" },
|
|
6
|
+
"gemini-cli": { id: "gemini-cli", label: "Gemini CLI", mode: "auto", executable: "gemini", adapter: "json" },
|
|
7
|
+
opencode: { id: "opencode", label: "OpenCode", mode: "manual", executable: "opencode" },
|
|
8
|
+
chatgpt: { id: "chatgpt", label: "ChatGPT", mode: "manual" },
|
|
9
|
+
hermes: { id: "hermes", label: "Hermes", mode: "auto", executable: "hermes", adapter: "yaml" },
|
|
10
|
+
openclaw: { id: "openclaw", label: "OpenClaw", mode: "skill" },
|
|
11
|
+
antigravity: { id: "antigravity", label: "Antigravity", mode: "skill" },
|
|
12
|
+
"claude-desktop": { id: "claude-desktop", label: "Claude Desktop", mode: "auto", adapter: "json" },
|
|
13
|
+
"cursor-cli": { id: "cursor-cli", label: "Cursor CLI", mode: "auto", executable: "cursor-agent", adapter: "json" },
|
|
14
|
+
warp: { id: "warp", label: "Warp", mode: "manual" },
|
|
15
|
+
trae: { id: "trae", label: "Trae", mode: "skill" },
|
|
16
|
+
"kimi-cli": { id: "kimi-cli", label: "Kimi CLI", mode: "manual", executable: "kimi" },
|
|
17
|
+
"qwen-code": { id: "qwen-code", label: "Qwen Code", mode: "auto", executable: "qwen", adapter: "json" },
|
|
18
|
+
"kiro-cli": { id: "kiro-cli", label: "Kiro CLI", mode: "manual", executable: "kiro" },
|
|
19
|
+
amp: { id: "amp", label: "Amp", mode: "manual", executable: "amp" },
|
|
20
|
+
crush: { id: "crush", label: "Crush", mode: "manual", executable: "crush" },
|
|
21
|
+
"iflow-cli": { id: "iflow-cli", label: "iFlow CLI", mode: "manual", executable: "iflow" },
|
|
22
|
+
qoder: { id: "qoder", label: "Qoder", mode: "skill" },
|
|
23
|
+
workbuddy: { id: "workbuddy", label: "WorkBuddy", mode: "skill" },
|
|
24
|
+
cowork: { id: "cowork", label: "Cowork", mode: "manual" },
|
|
25
|
+
pi: { id: "pi", label: "Pi", mode: "skill" },
|
|
26
|
+
};
|
|
27
|
+
export function clientList() {
|
|
28
|
+
return Object.keys(clientProfiles).join("|");
|
|
29
|
+
}
|
package/dist/commands.js
CHANGED
|
@@ -2,6 +2,7 @@ import { spawn } from "node:child_process";
|
|
|
2
2
|
import { platform } from "node:os";
|
|
3
3
|
import { AuthorizationApi } from "./auth/api.js";
|
|
4
4
|
import { authorize } from "./auth/flow.js";
|
|
5
|
+
import { clientProfiles } from "./clients.js";
|
|
5
6
|
import { FileCredentialStore } from "./credentials/store.js";
|
|
6
7
|
import { configure, detectClient, installBridge, isConfigured, rollback, rollbackBridge, unregister as removeAdapter } from "./adapters/index.js";
|
|
7
8
|
const sleep = (ms, signal) => new Promise((resolve, reject) => { const t = setTimeout(resolve, ms); signal?.addEventListener("abort", () => { clearTimeout(t); reject(new Error("Authorization cancelled")); }, { once: true }); });
|
|
@@ -15,13 +16,30 @@ async function compensate(api, authorizationId, token) { for (const delay of [0,
|
|
|
15
16
|
catch { /* bounded retry inside the five-minute capability window */ }
|
|
16
17
|
} return false; }
|
|
17
18
|
export async function openBrowser(url) { const cmd = platform() === "darwin" ? "open" : platform() === "win32" ? "cmd" : "xdg-open"; const args = platform() === "win32" ? ["/c", "start", "", url] : [url]; const child = spawn(cmd, args, { detached: true, stdio: "ignore" }); child.unref(); }
|
|
19
|
+
function mcpServerSnippet(client, bridgePath) {
|
|
20
|
+
return JSON.stringify({ mcpServers: { sandbase: { command: "node", args: [bridgePath, "--client", client] } } }, null, 2);
|
|
21
|
+
}
|
|
22
|
+
function nextStepPrompts(label) {
|
|
23
|
+
return [`2. In ${label}, try asking:`, ` - List the available SandBase MCP tools.`, ` - Use SandBase to fetch Elon Musk's latest 10 posts on Twitter.`];
|
|
24
|
+
}
|
|
25
|
+
function successMessage(client, record, bridgePath, configuredPath) {
|
|
26
|
+
const profile = clientProfiles[client];
|
|
27
|
+
const label = profile.label;
|
|
28
|
+
const common = [``, `SandBase MCP is connected.`, ``, `Client: ${label} (${client})`, `MCP URL: ${record.mcpUrl}`, `Credential: ${record.keyPrefix}... (${record.scope.join(",")})`, `Bridge: ${bridgePath}`];
|
|
29
|
+
if (profile.mode === "auto")
|
|
30
|
+
return [...common, `Config: ${configuredPath || "updated"}`, ``, `Next steps:`, `1. Restart or reload ${label} so it picks up the new MCP configuration.`, ...nextStepPrompts(label), ``, `Manage access: revoke the "CLI Login" key in SandBase Dashboard when you no longer need it.`].join("\n");
|
|
31
|
+
if (profile.mode === "skill")
|
|
32
|
+
return [...common, ``, `Skill/prompt setup required.`, `Copy the following instruction into ${label}:`, ``, `Install the SandBase MCP bridge for ${label}. Use this local MCP server configuration and keep the scope limited to SandBase:`, mcpServerSnippet(client, bridgePath), `After setup, reload ${label} if needed.`, ``, `Next steps:`, `1. Finish the skill/prompt setup in ${label}.`, ...nextStepPrompts(label), ``, `Manage access: revoke the "CLI Login" key in SandBase Dashboard when you no longer need it.`].join("\n");
|
|
33
|
+
return [...common, ``, `Manual MCP configuration required.`, `Add this MCP server configuration to ${label}:`, ``, mcpServerSnippet(client, bridgePath), ``, `Next steps:`, `1. Save the configuration and restart or reload ${label}.`, ...nextStepPrompts(label), ``, `Manage access: revoke the "CLI Login" key in SandBase Dashboard when you no longer need it.`].join("\n");
|
|
34
|
+
}
|
|
18
35
|
export async function connect(client, deps = {}) {
|
|
19
36
|
const api = deps.api || new AuthorizationApi((process.env.SANDBASE_API_URL || "https://sandbase.ai").replace(/\/$/, ""));
|
|
20
37
|
const store = deps.store || new FileCredentialStore();
|
|
21
38
|
const log = deps.log || console.log;
|
|
39
|
+
const profile = clientProfiles[client];
|
|
22
40
|
const detected = (deps.detect || detectClient)(client);
|
|
23
41
|
if (!detected.installed)
|
|
24
|
-
throw new Error(`${
|
|
42
|
+
throw new Error(`${profile.label} is not installed or is incompatible (${detected.detail}). Install a supported version, then retry.`);
|
|
25
43
|
const previous = await store.get(client);
|
|
26
44
|
const { authorizationId, exchange } = await authorize(api, client, { open: deps.open || openBrowser, sleep, log, ...(deps.signal ? { signal: deps.signal } : {}) });
|
|
27
45
|
let configured;
|
|
@@ -31,9 +49,9 @@ export async function connect(client, deps = {}) {
|
|
|
31
49
|
await store.save(record);
|
|
32
50
|
bridgeResult = await installBridge();
|
|
33
51
|
configured = await configure(client, bridgeResult.path);
|
|
34
|
-
if (!(await isConfigured(client)))
|
|
52
|
+
if (profile.mode === "auto" && !(await isConfigured(client)))
|
|
35
53
|
throw new Error("Client configuration verification failed");
|
|
36
|
-
log(
|
|
54
|
+
log(successMessage(client, record, bridgeResult.path, configured.path));
|
|
37
55
|
exchange.cleanup_token = "";
|
|
38
56
|
}
|
|
39
57
|
catch (e) {
|
|
@@ -51,5 +69,5 @@ export async function connect(client, deps = {}) {
|
|
|
51
69
|
throw e;
|
|
52
70
|
}
|
|
53
71
|
}
|
|
54
|
-
export async function doctor(client, store = new FileCredentialStore()) { const credential = await store.get(client); const configured = await isConfigured(client); const detected = detectClient(client); console.log(`${client}: installed=${detected.installed ? "yes" : "no"}, config=${configured ? "ok" : "missing"}, credential=${credential ? credential.keyPrefix + "…" : "missing"}, url=${credential?.mcpUrl || "unknown"}, scope=${credential?.scope.join(",") || "unknown"}`); return detected.installed && !!credential && configured; }
|
|
55
|
-
export async function unregister(client, store = new FileCredentialStore()) { await removeAdapter(client); await store.remove(client); console.log(`Removed local SandBase registration for ${client}. Revoke the server credential in SandBase Dashboard if it is no longer needed.`); }
|
|
72
|
+
export async function doctor(client, store = new FileCredentialStore()) { const credential = await store.get(client); const profile = clientProfiles[client]; const configured = profile.mode === "auto" ? await isConfigured(client) : !!credential; const detected = detectClient(client); console.log(`${client}: mode=${profile.mode}, installed=${detected.installed ? "yes" : "no"}, config=${configured ? profile.mode === "auto" ? "ok" : "manual" : "missing"}, credential=${credential ? credential.keyPrefix + "…" : "missing"}, url=${credential?.mcpUrl || "unknown"}, scope=${credential?.scope.join(",") || "unknown"}`); return detected.installed && !!credential && configured; }
|
|
73
|
+
export async function unregister(client, store = new FileCredentialStore()) { const removed = await removeAdapter(client); await store.remove(client); console.log(`Removed local SandBase registration for ${client}.${removed ? "" : " No managed client configuration was changed."} Revoke the server credential in SandBase Dashboard if it is no longer needed.`); }
|
package/dist/paths.js
CHANGED
|
@@ -9,5 +9,15 @@ export function configPath(client, env = process.env) {
|
|
|
9
9
|
return join(home, ".claude.json");
|
|
10
10
|
if (client === "cursor")
|
|
11
11
|
return join(home, ".cursor", "mcp.json");
|
|
12
|
-
|
|
12
|
+
if (client === "hermes")
|
|
13
|
+
return env.HERMES_HOME ? join(env.HERMES_HOME, "config.yaml") : join(home, ".hermes", "config.yaml");
|
|
14
|
+
if (client === "claude-desktop")
|
|
15
|
+
return env.CLAUDE_DESKTOP_CONFIG || join(home, "Library", "Application Support", "Claude", "claude_desktop_config.json");
|
|
16
|
+
if (client === "gemini-cli")
|
|
17
|
+
return join(home, ".gemini", "settings.json");
|
|
18
|
+
if (client === "qwen-code")
|
|
19
|
+
return join(home, ".qwen", "settings.json");
|
|
20
|
+
if (client === "cursor-cli")
|
|
21
|
+
return join(home, ".cursor", "mcp.json");
|
|
22
|
+
return join(sandbaseHome(env), "manual", `${client}.json`);
|
|
13
23
|
}
|
package/dist/types.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const clients: readonly ["codex", "claude-code", "cursor", "hermes"];
|
|
1
|
+
export declare const clients: readonly ["codex", "claude-code", "cursor", "windsurf", "gemini-cli", "opencode", "chatgpt", "hermes", "openclaw", "antigravity", "claude-desktop", "cursor-cli", "warp", "trae", "kimi-cli", "qwen-code", "kiro-cli", "amp", "crush", "iflow-cli", "qoder", "workbuddy", "cowork", "pi"];
|
|
2
2
|
export type Client = typeof clients[number];
|
|
3
3
|
export declare function isClient(value: string): value is Client;
|
|
4
4
|
export interface CredentialRecord {
|
package/dist/types.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const clients = ["codex", "claude-code", "cursor", "hermes"];
|
|
1
|
+
export const clients = ["codex", "claude-code", "cursor", "windsurf", "gemini-cli", "opencode", "chatgpt", "hermes", "openclaw", "antigravity", "claude-desktop", "cursor-cli", "warp", "trae", "kimi-cli", "qwen-code", "kiro-cli", "amp", "crush", "iflow-cli", "qoder", "workbuddy", "cowork", "pi"];
|
|
2
2
|
export function isClient(value) { return clients.includes(value); }
|