-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
260 lines (230 loc) · 6.72 KB
/
index.ts
File metadata and controls
260 lines (230 loc) · 6.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
/**
* @module Effect
* @description
* Atomic Effect-TS services for Wind.
* This module exports all Effect services and composed layer stacks.
* All services now use atomic file structure for better organization and maintainability.
*/
// ============================================================================
// INDIVIDUAL SERVICES
// ============================================================================
// IPC (Inter-Process Communication)
export {
IPCTag as IPC,
IPCTauriLive,
IPCElectronLive,
IPCMockLive,
} from "./IPC.js";
export type { IPCService } from "./IPC.js";
// Sandbox (Preload globals)
export { Sandbox, SandboxLive, SandboxMockLive } from "./Sandbox/index.js";
export type { SandboxService } from "./Sandbox/index.js";
// Configuration
export {
Configuration,
ConfigurationLive,
ConfigurationWithSyncLive,
} from "./Configuration.js";
export type { ConfigurationService } from "./Configuration.js";
// Telemetry (Logging, Spans, Metrics)
export {
Telemetry,
TelemetryLive,
TelemetryMockLive,
withSpan,
withMetric,
} from "./Telemetry/index.js";
export type { TelemetryService } from "./Telemetry/index.js";
// Mountain (Backend connection & RPC)
export { Mountain, MountainLive, MountainMockLive } from "./Mountain/index.js";
export type {
MountainService,
MountainConnectionState,
SyncResource,
} from "./Mountain/index.js";
// MountainSync (Background synchronization)
export {
MountainSyncTag,
MountainSyncLive,
MountainSyncMock,
} from "./MountainSync/index.js";
export type {
MountainSyncService,
SyncConfig,
SyncStats,
MountainSyncResult,
SyncStatus,
} from "./MountainSync/index.js";
// Environment (System detection)
export { EnvironmentTag } from "./Environment/index.js";
export { EnvironmentLive } from "./Environment/index.js";
export { EnvironmentMock } from "./Environment/index.js";
export type {
EnvironmentService,
EnvironmentInfo,
Platform,
Architecture,
} from "./Environment/index.js";
// Health (Service health checks)
export { HealthTag, HealthLive, HealthMock } from "./Health/index.js";
export type {
HealthService,
ServiceHealth,
SystemHealth,
HealthStatus,
} from "./Health/index.js";
// Bootstrap (Orchestration of all stages)
export {
BootstrapTag,
BootstrapLive,
BootstrapMock,
runBootstrap,
} from "./Bootstrap/index.js";
export type {
BootstrapService,
BootstrapOptions,
StageResult,
BootstrapResult,
} from "./Bootstrap/index.js";
// Clipboard (System clipboard access)
export {
ClipboardServiceTag,
LiveClipboardServiceLayer,
MockClipboardServiceLayer,
} from "./Clipboard.js";
export type { ClipboardService, ClipboardProblem } from "./Clipboard.js";
// ActivityBar (VSCode activity bar management)
export {
ActivityBar,
ActivityBarLive,
ActivityBarMockLive,
} from "./ActivityBar/index.js";
export type {
ActivityBarService,
ActivityBarItem,
CreateActivityBarItem,
ActivityBarBadge,
} from "./ActivityBar/index.js";
// Panel (VSCode bottom panel management)
export { Panel, PanelLive, PanelMockLive } from "./Panel/index.js";
export type {
PanelService,
PanelView,
CreatePanelView,
PanelViewType,
} from "./Panel/index.js";
// Sidebar (VSCode sidebar management)
export { Sidebar, SidebarLive, SidebarMockLive } from "./Sidebar/index.js";
export type {
SidebarService,
SidebarPanel,
CreateSidebarPanel,
} from "./Sidebar/index.js";
// StatusBar (VSCode status bar management)
export {
StatusBar,
StatusBarLive,
StatusBarMockLive,
} from "./StatusBar/index.js";
export type {
StatusBarService,
StatusBarItem,
CreateStatusBarItem,
} from "./StatusBar/index.js";
// Workbench (VSCode browser workbench integration)
export {
WorkbenchIntegrationTag as Workbench,
WorkbenchIntegrationLiveLayer as WorkbenchLive,
} from "../Workbench/index.js";
export type {
WorkbenchIntegrationService,
WorkbenchState,
WorkbenchInitState,
WorkbenchIntegrationConfig,
ProviderRegistrationResult,
WorkspaceContext,
WorkbenchDiagnostics,
} from "../Workbench/index.js";
export { WorkbenchIntegrationErrorCode } from "../Workbench/index.js";
// ============================================================================
// LAYERS (For runtime composition)
// ============================================================================
export {
TauriBaseLayer,
TauriLiveLayer,
TauriDevLayer,
} from "./Layers/Tauri.js";
// ============================================================================
// ERROR TYPES
// ============================================================================
// IPC errors
export { IPCInvokeError, IPCSendError, IPCSubscriptionError } from "./IPC.js";
// Configuration errors
export {
ConfigFetchError,
ConfigValidationError,
ConfigApplyError,
} from "./Configuration.js";
// Telemetry errors
export { TelemetryCollectionError } from "./Telemetry/index.js";
// Mountain errors
export {
MountainConnectionError,
MountainRPCError,
MountainSyncError,
MountainStateError,
} from "./Mountain/index.js";
// ActivityBar errors
export {
ActivityBarItemNotFoundError,
ActivityBarUpdateError,
} from "./ActivityBar/index.js";
// Panel errors
export { PanelViewNotFoundError, PanelUpdateError } from "./Panel/index.js";
// Sidebar errors
export {
SidebarPanelNotFoundError,
SidebarUpdateError,
} from "./Sidebar/index.js";
// StatusBar errors
export {
StatusBarItemNotFoundError,
StatusBarUpdateError,
} from "./StatusBar/index.js";
// FileSystem (VSCode-like file system access)
export {
FileSystemProviderTag,
FileSystemProviderLive,
} from "../FileSystem/index.js";
export type { FileSystemProviderService } from "../FileSystem/index.js";
// ============================================================================
// ATOMIC SERVICE BARRELS
// ============================================================================
// Each barrel re-exports the full public surface of its atomic service
// directory. Consumers should prefer importing directly from the named
// barrel (e.g. `./Commands.js`) over reaching into `./Commands/Live.js`.
// Using `export *` avoids duplicating the individual symbol lists that
// would otherwise drift as each service evolves.
export * from "./Commands.js";
export * from "./Decorations.js";
export * from "./Editor.js";
export * from "./Extensions.js";
export * from "./Files.js";
export * from "./History.js";
export * from "./Keybinding.js";
export * from "./Label.js";
export * from "./Language.js";
export * from "./Lifecycle.js";
export * from "./Model.js";
export * from "./Notification.js";
export * from "./Output.js";
export * from "./Progress.js";
export * from "./QuickInput.js";
export * from "./Search.js";
export * from "./Storage.js";
export * from "./Terminal.js";
export * from "./TextFile.js";
export * from "./TextModelResolver.js";
export * from "./Themes.js";
export * from "./WorkingCopy.js";
export * from "./Workspaces.js";