driftdetect-vscode 0.9.25 → 0.9.27
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/package.json +14 -14
- package/.turbo/turbo-build.log +0 -4
- package/.turbo/turbo-test.log +0 -138
- package/LICENSE +0 -121
- package/dist/activation/activation-controller.d.ts +0 -61
- package/dist/activation/activation-controller.d.ts.map +0 -1
- package/dist/activation/activation-controller.js +0 -235
- package/dist/activation/activation-controller.js.map +0 -1
- package/dist/activation/activation-phases.d.ts +0 -28
- package/dist/activation/activation-phases.d.ts.map +0 -1
- package/dist/activation/activation-phases.js +0 -80
- package/dist/activation/activation-phases.js.map +0 -1
- package/dist/activation/index.d.ts +0 -6
- package/dist/activation/index.d.ts.map +0 -1
- package/dist/activation/index.js +0 -6
- package/dist/activation/index.js.map +0 -1
- package/dist/client/connection-config.d.ts +0 -50
- package/dist/client/connection-config.d.ts.map +0 -1
- package/dist/client/connection-config.js +0 -56
- package/dist/client/connection-config.js.map +0 -1
- package/dist/client/connection-manager.d.ts +0 -70
- package/dist/client/connection-manager.d.ts.map +0 -1
- package/dist/client/connection-manager.js +0 -214
- package/dist/client/connection-manager.js.map +0 -1
- package/dist/client/index.d.ts +0 -8
- package/dist/client/index.d.ts.map +0 -1
- package/dist/client/index.js +0 -8
- package/dist/client/index.js.map +0 -1
- package/dist/client/language-client-factory.d.ts +0 -29
- package/dist/client/language-client-factory.d.ts.map +0 -1
- package/dist/client/language-client-factory.js +0 -76
- package/dist/client/language-client-factory.js.map +0 -1
- package/dist/client/request-middleware.d.ts +0 -38
- package/dist/client/request-middleware.d.ts.map +0 -1
- package/dist/client/request-middleware.js +0 -85
- package/dist/client/request-middleware.js.map +0 -1
- package/dist/commands/command-definitions.d.ts +0 -53
- package/dist/commands/command-definitions.d.ts.map +0 -1
- package/dist/commands/command-definitions.js +0 -212
- package/dist/commands/command-definitions.js.map +0 -1
- package/dist/commands/command-router.d.ts +0 -80
- package/dist/commands/command-router.d.ts.map +0 -1
- package/dist/commands/command-router.js +0 -127
- package/dist/commands/command-router.js.map +0 -1
- package/dist/commands/handlers/connection-handlers.d.ts +0 -14
- package/dist/commands/handlers/connection-handlers.d.ts.map +0 -1
- package/dist/commands/handlers/connection-handlers.js +0 -57
- package/dist/commands/handlers/connection-handlers.js.map +0 -1
- package/dist/commands/handlers/constants-handlers.d.ts +0 -11
- package/dist/commands/handlers/constants-handlers.d.ts.map +0 -1
- package/dist/commands/handlers/constants-handlers.js +0 -84
- package/dist/commands/handlers/constants-handlers.js.map +0 -1
- package/dist/commands/handlers/index.d.ts +0 -10
- package/dist/commands/handlers/index.d.ts.map +0 -1
- package/dist/commands/handlers/index.js +0 -10
- package/dist/commands/handlers/index.js.map +0 -1
- package/dist/commands/handlers/pattern-handlers.d.ts +0 -13
- package/dist/commands/handlers/pattern-handlers.d.ts.map +0 -1
- package/dist/commands/handlers/pattern-handlers.js +0 -127
- package/dist/commands/handlers/pattern-handlers.js.map +0 -1
- package/dist/commands/handlers/scan-handlers.d.ts +0 -15
- package/dist/commands/handlers/scan-handlers.d.ts.map +0 -1
- package/dist/commands/handlers/scan-handlers.js +0 -74
- package/dist/commands/handlers/scan-handlers.js.map +0 -1
- package/dist/commands/handlers/ui-handlers.d.ts +0 -12
- package/dist/commands/handlers/ui-handlers.d.ts.map +0 -1
- package/dist/commands/handlers/ui-handlers.js +0 -74
- package/dist/commands/handlers/ui-handlers.js.map +0 -1
- package/dist/commands/handlers/violation-handlers.d.ts +0 -13
- package/dist/commands/handlers/violation-handlers.d.ts.map +0 -1
- package/dist/commands/handlers/violation-handlers.js +0 -76
- package/dist/commands/handlers/violation-handlers.js.map +0 -1
- package/dist/commands/index.d.ts +0 -7
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/commands/index.js +0 -7
- package/dist/commands/index.js.map +0 -1
- package/dist/commands/middleware/connection-check-middleware.d.ts +0 -12
- package/dist/commands/middleware/connection-check-middleware.d.ts.map +0 -1
- package/dist/commands/middleware/connection-check-middleware.js +0 -34
- package/dist/commands/middleware/connection-check-middleware.js.map +0 -1
- package/dist/commands/middleware/index.d.ts +0 -7
- package/dist/commands/middleware/index.d.ts.map +0 -1
- package/dist/commands/middleware/index.js +0 -7
- package/dist/commands/middleware/index.js.map +0 -1
- package/dist/commands/middleware/logging-middleware.d.ts +0 -12
- package/dist/commands/middleware/logging-middleware.d.ts.map +0 -1
- package/dist/commands/middleware/logging-middleware.js +0 -24
- package/dist/commands/middleware/logging-middleware.js.map +0 -1
- package/dist/commands/middleware/telemetry-middleware.d.ts +0 -22
- package/dist/commands/middleware/telemetry-middleware.d.ts.map +0 -1
- package/dist/commands/middleware/telemetry-middleware.js +0 -30
- package/dist/commands/middleware/telemetry-middleware.js.map +0 -1
- package/dist/config/config-manager.d.ts +0 -53
- package/dist/config/config-manager.d.ts.map +0 -1
- package/dist/config/config-manager.js +0 -178
- package/dist/config/config-manager.js.map +0 -1
- package/dist/config/defaults.d.ts +0 -11
- package/dist/config/defaults.d.ts.map +0 -1
- package/dist/config/defaults.js +0 -43
- package/dist/config/defaults.js.map +0 -1
- package/dist/config/index.d.ts +0 -7
- package/dist/config/index.d.ts.map +0 -1
- package/dist/config/index.js +0 -7
- package/dist/config/index.js.map +0 -1
- package/dist/config/validator.d.ts +0 -22
- package/dist/config/validator.d.ts.map +0 -1
- package/dist/config/validator.js +0 -93
- package/dist/config/validator.js.map +0 -1
- package/dist/extension.d.ts +0 -32
- package/dist/extension.d.ts.map +0 -1
- package/dist/extension.js +0 -50
- package/dist/extension.js.map +0 -1
- package/dist/infrastructure/disposable-manager.d.ts +0 -43
- package/dist/infrastructure/disposable-manager.d.ts.map +0 -1
- package/dist/infrastructure/disposable-manager.js +0 -75
- package/dist/infrastructure/disposable-manager.js.map +0 -1
- package/dist/infrastructure/event-bus.d.ts +0 -85
- package/dist/infrastructure/event-bus.d.ts.map +0 -1
- package/dist/infrastructure/event-bus.js +0 -74
- package/dist/infrastructure/event-bus.js.map +0 -1
- package/dist/infrastructure/index.d.ts +0 -10
- package/dist/infrastructure/index.d.ts.map +0 -1
- package/dist/infrastructure/index.js +0 -10
- package/dist/infrastructure/index.js.map +0 -1
- package/dist/infrastructure/logger.d.ts +0 -37
- package/dist/infrastructure/logger.d.ts.map +0 -1
- package/dist/infrastructure/logger.js +0 -86
- package/dist/infrastructure/logger.js.map +0 -1
- package/dist/infrastructure/service-container.d.ts +0 -68
- package/dist/infrastructure/service-container.d.ts.map +0 -1
- package/dist/infrastructure/service-container.js +0 -94
- package/dist/infrastructure/service-container.js.map +0 -1
- package/dist/state/index.d.ts +0 -7
- package/dist/state/index.d.ts.map +0 -1
- package/dist/state/index.js +0 -7
- package/dist/state/index.js.map +0 -1
- package/dist/state/initial-state.d.ts +0 -11
- package/dist/state/initial-state.d.ts.map +0 -1
- package/dist/state/initial-state.js +0 -58
- package/dist/state/initial-state.js.map +0 -1
- package/dist/state/selectors.d.ts +0 -41
- package/dist/state/selectors.d.ts.map +0 -1
- package/dist/state/selectors.js +0 -61
- package/dist/state/selectors.js.map +0 -1
- package/dist/state/state-manager.d.ts +0 -54
- package/dist/state/state-manager.d.ts.map +0 -1
- package/dist/state/state-manager.js +0 -166
- package/dist/state/state-manager.js.map +0 -1
- package/dist/types/config-types.d.ts +0 -69
- package/dist/types/config-types.d.ts.map +0 -1
- package/dist/types/config-types.js +0 -5
- package/dist/types/config-types.js.map +0 -1
- package/dist/types/extension-types.d.ts +0 -45
- package/dist/types/extension-types.d.ts.map +0 -1
- package/dist/types/extension-types.js +0 -5
- package/dist/types/extension-types.js.map +0 -1
- package/dist/types/index.d.ts +0 -12
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -12
- package/dist/types/index.js.map +0 -1
- package/dist/types/lsp-types.d.ts +0 -70
- package/dist/types/lsp-types.d.ts.map +0 -1
- package/dist/types/lsp-types.js +0 -5
- package/dist/types/lsp-types.js.map +0 -1
- package/dist/types/state-types.d.ts +0 -82
- package/dist/types/state-types.d.ts.map +0 -1
- package/dist/types/state-types.js +0 -5
- package/dist/types/state-types.js.map +0 -1
- package/dist/types/vscode-types.d.ts +0 -36
- package/dist/types/vscode-types.d.ts.map +0 -1
- package/dist/types/vscode-types.js +0 -7
- package/dist/types/vscode-types.js.map +0 -1
- package/dist/ui/decorations/decoration-controller.d.ts +0 -45
- package/dist/ui/decorations/decoration-controller.d.ts.map +0 -1
- package/dist/ui/decorations/decoration-controller.js +0 -198
- package/dist/ui/decorations/decoration-controller.js.map +0 -1
- package/dist/ui/decorations/decoration-types.d.ts +0 -28
- package/dist/ui/decorations/decoration-types.d.ts.map +0 -1
- package/dist/ui/decorations/decoration-types.js +0 -98
- package/dist/ui/decorations/decoration-types.js.map +0 -1
- package/dist/ui/decorations/index.d.ts +0 -7
- package/dist/ui/decorations/index.d.ts.map +0 -1
- package/dist/ui/decorations/index.js +0 -6
- package/dist/ui/decorations/index.js.map +0 -1
- package/dist/ui/index.d.ts +0 -7
- package/dist/ui/index.d.ts.map +0 -1
- package/dist/ui/index.js +0 -7
- package/dist/ui/index.js.map +0 -1
- package/dist/ui/notifications/index.d.ts +0 -5
- package/dist/ui/notifications/index.d.ts.map +0 -1
- package/dist/ui/notifications/index.js +0 -5
- package/dist/ui/notifications/index.js.map +0 -1
- package/dist/ui/notifications/notification-service.d.ts +0 -66
- package/dist/ui/notifications/notification-service.d.ts.map +0 -1
- package/dist/ui/notifications/notification-service.js +0 -103
- package/dist/ui/notifications/notification-service.js.map +0 -1
- package/dist/ui/status-bar/index.d.ts +0 -6
- package/dist/ui/status-bar/index.d.ts.map +0 -1
- package/dist/ui/status-bar/index.js +0 -6
- package/dist/ui/status-bar/index.js.map +0 -1
- package/dist/ui/status-bar/status-bar-controller.d.ts +0 -37
- package/dist/ui/status-bar/status-bar-controller.d.ts.map +0 -1
- package/dist/ui/status-bar/status-bar-controller.js +0 -111
- package/dist/ui/status-bar/status-bar-controller.js.map +0 -1
- package/dist/ui/status-bar/status-bar-modes.d.ts +0 -26
- package/dist/ui/status-bar/status-bar-modes.d.ts.map +0 -1
- package/dist/ui/status-bar/status-bar-modes.js +0 -97
- package/dist/ui/status-bar/status-bar-modes.js.map +0 -1
- package/dist/views/base-tree-provider.d.ts +0 -74
- package/dist/views/base-tree-provider.d.ts.map +0 -1
- package/dist/views/base-tree-provider.js +0 -95
- package/dist/views/base-tree-provider.js.map +0 -1
- package/dist/views/constants-tree-provider.d.ts +0 -112
- package/dist/views/constants-tree-provider.d.ts.map +0 -1
- package/dist/views/constants-tree-provider.js +0 -344
- package/dist/views/constants-tree-provider.js.map +0 -1
- package/dist/views/files-tree-provider.d.ts +0 -37
- package/dist/views/files-tree-provider.d.ts.map +0 -1
- package/dist/views/files-tree-provider.js +0 -98
- package/dist/views/files-tree-provider.js.map +0 -1
- package/dist/views/index.d.ts +0 -10
- package/dist/views/index.d.ts.map +0 -1
- package/dist/views/index.js +0 -10
- package/dist/views/index.js.map +0 -1
- package/dist/views/patterns-tree-provider.d.ts +0 -39
- package/dist/views/patterns-tree-provider.d.ts.map +0 -1
- package/dist/views/patterns-tree-provider.js +0 -139
- package/dist/views/patterns-tree-provider.js.map +0 -1
- package/dist/views/violations-tree-provider.d.ts +0 -46
- package/dist/views/violations-tree-provider.d.ts.map +0 -1
- package/dist/views/violations-tree-provider.js +0 -158
- package/dist/views/violations-tree-provider.js.map +0 -1
- package/dist/webview/index.d.ts +0 -7
- package/dist/webview/index.d.ts.map +0 -1
- package/dist/webview/index.js +0 -7
- package/dist/webview/index.js.map +0 -1
- package/dist/webview/webview-manager.d.ts +0 -57
- package/dist/webview/webview-manager.d.ts.map +0 -1
- package/dist/webview/webview-manager.js +0 -167
- package/dist/webview/webview-manager.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "driftdetect-vscode",
|
|
3
3
|
"displayName": "Drift - Architectural Drift Detection",
|
|
4
4
|
"description": "Learn your codebase patterns and enforce consistency. Pattern detection, call graph analysis, security visualization, and MCP integration for AI agents. Supports TypeScript, Python, C#, Java, PHP.",
|
|
5
|
-
"version": "0.9.
|
|
5
|
+
"version": "0.9.27",
|
|
6
6
|
"publisher": "driftdetect",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"icon": "resources/drift-icon.png",
|
|
@@ -377,18 +377,6 @@
|
|
|
377
377
|
}
|
|
378
378
|
]
|
|
379
379
|
},
|
|
380
|
-
"dependencies": {
|
|
381
|
-
"vscode-languageclient": "^9.0.1",
|
|
382
|
-
"driftdetect-lsp": "0.9.25"
|
|
383
|
-
},
|
|
384
|
-
"devDependencies": {
|
|
385
|
-
"@types/node": "^20.10.0",
|
|
386
|
-
"@types/vscode": "^1.85.0",
|
|
387
|
-
"@vitest/coverage-v8": "^1.0.0",
|
|
388
|
-
"@vscode/vsce": "^2.22.0",
|
|
389
|
-
"typescript": "^5.3.0",
|
|
390
|
-
"vitest": "^1.0.0"
|
|
391
|
-
},
|
|
392
380
|
"scripts": {
|
|
393
381
|
"build": "tsc -p tsconfig.json",
|
|
394
382
|
"clean": "rm -rf dist",
|
|
@@ -401,5 +389,17 @@
|
|
|
401
389
|
"typecheck": "tsc --noEmit",
|
|
402
390
|
"vscode:prepublish": "pnpm run build",
|
|
403
391
|
"package": "vsce package --no-dependencies"
|
|
392
|
+
},
|
|
393
|
+
"dependencies": {
|
|
394
|
+
"driftdetect-lsp": "^0.9.26",
|
|
395
|
+
"vscode-languageclient": "^9.0.1"
|
|
396
|
+
},
|
|
397
|
+
"devDependencies": {
|
|
398
|
+
"@types/node": "^20.10.0",
|
|
399
|
+
"@types/vscode": "^1.85.0",
|
|
400
|
+
"@vitest/coverage-v8": "^1.0.0",
|
|
401
|
+
"@vscode/vsce": "^2.22.0",
|
|
402
|
+
"typescript": "^5.3.0",
|
|
403
|
+
"vitest": "^1.0.0"
|
|
404
404
|
}
|
|
405
|
-
}
|
|
405
|
+
}
|
package/.turbo/turbo-build.log
DELETED
package/.turbo/turbo-test.log
DELETED
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
> driftdetect-vscode@0.8.2 test /Users/geoffreyfernald/drift/drift/packages/vscode
|
|
3
|
-
> vitest run
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
[1;1H[0J
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
[1;1H[0J
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
[1;1H[0J
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
[1;1H[0J
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
[1;1H[0J
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
[1;1H[0J
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
[1;1H[0J
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
[1;1H[0J
|
|
110
|
-
[7m[1m[36m RUN [39m[22m[27m [36mv1.6.1[39m [90m/Users/geoffreyfernald/drift/drift/packages/vscode[39m
|
|
111
|
-
|
|
112
|
-
[46m[@drift/core] Config[49m
|
|
113
|
-
[2minclude: [22m[33m**/*.{test,spec}.{ts,tsx}[2m, [22msrc/**/*.{test,spec}.ts[2m, [22mtests/**/*.{test,spec}.ts[39m
|
|
114
|
-
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/.turbo/**[39m
|
|
115
|
-
[46m[@drift/detectors] Config[49m
|
|
116
|
-
[2minclude: [22m[33m**/*.{test,spec}.{ts,tsx}[2m, [22msrc/**/*.{test,spec}.ts[2m, [22mtests/**/*.{test,spec}.ts[39m
|
|
117
|
-
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/.turbo/**[39m
|
|
118
|
-
[46m[@drift/lsp] Config[49m
|
|
119
|
-
[2minclude: [22m[33m**/*.{test,spec}.{ts,tsx}[2m, [22msrc/**/*.{test,spec}.ts[2m, [22mtests/**/*.{test,spec}.ts[39m
|
|
120
|
-
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/.turbo/**[39m
|
|
121
|
-
[46m[@drift/cli] Config[49m
|
|
122
|
-
[2minclude: [22m[33m**/*.{test,spec}.{ts,tsx}[2m, [22msrc/**/*.{test,spec}.ts[2m, [22mtests/**/*.{test,spec}.ts[39m
|
|
123
|
-
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/.turbo/**[39m
|
|
124
|
-
[46m[@drift/ai] Config[49m
|
|
125
|
-
[2minclude: [22m[33m**/*.{test,spec}.{ts,tsx}[2m, [22msrc/**/*.{test,spec}.ts[2m, [22mtests/**/*.{test,spec}.ts[39m
|
|
126
|
-
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/.turbo/**[39m
|
|
127
|
-
[46m[@drift/vscode] Config[49m
|
|
128
|
-
[2minclude: [22m[33m**/*.{test,spec}.{ts,tsx}[2m, [22msrc/**/*.{test,spec}.ts[2m, [22mtests/**/*.{test,spec}.ts[39m
|
|
129
|
-
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/.turbo/**[39m
|
|
130
|
-
[46m[@drift/dashboard] Config[49m
|
|
131
|
-
[2minclude: [22m[33m**/*.{test,spec}.{ts,tsx}[2m, [22msrc/**/*.{test,spec}.ts[2m, [22msrc/**/*.{test,spec}.tsx[2m, [22mtests/**/*.{test,spec}.ts[39m
|
|
132
|
-
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/.turbo/**[39m
|
|
133
|
-
[46m[@drift/mcp] Config[49m
|
|
134
|
-
[2minclude: [22m[33m**/*.{test,spec}.{ts,tsx}[2m, [22msrc/**/*.{test,spec}.ts[2m, [22mtests/**/*.{test,spec}.ts[39m
|
|
135
|
-
[2mexclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[2m, [22m**/.turbo/**[39m
|
|
136
|
-
[2mwatch exclude: [22m[33m**/node_modules/**[2m, [22m**/dist/**[39m
|
|
137
|
-
No test files found, exiting with code 0
|
|
138
|
-
|
package/LICENSE
DELETED
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work.
|
|
38
|
-
|
|
39
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
40
|
-
form, that is based on (or derived from) the Work and for which the
|
|
41
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
42
|
-
represent, as a whole, an original work of authorship.
|
|
43
|
-
|
|
44
|
-
"Contribution" shall mean any work of authorship, including
|
|
45
|
-
the original version of the Work and any modifications or additions
|
|
46
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
47
|
-
submitted to the Licensor for inclusion in the Work by the copyright owner.
|
|
48
|
-
|
|
49
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
50
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
51
|
-
subsequently incorporated within the Work.
|
|
52
|
-
|
|
53
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
54
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
55
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
56
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
57
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
58
|
-
Work and such Derivative Works in Source or Object form.
|
|
59
|
-
|
|
60
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
61
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
62
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
63
|
-
patent license to make, have made, use, offer to sell, sell, import,
|
|
64
|
-
and otherwise transfer the Work.
|
|
65
|
-
|
|
66
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
67
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
68
|
-
modifications, and in Source or Object form, provided that You
|
|
69
|
-
meet the following conditions:
|
|
70
|
-
|
|
71
|
-
(a) You must give any other recipients of the Work or
|
|
72
|
-
Derivative Works a copy of this License; and
|
|
73
|
-
|
|
74
|
-
(b) You must cause any modified files to carry prominent notices
|
|
75
|
-
stating that You changed the files; and
|
|
76
|
-
|
|
77
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
78
|
-
that You distribute, all copyright, patent, trademark, and
|
|
79
|
-
attribution notices from the Source form of the Work; and
|
|
80
|
-
|
|
81
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
82
|
-
distribution, then any Derivative Works that You distribute must
|
|
83
|
-
include a readable copy of the attribution notices contained
|
|
84
|
-
within such NOTICE file.
|
|
85
|
-
|
|
86
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
87
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
88
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
89
|
-
this License, without any additional terms or conditions.
|
|
90
|
-
|
|
91
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
92
|
-
names, trademarks, service marks, or product names of the Licensor.
|
|
93
|
-
|
|
94
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
95
|
-
agreed to in writing, Licensor provides the Work on an "AS IS" BASIS,
|
|
96
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND.
|
|
97
|
-
|
|
98
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
99
|
-
shall any Contributor be liable to You for damages, including any
|
|
100
|
-
direct, indirect, special, incidental, or consequential damages.
|
|
101
|
-
|
|
102
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
103
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
104
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
105
|
-
or other liability obligations.
|
|
106
|
-
|
|
107
|
-
END OF TERMS AND CONDITIONS
|
|
108
|
-
|
|
109
|
-
Copyright 2025 Geoffrey Fernald
|
|
110
|
-
|
|
111
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
112
|
-
you may not use this file except in compliance with the License.
|
|
113
|
-
You may obtain a copy of the License at
|
|
114
|
-
|
|
115
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
116
|
-
|
|
117
|
-
Unless required by applicable law or agreed to in writing, software
|
|
118
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
119
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
120
|
-
See the License for the specific language governing permissions and
|
|
121
|
-
limitations under the License.
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ActivationController - Extension lifecycle orchestrator
|
|
3
|
-
*
|
|
4
|
-
* Single responsibility: Orchestrate phased extension activation.
|
|
5
|
-
*/
|
|
6
|
-
import * as vscode from 'vscode';
|
|
7
|
-
/**
|
|
8
|
-
* Phase timing data
|
|
9
|
-
*/
|
|
10
|
-
interface PhaseTiming {
|
|
11
|
-
name: string;
|
|
12
|
-
duration: number;
|
|
13
|
-
success: boolean;
|
|
14
|
-
error?: string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Activation controller
|
|
18
|
-
*/
|
|
19
|
-
export declare class ActivationController implements vscode.Disposable {
|
|
20
|
-
private readonly context;
|
|
21
|
-
private readonly disposables;
|
|
22
|
-
private readonly services;
|
|
23
|
-
private readonly phaseTimings;
|
|
24
|
-
private activated;
|
|
25
|
-
constructor(context: vscode.ExtensionContext);
|
|
26
|
-
/**
|
|
27
|
-
* Activate the extension
|
|
28
|
-
*/
|
|
29
|
-
activate(): Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
* Deactivate the extension
|
|
32
|
-
*/
|
|
33
|
-
deactivate(): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
* Dispose resources
|
|
36
|
-
*/
|
|
37
|
-
dispose(): void;
|
|
38
|
-
/**
|
|
39
|
-
* Get phase timings for telemetry
|
|
40
|
-
*/
|
|
41
|
-
getPhaseTimings(): PhaseTiming[];
|
|
42
|
-
private runImmediatePhase;
|
|
43
|
-
private runDeferredPhase;
|
|
44
|
-
private runPhase;
|
|
45
|
-
private initializePhase;
|
|
46
|
-
private initializeInfrastructure;
|
|
47
|
-
private initializeState;
|
|
48
|
-
private initializeConfig;
|
|
49
|
-
private initializeStatusBar;
|
|
50
|
-
private initializeConnection;
|
|
51
|
-
private initializeCommands;
|
|
52
|
-
private initializeDecorations;
|
|
53
|
-
private registerLazyProviders;
|
|
54
|
-
private getLogger;
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Factory function for creating activation controller
|
|
58
|
-
*/
|
|
59
|
-
export declare function createActivationController(context: vscode.ExtensionContext): ActivationController;
|
|
60
|
-
export {};
|
|
61
|
-
//# sourceMappingURL=activation-controller.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"activation-controller.d.ts","sourceRoot":"","sources":["../../src/activation/activation-controller.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAiCjC;;GAEG;AACH,UAAU,WAAW;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,qBAAa,oBAAqB,YAAW,MAAM,CAAC,UAAU;IAMhD,OAAO,CAAC,QAAQ,CAAC,OAAO;IALpC,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAoB;IAChD,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAmB;IAC5C,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAqB;IAClD,OAAO,CAAC,SAAS,CAAS;gBAEG,OAAO,EAAE,MAAM,CAAC,gBAAgB;IAK7D;;OAEG;IACG,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;IA6B/B;;OAEG;IACG,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC;IAiBjC;;OAEG;IACH,OAAO,IAAI,IAAI;IAIf;;OAEG;IACH,eAAe,IAAI,WAAW,EAAE;YAIlB,iBAAiB;YAQjB,gBAAgB;YAWhB,QAAQ;YAsBR,eAAe;YA0Bf,wBAAwB;YAcxB,eAAe;YAQf,gBAAgB;YAQhB,mBAAmB;YASnB,oBAAoB;YA2BpB,kBAAkB;YA4BlB,qBAAqB;IAUnC,OAAO,CAAC,qBAAqB;IAO7B,OAAO,CAAC,SAAS;CAGlB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,MAAM,CAAC,gBAAgB,GAC/B,oBAAoB,CAEtB"}
|
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ActivationController - Extension lifecycle orchestrator
|
|
3
|
-
*
|
|
4
|
-
* Single responsibility: Orchestrate phased extension activation.
|
|
5
|
-
*/
|
|
6
|
-
import { getPhasesByType } from './activation-phases.js';
|
|
7
|
-
import { createConnectionManager } from '../client/index.js';
|
|
8
|
-
import { createCommandRouter } from '../commands/command-router.js';
|
|
9
|
-
import { createConnectionHandlers, createScanHandlers, createPatternHandlers, createViolationHandlers, createUIHandlers, } from '../commands/handlers/index.js';
|
|
10
|
-
import { createLoggingMiddleware, createConnectionCheckMiddleware, } from '../commands/middleware/index.js';
|
|
11
|
-
import { createConfigManager } from '../config/index.js';
|
|
12
|
-
import { createLogger, createDisposableManager, createServiceContainer, createEventBus, ServiceKeys, } from '../infrastructure/index.js';
|
|
13
|
-
import { createStateManager } from '../state/index.js';
|
|
14
|
-
import { createDecorationController } from '../ui/decorations/index.js';
|
|
15
|
-
import { createNotificationService } from '../ui/notifications/index.js';
|
|
16
|
-
import { createStatusBar } from '../ui/status-bar/index.js';
|
|
17
|
-
/**
|
|
18
|
-
* Activation controller
|
|
19
|
-
*/
|
|
20
|
-
export class ActivationController {
|
|
21
|
-
context;
|
|
22
|
-
disposables;
|
|
23
|
-
services;
|
|
24
|
-
phaseTimings = [];
|
|
25
|
-
activated = false;
|
|
26
|
-
constructor(context) {
|
|
27
|
-
this.context = context;
|
|
28
|
-
this.disposables = createDisposableManager();
|
|
29
|
-
this.services = createServiceContainer();
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Activate the extension
|
|
33
|
-
*/
|
|
34
|
-
async activate() {
|
|
35
|
-
if (this.activated) {
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
const startTime = performance.now();
|
|
39
|
-
try {
|
|
40
|
-
// Phase 1: Immediate (blocking)
|
|
41
|
-
await this.runImmediatePhase();
|
|
42
|
-
// Phase 2: Deferred (non-blocking)
|
|
43
|
-
setImmediate(() => {
|
|
44
|
-
this.runDeferredPhase().catch(error => {
|
|
45
|
-
this.getLogger().error('Deferred activation failed:', error);
|
|
46
|
-
});
|
|
47
|
-
});
|
|
48
|
-
this.activated = true;
|
|
49
|
-
const totalTime = performance.now() - startTime;
|
|
50
|
-
this.getLogger().info(`Extension activated in ${totalTime.toFixed(2)}ms`);
|
|
51
|
-
}
|
|
52
|
-
catch (error) {
|
|
53
|
-
this.getLogger().error('Activation failed:', error);
|
|
54
|
-
throw error;
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Deactivate the extension
|
|
59
|
-
*/
|
|
60
|
-
async deactivate() {
|
|
61
|
-
this.getLogger().info('Deactivating extension...');
|
|
62
|
-
// Disconnect from server
|
|
63
|
-
const connectionManager = this.services.tryGet(ServiceKeys.ConnectionManager);
|
|
64
|
-
if (connectionManager) {
|
|
65
|
-
await connectionManager.disconnect();
|
|
66
|
-
}
|
|
67
|
-
// Dispose all resources
|
|
68
|
-
this.disposables.dispose();
|
|
69
|
-
this.services.clear();
|
|
70
|
-
this.activated = false;
|
|
71
|
-
this.getLogger().info('Extension deactivated');
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Dispose resources
|
|
75
|
-
*/
|
|
76
|
-
dispose() {
|
|
77
|
-
this.deactivate().catch(() => { });
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Get phase timings for telemetry
|
|
81
|
-
*/
|
|
82
|
-
getPhaseTimings() {
|
|
83
|
-
return [...this.phaseTimings];
|
|
84
|
-
}
|
|
85
|
-
async runImmediatePhase() {
|
|
86
|
-
const phases = getPhasesByType('immediate');
|
|
87
|
-
for (const phase of phases) {
|
|
88
|
-
await this.runPhase(phase.name, () => this.initializePhase(phase.name));
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
async runDeferredPhase() {
|
|
92
|
-
const phases = getPhasesByType('deferred');
|
|
93
|
-
for (const phase of phases) {
|
|
94
|
-
await this.runPhase(phase.name, () => this.initializePhase(phase.name));
|
|
95
|
-
}
|
|
96
|
-
// Register lazy providers
|
|
97
|
-
this.registerLazyProviders();
|
|
98
|
-
}
|
|
99
|
-
async runPhase(name, fn) {
|
|
100
|
-
const startTime = performance.now();
|
|
101
|
-
try {
|
|
102
|
-
await fn();
|
|
103
|
-
this.phaseTimings.push({
|
|
104
|
-
name,
|
|
105
|
-
duration: performance.now() - startTime,
|
|
106
|
-
success: true,
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
catch (error) {
|
|
110
|
-
this.phaseTimings.push({
|
|
111
|
-
name,
|
|
112
|
-
duration: performance.now() - startTime,
|
|
113
|
-
success: false,
|
|
114
|
-
error: error instanceof Error ? error.message : String(error),
|
|
115
|
-
});
|
|
116
|
-
throw error;
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
async initializePhase(name) {
|
|
120
|
-
switch (name) {
|
|
121
|
-
case 'infrastructure':
|
|
122
|
-
await this.initializeInfrastructure();
|
|
123
|
-
break;
|
|
124
|
-
case 'state':
|
|
125
|
-
await this.initializeState();
|
|
126
|
-
break;
|
|
127
|
-
case 'config':
|
|
128
|
-
await this.initializeConfig();
|
|
129
|
-
break;
|
|
130
|
-
case 'statusBar':
|
|
131
|
-
await this.initializeStatusBar();
|
|
132
|
-
break;
|
|
133
|
-
case 'connection':
|
|
134
|
-
await this.initializeConnection();
|
|
135
|
-
break;
|
|
136
|
-
case 'commands':
|
|
137
|
-
await this.initializeCommands();
|
|
138
|
-
break;
|
|
139
|
-
case 'decorations':
|
|
140
|
-
await this.initializeDecorations();
|
|
141
|
-
break;
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
async initializeInfrastructure() {
|
|
145
|
-
// Create logger
|
|
146
|
-
const logger = createLogger('Drift', 'info');
|
|
147
|
-
this.services.register(ServiceKeys.Logger, logger);
|
|
148
|
-
this.disposables.add(logger);
|
|
149
|
-
// Create event bus
|
|
150
|
-
const eventBus = createEventBus();
|
|
151
|
-
this.services.register('eventBus', eventBus);
|
|
152
|
-
this.disposables.add(eventBus);
|
|
153
|
-
logger.info('Infrastructure initialized');
|
|
154
|
-
}
|
|
155
|
-
async initializeState() {
|
|
156
|
-
const stateManager = createStateManager(this.context);
|
|
157
|
-
this.services.register(ServiceKeys.StateManager, stateManager);
|
|
158
|
-
this.disposables.add(stateManager);
|
|
159
|
-
this.getLogger().debug('State manager initialized');
|
|
160
|
-
}
|
|
161
|
-
async initializeConfig() {
|
|
162
|
-
const configManager = createConfigManager(this.getLogger());
|
|
163
|
-
this.services.register(ServiceKeys.ConfigManager, configManager);
|
|
164
|
-
this.disposables.add(configManager);
|
|
165
|
-
this.getLogger().debug('Config manager initialized');
|
|
166
|
-
}
|
|
167
|
-
async initializeStatusBar() {
|
|
168
|
-
const stateManager = this.services.get(ServiceKeys.StateManager);
|
|
169
|
-
const statusBar = createStatusBar(stateManager);
|
|
170
|
-
this.services.register(ServiceKeys.StatusBar, statusBar);
|
|
171
|
-
this.disposables.add(statusBar);
|
|
172
|
-
this.getLogger().debug('Status bar initialized');
|
|
173
|
-
}
|
|
174
|
-
async initializeConnection() {
|
|
175
|
-
const configManager = this.services.get(ServiceKeys.ConfigManager);
|
|
176
|
-
const eventBus = this.services.get('eventBus');
|
|
177
|
-
const stateManager = this.services.get(ServiceKeys.StateManager);
|
|
178
|
-
const connectionManager = createConnectionManager(this.context, this.getLogger(), eventBus, configManager.get('server'));
|
|
179
|
-
this.services.register(ServiceKeys.ConnectionManager, connectionManager);
|
|
180
|
-
this.disposables.add(connectionManager);
|
|
181
|
-
// Update state on connection changes
|
|
182
|
-
connectionManager.onStateChange(status => {
|
|
183
|
-
stateManager.update(draft => {
|
|
184
|
-
draft.connection.status = status;
|
|
185
|
-
});
|
|
186
|
-
});
|
|
187
|
-
// Start connection
|
|
188
|
-
await connectionManager.connect();
|
|
189
|
-
this.getLogger().debug('Connection manager initialized');
|
|
190
|
-
}
|
|
191
|
-
async initializeCommands() {
|
|
192
|
-
const stateManager = this.services.get(ServiceKeys.StateManager);
|
|
193
|
-
const connectionManager = this.services.get(ServiceKeys.ConnectionManager);
|
|
194
|
-
const eventBus = this.services.get('eventBus');
|
|
195
|
-
// Create notification service
|
|
196
|
-
const notifications = createNotificationService(this.getLogger());
|
|
197
|
-
// Create command router
|
|
198
|
-
const router = createCommandRouter(this.context, this.getLogger(), stateManager);
|
|
199
|
-
this.services.register(ServiceKeys.CommandRouter, router);
|
|
200
|
-
this.disposables.add(router);
|
|
201
|
-
// Add middleware
|
|
202
|
-
router
|
|
203
|
-
.use(createLoggingMiddleware(this.getLogger()))
|
|
204
|
-
.use(createConnectionCheckMiddleware(stateManager));
|
|
205
|
-
// Register command handlers
|
|
206
|
-
createConnectionHandlers(router, connectionManager, stateManager, notifications);
|
|
207
|
-
createScanHandlers(router, connectionManager, stateManager, notifications, eventBus);
|
|
208
|
-
createPatternHandlers(router, connectionManager, notifications);
|
|
209
|
-
createViolationHandlers(router, connectionManager, notifications);
|
|
210
|
-
createUIHandlers(router, notifications);
|
|
211
|
-
this.getLogger().debug('Commands initialized');
|
|
212
|
-
}
|
|
213
|
-
async initializeDecorations() {
|
|
214
|
-
const configManager = this.services.get(ServiceKeys.ConfigManager);
|
|
215
|
-
const decorationController = createDecorationController(this.context, configManager);
|
|
216
|
-
this.services.register(ServiceKeys.DecorationController, decorationController);
|
|
217
|
-
this.disposables.add(decorationController);
|
|
218
|
-
this.getLogger().debug('Decorations initialized');
|
|
219
|
-
}
|
|
220
|
-
registerLazyProviders() {
|
|
221
|
-
// Tree views and webviews are registered but not initialized until accessed
|
|
222
|
-
// This keeps activation fast while still registering the providers
|
|
223
|
-
this.getLogger().debug('Lazy providers registered');
|
|
224
|
-
}
|
|
225
|
-
getLogger() {
|
|
226
|
-
return this.services.get(ServiceKeys.Logger);
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
/**
|
|
230
|
-
* Factory function for creating activation controller
|
|
231
|
-
*/
|
|
232
|
-
export function createActivationController(context) {
|
|
233
|
-
return new ActivationController(context);
|
|
234
|
-
}
|
|
235
|
-
//# sourceMappingURL=activation-controller.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":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aAAa,CAAC,CAAC;QACrF,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,WAAW,CAAC,oBAAoB,EAAE,oBAAoB,CAAC,CAAC;QAC/E,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;QAE3C,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAAC;IACpD,CAAC;IAEO,qBAAqB;QAC3B,4EAA4E;QAC5E,mEAAmE;QAEnE,IAAI,CAAC,SAAS,EAAE,CAAC,KAAK,CAAC,2BAA2B,CAAC,CAAC;IACtD,CAAC;IAEO,SAAS;QACf,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAS,WAAW,CAAC,MAAM,CAAC,CAAC;IACvD,CAAC;CACF;AAED;;GAEG;AACH,MAAM,UAAU,0BAA0B,CACxC,OAAgC;IAEhC,OAAO,IAAI,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Activation phases configuration
|
|
3
|
-
*
|
|
4
|
-
* Single responsibility: Define activation phase order and timing.
|
|
5
|
-
*/
|
|
6
|
-
import type { ActivationPhase } from '../types/index.js';
|
|
7
|
-
/**
|
|
8
|
-
* Phase configuration
|
|
9
|
-
*/
|
|
10
|
-
export interface PhaseConfig {
|
|
11
|
-
name: string;
|
|
12
|
-
phase: ActivationPhase;
|
|
13
|
-
timeout: number;
|
|
14
|
-
critical: boolean;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Activation phases in order
|
|
18
|
-
*/
|
|
19
|
-
export declare const ActivationPhases: PhaseConfig[];
|
|
20
|
-
/**
|
|
21
|
-
* Get phases by type
|
|
22
|
-
*/
|
|
23
|
-
export declare function getPhasesByType(type: ActivationPhase): PhaseConfig[];
|
|
24
|
-
/**
|
|
25
|
-
* Get critical phases
|
|
26
|
-
*/
|
|
27
|
-
export declare function getCriticalPhases(): PhaseConfig[];
|
|
28
|
-
//# sourceMappingURL=activation-phases.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"activation-phases.d.ts","sourceRoot":"","sources":["../../src/activation/activation-phases.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAEzD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,eAAe,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,eAAO,MAAM,gBAAgB,EAAE,WAAW,EA4DzC,CAAC;AAEF;;GAEG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,eAAe,GAAG,WAAW,EAAE,CAEpE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,WAAW,EAAE,CAEjD"}
|