@hachej/boring-workspace 0.1.62 → 0.1.63

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.
@@ -230,6 +230,8 @@ export declare interface CreateLocalStorageSessionsOptions {
230
230
  initial?: () => WorkspaceLocalSessionsState;
231
231
  }
232
232
 
233
+ declare type FilesystemId = "user" | "company_context" | (string & {});
234
+
233
235
  declare type FrontPluginHotReloadMode = "vite" | false;
234
236
 
235
237
  export declare const FULL_PAGE_PANEL_INVALID_PARAMS_JSON = "FULL_PAGE_PANEL_INVALID_PARAMS_JSON";
@@ -347,6 +349,7 @@ declare interface SessionItem {
347
349
  declare interface SurfaceOpenRequest {
348
350
  kind: string;
349
351
  target: string;
352
+ filesystem?: FilesystemId;
350
353
  meta?: Record<string, unknown>;
351
354
  }
352
355
 
@@ -365,10 +368,8 @@ declare interface SurfaceResolverExample {
365
368
  }
366
369
 
367
370
  declare interface SurfaceShellApi {
368
- /** Open a file in the workbench. Idempotent — re-activates an existing pane for the same path. */
369
- openFile: (path: string, opts?: {
370
- mode?: "view" | "edit" | "diff";
371
- }) => void;
371
+ /** Open a file in the workbench. Idempotent — re-activates an existing pane for the same filesystem/path. */
372
+ openFile: (path: string, options?: SurfaceShellOpenFileOptions) => void;
372
373
  /** Open a plugin-defined surface target through the registered surface resolvers. */
373
374
  openSurface: (request: SurfaceOpenRequest) => void;
374
375
  /**
@@ -386,6 +387,11 @@ declare interface SurfaceShellApi {
386
387
  getSnapshot: () => SurfaceShellSnapshot;
387
388
  }
388
389
 
390
+ declare interface SurfaceShellOpenFileOptions {
391
+ filesystem?: FilesystemId;
392
+ mode?: "view" | "edit" | "diff";
393
+ }
394
+
389
395
  declare interface SurfaceShellProps {
390
396
  rootDir?: string;
391
397
  sidebarDefaultWidth?: number;