Skip to content

An open-source, self-hosted system for apps built with web technologies.

Release System 0.1.32

zohayrslileha6c31e92056f
diff --git a/bun.lock b/bun.lock
index f96f56b..219f9cf 100644
--- a/bun.lock
+++ b/bun.lock
@@ -29,8 +29,8 @@
"devDependencies": {
"@babel/core": "^7.29.7",
"@babel/plugin-proposal-decorators": "^7.29.7",
- "@phreshos/core": "^0.1.15",
- "@phreshos/react-ui": "^0.1.7",
+ "@phreshos/core": "^0.1.16",
+ "@phreshos/react-ui": "^0.1.8",
"@rolldown/plugin-babel": "^0.2.3",
"@tailwindcss/vite": "^4.3.3",
"@types/adm-zip": "^0.5.8",
@@ -249,9 +249,9 @@
"@oxc-project/types": ["@oxc-project/[email protected]", "", {}, "sha512-nuhZIOLuI6TFQ32I/WnUx+SCPY7SdSKwgnFHydAuoS1+Z4BRcaP+RRJmGzl9lw+0OFF7UmaESf7KQRXaNLHypg=="],
- "@phreshos/core": ["@phreshos/[email protected]", "", {}, "sha512-4KXyOO8dGCdsMj90sFSsD0B084H8LvLlWfsGYzIHUT0I21/NLZxl3/vnO2djbg1fizU82WSwOKoDzbZp7AyMpA=="],
+ "@phreshos/core": ["@phreshos/[email protected]", "", {}, "sha512-FT7wDVYZiTA352V2oHxuAuj7C+5CeBeb07KN2eqI46RTq1X27DlcSkJF1iUKhxfy+WSwvghxbjnO9KiKmPHZJQ=="],
- "@phreshos/react-ui": ["@phreshos/[email protected]", "", { "dependencies": { "react-aria-components": "^1.20.0" }, "peerDependencies": { "@phreshos/core": "^0.1.15", "react": "^19.2.0", "react-dom": "^19.2.0" } }, "sha512-b3QC9cjYNKeEettVpat2UkmxvR0gvYz7ViAZEoG7mgIQvdOPTOgJP6QQj21U3Pwaz5xEAy/y/0qqewFNAqJYKQ=="],
+ "@phreshos/react-ui": ["@phreshos/[email protected]", "", { "dependencies": { "react-aria-components": "^1.20.0" }, "peerDependencies": { "@phreshos/core": "^0.1.16", "react": "^19.2.0", "react-dom": "^19.2.0" } }, "sha512-0Xc1kP72m4M7IDY7Qlp0Nu2BITttz9xGl9KXFKufF0aw/m6U7wJ6YsBdtSnYZPS0Kb/RYUPBUlmGHKDkG35ejg=="],
"@react-aria/i18n": ["@react-aria/[email protected]", "", { "dependencies": { "@internationalized/date": "^3.12.1", "@internationalized/message": "^3.1.9", "@internationalized/string": "^3.2.8", "@swc/helpers": "^0.5.0", "react-aria": "^3.48.0" }, "peerDependencies": { "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1", "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" } }, "sha512-z56ZYcbfpNmMyiGLhyEjytpmEfoTlBaksk84q4kds3HvNkf7QWKj+DJVfVDrJX+c1LyuBsszLSX7yxJRiHsYKQ=="],
diff --git a/package.json b/package.json
index 8991986..18090a2 100644
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
{
"name": "phreshos",
"displayName": "PhreshOS",
- "version": "0.1.31",
+ "version": "0.1.32",
"description": "The PhreshOS server, desktop, and authoritative system runtime.",
"type": "module",
"private": true,
@@ -59,8 +59,8 @@
"devDependencies": {
"@babel/core": "^7.29.7",
"@babel/plugin-proposal-decorators": "^7.29.7",
- "@phreshos/core": "^0.1.15",
- "@phreshos/react-ui": "^0.1.7",
+ "@phreshos/core": "^0.1.16",
+ "@phreshos/react-ui": "^0.1.8",
"@rolldown/plugin-babel": "^0.2.3",
"@tailwindcss/vite": "^4.3.3",
"@types/adm-zip": "^0.5.8",
diff --git a/scripts/verify-client-surface.mjs b/scripts/verify-client-surface.mjs
index d5e7c77..6fcf549 100644
--- a/scripts/verify-client-surface.mjs
+++ b/scripts/verify-client-surface.mjs
@@ -1,9 +1,9 @@
import assert from "node:assert/strict"
-import ClientProcessBoundary from "../source/client/view/desktop/client-host/client-process-boundary.ts"
+import ClientProcessBoundary from "../source/client/view/components/desktop-host/client-process-boundary.ts"
import ClientProcessManager from "../source/client/core/link-manager/auth-manager/process-manager/process-manager.ts"
-import { visibilityTransition, visualTransaction } from "../source/client/view/desktop/client-host/local-window.ts"
-import host from "../source/client/view/desktop/client-host/host.ts"
-import LocalWindows from "../source/client/view/desktop/window-manager/local-windows.ts"
+import { visibilityTransition, visualTransaction } from "../source/client/view/components/desktop-host/local-window.ts"
+import host from "../source/client/view/components/desktop-host/host.ts"
+import LocalWindows from "../source/client/view/components/window-manager/local-windows.ts"
import ServerWindow from "../source/server/core/link-manager/auth-manager/process-manager/window.ts"
const authoritativeWindow = new ServerWindow(
diff --git a/source/client/view/structure/authentication/credentials-form.tsx b/source/client/view/structure/authentication/credentials-form.tsx
index 025937d..a2c4c7e 100644
--- a/source/client/view/structure/authentication/credentials-form.tsx
+++ b/source/client/view/structure/authentication/credentials-form.tsx
@@ -1,8 +1,7 @@
import { type AuthenticationState } from "@server/core/authentication/authentication"
import { enterSurface, prepareSurfaceEntrance, restSurface } from "../../appearance/surface-presence"
import { useReducedMotion } from "@libs/react-motion"
-import { Surface, useTheme } from "@phreshos/react-ui"
-import { numericScale } from "@phreshos/core"
+import { Surface, useScale, useTheme } from "@phreshos/react-ui"
import { obscuredBackground } from "../../components/loading"
import Alert from "../../components/alert"
import { type SyntheticEvent, useLayoutEffect, useRef } from "react"
@@ -14,7 +13,7 @@ export default function CredentialsForm({ title, description, submitLabel, passw
const reducedMotion = useReducedMotion()
- const radius = numericScale(useTheme().radius)
+ const radius = useScale(useTheme().radius)
const outerRadius = radius.large
diff --git a/source/client/view/structure/desktop/taskbar/launcher/launcher.tsx b/source/client/view/structure/desktop/taskbar/launcher/launcher.tsx
index b656add..23d9e11 100644
--- a/source/client/view/structure/desktop/taskbar/launcher/launcher.tsx
+++ b/source/client/view/structure/desktop/taskbar/launcher/launcher.tsx
@@ -1,8 +1,7 @@
import { ComponentProps, ReactNode, useCallback, useEffect, useId, useRef, useState } from "react"
import { enterSurface, prepareSurfaceEntrance, restSurface } from "../../../../appearance/surface-presence"
import { useReducedMotion } from "@libs/react-motion"
-import { useTheme } from "@phreshos/react-ui"
-import { numericScale } from "@phreshos/core"
+import { useScale, useTheme } from "@phreshos/react-ui"
import TaskbarSurface, { taskbarSurfaceClassName } from "../taskbar-surface"
import TaskbarButton from "../taskbar-button"
@@ -18,7 +17,7 @@ export default function ({ label, trigger, children, className, style, ...props
const reducedMotion = useReducedMotion()
- const radius = numericScale(useTheme().radius).large
+ const radius = useScale(useTheme().radius).large
const [open, setOpen] = useState(false)
diff --git a/source/client/view/structure/desktop/taskbar/system/system-dialogs.tsx b/source/client/view/structure/desktop/taskbar/system/system-dialogs.tsx
index 3a587c9..7449bac 100644
--- a/source/client/view/structure/desktop/taskbar/system/system-dialogs.tsx
+++ b/source/client/view/structure/desktop/taskbar/system/system-dialogs.tsx
@@ -2,8 +2,7 @@ import { type PermissionChoice, type PermissionDialog, type ServerCrashDialog }
import ReactTunnel from "@libs/the-link/plugins/react-helper/react-tunnel"
import { enterSurface, prepareSurfaceEntrance, restSurface } from "../../../../appearance/surface-presence"
import { useReducedMotion } from "@libs/react-motion"
-import { useTheme } from "@phreshos/react-ui"
-import { numericScale } from "@phreshos/core"
+import { useScale, useTheme } from "@phreshos/react-ui"
import { useEffect, useId, useRef } from "react"
import { AuthManagerContext } from "../../../../contexts"
import TaskbarSurface, { taskbarSurfaceClassName } from "../taskbar-surface"
@@ -34,7 +33,7 @@ export default function SystemDialogs() {
const reducedMotion = useReducedMotion()
- const radius = numericScale(useTheme().radius).large
+ const radius = useScale(useTheme().radius).large
useEffect(function () {
diff --git a/source/client/view/structure/desktop/taskbar/taskbar-surface.tsx b/source/client/view/structure/desktop/taskbar/taskbar-surface.tsx
index b94acb3..d3ac8a7 100644
--- a/source/client/view/structure/desktop/taskbar/taskbar-surface.tsx
+++ b/source/client/view/structure/desktop/taskbar/taskbar-surface.tsx
@@ -1,13 +1,12 @@
import { ReactNode } from "react"
-import { Surface, useTheme } from "@phreshos/react-ui"
-import { numericScale } from "@phreshos/core"
+import { Surface, useScale, useTheme } from "@phreshos/react-ui"
/** The window-material shell shared by surfaces opened from the taskbar. */
export const taskbarSurfaceClassName = "m-0 isolate overflow-hidden border-0 bg-transparent p-0 shadow-window-active outline-none"
export default function TaskbarSurface({ label, labelId, children }: TaskbarSurfaceProps) {
- const contentRadius = numericScale(useTheme().radius).medium
+ const contentRadius = useScale(useTheme().radius).medium
return <Surface className="grid min-h-0 max-h-[inherit] grid-rows-[auto_minmax(0,1fr)] overflow-hidden rounded-[inherit]">
diff --git a/source/client/view/structure/desktop/taskbar/taskbar.tsx b/source/client/view/structure/desktop/taskbar/taskbar.tsx
index 3f3534b..f795cac 100644
--- a/source/client/view/structure/desktop/taskbar/taskbar.tsx
+++ b/source/client/view/structure/desktop/taskbar/taskbar.tsx
@@ -1,6 +1,5 @@
import { ReactNode } from "react"
-import { Surface, useTheme, type SurfaceProps } from "@phreshos/react-ui"
-import { numericScale } from "@phreshos/core"
+import { Surface, useScale, useTheme, type SurfaceProps } from "@phreshos/react-ui"
import TaskbarSeparator from "./taskbar-separator"
/**
@@ -9,7 +8,7 @@ import TaskbarSeparator from "./taskbar-separator"
*/
export default function Taskbar({ leading, trailing, dialogs, className, style, children, ...props }: TaskbarProps) {
- const radius = numericScale(useTheme().radius).large
+ const radius = useScale(useTheme().radius).large
return <Surface
diff --git a/source/client/view/structure/desktop/windows/window.tsx b/source/client/view/structure/desktop/windows/window.tsx
index 7bd5cd4..3cba70b 100644
--- a/source/client/view/structure/desktop/windows/window.tsx
+++ b/source/client/view/structure/desktop/windows/window.tsx
@@ -1,9 +1,9 @@
import { ComponentProps, PointerEvent as ReactPointerEvent, ReactNode, useLayoutEffect, useRef, useState } from "react"
import { useReducedMotion } from "@libs/react-motion"
import { enterSurface, prepareSurfaceEntrance, restSurface } from "../../../appearance/surface-presence"
-import { Surface, useTheme } from "@phreshos/react-ui"
+import { Surface, useScale, useTheme } from "@phreshos/react-ui"
import { absoluteWindowGeometry, resolveWindowGeometry, resolveWindowValue, wholeWindowGeometry, windowPaintInsets, type WindowRegion, type WindowSurfaceSize } from "../../../components/window-manager/window-geometry"
-import { numericScale, type Position, type Size, type WindowGeometry } from "@phreshos/core"
+import { type Position, type Size, type WindowGeometry } from "@phreshos/core"
import WindowHeader from "./window-header"
import WindowSurface from "./window-surface"
import { type LocalAnimation, type LocalSurfaceState } from "../../../components/desktop-host/local-window"
@@ -56,7 +56,7 @@ export default function ({ title, icon, children, onClose, onClosed, onMinimize,
const theme = useTheme()
- const radius = numericScale(theme.radius)
+ const radius = useScale(theme.radius)
const outerRadius = radius.large