nexus-shell 0.1.23 → 0.2.1
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/README.md +191 -106
- package/dist/components/layout/ShellLayout.d.ts +90 -12
- package/dist/components/widgets/ActivityBar.d.ts +48 -1
- package/dist/components/widgets/AppTitle.d.ts +30 -0
- package/dist/components/widgets/ChatPane.d.ts +63 -1
- package/dist/components/widgets/CommandPalette.d.ts +55 -7
- package/dist/components/widgets/ContextMenu.d.ts +34 -3
- package/dist/components/widgets/DataGrid.d.ts +44 -0
- package/dist/components/widgets/MenuBar.d.ts +55 -5
- package/dist/components/widgets/Modal.d.ts +58 -0
- package/dist/components/widgets/QuickSearch.d.ts +66 -0
- package/dist/components/widgets/SearchWidget.d.ts +36 -0
- package/dist/components/widgets/SettingsPanel.d.ts +33 -0
- package/dist/components/widgets/SidebarPane.d.ts +37 -1
- package/dist/components/widgets/StatusBar.d.ts +51 -1
- package/dist/components/widgets/TerminalPane.d.ts +43 -1
- package/dist/components/widgets/ThemeSwitcher.d.ts +35 -5
- package/dist/components/widgets/TreeWidget.d.ts +94 -5
- package/dist/components/widgets/UserProfile.d.ts +75 -6
- package/dist/connected/ConnectedActivityBar.d.ts +10 -0
- package/dist/connected/ConnectedChatPane.d.ts +18 -0
- package/dist/connected/ConnectedCommandPalette.d.ts +18 -0
- package/dist/connected/ConnectedMenuBar.d.ts +12 -0
- package/dist/connected/ConnectedModal.d.ts +15 -0
- package/dist/connected/ConnectedSidebarPane.d.ts +12 -0
- package/dist/connected/ConnectedStatusBar.d.ts +15 -0
- package/dist/connected/ConnectedTerminalPane.d.ts +18 -0
- package/dist/connected/ConnectedThemeSwitcher.d.ts +11 -0
- package/dist/connected/ConnectedUserProfile.d.ts +14 -0
- package/dist/connected/index.d.ts +21 -0
- package/dist/core/Boot.d.ts +64 -2
- package/dist/core/registry/MenuRegistry.d.ts +22 -9
- package/dist/core/services/ChatService.d.ts +23 -7
- package/dist/core/services/StatusBarService.d.ts +17 -14
- package/dist/index.d.ts +53 -33
- package/dist/lib/cn.d.ts +12 -0
- package/dist/nexus-shell.es.js +2427 -40
- package/dist/nexus-shell.umd.js +1 -3707
- package/dist/style.css +1 -1
- package/package.json +43 -15
- package/dist/App.d.ts +0 -2
- package/dist/components/layout/NexusWorkspaceShell.d.ts +0 -9
- package/dist/components/widgets/AgentManager.d.ts +0 -18
- package/dist/components/widgets/ArgumentInspectorWidget.d.ts +0 -5
- package/dist/components/widgets/DialogueMapperInspector.d.ts +0 -5
- package/dist/components/widgets/DialogueMapperLibrary.d.ts +0 -11
- package/dist/components/widgets/DialogueMapperLibraryWidget.d.ts +0 -3
- package/dist/components/widgets/DialogueMappingWidget.d.ts +0 -10
- package/dist/components/widgets/FilesSidebar.d.ts +0 -1
- package/dist/components/widgets/FlowControlToolbar.d.ts +0 -18
- package/dist/components/widgets/GlobalModal.d.ts +0 -3
- package/dist/components/widgets/MenuBarSearch.d.ts +0 -11
- package/dist/components/widgets/MockupReviewWidget.d.ts +0 -3
- package/dist/components/widgets/NexusWorkspaceTitle.d.ts +0 -10
- package/dist/components/widgets/ProjectPropertiesWidget.d.ts +0 -8
- package/dist/components/widgets/WargameMap.d.ts +0 -31
- package/dist/components/widgets/WelcomeTab.d.ts +0 -8
- package/dist/components/widgets/dialogue-mapper/IbisNode.d.ts +0 -5
- package/dist/components/widgets/mockup-reviewer/ExecutionOverlay.d.ts +0 -10
- package/dist/components/widgets/mockup-reviewer/HtmlShadowRenderer.d.ts +0 -9
- package/dist/components/widgets/mockup-reviewer/ImplementationPlanWorkspace.d.ts +0 -8
- package/dist/components/widgets/mockup-reviewer/MockupReviewWorkspace.d.ts +0 -10
- package/dist/components/widgets/mockup-reviewer/ReviewSidebar.d.ts +0 -3
- package/dist/components/widgets/mockup-reviewer/ReviewToolbar.d.ts +0 -12
- package/dist/components/widgets/mockup-reviewer/WorkflowMapper.d.ts +0 -7
- package/dist/components/widgets/wiki/AiCoWriterWorkspace.d.ts +0 -3
- package/dist/components/widgets/wiki/SemanticLinkMapper.d.ts +0 -3
- package/dist/components/widgets/wiki/WikiChatWidget.d.ts +0 -3
- package/dist/components/widgets/wiki/WikiEditor.d.ts +0 -3
- package/dist/components/widgets/wiki/WikiHistorySidebar.d.ts +0 -3
- package/dist/components/widgets/wiki/WikiNavigator.d.ts +0 -3
- package/dist/core/services/DialogueMappingService.d.ts +0 -59
- package/dist/core/services/FileStoreService.d.ts +0 -11
- package/dist/core/services/MockupReviewService.d.ts +0 -58
- package/dist/core/services/dialogue-mapper/DialogueLayoutEngine.d.ts +0 -9
- package/dist/core/services/dialogue-mapper/DialogueMapRepository.d.ts +0 -15
- package/dist/core/services/mockup-reviewer/MockupFixtures.d.ts +0 -11
- package/dist/core/services/useWikiStore.d.ts +0 -33
- package/dist/index-4EyxMz0x.js +0 -78516
- package/dist/main.d.ts +0 -1
- package/dist/maplibre-gl-DJOCpYhv.js +0 -24588
- package/dist/plugins/WikiPlugin.d.ts +0 -3
- package/dist/stories/ActivityBar.stories.d.ts +0 -9
- package/dist/stories/AgentManager.stories.d.ts +0 -25
- package/dist/stories/ChatPane.stories.d.ts +0 -10
- package/dist/stories/CommandPalette.stories.d.ts +0 -9
- package/dist/stories/DataGrid.stories.d.ts +0 -12
- package/dist/stories/DialogueMapperLibrary.stories.d.ts +0 -10
- package/dist/stories/DialogueMappingWidget.stories.d.ts +0 -9
- package/dist/stories/FlowControlToolbar.stories.d.ts +0 -14
- package/dist/stories/GlobalModal.stories.d.ts +0 -7
- package/dist/stories/IbisNode.stories.d.ts +0 -10
- package/dist/stories/MenuBar.stories.d.ts +0 -10
- package/dist/stories/MenuBarSearch.stories.d.ts +0 -7
- package/dist/stories/MockupReviewWidget.stories.d.ts +0 -9
- package/dist/stories/MockupReviewerLayout.stories.d.ts +0 -8
- package/dist/stories/NexusWorkspaceShell.stories.d.ts +0 -9
- package/dist/stories/NexusWorkspaceTitle.stories.d.ts +0 -11
- package/dist/stories/SearchWidget.stories.d.ts +0 -9
- package/dist/stories/ShellLayout.stories.d.ts +0 -13
- package/dist/stories/SidebarPane.stories.d.ts +0 -8
- package/dist/stories/StatusBar.stories.d.ts +0 -10
- package/dist/stories/TerminalPane.stories.d.ts +0 -9
- package/dist/stories/ThemeSwitcher.stories.d.ts +0 -10
- package/dist/stories/TreeWidget.stories.d.ts +0 -8
- package/dist/stories/UserProfile.stories.d.ts +0 -11
- package/dist/stories/WargameMap.stories.d.ts +0 -14
- package/dist/stories/wiki/WikiComposition.stories.d.ts +0 -6
- package/dist/stories/wiki/WikiWidgets.stories.d.ts +0 -11
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface Agent {
|
|
4
|
-
id: string;
|
|
5
|
-
name: string;
|
|
6
|
-
description: string;
|
|
7
|
-
schemaJson: string;
|
|
8
|
-
}
|
|
9
|
-
export interface AgentManagerProps {
|
|
10
|
-
agents?: Agent[];
|
|
11
|
-
onFetchAgents?: () => void;
|
|
12
|
-
onSaveAgent?: (agent: Partial<Agent>) => Promise<Agent | void>;
|
|
13
|
-
onDeleteAgent?: (id: string) => Promise<void>;
|
|
14
|
-
title?: string;
|
|
15
|
-
subtitle?: string;
|
|
16
|
-
className?: string;
|
|
17
|
-
}
|
|
18
|
-
export declare const AgentManager: React.FC<AgentManagerProps>;
|
|
@@ -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,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,11 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
|
|
3
|
-
export interface IUnifiedSearchResult {
|
|
4
|
-
id: string;
|
|
5
|
-
title: string;
|
|
6
|
-
description?: string;
|
|
7
|
-
category: 'Actions' | 'Files' | 'Map Nodes';
|
|
8
|
-
icon: React.ComponentType<any>;
|
|
9
|
-
originalData: any;
|
|
10
|
-
}
|
|
11
|
-
export declare const MenuBarSearch: 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,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,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,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,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 {};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Node, Edge } from 'reactflow';
|
|
2
|
-
import { IDialogueNodeData } from '../DialogueMappingService';
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* pure layoutDialogueNodes function:
|
|
6
|
-
* Takes nodes, edges, and layout direction, and computes updated node positions
|
|
7
|
-
* using a BFS topological layout. Returns a new array of nodes with updated positions.
|
|
8
|
-
*/
|
|
9
|
-
export declare function layoutDialogueNodes(nodes: Node<IDialogueNodeData>[], edges: Edge[], direction: 'vertical' | 'horizontal' | 'grid'): Node<IDialogueNodeData>[];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DialogueMapRepository adapter class.
|
|
3
|
-
* Encapsulates the REST API network requests for loading and saving dialogue maps.
|
|
4
|
-
*/
|
|
5
|
-
export declare class DialogueMapRepository {
|
|
6
|
-
/**
|
|
7
|
-
* Loads the map content by retrieving the file list from `/api/files`
|
|
8
|
-
* and recursively locating the file matching the specified map ID.
|
|
9
|
-
*/
|
|
10
|
-
static loadMap(mapId: string): Promise<string | null>;
|
|
11
|
-
/**
|
|
12
|
-
* Saves the map nodes and edges to `/api/maps/content`.
|
|
13
|
-
*/
|
|
14
|
-
static saveMap(mapId: string, nodes: any[], edges: any[]): Promise<void>;
|
|
15
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { Node, Edge } from 'reactflow';
|
|
2
|
-
import { IMockupView } from '../MockupReviewService';
|
|
3
|
-
|
|
4
|
-
export declare const defaultImplementationPlan = "# System Implementation Plan\n\nThis plan is dynamically generated from the mapped workflows and mockups.\n\n## 1. System Workflows & Transitions\nSelect **Generate Plan from Mockups** in the right panel to compile active screen transitions, generalization hierarchies, and annotated usability adjustments.\n";
|
|
5
|
-
export declare const defaultLoginHtmlV1 = "\n<div style=\"font-family: system-ui, sans-serif; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; padding: 2rem; background: #0f172a; color: #f8fafc; border-radius: 8px;\">\n <div style=\"width: 100%; max-width: 320px; background: #1e293b; padding: 2rem; border-radius: 8px; border: 1px border #334155; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);\">\n <h2 id=\"login-title\" style=\"margin-top: 0; text-align: center; color: #38bdf8; font-size: 1.5rem; font-weight: 700;\">Nexus Login</h2>\n <p style=\"color: #94a3b8; font-size: 0.875rem; text-align: center; margin-bottom: 1.5rem;\">Access the workbench dashboard</p>\n \n <label style=\"display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: #94a3b8; margin-bottom: 0.25rem;\">Username</label>\n <input id=\"input-username\" type=\"text\" placeholder=\"admin\" style=\"width: 100%; padding: 0.5rem; background: #0f172a; border: 1px solid #334155; border-radius: 4px; color: #f8fafc; margin-bottom: 1rem; box-sizing: border-box;\" />\n \n <label style=\"display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: #94a3b8; margin-bottom: 0.25rem;\">Password</label>\n <input id=\"input-password\" type=\"password\" placeholder=\"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\" style=\"width: 100%; padding: 0.5rem; background: #0f172a; border: 1px solid #334155; border-radius: 4px; color: #f8fafc; margin-bottom: 1.5rem; box-sizing: border-box;\" />\n \n <button id=\"btn-login\" style=\"width: 100%; padding: 0.625rem; background: #0284c7; border: none; border-radius: 4px; color: white; font-weight: 600; cursor: pointer; transition: background 0.2s;\">Sign In</button>\n </div>\n</div>\n";
|
|
6
|
-
export declare const defaultLoginHtmlV2 = "\n<div style=\"font-family: system-ui, sans-serif; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 400px; padding: 2rem; background: #0f172a; color: #f8fafc; border-radius: 8px;\">\n <div style=\"width: 100%; max-width: 320px; background: #1e293b; padding: 2rem; border-radius: 8px; border: 1px solid #334155; box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);\">\n <h2 id=\"login-title\" style=\"margin-top: 0; text-align: center; color: #6366f1; font-size: 1.5rem; font-weight: 700;\">Nexus Shell Portal</h2>\n <p style=\"color: #94a3b8; font-size: 0.875rem; text-align: center; margin-bottom: 1.5rem;\">Access the workbench dashboard</p>\n \n <label style=\"display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: #94a3b8; margin-bottom: 0.25rem;\">Username</label>\n <input id=\"input-username\" type=\"text\" placeholder=\"admin\" style=\"width: 100%; padding: 0.5rem; background: #0f172a; border: 1px solid #334155; border-radius: 4px; color: #f8fafc; margin-bottom: 1rem; box-sizing: border-box;\" />\n \n <label style=\"display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: #94a3b8; margin-bottom: 0.25rem;\">Password</label>\n <input id=\"input-password\" type=\"password\" placeholder=\"\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022\" style=\"width: 100%; padding: 0.5rem; background: #0f172a; border: 1px solid #334155; border-radius: 4px; color: #f8fafc; margin-bottom: 1.5rem; box-sizing: border-box;\" />\n \n <button id=\"btn-login\" style=\"width: 100%; padding: 0.625rem; background: #6366f1; border: none; border-radius: 4px; color: white; font-weight: 600; cursor: pointer; transition: background 0.2s;\">Sign In</button>\n \n <div style=\"display: flex; justify-content: space-between; margin-top: 1rem; font-size: 0.75rem;\">\n <a id=\"link-forgot-pass\" href=\"#\" style=\"color: #6366f1; text-decoration: none;\">Forgot password?</a>\n <a id=\"link-request-access\" href=\"#\" style=\"color: #94a3b8; text-decoration: none;\">Request Access</a>\n </div>\n </div>\n</div>\n";
|
|
7
|
-
export declare const defaultDashboardHtml = "\n<div style=\"font-family: system-ui, sans-serif; display: flex; flex-direction: column; min-height: 400px; background: #0f172a; color: #f8fafc; border-radius: 8px; overflow: hidden; border: 1px solid #1e293b;\">\n <!-- Header -->\n <header style=\"background: #1e293b; padding: 1rem; border-b: 1px solid #334155; display: flex; justify-content: space-between; align-items: center;\">\n <span id=\"dashboard-logo\" style=\"font-weight: 700; color: #38bdf8;\">Nexus Workbench</span>\n <div style=\"display: flex; gap: 1rem; align-items: center;\">\n <span style=\"font-size: 0.875rem;\">Welcome, Admin</span>\n <button id=\"btn-settings-trigger\" style=\"background: transparent; border: none; cursor: pointer; font-size: 1rem; padding: 0.25rem; color: #94a3b8;\">\u2699\uFE0F</button>\n </div>\n </header>\n \n <div style=\"display: flex; flex: 1;\">\n <!-- Sidebar -->\n <aside style=\"width: 150px; background: #0f172a; border-right: 1px solid #1e293b; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem;\">\n <a id=\"sidebar-overview\" href=\"#\" style=\"color: #38bdf8; text-decoration: none; font-size: 0.875rem; font-weight: 500; padding: 0.5rem; background: #1e293b; border-radius: 4px;\">Overview</a>\n <a id=\"sidebar-agents\" href=\"#\" style=\"color: #94a3b8; text-decoration: none; font-size: 0.875rem; padding: 0.5rem;\">Agents</a>\n <a id=\"sidebar-analytics\" href=\"#\" style=\"color: #94a3b8; text-decoration: none; font-size: 0.875rem; padding: 0.5rem;\">Analytics</a>\n </aside>\n \n <!-- Main content -->\n <main style=\"flex: 1; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem;\">\n <h3 id=\"overview-heading\" style=\"margin: 0; color: #f8fafc;\">System Overview</h3>\n <div style=\"display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;\">\n <div style=\"background: #1e293b; padding: 1rem; border-radius: 6px; text-align: center; border: 1px solid #334155;\">\n <div style=\"font-size: 0.75rem; color: #94a3b8; text-transform: uppercase;\">Active Agents</div>\n <div id=\"stat-active-agents\" style=\"font-size: 1.5rem; font-weight: 700; color: #38bdf8; margin-top: 0.25rem;\">12</div>\n </div>\n <div style=\"background: #1e293b; padding: 1rem; border-radius: 6px; text-align: center; border: 1px solid #334155;\">\n <div style=\"font-size: 0.75rem; color: #94a3b8; text-transform: uppercase;\">Accuracy (Avg)</div>\n <div id=\"stat-accuracy\" style=\"font-size: 1.5rem; font-weight: 700; color: #38bdf8; margin-top: 0.25rem;\">92.4%</div>\n </div>\n <div style=\"background: #1e293b; padding: 1rem; border-radius: 6px; text-align: center; border: 1px solid #334155;\">\n <div style=\"font-size: 0.75rem; color: #94a3b8; text-transform: uppercase;\">Uptime</div>\n <div id=\"stat-uptime\" style=\"font-size: 1.5rem; font-weight: 700; color: #38bdf8; margin-top: 0.25rem;\">99.98%</div>\n </div>\n </div>\n \n <!-- Mock chart panel -->\n <div id=\"analytics-chart-panel\" style=\"background: #1e293b; border: 1px solid #334155; border-radius: 6px; padding: 1rem; flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 150px;\">\n <span style=\"color: #94a3b8; font-size: 0.875rem;\">Agent Performance (Historical Trend)</span>\n <div style=\"width: 100%; height: 100px; display: flex; align-items: flex-end; gap: 0.5rem; padding-top: 1rem; justify-content: center;\">\n <div style=\"width: 20px; height: 40px; background: #0284c7; border-radius: 2px 2px 0 0;\"></div>\n <div style=\"width: 20px; height: 55px; background: #0284c7; border-radius: 2px 2px 0 0;\"></div>\n <div style=\"width: 20px; height: 60px; background: #0284c7; border-radius: 2px 2px 0 0;\"></div>\n <div style=\"width: 20px; height: 80px; background: #0284c7; border-radius: 2px 2px 0 0;\"></div>\n <div style=\"width: 20px; height: 95px; background: #38bdf8; border-radius: 2px 2px 0 0;\"></div>\n </div>\n </div>\n </main>\n </div>\n</div>\n";
|
|
8
|
-
export declare const defaultSettingsHtml = "\n<div style=\"font-family: system-ui, sans-serif; display: flex; flex-direction: column; min-height: 400px; background: #0f172a; color: #f8fafc; border-radius: 8px; overflow: hidden; border: 1px solid #1e293b; padding: 2rem;\">\n <div style=\"max-width: 450px; margin: 0 auto; width: 100%;\">\n <h3 id=\"settings-title\" style=\"margin-top: 0; color: #38bdf8; font-size: 1.25rem;\">System Preferences</h3>\n <p style=\"color: #94a3b8; font-size: 0.875rem; margin-bottom: 1.5rem;\">Modify active runtime configuration settings.</p>\n \n <div style=\"display: flex; flex-direction: column; gap: 1rem;\">\n <div>\n <label style=\"display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: #94a3b8; margin-bottom: 0.25rem;\">Server Address</label>\n <input id=\"input-server\" type=\"text\" value=\"https://api.nexus.cloud\" style=\"width: 100%; padding: 0.5rem; background: #1e293b; border: 1px solid #334155; border-radius: 4px; color: #f8fafc; box-sizing: border-box;\" />\n </div>\n \n <div>\n <label style=\"display: block; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: #94a3b8; margin-bottom: 0.25rem;\">Agent LLM Endpoint</label>\n <select id=\"select-model\" style=\"width: 100%; padding: 0.5rem; background: #1e293b; border: 1px solid #334155; border-radius: 4px; color: #f8fafc; box-sizing: border-box;\">\n <option>gemini-1.5-pro-latest</option>\n <option>gemini-1.5-flash</option>\n <option>claude-3-opus</option>\n </select>\n </div>\n \n <div style=\"display: flex; gap: 1rem; align-items: center; margin-top: 0.5rem;\">\n <input id=\"check-telemetry\" type=\"checkbox\" checked style=\"cursor: pointer;\" />\n <label style=\"font-size: 0.875rem; color: #cbd5e1; cursor: pointer;\">Send anonymized usage analytics telemetry</label>\n </div>\n \n <div style=\"display: flex; gap: 1rem; margin-top: 1.5rem;\">\n <button id=\"btn-save-settings\" style=\"flex: 1; padding: 0.625rem; background: #0284c7; border: none; border-radius: 4px; color: white; font-weight: 600; cursor: pointer;\">Save Settings</button>\n <button id=\"btn-cancel-settings\" style=\"padding: 0.625rem 1rem; background: #334155; border: none; border-radius: 4px; color: #f8fafc; font-weight: 600; cursor: pointer;\">Cancel</button>\n </div>\n </div>\n </div>\n</div>\n";
|
|
9
|
-
export declare const initialViews: IMockupView[];
|
|
10
|
-
export declare const initialNodes: Node[];
|
|
11
|
-
export declare const initialEdges: Edge[];
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
export interface WikiPage {
|
|
2
|
-
id: string;
|
|
3
|
-
title: string;
|
|
4
|
-
content: string;
|
|
5
|
-
status: 'Published' | 'Draft' | 'Outdated';
|
|
6
|
-
tags: string[];
|
|
7
|
-
}
|
|
8
|
-
export interface WikiCommit {
|
|
9
|
-
id: string;
|
|
10
|
-
pageId: string;
|
|
11
|
-
timestamp: string;
|
|
12
|
-
author: string;
|
|
13
|
-
message: string;
|
|
14
|
-
diffSummary: string;
|
|
15
|
-
contentSnapshot: string;
|
|
16
|
-
}
|
|
17
|
-
interface WikiState {
|
|
18
|
-
pages: Record<string, WikiPage>;
|
|
19
|
-
commits: Record<string, WikiCommit[]>;
|
|
20
|
-
activePageId: string | null;
|
|
21
|
-
setActivePage: (id: string | null) => void;
|
|
22
|
-
updatePageContent: (id: string, newContent: string) => void;
|
|
23
|
-
commitPageChanges: (id: string, author: string, message?: string) => Promise<void>;
|
|
24
|
-
rollbackToCommit: (pageId: string, commitId: string) => void;
|
|
25
|
-
generateCompletion: (context: string, prompt: string) => Promise<string>;
|
|
26
|
-
summarizeDiff: (oldContent: string, newContent: string) => Promise<string>;
|
|
27
|
-
semanticSearch: (query: string) => Promise<{
|
|
28
|
-
pageId: string;
|
|
29
|
-
snippet: string;
|
|
30
|
-
}[]>;
|
|
31
|
-
}
|
|
32
|
-
export declare const useWikiStore: import('zustand').UseBoundStore<import('zustand').StoreApi<WikiState>>;
|
|
33
|
-
export {};
|