@industry-theme/alexandria-panels 0.1.3 → 0.1.5

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.
@@ -10,5 +10,6 @@
10
10
  */
11
11
  export { localProjectsPanelTools, localProjectsPanelToolsMetadata, filterProjectsTool, selectProjectTool, openProjectTool, } from '../panels/LocalProjectsPanel/tools';
12
12
  export { workspaceRepositoriesPanelTools, workspaceRepositoriesPanelToolsMetadata, selectRepositoryTool, refreshWorkspaceTool, openRepositoryTool, } from '../panels/WorkspaceRepositoriesPanel/tools';
13
+ export { workspacesListPanelTools, workspacesListPanelToolsMetadata, filterWorkspacesTool, selectWorkspaceTool, openWorkspaceTool, createWorkspaceTool, } from '../panels/WorkspacesListPanel/tools';
13
14
  export { dependenciesPanelTools, dependenciesPanelToolsMetadata, filterDependenciesTool, selectDependencyTypeTool, selectPackageTool, } from '../panels/DependenciesPanel/tools';
14
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
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
+ {"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,wBAAwB,EACxB,gCAAgC,EAChC,oBAAoB,EACpB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,GACpB,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,sBAAsB,EACtB,wBAAwB,EACxB,iBAAiB,GAClB,MAAM,mCAAmC,CAAC"}
@@ -179,8 +179,131 @@ var workspaceRepositoriesPanelToolsMetadata = {
179
179
  description: "Tools provided by the workspace repositories panel",
180
180
  tools: workspaceRepositoriesPanelTools
181
181
  };
182
+ // src/panels/WorkspacesListPanel/tools.ts
183
+ var PANEL_ID3 = "industry-theme.workspaces-list";
184
+ var filterWorkspacesTool = {
185
+ name: "filter_workspaces",
186
+ description: "Filter the workspaces list by workspace name, description, or repository names within workspaces",
187
+ inputs: {
188
+ type: "object",
189
+ properties: {
190
+ filter: {
191
+ type: "string",
192
+ description: "Search term to filter workspaces (matches workspace name, description, or repository names)"
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", "workspaces"],
205
+ tool_call_template: {
206
+ call_template_type: "panel_event",
207
+ event_type: `${PANEL_ID3}:filter`
208
+ }
209
+ };
210
+ var selectWorkspaceTool = {
211
+ name: "select_workspace",
212
+ description: "Select a workspace by its ID to view its details and repositories",
213
+ inputs: {
214
+ type: "object",
215
+ properties: {
216
+ workspaceId: {
217
+ type: "string",
218
+ description: "The workspace ID to select"
219
+ }
220
+ },
221
+ required: ["workspaceId"]
222
+ },
223
+ outputs: {
224
+ type: "object",
225
+ properties: {
226
+ success: { type: "boolean" },
227
+ selectedWorkspace: { type: "string" }
228
+ }
229
+ },
230
+ tags: ["select", "workspace", "navigation"],
231
+ tool_call_template: {
232
+ call_template_type: "panel_event",
233
+ event_type: `${PANEL_ID3}:select-workspace`
234
+ }
235
+ };
236
+ var openWorkspaceTool = {
237
+ name: "open_workspace",
238
+ description: "Open a workspace in a dedicated window for full workspace management",
239
+ inputs: {
240
+ type: "object",
241
+ properties: {
242
+ workspaceId: {
243
+ type: "string",
244
+ description: "The workspace ID to open"
245
+ }
246
+ },
247
+ required: ["workspaceId"]
248
+ },
249
+ outputs: {
250
+ type: "object",
251
+ properties: {
252
+ success: { type: "boolean" },
253
+ message: { type: "string" }
254
+ }
255
+ },
256
+ tags: ["open", "workspace", "window"],
257
+ tool_call_template: {
258
+ call_template_type: "panel_event",
259
+ event_type: `${PANEL_ID3}:open-workspace`
260
+ }
261
+ };
262
+ var createWorkspaceTool = {
263
+ name: "create_workspace",
264
+ description: "Create a new workspace with the specified name and optional description",
265
+ inputs: {
266
+ type: "object",
267
+ properties: {
268
+ name: {
269
+ type: "string",
270
+ description: "The name for the new workspace"
271
+ },
272
+ description: {
273
+ type: "string",
274
+ description: "Optional description for the workspace"
275
+ }
276
+ },
277
+ required: ["name"]
278
+ },
279
+ outputs: {
280
+ type: "object",
281
+ properties: {
282
+ success: { type: "boolean" },
283
+ workspaceId: { type: "string" },
284
+ message: { type: "string" }
285
+ }
286
+ },
287
+ tags: ["create", "workspace", "new"],
288
+ tool_call_template: {
289
+ call_template_type: "panel_event",
290
+ event_type: `${PANEL_ID3}:create-workspace`
291
+ }
292
+ };
293
+ var workspacesListPanelTools = [
294
+ filterWorkspacesTool,
295
+ selectWorkspaceTool,
296
+ openWorkspaceTool,
297
+ createWorkspaceTool
298
+ ];
299
+ var workspacesListPanelToolsMetadata = {
300
+ id: PANEL_ID3,
301
+ name: "Workspaces List Panel",
302
+ description: "Tools for browsing and managing workspaces",
303
+ tools: workspacesListPanelTools
304
+ };
182
305
  // src/panels/DependenciesPanel/tools.ts
183
- var PANEL_ID3 = "principal-ade.dependencies-panel";
306
+ var PANEL_ID4 = "principal-ade.dependencies-panel";
184
307
  var filterDependenciesTool = {
185
308
  name: "filter_dependencies",
186
309
  description: "Filter the dependencies list by package name",
@@ -204,7 +327,7 @@ var filterDependenciesTool = {
204
327
  tags: ["filter", "search", "dependencies"],
205
328
  tool_call_template: {
206
329
  call_template_type: "panel_event",
207
- event_type: `${PANEL_ID3}:filter`
330
+ event_type: `${PANEL_ID4}:filter`
208
331
  }
209
332
  };
210
333
  var selectDependencyTypeTool = {
@@ -231,7 +354,7 @@ var selectDependencyTypeTool = {
231
354
  tags: ["filter", "type", "dependencies"],
232
355
  tool_call_template: {
233
356
  call_template_type: "panel_event",
234
- event_type: `${PANEL_ID3}:select-type`
357
+ event_type: `${PANEL_ID4}:select-type`
235
358
  }
236
359
  };
237
360
  var selectPackageTool = {
@@ -257,7 +380,7 @@ var selectPackageTool = {
257
380
  tags: ["select", "package", "monorepo"],
258
381
  tool_call_template: {
259
382
  call_template_type: "panel_event",
260
- event_type: `${PANEL_ID3}:select-package`
383
+ event_type: `${PANEL_ID4}:select-package`
261
384
  }
262
385
  };
263
386
  var dependenciesPanelTools = [
@@ -266,25 +389,31 @@ var dependenciesPanelTools = [
266
389
  selectPackageTool
267
390
  ];
268
391
  var dependenciesPanelToolsMetadata = {
269
- id: PANEL_ID3,
392
+ id: PANEL_ID4,
270
393
  name: "Dependencies Panel",
271
394
  description: "Tools for viewing and exploring package dependencies",
272
395
  tools: dependenciesPanelTools
273
396
  };
274
397
  export {
398
+ workspacesListPanelToolsMetadata,
399
+ workspacesListPanelTools,
275
400
  workspaceRepositoriesPanelToolsMetadata,
276
401
  workspaceRepositoriesPanelTools,
402
+ selectWorkspaceTool,
277
403
  selectRepositoryTool,
278
404
  selectProjectTool,
279
405
  selectPackageTool,
280
406
  selectDependencyTypeTool,
281
407
  refreshWorkspaceTool,
408
+ openWorkspaceTool,
282
409
  openRepositoryTool,
283
410
  openProjectTool,
284
411
  localProjectsPanelToolsMetadata,
285
412
  localProjectsPanelTools,
413
+ filterWorkspacesTool,
286
414
  filterProjectsTool,
287
415
  filterDependenciesTool,
288
416
  dependenciesPanelToolsMetadata,
289
- dependenciesPanelTools
417
+ dependenciesPanelTools,
418
+ createWorkspaceTool
290
419
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@industry-theme/alexandria-panels",
3
- "version": "0.1.3",
3
+ "version": "0.1.5",
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,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
- }