@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.
- package/dist/FileTree-SmsE0Raq.js +289 -0
- package/dist/{MarkdownEditor-DPBSzTBz.js → MarkdownEditor-zbp8ezds.js} +1 -1
- package/dist/WorkspaceLoadingState-BlvZXmFg.js +719 -0
- package/dist/WorkspaceProvider-CuIZx1ua.js +6553 -0
- package/dist/app-front.d.ts +25 -2
- package/dist/app-front.js +697 -546
- package/dist/app-server.d.ts +21 -4
- package/dist/app-server.js +277 -104
- package/dist/boring-workspace.css +1 -1
- package/dist/{createInMemoryBridge--ZFPAgXy.d.ts → createInMemoryBridge-HJopAIbo.d.ts} +12 -2
- package/dist/plugin.d.ts +2 -2
- package/dist/server.d.ts +62 -9
- package/dist/server.js +261 -46
- package/dist/shared.d.ts +2 -2
- package/dist/{surface-CEEkd81D.d.ts → surface-obE7YwJk.d.ts} +2 -0
- package/dist/testing.d.ts +2 -0
- package/dist/testing.js +1 -1
- package/dist/{ui-bridge-Bdgl2hR8.d.ts → ui-bridge-DFNem0df.d.ts} +2 -2
- package/dist/workspace.css +84 -27
- package/dist/workspace.d.ts +92 -3
- package/dist/workspace.js +472 -386
- package/docs/PLUGIN_STRUCTURE.md +5 -4
- package/docs/PLUGIN_SYSTEM.md +6 -6
- package/docs/plans/archive/UNIFIED_PLUGIN_SYSTEM_PLAN.md +2 -2
- package/package.json +3 -3
- package/dist/FileTree-DUxjUbxL.js +0 -266
- package/dist/WorkspaceLoadingState-DJF_4S4_.js +0 -613
- package/dist/WorkspaceProvider-0V-2x7AH.js +0 -6357
package/dist/app-front.d.ts
CHANGED
|
@@ -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 { }
|