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.
- package/.qwen/settings.json +39 -0
- package/.qwen/settings.json.orig +7 -0
- package/dist/component/2d/charts/BarChart.d.ts +1 -0
- package/dist/component/2d/charts/ChartViewer.d.ts +13 -0
- package/dist/component/2d/charts/ChordChart.d.ts +1 -0
- package/dist/component/2d/charts/HeatmapChart.d.ts +1 -0
- package/dist/component/2d/charts/RadarChart.d.ts +1 -0
- package/dist/component/2d/charts/SankeyChart.d.ts +2 -1
- package/dist/component/2d/charts/index.d.ts +2 -0
- package/dist/component/3d/aichat/index.d.ts +46 -5
- package/dist/component/3d/auxiliary/index.d.ts +2 -0
- package/dist/component/3d/sideBar/index.d.ts +0 -1
- package/dist/component/util/global.d.ts +2 -0
- package/dist/{deflate-f0beda61.mjs → deflate-c0c01a4d.mjs} +1 -1
- package/dist/{deflate-a5f18e74.js → deflate-ec316136.js} +1 -1
- package/dist/{index-34dd4c86.js → index-7f62c91e.js} +394 -390
- package/dist/{index-c81f2256.mjs → index-c740cbd7.mjs} +52020 -50908
- package/dist/index.js +1 -1
- package/dist/index.mjs +51 -48
- package/dist/{lerc-7ab1dd22.mjs → lerc-46009679.mjs} +1 -1
- package/dist/{lerc-fa89e670.js → lerc-d56df3be.js} +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -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,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;
|
|
@@ -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
|
-
|
|
4
|
-
|
|
5
|
-
|
|
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
|
-
|
|
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;
|
|
@@ -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 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-
|
|
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;
|