@yorha2b-lab/autodev 5.5.1 → 5.6.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/autodev.js CHANGED
@@ -1,14 +1,13 @@
1
1
  #!/usr/bin/env node
2
- const fs = require('fs')
3
2
  const path = require('path')
4
3
  const chalk = require('chalk')
5
4
  const pkg = require('../package.json')
6
5
  const { program } = require('commander')
6
+ const local = Intl.DateTimeFormat().resolvedOptions().locale.toUpperCase()
7
7
 
8
- const { discover } = require('../src/utils/foundation')
9
- const { local, matrixEffect, bootSequence } = require('../src/utils/ux')
10
-
11
- const dialogs = discover(path.join(__dirname, '../src/dialogs'))
8
+ const { matrixEffect } = require('../src/utils/ux')
9
+ const recruiter = require('../src/kernel/recruiter')
10
+ const dialogs = recruiter(path.join(__dirname, '../src/dialogs'))
12
11
  const dialog = dialogs[local] ?? dialogs['EN-US']
13
12
 
14
13
  program
@@ -22,23 +21,12 @@ program
22
21
  .description(dialog.bunker.initDesc)
23
22
  .action(() => {
24
23
  const battlefield = {
25
- dirs: [],
26
24
  files: [
27
25
  { from: '.env.example', to: '.env', exist: 'envCheck', success: 'envCopy' },
28
26
  { from: 'config.js', to: 'config.js', exist: 'configCheck', success: 'configCopy' }
29
27
  ]
30
28
  }
31
- const installer = {
32
- dirs: dir => fs.mkdirSync(path.join(process.cwd(), dir), { recursive: true }),
33
- files: ({ from, to, exist, success }) => {
34
- const target = path.join(process.cwd(), to)
35
- if (fs.existsSync(target)) {
36
- return console.log(chalk.yellow(dialog.bunker[exist]))
37
- }
38
- fs.copyFileSync(path.resolve(__dirname, `../${from}`), target)
39
- console.log(chalk.green(dialog.bunker[success]))
40
- }
41
- }
29
+ const installer = require('../src/utils/installer')({ root: process.cwd(), dialog })
42
30
  Object.entries(battlefield).forEach(([type, items]) => items.forEach(installer[type]))
43
31
  const bunkerCmd = chalk.yellow(`'bunker': 'autodev watch'`)
44
32
  console.log(chalk.cyan(dialog.bunker.initComplete(bunkerCmd)))
@@ -50,11 +38,10 @@ program
50
38
  .description(dialog.bunker.watchDesc)
51
39
  .action(async () => {
52
40
  const bunker = require('../src/bootstrap')
53
- const result = bunker.init(program.opts(), dialog)
41
+ const result = await bunker.init(program.opts(), dialog, pkg.version, local)
54
42
  if (!result) {
55
43
  return
56
44
  }
57
- await bootSequence(pkg.version)
58
45
  require('../src/commands/watch')()
59
46
  process.on('SIGINT', () => {
60
47
  result.yorha.commander.report(dialog.bunker.systemOffline, 'gray')
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@yorha2b-lab/autodev",
3
- "version": "5.5.1",
3
+ "version": "5.6.1",
4
4
  "description": "基于视觉大模型的前端(react+Antd)全自动 CRUD 代码生成器",
5
5
  "bin": {
6
6
  "autodev": "bin/autodev.js"
@@ -32,13 +32,13 @@ const askAI = async ({ model, yorha, dialog, openAI, messages, response_format =
32
32
  }
33
33
  }
34
34
 
35
- module.exports = ({ config, yorha, openAI, dialog, prompts }) => {
35
+ module.exports = ({ utils, yorha, openAI, dialog, prompts }) => {
36
36
 
37
37
  const sharp = require('sharp')
38
38
 
39
- const { textModel, visionModel } = config
40
39
  const { api, mock, system, council } = prompts
41
40
  const { UI_DESIGNER, API_DESIGNER, MOCK_DESIGNER } = system
41
+ const { textModel, visionModel } = utils.foundation.getConfig()
42
42
 
43
43
  return {
44
44
  generateMock: async ({ columns, fileName }) => {
@@ -4,8 +4,8 @@ module.exports = () => {
4
4
  const path = require('path')
5
5
  const OpenAI = require('openai')
6
6
 
7
- const pkgEnv = path.resolve(__dirname, '../.env')
8
- const localEnv = path.resolve(process.cwd(), '.env')
7
+ const pkgEnv = path.resolve(__dirname, '../../.env')
8
+ const localEnv = path.resolve(process.cwd(), 'bunker', '.env')
9
9
  require('dotenv').config({ path: fs.existsSync(localEnv) ? localEnv : pkgEnv })
10
10
  const openAI = new OpenAI({ apiKey: process.env.API_KEY, baseURL: process.env.BASE_URL })
11
11
 
@@ -5,9 +5,11 @@ let instance = null
5
5
 
6
6
  module.exports = {
7
7
 
8
- init: ({ template }, dialog) => {
8
+ init: async ({ template }, dialog, version, local) => {
9
9
 
10
- const yorha = require('./yorha')()
10
+ const recruiter = require('../kernel/recruiter')
11
+ const utils = recruiter(path.join(__dirname, '../utils'))
12
+ const yorha = utils.ux.yorha()
11
13
 
12
14
  const generatorPath = path.join(__dirname, `../framework/${template}/generator`)
13
15
  if (!fs.existsSync(generatorPath)) {
@@ -15,27 +17,24 @@ module.exports = {
15
17
  return
16
18
  }
17
19
 
18
- const foundation = require('../utils/foundation')
19
- const config = foundation.getConfig()
20
-
21
20
  const accessPoint = {
21
+ utils,
22
22
  yorha,
23
- config,
24
23
  dialog,
25
24
  template,
26
- foundation,
27
- openAI: require('./openai')(),
28
- core: require('../utils/core'),
29
- menus: foundation.getExistingMenus(),
30
- handlers: foundation.discover(path.join(__dirname, '../handlers')),
31
- handlebars: require('./handlebar')({ config, template, ...foundation }),
32
- prompts: foundation.discover(path.join(__dirname, `../framework/${template}/prompts`)),
25
+ openAI: require('../ai/openai')(),
26
+ engine: require('../kernel/engine')({ utils, template }),
27
+ handlers: recruiter(path.join(__dirname, '../handlers')),
28
+ prompts: recruiter(path.join(__dirname, `../framework/${template}/prompts`)),
33
29
  }
34
30
 
35
- require('./foundation')(accessPoint)
36
- const llm = require('../services/llm')(accessPoint)
31
+ if (version) {
32
+ await utils.ux.bootSequence(version, local)
33
+ }
34
+ require('../kernel/deployment')(accessPoint)
35
+ const llm = require('../ai')(accessPoint)
37
36
  const generator = require(generatorPath)(accessPoint)
38
- const labs = require('./labs')({ llm, ...accessPoint })
37
+ const labs = require('../labs')({ llm, ...accessPoint })
39
38
 
40
39
 
41
40
  instance = { llm, labs, generator, ...accessPoint }
@@ -55,7 +54,7 @@ module.exports = {
55
54
 
56
55
  reboot() {
57
56
  const { template, dialog } = instance
58
- delete require.cache[require.resolve(path.join(process.cwd(), 'config.js'))]
57
+ delete require.cache[require.resolve(path.join(process.cwd(), 'bunker', 'config.js'))]
59
58
  instance.labs?.tower?.close()
60
59
  instance = null
61
60
  return this.init({ template }, dialog)
@@ -5,16 +5,17 @@ module.exports = () => {
5
5
  const chokidar = require('chokidar')
6
6
 
7
7
  const bootstrap = require('../bootstrap')
8
- const ctx = bootstrap.get()
8
+ const queue = require('../kernel/queue')(2)
9
9
 
10
- const queue = ctx.core.createTaskQueue(2)
10
+ const ctx = bootstrap.get()
11
11
  const routes = Object.values(ctx.handlers)
12
+ const config = ctx.utils.foundation.getConfig()
12
13
 
13
14
  queue.onIdle(() => {
14
15
  ctx.yorha.pod042.report(ctx.dialog.pod042.queueEmpty)
15
- const utilsDir = path.join(process.cwd(), ctx.config.utilsDir)
16
+ const utilsDir = path.join(process.cwd(), config.utilsDir)
16
17
  if (!fs.existsSync(utilsDir)) fs.mkdirSync(utilsDir, { recursive: true })
17
- fs.writeFileSync(path.join(utilsDir, 'menus.js'), `export const menus = ${ctx.foundation.contextStringify({ context: ctx.menus, maxLength: 50 })}`)
18
+ fs.writeFileSync(path.join(utilsDir, 'menus.js'), `export const menus = ${ctx.utils.generator.contextStringify({ context: ctx.menus, maxLength: 50 })}`)
18
19
  ctx.yorha.commander.report(ctx.dialog.bunker.systemStandby, 'gray')
19
20
  })
20
21
 
@@ -25,8 +26,8 @@ module.exports = () => {
25
26
  awaitWriteFinish: { stabilityThreshold: 500, pollInterval: 100 }
26
27
  }
27
28
 
28
- const fileWatcher = chokidar.watch(['./config.js'], options)
29
- const dirWatcher = chokidar.watch(routes.map(route => `${route.watch}`), options)
29
+ const fileWatcher = chokidar.watch(['./bunker/config.js'], options)
30
+ const dirWatcher = chokidar.watch(routes.map(route => `./bunker/${route.watch}`), options)
30
31
 
31
32
  ctx.yorha.operator6O.report(ctx.dialog.operator6O.call2B)
32
33
 
@@ -0,0 +1,65 @@
1
+ module.exports = {
2
+ nineS: {
3
+ dataCamouflageComplete: 'Mock-Datengenerierung abgeschlossen',
4
+ scanningField: 'Analyse der Feldabweichungen zwischen Frontend und Backend läuft... Semantische Brücke wird aktiviert',
5
+ dataCamouflage: fileName => `Ziel-Firewall wird durchbrochen... Datenverschleierungsprotokoll wird ausgeführt [${fileName}]`,
6
+ },
7
+ pod042: {
8
+ extractingUiMetadata: 'UI-Metadaten werden aus dem neuronalen Cloud-Netzwerk extrahiert...',
9
+ simulate: 'Echte Anfrage erkannt. Standard-Simulationspaket example.json wird bereitgestellt',
10
+ queueEmpty: 'Warteschlange leer. Menü-Routenkonfiguration wird mit Bunker synchronisiert...',
11
+ uploadVisualMetadata: 'Visuelle Metadaten werden an die Zentrale übertragen. Semantische Analyse wird gestartet...',
12
+ visualPartCaptured: 'Lokales visuelles Fragment erkannt. „Fragment-Konstruktionsprotokoll“ wird gestartet',
13
+ partialConstruction: time => `Bericht: Teilkonstruktion abgeschlossen. Dauer: ${time}s`,
14
+ partialRecommendation: '│ Empfehlung: Den obigen Codeblock manuell in die Zieldatei integrieren',
15
+ constructionAborted: virus => `Konstruktion abgebrochen. Logischer Virus oder Verbindungszeitüberschreitung erkannt: ${virus}`,
16
+ partialConstructionAborted: virus => `[Warnung] Fragment-Konstruktion fehlgeschlagen. Logische Störung erkannt: ${virus}`,
17
+ visualCaptured: fileName => `Visuelle Erfassung abgeschlossen: [${fileName}]. Bunker-Ressourcen werden geladen und physische Konstruktion gestartet`,
18
+ intercept: fileName => `Modul [${fileName}] befindet sich bereits in der Bunker-Datenbank. Überschreiben zum Schutz der Daten verhindert`,
19
+ assemblyComplete: (fileName, time) => `Konstruktionsprotokoll abgeschlossen. Modul [${fileName}] erfolgreich implementiert. Dauer: ${time}s`,
20
+ },
21
+ pod153: {
22
+ signalLinkFault: virus => `Signalverbindungsfehler: ${virus}`,
23
+ formatError: 'Nicht standardisiertes JSON-Format erkannt. Synchronisation mit Rohdaten wird versucht',
24
+ autonomousAddressing: '„Vollkanal-Autoadressierungsprotokoll [Semantische Analyseversion]“ wird aktiviert...',
25
+ signalSynchronized: count => `${count} Knoten synchronisiert. Energieversorgung bestätigt`,
26
+ alignmentFailed: virus => `Signalsynchronisierung fehlgeschlagen. API-Daten durch starke Firewall blockiert: ${virus}`,
27
+ inactiveModule: fileName => `Nicht aktiviertes Modul [${fileName}] erkannt. Hochpräzise Analyse durch 9S angefordert`,
28
+ capturedRuntimeSignal: fileName => `Laufzeitsignal [${fileName}] abgefangen. Automatisches Synchronisationsprotokoll wird gestartet`,
29
+ reconEncryptedData: fileName => `Verschlüsselte Datenquelle [${fileName}] erkannt. Semantische Synchronisierung wird versucht`,
30
+ unknownModule: fileName => `Keine Ressourcendaten für Modul [${fileName}] in der Bunker-Datenbank gefunden. Bitte zuerst visuelle Konstruktion ausführen`,
31
+ bridgeProtocolComplete: (count, time) => `Semantische Brücke abgeschlossen. ${count} Feldabweichungen korrigiert. Dauer: ${time}s`,
32
+ },
33
+ bunker: {
34
+ exit: 'Systemsignal verloren...',
35
+ envCopy: '.env-Speicherung abgeschlossen',
36
+ argDesc: 'Frontend-Framework-Template auswählen',
37
+ systemStandby: 'System befindet sich im Bereitschaftsmodus...',
38
+ desc: 'KI-gesteuertes Frontend-CRUD-Codegenerierungssystem',
39
+ configCopy: 'config.js-Speicherung abgeschlossen',
40
+ initDesc: 'Bunker-Konstruktionsumgebung im aktuellen Verzeichnis initialisieren',
41
+ envCheck: 'Vorhandene .env-Datei erkannt. Erstellung übersprungen',
42
+ dataSynced: 'Alle Konstruktionsdaten wurden mit dem Bunker-Speicherknoten synchronisiert',
43
+ configCheck: 'Vorhandene config.js-Datei erkannt. Erstellung übersprungen',
44
+ linkSevered: 'Verbindung getrennt: Netzwerkstatus oder Blackbox-Resonanz prüfen',
45
+ systemOffline: 'Neuronale Cloud-Verbindung wird getrennt. Daten werden physisch versiegelt...',
46
+ copyTemplateError: virus => `Template-Konstruktion fehlgeschlagen: ${virus}`,
47
+ star: 'Wenn dieses System Ihnen Zeit spart, geben Sie dem Projekt bitte einen Stern auf GitHub ⭐',
48
+ towerOnline: port => `Signal-Abfangturm online [Frequenz: ${port}]`,
49
+ watchDesc: 'Überwachung aller Kanäle starten: Page/Part/API-Konstruktion unterstützt',
50
+ accessDenied: 'Zentralzugriff verweigert: API-Key ungültig oder Kontingent erschöpft',
51
+ disclaimer: 'Analyseergebnis dient nur als Referenz. Die endgültige Entscheidung muss durch die jeweiligen Einheiten getroffen werden',
52
+ towerConnected: port => `Befehl: Proxy-Ziel auf http://localhost:${port} setzen`,
53
+ copyEnum: '│ Backend-Geninformationen (Enum) erkannt\n│ Empfehlung: Den folgenden Codeblock manuell in das Ressourcenmodul integrieren',
54
+ networkInstability: count => `Neuronale Cloud-Verbindung instabil. Wiederverbindung wird versucht... (Versuch ${count})`,
55
+ frameworkNotSupported: template => `[${template}] Framework wird derzeit nicht unterstützt. Pull Requests willkommen`,
56
+ strategicThreshold: (target, current) => `Physische Klonanzahl hat strategischen Schwellenwert ${target} überschritten! Aktuelle Stärke: ${current}`,
57
+ initComplete: cmd => `Bunker-Bereitstellung abgeschlossen. Für schnelleren Einsatz bitte [manuell installieren]: ${cmd} zu package.json scripts hinzufügen`,
58
+ isLegendary: (unlockAchievement, current, target) => unlockAchievement
59
+ ? 'Glückwunsch, Kommandant. Ihr Konstruktionsprotokoll ist nun Teil des Ruhms der Menschheit'
60
+ : `Aktuelle Konstruktionsanzahl: ${current}. Noch ${target - current} Einheiten bis zur Auszeichnung`,
61
+ },
62
+ operator6O: {
63
+ call2B: 'An 2B: Bunker-weite Kanalüberwachung ist aktiviert!',
64
+ }
65
+ }
@@ -0,0 +1,61 @@
1
+ module.exports = {
2
+ nineS: {
3
+ dataCamouflageComplete: 'Generación de datos Mock completada',
4
+ scanningField: 'Analizando diferencias entre campos Frontend/Backend... Ejecutando puente semántico',
5
+ dataCamouflage: fileName => `Atravesando el firewall del objetivo... Ejecutando protocolo de camuflaje de datos [${fileName}]`,
6
+ },
7
+ pod042: {
8
+ extractingUiMetadata: 'Extrayendo metadatos de UI desde la red neuronal en la nube...',
9
+ simulate: 'Solicitud real interceptada. Desplegando paquete simulado estándar: example.json',
10
+ queueEmpty: 'Cola vacía. Sincronizando configuración de rutas Menu con Bunker...',
11
+ uploadVisualMetadata: 'Subiendo metadatos visuales al centro de comando para análisis semántico...',
12
+ visualPartCaptured: 'Fragmento visual detectado. Ejecutando protocolo de construcción fragmentada...',
13
+ partialConstruction: time => `Informe: construcción parcial completada. Tiempo: ${time}s`,
14
+ partialRecommendation: '│ Recomendación: ensamble manualmente el bloque de código anterior en el archivo objetivo',
15
+ constructionAborted: virus => `Construcción abortada. Virus lógico o tiempo de conexión agotado: ${virus}`,
16
+ partialConstructionAborted: virus => `[Advertencia] Fallo en construcción fragmentada. Interferencia lógica detectada: ${virus}`,
17
+ visualCaptured: fileName => `Captura visual completada: [${fileName}]. Asignando recursos del Bunker para construcción física...`,
18
+ intercept: fileName => `El módulo [${fileName}] ya existe en la base de datos del Bunker. Protocolo omitido para evitar sobrescritura`,
19
+ assemblyComplete: (fileName, time) => `Protocolo de construcción finalizado. Módulo [${fileName}] ensamblado físicamente. Tiempo: ${time}s`,
20
+ },
21
+ pod153: {
22
+ signalLinkFault: virus => `Fallo en enlace de señal: ${virus}`,
23
+ formatError: 'Formato JSON no estándar detectado. Intentando alineación de datos originales',
24
+ autonomousAddressing: 'Iniciando protocolo de direccionamiento autónomo multicanal [versión semántica]...',
25
+ signalSynchronized: count => `Sincronización completada. ${count} nodos activados`,
26
+ alignmentFailed: virus => `Fallo de alineación. Los datos de interfaz encontraron un firewall: ${virus}`,
27
+ inactiveModule: fileName => `Módulo sin energía detectado [${fileName}]. Solicitando análisis de precisión a 9S`,
28
+ capturedRuntimeSignal: fileName => `Señal en ejecución capturada [${fileName}]. Ejecutando alineación automática...`,
29
+ reconEncryptedData: fileName => `Fuente de datos cifrada detectada [${fileName}]. Intentando alineación semántica...`,
30
+ unknownModule: fileName => `No se encontró recurso del módulo [${fileName}] en Bunker. Ejecute primero la construcción visual`,
31
+ bridgeProtocolComplete: (count, time) => `Protocolo puente semántico completado. ${count} diferencias corregidas. Tiempo: ${time}s`,
32
+ },
33
+
34
+ bunker: {
35
+ exit: 'Señal del sistema perdida...',
36
+ envCopy: 'Archivo .env almacenado correctamente',
37
+ argDesc: 'Especificar plantilla del framework frontend',
38
+ systemStandby: 'Sistema en espera...',
39
+ desc: 'Generador de código CRUD frontend impulsado por IA',
40
+ configCopy: 'Archivo config.js almacenado correctamente',
41
+ initDesc: 'Inicializar entorno de construcción Bunker en el directorio actual',
42
+ envCheck: 'Archivo .env existente detectado. Saltando creación',
43
+ dataSynced: 'Todos los datos de construcción sincronizados con el nodo Bunker',
44
+ configCheck: 'Archivo config.js existente detectado. Saltando creación',
45
+ linkSevered: 'Conexión perdida: revise la red o la resonancia de Black Box',
46
+ systemOffline: 'Desconectando enlace neural en la nube. Ejecutando sellado físico de datos...',
47
+ copyTemplateError: virus => `Fallo en construcción de plantilla: ${virus}`,
48
+ star: 'Si este proyecto te ayuda, deja una estrella en GitHub ⭐',
49
+ towerOnline: port => `Torre de interceptación de señales activa [Frecuencia: ${port}]`,
50
+ watchDesc: 'Iniciar monitorización completa: construcción coordinada Page/Part/API',
51
+ accessDenied: 'Acceso denegado: API Key inválida o límite agotado',
52
+ disclaimer: 'Los resultados son referencias. Cada unidad debe ajustar según la situación real',
53
+ towerConnected: port => `Comando: apunta tu proxy hacia http://localhost:${port}`,
54
+ networkInstability: count => `Inestabilidad de red neuronal. Reintentando conexión... (${count})`,
55
+ frameworkNotSupported: template => `Framework [${template}] no soportado. Pull Requests son bienvenidos`,
56
+ initComplete: cmd => `Despliegue del Bunker completado. Añade ${cmd} a package.json scripts`,
57
+ },
58
+ operator6O: {
59
+ call2B: 'Llamando a 2B. Monitorización global del Bunker lista!',
60
+ }
61
+ }
@@ -0,0 +1,65 @@
1
+ module.exports = {
2
+ nineS: {
3
+ dataCamouflageComplete: 'Génération des données Mock terminée',
4
+ scanningField: 'Analyse des différences de champs Frontend/Backend en cours... Activation du pont sémantique',
5
+ dataCamouflage: fileName => `Percée du pare-feu cible en cours... Exécution du protocole de camouflage des données [${fileName}]`,
6
+ },
7
+ pod042: {
8
+ extractingUiMetadata: 'Extraction des métadonnées UI depuis le réseau neuronal cloud...',
9
+ simulate: 'Requête réelle détectée. Déploiement du paquet de simulation standard : example.json',
10
+ queueEmpty: 'File d’attente vide. Synchronisation de la configuration des routes Menu avec le Bunker...',
11
+ uploadVisualMetadata: 'Transmission des métadonnées visuelles au quartier général. Analyse sémantique en cours...',
12
+ visualPartCaptured: 'Fragment visuel local détecté. Activation du « protocole de construction fragmentaire »...',
13
+ partialConstruction: time => `Rapport : Construction partielle terminée. Durée : ${time}s`,
14
+ partialRecommendation: '│ Recommandation : veuillez intégrer manuellement le bloc de code ci-dessus dans le fichier cible',
15
+ constructionAborted: virus => `Construction interrompue. Virus logique ou délai de connexion dépassé détecté : ${virus}`,
16
+ partialConstructionAborted: virus => `[Avertissement] Échec de la construction fragmentaire. Interférence logique détectée : ${virus}`,
17
+ visualCaptured: fileName => `Capture visuelle terminée : [${fileName}]. Déploiement des ressources du Bunker et lancement de la construction physique...`,
18
+ intercept: fileName => `Le module [${fileName}] existe déjà dans la base de données du Bunker. Protocole interrompu pour éviter l’écrasement`,
19
+ assemblyComplete: (fileName, time) => `Protocole de construction terminé. Module [${fileName}] assemblé avec succès. Durée : ${time}s`,
20
+ },
21
+ pod153: {
22
+ signalLinkFault: virus => `Erreur de liaison du signal : ${virus}`,
23
+ formatError: 'Format JSON non standard détecté. Tentative de synchronisation avec les données brutes',
24
+ autonomousAddressing: 'Activation du « protocole d’adressage automatique multi-canaux [version analyse sémantique] »...',
25
+ signalSynchronized: count => `${count} nœuds synchronisés. Alimentation confirmée`,
26
+ alignmentFailed: virus => `Échec de synchronisation du signal. Les données API sont bloquées par un pare-feu puissant : ${virus}`,
27
+ inactiveModule: fileName => `Module non activé détecté [${fileName}]. Analyse haute précision demandée à 9S`,
28
+ capturedRuntimeSignal: fileName => `Signal d’exécution intercepté [${fileName}]. Activation du protocole d’alignement automatique...`,
29
+ reconEncryptedData: fileName => `Source de données chiffrées détectée [${fileName}]. Tentative du protocole d’alignement sémantique...`,
30
+ unknownModule: fileName => `Aucune ressource du module [${fileName}] trouvée dans la base du Bunker. Veuillez effectuer la construction visuelle au préalable`,
31
+ bridgeProtocolComplete: (count, time) => `Protocole de pont sémantique terminé. ${count} différences de champs corrigées. Durée : ${time}s`,
32
+ },
33
+ bunker: {
34
+ exit: 'Signal système perdu...',
35
+ envCopy: 'Stockage .env terminé',
36
+ argDesc: 'Spécifier le modèle du framework frontend',
37
+ systemStandby: 'Système en mode veille...',
38
+ desc: 'Générateur de code CRUD frontend piloté par IA',
39
+ configCopy: 'Stockage de config.js terminé',
40
+ initDesc: 'Initialiser l’environnement de construction du Bunker dans le répertoire actuel',
41
+ envCheck: 'Fichier .env existant détecté. Génération ignorée',
42
+ dataSynced: 'Toutes les données de construction ont été synchronisées avec le nœud de stockage du Bunker',
43
+ configCheck: 'Fichier config.js existant détecté. Génération ignorée',
44
+ linkSevered: 'Connexion interrompue : veuillez vérifier le réseau ou la résonance de la boîte noire',
45
+ systemOffline: 'Déconnexion du réseau neuronal cloud. Scellement physique des données en cours...',
46
+ copyTemplateError: virus => `Échec de construction du modèle : ${virus}`,
47
+ star: 'Si ce système vous fait gagner du temps, pensez à lui donner une étoile sur GitHub ⭐',
48
+ towerOnline: port => `Tour d’interception des signaux en ligne [Fréquence : ${port}]`,
49
+ watchDesc: 'Démarrer la surveillance multi-canaux : construction coordonnée Page/Part/API',
50
+ accessDenied: 'Accès au quartier général refusé : clé API invalide ou quota épuisé',
51
+ disclaimer: 'Les résultats de correspondance sont fournis à titre indicatif. Chaque unité doit effectuer son propre ajustement selon son environnement',
52
+ towerConnected: port => `Ordre : configurez votre cible proxy vers http://localhost:${port}`,
53
+ copyEnum: '│ Informations génétiques Backend (Enum) détectées\n│ Recommandation : intégrer manuellement le fragment de code ci-dessous dans le module ressource',
54
+ networkInstability: count => `Connexion au cloud neuronal instable. Nouvelle tentative en cours... (tentative ${count})`,
55
+ frameworkNotSupported: template => `Framework [${template}] actuellement non supporté. Les Pull Requests sont bienvenues`,
56
+ strategicThreshold: (target, current) => `Le nombre de clones physiques a dépassé le seuil stratégique ${target} ! Puissance actuelle : ${current}`,
57
+ initComplete: cmd => `Déploiement du Bunker terminé. Pour un accès plus rapide au champ de bataille, ajoutez manuellement ${cmd} aux scripts de package.json`,
58
+ isLegendary: (unlockAchievement, current, target) => unlockAchievement
59
+ ? 'Félicitations, Commandant. Votre protocole de construction fait désormais partie de la gloire de l’humanité'
60
+ : `Nombre actuel de constructions : ${current}. Encore ${target - current} unités avant l’obtention de la médaille`,
61
+ },
62
+ operator6O: {
63
+ call2B: 'Communication vers 2B : la surveillance multi-canaux du Bunker est opérationnelle !',
64
+ }
65
+ }
@@ -0,0 +1,66 @@
1
+ module.exports = {
2
+ nineS: {
3
+ dataCamouflageComplete: 'Pembuatan data Mock berhasil',
4
+ scanningField: 'Memindai perbedaan field Frontend/Backend... Menjalankan protokol jembatan semantik',
5
+ dataCamouflage: fileName => `Menembus firewall target... Menjalankan protokol penyamaran data [${fileName}]`,
6
+ },
7
+ pod042: {
8
+ extractingUiMetadata: 'Mengekstrak metadata UI dari jaringan saraf cloud...',
9
+ simulate: 'Permintaan nyata terdeteksi. Menurunkan paket simulasi standar: example.json',
10
+ queueEmpty: 'Antrian kosong. Sinkronisasi konfigurasi Menu dengan Bunker...',
11
+ uploadVisualMetadata: 'Mengirim metadata visual ke pusat komando untuk analisis semantik...',
12
+ visualPartCaptured: 'Sampel visual terdeteksi. Menjalankan protokol konstruksi fragmen...',
13
+ partialConstruction: time => `Laporan: konstruksi parsial selesai. Waktu: ${time}s`,
14
+ partialRecommendation: '│ Rekomendasi: Pasang blok kode di atas secara manual ke file target',
15
+ constructionAborted: virus => `Konstruksi dihentikan. Virus logika atau batas waktu koneksi terdeteksi: ${virus}`,
16
+ partialConstructionAborted: virus => `[Peringatan] Konstruksi fragmen gagal. Gangguan logika terdeteksi: ${virus}`,
17
+ visualCaptured: fileName => `Penangkapan visual selesai: [${fileName}]. Menyiapkan sumber daya Bunker untuk konstruksi fisik...`,
18
+ intercept: fileName => `Modul [${fileName}] sudah ada dalam database Bunker. Protokol dilewati untuk mencegah penimpaan`,
19
+ assemblyComplete: (fileName, time) => `Protokol konstruksi selesai. Modul [${fileName}] berhasil dirakit secara fisik. Waktu: ${time}s`,
20
+ },
21
+ pod153: {
22
+ signalLinkFault: virus => `Gangguan koneksi sinyal: ${virus}`,
23
+ formatError: 'Format JSON tidak standar. Mencoba penyelarasan data mentah',
24
+ autonomousAddressing: 'Memulai protokol pengalamatan otomatis multi-kanal [versi semantik]...',
25
+ signalSynchronized: count => `Sinkronisasi sinyal selesai. ${count} node telah diaktifkan`,
26
+ alignmentFailed: virus => `Penyelarasan sinyal gagal. Data API menghadapi firewall: ${virus}`,
27
+ inactiveModule: fileName => `Modul tidak aktif ditemukan [${fileName}]. Meminta analisis presisi tinggi dari 9S`,
28
+ capturedRuntimeSignal: fileName => `Sinyal runtime tertangkap [${fileName}]. Menjalankan penyelarasan otomatis...`,
29
+ reconEncryptedData: fileName => `Sumber data terenkripsi ditemukan [${fileName}]. Mencoba protokol penyelarasan semantik...`,
30
+ unknownModule: fileName => `Resource modul [${fileName}] tidak ditemukan dalam database Bunker. Jalankan konstruksi visual terlebih dahulu`,
31
+ bridgeProtocolComplete: (count, time) => `Protokol jembatan semantik selesai. ${count} perbedaan field telah diperbaiki. Waktu: ${time}s`,
32
+ },
33
+ bunker: {
34
+ exit: 'Sinyal sistem telah hilang...',
35
+ envCopy: 'File .env berhasil disimpan',
36
+ argDesc: 'Menentukan template framework frontend',
37
+ systemStandby: 'Sistem dalam mode standby...',
38
+ desc: 'Generator kode CRUD frontend berbasis AI',
39
+ configCopy: 'File config.js berhasil disimpan',
40
+ initDesc: 'Menginisialisasi lingkungan konstruksi Bunker di direktori saat ini',
41
+ envCheck: 'File .env sudah tersedia. Pembuatan dilewati',
42
+ dataSynced: 'Seluruh data konstruksi telah disinkronkan dengan node penyimpanan Bunker',
43
+ configCheck: 'File config.js sudah tersedia. Pembuatan dilewati',
44
+ linkSevered: 'Koneksi terputus: periksa jaringan atau resonansi Black Box',
45
+ systemOffline: 'Memutus koneksi neural cloud. Menjalankan penyegelan fisik data...',
46
+ copyTemplateError: virus => `Konstruksi template gagal: ${virus}`,
47
+ star: 'Jika proyek ini membantu menghemat waktu Anda, berikan bintang di GitHub ⭐',
48
+ towerOnline: port => `Menara intersepsi sinyal aktif [Frekuensi: ${port}]`,
49
+ watchDesc: 'Mengaktifkan pemantauan multi-kanal: konstruksi Page/Part/API terpadu',
50
+ accessDenied: 'Akses ditolak pusat komando: API Key tidak valid atau kuota habis',
51
+ disclaimer: 'Hasil pencocokan hanya sebagai referensi. Setiap unit harus menyesuaikan dengan kondisi nyata',
52
+ towerConnected: port => `Perintah: arahkan target proxy Anda ke http://localhost:${port}`,
53
+ copyEnum: '│ Kode genetik backend asli (Enum) terdeteksi\n│ Rekomendasi: pasang potongan kode berikut ke pusat resource modul',
54
+ networkInstability: count => `Jaringan neural cloud tidak stabil. Mencoba koneksi ulang... (percobaan ${count})`,
55
+ frameworkNotSupported: template => `Framework [${template}] belum didukung. Pull Request sangat diterima`,
56
+ strategicThreshold: (target, current) => `Jumlah konstruksi telah melewati ambang strategis ${target}! Kekuatan saat ini: ${current}`,
57
+ initComplete: cmd => `Deploy Bunker selesai. Tambahkan ${cmd} ke scripts package.json untuk akses lebih cepat`,
58
+ isLegendary: (unlockAchievement, current, target) =>
59
+ unlockAchievement
60
+ ? 'Selamat komandan. Protokol konstruksi Anda telah menjadi bagian dari kejayaan umat manusia'
61
+ : `Jumlah konstruksi saat ini: ${current}. Tersisa ${target - current} operasi menuju medali`,
62
+ },
63
+ operator6O: {
64
+ call2B: 'Memanggil 2B. Sistem pemantauan seluruh kanal Bunker siap!',
65
+ }
66
+ }
@@ -0,0 +1,66 @@
1
+ module.exports = {
2
+ nineS: {
3
+ dataCamouflageComplete: 'Generazione dati Mock completata',
4
+ scanningField: 'Analisi delle differenze tra campi Frontend/Backend... Avvio del ponte semantico',
5
+ dataCamouflage: fileName => `Superamento del firewall del bersaglio... Avvio protocollo di camuffamento dati [${fileName}]`,
6
+ },
7
+ pod042: {
8
+ extractingUiMetadata: 'Estrazione dei metadati UI dalla rete neurale cloud...',
9
+ simulate: 'Richiesta reale intercettata. Lancio pacchetto simulato standard: example.json',
10
+ queueEmpty: 'Coda vuota. Sincronizzazione configurazione Menu con il Bunker...',
11
+ uploadVisualMetadata: 'Invio metadati visivi al comando centrale per analisi semantica...',
12
+ visualPartCaptured: 'Frammento visivo rilevato. Avvio protocollo di costruzione frammentata...',
13
+ partialConstruction: time => `Rapporto: costruzione parziale completata. Tempo: ${time}s`,
14
+ partialRecommendation: '│ Raccomandazione: integra manualmente il blocco di codice sopra nel file destinazione',
15
+ constructionAborted: virus => `Costruzione interrotta. Rilevato virus logico o timeout di connessione: ${virus}`,
16
+ partialConstructionAborted: virus => `[Avviso] Fallimento costruzione frammentata. Interferenza logica rilevata: ${virus}`,
17
+ visualCaptured: fileName => `Cattura visiva completata: [${fileName}]. Allocazione risorse del Bunker per costruzione fisica...`,
18
+ intercept: fileName => `Il modulo [${fileName}] esiste già nel database del Bunker. Protocollo saltato per evitare sovrascrittura`,
19
+ assemblyComplete: (fileName, time) => `Protocollo di costruzione completato. Modulo [${fileName}] assemblato fisicamente. Tempo: ${time}s`,
20
+ },
21
+ pod153: {
22
+ signalLinkFault: virus => `Errore collegamento segnale: ${virus}`,
23
+ formatError: 'Formato JSON non standard. Tentativo di allineamento dati originali',
24
+ autonomousAddressing: 'Avvio protocollo di indirizzamento autonomo multicanale [versione semantica]...',
25
+ signalSynchronized: count => `Sincronizzazione completata. ${count} nodi attivati`,
26
+ alignmentFailed: virus => `Allineamento fallito. I dati API hanno incontrato un firewall: ${virus}`,
27
+ inactiveModule: fileName => `Modulo inattivo rilevato [${fileName}]. Richiesta analisi ad alta precisione da 9S`,
28
+ capturedRuntimeSignal: fileName => `Segnale runtime intercettato [${fileName}]. Avvio allineamento automatico...`,
29
+ reconEncryptedData: fileName => `Sorgente dati crittografata rilevata [${fileName}]. Tentativo di allineamento semantico...`,
30
+ unknownModule: fileName => `Risorsa del modulo [${fileName}] non trovata nel database Bunker. Eseguire prima la costruzione visiva`,
31
+ bridgeProtocolComplete: (count, time) => `Protocollo ponte semantico completato. Corrette ${count} differenze nei campi. Tempo: ${time}s`,
32
+ },
33
+ bunker: {
34
+ exit: 'Segnale di sistema perso...',
35
+ envCopy: 'File .env salvato',
36
+ argDesc: 'Specificare il template del framework frontend',
37
+ systemStandby: 'Sistema in standby...',
38
+ desc: 'Generatore di codice CRUD frontend basato su IA',
39
+ configCopy: 'File config.js salvato',
40
+ initDesc: 'Inizializza ambiente di costruzione Bunker nella directory corrente',
41
+ envCheck: 'File .env già presente. Creazione ignorata',
42
+ dataSynced: 'Tutti i dati di costruzione sincronizzati con il nodo Bunker',
43
+ configCheck: 'File config.js già presente. Creazione ignorata',
44
+ linkSevered: 'Connessione interrotta: controllare rete o risonanza della Black Box',
45
+ systemOffline: 'Disconnessione collegamento neurale cloud. Avvio sigillatura fisica dei dati...',
46
+ copyTemplateError: virus => `Errore nella costruzione del template: ${virus}`,
47
+ star: 'Se questo progetto ti fa risparmiare tempo, lascia una stella su GitHub ⭐',
48
+ towerOnline: port => `Torre di intercettazione segnali online [Frequenza: ${port}]`,
49
+ watchDesc: 'Avvia monitoraggio completo: costruzione coordinata Page/Part/API',
50
+ accessDenied: 'Accesso negato dal comando centrale: API Key non valida o limite esaurito',
51
+ disclaimer: 'I risultati sono solo suggerimenti. Ogni unità deve adattare secondo la situazione reale',
52
+ towerConnected: port => `Comando: indirizzare il proxy verso http://localhost:${port}`,
53
+ copyEnum: '│ Rilevato codice genetico originale Backend (Enum)\n│ Raccomandazione: saldare manualmente il frammento nel centro risorse del modulo',
54
+ networkInstability: count => `Instabilità rete neurale cloud. Tentativo di riconnessione... (${count})`,
55
+ frameworkNotSupported: template => `Framework [${template}] non supportato. Pull Request benvenute`,
56
+ strategicThreshold: (target, current) => `Il numero di costruzioni ha superato la soglia strategica ${target}! Potenza attuale: ${current}`,
57
+ initComplete: cmd => `Distribuzione Bunker completata. Aggiungere ${cmd} agli script di package.json per accesso rapido`,
58
+ isLegendary: (unlockAchievement, current, target) =>
59
+ unlockAchievement
60
+ ? 'Congratulazioni comandante. Il tuo protocollo di costruzione è diventato parte della gloria dell’umanità'
61
+ : `Costruzioni attuali: ${current}. Mancano ${target - current} operazioni per ottenere la medaglia`,
62
+ },
63
+ operator6O: {
64
+ call2B: 'Chiamata a 2B. Monitoraggio globale dei canali Bunker pronto!',
65
+ }
66
+ }
@@ -0,0 +1,63 @@
1
+ module.exports = {
2
+ nineS: {
3
+ dataCamouflageComplete: 'Mockデータ生成完了',
4
+ scanningField: 'フロントエンド・バックエンド間のフィールド差分を解析中... セマンティックブリッジを起動',
5
+ dataCamouflage: fileName => `対象ファイアウォール突破中... データ偽装プロトコルを実行 [${fileName}]`,
6
+ },
7
+ pod042: {
8
+ extractingUiMetadata: 'ニューラルクラウドネットワークよりUIメタデータを抽出中...',
9
+ simulate: '実弾リクエストを検知。標準シミュレーションパッケージ example.json を投下します',
10
+ queueEmpty: 'キュー処理完了。BunkerへMenuルーティング設定を同期中...',
11
+ uploadVisualMetadata: '視覚メタデータを司令部へ送信。セマンティック解析を開始...',
12
+ visualPartCaptured: '局所視覚サンプルを検知。「断片構築プロトコル」を開始します',
13
+ partialConstruction: time => `報告:局所構築完了。処理時間: ${time}s`,
14
+ partialRecommendation: '│ 推奨:上記コードブロックを対象ファイルへ手動実装してください',
15
+ constructionAborted: virus => `構築中断。論理ウイルスまたは接続タイムアウトを検出:${virus}`,
16
+ partialConstructionAborted: virus => `[警告] 断片構築失敗。論理干渉を検出:${virus}`,
17
+ visualCaptured: fileName => `視覚センサーによる捕捉完了: [${fileName}]。Bunkerリソースを展開し物理構築を開始します`,
18
+ intercept: fileName => `モジュール [${fileName}] は既にBunkerデータベースに存在。データ上書き防止のため構築プロトコルを中断`,
19
+ assemblyComplete: (fileName, time) => `構築プロトコル完了。モジュール [${fileName}] の実装を確認。処理時間: ${time}s`,
20
+ },
21
+ pod153: {
22
+ signalLinkFault: virus => `シグナルリンク障害: ${virus}`,
23
+ formatError: '非標準JSON形式を検出。原始文字列による同期処理を試行します',
24
+ autonomousAddressing: '「全チャンネル自動アドレス指定プロトコル [セマンティック解析版]」を起動...',
25
+ signalSynchronized: count => `${count}個のノード同期完了。電力供給を確認`,
26
+ alignmentFailed: virus => `シグナル同期失敗。APIデータが強力なファイアウォールに阻害されています:${virus}`,
27
+ inactiveModule: fileName => `未通電モジュール [${fileName}] を検出。9Sによる高精度照合を要求します`,
28
+ capturedRuntimeSignal: fileName => `ランタイムシグナル [${fileName}] を捕捉。自動同期プロトコルを開始`,
29
+ reconEncryptedData: fileName => `暗号化データソース [${fileName}] を検出。セマンティック同期プロトコルを試行`,
30
+ unknownModule: fileName => `Bunkerデータベース内に [${fileName}] のリソース情報なし。先に視覚構築を実行してください`,
31
+ bridgeProtocolComplete: (count, time) => `セマンティックブリッジ完了。${count}箇所のフィールド差異を修正。処理時間: ${time}s`,
32
+ },
33
+ bunker: {
34
+ exit: 'システムシグナル消失...',
35
+ envCopy: '.envストレージ保存完了',
36
+ argDesc: 'フロントエンドフレームワークテンプレートを指定',
37
+ systemStandby: 'システム待機状態...',
38
+ desc: 'AI駆動型フロントエンドCRUDコード生成システム',
39
+ configCopy: 'config.jsストレージ保存完了',
40
+ initDesc: '現在のディレクトリにBunker構築環境を初期化',
41
+ envCheck: '既存の.envファイルを検出。生成処理をスキップ',
42
+ dataSynced: '全構築データをBunkerストレージノードへ同期完了',
43
+ configCheck: '既存のconfig.jsファイルを検出。生成処理をスキップ',
44
+ linkSevered: '接続断絶:ネットワーク状態またはブラックボックス共鳴を確認してください',
45
+ systemOffline: 'ニューラルクラウド接続を切断中。データを物理封印します...',
46
+ copyTemplateError: virus => `テンプレート構築失敗: ${virus}`,
47
+ star: 'このシステムが役立った場合、GitHubでスターをお願いします ⭐',
48
+ towerOnline: port => `シグナル迎撃塔オンライン [周波数: ${port}]`,
49
+ watchDesc: '全チャンネル連携監視を開始:Page/Part/API協調構築をサポート',
50
+ accessDenied: '司令部アクセス拒否:API Keyが無効、または利用上限に達しています',
51
+ disclaimer: '解析結果は参考情報です。最終判断は各ユニットが実環境に基づいて行ってください',
52
+ towerConnected: port => `指令:プロキシ対象を http://localhost:${port} に設定してください`,
53
+ copyEnum: '│ バックエンド由来の遺伝子情報(Enum)を検出\n│ 推奨:以下のコード断片を対象モジュールへ実装してください',
54
+ networkInstability: count => `ニューラルクラウド通信不安定。再接続を試行中... (${count}回目)`,
55
+ frameworkNotSupported: template => `[${template}] フレームワークは現在未対応です。Pull Requestによる貢献を歓迎します`,
56
+ strategicThreshold: (target, current) => `物理複製数が戦略閾値 ${target} を突破しました。現在戦力:${current}`,
57
+ initComplete: cmd => `Bunker展開完了。迅速な戦場投入のため、[物理実装]として ${cmd} をpackage.json scriptsへ追加してください`,
58
+ isLegendary: (unlockAchievement, current, target) => unlockAchievement ? 'おめでとうございます、指揮官。あなたの構築プロトコルは人類の栄光の一部となりました' : `現在の構築数:${current}。${target}個の勲章獲得まで残り ${target - current} 回`,
59
+ },
60
+ operator6O: {
61
+ call2B: '2Bへ通信。Bunker全チャンネル連携監視システム、起動準備完了!',
62
+ }
63
+ }