mycai 1.0.4 → 1.0.6
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/package.json +1 -1
- package/sdk/licensing.js +26 -7
package/package.json
CHANGED
package/sdk/licensing.js
CHANGED
|
@@ -13,25 +13,44 @@ import crypto from 'crypto';
|
|
|
13
13
|
|
|
14
14
|
export const LICENSE_TIERS = {
|
|
15
15
|
STARTER: {
|
|
16
|
-
name: 'Starter',
|
|
16
|
+
name: 'Starter / Community',
|
|
17
|
+
code: 'STARTER',
|
|
18
|
+
price: '$0 (Ücretsiz / Open-Source)',
|
|
19
|
+
target: 'Bireysel Yazılımcılar, Akademik Araştırmacılar, Prototip',
|
|
17
20
|
maxNodes: 1000,
|
|
18
21
|
allowedRuntimes: ['node', 'browser'],
|
|
19
22
|
features: ['math', 'text', 'basic_memory', 'telemetry'],
|
|
20
23
|
wasmRequired: false
|
|
21
24
|
},
|
|
22
25
|
BUSINESS: {
|
|
23
|
-
name: 'Business',
|
|
26
|
+
name: 'Business / Professional',
|
|
27
|
+
code: 'BUSINESS',
|
|
28
|
+
price: '$499 / Ay veya $4.990 / Yıl',
|
|
29
|
+
target: 'KOBİ’ler, SaaS Şirketleri, Hukuk Büroları, Finans Girişimleri',
|
|
24
30
|
maxNodes: 50000,
|
|
25
31
|
allowedRuntimes: ['node', 'browser', 'electron', 'edge'],
|
|
26
|
-
features: ['math', 'morphology', 'text', 'basic_memory', 'pdf', 'csv', 'living_memory', 'smart_summarizer', 'conflict_resolution', 'telemetry'],
|
|
32
|
+
features: ['math', 'morphology', 'text', 'basic_memory', 'pdf', 'csv', 'living_memory', 'smart_summarizer', 'conflict_resolution', 'edge_rag', 'telemetry'],
|
|
27
33
|
wasmRequired: false
|
|
28
34
|
},
|
|
29
35
|
SOVEREIGN: {
|
|
30
|
-
name: 'Sovereign',
|
|
36
|
+
name: 'Sovereign / Enterprise',
|
|
37
|
+
code: 'SOVEREIGN',
|
|
38
|
+
price: '$15.000 - $25.000 / Yıl',
|
|
39
|
+
target: 'Bankalar, Sigorta, Savunma ve Kritik Altyapılar (TEİAŞ/BOTAŞ)',
|
|
31
40
|
maxNodes: Infinity,
|
|
32
41
|
allowedRuntimes: ['node', 'browser', 'electron', 'edge', 'tactical_hardware'],
|
|
33
|
-
features: ['math', 'morphology', 'text', 'basic_memory', 'pdf', 'csv', 'living_memory', 'smart_summarizer', 'conflict_resolution', 'wasm_simd', 'custom_rules', 'multi_graph', 'telemetry'],
|
|
42
|
+
features: ['math', 'morphology', 'text', 'basic_memory', 'pdf', 'csv', 'living_memory', 'smart_summarizer', 'conflict_resolution', 'wasm_simd', 'custom_rules', 'multi_graph', 'edge_rag', 'tactical_hardware', 'telemetry'],
|
|
34
43
|
wasmRequired: true
|
|
44
|
+
},
|
|
45
|
+
OEM_INDUSTRIAL: {
|
|
46
|
+
name: 'Industrial OEM / Device Royalty',
|
|
47
|
+
code: 'OEM_INDUSTRIAL',
|
|
48
|
+
price: '9$ - 15$ / Cihaz Başı (veya 85.000$ Tek Seferlik Devir)',
|
|
49
|
+
target: 'Mikrodev gibi PLC, HMI, RTU, Robotik ve Donanım Üreticileri',
|
|
50
|
+
maxNodes: Infinity,
|
|
51
|
+
allowedRuntimes: ['node', 'browser', 'electron', 'edge', 'freertos', 'cortex_m4', 'esp32_s3', 'linux_arm', 'tactical_hardware'],
|
|
52
|
+
features: ['math', 'morphology', 'text', 'basic_memory', 'pdf', 'csv', 'living_memory', 'smart_summarizer', 'conflict_resolution', 'wasm_simd', 'custom_rules', 'multi_graph', 'industrial_modbus', 'edge_rag', 'tactical_hardware', 'white_label', 'telemetry'],
|
|
53
|
+
wasmRequired: false
|
|
35
54
|
}
|
|
36
55
|
};
|
|
37
56
|
|
|
@@ -39,7 +58,7 @@ export class LicenseManager {
|
|
|
39
58
|
/**
|
|
40
59
|
* @param {string} [vendorSecret] - Master secret for signing/verifying licenses.
|
|
41
60
|
*/
|
|
42
|
-
constructor(vendorSecret = '
|
|
61
|
+
constructor(vendorSecret = 'MYCAI_SOVEREIGN_ROOT_c931916628181f5f752b274a39932c999518c15485602ba0d7c73b0e8bcaefb7') {
|
|
43
62
|
this._secret = vendorSecret;
|
|
44
63
|
this.currentLicense = null;
|
|
45
64
|
this.tier = LICENSE_TIERS.STARTER;
|
|
@@ -58,7 +77,7 @@ export class LicenseManager {
|
|
|
58
77
|
* @param {string} [opts.clientId]
|
|
59
78
|
* @returns {string}
|
|
60
79
|
*/
|
|
61
|
-
static generateLicenseKey(opts, secret = '
|
|
80
|
+
static generateLicenseKey(opts, secret = 'MYCAI_SOVEREIGN_ROOT_c931916628181f5f752b274a39932c999518c15485602ba0d7c73b0e8bcaefb7') {
|
|
62
81
|
const tierKey = (opts.tier || 'STARTER').toUpperCase();
|
|
63
82
|
if (!LICENSE_TIERS[tierKey]) throw new Error(`Invalid tier: ${tierKey}`);
|
|
64
83
|
|