@hachej/boring-workspace 0.1.54 → 0.1.56
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-CfJoRiTm.js → FileTree-ChkSU4gL.js} +17 -17
- package/dist/{MarkdownEditor-DrPDGy9F.js → MarkdownEditor-BlYGosmH.js} +1 -1
- package/dist/{WorkspaceLoadingState-Bqsn2JEc.js → WorkspaceLoadingState-BYTO4wdt.js} +249 -225
- package/dist/{WorkspaceProvider-CrOT4ab7.js → WorkspaceProvider-Bp1Sm40K.js} +3359 -3237
- package/dist/app-front.d.ts +20 -0
- package/dist/app-front.js +539 -527
- package/dist/app-server.d.ts +39 -8
- package/dist/app-server.js +1248 -22
- package/dist/bridge-client.d.ts +68 -0
- package/dist/bridge-client.js +370 -0
- package/dist/plugin.d.ts +3 -1
- package/dist/runtimeEnv-XVFZ1OkV.d.ts +353 -0
- package/dist/server.d.ts +236 -8
- package/dist/server.js +1349 -25
- package/dist/shared.d.ts +2 -1
- package/dist/shared.js +30 -0
- package/dist/testing.js +1 -1
- package/dist/{ui-bridge-LeBuZqfA.d.ts → ui-bridge-BbuUZ5iC.d.ts} +6 -1
- package/dist/workspace-bridge-rpc-A98RA5o6.d.ts +124 -0
- package/dist/workspace.css +35 -0
- package/dist/workspace.d.ts +68 -2
- package/dist/workspace.js +196 -185
- package/docs/PLUGIN_SYSTEM.md +57 -0
- package/package.json +8 -4
- package/dist/createInMemoryBridge-siFWq_R_.d.ts +0 -198
package/dist/app-front.d.ts
CHANGED
|
@@ -320,6 +320,8 @@ declare interface PluginProviderProps {
|
|
|
320
320
|
authHeaders?: Record<string, string>;
|
|
321
321
|
onAuthError?: (statusCode: number) => void;
|
|
322
322
|
apiTimeout?: number;
|
|
323
|
+
activeSessionId?: string | null;
|
|
324
|
+
openSessionIds?: readonly string[];
|
|
323
325
|
children: ReactNode;
|
|
324
326
|
}
|
|
325
327
|
|
|
@@ -508,11 +510,14 @@ export declare interface WorkspaceAgentSessionsApi<TSession extends WorkspaceAge
|
|
|
508
510
|
|
|
509
511
|
declare type WorkspaceAttentionBlocker = {
|
|
510
512
|
id: string;
|
|
513
|
+
/** Plugin/domain-specific reason, e.g. "ask-user.question" or "pr-review.review". */
|
|
511
514
|
reason: string;
|
|
512
515
|
surfaceKind?: string;
|
|
513
516
|
target?: string;
|
|
514
517
|
label?: string;
|
|
515
518
|
sessionId?: string;
|
|
519
|
+
/** Optional generic session-row badge contributed by the plugin that owns this attention. */
|
|
520
|
+
sessionBadge?: WorkspaceAttentionSessionBadge;
|
|
516
521
|
actions?: WorkspaceAttentionBlockerAction[];
|
|
517
522
|
};
|
|
518
523
|
|
|
@@ -521,6 +526,17 @@ declare type WorkspaceAttentionBlockerAction = {
|
|
|
521
526
|
label: string;
|
|
522
527
|
};
|
|
523
528
|
|
|
529
|
+
declare type WorkspaceAttentionSessionBadge = {
|
|
530
|
+
/** Stable badge kind for data attributes and plugin-specific styling hooks. */
|
|
531
|
+
kind: string;
|
|
532
|
+
/** Short text rendered on the session row, e.g. "question", "review", "approval". */
|
|
533
|
+
label: string;
|
|
534
|
+
/** Visual tone only; semantics are owned by the plugin-specific kind/reason. */
|
|
535
|
+
tone?: "attention" | "danger" | "neutral" | "warning";
|
|
536
|
+
/** Higher priority wins when several plugins mark the same session. */
|
|
537
|
+
priority?: number;
|
|
538
|
+
};
|
|
539
|
+
|
|
524
540
|
export declare function WorkspaceBackgroundBoot({ workspaceId, requestHeaders, apiBaseUrl, preloadPaths, provisionWorkspace, onStatusChange, }: WorkspaceBackgroundBootProps): null;
|
|
525
541
|
|
|
526
542
|
export declare interface WorkspaceBackgroundBootProps {
|
|
@@ -602,6 +618,10 @@ declare interface WorkspaceProviderProps {
|
|
|
602
618
|
authHeaders?: Record<string, string>;
|
|
603
619
|
/** Per-request timeout for the data layer's FetchClient, in ms. */
|
|
604
620
|
apiTimeout?: number;
|
|
621
|
+
/** Active chat/session scope shared with plugin providers that need session-scoped data. */
|
|
622
|
+
activeSessionId?: string | null;
|
|
623
|
+
/** Session ids that are currently open in chat panes, for plugins that must avoid opening closed-session UI. */
|
|
624
|
+
openSessionIds?: readonly string[];
|
|
605
625
|
defaultTheme?: "light" | "dark" | undefined;
|
|
606
626
|
onThemeChange?: (theme: "light" | "dark") => void;
|
|
607
627
|
workspaceId?: string;
|