@vfarcic/dot-ai 0.130.0 → 0.131.0
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.
|
@@ -8,6 +8,7 @@ import { AIProvider, AIResponse, AIProviderConfig, ToolLoopConfig, AgenticResult
|
|
|
8
8
|
export declare class AnthropicProvider implements AIProvider {
|
|
9
9
|
private client;
|
|
10
10
|
private apiKey;
|
|
11
|
+
private providerType;
|
|
11
12
|
private model;
|
|
12
13
|
private debugMode;
|
|
13
14
|
constructor(config: AIProviderConfig);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"anthropic-provider.d.ts","sourceRoot":"","sources":["../../../src/core/providers/anthropic-provider.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,aAAa,EACd,MAAM,0BAA0B,CAAC;AAYlC,qBAAa,iBAAkB,YAAW,UAAU;IAClD,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,SAAS,CAAU;gBAEf,MAAM,EAAE,gBAAgB;
|
|
1
|
+
{"version":3,"file":"anthropic-provider.d.ts","sourceRoot":"","sources":["../../../src/core/providers/anthropic-provider.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EACL,UAAU,EACV,UAAU,EACV,gBAAgB,EAChB,cAAc,EACd,aAAa,EACd,MAAM,0BAA0B,CAAC;AAYlC,qBAAa,iBAAkB,YAAW,UAAU;IAClD,OAAO,CAAC,MAAM,CAAY;IAC1B,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,YAAY,CAAS;IAC7B,OAAO,CAAC,KAAK,CAAS;IACtB,OAAO,CAAC,SAAS,CAAU;gBAEf,MAAM,EAAE,gBAAgB;IAgBpC,OAAO,CAAC,cAAc;IAStB,eAAe,IAAI,MAAM;IAIzB,eAAe,IAAI,MAAM;IAIzB,YAAY,IAAI,MAAM;IAItB,cAAc,IAAI,MAAM;IAIxB,aAAa,IAAI,OAAO;IAIxB;;OAEG;IACH,OAAO,CAAC,iBAAiB;IAyBnB,WAAW,CACf,OAAO,EAAE,MAAM,EACf,SAAS,GAAE,MAAkB,EAC7B,iBAAiB,CAAC,EAAE;QAClB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,GACA,OAAO,CAAC,UAAU,CAAC;IA4FtB;;;;;;;;;;;;;;;;;;;OAmBG;IACG,QAAQ,CAAC,MAAM,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CA4V/D"}
|
|
@@ -18,10 +18,12 @@ const api_1 = require("@opentelemetry/api");
|
|
|
18
18
|
class AnthropicProvider {
|
|
19
19
|
client;
|
|
20
20
|
apiKey;
|
|
21
|
+
providerType;
|
|
21
22
|
model;
|
|
22
23
|
debugMode;
|
|
23
24
|
constructor(config) {
|
|
24
25
|
this.apiKey = config.apiKey;
|
|
26
|
+
this.providerType = config.provider; // Store 'anthropic' or 'anthropic_haiku'
|
|
25
27
|
this.model = config.model || this.getDefaultModel();
|
|
26
28
|
this.debugMode = config.debugMode ?? process.env.DEBUG_DOT_AI === 'true';
|
|
27
29
|
this.validateApiKey();
|
|
@@ -45,7 +47,7 @@ class AnthropicProvider {
|
|
|
45
47
|
return 'anthropic';
|
|
46
48
|
}
|
|
47
49
|
getDefaultModel() {
|
|
48
|
-
return (0, model_config_1.getCurrentModel)(
|
|
50
|
+
return (0, model_config_1.getCurrentModel)(this.providerType);
|
|
49
51
|
}
|
|
50
52
|
getModelName() {
|
|
51
53
|
return this.model;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vfarcic/dot-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.131.0",
|
|
4
4
|
"description": "AI-powered development productivity platform that enhances software development workflows through intelligent automation and AI-driven assistance",
|
|
5
5
|
"mcpName": "io.github.vfarcic/dot-ai",
|
|
6
6
|
"main": "dist/index.js",
|