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.
Files changed (88) hide show
  1. package/cli.js +9 -9
  2. package/config.js +6 -6
  3. package/core/agent-loop.js +6 -6
  4. package/core/agent.js +6 -6
  5. package/core/ai-copilot.js +461 -0
  6. package/core/ai-provider.js +60 -10
  7. package/core/automation.js +8 -8
  8. package/core/cache-manager.js +232 -0
  9. package/core/channels.js +8 -8
  10. package/core/dashboard.js +5 -5
  11. package/core/database-manager.js +331 -0
  12. package/core/database.js +124 -83
  13. package/core/eia-brain.js +2 -2
  14. package/core/eia-monitor.js +7 -7
  15. package/core/engine.js +24 -24
  16. package/core/error-handler.js +203 -0
  17. package/core/gateway.js +9 -9
  18. package/core/learning.js +7 -7
  19. package/core/license-manager.js +1 -1
  20. package/core/license.js +6 -6
  21. package/core/logger.js +228 -0
  22. package/core/marketplace-adapter.js +5 -5
  23. package/core/memory.js +6 -6
  24. package/core/multi-agent.js +180 -0
  25. package/core/openclaw-bridge.js +6 -6
  26. package/core/queue.js +3 -3
  27. package/core/scheduler.js +6 -6
  28. package/core/scrapers/Scraper.js +1 -1
  29. package/core/scrapers/TrendyolScraper.js +1 -1
  30. package/core/self-healer.js +8 -6
  31. package/core/unified-product.js +8 -8
  32. package/core/vector-db.js +5 -5
  33. package/core/vision-service.js +5 -5
  34. package/desktop/index.html +2804 -0
  35. package/desktop/main.js +97 -0
  36. package/desktop/preload.js +30 -0
  37. package/dev.sh +5 -0
  38. package/index.js +483 -115
  39. package/modules/crm/sentiment-crm.js +4 -4
  40. package/modules/healer/listing-healer.js +2 -2
  41. package/modules/oracle/predictor.js +5 -5
  42. package/modules/researcher/agent.js +4 -4
  43. package/modules/war-room/competitor-tracker.js +5 -5
  44. package/modules/war-room/pricing-engine.js +5 -5
  45. package/nodes/warehouse.js +5 -5
  46. package/onboard.js +1 -1
  47. package/package.json +11 -3
  48. package/pkg.json +26 -0
  49. package/plugins/vantuz/index.js +16 -17
  50. package/plugins/vantuz/memory/hippocampus.js +3 -3
  51. package/plugins/vantuz/platforms/_request.js +1 -1
  52. package/plugins/vantuz/platforms/_template.js +2 -2
  53. package/plugins/vantuz/platforms/amazon.js +3 -3
  54. package/plugins/vantuz/platforms/ciceksepeti.js +2 -2
  55. package/plugins/vantuz/platforms/hepsiburada.js +2 -2
  56. package/plugins/vantuz/platforms/index.js +9 -24
  57. package/plugins/vantuz/platforms/n11.js +3 -3
  58. package/plugins/vantuz/platforms/pazarama.js +2 -2
  59. package/plugins/vantuz/platforms/pttavm.js +2 -2
  60. package/plugins/vantuz/platforms/trendyol.js +3 -3
  61. package/plugins/vantuz/services/alerts.js +1 -1
  62. package/plugins/vantuz/services/scheduler.js +1 -1
  63. package/plugins/vantuz/tools/nl-parser.js +1 -1
  64. package/plugins/vantuz/tools/quick-report.js +2 -2
  65. package/plugins/vantuz/tools/repricer.js +1 -1
  66. package/plugins/vantuz/tools/vision.js +3 -3
  67. package/server/app.js +8 -8
  68. package/DOCS_TR.md +0 -80
  69. package/modules/team/agents/base.js +0 -92
  70. package/modules/team/agents/dev.js +0 -33
  71. package/modules/team/agents/josh.js +0 -40
  72. package/modules/team/agents/marketing.js +0 -33
  73. package/modules/team/agents/milo.js +0 -36
  74. package/modules/team/index.js +0 -78
  75. package/modules/team/shared-memory.js +0 -87
  76. package/n11docs.md +0 -1680
  77. package/openclawdocs.md +0 -3
  78. package/vantuz.sqlite +0 -0
  79. package/workspace/AGENTS.md +0 -73
  80. package/workspace/BRAND.md +0 -29
  81. package/workspace/SOUL.md +0 -72
  82. package/workspace/team/DECISIONS.md +0 -3
  83. package/workspace/team/GOALS.md +0 -3
  84. package/workspace/team/PROJECT_STATUS.md +0 -3
  85. package/workspace/team/agents/dev/SOUL.md +0 -12
  86. package/workspace/team/agents/josh/SOUL.md +0 -12
  87. package/workspace/team/agents/marketing/SOUL.md +0 -12
  88. package/workspace/team/agents/milo/SOUL.md +0 -12
@@ -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
- import { log } from './ai-provider.js';
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
- export function normalizeProduct(raw, platform) {
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
- export function mergeProduct(existing, raw, platform) {
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
- import fs from 'fs';
118
- import path from 'path';
119
- import os from 'os';
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
- export function getCatalog() {
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
- export default ProductCatalog;
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
- import fs from 'fs';
6
- import path from 'path';
7
- import os from 'os';
8
- import { log } from './ai-provider.js';
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
- export function getVectorDB() {
158
+ module.exports.getVectorDB = function() {
159
159
  if (!vectorDbInstance) {
160
160
  vectorDbInstance = new VectorDB();
161
161
  }
@@ -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
- import axios from 'axios';
7
- import fs from 'fs';
8
- import { log } from './ai-provider.js';
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
- export async function analyzeProductImage(imageInput, aiConfig) {
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
- export async function checkReturnDamage(imageInput, aiConfig) {
104
+ module.exports.checkReturnDamage = async function(imageInput, aiConfig) {
105
105
  const analysis = await analyzeProductImage(imageInput, aiConfig);
106
106
  return {
107
107
  isDamaged: !!analysis.defects,