@vfarcic/dot-ai 0.112.0 → 0.114.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.
- package/dist/core/ai-provider-factory.d.ts +0 -15
- package/dist/core/ai-provider-factory.d.ts.map +1 -1
- package/dist/core/ai-provider-factory.js +12 -33
- package/dist/core/ai-provider.interface.d.ts +12 -0
- package/dist/core/ai-provider.interface.d.ts.map +1 -1
- package/dist/core/embedding-service.d.ts +35 -2
- package/dist/core/embedding-service.d.ts.map +1 -1
- package/dist/core/embedding-service.js +228 -15
- package/dist/core/model-config.d.ts +6 -0
- package/dist/core/model-config.d.ts.map +1 -1
- package/dist/core/model-config.js +7 -1
- package/dist/core/platform-utils.d.ts +10 -0
- package/dist/core/platform-utils.d.ts.map +1 -1
- package/dist/core/platform-utils.js +56 -0
- package/dist/core/providers/anthropic-provider.d.ts +2 -0
- package/dist/core/providers/anthropic-provider.d.ts.map +1 -1
- package/dist/core/providers/anthropic-provider.js +10 -0
- package/dist/core/providers/provider-debug-utils.d.ts +5 -1
- package/dist/core/providers/provider-debug-utils.d.ts.map +1 -1
- package/dist/core/providers/provider-debug-utils.js +13 -24
- package/dist/core/providers/vercel-provider.d.ts +2 -0
- package/dist/core/providers/vercel-provider.d.ts.map +1 -1
- package/dist/core/providers/vercel-provider.js +154 -63
- package/dist/core/schema.d.ts +0 -96
- package/dist/core/schema.d.ts.map +1 -1
- package/dist/core/schema.js +4 -112
- package/dist/core/unified-creation-session.d.ts.map +1 -1
- package/dist/core/unified-creation-session.js +3 -1
- package/dist/evaluation/eval-runner.js +185 -41
- package/dist/evaluation/evaluators/base-comparative.d.ts +4 -1
- package/dist/evaluation/evaluators/base-comparative.d.ts.map +1 -1
- package/dist/evaluation/evaluators/base-comparative.js +36 -1
- package/dist/evaluation/platform-synthesizer.d.ts +54 -0
- package/dist/evaluation/platform-synthesizer.d.ts.map +1 -0
- package/dist/evaluation/platform-synthesizer.js +368 -0
- package/dist/evaluation/run-platform-synthesis.d.ts +9 -0
- package/dist/evaluation/run-platform-synthesis.d.ts.map +1 -0
- package/dist/evaluation/run-platform-synthesis.js +45 -0
- package/dist/interfaces/mcp.d.ts.map +1 -1
- package/dist/interfaces/mcp.js +23 -29
- package/dist/tools/generate-manifests.d.ts.map +1 -1
- package/dist/tools/generate-manifests.js +3 -8
- package/dist/tools/recommend.d.ts.map +1 -1
- package/dist/tools/recommend.js +3 -16
- package/dist/tools/remediate.d.ts.map +1 -1
- package/dist/tools/remediate.js +10 -2
- package/dist/tools/version.d.ts +1 -0
- package/dist/tools/version.d.ts.map +1 -1
- package/dist/tools/version.js +11 -4
- package/package.json +15 -1
package/dist/tools/version.js
CHANGED
|
@@ -188,9 +188,11 @@ async function getCapabilityStatus() {
|
|
|
188
188
|
collectionAccessible = true;
|
|
189
189
|
// Test MCP-used operations: verify vector operations work
|
|
190
190
|
const embeddingService = new index_1.EmbeddingService();
|
|
191
|
+
const embeddingStatus = embeddingService.getStatus();
|
|
192
|
+
const expectedDimensions = embeddingStatus.dimensions || 1536; // Use provider's dimension or default
|
|
191
193
|
const testEmbedding = await embeddingService.generateEmbedding('diagnostic test query');
|
|
192
|
-
if (!testEmbedding || testEmbedding.length !==
|
|
193
|
-
throw new Error(`Embedding dimension mismatch: expected
|
|
194
|
+
if (!testEmbedding || testEmbedding.length !== expectedDimensions) {
|
|
195
|
+
throw new Error(`Embedding dimension mismatch: expected ${expectedDimensions}, got ${testEmbedding?.length || 'null'} dimensions`);
|
|
194
196
|
}
|
|
195
197
|
// Validate embedding values are numbers (not NaN, Infinity, etc.)
|
|
196
198
|
if (testEmbedding.some(val => !Number.isFinite(val))) {
|
|
@@ -447,24 +449,29 @@ async function getAIProviderStatus(interaction_id) {
|
|
|
447
449
|
return {
|
|
448
450
|
connected: true,
|
|
449
451
|
keyConfigured: true,
|
|
450
|
-
providerType: aiProvider.getProviderType()
|
|
452
|
+
providerType: aiProvider.getProviderType(),
|
|
453
|
+
modelName: aiProvider.getModelName()
|
|
451
454
|
};
|
|
452
455
|
}
|
|
453
456
|
catch (error) {
|
|
454
|
-
// Try to get provider type even on error
|
|
457
|
+
// Try to get provider type and model name even on error
|
|
455
458
|
let providerType;
|
|
459
|
+
let modelName;
|
|
456
460
|
try {
|
|
457
461
|
const { createAIProvider } = await Promise.resolve().then(() => __importStar(require('../core/ai-provider-factory')));
|
|
458
462
|
const aiProvider = createAIProvider();
|
|
459
463
|
providerType = aiProvider.getProviderType();
|
|
464
|
+
modelName = aiProvider.getModelName();
|
|
460
465
|
}
|
|
461
466
|
catch {
|
|
462
467
|
providerType = undefined;
|
|
468
|
+
modelName = undefined;
|
|
463
469
|
}
|
|
464
470
|
return {
|
|
465
471
|
connected: false,
|
|
466
472
|
keyConfigured: false,
|
|
467
473
|
providerType,
|
|
474
|
+
modelName,
|
|
468
475
|
error: error instanceof Error ? error.message : String(error)
|
|
469
476
|
};
|
|
470
477
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vfarcic/dot-ai",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.114.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",
|
|
@@ -19,9 +19,17 @@
|
|
|
19
19
|
"test:integration": "./tests/integration/infrastructure/run-integration-tests.sh",
|
|
20
20
|
"test:integration:watch": "vitest --config=vitest.integration.config.ts --test-timeout=1200000",
|
|
21
21
|
"test:integration:sonnet": "AI_PROVIDER=anthropic AI_PROVIDER_SDK=vercel DEBUG_DOT_AI=true ./tests/integration/infrastructure/run-integration-tests.sh",
|
|
22
|
+
"test:integration:haiku": "AI_PROVIDER=anthropic_haiku AI_PROVIDER_SDK=vercel DEBUG_DOT_AI=true ./tests/integration/infrastructure/run-integration-tests.sh",
|
|
22
23
|
"test:integration:gpt": "AI_PROVIDER=openai AI_PROVIDER_SDK=vercel DEBUG_DOT_AI=true ./tests/integration/infrastructure/run-integration-tests.sh",
|
|
23
24
|
"test:integration:gpt-pro": "AI_PROVIDER=openai_pro AI_PROVIDER_SDK=vercel DEBUG_DOT_AI=true ./tests/integration/infrastructure/run-integration-tests.sh",
|
|
25
|
+
"test:integration:gemini": "AI_PROVIDER=google AI_PROVIDER_SDK=vercel DEBUG_DOT_AI=true ./tests/integration/infrastructure/run-integration-tests.sh",
|
|
26
|
+
"test:integration:gemini-flash": "AI_PROVIDER=google_fast AI_PROVIDER_SDK=vercel DEBUG_DOT_AI=true ./tests/integration/infrastructure/run-integration-tests.sh",
|
|
27
|
+
"test:integration:grok": "AI_PROVIDER=xai AI_PROVIDER_SDK=vercel DEBUG_DOT_AI=true ./tests/integration/infrastructure/run-integration-tests.sh",
|
|
28
|
+
"test:integration:grok-fast": "AI_PROVIDER=xai_fast AI_PROVIDER_SDK=vercel DEBUG_DOT_AI=true ./tests/integration/infrastructure/run-integration-tests.sh",
|
|
29
|
+
"test:integration:mistral": "AI_PROVIDER=mistral AI_PROVIDER_SDK=vercel DEBUG_DOT_AI=true ./tests/integration/infrastructure/run-integration-tests.sh",
|
|
30
|
+
"test:integration:deepseek": "AI_PROVIDER=deepseek AI_PROVIDER_SDK=vercel DEBUG_DOT_AI=true ./tests/integration/infrastructure/run-integration-tests.sh",
|
|
24
31
|
"eval:comparative": "DEBUG_DOT_AI=true npx tsx src/evaluation/eval-runner.ts",
|
|
32
|
+
"eval:platform-synthesis": "DEBUG_DOT_AI=true npx tsx src/evaluation/run-platform-synthesis.ts",
|
|
25
33
|
"clean": "rm -rf dist",
|
|
26
34
|
"prebuild": "npm run clean && npm run lint",
|
|
27
35
|
"build": "tsc --sourceMap false",
|
|
@@ -86,8 +94,11 @@
|
|
|
86
94
|
},
|
|
87
95
|
"dependencies": {
|
|
88
96
|
"@ai-sdk/anthropic": "^2.0.23",
|
|
97
|
+
"@ai-sdk/deepseek": "^1.0.23",
|
|
89
98
|
"@ai-sdk/google": "^2.0.17",
|
|
99
|
+
"@ai-sdk/mistral": "^2.0.19",
|
|
90
100
|
"@ai-sdk/openai": "^2.0.42",
|
|
101
|
+
"@ai-sdk/xai": "^2.0.26",
|
|
91
102
|
"@anthropic-ai/sdk": "^0.65.0",
|
|
92
103
|
"@kubernetes/client-node": "^1.3.0",
|
|
93
104
|
"@modelcontextprotocol/sdk": "^1.13.2",
|
|
@@ -97,5 +108,8 @@
|
|
|
97
108
|
"openai": "^5.11.0",
|
|
98
109
|
"yaml": "^2.8.0",
|
|
99
110
|
"zod-to-json-schema": "^3.24.6"
|
|
111
|
+
},
|
|
112
|
+
"optionalDependencies": {
|
|
113
|
+
"@rollup/rollup-linux-x64-gnu": "4.52.3"
|
|
100
114
|
}
|
|
101
115
|
}
|