brainsmatics 1.2.10 → 1.2.12

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.
@@ -59,6 +59,7 @@ interface LangGraphSendParams {
59
59
  sessionId: string | null;
60
60
  workflow: WorkflowType;
61
61
  signal: AbortSignal;
62
+ retry?: boolean;
62
63
  onStart?: () => void;
63
64
  onText?: (delta: string) => void;
64
65
  onTool?: (tool: ToolCall) => void;
@@ -4,7 +4,9 @@ import type { SequenceDisplayMode, SequenceSlice, SequenceTransform, SequenceTra
4
4
  import type { SequenceMatchCandidate, SequenceMatchResult, SequenceMatchSection } from "./matching";
5
5
  import "./index.css";
6
6
  interface Props {
7
- onShowSlice?: (slice: SequenceSlice, mode: SequenceDisplayMode) => void | Promise<void>;
7
+ onShowSlice?: (slice: SequenceSlice, mode: SequenceDisplayMode, options?: {
8
+ deferAtlas?: boolean;
9
+ }) => void | Promise<SequenceDisplayMode | null | void>;
8
10
  onHideSlice?: (sliceId: string) => void;
9
11
  onSectionChange?: (slice: SequenceSlice, section: 0 | 1 | 2) => Promise<void>;
10
12
  onTransformModeChange?: (mode: SequenceTransformMode) => void;
@@ -17,9 +19,10 @@ interface Props {
17
19
  height: number;
18
20
  }) => SequenceLivePose | null;
19
21
  onGetLivePose?: (sliceId: string) => SequenceLivePose | null;
22
+ onSceneReady?: () => boolean;
20
23
  onBusyChange?: (busy: boolean) => void;
21
24
  onPreviewMatch?: (slice: SequenceSlice, result: SequenceMatchResult, section: SequenceMatchSection) => SequenceMatchCandidate;
22
- onApplyMatch?: (slice: SequenceSlice, candidate: SequenceMatchCandidate) => void;
25
+ onApplyMatch?: (slice: SequenceSlice, candidate: SequenceMatchCandidate, registration?: SequenceMatchResult) => void;
23
26
  }
24
27
  declare const SequenceRegistrationPanel: React.FC<Props>;
25
28
  export default SequenceRegistrationPanel;
@@ -1,4 +1,4 @@
1
- import type { SequenceSession, SequenceSlice, SequenceTransform } from "./types";
1
+ import type { SequenceRegistration, SequenceSession, SequenceSlice, SequenceTransform } from "./types";
2
2
  export declare function configureSequenceConnection(token: unknown, loginId: unknown): boolean;
3
3
  export declare function clearSequenceConnection(): void;
4
4
  export declare function sequenceAuthToken(): string;
@@ -14,6 +14,7 @@ export declare function updateSequenceSession(sessionId: string, input: Partial<
14
14
  export declare function uploadSequenceSlice(sessionId: string, file: File, idempotencyKey: string): Promise<SequenceSlice>;
15
15
  export declare function updateSequenceSlice(sessionId: string, slice: SequenceSlice, patch: Partial<Pick<SequenceSlice, "targetFrame" | "sec" | "positionOffsetUm">> & {
16
16
  pixelSpacingUm?: [number, number];
17
+ registration?: SequenceRegistration;
17
18
  }): Promise<SequenceSlice>;
18
19
  export declare function reorderSequenceSlices(sessionId: string, sliceIds: string[]): Promise<{
19
20
  ok: boolean;
@@ -1,5 +1,6 @@
1
1
  import type { SequenceLivePose } from "./stamPlane";
2
2
  import type { SequenceSlice, SequenceTransform } from "./types";
3
+ /** The algorithm service currently ignores typeName; the field is kept only for API compatibility. */
3
4
  export type SequenceMatchInput = "Config_DAPI.ini" | "Config_PI.ini" | "Config_Mask.ini";
4
5
  export type SequenceMatchSection = 0 | 1 | 2;
5
6
  export interface SequenceMatchResult {
@@ -135,6 +135,8 @@ export interface SequenceRegistration {
135
135
  url?: string;
136
136
  angles?: number[];
137
137
  tx?: number;
138
+ /** Data URL (or reachable URL) of the registered STAM section preview. */
139
+ preview?: string;
138
140
  atlasWasResliced?: boolean;
139
141
  previewAvailable?: boolean;
140
142
  }
@@ -1,4 +1,4 @@
1
- import { i as r } from "./index-DWJ5YKkC.mjs";
1
+ import { i as r } from "./index-fh2Ondnl.mjs";
2
2
  import { B as a } from "./basedecoder-PoXbLGBV.mjs";
3
3
  class s extends a {
4
4
  decodeBlock(e) {
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index-DEjcvJib.js"),t=require("./basedecoder-CsHP9rmG.js");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-DuK4gMkD.js"),t=require("./basedecoder-CsHP9rmG.js");class d extends t.BaseDecoder{decodeBlock(e){return r.inflate_1(new Uint8Array(e)).buffer}}exports.default=d;