Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5014079144 |
No files matched your search
@@ -57,11 +57,11 @@ describe("ElectronProtocol", () => {
|
||||
assert.equal(yield* Effect.promise(() => response.text()), "ok");
|
||||
assert.include(
|
||||
response.headers.get("content-security-policy") ?? "",
|
||||
"script-src 'self' 'unsafe-inline' 'wasm-unsafe-eval' https://clerk.t3.codes https://challenges.cloudflare.com",
|
||||
"script-src 'self' 'unsafe-inline' https://clerk.t3.codes https://challenges.cloudflare.com",
|
||||
);
|
||||
assert.include(
|
||||
response.headers.get("content-security-policy") ?? "",
|
||||
"connect-src 'self' data: http: https: ws: wss:",
|
||||
"connect-src 'self' http: https: ws: wss:",
|
||||
);
|
||||
assert.include(
|
||||
response.headers.get("content-security-policy") ?? "",
|
||||
@@ -212,18 +212,10 @@ describe("ElectronProtocol", () => {
|
||||
assert.deepEqual(directives["script-src"], [
|
||||
"'self'",
|
||||
"'unsafe-inline'",
|
||||
"'wasm-unsafe-eval'",
|
||||
"https://clerk.t3.codes",
|
||||
"https://challenges.cloudflare.com",
|
||||
]);
|
||||
assert.deepEqual(directives["connect-src"], [
|
||||
"'self'",
|
||||
"data:",
|
||||
"http:",
|
||||
"https:",
|
||||
"ws:",
|
||||
"wss:",
|
||||
]);
|
||||
assert.deepEqual(directives["connect-src"], ["'self'", "http:", "https:", "ws:", "wss:"]);
|
||||
assert.deepEqual(directives["img-src"], [
|
||||
"'self'",
|
||||
"t3code:",
|
||||
|
||||
@@ -71,8 +71,6 @@ export function makeDesktopContentSecurityPolicy(input: DesktopProtocolRegistrat
|
||||
const scriptSources = [
|
||||
"'self'",
|
||||
"'unsafe-inline'",
|
||||
// Required to compile the ghostty-web terminal's WebAssembly module.
|
||||
"'wasm-unsafe-eval'",
|
||||
...(clerkOrigin ? [clerkOrigin] : []),
|
||||
"https://challenges.cloudflare.com",
|
||||
];
|
||||
@@ -81,8 +79,7 @@ export function makeDesktopContentSecurityPolicy(input: DesktopProtocolRegistrat
|
||||
// the build-configured Clerk, relay, and OTLP endpoints. Those environment
|
||||
// origins are not known when this response policy is created, so restrict
|
||||
// connections by the network schemes the client supports instead of by host.
|
||||
// data: allows ghostty-web to fetch its embedded WebAssembly payload.
|
||||
const connectSources = ["'self'", "data:", "http:", "https:", "ws:", "wss:"];
|
||||
const connectSources = ["'self'", "http:", "https:", "ws:", "wss:"];
|
||||
|
||||
return [
|
||||
"default-src 'self'",
|
||||
|
||||
@@ -1,76 +0,0 @@
|
||||
import { describe, expect, it } from "vite-plus/test";
|
||||
|
||||
import {
|
||||
ghosttyThemeSearchPaths,
|
||||
parseGhosttyConfig,
|
||||
splitThemeSelection,
|
||||
} from "./ghosttyStyle.ts";
|
||||
|
||||
const posixPath = {
|
||||
isAbsolute: (value: string) => value.startsWith("/"),
|
||||
join: (...segments: ReadonlyArray<string>) =>
|
||||
segments
|
||||
.map((segment, index) =>
|
||||
index === 0 ? segment.replace(/\/$/, "") : segment.replace(/^\//, ""),
|
||||
)
|
||||
.join("/"),
|
||||
};
|
||||
|
||||
const windowsPath = {
|
||||
isAbsolute: (value: string) => /^[A-Za-z]:[\\/]/.test(value),
|
||||
join: (...segments: ReadonlyArray<string>) => segments.join("\\"),
|
||||
};
|
||||
|
||||
describe("parseGhosttyConfig", () => {
|
||||
it("omits empty scalar color assignments", () => {
|
||||
const config = parseGhosttyConfig(`
|
||||
background =
|
||||
foreground = ""
|
||||
cursor-color = #c0ffee
|
||||
`);
|
||||
|
||||
expect(config.colors.background).toBeUndefined();
|
||||
expect(config.colors.foreground).toBeUndefined();
|
||||
expect(config.colors.cursor).toBe("#c0ffee");
|
||||
});
|
||||
});
|
||||
|
||||
describe("splitThemeSelection", () => {
|
||||
it("keeps a Windows absolute theme path as a bare selection", () => {
|
||||
expect(splitThemeSelection("C:/Users/Alex/Ghostty Themes/t3code")).toEqual({
|
||||
light: "C:/Users/Alex/Ghostty Themes/t3code",
|
||||
dark: "C:/Users/Alex/Ghostty Themes/t3code",
|
||||
});
|
||||
});
|
||||
|
||||
it("still parses explicit light and dark theme selections", () => {
|
||||
expect(splitThemeSelection("light:Day,dark:Night")).toEqual({
|
||||
light: "Day",
|
||||
dark: "Night",
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
describe("ghosttyThemeSearchPaths", () => {
|
||||
it("searches beside the macOS Application Support config", () => {
|
||||
const candidates = ghosttyThemeSearchPaths(posixPath, {
|
||||
home: "/Users/alex",
|
||||
xdgConfigHome: "/Users/alex/.config",
|
||||
themeName: "t3code",
|
||||
});
|
||||
|
||||
expect(candidates).toContain(
|
||||
"/Users/alex/Library/Application Support/com.mitchellh.ghostty/themes/t3code",
|
||||
);
|
||||
});
|
||||
|
||||
it("tries an absolute theme file before named-theme directories", () => {
|
||||
const candidates = ghosttyThemeSearchPaths(windowsPath, {
|
||||
home: "C:\\Users\\alex",
|
||||
xdgConfigHome: "C:\\Users\\alex\\.config",
|
||||
themeName: "D:\\themes\\t3code",
|
||||
});
|
||||
|
||||
expect(candidates[0]).toBe("D:\\themes\\t3code");
|
||||
});
|
||||
});
|
||||
@@ -1,289 +0,0 @@
|
||||
import * as NodeOS from "node:os";
|
||||
|
||||
import type { ServerTerminalStyle, ServerTerminalThemeColors } from "@t3tools/contracts";
|
||||
import * as Effect from "effect/Effect";
|
||||
import * as FileSystem from "effect/FileSystem";
|
||||
import * as Path from "effect/Path";
|
||||
|
||||
const PALETTE_SIZE = 16;
|
||||
|
||||
interface GhosttyConfigValues {
|
||||
readonly fontFamily: ReadonlyArray<string>;
|
||||
readonly fontSize: number | undefined;
|
||||
readonly theme: string | undefined;
|
||||
readonly colors: MutableThemeColors;
|
||||
}
|
||||
|
||||
interface MutableThemeColors {
|
||||
background?: string | undefined;
|
||||
foreground?: string | undefined;
|
||||
cursor?: string | undefined;
|
||||
selectionBackground?: string | undefined;
|
||||
selectionForeground?: string | undefined;
|
||||
palette: Array<string>;
|
||||
}
|
||||
|
||||
function emptyColors(): MutableThemeColors {
|
||||
return { palette: Array.from({ length: PALETTE_SIZE }, () => "") };
|
||||
}
|
||||
|
||||
function stripQuotes(value: string): string {
|
||||
if (value.length >= 2 && value.startsWith('"') && value.endsWith('"')) {
|
||||
return value.slice(1, -1);
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
function applyColorEntry(colors: MutableThemeColors, key: string, value: string): void {
|
||||
// Empty assignments are resets, not colors. Keeping an empty scalar here
|
||||
// would later violate ServerConfig's TrimmedNonEmptyString schema and make
|
||||
// the whole server.getConfig response fail to encode.
|
||||
if (value.length === 0) return;
|
||||
switch (key) {
|
||||
case "background":
|
||||
colors.background = value;
|
||||
return;
|
||||
case "foreground":
|
||||
colors.foreground = value;
|
||||
return;
|
||||
case "cursor-color":
|
||||
colors.cursor = value;
|
||||
return;
|
||||
case "selection-background":
|
||||
colors.selectionBackground = value;
|
||||
return;
|
||||
case "selection-foreground":
|
||||
colors.selectionForeground = value;
|
||||
return;
|
||||
case "palette": {
|
||||
const match = value.match(/^(\d+)\s*=\s*(\S+)$/);
|
||||
if (!match) return;
|
||||
const index = Number(match[1]);
|
||||
if (!Number.isInteger(index) || index < 0 || index >= PALETTE_SIZE) return;
|
||||
colors.palette[index] = match[2] ?? "";
|
||||
return;
|
||||
}
|
||||
default:
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
/** Parse Ghostty's `key = value` config format, keeping only what the web terminal uses. */
|
||||
export function parseGhosttyConfig(source: string): GhosttyConfigValues {
|
||||
const fontFamily: Array<string> = [];
|
||||
let fontSize: number | undefined;
|
||||
let theme: string | undefined;
|
||||
const colors = emptyColors();
|
||||
|
||||
for (const rawLine of source.split("\n")) {
|
||||
const line = rawLine.trim();
|
||||
if (line.length === 0 || line.startsWith("#")) continue;
|
||||
const separatorIndex = line.indexOf("=");
|
||||
if (separatorIndex <= 0) continue;
|
||||
const key = line.slice(0, separatorIndex).trim();
|
||||
const value = stripQuotes(line.slice(separatorIndex + 1).trim());
|
||||
|
||||
switch (key) {
|
||||
case "font-family":
|
||||
// Repeated entries build a fallback chain; an empty value resets it.
|
||||
if (value.length === 0) {
|
||||
fontFamily.length = 0;
|
||||
} else {
|
||||
fontFamily.push(value);
|
||||
}
|
||||
break;
|
||||
case "font-size": {
|
||||
const parsed = Number(value);
|
||||
if (Number.isFinite(parsed) && parsed > 0) {
|
||||
fontSize = parsed;
|
||||
}
|
||||
break;
|
||||
}
|
||||
case "theme":
|
||||
theme = value.length > 0 ? value : undefined;
|
||||
break;
|
||||
default:
|
||||
applyColorEntry(colors, key, value);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return { fontFamily, fontSize, theme, colors };
|
||||
}
|
||||
|
||||
/** Split `theme = light:A,dark:B` into per-mode names; a bare name applies to both. */
|
||||
export function splitThemeSelection(theme: string): { light?: string; dark?: string } {
|
||||
const result: { light?: string; dark?: string } = {};
|
||||
let hasModeSelection = false;
|
||||
for (const part of theme.split(",")) {
|
||||
const match = /^\s*(light|dark):(.*)$/.exec(part);
|
||||
if (!match) continue;
|
||||
const mode = match[1];
|
||||
const name = (match[2] ?? "").trim();
|
||||
if (name.length === 0) continue;
|
||||
hasModeSelection = true;
|
||||
if (mode === "light") result.light = name;
|
||||
if (mode === "dark") result.dark = name;
|
||||
}
|
||||
// A colon is also part of a Windows drive path (C:/theme), and may be part
|
||||
// of another valid bare theme identifier. Only enter per-mode parsing when
|
||||
// an explicit light: or dark: selection was recognized.
|
||||
return hasModeSelection ? result : { light: theme, dark: theme };
|
||||
}
|
||||
|
||||
function hasAnyColor(colors: MutableThemeColors): boolean {
|
||||
return (
|
||||
colors.background !== undefined ||
|
||||
colors.foreground !== undefined ||
|
||||
colors.cursor !== undefined ||
|
||||
colors.selectionBackground !== undefined ||
|
||||
colors.selectionForeground !== undefined ||
|
||||
colors.palette.some((entry) => entry.length > 0)
|
||||
);
|
||||
}
|
||||
|
||||
function mergeColors(base: MutableThemeColors, override: MutableThemeColors): MutableThemeColors {
|
||||
return {
|
||||
background: override.background ?? base.background,
|
||||
foreground: override.foreground ?? base.foreground,
|
||||
cursor: override.cursor ?? base.cursor,
|
||||
selectionBackground: override.selectionBackground ?? base.selectionBackground,
|
||||
selectionForeground: override.selectionForeground ?? base.selectionForeground,
|
||||
palette: base.palette.map((entry, index) => {
|
||||
const overrideEntry = override.palette[index] ?? "";
|
||||
return overrideEntry.length > 0 ? overrideEntry : entry;
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
function toThemeColors(colors: MutableThemeColors): ServerTerminalThemeColors | undefined {
|
||||
if (!hasAnyColor(colors)) return undefined;
|
||||
return {
|
||||
...(colors.background !== undefined ? { background: colors.background } : {}),
|
||||
...(colors.foreground !== undefined ? { foreground: colors.foreground } : {}),
|
||||
...(colors.cursor !== undefined ? { cursor: colors.cursor } : {}),
|
||||
...(colors.selectionBackground !== undefined
|
||||
? { selectionBackground: colors.selectionBackground }
|
||||
: {}),
|
||||
...(colors.selectionForeground !== undefined
|
||||
? { selectionForeground: colors.selectionForeground }
|
||||
: {}),
|
||||
palette: colors.palette,
|
||||
};
|
||||
}
|
||||
|
||||
// Bundled theme locations by platform: the macOS app bundle and the
|
||||
// Linux system resource dirs documented by Ghostty.
|
||||
const GHOSTTY_SYSTEM_THEME_DIRS = [
|
||||
"/Applications/Ghostty.app/Contents/Resources/ghostty/themes",
|
||||
"/usr/share/ghostty/themes",
|
||||
"/usr/local/share/ghostty/themes",
|
||||
];
|
||||
|
||||
export function ghosttyThemeSearchPaths(
|
||||
path: Pick<Path.Path, "isAbsolute" | "join">,
|
||||
input: { readonly home: string; readonly xdgConfigHome: string; readonly themeName: string },
|
||||
): ReadonlyArray<string> {
|
||||
return [
|
||||
...(path.isAbsolute(input.themeName) ? [input.themeName] : []),
|
||||
path.join(input.xdgConfigHome, "ghostty", "themes", input.themeName),
|
||||
path.join(
|
||||
input.home,
|
||||
"Library",
|
||||
"Application Support",
|
||||
"com.mitchellh.ghostty",
|
||||
"themes",
|
||||
input.themeName,
|
||||
),
|
||||
...GHOSTTY_SYSTEM_THEME_DIRS.map((dir) => path.join(dir, input.themeName)),
|
||||
];
|
||||
}
|
||||
|
||||
/**
|
||||
* Load terminal font and theme colors from the user's local Ghostty config.
|
||||
* Best effort by design: any missing file or parse problem yields `undefined`
|
||||
* so the client falls back to its built-in terminal appearance.
|
||||
*/
|
||||
export const loadGhosttyTerminalStyle: Effect.Effect<
|
||||
ServerTerminalStyle | undefined,
|
||||
never,
|
||||
FileSystem.FileSystem | Path.Path
|
||||
> = Effect.gen(function* () {
|
||||
const fs = yield* FileSystem.FileSystem;
|
||||
const path = yield* Path.Path;
|
||||
const home = NodeOS.homedir();
|
||||
// Per the XDG spec an empty XDG_CONFIG_HOME must be treated as unset.
|
||||
const xdgConfigHomeEnv = process.env["XDG_CONFIG_HOME"];
|
||||
const xdgConfigHome =
|
||||
xdgConfigHomeEnv !== undefined && xdgConfigHomeEnv.length > 0
|
||||
? xdgConfigHomeEnv
|
||||
: path.join(home, ".config");
|
||||
|
||||
const readFirstExisting = (candidates: ReadonlyArray<string>) =>
|
||||
Effect.gen(function* () {
|
||||
for (const candidate of candidates) {
|
||||
const exists = yield* fs.exists(candidate).pipe(Effect.orElseSucceed(() => false));
|
||||
if (!exists) continue;
|
||||
const content = yield* fs
|
||||
.readFileString(candidate)
|
||||
.pipe(Effect.orElseSucceed(() => undefined));
|
||||
if (content !== undefined) return content;
|
||||
}
|
||||
return undefined;
|
||||
});
|
||||
|
||||
// Ghostty reads the XDG config first and the macOS Application Support
|
||||
// config after it, so later files override earlier values. It also accepts
|
||||
// config.ghostty as the file name. Merge every location that exists instead
|
||||
// of stopping at the first match.
|
||||
const configDirs = [
|
||||
path.join(xdgConfigHome, "ghostty"),
|
||||
path.join(home, "Library", "Application Support", "com.mitchellh.ghostty"),
|
||||
];
|
||||
const configSources: Array<string> = [];
|
||||
for (const dir of configDirs) {
|
||||
// Read both file names when they coexist so neither shadows the other;
|
||||
// Ghostty loads config.ghostty before config, so config wins conflicts.
|
||||
for (const candidate of [path.join(dir, "config.ghostty"), path.join(dir, "config")]) {
|
||||
const source = yield* readFirstExisting([candidate]);
|
||||
if (source !== undefined) configSources.push(source);
|
||||
}
|
||||
}
|
||||
if (configSources.length === 0) return undefined;
|
||||
|
||||
const config = parseGhosttyConfig(configSources.join("\n"));
|
||||
|
||||
const loadThemeColors = (themeName: string) =>
|
||||
Effect.gen(function* () {
|
||||
const themeSource = yield* readFirstExisting(
|
||||
ghosttyThemeSearchPaths(path, { home, xdgConfigHome, themeName }),
|
||||
);
|
||||
if (themeSource === undefined) return emptyColors();
|
||||
return parseGhosttyConfig(themeSource).colors;
|
||||
});
|
||||
|
||||
const themeSelection = config.theme ? splitThemeSelection(config.theme) : {};
|
||||
const resolveModeColors = (themeName: string | undefined) =>
|
||||
Effect.gen(function* () {
|
||||
const themeColors = themeName ? yield* loadThemeColors(themeName) : emptyColors();
|
||||
// Explicit colors in the user config override the selected theme.
|
||||
return toThemeColors(mergeColors(themeColors, config.colors));
|
||||
});
|
||||
|
||||
const light = yield* resolveModeColors(themeSelection.light);
|
||||
const dark = yield* resolveModeColors(themeSelection.dark);
|
||||
|
||||
const style: ServerTerminalStyle = {
|
||||
...(config.fontFamily.length > 0 ? { fontFamily: config.fontFamily } : {}),
|
||||
...(config.fontSize !== undefined ? { fontSize: config.fontSize } : {}),
|
||||
...(light !== undefined ? { light } : {}),
|
||||
...(dark !== undefined ? { dark } : {}),
|
||||
};
|
||||
|
||||
const hasAnyValue =
|
||||
style.fontFamily !== undefined ||
|
||||
style.fontSize !== undefined ||
|
||||
style.light !== undefined ||
|
||||
style.dark !== undefined;
|
||||
return hasAnyValue ? style : undefined;
|
||||
}).pipe(Effect.orElseSucceed(() => undefined));
|
||||
@@ -81,7 +81,6 @@ import * as ProviderMaintenanceRunner from "./provider/providerMaintenanceRunner
|
||||
import * as ServerLifecycleEvents from "./serverLifecycleEvents.ts";
|
||||
import * as ServerRuntimeStartup from "./serverRuntimeStartup.ts";
|
||||
import * as ServerSettings from "./serverSettings.ts";
|
||||
import { loadGhosttyTerminalStyle } from "./terminal/ghosttyStyle.ts";
|
||||
import * as TerminalManager from "./terminal/Manager.ts";
|
||||
import * as PreviewAutomationBroker from "./mcp/PreviewAutomationBroker.ts";
|
||||
import * as PreviewManager from "./preview/Manager.ts";
|
||||
@@ -1066,7 +1065,6 @@ const makeWsRpcLayer = (
|
||||
|
||||
const loadServerConfig = Effect.gen(function* () {
|
||||
const keybindingsConfig = yield* keybindings.loadConfigState;
|
||||
const terminalStyle = yield* loadGhosttyTerminalStyle;
|
||||
const providers = yield* providerRegistry.getProviders;
|
||||
const settings = ServerSettings.redactServerSettingsForClient(
|
||||
yield* serverSettings.getSettings,
|
||||
@@ -1083,7 +1081,6 @@ const makeWsRpcLayer = (
|
||||
issues: keybindingsConfig.issues,
|
||||
providers,
|
||||
availableEditors: yield* externalLauncher.resolveAvailableEditors(),
|
||||
...(terminalStyle !== undefined ? { terminalStyle } : {}),
|
||||
observability: {
|
||||
logsDirectoryPath: config.logsDir,
|
||||
localTracingEnabled: true,
|
||||
|
||||
@@ -31,9 +31,10 @@
|
||||
"@t3tools/shared": "workspace:*",
|
||||
"@tanstack/react-pacer": "^0.19.4",
|
||||
"@tanstack/react-router": "^1.160.2",
|
||||
"@xterm/addon-fit": "^0.11.0",
|
||||
"@xterm/xterm": "^6.0.0",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"effect": "catalog:",
|
||||
"ghostty-web": "0.4.0",
|
||||
"jose": "catalog:",
|
||||
"lexical": "^0.41.0",
|
||||
"lucide-react": "^0.564.0",
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -0,0 +1,221 @@
|
||||
import {
|
||||
EnvironmentId,
|
||||
ProjectId,
|
||||
ProviderInstanceId,
|
||||
ThreadId,
|
||||
TurnId,
|
||||
type OrchestrationLatestTurnState,
|
||||
type OrchestrationThreadShell,
|
||||
} from "@t3tools/contracts";
|
||||
import { describe, expect, it } from "vite-plus/test";
|
||||
|
||||
import {
|
||||
transitionCompletedThreadUnreadState,
|
||||
type CompletedThreadUnreadEnvironment,
|
||||
type CompletedThreadUnreadState,
|
||||
} from "./useMarkLiveCompletedThreadsUnread";
|
||||
|
||||
const ENVIRONMENT_ID = EnvironmentId.make("environment-1");
|
||||
const COMPLETED_AT = "2026-06-17T18:30:00.000Z";
|
||||
|
||||
function makeThread(input: {
|
||||
readonly id: string;
|
||||
readonly state?: OrchestrationLatestTurnState;
|
||||
readonly completedAt?: string | null;
|
||||
readonly updatedAt?: string;
|
||||
readonly archivedAt?: string | null;
|
||||
}): OrchestrationThreadShell {
|
||||
const threadId = ThreadId.make(input.id);
|
||||
const state = input.state ?? "completed";
|
||||
return {
|
||||
id: threadId,
|
||||
projectId: ProjectId.make("project-1"),
|
||||
title: input.id,
|
||||
modelSelection: {
|
||||
instanceId: ProviderInstanceId.make("codex"),
|
||||
model: "gpt-5.6-sol",
|
||||
},
|
||||
runtimeMode: "full-access",
|
||||
interactionMode: "default",
|
||||
branch: "main",
|
||||
worktreePath: null,
|
||||
latestTurn: {
|
||||
turnId: TurnId.make(`turn-${input.id}`),
|
||||
state,
|
||||
requestedAt: "2026-06-17T18:00:00.000Z",
|
||||
startedAt: "2026-06-17T18:00:01.000Z",
|
||||
completedAt: input.completedAt === undefined ? COMPLETED_AT : input.completedAt,
|
||||
assistantMessageId: null,
|
||||
},
|
||||
createdAt: "2026-06-17T18:00:00.000Z",
|
||||
updatedAt: input.updatedAt ?? COMPLETED_AT,
|
||||
archivedAt: input.archivedAt ?? null,
|
||||
session: null,
|
||||
latestUserMessageAt: "2026-06-17T18:00:00.000Z",
|
||||
hasPendingApprovals: false,
|
||||
hasPendingUserInput: false,
|
||||
hasActionableProposedPlan: false,
|
||||
};
|
||||
}
|
||||
|
||||
function environment(
|
||||
threads: ReadonlyArray<OrchestrationThreadShell>,
|
||||
isLive = true,
|
||||
): CompletedThreadUnreadEnvironment {
|
||||
return { environmentId: ENVIRONMENT_ID, isLive, threads };
|
||||
}
|
||||
|
||||
function bootstrap(threads: ReadonlyArray<OrchestrationThreadShell> = []) {
|
||||
return transitionCompletedThreadUnreadState(new Map(), [environment(threads)]);
|
||||
}
|
||||
|
||||
describe("transitionCompletedThreadUnreadState", () => {
|
||||
it("keeps completed threads in the initial historical snapshot read", () => {
|
||||
const historical = makeThread({ id: "historical" });
|
||||
|
||||
const transition = bootstrap([historical]);
|
||||
|
||||
expect(transition.actions).toEqual([]);
|
||||
expect(transition.state.get(ENVIRONMENT_ID)?.get(historical.id)).toBe(COMPLETED_AT);
|
||||
});
|
||||
|
||||
it("marks a first-seen live completed thread unread when updatedAt equals completedAt", () => {
|
||||
const initial = bootstrap();
|
||||
const completed = makeThread({ id: "live-equal" });
|
||||
|
||||
const transition = transitionCompletedThreadUnreadState(initial.state, [
|
||||
environment([completed]),
|
||||
]);
|
||||
|
||||
expect(transition.actions).toEqual([
|
||||
{ environmentId: ENVIRONMENT_ID, threadId: completed.id, completedAt: COMPLETED_AT },
|
||||
]);
|
||||
});
|
||||
|
||||
it("marks a first-seen live completed thread unread when updatedAt is after completedAt", () => {
|
||||
const initial = bootstrap();
|
||||
const completed = makeThread({
|
||||
id: "live-later",
|
||||
updatedAt: "2026-06-17T18:31:00.000Z",
|
||||
});
|
||||
|
||||
const transition = transitionCompletedThreadUnreadState(initial.state, [
|
||||
environment([completed]),
|
||||
]);
|
||||
|
||||
expect(transition.actions).toEqual([
|
||||
{ environmentId: ENVIRONMENT_ID, threadId: completed.id, completedAt: COMPLETED_AT },
|
||||
]);
|
||||
});
|
||||
|
||||
it("marks a completed thread introduced by a post-bootstrap snapshot unread", () => {
|
||||
const historical = makeThread({ id: "historical" });
|
||||
const initial = bootstrap([historical]);
|
||||
const added = makeThread({ id: "snapshot-addition" });
|
||||
|
||||
const transition = transitionCompletedThreadUnreadState(initial.state, [
|
||||
environment([historical, added]),
|
||||
]);
|
||||
|
||||
expect(transition.actions).toEqual([
|
||||
{ environmentId: ENVIRONMENT_ID, threadId: added.id, completedAt: COMPLETED_AT },
|
||||
]);
|
||||
});
|
||||
|
||||
it("marks a previously running background thread when it completes", () => {
|
||||
const running = makeThread({ id: "background", state: "running", completedAt: null });
|
||||
const initial = bootstrap([running]);
|
||||
const completed = makeThread({ id: "background" });
|
||||
|
||||
const transition = transitionCompletedThreadUnreadState(initial.state, [
|
||||
environment([completed]),
|
||||
]);
|
||||
|
||||
expect(transition.actions).toEqual([
|
||||
{ environmentId: ENVIRONMENT_ID, threadId: completed.id, completedAt: COMPLETED_AT },
|
||||
]);
|
||||
});
|
||||
|
||||
it("preserves observations across reconnect snapshots without repeating unread actions", () => {
|
||||
const completed = makeThread({ id: "completed" });
|
||||
const initial = bootstrap([completed]);
|
||||
|
||||
const synchronizing = transitionCompletedThreadUnreadState(initial.state, [
|
||||
environment([], false),
|
||||
]);
|
||||
const reconnected = transitionCompletedThreadUnreadState(synchronizing.state, [
|
||||
environment([completed]),
|
||||
]);
|
||||
|
||||
expect(synchronizing.actions).toEqual([]);
|
||||
expect(synchronizing.state).toEqual(initial.state);
|
||||
expect(reconnected.actions).toEqual([]);
|
||||
});
|
||||
|
||||
it("does not repeat an unread action after reconnecting", () => {
|
||||
const initial = bootstrap();
|
||||
const completed = makeThread({ id: "completed" });
|
||||
const firstSeen = transitionCompletedThreadUnreadState(initial.state, [
|
||||
environment([completed]),
|
||||
]);
|
||||
const synchronizing = transitionCompletedThreadUnreadState(firstSeen.state, [
|
||||
environment([completed], false),
|
||||
]);
|
||||
const reconnected = transitionCompletedThreadUnreadState(synchronizing.state, [
|
||||
environment([completed]),
|
||||
]);
|
||||
|
||||
expect(firstSeen.actions).toHaveLength(1);
|
||||
expect(reconnected.actions).toEqual([]);
|
||||
});
|
||||
|
||||
it("waits for a completion-consistent updatedAt before marking unread", () => {
|
||||
const initial = bootstrap();
|
||||
const stale = makeThread({
|
||||
id: "stale",
|
||||
updatedAt: "2026-06-17T18:29:59.000Z",
|
||||
});
|
||||
const staleTransition = transitionCompletedThreadUnreadState(initial.state, [
|
||||
environment([stale]),
|
||||
]);
|
||||
const consistent = makeThread({ id: "stale" });
|
||||
const consistentTransition = transitionCompletedThreadUnreadState(staleTransition.state, [
|
||||
environment([consistent]),
|
||||
]);
|
||||
|
||||
expect(staleTransition.actions).toEqual([]);
|
||||
expect(consistentTransition.actions).toEqual([
|
||||
{ environmentId: ENVIRONMENT_ID, threadId: consistent.id, completedAt: COMPLETED_AT },
|
||||
]);
|
||||
});
|
||||
|
||||
it("does not mark interrupted or error turns as completed", () => {
|
||||
const initial = bootstrap();
|
||||
const interrupted = makeThread({ id: "interrupted", state: "interrupted" });
|
||||
const failed = makeThread({ id: "failed", state: "error" });
|
||||
|
||||
const transition = transitionCompletedThreadUnreadState(initial.state, [
|
||||
environment([interrupted, failed]),
|
||||
]);
|
||||
|
||||
expect(transition.actions).toEqual([]);
|
||||
expect(transition.state.get(ENVIRONMENT_ID)).toEqual(
|
||||
new Map([
|
||||
[interrupted.id, null],
|
||||
[failed.id, null],
|
||||
]),
|
||||
);
|
||||
});
|
||||
|
||||
it("treats a removed and re-added environment as a fresh historical bootstrap", () => {
|
||||
const historical = makeThread({ id: "historical" });
|
||||
const initial = bootstrap([historical]);
|
||||
const removed = transitionCompletedThreadUnreadState(initial.state, []);
|
||||
const readded = transitionCompletedThreadUnreadState(removed.state, [
|
||||
environment([historical]),
|
||||
]);
|
||||
|
||||
expect(removed.state).toEqual(new Map() satisfies CompletedThreadUnreadState);
|
||||
expect(readded.actions).toEqual([]);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,126 @@
|
||||
import { useAtomValue } from "@effect/atom-react";
|
||||
import { scopedThreadKey, scopeThreadRef } from "@t3tools/client-runtime/environment";
|
||||
import type { EnvironmentId, OrchestrationThreadShell, ThreadId } from "@t3tools/contracts";
|
||||
import * as Option from "effect/Option";
|
||||
import { Atom } from "effect/unstable/reactivity";
|
||||
import { useEffect, useRef } from "react";
|
||||
|
||||
import { environmentCatalog } from "../connection/catalog";
|
||||
import { environmentShell } from "../state/shell";
|
||||
import { useUiStateStore } from "../uiStateStore";
|
||||
|
||||
export interface CompletedThreadUnreadEnvironment {
|
||||
readonly environmentId: EnvironmentId;
|
||||
readonly isLive: boolean;
|
||||
readonly threads: ReadonlyArray<OrchestrationThreadShell>;
|
||||
}
|
||||
|
||||
export type CompletedThreadUnreadState = ReadonlyMap<
|
||||
EnvironmentId,
|
||||
ReadonlyMap<ThreadId, string | null>
|
||||
>;
|
||||
|
||||
export interface CompletedThreadUnreadAction {
|
||||
readonly environmentId: EnvironmentId;
|
||||
readonly threadId: ThreadId;
|
||||
readonly completedAt: string;
|
||||
}
|
||||
|
||||
export interface CompletedThreadUnreadTransition {
|
||||
readonly state: CompletedThreadUnreadState;
|
||||
readonly actions: ReadonlyArray<CompletedThreadUnreadAction>;
|
||||
}
|
||||
|
||||
function eligibleCompletedAt(thread: OrchestrationThreadShell): string | null {
|
||||
if (thread.latestTurn?.state !== "completed" || !thread.latestTurn.completedAt) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const completedAt = Date.parse(thread.latestTurn.completedAt);
|
||||
const updatedAt = Date.parse(thread.updatedAt);
|
||||
if (!Number.isFinite(completedAt) || !Number.isFinite(updatedAt) || updatedAt < completedAt) {
|
||||
return null;
|
||||
}
|
||||
|
||||
return thread.latestTurn.completedAt;
|
||||
}
|
||||
|
||||
export function transitionCompletedThreadUnreadState(
|
||||
previousState: CompletedThreadUnreadState,
|
||||
environments: ReadonlyArray<CompletedThreadUnreadEnvironment>,
|
||||
): CompletedThreadUnreadTransition {
|
||||
const nextState = new Map<EnvironmentId, ReadonlyMap<ThreadId, string | null>>();
|
||||
const actions: CompletedThreadUnreadAction[] = [];
|
||||
|
||||
for (const environment of environments) {
|
||||
const previousCompletions = previousState.get(environment.environmentId);
|
||||
if (!environment.isLive) {
|
||||
// Keep the last live observations while a known environment reconnects,
|
||||
// but do not treat bootstrap or catch-up snapshots as new completions.
|
||||
if (previousCompletions !== undefined) {
|
||||
nextState.set(environment.environmentId, previousCompletions);
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
const currentCompletions = new Map<ThreadId, string | null>();
|
||||
for (const thread of environment.threads) {
|
||||
const completedAt = eligibleCompletedAt(thread);
|
||||
currentCompletions.set(thread.id, completedAt);
|
||||
|
||||
if (
|
||||
// An absent previous map means this is the environment's initial live
|
||||
// snapshot, whose historical completions establish the read baseline.
|
||||
previousCompletions !== undefined &&
|
||||
completedAt !== null &&
|
||||
thread.archivedAt === null &&
|
||||
(!previousCompletions.has(thread.id) || previousCompletions.get(thread.id) !== completedAt)
|
||||
) {
|
||||
actions.push({
|
||||
environmentId: environment.environmentId,
|
||||
threadId: thread.id,
|
||||
completedAt,
|
||||
});
|
||||
}
|
||||
}
|
||||
nextState.set(environment.environmentId, currentCompletions);
|
||||
}
|
||||
|
||||
return { state: nextState, actions };
|
||||
}
|
||||
|
||||
const completedThreadUnreadEnvironmentsAtom = Atom.make(
|
||||
(get): ReadonlyArray<CompletedThreadUnreadEnvironment> => {
|
||||
const environments: CompletedThreadUnreadEnvironment[] = [];
|
||||
for (const environmentId of get(environmentCatalog.catalogValueAtom).entries.keys()) {
|
||||
const shellState = get(environmentShell.stateValueAtom(environmentId));
|
||||
environments.push({
|
||||
environmentId,
|
||||
isLive: shellState.status === "live",
|
||||
threads: Option.match(shellState.snapshot, {
|
||||
onNone: () => [],
|
||||
onSome: (snapshot) => snapshot.threads,
|
||||
}),
|
||||
});
|
||||
}
|
||||
return environments;
|
||||
},
|
||||
).pipe(Atom.withLabel("completed-thread-unread:environments"));
|
||||
|
||||
export function useMarkLiveCompletedThreadsUnread(): void {
|
||||
const environments = useAtomValue(completedThreadUnreadEnvironmentsAtom);
|
||||
const stateRef = useRef<CompletedThreadUnreadState>(new Map());
|
||||
|
||||
useEffect(() => {
|
||||
const transition = transitionCompletedThreadUnreadState(stateRef.current, environments);
|
||||
stateRef.current = transition.state;
|
||||
|
||||
const uiState = useUiStateStore.getState();
|
||||
for (const action of transition.actions) {
|
||||
uiState.markThreadUnread(
|
||||
scopedThreadKey(scopeThreadRef(action.environmentId, action.threadId)),
|
||||
action.completedAt,
|
||||
);
|
||||
}
|
||||
}, [environments]);
|
||||
}
|
||||
@@ -8,6 +8,7 @@ import { createHashHistory, createBrowserHistory } from "@tanstack/react-router"
|
||||
import "@fontsource-variable/dm-sans/index.css";
|
||||
import "@fontsource/jetbrains-mono/400.css";
|
||||
import "@fontsource/jetbrains-mono/500.css";
|
||||
import "@xterm/xterm/css/xterm.css";
|
||||
import "./index.css";
|
||||
|
||||
import { isElectron } from "./env";
|
||||
|
||||
@@ -28,6 +28,7 @@ import {
|
||||
} from "../components/ui/toast";
|
||||
import { resolveAndPersistPreferredEditor } from "../editorPreferences";
|
||||
import { useClientSettings } from "../hooks/useSettings";
|
||||
import { useMarkLiveCompletedThreadsUnread } from "../hooks/useMarkLiveCompletedThreadsUnread";
|
||||
import {
|
||||
deriveLogicalProjectKeyFromSettings,
|
||||
derivePhysicalProjectKeyFromPath,
|
||||
@@ -133,6 +134,7 @@ function RootRouteView() {
|
||||
<SshPasswordPromptDialog />
|
||||
<SlowRpcRequestToastCoordinator />
|
||||
<HostedStaticEnvironmentBootstrap />
|
||||
<CompletedThreadUnreadTracker />
|
||||
{primaryEnvironmentAuthenticated ? <EventRouter /> : null}
|
||||
{primaryEnvironmentAuthenticated ? <ProviderUpdateLaunchNotification /> : null}
|
||||
{appShell}
|
||||
@@ -141,6 +143,11 @@ function RootRouteView() {
|
||||
);
|
||||
}
|
||||
|
||||
function CompletedThreadUnreadTracker() {
|
||||
useMarkLiveCompletedThreadsUnread();
|
||||
return null;
|
||||
}
|
||||
|
||||
function DocumentTitleSync() {
|
||||
const primaryServerVersion =
|
||||
useAtomValue(primaryServerConfigAtom)?.environment.serverVersion ?? null;
|
||||
|
||||
@@ -1,35 +0,0 @@
|
||||
import { describe, expect, it } from "vite-plus/test";
|
||||
|
||||
import { shouldFocusTerminalAfterSetup } from "./terminal-focus";
|
||||
|
||||
describe("shouldFocusTerminalAfterSetup", () => {
|
||||
it("focuses the active terminal on its first setup", () => {
|
||||
expect(
|
||||
shouldFocusTerminalAfterSetup({
|
||||
autoFocus: true,
|
||||
hasMounted: false,
|
||||
restorePreviousTerminalFocus: false,
|
||||
}),
|
||||
).toBe(true);
|
||||
});
|
||||
|
||||
it("does not steal focus when terminal style causes a remount", () => {
|
||||
expect(
|
||||
shouldFocusTerminalAfterSetup({
|
||||
autoFocus: true,
|
||||
hasMounted: true,
|
||||
restorePreviousTerminalFocus: false,
|
||||
}),
|
||||
).toBe(false);
|
||||
});
|
||||
|
||||
it("restores focus when the terminal itself was focused before remount", () => {
|
||||
expect(
|
||||
shouldFocusTerminalAfterSetup({
|
||||
autoFocus: false,
|
||||
hasMounted: true,
|
||||
restorePreviousTerminalFocus: true,
|
||||
}),
|
||||
).toBe(true);
|
||||
});
|
||||
});
|
||||
@@ -1,7 +0,0 @@
|
||||
export function shouldFocusTerminalAfterSetup(input: {
|
||||
readonly autoFocus: boolean;
|
||||
readonly hasMounted: boolean;
|
||||
readonly restorePreviousTerminalFocus: boolean;
|
||||
}): boolean {
|
||||
return input.restorePreviousTerminalFocus || (!input.hasMounted && input.autoFocus);
|
||||
}
|
||||
@@ -37,24 +37,6 @@ describe("extractTerminalLinks", () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it("finds non-http scheme urls", () => {
|
||||
const line = "email mailto:[email protected] or clone ssh://[email protected]/t3/t3code.git now";
|
||||
expect(extractTerminalLinks(line)).toEqual([
|
||||
{
|
||||
kind: "url",
|
||||
text: "mailto:[email protected]",
|
||||
start: 6,
|
||||
end: 28,
|
||||
},
|
||||
{
|
||||
kind: "url",
|
||||
text: "ssh://[email protected]/t3/t3code.git",
|
||||
start: 38,
|
||||
end: 72,
|
||||
},
|
||||
]);
|
||||
});
|
||||
|
||||
it("trims trailing punctuation from links", () => {
|
||||
const line = "(https://example.com/docs), ./src/main.ts:12.";
|
||||
expect(extractTerminalLinks(line)).toEqual([
|
||||
|
||||
@@ -36,10 +36,7 @@ export interface WrappedTerminalLinkLine {
|
||||
segments: ReadonlyArray<WrappedTerminalLinkLineSegment>;
|
||||
}
|
||||
|
||||
// Also matches the non-http schemes ghostty and other terminals linkify;
|
||||
// authority-style schemes require // while opaque ones take a bare payload.
|
||||
const URL_PATTERN =
|
||||
/(?:https?|ftp|ssh|git|gemini|gopher):\/\/[^\s"'`<>]+|(?:mailto|tel|news|magnet):[^\s"'`<>:][^\s"'`<>]*/g;
|
||||
const URL_PATTERN = /https?:\/\/[^\s"'`<>]+/g;
|
||||
const FILE_PATH_PATTERN =
|
||||
/(?:~\/|\.{1,2}\/|\/|[A-Za-z]:[\\/]|\\\\)[^\s"'`<>]+|[A-Za-z0-9._-]+(?:\/[A-Za-z0-9._-]+)+(?::\d+){0,2}/g;
|
||||
const TRAILING_PUNCTUATION_PATTERN = /[.,;!?]+$/;
|
||||
|
||||
@@ -406,28 +406,6 @@ export const ServerSignalProcessResult = Schema.Struct({
|
||||
});
|
||||
export type ServerSignalProcessResult = typeof ServerSignalProcessResult.Type;
|
||||
|
||||
/** Terminal colors parsed from the user's Ghostty theme (hex strings like "#1e1e2e"). */
|
||||
export const ServerTerminalThemeColors = Schema.Struct({
|
||||
background: Schema.optional(TrimmedNonEmptyString),
|
||||
foreground: Schema.optional(TrimmedNonEmptyString),
|
||||
cursor: Schema.optional(TrimmedNonEmptyString),
|
||||
selectionBackground: Schema.optional(TrimmedNonEmptyString),
|
||||
selectionForeground: Schema.optional(TrimmedNonEmptyString),
|
||||
/** ANSI palette slots 0-15; empty string for slots the theme does not define. */
|
||||
palette: Schema.optional(Schema.Array(Schema.String)),
|
||||
});
|
||||
export type ServerTerminalThemeColors = typeof ServerTerminalThemeColors.Type;
|
||||
|
||||
/** Terminal appearance derived from the user's local Ghostty config, when present. */
|
||||
export const ServerTerminalStyle = Schema.Struct({
|
||||
/** font-family fallback chain in config order. */
|
||||
fontFamily: Schema.optional(Schema.Array(TrimmedNonEmptyString)),
|
||||
fontSize: Schema.optional(Schema.Number),
|
||||
light: Schema.optional(ServerTerminalThemeColors),
|
||||
dark: Schema.optional(ServerTerminalThemeColors),
|
||||
});
|
||||
export type ServerTerminalStyle = typeof ServerTerminalStyle.Type;
|
||||
|
||||
export const ServerConfig = Schema.Struct({
|
||||
environment: ExecutionEnvironmentDescriptor,
|
||||
auth: ServerAuthDescriptor,
|
||||
@@ -443,8 +421,6 @@ export const ServerConfig = Schema.Struct({
|
||||
shellResumeCompletionMarker: Schema.optionalKey(Schema.Boolean),
|
||||
/** Whether thread subscriptions can emit an opt-in catch-up completion marker. */
|
||||
threadResumeCompletionMarker: Schema.optionalKey(Schema.Boolean),
|
||||
/** Absent when no Ghostty config exists or it cannot be read. */
|
||||
terminalStyle: Schema.optional(ServerTerminalStyle),
|
||||
});
|
||||
export type ServerConfig = typeof ServerConfig.Type;
|
||||
|
||||
|
||||
Generated
+74
-8
@@ -6,12 +6,30 @@ settings:
|
||||
|
||||
catalogs:
|
||||
default:
|
||||
'@effect/openapi-generator':
|
||||
specifier: 4.0.0-beta.78
|
||||
version: 4.0.0-beta.78
|
||||
'@effect/tsgo':
|
||||
specifier: 0.13.2
|
||||
version: 0.13.2
|
||||
'@noble/curves':
|
||||
specifier: 1.9.1
|
||||
version: 1.9.1
|
||||
'@noble/hashes':
|
||||
specifier: 1.8.0
|
||||
version: 1.8.0
|
||||
'@pierre/diffs':
|
||||
specifier: 1.3.0-beta.5
|
||||
version: 1.3.0-beta.5
|
||||
'@typescript/native-preview':
|
||||
specifier: 7.0.0-dev.20260604.1
|
||||
version: 7.0.0-dev.20260604.1
|
||||
jose:
|
||||
specifier: 6.2.2
|
||||
version: 6.2.2
|
||||
typescript:
|
||||
specifier: ~6.0.3
|
||||
version: 6.0.3
|
||||
vite-plus:
|
||||
specifier: 0.2.2
|
||||
version: 0.2.2
|
||||
@@ -544,15 +562,18 @@ importers:
|
||||
'@tanstack/react-router':
|
||||
specifier: ^1.160.2
|
||||
version: 1.170.10([email protected]([email protected]))([email protected])
|
||||
'@xterm/addon-fit':
|
||||
specifier: ^0.11.0
|
||||
version: 0.11.0
|
||||
'@xterm/xterm':
|
||||
specifier: ^6.0.0
|
||||
version: 6.0.0
|
||||
class-variance-authority:
|
||||
specifier: ^0.7.1
|
||||
version: 0.7.1
|
||||
effect:
|
||||
specifier: 4.0.0-beta.78
|
||||
version: 4.0.0-beta.78(patch_hash=c502bc684210b707dfceb87d8fe6ad6843395af6e19cfc02cd65854898bde2c5)
|
||||
ghostty-web:
|
||||
specifier: 0.4.0
|
||||
version: 0.4.0
|
||||
jose:
|
||||
specifier: 'catalog:'
|
||||
version: 6.2.2
|
||||
@@ -3279,48 +3300,56 @@ packages:
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@oxfmt/[email protected]':
|
||||
resolution: {integrity: sha512-p4Y/+RYk9Bk5WO+zHSUXAClRmZ2fbJCejMuCAsU2HhyME4jqf6Ftt/mJYEwIah1wGCBDYOB7wEGV1x5bCEZ6hA==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@oxfmt/[email protected]':
|
||||
resolution: {integrity: sha512-By6tRALAZsno0F4zedmtG+wdMvJiJmJoXM4d3+A9zHE4HRXLqXITwRH8mgrlcXc5yJM2g2W3riRPwTYdgemZLQ==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [ppc64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@oxfmt/[email protected]':
|
||||
resolution: {integrity: sha512-skYeG+RgvyzspqVEBsEprL90OYYZfoVNqB3HcCNR6QDJyXKOzfDRT3zncnHmUaFluIlBHuY23mU1b5WGgR98hA==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [riscv64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@oxfmt/[email protected]':
|
||||
resolution: {integrity: sha512-FFgACrZOXAXUh5KQh2mt1CDOVOZmn+QzHP71wM9QobNwyQvoFfyAeefVUltW83g3sm7LTiH3yfFqLLVUpA5ZFQ==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [riscv64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@oxfmt/[email protected]':
|
||||
resolution: {integrity: sha512-Nm/BAOfQeFiiKd502mZn/GAVKJwtd0RdCg17G3Wz/WSOIQmDi3+7/SZH4BHn1Ye5KvTVH3ua8WvfwLLycNIuvA==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [s390x]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@oxfmt/[email protected]':
|
||||
resolution: {integrity: sha512-BiSy5Ku3mQqyxS6YIqAJgd403wEUWvI7kerfzPxc2l/txZVmZM0pSj7oDM+4bGBExowxOi7o73jEam1W0EDTZg==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@oxfmt/[email protected]':
|
||||
resolution: {integrity: sha512-BCRkJiotz5s9afLYD2LuMvzAoDYx9H17E/YbDyu4xK7l4zHDPeny9ErSXL//i/nJyaOwRk08x4b8cgJC00+JDg==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@oxfmt/[email protected]':
|
||||
resolution: {integrity: sha512-4Oaxe1qrGgXfpCJ1C/ERJ2iCtV2rN1R79ga9fsfyVHfSQRu/hVW780u2KDqZWFZ/iGTHODJji0JemxqFZ63eIQ==}
|
||||
@@ -3423,48 +3452,56 @@ packages:
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@oxlint/[email protected]':
|
||||
resolution: {integrity: sha512-JGHS9Mnr7iWyyLDxgCv1MhzVpAckgptg00F2gnxt/GD7lQ2SW1BRcxHqhSTaSdDpjWRrBkBxMMh4+Hn3aVtExg==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@oxlint/[email protected]':
|
||||
resolution: {integrity: sha512-AOYgBZqxNshrg83P9v0RYv+m8s10Cqkj4/PxXFDhcS3k7FqsIG5+CxErshZCIN7G8iy4Y+VGfAsuEdar8AcbBg==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [ppc64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@oxlint/[email protected]':
|
||||
resolution: {integrity: sha512-QMybPS5ij3/vrKG67mqzHwW++91sYxK/PPUVi6SBtNCEzW4niS52fVBdXbQ6nou0wWbUPEpx8Sl/ZjtgE3clXA==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [riscv64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@oxlint/[email protected]':
|
||||
resolution: {integrity: sha512-gOc3W7JV0PXRpIL7stUlLe3Wa9Gp0Kdlup87IT3gHDvPKck2xNgMIl/Gs2lldYY2lyXZDC4rWi3hmoLUobkgbQ==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [riscv64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@oxlint/[email protected]':
|
||||
resolution: {integrity: sha512-rpGxph+FjjHcYI5q6uxB3Az+tnfmEnDbSA8+PK9ZE/VzyUAkvBOMeuY7ZQMhu5mpZH7YQDsTdW6Cx4kV/msc6w==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [s390x]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@oxlint/[email protected]':
|
||||
resolution: {integrity: sha512-WND+uhf/Ko13SLqQMWQUgsZuLvYYEvL0ZKgg0tgGYfLqxG7l8Ju123fHDMJyYSDl5E3bUbpFUuii/OvMreFQzw==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@oxlint/[email protected]':
|
||||
resolution: {integrity: sha512-SrpbrUL70nG9vh6zP4/oKHWgLuHquwsr7MW9XOn0olBVgh10Uqr8qscKhQoBGEn6olK/IUpn5GSKcdQ5AjUhGA==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@oxlint/[email protected]':
|
||||
resolution: {integrity: sha512-qkrsEn6NmgFKr7U/QnezQMb+q/vzAy0Dd9Y95gQGQTyjzDLN+HRZMuM5u70iyH4nBLCfKBzhjMsYCehKay2jyg==}
|
||||
@@ -4000,6 +4037,7 @@ packages:
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@rolldown/[email protected]':
|
||||
resolution: {integrity: sha512-QoSx2EkyrrdZ6kcyE8stqZ62t0Yra8Fs5ia9lOxJrh6TMQJK7gQKmscdTHf7pOXKREKrVwOtJcQG3qVSfc866A==}
|
||||
@@ -4013,12 +4051,14 @@ packages:
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@rolldown/[email protected]':
|
||||
resolution: {integrity: sha512-b/CgbwAJpmrRLp02RPfhbudf5tZnN9nsPWK82znefso832etkem8H7FSZwxrOI9djcdTP7U6YfNhbRnh7djErg==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@rolldown/[email protected]':
|
||||
resolution: {integrity: sha512-uwNwFpwKeNiZawfAWBgg0VIztPTV3ihhh1vV334h9ivnNLorxnQMU6Fz8wG1Zb4Qh9LC1/MkcyT3YlDXG3Rsgg==}
|
||||
@@ -4032,12 +4072,14 @@ packages:
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@rolldown/[email protected]':
|
||||
resolution: {integrity: sha512-4EII1iNGRUN5WwGbF/kOh/EIkoDN9HsupgLQoXfY+D1oyJm7/F4t5PYU5n8SWZgG0FEwakyM8pGgwcBYruGTlA==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [ppc64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@rolldown/[email protected]':
|
||||
resolution: {integrity: sha512-zY1bul7OWr7DFBiJ++wofXvnr8B45ce3QsQUhKrIhXsygAh7bTkwyeM1bi1a2g5C/yC/N8TZyGDEoMfm/l9mpg==}
|
||||
@@ -4051,12 +4093,14 @@ packages:
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [ppc64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@rolldown/[email protected]':
|
||||
resolution: {integrity: sha512-AH8oq3XqQo4IibpVXvPeLDI5pzkpYn0WiZAfT05kFzoJ6tQNzwRdDYQ45M8I/gslbodRZwW8uxLhbSBbkv96rA==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [s390x]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@rolldown/[email protected]':
|
||||
resolution: {integrity: sha512-0frlsT/f4Ft6I7SMESTKnF3cZsdicQn1dCMkF/jT9wDLE+gGoiQfv1nmT9e+s7s/fekvvy6tZM2jHvI2tkbJDQ==}
|
||||
@@ -4070,12 +4114,14 @@ packages:
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [s390x]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@rolldown/[email protected]':
|
||||
resolution: {integrity: sha512-cLnjV3xfo7KslbU41Z7z8BH/E1y5mzUYzAqih1d1MDaIGZRCMqTijqLv76/P7fyHuvUcfGsIpqCdddbxLLK9rA==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@rolldown/[email protected]':
|
||||
resolution: {integrity: sha512-XABVmGp9Tg0WspTVvwduTc4fpqy6JnAUrSQe6OuyqD/03nI7r0O9OWUkMIwFrjKAIqolvqoA4ZrJppgwE0Gxmw==}
|
||||
@@ -4089,12 +4135,14 @@ packages:
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@rolldown/[email protected]':
|
||||
resolution: {integrity: sha512-0phclDw1spsL7dUB37sIARuis2tAgomCJXAHZlpt8PXZ4Ba0dRP1e+66lsRqrfhISeN9bEGNjQs+T/Fbd7oYGw==}
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@rolldown/[email protected]':
|
||||
resolution: {integrity: sha512-bV4fzswuzVcKD90o/VM6QqKxnxlDq0g2BISDLNVmxrnhpv1DDbyPhCIjYfvzYLV+MvkKKnQt2Q6AO86SEBULUQ==}
|
||||
@@ -4108,6 +4156,7 @@ packages:
|
||||
engines: {node: ^20.19.0 || >=22.12.0}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@rolldown/[email protected]':
|
||||
resolution: {integrity: sha512-0ag/hEgXOwgw4t8QyQvUCxvEg+V0KBcA6YuOx9g0r02MprutRF5dyljgm3EmR02O292UX7UeS6HzWHAl6KgyhA==}
|
||||
@@ -4567,6 +4616,7 @@ packages:
|
||||
engines: {node: '>= 20'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@tailwindcss/[email protected]':
|
||||
resolution: {integrity: sha512-WZA0CHRL/SP1TRbA5mp9htsppSEkWuQ4KsSUumYQnyl8ZdT39ntwqmz4IUHGN6p4XdSlYfJwM4rRzZLShHsGAQ==}
|
||||
@@ -4580,6 +4630,7 @@ packages:
|
||||
engines: {node: '>= 20'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@tailwindcss/[email protected]':
|
||||
resolution: {integrity: sha512-qMFzxI2YlBOLW5PhblzuSWlWfwLHaneBE0xHzLrBgNtqN6mWfs+qYbhryGSXQjFYB1Dzf5w+LN5qbUTPhW7Y5g==}
|
||||
@@ -4593,6 +4644,7 @@ packages:
|
||||
engines: {node: '>= 20'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@tailwindcss/[email protected]':
|
||||
resolution: {integrity: sha512-5r1X2FKnCMUPlXTWRYpHdPYUY6a1Ar/t7P24OuiEdEOmms5lyqjDRvVY1yy9Rmioh+AunQ0rWiOTPE8F9A3v5g==}
|
||||
@@ -4606,6 +4658,7 @@ packages:
|
||||
engines: {node: '>= 20'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@tailwindcss/[email protected]':
|
||||
resolution: {integrity: sha512-MGFB5cVPvshR85MTJkEvqDUnuNoysrsRxd6vnk1Lf2tbiqNlXpHYZqkqOQalydienEWOHHFyyuTSYRsLfxFJ2Q==}
|
||||
@@ -5072,24 +5125,28 @@ packages:
|
||||
engines: {node: '>=20.0.0'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@voidzero-dev/[email protected]':
|
||||
resolution: {integrity: sha512-YGtvTHT7qP4c5pZmM4kLL78/d8hj2NS150R92cR2SVOW/l9Ilq5R5WrEiMA4k5Ea3B++IJWZT5MRFI0tW9qlcg==}
|
||||
engines: {node: '>=20.0.0'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@voidzero-dev/[email protected]':
|
||||
resolution: {integrity: sha512-FvaMI/vsy4PVM+Qd73K+KM8blfCAfaoZaGaGWNrrlMryhyPThXPnHoB1AQcrKbEAWb+z2fc4zLS4sH+8uI65fw==}
|
||||
engines: {node: '>=20.0.0'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
'@voidzero-dev/[email protected]':
|
||||
resolution: {integrity: sha512-ZsMochHqXqxj2sGTJNJzz3vabppbe4BFgZAjJfsnVzkwR7jv6c5p1BM71LFWxP4qd5LL0TJT7lbeRhALlI44RQ==}
|
||||
engines: {node: '>=20.0.0'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
'@voidzero-dev/[email protected]':
|
||||
resolution: {integrity: sha512-noBNyJufux0cf18eDpQLOQUZ1Kybfx9zlr+yQ6gAnxMEsQXSvYqZgWymfRDesBE3G/0XB5bg+AUtWijp3TwVcw==}
|
||||
@@ -5137,6 +5194,12 @@ packages:
|
||||
resolution: {integrity: sha512-A9gOqLdi6cV4ibazAjcQufGj0B1y/vDqYrcuP6d/6x8P27gRS8643Dj9o1dEKtB6O7fwxb2FgBmJS2mX7gpvdw==}
|
||||
engines: {node: '>=14.6'}
|
||||
|
||||
'@xterm/[email protected]':
|
||||
resolution: {integrity: sha512-jYcgT6xtVYhnhgxh3QgYDnnNMYTcf8ElbxxFzX0IZo+vabQqSPAjC3c1wJrKB5E19VwQei89QCiZZP86DCPF7g==}
|
||||
|
||||
'@xterm/[email protected]':
|
||||
resolution: {integrity: sha512-TQwDdQGtwwDt+2cgKDLn0IRaSxYu1tSUjgKarSDkUM0ZNiSRXFpjxEsvc/Zgc5kq5omJ+V0a8/kIM2WD3sMOYg==}
|
||||
|
||||
'@yuuang/[email protected]':
|
||||
resolution: {integrity: sha512-eDYLT0kVBkp7e2BwdRDmt6N1rkeDPUHDefk3ZX0/nok+GLsqfy1WBoSL3Yg7HVXN1EyW8OBVc2uK8Zq8HbmaSA==}
|
||||
engines: {node: '>= 12'}
|
||||
@@ -6983,9 +7046,6 @@ packages:
|
||||
resolution: {integrity: sha512-VilgtJj/ALgGY77fiLam5iD336eSWi96Q15JSAG1zi8NRBysm3LXKdGnHb4m5cuyxvOLQQKWpBZAT6ni4FI2iQ==}
|
||||
engines: {node: '>=6'}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-0puDBik2qapbD/QQBW9o5ZHfXnZBqZWx/ctBiVtKZ6ZLds4NYb+wZuw1cRLXZk9zYovIQ908z3rvFhexAvc5Hg==}
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-IaOQ9puYtjrkq7Y0Ygl9KDZnrf/aiUJYUpVf89y8kyaxbRG7Y1SrX/jaumrv81vc61+kiMempujsM3Yw7w5qcw==}
|
||||
|
||||
@@ -7612,6 +7672,7 @@ packages:
|
||||
engines: {node: '>= 12.0.0'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-jmUQVx4331m6LIX+0wUhBbmMX7TCfjF5FoOH6SD1CttzuYlGNVpA7QnrmLxrsub43ClTINfGSYyHe2HWeLl5CQ==}
|
||||
@@ -7632,6 +7693,7 @@ packages:
|
||||
engines: {node: '>= 12.0.0'}
|
||||
cpu: [arm64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-piWx3z4wN8J8z3+O5kO74+yr6ze/dKmPnI7vLqfSqI8bccaTGY5xiSGVIJBDd5K5BHlvVLpUB3S2YCfelyJ1bw==}
|
||||
@@ -7652,6 +7714,7 @@ packages:
|
||||
engines: {node: '>= 12.0.0'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [glibc]
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-rRomAK7eIkL+tHY0YPxbc5Dra2gXlI63HL+v1Pdi1a3sC+tJTcFrHX+E86sulgAXeI7rSzDYhPSeHHjqFhqfeQ==}
|
||||
@@ -7672,6 +7735,7 @@ packages:
|
||||
engines: {node: '>= 12.0.0'}
|
||||
cpu: [x64]
|
||||
os: [linux]
|
||||
libc: [musl]
|
||||
|
||||
[email protected]:
|
||||
resolution: {integrity: sha512-mSL4rqPi4iXq5YVqzSsJgMVFENoa4nGTT/GjO2c0Yl9OuQfPsIfncvLrEW6RbbB24WtZ3xP/2CCmI3tNkNV4oA==}
|
||||
@@ -15134,6 +15198,10 @@ snapshots:
|
||||
|
||||
'@xmldom/[email protected]': {}
|
||||
|
||||
'@xterm/[email protected]': {}
|
||||
|
||||
'@xterm/[email protected]': {}
|
||||
|
||||
'@yuuang/[email protected]':
|
||||
optional: true
|
||||
|
||||
@@ -17455,8 +17523,6 @@ snapshots:
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]: {}
|
||||
|
||||
[email protected]:
|
||||
|
||||
Reference in new issue
Block a user