summaryrefslogtreecommitdiffhomepage
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/import-credentials.ts14
-rw-r--r--bin/seed-opencode-keys.ts2
2 files changed, 12 insertions, 4 deletions
diff --git a/bin/import-credentials.ts b/bin/import-credentials.ts
index f99f20a..a4ea499 100755
--- a/bin/import-credentials.ts
+++ b/bin/import-credentials.ts
@@ -4,11 +4,19 @@
* Reads from ~/.claude/.credentials-{1,2}.json and stores them
* for the configured keys (claude-pro, claude-max).
*/
-import { importCredentialsFromFile, getDatabasePath } from "../packages/core/src/index.js";
+import { getDatabasePath, importCredentialsFromFile } from "../packages/core/src/index.js";
const imports = [
- { keyId: "claude-pro", provider: "anthropic", file: `${process.env.HOME}/.claude/.credentials-1.json` },
- { keyId: "claude-max", provider: "anthropic", file: `${process.env.HOME}/.claude/.credentials-2.json` },
+ {
+ keyId: "claude-pro",
+ provider: "anthropic",
+ file: `${process.env.HOME}/.claude/.credentials-1.json`,
+ },
+ {
+ keyId: "claude-max",
+ provider: "anthropic",
+ file: `${process.env.HOME}/.claude/.credentials-2.json`,
+ },
];
console.log(`Database: ${getDatabasePath()}\n`);
diff --git a/bin/seed-opencode-keys.ts b/bin/seed-opencode-keys.ts
index c461592..c481b8d 100644
--- a/bin/seed-opencode-keys.ts
+++ b/bin/seed-opencode-keys.ts
@@ -2,7 +2,7 @@
/**
* Seed API keys from environment variables into the SQLite database.
*/
-import { setApiKey, getDatabasePath } from "../packages/core/src/index.js";
+import { getDatabasePath, setApiKey } from "../packages/core/src/index.js";
console.log(`Database: ${getDatabasePath()}\n`);