brainsmatics 1.1.68 → 1.1.69

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.
@@ -0,0 +1,39 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(npm run *)",
5
+ "Bash(select-object *)",
6
+ "Bash(select-string *)",
7
+ "Bash(taskkill *)",
8
+ "Bash(rm *)",
9
+ "Bash(findstr *)",
10
+ "Bash(type *)",
11
+ "Bash(powershell *)",
12
+ "Bash(python *)",
13
+ "Bash(\\${math.random)",
14
+ "Bash(,)",
15
+ "Bash(},)",
16
+ "Bash(}));\n\n const linkmap = new map<string, { source: string; target: string; value: number; count: number }>();\n\n filtereditems.foreach(item => {\n const source = item.region_start_id;\n const target = item.region_end_id;\n const key = \\`\\${source}-)",
17
+ "Bash(linkmap.set)",
18
+ "Bash(})",
19
+ "Bash(// *)",
20
+ "Bash(const *)",
21
+ "Bash('@\n\n\\$newcode = @')",
22
+ "Bash(item *)",
23
+ "Bash(item.region_start_id)",
24
+ "Bash(item.region_start_label)",
25
+ "Bash(regionnamemap.set)",
26
+ "Bash(item.region_end_id)",
27
+ "Bash(item.region_end_label)",
28
+ "Bash(regionset)",
29
+ "Bash(.map)",
30
+ "Bash(id, *)",
31
+ "Bash(itemstyle: *)",
32
+ "Bash(color:)",
33
+ "Bash(}));\n\n const linkmap = new map<string, { source: string; target: string; value: number; count: number }>();\n\n filtereditems.foreach(item => {\n const sourcename = regionnamemap.get(item.region_start_id) || item.region_start_id;\n const targetname = regionnamemap.get(item.region_end_id) || item.region_end_id;\n const key = \\`\\${sourcename}-)",
34
+ "Bash(npx *)",
35
+ "Bash(timeout *)"
36
+ ]
37
+ },
38
+ "$version": 3
39
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(npm run *)"
5
+ ]
6
+ }
7
+ }
@@ -26,6 +26,7 @@ export interface BarChartProps {
26
26
  horizontal?: boolean;
27
27
  showDataLabels?: boolean;
28
28
  description?: string;
29
+ operationInstructions?: string;
29
30
  onBarClick?: (data: BarData) => void;
30
31
  }
31
32
  declare const BarChart: React.FC<BarChartProps>;
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ interface ChartConfig {
3
+ chart_type: 'grouped_bar' | 'radar' | 'heatmap' | 'chord' | 'sankey';
4
+ region_ids: string[];
5
+ region_names?: string[];
6
+ sankey_data?: any;
7
+ }
8
+ export interface ChartViewerProps {
9
+ config: ChartConfig;
10
+ onChartReady?: () => void;
11
+ }
12
+ declare const ChartViewer: React.FC<ChartViewerProps>;
13
+ export default ChartViewer;
@@ -23,6 +23,7 @@ export interface ChordChartProps {
23
23
  showLabels?: boolean;
24
24
  labelRotate?: boolean;
25
25
  description?: string;
26
+ operationInstructions?: string;
26
27
  onNodeClick?: (nodeName: string) => void;
27
28
  onLinkClick?: (link: ChordLink) => void;
28
29
  }
@@ -17,6 +17,7 @@ export interface HeatmapChartProps {
17
17
  colorRange?: string[];
18
18
  showLabels?: boolean;
19
19
  description?: string;
20
+ operationInstructions?: string;
20
21
  onCellClick?: (data: HeatmapData) => void;
21
22
  }
22
23
  declare const HeatmapChart: React.FC<HeatmapChartProps>;
@@ -28,6 +28,7 @@ export interface RadarChartProps {
28
28
  shape?: 'polygon' | 'circle';
29
29
  showLegend?: boolean;
30
30
  description?: string;
31
+ operationInstructions?: string;
31
32
  onSeriesClick?: (seriesName: string) => void;
32
33
  }
33
34
  declare const RadarChart: React.FC<RadarChartProps>;
@@ -12,7 +12,7 @@ export interface SankeyLink {
12
12
  target: string;
13
13
  value: number;
14
14
  lineStyle?: {
15
- color?: string;
15
+ color?: string | 'gradient';
16
16
  opacity?: number;
17
17
  };
18
18
  }
@@ -25,6 +25,7 @@ export interface SankeyChartProps {
25
25
  width?: string | number;
26
26
  height?: string | number;
27
27
  description?: string;
28
+ operationInstructions?: string;
28
29
  onNodeClick?: (nodeName: string) => void;
29
30
  onLinkClick?: (link: SankeyLink) => void;
30
31
  }
@@ -8,3 +8,5 @@ export { default as RadarChart } from './RadarChart';
8
8
  export type { RadarChartProps, RadarIndicator, RadarSeries } from './RadarChart';
9
9
  export { default as HeatmapChart } from './HeatmapChart';
10
10
  export type { HeatmapChartProps, HeatmapData } from './HeatmapChart';
11
+ export { default as ChartViewer } from './ChartViewer';
12
+ export type { ChartViewerProps } from './ChartViewer';
@@ -1,20 +1,61 @@
1
1
  import React from 'react';
2
2
  import './index.module.css';
3
- export declare function sendQuery(query: string, currentConversationId: string | null, signal: AbortSignal, onUpdate?: (contentChunk: string) => void, onConversationIdUpdate?: (conversationId: string) => void): Promise<{
4
- answer: string;
5
- conversationId: string | null;
3
+ interface ToolCall {
4
+ name: string;
5
+ status: 'loading' | 'success' | 'error';
6
+ args?: any;
7
+ result?: any;
8
+ data?: any;
9
+ error?: string;
10
+ chartConfigs?: ChartConfig[];
11
+ toolCallId?: string;
12
+ }
13
+ interface ChartConfig {
14
+ chart_type: 'grouped_bar' | 'radar' | 'heatmap' | 'chord' | 'sankey';
15
+ region_ids: string[];
16
+ region_names?: string[];
17
+ sankey_data?: any;
18
+ }
19
+ interface SessionMessage {
20
+ r: 'user' | 'assistant';
21
+ c: string;
22
+ toolCalls?: ToolCall[];
23
+ }
24
+ type WorkflowType = 'router' | 'linear';
25
+ interface LangGraphSendParams {
26
+ message: string;
27
+ sessionId: string | null;
28
+ workflow: WorkflowType;
29
+ signal: AbortSignal;
30
+ onStart?: () => void;
31
+ onText?: (delta: string) => void;
32
+ onTool?: (tool: ToolCall) => void;
33
+ onDone?: () => void;
34
+ onError?: (error: string) => void;
35
+ }
36
+ export declare function sendLangGraphQuery(params: LangGraphSendParams): Promise<void>;
37
+ export declare function loadLangGraphHistory(sessionId: string): Promise<SessionMessage[]>;
38
+ export declare function deleteLangGraphSession(sessionId: string): Promise<void>;
39
+ export declare function uploadLangGraphSkill(file: File): Promise<{
40
+ success: boolean;
41
+ skill_name?: string;
42
+ files_extracted?: string[];
43
+ message?: string;
6
44
  }>;
7
45
  interface ChildProps {
8
46
  loadAssign: (name: string) => void;
9
- tip: string;
10
- setTip: React.Dispatch<React.SetStateAction<string>>;
47
+ setViewAngle?: (angle: string) => void;
11
48
  fbxTreeDatas: any;
12
49
  swcRef: React.MutableRefObject<undefined>;
13
50
  childRef: React.MutableRefObject<undefined>;
14
51
  loadFunctionLoopFBX?: (name: string) => void;
15
52
  setTabIndex?: (index: number) => void;
53
+ auxRef?: React.MutableRefObject<any>;
16
54
  functionLoopRef?: React.MutableRefObject<null>;
17
55
  t: any;
56
+ isChatVisible?: boolean;
57
+ onChatVisibilityChange?: (visible: boolean) => void;
58
+ setLeftMenuTabIndex: (index: number) => void;
18
59
  }
19
60
  declare const AiViewer: React.FC<ChildProps>;
20
61
  export default AiViewer;
@@ -119,6 +119,8 @@ interface AuxiliaryProps {
119
119
  urlRef: React.MutableRefObject<URL>;
120
120
  setTabIndex: React.Dispatch<React.SetStateAction<number>>;
121
121
  tabIndex: number;
122
+ aiChatVisible: boolean;
123
+ onChatVisibilityChange: (visible: boolean) => void;
122
124
  }
123
125
  declare const Auxiliary: React.FC<AuxiliaryProps>;
124
126
  export default Auxiliary;
@@ -73,7 +73,6 @@ interface SideBarProps {
73
73
  metadata?: boolean;
74
74
  resourceTab?: string[];
75
75
  atlasData?: string;
76
- setTip?: React.Dispatch<React.SetStateAction<string>>;
77
76
  points2?: React.MutableRefObject<any[]>;
78
77
  BrainNum?: string;
79
78
  urlRef: React.MutableRefObject<URL>;
@@ -16,6 +16,7 @@ export declare let bbox: {
16
16
  min: THREE.Vector3;
17
17
  max: THREE.Vector3;
18
18
  };
19
+ export declare const useHighResModels: MutableRefObject<boolean>;
19
20
  export interface brainRegionDataType {
20
21
  f1: number;
21
22
  PMID: string;
@@ -39,3 +40,4 @@ export interface SwcTreeItem {
39
40
  soma_region?: string;
40
41
  axon_region?: string;
41
42
  }
43
+ export declare const setViewAngle: (angle: string) => void;
@@ -1,4 +1,4 @@
1
- import { i as r } from "./index-c81f2256.mjs";
1
+ import { i as r } from "./index-c740cbd7.mjs";
2
2
  import { B as o } from "./basedecoder-11034ec6.mjs";
3
3
  import "react";
4
4
  import "react-dom";
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-34dd4c86.js"),t=require("./basedecoder-0503cc54.js");require("react");require("react-dom");class d extends t.BaseDecoder{decodeBlock(e){return r.inflate_1(new Uint8Array(e)).buffer}}exports.default=d;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-7f62c91e.js"),t=require("./basedecoder-0503cc54.js");require("react");require("react-dom");class d extends t.BaseDecoder{decodeBlock(e){return r.inflate_1(new Uint8Array(e)).buffer}}exports.default=d;