{"modulePath":"github.com/pencode-labs/pencode","version":"v0.1.0-rc.15","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package workbench\n\n## Functions\n\n```go\nfunc LocalOpenPath(name string) string\n```\nLocal project identities follow the backend's absolute, symlink-resolved roots.\n\n## Types\n\n```go\ntype Mod struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc (m *Mod) Destroy(c *module.Context) error\n```\n\n```go\nfunc (m *Mod) Enter(c *module.Context, _ module.SceneStartup) error\n```\n\n```go\nfunc (m *Mod) Install(c *module.Context) error\n```\n\n```go\nfunc (m *Mod) OnMessage(c *module.Context, message module.Message) error\n```\n\n```go\nfunc (m *Mod) OnOpenProject(c *module.Context, value string) error\n```\n\n```go\nfunc (m *Mod) Resume(c *module.Context, v module.SceneStartup) error\n```\n\n```go\nfunc (m *Mod) Update(c *module.Context, _ module.Tick) error\n```\n\n```go\ntype Session struct {\n\n\t// Actions accepts native registrations before or after the session starts.\n\tActions actions.Registry\n\tOutput  output.Store\n\t// contains filtered or unexported fields\n}\n```\nSession keeps the foreground model available while preloaded views own their HTML, editor entities and resource readers independently.\n\n```go\nfunc NewSession(backend *client.Client) *Session\n```\n\n```go\nfunc (s *Session) ActivateProject(profile connection.Profile, directory string) bool\n```\nActivateProject also recognizes requests queued before the first window frame.\n\n```go\nfunc (s *Session) Close()\n```\n\n```go\nfunc (s *Session) ConfigureConnection(dial func(context.Context, connection.Profile, func(string)) (*client.Client, error), initial connection.Profile)\n```\nConfigureConnection enables the shared local/remote lifecycle. Tests may inject a dial function without spawning an editor or using an external host.\n\n```go\nfunc (s *Session) ConfigureWindows(id string, restore bool) ([]string, error)\n```\nConfigureWindows claims this window's record and returns the additional window IDs to launch on a cold application start.\n\n```go\nfunc (s *Session) FinishUpdate() error\n```\nFinishUpdate is called after the UI and backend have released their resources.\n\n```go\nfunc (s *Session) HandleFileDrop(dispatch *input.Dispatch)\n```\nHandleFileDrop consumes external files before ordinary editor input.\n\n```go\nfunc (s *Session) LayoutSystem() ecs.SystemConfig\n```\nLayoutSystem aligns decorations with the final native textarea scroll and HTML bounds in the same frame, including when the next frame is far away.\n\n```go\nfunc (s *Session) LocalProjectRoot(name string) string\n```\nLocalProjectRoot returns the most specific workspace containing a local path.\n\n```go\nfunc (s *Session) OpenPaths(paths ...string)\n```\nOpenPaths queues native drops, shell arguments and Finder document events. Call on the window thread; inputs received before the first scene are retained.\n\n```go\nfunc (s *Session) OpenWindow(paths []string) error\n```\n\n```go\nfunc (s *Session) ProfilingSystem(recorder *profiling.Recorder) ecs.SystemConfig\n```\nProfilingSystem samples renderer-owned state on the application thread. It never requests a frame: idle observations retain their original timestamp.\n\n```go\nfunc (s *Session) QueueRemoteProject(profile connection.Profile) bool\n```\nQueueRemoteProject adds another directory to the window already assigned to this host.\n\n```go\nfunc (s *Session) Register(registry *module.Registry) error\n```\n\n```go\nfunc (s *Session) RestoredWindowSize() (int, int)\n```\n\n```go\nfunc (s *Session) ScrollSystem() ecs.SystemConfig\n```\nScrollSystem synchronizes comparison panes after wheel/drag input and before HTML culling and native control layout consume their scroll positions.\n\n```go\nfunc (s *Session) SetProjectActivator(activate func(*Session, connection.Profile, string) bool)\n```\nSetProjectActivator connects lookups to the other windows on the UI thread.\n\n```go\nfunc (s *Session) SetWindowOpener(open func([]string, connection.Profile) error)\n```\nSetWindowOpener connects requests to the owning desktop application. The callback queues creation outside the current window's rendering frame.\n\n","path":"github.com/pencode-labs/pencode/workbench","name":"workbench","synopsis":"","isRedistributable":true}
