nexus-shell 0.1.22 → 0.2.0

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 (94) hide show
  1. package/README.md +148 -107
  2. package/dist/components/layout/ShellLayout.d.ts +57 -11
  3. package/dist/components/widgets/ActivityBar.d.ts +48 -1
  4. package/dist/components/widgets/AppTitle.d.ts +30 -0
  5. package/dist/components/widgets/ChatPane.d.ts +63 -1
  6. package/dist/components/widgets/CommandPalette.d.ts +55 -7
  7. package/dist/components/widgets/ContextMenu.d.ts +34 -3
  8. package/dist/components/widgets/DataGrid.d.ts +44 -0
  9. package/dist/components/widgets/MenuBar.d.ts +55 -5
  10. package/dist/components/widgets/Modal.d.ts +58 -0
  11. package/dist/components/widgets/QuickSearch.d.ts +66 -0
  12. package/dist/components/widgets/SearchWidget.d.ts +36 -0
  13. package/dist/components/widgets/SettingsPanel.d.ts +33 -0
  14. package/dist/components/widgets/SidebarPane.d.ts +37 -1
  15. package/dist/components/widgets/StatusBar.d.ts +51 -1
  16. package/dist/components/widgets/TerminalPane.d.ts +43 -1
  17. package/dist/components/widgets/ThemeSwitcher.d.ts +35 -5
  18. package/dist/components/widgets/TreeWidget.d.ts +94 -5
  19. package/dist/components/widgets/UserProfile.d.ts +75 -6
  20. package/dist/connected/ConnectedActivityBar.d.ts +10 -0
  21. package/dist/connected/ConnectedChatPane.d.ts +18 -0
  22. package/dist/connected/ConnectedCommandPalette.d.ts +18 -0
  23. package/dist/connected/ConnectedMenuBar.d.ts +12 -0
  24. package/dist/connected/ConnectedModal.d.ts +15 -0
  25. package/dist/connected/ConnectedSidebarPane.d.ts +12 -0
  26. package/dist/connected/ConnectedStatusBar.d.ts +15 -0
  27. package/dist/connected/ConnectedTerminalPane.d.ts +18 -0
  28. package/dist/connected/ConnectedThemeSwitcher.d.ts +11 -0
  29. package/dist/connected/ConnectedUserProfile.d.ts +14 -0
  30. package/dist/connected/index.d.ts +21 -0
  31. package/dist/core/registry/MenuRegistry.d.ts +22 -9
  32. package/dist/core/services/ChatService.d.ts +23 -7
  33. package/dist/core/services/StatusBarService.d.ts +17 -14
  34. package/dist/index.d.ts +44 -32
  35. package/dist/lib/cn.d.ts +12 -0
  36. package/dist/nexus-shell.es.js +2360 -40
  37. package/dist/nexus-shell.umd.js +1 -3687
  38. package/dist/style.css +1 -1
  39. package/package.json +43 -15
  40. package/dist/App.d.ts +0 -2
  41. package/dist/components/layout/NexusWorkspaceShell.d.ts +0 -9
  42. package/dist/components/widgets/AgentManager.d.ts +0 -18
  43. package/dist/components/widgets/ArgumentInspectorWidget.d.ts +0 -5
  44. package/dist/components/widgets/DialogueMapperInspector.d.ts +0 -5
  45. package/dist/components/widgets/DialogueMapperLibrary.d.ts +0 -11
  46. package/dist/components/widgets/DialogueMapperLibraryWidget.d.ts +0 -3
  47. package/dist/components/widgets/DialogueMappingWidget.d.ts +0 -10
  48. package/dist/components/widgets/FilesSidebar.d.ts +0 -1
  49. package/dist/components/widgets/FlowControlToolbar.d.ts +0 -18
  50. package/dist/components/widgets/GlobalModal.d.ts +0 -3
  51. package/dist/components/widgets/MockupReviewWidget.d.ts +0 -3
  52. package/dist/components/widgets/NexusWorkspaceTitle.d.ts +0 -10
  53. package/dist/components/widgets/ProjectPropertiesWidget.d.ts +0 -8
  54. package/dist/components/widgets/WargameMap.d.ts +0 -31
  55. package/dist/components/widgets/WelcomeTab.d.ts +0 -8
  56. package/dist/components/widgets/dialogue-mapper/IbisNode.d.ts +0 -5
  57. package/dist/components/widgets/mockup-reviewer/ExecutionOverlay.d.ts +0 -10
  58. package/dist/components/widgets/mockup-reviewer/HtmlShadowRenderer.d.ts +0 -9
  59. package/dist/components/widgets/mockup-reviewer/ImplementationPlanWorkspace.d.ts +0 -8
  60. package/dist/components/widgets/mockup-reviewer/MockupReviewWorkspace.d.ts +0 -10
  61. package/dist/components/widgets/mockup-reviewer/ReviewSidebar.d.ts +0 -3
  62. package/dist/components/widgets/mockup-reviewer/ReviewToolbar.d.ts +0 -12
  63. package/dist/components/widgets/mockup-reviewer/WorkflowMapper.d.ts +0 -7
  64. package/dist/core/Boot.d.ts +0 -4
  65. package/dist/core/services/DialogueMappingService.d.ts +0 -59
  66. package/dist/core/services/FileStoreService.d.ts +0 -11
  67. package/dist/core/services/MockupReviewService.d.ts +0 -58
  68. package/dist/index-CldzmX--.js +0 -78241
  69. package/dist/main.d.ts +0 -1
  70. package/dist/maplibre-gl-4rEhwx6Y.js +0 -24588
  71. package/dist/stories/ActivityBar.stories.d.ts +0 -9
  72. package/dist/stories/AgentManager.stories.d.ts +0 -25
  73. package/dist/stories/ChatPane.stories.d.ts +0 -10
  74. package/dist/stories/CommandPalette.stories.d.ts +0 -9
  75. package/dist/stories/DataGrid.stories.d.ts +0 -12
  76. package/dist/stories/DialogueMapperLibrary.stories.d.ts +0 -10
  77. package/dist/stories/DialogueMappingWidget.stories.d.ts +0 -9
  78. package/dist/stories/FlowControlToolbar.stories.d.ts +0 -14
  79. package/dist/stories/GlobalModal.stories.d.ts +0 -7
  80. package/dist/stories/IbisNode.stories.d.ts +0 -10
  81. package/dist/stories/MenuBar.stories.d.ts +0 -10
  82. package/dist/stories/MockupReviewWidget.stories.d.ts +0 -9
  83. package/dist/stories/MockupReviewerLayout.stories.d.ts +0 -8
  84. package/dist/stories/NexusWorkspaceShell.stories.d.ts +0 -9
  85. package/dist/stories/NexusWorkspaceTitle.stories.d.ts +0 -11
  86. package/dist/stories/SearchWidget.stories.d.ts +0 -9
  87. package/dist/stories/ShellLayout.stories.d.ts +0 -13
  88. package/dist/stories/SidebarPane.stories.d.ts +0 -8
  89. package/dist/stories/StatusBar.stories.d.ts +0 -10
  90. package/dist/stories/TerminalPane.stories.d.ts +0 -9
  91. package/dist/stories/ThemeSwitcher.stories.d.ts +0 -10
  92. package/dist/stories/TreeWidget.stories.d.ts +0 -8
  93. package/dist/stories/UserProfile.stories.d.ts +0 -11
  94. package/dist/stories/WargameMap.stories.d.ts +0 -14
@@ -1,5 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- export declare const ArgumentInspectorWidget: React.FC<{
4
- node?: any;
5
- }>;
@@ -1,5 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- export declare const DialogueMapperInspector: React.FC<{
4
- mapId?: string;
5
- }>;
@@ -1,11 +0,0 @@
1
- import { default as React } from 'react';
2
- import { IbisNodeType } from '../../core/services/DialogueMappingService';
3
-
4
- export interface DialogueMapperLibraryProps {
5
- onAddNode: (type: IbisNodeType) => void;
6
- onClose?: () => void;
7
- className?: string;
8
- onDragStart?: (event: React.DragEvent<HTMLButtonElement>, type: IbisNodeType) => void;
9
- }
10
- export declare const DialogueMapperLibrary: React.FC<DialogueMapperLibraryProps>;
11
- export default DialogueMapperLibrary;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- export declare const DialogueMapperLibraryWidget: React.FC;
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
- import { TabNode } from 'flexlayout-react';
3
-
4
- export interface DialogueMappingWidgetProps {
5
- node?: TabNode;
6
- defaultDragMode?: 'pan' | 'select';
7
- mapId: string;
8
- }
9
- export declare const DialogueMappingWidget: React.FC<DialogueMappingWidgetProps>;
10
- export default DialogueMappingWidget;
@@ -1 +0,0 @@
1
- export declare const FilesSidebar: () => import("react/jsx-runtime").JSX.Element;
@@ -1,18 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- export interface FlowControlToolbarProps {
4
- variant?: 'header' | 'floating';
5
- dragMode?: 'pan' | 'select';
6
- onDragModeChange?: (mode: 'pan' | 'select') => void;
7
- autoLayoutMode: 'vertical' | 'horizontal' | 'freeform';
8
- onAutoLayoutModeChange: (mode: 'vertical' | 'horizontal' | 'freeform') => void;
9
- onUndo: () => void;
10
- canUndo?: boolean;
11
- className?: string;
12
- isLibraryOpen?: boolean;
13
- onToggleLibrary?: () => void;
14
- isInspectorOpen?: boolean;
15
- onToggleInspector?: () => void;
16
- }
17
- export declare const FlowControlToolbar: React.FC<FlowControlToolbarProps>;
18
- export default FlowControlToolbar;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- export declare const GlobalModal: React.FC;
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- export declare const MockupReviewWidget: React.FC;
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- export interface NexusWorkspaceTitleProps {
4
- title?: string;
5
- subtitle?: string;
6
- icon?: React.ReactNode;
7
- className?: string;
8
- }
9
- export declare const NexusWorkspaceTitle: React.FC<NexusWorkspaceTitleProps>;
10
- export default NexusWorkspaceTitle;
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- interface ProjectPropertiesProps {
4
- projectId: string;
5
- projectName: string;
6
- }
7
- export declare const ProjectPropertiesWidget: React.FC<ProjectPropertiesProps>;
8
- export {};
@@ -1,31 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- export interface UnitData {
4
- id: string;
5
- sidc: string;
6
- coordinates: [number, number];
7
- }
8
- export interface AttackData {
9
- id: string;
10
- origin: [number, number];
11
- target: [number, number];
12
- }
13
- export interface TerrainHexData {
14
- h3Index: string;
15
- owner: 'friendly' | 'hostile' | 'neutral';
16
- }
17
- export interface WargameMapProps {
18
- initialViewState?: {
19
- longitude: number;
20
- latitude: number;
21
- zoom: number;
22
- pitch?: number;
23
- bearing?: number;
24
- };
25
- units?: UnitData[];
26
- attacks?: AttackData[];
27
- terrainHexes?: TerrainHexData[];
28
- mapStyle?: string;
29
- className?: string;
30
- }
31
- export declare const WargameMap: React.FC<WargameMapProps>;
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
- import { TabNode } from 'flexlayout-react';
3
-
4
- interface WelcomeTabProps {
5
- node: TabNode;
6
- }
7
- export declare const WelcomeTab: React.FC<WelcomeTabProps>;
8
- export {};
@@ -1,5 +0,0 @@
1
- import { default as React } from 'react';
2
- import { NodeProps } from 'reactflow';
3
- import { IDialogueNodeData } from '../../../core/services/DialogueMappingService';
4
-
5
- export declare const IbisNode: React.FC<NodeProps<IDialogueNodeData>>;
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- interface ExecutionOverlayProps {
4
- isExecuting: boolean;
5
- setIsExecuting: (val: boolean) => void;
6
- executionStep: number;
7
- setExecutionStep: (step: number | ((prev: number) => number)) => void;
8
- }
9
- export declare const ExecutionOverlay: React.FC<ExecutionOverlayProps>;
10
- export {};
@@ -1,9 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- interface HtmlShadowRendererProps {
4
- htmlContent: string;
5
- onElementClick?: (selector: string, clientX: number, clientY: number) => void;
6
- shadowHostRef: React.RefObject<HTMLDivElement | null>;
7
- }
8
- export declare const HtmlShadowRenderer: React.FC<HtmlShadowRendererProps>;
9
- export {};
@@ -1,8 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- interface ImplementationPlanWorkspaceProps {
4
- setIsExecuting: (val: boolean) => void;
5
- setExecutionStep: (step: number) => void;
6
- }
7
- export declare const ImplementationPlanWorkspace: React.FC<ImplementationPlanWorkspaceProps>;
8
- export {};
@@ -1,10 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- interface MockupReviewWorkspaceProps {
4
- tool: 'select' | 'pen' | 'rect' | 'circle' | 'arrow' | 'comment' | 'eraser';
5
- color: string;
6
- selectedAnnotationId: string | null;
7
- setSelectedAnnotationId: (id: string | null) => void;
8
- }
9
- export declare const MockupReviewWorkspace: React.FC<MockupReviewWorkspaceProps>;
10
- export {};
@@ -1,3 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- export declare const ReviewSidebar: React.FC;
@@ -1,12 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- interface ReviewToolbarProps {
4
- tool: 'select' | 'pen' | 'rect' | 'circle' | 'arrow' | 'comment' | 'eraser';
5
- setTool: (t: 'select' | 'pen' | 'rect' | 'circle' | 'arrow' | 'comment' | 'eraser') => void;
6
- color: string;
7
- setColor: (c: string) => void;
8
- selectedAnnotationId: string | null;
9
- setSelectedAnnotationId: (id: string | null) => void;
10
- }
11
- export declare const ReviewToolbar: React.FC<ReviewToolbarProps>;
12
- export {};
@@ -1,7 +0,0 @@
1
- import { default as React } from 'react';
2
-
3
- interface WorkflowMapperProps {
4
- setActiveTab: (tab: 'workflow' | 'review' | 'implementation') => void;
5
- }
6
- export declare const WorkflowMapper: React.FC<WorkflowMapperProps>;
7
- export {};
@@ -1,4 +0,0 @@
1
- /**
2
- * Initializes the shell's core commands and menus.
3
- */
4
- export declare const initializeShell: () => Promise<void>;
@@ -1,59 +0,0 @@
1
- import { StoreApi, UseBoundStore } from 'zustand';
2
- import { Node, Edge, Connection } from 'reactflow';
3
-
4
- export type IbisNodeType = 'question' | 'idea' | 'pro' | 'con' | 'note' | 'decision' | 'link' | 'image' | 'map';
5
- export interface IDialogueNodeData {
6
- id: string;
7
- type: IbisNodeType;
8
- title: string;
9
- description?: string;
10
- tags?: string[];
11
- author?: string;
12
- timestamp: string;
13
- status?: 'pending' | 'accepted' | 'rejected';
14
- url?: string;
15
- imageUrl?: string;
16
- autoEdit?: boolean;
17
- freeformPosition?: {
18
- x: number;
19
- y: number;
20
- };
21
- }
22
- interface DialogueMappingState {
23
- nodes: Node<IDialogueNodeData>[];
24
- edges: Edge[];
25
- selectedNodeId: string | null;
26
- layoutHistory: Node<IDialogueNodeData>[][];
27
- autoLayoutMode: 'vertical' | 'horizontal' | 'freeform';
28
- setAutoLayoutMode: (mode: 'vertical' | 'horizontal' | 'freeform') => void;
29
- setNodes: (nodes: Node<IDialogueNodeData>[]) => void;
30
- setEdges: (edges: Edge[]) => void;
31
- setSelectedNodeId: (id: string | null) => void;
32
- addNode: (type: IbisNodeType, position: {
33
- x: number;
34
- y: number;
35
- }, parentNodeId?: string | null) => void;
36
- updateNodeData: (id: string, updates: Partial<IDialogueNodeData>) => void;
37
- deleteNode: (id: string) => void;
38
- deleteEdge: (id: string) => void;
39
- pasteNode: (type: IbisNodeType, position: {
40
- x: number;
41
- y: number;
42
- }, initialData: Partial<IDialogueNodeData>) => void;
43
- connectNodes: (connection: Connection) => boolean;
44
- validateConnection: (sourceId: string, targetId: string) => {
45
- valid: boolean;
46
- reason?: string;
47
- };
48
- triggerAutoLayout: (direction: 'vertical' | 'horizontal' | 'grid') => void;
49
- undoLayout: () => void;
50
- connectionError: string | null;
51
- setConnectionError: (error: string | null) => void;
52
- recordHistory: () => void;
53
- importMap: (jsonStr: string) => boolean;
54
- exportMap: () => string;
55
- }
56
- export declare let globalFallbackStore: UseBoundStore<StoreApi<DialogueMappingState>> | null;
57
- export declare const getMapStore: (mapId?: string) => UseBoundStore<StoreApi<DialogueMappingState>>;
58
- export declare const useDialogueMappingStore: UseBoundStore<StoreApi<DialogueMappingState>>;
59
- export {};
@@ -1,11 +0,0 @@
1
- import { ITreeNode } from '../../components/widgets/TreeWidget';
2
-
3
- interface FileStoreState {
4
- nodes: ITreeNode[];
5
- fetchFiles: () => Promise<void>;
6
- addFile: (parentId: string | null, file: ITreeNode) => Promise<void>;
7
- deleteFile: (id: string) => Promise<void>;
8
- renameFile: (id: string, newName: string) => Promise<void>;
9
- }
10
- export declare const useFileStore: import('zustand').UseBoundStore<import('zustand').StoreApi<FileStoreState>>;
11
- export {};
@@ -1,58 +0,0 @@
1
- import { Node, Edge } from 'reactflow';
2
-
3
- export interface IMockupAnnotation {
4
- id: string;
5
- type: 'stroke' | 'rect' | 'circle' | 'arrow' | 'comment';
6
- color: string;
7
- points?: {
8
- x: number;
9
- y: number;
10
- }[];
11
- x?: number;
12
- y?: number;
13
- width?: number;
14
- height?: number;
15
- text?: string;
16
- elementSelector?: string;
17
- versionId: string;
18
- }
19
- export interface IMockupVersion {
20
- id: string;
21
- label: string;
22
- timestamp: string;
23
- htmlContent: string;
24
- annotations: IMockupAnnotation[];
25
- }
26
- export interface IMockupView {
27
- id: string;
28
- name: string;
29
- description?: string;
30
- activeVersionId: string;
31
- versions: IMockupVersion[];
32
- parentId?: string | null;
33
- }
34
- interface MockupReviewState {
35
- views: IMockupView[];
36
- activeViewId: string | null;
37
- compareVersionId: string | null;
38
- nodes: Node[];
39
- edges: Edge[];
40
- implementationPlan: string;
41
- setActiveViewId: (id: string | null) => void;
42
- setActiveVersionId: (viewId: string, versionId: string) => void;
43
- setCompareVersionId: (versionId: string | null) => void;
44
- setViewParentId: (viewId: string, parentId: string | null) => void;
45
- addAnnotation: (viewId: string, versionId: string, annotation: Omit<IMockupAnnotation, 'versionId'>) => void;
46
- undoAnnotation: (viewId: string, versionId: string) => void;
47
- deleteAnnotation: (viewId: string, versionId: string, annotationId: string) => void;
48
- updateAnnotationText: (viewId: string, versionId: string, annotationId: string, text: string) => void;
49
- addMockupView: (name: string, description?: string, htmlContent?: string) => string;
50
- addMockupVersion: (viewId: string, label: string, htmlContent: string) => string;
51
- updateWorkflow: (nodes: Node[], edges: Edge[]) => void;
52
- setImplementationPlan: (plan: string) => void;
53
- generateImplementationPlanAction: () => void;
54
- refineImplementationPlanAction: (refinementPrompt: string) => void;
55
- exportHistoryJson: () => string;
56
- }
57
- export declare const useMockupReviewStore: import('zustand').UseBoundStore<import('zustand').StoreApi<MockupReviewState>>;
58
- export {};