@industry-theme/alexandria-panels 0.1.2 → 0.1.4

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.
Files changed (37) hide show
  1. package/dist/index.d.ts +5 -2
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/mocks/panelContext.d.ts.map +1 -1
  4. package/dist/panels/DependenciesPanel/DependenciesPanel.stories.d.ts +59 -0
  5. package/dist/panels/DependenciesPanel/DependenciesPanel.stories.d.ts.map +1 -0
  6. package/dist/panels/DependenciesPanel/components/DependencyInfoModal.d.ts +8 -0
  7. package/dist/panels/DependenciesPanel/components/DependencyInfoModal.d.ts.map +1 -0
  8. package/dist/panels/DependenciesPanel/components/DependencyRow.d.ts +8 -0
  9. package/dist/panels/DependenciesPanel/components/DependencyRow.d.ts.map +1 -0
  10. package/dist/panels/DependenciesPanel/components/FilterBar.d.ts +17 -0
  11. package/dist/panels/DependenciesPanel/components/FilterBar.d.ts.map +1 -0
  12. package/dist/panels/DependenciesPanel/components/index.d.ts +4 -0
  13. package/dist/panels/DependenciesPanel/components/index.d.ts.map +1 -0
  14. package/dist/panels/DependenciesPanel/index.d.ts +7 -0
  15. package/dist/panels/DependenciesPanel/index.d.ts.map +1 -0
  16. package/dist/panels/DependenciesPanel/tools.d.ts +35 -0
  17. package/dist/panels/DependenciesPanel/tools.d.ts.map +1 -0
  18. package/dist/panels/DependenciesPanel/types.d.ts +36 -0
  19. package/dist/panels/DependenciesPanel/types.d.ts.map +1 -0
  20. package/dist/panels/LocalProjectsPanel/LocalProjectCard.d.ts.map +1 -1
  21. package/dist/panels/LocalProjectsPanel/types.d.ts +11 -1
  22. package/dist/panels/LocalProjectsPanel/types.d.ts.map +1 -1
  23. package/dist/panels/WorkspaceRepositoriesPanel/index.d.ts +2 -2
  24. package/dist/panels/WorkspaceRepositoriesPanel/index.d.ts.map +1 -1
  25. package/dist/panels/WorkspaceRepositoriesPanel/types.d.ts +0 -23
  26. package/dist/panels/WorkspaceRepositoriesPanel/types.d.ts.map +1 -1
  27. package/dist/panels.bundle.js +1372 -459
  28. package/dist/panels.bundle.js.map +1 -1
  29. package/dist/tools/index.d.ts +3 -24
  30. package/dist/tools/index.d.ts.map +1 -1
  31. package/dist/tools.bundle.js +194 -2
  32. package/dist/types/index.d.ts +1 -0
  33. package/dist/types/index.d.ts.map +1 -1
  34. package/package.json +3 -2
  35. package/dist/panels/WorkspaceRepositoriesPanel/WorkspaceRepositoryCard.d.ts +0 -10
  36. package/dist/panels/WorkspaceRepositoriesPanel/WorkspaceRepositoryCard.d.ts.map +0 -1
  37. package/dist/panels.bundle.css +0 -86
@@ -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
- import type { PanelTool, PanelToolsMetadata } from '@principal-ade/utcp-panel-event';
12
- /**
13
- * Tool: Filter Projects
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;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAIrF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,SAyBhC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,iBAAiB,EAAE,SAyB/B,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,eAAe,EAAE,SAyB7B,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,EAI9C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,+BAA+B,EAAE,kBAK7C,CAAC"}
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"}
@@ -1,4 +1,4 @@
1
- // src/tools/index.ts
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
  };
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@industry-theme/alexandria-panels",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Alexandria entry panels for browsing and managing local repositories",
5
5
  "type": "module",
6
6
  "main": "dist/panels.bundle.js",
@@ -86,7 +86,8 @@
86
86
  "storybook": "10.1.2",
87
87
  "typescript": "^5.0.4",
88
88
  "typescript-eslint": "^8.38.0",
89
- "vite": "^6.0.7"
89
+ "vite": "^6.0.7",
90
+ "vite-plugin-css-injected-by-js": "^3.5.2"
90
91
  },
91
92
  "files": [
92
93
  "dist",
@@ -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"}
@@ -1,86 +0,0 @@
1
- /* Container query for responsive LocalProjectCard */
2
- .local-projects-panel {
3
- container-type: inline-size;
4
- container-name: local-projects;
5
- height: 100%;
6
- }
7
-
8
- .local-project-card {
9
- display: flex;
10
- flex-direction: row;
11
- align-items: center;
12
- gap: 12px;
13
- }
14
-
15
- .local-project-card__content {
16
- display: flex;
17
- align-items: center;
18
- gap: 12px;
19
- flex: 1;
20
- min-width: 0;
21
- }
22
-
23
- .local-project-card__info {
24
- flex: 1;
25
- min-width: 0;
26
- display: flex;
27
- flex-direction: column;
28
- gap: 2px;
29
- }
30
-
31
- .local-project-card__path,
32
- .local-project-card__meta {
33
- display: flex;
34
- }
35
-
36
- .local-project-card__actions {
37
- display: flex;
38
- gap: 4px;
39
- flex-shrink: 0;
40
- align-items: center;
41
- }
42
-
43
- .local-project-card__actions--stacked {
44
- display: none;
45
- }
46
-
47
- /* Compact mode when container is 400px or less */
48
- @container local-projects (max-width: 400px) {
49
- .local-projects-panel {
50
- padding: 8px !important;
51
- gap: 8px !important;
52
- }
53
-
54
- .local-projects-list {
55
- gap: 12px !important;
56
- }
57
-
58
- .local-project-card {
59
- flex-direction: column;
60
- align-items: stretch;
61
- gap: 6px;
62
- padding: 0 !important;
63
- }
64
-
65
- .local-project-card__content {
66
- gap: 8px;
67
- }
68
-
69
- .local-project-card__path,
70
- .local-project-card__meta {
71
- display: none;
72
- }
73
-
74
- .local-project-card__actions {
75
- display: none;
76
- }
77
-
78
- .local-project-card__actions--stacked {
79
- display: flex;
80
- gap: 4px;
81
- }
82
-
83
- .local-project-card__actions--stacked button {
84
- flex: 1;
85
- }
86
- }