@industry-theme/repository-composition-panels 0.7.13 → 0.7.14
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/dist/{BufferResource-KoeNWrHZ.js → BufferResource-DME1VWVJ.js} +2 -2
- package/dist/{BufferResource-KoeNWrHZ.js.map → BufferResource-DME1VWVJ.js.map} +1 -1
- package/dist/{CanvasRenderer-C1moSsty.js → CanvasRenderer-Md8Ayshs.js} +3 -3
- package/dist/{CanvasRenderer-C1moSsty.js.map → CanvasRenderer-Md8Ayshs.js.map} +1 -1
- package/dist/{Filter-DcizUkPS.js → Filter-Bi2t_gmW.js} +2 -2
- package/dist/{Filter-DcizUkPS.js.map → Filter-Bi2t_gmW.js.map} +1 -1
- package/dist/{RenderTargetSystem-DjqXLF8u.js → RenderTargetSystem-D98tiHim.js} +3 -3
- package/dist/{RenderTargetSystem-DjqXLF8u.js.map → RenderTargetSystem-D98tiHim.js.map} +1 -1
- package/dist/{WebGLRenderer-BKDGlS-q.js → WebGLRenderer-2YtxQhbh.js} +4 -4
- package/dist/{WebGLRenderer-BKDGlS-q.js.map → WebGLRenderer-2YtxQhbh.js.map} +1 -1
- package/dist/{WebGPURenderer-DcCqN3bM.js → WebGPURenderer-kS6gO2Xc.js} +4 -4
- package/dist/{WebGPURenderer-DcCqN3bM.js.map → WebGPURenderer-kS6gO2Xc.js.map} +1 -1
- package/dist/{browserAll-uHRmnFVM.js → browserAll-TZZf5l7B.js} +3 -3
- package/dist/{browserAll-uHRmnFVM.js.map → browserAll-TZZf5l7B.js.map} +1 -1
- package/dist/{index-DoDkGrtt.js → index-pPFTSf2O.js} +2157 -7343
- package/dist/{index-DoDkGrtt.js.map → index-pPFTSf2O.js.map} +1 -1
- package/dist/{init-CfZgzsOo.js → init-CfSmqCnm.js} +3 -3
- package/dist/{init-CfZgzsOo.js.map → init-CfSmqCnm.js.map} +1 -1
- package/dist/panels.bundle.js +1 -1
- package/dist/webworkerAll-TcJuZTza.js +3 -0
- package/dist/webworkerAll-TcJuZTza.js.map +1 -0
- package/package.json +1 -1
- package/dist/assets/orchestrators/index.d.ts +0 -28
- package/dist/assets/orchestrators/index.d.ts.map +0 -1
- package/dist/index.d.ts +0 -35
- package/dist/index.d.ts.map +0 -1
- package/dist/mocks/panelContext.d.ts +0 -24
- package/dist/mocks/panelContext.d.ts.map +0 -1
- package/dist/panels/CollectionMapPanel.d.ts +0 -132
- package/dist/panels/CollectionMapPanel.d.ts.map +0 -1
- package/dist/panels/GitChangesPanel.d.ts +0 -48
- package/dist/panels/GitChangesPanel.d.ts.map +0 -1
- package/dist/panels/PackageCompositionPanel.d.ts +0 -37
- package/dist/panels/PackageCompositionPanel.d.ts.map +0 -1
- package/dist/panels/SearchPanel.d.ts +0 -33
- package/dist/panels/SearchPanel.d.ts.map +0 -1
- package/dist/panels/TelemetryCoveragePanel.d.ts +0 -48
- package/dist/panels/TelemetryCoveragePanel.d.ts.map +0 -1
- package/dist/panels/components/DependencyInfoModal.d.ts +0 -8
- package/dist/panels/components/DependencyInfoModal.d.ts.map +0 -1
- package/dist/panels/components/DependencyRow.d.ts +0 -8
- package/dist/panels/components/DependencyRow.d.ts.map +0 -1
- package/dist/panels/components/EmptyDependencies.d.ts +0 -7
- package/dist/panels/components/EmptyDependencies.d.ts.map +0 -1
- package/dist/panels/components/FilterBar.d.ts +0 -19
- package/dist/panels/components/FilterBar.d.ts.map +0 -1
- package/dist/panels/components/InheritedConfigIndicator.d.ts +0 -27
- package/dist/panels/components/InheritedConfigIndicator.d.ts.map +0 -1
- package/dist/panels/components/LensReadinessSection.d.ts +0 -8
- package/dist/panels/components/LensReadinessSection.d.ts.map +0 -1
- package/dist/panels/components/OrchestratorBadge.d.ts +0 -11
- package/dist/panels/components/OrchestratorBadge.d.ts.map +0 -1
- package/dist/panels/components/OtherScriptsSection.d.ts +0 -9
- package/dist/panels/components/OtherScriptsSection.d.ts.map +0 -1
- package/dist/panels/components/PackageDetailCard.d.ts +0 -18
- package/dist/panels/components/PackageDetailCard.d.ts.map +0 -1
- package/dist/panels/components/PackageLoadingGraph.d.ts +0 -3
- package/dist/panels/components/PackageLoadingGraph.d.ts.map +0 -1
- package/dist/panels/components/PackageManagerIcon.d.ts +0 -10
- package/dist/panels/components/PackageManagerIcon.d.ts.map +0 -1
- package/dist/panels/components/PackageSummaryCard.d.ts +0 -10
- package/dist/panels/components/PackageSummaryCard.d.ts.map +0 -1
- package/dist/panels/components/index.d.ts +0 -11
- package/dist/panels/components/index.d.ts.map +0 -1
- package/dist/panels/dependency-graph/DependencyGraphPanel.d.ts +0 -20
- package/dist/panels/dependency-graph/DependencyGraphPanel.d.ts.map +0 -1
- package/dist/panels/dependency-graph/dependencyToCanvas.d.ts +0 -20
- package/dist/panels/dependency-graph/dependencyToCanvas.d.ts.map +0 -1
- package/dist/panels/dependency-graph/forceLayout.d.ts +0 -38
- package/dist/panels/dependency-graph/forceLayout.d.ts.map +0 -1
- package/dist/panels/dependency-graph/index.d.ts +0 -5
- package/dist/panels/dependency-graph/index.d.ts.map +0 -1
- package/dist/panels/overworld-map/BuildingSizeTest.d.ts +0 -11
- package/dist/panels/overworld-map/BuildingSizeTest.d.ts.map +0 -1
- package/dist/panels/overworld-map/LayoutEngineTest.d.ts +0 -24
- package/dist/panels/overworld-map/LayoutEngineTest.d.ts.map +0 -1
- package/dist/panels/overworld-map/LicenseSignTest.d.ts +0 -7
- package/dist/panels/overworld-map/LicenseSignTest.d.ts.map +0 -1
- package/dist/panels/overworld-map/OverworldMapPanel.d.ts +0 -62
- package/dist/panels/overworld-map/OverworldMapPanel.d.ts.map +0 -1
- package/dist/panels/overworld-map/PackageExpansionTest.d.ts +0 -25
- package/dist/panels/overworld-map/PackageExpansionTest.d.ts.map +0 -1
- package/dist/panels/overworld-map/RegionEditingTest.d.ts +0 -10
- package/dist/panels/overworld-map/RegionEditingTest.d.ts.map +0 -1
- package/dist/panels/overworld-map/collaboratorDecoration.d.ts +0 -38
- package/dist/panels/overworld-map/collaboratorDecoration.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/IsometricInteractionManager.d.ts +0 -159
- package/dist/panels/overworld-map/components/IsometricInteractionManager.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/IsometricPathManager.d.ts +0 -50
- package/dist/panels/overworld-map/components/IsometricPathManager.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/IsometricPixiCanvas.d.ts +0 -88
- package/dist/panels/overworld-map/components/IsometricPixiCanvas.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/IsometricRenderer.d.ts +0 -141
- package/dist/panels/overworld-map/components/IsometricRenderer.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/RegionTracker.d.ts +0 -62
- package/dist/panels/overworld-map/components/RegionTracker.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/buildingSpriteGenerator.d.ts +0 -19
- package/dist/panels/overworld-map/components/buildingSpriteGenerator.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/collaboratorDecorationSprites.d.ts +0 -25
- package/dist/panels/overworld-map/components/collaboratorDecorationSprites.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/licenseSignSprites.d.ts +0 -122
- package/dist/panels/overworld-map/components/licenseSignSprites.d.ts.map +0 -1
- package/dist/panels/overworld-map/components/starDecorationSprites.d.ts +0 -18
- package/dist/panels/overworld-map/components/starDecorationSprites.d.ts.map +0 -1
- package/dist/panels/overworld-map/genericMapper.d.ts +0 -81
- package/dist/panels/overworld-map/genericMapper.d.ts.map +0 -1
- package/dist/panels/overworld-map/index.d.ts +0 -11
- package/dist/panels/overworld-map/index.d.ts.map +0 -1
- package/dist/panels/overworld-map/isometricUtils.d.ts +0 -150
- package/dist/panels/overworld-map/isometricUtils.d.ts.map +0 -1
- package/dist/panels/overworld-map/packageExpansion.d.ts +0 -15
- package/dist/panels/overworld-map/packageExpansion.d.ts.map +0 -1
- package/dist/panels/overworld-map/spriteGenerator.d.ts +0 -53
- package/dist/panels/overworld-map/spriteGenerator.d.ts.map +0 -1
- package/dist/panels/overworld-map/spriteLayoutEngine.d.ts +0 -103
- package/dist/panels/overworld-map/spriteLayoutEngine.d.ts.map +0 -1
- package/dist/panels/overworld-map/starDecoration.d.ts +0 -37
- package/dist/panels/overworld-map/starDecoration.d.ts.map +0 -1
- package/dist/panels/overworld-map/test-setup.d.ts +0 -6
- package/dist/panels/overworld-map/test-setup.d.ts.map +0 -1
- package/dist/panels/overworld-map/types.d.ts +0 -228
- package/dist/panels/overworld-map/types.d.ts.map +0 -1
- package/dist/services/LocalSearchService.d.ts +0 -70
- package/dist/services/LocalSearchService.d.ts.map +0 -1
- package/dist/tools/index.d.ts +0 -32
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools.bundle.js +0 -106
- package/dist/types/composition.d.ts +0 -22
- package/dist/types/composition.d.ts.map +0 -1
- package/dist/types/dependencies.d.ts +0 -26
- package/dist/types/dependencies.d.ts.map +0 -1
- package/dist/types/index.d.ts +0 -94
- package/dist/types/index.d.ts.map +0 -1
- package/dist/utils/envParser.d.ts +0 -29
- package/dist/utils/envParser.d.ts.map +0 -1
- package/dist/utils/licenseColors.d.ts +0 -13
- package/dist/utils/licenseColors.d.ts.map +0 -1
- package/dist/utils/repositoryAging.d.ts +0 -26
- package/dist/utils/repositoryAging.d.ts.map +0 -1
- package/dist/utils/repositoryScaling.d.ts +0 -40
- package/dist/utils/repositoryScaling.d.ts.map +0 -1
- package/dist/webworkerAll-CrM1lwcs.js +0 -3
- package/dist/webworkerAll-CrM1lwcs.js.map +0 -1
|
@@ -1,228 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core type definitions for 8-bit overworld map
|
|
3
|
-
*/
|
|
4
|
-
import type { AgingMetrics } from '../../utils/repositoryAging';
|
|
5
|
-
export declare const TILE_SIZE = 32;
|
|
6
|
-
export declare const ISO_TILE_WIDTH = 32;
|
|
7
|
-
export declare const ISO_TILE_HEIGHT = 16;
|
|
8
|
-
/**
|
|
9
|
-
* Basic point in grid coordinates
|
|
10
|
-
*/
|
|
11
|
-
export interface GridPoint {
|
|
12
|
-
gridX: number;
|
|
13
|
-
gridY: number;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Theme/Biome types for different package languages
|
|
17
|
-
*/
|
|
18
|
-
export type BiomeTheme = 'grass' | 'desert' | 'water' | 'volcano' | 'ice';
|
|
19
|
-
/**
|
|
20
|
-
* Tile types for the terrain grid
|
|
21
|
-
*/
|
|
22
|
-
export type TileType = 'grass' | 'water' | 'path' | 'mountain' | 'sand' | 'ice' | 'lava' | 'empty';
|
|
23
|
-
/**
|
|
24
|
-
* Individual tile in the grid
|
|
25
|
-
*/
|
|
26
|
-
export interface Tile {
|
|
27
|
-
x: number;
|
|
28
|
-
y: number;
|
|
29
|
-
type: TileType;
|
|
30
|
-
spriteIndex: number;
|
|
31
|
-
biome: BiomeTheme;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Location node types (different building/landmark types)
|
|
35
|
-
*/
|
|
36
|
-
export type LocationNodeType = 'castle' | 'fortress' | 'house' | 'tower' | 'pipe' | 'git-repo' | 'monorepo';
|
|
37
|
-
/**
|
|
38
|
-
* Location node representing a package on the map
|
|
39
|
-
*/
|
|
40
|
-
export interface PackageSubdivision {
|
|
41
|
-
name: string;
|
|
42
|
-
size: number;
|
|
43
|
-
sprite: string;
|
|
44
|
-
}
|
|
45
|
-
export interface LocationNode {
|
|
46
|
-
id: string;
|
|
47
|
-
gridX: number;
|
|
48
|
-
gridY: number;
|
|
49
|
-
type: LocationNodeType;
|
|
50
|
-
sprite: string;
|
|
51
|
-
size: number;
|
|
52
|
-
theme: BiomeTheme;
|
|
53
|
-
label: string;
|
|
54
|
-
packageType: 'node' | 'python' | 'cargo' | 'go' | 'package';
|
|
55
|
-
isRoot: boolean;
|
|
56
|
-
color: string;
|
|
57
|
-
aging?: AgingMetrics;
|
|
58
|
-
subdivisions?: PackageSubdivision[];
|
|
59
|
-
customSpritePath?: string;
|
|
60
|
-
stars?: number;
|
|
61
|
-
collaborators?: number;
|
|
62
|
-
license?: string;
|
|
63
|
-
ownerAvatar?: string;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Path connection style
|
|
67
|
-
*/
|
|
68
|
-
export type PathStyle = 'dotted' | 'solid' | 'dashed' | 'bridge';
|
|
69
|
-
/**
|
|
70
|
-
* Path connection type
|
|
71
|
-
*/
|
|
72
|
-
export type PathConnectionType = 'dependency' | 'dev-dependency';
|
|
73
|
-
/**
|
|
74
|
-
* Connection path between two locations
|
|
75
|
-
*/
|
|
76
|
-
export interface PathConnection {
|
|
77
|
-
id: string;
|
|
78
|
-
from: string;
|
|
79
|
-
to: string;
|
|
80
|
-
points: GridPoint[];
|
|
81
|
-
type: PathConnectionType;
|
|
82
|
-
style: PathStyle;
|
|
83
|
-
}
|
|
84
|
-
/**
|
|
85
|
-
* Decorative sprite types
|
|
86
|
-
*/
|
|
87
|
-
export type DecorativeSpriteType = 'cloud' | 'tree' | 'bush' | 'rock' | 'flower' | 'mushroom' | 'cactus';
|
|
88
|
-
/**
|
|
89
|
-
* Layer for z-ordering
|
|
90
|
-
*/
|
|
91
|
-
export type RenderLayer = 'background' | 'foreground';
|
|
92
|
-
/**
|
|
93
|
-
* Decorative sprite for visual flair
|
|
94
|
-
*/
|
|
95
|
-
export interface DecorativeSprite {
|
|
96
|
-
id: string;
|
|
97
|
-
gridX: number;
|
|
98
|
-
gridY: number;
|
|
99
|
-
sprite: DecorativeSpriteType;
|
|
100
|
-
layer: RenderLayer;
|
|
101
|
-
animated?: boolean;
|
|
102
|
-
animationSpeed?: number;
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Biome zone definition
|
|
106
|
-
*/
|
|
107
|
-
export interface BiomeZone {
|
|
108
|
-
id: string;
|
|
109
|
-
bounds: {
|
|
110
|
-
x: number;
|
|
111
|
-
y: number;
|
|
112
|
-
width: number;
|
|
113
|
-
height: number;
|
|
114
|
-
};
|
|
115
|
-
theme: BiomeTheme;
|
|
116
|
-
backgroundColor: string;
|
|
117
|
-
}
|
|
118
|
-
/**
|
|
119
|
-
* Camera/viewport configuration
|
|
120
|
-
*/
|
|
121
|
-
export interface Camera {
|
|
122
|
-
x: number;
|
|
123
|
-
y: number;
|
|
124
|
-
viewportWidth: number;
|
|
125
|
-
viewportHeight: number;
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* Map limits and configuration
|
|
129
|
-
*/
|
|
130
|
-
export declare const MAX_NODES_PER_MAP = 12;
|
|
131
|
-
export declare const MAP_TRANSITION_THRESHOLD = 10;
|
|
132
|
-
export declare const REGION_SIZE_TILES = 25;
|
|
133
|
-
/**
|
|
134
|
-
* Region within a unified map
|
|
135
|
-
*/
|
|
136
|
-
export interface MapRegion {
|
|
137
|
-
id: string;
|
|
138
|
-
name: string;
|
|
139
|
-
description?: string;
|
|
140
|
-
gridPosition?: {
|
|
141
|
-
row: number;
|
|
142
|
-
col: number;
|
|
143
|
-
};
|
|
144
|
-
bounds: {
|
|
145
|
-
x: number;
|
|
146
|
-
y: number;
|
|
147
|
-
width: number;
|
|
148
|
-
height: number;
|
|
149
|
-
};
|
|
150
|
-
centerX: number;
|
|
151
|
-
centerY: number;
|
|
152
|
-
nodeIds: string[];
|
|
153
|
-
}
|
|
154
|
-
/**
|
|
155
|
-
* Complete overworld map data structure (unified map with regions)
|
|
156
|
-
*/
|
|
157
|
-
export interface OverworldMap {
|
|
158
|
-
width: number;
|
|
159
|
-
height: number;
|
|
160
|
-
tiles: Tile[];
|
|
161
|
-
nodes: LocationNode[];
|
|
162
|
-
paths: PathConnection[];
|
|
163
|
-
decorations?: DecorativeSprite[];
|
|
164
|
-
biomeZones?: BiomeZone[];
|
|
165
|
-
regions: MapRegion[];
|
|
166
|
-
name: string;
|
|
167
|
-
description?: string;
|
|
168
|
-
}
|
|
169
|
-
/**
|
|
170
|
-
* Collection of multiple overworld maps (deprecated - use single map with regions)
|
|
171
|
-
* @deprecated Use OverworldMap with regions instead
|
|
172
|
-
*/
|
|
173
|
-
export interface OverworldMapCollection {
|
|
174
|
-
maps: OverworldMap[];
|
|
175
|
-
currentMapIndex: number;
|
|
176
|
-
totalPackages: number;
|
|
177
|
-
}
|
|
178
|
-
/**
|
|
179
|
-
* Isometric coordinate conversion
|
|
180
|
-
*/
|
|
181
|
-
export interface IsometricCoords {
|
|
182
|
-
screenX: number;
|
|
183
|
-
screenY: number;
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Sprite definition in atlas
|
|
187
|
-
*/
|
|
188
|
-
export interface SpriteDefinition {
|
|
189
|
-
name: string;
|
|
190
|
-
x: number;
|
|
191
|
-
y: number;
|
|
192
|
-
width: number;
|
|
193
|
-
height: number;
|
|
194
|
-
}
|
|
195
|
-
/**
|
|
196
|
-
* Sprite atlas/tileset
|
|
197
|
-
*/
|
|
198
|
-
export interface SpriteAtlas {
|
|
199
|
-
image?: HTMLImageElement;
|
|
200
|
-
imageUrl?: string;
|
|
201
|
-
sprites: Record<string, SpriteDefinition>;
|
|
202
|
-
tileSize: number;
|
|
203
|
-
}
|
|
204
|
-
/**
|
|
205
|
-
* Map configuration/settings
|
|
206
|
-
*/
|
|
207
|
-
export interface MapConfig {
|
|
208
|
-
showGrid: boolean;
|
|
209
|
-
showPaths: boolean;
|
|
210
|
-
showDecorations: boolean;
|
|
211
|
-
enableAnimations: boolean;
|
|
212
|
-
cameraSpeed: number;
|
|
213
|
-
zoomSpeed: number;
|
|
214
|
-
minZoom: number;
|
|
215
|
-
maxZoom: number;
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Event types for isometric components
|
|
219
|
-
*/
|
|
220
|
-
export interface IsometricDragEvent {
|
|
221
|
-
id: string;
|
|
222
|
-
gridX: number;
|
|
223
|
-
gridY: number;
|
|
224
|
-
}
|
|
225
|
-
export interface IsometricHoverEvent {
|
|
226
|
-
id: string;
|
|
227
|
-
}
|
|
228
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/panels/overworld-map/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAGhE,eAAO,MAAM,SAAS,KAAK,CAAC;AAG5B,eAAO,MAAM,cAAc,KAAK,CAAC;AACjC,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,KAAK,CAAC;AAE1E;;GAEG;AACH,MAAM,MAAM,QAAQ,GAChB,OAAO,GACP,OAAO,GACP,MAAM,GACN,UAAU,GACV,MAAM,GACN,KAAK,GACL,MAAM,GACN,OAAO,CAAC;AAEZ;;GAEG;AACH,MAAM,WAAW,IAAI;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,EAAE,QAAQ,CAAC;IACf,WAAW,EAAE,MAAM,CAAC;IACpB,KAAK,EAAE,UAAU,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,MAAM,gBAAgB,GACxB,QAAQ,GACR,UAAU,GACV,OAAO,GACP,OAAO,GACP,MAAM,GACN,UAAU,GACV,UAAU,CAAC;AAEf;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,gBAAgB,CAAC;IACvB,MAAM,EAAE,MAAM,CAA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,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,MAAM,CAAC;CACZ"}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import type { FileTree } from '@principal-ai/repository-abstraction';
|
|
2
|
-
export interface FileDocument {
|
|
3
|
-
id: string;
|
|
4
|
-
path: string;
|
|
5
|
-
name: string;
|
|
6
|
-
relativePath: string;
|
|
7
|
-
}
|
|
8
|
-
export interface SearchResult {
|
|
9
|
-
path: string;
|
|
10
|
-
name: string;
|
|
11
|
-
relativePath: string;
|
|
12
|
-
score: number;
|
|
13
|
-
}
|
|
14
|
-
export interface DirectoryFilter {
|
|
15
|
-
id: string;
|
|
16
|
-
path: string;
|
|
17
|
-
mode: 'include' | 'exclude';
|
|
18
|
-
}
|
|
19
|
-
export interface SearchOptions {
|
|
20
|
-
directoryFilter?: string;
|
|
21
|
-
excludeDirectory?: boolean;
|
|
22
|
-
fileType?: string;
|
|
23
|
-
limit?: number;
|
|
24
|
-
directoryFilters?: DirectoryFilter[];
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* LocalSearchService - Filename search on FileTree data
|
|
28
|
-
* Content search is provided by the host application
|
|
29
|
-
*/
|
|
30
|
-
declare class LocalSearchService {
|
|
31
|
-
private documentsMap;
|
|
32
|
-
private baseDirectory;
|
|
33
|
-
private initialized;
|
|
34
|
-
/**
|
|
35
|
-
* Index files from FileTree
|
|
36
|
-
*/
|
|
37
|
-
indexFileSystemTree(tree: FileTree, baseDirectory: string): void;
|
|
38
|
-
/**
|
|
39
|
-
* Convert glob pattern to regex
|
|
40
|
-
*/
|
|
41
|
-
private globToRegex;
|
|
42
|
-
/**
|
|
43
|
-
* Check if query contains wildcards
|
|
44
|
-
*/
|
|
45
|
-
private hasWildcards;
|
|
46
|
-
/**
|
|
47
|
-
* Check if document matches filter options
|
|
48
|
-
*/
|
|
49
|
-
private matchesFilters;
|
|
50
|
-
/**
|
|
51
|
-
* Calculate relevance score for a match
|
|
52
|
-
*/
|
|
53
|
-
private calculateScore;
|
|
54
|
-
/**
|
|
55
|
-
* Search files by filename
|
|
56
|
-
*/
|
|
57
|
-
search(query: string, options?: SearchOptions): SearchResult[];
|
|
58
|
-
/**
|
|
59
|
-
* Get unique directories from indexed files
|
|
60
|
-
*/
|
|
61
|
-
getDirectories(): string[];
|
|
62
|
-
/**
|
|
63
|
-
* Clear the search index
|
|
64
|
-
*/
|
|
65
|
-
clear(): void;
|
|
66
|
-
isInitialized(): boolean;
|
|
67
|
-
}
|
|
68
|
-
export declare const localSearchService: LocalSearchService;
|
|
69
|
-
export {};
|
|
70
|
-
//# sourceMappingURL=LocalSearchService.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"LocalSearchService.d.ts","sourceRoot":"","sources":["../../src/services/LocalSearchService.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,sCAAsC,CAAC;AAErE,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,SAAS,GAAG,SAAS,CAAC;CAC7B;AAED,MAAM,WAAW,aAAa;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gBAAgB,CAAC,EAAE,eAAe,EAAE,CAAC;CACtC;AAED;;;GAGG;AACH,cAAM,kBAAkB;IACtB,OAAO,CAAC,YAAY,CAAwC;IAC5D,OAAO,CAAC,aAAa,CAAc;IACnC,OAAO,CAAC,WAAW,CAAS;IAE5B;;OAEG;IACH,mBAAmB,CAAC,IAAI,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,GAAG,IAAI;IAwBhE;;OAEG;IACH,OAAO,CAAC,WAAW;IAQnB;;OAEG;IACH,OAAO,CAAC,YAAY;IAIpB;;OAEG;IACH,OAAO,CAAC,cAAc;IAmCtB;;OAEG;IACH,OAAO,CAAC,cAAc;IAsBtB;;OAEG;IACH,MAAM,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,GAAG,YAAY,EAAE;IAmD9D;;OAEG;IACH,cAAc,IAAI,MAAM,EAAE;IAe1B;;OAEG;IACH,KAAK,IAAI,IAAI;IAKb,aAAa,IAAI,OAAO;CAGzB;AAED,eAAO,MAAM,kBAAkB,oBAA2B,CAAC"}
|
package/dist/tools/index.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Panel Tools
|
|
3
|
-
*
|
|
4
|
-
* UTCP-compatible tools for this panel extension.
|
|
5
|
-
* These tools can be invoked by AI agents and emit events that panels listen for.
|
|
6
|
-
*
|
|
7
|
-
* IMPORTANT: This file should NOT import any React components to ensure
|
|
8
|
-
* it can be imported server-side without pulling in React dependencies.
|
|
9
|
-
* Use the './tools' subpath export for server-safe imports.
|
|
10
|
-
*/
|
|
11
|
-
import type { PanelTool, PanelToolsMetadata } from '@principal-ade/utcp-panel-event';
|
|
12
|
-
/**
|
|
13
|
-
* Tool: Refresh Git Status
|
|
14
|
-
*/
|
|
15
|
-
export declare const refreshGitStatusTool: PanelTool;
|
|
16
|
-
/**
|
|
17
|
-
* Tool: Select File
|
|
18
|
-
*/
|
|
19
|
-
export declare const selectFileTool: PanelTool;
|
|
20
|
-
/**
|
|
21
|
-
* Tool: Toggle Section
|
|
22
|
-
*/
|
|
23
|
-
export declare const toggleSectionTool: PanelTool;
|
|
24
|
-
/**
|
|
25
|
-
* All tools exported as an array.
|
|
26
|
-
*/
|
|
27
|
-
export declare const examplePanelTools: PanelTool[];
|
|
28
|
-
/**
|
|
29
|
-
* Panel tools metadata for registration with PanelToolRegistry.
|
|
30
|
-
*/
|
|
31
|
-
export declare const examplePanelToolsMetadata: PanelToolsMetadata;
|
|
32
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErF;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,SAwBlC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,cAAc,EAAE,SA6B5B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,SA+B/B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAAS,EAIxC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,yBAAyB,EAAE,kBAKvC,CAAC"}
|
package/dist/tools.bundle.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
// src/tools/index.ts
|
|
2
|
-
var refreshGitStatusTool = {
|
|
3
|
-
name: "refresh_git_status",
|
|
4
|
-
description: "Refreshes the git status display in the example panel",
|
|
5
|
-
inputs: {
|
|
6
|
-
type: "object",
|
|
7
|
-
properties: {
|
|
8
|
-
force: {
|
|
9
|
-
type: "boolean",
|
|
10
|
-
description: "Force refresh even if data is fresh"
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
},
|
|
14
|
-
outputs: {
|
|
15
|
-
type: "object",
|
|
16
|
-
properties: {
|
|
17
|
-
success: { type: "boolean" },
|
|
18
|
-
message: { type: "string" }
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
tags: ["git", "refresh", "status"],
|
|
22
|
-
tool_call_template: {
|
|
23
|
-
call_template_type: "panel_event",
|
|
24
|
-
event_type: "your-org.example-panel:refresh-git"
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
var selectFileTool = {
|
|
28
|
-
name: "select_file",
|
|
29
|
-
description: "Selects and highlights a file in the example panel file list",
|
|
30
|
-
inputs: {
|
|
31
|
-
type: "object",
|
|
32
|
-
properties: {
|
|
33
|
-
filePath: {
|
|
34
|
-
type: "string",
|
|
35
|
-
description: "Path to the file to select"
|
|
36
|
-
},
|
|
37
|
-
scrollIntoView: {
|
|
38
|
-
type: "boolean",
|
|
39
|
-
description: "Whether to scroll the file into view"
|
|
40
|
-
}
|
|
41
|
-
},
|
|
42
|
-
required: ["filePath"]
|
|
43
|
-
},
|
|
44
|
-
outputs: {
|
|
45
|
-
type: "object",
|
|
46
|
-
properties: {
|
|
47
|
-
success: { type: "boolean" },
|
|
48
|
-
selectedFile: { type: "string" }
|
|
49
|
-
}
|
|
50
|
-
},
|
|
51
|
-
tags: ["file", "selection", "navigation"],
|
|
52
|
-
tool_call_template: {
|
|
53
|
-
call_template_type: "panel_event",
|
|
54
|
-
event_type: "your-org.example-panel:select-file"
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
var toggleSectionTool = {
|
|
58
|
-
name: "toggle_section",
|
|
59
|
-
description: "Toggles the visibility of a section in the example panel",
|
|
60
|
-
inputs: {
|
|
61
|
-
type: "object",
|
|
62
|
-
properties: {
|
|
63
|
-
section: {
|
|
64
|
-
type: "string",
|
|
65
|
-
enum: ["staged", "unstaged", "untracked"],
|
|
66
|
-
description: "The section to toggle"
|
|
67
|
-
},
|
|
68
|
-
expanded: {
|
|
69
|
-
type: "boolean",
|
|
70
|
-
description: "Whether to expand (true) or collapse (false) the section"
|
|
71
|
-
}
|
|
72
|
-
},
|
|
73
|
-
required: ["section"]
|
|
74
|
-
},
|
|
75
|
-
outputs: {
|
|
76
|
-
type: "object",
|
|
77
|
-
properties: {
|
|
78
|
-
success: { type: "boolean" },
|
|
79
|
-
section: { type: "string" },
|
|
80
|
-
expanded: { type: "boolean" }
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
tags: ["ui", "toggle", "section"],
|
|
84
|
-
tool_call_template: {
|
|
85
|
-
call_template_type: "panel_event",
|
|
86
|
-
event_type: "your-org.example-panel:toggle-section"
|
|
87
|
-
}
|
|
88
|
-
};
|
|
89
|
-
var examplePanelTools = [
|
|
90
|
-
refreshGitStatusTool,
|
|
91
|
-
selectFileTool,
|
|
92
|
-
toggleSectionTool
|
|
93
|
-
];
|
|
94
|
-
var examplePanelToolsMetadata = {
|
|
95
|
-
id: "your-org.example-panel",
|
|
96
|
-
name: "Example Panel",
|
|
97
|
-
description: "Tools provided by the example panel extension",
|
|
98
|
-
tools: examplePanelTools
|
|
99
|
-
};
|
|
100
|
-
export {
|
|
101
|
-
toggleSectionTool,
|
|
102
|
-
selectFileTool,
|
|
103
|
-
refreshGitStatusTool,
|
|
104
|
-
examplePanelToolsMetadata,
|
|
105
|
-
examplePanelTools
|
|
106
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Types re-exported from @principal-ai/codebase-composition
|
|
3
|
-
*
|
|
4
|
-
* This file re-exports types from the core library to avoid duplication.
|
|
5
|
-
* All composition-related types should be imported from here.
|
|
6
|
-
*/
|
|
7
|
-
import type { PackageLayer as BasePackageLayer } from '@principal-ai/codebase-composition';
|
|
8
|
-
import type { AgingMetrics } from '../utils/repositoryAging';
|
|
9
|
-
export type { FilePattern, FileSet, BaseLayer, PackageCommand, ConfigFile, QualityMetrics, LensOperation, LensReadiness, LensRequirement, LensRequirements, RequirementCheckResult, MonorepoOrchestrator, MonorepoMetadata, MonorepoRootRole, } from '@principal-ai/codebase-composition';
|
|
10
|
-
/**
|
|
11
|
-
* Extended PackageLayer with visualization-specific properties
|
|
12
|
-
* Used internally for overworld map rendering
|
|
13
|
-
*/
|
|
14
|
-
export interface PackageLayer extends BasePackageLayer {
|
|
15
|
-
/** Size multiplier for sprite (1.5x - 4.0x, based on repository metrics) */
|
|
16
|
-
size?: number;
|
|
17
|
-
/** Importance level 0-100 (affects visual prominence) */
|
|
18
|
-
importance?: number;
|
|
19
|
-
/** Aging metrics for weathering and color fade (based on lastEditedAt) */
|
|
20
|
-
aging?: AgingMetrics;
|
|
21
|
-
}
|
|
22
|
-
//# sourceMappingURL=composition.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"composition.d.ts","sourceRoot":"","sources":["../../src/types/composition.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,IAAI,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAC3F,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAG7D,YAAY,EAEV,WAAW,EACX,OAAO,EACP,SAAS,EAGT,cAAc,EACd,UAAU,EAGV,cAAc,EACd,aAAa,EACb,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,sBAAsB,EAGtB,oBAAoB,EACpB,gBAAgB,EAChB,gBAAgB,GACjB,MAAM,oCAAoC,CAAC;AAE5C;;;GAGG;AACH,MAAM,WAAW,YAAa,SAAQ,gBAAgB;IACpD,4EAA4E;IAC5E,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,yDAAyD;IACzD,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB,0EAA0E;IAC1E,KAAK,CAAC,EAAE,YAAY,CAAC;CACtB"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Dependencies Panel Type Definitions
|
|
3
|
-
*/
|
|
4
|
-
import type { PackageLayer, PackageSummary, PackagesSliceData } from '@principal-ai/codebase-composition';
|
|
5
|
-
export type { PackageLayer, PackageSummary, PackagesSliceData };
|
|
6
|
-
/**
|
|
7
|
-
* Dependency type
|
|
8
|
-
*/
|
|
9
|
-
export type DependencyType = 'production' | 'development' | 'peer';
|
|
10
|
-
/**
|
|
11
|
-
* Basic dependency item for display
|
|
12
|
-
* Supports multiple dependency types for packages that appear in multiple categories
|
|
13
|
-
*/
|
|
14
|
-
export interface DependencyItem {
|
|
15
|
-
name: string;
|
|
16
|
-
version: string;
|
|
17
|
-
/** Primary dependency type (for sorting) */
|
|
18
|
-
dependencyType: DependencyType;
|
|
19
|
-
/** All dependency types this package belongs to */
|
|
20
|
-
dependencyTypes: DependencyType[];
|
|
21
|
-
/** Package scope/namespace (e.g., '@scope' from '@scope/package') */
|
|
22
|
-
namespace?: string;
|
|
23
|
-
/** Package name without scope */
|
|
24
|
-
packageName: string;
|
|
25
|
-
}
|
|
26
|
-
//# sourceMappingURL=dependencies.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dependencies.d.ts","sourceRoot":"","sources":["../../src/types/dependencies.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EACV,YAAY,EACZ,cAAc,EACd,iBAAiB,EAClB,MAAM,oCAAoC,CAAC;AAG5C,YAAY,EAAE,YAAY,EAAE,cAAc,EAAE,iBAAiB,EAAE,CAAC;AAEhE;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,YAAY,GAAG,aAAa,GAAG,MAAM,CAAC;AAEnE;;;GAGG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,4CAA4C;IAC5C,cAAc,EAAE,cAAc,CAAC;IAC/B,mDAAmD;IACnD,eAAe,EAAE,cAAc,EAAE,CAAC;IAClC,qEAAqE;IACrE,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAC;CACrB"}
|
package/dist/types/index.d.ts
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Panel Extension Type Definitions
|
|
3
|
-
*
|
|
4
|
-
* Re-exports core types from @principal-ade/panel-framework-core
|
|
5
|
-
*/
|
|
6
|
-
export type { PackageLayer, PackageCommand, ConfigFile, QualityMetrics, LensOperation, BaseLayer, FilePattern, FileSet, } from './composition';
|
|
7
|
-
export type { DependencyItem, PackageSummary, PackagesSliceData, } from './dependencies';
|
|
8
|
-
export type { DataSlice, WorkspaceMetadata, RepositoryMetadata, FileTreeSource, ActiveFileSlice, PanelEventType, PanelEvent, PanelEventEmitter, PanelActions, PanelContextValue, PanelComponentProps, PanelMetadata, PanelLifecycleHooks, PanelDefinition, PanelModule, PanelRegistryEntry, PanelLoader, PanelRegistryConfig, PanelTool, PanelToolsMetadata, JsonSchema, PanelEventCallTemplate, } from '@principal-ade/panel-framework-core';
|
|
9
|
-
import type { PanelActions as CorePanelActions, PanelComponentProps as CorePanelComponentProps, DataSlice } from '@principal-ade/panel-framework-core';
|
|
10
|
-
import type { FileTree, GitStatusWithFiles } from '@principal-ai/repository-abstraction';
|
|
11
|
-
import type { AlexandriaEntry } from '@principal-ai/alexandria-core-library';
|
|
12
|
-
import type { PackagesSliceData } from './dependencies';
|
|
13
|
-
export type { AlexandriaEntry } from '@principal-ai/alexandria-core-library';
|
|
14
|
-
export type { GitFileStatus } from '@principal-ade/dynamic-file-tree';
|
|
15
|
-
export type { FileTree, GitStatusWithFiles, } from '@principal-ai/repository-abstraction';
|
|
16
|
-
/**
|
|
17
|
-
* Git status data - categorized file paths
|
|
18
|
-
*/
|
|
19
|
-
export interface GitStatus {
|
|
20
|
-
staged: string[];
|
|
21
|
-
unstaged: string[];
|
|
22
|
-
untracked: string[];
|
|
23
|
-
deleted: string[];
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* Git change selection status for callbacks
|
|
27
|
-
*/
|
|
28
|
-
export type GitChangeSelectionStatus = 'staged' | 'unstaged' | 'untracked' | 'deleted';
|
|
29
|
-
/**
|
|
30
|
-
* Typed context for GitChangesPanel
|
|
31
|
-
*
|
|
32
|
-
* Note: Slices use `DataSlice<T | null>` to distinguish between:
|
|
33
|
-
* - `null` = "not fetched yet" or "not available"
|
|
34
|
-
* - Empty data = "fetched successfully, no items"
|
|
35
|
-
*/
|
|
36
|
-
export interface GitChangesPanelContext {
|
|
37
|
-
gitStatusWithFiles: DataSlice<GitStatusWithFiles | null>;
|
|
38
|
-
fileTree: DataSlice<FileTree | null>;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Typed panel props for GitChangesPanel
|
|
42
|
-
*/
|
|
43
|
-
export type GitChangesPanelPropsTyped = CorePanelComponentProps<CorePanelActions, GitChangesPanelContext>;
|
|
44
|
-
/**
|
|
45
|
-
* Typed context for PackageCompositionPanel
|
|
46
|
-
*/
|
|
47
|
-
export interface PackageCompositionPanelContext {
|
|
48
|
-
packages: DataSlice<PackagesSliceData | null>;
|
|
49
|
-
/** Alexandria repository entry with GitHub metadata */
|
|
50
|
-
repositoryEntry: DataSlice<AlexandriaEntry | null>;
|
|
51
|
-
}
|
|
52
|
-
/**
|
|
53
|
-
* Extended actions for PackageCompositionPanel
|
|
54
|
-
*/
|
|
55
|
-
export interface PackageCompositionPanelActions extends CorePanelActions {
|
|
56
|
-
/** Read file content from the repository */
|
|
57
|
-
readFile?: (filePath: string) => Promise<string>;
|
|
58
|
-
}
|
|
59
|
-
/**
|
|
60
|
-
* Typed panel props for PackageCompositionPanel
|
|
61
|
-
*/
|
|
62
|
-
export type PackageCompositionPanelPropsTyped = CorePanelComponentProps<PackageCompositionPanelActions, PackageCompositionPanelContext>;
|
|
63
|
-
/**
|
|
64
|
-
* Typed context for SearchPanel
|
|
65
|
-
*/
|
|
66
|
-
export interface SearchPanelContext {
|
|
67
|
-
fileTree: DataSlice<FileTree | null>;
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Typed panel props for SearchPanel
|
|
71
|
-
*/
|
|
72
|
-
export type SearchPanelPropsTyped = CorePanelComponentProps<CorePanelActions, SearchPanelContext>;
|
|
73
|
-
/**
|
|
74
|
-
* Typed context for DependencyGraphPanel
|
|
75
|
-
*/
|
|
76
|
-
export interface DependencyGraphPanelContext {
|
|
77
|
-
packages: DataSlice<PackagesSliceData | null>;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Typed panel props for DependencyGraphPanel
|
|
81
|
-
*/
|
|
82
|
-
export type DependencyGraphPanelPropsTyped = CorePanelComponentProps<CorePanelActions, DependencyGraphPanelContext>;
|
|
83
|
-
/**
|
|
84
|
-
* Typed context for TelemetryCoveragePanel
|
|
85
|
-
*/
|
|
86
|
-
export interface TelemetryCoveragePanelContext {
|
|
87
|
-
packages: DataSlice<PackagesSliceData | null>;
|
|
88
|
-
fileTree: DataSlice<FileTree | null>;
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Typed panel props for TelemetryCoveragePanel
|
|
92
|
-
*/
|
|
93
|
-
export type TelemetryCoveragePanelPropsTyped = CorePanelComponentProps<CorePanelActions, TelemetryCoveragePanelContext>;
|
|
94
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,YAAY,EACV,YAAY,EACZ,cAAc,EACd,UAAU,EACV,cAAc,EACd,aAAa,EACb,SAAS,EACT,WAAW,EACX,OAAO,GACR,MAAM,eAAe,CAAC;AAGvB,YAAY,EACV,cAAc,EACd,cAAc,EACd,iBAAiB,GAClB,MAAM,gBAAgB,CAAC;AAGxB,YAAY,EAEV,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,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
-
*
|
|
4
|
-
* Parses environment variable documentation from both:
|
|
5
|
-
* - env.json (structured JSON format)
|
|
6
|
-
* - .env.example / .env.sample (dotenv format with comments)
|
|
7
|
-
*/
|
|
8
|
-
export interface EnvVariable {
|
|
9
|
-
name: string;
|
|
10
|
-
description?: string;
|
|
11
|
-
required: boolean;
|
|
12
|
-
default?: string;
|
|
13
|
-
example?: string;
|
|
14
|
-
group?: string;
|
|
15
|
-
link?: string;
|
|
16
|
-
}
|
|
17
|
-
export interface EnvParseResult {
|
|
18
|
-
variables: EnvVariable[];
|
|
19
|
-
format: 'json' | 'dotenv';
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Parse environment variable documentation file
|
|
23
|
-
*
|
|
24
|
-
* @param content - File content
|
|
25
|
-
* @param fileType - File type ('json' for env.json, 'custom' for .env.example)
|
|
26
|
-
* @returns Parsed environment variables
|
|
27
|
-
*/
|
|
28
|
-
export declare function parseEnvFile(content: string, fileType: 'json' | 'yaml' | 'toml' | 'js' | 'ts' | 'ini' | 'custom'): EnvParseResult;
|
|
29
|
-
//# sourceMappingURL=envParser.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"envParser.d.ts","sourceRoot":"","sources":["../../src/utils/envParser.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,WAAW,EAAE,CAAC;IACzB,MAAM,EAAE,MAAM,GAAG,QAAQ,CAAC;CAC3B;AAqJD;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,QAAQ,GAClE,cAAc,CAahB"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* License permissiveness levels and color mapping
|
|
3
|
-
*/
|
|
4
|
-
export type LicensePermissiveness = 'permissive' | 'weakCopyleft' | 'strongCopyleft' | 'unknown';
|
|
5
|
-
/**
|
|
6
|
-
* Get the permissiveness level of a license
|
|
7
|
-
*/
|
|
8
|
-
export declare function getLicensePermissiveness(license: string | undefined): LicensePermissiveness;
|
|
9
|
-
/**
|
|
10
|
-
* Get a color for a license based on its permissiveness
|
|
11
|
-
*/
|
|
12
|
-
export declare function getLicenseColor(license: string | undefined): string;
|
|
13
|
-
//# sourceMappingURL=licenseColors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"licenseColors.d.ts","sourceRoot":"","sources":["../../src/utils/licenseColors.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,MAAM,MAAM,qBAAqB,GAC7B,YAAY,GACZ,cAAc,GACd,gBAAgB,GAChB,SAAS,CAAC;AAiCd;;GAEG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,MAAM,GAAG,SAAS,GAC1B,qBAAqB,CAqBvB;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,CAcnE"}
|