@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.
Files changed (50) hide show
  1. package/dist/core/ai-provider-factory.d.ts +0 -15
  2. package/dist/core/ai-provider-factory.d.ts.map +1 -1
  3. package/dist/core/ai-provider-factory.js +12 -33
  4. package/dist/core/ai-provider.interface.d.ts +12 -0
  5. package/dist/core/ai-provider.interface.d.ts.map +1 -1
  6. package/dist/core/embedding-service.d.ts +35 -2
  7. package/dist/core/embedding-service.d.ts.map +1 -1
  8. package/dist/core/embedding-service.js +228 -15
  9. package/dist/core/model-config.d.ts +6 -0
  10. package/dist/core/model-config.d.ts.map +1 -1
  11. package/dist/core/model-config.js +7 -1
  12. package/dist/core/platform-utils.d.ts +10 -0
  13. package/dist/core/platform-utils.d.ts.map +1 -1
  14. package/dist/core/platform-utils.js +56 -0
  15. package/dist/core/providers/anthropic-provider.d.ts +2 -0
  16. package/dist/core/providers/anthropic-provider.d.ts.map +1 -1
  17. package/dist/core/providers/anthropic-provider.js +10 -0
  18. package/dist/core/providers/provider-debug-utils.d.ts +5 -1
  19. package/dist/core/providers/provider-debug-utils.d.ts.map +1 -1
  20. package/dist/core/providers/provider-debug-utils.js +13 -24
  21. package/dist/core/providers/vercel-provider.d.ts +2 -0
  22. package/dist/core/providers/vercel-provider.d.ts.map +1 -1
  23. package/dist/core/providers/vercel-provider.js +154 -63
  24. package/dist/core/schema.d.ts +0 -96
  25. package/dist/core/schema.d.ts.map +1 -1
  26. package/dist/core/schema.js +4 -112
  27. package/dist/core/unified-creation-session.d.ts.map +1 -1
  28. package/dist/core/unified-creation-session.js +3 -1
  29. package/dist/evaluation/eval-runner.js +185 -41
  30. package/dist/evaluation/evaluators/base-comparative.d.ts +4 -1
  31. package/dist/evaluation/evaluators/base-comparative.d.ts.map +1 -1
  32. package/dist/evaluation/evaluators/base-comparative.js +36 -1
  33. package/dist/evaluation/platform-synthesizer.d.ts +54 -0
  34. package/dist/evaluation/platform-synthesizer.d.ts.map +1 -0
  35. package/dist/evaluation/platform-synthesizer.js +368 -0
  36. package/dist/evaluation/run-platform-synthesis.d.ts +9 -0
  37. package/dist/evaluation/run-platform-synthesis.d.ts.map +1 -0
  38. package/dist/evaluation/run-platform-synthesis.js +45 -0
  39. package/dist/interfaces/mcp.d.ts.map +1 -1
  40. package/dist/interfaces/mcp.js +23 -29
  41. package/dist/tools/generate-manifests.d.ts.map +1 -1
  42. package/dist/tools/generate-manifests.js +3 -8
  43. package/dist/tools/recommend.d.ts.map +1 -1
  44. package/dist/tools/recommend.js +3 -16
  45. package/dist/tools/remediate.d.ts.map +1 -1
  46. package/dist/tools/remediate.js +10 -2
  47. package/dist/tools/version.d.ts +1 -0
  48. package/dist/tools/version.d.ts.map +1 -1
  49. package/dist/tools/version.js +11 -4
  50. package/package.json +15 -1
@@ -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 !== 1536) {
193
- throw new Error(`Embedding dimension mismatch: expected 1536, got ${testEmbedding?.length || 'null'} dimensions`);
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.112.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
  }