@mytechtoday/augment-extensions 0.5.0 → 0.7.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.
Files changed (47) hide show
  1. package/cli/dist/cli.js +4 -0
  2. package/cli/dist/cli.js.map +1 -1
  3. package/cli/dist/commands/show.d.ts +4 -0
  4. package/cli/dist/commands/show.d.ts.map +1 -1
  5. package/cli/dist/commands/show.js +456 -23
  6. package/cli/dist/commands/show.js.map +1 -1
  7. package/cli/dist/utils/config-system.d.ts +111 -0
  8. package/cli/dist/utils/config-system.d.ts.map +1 -0
  9. package/cli/dist/utils/config-system.js +239 -0
  10. package/cli/dist/utils/config-system.js.map +1 -0
  11. package/cli/dist/utils/hook-system.d.ts +84 -0
  12. package/cli/dist/utils/hook-system.d.ts.map +1 -0
  13. package/cli/dist/utils/hook-system.js +151 -0
  14. package/cli/dist/utils/hook-system.js.map +1 -0
  15. package/cli/dist/utils/inspection-cache.d.ts +56 -0
  16. package/cli/dist/utils/inspection-cache.d.ts.map +1 -0
  17. package/cli/dist/utils/inspection-cache.js +166 -0
  18. package/cli/dist/utils/inspection-cache.js.map +1 -0
  19. package/cli/dist/utils/inspection-handlers.d.ts +75 -0
  20. package/cli/dist/utils/inspection-handlers.d.ts.map +1 -0
  21. package/cli/dist/utils/inspection-handlers.js +171 -0
  22. package/cli/dist/utils/inspection-handlers.js.map +1 -0
  23. package/cli/dist/utils/module-system.d.ts +1 -0
  24. package/cli/dist/utils/module-system.d.ts.map +1 -1
  25. package/cli/dist/utils/module-system.js +8 -3
  26. package/cli/dist/utils/module-system.js.map +1 -1
  27. package/cli/dist/utils/plugin-system.d.ts +133 -0
  28. package/cli/dist/utils/plugin-system.d.ts.map +1 -0
  29. package/cli/dist/utils/plugin-system.js +210 -0
  30. package/cli/dist/utils/plugin-system.js.map +1 -0
  31. package/cli/dist/utils/progress.d.ts +67 -0
  32. package/cli/dist/utils/progress.d.ts.map +1 -0
  33. package/cli/dist/utils/progress.js +146 -0
  34. package/cli/dist/utils/progress.js.map +1 -0
  35. package/cli/dist/utils/stream-reader.d.ts +34 -0
  36. package/cli/dist/utils/stream-reader.d.ts.map +1 -0
  37. package/cli/dist/utils/stream-reader.js +147 -0
  38. package/cli/dist/utils/stream-reader.js.map +1 -0
  39. package/cli/dist/utils/vscode-editor.d.ts +45 -0
  40. package/cli/dist/utils/vscode-editor.d.ts.map +1 -0
  41. package/cli/dist/utils/vscode-editor.js +171 -0
  42. package/cli/dist/utils/vscode-editor.js.map +1 -0
  43. package/cli/dist/utils/vscode-links.d.ts +49 -0
  44. package/cli/dist/utils/vscode-links.d.ts.map +1 -0
  45. package/cli/dist/utils/vscode-links.js +167 -0
  46. package/cli/dist/utils/vscode-links.js.map +1 -0
  47. package/package.json +1 -1
@@ -0,0 +1,151 @@
1
+ "use strict";
2
+ /**
3
+ * Hook System for Augment Extensions
4
+ * Provides pre/post inspection hooks with error handling
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.hookManager = exports.HookManager = exports.PostLoadHook = exports.PreLoadHook = exports.PostInspectionHook = exports.PreInspectionHook = exports.BaseHook = void 0;
8
+ /**
9
+ * Base hook class
10
+ */
11
+ class BaseHook {
12
+ constructor() {
13
+ this.priority = 0;
14
+ }
15
+ }
16
+ exports.BaseHook = BaseHook;
17
+ /**
18
+ * Pre-inspection hook - runs before module inspection
19
+ */
20
+ class PreInspectionHook extends BaseHook {
21
+ constructor() {
22
+ super(...arguments);
23
+ this.id = 'pre-inspection-default';
24
+ this.type = 'pre-inspection';
25
+ this.priority = 0;
26
+ }
27
+ async execute(context) {
28
+ // Default pre-inspection logic
29
+ if (context.module) {
30
+ console.log(`Starting inspection of module: ${context.module.fullName || context.module.name}`);
31
+ }
32
+ }
33
+ }
34
+ exports.PreInspectionHook = PreInspectionHook;
35
+ /**
36
+ * Post-inspection hook - runs after module inspection
37
+ */
38
+ class PostInspectionHook extends BaseHook {
39
+ constructor() {
40
+ super(...arguments);
41
+ this.id = 'post-inspection-default';
42
+ this.type = 'post-inspection';
43
+ this.priority = 0;
44
+ }
45
+ async execute(context) {
46
+ // Default post-inspection logic
47
+ if (context.module) {
48
+ console.log(`Completed inspection of module: ${context.module.fullName || context.module.name}`);
49
+ }
50
+ if (context.error) {
51
+ console.error(`Inspection failed with error: ${context.error.message}`);
52
+ }
53
+ }
54
+ }
55
+ exports.PostInspectionHook = PostInspectionHook;
56
+ /**
57
+ * Pre-load hook - runs before plugin/module loading
58
+ */
59
+ class PreLoadHook extends BaseHook {
60
+ constructor() {
61
+ super(...arguments);
62
+ this.id = 'pre-load-default';
63
+ this.type = 'pre-load';
64
+ this.priority = 0;
65
+ }
66
+ async execute(context) {
67
+ // Default pre-load logic
68
+ console.log('Loading plugins and modules...');
69
+ }
70
+ }
71
+ exports.PreLoadHook = PreLoadHook;
72
+ /**
73
+ * Post-load hook - runs after plugin/module loading
74
+ */
75
+ class PostLoadHook extends BaseHook {
76
+ constructor() {
77
+ super(...arguments);
78
+ this.id = 'post-load-default';
79
+ this.type = 'post-load';
80
+ this.priority = 0;
81
+ }
82
+ async execute(context) {
83
+ // Default post-load logic
84
+ console.log('Plugins and modules loaded successfully');
85
+ }
86
+ }
87
+ exports.PostLoadHook = PostLoadHook;
88
+ /**
89
+ * Hook manager for executing hooks with error handling
90
+ */
91
+ class HookManager {
92
+ /**
93
+ * Execute a single hook with error handling
94
+ */
95
+ async executeHook(hook, context) {
96
+ const startTime = Date.now();
97
+ try {
98
+ await hook.execute(context);
99
+ return {
100
+ success: true,
101
+ hookId: hook.id,
102
+ executionTime: Date.now() - startTime
103
+ };
104
+ }
105
+ catch (error) {
106
+ const err = error instanceof Error ? error : new Error(String(error));
107
+ return {
108
+ success: false,
109
+ hookId: hook.id,
110
+ error: err,
111
+ executionTime: Date.now() - startTime
112
+ };
113
+ }
114
+ }
115
+ /**
116
+ * Execute multiple hooks in sequence
117
+ */
118
+ async executeHooks(hooks, context) {
119
+ const results = [];
120
+ for (const hook of hooks) {
121
+ const result = await this.executeHook(hook, context);
122
+ results.push(result);
123
+ // If a hook fails, store the error in context but continue
124
+ if (!result.success && result.error) {
125
+ context.error = result.error;
126
+ }
127
+ }
128
+ return results;
129
+ }
130
+ /**
131
+ * Execute hooks with timeout
132
+ */
133
+ async executeHooksWithTimeout(hooks, context, timeout = 5000) {
134
+ const timeoutPromise = new Promise((_, reject) => {
135
+ setTimeout(() => reject(new Error(`Hook execution timed out after ${timeout}ms`)), timeout);
136
+ });
137
+ const executionPromise = this.executeHooks(hooks, context);
138
+ try {
139
+ return await Promise.race([executionPromise, timeoutPromise]);
140
+ }
141
+ catch (error) {
142
+ throw error;
143
+ }
144
+ }
145
+ }
146
+ exports.HookManager = HookManager;
147
+ /**
148
+ * Global hook manager instance
149
+ */
150
+ exports.hookManager = new HookManager();
151
+ //# sourceMappingURL=hook-system.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hook-system.js","sourceRoot":"","sources":["../../src/utils/hook-system.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAcH;;GAEG;AACH,MAAsB,QAAQ;IAA9B;QAGE,aAAQ,GAAW,CAAC,CAAC;IAMvB,CAAC;CAAA;AATD,4BASC;AAED;;GAEG;AACH,MAAa,iBAAkB,SAAQ,QAAQ;IAA/C;;QACE,OAAE,GAAG,wBAAwB,CAAC;QAC9B,SAAI,GAAa,gBAAgB,CAAC;QAClC,aAAQ,GAAG,CAAC,CAAC;IAQf,CAAC;IANC,KAAK,CAAC,OAAO,CAAC,OAAoB;QAChC,+BAA+B;QAC/B,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC;YACnB,OAAO,CAAC,GAAG,CAAC,kCAAkC,OAAO,CAAC,MAAM,CAAC,QAAQ,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC,CAAC;QAClG,CAAC;IACH,CAAC;CACF;AAXD,8CAWC;AAED;;GAEG;AACH,MAAa,kBAAmB,SAAQ,QAAQ;IAAhD;;QACE,OAA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,EAAE,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,kCAAkC,OAAO,IAAI,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;QAC9F,CAAC,CAAC,CAAC;QAEH,MAAM,gBAAgB,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;QAE3D,IAAI,CAAC;YACH,OAAO,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC,gBAAgB,EAAE,cAAc,CAAC,CAAC,CAAC;QAChE,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,MAAM,KAAK,CAAC;QACd,CAAC;IACH,CAAC;CACF;AAlED,kCAkEC;AAED;;GAEG;AACU,QAAA,WAAW,GAAG,IAAI,WAAW,EAAE,CAAC"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * Inspection Cache Utility
3
+ *
4
+ * Provides caching for module inspection results to improve performance.
5
+ * Supports in-memory caching with file change detection for cache invalidation.
6
+ */
7
+ interface CacheOptions {
8
+ ttl?: number;
9
+ maxSize?: number;
10
+ }
11
+ export declare class InspectionCache<T = any> {
12
+ private cache;
13
+ private ttl;
14
+ private maxSize;
15
+ private enabled;
16
+ constructor(options?: CacheOptions);
17
+ /**
18
+ * Get cached data if valid
19
+ */
20
+ get(key: string, filePath?: string): T | null;
21
+ /**
22
+ * Set cache data
23
+ */
24
+ set(key: string, data: T, filePath?: string): void;
25
+ /**
26
+ * Clear all cache entries
27
+ */
28
+ clear(): void;
29
+ /**
30
+ * Clear cache entries for a specific file
31
+ */
32
+ clearFile(filePath: string): void;
33
+ /**
34
+ * Enable or disable caching
35
+ */
36
+ setEnabled(enabled: boolean): void;
37
+ /**
38
+ * Check if caching is enabled
39
+ */
40
+ isEnabled(): boolean;
41
+ /**
42
+ * Get cache statistics
43
+ */
44
+ getStats(): {
45
+ size: number;
46
+ maxSize: number;
47
+ enabled: boolean;
48
+ };
49
+ /**
50
+ * Calculate file hash for change detection
51
+ */
52
+ private getFileHash;
53
+ }
54
+ export declare const moduleInspectionCache: InspectionCache<any>;
55
+ export {};
56
+ //# sourceMappingURL=inspection-cache.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspection-cache.d.ts","sourceRoot":"","sources":["../../src/utils/inspection-cache.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAaH,UAAU,YAAY;IACpB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,qBAAa,eAAe,CAAC,CAAC,GAAG,GAAG;IAClC,OAAO,CAAC,KAAK,CAAyC;IACtD,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,OAAO,CAAS;IACxB,OAAO,CAAC,OAAO,CAAiB;gBAEpB,OAAO,GAAE,YAAiB;IAKtC;;OAEG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,GAAG,IAAI;IA6B7C;;OAEG;IACH,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI;IAuBlD;;OAEG;IACH,KAAK,IAAI,IAAI;IAIb;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI;IAYjC;;OAEG;IACH,UAAU,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI;IAOlC;;OAEG;IACH,SAAS,IAAI,OAAO;IAIpB;;OAEG;IACH,QAAQ,IAAI;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE;IAQ/D;;OAEG;IACH,OAAO,CAAC,WAAW;CAapB;AAGD,eAAO,MAAM,qBAAqB,sBAGhC,CAAC"}
@@ -0,0 +1,166 @@
1
+ "use strict";
2
+ /**
3
+ * Inspection Cache Utility
4
+ *
5
+ * Provides caching for module inspection results to improve performance.
6
+ * Supports in-memory caching with file change detection for cache invalidation.
7
+ */
8
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
9
+ if (k2 === undefined) k2 = k;
10
+ var desc = Object.getOwnPropertyDescriptor(m, k);
11
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
12
+ desc = { enumerable: true, get: function() { return m[k]; } };
13
+ }
14
+ Object.defineProperty(o, k2, desc);
15
+ }) : (function(o, m, k, k2) {
16
+ if (k2 === undefined) k2 = k;
17
+ o[k2] = m[k];
18
+ }));
19
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
20
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
21
+ }) : function(o, v) {
22
+ o["default"] = v;
23
+ });
24
+ var __importStar = (this && this.__importStar) || (function () {
25
+ var ownKeys = function(o) {
26
+ ownKeys = Object.getOwnPropertyNames || function (o) {
27
+ var ar = [];
28
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
29
+ return ar;
30
+ };
31
+ return ownKeys(o);
32
+ };
33
+ return function (mod) {
34
+ if (mod && mod.__esModule) return mod;
35
+ var result = {};
36
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
37
+ __setModuleDefault(result, mod);
38
+ return result;
39
+ };
40
+ })();
41
+ Object.defineProperty(exports, "__esModule", { value: true });
42
+ exports.moduleInspectionCache = exports.InspectionCache = void 0;
43
+ const fs = __importStar(require("fs"));
44
+ class InspectionCache {
45
+ constructor(options = {}) {
46
+ this.cache = new Map();
47
+ this.enabled = true;
48
+ this.ttl = options.ttl || 5 * 60 * 1000; // 5 minutes default
49
+ this.maxSize = options.maxSize || 100;
50
+ }
51
+ /**
52
+ * Get cached data if valid
53
+ */
54
+ get(key, filePath) {
55
+ if (!this.enabled) {
56
+ return null;
57
+ }
58
+ const entry = this.cache.get(key);
59
+ if (!entry) {
60
+ return null;
61
+ }
62
+ // Check if entry has expired
63
+ const now = Date.now();
64
+ if (now - entry.timestamp > this.ttl) {
65
+ this.cache.delete(key);
66
+ return null;
67
+ }
68
+ // Check if file has changed (if filePath provided)
69
+ if (filePath && entry.filePath) {
70
+ const currentHash = this.getFileHash(filePath);
71
+ if (currentHash !== entry.fileHash) {
72
+ this.cache.delete(key);
73
+ return null;
74
+ }
75
+ }
76
+ return entry.data;
77
+ }
78
+ /**
79
+ * Set cache data
80
+ */
81
+ set(key, data, filePath) {
82
+ if (!this.enabled) {
83
+ return;
84
+ }
85
+ // Enforce max size by removing oldest entries
86
+ if (this.cache.size >= this.maxSize) {
87
+ const firstKey = this.cache.keys().next().value;
88
+ if (firstKey) {
89
+ this.cache.delete(firstKey);
90
+ }
91
+ }
92
+ const entry = {
93
+ data,
94
+ timestamp: Date.now(),
95
+ fileHash: filePath ? this.getFileHash(filePath) : '',
96
+ filePath: filePath || ''
97
+ };
98
+ this.cache.set(key, entry);
99
+ }
100
+ /**
101
+ * Clear all cache entries
102
+ */
103
+ clear() {
104
+ this.cache.clear();
105
+ }
106
+ /**
107
+ * Clear cache entries for a specific file
108
+ */
109
+ clearFile(filePath) {
110
+ const keysToDelete = [];
111
+ for (const [key, entry] of this.cache.entries()) {
112
+ if (entry.filePath === filePath) {
113
+ keysToDelete.push(key);
114
+ }
115
+ }
116
+ keysToDelete.forEach(key => this.cache.delete(key));
117
+ }
118
+ /**
119
+ * Enable or disable caching
120
+ */
121
+ setEnabled(enabled) {
122
+ this.enabled = enabled;
123
+ if (!enabled) {
124
+ this.clear();
125
+ }
126
+ }
127
+ /**
128
+ * Check if caching is enabled
129
+ */
130
+ isEnabled() {
131
+ return this.enabled;
132
+ }
133
+ /**
134
+ * Get cache statistics
135
+ */
136
+ getStats() {
137
+ return {
138
+ size: this.cache.size,
139
+ maxSize: this.maxSize,
140
+ enabled: this.enabled
141
+ };
142
+ }
143
+ /**
144
+ * Calculate file hash for change detection
145
+ */
146
+ getFileHash(filePath) {
147
+ try {
148
+ if (!fs.existsSync(filePath)) {
149
+ return '';
150
+ }
151
+ const stats = fs.statSync(filePath);
152
+ // Use mtime and size for quick hash (faster than reading entire file)
153
+ return `${stats.mtime.getTime()}-${stats.size}`;
154
+ }
155
+ catch (error) {
156
+ return '';
157
+ }
158
+ }
159
+ }
160
+ exports.InspectionCache = InspectionCache;
161
+ // Global cache instance for module inspection
162
+ exports.moduleInspectionCache = new InspectionCache({
163
+ ttl: 5 * 60 * 1000, // 5 minutes
164
+ maxSize: 100
165
+ });
166
+ //# sourceMappingURL=inspection-cache.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspection-cache.js","sourceRoot":"","sources":["../../src/utils/inspection-cache.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAgBzB,MAAa,eAAe;IAM1B,YAAY,UAAwB,EAAE;QAL9B,UAAK,GAA+B,IAAI,GAAG,EAAE,CAAC;QAG9C,YAAO,GAAY,IAAI,CAAC;QAG9B,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,oBAAoB;QAC7D,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,IAAI,GAAG,CAAC;IACxC,CAAC;IAED;;OAEG;IACH,GAAG,CAAC,GAAW,EAAE,QAAiB;QAChC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;YAClB,OAAO,IAAI,CAAC;QACd,CAAC;QAED,MAAM,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAClC,IAAI,CAAC,KAAK,EAAE,CAAC;YACX,OAAO,IAAI,CAAC;QACd,CAAC;QAED,6BAA6B;QAC7B,MAAM,GAAG,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC;QACvB,IAAI,GAAG,GAAG,KAAK,CAAC,SAAS,GAAG,IAAI,CA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AC,IAAI,EAAE,CAAC;QAClD,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO,EAAE,CAAC;QACZ,CAAC;IACH,CAAC;CACF;AAvID,0CAuIC;AAED,8CAA8C;AACjC,QAAA,qBAAqB,GAAG,IAAI,eAAe,CAAC;IACvD,GAAG,EAAE,CAAC,GAAG,EAAE,GAAG,IAAI,EAAE,YAAY;IAChC,OAAO,EAAE,GAAG;CACb,CAAC,CAAC"}
@@ -0,0 +1,75 @@
1
+ /**
2
+ * Custom Inspection Handlers
3
+ * Provides extensible handlers for different module types
4
+ */
5
+ import { InspectionHandler } from './plugin-system';
6
+ import { Module } from './module-system';
7
+ /**
8
+ * Handler options interface
9
+ */
10
+ export interface HandlerOptions {
11
+ format?: 'text' | 'json' | 'markdown';
12
+ depth?: number;
13
+ filter?: string;
14
+ search?: string;
15
+ [key: string]: any;
16
+ }
17
+ /**
18
+ * Handler result interface
19
+ */
20
+ export interface HandlerResult {
21
+ success: boolean;
22
+ data?: any;
23
+ error?: string;
24
+ metadata?: {
25
+ handlerId: string;
26
+ moduleType: string;
27
+ processingTime?: number;
28
+ };
29
+ }
30
+ /**
31
+ * Base inspection handler
32
+ */
33
+ export declare abstract class BaseInspectionHandler implements InspectionHandler {
34
+ abstract id: string;
35
+ abstract supportedTypes: string[];
36
+ priority: number;
37
+ /**
38
+ * Handle module inspection
39
+ */
40
+ abstract handle(module: Module, options: HandlerOptions): Promise<HandlerResult> | HandlerResult;
41
+ /**
42
+ * Check if this handler supports the module type
43
+ */
44
+ supports(moduleType: string): boolean;
45
+ }
46
+ /**
47
+ * Default handler for all module types
48
+ */
49
+ export declare class DefaultInspectionHandler extends BaseInspectionHandler {
50
+ id: string;
51
+ supportedTypes: string[];
52
+ priority: number;
53
+ handle(module: Module, options: HandlerOptions): Promise<HandlerResult>;
54
+ }
55
+ /**
56
+ * Workflow module handler
57
+ */
58
+ export declare class WorkflowInspectionHandler extends BaseInspectionHandler {
59
+ id: string;
60
+ supportedTypes: string[];
61
+ priority: number;
62
+ handle(module: Module, options: HandlerOptions): Promise<HandlerResult>;
63
+ private extractWorkflowSteps;
64
+ }
65
+ /**
66
+ * Coding standards handler
67
+ */
68
+ export declare class CodingStandardsHandler extends BaseInspectionHandler {
69
+ id: string;
70
+ supportedTypes: string[];
71
+ priority: number;
72
+ handle(module: Module, options: HandlerOptions): Promise<HandlerResult>;
73
+ private extractStandards;
74
+ }
75
+ //# sourceMappingURL=inspection-handlers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspection-handlers.d.ts","sourceRoot":"","sources":["../../src/utils/inspection-handlers.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAEzC;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,CAAC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,GAAG,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE;QACT,SAAS,EAAE,MAAM,CAAC;QAClB,UAAU,EAAE,MAAM,CAAC;QACnB,cAAc,CAAC,EAAE,MAAM,CAAC;KACzB,CAAC;CACH;AAED;;GAEG;AACH,8BAAsB,qBAAsB,YAAW,iBAAiB;IACtE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,cAAc,EAAE,MAAM,EAAE,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAK;IAErB;;OAEG;IACH,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC,GAAG,aAAa;IAEhG;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO;CAGtC;AAED;;GAEG;AACH,qBAAa,wBAAyB,SAAQ,qBAAqB;IACjE,EAAE,SAAqB;IACvB,cAAc,WAAS;IACvB,QAAQ,SAAM;IAER,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;CAkC9E;AAED;;GAEG;AACH,qBAAa,yBAA0B,SAAQ,qBAAqB;IAClE,EAAE,SAAsB;IACxB,cAAc,WAAiB;IAC/B,QAAQ,SAAM;IAER,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAqC7E,OAAO,CAAC,oBAAoB;CAK7B;AAED;;GAEG;AACH,qBAAa,sBAAuB,SAAQ,qBAAqB;IAC/D,EAAE,SAA8B;IAChC,cAAc,WAAwB;IACtC,QAAQ,SAAM;IAER,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,cAAc,GAAG,OAAO,CAAC,aAAa,CAAC;IAoC7E,OAAO,CAAC,gBAAgB;CAKzB"}
@@ -0,0 +1,171 @@
1
+ "use strict";
2
+ /**
3
+ * Custom Inspection Handlers
4
+ * Provides extensible handlers for different module types
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
7
+ exports.CodingStandardsHandler = exports.WorkflowInspectionHandler = exports.DefaultInspectionHandler = exports.BaseInspectionHandler = void 0;
8
+ /**
9
+ * Base inspection handler
10
+ */
11
+ class BaseInspectionHandler {
12
+ constructor() {
13
+ this.priority = 0;
14
+ }
15
+ /**
16
+ * Check if this handler supports the module type
17
+ */
18
+ supports(moduleType) {
19
+ return this.supportedTypes.includes(moduleType);
20
+ }
21
+ }
22
+ exports.BaseInspectionHandler = BaseInspectionHandler;
23
+ /**
24
+ * Default handler for all module types
25
+ */
26
+ class DefaultInspectionHandler extends BaseInspectionHandler {
27
+ constructor() {
28
+ super(...arguments);
29
+ this.id = 'default-handler';
30
+ this.supportedTypes = ['*'];
31
+ this.priority = -1; // Lowest priority
32
+ }
33
+ async handle(module, options) {
34
+ const startTime = Date.now();
35
+ try {
36
+ const result = {
37
+ module: module.fullName,
38
+ type: module.metadata.type,
39
+ version: module.metadata.version,
40
+ description: module.metadata.description,
41
+ rules: module.rules,
42
+ examples: module.examples
43
+ };
44
+ return {
45
+ success: true,
46
+ data: result,
47
+ metadata: {
48
+ handlerId: this.id,
49
+ moduleType: module.metadata.type,
50
+ processingTime: Date.now() - startTime
51
+ }
52
+ };
53
+ }
54
+ catch (error) {
55
+ return {
56
+ success: false,
57
+ error: error instanceof Error ? error.message : String(error),
58
+ metadata: {
59
+ handlerId: this.id,
60
+ moduleType: module.metadata.type,
61
+ processingTime: Date.now() - startTime
62
+ }
63
+ };
64
+ }
65
+ }
66
+ }
67
+ exports.DefaultInspectionHandler = DefaultInspectionHandler;
68
+ /**
69
+ * Workflow module handler
70
+ */
71
+ class WorkflowInspectionHandler extends BaseInspectionHandler {
72
+ constructor() {
73
+ super(...arguments);
74
+ this.id = 'workflow-handler';
75
+ this.supportedTypes = ['workflows'];
76
+ this.priority = 10;
77
+ }
78
+ async handle(module, options) {
79
+ const startTime = Date.now();
80
+ try {
81
+ // Workflow-specific inspection logic
82
+ const result = {
83
+ module: module.fullName,
84
+ type: 'workflow',
85
+ version: module.metadata.version,
86
+ description: module.metadata.description,
87
+ workflowSteps: this.extractWorkflowSteps(module),
88
+ rules: module.rules,
89
+ examples: module.examples
90
+ };
91
+ return {
92
+ success: true,
93
+ data: result,
94
+ metadata: {
95
+ handlerId: this.id,
96
+ moduleType: module.metadata.type,
97
+ processingTime: Date.now() - startTime
98
+ }
99
+ };
100
+ }
101
+ catch (error) {
102
+ return {
103
+ success: false,
104
+ error: error instanceof Error ? error.message : String(error),
105
+ metadata: {
106
+ handlerId: this.id,
107
+ moduleType: module.metadata.type,
108
+ processingTime: Date.now() - startTime
109
+ }
110
+ };
111
+ }
112
+ }
113
+ extractWorkflowSteps(module) {
114
+ // Extract workflow steps from module files
115
+ // This is a placeholder - implement actual extraction logic
116
+ return [];
117
+ }
118
+ }
119
+ exports.WorkflowInspectionHandler = WorkflowInspectionHandler;
120
+ /**
121
+ * Coding standards handler
122
+ */
123
+ class CodingStandardsHandler extends BaseInspectionHandler {
124
+ constructor() {
125
+ super(...arguments);
126
+ this.id = 'coding-standards-handler';
127
+ this.supportedTypes = ['coding-standards'];
128
+ this.priority = 10;
129
+ }
130
+ async handle(module, options) {
131
+ const startTime = Date.now();
132
+ try {
133
+ const result = {
134
+ module: module.fullName,
135
+ type: 'coding-standards',
136
+ version: module.metadata.version,
137
+ description: module.metadata.description,
138
+ standards: this.extractStandards(module),
139
+ rules: module.rules,
140
+ examples: module.examples
141
+ };
142
+ return {
143
+ success: true,
144
+ data: result,
145
+ metadata: {
146
+ handlerId: this.id,
147
+ moduleType: module.metadata.type,
148
+ processingTime: Date.now() - startTime
149
+ }
150
+ };
151
+ }
152
+ catch (error) {
153
+ return {
154
+ success: false,
155
+ error: error instanceof Error ? error.message : String(error),
156
+ metadata: {
157
+ handlerId: this.id,
158
+ moduleType: module.metadata.type,
159
+ processingTime: Date.now() - startTime
160
+ }
161
+ };
162
+ }
163
+ }
164
+ extractStandards(module) {
165
+ // Extract coding standards from module files
166
+ // This is a placeholder - implement actual extraction logic
167
+ return [];
168
+ }
169
+ }
170
+ exports.CodingStandardsHandler = CodingStandardsHandler;
171
+ //# sourceMappingURL=inspection-handlers.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"inspection-handlers.js","sourceRoot":"","sources":["../../src/utils/inspection-handlers.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AA8BH;;GAEG;AACH,MAAsB,qBAAq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AAI,CAAC,GAAG,EAAE,GAAG,SAAS;iBACvC;aACF,CAAC;QACJ,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;gBAC7D,QAAQ,EAAE;oBACR,SAAS,EAAE,IAAI,CAAC,EAAE;oBAClB,UAAU,EAAE,MAAM,CAAC,QAAQ,CAAC,IAAI;oBAChC,cAAc,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;iBACvC;aACF,CAAC;QACJ,CAAC;IACH,CAAC;IAEO,gBAAgB,CAAC,MAAc;QACrC,6CAA6C;QAC7C,4DAA4D;QAC5D,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AA9CD,wDA8CC"}
@@ -118,6 +118,7 @@ export declare function listModuleFiles(modulePath: string, options?: {
118
118
  recursive?: boolean;
119
119
  filter?: string;
120
120
  groupByDirectory?: boolean;
121
+ depth?: number;
121
122
  }): FileInfo[];
122
123
  /**
123
124
  * Group files by directory