@industry-theme/alexandria-panels 0.1.2 → 0.1.3
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/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/mocks/panelContext.d.ts.map +1 -1
- package/dist/panels/DependenciesPanel/DependenciesPanel.stories.d.ts +59 -0
- package/dist/panels/DependenciesPanel/DependenciesPanel.stories.d.ts.map +1 -0
- package/dist/panels/DependenciesPanel/components/DependencyInfoModal.d.ts +8 -0
- package/dist/panels/DependenciesPanel/components/DependencyInfoModal.d.ts.map +1 -0
- package/dist/panels/DependenciesPanel/components/DependencyRow.d.ts +8 -0
- package/dist/panels/DependenciesPanel/components/DependencyRow.d.ts.map +1 -0
- package/dist/panels/DependenciesPanel/components/FilterBar.d.ts +17 -0
- package/dist/panels/DependenciesPanel/components/FilterBar.d.ts.map +1 -0
- package/dist/panels/DependenciesPanel/components/index.d.ts +4 -0
- package/dist/panels/DependenciesPanel/components/index.d.ts.map +1 -0
- package/dist/panels/DependenciesPanel/index.d.ts +7 -0
- package/dist/panels/DependenciesPanel/index.d.ts.map +1 -0
- package/dist/panels/DependenciesPanel/tools.d.ts +35 -0
- package/dist/panels/DependenciesPanel/tools.d.ts.map +1 -0
- package/dist/panels/DependenciesPanel/types.d.ts +36 -0
- package/dist/panels/DependenciesPanel/types.d.ts.map +1 -0
- package/dist/panels/LocalProjectsPanel/LocalProjectCard.d.ts.map +1 -1
- package/dist/panels/LocalProjectsPanel/types.d.ts +11 -1
- package/dist/panels/LocalProjectsPanel/types.d.ts.map +1 -1
- package/dist/panels/WorkspaceRepositoriesPanel/index.d.ts +2 -2
- package/dist/panels/WorkspaceRepositoriesPanel/index.d.ts.map +1 -1
- package/dist/panels/WorkspaceRepositoriesPanel/types.d.ts +0 -23
- package/dist/panels/WorkspaceRepositoriesPanel/types.d.ts.map +1 -1
- package/dist/panels.bundle.js +1362 -461
- package/dist/panels.bundle.js.map +1 -1
- package/dist/tools/index.d.ts +3 -24
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools.bundle.js +194 -2
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/panels/WorkspaceRepositoriesPanel/WorkspaceRepositoryCard.d.ts +0 -10
- package/dist/panels/WorkspaceRepositoriesPanel/WorkspaceRepositoryCard.d.ts.map +0 -1
package/dist/tools/index.d.ts
CHANGED
|
@@ -8,28 +8,7 @@
|
|
|
8
8
|
* it can be imported server-side without pulling in React dependencies.
|
|
9
9
|
* Use the './tools' subpath export for server-safe imports.
|
|
10
10
|
*/
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
* Allows filtering the project list by search term
|
|
15
|
-
*/
|
|
16
|
-
export declare const filterProjectsTool: PanelTool;
|
|
17
|
-
/**
|
|
18
|
-
* Tool: Select Project
|
|
19
|
-
* Allows selecting a specific project in the list
|
|
20
|
-
*/
|
|
21
|
-
export declare const selectProjectTool: PanelTool;
|
|
22
|
-
/**
|
|
23
|
-
* Tool: Open Project
|
|
24
|
-
* Allows opening a project in the dev workspace
|
|
25
|
-
*/
|
|
26
|
-
export declare const openProjectTool: PanelTool;
|
|
27
|
-
/**
|
|
28
|
-
* All tools exported as an array.
|
|
29
|
-
*/
|
|
30
|
-
export declare const localProjectsPanelTools: PanelTool[];
|
|
31
|
-
/**
|
|
32
|
-
* Panel tools metadata for registration with PanelToolRegistry.
|
|
33
|
-
*/
|
|
34
|
-
export declare const localProjectsPanelToolsMetadata: PanelToolsMetadata;
|
|
11
|
+
export { localProjectsPanelTools, localProjectsPanelToolsMetadata, filterProjectsTool, selectProjectTool, openProjectTool, } from '../panels/LocalProjectsPanel/tools';
|
|
12
|
+
export { workspaceRepositoriesPanelTools, workspaceRepositoriesPanelToolsMetadata, selectRepositoryTool, refreshWorkspaceTool, openRepositoryTool, } from '../panels/WorkspaceRepositoriesPanel/tools';
|
|
13
|
+
export { dependenciesPanelTools, dependenciesPanelToolsMetadata, filterDependenciesTool, selectDependencyTypeTool, selectPackageTool, } from '../panels/DependenciesPanel/tools';
|
|
35
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,EACL,uBAAuB,EACvB,+BAA+B,EAC/B,kBAAkB,EAClB,iBAAiB,EACjB,eAAe,GAChB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACL,+BAA+B,EAC/B,uCAAuC,EACvC,oBAAoB,EACpB,oBAAoB,EACpB,kBAAkB,GACnB,MAAM,4CAA4C,CAAC;AAEpD,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,mCAAmC,CAAC"}
|
package/dist/tools.bundle.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
// src/tools
|
|
1
|
+
// src/panels/LocalProjectsPanel/tools.ts
|
|
2
2
|
var PANEL_ID = "industry-theme.local-projects";
|
|
3
3
|
var filterProjectsTool = {
|
|
4
4
|
name: "filter_projects",
|
|
@@ -89,10 +89,202 @@ var localProjectsPanelToolsMetadata = {
|
|
|
89
89
|
description: "Tools for browsing and managing local Alexandria repositories",
|
|
90
90
|
tools: localProjectsPanelTools
|
|
91
91
|
};
|
|
92
|
+
// src/panels/WorkspaceRepositoriesPanel/tools.ts
|
|
93
|
+
var PANEL_ID2 = "industry-theme.workspace-repositories";
|
|
94
|
+
var selectRepositoryTool = {
|
|
95
|
+
name: "select_workspace_repository",
|
|
96
|
+
description: "Selects a repository in the workspace panel",
|
|
97
|
+
inputs: {
|
|
98
|
+
type: "object",
|
|
99
|
+
properties: {
|
|
100
|
+
repositoryPath: {
|
|
101
|
+
type: "string",
|
|
102
|
+
description: "Path to the repository to select"
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
required: ["repositoryPath"]
|
|
106
|
+
},
|
|
107
|
+
outputs: {
|
|
108
|
+
type: "object",
|
|
109
|
+
properties: {
|
|
110
|
+
success: { type: "boolean" },
|
|
111
|
+
message: { type: "string" }
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
tags: ["workspace", "repository", "select"],
|
|
115
|
+
tool_call_template: {
|
|
116
|
+
call_template_type: "panel_event",
|
|
117
|
+
event_type: `${PANEL_ID2}:select-repository`
|
|
118
|
+
}
|
|
119
|
+
};
|
|
120
|
+
var refreshWorkspaceTool = {
|
|
121
|
+
name: "refresh_workspace",
|
|
122
|
+
description: "Refreshes the workspace repositories list",
|
|
123
|
+
inputs: {
|
|
124
|
+
type: "object",
|
|
125
|
+
properties: {
|
|
126
|
+
force: {
|
|
127
|
+
type: "boolean",
|
|
128
|
+
description: "Force refresh even if data is fresh"
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
outputs: {
|
|
133
|
+
type: "object",
|
|
134
|
+
properties: {
|
|
135
|
+
success: { type: "boolean" },
|
|
136
|
+
repositoryCount: { type: "number" }
|
|
137
|
+
}
|
|
138
|
+
},
|
|
139
|
+
tags: ["workspace", "refresh"],
|
|
140
|
+
tool_call_template: {
|
|
141
|
+
call_template_type: "panel_event",
|
|
142
|
+
event_type: `${PANEL_ID2}:refresh-workspace`
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
var openRepositoryTool = {
|
|
146
|
+
name: "open_workspace_repository",
|
|
147
|
+
description: "Opens a repository from the workspace",
|
|
148
|
+
inputs: {
|
|
149
|
+
type: "object",
|
|
150
|
+
properties: {
|
|
151
|
+
repositoryPath: {
|
|
152
|
+
type: "string",
|
|
153
|
+
description: "Path to the repository to open"
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
required: ["repositoryPath"]
|
|
157
|
+
},
|
|
158
|
+
outputs: {
|
|
159
|
+
type: "object",
|
|
160
|
+
properties: {
|
|
161
|
+
success: { type: "boolean" },
|
|
162
|
+
message: { type: "string" }
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
tags: ["workspace", "repository", "open"],
|
|
166
|
+
tool_call_template: {
|
|
167
|
+
call_template_type: "panel_event",
|
|
168
|
+
event_type: `${PANEL_ID2}:open-repository`
|
|
169
|
+
}
|
|
170
|
+
};
|
|
171
|
+
var workspaceRepositoriesPanelTools = [
|
|
172
|
+
selectRepositoryTool,
|
|
173
|
+
refreshWorkspaceTool,
|
|
174
|
+
openRepositoryTool
|
|
175
|
+
];
|
|
176
|
+
var workspaceRepositoriesPanelToolsMetadata = {
|
|
177
|
+
id: PANEL_ID2,
|
|
178
|
+
name: "Workspace Repositories Panel",
|
|
179
|
+
description: "Tools provided by the workspace repositories panel",
|
|
180
|
+
tools: workspaceRepositoriesPanelTools
|
|
181
|
+
};
|
|
182
|
+
// src/panels/DependenciesPanel/tools.ts
|
|
183
|
+
var PANEL_ID3 = "principal-ade.dependencies-panel";
|
|
184
|
+
var filterDependenciesTool = {
|
|
185
|
+
name: "filter_dependencies",
|
|
186
|
+
description: "Filter the dependencies list by package name",
|
|
187
|
+
inputs: {
|
|
188
|
+
type: "object",
|
|
189
|
+
properties: {
|
|
190
|
+
filter: {
|
|
191
|
+
type: "string",
|
|
192
|
+
description: "Search term to filter dependencies by name"
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
required: ["filter"]
|
|
196
|
+
},
|
|
197
|
+
outputs: {
|
|
198
|
+
type: "object",
|
|
199
|
+
properties: {
|
|
200
|
+
success: { type: "boolean" },
|
|
201
|
+
message: { type: "string" }
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
tags: ["filter", "search", "dependencies"],
|
|
205
|
+
tool_call_template: {
|
|
206
|
+
call_template_type: "panel_event",
|
|
207
|
+
event_type: `${PANEL_ID3}:filter`
|
|
208
|
+
}
|
|
209
|
+
};
|
|
210
|
+
var selectDependencyTypeTool = {
|
|
211
|
+
name: "select_dependency_type",
|
|
212
|
+
description: "Filter dependencies by type (production, development, or peer)",
|
|
213
|
+
inputs: {
|
|
214
|
+
type: "object",
|
|
215
|
+
properties: {
|
|
216
|
+
type: {
|
|
217
|
+
type: "string",
|
|
218
|
+
enum: ["production", "development", "peer", "all"],
|
|
219
|
+
description: "The dependency type to filter by"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
required: ["type"]
|
|
223
|
+
},
|
|
224
|
+
outputs: {
|
|
225
|
+
type: "object",
|
|
226
|
+
properties: {
|
|
227
|
+
success: { type: "boolean" },
|
|
228
|
+
selectedType: { type: "string" }
|
|
229
|
+
}
|
|
230
|
+
},
|
|
231
|
+
tags: ["filter", "type", "dependencies"],
|
|
232
|
+
tool_call_template: {
|
|
233
|
+
call_template_type: "panel_event",
|
|
234
|
+
event_type: `${PANEL_ID3}:select-type`
|
|
235
|
+
}
|
|
236
|
+
};
|
|
237
|
+
var selectPackageTool = {
|
|
238
|
+
name: "select_package",
|
|
239
|
+
description: "Select a package to view its dependencies (for monorepos)",
|
|
240
|
+
inputs: {
|
|
241
|
+
type: "object",
|
|
242
|
+
properties: {
|
|
243
|
+
packagePath: {
|
|
244
|
+
type: "string",
|
|
245
|
+
description: "The path of the package to select"
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
required: ["packagePath"]
|
|
249
|
+
},
|
|
250
|
+
outputs: {
|
|
251
|
+
type: "object",
|
|
252
|
+
properties: {
|
|
253
|
+
success: { type: "boolean" },
|
|
254
|
+
selectedPackage: { type: "string" }
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
tags: ["select", "package", "monorepo"],
|
|
258
|
+
tool_call_template: {
|
|
259
|
+
call_template_type: "panel_event",
|
|
260
|
+
event_type: `${PANEL_ID3}:select-package`
|
|
261
|
+
}
|
|
262
|
+
};
|
|
263
|
+
var dependenciesPanelTools = [
|
|
264
|
+
filterDependenciesTool,
|
|
265
|
+
selectDependencyTypeTool,
|
|
266
|
+
selectPackageTool
|
|
267
|
+
];
|
|
268
|
+
var dependenciesPanelToolsMetadata = {
|
|
269
|
+
id: PANEL_ID3,
|
|
270
|
+
name: "Dependencies Panel",
|
|
271
|
+
description: "Tools for viewing and exploring package dependencies",
|
|
272
|
+
tools: dependenciesPanelTools
|
|
273
|
+
};
|
|
92
274
|
export {
|
|
275
|
+
workspaceRepositoriesPanelToolsMetadata,
|
|
276
|
+
workspaceRepositoriesPanelTools,
|
|
277
|
+
selectRepositoryTool,
|
|
93
278
|
selectProjectTool,
|
|
279
|
+
selectPackageTool,
|
|
280
|
+
selectDependencyTypeTool,
|
|
281
|
+
refreshWorkspaceTool,
|
|
282
|
+
openRepositoryTool,
|
|
94
283
|
openProjectTool,
|
|
95
284
|
localProjectsPanelToolsMetadata,
|
|
96
285
|
localProjectsPanelTools,
|
|
97
|
-
filterProjectsTool
|
|
286
|
+
filterProjectsTool,
|
|
287
|
+
filterDependenciesTool,
|
|
288
|
+
dependenciesPanelToolsMetadata,
|
|
289
|
+
dependenciesPanelTools
|
|
98
290
|
};
|
package/dist/types/index.d.ts
CHANGED
|
@@ -4,4 +4,5 @@
|
|
|
4
4
|
* Re-exports core types from @principal-ade/panel-framework-core
|
|
5
5
|
*/
|
|
6
6
|
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';
|
|
7
|
+
export type { PackageLayer, DependencyItem, PackageSummary, PackagesSliceData, } from '../panels/DependenciesPanel/types';
|
|
7
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,YAAY,EAEV,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,eAAe,EAGf,cAAc,EACd,UAAU,EACV,iBAAiB,EAGjB,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EAGnB,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,WAAW,EAGX,kBAAkB,EAClB,WAAW,EACX,mBAAmB,EAGnB,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,sBAAsB,GACvB,MAAM,qCAAqC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,YAAY,EAEV,SAAS,EACT,iBAAiB,EACjB,kBAAkB,EAClB,cAAc,EACd,eAAe,EAGf,cAAc,EACd,UAAU,EACV,iBAAiB,EAGjB,YAAY,EACZ,iBAAiB,EACjB,mBAAmB,EAGnB,aAAa,EACb,mBAAmB,EACnB,eAAe,EACf,WAAW,EAGX,kBAAkB,EAClB,WAAW,EACX,mBAAmB,EAGnB,SAAS,EACT,kBAAkB,EAClB,UAAU,EACV,sBAAsB,GACvB,MAAM,qCAAqC,CAAC;AAG7C,YAAY,EACV,YAAY,EACZ,cAAc,EACd,cAAc,EACd,iBAAiB,GAClB,MAAM,mCAAmC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import type { WorkspaceRepositoryCardProps } from './types';
|
|
3
|
-
/**
|
|
4
|
-
* WorkspaceRepositoryCard - Repository card for workspace panel
|
|
5
|
-
*
|
|
6
|
-
* Displays repository info with workspace-specific actions like
|
|
7
|
-
* move to workspace directory and remove from workspace.
|
|
8
|
-
*/
|
|
9
|
-
export declare const WorkspaceRepositoryCard: React.FC<WorkspaceRepositoryCardProps>;
|
|
10
|
-
//# sourceMappingURL=WorkspaceRepositoryCard.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"WorkspaceRepositoryCard.d.ts","sourceRoot":"","sources":["../../../src/panels/WorkspaceRepositoriesPanel/WorkspaceRepositoryCard.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAIxC,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAE5D;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,EAAE,KAAK,CAAC,EAAE,CAAC,4BAA4B,CAqU1E,CAAC"}
|