workspace.svelte.ts

Declarations
#

5 declarations

view source

Workspace
#

workspace.svelte.ts view source

A workspace represents an open directory that zzz is watching and serving.

Workspaces are the primary unit of file access — each workspace registers its directory with ScopedFs and starts a Filer for file watching.

inheritance

extends:
  • Cell<typeof WorkspaceJson>

path

type DiskfileDirectoryPath

name

type string

opened_at

type Datetime

constructor

type new (options: WorkspaceOptions): Workspace

options

WorkspaceInfoJson
#

workspace.svelte.ts view source

ZodObject<{ path: $ZodBranded<ZodPipe<ZodPipe<ZodString, ZodTransform<string, string>>, $ZodBranded<ZodString, "DiskfilePath", "out">>, "DiskfileDirectoryPath", "out">; name: ZodString; opened_at: ZodString; }, $strict>

The wire format for workspace info shared between frontend and backend. Used in action spec inputs/outputs and for JSON persistence.

WorkspaceJson
#

workspace.svelte.ts view source

ZodObject<{ id: ZodDefault<$ZodBranded<ZodUUID, "Uuid", "out">>; created: ZodDefault<$ZodBranded<ZodISODateTime, "Datetime", "out">>; updated: ZodDefault<...>; path: $ZodBranded<...>; name: ZodDefault<...>; opened_at: ZodDefault<...>; }, $strict>

WorkspaceJsonInput
#

workspace.svelte.ts view source

{ path: string; id?: string | undefined; created?: string | undefined; updated?: string | undefined; name?: string | undefined; opened_at?: string | undefined; }

WorkspaceOptions
#

Depends on
#

Imported by
#