@hachej/boring-workspace 0.1.31 → 0.1.33

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.
@@ -234,6 +234,8 @@ declare interface PanelConfig<T = any> {
234
234
  /** Source: "builtin" | "app" */
235
235
  source?: string;
236
236
  pluginId?: string;
237
+ /** Revision emitted by the runtime plugin asset manager for hot-loaded panels. */
238
+ pluginRevision?: number;
237
239
  /**
238
240
  * Whether to wrap the component with React.lazy + Suspense. Omit to let
239
241
  * the registry auto-detect: zero-arg functions (factories) are treated as
@@ -390,7 +392,7 @@ export declare type UseWorkspaceAgentSessions<TSession extends WorkspaceAgentSes
390
392
  refreshKey?: unknown;
391
393
  }) => WorkspaceAgentSessionsApi<TSession>;
392
394
 
393
- export declare function WorkspaceAgentFront<TSession extends WorkspaceAgentSession = WorkspaceAgentSession>({ workspaceId, chatPanel: chatPanelProp, useSessions: useSessionsProp, requestHeaders, sessionStorageKey, providerStorageKey, surfaceStorageKey, beforeShell, afterShell, panels, commands, catalogs, plugins, excludeDefaults, capabilities, apiBaseUrl, authHeaders, apiTimeout, defaultTheme, onThemeChange, persistenceEnabled, bridgeEndpoint, fullPageBasePath, onAuthError, sessions, activeSessionId, onSwitchSession, onCreateSession, onDeleteSession, onActiveSessionIdChange, appTitle, defaultSessionTitle, navEnabled, defaultNavOpen, defaultSurfaceOpen, defaultWorkbenchLeftTab, surfaceInitialPanels, topBarLeft, topBarRight, chatParams, hotReloadEnabled, frontPluginHotReload, extraPanels, extraCommands, provisionWorkspace, bootPreloadPaths, onWorkspaceWarmupStatusChange, onOpenNav, onOpenSurface, surfaceButtonBottomOffset, className, }: WorkspaceAgentFrontProps<TSession>): JSX.Element;
395
+ export declare function WorkspaceAgentFront<TSession extends WorkspaceAgentSession = WorkspaceAgentSession>({ workspaceId, chatPanel: chatPanelProp, useSessions: useSessionsProp, requestHeaders, sessionStorageKey, providerStorageKey, surfaceStorageKey, beforeShell, afterShell, panels, commands, catalogs, plugins, excludeDefaults, capabilities, apiBaseUrl, authHeaders, apiTimeout, defaultTheme, onThemeChange, persistenceEnabled, bridgeEndpoint, fullPageBasePath, onAuthError, sessions, activeSessionId, onSwitchSession, onCreateSession, onDeleteSession, onActiveSessionIdChange, appTitle, defaultSessionTitle, navEnabled, defaultNavOpen, defaultSurfaceOpen, defaultWorkbenchLeftTab, surfaceInitialPanels, topBarLeft, topBarRight, showThemeToggle, chatParams, hotReloadEnabled, frontPluginHotReload, extraPanels, extraCommands, provisionWorkspace, bootPreloadPaths, onWorkspaceWarmupStatusChange, onOpenNav, onOpenSurface, surfaceButtonBottomOffset, className, }: WorkspaceAgentFrontProps<TSession>): JSX.Element;
394
396
 
395
397
  export declare interface WorkspaceAgentFrontProps<TSession extends WorkspaceAgentSession = WorkspaceAgentSession> extends Omit<WorkspaceProviderProps, "children" | "workspaceId" | "storageKey" | "chatPanel">, Omit<ChatLayoutProps, "nav" | "navParams" | "center" | "centerParams" | "surface" | "surfaceParams" | "sidebar" | "sidebarParams" | "storageKey"> {
396
398
  workspaceId: string;
@@ -411,16 +413,24 @@ export declare interface WorkspaceAgentFrontProps<TSession extends WorkspaceAgen
411
413
  surfaceInitialPanels?: SurfaceShellProps["initialPanels"];
412
414
  topBarLeft?: ReactNode;
413
415
  topBarRight?: ReactNode;
416
+ /**
417
+ * Show the built-in top-bar theme toggle. Defaults to true for standalone
418
+ * hosts (e.g. the workspace playground) that have no other theme control.
419
+ * Full apps that already expose theme switching elsewhere (e.g. the core
420
+ * UserMenu) should set this to false to avoid a duplicate control.
421
+ */
422
+ showThemeToggle?: boolean;
414
423
  sessions?: Array<{
415
424
  id: string;
416
425
  title?: string | null;
417
426
  updatedAt?: string | number;
427
+ turnCount?: number;
418
428
  }>;
419
429
  activeSessionId?: string | null;
420
430
  onSwitchSession?: (id: string) => void;
421
431
  onCreateSession?: () => void;
422
432
  onDeleteSession?: (id: string) => void;
423
- onActiveSessionIdChange?: (sessionId: string) => void;
433
+ onActiveSessionIdChange?: (sessionId: string | null) => void;
424
434
  chatParams?: Record<string, unknown>;
425
435
  /**
426
436
  * Forward to ChatPanel — when `false`, the `/reload` slash command is
@@ -440,11 +450,14 @@ export declare interface WorkspaceAgentSession {
440
450
  id: string;
441
451
  title?: string | null;
442
452
  updatedAt?: string | number;
453
+ turnCount?: number;
443
454
  }
444
455
 
445
456
  export declare interface WorkspaceAgentSessionsApi<TSession extends WorkspaceAgentSession = WorkspaceAgentSession> {
446
457
  sessions: TSession[];
447
458
  loading: boolean;
459
+ loadingMore?: boolean;
460
+ hasMore?: boolean;
448
461
  error?: Error | null;
449
462
  activeSessionId?: string | null;
450
463
  activeSession?: TSession | null;
@@ -453,6 +466,7 @@ export declare interface WorkspaceAgentSessionsApi<TSession extends WorkspaceAge
453
466
  title?: string;
454
467
  }) => void | Promise<unknown>;
455
468
  delete: (id: string) => void | Promise<unknown>;
469
+ loadMore?: () => void | Promise<unknown>;
456
470
  }
457
471
 
458
472
  declare type WorkspaceAttentionBlocker = {
@@ -581,16 +595,25 @@ declare interface WorkspaceProviderProps {
581
595
  fullPageBasePath?: string;
582
596
  }
583
597
 
598
+ declare type WorkspaceRuntimeDependenciesWarmupStatus = {
599
+ state: "preparing" | "ready" | "failed";
600
+ message?: string;
601
+ requirement?: string;
602
+ };
603
+
584
604
  export declare type WorkspaceWarmupStatus = {
585
605
  status: "preparing";
586
606
  requirement?: "workspace-fs" | "sandbox-exec" | "ui-bridge";
587
607
  message?: string;
608
+ runtimeDependencies?: WorkspaceRuntimeDependenciesWarmupStatus;
588
609
  } | {
589
610
  status: "ready";
611
+ runtimeDependencies?: WorkspaceRuntimeDependenciesWarmupStatus;
590
612
  } | {
591
613
  status: "failed";
592
614
  message: string;
593
615
  requirement?: "workspace-fs" | "sandbox-exec" | "ui-bridge";
616
+ runtimeDependencies?: WorkspaceRuntimeDependenciesWarmupStatus;
594
617
  };
595
618
 
596
619
  export { }