vantuz 4.0.0 → 4.0.3
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/cli.js +9 -9
- package/config.js +6 -6
- package/core/agent-loop.js +6 -6
- package/core/agent.js +6 -6
- package/core/ai-copilot.js +461 -0
- package/core/ai-provider.js +60 -10
- package/core/automation.js +8 -8
- package/core/cache-manager.js +232 -0
- package/core/channels.js +8 -8
- package/core/dashboard.js +5 -5
- package/core/database-manager.js +331 -0
- package/core/database.js +124 -83
- package/core/eia-brain.js +2 -2
- package/core/eia-monitor.js +7 -7
- package/core/engine.js +24 -24
- package/core/error-handler.js +203 -0
- package/core/gateway.js +9 -9
- package/core/learning.js +7 -7
- package/core/license-manager.js +1 -1
- package/core/license.js +6 -6
- package/core/logger.js +228 -0
- package/core/marketplace-adapter.js +5 -5
- package/core/memory.js +6 -6
- package/core/multi-agent.js +180 -0
- package/core/openclaw-bridge.js +6 -6
- package/core/queue.js +3 -3
- package/core/scheduler.js +6 -6
- package/core/scrapers/Scraper.js +1 -1
- package/core/scrapers/TrendyolScraper.js +1 -1
- package/core/self-healer.js +8 -6
- package/core/unified-product.js +8 -8
- package/core/vector-db.js +5 -5
- package/core/vision-service.js +5 -5
- package/desktop/index.html +2804 -0
- package/desktop/main.js +97 -0
- package/desktop/preload.js +30 -0
- package/dev.sh +5 -0
- package/index.js +483 -115
- package/modules/crm/sentiment-crm.js +4 -4
- package/modules/healer/listing-healer.js +2 -2
- package/modules/oracle/predictor.js +5 -5
- package/modules/researcher/agent.js +4 -4
- package/modules/war-room/competitor-tracker.js +5 -5
- package/modules/war-room/pricing-engine.js +5 -5
- package/nodes/warehouse.js +5 -5
- package/onboard.js +1 -1
- package/package.json +11 -3
- package/pkg.json +26 -0
- package/plugins/vantuz/index.js +16 -17
- package/plugins/vantuz/memory/hippocampus.js +3 -3
- package/plugins/vantuz/platforms/_request.js +1 -1
- package/plugins/vantuz/platforms/_template.js +2 -2
- package/plugins/vantuz/platforms/amazon.js +3 -3
- package/plugins/vantuz/platforms/ciceksepeti.js +2 -2
- package/plugins/vantuz/platforms/hepsiburada.js +2 -2
- package/plugins/vantuz/platforms/index.js +9 -24
- package/plugins/vantuz/platforms/n11.js +3 -3
- package/plugins/vantuz/platforms/pazarama.js +2 -2
- package/plugins/vantuz/platforms/pttavm.js +2 -2
- package/plugins/vantuz/platforms/trendyol.js +3 -3
- package/plugins/vantuz/services/alerts.js +1 -1
- package/plugins/vantuz/services/scheduler.js +1 -1
- package/plugins/vantuz/tools/nl-parser.js +1 -1
- package/plugins/vantuz/tools/quick-report.js +2 -2
- package/plugins/vantuz/tools/repricer.js +1 -1
- package/plugins/vantuz/tools/vision.js +3 -3
- package/server/app.js +8 -8
- package/DOCS_TR.md +0 -80
- package/modules/team/agents/base.js +0 -92
- package/modules/team/agents/dev.js +0 -33
- package/modules/team/agents/josh.js +0 -40
- package/modules/team/agents/marketing.js +0 -33
- package/modules/team/agents/milo.js +0 -36
- package/modules/team/index.js +0 -78
- package/modules/team/shared-memory.js +0 -87
- package/n11docs.md +0 -1680
- package/openclawdocs.md +0 -3
- package/vantuz.sqlite +0 -0
- package/workspace/AGENTS.md +0 -73
- package/workspace/BRAND.md +0 -29
- package/workspace/SOUL.md +0 -72
- package/workspace/team/DECISIONS.md +0 -3
- package/workspace/team/GOALS.md +0 -3
- package/workspace/team/PROJECT_STATUS.md +0 -3
- package/workspace/team/agents/dev/SOUL.md +0 -12
- package/workspace/team/agents/josh/SOUL.md +0 -12
- package/workspace/team/agents/marketing/SOUL.md +0 -12
- package/workspace/team/agents/milo/SOUL.md +0 -12
package/core/unified-product.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Unified Product Model for Vantuz OS V2
|
|
3
3
|
// Normalizes product data from ALL platforms into one Vantuz format.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
const { log } = require('./ai-provider.js');
|
|
6
6
|
|
|
7
7
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
8
8
|
// UNIFIED PRODUCT SCHEMA
|
|
@@ -14,7 +14,7 @@ import { log } from './ai-provider.js';
|
|
|
14
14
|
* @param {string} platform - Source platform name.
|
|
15
15
|
* @returns {object} Unified Product.
|
|
16
16
|
*/
|
|
17
|
-
|
|
17
|
+
module.exports.normal = functionizeProduct(raw, platform) {
|
|
18
18
|
const normalized = {
|
|
19
19
|
// Identity
|
|
20
20
|
sku: raw.sku || raw.stockCode || raw.merchantSku || raw.productCode || null,
|
|
@@ -76,7 +76,7 @@ export function normalizeProduct(raw, platform) {
|
|
|
76
76
|
* @param {string} platform - Source platform.
|
|
77
77
|
* @returns {object} Merged product.
|
|
78
78
|
*/
|
|
79
|
-
|
|
79
|
+
module.exports.mergeProduct = function(existing, raw, platform) {
|
|
80
80
|
const incoming = normalizeProduct(raw, platform);
|
|
81
81
|
|
|
82
82
|
// Add to platforms map
|
|
@@ -114,9 +114,9 @@ export function mergeProduct(existing, raw, platform) {
|
|
|
114
114
|
// PRODUCT CATALOG (In-Memory + Disk)
|
|
115
115
|
// ═══════════════════════════════════════════════════════════════════════════
|
|
116
116
|
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
117
|
+
const fs = require('fs');
|
|
118
|
+
const path = require('path');
|
|
119
|
+
const os = require('os');
|
|
120
120
|
|
|
121
121
|
const CATALOG_FILE = path.join(os.homedir(), '.vantuz', 'memory', 'catalog.json');
|
|
122
122
|
|
|
@@ -204,11 +204,11 @@ class ProductCatalog {
|
|
|
204
204
|
|
|
205
205
|
let catalogInstance = null;
|
|
206
206
|
|
|
207
|
-
|
|
207
|
+
module.exports.getCatalog = function() {
|
|
208
208
|
if (!catalogInstance) {
|
|
209
209
|
catalogInstance = new ProductCatalog();
|
|
210
210
|
}
|
|
211
211
|
return catalogInstance;
|
|
212
212
|
}
|
|
213
213
|
|
|
214
|
-
|
|
214
|
+
module.exports = ProductCatalog;
|
package/core/vector-db.js
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
// Persistent Vector Database for Vantuz AI
|
|
3
3
|
// Uses JSON file persistence instead of in-memory-only storage.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
const fs = require('fs');
|
|
6
|
+
const path = require('path');
|
|
7
|
+
const os = require('os');
|
|
8
|
+
const { log } = require('./ai-provider.js');
|
|
9
9
|
|
|
10
10
|
const VECTOR_DIR = path.join(os.homedir(), '.vantuz', 'memory');
|
|
11
11
|
const VECTOR_FILE = path.join(VECTOR_DIR, 'vectors.json');
|
|
@@ -155,7 +155,7 @@ class VectorDB {
|
|
|
155
155
|
|
|
156
156
|
let vectorDbInstance = null;
|
|
157
157
|
|
|
158
|
-
|
|
158
|
+
module.exports.getVectorDB = function() {
|
|
159
159
|
if (!vectorDbInstance) {
|
|
160
160
|
vectorDbInstance = new VectorDB();
|
|
161
161
|
}
|
package/core/vision-service.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
// Extracted from plugins/vantuz/tools/vision.js for API/Gateway access.
|
|
4
4
|
// Can be called from CLI, API endpoint, or Warehouse Node.
|
|
5
5
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
const axios = require('axios');
|
|
7
|
+
const fs = require('fs');
|
|
8
|
+
const { log } = require('./ai-provider.js');
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Analyze a product image and return structured data.
|
|
@@ -15,7 +15,7 @@ import { log } from './ai-provider.js';
|
|
|
15
15
|
* @param {object} aiConfig - { apiKey, baseUrl?, model? }
|
|
16
16
|
* @returns {object} { detected, confidence, attributes, suggestedPrice, seo_keywords }
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
module.exports.analyzeProduct = async functionImage(imageInput, aiConfig) {
|
|
19
19
|
if (!aiConfig?.apiKey) {
|
|
20
20
|
throw new Error('AI API anahtarı gerekli (aiConfig.apiKey)');
|
|
21
21
|
}
|
|
@@ -101,7 +101,7 @@ export async function analyzeProductImage(imageInput, aiConfig) {
|
|
|
101
101
|
* @param {object} aiConfig - AI config.
|
|
102
102
|
* @returns {object} { isDamaged, severity, description }
|
|
103
103
|
*/
|
|
104
|
-
|
|
104
|
+
module.exports.checkReturnDamage = async function(imageInput, aiConfig) {
|
|
105
105
|
const analysis = await analyzeProductImage(imageInput, aiConfig);
|
|
106
106
|
return {
|
|
107
107
|
isDamaged: !!analysis.defects,
|