devicely 2.3.0 → 2.3.1
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/bin/devicely.js +1 -1
- package/config/devices.conf +1 -1
- package/lib/advanced-logger.js +1 -0
- package/lib/aiProviders.js +1 -592
- package/lib/aiProviders.js.strategic-backup +657 -0
- package/lib/aiProvidersConfig.js +1 -171
- package/lib/androidDeviceDetection.js +1 -1
- package/lib/appMappings.js +1 -1
- package/lib/cognitiveLocator.js +1 -1
- package/lib/commanderService.js +1 -1
- package/lib/deviceDetection.js +1 -1
- package/lib/devices.js +1 -1
- package/lib/devices.js.strategic-backup +57 -0
- package/lib/doctor.js +1 -1
- package/lib/encryption.js +1 -1
- package/lib/encryption.js.strategic-backup +61 -0
- package/lib/executor.js +1 -1
- package/lib/executor.js.strategic-backup +107 -0
- package/lib/frontend/asset-manifest.json +3 -3
- package/lib/frontend/index.html +1 -1
- package/lib/frontend/static/js/main.6878ba82.js +3 -0
- package/lib/hybridAI.js +1 -0
- package/lib/intelligentLocatorService.js +1 -0
- package/lib/lightweightAI.js +1 -0
- package/lib/localBuiltInAI.js +1 -0
- package/lib/localBuiltInAI_backup.js +1 -0
- package/lib/localBuiltInAI_simple.js +1 -0
- package/lib/locatorStrategy.js +1 -1
- package/lib/logger-demo.js +2 -0
- package/lib/logger-integration-examples.js +102 -0
- package/lib/logger.js +1 -1
- package/lib/package.json +2 -0
- package/lib/quick-start-logger.js +2 -0
- package/lib/scriptLoader.js +1 -1
- package/lib/server.js +1 -1
- package/lib/server.js.strategic-backup +6298 -0
- package/lib/tensorflowAI.js +1 -0
- package/lib/tensorflowAI.js.strategic-backup +717 -0
- package/lib/tinyAI.js +1 -0
- package/lib/universalSessionManager.js +1 -0
- package/package.json +5 -2
- package/scripts/shell/android_device_control.enc +1 -1
- package/scripts/shell/connect_ios_usb_multi_final.enc +1 -1
- package/scripts/shell/connect_ios_wireless_multi_final.enc +1 -1
- package/lib/aiProviders_new.js +0 -70
- package/lib/frontend/static/js/main.310a0af8.js +0 -3
- /package/lib/frontend/static/js/{main.310a0af8.js.LICENSE.txt → main.6878ba82.js.LICENSE.txt} +0 -0
package/lib/aiProviders_new.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
// AI Provider Abstraction Layer - Enhanced Multi-Provider Support
|
|
2
|
-
// Supports: OpenAI, Google Gemini, Anthropic Claude, GitHub Copilot, Groq, Cohere, Mistral AI
|
|
3
|
-
|
|
4
|
-
const { OpenAI } = require('openai');
|
|
5
|
-
const { GoogleGenerativeAI } = require('@google/generative-ai');
|
|
6
|
-
const { Anthropic } = require('@anthropic-ai/sdk');
|
|
7
|
-
const { getPackageId, APP_MAPPINGS } = require('./appMappings');
|
|
8
|
-
const { AI_PROVIDERS_CONFIG, getDefaultModel } = require('./aiProvidersConfig');
|
|
9
|
-
|
|
10
|
-
class AIProviderManager {
|
|
11
|
-
constructor() {
|
|
12
|
-
this.provider = process.env.AI_PROVIDER || 'gemini';
|
|
13
|
-
this.model = process.env.AI_MODEL || null; // null = use default for provider
|
|
14
|
-
this.initializeProviders();
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
initializeProviders() {
|
|
18
|
-
// OpenAI
|
|
19
|
-
if (process.env.OPENAI_API_KEY) {
|
|
20
|
-
this.openai = new OpenAI({
|
|
21
|
-
apiKey: process.env.OPENAI_API_KEY,
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// Google Gemini
|
|
26
|
-
if (process.env.GEMINI_API_KEY) {
|
|
27
|
-
this.gemini = new GoogleGenerativeAI(process.env.GEMINI_API_KEY);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
// Anthropic Claude
|
|
31
|
-
if (process.env.CLAUDE_API_KEY) {
|
|
32
|
-
this.claude = new Anthropic({
|
|
33
|
-
apiKey: process.env.CLAUDE_API_KEY,
|
|
34
|
-
});
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
// GitHub Copilot
|
|
38
|
-
if (process.env.GITHUB_TOKEN) {
|
|
39
|
-
this.copilot = new OpenAI({
|
|
40
|
-
apiKey: process.env.GITHUB_TOKEN,
|
|
41
|
-
baseURL: 'https://api.githubcopilot.com',
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// Groq (ultra-fast inference)
|
|
46
|
-
if (process.env.GROQ_API_KEY) {
|
|
47
|
-
this.groq = new OpenAI({
|
|
48
|
-
apiKey: process.env.GROQ_API_KEY,
|
|
49
|
-
baseURL: 'https://api.groq.com/openai/v1',
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// Cohere
|
|
54
|
-
if (process.env.COHERE_API_KEY) {
|
|
55
|
-
this.cohere = new OpenAI({
|
|
56
|
-
apiKey: process.env.COHERE_API_KEY,
|
|
57
|
-
baseURL: 'https://api.cohere.ai/v1',
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// Mistral AI
|
|
62
|
-
if (process.env.MISTRAL_API_KEY) {
|
|
63
|
-
this.mistral = new OpenAI({
|
|
64
|
-
apiKey: process.env.MISTRAL_API_KEY,
|
|
65
|
-
baseURL: 'https://api.mistral.ai/v1',
|
|
66
|
-
});
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
getSystemPrompt(platform = null) {
|