eny-ai 1.0.0 → 2.0.0

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/dist/index.d.cts CHANGED
@@ -1,4 +1,10 @@
1
1
  export { ALPHABET, FALSE, NIL, SYMBOLS, TRANSPILE_MAP, TRUE, VOID, asyncFn, component, effect, error, filter, find, fn, get, log, map, navigate, post, reduce, shape, state, storageGet, storageSet, toSymbolic, transpileSymbols, validate } from './symbols.cjs';
2
+ export { ENYRuntime, SymbolContext } from './runtime.cjs';
3
+ export { EnyContext, EnyUI, EnyValidate, useCallbackWithDeps, useEnyEffect, useEnyFetch, useEnyState, useLogger, useMemoWithDeps, useNavigation, usePersistentState, useReducerWithState, useValidation } from './hooks.cjs';
4
+ export { ENYFirebase, firebase, useAuth, useFirebase, useRealtimeData } from './firebase.cjs';
5
+ import 'react/jsx-runtime';
6
+ import 'react';
7
+ import 'firebase/auth';
2
8
 
3
9
  type Step = {
4
10
  raw: string;
@@ -500,205 +506,20 @@ declare function validateSemantic(ast: EnyAST, options?: ParseOptions): string[]
500
506
  declare function validateSemanticFull(ast: EnyAST, options?: ParseOptions): ValidationResult;
501
507
 
502
508
  /**
503
- * Cria um sistema AI-ENY básico
504
- */
505
- declare function createSystem(config: {
506
- name: string;
507
- mode?: 'development' | 'production' | 'autonomous';
508
- ui?: 'auto' | 'minimal' | 'adaptive' | 'none';
509
- evolve?: boolean;
510
- targets?: string[];
511
- }): string;
512
- /**
513
- * Obtém o estado atual de um AST
514
- */
515
- declare function getState(ast: EnyAST): {
516
- system: string | null | undefined;
517
- mode: string | null | undefined;
518
- ui: string | null | undefined;
519
- version: string | null | undefined;
520
- isEny: boolean | undefined;
521
- substates: SubstateNode[];
522
- };
523
- /**
524
- * Cria uma função AI-ENY
525
- */
526
- declare function createFunction(name: string, args: string[], steps: string[]): string;
527
- /**
528
- * Obtém todas as funções do AST
529
- */
530
- declare function getFunctions(ast: EnyAST): FunctionNode[];
531
- /**
532
- * Cria um objeto AI-ENY
533
- */
534
- declare function createObject(name: string, props: Record<string, any>): string;
535
- /**
536
- * Cria uma classe AI-ENY
537
- */
538
- declare function createClass(name: string, props: Record<string, any>, methods?: string[], extendsClass?: string): string;
539
- /**
540
- * Obtém todas as estruturas (objetos, classes) do AST
541
- */
542
- declare function getStructures(ast: EnyAST): {
543
- objects: ObjectNode[];
544
- classes: ClassNode[];
545
- modules: ModuleNode[];
546
- };
547
- /**
548
- * Cria um evento AI-ENY
549
- */
550
- declare function createEvent(name: string, handlers: string[]): string;
551
- /**
552
- * Cria um loop AI-ENY
553
- */
554
- declare function createLoop(count: number, body: string[]): string;
555
- /**
556
- * Obtém todos os elementos temporais
557
- */
558
- declare function getTemporals(ast: EnyAST): {
559
- events: EventNode[];
560
- loops: LoopNode[];
561
- causes: CauseNode[];
562
- timeouts: TimeoutNode[];
563
- delays: DelayNode[];
564
- syncs: SyncNode[];
565
- };
566
- /**
567
- * Cria um throttle AI-ENY
568
- */
569
- declare function createThrottle(target: string, limit: number): string;
570
- /**
571
- * Cria um boost AI-ENY
572
- */
573
- declare function createBoost(target: string, factor: number): string;
574
- /**
575
- * Obtém informações de energia/recursos
576
- */
577
- declare function getEnergy(ast: EnyAST): {
578
- throttles: ThrottleNode[];
579
- boosts: BoostNode[];
580
- costs: CostNode[];
581
- };
582
- /**
583
- * Cria uma memória AI-ENY
584
- */
585
- declare function createMemory(name: string, size: number, persist?: boolean): string;
586
- /**
587
- * Cria persistência AI-ENY
588
- */
589
- declare function createPersist(target: string, storage?: 'db' | 'file' | 'cache'): string;
590
- /**
591
- * Obtém informações de memória
592
- */
593
- declare function getMemory(ast: EnyAST): {
594
- database: DatabaseNode | null | undefined;
595
- memories: MemoryNode[];
596
- persists: PersistNode[];
597
- };
598
- /**
599
- * Cria um input AI-ENY
600
- */
601
- declare function createInput(name: string, type?: 'text' | 'number' | 'email' | 'password'): string;
602
- /**
603
- * Cria um visual AI-ENY
604
- */
605
- declare function createVisual(name: string, props: Record<string, any>): string;
606
- /**
607
- * Obtém informações de interface
608
- */
609
- declare function getInterface(ast: EnyAST): {
610
- forms: FormNode[];
611
- inputs: InputNode[];
612
- visuals: VisualNode[];
613
- interfaces: InterfaceNode[];
614
- };
615
- /**
616
- * Cria uma regra de segurança AI-ENY
617
- */
618
- declare function createSecurity(level: 'low' | 'medium' | 'high' | 'critical', rules: string[]): string;
619
- /**
620
- * Cria uma chave AI-ENY
621
- */
622
- declare function createKey(name: string, permissions: string[]): string;
623
- /**
624
- * Obtém informações de segurança
625
- */
626
- declare function getSecurity(ast: EnyAST): {
627
- securities: SecurityNode[];
628
- keys: KeyNode[];
629
- sandboxes: SandboxNode[];
630
- locks: LockNode[];
631
- unlocks: UnlockNode[];
632
- };
633
- /**
634
- * Cria um bloco de evolução AI-ENY
635
- */
636
- declare function createEvolve(steps: string[]): string;
637
- /**
638
- * Obtém informações de evolução
509
+ * 🧠 ENY-AI v2.0 - Runtime Simbólico Universal
510
+ * Biblioteca Universal de Sistemas Autogeráveis
511
+ * Código 90% Simbólico - Zero Build, Execução em Tempo Real
639
512
  */
640
- declare function getEvolve(ast: EnyAST): {
641
- evolve: EvolveNode | null | undefined;
642
- verifies: VerifyNode[];
643
- logNodes: LogNode[];
644
- };
513
+
645
514
  /**
646
- * Gera código AI-ENY completo a partir de configuração
515
+ * Create a new ENY runtime system
647
516
  */
648
- declare function generateENY(config: {
649
- system: {
650
- name: string;
651
- mode?: string;
652
- ui?: string;
653
- };
654
- functions?: Array<{
655
- name: string;
656
- args?: string[];
657
- steps: string[];
658
- }>;
659
- objects?: Array<{
660
- name: string;
661
- props: Record<string, any>;
662
- }>;
663
- events?: Array<{
664
- name: string;
665
- handlers: string[];
666
- }>;
667
- security?: {
668
- level: string;
669
- rules: string[];
670
- };
671
- evolve?: string[];
672
- }): string;
673
-
517
+ declare function createEnySystem(): any;
674
518
  /**
675
- * ENY-AI Core Library
676
- * Biblioteca Universal de Sistemas Autogeráveis
677
- * Código 90% Simbólico baseado no Alfabeto AI-X
519
+ * Initialize Firebase integration
678
520
  */
679
-
680
- declare const VERSION = "1.0.0";
521
+ declare function initializeEnyFirebase(config: any): any;
522
+ declare const VERSION = "2.0.0";
681
523
  declare const NAME = "eny-ai";
682
- declare const STATE: unique symbol;
683
- declare const SUBSTATE: unique symbol;
684
- declare const VOID_VAL: null;
685
- declare const TRUE_VAL = true;
686
- declare const FALSE_VAL = false;
687
- declare const OBJECT: unique symbol;
688
- declare const FUNCTION: unique symbol;
689
- declare const INTERFACE: unique symbol;
690
- declare const SHIELD: unique symbol;
691
- declare const EVOLVE: unique symbol;
692
-
693
- /** Cria um sistema ENY rápido */
694
- declare function quickSystem(name: string, config?: {
695
- mode?: 'development' | 'production' | 'autonomous';
696
- ui?: 'auto' | 'adaptive' | 'minimal';
697
- evolve?: boolean;
698
- }): string;
699
- /** Executa código ENY e retorna JavaScript transpilado */
700
- declare function compile(enyCode: string): string;
701
- /** Verifica se código é válido ENY */
702
- declare function isValidENY(code: string): boolean;
703
524
 
704
- export { type AnimationNode, type BoostNode, type BuildNode, type CauseNode, type ClassNode, type ConsequenceNode, type ContainsNode, type CostNode, type DatabaseNode, type DelayNode, EVOLVE, type EnyAST, type EventNode, type EvolveNode, type EvolveResult, FALSE_VAL, FUNCTION, type FormNode, type FunctionNode, type IAContext, IAManager, type IANode, type IAProvider, type IAResponse, INTERFACE, type InheritNode, type InputNode, type InterfaceNode, type KernelNode, type KeyNode, LocalIA, type LockNode, type LogEntry, type LogNode, type LogicNode, type LoopNode, type MemoryNode, type ModuleNode, NAME, OBJECT, type ObjectNode, type ParallelNode, type ParseOptions, type PersistNode, RemoteIA, type RootNode, SHIELD, STATE, SUBSTATE, SYMBOL_NAMES, type SandboxNode, type SecurityNode, type Step, type SubstateNode, type SyncNode, TRUE_VAL, type ThrottleNode, type TimeoutNode, type Token, TokenType, type TrainingNode, type TranspileOptions, type UnlockNode, VERSION, VOID_VAL, type ValidationResult, type VerifyNode, type VisualNode, type VoidNode, applyEvolve, compile, createBoost, createClass, createEvent, createEvolve, createFunction, createInput, createKey, createLoop, createMemory, createObject, createPersist, createSecurity, createSystem, createThrottle, createVisual, defaultIAManager, generateENY, getEnergy, getEvolve, getFunctions, getInterface, getMemory, getSecurity, getState, getStructures, getTemporals, hasWASMTarget, isValidENY, parse, processIA, quickSystem, runENY, tokenize, transpileToDTS, transpileToJS, transpileToWAT, validateSemantic, validateSemanticFull };
525
+ export { type AnimationNode, type BoostNode, type BuildNode, type CauseNode, type ClassNode, type ConsequenceNode, type ContainsNode, type CostNode, type DatabaseNode, type DelayNode, type EnyAST, type EventNode, type EvolveNode, type EvolveResult, type FormNode, type FunctionNode, type IAContext, IAManager, type IANode, type IAProvider, type IAResponse, type InheritNode, type InputNode, type InterfaceNode, type KernelNode, type KeyNode, LocalIA, type LockNode, type LogEntry, type LogNode, type LogicNode, type LoopNode, type MemoryNode, type ModuleNode, NAME, type ObjectNode, type ParallelNode, type ParseOptions, type PersistNode, RemoteIA, type RootNode, SYMBOL_NAMES, type SandboxNode, type SecurityNode, type Step, type SubstateNode, type SyncNode, type ThrottleNode, type TimeoutNode, type Token, TokenType, type TrainingNode, type TranspileOptions, type UnlockNode, VERSION, type ValidationResult, type VerifyNode, type VisualNode, type VoidNode, applyEvolve, createEnySystem, defaultIAManager, hasWASMTarget, initializeEnyFirebase, parse, processIA, runENY, tokenize, transpileToDTS, transpileToJS, transpileToWAT, validateSemantic, validateSemanticFull };
package/dist/index.d.ts CHANGED
@@ -1,4 +1,10 @@
1
1
  export { ALPHABET, FALSE, NIL, SYMBOLS, TRANSPILE_MAP, TRUE, VOID, asyncFn, component, effect, error, filter, find, fn, get, log, map, navigate, post, reduce, shape, state, storageGet, storageSet, toSymbolic, transpileSymbols, validate } from './symbols.js';
2
+ export { ENYRuntime, SymbolContext } from './runtime.js';
3
+ export { EnyContext, EnyUI, EnyValidate, useCallbackWithDeps, useEnyEffect, useEnyFetch, useEnyState, useLogger, useMemoWithDeps, useNavigation, usePersistentState, useReducerWithState, useValidation } from './hooks.js';
4
+ export { ENYFirebase, firebase, useAuth, useFirebase, useRealtimeData } from './firebase.js';
5
+ import 'react/jsx-runtime';
6
+ import 'react';
7
+ import 'firebase/auth';
2
8
 
3
9
  type Step = {
4
10
  raw: string;
@@ -500,205 +506,20 @@ declare function validateSemantic(ast: EnyAST, options?: ParseOptions): string[]
500
506
  declare function validateSemanticFull(ast: EnyAST, options?: ParseOptions): ValidationResult;
501
507
 
502
508
  /**
503
- * Cria um sistema AI-ENY básico
504
- */
505
- declare function createSystem(config: {
506
- name: string;
507
- mode?: 'development' | 'production' | 'autonomous';
508
- ui?: 'auto' | 'minimal' | 'adaptive' | 'none';
509
- evolve?: boolean;
510
- targets?: string[];
511
- }): string;
512
- /**
513
- * Obtém o estado atual de um AST
514
- */
515
- declare function getState(ast: EnyAST): {
516
- system: string | null | undefined;
517
- mode: string | null | undefined;
518
- ui: string | null | undefined;
519
- version: string | null | undefined;
520
- isEny: boolean | undefined;
521
- substates: SubstateNode[];
522
- };
523
- /**
524
- * Cria uma função AI-ENY
525
- */
526
- declare function createFunction(name: string, args: string[], steps: string[]): string;
527
- /**
528
- * Obtém todas as funções do AST
529
- */
530
- declare function getFunctions(ast: EnyAST): FunctionNode[];
531
- /**
532
- * Cria um objeto AI-ENY
533
- */
534
- declare function createObject(name: string, props: Record<string, any>): string;
535
- /**
536
- * Cria uma classe AI-ENY
537
- */
538
- declare function createClass(name: string, props: Record<string, any>, methods?: string[], extendsClass?: string): string;
539
- /**
540
- * Obtém todas as estruturas (objetos, classes) do AST
541
- */
542
- declare function getStructures(ast: EnyAST): {
543
- objects: ObjectNode[];
544
- classes: ClassNode[];
545
- modules: ModuleNode[];
546
- };
547
- /**
548
- * Cria um evento AI-ENY
549
- */
550
- declare function createEvent(name: string, handlers: string[]): string;
551
- /**
552
- * Cria um loop AI-ENY
553
- */
554
- declare function createLoop(count: number, body: string[]): string;
555
- /**
556
- * Obtém todos os elementos temporais
557
- */
558
- declare function getTemporals(ast: EnyAST): {
559
- events: EventNode[];
560
- loops: LoopNode[];
561
- causes: CauseNode[];
562
- timeouts: TimeoutNode[];
563
- delays: DelayNode[];
564
- syncs: SyncNode[];
565
- };
566
- /**
567
- * Cria um throttle AI-ENY
568
- */
569
- declare function createThrottle(target: string, limit: number): string;
570
- /**
571
- * Cria um boost AI-ENY
572
- */
573
- declare function createBoost(target: string, factor: number): string;
574
- /**
575
- * Obtém informações de energia/recursos
576
- */
577
- declare function getEnergy(ast: EnyAST): {
578
- throttles: ThrottleNode[];
579
- boosts: BoostNode[];
580
- costs: CostNode[];
581
- };
582
- /**
583
- * Cria uma memória AI-ENY
584
- */
585
- declare function createMemory(name: string, size: number, persist?: boolean): string;
586
- /**
587
- * Cria persistência AI-ENY
588
- */
589
- declare function createPersist(target: string, storage?: 'db' | 'file' | 'cache'): string;
590
- /**
591
- * Obtém informações de memória
592
- */
593
- declare function getMemory(ast: EnyAST): {
594
- database: DatabaseNode | null | undefined;
595
- memories: MemoryNode[];
596
- persists: PersistNode[];
597
- };
598
- /**
599
- * Cria um input AI-ENY
600
- */
601
- declare function createInput(name: string, type?: 'text' | 'number' | 'email' | 'password'): string;
602
- /**
603
- * Cria um visual AI-ENY
604
- */
605
- declare function createVisual(name: string, props: Record<string, any>): string;
606
- /**
607
- * Obtém informações de interface
608
- */
609
- declare function getInterface(ast: EnyAST): {
610
- forms: FormNode[];
611
- inputs: InputNode[];
612
- visuals: VisualNode[];
613
- interfaces: InterfaceNode[];
614
- };
615
- /**
616
- * Cria uma regra de segurança AI-ENY
617
- */
618
- declare function createSecurity(level: 'low' | 'medium' | 'high' | 'critical', rules: string[]): string;
619
- /**
620
- * Cria uma chave AI-ENY
621
- */
622
- declare function createKey(name: string, permissions: string[]): string;
623
- /**
624
- * Obtém informações de segurança
625
- */
626
- declare function getSecurity(ast: EnyAST): {
627
- securities: SecurityNode[];
628
- keys: KeyNode[];
629
- sandboxes: SandboxNode[];
630
- locks: LockNode[];
631
- unlocks: UnlockNode[];
632
- };
633
- /**
634
- * Cria um bloco de evolução AI-ENY
635
- */
636
- declare function createEvolve(steps: string[]): string;
637
- /**
638
- * Obtém informações de evolução
509
+ * 🧠 ENY-AI v2.0 - Runtime Simbólico Universal
510
+ * Biblioteca Universal de Sistemas Autogeráveis
511
+ * Código 90% Simbólico - Zero Build, Execução em Tempo Real
639
512
  */
640
- declare function getEvolve(ast: EnyAST): {
641
- evolve: EvolveNode | null | undefined;
642
- verifies: VerifyNode[];
643
- logNodes: LogNode[];
644
- };
513
+
645
514
  /**
646
- * Gera código AI-ENY completo a partir de configuração
515
+ * Create a new ENY runtime system
647
516
  */
648
- declare function generateENY(config: {
649
- system: {
650
- name: string;
651
- mode?: string;
652
- ui?: string;
653
- };
654
- functions?: Array<{
655
- name: string;
656
- args?: string[];
657
- steps: string[];
658
- }>;
659
- objects?: Array<{
660
- name: string;
661
- props: Record<string, any>;
662
- }>;
663
- events?: Array<{
664
- name: string;
665
- handlers: string[];
666
- }>;
667
- security?: {
668
- level: string;
669
- rules: string[];
670
- };
671
- evolve?: string[];
672
- }): string;
673
-
517
+ declare function createEnySystem(): any;
674
518
  /**
675
- * ENY-AI Core Library
676
- * Biblioteca Universal de Sistemas Autogeráveis
677
- * Código 90% Simbólico baseado no Alfabeto AI-X
519
+ * Initialize Firebase integration
678
520
  */
679
-
680
- declare const VERSION = "1.0.0";
521
+ declare function initializeEnyFirebase(config: any): any;
522
+ declare const VERSION = "2.0.0";
681
523
  declare const NAME = "eny-ai";
682
- declare const STATE: unique symbol;
683
- declare const SUBSTATE: unique symbol;
684
- declare const VOID_VAL: null;
685
- declare const TRUE_VAL = true;
686
- declare const FALSE_VAL = false;
687
- declare const OBJECT: unique symbol;
688
- declare const FUNCTION: unique symbol;
689
- declare const INTERFACE: unique symbol;
690
- declare const SHIELD: unique symbol;
691
- declare const EVOLVE: unique symbol;
692
-
693
- /** Cria um sistema ENY rápido */
694
- declare function quickSystem(name: string, config?: {
695
- mode?: 'development' | 'production' | 'autonomous';
696
- ui?: 'auto' | 'adaptive' | 'minimal';
697
- evolve?: boolean;
698
- }): string;
699
- /** Executa código ENY e retorna JavaScript transpilado */
700
- declare function compile(enyCode: string): string;
701
- /** Verifica se código é válido ENY */
702
- declare function isValidENY(code: string): boolean;
703
524
 
704
- export { type AnimationNode, type BoostNode, type BuildNode, type CauseNode, type ClassNode, type ConsequenceNode, type ContainsNode, type CostNode, type DatabaseNode, type DelayNode, EVOLVE, type EnyAST, type EventNode, type EvolveNode, type EvolveResult, FALSE_VAL, FUNCTION, type FormNode, type FunctionNode, type IAContext, IAManager, type IANode, type IAProvider, type IAResponse, INTERFACE, type InheritNode, type InputNode, type InterfaceNode, type KernelNode, type KeyNode, LocalIA, type LockNode, type LogEntry, type LogNode, type LogicNode, type LoopNode, type MemoryNode, type ModuleNode, NAME, OBJECT, type ObjectNode, type ParallelNode, type ParseOptions, type PersistNode, RemoteIA, type RootNode, SHIELD, STATE, SUBSTATE, SYMBOL_NAMES, type SandboxNode, type SecurityNode, type Step, type SubstateNode, type SyncNode, TRUE_VAL, type ThrottleNode, type TimeoutNode, type Token, TokenType, type TrainingNode, type TranspileOptions, type UnlockNode, VERSION, VOID_VAL, type ValidationResult, type VerifyNode, type VisualNode, type VoidNode, applyEvolve, compile, createBoost, createClass, createEvent, createEvolve, createFunction, createInput, createKey, createLoop, createMemory, createObject, createPersist, createSecurity, createSystem, createThrottle, createVisual, defaultIAManager, generateENY, getEnergy, getEvolve, getFunctions, getInterface, getMemory, getSecurity, getState, getStructures, getTemporals, hasWASMTarget, isValidENY, parse, processIA, quickSystem, runENY, tokenize, transpileToDTS, transpileToJS, transpileToWAT, validateSemantic, validateSemanticFull };
525
+ export { type AnimationNode, type BoostNode, type BuildNode, type CauseNode, type ClassNode, type ConsequenceNode, type ContainsNode, type CostNode, type DatabaseNode, type DelayNode, type EnyAST, type EventNode, type EvolveNode, type EvolveResult, type FormNode, type FunctionNode, type IAContext, IAManager, type IANode, type IAProvider, type IAResponse, type InheritNode, type InputNode, type InterfaceNode, type KernelNode, type KeyNode, LocalIA, type LockNode, type LogEntry, type LogNode, type LogicNode, type LoopNode, type MemoryNode, type ModuleNode, NAME, type ObjectNode, type ParallelNode, type ParseOptions, type PersistNode, RemoteIA, type RootNode, SYMBOL_NAMES, type SandboxNode, type SecurityNode, type Step, type SubstateNode, type SyncNode, type ThrottleNode, type TimeoutNode, type Token, TokenType, type TrainingNode, type TranspileOptions, type UnlockNode, VERSION, type ValidationResult, type VerifyNode, type VisualNode, type VoidNode, applyEvolve, createEnySystem, defaultIAManager, hasWASMTarget, initializeEnyFirebase, parse, processIA, runENY, tokenize, transpileToDTS, transpileToJS, transpileToWAT, validateSemantic, validateSemanticFull };