@flight-framework/devtools 1.0.0 → 1.0.1
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/README.md +181 -10
- package/dist/bundle-panel.d.ts +88 -0
- package/dist/bundle-panel.d.ts.map +1 -0
- package/dist/bundle-panel.js +371 -0
- package/dist/bundle-panel.js.map +1 -0
- package/dist/cache-panel.d.ts +104 -0
- package/dist/cache-panel.d.ts.map +1 -0
- package/dist/cache-panel.js +372 -0
- package/dist/cache-panel.js.map +1 -0
- package/dist/hydration-panel.d.ts +100 -0
- package/dist/hydration-panel.d.ts.map +1 -0
- package/dist/hydration-panel.js +329 -0
- package/dist/hydration-panel.js.map +1 -0
- package/package.json +51 -39
- package/LICENSE +0 -21
|
@@ -0,0 +1,329 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @flight-framework/devtools - Hydration Panel
|
|
3
|
+
*
|
|
4
|
+
* Visualizes island hydration timing and status.
|
|
5
|
+
* Shows which islands have hydrated, their triggers, and timing.
|
|
6
|
+
*/
|
|
7
|
+
// ============================================================================
|
|
8
|
+
// State Management
|
|
9
|
+
// ============================================================================
|
|
10
|
+
const islands = new Map();
|
|
11
|
+
const subscribers = new Set();
|
|
12
|
+
function notify() {
|
|
13
|
+
const islandsList = Array.from(islands.values());
|
|
14
|
+
const metrics = calculateMetrics(islandsList);
|
|
15
|
+
for (const callback of subscribers) {
|
|
16
|
+
callback(islandsList, metrics);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
function calculateMetrics(islandsList) {
|
|
20
|
+
const hydrated = islandsList.filter(i => i.status === 'hydrated');
|
|
21
|
+
const totalTime = hydrated.reduce((sum, i) => sum + (i.duration || 0), 0);
|
|
22
|
+
const sorted = [...hydrated].sort((a, b) => (b.duration || 0) - (a.duration || 0));
|
|
23
|
+
const byCompletedTime = hydrated
|
|
24
|
+
.filter(i => i.completedAt)
|
|
25
|
+
.sort((a, b) => (a.completedAt || 0) - (b.completedAt || 0));
|
|
26
|
+
return {
|
|
27
|
+
totalIslands: islandsList.length,
|
|
28
|
+
hydratedCount: hydrated.length,
|
|
29
|
+
pendingCount: islandsList.filter(i => i.status === 'pending' || i.status === 'hydrating').length,
|
|
30
|
+
errorCount: islandsList.filter(i => i.status === 'error').length,
|
|
31
|
+
totalHydrationTime: totalTime,
|
|
32
|
+
averageHydrationTime: hydrated.length > 0 ? totalTime / hydrated.length : 0,
|
|
33
|
+
longestHydration: sorted[0],
|
|
34
|
+
firstHydrationTime: byCompletedTime[0]?.completedAt,
|
|
35
|
+
lastHydrationTime: byCompletedTime[byCompletedTime.length - 1]?.completedAt,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
// ============================================================================
|
|
39
|
+
// Public API
|
|
40
|
+
// ============================================================================
|
|
41
|
+
/**
|
|
42
|
+
* Register an island for tracking
|
|
43
|
+
*/
|
|
44
|
+
export function registerIsland(info) {
|
|
45
|
+
const island = {
|
|
46
|
+
...info,
|
|
47
|
+
status: 'pending',
|
|
48
|
+
scheduledAt: performance.now(),
|
|
49
|
+
};
|
|
50
|
+
islands.set(info.id, island);
|
|
51
|
+
notify();
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Mark island as started hydrating
|
|
55
|
+
*/
|
|
56
|
+
export function startHydration(id) {
|
|
57
|
+
const island = islands.get(id);
|
|
58
|
+
if (!island)
|
|
59
|
+
return;
|
|
60
|
+
island.status = 'hydrating';
|
|
61
|
+
island.startedAt = performance.now();
|
|
62
|
+
islands.set(id, island);
|
|
63
|
+
notify();
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Mark island as hydrated
|
|
67
|
+
*/
|
|
68
|
+
export function completeHydration(id) {
|
|
69
|
+
const island = islands.get(id);
|
|
70
|
+
if (!island)
|
|
71
|
+
return;
|
|
72
|
+
const now = performance.now();
|
|
73
|
+
island.status = 'hydrated';
|
|
74
|
+
island.completedAt = now;
|
|
75
|
+
island.duration = island.startedAt ? now - island.startedAt : 0;
|
|
76
|
+
islands.set(id, island);
|
|
77
|
+
notify();
|
|
78
|
+
// Dispatch custom event for external tools
|
|
79
|
+
if (typeof window !== 'undefined') {
|
|
80
|
+
window.dispatchEvent(new CustomEvent('flight:hydration:complete', {
|
|
81
|
+
detail: { id, duration: island.duration, name: island.name },
|
|
82
|
+
}));
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Mark island hydration as failed
|
|
87
|
+
*/
|
|
88
|
+
export function failHydration(id, error) {
|
|
89
|
+
const island = islands.get(id);
|
|
90
|
+
if (!island)
|
|
91
|
+
return;
|
|
92
|
+
island.status = 'error';
|
|
93
|
+
island.error = error;
|
|
94
|
+
island.completedAt = performance.now();
|
|
95
|
+
islands.set(id, island);
|
|
96
|
+
notify();
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* Subscribe to hydration updates
|
|
100
|
+
*/
|
|
101
|
+
export function subscribeToHydration(callback) {
|
|
102
|
+
subscribers.add(callback);
|
|
103
|
+
// Emit current state
|
|
104
|
+
const islandsList = Array.from(islands.values());
|
|
105
|
+
callback(islandsList, calculateMetrics(islandsList));
|
|
106
|
+
return () => subscribers.delete(callback);
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* Get current hydration state
|
|
110
|
+
*/
|
|
111
|
+
export function getHydrationState() {
|
|
112
|
+
const islandsList = Array.from(islands.values());
|
|
113
|
+
return {
|
|
114
|
+
islands: islandsList,
|
|
115
|
+
metrics: calculateMetrics(islandsList),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Clear all tracked islands (for testing or page navigation)
|
|
120
|
+
*/
|
|
121
|
+
export function clearHydrationState() {
|
|
122
|
+
islands.clear();
|
|
123
|
+
notify();
|
|
124
|
+
}
|
|
125
|
+
// ============================================================================
|
|
126
|
+
// Auto-instrumentation
|
|
127
|
+
// ============================================================================
|
|
128
|
+
/**
|
|
129
|
+
* Setup automatic hydration tracking by listening to Flight events
|
|
130
|
+
*/
|
|
131
|
+
export function setupHydrationTracking() {
|
|
132
|
+
if (typeof window === 'undefined')
|
|
133
|
+
return;
|
|
134
|
+
// Listen for Flight's island events
|
|
135
|
+
window.addEventListener('flight:island:register', ((e) => {
|
|
136
|
+
const { id, name, trigger, filePath, propsSize } = e.detail;
|
|
137
|
+
registerIsland({ id, name, trigger, filePath, propsSize });
|
|
138
|
+
}));
|
|
139
|
+
window.addEventListener('flight:island:hydrate:start', ((e) => {
|
|
140
|
+
startHydration(e.detail.id);
|
|
141
|
+
}));
|
|
142
|
+
window.addEventListener('flight:island:hydrate:complete', ((e) => {
|
|
143
|
+
completeHydration(e.detail.id);
|
|
144
|
+
}));
|
|
145
|
+
window.addEventListener('flight:island:hydrate:error', ((e) => {
|
|
146
|
+
failHydration(e.detail.id, e.detail.error);
|
|
147
|
+
}));
|
|
148
|
+
}
|
|
149
|
+
// ============================================================================
|
|
150
|
+
// Panel Rendering (for integration with main panel)
|
|
151
|
+
// ============================================================================
|
|
152
|
+
/**
|
|
153
|
+
* Generate HTML for the hydration panel
|
|
154
|
+
*/
|
|
155
|
+
export function renderHydrationPanel(islandsList, metrics) {
|
|
156
|
+
const statusColors = {
|
|
157
|
+
pending: '#94a3b8',
|
|
158
|
+
hydrating: '#fbbf24',
|
|
159
|
+
hydrated: '#22c55e',
|
|
160
|
+
error: '#ef4444',
|
|
161
|
+
};
|
|
162
|
+
const triggerIcons = {
|
|
163
|
+
load: 'L',
|
|
164
|
+
idle: 'I',
|
|
165
|
+
visible: 'V',
|
|
166
|
+
interaction: 'X',
|
|
167
|
+
media: 'M',
|
|
168
|
+
never: 'N',
|
|
169
|
+
};
|
|
170
|
+
const sortedIslands = [...islandsList].sort((a, b) => {
|
|
171
|
+
// Sort by status (hydrating first, then pending, then hydrated, then error)
|
|
172
|
+
const statusOrder = { hydrating: 0, pending: 1, hydrated: 2, error: 3 };
|
|
173
|
+
return statusOrder[a.status] - statusOrder[b.status];
|
|
174
|
+
});
|
|
175
|
+
return `
|
|
176
|
+
<div class="flight-dt-hydration-panel">
|
|
177
|
+
<div class="flight-dt-hydration-summary">
|
|
178
|
+
<div class="flight-dt-metric">
|
|
179
|
+
<span class="flight-dt-metric-value">${metrics.hydratedCount}/${metrics.totalIslands}</span>
|
|
180
|
+
<span class="flight-dt-metric-label">Hydrated</span>
|
|
181
|
+
</div>
|
|
182
|
+
<div class="flight-dt-metric">
|
|
183
|
+
<span class="flight-dt-metric-value">${metrics.totalHydrationTime.toFixed(0)}ms</span>
|
|
184
|
+
<span class="flight-dt-metric-label">Total Time</span>
|
|
185
|
+
</div>
|
|
186
|
+
<div class="flight-dt-metric">
|
|
187
|
+
<span class="flight-dt-metric-value">${metrics.averageHydrationTime.toFixed(1)}ms</span>
|
|
188
|
+
<span class="flight-dt-metric-label">Avg Time</span>
|
|
189
|
+
</div>
|
|
190
|
+
${metrics.pendingCount > 0 ? `
|
|
191
|
+
<div class="flight-dt-metric flight-dt-metric--warning">
|
|
192
|
+
<span class="flight-dt-metric-value">${metrics.pendingCount}</span>
|
|
193
|
+
<span class="flight-dt-metric-label">Pending</span>
|
|
194
|
+
</div>
|
|
195
|
+
` : ''}
|
|
196
|
+
</div>
|
|
197
|
+
|
|
198
|
+
<div class="flight-dt-hydration-list">
|
|
199
|
+
${sortedIslands.map(island => `
|
|
200
|
+
<div class="flight-dt-island" data-status="${island.status}">
|
|
201
|
+
<div class="flight-dt-island-header">
|
|
202
|
+
<span class="flight-dt-island-status" style="background: ${statusColors[island.status]}"></span>
|
|
203
|
+
<span class="flight-dt-island-trigger" title="${island.trigger}">${triggerIcons[island.trigger]}</span>
|
|
204
|
+
<span class="flight-dt-island-name">${escapeHtml(island.name)}</span>
|
|
205
|
+
<span class="flight-dt-island-time">${island.duration ? `${island.duration.toFixed(1)}ms` : '...'}</span>
|
|
206
|
+
</div>
|
|
207
|
+
${island.error ? `<div class="flight-dt-island-error">${escapeHtml(island.error)}</div>` : ''}
|
|
208
|
+
</div>
|
|
209
|
+
`).join('')}
|
|
210
|
+
</div>
|
|
211
|
+
|
|
212
|
+
${sortedIslands.length === 0 ? '<div class="flight-dt-empty">No islands detected</div>' : ''}
|
|
213
|
+
</div>
|
|
214
|
+
`;
|
|
215
|
+
}
|
|
216
|
+
function escapeHtml(str) {
|
|
217
|
+
return str
|
|
218
|
+
.replace(/&/g, '&')
|
|
219
|
+
.replace(/</g, '<')
|
|
220
|
+
.replace(/>/g, '>');
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* CSS styles for the hydration panel
|
|
224
|
+
*/
|
|
225
|
+
export const hydrationPanelStyles = `
|
|
226
|
+
.flight-dt-hydration-panel {
|
|
227
|
+
padding: 8px;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
.flight-dt-hydration-summary {
|
|
231
|
+
display: flex;
|
|
232
|
+
gap: 16px;
|
|
233
|
+
padding: 8px;
|
|
234
|
+
background: rgba(255, 255, 255, 0.05);
|
|
235
|
+
border-radius: 6px;
|
|
236
|
+
margin-bottom: 12px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
.flight-dt-metric {
|
|
240
|
+
display: flex;
|
|
241
|
+
flex-direction: column;
|
|
242
|
+
align-items: center;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
.flight-dt-metric-value {
|
|
246
|
+
font-size: 18px;
|
|
247
|
+
font-weight: 600;
|
|
248
|
+
color: #e0e0e0;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
.flight-dt-metric-label {
|
|
252
|
+
font-size: 10px;
|
|
253
|
+
color: #888;
|
|
254
|
+
text-transform: uppercase;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
.flight-dt-metric--warning .flight-dt-metric-value {
|
|
258
|
+
color: #fbbf24;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
.flight-dt-hydration-list {
|
|
262
|
+
display: flex;
|
|
263
|
+
flex-direction: column;
|
|
264
|
+
gap: 4px;
|
|
265
|
+
max-height: 200px;
|
|
266
|
+
overflow-y: auto;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
.flight-dt-island {
|
|
270
|
+
display: flex;
|
|
271
|
+
flex-direction: column;
|
|
272
|
+
padding: 6px 8px;
|
|
273
|
+
background: rgba(255, 255, 255, 0.03);
|
|
274
|
+
border-radius: 4px;
|
|
275
|
+
font-size: 12px;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.flight-dt-island-header {
|
|
279
|
+
display: flex;
|
|
280
|
+
align-items: center;
|
|
281
|
+
gap: 8px;
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.flight-dt-island-status {
|
|
285
|
+
width: 8px;
|
|
286
|
+
height: 8px;
|
|
287
|
+
border-radius: 50%;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.flight-dt-island-trigger {
|
|
291
|
+
width: 16px;
|
|
292
|
+
height: 16px;
|
|
293
|
+
display: flex;
|
|
294
|
+
align-items: center;
|
|
295
|
+
justify-content: center;
|
|
296
|
+
background: rgba(255, 255, 255, 0.1);
|
|
297
|
+
border-radius: 3px;
|
|
298
|
+
font-size: 10px;
|
|
299
|
+
font-weight: 600;
|
|
300
|
+
color: #888;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.flight-dt-island-name {
|
|
304
|
+
flex: 1;
|
|
305
|
+
color: #e0e0e0;
|
|
306
|
+
font-family: monospace;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.flight-dt-island-time {
|
|
310
|
+
color: #888;
|
|
311
|
+
font-family: monospace;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
.flight-dt-island-error {
|
|
315
|
+
margin-top: 4px;
|
|
316
|
+
padding: 4px 8px;
|
|
317
|
+
background: rgba(239, 68, 68, 0.1);
|
|
318
|
+
border-radius: 3px;
|
|
319
|
+
color: #ef4444;
|
|
320
|
+
font-size: 11px;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.flight-dt-empty {
|
|
324
|
+
text-align: center;
|
|
325
|
+
color: #666;
|
|
326
|
+
padding: 20px;
|
|
327
|
+
}
|
|
328
|
+
`;
|
|
329
|
+
//# sourceMappingURL=hydration-panel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hydration-panel.js","sourceRoot":"","sources":["../src/hydration-panel.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA4EH,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E,MAAM,OAAO,GAAqC,IAAI,GAAG,EAAE,CAAC;AAC5D,MAAM,WAAW,GAA6E,IAAI,GAAG,EAAE,CAAC;AAExG,SAAS,MAAM;IACX,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IACjD,MAAM,OAAO,GAAG,gBAAgB,CAAC,WAAW,CAAC,CAAC;IAE9C,KAAK,MAAM,QAAQ,IAAI,WAAW,EAAE,CAAC;QACjC,QAAQ,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IACnC,CAAC;AACL,CAAC;AAED,SAAS,gBAAgB,CAAC,WAAkC;IACxD,MAAM,QAAQ,GAAG,WAAW,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,KAAK,UAAU,CAAC,CAAC;IAClE,MAAM,SAAS,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1E,MAAM,MAAM,GAAG,CAAC,GAAG,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,QAAQ,IAAI,CAAC,CAAC,CAAC,CAAC;IAEnF,MAAM,eA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I,CAAC,EAAE,CAAC;;;cAGb,aAAa,CAAC,MAAM,KAAK,CAAC,CAAC,CAAC,CAAC,wDAAwD,CAAC,CAAC,CAAC,EAAE;;KAEnG,CAAC;AACN,CAAC;AAED,SAAS,UAAU,CAAC,GAAW;IAC3B,OAAO,GAAG;SACL,OAAO,CAAC,IAAI,EAAE,OAAO,CAAC;SACtB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;SACrB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;AAC/B,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuGnC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,43 +1,55 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
2
|
+
"name": "@flight-framework/devtools",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Development tools and debugging panel for Flight Framework",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist"
|
|
8
|
+
],
|
|
9
|
+
"main": "./dist/index.js",
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./panel": {
|
|
17
|
+
"types": "./dist/panel.d.ts",
|
|
18
|
+
"import": "./dist/panel.js"
|
|
19
|
+
},
|
|
20
|
+
"./instrumentation": {
|
|
21
|
+
"types": "./dist/instrumentation.d.ts",
|
|
22
|
+
"import": "./dist/instrumentation.js"
|
|
23
|
+
},
|
|
24
|
+
"./hydration": {
|
|
25
|
+
"types": "./dist/hydration-panel.d.ts",
|
|
26
|
+
"import": "./dist/hydration-panel.js"
|
|
27
|
+
},
|
|
28
|
+
"./bundle": {
|
|
29
|
+
"types": "./dist/bundle-panel.d.ts",
|
|
30
|
+
"import": "./dist/bundle-panel.js"
|
|
31
|
+
},
|
|
32
|
+
"./cache": {
|
|
33
|
+
"types": "./dist/cache-panel.d.ts",
|
|
34
|
+
"import": "./dist/cache-panel.js"
|
|
35
|
+
}
|
|
15
36
|
},
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsc",
|
|
39
|
+
"dev": "tsc --watch"
|
|
19
40
|
},
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
"
|
|
34
|
-
"devtools",
|
|
35
|
-
"debugging",
|
|
36
|
-
"development"
|
|
37
|
-
],
|
|
38
|
-
"license": "MIT",
|
|
39
|
-
"scripts": {
|
|
40
|
-
"build": "tsc",
|
|
41
|
-
"dev": "tsc --watch"
|
|
42
|
-
}
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@flight-framework/core": ">=0.3.0"
|
|
43
|
+
},
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/node": "^22.0.0",
|
|
46
|
+
"typescript": "^5.7.0"
|
|
47
|
+
},
|
|
48
|
+
"keywords": [
|
|
49
|
+
"flight",
|
|
50
|
+
"devtools",
|
|
51
|
+
"debugging",
|
|
52
|
+
"development"
|
|
53
|
+
],
|
|
54
|
+
"license": "MIT"
|
|
43
55
|
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2024-2026 Flight Contributors
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|