@djodjonx/wiredi 0.0.11 → 0.0.13

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 (35) hide show
  1. package/README.md +148 -21
  2. package/dist/index.cjs +13 -6
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.cts +147 -34
  5. package/dist/index.d.cts.map +1 -1
  6. package/dist/index.d.mts +147 -34
  7. package/dist/index.d.mts.map +1 -1
  8. package/dist/index.mjs +13 -5
  9. package/dist/index.mjs.map +1 -1
  10. package/dist/plugin/ConfigurationAnalyzer.d.ts +59 -0
  11. package/dist/plugin/ConfigurationAnalyzer.d.ts.map +1 -0
  12. package/dist/plugin/ConfigurationAnalyzer.js +321 -0
  13. package/dist/plugin/ConfigurationAnalyzer.js.map +1 -0
  14. package/dist/plugin/DependencyAnalyzer.d.ts +54 -0
  15. package/dist/plugin/DependencyAnalyzer.d.ts.map +1 -0
  16. package/dist/plugin/DependencyAnalyzer.js +208 -0
  17. package/dist/plugin/DependencyAnalyzer.js.map +1 -0
  18. package/dist/plugin/TokenNormalizer.d.ts +51 -0
  19. package/dist/plugin/TokenNormalizer.d.ts.map +1 -0
  20. package/dist/plugin/TokenNormalizer.js +208 -0
  21. package/dist/plugin/TokenNormalizer.js.map +1 -0
  22. package/dist/plugin/ValidationEngine.d.ts +53 -0
  23. package/dist/plugin/ValidationEngine.d.ts.map +1 -0
  24. package/dist/plugin/ValidationEngine.js +250 -0
  25. package/dist/plugin/ValidationEngine.js.map +1 -0
  26. package/dist/plugin/index.d.ts +2 -0
  27. package/dist/plugin/index.d.ts.map +1 -0
  28. package/dist/plugin/index.js +144 -0
  29. package/dist/plugin/index.js.map +1 -0
  30. package/dist/plugin/package.json +6 -0
  31. package/dist/plugin/types.d.ts +152 -0
  32. package/dist/plugin/types.d.ts.map +1 -0
  33. package/dist/plugin/types.js +3 -0
  34. package/dist/plugin/types.js.map +1 -0
  35. package/package.json +10 -1
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const ValidationEngine_1 = require("./ValidationEngine");
4
+ /**
5
+ * Obtient la version d'un fichier source pour le cache
6
+ */
7
+ function getFileVersion(sourceFile) {
8
+ // Utiliser la version si disponible, sinon la longueur du texte
9
+ return sourceFile.version || sourceFile.getText().length.toString();
10
+ }
11
+ /**
12
+ * Fichiers externes que le plugin veut ajouter au projet
13
+ */
14
+ function getExternalFilesImpl() {
15
+ return [];
16
+ }
17
+ /**
18
+ * Appelé quand les fichiers du projet changent
19
+ */
20
+ function onConfigurationChangedImpl(_config) {
21
+ // Possibilité de mettre à jour la config à chaud
22
+ }
23
+ /**
24
+ * TypeScript Language Service Plugin pour la validation DI
25
+ *
26
+ * Ce plugin s'intègre au service de langage TypeScript pour fournir
27
+ * des diagnostics en temps réel sur les erreurs d'injection de dépendances.
28
+ *
29
+ * Architecture: Pattern Décorateur sur ts.LanguageService
30
+ *
31
+ * @see https://github.com/microsoft/TypeScript/wiki/Writing-a-Language-Service-Plugin
32
+ */
33
+ function init(modules) {
34
+ const typescript = modules.typescript;
35
+ function create(info) {
36
+ const config = info.config || {};
37
+ // Logger TOUJOURS - pour le diagnostic
38
+ const forceLog = (msg) => {
39
+ info.project.projectService.logger.info(`[DI-Validator] ${msg}`);
40
+ };
41
+ forceLog('===== Plugin initialisé =====');
42
+ forceLog(`Config: ${JSON.stringify(config)}`);
43
+ forceLog(`Project root: ${info.project.getCurrentDirectory()}`);
44
+ // Logger via le TSServer (verbose pour les détails)
45
+ const logger = (msg) => {
46
+ if (config.verbose) {
47
+ info.project.projectService.logger.info(`[DI-Validator] ${msg}`);
48
+ }
49
+ };
50
+ // Cache par fichier pour les performances
51
+ const fileCache = new Map();
52
+ // Créer le proxy du Language Service (Pattern Décorateur)
53
+ const proxy = Object.create(null);
54
+ const originalLS = info.languageService;
55
+ // Délégation par défaut de toutes les méthodes
56
+ for (const key of Object.keys(originalLS)) {
57
+ const method = originalLS[key];
58
+ if (typeof method === 'function') {
59
+ ;
60
+ proxy[key] = (...args) => method.apply(originalLS, args);
61
+ }
62
+ }
63
+ // ============================================================
64
+ // INTERCEPTION: getSemanticDiagnostics
65
+ // ============================================================
66
+ proxy.getSemanticDiagnostics = (fileName) => {
67
+ // Obtenir les diagnostics originaux de TypeScript
68
+ const originalDiagnostics = originalLS.getSemanticDiagnostics(fileName);
69
+ const program = originalLS.getProgram();
70
+ if (!program) {
71
+ logger('Pas de program disponible');
72
+ return originalDiagnostics;
73
+ }
74
+ const sourceFile = program.getSourceFile(fileName);
75
+ if (!sourceFile) {
76
+ return originalDiagnostics;
77
+ }
78
+ // Ne pas analyser les fichiers de déclaration
79
+ if (sourceFile.isDeclarationFile) {
80
+ return originalDiagnostics;
81
+ }
82
+ // Ne pas analyser les fichiers node_modules
83
+ if (fileName.includes('node_modules')) {
84
+ return originalDiagnostics;
85
+ }
86
+ try {
87
+ // Vérifier le cache
88
+ const version = getFileVersion(sourceFile);
89
+ const cached = fileCache.get(fileName);
90
+ if (cached && cached.version === version) {
91
+ // Utiliser le cache si la version n'a pas changé
92
+ // Note: On ne cache pas les diagnostics car ils dépendent du contexte global
93
+ }
94
+ // Effectuer la validation DI
95
+ const diDiagnostics = validateDI(program, sourceFile, logger);
96
+ // Fusion des diagnostics
97
+ return [...originalDiagnostics, ...diDiagnostics];
98
+ }
99
+ catch (error) {
100
+ logger(`Erreur lors de la validation: ${error}`);
101
+ return originalDiagnostics;
102
+ }
103
+ };
104
+ // ============================================================
105
+ // INTERCEPTION OPTIONNELLE: getQuickInfoAtPosition
106
+ // Affiche les infos DI au survol (future feature)
107
+ // ============================================================
108
+ // proxy.getQuickInfoAtPosition = (fileName: string, position: number) => {
109
+ // const original = originalLS.getQuickInfoAtPosition(fileName, position)
110
+ // // Ajouter des infos sur les dépendances...
111
+ // return original
112
+ // }
113
+ /**
114
+ * Valide les dépendances DI et retourne les diagnostics
115
+ */
116
+ function validateDI(program, currentFile, log) {
117
+ const checker = program.getTypeChecker();
118
+ const engine = new ValidationEngine_1.ValidationEngine(typescript, checker, log);
119
+ // Log des fichiers sources disponibles dans le program
120
+ const sourceFiles = program.getSourceFiles();
121
+ const projectFiles = sourceFiles.filter(sf => !sf.isDeclarationFile && !sf.fileName.includes('node_modules'));
122
+ info.project.projectService.logger.info(`[DI-Validator] Programme: ${projectFiles.length} fichier(s) source(s) projet`);
123
+ for (const sf of projectFiles.slice(0, 10)) {
124
+ info.project.projectService.logger.info(`[DI-Validator] - ${sf.fileName}`);
125
+ }
126
+ // Validation complète du programme
127
+ const errors = engine.validate(program);
128
+ info.project.projectService.logger.info(`[DI-Validator] Validation: ${errors.length} erreur(s) totale(s) trouvée(s)`);
129
+ // Filtrer les erreurs pour le fichier courant
130
+ const fileErrors = errors.filter(error => error.file.fileName === currentFile.fileName);
131
+ info.project.projectService.logger.info(`[DI-Validator] Fichier ${currentFile.fileName}: ${fileErrors.length} erreur(s)`);
132
+ return engine.convertToDiagnostics(fileErrors);
133
+ }
134
+ return proxy;
135
+ }
136
+ return {
137
+ create,
138
+ getExternalFiles: getExternalFilesImpl,
139
+ onConfigurationChanged: onConfigurationChangedImpl,
140
+ };
141
+ }
142
+ // Export CommonJS requis pour les plugins TypeScript
143
+ module.exports = init;
144
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/LanguageServer/plugin/index.ts"],"names":[],"mappings":";;AAEA,yDAAqD;AAErD;;GAEG;AACH,SAAS,cAAc,CAAC,UAAyB;IAC7C,gEAAgE;IAChE,OAAQ,UAAkB,CAAC,OAAO,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC,MAAM,CAAC,QAAQ,EAAE,CAAA;AAChF,CAAC;AAED;;GAEG;AACH,SAAS,oBAAoB;IACzB,OAAO,EAAE,CAAA;AACb,CAAC;AAED;;GAEG;AACH,SAAS,0BAA0B,CAAC,OAAuB;IACvD,iDAAiD;AACrD,CAAC;AAED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AAI,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CACnC,8BAA8B,MAAM,CAAC,MAAM,iCAAiC,CAC/E,CAAA;YAED,8CAA8C;YAC9C,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CACrC,KAAK,CAAC,IAAI,CAAC,QAAQ,KAAK,WAAW,CAAC,QAAQ,CAC/C,CAAA;YAED,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,CACnC,0BAA0B,WAAW,CAAC,QAAQ,KAAK,UAAU,CAAC,MAAM,YAAY,CACnF,CAAA;YAED,OAAO,MAAM,CAAC,oBAAoB,CAAC,UAAU,CAAC,CAAA;QAClD,CAAC;QAED,OAAO,KAAK,CAAA;IAChB,CAAC;IAED,OAAO;QACH,MAAM;QACN,gBAAgB,EAAE,oBAAoB;QACtC,sBAAsB,EAAE,0BAA0B;KACrD,CAAA;AACL,CAAC;AAED,qDAAqD;AACrD,MAAM,CAAC,OAAO,GAAG,IAAI,CAAA"}
@@ -0,0 +1,6 @@
1
+ {
2
+ "name": "diligent-plugin",
3
+ "type": "commonjs",
4
+ "main": "index.js"
5
+ }
6
+
@@ -0,0 +1,152 @@
1
+ import type ts from 'typescript';
2
+ /**
3
+ * Identifiant unique pour un token d'injection
4
+ * Format: "TYPE:path/to/file.ts:position" ou "STRING:literal" ou "CLASS:path:name"
5
+ */
6
+ export type TokenId = string;
7
+ /**
8
+ * Types de tokens supportés
9
+ */
10
+ export type TokenType = 'symbol' | 'class' | 'string' | 'unknown';
11
+ /**
12
+ * Représente un token d'injection normalisé
13
+ */
14
+ export interface NormalizedToken {
15
+ /** Identifiant unique calculé pour comparaison */
16
+ id: TokenId;
17
+ /** Type du token */
18
+ type: TokenType;
19
+ /** Nom lisible pour les messages d'erreur */
20
+ displayName: string;
21
+ /** Noeud AST original */
22
+ node: ts.Node;
23
+ /** Fichier source */
24
+ sourceFile: ts.SourceFile;
25
+ /** Position dans le fichier */
26
+ position: number;
27
+ /** Symbole TypeScript du token (pour vérification de type) */
28
+ symbol?: ts.Symbol;
29
+ }
30
+ /**
31
+ * Représente un provider enregistré dans une configuration
32
+ */
33
+ export interface RegisteredProvider {
34
+ /** Token sous lequel le provider est enregistré */
35
+ token: NormalizedToken;
36
+ /** Classe qui implémente le provider (si applicable) */
37
+ providerClass?: ts.Symbol;
38
+ /** Nom de la classe provider */
39
+ providerClassName?: string;
40
+ /** Type d'enregistrement */
41
+ registrationType: 'class' | 'symbol-provider' | 'value' | 'factory';
42
+ /** Noeud AST de l'enregistrement */
43
+ node: ts.Node;
44
+ /** Type TypeScript du provider (pour vérification de compatibilité) */
45
+ providerType?: ts.Type;
46
+ }
47
+ /**
48
+ * Représente une dépendance requise par un constructeur
49
+ */
50
+ export interface RequiredDependency {
51
+ /** Token requis */
52
+ token: NormalizedToken;
53
+ /** Index du paramètre dans le constructeur */
54
+ parameterIndex: number;
55
+ /** Noeud du paramètre */
56
+ parameterNode: ts.ParameterDeclaration;
57
+ /** Méthode d'injection: décorateur @inject ou type implicite */
58
+ injectionMethod: 'decorator' | 'type';
59
+ /** Type attendu de la dépendance */
60
+ expectedType?: ts.Type;
61
+ }
62
+ /**
63
+ * Représente l'analyse d'une classe injectable
64
+ */
65
+ export interface AnalyzedClass {
66
+ /** Symbole de la classe */
67
+ symbol: ts.Symbol;
68
+ /** Nom de la classe */
69
+ name: string;
70
+ /** Fichier source de la déclaration */
71
+ sourceFile: ts.SourceFile;
72
+ /** Noeud de déclaration */
73
+ declaration: ts.ClassDeclaration;
74
+ /** Dépendances du constructeur */
75
+ dependencies: RequiredDependency[];
76
+ }
77
+ /**
78
+ * Représente une configuration analysée (Builder ou Partial)
79
+ */
80
+ export interface AnalyzedConfig {
81
+ /** Type de configuration */
82
+ type: 'builder' | 'partial';
83
+ /** Identifiant du builder (si applicable) */
84
+ builderId?: string;
85
+ /** Nom de la variable (si assignée) */
86
+ variableName?: string;
87
+ /** Symbole de la variable de config */
88
+ symbol?: ts.Symbol;
89
+ /** Providers enregistrés directement dans cette config */
90
+ localProviders: RegisteredProvider[];
91
+ /** Tokens fournis (calculé avec héritage) */
92
+ providedTokens: Map<TokenId, RegisteredProvider>;
93
+ /** Références aux configs parentes (extends) */
94
+ parentConfigs: ts.Symbol[];
95
+ /** Noeud de l'appel defineBuilderConfig/definePartialConfig */
96
+ callNode: ts.CallExpression;
97
+ /** Fichier source */
98
+ sourceFile: ts.SourceFile;
99
+ }
100
+ /**
101
+ * Erreur de validation DI
102
+ */
103
+ export interface DIValidationError {
104
+ /** Message d'erreur */
105
+ message: string;
106
+ /** Fichier où reporter l'erreur */
107
+ file: ts.SourceFile;
108
+ /** Position de début */
109
+ start: number;
110
+ /** Longueur du span */
111
+ length: number;
112
+ /** Informations connexes (ex: où la dépendance est requise) */
113
+ relatedInformation?: Array<{
114
+ file: ts.SourceFile;
115
+ start: number;
116
+ length: number;
117
+ message: string;
118
+ }>;
119
+ }
120
+ /**
121
+ * Configuration du plugin
122
+ */
123
+ export interface DIPluginConfig {
124
+ /** Mode verbeux pour debug */
125
+ verbose?: boolean;
126
+ /** Nom des fonctions de config à détecter */
127
+ configFunctions?: {
128
+ builder: string;
129
+ partial: string;
130
+ };
131
+ }
132
+ /**
133
+ * Cache pour un fichier source
134
+ */
135
+ export interface FileCache {
136
+ /** Version du fichier (pour invalidation) */
137
+ version: string;
138
+ /** Classes analysées dans ce fichier */
139
+ analyzedClasses: Map<string, AnalyzedClass>;
140
+ /** Configs analysées dans ce fichier */
141
+ analyzedConfigs: AnalyzedConfig[];
142
+ }
143
+ /**
144
+ * État global du validateur
145
+ */
146
+ export interface ValidatorState {
147
+ /** Cache par fichier */
148
+ fileCache: Map<string, FileCache>;
149
+ /** Set des configs visitées (détection de cycles) */
150
+ visitedConfigs: Set<ts.Symbol>;
151
+ }
152
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":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AAM,CAAA;IACd,+DAA+D;IAC/D,kBAAkB,CAAC,EAAE,KAAK,CAAC;QACvB,IAAI,EAAE,EAAE,CAAC,UAAU,CAAA;QACnB,KAAK,EAAE,MAAM,CAAA;QACb,MAAM,EAAE,MAAM,CAAA;QACd,OAAO,EAAE,MAAM,CAAA;KAClB,CAAC,CAAA;CACL;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,8BAA8B;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,6CAA6C;IAC7C,eAAe,CAAC,EAAE;QACd,OAAO,EAAE,MAAM,CAAA;QACf,OAAO,EAAE,MAAM,CAAA;KAClB,CAAA;CACJ;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB,6CAA6C;IAC7C,OAAO,EAAE,MAAM,CAAA;IACf,wCAAwC;IACxC,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAA;IAC3C,wCAAwC;IACxC,eAAe,EAAE,cAAc,EAAE,CAAA;CACpC;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,wBAAwB;IACxB,SAAS,EAAE,GAAG,CAAC,MAAM,EAAE,SAAS,CAAC,CAAA;IACjC,qDAAqD;IACrD,cAAc,EAAE,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,CAAA;CACjC"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/LanguageServer/plugin/types.ts"],"names":[],"mappings":""}
package/package.json CHANGED
@@ -1,8 +1,17 @@
1
1
  {
2
2
  "name": "@djodjonx/wiredi",
3
- "version": "0.0.11",
3
+ "version": "0.0.13",
4
4
  "description": "WireDI - Wire your dependency injection with type safety and compile-time validation",
5
+ "homepage": "https://github.com/djodjonx/diligent#readme",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/djodjonx/diligent.git"
9
+ },
10
+ "bugs": {
11
+ "url": "https://github.com/djodjonx/diligent/issues"
12
+ },
5
13
  "type": "module",
14
+ "sideEffects": false,
6
15
  "main": "dist/index.cjs",
7
16
  "module": "dist/index.mjs",
8
17
  "types": "dist/index.d.mts",