@rslsp1/fa-app-tools 10.3.4 → 10.3.6

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/dist/index.d.mts CHANGED
@@ -6,7 +6,7 @@ import { Node, Edge } from '@xyflow/react';
6
6
  import * as zustand_vanilla from 'zustand/vanilla';
7
7
  import { F as FeatureSliceId, b as SliceContract, a as PersistenceDescriptor, W as WorkspacePersistence, P as PersistedSlice, L as LoadResult, g as WriteResult, f as WorkspaceTabId, C as CommandResult, R as RequestContext, Q as QueryResult } from './contracts-B3AbzYQ4.mjs';
8
8
 
9
- var version = "10.3.4";
9
+ var version = "10.3.6";
10
10
 
11
11
  declare function useOnClickOutside(ref: RefObject<HTMLElement | null>, handler: (e: MouseEvent | TouchEvent) => void): void;
12
12
 
@@ -341,7 +341,13 @@ type FlowBridgeRequest = {
341
341
  method: 'GET';
342
342
  path: '/flow-app/probe-bundle';
343
343
  tokenSuffix?: string;
344
+ } | {
345
+ target: 'devMcp' | 'prodMcp';
346
+ method: 'GET';
347
+ path: `/flow-app/bundle/${FlowAppBundleFile}`;
348
+ tokenSuffix?: string;
344
349
  };
350
+ type FlowAppBundleFile = 'react-runtime.js' | 'app.js' | 'master.css';
345
351
  interface FlowBridgeResponse {
346
352
  ok: boolean;
347
353
  transport: string | null;
@@ -353,9 +359,21 @@ interface FlowBridgeResponse {
353
359
  roundTripMs: number;
354
360
  error: FlowBridgeError | null;
355
361
  }
362
+ /** App-Proxy (#639): ein GET der Fine-Art-App ueber den MCP-Host des Ziels, Zugang ueber die Token-Endung. */
363
+ interface FlowBridgeProxyRequest {
364
+ env: 'dev' | 'prod';
365
+ tokenSuffix: string;
366
+ method: 'GET';
367
+ path: string;
368
+ }
356
369
  interface FlowBridgeClient {
370
+ /** App-Proxy (#639): ein lesender Request ueber den Daten-Proxy (z. B. Pruefung des Datenzugangs). */
371
+ proxy?(request: FlowBridgeProxyRequest): Promise<FlowBridgeResponse>;
357
372
  status(): Promise<FlowBridgeStatus>;
358
- request(request: FlowBridgeRequest): Promise<FlowBridgeResponse>;
373
+ /** `timeoutMs` ersetzt das Warten der Seite fuer diesen Request (App-Bundle: laenger als das Extension-Timeout). */
374
+ request(request: FlowBridgeRequest, options?: {
375
+ timeoutMs?: number;
376
+ }): Promise<FlowBridgeResponse>;
359
377
  }
360
378
  interface FlowBridgeClientOptions {
361
379
  target?: EventTarget;
package/dist/index.d.ts CHANGED
@@ -6,7 +6,7 @@ import { Node, Edge } from '@xyflow/react';
6
6
  import * as zustand_vanilla from 'zustand/vanilla';
7
7
  import { F as FeatureSliceId, b as SliceContract, a as PersistenceDescriptor, W as WorkspacePersistence, P as PersistedSlice, L as LoadResult, g as WriteResult, f as WorkspaceTabId, C as CommandResult, R as RequestContext, Q as QueryResult } from './contracts-B3AbzYQ4.js';
8
8
 
9
- var version = "10.3.4";
9
+ var version = "10.3.6";
10
10
 
11
11
  declare function useOnClickOutside(ref: RefObject<HTMLElement | null>, handler: (e: MouseEvent | TouchEvent) => void): void;
12
12
 
@@ -341,7 +341,13 @@ type FlowBridgeRequest = {
341
341
  method: 'GET';
342
342
  path: '/flow-app/probe-bundle';
343
343
  tokenSuffix?: string;
344
+ } | {
345
+ target: 'devMcp' | 'prodMcp';
346
+ method: 'GET';
347
+ path: `/flow-app/bundle/${FlowAppBundleFile}`;
348
+ tokenSuffix?: string;
344
349
  };
350
+ type FlowAppBundleFile = 'react-runtime.js' | 'app.js' | 'master.css';
345
351
  interface FlowBridgeResponse {
346
352
  ok: boolean;
347
353
  transport: string | null;
@@ -353,9 +359,21 @@ interface FlowBridgeResponse {
353
359
  roundTripMs: number;
354
360
  error: FlowBridgeError | null;
355
361
  }
362
+ /** App-Proxy (#639): ein GET der Fine-Art-App ueber den MCP-Host des Ziels, Zugang ueber die Token-Endung. */
363
+ interface FlowBridgeProxyRequest {
364
+ env: 'dev' | 'prod';
365
+ tokenSuffix: string;
366
+ method: 'GET';
367
+ path: string;
368
+ }
356
369
  interface FlowBridgeClient {
370
+ /** App-Proxy (#639): ein lesender Request ueber den Daten-Proxy (z. B. Pruefung des Datenzugangs). */
371
+ proxy?(request: FlowBridgeProxyRequest): Promise<FlowBridgeResponse>;
357
372
  status(): Promise<FlowBridgeStatus>;
358
- request(request: FlowBridgeRequest): Promise<FlowBridgeResponse>;
373
+ /** `timeoutMs` ersetzt das Warten der Seite fuer diesen Request (App-Bundle: laenger als das Extension-Timeout). */
374
+ request(request: FlowBridgeRequest, options?: {
375
+ timeoutMs?: number;
376
+ }): Promise<FlowBridgeResponse>;
359
377
  }
360
378
  interface FlowBridgeClientOptions {
361
379
  target?: EventTarget;