@industry-theme/repository-composition-panels 0.7.14 → 0.7.15
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/assets/orchestrators/index.d.ts +28 -0
- package/dist/assets/orchestrators/index.d.ts.map +1 -0
- package/dist/index.d.ts +35 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/mocks/panelContext.d.ts +24 -0
- package/dist/mocks/panelContext.d.ts.map +1 -0
- package/dist/panels/CollectionMapPanel.d.ts +132 -0
- package/dist/panels/CollectionMapPanel.d.ts.map +1 -0
- package/dist/panels/GitChangesPanel.d.ts +48 -0
- package/dist/panels/GitChangesPanel.d.ts.map +1 -0
- package/dist/panels/PackageCompositionPanel.d.ts +37 -0
- package/dist/panels/PackageCompositionPanel.d.ts.map +1 -0
- package/dist/panels/SearchPanel.d.ts +33 -0
- package/dist/panels/SearchPanel.d.ts.map +1 -0
- package/dist/panels/TelemetryCoveragePanel.d.ts +48 -0
- package/dist/panels/TelemetryCoveragePanel.d.ts.map +1 -0
- package/dist/panels/components/DependencyInfoModal.d.ts +8 -0
- package/dist/panels/components/DependencyInfoModal.d.ts.map +1 -0
- package/dist/panels/components/DependencyRow.d.ts +8 -0
- package/dist/panels/components/DependencyRow.d.ts.map +1 -0
- package/dist/panels/components/EmptyDependencies.d.ts +7 -0
- package/dist/panels/components/EmptyDependencies.d.ts.map +1 -0
- package/dist/panels/components/FilterBar.d.ts +19 -0
- package/dist/panels/components/FilterBar.d.ts.map +1 -0
- package/dist/panels/components/InheritedConfigIndicator.d.ts +27 -0
- package/dist/panels/components/InheritedConfigIndicator.d.ts.map +1 -0
- package/dist/panels/components/LensReadinessSection.d.ts +8 -0
- package/dist/panels/components/LensReadinessSection.d.ts.map +1 -0
- package/dist/panels/components/OrchestratorBadge.d.ts +11 -0
- package/dist/panels/components/OrchestratorBadge.d.ts.map +1 -0
- package/dist/panels/components/OtherScriptsSection.d.ts +9 -0
- package/dist/panels/components/OtherScriptsSection.d.ts.map +1 -0
- package/dist/panels/components/PackageDetailCard.d.ts +18 -0
- package/dist/panels/components/PackageDetailCard.d.ts.map +1 -0
- package/dist/panels/components/PackageLoadingGraph.d.ts +3 -0
- package/dist/panels/components/PackageLoadingGraph.d.ts.map +1 -0
- package/dist/panels/components/PackageManagerIcon.d.ts +10 -0
- package/dist/panels/components/PackageManagerIcon.d.ts.map +1 -0
- package/dist/panels/components/PackageSummaryCard.d.ts +10 -0
- package/dist/panels/components/PackageSummaryCard.d.ts.map +1 -0
- package/dist/panels/components/index.d.ts +11 -0
- package/dist/panels/components/index.d.ts.map +1 -0
- package/dist/panels/dependency-graph/DependencyGraphPanel.d.ts +20 -0
- package/dist/panels/dependency-graph/DependencyGraphPanel.d.ts.map +1 -0
- package/dist/panels/dependency-graph/dependencyToCanvas.d.ts +20 -0
- package/dist/panels/dependency-graph/dependencyToCanvas.d.ts.map +1 -0
- package/dist/panels/dependency-graph/forceLayout.d.ts +38 -0
- package/dist/panels/dependency-graph/forceLayout.d.ts.map +1 -0
- package/dist/panels/dependency-graph/index.d.ts +5 -0
- package/dist/panels/dependency-graph/index.d.ts.map +1 -0
- package/dist/panels/overworld-map/BuildingSizeTest.d.ts +11 -0
- package/dist/panels/overworld-map/BuildingSizeTest.d.ts.map +1 -0
- package/dist/panels/overworld-map/LayoutEngineTest.d.ts +24 -0
- package/dist/panels/overworld-map/LayoutEngineTest.d.ts.map +1 -0
- package/dist/panels/overworld-map/LicenseSignTest.d.ts +7 -0
- package/dist/panels/overworld-map/LicenseSignTest.d.ts.map +1 -0
- package/dist/panels/overworld-map/OverworldMapPanel.d.ts +62 -0
- package/dist/panels/overworld-map/OverworldMapPanel.d.ts.map +1 -0
- package/dist/panels/overworld-map/PackageExpansionTest.d.ts +25 -0
- package/dist/panels/overworld-map/PackageExpansionTest.d.ts.map +1 -0
- package/dist/panels/overworld-map/RegionEditingTest.d.ts +10 -0
- package/dist/panels/overworld-map/RegionEditingTest.d.ts.map +1 -0
- package/dist/panels/overworld-map/collaboratorDecoration.d.ts +38 -0
- package/dist/panels/overworld-map/collaboratorDecoration.d.ts.map +1 -0
- package/dist/panels/overworld-map/components/IsometricInteractionManager.d.ts +159 -0
- package/dist/panels/overworld-map/components/IsometricInteractionManager.d.ts.map +1 -0
- package/dist/panels/overworld-map/components/IsometricPathManager.d.ts +50 -0
- package/dist/panels/overworld-map/components/IsometricPathManager.d.ts.map +1 -0
- package/dist/panels/overworld-map/components/IsometricPixiCanvas.d.ts +88 -0
- package/dist/panels/overworld-map/components/IsometricPixiCanvas.d.ts.map +1 -0
- package/dist/panels/overworld-map/components/IsometricRenderer.d.ts +141 -0
- package/dist/panels/overworld-map/components/IsometricRenderer.d.ts.map +1 -0
- package/dist/panels/overworld-map/components/RegionTracker.d.ts +62 -0
- package/dist/panels/overworld-map/components/RegionTracker.d.ts.map +1 -0
- package/dist/panels/overworld-map/components/buildingSpriteGenerator.d.ts +19 -0
- package/dist/panels/overworld-map/components/buildingSpriteGenerator.d.ts.map +1 -0
- package/dist/panels/overworld-map/components/collaboratorDecorationSprites.d.ts +25 -0
- package/dist/panels/overworld-map/components/collaboratorDecorationSprites.d.ts.map +1 -0
- package/dist/panels/overworld-map/components/licenseSignSprites.d.ts +122 -0
- package/dist/panels/overworld-map/components/licenseSignSprites.d.ts.map +1 -0
- package/dist/panels/overworld-map/components/starDecorationSprites.d.ts +18 -0
- package/dist/panels/overworld-map/components/starDecorationSprites.d.ts.map +1 -0
- package/dist/panels/overworld-map/genericMapper.d.ts +81 -0
- package/dist/panels/overworld-map/genericMapper.d.ts.map +1 -0
- package/dist/panels/overworld-map/index.d.ts +11 -0
- package/dist/panels/overworld-map/index.d.ts.map +1 -0
- package/dist/panels/overworld-map/isometricUtils.d.ts +150 -0
- package/dist/panels/overworld-map/isometricUtils.d.ts.map +1 -0
- package/dist/panels/overworld-map/packageExpansion.d.ts +15 -0
- package/dist/panels/overworld-map/packageExpansion.d.ts.map +1 -0
- package/dist/panels/overworld-map/spriteGenerator.d.ts +53 -0
- package/dist/panels/overworld-map/spriteGenerator.d.ts.map +1 -0
- package/dist/panels/overworld-map/spriteLayoutEngine.d.ts +103 -0
- package/dist/panels/overworld-map/spriteLayoutEngine.d.ts.map +1 -0
- package/dist/panels/overworld-map/starDecoration.d.ts +37 -0
- package/dist/panels/overworld-map/starDecoration.d.ts.map +1 -0
- package/dist/panels/overworld-map/test-setup.d.ts +6 -0
- package/dist/panels/overworld-map/test-setup.d.ts.map +1 -0
- package/dist/panels/overworld-map/types.d.ts +228 -0
- package/dist/panels/overworld-map/types.d.ts.map +1 -0
- package/dist/services/LocalSearchService.d.ts +70 -0
- package/dist/services/LocalSearchService.d.ts.map +1 -0
- package/dist/tools/index.d.ts +32 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools.bundle.js +106 -0
- package/dist/types/composition.d.ts +22 -0
- package/dist/types/composition.d.ts.map +1 -0
- package/dist/types/dependencies.d.ts +26 -0
- package/dist/types/dependencies.d.ts.map +1 -0
- package/dist/types/index.d.ts +94 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/envParser.d.ts +29 -0
- package/dist/utils/envParser.d.ts.map +1 -0
- package/dist/utils/licenseColors.d.ts +13 -0
- package/dist/utils/licenseColors.d.ts.map +1 -0
- package/dist/utils/repositoryAging.d.ts +26 -0
- package/dist/utils/repositoryAging.d.ts.map +1 -0
- package/dist/utils/repositoryScaling.d.ts +40 -0
- package/dist/utils/repositoryScaling.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,70 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,106 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,94 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Environment Variable Parser
|
|
3
|
+
*
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Utilities for calculating repository age and weathering effects
|
|
3
|
+
* Based on lastEditedAt timestamp to show aging/inactivity
|
|
4
|
+
*/
|
|
5
|
+
export type AgeCategory = 'fresh' | 'recent' | 'old';
|
|
6
|
+
export interface AgingMetrics {
|
|
7
|
+
category: AgeCategory;
|
|
8
|
+
monthsSinceEdit: number;
|
|
9
|
+
weatheringLevel: number;
|
|
10
|
+
colorFade: number;
|
|
11
|
+
lastEditedAt?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Calculate aging metrics from last edit timestamp
|
|
15
|
+
* Categories:
|
|
16
|
+
* - Fresh: 0-3 months (no weathering, vibrant colors)
|
|
17
|
+
* - Recent: 3-12 months (light weathering, slight color fade)
|
|
18
|
+
* - Old: 1+ year (heavy weathering, significant color fade)
|
|
19
|
+
*/
|
|
20
|
+
export declare function calculateAgingMetrics(lastEditedAt?: string): AgingMetrics;
|
|
21
|
+
/**
|
|
22
|
+
* Apply color desaturation/fading to a hex color
|
|
23
|
+
* fadeAmount: 0.0 (no change) to 1.0 (fully desaturated/grayed)
|
|
24
|
+
*/
|
|
25
|
+
export declare function applyColorFade(hexColor: string, fadeAmount: number): string;
|
|
26
|
+
//# sourceMappingURL=repositoryAging.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repositoryAging.d.ts","sourceRoot":"","sources":["../../src/utils/repositoryAging.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAErD,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,WAAW,CAAC;IACtB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,YAAY,CAAC,EAAE,MAAM,GAAG,YAAY,CAgDzE;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAoE3E"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Repository Scaling Utilities
|
|
3
|
+
*
|
|
4
|
+
* Provides logarithmic scaling functions to size repository visualizations
|
|
5
|
+
* based on metrics like file count, lines of code, etc.
|
|
6
|
+
*
|
|
7
|
+
* Sizes are rounded to discrete tiers to ensure boundaries cover whole tiles.
|
|
8
|
+
*/
|
|
9
|
+
export interface RepositoryMetrics {
|
|
10
|
+
fileCount?: number;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Available size tiers for repository visualization
|
|
14
|
+
* These ensure that boundaries (4 × size) always cover whole numbers of tiles
|
|
15
|
+
*/
|
|
16
|
+
export declare const SIZE_TIERS: readonly [1, 1.5, 2, 2.5, 3, 3.5, 4];
|
|
17
|
+
/**
|
|
18
|
+
* Calculate sprite size multiplier based on file count using logarithmic scaling
|
|
19
|
+
*
|
|
20
|
+
* Scaling formula (before rounding):
|
|
21
|
+
* - ≤100 files → 1.0x (minimum)
|
|
22
|
+
* - 1,000 files → 2.0x
|
|
23
|
+
* - 10,000 files → 3.0x
|
|
24
|
+
* - 100,000+ files → 4.0x (maximum)
|
|
25
|
+
*
|
|
26
|
+
* Result is rounded to nearest tier (1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0)
|
|
27
|
+
*
|
|
28
|
+
* @param fileCount - Number of files in the repository
|
|
29
|
+
* @returns Size multiplier from SIZE_TIERS
|
|
30
|
+
*/
|
|
31
|
+
export declare function calculateSizeFromFileCount(fileCount: number): number;
|
|
32
|
+
/**
|
|
33
|
+
* Main function to calculate repository sprite size
|
|
34
|
+
* Uses file count as the primary metric
|
|
35
|
+
*
|
|
36
|
+
* @param metrics - Repository metrics object
|
|
37
|
+
* @returns Size multiplier from SIZE_TIERS (1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0)
|
|
38
|
+
*/
|
|
39
|
+
export declare function calculateRepositorySize(metrics?: RepositoryMetrics): number;
|
|
40
|
+
//# sourceMappingURL=repositoryScaling.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"repositoryScaling.d.ts","sourceRoot":"","sources":["../../src/utils/repositoryScaling.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,MAAM,WAAW,iBAAiB;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,eAAO,MAAM,UAAU,sCAA+C,CAAC;AAYvE;;;;;;;;;;;;;GAaG;AACH,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAiBpE;AAGD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,CAAC,EAAE,iBAAiB,GAAG,MAAM,CAU3E"}
|
package/package.json
CHANGED