@nghyane/arcane 0.1.24 → 0.1.25
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/CHANGELOG.md +6 -0
- package/package.json +4 -4
- package/src/config/model-registry.ts +4 -0
- package/src/sdk.ts +1 -1
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "@nghyane/arcane",
|
|
4
|
-
"version": "0.1.
|
|
4
|
+
"version": "0.1.25",
|
|
5
5
|
"description": "Coding agent CLI with read, bash, edit, write tools and session management",
|
|
6
6
|
"homepage": "https://github.com/nghyane/arcane",
|
|
7
7
|
"author": "Can Bölük",
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@mozilla/readability": "0.6.0",
|
|
47
|
-
"@nghyane/arcane-stats": "^0.1.
|
|
48
|
-
"@nghyane/arcane-agent": "^0.1.
|
|
49
|
-
"@nghyane/arcane-ai": "^0.1.
|
|
47
|
+
"@nghyane/arcane-stats": "^0.1.14",
|
|
48
|
+
"@nghyane/arcane-agent": "^0.1.18",
|
|
49
|
+
"@nghyane/arcane-ai": "^0.1.14",
|
|
50
50
|
"@nghyane/arcane-natives": "^0.1.11",
|
|
51
51
|
"@nghyane/arcane-tui": "^0.1.15",
|
|
52
52
|
"@nghyane/arcane-utils": "^0.1.8",
|
|
@@ -979,6 +979,10 @@ export class ModelRegistry {
|
|
|
979
979
|
return this.authStorage.getApiKey(provider, sessionId, { baseUrl });
|
|
980
980
|
}
|
|
981
981
|
|
|
982
|
+
isOAuthProvider(provider: string): boolean {
|
|
983
|
+
return this.authStorage.hasOAuth(provider);
|
|
984
|
+
}
|
|
985
|
+
|
|
982
986
|
async #peekApiKeyForProvider(provider: string): Promise<string | undefined> {
|
|
983
987
|
if (this.#keylessProviders.has(provider)) {
|
|
984
988
|
return kNoAuth;
|
package/src/sdk.ts
CHANGED
|
@@ -1164,7 +1164,7 @@ export async function createAgentSession(options: CreateAgentSessionOptions = {}
|
|
|
1164
1164
|
if (!key) {
|
|
1165
1165
|
throw new Error(`No API key found for provider "${provider}"`);
|
|
1166
1166
|
}
|
|
1167
|
-
return key;
|
|
1167
|
+
return { key, isOAuth: modelRegistry.isOAuthProvider(provider) };
|
|
1168
1168
|
},
|
|
1169
1169
|
cursorExecHandlers,
|
|
1170
1170
|
transformToolCallArguments: obfuscator?.hasSecrets() ? args => obfuscator!.deobfuscateObject(args) : undefined,
|