brainsmatics 1.1.71 → 1.1.73

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.
@@ -1,5 +1,15 @@
1
1
  import React from 'react';
2
2
  import './index.module.css';
3
+ interface Message {
4
+ key: number;
5
+ role: 'system' | 'user' | 'assistant';
6
+ content: string;
7
+ loading?: boolean;
8
+ standardBrainRegions?: StandardBrainRegion[];
9
+ functionalCircuitData?: FunctionalCircuitData;
10
+ dataTypeButtons?: Record<string, DataTypeButton>;
11
+ toolCalls?: ToolCall[];
12
+ }
3
13
  interface ToolCall {
4
14
  name: string;
5
15
  status: 'loading' | 'success' | 'error';
@@ -16,6 +26,28 @@ interface ChartConfig {
16
26
  region_names?: string[];
17
27
  sankey_data?: any;
18
28
  }
29
+ interface StandardBrainRegion {
30
+ region_id: number;
31
+ name: string;
32
+ abbreviation: string;
33
+ aliases: string;
34
+ }
35
+ interface FunctionalCircuitData {
36
+ swc_tree?: any[];
37
+ Synapse?: any[];
38
+ ViralTracing?: any[];
39
+ MRI?: any[];
40
+ GeneExpression?: any[];
41
+ Electrophysiology?: any[];
42
+ Optogenetics?: any[];
43
+ }
44
+ interface DataTypeButton {
45
+ id: string;
46
+ title: string;
47
+ isLoading: boolean;
48
+ isActive: boolean;
49
+ hasData: boolean;
50
+ }
19
51
  type WorkflowType = 'router' | 'linear';
20
52
  interface LangGraphSendParams {
21
53
  message: string;
@@ -29,12 +61,7 @@ interface LangGraphSendParams {
29
61
  onError?: (error: string) => void;
30
62
  }
31
63
  export declare function sendLangGraphQuery(params: LangGraphSendParams): Promise<void>;
32
- interface SessionMessage {
33
- r: 'user' | 'assistant';
34
- c: string;
35
- toolCalls?: ToolCall[];
36
- }
37
- export declare function loadLangGraphHistory(sessionId: string): Promise<SessionMessage[]>;
64
+ export declare function loadLangGraphHistory(sessionId: string): Promise<Message[]>;
38
65
  export declare function deleteLangGraphSession(sessionId: string): Promise<void>;
39
66
  export declare function uploadLangGraphSkill(file: File): Promise<{
40
67
  success: boolean;
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-eaa6e5d3.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-53ce7f6d.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,4 +1,4 @@
1
- import { i as r } from "./index-2fb1e4ed.mjs";
1
+ import { i as r } from "./index-810d38d0.mjs";
2
2
  import { B as o } from "./basedecoder-11034ec6.mjs";
3
3
  import "react";
4
4
  import "react-dom";