Initial import: open-design source for helix-mind.ai distribution
ci / Validate workspace (push) Successful in 12m32s
landing-page-deploy / Deploy landing page (push) Failing after 5m23s
github-metrics / Generate repository metrics SVG (push) Failing after 2m5s
refresh-contributors-wall / Refresh contributors wall cache bust (push) Failing after 10s
landing-page-ci / Validate landing page (push) Successful in 9m41s

This repository contains the open-design daemon CLI source code, built
and packaged at https://helix-mind.ai/cli/open-design/latest.tgz for use
by the HelixMind /design slash command.

Licenses: Apache-2.0 (root) + MIT (skills/*)
This commit is contained in:
marco
2026-05-06 20:50:24 +02:00
commit 5dd70b5016
1336 changed files with 287186 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
'use client';
import dynamic from 'next/dynamic';
// The product is a fully client-driven SPA — every component reads
// localStorage, window.location, etc. — so we opt out of static-time
// rendering for the entire tree. This keeps `next build --output export`
// from trying to evaluate browser-only code while still emitting a real
// shell HTML the daemon can serve as the SPA fallback.
const App = dynamic(() => import('../../src/App').then((m) => m.App), {
ssr: false,
loading: () => <div className="od-loading-shell">Loading Open Design…</div>,
});
export function ClientApp() {
return <App />;
}
+19
View File
@@ -0,0 +1,19 @@
import { ClientApp } from './client-app';
// The whole product is a client-driven SPA: project IDs and file paths are
// unbounded user input, so we route every URL through this single optional
// catch-all and let the existing client router (src/router.ts, which reads
// window.location at runtime) decide what to render.
//
// For `output: 'export'` we return a single empty `slug` so Next.js emits
// one shell HTML at out/index.html; the daemon's SPA fallback (see
// apps/daemon/src/server.ts) serves it for any unknown non-API path so deep links
// still hydrate to the right view. In dev we leave `dynamicParams` at its
// default (true) so `next dev` happily renders /projects/<id> directly.
export function generateStaticParams() {
return [{ slug: [] as string[] }];
}
export default function Page() {
return <ClientApp />;
}
+44
View File
@@ -0,0 +1,44 @@
import type { Metadata, Viewport } from 'next';
import type { ReactNode } from 'react';
import { I18nProvider } from '../src/i18n';
import '../src/index.css';
export const metadata: Metadata = {
title: 'Open Design',
icons: {
icon: '/app-icon.svg',
// Safari pinned-tab mask icon — Next.js's Metadata API doesn't have a
// dedicated `mask` field, so we surface it via the generic `other`
// bucket which renders as a raw <link rel="mask-icon" ...>.
other: [{ rel: 'mask-icon', url: '/app-icon.svg', color: '#363636' }],
},
};
export const viewport: Viewport = {
themeColor: '#F4EFE6',
};
/**
* Inline script that runs before React hydrates to apply the saved theme
* preference without a flash of unstyled content. It reads the same
* localStorage key used by `state/config.ts` and sets `data-theme` on
* `<html>` immediately — before any CSS or React paint.
* Keep the accent variable mix ratios in sync with `accentVars()` in
* `src/state/appearance.ts`; this script cannot import application modules.
*/
const themeInitScript = `(function(){try{var c=JSON.parse(localStorage.getItem('open-design:config')||'{}');var t=c.theme;if(t==='light'||t==='dark')document.documentElement.setAttribute('data-theme',t);var a=typeof c.accentColor==='string'&&/^#[0-9a-fA-F]{6}$/.test(c.accentColor.trim())?c.accentColor.trim().toLowerCase():'';if(a){var s=document.documentElement.style;s.setProperty('--accent',a);s.setProperty('--accent-strong','color-mix(in srgb, '+a+' 86%, var(--text-strong))');s.setProperty('--accent-soft','color-mix(in srgb, '+a+' 22%, var(--bg-panel))');s.setProperty('--accent-tint','color-mix(in srgb, '+a+' 12%, var(--bg-panel))');s.setProperty('--accent-hover','color-mix(in srgb, '+a+' 90%, var(--text-strong))');}}catch(e){}})();`;
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang='en' suppressHydrationWarning>
{/* eslint-disable-next-line @next/next/no-sync-scripts */}
<head>
{/* biome-ignore lint/security/noDangerouslySetInnerHtml: intentional theme-init inline script to prevent FOUC */}
<script dangerouslySetInnerHTML={{ __html: themeInitScript }} />
</head>
<body suppressHydrationWarning>
<I18nProvider>{children}</I18nProvider>
</body>
</html>
);
}
+6
View File
@@ -0,0 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/types/routes.d.ts";
// NOTE: This file should not be edited
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.
+84
View File
@@ -0,0 +1,84 @@
import type { NextConfig } from 'next';
import { dirname, isAbsolute, relative } from 'node:path';
import { fileURLToPath } from 'node:url';
// Daemon port the local Express server binds to (see apps/daemon/src/cli.ts). The
// dev-all launcher overrides OD_PORT after probing for a free port; we read
// the same env so /api, /artifacts, and /frames always reach the right
// daemon instance during `next dev`.
const DAEMON_PORT = Number(process.env.OD_PORT) || 7456;
const DAEMON_ORIGIN = `http://127.0.0.1:${DAEMON_PORT}`;
// The regular CLI build still ships as a static export so the `od` daemon can
// serve a single-process production build. Packaged desktop builds opt into a
// server runtime with OD_WEB_OUTPUT_MODE=server; in that mode the web sidecar
// owns the Next.js SSR server and proxies daemon routes at runtime. The
// packaged-size standalone spike uses OD_WEB_OUTPUT_MODE=standalone to ask
// Next.js for a traced standalone server while keeping the sidecar-owned daemon
// proxy in front of it at runtime.
const isProd = process.env.NODE_ENV !== 'development';
const webOutputMode = process.env.OD_WEB_OUTPUT_MODE;
const isServerOutput = webOutputMode === 'server' || webOutputMode === 'standalone';
const shouldStaticExport = isProd && !isServerOutput;
const WEB_ROOT = dirname(fileURLToPath(import.meta.url));
const toPosixPath = (value: string) => value.replaceAll('\\', '/');
function resolveDistDir(defaultValue: string) {
if (process.env.OD_WEB_PROD === '1') return defaultValue;
const configured = process.env.OD_WEB_DIST_DIR;
if (!configured) return defaultValue;
return toPosixPath(isAbsolute(configured) ? relative(WEB_ROOT, configured) || '.' : configured);
}
const DIST_DIR = resolveDistDir(isProd ? (shouldStaticExport ? 'out' : '.next') : '.next');
function resolveDevTsconfigPath() {
const configured = process.env.OD_WEB_TSCONFIG_PATH;
if (!configured) return undefined;
return toPosixPath(isAbsolute(configured) ? relative(WEB_ROOT, configured) || 'tsconfig.json' : configured);
}
const DEV_TSCONFIG_PATH = resolveDevTsconfigPath();
const nextConfig: NextConfig = {
allowedDevOrigins: ['127.0.0.1'],
reactStrictMode: true,
...(DEV_TSCONFIG_PATH ? { typescript: { tsconfigPath: DEV_TSCONFIG_PATH } } : {}),
// Keep the bundle output predictable so the daemon's STATIC_DIR can point
// at it without any glob trickery.
distDir: DIST_DIR,
...(shouldStaticExport
? {
output: 'export' as const,
// `next export` skips trailing slashes by default; opting in keeps
// the daemon's static fallback simple (every directory has its own
// index.html on disk).
trailingSlash: true,
images: { unoptimized: true },
}
: webOutputMode === 'standalone'
? {
output: 'standalone' as const,
}
: !isProd
? {
async rewrites() {
// In dev we run the daemon on a sibling port; proxy the app API
// proxy so the SPA can hit /api, /artifacts, and /frames without
// CORS gymnastics. SSE on /api/chat works through this rewrite
// because Next.js's dev server streams responses unbuffered.
return [
{ source: '/api/:path*', destination: `${DAEMON_ORIGIN}/api/:path*` },
{ source: '/artifacts/:path*', destination: `${DAEMON_ORIGIN}/artifacts/:path*` },
{ source: '/frames/:path*', destination: `${DAEMON_ORIGIN}/frames/:path*` },
];
},
devIndicators: {
position: 'bottom-right',
},
}
: {}),
};
export default nextConfig;
+54
View File
@@ -0,0 +1,54 @@
{
"name": "@open-design/web",
"version": "0.4.1",
"private": true,
"type": "module",
"exports": {
"./package.json": "./package.json",
"./sidecar": {
"types": "./dist/sidecar/index.d.ts",
"default": "./dist/sidecar/index.js"
}
},
"files": [
".next",
"!.next/cache",
"app",
"dist",
"next.config.ts",
"package.json",
"public",
"src"
],
"scripts": {
"dev": "next dev",
"build": "next build",
"build:sidecar": "tsc -p tsconfig.sidecar.json",
"typecheck": "tsc -b --noEmit",
"test": "vitest run -c vitest.config.ts"
},
"dependencies": {
"@anthropic-ai/sdk": "^0.32.1",
"@open-design/contracts": "workspace:*",
"@open-design/platform": "workspace:*",
"@open-design/sidecar": "workspace:*",
"@open-design/sidecar-proto": "workspace:*",
"next": "^16.2.4",
"openai": "^6.35.0",
"react": "^18.3.1",
"react-dom": "^18.3.1"
},
"devDependencies": {
"@testing-library/react": "^16.3.2",
"@types/jsdom": "^28.0.1",
"@types/node": "^20.17.10",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"jsdom": "^29.1.0",
"typescript": "^5.6.3",
"vitest": "^2.1.8"
},
"engines": {
"node": "~24"
}
}
+51
View File
@@ -0,0 +1,51 @@
<svg width="533" height="533" viewBox="0 0 533 533" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_107_105)">
<mask id="mask0_107_105" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="534" height="534">
<path d="M533.006 266.503C533.006 119.317 413.688 0 266.503 0C119.318 0 0.00012207 119.317 0.00012207 266.503V494.417C0.00012207 515.729 17.2769 533.006 38.5888 533.006H266.503C413.688 533.006 533.006 413.688 533.006 266.503Z" fill="url(#paint0_linear_107_105)"/>
</mask>
<g mask="url(#mask0_107_105)">
<g filter="url(#filter0_f_107_105)">
<path d="M559.006 0H-32.4998V541.379C-32.4998 565.474 -12.9674 585.006 11.127 585.006H559.006V0Z" fill="url(#paint1_linear_107_105)"/>
</g>
<g filter="url(#filter1_f_107_105)">
<path d="M241.706 161C241.706 122.422 210.431 91.1475 171.853 91.1475V91.1475C133.274 91.1475 102 122.422 102 161V161C102 199.579 133.274 230.853 171.853 230.853V230.853C210.431 230.853 241.706 199.579 241.706 161V161Z" fill="white" style="fill:white;fill-opacity:1;"/>
</g>
<g opacity="0.7" filter="url(#filter2_f_107_105)">
<path d="M422.555 282.955C436.091 264.202 429.408 237.772 408.585 227.707C403.597 225.296 398.134 224.03 392.595 224.001L368.715 223.877C293.049 223.481 230.694 283.146 227.754 358.755L227.439 366.845C226.585 388.814 237.909 409.466 256.893 420.556C283.361 436.02 317.245 428.853 335.186 403.997L422.555 282.955Z" fill="white" style="fill:white;fill-opacity:1;"/>
</g>
</g>
<path d="M266.503 13C406.509 13.0001 520.005 126.497 520.005 266.503C520.005 406.508 406.509 520.006 266.503 520.006C126.498 520.006 13.0005 406.508 13.0005 266.503C13.0005 126.497 126.498 13 266.503 13ZM200.144 144.795C169.919 135.316 141.442 164.107 151.526 194.357L213.957 381.65C226.127 418.163 278.22 416.846 288.531 379.766L309.793 303.293L386.266 282.03C423.346 271.72 424.663 219.628 388.151 207.457L200.858 145.025L200.144 144.795ZM176.192 186.136C172.804 175.973 182.473 166.304 192.636 169.691L379.929 232.123L380.491 232.322C392.083 236.719 391.467 253.597 379.3 256.98L298.397 279.477C292.366 281.153 287.654 285.866 285.977 291.896L263.481 372.8C260.044 385.16 242.68 385.599 238.623 373.429L176.192 186.136Z" fill="#363636" style="fill:#363636;fill:color(display-p3 0.2121 0.2121 0.2121);fill-opacity:1;"/>
</g>
<defs>
<filter id="filter0_f_107_105" x="-143.001" y="-110.501" width="812.509" height="806.008" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feGaussianBlur stdDeviation="55.2506" result="effect1_foregroundBlur_107_105"/>
</filter>
<filter id="filter1_f_107_105" x="34.3993" y="23.5468" width="274.907" height="274.907" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feGaussianBlur stdDeviation="33.8004" result="effect1_foregroundBlur_107_105"/>
</filter>
<filter id="filter2_f_107_105" x="159.793" y="156.274" width="337.406" height="340.017" filterUnits="userSpaceOnUse" color-interpolation-filters="sRGB">
<feFlood flood-opacity="0" result="BackgroundImageFix"/>
<feBlend mode="normal" in="SourceGraphic" in2="BackgroundImageFix" result="shape"/>
<feGaussianBlur stdDeviation="33.8004" result="effect1_foregroundBlur_107_105"/>
</filter>
<linearGradient id="paint0_linear_107_105" x1="13.0004" y1="260.003" x2="295.753" y2="533.006" gradientUnits="userSpaceOnUse">
<stop stop-color="#D999F7" style="stop-color:#D999F7;stop-color:color(display-p3 0.8510 0.6000 0.9686);stop-opacity:1;"/>
<stop offset="0.336538" stop-color="#00A365" style="stop-color:#00A365;stop-color:color(display-p3 0.0000 0.6399 0.3972);stop-opacity:1;"/>
<stop offset="0.673077" stop-color="#F8672F" style="stop-color:#F8672F;stop-color:color(display-p3 0.9725 0.4039 0.1843);stop-opacity:1;"/>
<stop offset="1" stop-color="#9C9C9C" style="stop-color:#9C9C9C;stop-color:color(display-p3 0.6121 0.6121 0.6121);stop-opacity:1;"/>
</linearGradient>
<linearGradient id="paint1_linear_107_105" x1="6.50056" y1="533.006" x2="428.077" y2="4.44429" gradientUnits="userSpaceOnUse">
<stop stop-color="#EEFF00" style="stop-color:#EEFF00;stop-color:color(display-p3 0.9333 1.0000 0.0000);stop-opacity:1;"/>
<stop offset="0.307692" stop-color="#00FFAE" style="stop-color:#00FFAE;stop-color:color(display-p3 0.0000 1.0000 0.6833);stop-opacity:1;"/>
<stop offset="0.668269" stop-color="#00EAFF" style="stop-color:#00EAFF;stop-color:color(display-p3 0.0000 0.9167 1.0000);stop-opacity:1;"/>
<stop offset="1" stop-color="#00FF6A" style="stop-color:#00FF6A;stop-color:color(display-p3 0.0000 1.0000 0.4167);stop-opacity:1;"/>
</linearGradient>
<clipPath id="clip0_107_105">
<rect width="533" height="533" fill="white" style="fill:white;fill-opacity:1;"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 4.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 183 KiB

+15
View File
@@ -0,0 +1,15 @@
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64' fill='none' role='img' aria-label='Open Design'>
<title>Open Design</title>
<g stroke='#1F1B16' stroke-width='3.4' stroke-linecap='square' fill='none'>
<path d='M10 24 L10 10 L24 10' />
<path d='M40 10 L54 10 L54 24' />
<path d='M54 40 L54 54 L40 54' />
<path d='M24 54 L10 54 L10 40' />
</g>
<g stroke='#C2532D' stroke-width='3' stroke-linecap='round'>
<line x1='32' y1='20' x2='32' y2='44' />
<line x1='20' y1='32' x2='44' y2='32' />
<line x1='23.51' y1='23.51' x2='40.49' y2='40.49' />
<line x1='40.49' y1='23.51' x2='23.51' y2='40.49' />
</g>
</svg>

After

Width:  |  Height:  |  Size: 671 B

+39
View File
@@ -0,0 +1,39 @@
// Browser service workers must be served as JavaScript files. This tiny
// runtime exists only to display task-completion notifications and focus
// the existing Open Design tab when the user clicks one.
self.addEventListener('notificationclick', (event) => {
event.notification.close();
const data = event.notification.data || {};
const targetUrl = typeof data.url === 'string' ? data.url : self.location.origin;
event.waitUntil((async () => {
const windows = await self.clients.matchAll({
type: 'window',
includeUncontrolled: true,
});
const sameOrigin = windows.find((client) => {
try {
return new URL(client.url).origin === self.location.origin;
} catch {
return false;
}
});
if (sameOrigin) {
if ('navigate' in sameOrigin) {
try {
await sameOrigin.navigate(targetUrl);
} catch {
/* focus the existing tab below */
}
}
return sameOrigin.focus();
}
if (self.clients.openWindow) {
return self.clients.openWindow(targetUrl);
}
return undefined;
})());
});
+24
View File
@@ -0,0 +1,24 @@
import { APP_KEYS, OPEN_DESIGN_SIDECAR_CONTRACT } from "@open-design/sidecar-proto";
import { bootstrapSidecarRuntime } from "@open-design/sidecar";
import { readProcessStamp } from "@open-design/platform";
import { startWebSidecar } from "./server.js";
async function main(): Promise<void> {
const stamp = readProcessStamp(process.argv.slice(2), OPEN_DESIGN_SIDECAR_CONTRACT);
if (stamp == null) throw new Error("sidecar stamp is required");
const runtime = bootstrapSidecarRuntime(stamp, process.env, {
app: APP_KEYS.WEB,
contract: OPEN_DESIGN_SIDECAR_CONTRACT,
});
const server = await startWebSidecar(runtime);
process.stdout.write(`${JSON.stringify(await server.status(), null, 2)}\n`);
await server.waitUntilStopped();
}
void main().catch((error: unknown) => {
console.error(error instanceof Error ? error.stack || error.message : String(error));
process.exit(1);
});
+662
View File
@@ -0,0 +1,662 @@
import { spawn, type ChildProcess } from "node:child_process";
import {
createServer as createHttpServer,
request as createHttpRequest,
type IncomingMessage,
type Server as HttpServer,
type ServerResponse,
} from "node:http";
import { request as createHttpsRequest } from "node:https";
import { existsSync, readFileSync } from "node:fs";
import { readFile, rm, writeFile } from "node:fs/promises";
import { createRequire } from "node:module";
import { createServer as createTcpServer, type AddressInfo, type Server as TcpServer } from "node:net";
import { dirname, isAbsolute, join } from "node:path";
import { fileURLToPath } from "node:url";
import {
SIDECAR_ENV,
SIDECAR_MESSAGES,
normalizeWebSidecarMessage,
type SidecarStamp,
type WebStatusSnapshot,
} from "@open-design/sidecar-proto";
import {
createJsonIpcServer,
type JsonIpcServerHandle,
type SidecarRuntimeContext,
} from "@open-design/sidecar";
const HOST = process.env.OD_HOST || "127.0.0.1";
if (process.env.OD_HOST != null && !/^[a-zA-Z0-9._\-:[\]@]+$/.test(process.env.OD_HOST)) {
throw new Error(`OD_HOST contains invalid characters: ${process.env.OD_HOST}`);
}
const DAEMON_HOST = "127.0.0.1";
const STANDALONE_BACKEND_HOST = "127.0.0.1";
const DAEMON_PORT_ENV = SIDECAR_ENV.DAEMON_PORT;
const WEB_DIST_DIR_ENV = SIDECAR_ENV.WEB_DIST_DIR;
const WEB_PORT_ENV = SIDECAR_ENV.WEB_PORT;
const TOOLS_DEV_PARENT_PID_ENV = SIDECAR_ENV.TOOLS_DEV_PARENT_PID;
const WEB_OUTPUT_MODE_ENV = "OD_WEB_OUTPUT_MODE";
const WEB_STANDALONE_ROOT_ENV = "OD_WEB_STANDALONE_ROOT";
const STANDALONE_PARENT_PID_ENV = "OD_STANDALONE_PARENT_PID";
const STANDALONE_STARTUP_TIMEOUT_ENV = "OD_STANDALONE_STARTUP_TIMEOUT_MS";
const SHUTDOWN_TIMEOUT_MS = 3000;
const require = createRequire(import.meta.url);
type NextApp = {
close?: () => Promise<void>;
getRequestHandler(): (request: IncomingMessage, response: ServerResponse) => Promise<void>;
prepare(): Promise<void>;
};
type StandaloneBackend = {
exitReason(): string | null;
isRunning(): boolean;
origin: string;
stop(): Promise<void>;
};
function createNextApp(options: { dev: boolean; dir: string }): NextApp {
const createNextServer = require("next") as (nextOptions: { dev: boolean; dir: string }) => NextApp;
return createNextServer(options);
}
export type WebSidecarHandle = {
status(): Promise<WebStatusSnapshot>;
stop(): Promise<void>;
waitUntilStopped(): Promise<void>;
};
function resolveWebRoot(): string {
let current = dirname(fileURLToPath(import.meta.url));
for (let depth = 0; depth < 8; depth += 1) {
try {
const packageJson = JSON.parse(readFileSync(join(current, "package.json"), "utf8")) as { name?: unknown };
if (packageJson.name === "@open-design/web") return current;
} catch {
// Keep walking until the package root is found. This must work from both
// sidecar/*.ts under tsx and dist/sidecar/*.js in packaged installs.
}
const parent = dirname(current);
if (parent === current) break;
current = parent;
}
throw new Error("failed to resolve @open-design/web package root");
}
function parsePort(value: string | undefined): number {
if (value == null || value.trim().length === 0) return 0;
const port = Number(value);
if (!Number.isInteger(port) || port < 0 || port > 65535) {
throw new Error(`${WEB_PORT_ENV} must be an integer between 0 and 65535`);
}
return port;
}
function parsePositiveIntegerEnv(envName: string, defaultValue: number): number {
const value = process.env[envName];
if (value == null || value.trim().length === 0) return defaultValue;
const parsed = Number(value);
if (!Number.isInteger(parsed) || parsed <= 0) {
throw new Error(`${envName} must be a positive integer`);
}
return parsed;
}
function resolveStandaloneStartupTimeoutMs(): number {
return parsePositiveIntegerEnv(STANDALONE_STARTUP_TIMEOUT_ENV, 35_000);
}
export function createStandaloneParentMonitorImport(parentPidEnv = STANDALONE_PARENT_PID_ENV): string {
const source = `
const parentPid = Number(process.env[${JSON.stringify(parentPidEnv)}]);
if (Number.isInteger(parentPid) && parentPid > 0) {
const isParentAlive = () => {
try {
process.kill(parentPid, 0);
return true;
} catch {
return false;
}
};
const timer = setInterval(() => {
if (process.ppid === parentPid && isParentAlive()) return;
process.exit(0);
}, 1000);
timer.unref?.();
}
`;
return `data:text/javascript,${encodeURIComponent(source)}`;
}
export function createStandaloneServerArgs(entryPath: string): string[] {
return ["--import", createStandaloneParentMonitorImport(), entryPath];
}
export function resolveStandaloneBackendOrigin(port: number): string {
return `http://${STANDALONE_BACKEND_HOST}:${port}`;
}
export function createStandaloneBackendEnv(options: {
baseEnv?: NodeJS.ProcessEnv;
parentPid?: number;
port: number;
}): NodeJS.ProcessEnv {
return {
...(options.baseEnv ?? process.env),
HOSTNAME: STANDALONE_BACKEND_HOST,
NODE_ENV: "production",
PORT: String(options.port),
[STANDALONE_PARENT_PID_ENV]: String(options.parentPid ?? process.pid),
};
}
function resolveWebDistDir(webRoot: string): string {
const configured = process.env[WEB_DIST_DIR_ENV];
if (configured == null || configured.length === 0) return join(webRoot, ".next");
return isAbsolute(configured) ? configured : join(webRoot, configured);
}
function resolveConfiguredStandaloneRoot(): string | null {
const configured = process.env[WEB_STANDALONE_ROOT_ENV];
if (configured == null || configured.length === 0) return null;
return isAbsolute(configured) ? configured : join(process.cwd(), configured);
}
export function resolveStandaloneServerEntry(
webRoot: string = resolveWebRoot(),
standaloneRoot: string | null = resolveConfiguredStandaloneRoot(),
): string | null {
const distDir = resolveWebDistDir(webRoot);
const configuredRoot = standaloneRoot == null || standaloneRoot.length === 0
? null
: isAbsolute(standaloneRoot)
? standaloneRoot
: join(process.cwd(), standaloneRoot);
const candidates = [
...(configuredRoot == null
? []
: [
join(configuredRoot, "apps", "web", "server.js"),
join(configuredRoot, "server.js"),
]),
join(distDir, "standalone", "apps", "web", "server.js"),
join(distDir, "standalone", "server.js"),
];
return candidates.find((candidate) => existsSync(candidate)) ?? null;
}
function shouldUseStandaloneOutput(runtime: SidecarRuntimeContext<SidecarStamp>): boolean {
return runtime.mode !== "dev" && process.env[WEB_OUTPUT_MODE_ENV] === "standalone";
}
function resolveDaemonOrigin(): string | null {
const port = parsePort(process.env[DAEMON_PORT_ENV]);
return port === 0 ? null : `http://${DAEMON_HOST}:${port}`;
}
function isDaemonProxyPathname(pathname: string): boolean {
return (
pathname === "/api" ||
pathname.startsWith("/api/") ||
pathname === "/artifacts" ||
pathname.startsWith("/artifacts/") ||
pathname === "/frames" ||
pathname.startsWith("/frames/")
);
}
export function resolveDaemonProxyTarget(
daemonOrigin: string,
requestUrl: string | undefined,
): URL | null {
const target = resolveHttpProxyTarget(daemonOrigin, requestUrl);
if (target == null || !isDaemonProxyPathname(target.pathname)) return null;
return target;
}
function resolveHttpProxyTarget(
origin: string,
requestUrl: string | undefined,
): URL | null {
if (requestUrl == null) return null;
let parsedRequestUrl: URL;
try {
parsedRequestUrl = new URL(requestUrl, `http://${HOST}`);
} catch {
return null;
}
return new URL(`${parsedRequestUrl.pathname}${parsedRequestUrl.search}`, origin);
}
export function normalizeDaemonProxyOriginHeader(options: {
daemonOrigin: string;
origin: string | undefined;
webPort: number;
}): string | undefined {
if (options.origin == null || options.origin.length === 0) return options.origin;
const schemes = ["http", "https"];
const loopbackHosts = ["127.0.0.1", "localhost", "[::1]", HOST];
const allowedWebOrigins = new Set(
schemes.flatMap((scheme) => loopbackHosts.map((host) => `${scheme}://${host}:${options.webPort}`)),
);
return allowedWebOrigins.has(options.origin) ? options.daemonOrigin : options.origin;
}
async function proxyHttpRequest(
target: URL,
request: IncomingMessage,
response: ServerResponse,
options: { daemonWebPort?: number } = {},
): Promise<void> {
const proxyRequestFactory = target.protocol === "https:" ? createHttpsRequest : createHttpRequest;
const headers = { ...request.headers, host: target.host };
if (options.daemonWebPort != null) {
const origin = normalizeDaemonProxyOriginHeader({
daemonOrigin: target.origin,
origin: typeof request.headers.origin === "string" ? request.headers.origin : undefined,
webPort: options.daemonWebPort,
});
if (origin == null || origin.length === 0) {
delete headers.origin;
} else {
headers.origin = origin;
}
}
await new Promise<void>((resolveProxy) => {
const proxyRequest = proxyRequestFactory(
target,
{
headers,
method: request.method,
},
(proxyResponse) => {
response.writeHead(proxyResponse.statusCode ?? 502, proxyResponse.headers);
proxyResponse.pipe(response);
proxyResponse.on("end", resolveProxy);
},
);
proxyRequest.on("error", (error) => {
if (!response.headersSent) {
response.statusCode = 502;
response.setHeader("content-type", "text/plain; charset=utf-8");
}
response.end(error instanceof Error ? error.message : String(error));
resolveProxy();
});
request.pipe(proxyRequest);
});
}
async function prepareNextApp(app: { prepare(): Promise<void> }, dir: string): Promise<void> {
const nextEnvPath = join(dir, "next-env.d.ts");
const previousNextEnv = await readFile(nextEnvPath, "utf8").catch(() => null);
await app.prepare();
if (previousNextEnv == null) {
await rm(nextEnvPath, { force: true }).catch(() => undefined);
return;
}
await writeFile(nextEnvPath, previousNextEnv, "utf8").catch(() => undefined);
}
async function listen(server: HttpServer | TcpServer, port: number, host = HOST): Promise<number> {
await new Promise<void>((resolveListen, rejectListen) => {
server.once("error", rejectListen);
server.listen({ host, port }, () => {
server.off("error", rejectListen);
resolveListen();
});
});
const address = server.address() as AddressInfo | string | null;
if (address == null || typeof address === "string") {
throw new Error("failed to resolve Next.js server address");
}
return address.port;
}
async function closeServer(server: HttpServer | TcpServer): Promise<void> {
if (!server.listening) return;
await new Promise<void>((resolveClose, rejectClose) => {
server.close((error) => (error == null ? resolveClose() : rejectClose(error)));
});
}
async function reserveTcpPort(host = HOST): Promise<number> {
const server = createTcpServer();
try {
return await listen(server, 0, host);
} finally {
await closeServer(server).catch(() => undefined);
}
}
async function waitForChildExit(child: ChildProcess): Promise<void> {
if (child.exitCode != null || child.signalCode != null) return;
await new Promise<void>((resolveExit) => {
child.once("exit", () => resolveExit());
});
}
async function stopStandaloneChild(child: ChildProcess): Promise<void> {
if (child.exitCode != null || child.signalCode != null) return;
child.kill("SIGTERM");
let timeout: NodeJS.Timeout | undefined;
try {
await Promise.race([
waitForChildExit(child),
new Promise<void>((resolveTimeout) => {
timeout = setTimeout(resolveTimeout, SHUTDOWN_TIMEOUT_MS);
timeout.unref();
}),
]);
} finally {
if (timeout != null) clearTimeout(timeout);
}
if (child.exitCode == null && child.signalCode == null) {
child.kill("SIGKILL");
await waitForChildExit(child).catch(() => undefined);
}
}
async function probeStandaloneBackend(origin: string): Promise<boolean> {
return await new Promise<boolean>((resolveProbe) => {
const request = createHttpRequest(new URL("/", origin), { method: "HEAD", timeout: 800 }, (response) => {
response.resume();
resolveProbe(true);
});
request.on("timeout", () => {
request.destroy();
resolveProbe(false);
});
request.on("error", () => resolveProbe(false));
request.end();
});
}
async function waitForStandaloneBackendReady(
child: ChildProcess,
origin: string,
timeoutMs = resolveStandaloneStartupTimeoutMs(),
): Promise<void> {
const startedAt = Date.now();
while (Date.now() - startedAt < timeoutMs) {
if (child.exitCode != null || child.signalCode != null) {
const elapsedMs = Date.now() - startedAt;
const likelyPortRace = elapsedMs <= 200;
throw new Error(
`standalone Next.js server exited before readiness after ${elapsedMs}ms: code=${child.exitCode} signal=${child.signalCode}`
+ (likelyPortRace
? "; the reserved startup port may have been claimed before the child process bound it, retry the launch"
: ""),
);
}
if (await probeStandaloneBackend(origin)) return;
await new Promise((resolveWait) => setTimeout(resolveWait, 150));
}
throw new Error(`timed out after ${timeoutMs}ms waiting for standalone Next.js server at ${origin}; override with ${STANDALONE_STARTUP_TIMEOUT_ENV}`);
}
async function startStandaloneBackend(webRoot: string): Promise<StandaloneBackend> {
const entryPath = resolveStandaloneServerEntry(webRoot);
if (entryPath == null) {
throw new Error(`missing Next.js standalone server under ${resolveWebDistDir(webRoot)}; rebuild with ${WEB_OUTPUT_MODE_ENV}=standalone`);
}
const port = await reserveTcpPort(STANDALONE_BACKEND_HOST);
const origin = resolveStandaloneBackendOrigin(port);
console.log(`[open-design web] starting standalone Next.js server from ${entryPath}`);
const child = spawn(process.execPath, createStandaloneServerArgs(entryPath), {
cwd: dirname(entryPath),
env: createStandaloneBackendEnv({ port }),
stdio: ["ignore", "inherit", "inherit"],
...(process.platform === "win32" ? { windowsHide: true } : {}),
});
await new Promise<void>((resolveSpawn, rejectSpawn) => {
child.once("error", rejectSpawn);
child.once("spawn", resolveSpawn);
});
let standaloneRunning = true;
let standaloneExitReason: string | null = null;
child.once("exit", (code, signal) => {
standaloneRunning = false;
standaloneExitReason = `code=${code ?? "null"} signal=${signal ?? "null"}`;
console.error(`[open-design web] standalone Next.js server exited ${standaloneExitReason}`);
});
try {
await waitForStandaloneBackendReady(child, origin);
} catch (error) {
await stopStandaloneChild(child).catch(() => undefined);
throw error;
}
return {
exitReason() {
return standaloneExitReason;
},
isRunning() {
return standaloneRunning && child.exitCode == null && child.signalCode == null;
},
origin,
async stop() {
await stopStandaloneChild(child);
},
};
}
async function settleShutdownTask(task: Promise<unknown> | undefined): Promise<void> {
if (task == null) return;
let timeout: NodeJS.Timeout | undefined;
try {
await Promise.race([
task.catch(() => undefined),
new Promise<void>((resolveTimeout) => {
timeout = setTimeout(resolveTimeout, SHUTDOWN_TIMEOUT_MS);
timeout.unref();
}),
]);
} finally {
if (timeout != null) clearTimeout(timeout);
}
}
function stopThenExit(stop: () => Promise<void>): void {
const hardExit = setTimeout(() => process.exit(0), SHUTDOWN_TIMEOUT_MS + 1000);
hardExit.unref();
void stop().finally(() => {
clearTimeout(hardExit);
process.exit(0);
});
}
function isProcessAlive(pid: number): boolean {
try {
process.kill(pid, 0);
return true;
} catch {
return false;
}
}
function attachParentMonitor(stop: () => Promise<void>): void {
const parentPid = Number(process.env[TOOLS_DEV_PARENT_PID_ENV]);
if (!Number.isInteger(parentPid) || parentPid <= 0) return;
const timer = setInterval(() => {
if (isProcessAlive(parentPid)) return;
clearInterval(timer);
stopThenExit(stop);
}, 1000);
timer.unref();
}
async function createWebSidecarHandle(
runtime: SidecarRuntimeContext<SidecarStamp>,
httpServer: HttpServer,
closeRuntime: () => Promise<void> | void,
isRuntimeRunning?: () => boolean,
): Promise<WebSidecarHandle> {
const port = await listen(httpServer, parsePort(process.env[WEB_PORT_ENV]));
const state: WebStatusSnapshot = {
pid: process.pid,
state: "running",
updatedAt: new Date().toISOString(),
url: `http://${HOST}:${port}`,
};
let ipcServer: JsonIpcServerHandle | null = null;
let stopped = false;
let resolveStopped!: () => void;
const stoppedPromise = new Promise<void>((resolveStop) => {
resolveStopped = resolveStop;
});
function refreshRuntimeState(): void {
if (stopped || isRuntimeRunning == null || isRuntimeRunning()) return;
state.state = "stopped";
state.url = null;
state.updatedAt = new Date().toISOString();
}
async function stop(): Promise<void> {
if (stopped) return;
stopped = true;
state.state = "stopped";
state.updatedAt = new Date().toISOString();
await settleShutdownTask(ipcServer?.close());
await settleShutdownTask(closeServer(httpServer));
await settleShutdownTask(Promise.resolve().then(closeRuntime));
resolveStopped();
}
attachParentMonitor(stop);
ipcServer = await createJsonIpcServer({
socketPath: runtime.ipc,
handler: async (message: unknown) => {
const request = normalizeWebSidecarMessage(message);
switch (request.type) {
case SIDECAR_MESSAGES.STATUS:
refreshRuntimeState();
return { ...state };
case SIDECAR_MESSAGES.SHUTDOWN:
setImmediate(() => {
stopThenExit(stop);
});
return { accepted: true };
}
},
});
for (const signal of ["SIGINT", "SIGTERM"] as const) {
process.on(signal, () => {
stopThenExit(stop);
});
}
return {
async status() {
refreshRuntimeState();
return { ...state };
},
stop,
waitUntilStopped() {
return stoppedPromise;
},
};
}
function createDaemonProxyHandler(
daemonOrigin: string | null,
fallback: (request: IncomingMessage, response: ServerResponse) => Promise<void>,
): (request: IncomingMessage, response: ServerResponse) => void {
return (request, response) => {
const daemonProxyTarget = daemonOrigin == null ? null : resolveDaemonProxyTarget(daemonOrigin, request.url);
if (daemonProxyTarget != null) {
const localPort = request.socket.localPort;
void proxyHttpRequest(daemonProxyTarget, request, response, {
daemonWebPort: typeof localPort === "number" ? localPort : 0,
}).catch((error: unknown) => {
response.statusCode = 502;
response.end(error instanceof Error ? error.message : String(error));
});
return;
}
void fallback(request, response).catch((error: unknown) => {
response.statusCode = 500;
response.end(error instanceof Error ? error.message : String(error));
});
};
}
async function startRegularNextSidecar(
runtime: SidecarRuntimeContext<SidecarStamp>,
webRoot: string,
): Promise<WebSidecarHandle> {
const app = createNextApp({ dev: process.env.OD_WEB_PROD !== "1" && runtime.mode === "dev", dir: webRoot });
await prepareNextApp(app, webRoot);
const daemonOrigin = resolveDaemonOrigin();
const handleRequest = app.getRequestHandler();
const httpServer = createHttpServer(createDaemonProxyHandler(daemonOrigin, handleRequest));
return await createWebSidecarHandle(runtime, httpServer, async () => {
await app.close?.();
});
}
async function startStandaloneNextSidecar(
runtime: SidecarRuntimeContext<SidecarStamp>,
webRoot: string,
): Promise<WebSidecarHandle> {
const daemonOrigin = resolveDaemonOrigin();
const backend = await startStandaloneBackend(webRoot);
const httpServer = createHttpServer(createDaemonProxyHandler(daemonOrigin, async (request, response) => {
if (!backend.isRunning()) {
response.statusCode = 502;
response.end(`standalone Next.js server is not running${backend.exitReason() == null ? "" : ` (${backend.exitReason()})`}`);
return;
}
const target = resolveHttpProxyTarget(backend.origin, request.url);
if (target == null) {
response.statusCode = 400;
response.end("invalid request URL");
return;
}
await proxyHttpRequest(target, request, response);
}));
try {
return await createWebSidecarHandle(runtime, httpServer, backend.stop, backend.isRunning);
} catch (error) {
await backend.stop().catch(() => undefined);
throw error;
}
}
export async function startWebSidecar(runtime: SidecarRuntimeContext<SidecarStamp>): Promise<WebSidecarHandle> {
const webRoot = resolveWebRoot();
if (shouldUseStandaloneOutput(runtime)) {
return await startStandaloneNextSidecar(runtime, webRoot);
}
return await startRegularNextSidecar(runtime, webRoot);
}
+601
View File
@@ -0,0 +1,601 @@
import { useCallback, useEffect, useLayoutEffect, useMemo, useState } from 'react';
import { EntryView } from './components/EntryView';
import type { CreateInput } from './components/NewProjectPanel';
import { PetOverlay } from './components/pet/PetOverlay';
import { migrateCustomPetAtlas } from './components/pet/pets';
import { ProjectView } from './components/ProjectView';
import {
SettingsDialog,
type SettingsSection,
} from './components/SettingsDialog';
import {
daemonIsLive,
fetchAppVersionInfo,
fetchAgents,
fetchDesignSystems,
fetchPromptTemplates,
fetchSkills,
} from './providers/registry';
import { navigate, useRoute } from './router';
import {
fetchDaemonConfig,
DEFAULT_PET,
hasAnyConfiguredProvider,
fetchComposioConfigFromDaemon,
loadConfig,
mergeDaemonConfig,
saveConfig,
syncComposioConfigToDaemon,
syncConfigToDaemon,
syncMediaProvidersToDaemon,
} from './state/config';
import { applyAppearanceToDocument } from './state/appearance';
import {
createProject,
deleteProject as deleteProjectApi,
importClaudeDesignZip,
listProjects,
listTemplates,
patchProject,
} from './state/projects';
import { liveArtifactTabId } from './types';
import type {
AgentInfo,
AppConfig,
AppVersionInfo,
DesignSystemSummary,
Project,
ProjectTemplate,
PromptTemplateSummary,
SkillSummary,
} from './types';
function normalizeSavedComposioConfig(config: AppConfig['composio']): AppConfig['composio'] {
const apiKey = config?.apiKey?.trim() ?? '';
if (apiKey) {
return {
...config,
apiKey: '',
apiKeyConfigured: true,
apiKeyTail: apiKey.slice(-4),
};
}
return { ...(config ?? {}) };
}
export function App() {
const [config, setConfig] = useState<AppConfig>(() => loadConfig());
const [settingsOpen, setSettingsOpen] = useState(false);
const [settingsWelcome, setSettingsWelcome] = useState(false);
const [settingsInitialSection, setSettingsInitialSection] = useState<SettingsSection>('execution');
const [daemonLive, setDaemonLive] = useState(false);
const [agents, setAgents] = useState<AgentInfo[]>([]);
const [skills, setSkills] = useState<SkillSummary[]>([]);
const [designSystems, setDesignSystems] = useState<DesignSystemSummary[]>([]);
const [projects, setProjects] = useState<Project[]>([]);
const [templates, setTemplates] = useState<ProjectTemplate[]>([]);
const [promptTemplates, setPromptTemplates] = useState<
PromptTemplateSummary[]
>([]);
const [appVersionInfo, setAppVersionInfo] = useState<AppVersionInfo | null>(
null,
);
// Goes false once the bootstrap effect has finished its initial round of
// fetches. The entry view uses this to show shimmer / skeleton states
// instead of an "empty" page that flickers before data lands.
const [bootstrapping, setBootstrapping] = useState(true);
const route = useRoute();
// Sync theme preference to the <html> element so CSS variables pick it up.
// useLayoutEffect (vs useEffect) fires before the browser paints, so a
// live theme switch in Settings applies atomically — no 1-frame flash of
// the old theme. Safe here because the component tree is ssr:false.
useLayoutEffect(() => {
applyAppearanceToDocument({
theme: config.theme ?? 'system',
accentColor: config.accentColor,
});
}, [config.theme, config.accentColor]);
// Tell the daemon what the user is currently looking at, so the MCP
// server can surface it as `get_active_context` to a coding agent in
// another repo. Best-effort fire-and-forget; the daemon holds it in
// memory with a short TTL and the MCP layer falls back to
// {active:false} if this hasn't run.
const activeProjectId = route.kind === 'project' ? route.projectId : null;
const activeFileName = route.kind === 'project' ? route.fileName : null;
useEffect(() => {
const body = activeProjectId
? { projectId: activeProjectId, fileName: activeFileName }
: { active: false };
fetch('/api/active', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(body),
}).catch(() => {
// Daemon down or transient network — not worth surfacing.
});
}, [activeProjectId, activeFileName]);
// Bootstrap — detect daemon, load pickers, seed sensible defaults.
useEffect(() => {
let cancelled = false;
(async () => {
const alive = await daemonIsLive();
if (cancelled) return;
setDaemonLive(alive);
const [
agentList,
skillList,
dsList,
projectList,
templateList,
promptTemplateList,
versionInfo,
daemonConfig,
daemonComposioConfig,
] = await Promise.all([
alive ? fetchAgents() : Promise.resolve([] as AgentInfo[]),
alive ? fetchSkills() : Promise.resolve([] as SkillSummary[]),
alive
? fetchDesignSystems()
: Promise.resolve([] as DesignSystemSummary[]),
alive ? listProjects() : Promise.resolve([] as Project[]),
alive ? listTemplates() : Promise.resolve([] as ProjectTemplate[]),
alive
? fetchPromptTemplates()
: Promise.resolve([] as PromptTemplateSummary[]),
alive ? fetchAppVersionInfo() : Promise.resolve(null),
alive ? fetchDaemonConfig() : Promise.resolve(null),
alive ? fetchComposioConfigFromDaemon() : Promise.resolve(null),
]);
if (cancelled) return;
setAgents(agentList);
setSkills(skillList);
setDesignSystems(dsList);
setProjects(projectList);
setTemplates(templateList);
setPromptTemplates(promptTemplateList);
setAppVersionInfo(versionInfo);
setConfig((prev) => {
// Merge daemon-persisted config — daemon values win for the fields
// it tracks so that the choice survives origin/storage resets.
const next = mergeDaemonConfig(prev, daemonConfig);
if (alive) {
const hasLocalComposioKey = Boolean(next.composio?.apiKey?.trim());
if (!hasLocalComposioKey && daemonComposioConfig) {
next.composio = daemonComposioConfig;
}
if (!next.agentId) {
const firstAvailable = agentList.find((a) => a.available);
if (firstAvailable) next.agentId = firstAvailable.id;
}
if (!next.designSystemId && dsList.length > 0) {
next.designSystemId =
dsList.find((d) => d.id === 'default')?.id ?? dsList[0]!.id;
}
}
saveConfig(next);
if (alive && hasAnyConfiguredProvider(next.mediaProviders)) {
void syncMediaProvidersToDaemon(next.mediaProviders);
}
// Migrate localStorage prefs to daemon on first boot with the new
// endpoint. If daemon already had values the merge above used them;
// writing back is idempotent and ensures both sides stay in sync.
if (alive) {
void syncConfigToDaemon(next);
void syncComposioConfigToDaemon(next.composio);
}
// Pop the onboarding modal only on the first run. Once the user has
// saved or skipped past it once, we trust their stored config and
// let them re-open Settings explicitly via the env pill.
if (!next.onboardingCompleted) {
setSettingsWelcome(true);
setSettingsOpen(true);
}
return next;
});
setBootstrapping(false);
})();
return () => {
cancelled = true;
};
}, []);
// One-shot self-healing migration for pets adopted before the
// overlay learned atlas-row switching. If the stored pet is a
// custom / codex pet whose imageUrl is a single-row strip
// (no atlas), we silently re-download the full spritesheet so
// hover, drag, and idle-ambient variety all light up on next render.
useEffect(() => {
let cancelled = false;
void (async () => {
const upgraded = await migrateCustomPetAtlas(config);
if (!upgraded || cancelled) return;
setConfig((prev) => {
if (!prev.pet) return prev;
const next: AppConfig = {
...prev,
pet: { ...prev.pet, custom: upgraded },
};
saveConfig(next);
return next;
});
})();
return () => {
cancelled = true;
};
// Snapshot the config at mount; migration is one-shot per session
// and should not re-run every time config changes.
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const refreshProjects = useCallback(async () => {
const list = await listProjects();
setProjects(list);
}, []);
const refreshTemplates = useCallback(async () => {
const list = await listTemplates();
setTemplates(list);
}, []);
const handleConfigSave = useCallback((next: AppConfig) => {
// Saving from any settings dialog (welcome or regular) counts as
// having completed onboarding — the user has actively chosen a
// configuration, so future page loads can skip the auto-popup.
const withOnboarding: AppConfig = {
...next,
composio: normalizeSavedComposioConfig(next.composio),
onboardingCompleted: true,
};
saveConfig(withOnboarding);
void syncMediaProvidersToDaemon(withOnboarding.mediaProviders, {
force: true,
});
void syncConfigToDaemon(withOnboarding);
// Keep the Composio secret out of localStorage, but send the raw pending
// edit to the daemon before it is normalized away for local persistence.
void syncComposioConfigToDaemon(next.composio);
setConfig(withOnboarding);
setSettingsOpen(false);
}, []);
const handleModeChange = useCallback(
(mode: AppConfig['mode']) => {
const next = { ...config, mode };
saveConfig(next);
setConfig(next);
},
[config],
);
const handleAgentChange = useCallback(
(agentId: string) => {
const next = { ...config, agentId };
saveConfig(next);
void syncConfigToDaemon(next);
setConfig(next);
},
[config],
);
const handleAgentModelChange = useCallback(
(agentId: string, choice: { model?: string; reasoning?: string }) => {
const prev = config.agentModels?.[agentId] ?? {};
const merged = { ...prev, ...choice };
const nextAgentModels = {
...(config.agentModels ?? {}),
[agentId]: merged,
};
const next = { ...config, agentModels: nextAgentModels };
saveConfig(next);
void syncConfigToDaemon(next);
setConfig(next);
},
[config],
);
const handleChangeDefaultDesignSystem = useCallback(
(designSystemId: string) => {
const next = { ...config, designSystemId };
saveConfig(next);
void syncConfigToDaemon(next);
setConfig(next);
},
[config],
);
const refreshAgents = useCallback(
async (options?: { throwOnError?: boolean; agentCliEnv?: AppConfig['agentCliEnv'] }) => {
if (options && Object.prototype.hasOwnProperty.call(options, 'agentCliEnv')) {
const nextConfig = { ...config, agentCliEnv: options.agentCliEnv ?? {} };
saveConfig(nextConfig);
await syncConfigToDaemon(nextConfig);
setConfig(nextConfig);
}
const next = await fetchAgents({ throwOnError: options?.throwOnError });
setAgents(next);
return next;
},
[config],
);
const handleCreateProject = useCallback(
async (input: CreateInput & { pendingPrompt?: string }) => {
// Honor an explicit `null` design system — the create panel defaults
// to "None" for every kind now, and the user expects that to land
// as a no-design-system project rather than silently inheriting the
// workspace default.
const result = await createProject({
name: input.name,
skillId: input.skillId,
designSystemId: input.designSystemId,
pendingPrompt: input.pendingPrompt,
metadata: input.metadata,
});
if (!result) return;
setProjects((curr) => [
result.project,
...curr.filter((p) => p.id !== result.project.id),
]);
navigate({
kind: 'project',
projectId: result.project.id,
fileName: null,
});
},
[],
);
const handleImportClaudeDesign = useCallback(async (file: File) => {
const result = await importClaudeDesignZip(file);
if (!result) return;
setProjects((curr) => [
result.project,
...curr.filter((p) => p.id !== result.project.id),
]);
navigate({
kind: 'project',
projectId: result.project.id,
fileName: result.entryFile,
});
}, []);
const handleOpenProject = useCallback((id: string) => {
navigate({ kind: 'project', projectId: id, fileName: null });
}, []);
const handleOpenLiveArtifact = useCallback((projectId: string, artifactId: string) => {
navigate({ kind: 'project', projectId, fileName: liveArtifactTabId(artifactId) });
}, []);
const handleDeleteProject = useCallback(async (id: string) => {
const ok = await deleteProjectApi(id);
if (!ok) return;
setProjects((curr) => curr.filter((p) => p.id !== id));
if (route.kind === 'project' && route.projectId === id) {
navigate({ kind: 'home' });
}
}, [route]);
const handleBack = useCallback(() => {
navigate({ kind: 'home' });
}, []);
const handleClearPendingPrompt = useCallback(() => {
const projectId = route.kind === 'project' ? route.projectId : null;
if (!projectId) return;
setProjects((curr) =>
curr.map((p) =>
p.id === projectId ? { ...p, pendingPrompt: undefined } : p,
),
);
void patchProject(projectId, { pendingPrompt: undefined });
}, [route]);
const handleTouchProject = useCallback(() => {
const projectId = route.kind === 'project' ? route.projectId : null;
if (!projectId) return;
const updatedAt = Date.now();
setProjects((curr) =>
curr.map((p) => (p.id === projectId ? { ...p, updatedAt } : p)),
);
void patchProject(projectId, { updatedAt });
}, [route]);
const handleProjectChange = useCallback((updated: Project) => {
setProjects((curr) => curr.map((p) => (p.id === updated.id ? updated : p)));
}, []);
const activeProject =
route.kind === 'project'
? (projects.find((p) => p.id === route.projectId) ?? null)
: null;
// Deep-linked route to a project we don't have yet (e.g. after a refresh
// that finishes after the project list comes back). Fetch it in the
// background so the view can render rather than bouncing to home.
useEffect(() => {
if (route.kind !== 'project') return;
if (activeProject) return;
if (!projects.length && !daemonLive) return;
if (projects.some((p) => p.id === route.projectId)) return;
let cancelled = false;
(async () => {
const list = await listProjects();
if (cancelled) return;
setProjects(list);
if (!list.find((p) => p.id === route.projectId)) {
navigate({ kind: 'home' }, { replace: true });
}
})();
return () => {
cancelled = true;
};
}, [route, activeProject, projects, daemonLive]);
const openSettings = useCallback((section: SettingsSection = 'execution') => {
setSettingsWelcome(false);
setSettingsInitialSection(section);
setSettingsOpen(true);
}, []);
const openPetSettings = useCallback(() => {
setSettingsWelcome(false);
setSettingsInitialSection('pet');
setSettingsOpen(true);
}, []);
// Explicit enabled toggle — true = wake, false = tuck. Persists to
// localStorage so the overlay state survives across reloads. We keep
// `adopted` untouched so the entry-view CTA does not regress to
// "adopt me" once the user has already chosen.
const handleSetPetEnabled = useCallback((enabled: boolean) => {
setConfig((curr) => {
const prev = curr.pet ?? DEFAULT_PET;
const next: AppConfig = { ...curr, pet: { ...prev, enabled } };
saveConfig(next);
return next;
});
}, []);
const handleTuckPet = useCallback(
() => handleSetPetEnabled(false),
[handleSetPetEnabled],
);
// Toggle wake/tuck — used by the pet rail and the composer button.
const handleTogglePet = useCallback(() => {
setConfig((curr) => {
const prev = curr.pet ?? DEFAULT_PET;
const next: AppConfig = {
...curr,
pet: { ...prev, enabled: !prev.enabled },
};
saveConfig(next);
return next;
});
}, []);
// Inline adopt — the right-hand pet rail and the composer's pet menu
// both call this to switch pets without bouncing the user into
// Settings. It always wakes the overlay so the change is visible.
const handleAdoptPet = useCallback((petId: string) => {
setConfig((curr) => {
const prev = curr.pet ?? DEFAULT_PET;
const next: AppConfig = {
...curr,
pet: { ...prev, adopted: true, enabled: true, petId },
};
saveConfig(next);
return next;
});
}, []);
// When the user lands on the entry view (route.kind === 'home'), pull
// a fresh template list. The template store is global — if they just
// saved a template inside a project, returning home should reflect it
// immediately in the From-template tab without forcing a page reload.
useEffect(() => {
if (route.kind !== 'home') return;
void refreshTemplates();
}, [route.kind, refreshTemplates]);
const enabledSkills = useMemo(
() => skills.filter((s) => !(config.disabledSkills ?? []).includes(s.id)),
[skills, config.disabledSkills],
);
const enabledDS = useMemo(
() =>
designSystems.filter(
(d) => !(config.disabledDesignSystems ?? []).includes(d.id),
),
[designSystems, config.disabledDesignSystems],
);
return (
<>
{activeProject ? (
<ProjectView
key={activeProject.id}
project={activeProject}
routeFileName={route.kind === 'project' ? route.fileName : null}
config={config}
agents={agents}
skills={skills}
designSystems={designSystems}
daemonLive={daemonLive}
onModeChange={handleModeChange}
onAgentChange={handleAgentChange}
onAgentModelChange={handleAgentModelChange}
onRefreshAgents={refreshAgents}
onOpenSettings={openSettings}
onAdoptPetInline={handleAdoptPet}
onTogglePet={handleTogglePet}
onOpenPetSettings={openPetSettings}
onBack={handleBack}
onClearPendingPrompt={handleClearPendingPrompt}
onTouchProject={handleTouchProject}
onProjectChange={handleProjectChange}
onProjectsRefresh={refreshProjects}
/>
) : (
<EntryView
skills={enabledSkills}
designSystems={enabledDS}
projects={projects}
templates={templates}
promptTemplates={promptTemplates}
defaultDesignSystemId={config.designSystemId}
config={config}
agents={agents}
loading={bootstrapping}
onCreateProject={handleCreateProject}
onImportClaudeDesign={handleImportClaudeDesign}
onOpenProject={handleOpenProject}
onOpenLiveArtifact={handleOpenLiveArtifact}
onDeleteProject={handleDeleteProject}
onChangeDefaultDesignSystem={handleChangeDefaultDesignSystem}
onOpenSettings={openSettings}
onAdoptPet={openPetSettings}
onAdoptPetInline={handleAdoptPet}
onTogglePet={handleTogglePet}
/>
)}
<PetOverlay
pet={config.pet?.enabled ? config.pet : undefined}
onTuck={handleTuckPet}
onOpenSettings={openPetSettings}
/>
{settingsOpen ? (
<SettingsDialog
initial={config}
agents={agents}
daemonLive={daemonLive}
appVersionInfo={appVersionInfo}
welcome={settingsWelcome}
initialSection={settingsInitialSection}
onSave={handleConfigSave}
onClose={() => {
// Dismissing the welcome modal (Skip for now / backdrop click)
// also counts as onboarding-done; we don't want to keep
// re-prompting on every refresh just because the user opted
// not to save.
if (settingsWelcome && !config.onboardingCompleted) {
const next: AppConfig = { ...config, onboardingCompleted: true };
saveConfig(next);
void syncConfigToDaemon(next);
setConfig(next);
}
setSettingsOpen(false);
}}
onRefreshAgents={refreshAgents}
/>
) : null}
</>
);
}
+183
View File
@@ -0,0 +1,183 @@
import type {
ArtifactExportKind,
ArtifactKind,
ArtifactManifest,
ArtifactRendererId,
ArtifactStatus,
} from './types';
const MANIFEST_VERSION = 1;
const ALLOWED_KINDS: ReadonlySet<ArtifactKind> = new Set([
'html',
'deck',
'react-component',
'markdown-document',
'svg',
'diagram',
'code-snippet',
'mini-app',
'design-system',
]);
const ALLOWED_RENDERERS: ReadonlySet<ArtifactRendererId> = new Set([
'html',
'deck-html',
'react-component',
'markdown',
'svg',
'diagram',
'code',
'mini-app',
'design-system',
]);
const ALLOWED_EXPORTS: ReadonlySet<ArtifactExportKind> = new Set([
'html',
'pdf',
'zip',
'pptx',
'jsx',
'md',
'svg',
'txt',
]);
const ALLOWED_STATUS: ReadonlySet<ArtifactStatus> = new Set(['streaming', 'complete', 'error']);
function normalizeExt(name: string): string {
const i = name.lastIndexOf('.');
return i >= 0 ? name.slice(i).toLowerCase() : '';
}
function inferKindFromEntry(entry: string): ArtifactKind | null {
const ext = normalizeExt(entry);
if (['.html', '.htm'].includes(ext)) return 'html';
if (ext === '.svg') return 'svg';
if (ext === '.md') return 'markdown-document';
if (['.jsx', '.tsx'].includes(ext)) return 'react-component';
if (['.js', '.ts', '.json', '.css'].includes(ext)) return 'code-snippet';
return null;
}
function exportsForKind(kind: ArtifactKind): ArtifactExportKind[] {
if (kind === 'deck') return ['html', 'pdf', 'pptx', 'zip'];
if (kind === 'react-component') return ['jsx', 'html', 'zip'];
if (kind === 'markdown-document') return ['md', 'html', 'pdf', 'zip'];
if (kind === 'svg' || kind === 'diagram') return ['svg', 'zip'];
if (kind === 'code-snippet') return ['txt', 'zip'];
return ['html', 'pdf', 'zip'];
}
export function artifactManifestNameFor(entry: string): string {
return `${entry}.artifact.json`;
}
export function createHtmlArtifactManifest(input: {
entry: string;
title: string;
metadata?: Record<string, unknown>;
sourceSkillId?: string;
designSystemId?: string | null;
}): ArtifactManifest {
const now = new Date().toISOString();
return {
version: MANIFEST_VERSION,
kind: 'html',
title: input.title,
entry: input.entry,
renderer: 'html',
status: 'complete',
exports: ['html', 'pdf', 'zip'],
createdAt: now,
updatedAt: now,
sourceSkillId: input.sourceSkillId,
designSystemId: input.designSystemId,
metadata: input.metadata,
};
}
export function serializeArtifactManifest(manifest: ArtifactManifest): string {
return JSON.stringify(manifest, null, 2);
}
export function parseArtifactManifest(raw: string): ArtifactManifest | null {
try {
const parsed = JSON.parse(raw) as Partial<ArtifactManifest>;
if (parsed?.version !== MANIFEST_VERSION) return null;
if (typeof parsed.entry !== 'string' || !parsed.entry) return null;
if (typeof parsed.title !== 'string' || !parsed.title) return null;
if (!Array.isArray(parsed.exports)) return null;
if (typeof parsed.kind !== 'string' || typeof parsed.renderer !== 'string') {
return null;
}
if (!ALLOWED_KINDS.has(parsed.kind as ArtifactKind)) return null;
if (!ALLOWED_RENDERERS.has(parsed.renderer as ArtifactRendererId)) return null;
if (parsed.status !== undefined && !ALLOWED_STATUS.has(parsed.status as ArtifactStatus)) {
return null;
}
if (parsed.exports.length === 0) return null;
if (parsed.exports.some((value) => !ALLOWED_EXPORTS.has(value as ArtifactExportKind))) return null;
return {
version: MANIFEST_VERSION,
kind: parsed.kind as ArtifactKind,
title: parsed.title,
entry: parsed.entry,
renderer: parsed.renderer as ArtifactRendererId,
status: ALLOWED_STATUS.has(parsed.status as ArtifactStatus)
? (parsed.status as ArtifactStatus)
: 'complete',
exports: parsed.exports as ArtifactExportKind[],
supportingFiles: Array.isArray(parsed.supportingFiles)
? parsed.supportingFiles.filter((x): x is string => typeof x === 'string')
: undefined,
createdAt: typeof parsed.createdAt === 'string' ? parsed.createdAt : undefined,
updatedAt: typeof parsed.updatedAt === 'string' ? parsed.updatedAt : undefined,
sourceSkillId: typeof parsed.sourceSkillId === 'string' ? parsed.sourceSkillId : undefined,
designSystemId:
typeof parsed.designSystemId === 'string' || parsed.designSystemId === null
? parsed.designSystemId
: undefined,
metadata:
parsed.metadata && typeof parsed.metadata === 'object' && !Array.isArray(parsed.metadata)
? parsed.metadata
: undefined,
};
} catch {
return null;
}
}
export function inferLegacyManifest(input: {
entry: string;
title?: string;
metadata?: Record<string, unknown>;
}): ArtifactManifest | null {
const kind = inferKindFromEntry(input.entry);
if (!kind) return null;
const lowerEntry = input.entry.toLowerCase();
const isDeck =
kind === 'html' &&
(lowerEntry.includes('deck') || lowerEntry.includes('slides') || lowerEntry.includes('pitch'));
const renderer: ArtifactRendererId =
isDeck
? 'deck-html'
: kind === 'html'
? 'html'
: kind === 'markdown-document'
? 'markdown'
: kind === 'react-component'
? 'react-component'
: kind === 'code-snippet'
? 'code'
: kind === 'deck'
? 'deck-html'
: kind;
const resolvedKind = isDeck ? 'deck' : kind;
return {
version: MANIFEST_VERSION,
kind: resolvedKind,
title: input.title || input.entry,
entry: input.entry,
renderer,
status: 'complete',
exports: exportsForKind(resolvedKind),
metadata: input.metadata,
};
}
+162
View File
@@ -0,0 +1,162 @@
function escapeHtml(value: string): string {
return value
.replace(/&/g, '&amp;')
.replace(/</g, '&lt;')
.replace(/>/g, '&gt;')
.replace(/"/g, '&quot;')
.replace(/'/g, '&#39;');
}
const LINK_TOKEN_PREFIX = 'ODMDLINKTOKEN';
const CODE_TOKEN_PREFIX = 'ODMDCODETOKEN';
function formatInline(raw: string): string {
const linkTokens = new Map<string, string>();
const codeTokens = new Map<string, string>();
let linkTokenIndex = 0;
let codeTokenIndex = 0;
const withCodeTokens = raw.replace(/`([^`]+)`/g, (_m, code: string) => {
const token = `${CODE_TOKEN_PREFIX}${codeTokenIndex++}X`;
codeTokens.set(token, `<code>${escapeHtml(code)}</code>`);
return token;
});
const withLinkTokens = withCodeTokens.replace(/\[([^\]]+)\]\(([^)\s]+)\)/g, (_m, text: string, href: string) => {
const normalizedHref = normalizeSafeHref(href);
const safeText = escapeHtml(text);
if (!normalizedHref) return safeText;
const safeHref = escapeHtml(normalizedHref);
const rel = safeHref.startsWith('#') ? '' : ' rel="noreferrer noopener" target="_blank"';
const token = `${LINK_TOKEN_PREFIX}${linkTokenIndex++}X`;
linkTokens.set(token, `<a href="${safeHref}"${rel}>${safeText}</a>`);
return token;
});
let out = escapeHtml(withLinkTokens);
out = out.replace(/\*\*([^*]+)\*\*/g, '<strong>$1</strong>');
out = out.replace(/__([^_]+)__/g, '<strong>$1</strong>');
out = out.replace(/\*([^*]+)\*/g, '<em>$1</em>');
out = out.replace(/_([^_]+)_/g, '<em>$1</em>');
out = out.replace(/ODMDCODETOKEN\d+X/g, (token) => codeTokens.get(token) ?? token);
out = out.replace(/ODMDLINKTOKEN\d+X/g, (token) => linkTokens.get(token) ?? token);
return out;
}
function normalizeSafeHref(href: string): string | null {
const decoded = href.replace(/&amp;/g, '&').replace(/&quot;/g, '"').replace(/&#39;/g, "'");
if (
decoded.startsWith('#') ||
decoded.startsWith('/') ||
decoded.startsWith('./') ||
decoded.startsWith('../') ||
/^https?:\/\//i.test(decoded) ||
/^mailto:/i.test(decoded)
) {
return decoded;
}
return null;
}
function headingLevel(line: string): number {
const m = /^(#{1,6})\s+/.exec(line);
return m?.[1]?.length ?? 0;
}
export function renderMarkdownToSafeHtml(markdown: string): string {
// Intentionally small markdown subset for conservative preview rendering.
// Supported: headings, paragraphs, blockquotes, ul/ol lists, fenced code,
// inline code, bold/italic, and links.
// Not supported on purpose: full CommonMark edge cases (nested lists,
// escaped markdown syntax, raw HTML blocks, tables, etc.).
const lines = markdown.replace(/\r\n/g, '\n').split('\n');
const out: string[] = [];
let i = 0;
while (i < lines.length) {
const line = lines[i];
if (line === undefined) break;
if (/^\s*$/.test(line)) {
i += 1;
continue;
}
if (/^```/.test(line)) {
i += 1;
const code: string[] = [];
while (i < lines.length) {
const codeLine = lines[i];
if (codeLine === undefined || /^```/.test(codeLine)) break;
code.push(codeLine);
i += 1;
}
if (i < lines.length) i += 1;
out.push(`<pre><code>${escapeHtml(code.join('\n'))}</code></pre>`);
continue;
}
const h = headingLevel(line);
if (h > 0) {
out.push(`<h${h}>${formatInline(line.replace(/^#{1,6}\s+/, ''))}</h${h}>`);
i += 1;
continue;
}
if (/^>\s?/.test(line)) {
const block: string[] = [];
while (i < lines.length) {
const blockLine = lines[i];
if (blockLine === undefined || !/^>\s?/.test(blockLine)) break;
block.push(blockLine.replace(/^>\s?/, ''));
i += 1;
}
out.push(`<blockquote>${formatInline(block.join(' '))}</blockquote>`);
continue;
}
if (/^\s*[-*]\s+/.test(line)) {
const items: string[] = [];
while (i < lines.length) {
const itemLine = lines[i];
if (itemLine === undefined || !/^\s*[-*]\s+/.test(itemLine)) break;
items.push(`<li>${formatInline(itemLine.replace(/^\s*[-*]\s+/, ''))}</li>`);
i += 1;
}
out.push(`<ul>${items.join('')}</ul>`);
continue;
}
if (/^\s*\d+\.\s+/.test(line)) {
const items: string[] = [];
while (i < lines.length) {
const itemLine = lines[i];
if (itemLine === undefined || !/^\s*\d+\.\s+/.test(itemLine)) break;
items.push(`<li>${formatInline(itemLine.replace(/^\s*\d+\.\s+/, ''))}</li>`);
i += 1;
}
out.push(`<ol>${items.join('')}</ol>`);
continue;
}
const para: string[] = [];
while (i < lines.length) {
const paraLine = lines[i];
if (paraLine === undefined || /^\s*$/.test(paraLine)) break;
if (
/^```/.test(paraLine) ||
headingLevel(paraLine) > 0 ||
/^>\s?/.test(paraLine) ||
/^\s*[-*]\s+/.test(paraLine) ||
/^\s*\d+\.\s+/.test(paraLine)
) {
break;
}
para.push(paraLine);
i += 1;
}
out.push(`<p>${formatInline(para.join(' '))}</p>`);
}
return out.join('\n');
}
+179
View File
@@ -0,0 +1,179 @@
/**
* Streaming parser for <artifact identifier="..." type="..." title="...">...</artifact>
* tags. Simplified from packages/artifacts/src/parser.ts in the reference
* repo: handles one artifact at a time, ignores nesting.
*
* Feed deltas in, iterate events. Every event type here has a direct
* counterpart in the reference parser — the shape is intentionally preserved
* so you can upgrade later without rewriting consumers.
*/
export type ArtifactEvent =
| { type: 'text'; delta: string }
| { type: 'artifact:start'; identifier: string; artifactType: string; title: string }
| { type: 'artifact:chunk'; identifier: string; delta: string }
| { type: 'artifact:end'; identifier: string; fullContent: string };
const OPEN_PREFIX = '<artifact';
const CLOSE_TAG = '</artifact>';
interface ParserState {
inside: boolean;
buffer: string;
identifier: string;
artifactType: string;
title: string;
content: string;
}
function parseAttrs(raw: string): Record<string, string> {
const re = /(\w+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g;
const out: Record<string, string> = {};
let m: RegExpExecArray | null = re.exec(raw);
while (m !== null) {
out[m[1] as string] = (m[2] ?? m[3] ?? '') as string;
m = re.exec(raw);
}
return out;
}
type OpenTagMatch =
| { kind: 'complete'; start: number; end: number; attrs: string }
| { kind: 'partial'; start: number }
| { kind: 'none' };
function findOpenTag(buffer: string): OpenTagMatch {
let from = 0;
while (from <= buffer.length) {
const idx = buffer.indexOf(OPEN_PREFIX, from);
if (idx === -1) {
// Maybe a strict prefix at the tail (e.g. "<art") — hold back.
const tail = buffer.lastIndexOf('<');
if (tail !== -1) {
const slice = buffer.slice(tail);
if (OPEN_PREFIX.startsWith(slice) && slice.length < OPEN_PREFIX.length) {
return { kind: 'partial', start: tail };
}
}
return { kind: 'none' };
}
const after = idx + OPEN_PREFIX.length;
const next = buffer.charAt(after);
if (next === '') return { kind: 'partial', start: idx };
if (!/\s/.test(next)) {
// Not a real <artifact ...> open (e.g. "<artifactual"). Keep scanning.
from = after;
continue;
}
// Quote-aware scan for the closing '>'.
let i = after;
let quote: '"' | "'" | null = null;
while (i < buffer.length) {
const c = buffer.charAt(i);
if (quote !== null) {
if (c === quote) quote = null;
} else if (c === '"' || c === "'") {
quote = c;
} else if (c === '>') {
return { kind: 'complete', start: idx, end: i + 1, attrs: buffer.slice(after, i) };
}
i++;
}
return { kind: 'partial', start: idx };
}
return { kind: 'none' };
}
export function createArtifactParser() {
const state: ParserState = {
inside: false,
buffer: '',
identifier: '',
artifactType: '',
title: '',
content: '',
};
function* feed(delta: string): Generator<ArtifactEvent> {
state.buffer += delta;
while (state.buffer.length > 0) {
if (!state.inside) {
const open = findOpenTag(state.buffer);
if (open.kind === 'none') {
yield { type: 'text', delta: state.buffer };
state.buffer = '';
return;
}
if (open.kind === 'partial') {
if (open.start > 0) {
yield { type: 'text', delta: state.buffer.slice(0, open.start) };
state.buffer = state.buffer.slice(open.start);
}
return;
}
if (open.start > 0) {
yield { type: 'text', delta: state.buffer.slice(0, open.start) };
}
const attrs = parseAttrs(open.attrs);
state.inside = true;
state.identifier = attrs['identifier'] ?? '';
state.artifactType = attrs['type'] ?? '';
state.title = attrs['title'] ?? '';
state.content = '';
state.buffer = state.buffer.slice(open.end);
yield {
type: 'artifact:start',
identifier: state.identifier,
artifactType: state.artifactType,
title: state.title,
};
continue;
}
const closeIdx = state.buffer.indexOf(CLOSE_TAG);
if (closeIdx === -1) {
// Hold back enough bytes to detect a partial close tag at the tail.
const flushUpTo = state.buffer.length - (CLOSE_TAG.length - 1);
if (flushUpTo > 0) {
const chunk = state.buffer.slice(0, flushUpTo);
state.content += chunk;
state.buffer = state.buffer.slice(flushUpTo);
yield { type: 'artifact:chunk', identifier: state.identifier, delta: chunk };
}
return;
}
const finalChunk = state.buffer.slice(0, closeIdx);
if (finalChunk.length > 0) {
state.content += finalChunk;
yield { type: 'artifact:chunk', identifier: state.identifier, delta: finalChunk };
}
yield { type: 'artifact:end', identifier: state.identifier, fullContent: state.content };
state.buffer = state.buffer.slice(closeIdx + CLOSE_TAG.length);
state.inside = false;
state.identifier = '';
state.artifactType = '';
state.title = '';
state.content = '';
}
}
function* flush(): Generator<ArtifactEvent> {
if (state.inside) {
if (state.buffer.length > 0) {
state.content += state.buffer;
yield { type: 'artifact:chunk', identifier: state.identifier, delta: state.buffer };
state.buffer = '';
}
yield { type: 'artifact:end', identifier: state.identifier, fullContent: state.content };
} else if (state.buffer.length > 0) {
yield { type: 'text', delta: state.buffer };
}
state.buffer = '';
state.inside = false;
}
return { feed, flush };
}
+275
View File
@@ -0,0 +1,275 @@
/**
* Parser for inline <question-form>...</question-form> blocks the agent
* emits to ask the user a structured set of clarifying questions before
* starting design work.
*
* Body must be JSON. Example:
*
* <question-form id="discovery" title="Quick brief">
* {
* "questions": [
* { "id": "platform", "label": "Platform", "type": "radio",
* "options": ["Mobile (iOS/Android)", "Desktop web", "Responsive"],
* "required": true },
* { "id": "audience", "label": "Primary audience", "type": "text",
* "placeholder": "e.g. SaaS buyers" }
* ]
* }
* </question-form>
*
* Splits a final assistant text payload into ordered segments — prose +
* forms — so AssistantMessage can render the form inline.
*/
export type QuestionType =
| 'radio'
| 'checkbox'
| 'select'
| 'text'
| 'textarea'
| 'direction-cards';
/**
* Rich card metadata for a single `direction-cards` option. The picker
* renders a swatch row, a serif/sans type sample, a mood blurb, and a
* "refs" line so users can scan visually instead of squinting at radio
* labels. The agent emits this metadata inline in the form JSON so the
* UI can render without additional fetches.
*/
export interface DirectionCard {
/** The radio value — what comes back in the user's answer. Match a label in `options`. */
id: string;
/** Short headline on the card (e.g. "Editorial — Monocle / FT magazine"). */
label: string;
/** One- or two-sentence mood blurb. */
mood: string;
/** Real-world exemplars (≤ 4). */
references: string[];
/** 4–6 swatch hex / OKLch strings for the palette row. */
palette: string[];
/** Display (headline) font stack, used to render the live "Aa" sample. */
displayFont: string;
/** Body font stack, used to render the secondary sample. */
bodyFont: string;
}
export interface FormQuestion {
id: string;
label: string;
type: QuestionType;
options?: string[];
placeholder?: string;
required?: boolean;
help?: string;
defaultValue?: string | string[];
/** Only applies when `type === 'checkbox'`. Caps the number of selected options. */
maxSelections?: number;
/** Only present when `type === 'direction-cards'`. Mapped to options by `id`. */
cards?: DirectionCard[];
}
export interface QuestionForm {
id: string;
title: string;
description?: string;
questions: FormQuestion[];
submitLabel?: string;
}
export type FormSegment =
| { kind: 'text'; text: string }
| { kind: 'form'; form: QuestionForm; raw: string };
const OPEN_RE = /<question-form\b([^>]*)>/i;
const CLOSE_TAG = '</question-form>';
export function splitOnQuestionForms(input: string): FormSegment[] {
const out: FormSegment[] = [];
let cursor = 0;
// Scan repeatedly for <question-form> opens; for each, locate the
// matching close tag and try to parse the JSON body. Anything that
// doesn't parse cleanly stays in the prose stream.
while (cursor < input.length) {
const slice = input.slice(cursor);
const m = OPEN_RE.exec(slice);
if (!m) {
out.push({ kind: 'text', text: slice });
break;
}
const openStart = cursor + m.index;
const openEnd = openStart + m[0].length;
const closeIdx = input.indexOf(CLOSE_TAG, openEnd);
if (closeIdx === -1) {
// Unterminated — leave the rest as prose so we don't swallow it.
out.push({ kind: 'text', text: slice });
break;
}
if (openStart > cursor) {
out.push({ kind: 'text', text: input.slice(cursor, openStart) });
}
const body = input.slice(openEnd, closeIdx);
const attrs = parseAttrs(m[1] ?? '');
const form = tryParseForm(body, attrs);
if (form) {
out.push({ kind: 'form', form, raw: input.slice(openStart, closeIdx + CLOSE_TAG.length) });
} else {
// Malformed — keep raw text so the user can still see it.
out.push({ kind: 'text', text: input.slice(openStart, closeIdx + CLOSE_TAG.length) });
}
cursor = closeIdx + CLOSE_TAG.length;
}
return out;
}
function parseAttrs(raw: string): Record<string, string> {
const re = /(\w+)\s*=\s*(?:"([^"]*)"|'([^']*)')/g;
const out: Record<string, string> = {};
let m: RegExpExecArray | null;
while ((m = re.exec(raw)) !== null) {
out[m[1] as string] = (m[2] ?? m[3] ?? '') as string;
}
return out;
}
function tryParseForm(body: string, attrs: Record<string, string>): QuestionForm | null {
const trimmed = body.trim();
if (!trimmed) return null;
// Allow the JSON to be wrapped in a fenced ```json block — common when
// the model echoes its own indented body.
const stripped = trimmed
.replace(/^```(?:json)?\s*/i, '')
.replace(/```\s*$/i, '')
.trim();
let data: unknown;
try {
data = JSON.parse(stripped);
} catch {
return null;
}
if (!data || typeof data !== 'object') return null;
const obj = data as Record<string, unknown>;
const rawQuestions = Array.isArray(obj.questions) ? obj.questions : null;
if (!rawQuestions) return null;
const questions: FormQuestion[] = [];
rawQuestions.forEach((q, i) => {
if (!q || typeof q !== 'object') return;
const qo = q as Record<string, unknown>;
const id =
typeof qo.id === 'string' && qo.id.trim().length > 0
? qo.id.trim()
: `q${i + 1}`;
const label = typeof qo.label === 'string' ? qo.label : id;
const type = normalizeType(qo.type);
const options = Array.isArray(qo.options)
? qo.options.filter((o): o is string => typeof o === 'string')
: undefined;
const placeholder = typeof qo.placeholder === 'string' ? qo.placeholder : undefined;
const help = typeof qo.help === 'string' ? qo.help : undefined;
const required = qo.required === true;
const maxSelections =
typeof qo.maxSelections === 'number' &&
Number.isInteger(qo.maxSelections) &&
qo.maxSelections > 0
? qo.maxSelections
: undefined;
const cards = parseDirectionCards(qo.cards);
const defaultValue =
typeof qo.defaultValue === 'string'
? qo.defaultValue
: Array.isArray(qo.defaultValue)
? qo.defaultValue.filter((v): v is string => typeof v === 'string')
: typeof qo.default === 'string'
? qo.default
: undefined;
questions.push({
id,
label,
type,
...(options ? { options } : {}),
...(placeholder ? { placeholder } : {}),
...(help ? { help } : {}),
...(required ? { required } : {}),
...(defaultValue !== undefined ? { defaultValue } : {}),
...(maxSelections !== undefined && type === 'checkbox' ? { maxSelections } : {}),
...(cards ? { cards } : {}),
});
});
if (questions.length === 0) return null;
const id = attrs.id ?? (typeof obj.id === 'string' ? obj.id : 'discovery');
const title =
attrs.title ?? (typeof obj.title === 'string' ? obj.title : 'A few quick questions');
const description = typeof obj.description === 'string' ? obj.description : undefined;
const submitLabel = typeof obj.submitLabel === 'string' ? obj.submitLabel : undefined;
return {
id,
title,
questions,
...(description ? { description } : {}),
...(submitLabel ? { submitLabel } : {}),
};
}
function normalizeType(raw: unknown): QuestionType {
if (typeof raw !== 'string') return 'text';
const lower = raw.toLowerCase().trim();
if (lower === 'radio' || lower === 'single' || lower === 'choice') return 'radio';
if (lower === 'checkbox' || lower === 'multi' || lower === 'multiple') return 'checkbox';
if (lower === 'select' || lower === 'dropdown') return 'select';
if (lower === 'textarea' || lower === 'long' || lower === 'paragraph') return 'textarea';
if (
lower === 'direction-cards' ||
lower === 'directions' ||
lower === 'cards' ||
lower === 'direction'
)
return 'direction-cards';
return 'text';
}
function parseDirectionCards(raw: unknown): DirectionCard[] | undefined {
if (!Array.isArray(raw)) return undefined;
const out: DirectionCard[] = [];
for (const entry of raw) {
if (!entry || typeof entry !== 'object') continue;
const e = entry as Record<string, unknown>;
const id = typeof e.id === 'string' && e.id.trim().length > 0 ? e.id.trim() : null;
const label = typeof e.label === 'string' ? e.label : null;
if (id === null || label === null) continue;
const mood = typeof e.mood === 'string' ? e.mood : '';
const references = Array.isArray(e.references)
? e.references.filter((r): r is string => typeof r === 'string').slice(0, 6)
: [];
const palette = Array.isArray(e.palette)
? e.palette.filter((p): p is string => typeof p === 'string').slice(0, 8)
: [];
const displayFont = typeof e.displayFont === 'string' ? e.displayFont : 'Georgia, serif';
const bodyFont =
typeof e.bodyFont === 'string'
? e.bodyFont
: '-apple-system, system-ui, sans-serif';
out.push({ id, label, mood, references, palette, displayFont, bodyFont });
}
return out.length > 0 ? out : undefined;
}
/**
* Format a finished set of answers into a prose user message that the
* agent can read on its next turn. The shape is stable enough that the
* agent can recognise "the form was answered" without us emitting any
* structured wrapper.
*/
export function formatFormAnswers(
form: QuestionForm,
answers: Record<string, string | string[]>,
): string {
const lines: string[] = [];
lines.push(`[form answers — ${form.id}]`);
for (const q of form.questions) {
const v = answers[q.id];
let display: string;
if (Array.isArray(v)) display = v.length > 0 ? v.join(', ') : '(skipped)';
else if (typeof v === 'string') display = v.trim().length > 0 ? v.trim() : '(skipped)';
else display = '(skipped)';
lines.push(`- ${q.label}: ${display}`);
}
return lines.join('\n');
}
+108
View File
@@ -0,0 +1,108 @@
import { inferLegacyManifest } from './manifest';
import { renderMarkdownToSafeHtml } from './markdown';
import type { ArtifactManifest, ArtifactRendererId } from './types';
import type { ProjectFile } from '../types';
export interface ArtifactRendererContext {
file: ProjectFile;
isDeckHint: boolean;
}
export interface ArtifactRenderer {
id: ArtifactRendererId;
/**
* Whether this renderer can receive partial content during streaming.
* - true + renderPartial defined → renderer produces useful intermediate output
* - true without renderPartial → renderer tolerates partial content but
* should be considered visually meaningful only when status === "complete"
* - false → consumer should show skeleton/loading state until status === "complete"
*/
supportsStreaming: boolean;
renderPartial?: (content: string) => string;
canRender: (ctx: ArtifactRendererContext) => boolean;
}
export interface ArtifactRenderMatch {
renderer: ArtifactRenderer;
manifest: ArtifactManifest;
}
function resolveManifest(file: ProjectFile): ArtifactManifest | null {
return file.artifactManifest ?? inferLegacyManifest({ entry: file.name });
}
export const HtmlRenderer: ArtifactRenderer = {
id: 'html',
supportsStreaming: false,
canRender: ({ file, isDeckHint }) => {
const manifest = resolveManifest(file);
if (!manifest) return false;
if (manifest.kind === 'deck' || manifest.renderer === 'deck-html') return false;
if (manifest.renderer === 'html' || manifest.kind === 'html') return true;
return file.kind === 'html' && !isDeckHint;
},
};
export const DeckHtmlRenderer: ArtifactRenderer = {
id: 'deck-html',
supportsStreaming: false,
canRender: ({ file, isDeckHint }) => {
const manifest = resolveManifest(file);
if (!manifest) return false;
if (manifest.kind === 'deck' || manifest.renderer === 'deck-html') return true;
return file.kind === 'html' && isDeckHint;
},
};
export const ReactComponentRenderer: ArtifactRenderer = {
id: 'react-component',
supportsStreaming: false,
canRender: ({ file }) => {
const manifest = resolveManifest(file);
if (!manifest) return false;
return manifest.kind === 'react-component' || manifest.renderer === 'react-component';
},
};
export const MarkdownRenderer: ArtifactRenderer = {
id: 'markdown',
supportsStreaming: true,
renderPartial: renderMarkdownToSafeHtml,
canRender: ({ file }) => {
const manifest = resolveManifest(file);
if (!manifest) return false;
if (manifest.renderer === 'markdown' || manifest.kind === 'markdown-document') return true;
return file.kind === 'text' && /\.md$/i.test(file.name);
},
};
export const SvgRenderer: ArtifactRenderer = {
id: 'svg',
supportsStreaming: false,
canRender: ({ file }) => {
const manifest = resolveManifest(file);
if (!manifest) return false;
if (manifest.renderer === 'svg' || manifest.kind === 'svg') return true;
return (file.kind === 'image' || file.kind === 'sketch') && /\.svg$/i.test(file.name);
},
};
export class RendererRegistry {
constructor(private readonly renderers: ArtifactRenderer[]) {}
resolve(ctx: ArtifactRendererContext): ArtifactRenderMatch | null {
const manifest = resolveManifest(ctx.file);
if (!manifest) return null;
const renderer = this.renderers.find((item) => item.canRender(ctx));
if (!renderer) return null;
return { renderer, manifest };
}
}
export const artifactRendererRegistry = new RendererRegistry([
ReactComponentRenderer,
DeckHtmlRenderer,
HtmlRenderer,
MarkdownRenderer,
SvgRenderer,
]);
+55
View File
@@ -0,0 +1,55 @@
export type ArtifactKind =
| 'html'
| 'deck'
| 'react-component'
| 'markdown-document'
| 'svg'
| 'diagram'
| 'code-snippet'
| 'mini-app'
| 'design-system';
export type ArtifactRendererId =
| 'html'
| 'deck-html'
| 'react-component'
| 'markdown'
| 'svg'
| 'diagram'
| 'code'
| 'mini-app'
| 'design-system';
export type ArtifactExportKind =
| 'html'
| 'pdf'
| 'zip'
| 'pptx'
| 'jsx'
| 'md'
| 'svg'
| 'txt';
export type ArtifactStatus = 'streaming' | 'complete' | 'error';
export interface ArtifactManifest {
version: 1;
kind: ArtifactKind;
title: string;
entry: string;
renderer: ArtifactRendererId;
// Optional for backward compatibility with older manifests.
// Frontend + daemon normalize missing status to "complete".
status?: ArtifactStatus;
exports: ArtifactExportKind[];
/**
* Reserved for future multi-file artifact packaging.
* Current generators only persist a single entry file, so this is not yet populated.
*/
supportingFiles?: string[];
createdAt?: string;
updatedAt?: string;
sourceSkillId?: string;
designSystemId?: string | null;
metadata?: Record<string, unknown>;
}
+269
View File
@@ -0,0 +1,269 @@
import type {
ChatCommentAttachment,
ChatMessage,
PreviewCommentMember,
PreviewComment,
PreviewCommentSelectionKind,
PreviewCommentTarget,
} from './types';
export interface PreviewCommentSnapshot {
filePath: string;
elementId: string;
selector: string;
label: string;
text: string;
position: { x: number; y: number; width: number; height: number };
htmlHint: string;
selectionKind?: PreviewCommentSelectionKind;
memberCount?: number;
podMembers?: PreviewCommentMember[];
}
export interface CommentOverlayBounds {
left: number;
top: number;
width: number;
height: number;
}
export function targetFromSnapshot(snapshot: PreviewCommentSnapshot): PreviewCommentTarget {
const podMembers = normalizeMembers(snapshot.podMembers);
return {
filePath: snapshot.filePath,
elementId: snapshot.elementId,
selector: snapshot.selector,
label: snapshot.label,
text: trimContextText(snapshot.text),
position: normalizePosition(snapshot.position),
htmlHint: trimHtmlHint(snapshot.htmlHint),
selectionKind: snapshot.selectionKind === 'pod' ? 'pod' : 'element',
memberCount:
snapshot.selectionKind === 'pod'
? (podMembers.length > 0
? podMembers.length
: Number.isFinite(snapshot.memberCount)
? Math.round(snapshot.memberCount as number)
: 0)
: undefined,
podMembers: podMembers.length > 0 ? podMembers : undefined,
};
}
export function overlayBoundsFromSnapshot(
snapshot: PreviewCommentSnapshot,
scale: number,
): CommentOverlayBounds {
const safeScale = Number.isFinite(scale) && scale > 0 ? scale : 1;
const position = normalizePosition(snapshot.position);
return {
left: position.x * safeScale,
top: position.y * safeScale,
width: Math.max(1, position.width * safeScale),
height: Math.max(1, position.height * safeScale),
};
}
export function liveSnapshotForComment(
comment: PreviewComment,
snapshots: Map<string, PreviewCommentSnapshot>,
): PreviewCommentSnapshot | null {
const snapshot = snapshots.get(comment.elementId);
if (!snapshot || snapshot.filePath !== comment.filePath) return null;
return snapshot;
}
export function commentToAttachment(
comment: PreviewComment,
order: number,
): ChatCommentAttachment {
const podMembers = normalizeMembers(comment.podMembers);
return {
id: comment.id,
order,
filePath: comment.filePath,
elementId: comment.elementId,
selector: comment.selector,
label: comment.label,
comment: comment.note,
currentText: trimContextText(comment.text),
pagePosition: normalizePosition(comment.position),
htmlHint: trimHtmlHint(comment.htmlHint),
selectionKind: comment.selectionKind === 'pod' ? 'pod' : 'element',
memberCount:
comment.selectionKind === 'pod'
? (podMembers.length > 0
? podMembers.length
: typeof comment.memberCount === 'number'
? Math.round(comment.memberCount)
: 0)
: undefined,
podMembers: podMembers.length > 0 ? podMembers : undefined,
source: 'saved-comment',
};
}
export function commentsToAttachments(comments: PreviewComment[]): ChatCommentAttachment[] {
return comments.map((comment, index) => commentToAttachment(comment, index + 1));
}
export function buildBoardCommentAttachments(input: {
target: PreviewCommentTarget;
notes: string[];
}): ChatCommentAttachment[] {
const podMembers = normalizeMembers(input.target.podMembers);
const selectionKind = input.target.selectionKind === 'pod' ? 'pod' : 'element';
const memberCount =
selectionKind === 'pod'
? (podMembers.length > 0
? podMembers.length
: typeof input.target.memberCount === 'number'
? Math.round(input.target.memberCount)
: 0)
: undefined;
return input.notes
.map((note) => note.trim())
.filter(Boolean)
.map((note, index) => ({
id: `${input.target.elementId}-board-${index + 1}`,
order: index + 1,
filePath: input.target.filePath,
elementId: input.target.elementId,
selector: input.target.selector,
label: input.target.label,
comment: note,
currentText: trimContextText(input.target.text),
pagePosition: normalizePosition(input.target.position),
htmlHint: trimHtmlHint(input.target.htmlHint),
selectionKind,
memberCount,
podMembers: podMembers.length > 0 ? podMembers : undefined,
source: 'board-batch',
}));
}
export function messageContentWithCommentAttachments(
content: string,
commentAttachments: ChatCommentAttachment[],
): string {
if (commentAttachments.length === 0) return content;
const visibleContent = content.trim() || '(No extra typed instruction.)';
return `${visibleContent}${renderCommentAttachmentContext(commentAttachments)}`;
}
export function historyWithCommentAttachmentContext(
history: ChatMessage[],
messageId: string,
): ChatMessage[] {
return history.map((message) => {
const commentAttachments = message.commentAttachments ?? [];
if (message.id !== messageId || message.role !== 'user' || commentAttachments.length === 0) return message;
return {
...message,
content: messageContentWithCommentAttachments(message.content, commentAttachments),
};
});
}
export function mergeAttachedComments(
current: PreviewComment[],
next: PreviewComment,
): PreviewComment[] {
const byId = new Map(current.map((comment) => [comment.id, comment]));
byId.set(next.id, next);
return Array.from(byId.values());
}
export function removeAttachedComment(
current: PreviewComment[],
commentId: string,
): PreviewComment[] {
return current.filter((comment) => comment.id !== commentId);
}
export function simplePositionLabel(position: PreviewComment['position']): string {
const normalized = normalizePosition(position);
return `x${normalized.x} y${normalized.y}`;
}
export function selectionKindLabel(
selectionKind: PreviewCommentSelectionKind | undefined,
memberCount?: number,
): string {
if (selectionKind === 'pod') {
return memberCount && memberCount > 0 ? `Pod · ${memberCount} items` : 'Pod';
}
return 'Element';
}
export function trimContextText(value: string): string {
const text = String(value || '').replace(/\s+/g, ' ').trim();
return text.length > 160 ? `${text.slice(0, 157)}...` : text;
}
export function trimHtmlHint(value: string): string {
const text = String(value || '').replace(/\s+/g, ' ').trim();
return text.length > 180 ? `${text.slice(0, 177)}...` : text;
}
function renderCommentAttachmentContext(commentAttachments: ChatCommentAttachment[]): string {
const lines = [
'',
'',
'<attached-preview-comments>',
'Scope: apply the user request to the attached preview target by default. Preserve unrelated elements.',
];
commentAttachments.forEach((item) => {
const position = normalizePosition(item.pagePosition);
const selectionKind = item.selectionKind === 'pod' ? 'pod' : 'element';
lines.push(
'',
`${item.order}. ${item.elementId}`,
`targetKind: ${selectionKind}`,
`file: ${item.filePath}`,
`selector: ${item.selector}`,
`label: ${item.label || '(unlabeled)'}`,
`position: x${position.x} y${position.y} ${position.width}x${position.height}`,
`currentText: ${trimContextText(item.currentText || '') || '(empty)'}`,
`htmlHint: ${trimHtmlHint(item.htmlHint || '') || '(none)'}`,
`comment: ${item.comment}`,
);
if (selectionKind === 'pod') {
lines.push(`memberCount: ${item.memberCount || item.podMembers?.length || 0}`);
(item.podMembers ?? []).slice(0, 8).forEach((member, memberIndex) => {
lines.push(
`member.${memberIndex + 1}: ${member.elementId} | ${member.label || '(unlabeled)'} | ${member.selector}`,
);
});
}
});
lines.push('</attached-preview-comments>');
return lines.join('\n');
}
function normalizePosition(input: PreviewComment['position']): PreviewComment['position'] {
return {
x: finite(input?.x),
y: finite(input?.y),
width: finite(input?.width),
height: finite(input?.height),
};
}
function finite(value: number | undefined): number {
return Number.isFinite(value) ? Math.round(value as number) : 0;
}
function normalizeMembers(input: PreviewCommentMember[] | undefined): PreviewCommentMember[] {
if (!Array.isArray(input)) return [];
return input
.map((member) => ({
elementId: String(member.elementId || '').trim(),
selector: String(member.selector || '').trim(),
label: String(member.label || '').trim(),
text: trimContextText(String(member.text || '')),
position: normalizePosition(member.position),
htmlHint: trimHtmlHint(String(member.htmlHint || '')),
}))
.filter((member) => member.elementId && member.selector);
}
File diff suppressed because one or more lines are too long
+73
View File
@@ -0,0 +1,73 @@
import { useT } from '../i18n';
import type { AgentInfo, ExecMode } from '../types';
interface Props {
mode: ExecMode;
agents: AgentInfo[];
agentId: string | null;
daemonLive: boolean;
onModeChange: (mode: ExecMode) => void;
onAgentChange: (id: string) => void;
onRefresh: () => void;
}
export function AgentPicker({
mode,
agents,
agentId,
daemonLive,
onModeChange,
onAgentChange,
onRefresh,
}: Props) {
const t = useT();
const available = agents.filter((a) => a.available);
const currentAgent = agents.find((a) => a.id === agentId);
return (
<div className="picker agent-picker">
<span className="picker-label">{t('agentPicker.label')}</span>
<select
value={mode}
onChange={(e) => onModeChange(e.target.value as ExecMode)}
title={t('agentPicker.modeChoose')}
>
<option value="daemon" disabled={!daemonLive}>
{t('agentPicker.localCli')} {daemonLive ? '' : `· ${t('agentPicker.daemonOff')}`}
</option>
<option value="api">{t('agentPicker.byok')}</option>
</select>
{mode === 'daemon' ? (
<>
<select
value={agentId ?? ''}
onChange={(e) => onAgentChange(e.target.value)}
disabled={available.length === 0}
title={
currentAgent?.version
? `${currentAgent.name} · ${currentAgent.version}`
: t('agentPicker.selectAgent')
}
>
{available.length === 0 ? (
<option value="">{t('agentPicker.noAgents')}</option>
) : null}
{agents.map((a) => (
<option key={a.id} value={a.id} disabled={!a.available}>
{a.name}
{a.available ? '' : ` · ${t('agentPicker.notInstalled')}`}
</option>
))}
</select>
<button
onClick={onRefresh}
title={t('agentPicker.rescan')}
className="icon-btn"
>
↻
</button>
</>
) : null}
</div>
);
}
@@ -0,0 +1,64 @@
import type { ReactNode } from 'react';
import { useT } from '../i18n';
import { Icon } from './Icon';
interface Props {
actions?: ReactNode;
children?: ReactNode;
onBack?: () => void;
backLabel?: string;
}
export function AppChromeHeader({ actions, children, onBack, backLabel }: Props) {
const t = useT();
const resolvedBackLabel = backLabel ?? t('project.backToProjects');
return (
<header className="app-chrome-header">
<div className="app-chrome-traffic-space" aria-hidden />
<div className="app-chrome-brand" aria-label={t('app.brand')}>
<span className="app-chrome-mark" aria-hidden>
{/* decorative, parent has aria-label */}
<img src="/app-icon.svg" alt="" className="brand-mark-img" draggable={false} />
</span>
<span className="app-chrome-name">{t('app.brand')}</span>
</div>
{onBack ? (
<button
type="button"
className="app-chrome-back"
onClick={onBack}
title={resolvedBackLabel}
aria-label={resolvedBackLabel}
>
<Icon name="arrow-left" size={15} />
</button>
) : null}
{children ? <div className="app-chrome-content">{children}</div> : null}
<div className="app-chrome-drag" aria-hidden />
{actions ? <div className="app-chrome-actions">{actions}</div> : null}
</header>
);
}
export function SettingsIconButton({
onClick,
title,
ariaLabel,
}: {
onClick: () => void;
title: string;
ariaLabel: string;
}) {
return (
<button
type="button"
className="settings-icon-btn"
onClick={onClick}
title={title}
aria-label={ariaLabel}
>
<Icon name="settings" size={17} />
</button>
);
}
@@ -0,0 +1,802 @@
import { Fragment, useEffect, useMemo, useState } from 'react';
import { ToolCard } from './ToolCard';
import { renderMarkdown } from '../runtime/markdown';
import { projectFileUrl } from '../providers/registry';
import { splitOnQuestionForms, type QuestionForm } from '../artifacts/question-form';
import { QuestionFormView, parseSubmittedAnswers } from './QuestionForm';
import { Icon } from './Icon';
import { useT } from '../i18n';
import { unfinishedTodosFromEvents, type TodoItem } from '../runtime/todos';
import type { Dict } from '../i18n/types';
import { agentDisplayName, exactAgentDisplayName } from '../utils/agentLabels';
import { exactDateTime, messageTime, relativeTimeLong } from '../utils/chatTime';
import type { AgentEvent, ChatMessage, ProjectFile } from '../types';
type TranslateFn = (key: keyof Dict, vars?: Record<string, string | number>) => string;
interface Props {
message: ChatMessage;
streaming: boolean;
projectId: string | null;
projectFileNames?: Set<string>;
onRequestOpenFile?: (name: string) => void;
// True only for the most recent assistant message — gate question-form
// interactivity on this so older forms render as a locked "answered"
// capsule instead of being re-submittable.
isLast?: boolean;
// The user message that immediately follows this assistant turn (if
// any). Used to detect that a form was already answered so we can
// render its locked state with the user's picks visible.
nextUserContent?: string;
// Submit handler the form fires when the user picks answers — opaque
// to AssistantMessage; ProjectView wires it into onSend.
onSubmitForm?: (text: string) => void;
onContinueRemainingTasks?: (todos: TodoItem[]) => void;
}
/**
* Renders an assistant message as an interleaved flow of:
* - prose blocks (consecutive `text` events merged)
* - thinking blocks (collapsible)
* - grouped tool action cards — runs of consecutive same-name tools
* collapse into a single pill ("Editing ×3, Done") that expands to show
* the individual tool cards. Mirrors the chat surface in screenshot 9.
* - status pills
*/
export function AssistantMessage({
message,
streaming,
projectId,
projectFileNames,
onRequestOpenFile,
isLast,
nextUserContent,
onSubmitForm,
onContinueRemainingTasks,
}: Props) {
const t = useT();
const events = message.events ?? [];
const blocks = buildBlocks(events);
const usage = events.find((e) => e.kind === 'usage') as
| Extract<AgentEvent, { kind: 'usage' }>
| undefined;
const produced = message.producedFiles ?? [];
const roleLabel = assistantRoleLabel(message, t);
const unfinishedTodos = streaming ? [] : unfinishedTodosFromEvents(events);
const canContinueTodos =
!streaming && !!isLast && unfinishedTodos.length > 0 && !!onContinueRemainingTasks;
// Track which forms the user submitted in this session so we lock them
// immediately on click (without waiting for the parent to re-render).
const [locallySubmitted, setLocallySubmitted] = useState<Set<string>>(() => new Set());
return (
<div className="msg assistant">
<div className="role">
<span>{roleLabel}</span>
<MessageTimestamp message={message} t={t} />
</div>
<div className="assistant-flow">
{blocks.length === 0 && streaming ? (
<WaitingPill startedAt={message.startedAt} latestStatus={latestStatusLabel(events)} />
) : null}
{blocks.map((b, i) => {
if (b.kind === 'text')
return (
<ProseBlock
key={i}
text={b.text}
isLastAssistant={!!isLast}
streaming={streaming}
nextUserContent={nextUserContent}
locallySubmitted={locallySubmitted}
onSubmitForm={(formId, text) => {
setLocallySubmitted((prev) => {
const next = new Set(prev);
next.add(formId);
return next;
});
onSubmitForm?.(text);
}}
/>
);
if (b.kind === 'thinking') return <ThinkingBlock key={i} text={b.text} />;
if (b.kind === 'tool-group') {
return (
<ToolGroupCard
key={i}
items={b.items}
runStreaming={streaming}
projectFileNames={projectFileNames}
onRequestOpenFile={onRequestOpenFile}
/>
);
}
if (b.kind === 'status') return <StatusPill key={i} label={b.label} detail={b.detail} />;
return null;
})}
{!streaming && produced.length > 0 && projectId ? (
<ProducedFiles
files={produced}
projectId={projectId}
onRequestOpenFile={onRequestOpenFile}
/>
) : null}
{!streaming && unfinishedTodos.length > 0 ? (
<UnfinishedTodosPanel
todos={unfinishedTodos}
canContinue={canContinueTodos}
onContinue={() => onContinueRemainingTasks?.(unfinishedTodos)}
/>
) : null}
<AssistantFooter
streaming={streaming}
startedAt={message.startedAt}
endedAt={message.endedAt}
usage={usage}
hasUnfinishedTodos={unfinishedTodos.length > 0}
/>
</div>
</div>
);
}
function MessageTimestamp({ message, t }: { message: ChatMessage; t: TranslateFn }) {
const ts = messageTime(message);
if (!ts) return null;
return (
<time className="msg-time" dateTime={new Date(ts).toISOString()} title={exactDateTime(ts)}>
{relativeTimeLong(ts, t)}
</time>
);
}
export function assistantRoleLabel(message: ChatMessage, t: TranslateFn): string {
const model = assistantModelDetail(message);
const fromName = message.agentName?.trim();
if (fromName) return appendRoleModel(exactAgentDisplayName(fromName) ?? fromName, model);
const fromId = agentDisplayName(message.agentId);
if (fromId) return appendRoleModel(fromId, model);
const starting = message.events?.find(
(e) => e.kind === 'status' && e.label === 'starting' && e.detail,
) as Extract<AgentEvent, { kind: 'status' }> | undefined;
return appendRoleModel(agentDisplayName(starting?.detail) ?? t('assistant.role'), model);
}
function assistantModelDetail(message: ChatMessage): string | null {
const initializing = message.events?.find(
(e) => e.kind === 'status' && e.label === 'initializing' && e.detail,
) as Extract<AgentEvent, { kind: 'status' }> | undefined;
const detail = initializing?.detail?.trim();
if (!detail || detail === 'default') return null;
return detail;
}
function appendRoleModel(label: string, model: string | null): string {
if (!model || label.includes(' · ')) return label;
return `${label} · ${model}`;
}
function AssistantFooter({
streaming,
startedAt,
endedAt,
usage,
hasUnfinishedTodos,
}: {
streaming: boolean;
startedAt: number | undefined;
endedAt: number | undefined;
usage: Extract<AgentEvent, { kind: 'usage' }> | undefined;
hasUnfinishedTodos: boolean;
}) {
const t = useT();
const elapsed = useLiveElapsed(streaming, startedAt, endedAt);
if (!streaming && !elapsed && !usage && !hasUnfinishedTodos) return null;
return (
<div className="assistant-footer" data-unfinished={hasUnfinishedTodos ? 'true' : 'false'}>
<span className="dot" data-active={streaming ? 'true' : 'false'} />
<span className="assistant-label">
{streaming
? t('assistant.workingLabel')
: hasUnfinishedTodos
? t('assistant.unfinishedLabel')
: t('assistant.doneLabel')}
</span>
<span className="assistant-stats">
{elapsed}
{usage?.outputTokens != null
? ` · ${t('assistant.outTokens', { n: usage.outputTokens })}`
: ''}
{typeof usage?.costUsd === 'number'
? ` · $${usage.costUsd.toFixed(4)}`
: ''}
</span>
</div>
);
}
function UnfinishedTodosPanel({
todos,
canContinue,
onContinue,
}: {
todos: TodoItem[];
canContinue: boolean;
onContinue: () => void;
}) {
const t = useT();
const visible = todos.slice(0, 3);
const hiddenCount = todos.length - visible.length;
return (
<div className="unfinished-todos">
<div className="unfinished-todos-head">
<span className="unfinished-todos-title">
{t('assistant.unfinishedSummary', { n: todos.length })}
</span>
{canContinue ? (
<button type="button" className="unfinished-todos-continue" onClick={onContinue}>
{t('assistant.continueRemaining')}
</button>
) : null}
</div>
<ul className="unfinished-todos-list">
{visible.map((todo, i) => (
<li key={`${todo.status}-${todo.content}-${i}`}>
{todo.status === 'in_progress' && todo.activeForm ? todo.activeForm : todo.content}
</li>
))}
</ul>
{hiddenCount > 0 ? (
<div className="unfinished-todos-more">
{t('assistant.unfinishedMore', { n: hiddenCount })}
</div>
) : null}
</div>
);
}
function ProducedFiles({
files,
projectId,
onRequestOpenFile,
}: {
files: ProjectFile[];
projectId: string;
onRequestOpenFile?: (name: string) => void;
}) {
const t = useT();
return (
<div className="produced-files">
<div className="produced-files-label">{t('assistant.producedFiles')}</div>
<div className="produced-files-list">
{files.map((f) => (
<div key={f.name} className="produced-file">
<span className="produced-file-icon" aria-hidden>
<Icon name={kindIconName(f.kind)} size={14} />
</span>
<span className="produced-file-name" title={f.name}>{f.name}</span>
<span className="produced-file-size">{humanBytes(f.size)}</span>
<div className="produced-file-actions">
{onRequestOpenFile ? (
<button
type="button"
className="ghost"
onClick={() => onRequestOpenFile(f.name)}
>
{t('assistant.openFile')}
</button>
) : null}
<a
className="ghost-link"
href={projectFileUrl(projectId, f.name)}
download={f.name}
>
{t('assistant.downloadFile')}
</a>
</div>
</div>
))}
</div>
</div>
);
}
function kindIconName(
kind: ProjectFile['kind'],
): 'file-code' | 'image' | 'pencil' | 'file' {
if (kind === 'html') return 'file-code';
if (kind === 'image') return 'image';
if (kind === 'sketch') return 'pencil';
if (kind === 'code') return 'file-code';
return 'file';
}
function humanBytes(n: number): string {
if (n < 1024) return `${n} B`;
if (n < 1024 * 1024) return `${(n / 1024).toFixed(1)} KB`;
return `${(n / 1024 / 1024).toFixed(1)} MB`;
}
/**
* The pre-first-block waiting indicator. Shows "Waiting for first output…"
* normally, the latest status label (initializing / starting / thinking /
* streaming) once we have one, plus a soft hint after ~12 seconds telling
* the user they can stop the run if it really seems stuck.
*/
function WaitingPill({
startedAt,
latestStatus,
}: {
startedAt?: number;
latestStatus?: { label: string; detail?: string | undefined };
}) {
const t = useT();
const [now, setNow] = useState(() => Date.now());
useEffect(() => {
const id = window.setInterval(() => setNow(Date.now()), 1000);
return () => window.clearInterval(id);
}, []);
const elapsedSec = startedAt ? Math.max(0, Math.round((now - startedAt) / 1000)) : 0;
const slow = elapsedSec >= 12;
const label = latestStatus?.label
? humanizeStatus(latestStatus.label, t)
: t('assistant.waitingFirstOutput');
return (
<div className="op-waiting">
<span className="op-waiting-dot" aria-hidden />
<span className="op-waiting-label">{label}</span>
{latestStatus?.detail ? (
<code className="op-waiting-detail">{latestStatus.detail}</code>
) : null}
{slow ? (
<span className="op-waiting-hint">{t('assistant.slowHint')}</span>
) : null}
</div>
);
}
function humanizeStatus(label: string, t: (k: keyof Dict) => string): string {
if (label === 'initializing') return t('assistant.statusBootingAgent');
if (label === 'starting') return t('assistant.statusStarting');
if (label === 'requesting') return t('assistant.statusRequesting');
if (label === 'thinking') return t('assistant.statusThinking');
if (label === 'streaming') return t('assistant.statusStreaming');
return label.charAt(0).toUpperCase() + label.slice(1);
}
function latestStatusLabel(
events: AgentEvent[],
): { label: string; detail?: string | undefined } | undefined {
for (let i = events.length - 1; i >= 0; i--) {
const ev = events[i]!;
if (ev.kind === 'status') return { label: ev.label, detail: ev.detail };
}
return undefined;
}
function ProseBlock({
text,
isLastAssistant,
streaming,
nextUserContent,
locallySubmitted,
onSubmitForm,
}: {
text: string;
isLastAssistant: boolean;
streaming: boolean;
nextUserContent?: string;
locallySubmitted: Set<string>;
onSubmitForm: (formId: string, text: string) => void;
}) {
const cleaned = useMemo(() => stripArtifact(text), [text]);
const segments = useMemo(() => splitOnQuestionForms(cleaned), [cleaned]);
// Each text segment is further split on `<system-reminder>` blocks so
// those render as their own collapsible chip instead of raw markup.
const renderable = segments.flatMap((seg, idx): Array<
| { key: string; kind: 'text'; text: string }
| { key: string; kind: 'reminder'; text: string }
| { key: string; kind: 'form'; form: QuestionForm }
> => {
if (seg.kind === 'form') {
return [{ key: `f-${idx}`, kind: 'form', form: seg.form }];
}
if (seg.text.trim().length === 0) return [];
const sub = splitSystemReminders(seg.text);
return sub.map((s, j) => ({ key: `t-${idx}-${j}`, kind: s.kind, text: s.text }));
});
if (renderable.length === 0) return null;
return (
<div className="prose-block">
{renderable.map((seg) => {
if (seg.kind === 'reminder') {
return <SystemReminderBlock key={seg.key} text={seg.text} />;
}
if (seg.kind === 'text') {
return <Fragment key={seg.key}>{renderMarkdown(seg.text)}</Fragment>;
}
return (
<FormBlock
key={seg.key}
form={seg.form}
isLastAssistant={isLastAssistant}
streaming={streaming}
nextUserContent={nextUserContent}
locallySubmitted={locallySubmitted}
onSubmitForm={onSubmitForm}
/>
);
})}
</div>
);
}
function FormBlock({
form,
isLastAssistant,
streaming,
nextUserContent,
locallySubmitted,
onSubmitForm,
}: {
form: QuestionForm;
isLastAssistant: boolean;
streaming: boolean;
nextUserContent?: string;
locallySubmitted: Set<string>;
onSubmitForm: (formId: string, text: string) => void;
}) {
// Reconstruct prior answers from a follow-up user message so older
// forms in the scrollback render in their answered state.
const submittedFromHistory = useMemo(() => {
if (!nextUserContent) return null;
return parseSubmittedAnswers(form, nextUserContent);
}, [form, nextUserContent]);
const wasSubmittedLocally = locallySubmitted.has(form.id);
const interactive =
isLastAssistant && !streaming && !submittedFromHistory && !wasSubmittedLocally;
return (
<QuestionFormView
form={form}
interactive={interactive}
submittedAnswers={submittedFromHistory ?? undefined}
onSubmit={(text) => onSubmitForm(form.id, text)}
/>
);
}
function SystemReminderBlock({ text }: { text: string }) {
const t = useT();
const [open, setOpen] = useState(false);
const trimmed = text.trim();
const preview = trimmed.split('\n')[0]?.slice(0, 120) ?? '';
return (
<div className="system-reminder-block">
<button
className="system-reminder-toggle"
onClick={() => setOpen((o) => !o)}
type="button"
>
<span className="system-reminder-icon" aria-hidden>
<Icon name="settings" size={12} />
</span>
<span className="system-reminder-label">{t('assistant.systemReminder')}</span>
<span className="system-reminder-preview">
{open ? '' : preview}
{!open && trimmed.length > preview.length ? '…' : ''}
</span>
<span className="system-reminder-chev">
<Icon name={open ? 'chevron-down' : 'chevron-right'} size={11} />
</span>
</button>
{open ? <pre className="system-reminder-body">{trimmed}</pre> : null}
</div>
);
}
function ThinkingBlock({ text }: { text: string }) {
const t = useT();
const [open, setOpen] = useState(false);
const preview = text.trim().slice(0, 140);
return (
<div className="thinking-block">
<button className="thinking-toggle" onClick={() => setOpen((o) => !o)}>
<span className="thinking-icon" aria-hidden>
<Icon name="sparkles" size={12} />
</span>
<span className="thinking-label">{t('assistant.thinking')}</span>
<span className="thinking-preview">{open ? '' : preview}{!open && text.length > 140 ? '…' : ''}</span>
<span className="thinking-chev">
<Icon name={open ? 'chevron-down' : 'chevron-right'} size={11} />
</span>
</button>
{open ? <pre className="thinking-body">{text}</pre> : null}
</div>
);
}
function StatusPill({ label, detail }: { label: string; detail?: string | undefined }) {
return (
<div className="status-pill">
<span className="status-label">{label}</span>
{detail ? <span className="status-detail">{detail}</span> : null}
</div>
);
}
interface ToolItem {
use: Extract<AgentEvent, { kind: 'tool_use' }>;
result?: Extract<AgentEvent, { kind: 'tool_result' }>;
}
function ToolGroupCard({
items,
runStreaming,
projectFileNames,
onRequestOpenFile,
}: {
items: ToolItem[];
runStreaming: boolean;
projectFileNames?: Set<string>;
onRequestOpenFile?: (name: string) => void;
}) {
const t = useT();
const [open, setOpen] = useState(false);
// A run of one tool collapses to that tool's card directly so we don't
// wrap a single child in a redundant disclosure.
if (items.length === 1) {
return (
<ToolCard
use={items[0]!.use}
result={items[0]!.result}
runStreaming={runStreaming}
projectFileNames={projectFileNames}
onRequestOpenFile={onRequestOpenFile}
/>
);
}
const summary = summarizeGroup(items, t);
const running = items.some((it) => !it.result);
return (
<div className="action-card">
<button
type="button"
className={`action-card-toggle ${running ? 'running' : ''}`}
onClick={() => setOpen((o) => !o)}
aria-expanded={open}
>
<span className="ico" aria-hidden>{summary.icon}</span>
<span className="summary"><strong>{summary.label}</strong></span>
<span className="chev" aria-hidden>
<Icon name={open ? 'chevron-down' : 'chevron-right'} size={11} />
</span>
</button>
{open ? (
<div className="action-card-body">
{items.map((it, i) => (
<ToolCard
key={i}
use={it.use}
result={it.result}
runStreaming={runStreaming}
projectFileNames={projectFileNames}
onRequestOpenFile={onRequestOpenFile}
/>
))}
</div>
) : null}
</div>
);
}
function summarizeGroup(
items: ToolItem[],
t: (k: keyof Dict, vars?: Record<string, string | number>) => string,
): { label: string; icon: string } {
// All items share a tool family because the grouper only merges by name.
const name = items[0]?.use.name ?? '';
const family = toolFamily(name);
const icon = familyIcon(family);
const verbs = items.map((it) => verbForState(it, t));
// Roll the verbs into a comma-list with deduplicated last-state. So three
// edits whose results are all 'Done' render as "Editing ×3, Done"; mixed
// states render as "Editing, Reading, Done".
const head = countLabel(family, items.length, t);
const tail = lastStateLabel(verbs, t);
return { label: tail ? `${head}, ${tail}` : head, icon };
}
function toolFamily(name: string): string {
if (name === 'Edit' || name === 'str_replace_edit') return 'edit';
if (name === 'Write' || name === 'create_file') return 'write';
if (name === 'Read' || name === 'read_file') return 'read';
if (name === 'Glob' || name === 'list_files') return 'glob';
if (name === 'Grep') return 'grep';
if (name === 'Bash') return 'bash';
if (name === 'TodoWrite') return 'todo';
if (name === 'WebFetch' || name === 'web_fetch') return 'fetch';
if (name === 'WebSearch' || name === 'web_search') return 'search';
return name.toLowerCase();
}
function familyIcon(family: string): string {
if (family === 'edit') return '✎';
if (family === 'write') return '+';
if (family === 'read') return '↗';
if (family === 'glob' || family === 'grep' || family === 'search') return '⌕';
if (family === 'bash') return '$';
if (family === 'todo') return '☐';
if (family === 'fetch') return '↬';
return '·';
}
function countLabel(
family: string,
n: number,
t: (k: keyof Dict) => string,
): string {
const verb =
family === 'edit'
? t('assistant.verbEditing')
: family === 'write'
? t('assistant.verbWriting')
: family === 'read'
? t('assistant.verbReading')
: family === 'glob' || family === 'grep' || family === 'search'
? t('assistant.verbSearching')
: family === 'bash'
? t('assistant.verbRunning')
: family === 'todo'
? t('assistant.verbTodos')
: family === 'fetch'
? t('assistant.verbFetching')
: t('assistant.verbCalling');
return n > 1 ? `${verb} ×${n}` : verb;
}
function verbForState(
it: ToolItem,
t: (k: keyof Dict) => string,
): string {
if (!it.result) return t('assistant.verbRunning');
if (it.result.isError) return t('tool.error');
return t('tool.done');
}
function lastStateLabel(
verbs: string[],
t: (k: keyof Dict) => string,
): string {
const set = new Set(verbs);
if (set.size === 1) return verbs[verbs.length - 1] ?? '';
// Mixed states: surface error first, else running, else any.
if (set.has(t('tool.error'))) return t('tool.error');
if (set.has(t('assistant.verbRunning'))) return t('assistant.verbRunning');
return verbs[verbs.length - 1] ?? '';
}
type Block =
| { kind: 'text'; text: string }
| { kind: 'thinking'; text: string }
| { kind: 'tool-group'; items: ToolItem[] }
| { kind: 'status'; label: string; detail?: string | undefined };
/**
* Walk the event stream and build the rendering layout list. We additionally
* collapse runs of consecutive tool_uses sharing the same tool family into a
* single tool-group block so the chat surface stays compact during chains
* of edits / reads.
*/
function buildBlocks(events: AgentEvent[]): Block[] {
const out: Block[] = [];
const resultByToolId = new Map<string, Extract<AgentEvent, { kind: 'tool_result' }>>();
for (const ev of events) {
if (ev.kind === 'tool_result') resultByToolId.set(ev.toolUseId, ev);
}
for (const ev of events) {
if (ev.kind === 'text') {
const last = out[out.length - 1];
if (last && last.kind === 'text') last.text += ev.text;
else out.push({ kind: 'text', text: ev.text });
continue;
}
if (ev.kind === 'thinking') {
const last = out[out.length - 1];
if (last && last.kind === 'thinking') last.text += ev.text;
else out.push({ kind: 'thinking', text: ev.text });
continue;
}
if (ev.kind === 'tool_use') {
const result = resultByToolId.get(ev.id);
const item: ToolItem = result ? { use: ev, result } : { use: ev };
const last = out[out.length - 1];
const fam = toolFamily(ev.name);
if (
last &&
last.kind === 'tool-group' &&
toolFamily(last.items[last.items.length - 1]!.use.name) === fam
) {
last.items.push(item);
} else {
out.push({ kind: 'tool-group', items: [item] });
}
continue;
}
if (ev.kind === 'tool_result') continue;
if (ev.kind === 'status') {
if (ev.label === 'streaming' || ev.label === 'starting' || ev.label === 'requesting' || ev.label === 'thinking') continue;
const last = out[out.length - 1];
if (last && last.kind === 'status' && last.label === ev.label) continue;
out.push({ kind: 'status', label: ev.label, detail: ev.detail });
continue;
}
}
return out;
}
function stripArtifact(content: string): string {
const open = content.indexOf('<artifact');
if (open === -1) return content;
const closeTag = content.indexOf('>', open);
const end = content.indexOf('</artifact>', closeTag);
return (
content.slice(0, open) + content.slice(end === -1 ? content.length : end + 11)
).trim();
}
// Split prose into alternating plain-text and `<system-reminder>` segments.
// Claude Code injects `<system-reminder>...</system-reminder>` blocks into the
// agent's input (memory hints, tool reminders, etc.); the model occasionally
// echoes those tags into its response. Rendering the raw markup as prose
// looks broken — surface them as their own collapsible block, and strip stray
// orphan open/close tags from the surrounding text.
type ProseSegment = { kind: 'text' | 'reminder'; text: string };
function splitSystemReminders(input: string): ProseSegment[] {
const re = /<system-reminder>([\s\S]*?)<\/system-reminder>/g;
const out: ProseSegment[] = [];
let lastIndex = 0;
let m: RegExpExecArray | null;
while ((m = re.exec(input))) {
if (m.index > lastIndex) {
out.push({ kind: 'text', text: input.slice(lastIndex, m.index) });
}
out.push({ kind: 'reminder', text: m[1] ?? '' });
lastIndex = re.lastIndex;
}
if (lastIndex < input.length) {
out.push({ kind: 'text', text: input.slice(lastIndex) });
}
// Drop any orphan tags that survived (open without close, or vice versa)
// and discard text segments that became empty after stripping.
return out
.map((seg) =>
seg.kind === 'text'
? { ...seg, text: seg.text.replace(/<\/?system-reminder>/g, '') }
: seg,
)
.filter((seg) => seg.kind === 'reminder' || seg.text.trim().length > 0);
}
function useLiveElapsed(
streaming: boolean,
startedAt: number | undefined,
endedAt: number | undefined,
): string {
const [now, setNow] = useState(() => Date.now());
useEffect(() => {
if (!streaming) return;
const id = window.setInterval(() => setNow(Date.now()), 200);
return () => window.clearInterval(id);
}, [streaming]);
if (!startedAt) return '';
const end = streaming ? now : (endedAt ?? now);
const ms = Math.max(0, end - startedAt);
const s = ms / 1000;
if (s < 60) return `${s.toFixed(s < 10 ? 1 : 0)}s`;
const m = Math.floor(s / 60);
const rem = Math.floor(s - m * 60);
return `${m}m ${rem.toString().padStart(2, '0')}s`;
}
+296
View File
@@ -0,0 +1,296 @@
import { useEffect, useMemo, useRef, useState } from 'react';
import { useT } from '../i18n';
import { AgentIcon } from './AgentIcon';
import { Icon } from './Icon';
import { renderModelOptions } from './modelOptions';
import type { AgentInfo, AppConfig, ExecMode } from '../types';
import { apiProtocolLabel } from '../utils/apiProtocol';
interface Props {
config: AppConfig;
agents: AgentInfo[];
daemonLive: boolean;
onModeChange: (mode: ExecMode) => void;
onAgentChange: (id: string) => void;
onAgentModelChange: (
id: string,
choice: { model?: string; reasoning?: string },
) => void;
onOpenSettings: () => void;
onRefreshAgents: () => void;
onBack?: () => void;
}
/**
* Compact settings control at the right of the project header. Click opens a dropdown
* with current execution mode, the agent picker (when in daemon mode), and
* a Settings entry — replaces the wide AgentPicker + env-pill row.
*/
export function AvatarMenu({
config,
agents,
daemonLive,
onModeChange,
onAgentChange,
onAgentModelChange,
onOpenSettings,
onRefreshAgents,
onBack,
}: Props) {
const t = useT();
const [open, setOpen] = useState(false);
const wrapRef = useRef<HTMLDivElement | null>(null);
useEffect(() => {
if (!open) return;
const onClick = (e: MouseEvent) => {
if (!wrapRef.current) return;
if (!wrapRef.current.contains(e.target as Node)) setOpen(false);
};
const onKey = (e: KeyboardEvent) => {
if (e.key === 'Escape') setOpen(false);
};
document.addEventListener('mousedown', onClick);
document.addEventListener('keydown', onKey);
return () => {
document.removeEventListener('mousedown', onClick);
document.removeEventListener('keydown', onKey);
};
}, [open]);
const currentAgent = useMemo(
() => agents.find((a) => a.id === config.agentId) ?? null,
[agents, config.agentId],
);
const installedAgents = agents.filter((a) => a.available);
// Resolve the user's model + reasoning pick for the active agent. Falls
// back to the agent's first declared option (`'default'`) when the user
// hasn't touched the picker yet so the labels don't read as empty.
const currentChoice =
(config.agentId && config.agentModels?.[config.agentId]) || {};
const currentModelId =
currentChoice.model ?? currentAgent?.models?.[0]?.id ?? null;
const currentReasoningId =
currentChoice.reasoning ?? currentAgent?.reasoningOptions?.[0]?.id ?? null;
const currentModelLabel = currentAgent?.models?.find(
(m) => m.id === currentModelId,
)?.label;
return (
<div className="avatar-menu" ref={wrapRef}>
<button
type="button"
className="settings-icon-btn"
onClick={() => setOpen((v) => !v)}
aria-haspopup="menu"
aria-expanded={open}
title={t('avatar.title')}
aria-label={t('avatar.title')}
>
<Icon name="settings" size={17} />
</button>
{open ? (
<div className="avatar-popover" role="menu">
<div className="avatar-popover-head">
<span className="who">
{config.mode === 'daemon'
? t('avatar.localCli')
: apiProtocolLabel(config.apiProtocol)}
</span>
<span className="where">
{config.mode === 'api'
? safeHost(config.baseUrl)
: currentAgent
? `${currentAgent.name}${currentAgent.version ? ` · ${currentAgent.version}` : ''}${currentModelLabel && currentModelId !== 'default' ? ` · ${currentModelLabel}` : ''}`
: t('avatar.noAgentSelected')}
</span>
</div>
<button
type="button"
className="avatar-item"
onClick={() => {
onModeChange('daemon');
if (!daemonLive) {
// No daemon — let user know via settings page rather than
// silently failing.
setOpen(false);
onOpenSettings();
}
}}
disabled={!daemonLive && config.mode !== 'daemon'}
>
<span className="avatar-item-icon" aria-hidden>
<Icon name="file-code" size={14} />
</span>
<span>{t('avatar.useLocal')}</span>
{config.mode === 'daemon' ? (
<span className="avatar-item-meta">{t('avatar.metaActive')}</span>
) : !daemonLive ? (
<span className="avatar-item-meta">{t('avatar.metaOffline')}</span>
) : null}
</button>
<button
type="button"
className="avatar-item"
onClick={() => onModeChange('api')}
>
<span className="avatar-item-icon" aria-hidden>
<Icon name="link" size={14} />
</span>
<span>{t('avatar.useApi')}</span>
{config.mode === 'api' ? (
<span className="avatar-item-meta">{t('avatar.metaActive')}</span>
) : null}
</button>
{config.mode === 'daemon' && installedAgents.length > 0 ? (
<>
<div className="avatar-section-label">{t('avatar.codeAgent')}</div>
{installedAgents.map((a) => (
<button
type="button"
key={a.id}
className="avatar-item"
onClick={() => {
onAgentChange(a.id);
// Keep the popover open so the user can immediately
// pick a model for the agent they just chose.
}}
>
<AgentIcon id={a.id} size={18} />
<span>{a.name}</span>
{config.agentId === a.id ? (
<span className="avatar-item-meta">
{t('avatar.metaSelected')}
</span>
) : a.version ? (
<span className="avatar-item-meta">{a.version}</span>
) : null}
</button>
))}
{currentAgent &&
currentAgent.available &&
((currentAgent.models && currentAgent.models.length > 0) ||
(currentAgent.reasoningOptions &&
currentAgent.reasoningOptions.length > 0)) ? (
<div className="avatar-model-section">
<div className="avatar-section-label">
{t('avatar.modelSection')}
</div>
{currentAgent.models && currentAgent.models.length > 0 ? (
<label className="avatar-select-row">
<span className="avatar-select-label">
{t('avatar.modelLabel')}
</span>
<select
className="avatar-select"
value={currentModelId ?? ''}
onChange={(e) =>
onAgentModelChange(currentAgent.id, {
model: e.target.value,
})
}
>
{renderModelOptions(currentAgent.models)}
{/* When the user has typed a custom id in
Settings, surface it here too so the dropdown
actually shows the active selection rather
than collapsing to "Default". */}
{currentModelId &&
!currentAgent.models.some(
(m) => m.id === currentModelId,
) ? (
<option value={currentModelId}>
{currentModelId}{' '}
{t('avatar.customSuffix')}
</option>
) : null}
</select>
</label>
) : null}
{currentAgent.reasoningOptions &&
currentAgent.reasoningOptions.length > 0 ? (
<label className="avatar-select-row">
<span className="avatar-select-label">
{t('avatar.reasoningLabel')}
</span>
<select
className="avatar-select"
value={currentReasoningId ?? ''}
onChange={(e) =>
onAgentModelChange(currentAgent.id, {
reasoning: e.target.value,
})
}
>
{currentAgent.reasoningOptions.map((r) => (
<option key={r.id} value={r.id}>
{r.label}
</option>
))}
</select>
</label>
) : null}
</div>
) : null}
<button
type="button"
className="avatar-item"
onClick={() => {
onRefreshAgents();
}}
>
<span className="avatar-item-icon" aria-hidden>
<Icon name="reload" size={14} />
</span>
<span>{t('avatar.rescan')}</span>
</button>
</>
) : null}
<div style={{ height: 1, background: 'var(--border-soft)', margin: '4px 6px' }} />
<button
type="button"
className="avatar-item"
onClick={() => {
setOpen(false);
onOpenSettings();
}}
>
<span className="avatar-item-icon" aria-hidden>
<Icon name="settings" size={14} />
</span>
<span>{t('avatar.settings')}</span>
</button>
{onBack ? (
<button
type="button"
className="avatar-item"
onClick={() => {
setOpen(false);
onBack();
}}
>
<span className="avatar-item-icon" aria-hidden>
<Icon name="arrow-left" size={14} />
</span>
<span>{t('avatar.backToProjects')}</span>
</button>
) : null}
</div>
) : null}
</div>
);
}
function safeHost(url: string): string {
try {
return new URL(url).host;
} catch {
return url;
}
}
File diff suppressed because it is too large Load Diff
+767
View File
@@ -0,0 +1,767 @@
import { Fragment, useEffect, useRef, useState } from 'react';
import { useT } from '../i18n';
import type { Dict } from '../i18n/types';
import { projectRawUrl } from '../providers/registry';
import type { TodoItem } from '../runtime/todos';
import type { AppConfig, ChatAttachment, ChatCommentAttachment, ChatMessage, Conversation, PreviewComment, ProjectFile, ProjectMetadata } from '../types';
import { dayKey, dayLabel, exactDateTime, messageTime, relativeTimeLong } from '../utils/chatTime';
import { commentsToAttachments, simplePositionLabel } from '../comments';
import { AssistantMessage } from './AssistantMessage';
import { ChatComposer, type ChatComposerHandle } from './ChatComposer';
import { Icon } from './Icon';
type TranslateFn = (key: keyof Dict, vars?: Record<string, string | number>) => string;
// Featured starter prompts shown on the empty chat. Clicking one fills
// the composer (does not auto-send) so users can tweak before sending.
// Each prompt is intentionally dense — it should showcase ambitious
// layout, typographic, and information-design moves rather than a
// generic landing page.
const EXAMPLE_PROMPT_KEYS: Array<{
icon: string;
titleKey: keyof Dict;
tagKey: keyof Dict;
promptKey: keyof Dict;
}> = [
{
icon: '▤',
titleKey: 'chat.example1Title',
tagKey: 'chat.example1Tag',
promptKey: 'chat.example1Prompt',
},
{
icon: '▦',
titleKey: 'chat.example2Title',
tagKey: 'chat.example2Tag',
promptKey: 'chat.example2Prompt',
},
{
icon: '◈',
titleKey: 'chat.example3Title',
tagKey: 'chat.example3Tag',
promptKey: 'chat.example3Prompt',
},
];
interface Props {
messages: ChatMessage[];
streaming: boolean;
error: string | null;
projectId: string | null;
projectFiles: ProjectFile[];
// Names that exist in the project folder. Tool cards and chips use this
// set to decide whether a path can be opened as a tab.
projectFileNames?: Set<string>;
onEnsureProject: () => Promise<string | null>;
previewComments?: PreviewComment[];
attachedComments?: PreviewComment[];
onAttachComment?: (comment: PreviewComment) => void;
onDetachComment?: (commentId: string) => void;
onDeleteComment?: (commentId: string) => void;
onSend: (prompt: string, attachments: ChatAttachment[], commentAttachments: ChatCommentAttachment[]) => void;
onStop: () => void;
// Click-to-open chain: passes a basename up to ProjectView, which sets
// FileWorkspace's openRequest. Tool cards, attachment chips, and
// produced-file chips all call this.
onRequestOpenFile?: (name: string) => void;
initialDraft?: string;
// Question-form submissions become a normal user message; the parent
// routes that text through onSend (no attachments).
onSubmitForm?: (text: string) => void;
onContinueRemainingTasks?: (assistantMessage: ChatMessage, todos: TodoItem[]) => void;
// Header "+" button — kicks off ProjectView's create-conversation flow.
onNewConversation?: () => void;
// Conversation list that used to live in the topbar. The chat tab now
// owns the list so users can browse + switch conversations without
// leaving the pane.
conversations: Conversation[];
activeConversationId: string | null;
onSelectConversation: (id: string) => void;
onDeleteConversation: (id: string) => void;
onRenameConversation?: (id: string, title: string) => void;
// Composer settings/CLI button forwards to here. The dialog lives in App
// (it owns the AppConfig lifecycle) so we just pass the open trigger.
onOpenSettings?: () => void;
// Optional pet wiring forwarded straight through to ChatComposer's
// /pet button. When omitted the composer hides the button entirely.
petConfig?: AppConfig['pet'];
onAdoptPet?: (petId: string) => void;
onTogglePet?: () => void;
onOpenPetSettings?: () => void;
projectMetadata?: ProjectMetadata;
onProjectMetadataChange?: (metadata: ProjectMetadata) => void;
}
type Tab = 'chat' | 'comments';
export function ChatPane({
messages,
streaming,
error,
projectId,
projectFiles,
projectFileNames,
onEnsureProject,
previewComments = [],
attachedComments = [],
onAttachComment,
onDetachComment,
onDeleteComment,
onSend,
onStop,
onRequestOpenFile,
initialDraft,
onSubmitForm,
onContinueRemainingTasks,
onNewConversation,
conversations,
activeConversationId,
onSelectConversation,
onDeleteConversation,
onRenameConversation,
onOpenSettings,
petConfig,
onAdoptPet,
onTogglePet,
onOpenPetSettings,
projectMetadata,
onProjectMetadataChange,
}: Props) {
const t = useT();
const logRef = useRef<HTMLDivElement | null>(null);
const historyWrapRef = useRef<HTMLDivElement | null>(null);
const composerRef = useRef<ChatComposerHandle | null>(null);
const didInitialScrollRef = useRef(false);
const [tab, setTab] = useState<Tab>('chat');
const [showConvList, setShowConvList] = useState(false);
const [scrolledFromBottom, setScrolledFromBottom] = useState(false);
const lastAssistantId = [...messages].reverse().find((m) => m.role === 'assistant')?.id;
const hasActiveRunMessage = messages.some(
(m) => m.role === 'assistant' && isActiveRunStatus(m.runStatus),
);
// Map each assistant message id to the user message that follows it
// (if any) so QuestionFormView can render its locked "answered" state
// with the user's picks.
const nextUserContentByAssistantId = (() => {
const map = new Map<string, string>();
for (let i = 0; i < messages.length - 1; i++) {
const m = messages[i]!;
const next = messages[i + 1]!;
if (m.role === 'assistant' && next.role === 'user') {
map.set(m.id, next.content);
}
}
return map;
})();
useEffect(() => {
didInitialScrollRef.current = false;
}, [activeConversationId]);
useEffect(() => {
const el = logRef.current;
if (!el || didInitialScrollRef.current || messages.length === 0) return;
didInitialScrollRef.current = true;
requestAnimationFrame(() => {
el.scrollTop = el.scrollHeight;
setScrolledFromBottom(false);
});
}, [activeConversationId, messages.length]);
useEffect(() => {
const el = logRef.current;
if (!el) return;
// Auto-scroll only when we're already pinned near the bottom — preserves
// a user's scrollback position when they're reading earlier output while
// a new turn streams in.
const distance = el.scrollHeight - el.scrollTop - el.clientHeight;
if (distance < 80) {
el.scrollTop = el.scrollHeight;
}
}, [messages, error]);
useEffect(() => {
const el = logRef.current;
if (!el) return;
function onScroll() {
const target = logRef.current;
if (!target) return;
const distance =
target.scrollHeight - target.scrollTop - target.clientHeight;
setScrolledFromBottom(distance > 120);
}
el.addEventListener('scroll', onScroll);
return () => el.removeEventListener('scroll', onScroll);
}, []);
// Close the conversation history dropdown on outside click / Escape.
useEffect(() => {
if (!showConvList) return;
function onPointer(e: MouseEvent) {
const target = e.target as Node;
if (historyWrapRef.current?.contains(target)) return;
setShowConvList(false);
}
function onKey(e: KeyboardEvent) {
if (e.key === 'Escape') setShowConvList(false);
}
document.addEventListener('mousedown', onPointer);
document.addEventListener('keydown', onKey);
return () => {
document.removeEventListener('mousedown', onPointer);
document.removeEventListener('keydown', onKey);
};
}, [showConvList]);
const activeConversation =
conversations.find((c) => c.id === activeConversationId) ?? null;
function jumpToBottom() {
const el = logRef.current;
if (!el) return;
el.scrollTo({ top: el.scrollHeight, behavior: 'smooth' });
}
return (
<div className="pane">
<div className="chat-header">
<div className="chat-header-tabs" role="tablist">
<button
type="button"
role="tab"
aria-selected={tab === 'chat'}
className={`chat-header-tab${tab === 'chat' ? ' active' : ''}`}
onClick={() => setTab('chat')}
>
{t('chat.tabChat')}
</button>
<button
type="button"
role="tab"
aria-selected={tab === 'comments'}
className={`chat-header-tab${tab === 'comments' ? ' active' : ''}`}
onClick={() => setTab('comments')}
>
{t('chat.tabComments')}
</button>
</div>
<div className="chat-header-actions">
<div
className={`chat-history-wrap${showConvList ? ' open' : ''}`}
ref={historyWrapRef}
>
<button
type="button"
className="icon-only"
data-testid="conversation-history-trigger"
title={
activeConversation?.title
? `${t('chat.conversationsTitle')} · ${activeConversation.title}`
: t('chat.conversationsTitle')
}
aria-label={t('chat.conversationsAria')}
aria-haspopup="menu"
aria-expanded={showConvList}
onClick={() => setShowConvList((v) => !v)}
>
<Icon name="history" size={15} />
{conversations.length > 1 ? (
<span className="chat-history-badge">{conversations.length}</span>
) : null}
</button>
{showConvList ? (
<div className="chat-history-menu" role="menu" data-testid="conversation-history-menu">
<div className="chat-history-menu-head">
<span className="chat-history-menu-title">
{t('chat.conversationsHeading')}
</span>
{onNewConversation ? (
<button
type="button"
className="chat-history-new"
data-testid="conversation-history-new"
onClick={() => {
onNewConversation();
setShowConvList(false);
}}
>
<Icon name="plus" size={11} />
<span>{t('chat.new')}</span>
</button>
) : null}
</div>
<div className="chat-history-list" data-testid="conversation-list">
{conversations.length === 0 ? (
<div className="chat-history-empty">
{t('chat.emptyConversations')}
</div>
) : (
conversations.map((c) => (
<ConversationRow
key={c.id}
conversation={c}
active={c.id === activeConversationId}
onSelect={() => {
onSelectConversation(c.id);
setShowConvList(false);
}}
onDelete={() => onDeleteConversation(c.id)}
onRename={onRenameConversation}
t={t}
/>
))
)}
</div>
</div>
) : null}
</div>
<button
type="button"
className="icon-only"
data-testid="new-conversation"
title={t('chat.newConversationsTitle')}
aria-label={t('chat.newConversation')}
onClick={onNewConversation}
disabled={!onNewConversation}
>
<Icon name="plus" size={16} />
</button>
</div>
</div>
{tab === 'chat' ? (
<>
<div className="chat-log-wrap">
<div className="chat-log" ref={logRef}>
{messages.length === 0 ? (
<div className="chat-empty-wrap">
<div className="chat-empty">
<span className="chat-empty-title">
{t('chat.startTitle')}
</span>
<span className="chat-empty-hint">
{t('chat.startHint')}
</span>
</div>
<div className="chat-examples" role="list">
{EXAMPLE_PROMPT_KEYS.map((ex, i) => {
const title = t(ex.titleKey);
const tag = t(ex.tagKey);
const prompt = t(ex.promptKey);
return (
<button
key={ex.titleKey}
type="button"
role="listitem"
className="chat-example"
style={{ animationDelay: `${i * 70}ms` }}
onClick={() => composerRef.current?.setDraft(prompt)}
title={t('chat.fillInputTitle')}
>
<span className="chat-example-icon" aria-hidden>
{ex.icon}
</span>
<span className="chat-example-body">
<span className="chat-example-head">
<span className="chat-example-title">{title}</span>
<span className="chat-example-tag">{tag}</span>
</span>
<span className="chat-example-prompt">{prompt}</span>
</span>
<span className="chat-example-cta" aria-hidden>
↵
</span>
</button>
);
})}
</div>
</div>
) : null}
{messages.map((m, i) => {
const showDaySeparator = shouldShowDaySeparator(messages[i - 1], m);
const messageStreaming =
m.role === 'assistant' &&
((streaming && m.id === lastAssistantId) || isActiveRunStatus(m.runStatus));
return (
<Fragment key={m.id}>
{showDaySeparator ? <DaySeparator ts={messageTime(m)} /> : null}
{m.role === 'user' ? (
<UserMessage
message={m}
projectId={projectId}
projectFileNames={projectFileNames}
onRequestOpenFile={onRequestOpenFile}
t={t}
/>
) : (
<AssistantMessage
message={m}
streaming={messageStreaming}
projectId={projectId}
projectFileNames={projectFileNames}
onRequestOpenFile={onRequestOpenFile}
isLast={m.id === lastAssistantId}
nextUserContent={nextUserContentByAssistantId.get(m.id)}
onSubmitForm={onSubmitForm}
onContinueRemainingTasks={
m.id === lastAssistantId && onContinueRemainingTasks
? (todos) => onContinueRemainingTasks(m, todos)
: undefined
}
/>
)}
</Fragment>
);
})}
{error ? <div className="msg error">{error}</div> : null}
</div>
{scrolledFromBottom ? (
<button
type="button"
className="chat-jump-btn"
onClick={jumpToBottom}
title={t('chat.scrollToLatest')}
>
<Icon name="arrow-up" size={12} style={{ transform: 'rotate(180deg)' }} />
<span>{t('chat.jumpToLatest')}</span>
</button>
) : null}
</div>
<ChatComposer
ref={composerRef}
projectId={projectId}
projectFiles={projectFiles}
streaming={streaming || hasActiveRunMessage}
initialDraft={initialDraft}
onEnsureProject={onEnsureProject}
commentAttachments={commentsToAttachments(attachedComments)}
onRemoveCommentAttachment={onDetachComment}
onSend={onSend}
onStop={onStop}
onOpenSettings={onOpenSettings}
petConfig={petConfig}
onAdoptPet={onAdoptPet}
onTogglePet={onTogglePet}
onOpenPetSettings={onOpenPetSettings}
projectMetadata={projectMetadata}
onProjectMetadataChange={onProjectMetadataChange}
/>
</>
) : null}
{tab === 'comments' ? (
<CommentsPanel
comments={previewComments}
attachedComments={attachedComments}
onAttach={onAttachComment}
onDetach={onDetachComment}
onDelete={onDeleteComment}
t={t}
/>
) : null}
</div>
);
}
function CommentsPanel({
comments,
attachedComments,
onAttach,
onDetach,
onDelete,
t,
}: {
comments: PreviewComment[];
attachedComments: PreviewComment[];
onAttach?: (comment: PreviewComment) => void;
onDetach?: (commentId: string) => void;
onDelete?: (commentId: string) => void;
t: TranslateFn;
}) {
const attachedIds = new Set(attachedComments.map((comment) => comment.id));
const saved = comments.filter((comment) => !attachedIds.has(comment.id));
return (
<div className="comments-panel" data-testid="comments-panel">
<CommentSection
title={t('chat.comments.attached')}
empty={t('chat.comments.emptyAttached')}
comments={attachedComments}
actionLabel={t('chat.comments.remove')}
onAction={(comment) => onDetach?.(comment.id)}
attached
/>
<CommentSection
title={t('chat.comments.saved')}
empty={t('chat.comments.emptySaved')}
comments={saved}
actionLabel={t('chat.comments.add')}
onAction={(comment) => onAttach?.(comment)}
secondaryActionLabel={t('chat.comments.remove')}
onSecondaryAction={(comment) => onDelete?.(comment.id)}
/>
{saved.length > 0 ? (
<div className="comments-footer">
<button
type="button"
className="primary"
onClick={() => saved.forEach((comment) => onAttach?.(comment))}
>
{t('chat.comments.addAll')}
</button>
</div>
) : null}
</div>
);
}
function CommentSection({
title,
empty,
comments,
actionLabel,
onAction,
secondaryActionLabel,
onSecondaryAction,
attached,
}: {
title: string;
empty: string;
comments: PreviewComment[];
actionLabel: string;
onAction: (comment: PreviewComment) => void;
secondaryActionLabel?: string;
onSecondaryAction?: (comment: PreviewComment) => void;
attached?: boolean;
}) {
return (
<section className="comments-section">
<h3>{title}</h3>
{comments.length === 0 ? (
<p className="comments-empty">{empty}</p>
) : (
comments.map((comment) => (
<article
key={comment.id}
className={`comment-card${attached ? ' attached' : ''}`}
data-testid={`comment-card-${comment.elementId}`}
>
<div className="comment-card-top">
<strong>{comment.elementId}</strong>
<div className="comment-card-actions">
{secondaryActionLabel && onSecondaryAction ? (
<button
type="button"
className="comment-card-action danger"
onClick={() => onSecondaryAction(comment)}
>
{secondaryActionLabel}
</button>
) : null}
<button type="button" className="comment-card-action" onClick={() => onAction(comment)}>
{actionLabel}
</button>
</div>
</div>
<p>{comment.note}</p>
<div className="comment-card-meta">
<span>{comment.id}</span>
<span>{comment.filePath}</span>
<span>{comment.label}</span>
<span>{simplePositionLabel(comment.position)}</span>
</div>
</article>
))
)}
</section>
);
}
function isActiveRunStatus(status: ChatMessage['runStatus']): boolean {
return status === 'queued' || status === 'running';
}
function ConversationRow({
conversation,
active,
onSelect,
onDelete,
onRename,
t,
}: {
conversation: Conversation;
active: boolean;
onSelect: () => void;
onDelete: () => void;
onRename?: (id: string, title: string) => void;
t: TranslateFn;
}) {
const [editing, setEditing] = useState(false);
const [draft, setDraft] = useState(conversation.title ?? '');
const displayTitle =
conversation.title || t('chat.untitledConversation');
return (
<div
className={`chat-conv-item${active ? ' active' : ''}`}
data-testid={`conversation-item-${conversation.id}`}
>
{editing && onRename ? (
<input
autoFocus
className="chat-conv-rename-input"
value={draft}
onChange={(e) => setDraft(e.target.value)}
onBlur={() => {
onRename(conversation.id, draft);
setEditing(false);
}}
onKeyDown={(e) => {
if (e.key === 'Enter') {
onRename(conversation.id, draft);
setEditing(false);
} else if (e.key === 'Escape') {
setEditing(false);
}
}}
style={{ flex: 1, padding: '2px 6px', fontSize: 12 }}
/>
) : (
<button
type="button"
className="chat-conv-item-name"
data-testid={`conversation-select-${conversation.id}`}
style={{ background: 'transparent', border: 'none', padding: 0, textAlign: 'left' }}
onClick={onSelect}
onDoubleClick={() => {
if (!onRename) return;
setDraft(conversation.title ?? '');
setEditing(true);
}}
>
{displayTitle}
</button>
)}
<span className="chat-conv-item-meta">{relTime(conversation.updatedAt, t)}</span>
<button
type="button"
className="chat-conv-item-del"
data-testid={`conversation-delete-${conversation.id}`}
title={t('chat.deleteConversation')}
onClick={(e) => {
e.stopPropagation();
if (
confirm(t('chat.deleteConversationConfirm', { title: displayTitle }))
) {
onDelete();
}
}}
>
<Icon name="close" size={12} />
</button>
</div>
);
}
function UserMessage({
message,
projectId,
projectFileNames,
onRequestOpenFile,
t,
}: {
message: ChatMessage;
projectId: string | null;
projectFileNames?: Set<string>;
onRequestOpenFile?: (name: string) => void;
t: TranslateFn;
}) {
const attachments = message.attachments ?? [];
const commentAttachments = message.commentAttachments ?? [];
return (
<div className="msg user">
<div className="role">
<span>{t('chat.you')}</span>
<MessageTimestamp message={message} t={t} />
</div>
{attachments.length > 0 ? (
<div className="user-attachments">
{attachments.map((a) => {
const baseName = a.path.split('/').pop() || a.path;
const openable =
!!onRequestOpenFile &&
(projectFileNames ? projectFileNames.has(baseName) : true);
const handleOpen = openable
? () => onRequestOpenFile?.(baseName)
: undefined;
return (
<button
type="button"
key={a.path}
className={`user-attachment staged-${a.kind}${openable ? ' openable' : ''}`}
onClick={handleOpen}
disabled={!openable}
title={openable ? t('chat.openFile', { name: baseName }) : a.path}
>
{a.kind === 'image' && projectId ? (
<img src={projectRawUrl(projectId, a.path)} alt={a.name} />
) : (
<Icon name="file" size={14} />
)}
<span className="staged-name">{a.name}</span>
</button>
);
})}
</div>
) : null}
{commentAttachments.length > 0 ? (
<div className="user-attachments comment-history-attachments">
{commentAttachments.map((a) => (
<span key={a.id} className="user-attachment staged-comment">
<span className="staged-name">
<strong>{a.elementId}</strong>
<span>{a.comment}</span>
</span>
</span>
))}
</div>
) : null}
{message.content ? <div className="user-text">{message.content}</div> : null}
</div>
);
}
function DaySeparator({ ts }: { ts: number | undefined }) {
if (!ts) return null;
return (
<div className="chat-day-separator" role="separator">
<time dateTime={new Date(ts).toISOString()}>{dayLabel(ts)}</time>
</div>
);
}
function MessageTimestamp({ message, t }: { message: ChatMessage; t: TranslateFn }) {
const ts = messageTime(message);
if (!ts) return null;
return (
<time className="msg-time" dateTime={new Date(ts).toISOString()} title={exactDateTime(ts)}>
{relativeTimeLong(ts, t)}
</time>
);
}
function shouldShowDaySeparator(prev: ChatMessage | undefined, curr: ChatMessage): boolean {
const currTime = messageTime(curr);
if (!currTime) return false;
const prevTime = prev ? messageTime(prev) : undefined;
if (!prevTime) return true;
return dayKey(prevTime) !== dayKey(currTime);
}
function relTime(ts: number, t: TranslateFn): string {
const diff = Date.now() - ts;
const min = 60_000;
const hr = 60 * min;
const day = 24 * hr;
if (diff < min) return t('common.now');
if (diff < hr) return t('common.minutesShort', { n: Math.floor(diff / min) });
if (diff < day) return t('common.hoursShort', { n: Math.floor(diff / hr) });
if (diff < 7 * day) return t('common.daysShort', { n: Math.floor(diff / day) });
return new Date(ts).toLocaleDateString();
}
@@ -0,0 +1,231 @@
import { useEffect, useLayoutEffect, useRef, useState } from 'react';
import { createPortal } from 'react-dom';
import { useT } from '../i18n';
import type { Conversation } from '../types';
interface Props {
conversations: Conversation[];
activeId: string | null;
onSelect: (id: string) => void;
onCreate: () => void;
onDelete: (id: string) => void;
onRename: (id: string, title: string) => void;
}
// Pill + dropdown that lives in the project topbar. Click the pill to
// reveal the list of conversations for this project, with a "New" action
// at the top. Recency-ordered (server-side).
export function ConversationsMenu({
conversations,
activeId,
onSelect,
onCreate,
onDelete,
onRename,
}: Props) {
const t = useT();
const [open, setOpen] = useState(false);
const pillRef = useRef<HTMLButtonElement | null>(null);
const menuRef = useRef<HTMLDivElement | null>(null);
useEffect(() => {
if (!open) return;
function onDown(e: MouseEvent) {
const target = e.target as Node;
if (pillRef.current?.contains(target)) return;
if (menuRef.current?.contains(target)) return;
setOpen(false);
}
function onKey(e: KeyboardEvent) {
if (e.key === 'Escape') setOpen(false);
}
document.addEventListener('mousedown', onDown);
document.addEventListener('keydown', onKey);
return () => {
document.removeEventListener('mousedown', onDown);
document.removeEventListener('keydown', onKey);
};
}, [open]);
const active = conversations.find((c) => c.id === activeId) ?? null;
return (
<>
<button
ref={pillRef}
type="button"
className={`conv-pill ${open ? 'open' : ''}`}
onClick={() => setOpen((v) => !v)}
title={t('conv.switch')}
>
<span className="conv-pill-icon" aria-hidden>
💬
</span>
<span className="conv-pill-label">
{active ? active.title || t('conv.label') : t('conv.heading')}
</span>
<span className="conv-pill-count">{conversations.length}</span>
</button>
{open
? createPortal(
<ConversationsDropdown
menuRef={menuRef}
anchor={pillRef.current}
conversations={conversations}
activeId={activeId}
onClose={() => setOpen(false)}
onSelect={(id) => {
setOpen(false);
onSelect(id);
}}
onCreate={() => {
setOpen(false);
onCreate();
}}
onDelete={onDelete}
onRename={onRename}
/>,
document.body,
)
: null}
</>
);
}
function ConversationsDropdown({
menuRef,
anchor,
conversations,
activeId,
onClose: _onClose,
onSelect,
onCreate,
onDelete,
onRename,
}: {
menuRef: React.MutableRefObject<HTMLDivElement | null>;
anchor: HTMLElement | null;
conversations: Conversation[];
activeId: string | null;
onClose: () => void;
onSelect: (id: string) => void;
onCreate: () => void;
onDelete: (id: string) => void;
onRename: (id: string, title: string) => void;
}) {
const t = useT();
const [pos, setPos] = useState<{ top: number; left: number } | null>(null);
const [editing, setEditing] = useState<string | null>(null);
const [draft, setDraft] = useState('');
useLayoutEffect(() => {
if (!anchor) return;
function update() {
if (!anchor) return;
const r = anchor.getBoundingClientRect();
setPos({ top: r.bottom + 6, left: r.left });
}
update();
window.addEventListener('scroll', update, true);
window.addEventListener('resize', update);
return () => {
window.removeEventListener('scroll', update, true);
window.removeEventListener('resize', update);
};
}, [anchor]);
if (!pos) return null;
return (
<div
ref={menuRef}
className="conv-menu"
style={{ top: pos.top, left: pos.left }}
>
<div className="conv-menu-header">
<span>{t('conv.heading')}</span>
<button className="ghost conv-add-btn" onClick={onCreate}>
{t('conv.new')}
</button>
</div>
{conversations.length === 0 ? (
<div className="conv-menu-empty">{t('conv.empty')}</div>
) : (
<ul className="conv-list">
{conversations.map((c) => (
<li
key={c.id}
className={`conv-item ${c.id === activeId ? 'active' : ''}`}
>
{editing === c.id ? (
<input
autoFocus
className="conv-rename-input"
value={draft}
onChange={(e) => setDraft(e.target.value)}
onBlur={() => {
onRename(c.id, draft);
setEditing(null);
}}
onKeyDown={(e) => {
if (e.key === 'Enter') {
onRename(c.id, draft);
setEditing(null);
} else if (e.key === 'Escape') {
setEditing(null);
}
}}
/>
) : (
<button
className="conv-item-button"
onClick={() => onSelect(c.id)}
onDoubleClick={() => {
setEditing(c.id);
setDraft(c.title ?? '');
}}
title={t('conv.renameTooltip')}
>
<span className="conv-item-name">
{c.title || t('conv.untitled')}
</span>
<span className="conv-item-meta">{relTime(c.updatedAt, t)}</span>
</button>
)}
<button
className="conv-item-del"
title={t('conv.delete')}
onClick={(e) => {
e.stopPropagation();
if (
confirm(
t('conv.deleteConfirm', {
title: c.title || t('conv.untitled'),
}),
)
) {
onDelete(c.id);
}
}}
>
×
</button>
</li>
))}
</ul>
)}
</div>
);
}
function relTime(ts: number, t: ReturnType<typeof useT>): string {
const diff = Date.now() - ts;
const min = 60_000;
const hr = 60 * min;
const day = 24 * hr;
if (diff < min) return t('common.now');
if (diff < hr) return t('common.minutesShort', { n: Math.floor(diff / min) });
if (diff < day) return t('common.hoursShort', { n: Math.floor(diff / hr) });
if (diff < 7 * day) return t('common.daysShort', { n: Math.floor(diff / day) });
return new Date(ts).toLocaleDateString();
}
@@ -0,0 +1,675 @@
import { useEffect, useMemo, useRef, useState, useTransition } from 'react';
import { useT } from '../i18n';
import type { Dict } from '../i18n/types';
import { projectFileUrl } from '../providers/registry';
import type { LiveArtifactWorkspaceEntry, ProjectFile, ProjectFileKind } from '../types';
import { Icon } from './Icon';
import { LiveArtifactBadges } from './LiveArtifactBadges';
type TranslateFn = (key: keyof Dict, vars?: Record<string, string | number>) => string;
interface Props {
projectId: string;
files: ProjectFile[];
liveArtifacts: LiveArtifactWorkspaceEntry[];
onRefreshFiles: () => Promise<void> | void;
onOpenFile: (name: string) => void;
onOpenLiveArtifact: (tabId: LiveArtifactWorkspaceEntry['tabId']) => void;
onDeleteFile: (name: string) => void;
onUpload: () => void;
onUploadFiles: (files: File[]) => void;
onPaste: () => void;
onNewSketch: () => void;
}
type Section = 'pages' | 'scripts' | 'images' | 'sketches' | 'other';
const SECTION_LABEL_KEY: Record<Section, keyof Dict> = {
pages: 'designFiles.sectionPages',
scripts: 'designFiles.sectionScripts',
images: 'designFiles.sectionImages',
sketches: 'designFiles.sectionSketches',
other: 'designFiles.sectionOther',
};
const SECTION_ORDER: Section[] = ['pages', 'sketches', 'scripts', 'images', 'other'];
const INITIAL_SECTION_FILE_LIMIT = 30;
const SECTION_FILE_LIMIT_INCREMENT = 200;
/**
* Full-panel browser for a project's `.od/projects/<id>/` folder. Mirrors
* Claude Design's "Design Files" surface: grouped sections, hover-revealed
* row menu, drop-files footer, and (when a row is selected) a right-side
* preview pane. Triggered as a sticky first tab in FileWorkspace.
*/
export function DesignFilesPanel({
projectId,
files,
liveArtifacts,
onRefreshFiles,
onOpenFile,
onOpenLiveArtifact,
onDeleteFile,
onUpload,
onUploadFiles,
onPaste,
onNewSketch,
}: Props) {
const t = useT();
const [refreshing, setRefreshing] = useState(false);
const [draggingFiles, setDraggingFiles] = useState(false);
const dragDepthRef = useRef(0);
const [hover, setHover] = useState<string | null>(null);
const [menuPos, setMenuPos] = useState<{ name: string; top: number; left: number } | null>(null);
const MENU_ESTIMATED_HEIGHT = 115;
const MENU_SAFE_PADDING = 8;
const [preview, setPreview] = useState<string | null>(null);
const [sectionLimits, setSectionLimits] = useState<Partial<Record<Section, number>>>({});
const [isSectionExpansionPending, startSectionExpansion] = useTransition();
const [selected, setSelected] = useState<Set<string>>(new Set());
const grouped = useMemo(() => {
const groups: Record<Section, ProjectFile[]> = {
pages: [],
sketches: [],
scripts: [],
images: [],
other: [],
};
const sorted = [...files].sort((a, b) => b.mtime - a.mtime);
for (const f of sorted) {
groups[sectionFor(f)].push(f);
}
return groups;
}, [files]);
// Prune selections that no longer exist in the current file list
// (e.g. after a refresh or delete within the same project).
// Cross-project leaks are handled by the parent remounting this
// component via key={projectId}.
useEffect(() => {
setSelected((prev) => {
if (prev.size === 0) return prev;
const names = new Set(files.map((f) => f.name));
const next = new Set(prev);
let changed = false;
for (const n of next) {
if (!names.has(n)) {
next.delete(n);
changed = true;
}
}
return changed ? next : prev;
});
}, [files]);
const previewFile = useMemo(
() => files.find((f) => f.name === preview) ?? null,
[preview, files],
);
// Close the row menu on outside click / escape.
useEffect(() => {
if (!menuPos) return;
const close = () => setMenuPos(null);
const onKey = (e: KeyboardEvent) => {
if (e.key === 'Escape') close();
};
window.addEventListener('mousedown', close);
window.addEventListener('keydown', onKey);
return () => {
window.removeEventListener('mousedown', close);
window.removeEventListener('keydown', onKey);
};
}, [menuPos]);
async function handleRefresh() {
setRefreshing(true);
try {
await onRefreshFiles();
} finally {
setRefreshing(false);
}
}
function toggleSelect(name: string) {
setSelected((prev) => {
const next = new Set(prev);
if (next.has(name)) {
next.delete(name);
} else {
next.add(name);
}
return next;
});
}
function selectAllInSection(sectionFiles: ProjectFile[]) {
setSelected((prev) => {
const next = new Set(prev);
for (const f of sectionFiles) next.add(f.name);
return next;
});
}
function clearSection(sectionFiles: ProjectFile[]) {
setSelected((prev) => {
const next = new Set(prev);
for (const f of sectionFiles) next.delete(f.name);
return next;
});
}
async function handleBatchDownload() {
const fileList = [...selected];
if (fileList.length === 0) return;
try {
const resp = await fetch(`/api/projects/${encodeURIComponent(projectId)}/archive/batch`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ files: fileList }),
});
if (!resp.ok) {
const err = await resp.json().catch(() => null);
throw new Error(err?.message || `request failed (${resp.status})`);
}
const blob = await resp.blob();
const header = resp.headers.get('content-disposition') || '';
const star = /filename\*=UTF-8''([^;]+)/i.exec(header);
let filename = 'project.zip';
if (star && star[1]) {
try {
filename = decodeURIComponent(star[1]);
} catch {
filename = star[1];
}
}
const url = URL.createObjectURL(blob);
const a = document.createElement('a');
a.href = url;
a.download = filename;
document.body.appendChild(a);
a.click();
document.body.removeChild(a);
setTimeout(() => URL.revokeObjectURL(url), 60_000);
} catch (err) {
console.warn('[batchDownload] failed:', err);
}
}
function handleDrop(ev: React.DragEvent<HTMLDivElement>) {
ev.preventDefault();
dragDepthRef.current = 0;
setDraggingFiles(false);
const dropped = Array.from(ev.dataTransfer.files ?? []);
if (dropped.length > 0) onUploadFiles(dropped);
}
return (
<div className={`df-panel ${preview ? '' : 'no-preview'}`}>
<div className="df-main">
<div className="df-head">
<button
type="button"
className="icon-only"
onClick={() => setPreview(null)}
title={t('designFiles.up')}
aria-label={t('designFiles.back')}
>
↑
</button>
<button
type="button"
className="icon-only"
onClick={() => void handleRefresh()}
disabled={refreshing}
title={t('designFiles.refresh')}
aria-label={t('designFiles.refresh')}
>
<Icon name={refreshing ? 'spinner' : 'reload'} size={14} />
</button>
<span className="crumbs">{t('designFiles.crumbs')}</span>
{selected.size > 0 ? (
<div className="df-actions">
<button type="button" onClick={() => void handleBatchDownload()}>
<Icon name="download" size={13} />
<span>{t('designFiles.downloadSelected', { n: selected.size })}</span>
</button>
</div>
) : (
<div className="df-actions">
<button type="button" onClick={onNewSketch} title={t('designFiles.newSketch')}>
<Icon name="pencil" size={13} />
<span>{t('designFiles.newSketch')}</span>
</button>
<button type="button" onClick={onPaste} title={t('designFiles.paste.title')}>
<Icon name="copy" size={13} />
<span>{t('designFiles.paste.label')}</span>
</button>
<button
type="button"
data-testid="design-files-upload-trigger"
onClick={onUpload}
title={t('designFiles.upload.title')}
>
<Icon name="upload" size={13} />
<span>{t('designFiles.upload.label')}</span>
</button>
</div>
)}
</div>
<div className="df-body">
{files.length === 0 && liveArtifacts.length === 0 ? (
<div className="df-empty">{t('designFiles.empty')}</div>
) : (
<>
{liveArtifacts.length > 0 ? (
<div className="df-section" key="live-artifacts">
<div className="df-section-label">{t('designFiles.sectionLiveArtifacts')}</div>
{liveArtifacts.map((artifact) => (
<button
key={artifact.artifactId}
type="button"
data-testid={`design-file-row-${artifact.tabId}`}
className="df-row"
onDoubleClick={() => onOpenLiveArtifact(artifact.tabId)}
onClick={() => onOpenLiveArtifact(artifact.tabId)}
>
<span className="df-row-icon" data-kind="live-artifact" aria-hidden>
◉
</span>
<span className="df-row-name-wrap">
<span className="df-row-name">{artifact.title}</span>
<span className="df-row-sub">
<span>{t('designFiles.kindLiveArtifact')}</span>
<LiveArtifactBadges
compact
status={artifact.status}
refreshStatus={artifact.refreshStatus}
/>
</span>
</span>
<span className="df-row-time">
{relativeTime(Date.parse(artifact.updatedAt) || Date.now(), t)}
</span>
</button>
))}
</div>
) : null}
{SECTION_ORDER.filter((s) => grouped[s].length > 0).map((section) => {
const sectionFiles = grouped[section];
const visibleLimit = sectionLimits[section] ?? INITIAL_SECTION_FILE_LIMIT;
const visibleFiles = sectionFiles.slice(0, visibleLimit);
const hiddenCount = sectionFiles.length - visibleFiles.length;
return (
<div className="df-section" key={section}>
<div className="df-section-label">
{t(SECTION_LABEL_KEY[section])}
<span className="df-section-count">{sectionFiles.length}</span>
<button
type="button"
className="df-select-all"
onClick={(e) => {
e.stopPropagation();
selectAllInSection(sectionFiles);
}}
>
{t('designFiles.selectAll')}
</button>
{sectionFiles.some((f) => selected.has(f.name)) ? (
<button
type="button"
className="df-select-all"
onClick={(e) => {
e.stopPropagation();
clearSection(sectionFiles);
}}
>
{t('designFiles.clearSelection')}
</button>
) : null}
</div>
{visibleFiles.map((f) => {
const active = preview === f.name;
const isHovered = hover === f.name;
return (
<button
key={f.name}
type="button"
data-testid={`design-file-row-${f.name}`}
className={`df-row ${active ? 'active' : ''} ${selected.has(f.name) ? 'selected' : ''}`}
onMouseEnter={() => setHover(f.name)}
onMouseLeave={() => setHover((c) => (c === f.name ? null : c))}
onClick={() => setPreview(f.name)}
onDoubleClick={() => onOpenFile(f.name)}
>
<span
className="df-row-check"
onClick={(e) => {
e.stopPropagation();
toggleSelect(f.name);
}}
role="checkbox"
aria-checked={selected.has(f.name)}
tabIndex={0}
onKeyDown={(e) => {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
e.stopPropagation();
toggleSelect(f.name);
}
}}
>
{selected.has(f.name) ? '☑' : '☐'}
</span>
<span className="df-row-icon" data-kind={f.kind} aria-hidden>
{kindGlyph(f.kind)}
</span>
<span className="df-row-name-wrap">
<span className="df-row-name">{f.name}</span>
<span className="df-row-sub">{kindLabel(f.kind, t)}</span>
</span>
<span className="df-row-time">{relativeTime(f.mtime, t)}</span>
<span
data-testid={`design-file-menu-${f.name}`}
className="df-row-menu"
style={isHovered || active ? { opacity: 1 } : undefined}
role="button"
aria-label={t('designFiles.rowMenu')}
onClick={(e) => {
e.stopPropagation();
const rect = (e.target as HTMLElement)
.closest('.df-row-menu')
?.getBoundingClientRect();
if (!rect) return;
const viewportHeight = window.innerHeight;
const spaceBelow = viewportHeight - rect.bottom;
const spaceAbove = rect.top;
let top: number;
if (spaceBelow >= MENU_ESTIMATED_HEIGHT + MENU_SAFE_PADDING) {
top = rect.bottom + 4;
} else if (spaceAbove >= MENU_ESTIMATED_HEIGHT + MENU_SAFE_PADDING) {
top = rect.top - MENU_ESTIMATED_HEIGHT - 4;
} else {
top = Math.max(
MENU_SAFE_PADDING,
viewportHeight - MENU_ESTIMATED_HEIGHT - MENU_SAFE_PADDING,
);
}
const left = Math.max(MENU_SAFE_PADDING, rect.right - 160);
setMenuPos({
name: f.name,
top,
left,
});
}}
>
⋯
</span>
</button>
);
})}
{hiddenCount > 0 ? (
<button
type="button"
className="df-section-more"
disabled={isSectionExpansionPending}
aria-busy={isSectionExpansionPending}
onClick={() =>
startSectionExpansion(() => {
setSectionLimits((curr) => ({
...curr,
[section]: Math.min(
sectionFiles.length,
visibleLimit + SECTION_FILE_LIMIT_INCREMENT,
),
}));
})
}
>
<Icon name={isSectionExpansionPending ? 'spinner' : 'plus'} size={12} />
<span>
{t('designFiles.showMore', {
n: Math.min(hiddenCount, SECTION_FILE_LIMIT_INCREMENT),
})}
</span>
</button>
) : null}
</div>
);
})}
</>
)}
<div
className={`df-drop ${draggingFiles ? 'dragging' : ''}`}
onDragEnter={(ev) => {
ev.preventDefault();
dragDepthRef.current += 1;
setDraggingFiles(true);
}}
onDragOver={(ev) => {
ev.preventDefault();
ev.dataTransfer.dropEffect = 'copy';
}}
onDragLeave={(ev) => {
if (!ev.currentTarget.contains(ev.relatedTarget as Node | null)) {
dragDepthRef.current = 0;
setDraggingFiles(false);
return;
}
dragDepthRef.current = Math.max(0, dragDepthRef.current - 1);
if (dragDepthRef.current === 0) setDraggingFiles(false);
}}
onDrop={handleDrop}
>
<span className="label">{t('designFiles.dropTitle')}</span>
<span className="desc">{t('designFiles.dropDesc')}</span>
</div>
</div>
</div>
{preview && previewFile ? (
<DfPreview
projectId={projectId}
file={previewFile}
onOpen={() => onOpenFile(previewFile.name)}
onClose={() => setPreview(null)}
/>
) : null}
{menuPos ? (
<div
data-testid="design-file-menu-popover"
className="df-row-popover"
style={{ top: menuPos.top, left: menuPos.left }}
onMouseDown={(e) => e.stopPropagation()}
onClick={(e) => e.stopPropagation()}
>
<button
type="button"
onClick={(e) => {
e.stopPropagation();
const name = menuPos.name;
setMenuPos(null);
onOpenFile(name);
}}
>
{t('designFiles.openInTab')}
</button>
<a
href={projectFileUrl(projectId, menuPos.name)}
download={menuPos.name}
style={{ textDecoration: 'none' }}
>
<button
type="button"
onClick={(e) => {
e.stopPropagation();
setMenuPos(null);
}}
>
{t('designFiles.download')}
</button>
</a>
<button
type="button"
className="danger"
data-testid={`design-file-delete-${menuPos.name}`}
onClick={(e) => {
e.stopPropagation();
e.preventDefault();
const name = menuPos.name;
setMenuPos(null);
onDeleteFile(name);
}}
>
{t('designFiles.delete')}
</button>
</div>
) : null}
</div>
);
}
function DfPreview({
projectId,
file,
onOpen,
onClose,
}: {
projectId: string;
file: ProjectFile;
onOpen: () => void;
onClose: () => void;
}) {
const t = useT();
const url = projectFileUrl(projectId, file.name);
return (
<aside className="df-preview">
<div className="df-preview-thumb">
{file.kind === 'image' || file.kind === 'sketch' ? (
<img src={`${url}?v=${Math.round(file.mtime)}`} alt={file.name} />
) : file.kind === 'html' ? (
<iframe title={file.name} src={url} sandbox="allow-scripts" />
) : file.kind === 'video' ? (
<video
src={`${url}?v=${Math.round(file.mtime)}`}
controls
playsInline
preload="metadata"
/>
) : file.kind === 'audio' ? (
<audio src={`${url}?v=${Math.round(file.mtime)}`} controls preload="metadata" />
) : (
<div
style={{
width: '100%',
height: '100%',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
color: 'var(--text-faint)',
fontSize: 38,
}}
>
{kindGlyph(file.kind)}
</div>
)}
</div>
<div className="df-preview-meta" data-testid="design-file-preview">
<button
type="button"
className="ghost"
onClick={onOpen}
style={{ alignSelf: 'flex-start' }}
>
<Icon name="eye" size={13} />
<span>{t('designFiles.previewOpen')}</span>
</button>
<div className="df-preview-name">{file.name}</div>
<div className="df-preview-kind">{kindLabel(file.kind, t)}</div>
<div className="df-preview-stats">
{t('designFiles.modified', {
time: relativeTime(file.mtime, t),
size: humanBytes(file.size),
})}
</div>
<div className="df-preview-actions">
<a
className="ghost-link"
href={url}
download={file.name}
style={{ textDecoration: 'none' }}
>
{t('designFiles.download')}
</a>
<button type="button" onClick={onClose}>
{t('designFiles.previewClose')}
</button>
</div>
</div>
</aside>
);
}
function sectionFor(file: ProjectFile): Section {
if (file.kind === 'html' || file.kind === 'text') return 'pages';
if (file.kind === 'sketch') return 'sketches';
if (file.kind === 'code') return 'scripts';
if (file.kind === 'image') return 'images';
if (
file.kind === 'pdf' ||
file.kind === 'document' ||
file.kind === 'presentation' ||
file.kind === 'spreadsheet'
) return 'pages';
return 'other';
}
function kindGlyph(kind: ProjectFileKind): string {
if (kind === 'html') return '⟨⟩';
if (kind === 'image') return '▣';
if (kind === 'sketch') return '✎';
if (kind === 'text') return '¶';
if (kind === 'code') return '{}';
if (kind === 'pdf') return 'PDF';
if (kind === 'document') return 'DOC';
if (kind === 'presentation') return 'PPT';
if (kind === 'spreadsheet') return 'XLS';
return '·';
}
function kindLabel(kind: ProjectFileKind, t: TranslateFn): string {
if (kind === 'html') return t('designFiles.kindHtml');
if (kind === 'image') return t('designFiles.kindImage');
if (kind === 'sketch') return t('designFiles.kindSketch');
if (kind === 'text') return t('designFiles.kindText');
if (kind === 'code') return t('designFiles.kindCode');
if (kind === 'pdf') return t('designFiles.kindPdf');
if (kind === 'document') return t('designFiles.kindDocument');
if (kind === 'presentation') return t('designFiles.kindPresentation');
if (kind === 'spreadsheet') return t('designFiles.kindSpreadsheet');
return t('designFiles.kindBinary');
}
function relativeTime(ts: number, t: TranslateFn): string {
const diff = Date.now() - ts;
const min = 60_000;
const hr = 60 * min;
const day = 24 * hr;
if (diff < min) return t('common.justNow');
if (diff < hr) return t('common.minutesAgo', { n: Math.floor(diff / min) });
if (diff < day) return t('common.hoursAgo', { n: Math.floor(diff / hr) });
if (diff < 7 * day) return t('common.daysAgo', { n: Math.floor(diff / day) });
if (diff < 30 * day)
return t('designFiles.weeksAgo', { n: Math.floor(diff / (7 * day)) });
return new Date(ts).toLocaleDateString();
}
function humanBytes(n: number): string {
if (n < 1024) return `${n} B`;
if (n < 1024 * 1024) return `${(n / 1024).toFixed(1)} KB`;
return `${(n / 1024 / 1024).toFixed(1)} MB`;
}
@@ -0,0 +1,94 @@
import { useMemo } from 'react';
interface Props {
source: string | null | undefined;
loading?: boolean;
loadingLabel: string;
}
// Render a DESIGN.md as a lightly syntax-coloured monospace source view —
// the right-hand panel of the preview modal, mirroring the layout used by
// styles.refero.design where the rendered showcase sits next to the spec
// text. Highlights are CSS-class only; no innerHTML for untrusted text.
export function DesignSpecView({ source, loading, loadingLabel }: Props) {
const lines = useMemo(() => (source ? source.split(/\r?\n/) : []), [source]);
if (loading || source === undefined || source === null) {
return <div className="design-spec-empty">{loadingLabel}</div>;
}
return (
<pre className="design-spec-pre">
<code>
{lines.map((line, idx) => (
<span key={idx} className={`design-spec-line ${classifyLine(line)}`}>
{renderInline(line)}
{'\n'}
</span>
))}
</code>
</pre>
);
}
function classifyLine(line: string): string {
if (/^#{1,6}\s+/.test(line)) {
const hashes = /^(#+)\s/.exec(line)?.[1]?.length ?? 1;
return `is-h${Math.min(hashes, 4)}`;
}
if (/^>\s/.test(line)) return 'is-quote';
if (/^[-*+]\s/.test(line.trimStart())) return 'is-list';
if (/^\|.*\|\s*$/.test(line)) return 'is-table';
if (/^\s*```/.test(line)) return 'is-fence';
if (/^\s*$/.test(line)) return 'is-blank';
return '';
}
const TOKEN_RE = /(\*\*[^*]+\*\*|\*[^*]+\*|`[^`]+`|#[0-9a-fA-F]{3,8}\b)/g;
function renderInline(line: string) {
if (!line) return null;
const out: (string | JSX.Element)[] = [];
let last = 0;
let key = 0;
for (const match of line.matchAll(TOKEN_RE)) {
const start = match.index ?? 0;
if (start > last) out.push(line.slice(last, start));
const token = match[0];
if (token.startsWith('**')) {
out.push(
<span key={key++} className="md-tk-bold">
{token.slice(2, -2)}
</span>,
);
} else if (token.startsWith('*')) {
out.push(
<span key={key++} className="md-tk-em">
{token.slice(1, -1)}
</span>,
);
} else if (token.startsWith('`')) {
out.push(
<span key={key++} className="md-tk-code">
{token.slice(1, -1)}
</span>,
);
} else if (token.startsWith('#')) {
out.push(
<span key={key++} className="md-tk-color" style={{ color: 'inherit' }}>
<span
className="md-tk-color-swatch"
style={{ backgroundColor: token }}
aria-hidden
/>
{token}
</span>,
);
} else {
out.push(token);
}
last = start + token.length;
}
if (last < line.length) out.push(line.slice(last));
return out;
}
@@ -0,0 +1,92 @@
import { useCallback, useEffect, useState } from 'react';
import { useT } from '../i18n';
import {
fetchDesignSystem,
fetchDesignSystemPreview,
fetchDesignSystemShowcase,
} from '../providers/registry';
import type { DesignSystemSummary } from '../types';
import { DesignSpecView } from './DesignSpecView';
import { PreviewModal } from './PreviewModal';
interface Props {
system: DesignSystemSummary;
onClose: () => void;
}
// Two-tab DS preview: a complete Showcase webpage rendered from the system's
// tokens, and the original Tokens view (palette / typography / components +
// rendered DESIGN.md prose). A toggleable side panel surfaces the raw
// DESIGN.md so users can compare spec to render at the same time, mirroring
// the styles.refero.design layout.
export function DesignSystemPreviewModal({ system, onClose }: Props) {
const t = useT();
const [showcaseHtml, setShowcaseHtml] = useState<string | null | undefined>(undefined);
const [tokensHtml, setTokensHtml] = useState<string | null | undefined>(undefined);
const [specBody, setSpecBody] = useState<string | null | undefined>(undefined);
// Lazy-load each view on first reveal. Both endpoints are cheap, but this
// keeps the network panel quiet when the user only opens one tab.
const handleView = useCallback(
(viewId: string) => {
if (viewId === 'showcase' && showcaseHtml === undefined) {
setShowcaseHtml(null);
void fetchDesignSystemShowcase(system.id).then((html) => setShowcaseHtml(html));
}
if (viewId === 'tokens' && tokensHtml === undefined) {
setTokensHtml(null);
void fetchDesignSystemPreview(system.id).then((html) => setTokensHtml(html));
}
},
[system.id, showcaseHtml, tokensHtml],
);
// Fetch DESIGN.md the first time the side panel opens. Once we have it we
// never re-fetch unless the underlying system swaps.
const handleSidebarToggle = useCallback(
(open: boolean) => {
if (!open || specBody !== undefined) return;
setSpecBody(null);
void fetchDesignSystem(system.id).then((detail) =>
setSpecBody(detail?.body ?? null),
);
},
[system.id, specBody],
);
// If the system swaps under us (rare but possible), wipe all caches.
useEffect(() => {
setShowcaseHtml(undefined);
setTokensHtml(undefined);
setSpecBody(undefined);
}, [system.id]);
return (
<PreviewModal
title={system.title}
subtitle={system.summary || system.category}
views={[
{ id: 'showcase', label: t('ds.showcase'), html: showcaseHtml },
{ id: 'tokens', label: t('ds.tokens'), html: tokensHtml },
]}
initialViewId="showcase"
onView={handleView}
exportTitleFor={(viewId) => `${system.title} — ${viewId}`}
onClose={onClose}
sidebar={{
label: t('ds.specToggle'),
defaultOpen: true,
onToggle: handleSidebarToggle,
// Re-fire onToggle when the system swaps under us so the new
// DESIGN.md fetch starts even if the sidebar never closed.
contentKey: system.id,
content: (
<DesignSpecView
source={specBody}
loadingLabel={t('ds.specLoading')}
/>
),
}}
/>
);
}
@@ -0,0 +1,304 @@
import { useEffect, useMemo, useRef, useState } from 'react';
import { useI18n } from '../i18n';
import {
localizeDesignSystemCategory,
localizeDesignSystemSummary,
} from '../i18n/content';
import { fetchDesignSystemShowcase } from '../providers/registry';
import { buildSrcdoc } from '../runtime/srcdoc';
import type { DesignSystemSummary, Surface } from '../types';
interface Props {
systems: DesignSystemSummary[];
selectedId: string | null;
onSelect: (id: string) => void;
onPreview: (id: string) => void;
}
const CATEGORY_ORDER = [
'Starter',
'AI & LLM',
'Developer Tools',
'Productivity & SaaS',
'Backend & Data',
'Design & Creative',
'Fintech & Crypto',
'E-Commerce & Retail',
'Media & Consumer',
'Automotive',
];
type SurfaceFilter = 'all' | Surface;
const SURFACE_PILLS: { value: SurfaceFilter; labelKey: 'examples.modeAll' | 'ds.surfaceWeb' | 'ds.surfaceImage' | 'ds.surfaceVideo' | 'ds.surfaceAudio' }[] = [
{ value: 'all', labelKey: 'examples.modeAll' },
{ value: 'web', labelKey: 'ds.surfaceWeb' },
{ value: 'image', labelKey: 'ds.surfaceImage' },
{ value: 'video', labelKey: 'ds.surfaceVideo' },
{ value: 'audio', labelKey: 'ds.surfaceAudio' },
];
function surfaceOf(system: DesignSystemSummary): Surface {
return system.surface ?? 'web';
}
export function DesignSystemsTab({ systems, selectedId, onSelect, onPreview }: Props) {
const { locale, t } = useI18n();
const [filter, setFilter] = useState('');
const [surfaceFilter, setSurfaceFilter] = useState<SurfaceFilter>('all');
const [category, setCategory] = useState<string>('All');
// Cache fetched showcase HTML across re-renders so cards never re-flicker
// when the user filters / scrolls back. null = "in flight"; undefined =
// "not yet requested". Mirrors the pattern used by ExamplesTab.
const [thumbs, setThumbs] = useState<Record<string, string | null>>({});
const surfaceScoped = useMemo(
() => surfaceFilter === 'all' ? systems : systems.filter((s) => surfaceOf(s) === surfaceFilter),
[systems, surfaceFilter],
);
const surfaceCounts = useMemo(() => {
const counts: Record<SurfaceFilter, number> = { all: systems.length, web: 0, image: 0, video: 0, audio: 0 };
for (const s of systems) counts[surfaceOf(s)]++;
return counts;
}, [systems]);
const categories = useMemo(() => {
const cats = new Set<string>();
for (const s of surfaceScoped) cats.add(s.category || 'Uncategorized');
const ordered: string[] = [];
for (const c of CATEGORY_ORDER) if (cats.has(c)) ordered.push(c);
for (const c of [...cats].sort()) if (!ordered.includes(c)) ordered.push(c);
return ['All', ...ordered];
}, [surfaceScoped]);
const filtered = useMemo(() => {
const q = filter.trim().toLowerCase();
return surfaceScoped.filter((s) => {
if (category !== 'All' && (s.category || 'Uncategorized') !== category) return false;
if (!q) return true;
const summary = localizeDesignSystemSummary(locale, s).toLowerCase();
const categoryLabel = localizeDesignSystemCategory(
locale,
s.category || 'Uncategorized',
).toLowerCase();
return (
s.title.toLowerCase().includes(q) ||
s.summary.toLowerCase().includes(q) ||
summary.includes(q) ||
categoryLabel.includes(q)
);
});
}, [surfaceScoped, filter, category, locale]);
// Category metadata is authored in English; keep raw values in state for
// filtering while localizing the visible labels for the current UI locale.
const renderCategory = (c: string) => {
if (c === 'All') return t('ds.categoryAll');
if (c === 'Uncategorized') return t('ds.categoryUncategorized');
return localizeDesignSystemCategory(locale, c);
};
function loadThumb(id: string) {
setThumbs((prev) => {
if (prev[id] !== undefined) return prev;
void fetchDesignSystemShowcase(id).then((html) => {
setThumbs((p) => ({ ...p, [id]: html }));
});
return { ...prev, [id]: null };
});
}
return (
<div className="tab-panel">
<div className="tab-panel-toolbar">
<input
placeholder={t('ds.searchPlaceholder')}
value={filter}
onChange={(e) => setFilter(e.target.value)}
/>
<select value={category} onChange={(e) => setCategory(e.target.value)}>
{categories.map((c) => (
<option key={c} value={c}>
{renderCategory(c)}
</option>
))}
</select>
</div>
<div
className="examples-filter-row"
role="tablist"
aria-label={t('ds.surfaceLabel')}
>
<span className="examples-filter-label">{t('ds.surfaceLabel')}</span>
{SURFACE_PILLS.map((p) => (
<button
key={p.value}
type="button"
role="tab"
aria-selected={surfaceFilter === p.value}
className={`filter-pill ${surfaceFilter === p.value ? 'active' : ''}`}
onClick={() => {
setSurfaceFilter(p.value);
setCategory('All');
}}
>
{t(p.labelKey)}
<span className="filter-pill-count">{surfaceCounts[p.value]}</span>
</button>
))}
</div>
{filtered.length === 0 ? (
<div className="tab-empty">{t('ds.emptyNoMatch')}</div>
) : (
<div className="ds-grid">
{filtered.map((s) => (
<DesignSystemCard
key={s.id}
system={s}
active={s.id === selectedId}
thumbHtml={thumbs[s.id]}
onIntersect={() => loadThumb(s.id)}
onSelect={() => onSelect(s.id)}
onPreview={() => onPreview(s.id)}
/>
))}
</div>
)}
</div>
);
}
interface CardProps {
system: DesignSystemSummary;
active: boolean;
thumbHtml: string | null | undefined;
onIntersect: () => void;
onSelect: () => void;
onPreview: () => void;
}
function DesignSystemCard({
system,
active,
thumbHtml,
onIntersect,
onSelect,
onPreview,
}: CardProps) {
const { locale, t } = useI18n();
const ref = useRef<HTMLDivElement | null>(null);
// Lazy-load the showcase iframe only when the card scrolls into the
// viewport. With ~120 design systems we can't afford to mount every
// iframe up front — even with `loading="lazy"`, srcDoc iframes ignore
// the native lazy hint, so we gate via IntersectionObserver.
useEffect(() => {
if (thumbHtml !== undefined) return;
const node = ref.current;
if (!node || typeof IntersectionObserver === 'undefined') {
onIntersect();
return;
}
const observer = new IntersectionObserver(
(entries) => {
for (const entry of entries) {
if (entry.isIntersecting) {
onIntersect();
observer.disconnect();
break;
}
}
},
{ rootMargin: '200px' },
);
observer.observe(node);
return () => observer.disconnect();
}, [thumbHtml, onIntersect]);
const localizedSummary = localizeDesignSystemSummary(locale, system);
const categoryLabel = localizeDesignSystemCategory(
locale,
system.category || 'Uncategorized',
);
return (
<div
ref={ref}
className={`ds-card ${active ? 'active' : ''}`}
role="button"
tabIndex={0}
onClick={onSelect}
onKeyDown={(e) => {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
onSelect();
}
}}
>
<div
className="ds-card-thumb"
onClick={(e) => {
e.stopPropagation();
onPreview();
}}
title={t('ds.previewTitle')}
role="button"
tabIndex={0}
onKeyDown={(e) => {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
e.stopPropagation();
onPreview();
}
}}
>
{thumbHtml ? (
<iframe
title={`${system.title} preview`}
sandbox="allow-scripts"
srcDoc={buildSrcdoc(thumbHtml)}
tabIndex={-1}
aria-hidden
/>
) : (
<div className="ds-card-thumb-fallback" aria-hidden>
{system.swatches && system.swatches.length > 0 ? (
<div className="ds-card-thumb-swatches">
{system.swatches.map((c, i) => (
<span key={i} style={{ background: c }} />
))}
</div>
) : (
<span className="ds-card-thumb-placeholder">
{thumbHtml === null ? '' : ''}
</span>
)}
</div>
)}
<span className="ds-card-thumb-overlay" aria-hidden>
{t('ds.preview')}
</span>
</div>
<div className="ds-card-meta">
<div className="ds-card-title-row">
<span className="ds-card-title">{system.title}</span>
{active ? (
<span className="ds-card-badge">{t('ds.badgeDefault')}</span>
) : null}
</div>
<div className="ds-card-summary">{localizedSummary}</div>
<div className="ds-card-footer">
<span className="ds-card-category">{categoryLabel}</span>
{system.swatches && system.swatches.length > 0 ? (
<div className="ds-card-swatches" aria-hidden>
{system.swatches.map((c, i) => (
<span key={i} style={{ background: c }} title={c} />
))}
</div>
) : null}
</div>
</div>
</div>
);
}
+373
View File
@@ -0,0 +1,373 @@
import { useEffect, useMemo, useState } from 'react';
import { useT } from '../i18n';
import { deleteLiveArtifact, fetchLiveArtifacts } from '../providers/registry';
import type {
DesignSystemSummary,
LiveArtifactSummary,
Project,
ProjectDisplayStatus,
SkillSummary,
} from '../types';
import { Icon } from './Icon';
import { LiveArtifactBadges } from './LiveArtifactBadges';
type SubTab = 'recent' | 'yours';
type ViewMode = 'grid' | 'kanban';
type DesignListItem =
| { type: 'project'; project: Project; updatedAt: number }
| { type: 'live-artifact'; project: Project; liveArtifact: LiveArtifactSummary; updatedAt: number };
const DESIGNS_VIEW_STORAGE_KEY = 'od:designs:view';
export const STATUS_ORDER = [
'not_started',
'running',
'awaiting_input',
'succeeded',
'failed',
'canceled',
] as const satisfies readonly ProjectDisplayStatus[];
export const STATUS_LABEL_KEYS = {
not_started: 'designs.status.notStarted',
queued: 'designs.status.queued',
running: 'designs.status.running',
awaiting_input: 'designs.status.awaitingInput',
succeeded: 'designs.status.succeeded',
failed: 'designs.status.failed',
canceled: 'designs.status.canceled',
} as const satisfies Record<ProjectDisplayStatus, Parameters<ReturnType<typeof useT>>[0]>;
interface Props {
projects: Project[];
skills: SkillSummary[];
designSystems: DesignSystemSummary[];
onOpen: (id: string) => void;
onOpenLiveArtifact: (projectId: string, artifactId: string) => void;
onDelete: (id: string) => void;
}
export function DesignsTab({
projects,
skills,
designSystems,
onOpen,
onOpenLiveArtifact,
onDelete,
}: Props) {
const t = useT();
const [filter, setFilter] = useState('');
const [sub, setSub] = useState<SubTab>('recent');
const [liveArtifactsByProject, setLiveArtifactsByProject] = useState<Record<string, LiveArtifactSummary[]>>({});
const [view, setView] = useState<ViewMode>(() => {
if (typeof window === 'undefined') return 'grid';
try {
const storedView = window.localStorage.getItem(DESIGNS_VIEW_STORAGE_KEY);
return storedView === 'grid' || storedView === 'kanban' ? storedView : 'grid';
} catch {
return 'grid';
}
});
useEffect(() => {
let cancelled = false;
const projectIds = projects.map((project) => project.id);
if (projectIds.length === 0) {
setLiveArtifactsByProject({});
return;
}
void Promise.all(
projectIds.map(async (projectId) => [projectId, await fetchLiveArtifacts(projectId)] as const),
).then((entries) => {
if (cancelled) return;
setLiveArtifactsByProject(Object.fromEntries(entries));
});
return () => {
cancelled = true;
};
}, [projects]);
useEffect(() => {
try {
window.localStorage.setItem(DESIGNS_VIEW_STORAGE_KEY, view);
} catch {}
}, [view]);
const filtered = useMemo(() => {
const q = filter.trim().toLowerCase();
let list: DesignListItem[] = projects.map((project) => ({
type: 'project',
project,
updatedAt: project.updatedAt,
}));
const liveItems = projects.flatMap((project) =>
(liveArtifactsByProject[project.id] ?? []).map((liveArtifact) => ({
type: 'live-artifact' as const,
project,
liveArtifact,
updatedAt: Date.parse(liveArtifact.updatedAt) || project.updatedAt,
})),
);
list = [...list, ...liveItems];
if (sub === 'recent') list = [...list].sort((a, b) => b.updatedAt - a.updatedAt);
if (!q) return list;
return list.filter((item) => {
if (item.project.name.toLowerCase().includes(q)) return true;
return item.type === 'live-artifact' && item.liveArtifact.title.toLowerCase().includes(q);
});
}, [projects, liveArtifactsByProject, filter, sub]);
const filteredProjects = useMemo(
() => filtered.filter((item): item is Extract<DesignListItem, { type: 'project' }> => item.type === 'project'),
[filtered],
);
const skillName = (id: string | null) => skills.find((s) => s.id === id)?.name ?? '';
const dsName = (id: string | null) => designSystems.find((d) => d.id === id)?.title ?? '';
const handleDeleteLiveArtifact = async (projectId: string, artifact: LiveArtifactSummary) => {
if (!confirm(`${t('common.delete')} "${artifact.title}"?`)) return;
const ok = await deleteLiveArtifact(projectId, artifact.id);
if (!ok) return;
setLiveArtifactsByProject((current) => ({
...current,
[projectId]: (current[projectId] ?? []).filter((candidate) => candidate.id !== artifact.id),
}));
};
return (
<div className={`tab-panel${view === 'kanban' ? ' design-kanban-view' : ''}`}>
<div className="tab-panel-toolbar">
<div className="toolbar-left">
<div className="subtab-pill" role="group" aria-label={t('designs.filterAria')}>
<button aria-pressed={sub === 'recent'} className={sub === 'recent' ? 'active' : ''} onClick={() => setSub('recent')}>
{t('designs.subRecent')}
</button>
<button aria-pressed={sub === 'yours'} className={sub === 'yours' ? 'active' : ''} onClick={() => setSub('yours')}>
{t('designs.subYours')}
</button>
</div>
</div>
<div className="toolbar-right">
<div className="toolbar-search">
<span className="search-icon" aria-hidden>
<Icon name="search" size={13} />
</span>
<input placeholder={t('designs.searchPlaceholder')} value={filter} onChange={(e) => setFilter(e.target.value)} />
</div>
<div className="subtab-pill" role="group" aria-label={t('designs.viewToggleAria')}>
<button
aria-pressed={view === 'grid'}
className={view === 'grid' ? 'active' : ''}
onClick={() => setView('grid')}
title={t('designs.viewGrid')}
data-testid="designs-view-grid"
>
<Icon name="grid" size={14} />
</button>
<button
aria-pressed={view === 'kanban'}
className={view === 'kanban' ? 'active' : ''}
onClick={() => setView('kanban')}
title={t('designs.viewKanban')}
data-testid="designs-view-kanban"
>
<Icon name="kanban" size={14} />
</button>
</div>
</div>
</div>
{filtered.length === 0 ? (
<div className="tab-empty">{projects.length === 0 ? t('designs.emptyNoProjects') : t('designs.emptyNoMatch')}</div>
) : view === 'grid' ? (
<div className="design-grid">
{filtered.map((item) => {
const p = item.project;
const skill = skillName(p.skillId);
const ds = dsName(p.designSystemId);
if (item.type === 'live-artifact') {
const artifact = item.liveArtifact;
return (
<div
key={`live:${artifact.id}`}
className={`design-card live-artifact-card status-${artifact.status} refresh-${artifact.refreshStatus}`}
role="button"
tabIndex={0}
onClick={() => onOpenLiveArtifact(p.id, artifact.id)}
onKeyDown={(e) => {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
onOpenLiveArtifact(p.id, artifact.id);
}
}}
>
<button
type="button"
className="design-card-close"
title={t('common.delete')}
aria-label={`${t('common.delete')} ${artifact.title}`}
onClick={(e) => {
e.stopPropagation();
void handleDeleteLiveArtifact(p.id, artifact);
}}
>
<Icon name="close" size={12} />
</button>
<div className="design-card-thumb live-artifact-thumb" aria-hidden>
<span className="live-artifact-thumb-glyph">●</span>
</div>
<div className="design-card-meta-block">
<LiveArtifactBadges className="design-card-badges" status={artifact.status} refreshStatus={artifact.refreshStatus} />
<div className="design-card-name" title={artifact.title}>{artifact.title}</div>
<div className="design-card-meta">
<span className="ds">{p.name}</span>
{' · '}
{artifactStatusLabel(artifact.status, artifact.refreshStatus, t)}
{' · '}
{relativeTime(item.updatedAt, t)}
</div>
</div>
</div>
);
}
const liveCount = liveArtifactsByProject[p.id]?.length ?? 0;
const status = p.status?.value ?? 'not_started';
return (
<div
key={p.id}
className="design-card"
role="button"
tabIndex={0}
onClick={() => onOpen(p.id)}
onKeyDown={(e) => {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
onOpen(p.id);
}
}}
>
<button
className="design-card-close"
title={t('designs.deleteTitle')}
aria-label={t('designs.deleteAria', { name: p.name })}
onClick={(e) => {
e.stopPropagation();
if (confirm(t('designs.deleteConfirm', { name: p.name }))) onDelete(p.id);
}}
>
<Icon name="close" size={12} />
</button>
<div className="design-card-thumb" aria-hidden>
{liveCount > 0 ? <span className="design-live-count">{t('designs.liveCount', { n: liveCount })}</span> : null}
</div>
<div className="design-card-meta-block">
<div className="design-card-name" title={p.name}>{p.name}</div>
<div className="design-card-meta">
{ds ? <span className="ds">{ds}</span> : <span>{t('designs.cardFreeform')}</span>}
{skill ? ` · ${skill}` : ''}
{' · '}
<span className={`design-card-status design-card-status-${status}`}>{statusLabel(status, t)}</span>
{p.status?.updatedAt ? ` · ${relativeTime(p.status.updatedAt, t)}` : ''}
</div>
</div>
</div>
);
})}
</div>
) : (
<div className="design-kanban-board">
{STATUS_ORDER.map((status) => {
const colProjects = filteredProjects.filter((item) => normalizeStatus(item.project.status?.value ?? 'not_started') === status);
return (
<div key={status} className="design-kanban-col">
<div className="design-kanban-header">
<span>{statusLabel(status, t)}</span>
<span className="design-kanban-count">{colProjects.length}</span>
</div>
<div className="design-kanban-list">
{colProjects.length === 0 ? (
<div className="design-kanban-empty">{t('designs.kanbanEmptyColumn')}</div>
) : (
colProjects.map(({ project: p }) => {
const skill = skillName(p.skillId);
const ds = dsName(p.designSystemId);
return (
<div
key={p.id}
className={`design-kanban-card status-${status}`}
role="button"
tabIndex={0}
onClick={() => onOpen(p.id)}
onKeyDown={(e) => {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
onOpen(p.id);
}
}}
>
<button
className="design-card-close"
title={t('designs.deleteTitle')}
aria-label={t('designs.deleteAria', { name: p.name })}
onClick={(e) => {
e.stopPropagation();
if (confirm(t('designs.deleteConfirm', { name: p.name }))) onDelete(p.id);
}}
>
<Icon name="close" size={12} />
</button>
<div className="design-kanban-card-name" title={p.name}>{p.name}</div>
<div className="design-kanban-card-meta">
{ds ? <span className="ds">{ds}</span> : <span>{t('designs.cardFreeform')}</span>}
{skill ? ` · ${skill}` : ''}
{p.status?.updatedAt ? ` · ${relativeTime(p.status.updatedAt, t)}` : ''}
</div>
</div>
);
})
)}
</div>
</div>
);
})}
</div>
)}
</div>
);
}
function normalizeStatus(status: ProjectDisplayStatus): Exclude<ProjectDisplayStatus, 'queued'> {
return status === 'queued' ? 'running' : status;
}
function statusLabel(status: ProjectDisplayStatus, t: ReturnType<typeof useT>): string {
return t(STATUS_LABEL_KEYS[status]);
}
function relativeTime(ts: number, t: ReturnType<typeof useT>): string {
const diff = Date.now() - ts;
const min = 60_000;
const hr = 60 * min;
const day = 24 * hr;
if (diff < min) return t('common.justNow');
if (diff < hr) return t('common.minutesAgo', { n: Math.floor(diff / min) });
if (diff < day) return t('common.hoursAgo', { n: Math.floor(diff / hr) });
if (diff < 7 * day) return t('common.daysAgo', { n: Math.floor(diff / day) });
return new Date(ts).toLocaleDateString();
}
function artifactStatusLabel(
status: LiveArtifactSummary['status'],
refreshStatus: LiveArtifactSummary['refreshStatus'],
t: ReturnType<typeof useT>,
): string {
if (status === 'archived') return t('designs.statusArchived');
if (status === 'error') return t('designs.statusError');
if (refreshStatus === 'running') return t('designs.statusRefreshing');
if (refreshStatus === 'failed') return t('designs.statusRefreshFailed');
if (refreshStatus === 'succeeded') return t('designs.statusRefreshed');
return t('designs.statusLive');
}
File diff suppressed because it is too large Load Diff
+582
View File
@@ -0,0 +1,582 @@
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useI18n } from '../i18n';
import {
localizeSkillDescription,
localizeSkillPrompt,
} from '../i18n/content';
import type { Dict } from '../i18n/types';
import { fetchSkillExample } from '../providers/registry';
import { exportAsHtml, exportAsPdf, exportAsZip } from '../runtime/exports';
import { buildSrcdoc } from '../runtime/srcdoc';
import type { SkillSummary, Surface } from '../types';
import { Icon } from './Icon';
import { PreviewModal } from './PreviewModal';
type TranslateFn = (key: keyof Dict, vars?: Record<string, string | number>) => string;
interface Props {
skills: SkillSummary[];
onUsePrompt: (skill: SkillSummary) => void;
}
type ModeFilter = 'all' | 'prototype-desktop' | 'prototype-mobile' | 'deck' | 'document' | 'orbit';
type SurfaceFilter = 'all' | Surface;
type ScenarioFilter = string;
const SURFACE_PILLS: { value: SurfaceFilter; labelKey: keyof Dict }[] = [
{ value: 'all', labelKey: 'examples.modeAll' },
{ value: 'web', labelKey: 'examples.surfaceWeb' },
{ value: 'image', labelKey: 'examples.surfaceImage' },
{ value: 'video', labelKey: 'examples.surfaceVideo' },
{ value: 'audio', labelKey: 'examples.surfaceAudio' },
];
const MODE_PILLS: { value: ModeFilter; labelKey: keyof Dict }[] = [
{ value: 'all', labelKey: 'examples.modeAll' },
{ value: 'prototype-desktop', labelKey: 'examples.modePrototypeDesktop' },
{ value: 'prototype-mobile', labelKey: 'examples.modePrototypeMobile' },
{ value: 'deck', labelKey: 'examples.modeDeck' },
{ value: 'document', labelKey: 'examples.modeDocument' },
{ value: 'orbit', labelKey: 'examples.modeOrbit' },
];
const SCENARIO_LABEL_KEY: Record<string, keyof Dict> = {
general: 'examples.scenarioGeneral',
engineering: 'examples.scenarioEngineering',
product: 'examples.scenarioProduct',
design: 'examples.scenarioDesign',
marketing: 'examples.scenarioMarketing',
sales: 'examples.scenarioSales',
finance: 'examples.scenarioFinance',
hr: 'examples.scenarioHr',
operations: 'examples.scenarioOperations',
support: 'examples.scenarioSupport',
legal: 'examples.scenarioLegal',
education: 'examples.scenarioEducation',
personal: 'examples.scenarioPersonal',
};
function scenarioLabel(t: TranslateFn, tag: string): string {
const key = SCENARIO_LABEL_KEY[tag];
if (key) return t(key);
return tag.charAt(0).toUpperCase() + tag.slice(1);
}
const SCENARIO_ORDER = [
'engineering',
'product',
'design',
'marketing',
'sales',
'finance',
'hr',
'operations',
'support',
'legal',
'education',
'personal',
'general',
];
function matchesMode(skill: SkillSummary, filter: ModeFilter): boolean {
if (filter === 'all') return true;
if (filter === 'deck') return skill.mode === 'deck';
if (filter === 'prototype-desktop')
return skill.mode === 'prototype' && (skill.platform ?? 'desktop') === 'desktop';
if (filter === 'prototype-mobile')
return skill.mode === 'prototype' && skill.platform === 'mobile';
if (filter === 'document') return skill.mode === 'template';
if (filter === 'orbit') return skill.scenario === 'orbit';
return true;
}
function surfaceOf(skill: SkillSummary): Surface {
if (skill.surface) return skill.surface;
if (skill.mode === 'image' || skill.mode === 'video' || skill.mode === 'audio') return skill.mode;
return 'web';
}
function matchesSurface(skill: SkillSummary, filter: SurfaceFilter): boolean {
return filter === 'all' || surfaceOf(skill) === filter;
}
function quotePrompt(locale: string, text: string): string {
return locale === 'de' ? `„${text}“` : `“${text}”`;
}
export function ExamplesTab({ skills, onUsePrompt }: Props) {
const { locale, t } = useI18n();
// Hold preview HTML per skill across re-renders so cards never re-flicker.
const [previews, setPreviews] = useState<Record<string, string | null>>({});
const [surfaceFilter, setSurfaceFilter] = useState<SurfaceFilter>('all');
const [modeFilter, setModeFilter] = useState<ModeFilter>('all');
const [scenarioFilter, setScenarioFilter] = useState<ScenarioFilter>('all');
// Free-text search filters by skill name + description + prompt so users
// can find a known example by typing any associated word ("airbnb",
// "wireframe", "deck") without having to click through filter pills first.
const [search, setSearch] = useState('');
const [previewSkillId, setPreviewSkillId] = useState<string | null>(null);
const loadPreview = useCallback(
async (id: string) => {
if (previews[id] !== undefined) return;
const html = await fetchSkillExample(id);
setPreviews((prev) => ({ ...prev, [id]: html }));
},
[previews],
);
// Open the modal for a card. We always trigger a preview fetch even if
// the card hasn't been hovered yet — the modal needs the HTML.
const openPreview = useCallback(
(id: string) => {
setPreviewSkillId(id);
void loadPreview(id);
},
[loadPreview],
);
const previewSkill = useMemo(
() => (previewSkillId ? skills.find((s) => s.id === previewSkillId) ?? null : null),
[skills, previewSkillId],
);
const modeCounts = useMemo(() => {
const surfaceScoped = skills.filter((skill) => matchesSurface(skill, surfaceFilter));
const c: Record<ModeFilter, number> = {
all: surfaceScoped.length,
'prototype-desktop': 0,
'prototype-mobile': 0,
deck: 0,
document: 0,
orbit: 0,
};
for (const s of surfaceScoped) {
if (matchesMode(s, 'prototype-desktop')) c['prototype-desktop']++;
if (matchesMode(s, 'prototype-mobile')) c['prototype-mobile']++;
if (matchesMode(s, 'deck')) c.deck++;
if (matchesMode(s, 'document')) c.document++;
if (matchesMode(s, 'orbit')) c.orbit++;
}
return c;
}, [skills, surfaceFilter]);
const surfaceCounts = useMemo(() => {
const counts: Record<SurfaceFilter, number> = { all: skills.length, web: 0, image: 0, video: 0, audio: 0 };
for (const s of skills) counts[surfaceOf(s)]++;
return counts;
}, [skills]);
const scenarioCounts = useMemo(() => {
const counts = new Map<string, number>();
for (const s of skills) {
if (!matchesSurface(s, surfaceFilter) || !matchesMode(s, modeFilter)) continue;
const tag = s.scenario || 'general';
counts.set(tag, (counts.get(tag) ?? 0) + 1);
}
return counts;
}, [skills, surfaceFilter, modeFilter]);
const scenarioOptions = useMemo(() => {
const have = new Set(scenarioCounts.keys());
const ordered: string[] = [];
for (const k of SCENARIO_ORDER) if (have.has(k)) ordered.push(k);
for (const k of [...have].sort()) if (!ordered.includes(k)) ordered.push(k);
return ordered;
}, [scenarioCounts]);
const filtered = useMemo(() => {
const q = search.trim().toLowerCase();
const matched = skills.filter((s) => {
if (!matchesSurface(s, surfaceFilter) || !matchesMode(s, modeFilter)) return false;
if (scenarioFilter !== 'all' && (s.scenario || 'general') !== scenarioFilter) return false;
if (!q) return true;
const desc = localizeSkillDescription(locale, s);
const prompt = localizeSkillPrompt(locale, s) || '';
const haystack = `${s.name} ${desc} ${prompt} ${s.scenario ?? ''}`.toLowerCase();
return haystack.includes(q);
});
// Featured magazine-style examples float to the top (lower priority
// number wins). Non-featured skills keep their server-side order so
// contributors can still author SKILL.md alphabetically.
return matched
.map((s, idx) => ({ s, idx }))
.sort((a, b) => {
const aRank = typeof a.s.featured === 'number' ? a.s.featured : Number.POSITIVE_INFINITY;
const bRank = typeof b.s.featured === 'number' ? b.s.featured : Number.POSITIVE_INFINITY;
if (aRank !== bRank) return aRank - bRank;
return a.idx - b.idx;
})
.map(({ s }) => s);
}, [skills, surfaceFilter, modeFilter, scenarioFilter, search, locale]);
if (skills.length === 0) {
return <div className="tab-empty">{t('examples.emptyNoSkills')}</div>;
}
return (
<div className="tab-panel examples-panel">
<div className="examples-toolbar">
<div className="examples-search">
<span className="search-icon" aria-hidden>
<Icon name="search" size={13} />
</span>
<input
type="search"
value={search}
onChange={(e) => setSearch(e.target.value)}
placeholder={t('examples.searchPlaceholder')}
aria-label={t('examples.searchAria')}
/>
</div>
<div
className="examples-filter-row"
role="tablist"
aria-label={t('examples.surfaceLabel')}
>
<span className="examples-filter-label">{t('examples.surfaceLabel')}</span>
{SURFACE_PILLS.map((p) => (
<button
key={p.value}
type="button"
role="tab"
aria-selected={surfaceFilter === p.value}
className={`filter-pill ${surfaceFilter === p.value ? 'active' : ''}`}
onClick={() => {
setSurfaceFilter(p.value);
setModeFilter('all');
setScenarioFilter('all');
}}
>
{t(p.labelKey)}
<span className="filter-pill-count">{surfaceCounts[p.value]}</span>
</button>
))}
</div>
<div
className="examples-filter-row"
role="tablist"
aria-label={t('examples.typeLabel')}
>
<span className="examples-filter-label">{t('examples.typeLabel')}</span>
{MODE_PILLS.map((p) => (
<button
key={p.value}
type="button"
role="tab"
aria-selected={modeFilter === p.value}
className={`filter-pill ${modeFilter === p.value ? 'active' : ''}`}
onClick={() => {
setModeFilter(p.value);
setScenarioFilter('all');
}}
>
{t(p.labelKey)}
<span className="filter-pill-count">{modeCounts[p.value]}</span>
</button>
))}
</div>
{scenarioOptions.length > 1 ? (
<div
className="examples-filter-row"
role="tablist"
aria-label={t('examples.scenarioLabel')}
>
<span className="examples-filter-label">
{t('examples.scenarioLabel')}
</span>
<button
type="button"
className={`filter-pill ${scenarioFilter === 'all' ? 'active' : ''}`}
onClick={() => setScenarioFilter('all')}
>
{t('examples.modeAll')}
<span className="filter-pill-count">{filtered.length}</span>
</button>
{scenarioOptions.map((tag) => (
<button
key={tag}
type="button"
className={`filter-pill ${scenarioFilter === tag ? 'active' : ''}`}
onClick={() => setScenarioFilter(tag)}
>
{scenarioLabel(t, tag)}
<span className="filter-pill-count">{scenarioCounts.get(tag) ?? 0}</span>
</button>
))}
</div>
) : null}
</div>
{filtered.length === 0 ? (
<div className="tab-empty">{t('examples.emptyNoMatch')}</div>
) : (
filtered.map((skill) => (
<ExampleCard
key={skill.id}
skill={skill}
html={previews[skill.id]}
onLoad={() => void loadPreview(skill.id)}
onUsePrompt={() => onUsePrompt(skill)}
onOpenPreview={() => openPreview(skill.id)}
/>
))
)}
{previewSkill ? (
<PreviewModal
title={previewSkill.name}
subtitle={
localizeSkillPrompt(locale, previewSkill)
?? localizeSkillDescription(locale, previewSkill).slice(0, 160)
}
views={[
{
id: 'preview',
label: t('examples.previewLabel'),
html: previews[previewSkill.id],
deck: previewSkill.mode === 'deck',
},
]}
exportTitleFor={() => previewSkill.name}
onClose={() => setPreviewSkillId(null)}
/>
) : null}
</div>
);
}
function ExampleCard({
skill,
html,
onLoad,
onUsePrompt,
onOpenPreview,
}: {
skill: SkillSummary;
html: string | null | undefined;
onLoad: () => void;
onUsePrompt: () => void;
onOpenPreview: () => void;
}) {
const { locale, t } = useI18n();
const [hovered, setHovered] = useState(false);
const [shareOpen, setShareOpen] = useState(false);
const [intersected, setIntersected] = useState(false);
const shareRef = useRef<HTMLDivElement | null>(null);
const cardRef = useRef<HTMLDivElement | null>(null);
// Eagerly request the preview HTML once the card scrolls near the viewport.
// The 800px bottom rootMargin prefetches cards that are about to be
// scrolled into view so the iframe is ready by the time the user reaches
// it. Hover (below) is kept as a fallback for environments that lack
// IntersectionObserver or for cards already visible on first paint that
// somehow miss the initial observation.
useEffect(() => {
if (intersected) return;
const node = cardRef.current;
if (!node) return;
if (typeof IntersectionObserver === 'undefined') {
setIntersected(true);
onLoad();
return;
}
const obs = new IntersectionObserver(
(entries) => {
for (const entry of entries) {
if (entry.isIntersecting) {
setIntersected(true);
onLoad();
obs.disconnect();
break;
}
}
},
{ rootMargin: '0px 0px 800px 0px' },
);
obs.observe(node);
return () => obs.disconnect();
}, [intersected, onLoad]);
useEffect(() => {
if (!shareOpen) return;
const onDoc = (e: MouseEvent) => {
if (!shareRef.current) return;
if (!shareRef.current.contains(e.target as Node)) setShareOpen(false);
};
const onKey = (e: KeyboardEvent) => {
if (e.key === 'Escape') setShareOpen(false);
};
document.addEventListener('mousedown', onDoc);
document.addEventListener('keydown', onKey);
return () => {
document.removeEventListener('mousedown', onDoc);
document.removeEventListener('keydown', onKey);
};
}, [shareOpen]);
const exportTitle = skill.name;
const isMobile = skill.platform === 'mobile';
const isDeck = skill.mode === 'deck';
const displayPrompt = localizeSkillPrompt(locale, skill);
const displayDescription = localizeSkillDescription(locale, skill).slice(0, 240);
return (
<div
ref={cardRef}
className="example-card"
data-testid={`example-card-${skill.id}`}
onMouseEnter={() => {
setHovered(true);
onLoad();
}}
onMouseLeave={() => setHovered(false)}
>
<div
className="example-preview"
role="button"
tabIndex={0}
title={t('common.openPreview')}
onClick={onOpenPreview}
onKeyDown={(e) => {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
onOpenPreview();
}
}}
>
{html ? (
<>
<iframe
title={`${skill.name} ${t('examples.previewLabel').toLowerCase()}`}
sandbox="allow-scripts"
srcDoc={buildSrcdoc(html)}
tabIndex={-1}
/>
<span className="example-preview-overlay" aria-hidden="true">
{t('examples.openPreview')}
</span>
</>
) : (
<div className="example-preview-placeholder">
{hovered || intersected
? t('examples.loadingPreview')
: t('examples.hoverPreview')}
</div>
)}
</div>
<div className="example-meta">
<div className="example-name">{skill.name}</div>
<div className="example-tags">
<span className={`example-tag ${isMobile ? 'platform-mobile' : ''} ${isDeck ? 'mode-deck' : ''}`}>
{tagForSkill(skill, t)}
</span>
{skill.scenario && skill.scenario !== 'general' ? (
<span className="example-tag">
{scenarioLabel(t, skill.scenario)}
</span>
) : null}
</div>
<div className="example-prompt">
{displayPrompt ? quotePrompt(locale, displayPrompt) : displayDescription}
</div>
<div className="example-card-actions">
<button
className="primary example-cta"
data-testid={`example-use-prompt-${skill.id}`}
onClick={onUsePrompt}
>
{t('examples.usePrompt')}
</button>
<button
className="ghost"
onClick={onOpenPreview}
title={t('examples.previewModalTitle')}
>
{t('examples.openPreview')}
</button>
<div className="share-menu" ref={shareRef}>
<button
className="ghost"
aria-haspopup="menu"
aria-expanded={shareOpen}
disabled={!html}
title={
html
? t('examples.shareTitle')
: t('examples.shareLoadFirst')
}
onClick={() => setShareOpen((v) => !v)}
>
{t('examples.shareMenu')}
</button>
{shareOpen && html ? (
<div className="share-menu-popover" role="menu">
<button
type="button"
className="share-menu-item"
role="menuitem"
onClick={() => {
setShareOpen(false);
exportAsPdf(html, exportTitle, { deck: isDeck });
}}
>
<span className="share-menu-icon">📄</span>
<span>
{isDeck
? t('examples.exportPdfAllSlides')
: t('common.exportPdf')}
</span>
</button>
{isDeck ? (
<button
type="button"
className="share-menu-item"
role="menuitem"
title={t('examples.exportPptxLocked')}
disabled
>
<span className="share-menu-icon">📊</span>
<span>{t('examples.exportPptxLocked')}</span>
</button>
) : null}
<div className="share-menu-divider" />
<button
type="button"
className="share-menu-item"
role="menuitem"
onClick={() => {
setShareOpen(false);
exportAsZip(html, exportTitle);
}}
>
<span className="share-menu-icon">🗜</span>
<span>{t('common.exportZip')}</span>
</button>
<button
type="button"
className="share-menu-item"
role="menuitem"
onClick={() => {
setShareOpen(false);
exportAsHtml(html, exportTitle);
}}
>
<span className="share-menu-icon">🌐</span>
<span>{t('common.exportHtml')}</span>
</button>
</div>
) : null}
</div>
</div>
</div>
</div>
);
}
function tagForSkill(skill: SkillSummary, t: TranslateFn): string {
if (skill.mode === 'deck') return t('examples.tagSlideDeck');
if (skill.mode === 'template') return t('examples.tagTemplate');
if (skill.mode === 'design-system') return t('examples.tagDesignSystem');
if (skill.platform === 'mobile') return t('examples.tagMobilePrototype');
return t('examples.tagDesktopPrototype');
}
File diff suppressed because it is too large Load Diff
+704
View File
@@ -0,0 +1,704 @@
import { useEffect, useMemo, useRef, useState } from 'react';
import { useT } from '../i18n';
import {
deleteProjectFile,
fetchProjectFileText,
uploadProjectFiles,
writeProjectTextFile,
} from '../providers/registry';
import {
type ChatCommentAttachment,
liveArtifactSummaryToWorkspaceEntry,
type LiveArtifactSummary,
type LiveArtifactEventItem,
type LiveArtifactWorkspaceEntry,
type OpenTabsState,
type PreviewComment,
type PreviewCommentTarget,
type ProjectFile,
} from '../types';
import { DesignFilesPanel } from './DesignFilesPanel';
import { FileViewer, LiveArtifactViewer } from './FileViewer';
import { Icon } from './Icon';
import { LiveArtifactBadges } from './LiveArtifactBadges';
import { PasteTextDialog } from './PasteTextDialog';
import { QuickSwitcher } from './QuickSwitcher';
import { SketchEditor, type SketchDocument, type SketchItem } from './SketchEditor';
interface Props {
projectId: string;
files: ProjectFile[];
liveArtifacts: LiveArtifactSummary[];
onRefreshFiles: () => Promise<void> | void;
isDeck: boolean;
onExportAsPptx?: ((fileName: string) => void) | undefined;
streaming?: boolean;
openRequest?: { name: string; nonce: number } | null;
liveArtifactEvents?: LiveArtifactEventItem[];
// Persisted set of open tabs + active tab. Owned by ProjectView so the
// daemon's SQLite store can hold the source of truth and survive reloads.
tabsState: OpenTabsState;
onTabsStateChange: (next: OpenTabsState) => void;
previewComments?: PreviewComment[];
onSavePreviewComment?: (target: PreviewCommentTarget, note: string, attachAfterSave: boolean) => Promise<PreviewComment | null>;
onRemovePreviewComment?: (commentId: string) => Promise<void>;
onSendBoardCommentAttachments?: (attachments: ChatCommentAttachment[]) => Promise<void> | void;
focusMode?: boolean;
onFocusModeChange?: (next: boolean) => void;
}
interface SketchState {
items: SketchItem[];
dirty: boolean;
persisted: boolean;
loaded: boolean;
saving: boolean;
}
const DESIGN_FILES_TAB = '__design_files__';
export function FileWorkspace({
projectId,
files,
liveArtifacts,
onRefreshFiles,
isDeck,
onExportAsPptx,
streaming,
openRequest,
liveArtifactEvents = [],
tabsState,
onTabsStateChange,
previewComments = [],
onSavePreviewComment,
onRemovePreviewComment,
onSendBoardCommentAttachments,
focusMode = false,
onFocusModeChange,
}: Props) {
const t = useT();
// Persisted tabs come from the parent. Active tab can transiently point
// at a pending sketch — pending sketches are not in tabsState.tabs.
const persistedTabs = tabsState.tabs;
const [activeTab, setActiveTab] = useState<string>(
tabsState.active ?? DESIGN_FILES_TAB,
);
const [showPasteDialog, setShowPasteDialog] = useState(false);
const [uploadError, setUploadError] = useState<string | null>(null);
const [sketches, setSketches] = useState<Record<string, SketchState>>({});
const [quickSwitcherOpen, setQuickSwitcherOpen] = useState(false);
const fileInputRef = useRef<HTMLInputElement | null>(null);
const tabsBarRef = useRef<HTMLDivElement | null>(null);
const visibleFiles = useMemo(
() => files.filter((file) => !isLiveArtifactImplementationPath(file.name)),
[files],
);
const liveArtifactEntries = useMemo(
() => liveArtifacts.map(liveArtifactSummaryToWorkspaceEntry),
[liveArtifacts],
);
// Pull the persisted active tab in when the parent's hydration completes
// (or on project switch). Fall back to the Design Files browser so a
// fresh project lands in a useful place.
useEffect(() => {
setActiveTab(tabsState.active ?? DESIGN_FILES_TAB);
}, [tabsState.active]);
function setPersistedActive(name: string | null) {
setActiveTab(name ?? DESIGN_FILES_TAB);
onTabsStateChange({ tabs: persistedTabs, active: name });
}
function activatePending(name: string) {
// Pending sketches are not in tabsState.tabs — flip the local
// activeTab without round-tripping through the parent.
setActiveTab(name);
}
// When the persisted tab list changes and the active tab is gone, fall
// back to the last remaining tab. Skip transient activeTab values
// (DESIGN_FILES_TAB, pending sketches) since those aren't in persistedTabs.
useEffect(() => {
if (activeTab === DESIGN_FILES_TAB) return;
if (sketches[activeTab] && !sketches[activeTab]!.persisted) return;
if (!persistedTabs.includes(activeTab)) {
setPersistedActive(persistedTabs[persistedTabs.length - 1] ?? null);
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [persistedTabs, activeTab]);
// External open requests from chat (tool cards, produced-file chips,
// deep-linked URL, or the parent's auto-open after an agent Write) —
// add the file to the open-tabs set and focus it.
useEffect(() => {
if (!openRequest) return;
const name = openRequest.name;
if (!name) return;
onTabsStateChange({
tabs: persistedTabs.includes(name) ? persistedTabs : [...persistedTabs, name],
active: name,
});
setActiveTab(name);
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [openRequest]);
function openFile(name: string) {
onTabsStateChange({
tabs: persistedTabs.includes(name) ? persistedTabs : [...persistedTabs, name],
active: name,
});
setActiveTab(name);
}
function closeTab(name: string) {
const isPending = sketches[name] && !sketches[name]!.persisted;
if (isPending) {
setSketches((curr) => {
const next = { ...curr };
delete next[name];
return next;
});
if (activeTab === name) {
setPersistedActive(persistedTabs[persistedTabs.length - 1] ?? null);
}
return;
}
const nextTabs = persistedTabs.filter((n) => n !== name);
const nextActive =
tabsState.active === name
? nextTabs[nextTabs.length - 1] ?? null
: tabsState.active;
onTabsStateChange({ tabs: nextTabs, active: nextActive });
setActiveTab(nextActive ?? DESIGN_FILES_TAB);
setSketches((curr) => {
const next = { ...curr };
const entry = next[name];
if (entry && !entry.persisted) delete next[name];
return next;
});
}
async function handleFilePicked(ev: React.ChangeEvent<HTMLInputElement>) {
const picked = Array.from(ev.target.files ?? []);
ev.target.value = '';
await uploadFiles(picked);
}
async function uploadFiles(picked: File[]) {
if (picked.length === 0) return;
setUploadError(null);
const result = await uploadProjectFiles(projectId, picked);
if (result.uploaded.length > 0) {
await onRefreshFiles();
const lastUploaded = result.uploaded[result.uploaded.length - 1];
if (lastUploaded?.path) openFile(lastUploaded.path);
}
if (result.failed.length > 0) {
const failedCount = result.failed.length;
const uploadedCount = result.uploaded.length;
const detail = result.error ? ` (${result.error})` : '';
setUploadError(
uploadedCount > 0
? `Uploaded ${uploadedCount} file(s), but ${failedCount} failed${detail}.`
: `Upload failed for ${failedCount} file(s)${detail}.`,
);
console.warn('Project upload had failures', result.failed);
}
}
useEffect(() => {
const hasFiles = (e: DragEvent) =>
Array.from(e.dataTransfer?.types ?? []).includes('Files');
const isAllowedDropTarget = (target: EventTarget | null) => {
if (!(target instanceof Element)) return false;
return Boolean(target.closest('.df-drop, .composer'));
};
const onDragOver = (e: DragEvent) => {
if (!hasFiles(e) || isAllowedDropTarget(e.target)) return;
e.preventDefault();
if (e.dataTransfer) e.dataTransfer.dropEffect = 'none';
};
const onDrop = (e: DragEvent) => {
if (!hasFiles(e) || isAllowedDropTarget(e.target)) return;
e.preventDefault();
};
window.addEventListener('dragover', onDragOver);
window.addEventListener('drop', onDrop);
return () => {
window.removeEventListener('dragover', onDragOver);
window.removeEventListener('drop', onDrop);
};
}, []);
useEffect(() => {
const tabBar = tabsBarRef.current;
if (!tabBar) return;
const onWheel = (event: globalThis.WheelEvent) => {
scrollWorkspaceTabsWithWheel(tabBar, event);
};
tabBar.addEventListener('wheel', onWheel, { passive: false });
return () => tabBar.removeEventListener('wheel', onWheel);
}, []);
// Cmd+P (mac) / Ctrl+P (win/linux) opens the file palette. Capture phase
// so we beat the browser's default print dialog. Platform-gated so on
// macOS we don't steal Ctrl+P from native readline ("previous line") in
// text fields, and on win/linux we don't steal Cmd+P (rare but possible
// on remapped keyboards).
useEffect(() => {
const isMac =
typeof navigator !== 'undefined' && /Mac|iPod|iPhone|iPad/.test(navigator.platform);
const onKeyDown = (e: KeyboardEvent) => {
const primary = isMac ? e.metaKey && !e.ctrlKey : e.ctrlKey && !e.metaKey;
if (primary && !e.shiftKey && !e.altKey && e.key.toLowerCase() === 'p') {
if (e.isComposing) return;
e.preventDefault();
setQuickSwitcherOpen((open) => !open);
} else if (e.key === 'Escape' && quickSwitcherOpen) {
// The palette handles Esc itself, but also catch it here for the
// case where focus has drifted off the palette input.
setQuickSwitcherOpen(false);
}
};
window.addEventListener('keydown', onKeyDown, { capture: true });
return () => window.removeEventListener('keydown', onKeyDown, { capture: true });
}, [quickSwitcherOpen]);
async function handleDelete(name: string) {
if (!confirm(t('workspace.deleteFileConfirm', { name }))) return;
const ok = await deleteProjectFile(projectId, name);
if (ok) {
await onRefreshFiles();
const nextTabs = persistedTabs.filter((n) => n !== name);
if (activeTab === name) {
// User is viewing the file being deleted: fall back to another
// open tab (or the Design Files panel if none remain).
const nextActive = nextTabs[nextTabs.length - 1] ?? null;
onTabsStateChange({ tabs: nextTabs, active: nextActive });
setActiveTab(nextActive ?? DESIGN_FILES_TAB);
} else {
// Deletion was triggered from the Design Files panel (or another
// tab). We preserve `activeTab` because the user is viewing a
// different context (Design Files or another tab) and shouldn't
// be navigated away. Only clear the persisted active reference
// when it points at the deleted file so we don't leave a dangling
// pointer behind.
const nextActive = tabsState.active === name ? null : tabsState.active;
onTabsStateChange({ tabs: nextTabs, active: nextActive });
}
setSketches((curr) => {
const next = { ...curr };
delete next[name];
return next;
});
}
}
function startNewSketch() {
const stamp = new Date().toISOString().replace(/[:.]/g, '-').slice(0, 19);
const name = `sketch-${stamp}.sketch.json`;
setSketches((curr) => ({
...curr,
[name]: { items: [], dirty: false, persisted: false, loaded: true, saving: false },
}));
activatePending(name);
}
// When the active tab is a sketch we don't have items for yet, load from
// disk. Pending sketches start with loaded=true and skip this path.
useEffect(() => {
if (activeTab === DESIGN_FILES_TAB) return;
if (!isSketchName(activeTab)) return;
if (sketches[activeTab]?.loaded) return;
let cancelled = false;
void fetchProjectFileText(projectId, activeTab).then((text) => {
if (cancelled) return;
const items = parseSketchDocument(text);
setSketches((curr) => ({
...curr,
[activeTab]: {
items,
dirty: false,
persisted: true,
loaded: true,
saving: false,
},
}));
});
return () => {
cancelled = true;
};
}, [activeTab, projectId, sketches]);
function setSketchItems(name: string, items: SketchItem[]) {
setSketches((curr) => ({
...curr,
[name]: {
...(curr[name] ?? { persisted: false, loaded: true, saving: false }),
items,
dirty: true,
} as SketchState,
}));
}
async function saveSketch(name: string) {
const entry = sketches[name];
if (!entry) return;
setSketches((curr) => ({ ...curr, [name]: { ...curr[name]!, saving: true } }));
const doc: SketchDocument = { version: 1, items: entry.items };
const file = await writeProjectTextFile(projectId, name, JSON.stringify(doc, null, 2));
if (file) {
setSketches((curr) => ({
...curr,
[name]: { ...curr[name]!, dirty: false, persisted: true, saving: false },
}));
// Promote the previously-pending sketch into the persisted tab list.
onTabsStateChange({
tabs: persistedTabs.includes(name) ? persistedTabs : [...persistedTabs, name],
active: name,
});
setActiveTab(name);
await onRefreshFiles();
} else {
setSketches((curr) => ({ ...curr, [name]: { ...curr[name]!, saving: false } }));
}
}
const activeFile = useMemo<ProjectFile | null>(() => {
if (activeTab === DESIGN_FILES_TAB) return null;
const onDisk = visibleFiles.find((f) => f.name === activeTab);
if (onDisk) return onDisk;
if (isSketchName(activeTab) && sketches[activeTab]) {
return {
name: activeTab,
size: 0,
mtime: Date.now(),
kind: 'sketch',
mime: 'application/json',
};
}
return null;
}, [activeTab, visibleFiles, sketches]);
const activeLiveArtifact = useMemo<LiveArtifactWorkspaceEntry | null>(() => {
if (activeTab === DESIGN_FILES_TAB) return null;
return liveArtifactEntries.find((entry) => entry.tabId === activeTab) ?? null;
}, [activeTab, liveArtifactEntries]);
// Tabs rendered are persisted tabs plus any pending (un-saved) sketches.
const tabNames = useMemo(() => {
const seen = new Set(persistedTabs);
const extras: string[] = [];
for (const name of Object.keys(sketches)) {
if (!sketches[name]?.persisted && !seen.has(name)) {
extras.push(name);
seen.add(name);
}
}
return [...persistedTabs, ...extras];
}, [persistedTabs, sketches]);
const isActiveSketch = activeFile?.kind === 'sketch' && isSketchName(activeFile.name);
const activeSketch = activeFile && isActiveSketch ? sketches[activeFile.name] : null;
return (
<div className="workspace" data-testid="file-workspace">
<div className="ws-tabs-shell">
<div
ref={tabsBarRef}
className="ws-tabs-bar"
role="tablist"
aria-label={t('workspace.designFiles')}
>
<button
type="button"
className={`ws-tab design-files-tab ${activeTab === DESIGN_FILES_TAB ? 'active' : ''}`}
role="tab"
aria-selected={activeTab === DESIGN_FILES_TAB}
tabIndex={0}
data-testid="design-files-tab"
onClick={() => setActiveTab(DESIGN_FILES_TAB)}
title={t('workspace.designFiles')}
>
<span className="tab-icon" aria-hidden>
<Icon name="grid" size={13} />
</span>
<span className="ws-tab-label">{t('workspace.designFiles')}</span>
</button>
{tabNames.map((name) => {
const sketchEntry = sketches[name];
const dirtyMark =
sketchEntry && (sketchEntry.dirty || !sketchEntry.persisted) ? ' •' : '';
const isPending = sketchEntry && !sketchEntry.persisted;
const onDisk = visibleFiles.find((f) => f.name === name);
const liveArtifact = liveArtifactEntries.find((entry) => entry.tabId === name);
const kind = liveArtifact ? 'live-artifact' : onDisk?.kind ?? (isSketchName(name) ? 'sketch' : 'text');
return (
<Tab
key={name}
label={`${liveArtifact?.title ?? name}${dirtyMark}`}
active={activeTab === name}
onActivate={() =>
isPending ? activatePending(name) : setPersistedActive(name)
}
onClose={() => closeTab(name)}
kind={kind}
liveArtifact={liveArtifact}
/>
);
})}
</div>
{onFocusModeChange ? (
<div className="ws-tabs-actions">
<button
type="button"
className="ws-focus-toggle"
data-testid="workspace-focus-toggle"
aria-pressed={focusMode}
title={focusMode ? t('workspace.showChat') : t('workspace.focusMode')}
onClick={() => onFocusModeChange(!focusMode)}
>
<Icon name={focusMode ? 'comment' : 'zoom-in'} size={13} />
<span>{focusMode ? t('workspace.showChat') : t('workspace.focusMode')}</span>
</button>
</div>
) : null}
</div>
<div className="ws-body">
{uploadError ? <div className="viewer-empty">{uploadError}</div> : null}
{activeTab === DESIGN_FILES_TAB ? (
<DesignFilesPanel
key={projectId}
projectId={projectId}
files={visibleFiles}
liveArtifacts={liveArtifactEntries}
onRefreshFiles={onRefreshFiles}
onOpenFile={openFile}
onOpenLiveArtifact={(tabId) => openFile(tabId)}
onDeleteFile={(name) => void handleDelete(name)}
onUpload={() => fileInputRef.current?.click()}
onUploadFiles={(picked) => void uploadFiles(picked)}
onPaste={() => setShowPasteDialog(true)}
onNewSketch={startNewSketch}
/>
) : isActiveSketch && activeSketch && activeFile ? (
activeSketch.loaded ? (
<SketchEditor
fileName={activeFile.name}
items={activeSketch.items}
onItemsChange={(items) => setSketchItems(activeFile.name, items)}
onSave={() => saveSketch(activeFile.name)}
saving={activeSketch.saving}
dirty={activeSketch.dirty || !activeSketch.persisted}
onCancel={() => closeTab(activeFile.name)}
/>
) : (
<div className="viewer-empty">{t('workspace.loadingSketch')}</div>
)
) : activeLiveArtifact ? (
<LiveArtifactViewer
projectId={projectId}
liveArtifact={activeLiveArtifact}
liveArtifactEvents={liveArtifactEvents}
onRefreshArtifacts={onRefreshFiles}
/>
) : activeFile ? (
<FileViewer
projectId={projectId}
file={activeFile}
isDeck={isDeck}
onExportAsPptx={onExportAsPptx}
streaming={streaming}
previewComments={previewComments.filter((comment) => comment.filePath === activeFile.name)}
onSavePreviewComment={onSavePreviewComment}
onRemovePreviewComment={onRemovePreviewComment}
onSendBoardCommentAttachments={onSendBoardCommentAttachments}
onFileSaved={onRefreshFiles}
/>
) : (
<div className="viewer-empty">
{t('workspace.openFromDesignFiles')}{' '}
<a
className="link"
href="#"
onClick={(e) => {
e.preventDefault();
setActiveTab(DESIGN_FILES_TAB);
}}
>
{t('workspace.designFilesLink')}
</a>
.
</div>
)}
</div>
<input
ref={fileInputRef}
type="file"
multiple
data-testid="design-files-upload-input"
style={{ display: 'none' }}
onChange={handleFilePicked}
/>
{showPasteDialog ? (
<PasteTextDialog
onClose={() => setShowPasteDialog(false)}
onSave={async (name, content) => {
setShowPasteDialog(false);
const file = await writeProjectTextFile(projectId, name, content);
if (file) {
await onRefreshFiles();
openFile(file.name);
}
}}
/>
) : null}
{quickSwitcherOpen ? (
<QuickSwitcher
projectId={projectId}
files={visibleFiles}
onOpenFile={(name) => {
openFile(name);
setQuickSwitcherOpen(false);
}}
onClose={() => setQuickSwitcherOpen(false)}
/>
) : null}
</div>
);
}
function Tab({
label,
active,
onActivate,
onClose,
closable = true,
kind,
liveArtifact,
}: {
label: string;
active: boolean;
onActivate: () => void;
onClose?: () => void;
closable?: boolean;
kind?: ProjectFile['kind'] | 'live-artifact';
liveArtifact?: LiveArtifactWorkspaceEntry;
}) {
const t = useT();
const iconName = kindIconName(kind);
return (
<div
className={`ws-tab ${active ? 'active' : ''}`}
onClick={onActivate}
onKeyDown={(e) => {
if (e.key === 'Enter' || e.key === ' ') {
e.preventDefault();
onActivate();
}
}}
role="tab"
aria-selected={active}
tabIndex={0}
>
{iconName ? (
<span className="tab-icon" aria-hidden>
<Icon name={iconName} size={13} />
</span>
) : null}
<span className="ws-tab-label">{label}</span>
{liveArtifact ? (
<LiveArtifactBadges
compact
className="ws-live-artifact-badges"
status={liveArtifact.status}
refreshStatus={liveArtifact.refreshStatus}
/>
) : null}
{closable && onClose ? (
<button
type="button"
className="ws-tab-close"
onClick={(e) => {
e.stopPropagation();
onClose();
}}
title={t('workspace.closeTab')}
>
<Icon name="close" size={11} />
</button>
) : null}
</div>
);
}
export function scrollWorkspaceTabsWithWheel(
tabBar: Pick<HTMLDivElement, 'clientWidth' | 'scrollLeft' | 'scrollWidth'>,
event: Pick<globalThis.WheelEvent, 'ctrlKey' | 'deltaMode' | 'deltaX' | 'deltaY' | 'preventDefault'>,
) {
if (event.ctrlKey) return;
if (Math.abs(event.deltaY) <= Math.abs(event.deltaX)) return;
if (tabBar.scrollWidth <= tabBar.clientWidth) return;
const before = tabBar.scrollLeft;
tabBar.scrollLeft += wheelDeltaToPixels(event.deltaY, event.deltaMode);
if (tabBar.scrollLeft === before) return;
event.preventDefault();
}
function wheelDeltaToPixels(delta: number, deltaMode: number): number {
const WHEEL_DELTA_LINE = 1;
const WHEEL_DELTA_PAGE = 2;
if (deltaMode === WHEEL_DELTA_LINE) return delta * 16;
if (deltaMode === WHEEL_DELTA_PAGE) return delta * 160;
return delta;
}
function kindIconName(
kind?: string,
):
| 'file-code'
| 'image'
| 'pencil'
| 'file'
| null {
if (kind === 'live-artifact') return 'file-code';
if (kind === 'html') return 'file-code';
if (kind === 'image') return 'image';
if (kind === 'sketch') return 'pencil';
if (kind === 'code') return 'file-code';
if (kind === 'text') return 'file';
return 'file';
}
function isSketchName(name: string): boolean {
return name.endsWith('.sketch.json');
}
function isLiveArtifactImplementationPath(name: string): boolean {
if (name === '.live-artifacts') return true;
if (!name.startsWith('.live-artifacts/')) return false;
// Live artifacts are exposed through virtual tree nodes only. In
// particular, keep implementation-only snapshot and tile files hidden even
// if a generic project-files endpoint returns them in older daemon builds.
return true;
}
function parseSketchDocument(text: string | null): SketchItem[] {
if (!text) return [];
try {
const parsed = JSON.parse(text) as SketchDocument | { items?: SketchItem[] };
return Array.isArray(parsed.items) ? parsed.items : [];
} catch {
return [];
}
}
+443
View File
@@ -0,0 +1,443 @@
import type { SVGProps } from 'react';
type IconName =
| 'arrow-left'
| 'arrow-up'
| 'attach'
| 'bell'
| 'check'
| 'chevron-down'
| 'chevron-left'
| 'chevron-right'
| 'close'
| 'copy'
| 'comment'
| 'download'
| 'draw'
| 'edit'
| 'external-link'
| 'eye'
| 'file'
| 'file-code'
| 'folder'
| 'grid'
| 'history'
| 'image'
| 'import'
| 'kanban'
| 'languages'
| 'link'
| 'mic'
| 'minus'
| 'pencil'
| 'plus'
| 'play'
| 'present'
| 'refresh'
| 'reload'
| 'search'
| 'send'
| 'settings'
| 'share'
| 'sliders'
| 'spinner'
| 'sparkles'
| 'stop'
| 'sun-moon'
| 'tweaks'
| 'upload'
| 'zoom-in'
| 'zoom-out';
interface Props extends Omit<SVGProps<SVGSVGElement>, 'name'> {
name: IconName;
size?: number | string;
}
/**
* Lightweight inline-SVG icon set tuned to the design system. Stroke-based
* (Feather/Lucide style) so they pair cleanly with `currentColor` and adopt
* the local text color. Use sparingly inside buttons that already have
* accessible labels — set `aria-hidden` by default.
*/
export function Icon({ name, size = 14, strokeWidth = 1.6, ...rest }: Props) {
const common = {
width: size,
height: size,
viewBox: '0 0 24 24',
fill: 'none',
stroke: 'currentColor',
strokeWidth,
strokeLinecap: 'round' as const,
strokeLinejoin: 'round' as const,
'aria-hidden': true,
focusable: 'false' as const,
...rest,
};
switch (name) {
case 'arrow-left':
return (
<svg {...common}>
<path d="M19 12H5" />
<path d="m12 19-7-7 7-7" />
</svg>
);
case 'arrow-up':
return (
<svg {...common}>
<path d="M12 19V5" />
<path d="m5 12 7-7 7 7" />
</svg>
);
case 'attach':
return (
<svg {...common}>
<path d="m21.44 11.05-9.19 9.19a6 6 0 0 1-8.49-8.49l9.19-9.19a4 4 0 0 1 5.66 5.66l-9.2 9.19a2 2 0 0 1-2.83-2.83l8.49-8.48" />
</svg>
);
case 'bell':
return (
<svg {...common}>
<path d="M6 8a6 6 0 1 1 12 0c0 7 3 9 3 9H3s3-2 3-9" />
<path d="M10.3 21a1.94 1.94 0 0 0 3.4 0" />
</svg>
);
case 'check':
return (
<svg {...common}>
<path d="M20 6 9 17l-5-5" />
</svg>
);
case 'chevron-down':
return (
<svg {...common}>
<path d="m6 9 6 6 6-6" />
</svg>
);
case 'chevron-left':
return (
<svg {...common}>
<path d="m15 18-6-6 6-6" />
</svg>
);
case 'chevron-right':
return (
<svg {...common}>
<path d="m9 18 6-6-6-6" />
</svg>
);
case 'close':
return (
<svg {...common}>
<path d="M18 6 6 18" />
<path d="m6 6 12 12" />
</svg>
);
case 'copy':
return (
<svg {...common}>
<rect x="9" y="9" width="13" height="13" rx="2" />
<path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1" />
</svg>
);
case 'comment':
return (
<svg {...common}>
<path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z" />
</svg>
);
case 'download':
return (
<svg {...common}>
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />
<path d="m7 10 5 5 5-5" />
<path d="M12 15V3" />
</svg>
);
case 'draw':
return (
<svg {...common}>
<path d="M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25z" />
<path d="m14.06 6.19 3.75 3.75" />
</svg>
);
case 'edit':
return (
<svg {...common}>
<path d="M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7" />
<path d="M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z" />
</svg>
);
case 'eye':
return (
<svg {...common}>
<path d="M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z" />
<circle cx="12" cy="12" r="3" />
</svg>
);
case 'external-link':
return (
<svg {...common}>
<path d="M15 3h6v6" />
<path d="M10 14 21 3" />
<path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" />
</svg>
);
case 'file':
return (
<svg {...common}>
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" />
<path d="M14 2v6h6" />
</svg>
);
case 'file-code':
return (
<svg {...common}>
<path d="M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z" />
<path d="M14 2v6h6" />
<path d="m10 13-2 2 2 2" />
<path d="m14 17 2-2-2-2" />
</svg>
);
case 'folder':
return (
<svg {...common}>
<path d="M22 19a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h5l2 3h9a2 2 0 0 1 2 2z" />
</svg>
);
case 'grid':
return (
<svg {...common}>
<rect x="3" y="3" width="7" height="7" rx="1" />
<rect x="14" y="3" width="7" height="7" rx="1" />
<rect x="3" y="14" width="7" height="7" rx="1" />
<rect x="14" y="14" width="7" height="7" rx="1" />
</svg>
);
case 'history':
return (
<svg {...common}>
<path d="M3 12a9 9 0 1 0 3-6.7" />
<path d="M3 4v5h5" />
<path d="M12 7v5l3 2" />
</svg>
);
case 'image':
return (
<svg {...common}>
<rect x="3" y="3" width="18" height="18" rx="2" />
<circle cx="9" cy="9" r="2" />
<path d="m21 15-4.5-4.5L7 20" />
</svg>
);
case 'import':
return (
<svg {...common}>
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />
<path d="m17 8-5-5-5 5" />
<path d="M12 3v12" />
</svg>
);
case 'kanban':
return (
<svg {...common}>
<rect x="3" y="4" width="5" height="16" rx="1" />
<rect x="10" y="4" width="5" height="10" rx="1" />
<rect x="17" y="4" width="4" height="13" rx="1" />
</svg>
);
case 'languages':
return (
<svg {...common}>
<path d="m5 8 6 6" />
<path d="m4 14 6-6 2-3" />
<path d="M2 5h12" />
<path d="M7 2h1" />
<path d="m22 22-5-10-5 10" />
<path d="M14 18h6" />
</svg>
);
case 'link':
return (
<svg {...common}>
<path d="M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 1 0-7.07-7.07L11.75 5.18" />
<path d="M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 1 0 7.07 7.07l1.71-1.71" />
</svg>
);
case 'mic':
return (
<svg {...common}>
<rect x="9" y="2" width="6" height="11" rx="3" />
<path d="M19 10v1a7 7 0 0 1-14 0v-1" />
<path d="M12 18v3" />
</svg>
);
case 'minus':
return (
<svg {...common}>
<path d="M5 12h14" />
</svg>
);
case 'pencil':
return (
<svg {...common}>
<path d="M12 20h9" />
<path d="M16.5 3.5a2.121 2.121 0 0 1 3 3L7 19l-4 1 1-4z" />
</svg>
);
case 'plus':
return (
<svg {...common}>
<path d="M12 5v14" />
<path d="M5 12h14" />
</svg>
);
case 'play':
return (
<svg {...common}>
<path d="M6 4v16l14-8z" />
</svg>
);
case 'present':
return (
<svg {...common}>
<rect x="2" y="3" width="20" height="14" rx="2" />
<path d="M8 21h8" />
<path d="M12 17v4" />
</svg>
);
case 'refresh':
return (
<svg {...common}>
<path d="M3 12a9 9 0 0 1 15.9-5.7L21 8" />
<path d="M21 3v5h-5" />
<path d="M21 12a9 9 0 0 1-15.9 5.7L3 16" />
<path d="M3 21v-5h5" />
</svg>
);
case 'reload':
return (
<svg {...common}>
<path d="M21 12a9 9 0 1 1-3-6.7" />
<path d="M21 4v5h-5" />
</svg>
);
case 'search':
return (
<svg {...common}>
<circle cx="11" cy="11" r="7" />
<path d="m21 21-4.3-4.3" />
</svg>
);
case 'send':
return (
<svg {...common}>
<path d="M22 2 11 13" />
<path d="m22 2-7 20-4-9-9-4z" />
</svg>
);
case 'settings':
return (
<svg {...common}>
<circle cx="12" cy="12" r="3" />
<path d="M19.4 15a1.7 1.7 0 0 0 .34 1.87l.06.06a2 2 0 0 1-2.82 2.83l-.06-.07a1.7 1.7 0 0 0-1.88-.33 1.7 1.7 0 0 0-1.04 1.56V21a2 2 0 0 1-4 0v-.1A1.7 1.7 0 0 0 9 19.4a1.7 1.7 0 0 0-1.87.34l-.06.06a2 2 0 1 1-2.83-2.82l.07-.06a1.7 1.7 0 0 0 .33-1.88 1.7 1.7 0 0 0-1.56-1.04H3a2 2 0 0 1 0-4h.1a1.7 1.7 0 0 0 1.56-1.04 1.7 1.7 0 0 0-.34-1.87l-.06-.06a2 2 0 1 1 2.83-2.83l.06.07A1.7 1.7 0 0 0 9 4.6a1.7 1.7 0 0 0 1.04-1.56V3a2 2 0 1 1 4 0v.1a1.7 1.7 0 0 0 1.04 1.56 1.7 1.7 0 0 0 1.87-.34l.06-.06a2 2 0 1 1 2.83 2.83l-.07.06a1.7 1.7 0 0 0-.33 1.87V9a1.7 1.7 0 0 0 1.56 1.04H21a2 2 0 0 1 0 4h-.1a1.7 1.7 0 0 0-1.56 1.04Z" />
</svg>
);
case 'share':
return (
<svg {...common}>
<path d="M4 12v7a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-7" />
<path d="m16 6-4-4-4 4" />
<path d="M12 2v13" />
</svg>
);
case 'sliders':
return (
<svg {...common}>
<path d="M4 21v-7" />
<path d="M4 10V3" />
<path d="M12 21v-9" />
<path d="M12 8V3" />
<path d="M20 21v-5" />
<path d="M20 12V3" />
<path d="M1 14h6" />
<path d="M9 8h6" />
<path d="M17 16h6" />
</svg>
);
case 'spinner':
return (
<svg {...common} className={`icon-spin ${rest.className ?? ''}`.trim()}>
<path d="M21 12a9 9 0 1 1-6.22-8.56" />
</svg>
);
case 'sparkles':
return (
<svg {...common}>
<path d="m12 3 1.5 4.5L18 9l-4.5 1.5L12 15l-1.5-4.5L6 9l4.5-1.5z" />
<path d="M19 14v3" />
<path d="M19 21v-1" />
<path d="M22 17h-3" />
<path d="M16 17h-1" />
</svg>
);
case 'stop':
return (
<svg {...common}>
<rect x="6" y="6" width="12" height="12" rx="1.5" />
</svg>
);
case 'sun-moon':
return (
<svg {...common}>
<path d="M12 8a2.83 2.83 0 0 0 4 4 4 4 0 1 1-4-4" />
<path d="M12 2v2" />
<path d="M12 20v2" />
<path d="m4.9 4.9 1.4 1.4" />
<path d="m17.7 17.7 1.4 1.4" />
<path d="M2 12h2" />
<path d="M20 12h2" />
<path d="m6.3 17.7-1.4 1.4" />
<path d="m19.1 4.9-1.4 1.4" />
</svg>
);
case 'tweaks':
return (
<svg {...common}>
<path d="M4 6h13" />
<circle cx="19" cy="6" r="2" />
<path d="M4 18h7" />
<circle cx="13" cy="18" r="2" />
<path d="M17 12H4" />
<circle cx="19" cy="12" r="2" />
</svg>
);
case 'upload':
return (
<svg {...common}>
<path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4" />
<path d="m17 8-5-5-5 5" />
<path d="M12 3v12" />
</svg>
);
case 'zoom-in':
return (
<svg {...common}>
<circle cx="11" cy="11" r="7" />
<path d="M11 8v6" />
<path d="M8 11h6" />
<path d="m21 21-4.3-4.3" />
</svg>
);
case 'zoom-out':
return (
<svg {...common}>
<circle cx="11" cy="11" r="7" />
<path d="M8 11h6" />
<path d="m21 21-4.3-4.3" />
</svg>
);
default:
return null;
}
}
+78
View File
@@ -0,0 +1,78 @@
import { useEffect, useRef, useState } from 'react';
import { LOCALE_LABEL, LOCALES, useI18n, type Locale } from '../i18n';
import { Icon } from './Icon';
/**
* Compact language switcher rendered as a foot-pill in the entry view's
* lower-left corner. Mirrors the "Local CLI · agent" pill so it doesn't
* fight for visual weight, but remains discoverable for first-time users
* who'd rather not dig into the settings dialog just to swap languages.
*/
export function LanguageMenu() {
const { locale, setLocale } = useI18n();
const [open, setOpen] = useState(false);
const wrapRef = useRef<HTMLDivElement | null>(null);
useEffect(() => {
if (!open) return;
function onDown(e: MouseEvent) {
if (!wrapRef.current) return;
if (wrapRef.current.contains(e.target as Node)) return;
setOpen(false);
}
function onKey(e: KeyboardEvent) {
if (e.key === 'Escape') setOpen(false);
}
document.addEventListener('mousedown', onDown);
document.addEventListener('keydown', onKey);
return () => {
document.removeEventListener('mousedown', onDown);
document.removeEventListener('keydown', onKey);
};
}, [open]);
return (
<div className="lang-menu-wrap" ref={wrapRef}>
<button
type="button"
className="foot-pill lang-pill"
aria-haspopup="menu"
aria-expanded={open}
onClick={() => setOpen((v) => !v)}
title={LOCALE_LABEL[locale]}
>
<Icon name="languages" size={12} />
<span>{LOCALE_LABEL[locale]}</span>
<Icon name="chevron-down" size={11} />
</button>
{open ? (
<div className="lang-menu-popover" role="menu">
{LOCALES.map((code) => {
const active = locale === code;
return (
<button
key={code}
type="button"
role="menuitemradio"
aria-checked={active}
className={`lang-menu-item${active ? ' active' : ''}`}
onClick={() => {
setLocale(code as Locale);
setOpen(false);
}}
>
<span className="lang-menu-label">{LOCALE_LABEL[code]}</span>
<span className="lang-menu-code">{code}</span>
{active ? (
<span className="lang-menu-check" aria-hidden>
<Icon name="check" size={12} />
</span>
) : null}
</button>
);
})}
</div>
) : null}
</div>
);
}
+369
View File
@@ -0,0 +1,369 @@
import { useCallback, useEffect, useMemo, useState } from 'react';
import type { Dispatch, SetStateAction } from 'react';
import { useT } from '../i18n';
import { Icon } from './Icon';
import type { AppConfig } from '../types';
import type { SkillSummary, DesignSystemSummary } from '@open-design/contracts';
import {
fetchSkills,
fetchDesignSystems,
fetchSkill,
fetchDesignSystem,
} from '../providers/registry';
type Tab = 'skills' | 'design-systems';
interface Props {
cfg: AppConfig;
setCfg: Dispatch<SetStateAction<AppConfig>>;
}
const MODES = [
'prototype',
'deck',
'template',
'design-system',
'image',
'video',
'audio',
] as const;
export function LibrarySection({ cfg, setCfg }: Props) {
const t = useT();
const [tab, setTab] = useState<Tab>('skills');
const [search, setSearch] = useState('');
const [modeFilter, setModeFilter] = useState('all');
const [categoryFilter, setCategoryFilter] = useState('All');
const [skills, setSkills] = useState<SkillSummary[]>([]);
const [designSystems, setDesignSystems] = useState<DesignSystemSummary[]>([]);
const [previewId, setPreviewId] = useState<string | null>(null);
const [previewBody, setPreviewBody] = useState<string | null>(null);
const [previewLoading, setPreviewLoading] = useState(false);
useEffect(() => {
fetchSkills().then(setSkills);
fetchDesignSystems().then(setDesignSystems);
}, []);
const categories = useMemo(() => {
const cats = new Set(designSystems.map((d) => d.category));
return ['All', ...Array.from(cats).sort()];
}, [designSystems]);
const disabledSkills = useMemo(
() => new Set(cfg.disabledSkills ?? []),
[cfg.disabledSkills],
);
const disabledDS = useMemo(
() => new Set(cfg.disabledDesignSystems ?? []),
[cfg.disabledDesignSystems],
);
const filteredSkills = useMemo(() => {
const q = search.toLowerCase();
return skills.filter((s) => {
if (modeFilter !== 'all' && s.mode !== modeFilter) return false;
if (q && !s.name.toLowerCase().includes(q) && !s.description.toLowerCase().includes(q))
return false;
return true;
});
}, [skills, modeFilter, search]);
const filteredDS = useMemo(() => {
const q = search.toLowerCase();
return designSystems.filter((d) => {
if (categoryFilter !== 'All' && d.category !== categoryFilter) return false;
if (q && !d.title.toLowerCase().includes(q) && !d.summary.toLowerCase().includes(q))
return false;
return true;
});
}, [designSystems, categoryFilter, search]);
const groupedSkills = useMemo(() => {
const groups = new Map<string, SkillSummary[]>();
for (const s of filteredSkills) {
const list = groups.get(s.mode) ?? [];
list.push(s);
groups.set(s.mode, list);
}
return groups;
}, [filteredSkills]);
const groupedDS = useMemo(() => {
const groups = new Map<string, DesignSystemSummary[]>();
for (const d of filteredDS) {
const list = groups.get(d.category) ?? [];
list.push(d);
groups.set(d.category, list);
}
return groups;
}, [filteredDS]);
const openPreview = useCallback(
async (id: string) => {
if (previewId === id) {
setPreviewId(null);
setPreviewBody(null);
return;
}
setPreviewId(id);
setPreviewBody(null);
setPreviewLoading(true);
try {
const detail =
tab === 'skills'
? await fetchSkill(id)
: await fetchDesignSystem(id);
setPreviewId((cur) => {
if (cur === id) setPreviewBody(detail?.body ?? null);
return cur;
});
} catch {
setPreviewId((cur) => {
if (cur === id) setPreviewBody(null);
return cur;
});
} finally {
setPreviewId((cur) => {
if (cur === id) setPreviewLoading(false);
return cur;
});
}
},
[previewId, tab],
);
function toggleSkillDisabled(id: string, disabled: boolean) {
setCfg((c) => {
const set = new Set(c.disabledSkills ?? []);
if (disabled) set.add(id);
else set.delete(id);
return { ...c, disabledSkills: [...set] };
});
}
function toggleDSDisabled(id: string, disabled: boolean) {
setCfg((c) => {
const set = new Set(c.disabledDesignSystems ?? []);
if (disabled) set.add(id);
else set.delete(id);
return { ...c, disabledDesignSystems: [...set] };
});
}
return (
<section className="settings-section">
<div className="section-head">
<div>
<h3>{t('settings.library')}</h3>
<p className="hint">{t('settings.libraryHint')}</p>
</div>
</div>
<div className="seg-control" role="tablist">
<button
type="button"
role="tab"
className={`seg-btn${tab === 'skills' ? ' active' : ''}`}
onClick={() => {
setTab('skills');
setModeFilter('all');
setCategoryFilter('All');
setSearch('');
setPreviewId(null);
}}
>
<span className="seg-title">
{t('settings.librarySkills')}
<span className="seg-meta">{skills.length}</span>
</span>
</button>
<button
type="button"
role="tab"
className={`seg-btn${tab === 'design-systems' ? ' active' : ''}`}
onClick={() => {
setTab('design-systems');
setModeFilter('all');
setCategoryFilter('All');
setSearch('');
setPreviewId(null);
}}
>
<span className="seg-title">
{t('settings.libraryDesignSystems')}
<span className="seg-meta">{designSystems.length}</span>
</span>
</button>
</div>
<div className="library-toolbar">
<input
type="search"
className="library-search"
placeholder={t('settings.librarySearch')}
value={search}
onChange={(e) => setSearch(e.target.value)}
/>
{tab === 'skills' ? (
<div className="library-filters">
<button
type="button"
className={`filter-pill${modeFilter === 'all' ? ' active' : ''}`}
onClick={() => setModeFilter('all')}
>
{t('settings.libraryAll')}
</button>
{MODES.map((mode) => {
const count = skills.filter((s) => s.mode === mode).length;
if (count === 0) return null;
return (
<button
key={mode}
type="button"
className={`filter-pill${modeFilter === mode ? ' active' : ''}`}
onClick={() => setModeFilter(mode)}
>
{mode}
<span className="filter-pill-count">{count}</span>
</button>
);
})}
</div>
) : (
<div className="library-filters">
{categories.map((cat) => {
const count =
cat === 'All'
? designSystems.length
: designSystems.filter((d) => d.category === cat).length;
return (
<button
key={cat}
type="button"
className={`filter-pill${categoryFilter === cat ? ' active' : ''}`}
onClick={() => setCategoryFilter(cat)}
>
{cat}
<span className="filter-pill-count">{count}</span>
</button>
);
})}
</div>
)}
</div>
<div className="library-content">
{tab === 'skills' ? (
filteredSkills.length === 0 ? (
<p className="library-empty">{t('settings.libraryNoResults')}</p>
) : (
MODES.filter((m) => groupedSkills.has(m)).map((mode) => (
<div key={mode} className="library-group">
<h4 className="library-group-title">
{mode}{' '}
<span className="library-group-count">{groupedSkills.get(mode)!.length}</span>
</h4>
{groupedSkills.get(mode)!.map((skill) => (
<div
key={skill.id}
className={`library-card${disabledSkills.has(skill.id) ? ' disabled' : ''}`}
>
<div className="library-card-info">
<div className="library-card-title-row">
<span className="library-card-name">{skill.name}</span>
<span className="library-card-badge">{skill.previewType}</span>
</div>
<div className="library-card-desc">{skill.description}</div>
</div>
<button
type="button"
className="library-card-expand"
onClick={() => openPreview(skill.id)}
title={t('settings.libraryPreview')}
>
<Icon
name={previewId === skill.id ? 'close' : 'chevron-right'}
size={14}
/>
</button>
<label className="toggle-switch" title={t('settings.libraryToggleLabel')}>
<input
type="checkbox"
checked={!disabledSkills.has(skill.id)}
onChange={(e) => toggleSkillDisabled(skill.id, !e.target.checked)}
/>
<span className="toggle-slider" />
</label>
{previewId === skill.id && (
<div className="library-preview">
{previewLoading ? (
<p>{t('settings.libraryLoading')}</p>
) : previewBody ? (
<pre className="library-preview-body">{previewBody}</pre>
) : null}
</div>
)}
</div>
))}
</div>
))
)
) : filteredDS.length === 0 ? (
<p className="library-empty">{t('settings.libraryNoResults')}</p>
) : (
<>
{Array.from(groupedDS.entries()).map(([category, items]) => (
<div key={category} className="library-group">
<h4 className="library-group-title">
{category} <span className="library-group-count">{items.length}</span>
</h4>
<div className="ds-grid">
{items.map((ds) => (
<div
key={ds.id}
className={`library-ds-card${disabledDS.has(ds.id) ? ' disabled' : ''}`}
>
<div className="library-ds-card-content" onClick={() => openPreview(ds.id)}>
{ds.swatches && ds.swatches.length > 0 && (
<div className="library-ds-swatches">
{ds.swatches.slice(0, 4).map((c, i) => (
<span
key={i}
className="library-ds-swatch"
style={{ backgroundColor: c }}
/>
))}
</div>
)}
<div className="library-ds-title">{ds.title}</div>
<div className="library-ds-summary">{ds.summary}</div>
</div>
<label className="toggle-switch toggle-switch-sm" title={t('settings.libraryToggleLabel')}>
<input
type="checkbox"
checked={!disabledDS.has(ds.id)}
onChange={(e) => toggleDSDisabled(ds.id, !e.target.checked)}
/>
<span className="toggle-slider" />
</label>
</div>
))}
</div>
</div>
))}
{previewId && filteredDS.some((d) => d.id === previewId) && (
<div className="library-preview">
{previewLoading ? (
<p>{t('settings.libraryLoading')}</p>
) : previewBody ? (
<pre className="library-preview-body">{previewBody}</pre>
) : null}
</div>
)}
</>
)}
</div>
</section>
);
}
@@ -0,0 +1,43 @@
import { useT } from '../i18n';
import type { LiveArtifactRefreshStatus, LiveArtifactStatus } from '../types';
interface Props {
status: LiveArtifactStatus;
refreshStatus: LiveArtifactRefreshStatus;
className?: string;
compact?: boolean;
}
export function LiveArtifactBadges({
status,
refreshStatus,
className,
compact = false,
}: Props) {
const t = useT();
const badges = [
{ key: 'live', label: t('designs.badgeLive') },
refreshStatus === 'running'
? { key: 'refreshing', label: t('designs.statusRefreshing') }
: null,
refreshStatus === 'failed'
? { key: 'refresh-failed', label: t('designs.statusRefreshFailed') }
: null,
status === 'archived'
? { key: 'archived', label: t('designs.statusArchived') }
: null,
].filter((badge): badge is { key: string; label: string } => Boolean(badge));
return (
<span
className={`live-artifact-badges${compact ? ' compact' : ''}${className ? ` ${className}` : ''}`}
aria-label={t('designs.liveArtifactBadgesAria')}
>
{badges.map((badge) => (
<span key={badge.key} className={`live-artifact-badge ${badge.key}`}>
{badge.label}
</span>
))}
</span>
);
}
+62
View File
@@ -0,0 +1,62 @@
import { Icon } from './Icon';
interface SpinnerProps {
size?: number;
label?: string;
}
export function Spinner({ size = 14, label }: SpinnerProps) {
return (
<span className="loading-spinner" role="status" aria-live="polite">
<Icon name="spinner" size={size} />
{label ? <span className="loading-spinner-label">{label}</span> : null}
</span>
);
}
interface SkeletonProps {
width?: number | string;
height?: number | string;
radius?: number | string;
className?: string;
}
export function Skeleton({ width, height = 14, radius = 6, className }: SkeletonProps) {
return (
<span
className={`skeleton-block${className ? ` ${className}` : ''}`}
style={{ width, height, borderRadius: radius }}
aria-hidden
/>
);
}
/**
* Card-shaped skeleton tuned for the DesignsTab grid. Renders a thumb area
* over the row of meta lines so the empty grid feels like content is
* arriving rather than missing.
*/
export function DesignCardSkeleton() {
return (
<div className="design-card design-card-skeleton" aria-hidden>
<div className="design-card-thumb skeleton-shimmer" />
<div className="design-card-meta-block">
<Skeleton height={13} width="65%" />
<Skeleton height={11} width="45%" />
</div>
</div>
);
}
/**
* Centered overlay used while bootstrap data loads (agents, skills, design
* systems, project list). Sits inside a flex/grid parent and grows with it.
*/
export function CenteredLoader({ label }: { label?: string }) {
return (
<div className="centered-loader">
<Spinner size={20} />
{label ? <span className="centered-loader-label">{label}</span> : null}
</div>
);
}
+381
View File
@@ -0,0 +1,381 @@
import { useEffect, useState } from 'react';
import { useT } from '../i18n';
import { emptyManualEditStyles, type ManualEditHistoryEntry, type ManualEditPatch, type ManualEditStyles, type ManualEditTarget } from '../edit-mode/types';
export interface ManualEditDraft {
text: string;
href: string;
src: string;
alt: string;
styles: ManualEditStyles;
attributesText: string;
outerHtml: string;
fullSource: string;
}
export type ManualEditTab = 'content' | 'style' | 'attributes' | 'html' | 'source';
export function emptyManualEditDraft(source = ''): ManualEditDraft {
return {
text: '',
href: '',
src: '',
alt: '',
styles: emptyManualEditStyles(),
attributesText: '{}',
outerHtml: '',
fullSource: source,
};
}
export function ManualEditPanel({
targets,
selectedTarget,
draft,
history,
error,
canUndo,
canRedo,
busy = false,
onSelectTarget,
onDraftChange,
onApplyPatch,
onError,
onCancelDraft,
onUndo,
onRedo,
}: {
targets: ManualEditTarget[];
selectedTarget: ManualEditTarget | null;
draft: ManualEditDraft;
history: ManualEditHistoryEntry[];
error: string | null;
canUndo: boolean;
canRedo: boolean;
busy?: boolean;
onSelectTarget: (target: ManualEditTarget) => void;
onDraftChange: (draft: ManualEditDraft) => void;
onApplyPatch: (patch: ManualEditPatch, label: string) => void;
onError: (message: string) => void;
onCancelDraft: () => void;
onUndo: () => void;
onRedo: () => void;
}) {
const t = useT();
const [tab, setTab] = useState<ManualEditTab>('content');
useEffect(() => {
setTab('content');
}, [selectedTarget?.id]);
return (
<>
<aside className="manual-edit-layers">
<div className="manual-edit-panel-head">
<h3>{t('manualEdit.layers')}</h3>
<span>{t('manualEdit.editableCount', { count: targets.length })}</span>
</div>
<div className="manual-edit-layer-list">
{targets.map((target) => (
<button
key={target.id}
type="button"
className={`manual-edit-layer-row ${selectedTarget?.id === target.id ? 'selected' : ''}`}
onClick={() => onSelectTarget(target)}
>
<strong>{target.label}</strong>
<span>{target.kind} - {target.id}</span>
</button>
))}
</div>
</aside>
<aside className="manual-edit-right">
<section className="manual-edit-modal">
<div className="manual-edit-modal-head">
<div>
<span>{t('manualEdit.title')}</span>
<h3>{selectedTarget?.label ?? t('manualEdit.selectLayer')}</h3>
</div>
<em>{selectedTarget?.kind ?? 'none'}</em>
</div>
{!selectedTarget ? (
<div className="manual-edit-empty">{t('manualEdit.empty')}</div>
) : (
<>
<div className="manual-edit-meta">
<div>
<strong>{selectedTarget.tagName}</strong>
<span>{selectedTarget.id}</span>
</div>
<code>{selectedTarget.className || t('manualEdit.noClass')}</code>
</div>
<div className="manual-edit-tabs" role="tablist" aria-label={t('manualEdit.tabsAria')}>
<EditTabButton label={t('manualEdit.tabContent')} tab="content" active={tab === 'content'} onClick={setTab} />
<EditTabButton label={t('manualEdit.tabStyle')} tab="style" active={tab === 'style'} onClick={setTab} />
<EditTabButton label={t('manualEdit.tabAttributes')} tab="attributes" active={tab === 'attributes'} onClick={setTab} />
<EditTabButton label={t('manualEdit.tabHtml')} tab="html" active={tab === 'html'} onClick={setTab} />
<EditTabButton label={t('manualEdit.tabSource')} tab="source" active={tab === 'source'} onClick={setTab} />
</div>
<div className="manual-edit-tab-body">
{tab === 'content' ? (
<ContentEditor target={selectedTarget} draft={draft} onDraftChange={onDraftChange} />
) : null}
{tab === 'style' ? (
<StyleEditor
styles={draft.styles}
onChange={(styles) => onDraftChange({ ...draft, styles })}
/>
) : null}
{tab === 'attributes' ? (
<label className="manual-edit-field">
<span>{t('manualEdit.attributesJson')}</span>
<textarea
className="manual-edit-code"
value={draft.attributesText}
onChange={(event) => onDraftChange({ ...draft, attributesText: event.currentTarget.value })}
/>
</label>
) : null}
{tab === 'html' ? (
<label className="manual-edit-field">
<span>{t('manualEdit.selectedHtml')}</span>
<textarea
className="manual-edit-code tall"
value={draft.outerHtml}
onChange={(event) => onDraftChange({ ...draft, outerHtml: event.currentTarget.value })}
/>
</label>
) : null}
{tab === 'source' ? (
<label className="manual-edit-field">
<span>{t('manualEdit.fullSource')}</span>
<textarea
className="manual-edit-code tall"
value={draft.fullSource}
onChange={(event) => onDraftChange({ ...draft, fullSource: event.currentTarget.value })}
/>
</label>
) : null}
</div>
{error ? <div className="manual-edit-error">{error}</div> : null}
<div className="manual-edit-actions">
<button type="button" onClick={onCancelDraft} disabled={busy}>{t('common.cancel')}</button>
{tab === 'content' ? (
<button type="button" className="primary" disabled={busy} onClick={() => onApplyPatch(contentPatch(selectedTarget, draft), `Content: ${selectedTarget.label}`)}>
{t('manualEdit.applyContent')}
</button>
) : null}
{tab === 'style' ? (
<button type="button" className="primary" disabled={busy} onClick={() => onApplyPatch({ id: selectedTarget.id, kind: 'set-style', styles: draft.styles }, `Style: ${selectedTarget.label}`)}>
{t('manualEdit.applyStyle')}
</button>
) : null}
{tab === 'attributes' ? (
<button
type="button"
className="primary"
disabled={busy}
onClick={() => {
try {
onApplyPatch(parseAttributesPatch(selectedTarget.id, draft.attributesText), `Attributes: ${selectedTarget.label}`);
} catch (err) {
onError(err instanceof Error ? err.message : t('manualEdit.invalidAttributes'));
}
}}
>
{t('manualEdit.applyAttributes')}
</button>
) : null}
{tab === 'html' ? (
<button type="button" className="primary" disabled={busy} onClick={() => onApplyPatch({ id: selectedTarget.id, kind: 'set-outer-html', html: draft.outerHtml }, `HTML: ${selectedTarget.label}`)}>
{t('manualEdit.applyHtml')}
</button>
) : null}
{tab === 'source' ? (
<button type="button" className="primary" disabled={busy} onClick={() => onApplyPatch({ kind: 'set-full-source', source: draft.fullSource }, 'Full source')}>
{t('manualEdit.applySource')}
</button>
) : null}
</div>
</>
)}
</section>
<section className="manual-edit-changes">
<div className="manual-edit-panel-head">
<h3>{t('manualEdit.changes')}</h3>
<span>{history.length}</span>
</div>
<div className="manual-edit-history-actions">
<button type="button" onClick={onUndo} disabled={busy || !canUndo}>{t('manualEdit.undo')}</button>
<button type="button" onClick={onRedo} disabled={busy || !canRedo}>{t('manualEdit.redo')}</button>
</div>
{history.length === 0 ? (
<div className="manual-edit-empty">{t('manualEdit.noChanges')}</div>
) : (
<div className="manual-edit-history-list">
{history.map((entry) => (
<article key={entry.id} className="manual-edit-history-entry">
<strong>{entry.label}</strong>
<code>{manualEditPatchSummary(entry.patch)}</code>
</article>
))}
</div>
)}
</section>
</aside>
</>
);
}
function ContentEditor({
target,
draft,
onDraftChange,
}: {
target: ManualEditTarget;
draft: ManualEditDraft;
onDraftChange: (draft: ManualEditDraft) => void;
}) {
const t = useT();
if (target.kind === 'image') {
return (
<>
<label className="manual-edit-field">
<span>{t('manualEdit.imageUrl')}</span>
<input value={draft.src} onChange={(event) => onDraftChange({ ...draft, src: event.currentTarget.value })} />
</label>
<label className="manual-edit-field">
<span>{t('manualEdit.altText')}</span>
<input value={draft.alt} onChange={(event) => onDraftChange({ ...draft, alt: event.currentTarget.value })} />
</label>
</>
);
}
return (
<>
<label className="manual-edit-field">
<span>{target.kind === 'link' ? t('manualEdit.label') : t('manualEdit.text')}</span>
<textarea value={draft.text} onChange={(event) => onDraftChange({ ...draft, text: event.currentTarget.value })} />
</label>
{target.kind === 'link' ? (
<label className="manual-edit-field">
<span>{t('manualEdit.href')}</span>
<input value={draft.href} onChange={(event) => onDraftChange({ ...draft, href: event.currentTarget.value })} />
</label>
) : null}
</>
);
}
function StyleEditor({
styles,
onChange,
}: {
styles: ManualEditStyles;
onChange: (styles: ManualEditStyles) => void;
}) {
const t = useT();
const update = (key: keyof ManualEditStyles, value: string) => onChange({ ...styles, [key]: value });
return (
<div className="manual-edit-style-grid">
<StyleInput label={t('manualEdit.textColor')} value={styles.color} onChange={(value) => update('color', value)} />
<StyleInput label={t('manualEdit.background')} value={styles.backgroundColor} onChange={(value) => update('backgroundColor', value)} />
<StyleInput label={t('manualEdit.fontSize')} value={styles.fontSize} placeholder="46px" onChange={(value) => update('fontSize', value)} />
<label className="manual-edit-field compact">
<span>{t('manualEdit.weight')}</span>
<select value={styles.fontWeight} onChange={(event) => update('fontWeight', event.currentTarget.value)}>
<option value="">default</option>
<option value="400">400</option>
<option value="500">500</option>
<option value="600">600</option>
<option value="700">700</option>
<option value="800">800</option>
</select>
</label>
<label className="manual-edit-field compact">
<span>{t('manualEdit.align')}</span>
<select value={styles.textAlign} onChange={(event) => update('textAlign', event.currentTarget.value)}>
<option value="">default</option>
<option value="left">left</option>
<option value="center">center</option>
<option value="right">right</option>
</select>
</label>
<StyleInput label={t('manualEdit.padding')} value={styles.padding} placeholder="24px" onChange={(value) => update('padding', value)} />
<StyleInput label={t('manualEdit.margin')} value={styles.margin} placeholder="0 0 16px" onChange={(value) => update('margin', value)} />
<StyleInput label={t('manualEdit.radius')} value={styles.borderRadius} placeholder="8px" onChange={(value) => update('borderRadius', value)} />
<StyleInput label={t('manualEdit.border')} value={styles.border} placeholder="1px solid #d0d5dd" wide onChange={(value) => update('border', value)} />
<StyleInput label={t('manualEdit.width')} value={styles.width} placeholder="100%" onChange={(value) => update('width', value)} />
<StyleInput label={t('manualEdit.minHeight')} value={styles.minHeight} placeholder="240px" onChange={(value) => update('minHeight', value)} />
</div>
);
}
function StyleInput({
label,
value,
placeholder,
wide,
onChange,
}: {
label: string;
value: string;
placeholder?: string;
wide?: boolean;
onChange: (value: string) => void;
}) {
return (
<label className={`manual-edit-field compact ${wide ? 'wide' : ''}`}>
<span>{label}</span>
<input value={value} placeholder={placeholder} onChange={(event) => onChange(event.currentTarget.value)} />
</label>
);
}
function EditTabButton({
tab,
label,
active,
onClick,
}: {
tab: ManualEditTab;
label: string;
active: boolean;
onClick: (tab: ManualEditTab) => void;
}) {
return (
<button type="button" className={active ? 'active' : ''} role="tab" aria-selected={active} onClick={() => onClick(tab)}>
{label}
</button>
);
}
function contentPatch(target: ManualEditTarget, draft: ManualEditDraft): ManualEditPatch {
if (target.kind === 'link') return { id: target.id, kind: 'set-link', text: draft.text, href: draft.href };
if (target.kind === 'image') return { id: target.id, kind: 'set-image', src: draft.src, alt: draft.alt };
return { id: target.id, kind: 'set-text', value: draft.text };
}
export function manualEditPatchSummary(patch: ManualEditPatch): string {
if (patch.kind === 'set-full-source') {
return JSON.stringify({ kind: patch.kind, bytes: patch.source.length });
}
if (patch.kind === 'set-outer-html') {
return JSON.stringify({ id: patch.id, kind: patch.kind, bytes: patch.html.length });
}
return JSON.stringify(patch);
}
function parseAttributesPatch(id: string, attributesText: string): ManualEditPatch {
const parsed = JSON.parse(attributesText) as unknown;
if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {
throw new Error('Attributes must be a JSON object.');
}
return {
id,
kind: 'set-attributes',
attributes: Object.fromEntries(Object.entries(parsed).map(([key, value]) => [key, String(value)])),
};
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,59 @@
import { useState } from 'react';
import { useT } from '../i18n';
interface Props {
onSave: (name: string, content: string) => void;
onClose: () => void;
}
export function PasteTextDialog({ onSave, onClose }: Props) {
const t = useT();
const [name, setName] = useState('');
const [content, setContent] = useState('');
function commit() {
const trimmed = content.trim();
if (!trimmed) return;
const finalName = name.trim() || `paste-${Date.now()}.txt`;
onSave(ensureExtension(finalName, '.txt'), content);
}
return (
<div className="modal-backdrop" onClick={onClose}>
<div className="modal" onClick={(e) => e.stopPropagation()}>
<h2>{t('pasteDialog.title')}</h2>
<p className="hint">{t('pasteDialog.hint')}</p>
<label>
{t('pasteDialog.fileNameLabel')}
<input
type="text"
value={name}
placeholder={t('pasteDialog.namePlaceholder')}
onChange={(e) => setName(e.target.value)}
autoFocus
/>
</label>
<label>
{t('pasteDialog.contentLabel')}
<textarea
rows={10}
value={content}
placeholder={t('pasteDialog.contentPlaceholder')}
onChange={(e) => setContent(e.target.value)}
/>
</label>
<div className="row">
<button onClick={onClose}>{t('pasteDialog.cancel')}</button>
<button className="primary" onClick={commit} disabled={!content.trim()}>
{t('pasteDialog.save')}
</button>
</div>
</div>
</div>
);
}
function ensureExtension(name: string, ext: string): string {
if (/\.[a-z0-9]+$/i.test(name)) return name;
return `${name}${ext}`;
}
+427
View File
@@ -0,0 +1,427 @@
import { useEffect, useMemo, useRef, useState, type ReactNode } from 'react';
import { useT } from '../i18n';
import { exportAsHtml, exportAsPdf, exportAsZip, openSandboxedPreviewInNewTab } from '../runtime/exports';
import { buildSrcdoc } from '../runtime/srcdoc';
export interface PreviewView {
id: string;
label: string;
// Null means "still loading" — modal renders the loading affordance.
// Undefined means "not yet requested" — parent should react to onView and
// begin a fetch. Both states keep the iframe blank.
html: string | null | undefined;
// Deck previews need deck-aware srcdoc/PDF handling so slide navigation and
// print-all-slides behavior survive the sandboxed export path.
deck?: boolean;
}
export interface PreviewSidebar {
// Header label and toggle button label.
label: string;
// Side-pane content — caller renders whatever it likes (markdown source
// view, swatch grid, etc.). Always optional; when absent the toggle is
// not shown.
content: ReactNode;
// Default open state on first mount. Defaults to false.
defaultOpen?: boolean;
// Called whenever the open state changes — useful so the parent can
// lazy-fetch the side content the first time it is revealed.
onToggle?: (open: boolean) => void;
// Stable identity for the side-panel source. When this changes while the
// sidebar is open, the lazy-load `onToggle` callback re-fires so the parent
// can prime a fresh fetch — e.g. swapping between design systems while the
// DESIGN.md panel stays open.
contentKey?: string | number;
}
interface Props {
title: string;
subtitle?: string;
views: PreviewView[];
initialViewId?: string;
// Per-view filename hint for the share menu — receives the active view id
// so DS can produce e.g. "Airtable — showcase" while Examples stay flat.
exportTitleFor: (viewId: string) => string;
// Fired whenever the active view changes — including on first mount with
// initialViewId. Lets the parent drive lazy fetches without prop drilling
// a loader callback in.
onView?: (viewId: string) => void;
onClose: () => void;
// Optional split-view companion pane shown to the right of the iframe.
// Used by the design-system preview to surface the raw DESIGN.md beside
// the rendered showcase, matching the styles.refero.design layout.
sidebar?: PreviewSidebar;
// Logical viewport width the iframe content is rendered at. The iframe is
// then visually scaled (transform: scale) to fit the actual stage width
// so squeezing the preview behind a sidebar never reflows the inner page
// into a half-broken responsive breakpoint. Defaults to 1280 — wide
// enough that desktop-shaped showcases keep their intended layout.
designWidth?: number;
}
// A full-screen overlay that renders an iframe of arbitrary HTML, with an
// optional tab bar for multiple views, a Share menu (PDF / HTML / ZIP /
// open-in-new-tab), and a Fullscreen toggle. Used by both the design-system
// preview and the example card preview, so the two paths feel identical.
export function PreviewModal({
title,
subtitle,
views,
initialViewId,
exportTitleFor,
onView,
onClose,
sidebar,
designWidth = 1280,
}: Props) {
const t = useT();
const initial = initialViewId && views.some((v) => v.id === initialViewId)
? initialViewId
: views[0]?.id ?? '';
const [activeId, setActiveId] = useState<string>(initial);
const [shareOpen, setShareOpen] = useState(false);
const [fullscreen, setFullscreen] = useState(false);
const [sidebarOpen, setSidebarOpen] = useState<boolean>(
sidebar?.defaultOpen ?? false,
);
const shareRef = useRef<HTMLDivElement | null>(null);
const stageRef = useRef<HTMLDivElement | null>(null);
const stageFrameRef = useRef<HTMLDivElement | null>(null);
const [stageSize, setStageSize] = useState<{ w: number; h: number }>({
w: 0,
h: 0,
});
// Capture the toggle handler in a ref so the lazy-load effect below
// depends only on sidebarOpen — without this, a new `sidebar` object on
// every parent render would re-fire the load on each render.
const sidebarToggleRef = useRef(sidebar?.onToggle);
sidebarToggleRef.current = sidebar?.onToggle;
// Tell the parent every time the side pane toggles so it can lazy-load
// the spec body the first time it is revealed. Also re-fires when
// `sidebar.contentKey` changes so the parent can prime a fresh fetch when
// its underlying source swaps (e.g. another design system) while the
// sidebar stays open. `sidebar` itself is a fresh object on every parent
// render so we can't depend on it.
const sidebarContentKey = sidebar?.contentKey;
useEffect(() => {
sidebarToggleRef.current?.(sidebarOpen);
}, [sidebarOpen, sidebarContentKey]);
// Tell the parent the initial view id so it can prime a fetch. Re-fires on
// tab change. Guarded against re-firing while the same id is active to
// avoid noisy effects in the parent.
useEffect(() => {
onView?.(activeId);
}, [activeId, onView]);
// Close on Escape. If we're in fullscreen, exit fullscreen first instead
// of dismissing the whole modal in one keystroke.
useEffect(() => {
const onKey = (e: KeyboardEvent) => {
if (e.key !== 'Escape') return;
if (fullscreen) {
setFullscreen(false);
return;
}
onClose();
};
document.addEventListener('keydown', onKey);
return () => document.removeEventListener('keydown', onKey);
}, [onClose, fullscreen]);
// Mirror native fullscreen state into React. Without this, a user in
// browser fullscreen has to press Esc twice: the first Esc exits the
// native fullscreen element (consumed by the browser; in some browsers no
// keydown is delivered) while our `fullscreen` state stays true and the
// overlay keeps its `ds-modal-fullscreen` class. Listening to
// fullscreenchange lets one Esc dismiss both layers in lock-step.
useEffect(() => {
const onFsChange = () => {
if (!document.fullscreenElement) {
setFullscreen(false);
}
};
document.addEventListener('fullscreenchange', onFsChange);
return () => document.removeEventListener('fullscreenchange', onFsChange);
}, []);
// Close share popover on outside click / Escape.
useEffect(() => {
if (!shareOpen) return;
const onDoc = (e: MouseEvent) => {
if (!shareRef.current) return;
if (!shareRef.current.contains(e.target as Node)) setShareOpen(false);
};
const onKey = (e: KeyboardEvent) => {
if (e.key === 'Escape') setShareOpen(false);
};
document.addEventListener('mousedown', onDoc);
document.addEventListener('keydown', onKey);
return () => {
document.removeEventListener('mousedown', onDoc);
document.removeEventListener('keydown', onKey);
};
}, [shareOpen]);
// Lock body scroll while open.
useEffect(() => {
const prev = document.body.style.overflow;
document.body.style.overflow = 'hidden';
return () => {
document.body.style.overflow = prev;
};
}, []);
// Track the iframe stage size so we can render the document at a fixed
// logical width and visually scale it down to fit. Without this, opening
// the side panel squeezes the iframe to ~60% width and triggers awkward
// mid-breakpoint reflows in the showcase HTML.
// ResizeObserver is missing from jsdom and from some older embedded
// WebViews — guard the constructor and fall back to a window resize
// listener so the modal still mounts and just loses element-level
// resize tracking.
useEffect(() => {
const el = stageFrameRef.current;
if (!el) return;
const measure = () => {
const r = el.getBoundingClientRect();
setStageSize({ w: r.width, h: r.height });
};
measure();
if (typeof ResizeObserver !== 'undefined') {
const ro = new ResizeObserver(measure);
ro.observe(el);
return () => ro.disconnect();
}
window.addEventListener('resize', measure);
return () => window.removeEventListener('resize', measure);
}, []);
const activeView = views.find((v) => v.id === activeId) ?? views[0];
const activeHtml = activeView?.html ?? null;
const activeDeck = activeView?.deck ?? false;
const srcDoc = useMemo(
() => (activeHtml ? buildSrcdoc(activeHtml, { deck: activeDeck }) : ''),
[activeHtml, activeDeck],
);
const exportTitle = exportTitleFor(activeView?.id ?? '');
// Only down-scale: when the stage is wider than the design viewport we
// render the iframe at native size instead of upscaling pixels.
const scale = stageSize.w > 0 ? Math.min(1, stageSize.w / designWidth) : 1;
const scalerStyle = useMemo(() => {
if (scale >= 1 || stageSize.w === 0) {
return {
width: '100%',
height: '100%',
transform: 'none',
} as const;
}
return {
width: designWidth,
height: stageSize.h / scale,
transform: `scale(${scale})`,
} as const;
}, [scale, stageSize.w, stageSize.h, designWidth]);
function openInNewTab() {
if (!activeHtml) return;
openSandboxedPreviewInNewTab(activeHtml, exportTitle, { deck: activeDeck });
}
function enterFullscreen() {
const el = stageRef.current;
if (el && typeof el.requestFullscreen === 'function') {
el.requestFullscreen()
.then(() => setFullscreen(true))
.catch(() => setFullscreen(true));
} else {
setFullscreen(true);
}
}
function exitFullscreen() {
if (document.fullscreenElement && document.exitFullscreen) {
document.exitFullscreen().catch(() => {});
}
setFullscreen(false);
}
const showTabs = views.length > 1;
return (
<div className="ds-modal-backdrop" role="dialog" aria-modal="true" aria-label={`${title} preview`}>
<div className={`ds-modal ${fullscreen ? 'ds-modal-fullscreen' : ''}`}>
<header className="ds-modal-header">
<div className="ds-modal-title-block">
<div className="ds-modal-title">{title}</div>
{subtitle ? <div className="ds-modal-subtitle">{subtitle}</div> : null}
</div>
{showTabs ? (
<div className="ds-modal-tabs" role="tablist">
{views.map((v) => (
<button
key={v.id}
role="tab"
aria-selected={activeId === v.id}
className={`ds-modal-tab ${activeId === v.id ? 'active' : ''}`}
onClick={() => setActiveId(v.id)}
>
{v.label}
</button>
))}
</div>
) : (
<span aria-hidden="true" />
)}
<div className="ds-modal-actions">
{sidebar ? (
<button
className={`ghost ${sidebarOpen ? 'is-active' : ''}`}
onClick={() => setSidebarOpen((v) => !v)}
aria-pressed={sidebarOpen}
title={sidebar.label}
>
{sidebar.label}
</button>
) : null}
<button
className="ghost"
onClick={fullscreen ? exitFullscreen : enterFullscreen}
title={
fullscreen
? t('common.exitFullscreen')
: t('common.fullscreen')
}
>
{fullscreen ? t('preview.exit') : t('preview.fullscreen')}
</button>
<div className="share-menu" ref={shareRef}>
<button
className="ghost"
aria-haspopup="menu"
aria-expanded={shareOpen}
onClick={() => setShareOpen((v) => !v)}
disabled={!activeHtml}
>
{t('preview.shareMenu')}
</button>
{shareOpen ? (
<div className="share-menu-popover" role="menu">
<button
type="button"
className="share-menu-item"
role="menuitem"
onClick={() => {
setShareOpen(false);
if (activeHtml) exportAsPdf(activeHtml, exportTitle, { deck: activeDeck });
}}
>
<span className="share-menu-icon">📄</span>
<span>{t('common.exportPdf')}</span>
</button>
<div className="share-menu-divider" />
<button
type="button"
className="share-menu-item"
role="menuitem"
onClick={() => {
setShareOpen(false);
if (activeHtml) exportAsZip(activeHtml, exportTitle);
}}
>
<span className="share-menu-icon">🗜</span>
<span>{t('common.exportZip')}</span>
</button>
<button
type="button"
className="share-menu-item"
role="menuitem"
onClick={() => {
setShareOpen(false);
if (activeHtml) exportAsHtml(activeHtml, exportTitle);
}}
>
<span className="share-menu-icon">🌐</span>
<span>{t('common.exportHtml')}</span>
</button>
<div className="share-menu-divider" />
<button
type="button"
className="share-menu-item"
role="menuitem"
onClick={() => {
setShareOpen(false);
openInNewTab();
}}
>
<span className="share-menu-icon">↗</span>
<span>{t('preview.openInNewTab')}</span>
</button>
</div>
) : null}
</div>
<button
className="ghost"
onClick={onClose}
title={t('preview.closeTitle')}
aria-label={t('common.close')}
>
✕
</button>
</div>
</header>
<div
className={`ds-modal-stage ${sidebar && sidebarOpen ? 'has-sidebar' : ''}`}
ref={stageRef}
>
<div className="ds-modal-stage-iframe" ref={stageFrameRef}>
{activeHtml === null || activeHtml === undefined ? (
<div className="ds-modal-empty">
{t('preview.loading', {
label:
activeView?.label.toLowerCase() ?? t('common.preview').toLowerCase(),
})}
</div>
) : (
<div className="ds-modal-stage-iframe-scaler" style={scalerStyle}>
<iframe
key={activeView?.id ?? 'view'}
title={`${title} ${activeView?.label ?? ''}`}
sandbox="allow-scripts"
srcDoc={srcDoc}
/>
</div>
)}
{sidebar && !sidebarOpen ? (
<button
type="button"
className="ds-modal-stage-handle is-expand"
onClick={() => setSidebarOpen(true)}
title={t('preview.showSidebar', { label: sidebar.label })}
aria-label={t('preview.showSidebar', { label: sidebar.label })}
>
<span aria-hidden="true">‹</span>
</button>
) : null}
</div>
{sidebar && sidebarOpen ? (
<aside className="ds-modal-sidebar" aria-label={sidebar.label}>
<button
type="button"
className="ds-modal-stage-handle is-collapse"
onClick={() => setSidebarOpen(false)}
title={t('preview.hideSidebar', { label: sidebar.label })}
aria-label={t('preview.hideSidebar', { label: sidebar.label })}
>
<span aria-hidden="true">›</span>
</button>
{sidebar.content}
</aside>
) : null}
</div>
</div>
</div>
);
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,252 @@
import { useEffect, useState } from 'react';
import { useT } from '../i18n';
import { fetchPromptTemplate } from '../providers/registry';
import type {
PromptTemplateDetail,
PromptTemplateSummary,
} from '../types';
import { Icon } from './Icon';
interface Props {
summary: PromptTemplateSummary;
onClose: () => void;
}
// Modal preview for a curated prompt template. The summary payload from
// /api/prompt-templates carries enough to render the header (title,
// description, category, tags, attribution) and the preview asset; the
// prompt body is fetched lazily so the gallery list stays cheap.
export function PromptTemplatePreviewModal({ summary, onClose }: Props) {
const t = useT();
const [detail, setDetail] = useState<PromptTemplateDetail | null>(null);
const [error, setError] = useState<string | null>(null);
const [copied, setCopied] = useState(false);
// Immersive fullscreen preview state. Layered ABOVE the modal so the
// user can dive into the asset without losing the prompt context they
// came from — closing the lightbox restores the modal underneath.
const [lightboxOpen, setLightboxOpen] = useState(false);
useEffect(() => {
let cancelled = false;
setDetail(null);
setError(null);
setCopied(false);
setLightboxOpen(false);
void fetchPromptTemplate(summary.surface, summary.id).then((d) => {
if (cancelled) return;
if (!d) {
setError(t('promptTemplates.fetchError'));
return;
}
setDetail(d);
});
return () => {
cancelled = true;
};
}, [summary.id, summary.surface, t]);
// Close on Escape — when the lightbox is open, ESC closes only the
// lightbox (preserving the modal beneath); otherwise it closes the
// modal itself. Mirrors the design-system preview modal's pattern so
// the two gallery views feel consistent.
useEffect(() => {
function onKey(e: KeyboardEvent) {
if (e.key !== 'Escape') return;
if (lightboxOpen) {
setLightboxOpen(false);
return;
}
onClose();
}
document.addEventListener('keydown', onKey);
return () => document.removeEventListener('keydown', onKey);
}, [onClose, lightboxOpen]);
function handleCopy() {
if (!detail) return;
void navigator.clipboard.writeText(detail.prompt).then(() => {
setCopied(true);
window.setTimeout(() => setCopied(false), 2000);
});
}
const sourceLabel = summary.source.author
? `${summary.source.author} · ${summary.source.repo}`
: summary.source.repo;
const hasAsset = !!(summary.previewVideoUrl || summary.previewImageUrl);
const fullscreenLabel = t('promptTemplates.openFullscreen');
const closeFullscreenLabel = t('promptTemplates.closeFullscreen');
return (
<>
<div
className="prompt-template-modal-backdrop"
role="dialog"
aria-modal="true"
onClick={(e) => {
if (e.target === e.currentTarget) onClose();
}}
>
<div className="prompt-template-modal">
<header className="prompt-template-modal-head">
<div className="prompt-template-modal-titles">
<h2>{summary.title}</h2>
<p>{summary.summary}</p>
</div>
<button
type="button"
className="ghost"
onClick={onClose}
aria-label={t('common.close')}
>
<Icon name="close" size={14} />
</button>
</header>
<div className="prompt-template-modal-tags">
<span className="prompt-template-category">{summary.category}</span>
{(summary.tags ?? []).map((tag) => (
<span key={tag} className="prompt-template-tag">
{tag}
</span>
))}
{summary.model ? (
<span className="prompt-template-model">
{t('promptTemplates.modelHint', { model: summary.model })}
</span>
) : null}
{summary.aspect ? (
<span className="prompt-template-model">{summary.aspect}</span>
) : null}
</div>
<div className="prompt-template-modal-body">
{hasAsset ? (
<div className="prompt-template-modal-asset">
{summary.previewVideoUrl ? (
<video
src={summary.previewVideoUrl}
poster={summary.previewImageUrl}
controls
preload="none"
playsInline
/>
) : summary.previewImageUrl ? (
// Image is click-to-expand — the whole thumbnail acts as
// the trigger so it feels natural (cursor: zoom-in). The
// floating pill below also opens fullscreen and is the
// primary path for video previews where clicks land on
// the native <video controls> instead.
<button
type="button"
className="prompt-template-modal-asset-image-trigger"
onClick={() => setLightboxOpen(true)}
aria-label={fullscreenLabel}
>
<img
src={summary.previewImageUrl}
alt={summary.title}
loading="lazy"
/>
</button>
) : null}
<button
type="button"
className="prompt-template-modal-asset-expand"
onClick={() => setLightboxOpen(true)}
aria-label={fullscreenLabel}
title={fullscreenLabel}
>
<Icon name="eye" size={12} />
<span>{fullscreenLabel}</span>
</button>
</div>
) : null}
<div className="prompt-template-modal-prompt">
<div className="prompt-template-modal-prompt-head">
<span className="prompt-template-modal-prompt-label">
{t('promptTemplates.promptLabel')}
</span>
<button
type="button"
className="ghost"
onClick={handleCopy}
disabled={!detail}
>
<Icon name="copy" size={12} />
{copied
? t('promptTemplates.copyDone')
: t('promptTemplates.copyPrompt')}
</button>
</div>
<pre className="prompt-template-modal-prompt-body">
{detail
? detail.prompt
: error
? error
: t('common.loading')}
</pre>
</div>
</div>
<footer className="prompt-template-modal-foot">
<span>
{t('promptTemplates.sourcePrefix')} {sourceLabel} ·{' '}
<span className="prompt-template-license">
{summary.source.license}
</span>
</span>
{summary.source.url ? (
<a
href={summary.source.url}
target="_blank"
rel="noopener noreferrer"
>
{t('promptTemplates.openSource')}
</a>
) : null}
</footer>
</div>
</div>
{lightboxOpen && hasAsset ? (
// Immersive lightbox — full viewport, dark backdrop, centered
// media. Rendered as a sibling of the modal backdrop so its
// backdrop click is independent (clicking the lightbox backdrop
// closes only the lightbox, not the modal beneath).
<div
className="prompt-template-lightbox-backdrop"
role="dialog"
aria-modal="true"
aria-label={fullscreenLabel}
onClick={(e) => {
if (e.target === e.currentTarget) setLightboxOpen(false);
}}
>
{summary.previewVideoUrl ? (
<video
className="prompt-template-lightbox-media"
src={summary.previewVideoUrl}
poster={summary.previewImageUrl}
controls
autoPlay
playsInline
/>
) : summary.previewImageUrl ? (
<img
className="prompt-template-lightbox-media"
src={summary.previewImageUrl}
alt={summary.title}
/>
) : null}
<button
type="button"
className="prompt-template-lightbox-close"
onClick={() => setLightboxOpen(false)}
aria-label={closeFullscreenLabel}
title={closeFullscreenLabel}
>
<Icon name="close" size={18} />
</button>
</div>
) : null}
</>
);
}
@@ -0,0 +1,217 @@
import { useMemo, useState } from 'react';
import { useI18n, useT } from '../i18n';
import {
localizePromptTemplateCategory,
localizePromptTemplateSummary,
} from '../i18n/content';
import type { PromptTemplateSource, PromptTemplateSummary } from '../types';
import { Icon } from './Icon';
// Stable, human-readable provider name used by the source filter and the
// thumbnail badge. Anchored on `source.repo` (a small enumerated set) rather
// than `source.author` (dozens of curators). Known upstream repos get a
// brand-aware label; everything else falls back to the repo's last segment.
const PROVIDER_LABELS: Record<string, string> = {
'heygen-com/hyperframes': 'HyperFrames',
'YouMind-OpenLab/awesome-seedance-2-prompts': 'Seedance 2',
'YouMind-OpenLab/awesome-gpt-image-2': 'GPT Image 2',
'nexu-io/open-design': 'Open Design',
};
function providerLabel(source: PromptTemplateSource): string {
const known = PROVIDER_LABELS[source.repo];
if (known) return known;
const repo = source.repo.split('/').pop() ?? source.repo;
return repo;
}
interface Props {
surface: 'image' | 'video';
templates: PromptTemplateSummary[];
onPreview: (tpl: PromptTemplateSummary) => void;
}
// Curated prompt-template gallery — one tab per surface (image / video).
// Layout mirrors the Examples tab: a category filter row + a responsive
// card grid that lazy-loads remote thumbnails (the upstream README hosts
// images on CMS / Cloudflare Stream, both public). Each card opens a
// preview modal with the full prompt body and attribution.
export function PromptTemplatesTab({ surface, templates, onPreview }: Props) {
const { locale, t } = useI18n();
const [filter, setFilter] = useState('');
const [category, setCategory] = useState<string>('All');
const [source, setSource] = useState<string>('All');
const surfaceScoped = useMemo(
() => templates.filter((tpl) => tpl.surface === surface),
[templates, surface],
);
const categories = useMemo(() => {
const set = new Set<string>();
for (const tpl of surfaceScoped) set.add(tpl.category || 'General');
return ['All', ...Array.from(set).sort()];
}, [surfaceScoped]);
const sources = useMemo(() => {
const set = new Set<string>();
for (const tpl of surfaceScoped) {
const label = providerLabel(tpl.source);
if (label) set.add(label);
}
return ['All', ...Array.from(set).sort()];
}, [surfaceScoped]);
const filtered = useMemo(() => {
const q = filter.trim().toLowerCase();
return surfaceScoped.filter((tpl) => {
if (category !== 'All' && (tpl.category || 'General') !== category) {
return false;
}
if (source !== 'All' && providerLabel(tpl.source) !== source) {
return false;
}
if (!q) return true;
const localized = localizePromptTemplateSummary(locale, tpl);
return (
tpl.title.toLowerCase().includes(q)
|| tpl.summary.toLowerCase().includes(q)
|| (tpl.tags ?? []).some((tag) => tag.toLowerCase().includes(q))
|| localized.title.toLowerCase().includes(q)
|| localized.summary.toLowerCase().includes(q)
|| localized.category.toLowerCase().includes(q)
|| (localized.tags ?? []).some((tag) => tag.toLowerCase().includes(q))
|| providerLabel(tpl.source).toLowerCase().includes(q)
);
});
}, [surfaceScoped, filter, category, source, locale]);
if (surfaceScoped.length === 0) {
return (
<div className="tab-empty">
{surface === 'image'
? t('promptTemplates.emptyImage')
: t('promptTemplates.emptyVideo')}
</div>
);
}
return (
<div className="tab-panel prompt-templates-panel">
<div className="tab-panel-toolbar">
<input
placeholder={t('promptTemplates.searchPlaceholder')}
value={filter}
onChange={(e) => setFilter(e.target.value)}
/>
<select value={category} onChange={(e) => setCategory(e.target.value)}>
{categories.map((c) => (
<option key={c} value={c}>
{c === 'All' ? t('common.all') : localizePromptTemplateCategory(locale, c)}
</option>
))}
</select>
{sources.length > 2 ? (
<select
value={source}
onChange={(e) => setSource(e.target.value)}
aria-label={t('promptTemplates.sourceFilterAria')}
>
{sources.map((s) => (
<option key={s} value={s}>
{s === 'All' ? t('promptTemplates.allSources') : s}
</option>
))}
</select>
) : null}
<span className="prompt-templates-count">
{t('promptTemplates.countLabel', { n: filtered.length })}
</span>
</div>
{filtered.length === 0 ? (
<div className="tab-empty">{t('promptTemplates.emptyNoMatch')}</div>
) : (
<div className="prompt-templates-grid">
{filtered.map((tpl) => {
const localized = localizePromptTemplateSummary(locale, tpl);
return (
<PromptTemplateCard
key={tpl.id}
tpl={localized}
onPreview={() => onPreview(localized)}
/>
);
})}
</div>
)}
<div className="prompt-templates-footer">
{t('promptTemplates.attributionFooter')}
</div>
</div>
);
}
function PromptTemplateCard({
tpl,
onPreview,
}: {
tpl: PromptTemplateSummary;
onPreview: () => void;
}) {
const t = useT();
const provider = providerLabel(tpl.source);
const isHyperFrames = tpl.source.repo === 'heygen-com/hyperframes';
const sourceLabel = tpl.source.author
? `${tpl.source.author} · ${tpl.source.repo.split('/').pop()}`
: tpl.source.repo.split('/').pop();
return (
<button
type="button"
className="prompt-template-card"
onClick={onPreview}
title={t('promptTemplates.openPreviewTitle')}
>
<span className="prompt-template-thumb">
{tpl.previewImageUrl ? (
<img src={tpl.previewImageUrl} alt="" loading="lazy" draggable={false} />
) : tpl.surface === 'video' ? (
<span className="prompt-template-thumb-fallback" aria-hidden>
<Icon name="play" size={28} />
</span>
) : (
<span className="prompt-template-thumb-fallback" aria-hidden>
<Icon name="image" size={28} />
</span>
)}
{provider ? (
<span
className={
`prompt-template-thumb-provider${isHyperFrames ? ' is-hyperframes' : ''}`
}
>
{provider}
</span>
) : null}
{tpl.surface === 'video' && tpl.previewVideoUrl ? (
<span className="prompt-template-thumb-play" aria-hidden>
▶
</span>
) : null}
</span>
<span className="prompt-template-meta">
<span className="prompt-template-title">{tpl.title}</span>
<span className="prompt-template-summary">{tpl.summary}</span>
<span className="prompt-template-tags">
<span className="prompt-template-category">{tpl.category}</span>
{(tpl.tags ?? []).slice(0, 3).map((tag) => (
<span key={tag} className="prompt-template-tag">
{tag}
</span>
))}
</span>
<span className="prompt-template-source">
{t('promptTemplates.sourcePrefix')} {sourceLabel}
</span>
</span>
</button>
);
}
+348
View File
@@ -0,0 +1,348 @@
import { useMemo, useState } from 'react';
import { useT } from '../i18n';
import type { DirectionCard, QuestionForm } from '../artifacts/question-form';
import { formatFormAnswers } from '../artifacts/question-form';
interface Props {
form: QuestionForm;
// Whether the user can still submit answers. The owning AssistantMessage
// disables the form when the assistant turn is no longer the most recent
// one (i.e. the user has already moved past it).
interactive: boolean;
// Pre-existing answers — when we detect a follow-up user message that
// begins with "[form answers — <id>]", we parse it back out and pass it
// here so the rendered form reflects what was sent.
submittedAnswers?: Record<string, string | string[]>;
onSubmit?: (text: string, answers: Record<string, string | string[]>) => void;
}
export function QuestionFormView({ form, interactive, submittedAnswers, onSubmit }: Props) {
const t = useT();
const initial = useMemo(() => buildInitialState(form, submittedAnswers), [form, submittedAnswers]);
const [answers, setAnswers] = useState<Record<string, string | string[]>>(initial);
const locked = !interactive || !onSubmit || submittedAnswers !== undefined;
function update(id: string, value: string | string[]) {
if (locked) return;
setAnswers((prev) => ({ ...prev, [id]: value }));
}
function toggleCheckbox(id: string, option: string, maxSelections?: number) {
if (locked) return;
setAnswers((prev) => {
const current = Array.isArray(prev[id]) ? (prev[id] as string[]) : [];
const has = current.includes(option);
if (!has && maxSelections !== undefined && current.length >= maxSelections) {
return prev;
}
const next = has ? current.filter((v) => v !== option) : [...current, option];
return { ...prev, [id]: next };
});
}
function missingRequired(): string | null {
for (const q of form.questions) {
if (!q.required) continue;
const v = answers[q.id];
if (Array.isArray(v) ? v.length === 0 : !(typeof v === 'string' && v.trim().length > 0)) {
return q.label;
}
}
return null;
}
function handleSubmit() {
if (locked || !onSubmit) return;
if (!withinSelectionLimits) return;
const missing = missingRequired();
if (missing) {
// Soft inline guard — surface via aria but don't alert; the disabled
// state of the submit button covers most cases.
return;
}
onSubmit(formatFormAnswers(form, answers), answers);
}
const required = form.questions.filter((q) => q.required);
const withinSelectionLimits = form.questions.every((q) => {
if (q.type !== 'checkbox' || q.maxSelections === undefined) return true;
const v = answers[q.id];
return !Array.isArray(v) || v.length <= q.maxSelections;
});
const ready = withinSelectionLimits && required.every((q) => {
const v = answers[q.id];
return Array.isArray(v) ? v.length > 0 : typeof v === 'string' && v.trim().length > 0;
});
return (
<div className={`question-form${locked ? ' question-form-locked' : ''}`}>
<div className="question-form-head">
<span className="question-form-icon" aria-hidden>?</span>
<div className="question-form-titles">
<div className="question-form-title">{form.title}</div>
{form.description ? (
<div className="question-form-desc">{form.description}</div>
) : null}
</div>
{locked ? <span className="question-form-pill">{t('qf.answered')}</span> : null}
</div>
<div className="question-form-body">
{form.questions.map((q) => {
const value = answers[q.id];
return (
<div key={q.id} className="qf-field">
<label className="qf-label">
<span>{q.label}</span>
{q.required ? (
<span className="qf-required" aria-label={t('qf.required')}>*</span>
) : null}
</label>
{q.help ? <div className="qf-help">{q.help}</div> : null}
{q.type === 'radio' && q.options ? (
<div className="qf-options">
{q.options.map((opt) => (
<label key={opt} className={`qf-chip${value === opt ? ' qf-chip-on' : ''}`}>
<input
type="radio"
name={`${form.id}-${q.id}`}
value={opt}
checked={value === opt}
disabled={locked}
onChange={() => update(q.id, opt)}
/>
<span>{opt}</span>
</label>
))}
</div>
) : null}
{q.type === 'checkbox' && q.options ? (
<div className="qf-options">
{q.options.map((opt) => {
const arr = Array.isArray(value) ? value : [];
const on = arr.includes(opt);
const maxed =
q.maxSelections !== undefined && !on && arr.length >= q.maxSelections;
return (
<label
key={opt}
className={`qf-chip${on ? ' qf-chip-on' : ''}${maxed ? ' qf-chip-disabled' : ''}`}
>
<input
type="checkbox"
value={opt}
checked={on}
disabled={locked || maxed}
onChange={() => toggleCheckbox(q.id, opt, q.maxSelections)}
/>
<span>{opt}</span>
</label>
);
})}
</div>
) : null}
{q.type === 'select' && q.options ? (
<select
className="qf-select"
value={typeof value === 'string' ? value : ''}
disabled={locked}
onChange={(e) => update(q.id, e.target.value)}
>
<option value="" disabled>
{t('qf.choose')}
</option>
{q.options.map((opt) => (
<option key={opt} value={opt}>
{opt}
</option>
))}
</select>
) : null}
{q.type === 'text' ? (
<input
type="text"
className="qf-input"
value={typeof value === 'string' ? value : ''}
placeholder={q.placeholder}
disabled={locked}
onChange={(e) => update(q.id, e.target.value)}
/>
) : null}
{q.type === 'textarea' ? (
<textarea
className="qf-textarea"
value={typeof value === 'string' ? value : ''}
placeholder={q.placeholder}
disabled={locked}
rows={3}
onChange={(e) => update(q.id, e.target.value)}
/>
) : null}
{q.type === 'direction-cards' && q.cards && q.cards.length > 0 ? (
<div className="qf-direction-cards">
{q.cards.map((card) => (
<DirectionCardView
key={card.id}
card={card}
formId={form.id}
questionId={q.id}
selected={value === card.id || value === card.label}
disabled={locked}
onSelect={() => update(q.id, card.id)}
/>
))}
</div>
) : null}
</div>
);
})}
</div>
<div className="question-form-foot">
{locked ? (
<span className="qf-locked-note">
{submittedAnswers ? t('qf.lockedSubmitted') : t('qf.lockedPrev')}
</span>
) : (
<span className="qf-hint">{t('qf.hint')}</span>
)}
{!locked ? (
<button
type="button"
className="primary"
onClick={handleSubmit}
disabled={!ready}
title={ready ? t('qf.submitTitle') : t('qf.submitDisabledTitle')}
>
{form.submitLabel ?? t('qf.submitDefault')}
</button>
) : null}
</div>
</div>
);
}
function DirectionCardView({
card,
formId,
questionId,
selected,
disabled,
onSelect,
}: {
card: DirectionCard;
formId: string;
questionId: string;
selected: boolean;
disabled: boolean;
onSelect: () => void;
}) {
const t = useT();
return (
<label
className={`qf-card${selected ? ' qf-card-on' : ''}${disabled ? ' qf-card-disabled' : ''}`}
>
<input
type="radio"
name={`${formId}-${questionId}`}
value={card.id}
checked={selected}
disabled={disabled}
onChange={() => onSelect()}
/>
<div className="qf-card-head">
<div className="qf-card-title">{card.label}</div>
{selected ? <span className="qf-card-pill">{t('qf.cardSelected')}</span> : null}
</div>
{card.palette.length > 0 ? (
<div className="qf-card-swatches" aria-hidden>
{card.palette.slice(0, 6).map((c, i) => (
<span
key={i}
className="qf-card-swatch"
style={{ background: c }}
title={c}
/>
))}
</div>
) : null}
<div className="qf-card-types" aria-hidden>
<span className="qf-card-type-display" style={{ fontFamily: card.displayFont }}>
Aa
</span>
<span className="qf-card-type-body" style={{ fontFamily: card.bodyFont }}>
{t('qf.cardSampleText')}
</span>
</div>
{card.mood ? <p className="qf-card-mood">{card.mood}</p> : null}
{card.references.length > 0 ? (
<p className="qf-card-refs">
<span className="qf-card-refs-label">{t('qf.cardRefs')}</span>{' '}
{card.references.slice(0, 4).join(' · ')}
</p>
) : null}
</label>
);
}
function buildInitialState(
form: QuestionForm,
submitted: Record<string, string | string[]> | undefined,
): Record<string, string | string[]> {
const out: Record<string, string | string[]> = {};
for (const q of form.questions) {
if (submitted && submitted[q.id] !== undefined) {
out[q.id] = submitted[q.id]!;
continue;
}
if (q.defaultValue !== undefined) {
out[q.id] = q.defaultValue;
continue;
}
if (q.type === 'checkbox') {
out[q.id] = [];
} else {
out[q.id] = '';
}
}
return out;
}
/**
* Reverse of formatFormAnswers — when we render an old assistant message
* that contained a form, look at the next user message in the conversation
* to see if the form was already answered. If so, return the answers map
* so the form renders in the locked "answered" state with the user's
* picks visible.
*/
export function parseSubmittedAnswers(
form: QuestionForm,
userMessageContent: string,
): Record<string, string | string[]> | null {
const lines = userMessageContent.split('\n').map((l) => l.trim());
if (lines.length === 0) return null;
const header = lines[0] ?? '';
// We accept any "form answers" header so the agent can paraphrase.
if (!/^\[form answers/i.test(header)) return null;
const answers: Record<string, string | string[]> = {};
const labelToId = new Map<string, string>();
for (const q of form.questions) labelToId.set(q.label.toLowerCase(), q.id);
for (let i = 1; i < lines.length; i++) {
const line = lines[i] ?? '';
const m = /^[-*]\s*([^:]+):\s*(.*)$/.exec(line);
if (!m) continue;
const labelKey = m[1]!.trim().toLowerCase();
const value = m[2]!.trim();
const id = labelToId.get(labelKey);
if (!id) continue;
const q = form.questions.find((x) => x.id === id);
if (!q) continue;
if (q.type === 'checkbox') {
answers[id] = value
.split(',')
.map((s) => s.trim())
.filter((s) => s.length > 0 && s.toLowerCase() !== '(skipped)');
} else {
answers[id] = value.toLowerCase() === '(skipped)' ? '' : value;
}
}
return Object.keys(answers).length > 0 ? answers : null;
}
+195
View File
@@ -0,0 +1,195 @@
// Cmd/Ctrl+P file palette overlay.
//
// Filters the project's `ProjectFile[]` by case-insensitive substring (with
// a small score boost for prefix-on-name matches), and calls onOpenFile on
// Enter. Esc closes. ↑↓ navigates the list. With an empty query, recents
// surface first, then the rest of the file list by mtime.
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useT } from '../i18n';
import { pushRecent, readRecents } from '../quickSwitcherRecents';
import type { ProjectFile } from '../types';
interface Props {
projectId: string;
files: ProjectFile[];
onOpenFile: (name: string) => void;
onClose: () => void;
}
export function QuickSwitcher({ projectId, files, onOpenFile, onClose }: Props) {
const t = useT();
const [query, setQuery] = useState('');
const [cursor, setCursor] = useState(0);
const inputRef = useRef<HTMLInputElement>(null);
const listRef = useRef<HTMLDivElement>(null);
useEffect(() => {
inputRef.current?.focus();
}, []);
const matches = useMemo(() => {
const q = query.trim().toLowerCase();
if (q) {
return files
.map((f) => ({ f, score: scoreMatch(f, q) }))
.filter((x) => x.score > 0)
.sort((a, b) => b.score - a.score)
.map((x) => x.f)
.slice(0, 50);
}
// No query: recents (still-extant) first, then mtime-desc for the rest.
const recents = readRecents(projectId);
const byName = new Map(files.map((f) => [f.name, f] as const));
const recentFiles: ProjectFile[] = [];
const seen = new Set<string>();
for (const name of recents) {
const hit = byName.get(name);
if (hit && !seen.has(name)) {
recentFiles.push(hit);
seen.add(name);
}
}
const rest = files
.filter((f) => !seen.has(f.name))
.slice()
.sort((a, b) => b.mtime - a.mtime);
return [...recentFiles, ...rest].slice(0, 50);
}, [files, query, projectId]);
// Reset cursor when the result set changes shape.
useEffect(() => {
setCursor(0);
}, [query]);
// Keep the highlighted row in view as the cursor moves.
useEffect(() => {
const el = listRef.current?.querySelector<HTMLDivElement>(`[data-idx="${cursor}"]`);
el?.scrollIntoView({ block: 'nearest' });
}, [cursor]);
const open = useCallback(
(file: ProjectFile) => {
onOpenFile(file.name);
pushRecent(projectId, file.name);
onClose();
},
[onOpenFile, onClose, projectId],
);
function onKeyDown(e: React.KeyboardEvent) {
// Don't intercept navigation/commit keys while an IME composition is
// active — those keys are how users select / commit candidates when
// typing CJK file names. Without this guard, ↑↓/Enter would steer the
// palette cursor instead of the IME picker.
if (e.nativeEvent.isComposing) return;
if (e.key === 'Escape') {
onClose();
return;
}
if (e.key === 'ArrowDown') {
e.preventDefault();
if (matches.length === 0) return;
setCursor((c) => nextCursor(c, matches.length, 1));
return;
}
if (e.key === 'ArrowUp') {
e.preventDefault();
if (matches.length === 0) return;
setCursor((c) => nextCursor(c, matches.length, -1));
return;
}
if (e.key === 'Enter') {
e.preventDefault();
const hit = matches[cursor];
if (hit) open(hit);
}
}
const hasQuery = query.trim().length > 0;
const emptyLabel = hasQuery ? t('quickSwitcher.noMatches') : t('quickSwitcher.empty');
return (
<div className="qs-overlay" onMouseDown={onClose} role="dialog" aria-modal="true">
<div className="qs-palette" onMouseDown={(e) => e.stopPropagation()}>
<input
ref={inputRef}
className="qs-input"
value={query}
onChange={(e) => setQuery(e.target.value)}
onKeyDown={onKeyDown}
placeholder={t('quickSwitcher.placeholder')}
spellCheck={false}
aria-label={t('quickSwitcher.placeholder')}
/>
<div className="qs-list" ref={listRef} role="listbox">
{matches.length === 0 ? (
<div className="qs-empty">{emptyLabel}</div>
) : (
matches.map((f, i) => (
<div
key={f.name}
data-idx={i}
role="option"
aria-selected={i === cursor}
className={`qs-row ${i === cursor ? 'qs-row-active' : ''}`}
onMouseEnter={() => setCursor(i)}
onClick={() => open(f)}
>
<span className="qs-name" title={f.name}>{baseName(f.name)}</span>
<span className="qs-path">{dirName(f.name)}</span>
<span className="qs-kind">{labelFor(f)}</span>
</div>
))
)}
</div>
<div className="qs-footer">
<span><kbd>↑</kbd><kbd>↓</kbd> {t('quickSwitcher.navigate')}</span>
<span><kbd>↵</kbd> {t('quickSwitcher.open')}</span>
<span><kbd>esc</kbd> {t('quickSwitcher.close')}</span>
</div>
</div>
</div>
);
}
// Cursor advance with wrap-around. Pulled out as a pure function so the
// boundary-wrap behavior can be unit-tested without simulating keyboard
// events (the rest of the test suite uses static-markup rendering).
// Exported for unit testing.
export function nextCursor(current: number, total: number, direction: 1 | -1): number {
if (total <= 0) return 0;
if (direction === 1) return (current + 1) % total;
return (current - 1 + total) % total;
}
// Cheap fuzzy: prefix-on-basename beats substring-on-basename beats
// substring-on-full-name. Good enough for typical file lists; users who
// want sublime-text-style matching can graduate to a real fuzzy lib later.
// Exported for unit testing.
export function scoreMatch(file: ProjectFile, q: string): number {
const name = file.name.toLowerCase();
const base = baseName(name);
if (base === q) return 1000;
if (base.startsWith(q)) return 500;
if (base.includes(q)) return 250;
if (name.includes(q)) return 100;
return 0;
}
function baseName(name: string): string {
const i = name.lastIndexOf('/');
return i >= 0 ? name.slice(i + 1) : name;
}
function dirName(name: string): string {
const i = name.lastIndexOf('/');
return i >= 0 ? name.slice(0, i) : '';
}
function labelFor(file: ProjectFile): string {
// Use the kind directly: 'html' / 'image' / 'sketch' / etc. Short and
// already tokenized by the contract; avoids a translation roundtrip per
// row when results render at 50/sec while typing.
return file.kind.toUpperCase();
}
File diff suppressed because it is too large Load Diff
+327
View File
@@ -0,0 +1,327 @@
import { useCallback, useEffect, useRef, useState } from 'react';
import { useT } from '../i18n';
export type Tool = 'select' | 'pen' | 'text' | 'rect' | 'arrow' | 'eraser';
interface Stroke {
kind: 'pen';
points: Array<{ x: number; y: number }>;
color: string;
size: number;
}
interface RectShape {
kind: 'rect';
x: number;
y: number;
w: number;
h: number;
color: string;
size: number;
}
interface ArrowShape {
kind: 'arrow';
x1: number;
y1: number;
x2: number;
y2: number;
color: string;
size: number;
}
interface TextItem {
kind: 'text';
x: number;
y: number;
text: string;
color: string;
size: number;
}
export type SketchItem = Stroke | RectShape | ArrowShape | TextItem;
export interface SketchDocument {
version: 1;
items: SketchItem[];
}
interface Props {
// Controlled items — the parent owns the strokes so switching to a different
// tab and back doesn't lose the in-progress sketch. The editor only reports
// changes via onItemsChange.
items: SketchItem[];
onItemsChange: (items: SketchItem[]) => void;
onSave: () => Promise<void> | void;
onCancel?: () => void;
saving?: boolean;
dirty?: boolean;
fileName: string;
}
export function SketchEditor({
items,
onItemsChange,
onSave,
onCancel,
saving = false,
dirty = false,
fileName,
}: Props) {
const t = useT();
const canvasRef = useRef<HTMLCanvasElement | null>(null);
const wrapRef = useRef<HTMLDivElement | null>(null);
const [tool, setTool] = useState<Tool>('pen');
const [color, setColor] = useState('#1c1b1a');
const [size, setSize] = useState(2);
const drawingRef = useRef<SketchItem | null>(null);
const [, force] = useState(0);
// Resize canvas to its container while keeping a high DPR for crisp lines.
useEffect(() => {
const wrap = wrapRef.current;
const cvs = canvasRef.current;
if (!wrap || !cvs) return;
const dpr = window.devicePixelRatio || 1;
const ro = new ResizeObserver(() => {
const rect = wrap.getBoundingClientRect();
cvs.width = Math.max(1, Math.round(rect.width * dpr));
cvs.height = Math.max(1, Math.round(rect.height * dpr));
cvs.style.width = `${rect.width}px`;
cvs.style.height = `${rect.height}px`;
const ctx = cvs.getContext('2d');
if (ctx) ctx.setTransform(dpr, 0, 0, dpr, 0, 0);
redraw();
});
ro.observe(wrap);
return () => ro.disconnect();
// redraw is closure-fresh each render via the items dep below
// eslint-disable-next-line react-hooks/exhaustive-deps
}, []);
const redraw = useCallback(() => {
const cvs = canvasRef.current;
if (!cvs) return;
const ctx = cvs.getContext('2d');
if (!ctx) return;
const w = cvs.clientWidth;
const h = cvs.clientHeight;
ctx.clearRect(0, 0, w, h);
drawGrid(ctx, w, h);
const all = drawingRef.current ? [...items, drawingRef.current] : items;
for (const it of all) drawItem(ctx, it);
}, [items]);
useEffect(() => {
redraw();
}, [redraw]);
function pointerPos(e: React.PointerEvent<HTMLCanvasElement>) {
const rect = canvasRef.current!.getBoundingClientRect();
return { x: e.clientX - rect.left, y: e.clientY - rect.top };
}
function handlePointerDown(e: React.PointerEvent<HTMLCanvasElement>) {
if (tool === 'select') return;
const cvs = canvasRef.current;
if (!cvs) return;
cvs.setPointerCapture(e.pointerId);
const pos = pointerPos(e);
if (tool === 'text') {
const text = window.prompt(t('sketch.textPrompt'));
if (text) {
onItemsChange([
...items,
{ kind: 'text', x: pos.x, y: pos.y, text, color, size: 16 + size * 4 },
]);
}
return;
}
if (tool === 'pen' || tool === 'eraser') {
drawingRef.current = {
kind: 'pen',
points: [pos],
color: tool === 'eraser' ? '#fafaf9' : color,
size: tool === 'eraser' ? size * 6 : size,
};
} else if (tool === 'rect') {
drawingRef.current = { kind: 'rect', x: pos.x, y: pos.y, w: 0, h: 0, color, size };
} else if (tool === 'arrow') {
drawingRef.current = {
kind: 'arrow',
x1: pos.x,
y1: pos.y,
x2: pos.x,
y2: pos.y,
color,
size,
};
}
force((n) => n + 1);
}
function handlePointerMove(e: React.PointerEvent<HTMLCanvasElement>) {
const cur = drawingRef.current;
if (!cur) return;
const pos = pointerPos(e);
if (cur.kind === 'pen') {
cur.points.push(pos);
} else if (cur.kind === 'rect') {
cur.w = pos.x - cur.x;
cur.h = pos.y - cur.y;
} else if (cur.kind === 'arrow') {
cur.x2 = pos.x;
cur.y2 = pos.y;
}
redraw();
}
function handlePointerUp() {
const cur = drawingRef.current;
drawingRef.current = null;
if (!cur) return;
onItemsChange([...items, cur]);
}
function handleUndo() {
onItemsChange(items.slice(0, -1));
}
function handleClear() {
onItemsChange([]);
}
return (
<div className="sketch-editor">
<div className="sketch-toolbar">
<ToolBtn cur={tool} v="select" onClick={setTool} title={t('sketch.toolSelect')} label="↖" />
<ToolBtn cur={tool} v="pen" onClick={setTool} title={t('sketch.toolPen')} label="✎" />
<ToolBtn cur={tool} v="text" onClick={setTool} title={t('sketch.toolText')} label="T" />
<ToolBtn cur={tool} v="rect" onClick={setTool} title={t('sketch.toolRect')} label="▭" />
<ToolBtn cur={tool} v="arrow" onClick={setTool} title={t('sketch.toolArrow')} label="↗" />
<ToolBtn cur={tool} v="eraser" onClick={setTool} title={t('sketch.toolEraser')} label="◌" />
<span className="sketch-divider" />
<input
type="color"
className="sketch-color"
value={color}
onChange={(e) => setColor(e.target.value)}
title={t('sketch.color')}
/>
<input
type="range"
min={1}
max={8}
value={size}
onChange={(e) => setSize(Number(e.target.value))}
title={t('sketch.strokeSize')}
className="sketch-size"
/>
<span className="sketch-divider" />
<button className="ghost" onClick={handleUndo} disabled={items.length === 0}>
{t('sketch.undo')}
</button>
<button className="ghost" onClick={handleClear} disabled={items.length === 0}>
{t('sketch.clear')}
</button>
<span className="sketch-spacer" />
<span className="sketch-name" title={fileName}>
{fileName}
{dirty ? ' •' : ''}
</span>
{onCancel ? (
<button className="ghost" onClick={onCancel}>
{t('sketch.close')}
</button>
) : null}
<button
className="primary"
onClick={() => void onSave()}
disabled={saving || items.length === 0}
>
{saving ? t('sketch.saving') : t('common.save')}
</button>
</div>
<div className="sketch-canvas-wrap" ref={wrapRef}>
<canvas
ref={canvasRef}
onPointerDown={handlePointerDown}
onPointerMove={handlePointerMove}
onPointerUp={handlePointerUp}
onPointerCancel={handlePointerUp}
style={{ touchAction: 'none' }}
/>
</div>
</div>
);
}
function ToolBtn({
cur,
v,
onClick,
label,
title,
}: {
cur: Tool;
v: Tool;
onClick: (v: Tool) => void;
label: string;
title: string;
}) {
return (
<button
className={`sketch-tool ${cur === v ? 'active' : ''}`}
onClick={() => onClick(v)}
title={title}
>
{label}
</button>
);
}
function drawGrid(ctx: CanvasRenderingContext2D, w: number, h: number) {
ctx.save();
ctx.fillStyle = '#bfbcb6';
for (let y = 12; y < h; y += 16) {
for (let x = 12; x < w; x += 16) {
ctx.fillRect(x, y, 1, 1);
}
}
ctx.restore();
}
function drawItem(ctx: CanvasRenderingContext2D, it: SketchItem) {
ctx.save();
ctx.lineCap = 'round';
ctx.lineJoin = 'round';
ctx.strokeStyle = it.color;
ctx.fillStyle = it.color;
ctx.lineWidth = it.size;
if (it.kind === 'pen') {
if (it.points.length < 2) return ctx.restore();
ctx.beginPath();
ctx.moveTo(it.points[0]!.x, it.points[0]!.y);
for (let i = 1; i < it.points.length; i++) {
ctx.lineTo(it.points[i]!.x, it.points[i]!.y);
}
ctx.stroke();
} else if (it.kind === 'rect') {
ctx.strokeRect(it.x, it.y, it.w, it.h);
} else if (it.kind === 'arrow') {
ctx.beginPath();
ctx.moveTo(it.x1, it.y1);
ctx.lineTo(it.x2, it.y2);
ctx.stroke();
const ang = Math.atan2(it.y2 - it.y1, it.x2 - it.x1);
const len = 10 + it.size * 2;
ctx.beginPath();
ctx.moveTo(it.x2, it.y2);
ctx.lineTo(it.x2 - len * Math.cos(ang - Math.PI / 6), it.y2 - len * Math.sin(ang - Math.PI / 6));
ctx.moveTo(it.x2, it.y2);
ctx.lineTo(it.x2 - len * Math.cos(ang + Math.PI / 6), it.y2 - len * Math.sin(ang + Math.PI / 6));
ctx.stroke();
} else if (it.kind === 'text') {
ctx.font = `${it.size}px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif`;
ctx.fillText(it.text, it.x, it.y);
}
ctx.restore();
}
+355
View File
@@ -0,0 +1,355 @@
/**
* Renders a single tool_use (optionally paired with its tool_result) as an
* inline card in the assistant message stream. Lookup order:
*
* 1. user-registered renderer in `tool-renderers` (the extension point
* analogous to CopilotKit's `useCopilotAction({ render })`)
* 2. hardcoded family card for tools we ship with (TodoWrite / Write /
* Edit / Read / Bash / Glob / Grep / WebFetch / WebSearch)
* 3. generic command/output fallback
*/
import { useState } from 'react';
import { useT } from '../i18n';
import { parseTodoWriteInput } from '../runtime/todos';
import { getToolRenderer, toRenderProps } from '../runtime/tool-renderers';
import type { AgentEvent } from '../types';
interface Props {
use: Extract<AgentEvent, { kind: 'tool_use' }>;
result?: Extract<AgentEvent, { kind: 'tool_result' }> | undefined;
// True while the parent run is still streaming. Forwarded to registered
// renderers via `status` so they can distinguish "executing" (run alive)
// from "inProgress" (run dead before result arrived).
runStreaming?: boolean;
// Set of file names that exist in the project folder. When the tool's
// `file_path`/`path` argument's basename appears in this set we surface
// an "open" button on the card. Pass `undefined` to skip the existence
// check (the button is then always shown for file-shaped tools).
projectFileNames?: Set<string>;
// Lifts a basename up to ProjectView so it can focus the matching tab
// in FileWorkspace.
onRequestOpenFile?: (name: string) => void;
}
export function ToolCard({
use,
result,
runStreaming,
projectFileNames,
onRequestOpenFile,
}: Props) {
const name = use.name;
const custom = getToolRenderer(name);
if (custom) {
// A misbehaving third-party renderer must not take down the whole
// assistant message — catch synchronous throws and fall through to the
// built-in family card. (React's own error boundaries still cover
// throws raised inside the returned tree once it's mounted.)
try {
const node = custom(toRenderProps(use, result, runStreaming ?? false));
if (node !== undefined && node !== null && node !== false) return <>{node}</>;
} catch (err) {
console.error(`[ToolCard] custom renderer for "${name}" threw; falling back`, err);
}
}
const ctx: FileToolCtx = { projectFileNames, onRequestOpenFile };
if (name === 'TodoWrite' || name === 'todowrite') return <TodoCard input={use.input} />;
if (name === 'Write' || name === 'create_file')
return <FileWriteCard input={use.input} result={result} ctx={ctx} />;
if (name === 'Edit' || name === 'str_replace_edit')
return <FileEditCard input={use.input} result={result} ctx={ctx} />;
if (name === 'Read' || name === 'read_file')
return <FileReadCard input={use.input} result={result} ctx={ctx} />;
if (name === 'Bash') return <BashCard input={use.input} result={result} />;
if (name === 'Glob' || name === 'list_files') return <GlobCard input={use.input} result={result} />;
if (name === 'Grep') return <GrepCard input={use.input} result={result} />;
if (name === 'WebFetch' || name === 'web_fetch') return <WebFetchCard input={use.input} />;
if (name === 'WebSearch' || name === 'web_search') return <WebSearchCard input={use.input} />;
return <GenericCard name={name} input={use.input} result={result} />;
}
interface FileToolCtx {
projectFileNames?: Set<string> | undefined;
onRequestOpenFile?: ((name: string) => void) | undefined;
}
function OpenInTabButton({ filePath, ctx }: { filePath: string; ctx: FileToolCtx }) {
const t = useT();
if (!ctx.onRequestOpenFile) return null;
if (!filePath || filePath === '(unnamed)') return null;
// The agent uses absolute paths; the project-file API keys on basename.
const baseName = filePath.split('/').pop() ?? filePath;
if (!baseName) return null;
if (ctx.projectFileNames && !ctx.projectFileNames.has(baseName)) return null;
const open = ctx.onRequestOpenFile;
return (
<button
type="button"
className="op-open"
onClick={() => open(baseName)}
title={t('tool.openInTab', { name: baseName })}
>
{t('tool.open')}
</button>
);
}
function TodoCard({ input }: { input: unknown }) {
const t = useT();
const todos = parseTodoWriteInput(input);
if (todos.length === 0) return <GenericCard name="TodoWrite" input={input} />;
const done = todos.filter((todo) => todo.status === 'completed').length;
return (
<div className="op-card op-todo">
<div className="op-card-head">
<span className="op-icon" aria-hidden>☐</span>
<span className="op-title">{t('tool.todos')}</span>
<span className="op-meta">
{done}/{todos.length}
</span>
</div>
<ul className="todo-list">
{todos.map((todo, i) => (
<li key={i} className={`todo-item todo-${todo.status}`}>
<span className="todo-check" aria-hidden>
{todo.status === 'completed' ? '✓' : todo.status === 'in_progress' ? '◐' : '○'}
</span>
<span className="todo-text">
{todo.status === 'in_progress' && todo.activeForm ? todo.activeForm : todo.content}
</span>
</li>
))}
</ul>
</div>
);
}
function FileWriteCard({
input,
result,
ctx,
}: {
input: unknown;
result?: Props['result'];
ctx: FileToolCtx;
}) {
const t = useT();
const obj = (input ?? {}) as { file_path?: string; path?: string; content?: string };
const file = obj.file_path ?? obj.path ?? '(unnamed)';
const lines = typeof obj.content === 'string' ? obj.content.split('\n').length : null;
return (
<div className="op-card op-file">
<div className="op-card-head">
<span className="op-icon op-icon-write" aria-hidden>+</span>
<span className="op-title">{t('tool.write')}</span>
<code className="op-path">{file}</code>
{lines !== null ? (
<span className="op-meta">{t('tool.lines', { n: lines })}</span>
) : null}
<ResultBadge result={result} />
<OpenInTabButton filePath={file} ctx={ctx} />
</div>
</div>
);
}
function FileEditCard({
input,
result,
ctx,
}: {
input: unknown;
result?: Props['result'];
ctx: FileToolCtx;
}) {
const t = useT();
const obj = (input ?? {}) as {
file_path?: string;
path?: string;
old_string?: string;
new_string?: string;
edits?: { old_string?: string; new_string?: string }[];
};
const file = obj.file_path ?? obj.path ?? '(unnamed)';
const editCount = Array.isArray(obj.edits) ? obj.edits.length : 1;
return (
<div className="op-card op-file">
<div className="op-card-head">
<span className="op-icon op-icon-edit" aria-hidden>✎</span>
<span className="op-title">{t('tool.edit')}</span>
<code className="op-path">{file}</code>
<span className="op-meta">
{editCount} {editCount === 1 ? t('tool.changeSingular') : t('tool.changePlural')}
</span>
<ResultBadge result={result} />
<OpenInTabButton filePath={file} ctx={ctx} />
</div>
</div>
);
}
function FileReadCard({
input,
result,
ctx,
}: {
input: unknown;
result?: Props['result'];
ctx: FileToolCtx;
}) {
const t = useT();
const obj = (input ?? {}) as { file_path?: string; path?: string };
const file = obj.file_path ?? obj.path ?? '(unnamed)';
return (
<div className="op-card op-file">
<div className="op-card-head">
<span className="op-icon op-icon-read" aria-hidden>↗</span>
<span className="op-title">{t('tool.read')}</span>
<code className="op-path">{file}</code>
<ResultBadge result={result} />
<OpenInTabButton filePath={file} ctx={ctx} />
</div>
</div>
);
}
function BashCard({ input, result }: { input: unknown; result?: Props['result'] }) {
const t = useT();
const obj = (input ?? {}) as { command?: string; description?: string };
const command = obj.command ?? '';
const desc = obj.description;
const [open, setOpen] = useState(false);
return (
<div className="op-card op-bash">
<div className="op-card-head">
<span className="op-icon" aria-hidden>$</span>
<span className="op-title">{t('tool.bash')}</span>
{desc ? <span className="op-meta op-desc">{desc}</span> : null}
<ResultBadge result={result} />
{result && result.content ? (
<button className="op-toggle" onClick={() => setOpen((o) => !o)}>
{open ? t('tool.hide') : t('tool.output')}
</button>
) : null}
</div>
<pre className="op-command">{truncate(command, 400)}</pre>
{open && result ? (
<pre className="op-output">{truncate(result.content, 4000)}</pre>
) : null}
</div>
);
}
function GlobCard({ input, result }: { input: unknown; result?: Props['result'] }) {
const t = useT();
const obj = (input ?? {}) as { pattern?: string; path?: string };
return (
<div className="op-card op-search">
<div className="op-card-head">
<span className="op-icon" aria-hidden>⌕</span>
<span className="op-title">{t('tool.glob')}</span>
<code className="op-path">{obj.pattern ?? '*'}</code>
{obj.path ? (
<span className="op-meta">{t('tool.in', { path: obj.path })}</span>
) : null}
<ResultBadge result={result} />
</div>
</div>
);
}
function GrepCard({ input, result }: { input: unknown; result?: Props['result'] }) {
const t = useT();
const obj = (input ?? {}) as { pattern?: string; path?: string; glob?: string };
return (
<div className="op-card op-search">
<div className="op-card-head">
<span className="op-icon" aria-hidden>⌕</span>
<span className="op-title">{t('tool.grep')}</span>
<code className="op-path">{obj.pattern ?? ''}</code>
{obj.path ? (
<span className="op-meta">{t('tool.in', { path: obj.path })}</span>
) : null}
<ResultBadge result={result} />
</div>
</div>
);
}
function WebFetchCard({ input }: { input: unknown }) {
const t = useT();
const obj = (input ?? {}) as { url?: string };
return (
<div className="op-card op-web">
<div className="op-card-head">
<span className="op-icon" aria-hidden>↬</span>
<span className="op-title">{t('tool.fetch')}</span>
<code className="op-path">{obj.url ?? ''}</code>
</div>
</div>
);
}
function WebSearchCard({ input }: { input: unknown }) {
const t = useT();
const obj = (input ?? {}) as { query?: string };
return (
<div className="op-card op-web">
<div className="op-card-head">
<span className="op-icon" aria-hidden>⌕</span>
<span className="op-title">{t('tool.search')}</span>
<code className="op-path">{obj.query ?? ''}</code>
</div>
</div>
);
}
function GenericCard({
name,
input,
result,
}: {
name: string;
input: unknown;
result?: Props['result'];
}) {
const summary = describeInput(input);
return (
<div className="op-card op-generic">
<div className="op-card-head">
<span className="op-icon" aria-hidden>·</span>
<span className="op-title">{name}</span>
{summary ? <span className="op-meta">{truncate(summary, 200)}</span> : null}
<ResultBadge result={result} />
</div>
</div>
);
}
function ResultBadge({ result }: { result?: Props['result'] }) {
const t = useT();
if (!result) return <span className="op-status op-status-running">{t('tool.running')}</span>;
if (result.isError) return <span className="op-status op-status-error">{t('tool.error')}</span>;
return <span className="op-status op-status-ok">{t('tool.done')}</span>;
}
function describeInput(input: unknown): string {
if (input == null) return '';
if (typeof input === 'string') return input;
if (typeof input !== 'object') return String(input);
const obj = input as Record<string, unknown>;
for (const key of ['file_path', 'path', 'pattern', 'url', 'query', 'name', 'command']) {
const v = obj[key];
if (typeof v === 'string') return v;
}
try {
return JSON.stringify(obj);
} catch {
return '';
}
}
function truncate(s: string, n: number): string {
if (s.length <= n) return s;
return s.slice(0, n - 1) + '…';
}
+75
View File
@@ -0,0 +1,75 @@
// Decide whether to auto-open a file after an agent Write/Edit tool result.
// Only files that exist in the project's refreshed file list should open as
// tabs — out-of-project paths (upstream repo edits, system files) would
// otherwise create permanent placeholder tabs.
//
// Resolution order:
// 1) Path-suffix match. If the agent's `filePath` equals or ends with
// `/${file.path}` (full segment alignment), treat it as a positive
// identification of that project file. If exactly one file matches,
// open it. If multiple files share a path-suffix with `filePath`,
// decline as ambiguous rather than open the wrong one.
// 2) Basename fallback — only when `filePath` has no slash (it's already
// a basename) and exactly one project file has that basename. This
// preserves the golden path for short filePath inputs while still
// rejecting external edits that happen to share a basename with a
// project file (those will have a slash in `filePath` and reach this
// step with zero suffix matches → declined).
interface CandidateFile {
readonly name: string;
readonly path?: string;
}
function basenameOf(p: string): string {
return p.split('/').pop() ?? p;
}
export function decideAutoOpenAfterWrite(
filePath: string,
nextFiles: ReadonlyArray<CandidateFile>,
): { shouldOpen: boolean; fileName: string | null } {
if (!filePath) return { shouldOpen: false, fileName: null };
// 1) Path-suffix match against full project-relative paths.
const suffixMatches: CandidateFile[] = [];
for (const f of nextFiles) {
const rel = f.path ?? f.name;
if (!rel) continue;
if (filePath === rel) {
suffixMatches.push(f);
continue;
}
// Require segment alignment: filePath ends with "/${rel}" so that
// "subdir/App.jsx" matches ".../subdir/App.jsx" but not
// ".../notsubdir/App.jsx".
if (filePath.length > rel.length && filePath.endsWith('/' + rel)) {
suffixMatches.push(f);
}
}
if (suffixMatches.length === 1) {
return { shouldOpen: true, fileName: suffixMatches[0]!.name };
}
if (suffixMatches.length > 1) {
// Multiple project files plausibly correspond to this path — refuse
// rather than open the wrong one.
return { shouldOpen: false, fileName: null };
}
// 2) Basename fallback only when filePath itself is just a basename.
// If filePath contains a slash but didn't path-suffix-match anything,
// it's an external edit that happens to share a basename — declining
// is the whole point of the guard.
if (filePath.includes('/')) {
return { shouldOpen: false, fileName: null };
}
const basenameMatches = nextFiles.filter((f) => {
const rel = f.path ?? f.name;
return rel ? basenameOf(rel) === filePath : false;
});
if (basenameMatches.length === 1) {
return { shouldOpen: true, fileName: basenameMatches[0]!.name };
}
return { shouldOpen: false, fileName: null };
}
@@ -0,0 +1,61 @@
/**
* Decide between two HTML preview render strategies in FileViewer:
*
* - URL-load: <iframe src="/api/projects/:id/raw/:file"> — the browser
* fetches each <script src> / <link href> as its own request. Source
* maps work, DevTools shows real filenames, per-asset HTTP caching
* applies, and a single broken file no longer takes down the whole
* iframe. This is the right default for multi-file artifacts (e.g.
* React prototypes that ship dozens of `.jsx` files).
*
* - srcDoc inline: build a self-contained document (via buildSrcdoc),
* optionally with relative assets concatenated in by inlineRelative-
* Assets, and pass it via the iframe's srcDoc attribute. Required
* when we need to inject host-side bridges that have to run before
* user scripts (deck navigation, comment-mode targeting), and useful
* as an explicit opt-in for self-contained exports.
*
* The two helpers below isolate the decision so it's directly unit-
* testable without dragging the whole FileViewer React tree into a
* jsdom harness.
*/
export interface UrlLoadDecision {
/** Whether the viewer is showing the rendered preview vs. the raw source. */
mode: 'preview' | 'source';
/** Treat as a slide deck — needs the deck postMessage bridge. */
isDeck: boolean;
/** Comment mode is active — needs the comment bridge. */
commentMode: boolean;
/** User explicitly opted into the inline path via ?forceInline=1. */
forceInline: boolean;
}
/**
* Returns true when an HTML file's preview iframe should load directly
* from its raw URL (via `<iframe src=...>`) rather than through the
* srcDoc inline path. Pure function — caller is responsible for the
* non-HTML / source-mode early returns.
*/
export function shouldUrlLoadHtmlPreview(d: UrlLoadDecision): boolean {
if (d.mode !== 'preview') return false;
if (d.isDeck) return false;
if (d.commentMode) return false;
if (d.forceInline) return false;
return true;
}
/**
* Read the `forceInline` opt-out from a URL search string or an existing
* URLSearchParams. Accepts `1`, `true`, `yes`, `on` (case-insensitive).
* Anything else — including `0`, `false`, an unrelated value, or a
* missing parameter — returns false.
*/
export function parseForceInline(search: string | URLSearchParams | null | undefined): boolean {
if (!search) return false;
const params = typeof search === 'string' ? new URLSearchParams(search) : search;
const value = params.get('forceInline');
if (value === null) return false;
const normalized = value.trim().toLowerCase();
return normalized === '1' || normalized === 'true' || normalized === 'yes' || normalized === 'on';
}
+71
View File
@@ -0,0 +1,71 @@
import type { AgentModelOption } from '../types';
// Render the `<option>` children for a model `<select>`. When the list
// contains `provider/model` ids (opencode's listing has hundreds), we
// group them under `<optgroup>` so the dropdown is navigable. Flat lists
// (Claude, Codex, Gemini, Qwen) are emitted as plain options.
//
// `'default'` is always pinned first (no group), so the user can return
// to "let the CLI decide" with one click.
export function renderModelOptions(models: AgentModelOption[]) {
const groups = new Map<string, AgentModelOption[]>();
const flat: AgentModelOption[] = [];
for (const m of models) {
const slash = m.id.indexOf('/');
if (m.id === 'default' || slash <= 0) {
flat.push(m);
continue;
}
const provider = m.id.slice(0, slash);
const arr = groups.get(provider) ?? [];
arr.push(m);
groups.set(provider, arr);
}
if (groups.size === 0) {
return (
<>
{flat.map((m) => (
<option key={m.id} value={m.id}>
{m.label}
</option>
))}
</>
);
}
return (
<>
{flat.map((m) => (
<option key={m.id} value={m.id}>
{m.label}
</option>
))}
{Array.from(groups.entries()).map(([provider, items]) => (
<optgroup key={provider} label={provider}>
{items.map((m) => (
<option key={m.id} value={m.id}>
{/* Strip the redundant `provider/` prefix from the label
inside its own optgroup; keep it in the value so the
CLI sees the fully-qualified id. */}
{m.label.startsWith(`${provider}/`)
? m.label.slice(provider.length + 1)
: m.label}
</option>
))}
</optgroup>
))}
</>
);
}
// True when the picked model id isn't one of the listed options — i.e.
// the user has typed a custom id and we should keep the custom input
// visible / the dropdown showing "Custom…".
export function isCustomModel(
modelId: string | null | undefined,
models: AgentModelOption[],
): boolean {
if (modelId == null) return false;
return !models.some((m) => m.id === modelId);
}
export const CUSTOM_MODEL_SENTINEL = '__custom__';
+373
View File
@@ -0,0 +1,373 @@
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
import { useT } from '../../i18n';
import { Icon } from '../Icon';
import type { PetConfig } from '../../types';
import {
ambientLines,
pickAmbientRow,
preferredRowId,
resolveActivePet,
type PetInteraction,
} from './pets';
import { PetSpriteFace } from './PetSpriteFace';
interface Props {
pet: PetConfig | undefined;
onTuck: () => void;
onOpenSettings: () => void;
}
const STORAGE_KEY = 'open-design:pet-position';
interface Position {
// Distances from the right/bottom of the viewport so the overlay
// sticks to the corner across resizes. Saved in localStorage.
right: number;
bottom: number;
}
const DEFAULT_POSITION: Position = { right: 24, bottom: 24 };
// How long the pet has to sit untouched before the overlay flips to
// the "waiting" animation row. Sized to sit comfortably past a few
// ambient beats so the pet clearly feels alive before falling through
// to the more static "bored" cue.
const WAITING_AFTER_MS = 45000;
// Ambient idle choreography — while nobody is hovering / dragging, the
// overlay occasionally swaps the `idle` row for a random non-idle row
// from the atlas (wave, hop, look around) so the pet visibly has a
// life of its own instead of breathing in place forever. Each ambient
// "beat" plays for a chunk of time, then the pet returns to idle for
// a longer rest window before the next beat. Randomising both windows
// prevents the rhythm from feeling mechanical, and the rest window is
// intentionally generous so the pet reads as calm rather than fidgety.
const AMBIENT_PLAY_MIN_MS = 1400;
const AMBIENT_PLAY_VARIANCE_MS = 900;
const AMBIENT_REST_MIN_MS = 9000;
const AMBIENT_REST_VARIANCE_MS = 9000;
const AMBIENT_INITIAL_DELAY_MIN_MS = 4000;
const AMBIENT_INITIAL_DELAY_VARIANCE_MS = 3000;
// Filters pointer jitter and accidental nudges before the overlay
// commits to a directional running animation. Picked to feel
// responsive without flickering on small mouse wiggles.
const DRAG_GESTURE_MIN_PX = 14;
// Require one axis to clearly dominate before swapping running-* for
// jumping/waving so diagonal drags don't strobe between rows.
const DRAG_AXIS_BIAS = 1.18;
function loadPosition(): Position {
if (typeof window === 'undefined') return DEFAULT_POSITION;
try {
const raw = window.localStorage.getItem(STORAGE_KEY);
if (!raw) return DEFAULT_POSITION;
const parsed = JSON.parse(raw) as Partial<Position>;
return {
right: typeof parsed.right === 'number' ? parsed.right : DEFAULT_POSITION.right,
bottom: typeof parsed.bottom === 'number' ? parsed.bottom : DEFAULT_POSITION.bottom,
};
} catch {
return DEFAULT_POSITION;
}
}
function savePosition(p: Position) {
try {
window.localStorage.setItem(STORAGE_KEY, JSON.stringify(p));
} catch {
/* ignore */
}
}
// Compact floating sprite + speech bubble. Rendered at the document
// root via App.tsx so it stays put when the user navigates between
// the entry and project views.
export function PetOverlay({ pet, onTuck, onOpenSettings }: Props) {
const t = useT();
const active = useMemo(() => resolveActivePet(pet), [pet]);
const [bubbleOpen, setBubbleOpen] = useState(false);
const [ambientIdx, setAmbientIdx] = useState(0);
const [position, setPosition] = useState<Position>(() => loadPosition());
// Interaction state drives which atlas row plays. Only meaningful
// for atlas-backed custom pets — the renderer ignores it for emoji
// / single-strip pets.
const [interaction, setInteraction] = useState<PetInteraction>('idle');
// Ambient row id that temporarily overrides the `idle` row. Null
// whenever the pet is resting on its baseline row so the user-facing
// interaction state wins as soon as a gesture fires.
const [ambientRowId, setAmbientRowId] = useState<string | null>(null);
const [hovered, setHovered] = useState(false);
const dragRef = useRef<{
startX: number;
startY: number;
startRight: number;
startBottom: number;
moved: boolean;
// Last classified gesture direction. Kept on the ref so we don't
// trigger a state update + render on every pointermove tick.
direction: 'right' | 'left' | 'up' | 'down' | null;
} | null>(null);
// Idle timer that flips the pet to the `waiting` row after a few
// seconds without hover or drag. Reset by every interaction.
const waitingTimerRef = useRef<number | null>(null);
// Show the greeting briefly the first time the overlay mounts after a
// wake. Auto-tuck the bubble after 4s so it does not linger forever.
useEffect(() => {
if (!active) return;
setBubbleOpen(true);
const id = window.setTimeout(() => setBubbleOpen(false), 4000);
return () => window.clearTimeout(id);
}, [active?.id]);
useEffect(() => {
savePosition(position);
}, [position]);
const lines = useMemo(
() => (active ? [active.greeting, ...ambientLines(active.name)] : []),
[active],
);
const visibleLine = lines.length > 0 ? lines[ambientIdx % lines.length] : '';
// (Re)arms the long-idle waiting timer. Called every time the user
// interacts so an active session never falls into "waiting" mid-drag.
const armWaitingTimer = useCallback(() => {
if (waitingTimerRef.current != null) {
window.clearTimeout(waitingTimerRef.current);
}
waitingTimerRef.current = window.setTimeout(() => {
// Only escalate to `waiting` from a calm `idle` baseline; an
// active hover / drag should keep their own animation.
setInteraction((prev) => (prev === 'idle' ? 'waiting' : prev));
waitingTimerRef.current = null;
}, WAITING_AFTER_MS);
}, []);
// Start the idle clock when the pet becomes visible / changes.
useEffect(() => {
if (!active) return;
armWaitingTimer();
return () => {
if (waitingTimerRef.current != null) {
window.clearTimeout(waitingTimerRef.current);
waitingTimerRef.current = null;
}
};
}, [active?.id, armWaitingTimer]);
// Ambient idle choreography scheduler. Only runs while the pet is in
// `idle` and has an atlas with ambient-eligible rows; otherwise we
// bail out and leave the base row alone. The effect is deliberately
// scoped to `interaction === 'idle'` so any user gesture
// (hover / drag / pointerdown) cancels the currently playing beat via
// cleanup and the user-facing state takes over instantly.
useEffect(() => {
if (interaction !== 'idle') {
setAmbientRowId(null);
return;
}
const atlas = active?.atlas;
if (!atlas || atlas.rowsDef.length === 0) return;
let playTimer: number | undefined;
let restTimer: number | undefined;
let lastPlayedId: string | undefined;
const playBeat = () => {
const def = pickAmbientRow(atlas, lastPlayedId);
if (!def) return;
lastPlayedId = def.id;
setAmbientRowId(def.id);
const playMs =
AMBIENT_PLAY_MIN_MS + Math.floor(Math.random() * AMBIENT_PLAY_VARIANCE_MS);
playTimer = window.setTimeout(() => {
setAmbientRowId(null);
const restMs =
AMBIENT_REST_MIN_MS + Math.floor(Math.random() * AMBIENT_REST_VARIANCE_MS);
restTimer = window.setTimeout(playBeat, restMs);
}, playMs);
};
// Let the pet breathe for a moment before the first beat so a
// freshly-woken overlay doesn't snap straight into a flourish.
const initialDelay =
AMBIENT_INITIAL_DELAY_MIN_MS +
Math.floor(Math.random() * AMBIENT_INITIAL_DELAY_VARIANCE_MS);
restTimer = window.setTimeout(playBeat, initialDelay);
return () => {
if (playTimer != null) window.clearTimeout(playTimer);
if (restTimer != null) window.clearTimeout(restTimer);
setAmbientRowId(null);
};
}, [interaction, active?.id, active?.atlas]);
if (!active) return null;
const onPointerDown = (event: React.PointerEvent<HTMLDivElement>) => {
if (event.button !== 0) return;
const target = event.currentTarget;
target.setPointerCapture(event.pointerId);
dragRef.current = {
startX: event.clientX,
startY: event.clientY,
startRight: position.right,
startBottom: position.bottom,
moved: false,
direction: null,
};
armWaitingTimer();
};
const onPointerMove = (event: React.PointerEvent<HTMLDivElement>) => {
const drag = dragRef.current;
if (!drag) return;
const dx = event.clientX - drag.startX;
const dy = event.clientY - drag.startY;
if (!drag.moved && Math.abs(dx) + Math.abs(dy) < 4) return;
drag.moved = true;
// Convert pointer movement into right/bottom offsets so the sprite
// tracks the cursor while staying anchored to the corner system.
// The clamp budget (~120px) keeps the 96px sprite plus its drop
// shadow on-screen even when dragged toward the opposite edge.
const nextRight = Math.max(8, Math.min(window.innerWidth - 120, drag.startRight - dx));
const nextBottom = Math.max(8, Math.min(window.innerHeight - 120, drag.startBottom - dy));
setPosition({ right: nextRight, bottom: nextBottom });
// Classify the gesture direction once it clears the jitter floor
// and one axis clearly dominates the other. The animation then
// sticks until the user reverses past the threshold again.
const absX = Math.abs(dx);
const absY = Math.abs(dy);
if (absX < DRAG_GESTURE_MIN_PX && absY < DRAG_GESTURE_MIN_PX) return;
let dir: 'right' | 'left' | 'up' | 'down' | null = null;
if (absX >= absY * DRAG_AXIS_BIAS) {
dir = dx > 0 ? 'right' : 'left';
} else if (absY >= absX * DRAG_AXIS_BIAS) {
dir = dy < 0 ? 'up' : 'down';
}
if (dir && dir !== drag.direction) {
drag.direction = dir;
setInteraction(
dir === 'right'
? 'drag-right'
: dir === 'left'
? 'drag-left'
: dir === 'up'
? 'drag-up'
: 'drag-down',
);
}
armWaitingTimer();
};
const onPointerUp = (event: React.PointerEvent<HTMLDivElement>) => {
const drag = dragRef.current;
dragRef.current = null;
try {
event.currentTarget.releasePointerCapture(event.pointerId);
} catch {
/* ignore */
}
// A tap (no drag) toggles the speech bubble and rotates the line.
if (drag && !drag.moved) {
setBubbleOpen((open) => {
const next = !open;
if (next) setAmbientIdx((i) => (i + 1) % Math.max(1, lines.length));
return next;
});
}
// After the drag ends, fall back to the resting animation so the
// pet stops "running" the moment the user lets go. Hovered state
// wins so a release-into-hover keeps the wave going.
setInteraction(hovered ? 'hover' : 'idle');
armWaitingTimer();
};
const onPointerEnter = () => {
setHovered(true);
// Don't override an active drag direction with the hover wave —
// the user is mid-gesture and they expect the running cycle to
// keep playing until they let go.
if (!dragRef.current) setInteraction('hover');
armWaitingTimer();
};
const onPointerLeave = () => {
setHovered(false);
if (!dragRef.current) setInteraction('idle');
armWaitingTimer();
};
return (
<div
className="pet-overlay"
role="complementary"
aria-label={t('pet.overlayAria')}
style={{
right: position.right,
bottom: position.bottom,
// The accent drives the halo, the bubble border, and the focus
// ring on the action buttons via CSS custom property cascade.
['--pet-accent' as string]: active.accent,
}}
>
{bubbleOpen ? (
<div className="pet-bubble" role="status">
<div className="pet-bubble-name">{active.name}</div>
<div className="pet-bubble-line">{visibleLine}</div>
<div className="pet-bubble-actions">
<button
type="button"
className="pet-bubble-btn"
onClick={onOpenSettings}
title={t('pet.settingsTitle')}
>
<Icon name="settings" size={12} />
<span>{t('pet.changePet')}</span>
</button>
<button
type="button"
className="pet-bubble-btn"
onClick={onTuck}
title={t('pet.tuckTitle')}
>
<Icon name="close" size={12} />
<span>{t('pet.tuck')}</span>
</button>
</div>
</div>
) : null}
<div
className="pet-sprite"
onPointerDown={onPointerDown}
onPointerMove={onPointerMove}
onPointerUp={onPointerUp}
onPointerEnter={onPointerEnter}
onPointerLeave={onPointerLeave}
title={t('pet.spriteTitle', { name: active.name })}
aria-label={t('pet.spriteAria', { name: active.name })}
data-pet-state={interaction}
data-pet-ambient={ambientRowId ?? undefined}
style={{
// For atlas-backed pets the row swap *is* the animation, so
// we let the sprite element sit still and animate frames
// inside it. Built-ins / single-strip uploads keep their
// gentle CSS-named bob via --pet-anim.
['--pet-anim' as string]: active.atlas
? 'none'
: `pet-${active.animation}`,
}}
>
<PetSpriteFace
active={active}
className="pet-sprite-glyph"
rowId={ambientRowId ?? preferredRowId(interaction)}
/>
<span className="pet-sprite-shadow" aria-hidden />
</div>
</div>
);
}
+178
View File
@@ -0,0 +1,178 @@
import { useEffect, useState } from 'react';
import { useT } from '../../i18n';
import { Icon } from '../Icon';
import type { AppConfig, PetConfig } from '../../types';
import { DEFAULT_PET } from '../../state/config';
import { BUILT_IN_PETS, CUSTOM_PET_ID, defaultCustomPet, resolveActivePet } from './pets';
import { PetSpriteFace } from './PetSpriteFace';
interface Props {
config: AppConfig;
// Adopt + wake a built-in or the user's custom pet inline. The rail
// wires this to the saved config so picks survive across reloads
// without bouncing the user into Settings for the common case.
onAdoptInline: (petId: string) => void;
// Open Settings → Pets so the user can tweak the custom pet, change
// accent, or read the catalog flavor copy.
onOpenPetSettings: () => void;
// Tuck the live overlay without changing the active pet id.
onTuck: () => void;
// Optional "remove the rail entirely" action. When provided, the
// header gets a × button that hides the rail from the layout (the
// user re-summons it from the avatar dropdown). Distinct from the
// existing collapse toggle, which only narrows the column.
onHide?: () => void;
}
const COLLAPSED_KEY = 'open-design:pet-rail-collapsed';
function loadCollapsed(): boolean {
if (typeof window === 'undefined') return false;
try {
return window.localStorage.getItem(COLLAPSED_KEY) === '1';
} catch {
return false;
}
}
// Vertical pet column rendered to the right of the entry view's main
// content. Doubles as a discovery surface (un-adopted users see the
// full catalog inline) and a switcher (adopted users tap to swap).
export function PetRail({ config, onAdoptInline, onOpenPetSettings, onTuck, onHide }: Props) {
const t = useT();
const [collapsed, setCollapsed] = useState<boolean>(() => loadCollapsed());
const pet: PetConfig = config.pet ?? { ...DEFAULT_PET, custom: defaultCustomPet() };
useEffect(() => {
try {
window.localStorage.setItem(COLLAPSED_KEY, collapsed ? '1' : '0');
} catch {
/* ignore */
}
}, [collapsed]);
const activeId = pet.adopted ? pet.petId : null;
if (collapsed) {
return (
<aside className="pet-rail collapsed" aria-label={t('pet.railAria')}>
<button
type="button"
className="pet-rail-toggle"
onClick={() => setCollapsed(false)}
title={t('pet.railExpand')}
aria-label={t('pet.railExpand')}
>
<span className="pet-rail-toggle-glyph" aria-hidden>🐾</span>
<Icon name="chevron-left" size={14} />
</button>
</aside>
);
}
return (
<aside className="pet-rail" aria-label={t('pet.railAria')}>
<header className="pet-rail-head">
<div className="pet-rail-title">
<span aria-hidden>🐾</span>
<strong>{t('pet.railTitle')}</strong>
</div>
<div className="pet-rail-head-actions">
<button
type="button"
className="pet-rail-collapse"
onClick={() => setCollapsed(true)}
title={t('pet.railCollapse')}
aria-label={t('pet.railCollapse')}
>
<Icon name="chevron-right" size={14} />
</button>
{onHide ? (
<button
type="button"
className="pet-rail-collapse"
onClick={onHide}
title={t('pet.railHide')}
aria-label={t('pet.railHide')}
>
<Icon name="close" size={14} />
</button>
) : null}
</div>
</header>
<p className="pet-rail-hint">{t('pet.railHint')}</p>
<div className="pet-rail-status">
{pet.adopted ? (
<button
type="button"
className="pet-rail-status-pill"
onClick={onTuck}
title={pet.enabled ? t('pet.tuckTitle') : t('pet.wakeTitle')}
>
<Icon name={pet.enabled ? 'eye' : 'sparkles'} size={12} />
<span>{pet.enabled ? t('pet.tuck') : t('pet.wake')}</span>
</button>
) : (
<span className="pet-rail-fresh">{t('pet.adoptCallout')}</span>
)}
</div>
<div className="pet-rail-list">
{BUILT_IN_PETS.map((p) => {
const active = activeId === p.id;
return (
<button
type="button"
key={p.id}
className={`pet-rail-item${active ? ' active' : ''}`}
onClick={() => onAdoptInline(p.id)}
aria-pressed={active}
style={{ ['--pet-accent' as string]: p.accent }}
title={p.flavor}
>
<span className="pet-rail-item-glyph" aria-hidden>{p.glyph}</span>
<span className="pet-rail-item-meta">
<span className="pet-rail-item-name">{p.name}</span>
<span className="pet-rail-item-flavor">{p.flavor}</span>
</span>
{active ? (
<Icon name="check" size={14} aria-hidden />
) : null}
</button>
);
})}
<button
type="button"
className={`pet-rail-item custom${activeId === CUSTOM_PET_ID ? ' active' : ''}`}
onClick={() => onAdoptInline(CUSTOM_PET_ID)}
style={{ ['--pet-accent' as string]: pet.custom.accent }}
>
<span className="pet-rail-item-glyph" aria-hidden>
<PetSpriteFace
active={
resolveActivePet({ ...pet, adopted: true, petId: CUSTOM_PET_ID })!
}
size={28}
/>
</span>
<span className="pet-rail-item-meta">
<span className="pet-rail-item-name">
{pet.custom.name || t('pet.useCustom')}
</span>
<span className="pet-rail-item-flavor">{t('pet.railCustomFlavor')}</span>
</span>
{activeId === CUSTOM_PET_ID ? (
<Icon name="check" size={14} aria-hidden />
) : null}
</button>
</div>
<button
type="button"
className="pet-rail-customize"
onClick={onOpenPetSettings}
>
<Icon name="sparkles" size={12} />
<span>{t('pet.railCustomize')}</span>
</button>
</aside>
);
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,158 @@
import { useEffect, useState, type CSSProperties } from 'react';
import type { PetAtlasRowDef } from '../../types';
import type { ResolvedPet } from './pets';
interface Props {
active: ResolvedPet;
className?: string;
// Optional explicit pixel size; the overlay leaves it unset and
// inherits container metrics, while the rail / settings preview
// pin a concrete size to keep the cell shape consistent.
size?: number;
// Atlas-mode only — which row id (e.g. `idle`, `waving`, `running-right`)
// to play right now. Defaults to `idle` (or the first row, when the
// atlas does not declare an idle row). Ignored for emoji / strip pets.
rowId?: string;
}
// Renders the pet's face. Four cases:
//
// 1. No imageUrl — just the emoji glyph (legacy / built-ins).
// 2. imageUrl + atlas — the full Codex 8x9 sprite atlas. We pick the
// requested row by index and step through that row's frames at
// the row's per-second fps. Mirrors the `codex-pets-react`
// `SpriteAnimator` behaviour so different interactions (idle,
// waving, running-*) play the right row of the atlas.
// 3. imageUrl + frames > 1 — legacy horizontal spritesheet (one row
// cropped out). Walked through with a CSS `steps()` animation.
// 4. imageUrl + frames === 1 — single static image.
export function PetSpriteFace({ active, className, size, rowId }: Props) {
if (!active.imageUrl) {
const style: CSSProperties | undefined = size
? { fontSize: Math.round(size * 0.85), width: size, height: size, lineHeight: 1 }
: undefined;
return (
<span className={className} aria-hidden style={style}>
{active.glyph}
</span>
);
}
if (active.atlas && active.atlas.rowsDef.length > 0) {
return (
<AtlasSprite
imageUrl={active.imageUrl}
cols={Math.max(1, active.atlas.cols)}
rows={Math.max(1, active.atlas.rows)}
rowsDef={active.atlas.rowsDef}
rowId={rowId}
className={className}
size={size}
/>
);
}
const frames = Math.max(1, active.frames ?? 1);
const fps = Math.max(1, active.fps ?? 6);
if (frames === 1) {
return (
<span
className={`${className ?? ''} pet-image static`.trim()}
aria-hidden
style={{
backgroundImage: `url(${active.imageUrl})`,
width: size,
height: size,
}}
/>
);
}
// Strip mode — N frames laid out horizontally. The image is
// (N × container_width) wide, so the visible frame is selected by
// sliding background-position-x from 0% to 100% in (N-1) steps.
// `steps(N, jump-none)` is required because the default jump-end
// would land on 0/N, 1/N, …, (N-1)/N, which slices each frame mid-cell;
// jump-none lands on the actual cell boundaries 0/(N-1) … 1.
const durationMs = Math.round((frames / fps) * 1000);
return (
<span
className={`${className ?? ''} pet-image frames`.trim()}
aria-hidden
style={{
backgroundImage: `url(${active.imageUrl})`,
backgroundSize: `${frames * 100}% 100%`,
animation: `pet-frames ${durationMs}ms steps(${frames}, jump-none) infinite`,
width: size,
height: size,
}}
/>
);
}
interface AtlasSpriteProps {
imageUrl: string;
cols: number;
rows: number;
rowsDef: PetAtlasRowDef[];
rowId?: string;
className?: string;
size?: number;
}
// Atlas renderer. Drives the frame index from JS instead of a CSS
// `steps()` animation — sidesteps the jump-end vs jump-none footgun
// and makes per-row fps trivial to swap when the parent flips the
// `rowId` prop (idle ↔ waving ↔ running-*).
function AtlasSprite({
imageUrl,
cols,
rows,
rowsDef,
rowId,
className,
size,
}: AtlasSpriteProps) {
const def =
rowsDef.find((r) => r.id === rowId)
?? rowsDef.find((r) => r.id === 'idle')
?? rowsDef[0]!;
const rowFrames = Math.max(1, def.frames);
const fps = Math.max(1, def.fps);
const [frame, setFrame] = useState(0);
// Reset to frame 0 on row change so a freshly-triggered animation
// (e.g. tap → waving) starts cleanly instead of mid-cycle.
useEffect(() => {
setFrame(0);
if (rowFrames <= 1) return;
const intervalMs = Math.max(16, Math.round(1000 / fps));
const id = window.setInterval(() => {
setFrame((f) => (f + 1) % rowFrames);
}, intervalMs);
return () => window.clearInterval(id);
}, [def.id, def.index, rowFrames, fps]);
// Background math:
// - background-size = (cols × 100%) × (rows × 100%)
// → each grid cell renders at exactly the container size.
// - background-position-x = frame / (cols - 1) × 100%
// → 0% slides to the leftmost cell, 100% to the rightmost,
// intermediate cells land at frame/(cols-1) of the offset range.
// - background-position-y = rowIndex / (rows - 1) × 100%
const xPct = cols > 1 ? (frame / (cols - 1)) * 100 : 0;
const yPct = rows > 1 ? (def.index / (rows - 1)) * 100 : 0;
return (
<span
className={`${className ?? ''} pet-image atlas`.trim()}
aria-hidden
style={{
backgroundImage: `url(${imageUrl})`,
backgroundSize: `${cols * 100}% ${rows * 100}%`,
backgroundPosition: `${xPct}% ${yPct}%`,
width: size,
height: size,
}}
/>
);
}
+327
View File
@@ -0,0 +1,327 @@
// Codex hatch-pet atlas helpers.
//
// The companion `hatch-pet` skill (vendored under `skills/hatch-pet/`)
// produces a fixed-shape spritesheet that the Codex app reads directly:
//
// - Format: PNG or WebP, transparent background.
// - Dimensions: 1536 x 1872 px.
// - Grid: 8 columns x 9 rows of 192 x 208 cells.
// - Each row encodes one animation state (idle, running-right, …).
//
// The pet overlay can render the full atlas and switch the active row
// based on interaction state (hover, drag direction, idle timeout) —
// matching the codex-pets-react `PetWidget` behaviour. For users who
// prefer a single-row loop (or a non-Codex strip) we still expose the
// `cropAtlasRow` helper, which slices one row into a standalone strip.
//
// Source contract:
// https://github.com/openai/skills/tree/main/skills/.curated/hatch-pet/references
import type { PetAtlasLayout, PetAtlasRowDef } from '../../types';
export const CODEX_ATLAS_COLS = 8;
export const CODEX_ATLAS_ROWS = 9;
export const CODEX_CELL_WIDTH = 192;
export const CODEX_CELL_HEIGHT = 208;
export const CODEX_ATLAS_WIDTH = CODEX_ATLAS_COLS * CODEX_CELL_WIDTH; // 1536
export const CODEX_ATLAS_HEIGHT = CODEX_ATLAS_ROWS * CODEX_CELL_HEIGHT; // 1872
export const CODEX_ATLAS_ASPECT = CODEX_ATLAS_WIDTH / CODEX_ATLAS_HEIGHT; // ~0.821
export interface CodexAtlasRow {
// Row index in the atlas, top to bottom. Stable ordering matches the
// `animation-rows.md` reference shipped with the upstream skill.
index: number;
// Stable id used for translation lookup and React keys.
id:
| 'idle'
| 'running-right'
| 'running-left'
| 'waving'
| 'jumping'
| 'failed'
| 'waiting'
| 'running'
| 'review';
// Number of frames the row uses, per the upstream reference. Frames
// beyond this index are required to be transparent so we crop them
// out by default to keep the strip tight.
frames: number;
// Recommended fps so the strip plays at roughly the same cadence as
// the Codex app's own per-frame ms timings. Each row uses different
// per-frame timings; this is a reasonable rounded average.
fps: number;
}
// Mirrors `references/animation-rows.md` from the hatch-pet skill.
export const CODEX_ATLAS_ROWS_DEF: CodexAtlasRow[] = [
{ index: 0, id: 'idle', frames: 6, fps: 6 },
{ index: 1, id: 'running-right', frames: 8, fps: 8 },
{ index: 2, id: 'running-left', frames: 8, fps: 8 },
{ index: 3, id: 'waving', frames: 4, fps: 6 },
{ index: 4, id: 'jumping', frames: 5, fps: 7 },
{ index: 5, id: 'failed', frames: 8, fps: 7 },
{ index: 6, id: 'waiting', frames: 6, fps: 6 },
{ index: 7, id: 'running', frames: 6, fps: 8 },
{ index: 8, id: 'review', frames: 6, fps: 6 },
];
// Canonical layout passed to `PetCustom.atlas` when the user adopts a
// Codex hatch-pet without freezing it to a single row. The overlay reads
// this to know how to slice the grid + which rows are populated.
export const CODEX_ATLAS_LAYOUT: PetAtlasLayout = {
cols: CODEX_ATLAS_COLS,
rows: CODEX_ATLAS_ROWS,
rowsDef: CODEX_ATLAS_ROWS_DEF.map(
(row): PetAtlasRowDef => ({
index: row.index,
id: row.id,
frames: row.frames,
fps: row.fps,
}),
),
};
// Aspect-only check is enough to handle WebP/PNG atlases that have been
// resized for transport. We accept anything within ~6% of the canonical
// 8x9 / 192x208 aspect, which comfortably catches resized variants while
// rejecting normal screenshots and selfies.
export function looksLikeCodexAtlas(width: number, height: number): boolean {
if (!Number.isFinite(width) || !Number.isFinite(height)) return false;
if (width <= 0 || height <= 0) return false;
const aspect = width / height;
return Math.abs(aspect - CODEX_ATLAS_ASPECT) < 0.06;
}
// Read a user-picked file into a data URL without re-encoding through a
// canvas. The Codex atlas import path needs the original full-resolution
// pixels so the per-row crop stays sharp; the regular pet upload path in
// `image.ts` would downscale to 384 px on the longest side and destroy
// the grid alignment.
export interface RawAtlasImage {
dataUrl: string;
width: number;
height: number;
}
const ACCEPTED_TYPES = new Set([
'image/png',
'image/webp',
'image/jpeg',
'image/gif',
]);
export async function loadAtlasImageFromFile(file: File): Promise<RawAtlasImage> {
if (!file.type.startsWith('image/')) {
throw new Error('Only image files are supported.');
}
if (!ACCEPTED_TYPES.has(file.type) && file.type !== 'image/svg+xml') {
throw new Error('Use a PNG, WebP, JPEG, or GIF spritesheet.');
}
const dataUrl = await readFileAsDataUrl(file);
const dims = await measureImage(dataUrl);
return { dataUrl, width: dims.width, height: dims.height };
}
export interface CropAtlasOptions {
// Which row to extract. Defaults to row 0 (`idle`).
rowIndex: number;
// Override the columns / rows / cell size if the source is a non-Codex
// atlas. Defaults to the canonical 8x9 / 192x208 layout.
cols?: number;
rows?: number;
// Number of leading frames to keep from the row. Defaults to the
// upstream-defined "used columns" for the chosen row, falling back to
// `cols` when the row isn't recognised.
frames?: number;
// Cap on the cell height of the resulting strip. The pet overlay only
// renders at ~56-72 px, so 96 px cells stay crisp without bloating
// the localStorage payload. Set to `null` to skip downscaling.
maxCellHeight?: number | null;
}
export interface CroppedAtlasRow {
// PNG data URL of the horizontal strip ready to drop into
// `PetCustom.imageUrl` and animated via `pet-frames` keyframes.
dataUrl: string;
// Final strip dimensions after optional downscale.
width: number;
height: number;
// Number of frames packed into the strip.
frames: number;
}
const DEFAULT_MAX_CELL_HEIGHT = 96;
export async function cropAtlasRow(
dataUrl: string,
options: CropAtlasOptions,
): Promise<CroppedAtlasRow> {
const cols = Math.max(1, Math.floor(options.cols ?? CODEX_ATLAS_COLS));
const rows = Math.max(1, Math.floor(options.rows ?? CODEX_ATLAS_ROWS));
const rowIndex = Math.max(0, Math.min(rows - 1, Math.floor(options.rowIndex)));
const def = CODEX_ATLAS_ROWS_DEF.find((r) => r.index === rowIndex);
const requestedFrames =
options.frames ?? def?.frames ?? cols;
const frames = Math.max(1, Math.min(cols, Math.floor(requestedFrames)));
const maxCellHeight =
options.maxCellHeight === null
? null
: options.maxCellHeight ?? DEFAULT_MAX_CELL_HEIGHT;
const img = await loadImage(dataUrl);
const cellWidth = Math.floor(img.naturalWidth / cols);
const cellHeight = Math.floor(img.naturalHeight / rows);
if (cellWidth <= 0 || cellHeight <= 0) {
throw new Error('Atlas image is too small to crop.');
}
const targetCellHeight =
maxCellHeight && cellHeight > maxCellHeight ? maxCellHeight : cellHeight;
const scale = targetCellHeight / cellHeight;
const targetCellWidth = Math.max(1, Math.round(cellWidth * scale));
const targetWidth = targetCellWidth * frames;
const targetHeight = targetCellHeight;
const canvas = document.createElement('canvas');
canvas.width = targetWidth;
canvas.height = targetHeight;
const ctx = canvas.getContext('2d');
if (!ctx) {
throw new Error('Canvas is unavailable in this browser.');
}
// Pixel-art atlases lose readability under bilinear smoothing, so we
// explicitly disable it before drawing.
ctx.imageSmoothingEnabled = false;
for (let f = 0; f < frames; f++) {
const sx = f * cellWidth;
const sy = rowIndex * cellHeight;
ctx.drawImage(
img,
sx,
sy,
cellWidth,
cellHeight,
f * targetCellWidth,
0,
targetCellWidth,
targetCellHeight,
);
}
const out = canvas.toDataURL('image/png');
return {
dataUrl: out,
width: targetWidth,
height: targetHeight,
frames,
};
}
// Same idea as `cropAtlasRow` but keeps every row so the overlay can
// switch animations on the fly. We downscale to a target cell height
// (default 80 px → 8x9 grid lands at ~528 KB PNG which fits inside the
// MAX_DATA_URL_BYTES guard from `image.ts` even for busy spritesheets)
// while preserving the grid layout 1:1 so background-position math in
// `PetSpriteFace` stays simple.
const DEFAULT_FULL_ATLAS_MAX_CELL = 80;
export interface PreparedAtlas {
// PNG data URL of the full atlas, ready to drop into
// `PetCustom.imageUrl` together with the matching layout.
dataUrl: string;
// Final pixel dimensions of the downscaled atlas.
width: number;
height: number;
// Layout metadata describing the grid + per-row playback config.
layout: PetAtlasLayout;
}
export async function prepareCodexAtlas(
sourceDataUrl: string,
options?: { maxCellHeight?: number | null },
): Promise<PreparedAtlas> {
const maxCellHeight =
options?.maxCellHeight === null
? null
: options?.maxCellHeight ?? DEFAULT_FULL_ATLAS_MAX_CELL;
const img = await loadImage(sourceDataUrl);
const cellWidth = Math.floor(img.naturalWidth / CODEX_ATLAS_COLS);
const cellHeight = Math.floor(img.naturalHeight / CODEX_ATLAS_ROWS);
if (cellWidth <= 0 || cellHeight <= 0) {
throw new Error('Atlas image is too small to slice.');
}
const targetCellHeight =
maxCellHeight && cellHeight > maxCellHeight ? maxCellHeight : cellHeight;
const scale = targetCellHeight / cellHeight;
const targetCellWidth = Math.max(1, Math.round(cellWidth * scale));
const targetWidth = targetCellWidth * CODEX_ATLAS_COLS;
const targetHeight = targetCellHeight * CODEX_ATLAS_ROWS;
const canvas = document.createElement('canvas');
canvas.width = targetWidth;
canvas.height = targetHeight;
const ctx = canvas.getContext('2d');
if (!ctx) {
throw new Error('Canvas is unavailable in this browser.');
}
ctx.imageSmoothingEnabled = false;
// Draw cell-by-cell so alignment survives even if the source has a
// slightly off canvas size (some tools add a 1 px gutter that would
// otherwise smear into adjacent cells under a single drawImage).
for (let r = 0; r < CODEX_ATLAS_ROWS; r++) {
for (let c = 0; c < CODEX_ATLAS_COLS; c++) {
ctx.drawImage(
img,
c * cellWidth,
r * cellHeight,
cellWidth,
cellHeight,
c * targetCellWidth,
r * targetCellHeight,
targetCellWidth,
targetCellHeight,
);
}
}
const dataUrl = canvas.toDataURL('image/png');
return {
dataUrl,
width: targetWidth,
height: targetHeight,
layout: CODEX_ATLAS_LAYOUT,
};
}
function readFileAsDataUrl(file: File): Promise<string> {
return new Promise((resolve, reject) => {
const reader = new FileReader();
reader.onerror = () => reject(reader.error ?? new Error('Read failed'));
reader.onload = () => {
const result = reader.result;
if (typeof result !== 'string') {
reject(new Error('Could not decode the image.'));
return;
}
resolve(result);
};
reader.readAsDataURL(file);
});
}
function measureImage(
dataUrl: string,
): Promise<{ width: number; height: number }> {
return new Promise((resolve, reject) => {
const img = new Image();
img.onload = () => resolve({ width: img.naturalWidth, height: img.naturalHeight });
img.onerror = () => reject(new Error('Could not load that image.'));
img.src = dataUrl;
});
}
function loadImage(dataUrl: string): Promise<HTMLImageElement> {
return new Promise((resolve, reject) => {
const img = new Image();
img.onload = () => resolve(img);
img.onerror = () => reject(new Error('Could not load that image.'));
img.src = dataUrl;
});
}
+139
View File
@@ -0,0 +1,139 @@
// Helpers for turning a user-picked image file into a self-contained
// pet sprite payload that is safe to drop into localStorage. We do
// three things:
//
// 1. Reject anything that is not an image.
// 2. For animated GIFs (and SVGs), pass the original bytes through as a
// data URL — re-encoding through a canvas would freeze a GIF on its
// first frame and rasterize an SVG, which we explicitly want to
// avoid for spritesheet uploads modeled on codex-pets-react sheets.
// 3. For everything else (PNG / JPG / WebP), draw to a canvas at a
// capped longest-side and re-export as PNG so the resulting data
// URL stays bounded even when the source is a 4K screenshot.
//
// All of this happens client-side; nothing is uploaded to the daemon.
export interface PetImageResult {
// Ready-to-render data URL (data:image/...;base64,…) or a passthrough
// for animated formats.
dataUrl: string;
// Pixel size of the resulting image — useful for the settings preview
// when guessing a sensible default frame count for spritesheets.
width: number;
height: number;
// True when we re-encoded through a canvas (PNG output). False when
// we kept the original bytes (GIF, SVG) so the caller can warn the
// user about size limits before saving.
reencoded: boolean;
}
// Hard cap on the data URL we are willing to stash in localStorage.
// localStorage typically has a 5 MB budget per origin and we already
// share that bucket with the rest of `open-design:config`. 800 KB
// keeps room for a beefy spritesheet without blowing the budget.
const MAX_DATA_URL_BYTES = 800 * 1024;
// Capped longest-side for re-encoded sprites. 384 px gives a 4-frame
// strip plenty of resolution at the 56 px overlay size while keeping
// the data URL short.
const MAX_REENCODED_PX = 384;
const PASSTHROUGH_TYPES = new Set(['image/gif', 'image/svg+xml', 'image/webp']);
export async function loadPetImageFromFile(
file: File,
): Promise<PetImageResult> {
if (!file.type.startsWith('image/')) {
throw new Error('Only image files are supported.');
}
if (PASSTHROUGH_TYPES.has(file.type)) {
const dataUrl = await fileToDataUrl(file);
if (approxDataUrlBytes(dataUrl) > MAX_DATA_URL_BYTES) {
throw new Error(
'That image is too large after encoding. Try one under ~800 KB.',
);
}
const dims = await measureImage(dataUrl);
return { dataUrl, width: dims.width, height: dims.height, reencoded: false };
}
// PNG / JPG / etc — re-encode through a canvas so the data URL stays
// small even when the source is high-resolution.
const dataUrl = await fileToDataUrl(file);
const original = await measureImage(dataUrl);
const scale = Math.min(
1,
MAX_REENCODED_PX / Math.max(original.width, original.height),
);
const targetW = Math.max(1, Math.round(original.width * scale));
const targetH = Math.max(1, Math.round(original.height * scale));
const reencoded = await drawToPng(dataUrl, targetW, targetH);
if (approxDataUrlBytes(reencoded) > MAX_DATA_URL_BYTES) {
throw new Error(
'That image is too large after encoding. Try a smaller source.',
);
}
return {
dataUrl: reencoded,
width: targetW,
height: targetH,
reencoded: true,
};
}
function fileToDataUrl(file: File): Promise<string> {
return new Promise((resolve, reject) => {
const reader = new FileReader();
reader.onerror = () => reject(reader.error ?? new Error('Read failed'));
reader.onload = () => {
const result = reader.result;
if (typeof result !== 'string') {
reject(new Error('Could not decode the image.'));
return;
}
resolve(result);
};
reader.readAsDataURL(file);
});
}
function measureImage(dataUrl: string): Promise<{ width: number; height: number }> {
return new Promise((resolve, reject) => {
const img = new Image();
img.onload = () => resolve({ width: img.naturalWidth, height: img.naturalHeight });
img.onerror = () => reject(new Error('Could not load that image.'));
img.src = dataUrl;
});
}
function drawToPng(dataUrl: string, w: number, h: number): Promise<string> {
return new Promise((resolve, reject) => {
const img = new Image();
img.onload = () => {
const canvas = document.createElement('canvas');
canvas.width = w;
canvas.height = h;
const ctx = canvas.getContext('2d');
if (!ctx) {
reject(new Error('Canvas is unavailable in this browser.'));
return;
}
ctx.drawImage(img, 0, 0, w, h);
try {
resolve(canvas.toDataURL('image/png'));
} catch (err) {
reject(err instanceof Error ? err : new Error('Encode failed'));
}
};
img.onerror = () => reject(new Error('Could not load that image.'));
img.src = dataUrl;
});
}
function approxDataUrlBytes(dataUrl: string): number {
const comma = dataUrl.indexOf(',');
if (comma === -1) return dataUrl.length;
// base64 is ~4 chars per 3 bytes; this estimate is good enough to
// guard the localStorage budget without parsing.
const base64 = dataUrl.slice(comma + 1);
return Math.floor((base64.length * 3) / 4);
}
+340
View File
@@ -0,0 +1,340 @@
import type { AppConfig, PetAtlasLayout, PetAtlasRowDef, PetCustom, PetConfig } from '../../types';
import {
codexPetSpritesheetUrl,
fetchCodexPets,
} from '../../providers/registry';
import { prepareCodexAtlas } from './codexAtlas';
// Built-in pet catalog. Historically this listed a handful of emoji-only
// pets (Mochi, Pixel, Foxy…), but those felt boring next to the rich
// hatch-pet sprite atlases bundled under `assets/community-pets/`. The
// "Built-in" tab now sources its pets from those bundled spritesheets at
// runtime via `/api/codex-pets` (filtered by `bundled: true`), and the
// emoji-based catalog has been retired.
//
// We keep the type and an empty array for backwards compatibility with
// rail / composer code paths and saved configs whose `petId` still
// points at a legacy emoji id — those configs fall back to the user's
// custom slot in `resolveActivePet` so the overlay never renders blank.
export interface BuiltInPet {
id: string;
name: string;
glyph: string;
accent: string;
greeting: string;
// Free-form one-liner shown under the pet name in the catalog card
// — flavor text, not a tooltip. Keep it short.
flavor: string;
// CSS animation name applied to the sprite when the overlay is awake.
// All four are defined in `index.css` under `@keyframes pet-…`.
animation: 'bounce' | 'sway' | 'float' | 'wiggle';
}
export const BUILT_IN_PETS: BuiltInPet[] = [];
export const CUSTOM_PET_ID = 'custom';
export interface ResolvedPet {
id: string;
name: string;
glyph: string;
accent: string;
greeting: string;
animation: BuiltInPet['animation'];
// Optional uploaded image data URL. Present only for custom pets that
// have an image; built-ins fall back to their emoji glyph.
imageUrl?: string;
// Legacy single-row spritesheet config (used when `atlas` is missing).
// Number of horizontal frames in the imageUrl (1 = static).
frames?: number;
// Frames-per-second for the spritesheet step animation.
fps?: number;
// Optional sprite atlas layout. When present, `imageUrl` is the full
// grid and `PetSpriteFace` picks one row to play based on the
// overlay's interaction state.
atlas?: PetAtlasLayout;
}
// Resolve the pet definition currently in use. Returns `null` only when
// the user has not adopted yet — call sites use that to decide whether
// to render the floating overlay at all.
export function resolveActivePet(pet: PetConfig | undefined): ResolvedPet | null {
if (!pet?.adopted) return null;
// Bundled "Built-in" pets adopt into the custom slot (the spritesheet
// and atlas layout are copied there by `adoptCodexPet`), so the
// custom branch is the rendering path for both user-authored pets
// and bundled adoptions.
if (pet.petId === CUSTOM_PET_ID) {
return resolveCustomPet(pet.custom);
}
const found = BUILT_IN_PETS.find((p) => p.id === pet.petId);
if (found) {
return {
id: found.id,
name: found.name,
glyph: found.glyph,
accent: found.accent,
greeting: found.greeting,
animation: found.animation,
};
}
// Legacy fallback — older configs may still carry an emoji built-in
// id (e.g. `mochi`) from before the catalog migrated to bundled
// spritesheets. Render the user's custom slot instead of crashing or
// blanking the overlay; the user can re-adopt from Settings to pick
// a bundled pet.
return resolveCustomPet(pet.custom);
}
function resolveCustomPet(c: PetCustom): ResolvedPet {
return {
id: CUSTOM_PET_ID,
name: c.name?.trim() || 'Buddy',
glyph: c.glyph?.trim() || '🦄',
accent: c.accent?.trim() || '#c96442',
greeting: c.greeting?.trim() || 'Hi! I am here whenever you need me.',
// Custom pets get the gentle float animation by default. We could
// expose this in the editor later; today's UX keeps the picker
// focused on glyph + name + color.
animation: 'float',
imageUrl: c.imageUrl,
frames: clampFrames(c.frames),
fps: clampFps(c.fps),
atlas: sanitizeAtlas(c.atlas),
};
}
export const FRAMES_MIN = 1;
export const FRAMES_MAX = 24;
export const FPS_MIN = 1;
export const FPS_MAX = 30;
function clampFrames(value: number | undefined): number {
if (!Number.isFinite(value as number)) return 1;
return Math.max(FRAMES_MIN, Math.min(FRAMES_MAX, Math.round(value as number)));
}
function clampFps(value: number | undefined): number {
if (!Number.isFinite(value as number)) return 6;
return Math.max(FPS_MIN, Math.min(FPS_MAX, Math.round(value as number)));
}
// Atlas hardening — strips out malformed entries so the renderer never
// has to defensively check for NaN cell sizes / negative indices. We
// keep rows we can validate even if the layout omits a few; missing
// rows just fall back to `idle` at lookup time.
function sanitizeAtlas(input: PetAtlasLayout | undefined): PetAtlasLayout | undefined {
if (!input) return undefined;
const cols = Math.max(1, Math.floor(input.cols));
const rows = Math.max(1, Math.floor(input.rows));
if (!Number.isFinite(cols) || !Number.isFinite(rows)) return undefined;
const seen = new Set<number>();
const rowsDef: PetAtlasRowDef[] = [];
for (const row of input.rowsDef ?? []) {
if (!row || typeof row.id !== 'string' || !row.id.trim()) continue;
const index = Math.floor(row.index);
if (!Number.isFinite(index) || index < 0 || index >= rows) continue;
if (seen.has(index)) continue;
seen.add(index);
rowsDef.push({
index,
id: row.id.trim(),
frames: Math.max(1, Math.min(cols, Math.floor(row.frames) || 1)),
fps: Math.max(FPS_MIN, Math.min(FPS_MAX, Math.floor(row.fps) || 6)),
});
}
if (rowsDef.length === 0) return undefined;
rowsDef.sort((a, b) => a.index - b.index);
return { cols, rows, rowsDef };
}
// Logical interaction states that drive the overlay's animation
// switching. Kept narrow on purpose so the mapping below stays a
// declarative table rather than a tangle of conditionals.
export type PetInteraction =
| 'idle'
| 'hover'
| 'drag-right'
| 'drag-left'
| 'drag-up'
| 'drag-down'
| 'waiting';
// Preferred Codex atlas row id for each interaction state. Hover and
// drag each map to a dedicated action row so the pet visibly reacts to
// the user — hover plays a wave, drag swaps to a directional run (or
// hop when the gesture is vertical). Autonomous ambient variety below
// only fires when the pet is otherwise at rest so rest ↔ interaction
// reads as two cleanly separated behaviours.
const INTERACTION_ROW_ID: Record<PetInteraction, string> = {
idle: 'idle',
hover: 'waving',
'drag-right': 'running-right',
'drag-left': 'running-left',
'drag-up': 'jumping',
'drag-down': 'waving',
waiting: 'waiting',
};
const ROW_FALLBACK_ORDER: readonly string[] = [
'idle',
'waiting',
'waving',
'running',
'running-right',
];
export function preferredRowId(state: PetInteraction): string {
return INTERACTION_ROW_ID[state];
}
// Resolve the atlas row to play given the desired animation id. We try
// the requested id first, then walk a sensible fallback chain, then
// return whichever row the atlas does have so playback never blanks
// out for a partially-populated pet.
export function pickAtlasRow(
layout: PetAtlasLayout | undefined,
preferred: string,
): PetAtlasRowDef | undefined {
if (!layout || layout.rowsDef.length === 0) return undefined;
const direct = layout.rowsDef.find((r) => r.id === preferred);
if (direct) return direct;
for (const id of ROW_FALLBACK_ORDER) {
const fallback = layout.rowsDef.find((r) => r.id === id);
if (fallback) return fallback;
}
return layout.rowsDef[0];
}
// Ambient row pool — the overlay dips into these between `idle` cycles
// so a parked pet doesn't look frozen. Ordered by "quietness": waving
// and review feel calm enough to interject without startling the user,
// jumping / running* are more energetic and round out the variety when
// the atlas ships them. `idle`, `waiting`, and `failed` are excluded
// intentionally: idle is the resting baseline, waiting is reserved for
// the long-idle cue, and failed reads as a negative micro-narrative.
const AMBIENT_ROW_POOL: readonly string[] = [
'waving',
'review',
'jumping',
'running',
'running-right',
'running-left',
];
// Pick a random ambient row from the atlas, preferring ids in
// AMBIENT_ROW_POOL and avoiding `avoidId` when possible so the overlay
// doesn't replay the same micro-animation twice in a row. Returns null
// when the atlas ships only `idle` / `waiting` rows so the caller can
// no-op cleanly.
export function pickAmbientRow(
layout: PetAtlasLayout | undefined,
avoidId?: string,
): PetAtlasRowDef | null {
if (!layout || layout.rowsDef.length === 0) return null;
const pool = layout.rowsDef.filter((r) => AMBIENT_ROW_POOL.includes(r.id));
if (pool.length === 0) return null;
const candidates =
pool.length > 1 && avoidId ? pool.filter((r) => r.id !== avoidId) : pool;
const choices = candidates.length > 0 ? candidates : pool;
return choices[Math.floor(Math.random() * choices.length)] ?? null;
}
// A short pool of "ambient" prompts that the overlay rotates through on
// hover so the speech bubble feels alive after the initial greeting.
// Keep these brand-neutral and product-relevant to Open Design.
export function ambientLines(name: string): string[] {
return [
`${name}: nudge me when you want a fresh idea.`,
`${name}: I will keep you company while it builds.`,
`${name}: take a breath — the prototype will wait.`,
`${name}: small tweaks compound. Keep going!`,
];
}
export function defaultCustomPet(): PetCustom {
return {
name: 'Buddy',
glyph: '🦄',
accent: '#c96442',
greeting: 'Hi! I am here whenever you need me.',
};
}
// One-shot self-healing migration for pets adopted before the overlay
// learned how to switch atlas rows.
//
// Older versions of `adoptCodexPet` cropped the Codex spritesheet down
// to the idle row and stored just that horizontal strip on
// `PetCustom.imageUrl` (strip mode, single row). The overlay is now an
// atlas-aware renderer that can swap rows per interaction (hover ↔
// waving, drag ↔ running-*, idle ↔ ambient rotation), but it needs the
// full 8×9 grid in `PetCustom.atlas` + `imageUrl` to do so.
//
// When the persisted config points at a custom pet that has an
// imageUrl but no atlas, we look up the Codex pet registry, match by
// the name we stamped on adoption, and silently re-download the
// full spritesheet. The user sees nothing except their pet going from
// "one-state statue" to fully animated on next launch. The migration
// bails on any failure — this is best-effort and the strip sprite
// stays as-is if, say, the daemon is offline.
export async function migrateCustomPetAtlas(
cfg: AppConfig,
): Promise<PetCustom | null> {
const pet = cfg.pet;
if (!pet || !pet.adopted || pet.petId !== CUSTOM_PET_ID) return null;
const custom = pet.custom;
if (!custom?.imageUrl || custom.atlas) return null;
const name = custom.name?.trim();
if (!name) return null;
let registry;
try {
registry = await fetchCodexPets();
} catch {
return null;
}
if (!registry?.pets?.length) return null;
const needle = name.toLowerCase();
const match = registry.pets.find(
(p) =>
(p.displayName?.trim().toLowerCase() ?? '') === needle ||
p.id.trim().toLowerCase() === needle,
);
if (!match) return null;
try {
const resp = await fetch(codexPetSpritesheetUrl(match));
if (!resp.ok) return null;
const blob = await resp.blob();
const dataUrl = await blobToDataUrl(blob);
const prepared = await prepareCodexAtlas(dataUrl);
return {
...custom,
imageUrl: prepared.dataUrl,
frames: 1,
fps: prepared.layout.rowsDef[0]?.fps ?? custom.fps ?? 6,
atlas: prepared.layout,
};
} catch {
return null;
}
}
function blobToDataUrl(blob: Blob): Promise<string> {
return new Promise((resolve, reject) => {
const reader = new FileReader();
reader.onerror = () => reject(reader.error ?? new Error('Read failed'));
reader.onload = () => {
const result = reader.result;
if (typeof result !== 'string') {
reject(new Error('Could not read sprite blob.'));
return;
}
resolve(result);
};
reader.readAsDataURL(blob);
});
}
+204
View File
@@ -0,0 +1,204 @@
export const MANUAL_EDIT_DISCOVERY_SELECTOR = 'main, nav, section, article, header, footer, div, h1, h2, h3, p, a, button, img, strong, span';
export const MANUAL_EDIT_SOURCE_PATH_ATTR = 'data-od-source-path';
export const MANUAL_EDIT_HOST_NODE_SELECTOR = [
'[data-od-sandbox-shim]',
'[data-od-deck-bridge]',
'[data-od-comment-bridge]',
'[data-od-edit-bridge]',
'[data-od-comment-bridge-style]',
'[data-od-edit-bridge-style]',
'[data-od-deck-fix]',
].join(',');
export function manualEditDomPathForElement(el: Element): string {
const parts: number[] = [];
let node: Element | null = el;
while (node && node !== node.ownerDocument.body) {
const parentEl: Element | null = node.parentElement;
if (!parentEl) break;
const children = Array.from(parentEl.children).filter((child) => !isManualEditHostNode(child));
parts.unshift(children.indexOf(node));
node = parentEl;
}
return parts.length ? `path-${parts.join('-')}` : '';
}
export function isManualEditHostNode(el: Element): boolean {
return el.matches(MANUAL_EDIT_HOST_NODE_SELECTOR);
}
export function manualEditStableIdForElement(el: Element): string {
const explicit = el.getAttribute('data-od-id');
if (explicit) return explicit;
const generated = el.getAttribute(MANUAL_EDIT_SOURCE_PATH_ATTR) || el.getAttribute('data-od-runtime-id') || manualEditDomPathForElement(el);
if (generated) el.setAttribute('data-od-runtime-id', generated);
return generated || 'unknown';
}
export function isMeaningfulManualEditElement(el: Element, rect: Pick<DOMRect, 'width' | 'height'>): boolean {
return isSourceMappableManualEditElement(el) && el.matches(MANUAL_EDIT_DISCOVERY_SELECTOR) && rect.width >= 4 && rect.height >= 4;
}
export function isSourceMappableManualEditElement(el: Element): boolean {
return el.hasAttribute('data-od-id') || el.hasAttribute(MANUAL_EDIT_SOURCE_PATH_ATTR);
}
export function buildManualEditBridge(enabled: boolean): string {
return `<script data-od-edit-bridge>(function(){
var enabled = ${JSON.stringify(enabled)};
var discoverySelector = ${JSON.stringify(MANUAL_EDIT_DISCOVERY_SELECTOR)};
var hostNodeSelector = ${JSON.stringify(MANUAL_EDIT_HOST_NODE_SELECTOR)};
var sourcePathAttr = ${JSON.stringify(MANUAL_EDIT_SOURCE_PATH_ATTR)};
var styleProps = ['color','backgroundColor','fontSize','fontWeight','textAlign','padding','margin','borderRadius','border','width','minHeight'];
function isHostNode(el){
return !!(el && el.matches && el.matches(hostNodeSelector));
}
function domPath(el){
var parts = [];
var node = el;
while (node && node !== document.body) {
var parent = node.parentElement;
if (!parent) break;
var children = Array.prototype.slice.call(parent.children).filter(function(child){ return !isHostNode(child); });
parts.unshift(children.indexOf(node));
node = parent;
}
return parts.length ? 'path-' + parts.join('-') : '';
}
function stableId(el){
var explicit = el.getAttribute('data-od-id');
if (explicit) return explicit;
var generated = el.getAttribute(sourcePathAttr) || el.getAttribute('data-od-runtime-id') || domPath(el);
if (generated) el.setAttribute('data-od-runtime-id', generated);
return generated || 'unknown';
}
function isSourceMappable(el){
return !!(el && el.hasAttribute && (el.hasAttribute('data-od-id') || el.hasAttribute(sourcePathAttr)));
}
function isDiscoveryTarget(el){
return !!(el && el.matches && el.matches(discoverySelector));
}
function isPrimaryTarget(el){
if (!el || !el.hasAttribute) return false;
if (el.hasAttribute('data-od-id') || el.hasAttribute('data-od-edit')) return true;
var tag = el.tagName ? el.tagName.toLowerCase() : '';
return tag === 'a' || tag === 'button';
}
function inferKind(el){
var explicit = el.getAttribute('data-od-edit');
if (explicit) return explicit;
var tag = el.tagName ? el.tagName.toLowerCase() : '';
if (tag === 'a') return 'link';
if (tag === 'img') return 'image';
if (['section','main','nav','div','article','header','footer'].indexOf(tag) >= 0) return 'container';
return 'text';
}
function labelFor(el, id, kind){
var explicit = el.getAttribute('data-od-label');
if (explicit) return explicit;
var tag = el.tagName ? el.tagName.toLowerCase() : 'element';
var text = (el.textContent || '').replace(/\\s+/g, ' ').trim();
if (text) return text.slice(0, 42);
if (kind === 'image') return el.getAttribute('alt') || id;
return tag + ' #' + id;
}
function attrsFor(el){
var attrs = {};
for (var i = 0; i < el.attributes.length; i++) {
var attr = el.attributes[i];
if (!attr || attr.name.indexOf('data-od-runtime') === 0) continue;
attrs[attr.name] = attr.value;
}
return attrs;
}
function stylesFor(el){
var computed = window.getComputedStyle(el);
var styles = {};
styleProps.forEach(function(prop){ styles[prop] = el.style[prop] || computed[prop] || ''; });
return styles;
}
function targetFrom(el, includeOuterHtml){
var rect = el.getBoundingClientRect();
var kind = inferKind(el);
var id = stableId(el);
var fields = {};
if (kind === 'link') {
fields.text = (el.textContent || '').trim();
fields.href = el.getAttribute('href') || '';
} else if (kind === 'image') {
fields.src = el.getAttribute('src') || '';
fields.alt = el.getAttribute('alt') || '';
} else {
fields.text = (el.textContent || '').trim();
}
return {
id: id,
kind: kind,
label: labelFor(el, id, kind),
tagName: el.tagName ? el.tagName.toLowerCase() : 'element',
className: typeof el.className === 'string' ? el.className : '',
text: (el.textContent || '').replace(/\\s+/g, ' ').trim().slice(0, 180),
rect: { x: Math.round(rect.x), y: Math.round(rect.y), width: Math.round(rect.width), height: Math.round(rect.height) },
fields: fields,
attributes: attrsFor(el),
styles: stylesFor(el),
outerHtml: includeOuterHtml ? (el.outerHTML || '').replace(/\\sdata-od-runtime-id="[^"]*"/g, '').replace(/\\sdata-od-source-path="[^"]*"/g, '') : ''
};
}
function allTargets(){
var nodes = document.body ? document.body.querySelectorAll(discoverySelector) : [];
var targets = [];
for (var i = 0; i < nodes.length; i++) {
var rect = nodes[i].getBoundingClientRect();
if (rect.width < 4 || rect.height < 4) continue;
if (!isSourceMappable(nodes[i])) continue;
targets.push(targetFrom(nodes[i], false));
}
return targets;
}
function postTargets(){
if (!enabled) return;
window.parent.postMessage({ type: 'od-edit-targets', targets: allTargets() }, '*');
}
function closestTarget(event){
var el = event.target;
var fallback = null;
while (el && el !== document.documentElement) {
if (el !== document.body && el !== document.documentElement && isSourceMappable(el) && isDiscoveryTarget(el)) {
if (isPrimaryTarget(el)) return el;
if (!fallback) fallback = el;
}
el = el.parentElement;
}
return fallback;
}
window.addEventListener('message', function(ev){
if (!ev.data || ev.data.type !== 'od-edit-mode') return;
enabled = !!ev.data.enabled;
document.documentElement.toggleAttribute('data-od-edit-mode', enabled);
if (enabled) setTimeout(postTargets, 0);
});
document.addEventListener('click', function(ev){
if (!enabled) return;
var el = closestTarget(ev);
if (!el) return;
ev.preventDefault();
ev.stopPropagation();
window.parent.postMessage({ type: 'od-edit-select', target: targetFrom(el, true) }, '*');
}, true);
window.addEventListener('resize', postTargets);
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', postTargets);
else setTimeout(postTargets, 0);
document.documentElement.toggleAttribute('data-od-edit-mode', enabled);
})();</script>`;
}
export function buildManualEditBridgeStyle(): string {
return `<style data-od-edit-bridge-style>
html[data-od-edit-mode] body * { cursor: pointer !important; }
html[data-od-edit-mode] [data-od-id],
html[data-od-edit-mode] [data-od-runtime-id] { outline: 1px dashed rgba(37, 99, 235, 0.35); outline-offset: 3px; }
html[data-od-edit-mode] [data-od-id]:hover,
html[data-od-edit-mode] [data-od-runtime-id]:hover { outline: 2px solid #2563eb; }
</style>`;
}
+242
View File
@@ -0,0 +1,242 @@
import { emptyManualEditStyles, type ManualEditFields, type ManualEditPatch, type ManualEditStyles } from './types';
export interface ManualEditPatchResult {
ok: boolean;
source: string;
error?: string;
}
export function applyManualEditPatch(source: string, patch: ManualEditPatch): ManualEditPatchResult {
if (patch.kind === 'set-full-source') return { ok: true, source: patch.source };
const doc = parseSource(source);
if (!doc) return { ok: false, source, error: 'Could not parse source.' };
if (patch.kind === 'set-token') {
const changed = setCssToken(doc, patch.token, patch.value);
return changed
? { ok: true, source: serializeSource(doc, source) }
: { ok: false, source, error: `Token not found: ${patch.token}` };
}
const el = findEditableElement(doc, patch.id);
if (!el) return { ok: false, source, error: `Target not found: ${patch.id}` };
if (patch.kind === 'set-text') {
if (hasElementChildren(el)) {
return { ok: false, source, error: 'This element contains nested markup. Use the HTML tab instead.' };
}
el.textContent = patch.value;
} else if (patch.kind === 'set-link') {
if (hasElementChildren(el)) {
const currentText = el.textContent?.trim() ?? '';
if (patch.text.trim() !== currentText) {
return { ok: false, source, error: 'This link contains nested markup. Use the HTML tab to change its label.' };
}
} else {
el.textContent = patch.text;
}
el.setAttribute('href', patch.href);
} else if (patch.kind === 'set-image') {
el.setAttribute('src', patch.src);
el.setAttribute('alt', patch.alt);
} else if (patch.kind === 'set-style') {
setInlineStyles(el as HTMLElement, patch.styles);
} else if (patch.kind === 'set-attributes') {
setAttributes(el, patch.attributes);
} else if (patch.kind === 'set-outer-html') {
const replaced = replaceOuterHtml(doc, el, patch.html);
if (!replaced.ok) return { ok: false, source, error: replaced.error };
}
return { ok: true, source: serializeSource(doc, source) };
}
export function readManualEditFields(source: string, id: string): ManualEditFields {
const doc = parseSource(source);
const el = doc ? findEditableElement(doc, id) : null;
if (!el) return {};
const kind = inferKind(el);
if (kind === 'link') {
return {
text: el.textContent?.trim() ?? '',
href: el.getAttribute('href') ?? '',
};
}
if (kind === 'image') {
return {
src: el.getAttribute('src') ?? '',
alt: el.getAttribute('alt') ?? '',
};
}
return { text: el.textContent?.trim() ?? '' };
}
export function readManualEditStyles(source: string, id: string): ManualEditStyles {
const doc = parseSource(source);
const el = doc ? findEditableElement(doc, id) : null;
if (!el) return emptyManualEditStyles();
const style = (el as HTMLElement).style;
return {
color: style.color,
backgroundColor: style.backgroundColor,
fontSize: style.fontSize,
fontWeight: style.fontWeight,
textAlign: style.textAlign,
padding: style.padding,
margin: style.margin,
borderRadius: style.borderRadius,
border: style.border,
width: style.width,
minHeight: style.minHeight,
};
}
export function readManualEditAttributes(source: string, id: string): Record<string, string> {
const doc = parseSource(source);
const el = doc ? findEditableElement(doc, id) : null;
if (!el) return {};
const attrs: Record<string, string> = {};
Array.from(el.attributes).forEach((attr) => {
if (attr.name === 'data-od-runtime-id') return;
attrs[attr.name] = attr.value;
});
return attrs;
}
export function readManualEditOuterHtml(source: string, id: string): string {
const doc = parseSource(source);
return (doc ? findEditableElement(doc, id)?.outerHTML : '') ?? '';
}
function parseSource(source: string): Document | null {
if (typeof DOMParser !== 'undefined') {
return new DOMParser().parseFromString(source, 'text/html');
}
if (typeof document !== 'undefined') {
const doc = document.implementation.createHTMLDocument('');
doc.documentElement.innerHTML = source;
return doc;
}
return null;
}
function serializeSource(doc: Document, originalSource: string): string {
if (!isFullHtmlDocument(originalSource)) return doc.body.innerHTML;
return `<!doctype html>\n${doc.documentElement.outerHTML}`;
}
function isFullHtmlDocument(source: string): boolean {
const normalized = firstSourceToken(source).slice(0, 32).toLowerCase();
return normalized.startsWith('<!doctype') || normalized.startsWith('<html');
}
function firstSourceToken(source: string): string {
let rest = source.trimStart();
while (rest.startsWith('<!--') || rest.startsWith('<?')) {
const close = rest.startsWith('<!--') ? '-->' : '?>';
const end = rest.indexOf(close);
if (end === -1) return rest;
rest = rest.slice(end + close.length).trimStart();
}
return rest;
}
function inferKind(el: Element): 'text' | 'link' | 'image' | 'container' {
const explicit = el.getAttribute('data-od-edit');
if (explicit === 'text' || explicit === 'link' || explicit === 'image' || explicit === 'container') return explicit;
const tag = el.tagName.toLowerCase();
if (tag === 'a') return 'link';
if (tag === 'img') return 'image';
if (['section', 'main', 'nav', 'div', 'article', 'header', 'footer'].includes(tag)) return 'container';
return 'text';
}
function findEditableElement(doc: Document, id: string): Element | null {
return (
doc.querySelector(`[data-od-id="${cssEscape(id)}"]`) ??
doc.querySelector(`[data-od-runtime-id="${cssEscape(id)}"]`) ??
findElementByPath(doc, id)
);
}
function findElementByPath(doc: Document, id: string): Element | null {
if (!id.startsWith('path-')) return null;
const indexes = id
.slice('path-'.length)
.split('-')
.map((part) => Number(part));
if (indexes.some((index) => !Number.isInteger(index) || index < 0)) return null;
let current: Element | null = doc.body;
for (const index of indexes) {
current = current?.children.item(index) ?? null;
if (!current) return null;
}
return current;
}
function hasElementChildren(el: Element): boolean {
return Array.from(el.children).some((child) => child.nodeType === 1);
}
function setInlineStyles(el: HTMLElement, styles: Partial<ManualEditStyles>): void {
for (const [name, value] of Object.entries(styles)) {
const cssName = camelToKebab(name);
if (typeof value !== 'string' || value.trim() === '') el.style.removeProperty(cssName);
else el.style.setProperty(cssName, value.trim());
}
}
function setAttributes(el: Element, attributes: Record<string, string>): void {
const protectedAttrs = new Set(['data-od-id', 'data-od-edit', 'data-od-label', 'data-od-runtime-id']);
for (const [name, value] of Object.entries(attributes)) {
if (!isSafeAttributeName(name) || protectedAttrs.has(name)) continue;
if (value.trim() === '') el.removeAttribute(name);
else el.setAttribute(name, value);
}
}
function replaceOuterHtml(doc: Document, el: Element, html: string): { ok: true } | { ok: false; error: string } {
const template = doc.createElement('template');
template.innerHTML = html.trim();
const elements = Array.from(template.content.children);
if (elements.length !== 1) return { ok: false, error: 'Replacement HTML must contain exactly one root element.' };
const next = elements[0]!;
if (el.getAttribute('data-od-id') && !next.getAttribute('data-od-id')) {
next.setAttribute('data-od-id', el.getAttribute('data-od-id') ?? '');
}
if (el.getAttribute('data-od-edit') && !next.getAttribute('data-od-edit')) {
next.setAttribute('data-od-edit', el.getAttribute('data-od-edit') ?? '');
}
el.replaceWith(next);
return { ok: true };
}
function setCssToken(doc: Document, token: string, value: string): boolean {
const styles = Array.from(doc.querySelectorAll('style'));
const pattern = new RegExp(`(${escapeRegExp(token)}\\s*:\\s*)([^;]+)(;)`);
for (const style of styles) {
const text = style.textContent ?? '';
if (!pattern.test(text)) continue;
style.textContent = text.replace(pattern, `$1${value}$3`);
return true;
}
return false;
}
function cssEscape(value: string): string {
if (typeof CSS !== 'undefined' && CSS.escape) return CSS.escape(value);
return value.replace(/"/g, '\\"');
}
function escapeRegExp(value: string): string {
return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
}
function camelToKebab(value: string): string {
return value.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);
}
function isSafeAttributeName(value: string): boolean {
return /^[a-zA-Z_:][a-zA-Z0-9_:.-]*$/.test(value);
}
+90
View File
@@ -0,0 +1,90 @@
export type ManualEditKind = 'text' | 'link' | 'image' | 'container' | 'token';
export interface ManualEditRect {
x: number;
y: number;
width: number;
height: number;
}
export interface ManualEditFields {
text?: string;
href?: string;
src?: string;
alt?: string;
}
export interface ManualEditStyles {
color: string;
backgroundColor: string;
fontSize: string;
fontWeight: string;
textAlign: string;
padding: string;
margin: string;
borderRadius: string;
border: string;
width: string;
minHeight: string;
}
export interface ManualEditTarget {
id: string;
kind: ManualEditKind;
label: string;
tagName: string;
className: string;
text: string;
rect: ManualEditRect;
fields: ManualEditFields;
attributes: Record<string, string>;
styles: ManualEditStyles;
outerHtml: string;
}
export type ManualEditPatch =
| { id: string; kind: 'set-text'; value: string }
| { id: string; kind: 'set-link'; text: string; href: string }
| { id: string; kind: 'set-image'; src: string; alt: string }
| { kind: 'set-token'; token: string; value: string }
| { id: string; kind: 'set-style'; styles: Partial<ManualEditStyles> }
| { id: string; kind: 'set-attributes'; attributes: Record<string, string> }
| { id: string; kind: 'set-outer-html'; html: string }
| { kind: 'set-full-source'; source: string };
export interface ManualEditHistoryEntry {
id: string;
label: string;
patch: ManualEditPatch;
beforeSource: string;
afterSource: string;
createdAt: number;
}
export interface ManualEditTargetMessage {
type: 'od-edit-targets';
targets: ManualEditTarget[];
}
export interface ManualEditSelectMessage {
type: 'od-edit-select';
target: ManualEditTarget;
}
export type ManualEditBridgeMessage = ManualEditTargetMessage | ManualEditSelectMessage;
export function emptyManualEditStyles(): ManualEditStyles {
return {
color: '',
backgroundColor: '',
fontSize: '',
fontWeight: '',
textAlign: '',
padding: '',
margin: '',
borderRadius: '',
border: '',
width: '',
minHeight: '',
};
}
+961
View File
@@ -0,0 +1,961 @@
import type { PromptTemplateSummary } from '../types';
export const FR_SKILL_COPY: Record<string, { description?: string; examplePrompt?: string }> = {
'audio-jingle': {
examplePrompt:
'Un jingle indie-pop joyeux de 30 secondes pour le lancement d’un coffee shop — piano électrique chaleureux, batterie aux balais, basse douce et un seul chœur “ahhh” lumineux au refrain. Sans chant. Fin facile à boucler.',
description:
'Génération audio pour jingles, musiques de fond, voix off et effets sonores. Les demandes de musique partent vers Suno V5 / Udio / Lyria, la voix vers MiniMax TTS / FishAudio / ElevenLabs V3, et les SFX vers ElevenLabs SFX ou AudioCraft. La sortie est un fichier MP3/WAV dans le dossier projet.',
},
'blog-post': {
examplePrompt:
'Un article long-form / blog post — masthead, placeholder d’image hero, corps d’article avec figures et pull quotes, ligne auteur, articles associés.',
},
'critique': {
examplePrompt:
'Lancez une critique en 5 dimensions du deck magazine-web-ppt qui vient d’être généré — évaluez philosophie / hiérarchie / détail / fonction / innovation et sortez Keep / Fix / Quick wins.',
},
'dashboard': {
examplePrompt:
'Dashboard admin / analytics dans un seul fichier HTML.',
},
'dating-web': {
examplePrompt:
'Concevez “mutuals” — un site de dating pour créateurs sur X. Dashboard digest quotidien avec stats, bar chart des matchs mutuels et ticker communautaire.',
},
'design-brief': {},
'digital-eguide': {
examplePrompt:
'Concevez “The Creator’s Style & Format Guide” — page de couverture et page intérieure pour une marque lifestyle creator.',
},
'docs-page': {
examplePrompt:
'Une page de documentation — navigation à gauche, zone article scrollable, table des matières à droite.',
},
'open-design-landing': {
examplePrompt:
'Concevez la landing page marketing Open Design dans le style Atelier Zero / Monocle — canvas papier chaud, collage surréaliste plâtre + architecture, grande typographie display serif italique mixée, chiffres romains comme marqueurs de sections et un seul accent corail.',
},
'open-design-landing-deck': {
examplePrompt:
'Créez le pitch deck Open Design dans le style Atelier Zero — cover avec hero plate, séparateurs de section en chiffres romains, slide stats (31 Skills · 72 systèmes · 12 CLIs), citation client, CTA et end-card mega italic-serif. Pagination horizontal-swipe comme un magazine imprimé.',
description:
'Crée un slide deck single-file dans le style Atelier Zero (papier chaud, spans accent en serif italique, points finaux corail, plaques de collage surréalistes). Pagination magazine horizontale avec navigation par flèches et espace, HUD live avec compteur de slides et progress bar ; partage le stylesheet et la bibliothèque d’images à 16 slots avec le Skill frère `open-design-landing`.',
},
'email-marketing': {
examplePrompt:
'Concevez un email de lancement pour une marque de running shoes — masthead, hero, grand headline lockup, grille de specs, CTA.',
},
'eng-runbook': {
examplePrompt:
'Rédigez un runbook pour notre service d’auth — alertes, dashboards, procédures standard, rotation on-call.',
},
'finance-report': {
examplePrompt:
'Créez un rapport financier Q3 pour un SaaS early-stage — MRR, burn, marge brute, top accounts.',
},
'gamified-app': {
examplePrompt:
'Concevez une app gamifiée de life management — prototype mobile multi-screen : cover poster, quêtes du jour avec XP et détail de quête. “Daily quests for becoming a better human.”',
},
'magazine-web-ppt': {
examplePrompt:
'Créez-moi un PPT magazine sur “entreprises d’une personne · organisations pliées par l’IA”, talk de 25 minutes, audience designers + founders. Recommandez d’abord une direction (Monocle / WIRED / Kinfolk / Domus / Lab) pour que je choisisse.',
},
'hatch-pet': {
examplePrompt:
'Faites éclore un petit pixel-pet — un Shiba amical dans un pull confortable. Utilisez le Skill hatch-pet de bout en bout.',
description:
'Crée, répare, valide et empaquette une spritesheet de pet animé compatible Codex (atlas 8x9, cellules 192x208), avec contact sheet QA, vidéos preview et pet.json.',
},
'hr-onboarding': {
examplePrompt:
'Créez un plan d’onboarding 30 jours pour un nouveau Product Designer dans une startup de 40 personnes.',
},
'html-ppt': {},
'html-ppt-course-module': {},
'html-ppt-dir-key-nav-minimal': {},
'html-ppt-graphify-dark-graph': {},
'html-ppt-hermes-cyber-terminal': {},
'html-ppt-knowledge-arch-blueprint': {},
'html-ppt-obsidian-claude-gradient': {},
'html-ppt-pitch-deck': {},
'html-ppt-presenter-mode': {},
'html-ppt-product-launch': {},
'html-ppt-tech-sharing': {},
'html-ppt-testing-safety-alert': {},
'html-ppt-weekly-report': {},
'html-ppt-xhs-pastel-card': {},
'html-ppt-xhs-post': {},
'html-ppt-xhs-white-editorial': {},
'hyperframes': {
examplePrompt:
'Product reveal de 5 secondes : produit premium minimaliste sur une surface crème propre, lumière latérale douce, lent push-in caméra, mouvement retenu, aucun overlay texte.',
description:
'Crée des compositions vidéo, animations, title cards, overlays, sous-titres, voiceovers, visuels audio-réactifs et transitions de scènes en HTML HyperFrames.',
},
'image-poster': {
examplePrompt:
'Poster éditorial pour un festival de cinéma indie — silhouette abstraite forte sur papier chaud légèrement grainé ; titre sans-serif composé à la main en haut, dates et lieu du festival en monospace en bas. Palette ocre et encre atténuée.',
description:
'Génération d’image unique pour posters, key art et illustrations éditoriales. Le défaut est gpt-image-2, mais le workflow reste indépendant du fournisseur.',
},
'invoice': {
examplePrompt:
'Créez une facture d’un studio de design freelance pour un client sur un projet d’identité de marque — trois lignes, acompte de 10 %, TVA de 9 %.',
},
'kami-deck': {
examplePrompt:
'Créez un deck de conférence en six slides dans le style kami (紙) — parchemin chaud, encre bleue sur la cover, une seule graisse de serif, swipe magazine horizontal.',
description:
'Génère un slide deck prêt à imprimer dans le design system kami : parchemin chaud (ou encre bleue sur cover et chapitres), serif dans une seule graisse, accent encre bleue ≤5 % par slide, sans italique. Pagination magazine horizontale (←/→ · molette · swipe · ESC pour la vue d’ensemble). Un seul fichier HTML autonome, uniquement Google Fonts.',
},
'kami-landing': {
examplePrompt:
'Concevez un one-pager studio dans le style kami — canvas parchemin, accent encre bleue, éditorial comme un whitepaper.',
description:
'Génère un one-pager prêt à imprimer dans le style kami (紙) : parchemin chaud, accent encre bleue, serif dans une seule graisse, sans italique, sans gris froids. Se lit comme un whitepaper ou un one-pager studio, pas comme une UI d’app. Multilingue (EN · zh-CN · ja). Un seul fichier HTML sans dépendances.',
},
'kanban-board': {
examplePrompt:
'Créez un Kanban board pour une équipe growth de 5 personnes en plein sprint — Backlog, Doing, Review, Done.',
},
'live-artifact': {
examplePrompt:
'Créez un artefact live interactif avec des cartes de statut, un tableau de données et un panneau de détail qui réagit aux changements de sélection.',
},
'magazine-poster': {
examplePrompt:
'Concevez un poster éditorial style magazine — “You don’t need a designer to ship your first draft anymore.” Papier journal, six sections numérotées.',
},
'meeting-notes': {
examplePrompt:
'Rédigez les notes d’un weekly growth de 60 minutes — agenda, décisions, action items avec owners, prochaine réunion.',
},
'mobile-app': {
examplePrompt:
'Un écran d’app mobile, rendu dans un frame iPhone 15 Pro pixel-perfect sur la page.',
},
'mobile-onboarding': {
examplePrompt:
'Concevez un flow mobile onboarding en 3 écrans pour une app de méditation — welcome, value props, sign-in.',
},
'motion-frames': {
examplePrompt:
'Concevez un hero animé — un type ring rotatif autour d’un globe wireframe, avec le headline “Reach every country.” Boucle à 12s, prêt pour export HyperFrames.',
},
'pm-spec': {
examplePrompt:
'Rédigez une PRD pour l’authentification à deux facteurs dans notre app SaaS — problème, scope, milestones, questions ouvertes.',
},
'pptx-html-fidelity-audit': {
examplePrompt:
'Comparez deck.pptx à deck.html, listez les dérives de layout (overflow de footer, italique manquante, hero non centré) et réexportez avec Footer Rail + Cursor Flow.',
},
'pricing-page': {
examplePrompt:
'Une pricing page autonome — header, niveaux de plans, table de comparaison des features et FAQ.',
},
'replit-deck': {
examplePrompt:
'Deck HTML single-file à swipe horizontal dans le style de la galerie de templates Replit Slides.',
},
'saas-landing': {
examplePrompt:
'Landing page SaaS one-page avec hero, features, social proof, pricing et CTA.',
},
'simple-deck': {
examplePrompt:
'Deck HTML single-file à swipe horizontal.',
},
'social-carousel': {
examplePrompt:
'Concevez un social carousel cinématique de 3 cartes — “onwards.”, “to the next one.”, “looking ahead.” Carrés 1080×1080, prêts pour Instagram.',
},
'sprite-animation': {
examplePrompt:
'Créez une animation à base de sprites avec des anecdotes sur l’histoire de Nintendo. Combinez mascot pixel, texte animé et accent Hanafuda. Couleur et typographie doivent évoquer la marque Nintendo.',
},
'team-okrs': {
examplePrompt:
'Créez un OKR tracker pour Q4 — trois Objectives, trois Key Results chacun, progress bars, owners, status pills.',
},
'tweaks': {
examplePrompt:
'Ajoutez à cette landing page un Tweak Panel — Accent Color, Type Scale, Density, Light/Dark — et persistez dans localStorage pour conserver le choix après refresh.',
},
'video-shortform': {
examplePrompt:
'Product reveal de 5 secondes — une tasse en céramique tourne sur fond papier doux, lumière chaude latérale depuis la gauche, fines particules de poussière dans le rayon. Cinématique, 16:9, lent drift caméra.',
description:
'Génération vidéo short-form pour clips de 3 à 10 secondes : product reveals, motion teasers et ambient loops.',
},
'web-prototype': {
examplePrompt:
'Prototype polyvalent pour desktop web.',
},
'weekly-update': {
examplePrompt:
'Créez un deck weekly update pour l’équipe growth — terminé, en cours, blockers, metrics et questions pour la semaine prochaine.',
},
'wireframe-sketch': {
examplePrompt:
'Esquissez un wireframe dessiné à la main v0.1 pour un portail — quatre variantes sous forme de tabs sur papier millimétré, headlines au marqueur, annotations sticky-note, placeholders de charts hachurés.',
},
};
export const FR_DESIGN_SYSTEM_SUMMARIES: Record<string, string> = {
airbnb: 'Marketplace de voyage. Accent corail chaleureux, fortement porté par la photo, UI arrondie.',
airtable: 'Hybride spreadsheet / base de données. Coloré, accessible, esthétique de données structurées.',
apple: 'Électronique grand public. Espace blanc premium, SF Pro, imagerie cinématique.',
'atelier-zero':
'Système de studio éditorial. Canvas papier chaud, collage surréaliste plâtre + architecture, typographie display serif italique mixée, chiffres romains comme marqueurs de sections et un seul accent corail — fait pour landing pages magazine, sites de studio et pages manifeste.',
binance: 'Exchange crypto. Accent jaune fort sur monochrome, urgence trading-floor.',
bmw: 'Automobile de luxe. Surfaces dark premium, esthétique d’engineering allemand précis.',
bugatti: 'Marque hypercar. Toile cinématique sombre, rigueur monochrome, typographie display monumentale.',
cal: 'Scheduling open-source. UI neutre propre, simplicité orientée développeur.',
claude: 'Assistant IA d’Anthropic. Accent terracotta chaud, layout éditorial clair.',
clay: 'Agence créative. Formes organiques, gradients doux, mise en page très éditoriale et dirigée.',
clickhouse: 'Base analytics rapide. Style documentation technique avec accent jaune.',
cohere: 'Plateforme IA enterprise. Gradients vivants, esthétique dashboard riche en données.',
coinbase: 'Exchange crypto. Identité bleue claire, confiance, sensation institutionnelle.',
composio: 'Plateforme d’intégrations d’outils. Dark moderne avec icônes d’intégration colorées.',
cursor: 'Éditeur de code AI-first. Interface dark fine, accents en gradient.',
default:
'Défaut propre et orienté produit. À utiliser quand le brief ne demande pas d’ambiance précise — bon pour outils B2B, dashboards et pages utility.',
elevenlabs: 'Plateforme IA voice. UI sombre cinématique, esthétique waveform audio.',
expo: 'Plateforme React Native. Thème sombre, tracking serré, centré code.',
ferrari: 'Automobile de luxe. Éditorial chiaroscuro, accents Ferrari Red, noir cinématique.',
figma: 'Outil de design collaboratif. Multicolore vif, joueur et professionnel.',
framer: 'Website builder. Noir et bleu audacieux, motion-first, orienté design.',
hashicorp: 'Automatisation d’infrastructure. Look enterprise propre, noir et blanc.',
ibm: 'Technologie enterprise. Carbon Design System, palette bleue structurée.',
intercom: 'Customer messaging. Palette bleue amicale, patterns UI conversationnels.',
kami:
'Système papier éditorial. Canvas papier chaud, accent bleu encre, serif à une seule graisse — fait pour CV, one-pagers, white papers, portfolios et slide decks.',
kraken: 'Trading crypto. UI sombre avec accent violet, dashboards riches en données.',
lamborghini: 'Marque supercar. Surfaces noir profond, accents or, typographie uppercase dramatique.',
'linear-app': 'Project management. Ultraminimal, précis, accent violet.',
lovable: 'Builder full-stack IA. Gradients ludiques, esthétique dev amicale.',
mastercard: 'Réseau global de paiement. Canvas papier chaud, formes pill orbitales, chaleur éditoriale.',
meta: 'Tech retail store. Centré photographie, surfaces clair/dark binaires, CTA Meta Blue.',
minimax: 'Fournisseur de modèles IA. Interface dark audacieuse avec accents néon.',
mintlify: 'Plateforme de documentation. Propre, accent vert, optimisée pour la lecture.',
miro: 'Collaboration visuelle. Accent jaune lumineux, esthétique infinite canvas.',
'mistral-ai': 'Fournisseur LLM open-weight. Minimalisme construit à la française, teinté violet.',
mongodb: 'Base documentaire. Branding feuille verte, centré sur la documentation développeur.',
nike: 'Retail sport. UI monochrome, uppercase massive, photographie full-bleed.',
notion: 'Workspace all-in-one. Minimalisme chaud, headings serif, surfaces douces.',
nvidia: 'GPU computing. Énergie vert-noir, esthétique de puissance technique.',
ollama: 'Exécuter des LLMs localement. Terminal-first, simplicité monochrome.',
'opencode-ai': 'Plateforme IA coding. Thème dark centré développeur.',
pinterest: 'Découverte visuelle. Accent rouge, masonry grid, focus image.',
playstation:
'Retail console gaming. Layout à trois surfaces, autorité calme en typographie display, hover scale cyan.',
posthog: 'Product analytics. Branding ludique, UI dark developer-friendly.',
raycast: 'Launcher de productivité. Chrome dark élégant, accents gradient vifs.',
renault: 'Automobile française. Gradients aurora vivants, typographie NouvelR, énergie forte.',
replicate: 'Exécuter des modèles ML par API. Canvas blanc propre, orienté code.',
resend: 'API email. Thème dark minimaliste, accents monospace.',
revolut: 'Banque digitale. Interface dark fine, cartes gradient, précision fintech.',
runwayml: 'Génération vidéo IA. UI dark cinématique, layout riche en médias.',
sanity: 'Headless CMS. Accent rouge, layout éditorial content-first.',
sentry: 'Monitoring d’erreurs. Dashboard dark, riche en données, accent rose-violet.',
shopify: 'Plateforme e-commerce. Dark-first et cinématique, accent vert néon, type ultralégère.',
spacex: 'Technologie spatiale. Noir et blanc stricts, imagerie full-bleed, futuriste.',
spotify: 'Streaming musical. Vert vivant sur dark, type forte, piloté par album art.',
starbucks:
'Marque café retail globale. Système vert à quatre niveaux, canvas papier chaud, boutons full-pill.',
stripe: 'Infrastructure paiement. Gradients violets signature, élégance en weight 300.',
supabase: 'Alternative Firebase open-source. Thème dark émeraude, code-first.',
superhuman: 'Client email rapide. UI dark premium, keyboard-first, glow violet.',
tesla: 'Automobile électrique. Réduction radicale, photographie full-viewport, presque aucune UI.',
theverge:
'Média tech éditorial. Accents acid mint et ultraviolet, display Manuka, story tiles façon rave flyer.',
'together-ai': 'Infrastructure IA open-source. Technique, design proche blueprint.',
uber: 'Plateforme de mobilité. Noir et blanc francs, type serrée, énergie urbaine.',
vercel: 'Déploiement frontend. Précision noir et blanc, Geist Font.',
vodafone: 'Marque télécom globale. Typographie display uppercase monumentale, bandes Vodafone Red.',
voltagent: 'Framework d’agents IA. Fond noir profond, accent émeraude, pensé comme un terminal natif.',
'warm-editorial':
'Esthétique magazine portée par la serif. Accent terracotta sur papier off-white chaud — bon pour long-form, éditorial et pages marketing portées par la marque.',
warp: 'Terminal moderne. Interface dark type IDE, command UI en blocs.',
webflow: 'Visual web builder. Accent bleu, esthétique marketing-site polie.',
wired: 'Magazine tech. Densité broadsheet sur blanc papier, custom serif display, kicker mono, liens bleu encre.',
wise: 'Transfert d’argent. Accent vert lumineux, amical et clair.',
'x-ai': 'Lab IA d’Elon Musk. Look monochrome strict, minimalisme futuriste.',
xiaohongshu: 'Plateforme social lifestyle UGC. Rouge de marque singulier, radius généreux, content-first.',
zapier: 'Plateforme d’automatisation. Orange chaud, amical, porté par l’illustration.',
};
export const FR_DESIGN_SYSTEM_CATEGORIES: Record<string, string> = {
Starter: 'Starter',
'AI & LLM': 'AI & LLM',
'Bold & Expressive': 'Audacieux & expressif',
'Creative & Artistic': 'Créatif & artistique',
'Developer Tools': 'Developer Tools',
'Layout & Structure': 'Layout & structure',
'Modern & Minimal': 'Moderne & minimal',
'Morphism & Effects': 'Morphism & effets',
'Productivity & SaaS': 'Productivité & SaaS',
'Professional & Corporate': 'Professionnel & corporate',
'Backend & Data': 'Backend & data',
'Design & Creative': 'Design & créativité',
'Fintech & Crypto': 'Fintech & crypto',
'E-Commerce & Retail': 'E-commerce & retail',
'Media & Consumer': 'Médias & grand public',
Automotive: 'Automobile',
'Editorial & Print': 'Éditorial & print',
'Editorial · Studio': 'Éditorial · Studio',
'Retro & Nostalgic': 'Rétro & nostalgique',
'Themed & Unique': 'Thématique & unique',
Uncategorized: 'Non catégorisé',
};
export const FR_SKILL_IDS_WITH_EN_FALLBACK = [
'html-ppt-taste-brutalist',
'html-ppt-taste-editorial',
'orbit-general',
'orbit-github',
'orbit-gmail',
'orbit-linear',
'orbit-notion',
'social-media-dashboard',
'web-prototype-taste-brutalist',
'web-prototype-taste-editorial',
'web-prototype-taste-soft',
] as const;
export const FR_DESIGN_SYSTEM_IDS_WITH_EN_FALLBACK = [
'agentic',
'ant',
'application',
'arc',
'artistic',
'bento',
'bold',
'brutalism',
'cafe',
'canva',
'claymorphism',
'clean',
'colorful',
'contemporary',
'corporate',
'cosmic',
'creative',
'dashboard',
'discord',
'dithered',
'doodle',
'dramatic',
'duolingo',
'editorial',
'elegant',
'energetic',
'enterprise',
'expressive',
'fantasy',
'flat',
'friendly',
'futuristic',
'github',
'glassmorphism',
'gradient',
'huggingface',
'levels',
'lingo',
'luxury',
'material',
'minimal',
'modern',
'mono',
'neobrutalism',
'neon',
'neumorphism',
'openai',
'pacman',
'paper',
'perspective',
'premium',
'professional',
'publication',
'refined',
'retro',
'shadcn',
'simple',
'skeumorphism',
'sleek',
'spacious',
'storytelling',
'totality-festival',
'tetris',
'vibrant',
'vintage',
] as const;
export const FR_PROMPT_TEMPLATE_CATEGORIES: Record<string, string> = {
Infographic: 'Infographie',
'Anime / Manga': 'Anime / manga',
'App / Web Design': 'App / web design',
'Game UI': 'Game UI',
Illustration: 'Illustration',
'Profile / Avatar': 'Profil / avatar',
'Social Media Post': 'Post réseaux sociaux',
General: 'Général',
Advertising: 'Publicité',
'Motion Graphics': 'Motion graphics',
Cinematic: 'Cinématique',
'VFX / Fantasy': 'VFX / fantasy',
Anime: 'Anime',
'Social / Meme': 'Social / meme',
Branding: 'Branding',
Data: 'Data',
Marketing: 'Marketing',
Product: 'Produit',
'Short Form': 'Short form',
Travel: 'Voyage',
};
export const FR_PROMPT_TEMPLATE_IDS_WITH_EN_FALLBACK = [] as const;
export const FR_PROMPT_TEMPLATE_TAGS: Record<string, string> = {
'3d': '3D',
'3d-render': 'rendu 3D',
action: 'action',
'ancient-china': 'Chine ancienne',
anime: 'anime',
'app-showcase': 'app showcase',
archery: 'tir à l’arc',
arpg: 'ARPG',
'audio-reactive': 'audio-réactif',
'boss-fight': 'boss fight',
brand: 'brand',
branding: 'branding',
captions: 'sous-titres',
cavalry: 'cavalerie',
chart: 'chart',
childlike: 'enfantin',
choreography: 'chorégraphie',
cinematic: 'cinématique',
'cinematic-romance': 'romance cinématique',
combat: 'combat',
combo: 'combo',
'companion-to-image': 'companion to image',
counter: 'counter',
crayon: 'crayon',
cyberpunk: 'cyberpunk',
dance: 'danse',
'data-viz': 'data-viz',
editorial: 'éditorial',
'elden-ring': 'Elden Ring',
endcard: 'end card',
escort: 'escort',
'escort-mission': 'mission d’escorte',
fantasy: 'fantasy',
fashion: 'mode',
'fighting-game': 'jeu de combat',
food: 'food',
'game-cinematic': 'cinématique jeu',
'game-ui': 'game UI',
'grid-sheet': 'grid sheet',
guanyu: 'Guanyu',
'hand-drawn': 'dessiné à la main',
hud: 'HUD',
'hud-safe': 'HUD-safe',
hype: 'hype',
hyperframes: 'HyperFrames',
idol: 'idol',
illustration: 'illustration',
'image-to-image': 'image-to-image',
infographic: 'infographie',
japanese: 'japonais',
karaoke: 'karaoké',
'key-visual': 'key visual',
'kinetic-typography': 'typographie cinétique',
'linear-style': 'style Linear',
logo: 'logo',
lyubu: 'Lyu Bu',
map: 'carte',
marketing: 'marketing',
minimal: 'minimal',
mmo: 'MMO',
mobile: 'mobile',
money: 'argent',
'mounted-combat': 'combat monté',
nature: 'nature',
'open-world': 'open world',
'otaku-dance': 'danse otaku',
outro: 'outro',
overlay: 'overlay',
pipeline: 'pipeline',
'pose-reference': 'référence de pose',
portrait: 'portrait',
product: 'produit',
'product-promo': 'promo produit',
rework: 'rework',
route: 'itinéraire',
saas: 'SaaS',
sequence: 'séquence',
sizzle: 'sizzle',
social: 'social',
storyboard: 'storyboard',
'street-fighter': 'Street Fighter',
'style-transfer': 'style transfer',
tekken: 'Tekken',
'three-kingdoms': 'Trois Royaumes',
tiktok: 'TikTok',
'title-card': 'title card',
transform: 'transformation',
travel: 'voyage',
tts: 'TTS',
typography: 'typographie',
'unreal-engine-5': 'Unreal Engine 5',
vertical: 'vertical',
'video-reference': 'référence vidéo',
'vs-screen': 'VS screen',
'website-to-video': 'website-to-video',
wuxia: 'wuxia',
zhaoyun: 'Zhaoyun',
};
export const FR_PROMPT_TEMPLATE_COPY: Record<string, Partial<Pick<PromptTemplateSummary, 'summary' | 'title'>>> = {
'3d-stone-staircase-evolution-infographic': {
title: 'Infographie 3D d’une évolution en escalier de pierre',
summary:
'Transforme une timeline d’évolution plate en infographie 3D réaliste en escalier de pierre, avec rendus détaillés d’organismes et panneaux latéraux structurés.',
},
'anime-martial-arts-battle-illustration': {
title: 'Illustration anime de combat d’arts martiaux',
summary:
'Génère une illustration anime dynamique et impactante de deux personnages féminins qui combattent dans un dojo traditionnel avec effets d’énergie élémentaire.',
},
'e-commerce-live-stream-ui-mockup': {
title: 'Mockup d’interface de livestream e-commerce',
summary:
'Génère une interface réaliste de livestream social media au-dessus d’un portrait, avec messages de chat personnalisables, popups de cadeaux et carte d’achat produit.',
},
'illustrated-city-food-map': {
title: 'Carte culinaire illustrée d’une ville',
summary:
'Génère une tourist map dessinée à la main en style aquarelle, avec spécialités locales numérotées, points d’intérêt et légende.',
},
'infographic-otaku-dance-choreography-breakdown-gokurakujodo-16-panels': {},
'momotaro-explainer-slide-in-hybrid-style': {
title: 'Slide explicative Momotaro en style hybride',
summary:
'Combine l’esthétique simple et chaleureuse des illustrations Irasutoya avec la densité d’information des slides administratives japonaises.',
},
'profile-avatar-anime-girl-to-cinematic-photo': {
title: 'Profil / avatar - Anime girl vers photo cinématique',
summary:
'Transforme une illustration de personnage en portrait réaliste vintage d’intérieur, avec tons chauds, tout en préservant tenue, pose et chat.',
},
'profile-avatar-casual-fashion-grid-photoshoot': {
title: 'Profil / avatar - Shooting photo mode casual en grille',
summary:
'Prompt JSON structuré pour un collage de 4 photos d’un shooting photo mode casual, avec paramètres détaillés pour la personne et la lumière.',
},
'profile-avatar-cinematic-south-asian-male-portrait-with-vultures': {
title: 'Profil / avatar - Portrait cinématique sud-asiatique avec vautours',
summary:
'Portrait cinématique détaillé d’un jeune homme sud-asiatique dans une scène dark fantasy, entouré de vautours et corbeaux.',
},
'profile-avatar-cyberpunk-anime-portrait-with-neon-face-text': {
title: 'Profil / avatar - Portrait anime cyberpunk avec texte néon sur le visage',
summary:
'Portrait anime stylé baigné de néon pour poster, social media art ou visuels de branding futuriste.',
},
'profile-avatar-elegant-fantasy-girl-in-violet-garden': {
title: 'Profil / avatar - Fantasy girl élégante dans un jardin violet',
summary:
'Génère un portrait anime fantasy poli d’une femme élégante, cheveux brillants coiffés, tenue violet-noir et jardin floral magique.',
},
'profile-avatar-ethereal-blue-haired-fantasy-portrait': {
title: 'Profil / avatar - Portrait fantasy éthéré aux cheveux bleus',
summary:
'Génère un portrait anime fantasy doux et lumineux pour key art vertical élégant ou illustration de personnage aux cheveux fluides.',
},
'profile-avatar-glamorous-woman-in-black-portrait': {
title: 'Profil / avatar - Portrait glamour d’une femme en noir',
summary:
'Génère un portrait luxe photoréaliste d’une femme élégante en tenue noire, idéal pour éditorial mode ou visuels beauté.',
},
'profile-avatar-hyper-realistic-selfie-texture-prompts': {
title: 'Profil / avatar - Prompts de texture selfie hyperréaliste',
summary:
'Snippets de prompt détaillés pour textures de peau réalistes et cadrage selfie smartphone authentique avec pores visibles et lumière naturelle.',
},
'profile-avatar-lavender-fantasy-mage-portrait': {
title: 'Profil / avatar - Portrait de mage fantasy lavande',
summary:
'Génère un portrait anime fantasy poli d’une princesse mage élégante avec cheveux blonds, fleurs violettes et vêtements cristallins.',
},
'profile-avatar-monochrome-studio-portrait': {
title: 'Profil / avatar - Portrait studio monochrome',
summary:
'Prompt de photographie commerciale haut de gamme pour portrait monochrome, arrière-plan fortement divisé et lumière studio dramatique.',
},
'profile-avatar-old-photo-restoration-to-dslr-portrait': {
title: 'Profil / avatar - Restauration d’ancienne photo vers portrait DSLR',
summary:
'Restaure une photo familiale vintage endommagée de quatre personnes en portrait réaliste propre, colorisé et haute résolution.',
},
'profile-avatar-poetic-woman-in-garden-portrait': {
title: 'Profil / avatar - Portrait poétique d’une femme au jardin',
summary:
'Génère un portrait éditorial réaliste d’une jeune femme lettrée dans un jardin ensoleillé, idéal pour lifestyle photography ou literary branding.',
},
'profile-avatar-professional-identity-portrait-wallpaper': {
title: 'Profil / avatar - Fond d’écran portrait d’identité professionnelle',
summary:
'Génère un fond d’écran premium haute résolution avec une personne en tenue professionnelle, activités métiers et typographie.',
},
'profile-avatar-realistically-imperfect-ai-selfie': {
title: 'Profil / avatar - Selfie IA réalistement imparfait',
summary:
'Prompt GPT-image-2 créatif pour un selfie “raté” qui ressemble à un instantané smartphone accidentel de basse qualité.',
},
'profile-avatar-signed-marker-portrait-on-shikishi': {
title: 'Profil / avatar - Portrait marker signé sur shikishi',
summary:
'Génère un portrait marker vivant et signé sur shikishi carré, pour fan art autographié et visuel de remerciement personnel.',
},
'profile-avatar-snow-rabbit-empress-portrait': {
title: 'Profil / avatar - Portrait d’impératrice lapin des neiges',
summary:
'Prompt de portrait fantasy réaliste d’une femme royale à motif lapin, en hanfu hivernal devant un temple de montagne enneigé.',
},
'profile-avatar-snow-rabbit-mask-hanfu-portrait': {
title: 'Profil / avatar - Portrait hanfu avec masque lapin des neiges',
summary:
'Génère un portrait fantasy hivernal cinématique d’une femme masquée en hanfu blanc à motif lapin, idéal pour character art élégant.',
},
'profile-avatar-snowy-rabbit-hanfu-portrait': {
title: 'Profil / avatar - Portrait hanfu lapin enneigé',
summary:
'Génère un portrait fantasy beauty ultradétaillé d’une femme aux oreilles de lapin en hanfu brodé, pour character art ou costume design.',
},
'profile-avatar-snowy-rabbit-spirit-portrait': {
title: 'Profil / avatar - Portrait d’esprit lapin enneigé',
summary:
'Génère un portrait fantasy calme d’une femme anonyme aux oreilles de lapin en hiver, idéal pour character art atmosphérique.',
},
'profile-avatar-song-dynasty-hanfu-portrait': {
title: 'Profil / avatar - Portrait hanfu de la dynastie Song',
summary:
'Prompt optimisé pour portrait réaliste détaillé d’une beauté en hanfu traditionnel de la dynastie Song dans une cour antique.',
},
'social-media-post-anime-pokemon-shop-outfit-teaser-poster': {
title: 'Post réseaux sociaux - Teaser outfit anime dans un Pokémon shop',
summary:
'Génère un poster d’annonce fashion anime doux et pastel, avec visage flouté dans un Pokémon Store.',
},
'social-media-post-cinematic-elevator-scene': {
title: 'Post réseaux sociaux - Scène d’ascenseur cinématique',
summary:
'Prompt pour une scène sombre et cinématique d’une femme dans un ascenseur métallique, avec lumière et reflets réalistes.',
},
'social-media-post-confused-elf-girl-at-pastel-desk': {
title: 'Post réseaux sociaux - Elf girl confuse à un bureau pastel',
summary:
'Génère une illustration anime pastel douce d’une elf girl à l’ordinateur dans un workspace kawaii confortable.',
},
'social-media-post-editorial-fashion-photography': {
title: 'Post réseaux sociaux - Photographie fashion éditoriale',
summary:
'Prompt atmosphérique centré fashion pour une scène studio minimaliste avec lumière douce et tons chauds.',
},
'social-media-post-fashion-editorial-collage': {
title: 'Post réseaux sociaux - Collage fashion editorial',
summary:
'Prompt très détaillé de collage photo 2x2 pour prises fashion editorial, avec styling cohérent, lumière spécifique et visage de référence.',
},
'social-media-post-psg-transfer-announcement-poster': {
title: 'Post réseaux sociaux - Poster d’annonce de transfert PSG',
summary:
'Poster football professionnel et puissant pour annoncer la signature d’un joueur au Paris Saint-Germain.',
},
'social-media-post-showa-day-retro-culture-magazine-cover': {
title: 'Post réseaux sociaux - Couverture magazine rétro culture pour Showa Day',
summary:
'Page éditoriale chaleureuse sur une fête japonaise, avec character art anime, rue nostalgique de l’ère Showa et layout magazine.',
},
'social-media-post-social-media-fashion-outfit-generation': {
title: 'Post réseaux sociaux - Génération d’outfits fashion',
summary:
'Prompt pour générer une semaine de recommandations d’outfits de fashion blogger à partir d’un profil personnage, avec labels et prix.',
},
'social-media-post-travel-snapshot-collage-prompt': {
title: 'Post réseaux sociaux - Collage de snapshots de voyage',
summary:
'Prompt détaillé pour un collage nostalgique en 12 frames de photos de voyage solo façon smartphone.',
},
'social-media-post-vintage-sign-painter-sketch': {
title: 'Post réseaux sociaux - Croquis vintage de sign painter',
summary:
'Génère un croquis marker dessiné à la main sur papier, avec détails réalistes comme lignes graphite et saignement d’encre.',
},
'vr-headset-exploded-view-poster': {
title: 'Poster vue éclatée d’un casque VR',
summary:
'Génère un diagramme high-tech en vue éclatée d’un casque VR, avec callouts détaillés de composants et texte promotionnel.',
},
'3d-animated-boy-building-lego': {
title: 'Garçon animé 3D construisant des Lego',
summary:
'Prompt vidéo multi-shot en style animation 3D décrivant un garçon qui assemble soigneusement des briques Lego dans une chambre, avec effets time-lapse.',
},
'a-decade-of-refinement-glow-up': {
title: 'Une décennie de raffinement : glow-up',
summary:
'Prompt de transformation pour Seedance 2.0 montrant la transition d’un homme depuis un décor casual de 2016 vers un lifestyle luxueux à Dubaï en 2026.',
},
'ancient-guardian-dragon-rescue': {
title: 'Sauvetage par un ancien dragon gardien',
summary:
'Prompt cinématique multi-shot détaillé sur une fille dans un village pluvieux sauvée par un dragon émergent.',
},
'ancient-indian-kingdom-fpv-video': {
title: 'Vidéo FPV d’un ancien royaume indien',
summary:
'Prompt FPV drone rapide et cinématique montrant un royaume indien mystique avec temples et jungles.',
},
'animation-transfer-and-camera-tracking-prompt': {
title: 'Prompt de transfert d’animation et de camera tracking',
summary:
'Prompt technique pour Seedance 2.0 appliquant une référence de mouvement précise à un personnage tout en conservant un camera tracking fixe.',
},
'beat-synced-outfit-transformation-dance': {
title: 'Danse de transformation d’outfit synchronisée au beat',
summary:
'Prompt Seedance 2.0 qui fait danser un personnage depuis des breakdown frames et déclenche un changement d’outfit synchronisé au beat.',
},
'character-intro-motion-graphics-sequence': {
title: 'Séquence motion graphics d’introduction de personnage',
summary:
'Prompt motion graphics complexe en plusieurs étapes pour présenter une équipe de personnages avec overlays UI et transitions.',
},
'cinematic-birthday-celebration-sequence': {
title: 'Séquence cinématique de fête d’anniversaire',
summary:
'Prompt vidéo multi-shot très détaillé pour une séquence d’anniversaire, avec focus sur cohérence des personnages et storytelling émotionnel.',
},
'cinematic-dragon-interaction-flight': {
title: 'Interaction cinématique avec dragon et envol',
summary:
'Prompt storyboard détaillé pour une vidéo avec interaction émotionnelle entre une femme et un dragon, suivie d’un vol cinématique.',
},
'cinematic-east-asian-woman-hand-dance': {
title: 'Danse de mains cinématique d’une femme est-asiatique',
summary:
'Prompt vidéo cinématique multi-shot très détaillé pour une danse de mains stylisée avec instructions caméra et action time-coded.',
},
'cinematic-emotional-face-close-up': {
title: 'Close-up facial émotionnel cinématique',
summary:
'Prompt technique Seedance 2.0 très détaillé centré sur textures de peau réalistes et transitions émotionnelles complexes du visage.',
},
'cinematic-marine-biologist-exploration': {
title: 'Exploration cinématique d’une biologiste marine',
summary:
'Prompt vidéo cinématique détaillé pour une scène sous-marine où une biologiste marine découvre une épave ancienne dans un récif corallien.',
},
'cinematic-music-podcast-and-guitar-technique': {
title: 'Podcast musical cinématique et technique guitare',
summary:
'Prompt cinématique avancé pour une vidéo podcast musical 4K, centrée sur technique guitare, pinch harmonics et esthétique studio.',
},
'cinematic-route-navigation-guide': {
title: 'Guide de navigation d’itinéraire cinématique',
summary:
'Prompt multi-scène structuré pour Seedance afin de créer une vidéo de navigation à pied cohérente avec guide récurrent.',
},
'cinematic-street-racing-sequence-for-seedance-2': {
title: 'Séquence street racing cinématique pour Seedance 2',
summary:
'Prompt multi-shot détaillé pour une séquence de street racing nocturne avec focus intense sur le pilote, caméra dynamique et accélération explosive.',
},
'cinematic-vampire-alley-fight-sequence': {
title: 'Séquence de combat vampire dans une ruelle',
summary:
'Prompt d’action complet pour une scène de court-métrage avec caméra dynamique et combat à grande vitesse dans une ruelle éclairée au néon.',
},
'crimson-horizon-sci-fi-cinematic-sequence': {
title: 'Séquence cinématique sci-fi Crimson Horizon',
summary:
'Séquence filmique complète en 9 shots pour un film sci-fi nommé “Crimson Horizon”, du lancement de fusée à la rencontre alien inquiétante sur Mars.',
},
'cyberpunk-game-trailer-script': {
title: 'Script de trailer de jeu cyberpunk',
summary:
'Prompt vidéo détaillé pour trailer de jeu cyberpunk avec character design, animations UI et transitions d’environnement du void blanc à la favela.',
},
'forbidden-city-cat-satire': {
title: 'Satire avec chat dans la Cité interdite',
summary:
'Prompt dark comedy complexe pour Seedance 2.0 avec chat fonctionnaire orange et empereur hyène dans une scène satirique de dynastie Qing.',
},
'game-screenshot-anime-fighting-game-captain-ryuuga-vs-kaze-renshin': {},
'game-screenshot-three-kingdoms-guanyu-slaying-yanliang': {},
'game-screenshot-three-kingdoms-lyubu-yuanmen-archery': {},
'game-screenshot-three-kingdoms-zhaoyun-cradle-escape': {},
'hollywood-haute-couture-fantasy-video-prompt': {
title: 'Prompt vidéo fantasy haute couture hollywoodienne',
summary:
'Prompt vidéo multi-scène détaillé pour Seedance 2.0, conçu pour un film fantasy haute couture hollywoodien en esthétique 8K / Unreal Engine.',
},
'hyperframes-app-showcase-three-phones': {
title: 'HyperFrames : app showcase 12 secondes avec trois phones flottants',
summary:
'Composition app showcase 16:9 de 12 secondes — trois écrans iPhone flottent dans l’espace 3D, chacun tourne pour révéler une feature, avec label callouts beat-sync et end logo lockup. Bâti directement sur le bloc de catalogue HyperFrames `app-showcase`.',
},
'hyperframes-brand-sizzle-reel': {
title: 'HyperFrames : brand sizzle reel de 30 secondes',
summary:
'Sizzle reel HyperFrames 16:9 de 30 secondes — coupes rapides, typographie cinétique beat-sync, scale audio-réactif sur les mots display, transitions shader entre cinq scènes, end-card avec logo bloom. Modélisé sur l’archétype aisoc-hype du student kit.',
},
'hyperframes-data-bar-chart-race': {
title: 'HyperFrames : bar chart race animé style NYT',
summary:
'Infographie data 16:9 de 12 secondes — bar chart et line chart animés avec reveal de catégories en stagger, headline serif façon NYT, footnote source, labels de valeur cinétiques. Bâti sur le bloc HyperFrames `data-chart`.',
},
'hyperframes-flight-map-route': {
title: 'HyperFrames : carte de vol style Apple (origin → destination)',
summary:
'Carte de route aérienne cinématique 16:9 de 8 secondes — zoom terrain réaliste, avion animé sur route courbe, villes labellisées, compteur de distance cinétique. Bâti sur le bloc HyperFrames `nyc-paris-flight`, réutilisable pour toute paire de villes.',
},
'hyperframes-logo-outro-cinematic': {
title: 'HyperFrames : logo outro cinématique de 4 secondes',
summary:
'Logo outro 16:9 de 4 secondes — construction progressive du wordmark avec bloom, shimmer sweep sur le lockup final, grain overlay doux, CTA en une ligne. Bâti sur les blocs HyperFrames `logo-outro`, `shimmer-sweep` et `grain-overlay`.',
},
'hyperframes-money-counter-hype': {
title: 'HyperFrames : money counter hype $0 → $10K (9:16)',
summary:
'Clip hype vertical HyperFrames 1080×1920 de 6 secondes — compteur style Apple de $0 à $10,000 avec flash vert, particules money-burst, icône cash stack et kicker headline. Bâti sur le bloc HyperFrames `apple-money-count`.',
},
'hyperframes-product-reveal-minimal': {
title: 'HyperFrames : product reveal minimal de 5 secondes',
summary:
'Composition HyperFrames de 5 secondes pour product reveal haut de gamme — canvas dark, accent chaud unique, push-in title-card lent, ligne kicker cinétique, mouvement retenu. L’agent rend le MP4 depuis HTML+GSAP via Puppeteer ; pas besoin de stock footage.',
},
'hyperframes-saas-product-promo-30s': {
title: 'HyperFrames : promo produit SaaS 30 secondes style Linear',
summary:
'Composition HyperFrames de 30 secondes inspirée des films produit Linear/ClickUp — reveals UI 3D, typographie cinétique beat-sync, screenshots UI animés, end-card avec logo outro. Construite avec blocs HF Catalog et transitions shader.',
},
'hyperframes-social-overlay-stack': {
title: 'HyperFrames : stack d’overlays sociaux 9:16 (X · Reddit · Spotify · Instagram)',
summary:
'Composition HyperFrames verticale 1080×1920 de 15 secondes empilant quatre cartes sociales animées sur un loop face-cam — post X, réaction Reddit, carte Spotify Now Playing, puis CTA Instagram follow.',
},
'hyperframes-tiktok-karaoke-talking-head': {
title: 'HyperFrames : talking head TikTok 9:16 avec sous-titres karaoke',
summary:
'Short vertical HyperFrames 1080×1920 — talking head narré en TTS sur loop face-cam, sous-titres mot-à-mot façon karaoke, lower third animé et overlay follow TikTok en fin.',
},
'hyperframes-website-to-video-promo': {
title: 'HyperFrames : pipeline website-to-video (marketing cut 15 secondes)',
summary:
'Composition HyperFrames 16:9 de 15 secondes qui capture un site live en trois tailles de viewport puis anime les scènes avec radial split chromatique.',
},
'hunched-character-animation': {
title: 'Animation d’un personnage voûté',
summary:
'Instruction pour Seedance 2 afin de créer une animation de marche sur place à partir d’une référence de personnage précise.',
},
'live-action-anime-adaptation-water-vs-thunder-breathing-duel': {
title: 'Adaptation live-action anime : duel souffle eau vs tonnerre',
summary:
'Prompt 15 secondes très détaillé pour adaptation live-action d’un duel anime avec effets d’eau bleue et d’éclairs dorés.',
},
'luxury-supercar-cinematic-narrative': {
title: 'Narration cinématique de supercar de luxe',
summary:
'Prompt cinématique multi-shot très détaillé pour Seedance 2.0 avec homme stylé, dobermans et supercar vintage dans une scène de montagne brumeuse.',
},
'magical-academy-storyboard-sequence': {
title: 'Séquence storyboard d’une académie magique',
summary:
'Prompt storyboard détaillé pour une séquence cinématique autour d’une magical girl dans une académie, de l’arrivée au duel magique.',
},
'modern-rural-aesthetics-healing-short-film-video-prompt': {
title: 'Court-métrage healing en esthétique rural moderne',
summary:
'Prompt three-shot détaillé pour Seedance 2.0 produisant un court-métrage healing cinématique dans une esthétique rural moderne.',
},
'nightclub-flyer-atmospheric-animation': {
title: 'Animation atmosphérique de flyer nightclub',
summary:
'Prompt d’animation subtil Seedance 2.0 qui donne vie aux éléments de fond et de lumière tout en gardant le sujet principal fixe.',
},
'retro-hk-wuxia-film-aesthetic': {
title: 'Esthétique film wuxia HK rétro',
summary:
'Prompt vidéo complexe en plusieurs parties recréant l’esthétique wuxia hongkongaise des années 80/90 avec transformation de chat en humain.',
},
'seedance-2-0-15-second-cinematic-japanese-romance-short-film': {
title: 'Seedance 2.0 : court-métrage romance japonaise cinématique de 15 secondes',
summary:
'Prompt multi-scène 15 secondes très détaillé pour court-métrage romance high school japonais cinématique et ultraréaliste.',
},
'seedance-2-0-80-year-old-rapper-mv': {
title: 'Seedance 2.0 : rappeuse de 80 ans en clip',
summary:
'Prompt 15 secondes détaillé pour un clip street rap horizontal 16:9 avec une femme de 80 ans et des tons néon violet/bleu froid.',
},
'sequence-and-movement-instruction-for-martial-arts-video': {
title: 'Instruction de séquence et mouvement pour vidéo d’arts martiaux',
summary:
'Prompt vidéo pour Seedance 2.0 animant une séquence à partir d’un character sheet et mettant l’accent sur mouvements et étapes spécifiques.',
},
'soul-switching-mirror-magic-sequence': {
title: 'Séquence de magie miroir avec échange d’âmes',
summary:
'Prompt vidéo narratif sur un événement magique d’échange d’âmes devant un miroir, avec instructions caméra et cues émotionnels.',
},
'toaster-rocket-jumpscare': {
title: 'Jumpscare de grille-pain fusée',
summary:
'Prompt pour une vidéo home-video réaliste d’un vieil homme surpris lorsqu’un grille-pain lance du pain comme une fusée.',
},
'traditional-dance-performance': {
title: 'Performance de danse traditionnelle',
summary:
'Prompt Seedance 2.0 complet pour une danse traditionnelle gracieuse basée sur des images de référence de chorégraphie et d’identité.',
},
'video-seedance-three-kingdoms-guanyu-slaying-yanliang': {},
'video-seedance-three-kingdoms-lyubu-yuanmen-archery': {},
'video-seedance-three-kingdoms-zhaoyun-cradle-escape': {},
'vintage-disney-style-pirate-crocodile-animation': {
title: 'Animation crocodile pirate style Disney vintage',
summary:
'Prompt narratif multi-scène pour animation classique vintage Disney avec crocodile pirate et oiseaux pirates sur un navire.',
},
'viral-k-pop-dance-choreography': {
title: 'Chorégraphie K-pop virale',
summary:
'Prompt Seedance 2.0 détaillé faisant danser un personnage selon une chorégraphie basée sur un storyboard de référence en 16 panels.',
},
'wasteland-factory-chase': {
title: 'Poursuite dans une usine wasteland',
summary:
'Prompt cinématique pour scène wasteland désertique à haute vitesse avec usine industrielle marchant sur jambes et poursuite en rebel bike.',
},
'game-ui-ancient-china-open-world-mmo-hud': {
title: 'Game UI - HUD MMO open-world Chine ancienne',
summary:
'Génère un mockup screenshot HUD in-game pour AAA open-world MMO en Chine ancienne, style photoréaliste cinématique Black Myth: Wukong, centré sur une épéiste dans une scène de montagne brumeuse avec HUD MMO complet.',
},
'illustration-crayon-kid-drawing-rework': {
title: 'Illustration - Rework dessin enfant au crayon',
summary:
'Prompt de style transfer qui transforme toute image de référence en illustration au crayon dessinée à la main comme par un enfant de 10 ans, avec palette lumineuse et décor enfantin.',
},
'social-media-post-sensational-girl-dance-storyboard-8-shots': {
title: 'Post réseaux sociaux - Storyboard danse d’une stylish girl (8 shots)',
summary:
'Set complet de prompts storyboard en 8 shots pour générer une séquence de danse cohérente, avec style tokens globaux, negative prompt réutilisable et huit plans individuels.',
},
};
+961
View File
@@ -0,0 +1,961 @@
import type { PromptTemplateSummary } from '../types';
export const RU_SKILL_COPY: Record<string, { description?: string; examplePrompt?: string }> = {
'audio-jingle': {
examplePrompt:
'Жизнерадостный 30-секундный инди-поп-джингл для запуска кофейни — теплое электропиано, щетки по барабанам, мягкий бас и один солнечный хор "ahhh" в припеве. Без вокала. Финал, удобный для зацикливания.',
description:
'Генерация аудио для джинглов, музыкальных подложек, закадрового голоса и звуковых эффектов. Музыкальные запросы направляются в Suno V5 / Udio / Lyria, речь — в MiniMax TTS / FishAudio / ElevenLabs V3, а SFX — в ElevenLabs SFX или AudioCraft. На выходе — файл MP3/WAV в папке проекта.',
},
'blog-post': {
examplePrompt:
'Развернутая статья / пост для блога — masthead, hero-изображение-заглушка, основной текст с иллюстрациями и врезками с цитатами, строка автора, связанные материалы.',
},
'critique': {
examplePrompt:
'Проведите 5-мерную критику для только что созданной презентации magazine-web-ppt — оцените философию / иерархию / детали / функцию / инновационность и дайте блоки Keep / Fix / Quick wins.',
},
dashboard: {
examplePrompt:
'Админская / аналитическая панель в одном HTML-файле.',
},
'dating-web': {
examplePrompt:
'Спроектируйте "mutuals" — сайт знакомств для авторов в X. Ежедневная дайджест-панель со статистикой, столбчатой диаграммой взаимных мэтчей и тикером сообщества.',
},
'design-brief': {},
'digital-eguide': {
examplePrompt:
'Спроектируйте "The Creator\'s Style & Format Guide" — обложку и одну внутреннюю страницу для бренда автора lifestyle-контента.',
},
'docs-page': {
examplePrompt:
'Страница документации — левая навигация, прокручиваемая область статьи, оглавление справа.',
},
'open-design-landing': {
examplePrompt:
'Спроектируйте маркетинговый лендинг Open Design в стиле Atelier Zero / Monocle — теплая бумажная основа, сюрреалистичный коллаж из гипса и архитектуры, сверхкрупная смешанная display-типографика с курсивной антиквой, римские цифры как маркеры секций и один коралловый акцент.',
},
'open-design-landing-deck': {
examplePrompt:
'Создайте pitch deck Open Design в стиле Atelier Zero — обложка с hero-плашкой, римские разделители секций, слайд со статистикой (31 скилл · 72 системы · 12 CLI), клиентская цитата, финальный CTA и mega-italic-serif end-card. Горизонтальная свайп-пагинация как в печатном журнале.',
description:
'Создает однофайловую презентацию в стиле Atelier Zero: теплая бумага, акцентные spans курсивной антиквой, коралловые финальные точки, сюрреалистичные коллажные плашки. Горизонтальная журнальная пагинация с навигацией стрелками и пробелом, live HUD со счетчиком слайдов и progress bar; разделяет stylesheet и 16-слотовую библиотеку изображений с sibling-навыком `open-design-landing`.',
},
'email-marketing': {
examplePrompt:
'Спроектируйте письмо о запуске для бренда беговых кроссовок — masthead, hero-блок, крупный заголовочный lockup, сетка характеристик, CTA.',
},
'eng-runbook': {
examplePrompt:
'Напишите runbook для нашего сервиса аутентификации — алерты, дашборды, стандартные процедуры, график on-call.',
},
'finance-report': {
examplePrompt:
'Подготовьте финансовый отчет за Q3 для early-stage SaaS — MRR, burn, gross margin, top accounts.',
},
'gamified-app': {
examplePrompt:
'Спроектируйте геймифицированное приложение для управления жизнью — мобильный мультиэкранный прототип: постер-обложка, сегодняшние квесты с XP и детализация квеста. "Daily quests for becoming a better human."',
},
'magazine-web-ppt': {
examplePrompt:
'Сделайте для меня журнальную презентацию о теме "одночеловеческие компании · организации, сжатые ИИ", выступление на 25 минут, аудитория — дизайнеры и фаундеры. Сначала предложите направление (Monocle / WIRED / Kinfolk / Domus / Lab), чтобы я мог выбрать.',
},
'hatch-pet': {
examplePrompt:
'Высидите для меня крошечного пиксельного питомца — дружелюбного сиба-ину в уютном свитере. На всем протяжении используйте навык hatch-pet.',
description:
'Создает, чинит, валидирует и упаковывает совместимый с Codex анимированный спрайтшит питомца (атлас 8x9, ячейки 192x208), включая QA-контактный лист, превью-видео и pet.json.',
},
'hr-onboarding': {
examplePrompt:
'Составьте 30-дневный план онбординга для нового product designer в стартапе из 40 человек.',
},
'html-ppt': {},
'html-ppt-course-module': {},
'html-ppt-dir-key-nav-minimal': {},
'html-ppt-graphify-dark-graph': {},
'html-ppt-hermes-cyber-terminal': {},
'html-ppt-knowledge-arch-blueprint': {},
'html-ppt-obsidian-claude-gradient': {},
'html-ppt-pitch-deck': {},
'html-ppt-presenter-mode': {},
'html-ppt-product-launch': {},
'html-ppt-tech-sharing': {},
'html-ppt-testing-safety-alert': {},
'html-ppt-weekly-report': {},
'html-ppt-xhs-pastel-card': {},
'html-ppt-xhs-post': {},
'html-ppt-xhs-white-editorial': {},
hyperframes: {
examplePrompt:
'5-секундный product reveal: минималистичный премиальный продукт на чистой кремовой поверхности, мягкий боковой свет, медленный наезд камеры, сдержанное движение, без текстовых оверлеев.',
description:
'Создает видеокомпозиции, анимации, заставки, оверлеи, субтитры, озвучку, аудиореактивную графику и переходы между сценами в HTML HyperFrames.',
},
'image-poster': {
examplePrompt:
'Редакционный постер для инди-кинофестиваля — выразительный абстрактный силуэт на теплой, слегка зернистой бумаге; набранный вручную заголовок гротеском сверху, даты фестиваля и площадка снизу моноширинным шрифтом. Приглушенная охристо-чернильная палитра.',
description:
'Покадровая генерация изображений для постеров, key art и редакционных иллюстраций. По умолчанию используется gpt-image-2, но сам процесс не привязан к конкретному провайдеру.',
},
invoice: {
examplePrompt:
'Создайте счет от фриланс-дизайн-студии клиенту за проект по фирменному стилю — три позиции, аванс 10%, НДС 9%.',
},
'kami-deck': {
examplePrompt:
'Создайте шестислайдовую презентацию в стиле kami (紙) — теплый пергамент, синие чернила на обложке, одно начертание антиквы, горизонтальная журнальная прокрутка.',
description:
'Генерирует презентацию уровня печати в дизайн-системе kami: теплый пергамент (или синие чернила для обложки и глав), антиква одного кегля, акцент синими чернилами ≤5% на слайд, без курсива. Горизонтальная пагинация как в журнале. Один самодостаточный HTML-файл, только Google Fonts.',
},
'kami-landing': {
examplePrompt:
'Спроектируйте одностраничный studio one-pager в стиле kami — пергамент, акцент синими чернилами, редакционный тон whitepaper.',
description:
'Создает одностраничный документ уровня печати в стиле kami (紙): теплый пергамент, акцент синими чернилами, антиква одного кегля, без курсива, без холодных серых. Читается как whitepaper или студийный one-pager, не как UI приложения. Мультиязычность (EN · zh-CN · ja). Один HTML-файл без зависимостей.',
},
'kanban-board': {
examplePrompt:
'Создайте канбан-доску для growth-команды из 5 человек в середине спринта — Backlog, Doing, Review, Done.',
},
'live-artifact': {
examplePrompt:
'Создайте интерактивный live-артефакт с карточками статуса, таблицей данных и панелью деталей, которая реагирует на изменение выбора.',
},
'magazine-poster': {
examplePrompt:
'Спроектируйте редакционный постер в журнальной эстетике — "You don\'t need a designer to ship your first draft anymore." Газетная бумага, шесть пронумерованных секций.',
},
'meeting-notes': {
examplePrompt:
'Напишите заметки по 60-минутной еженедельной встрече команды роста — повестка, решения, action items с ответственными, следующая встреча.',
},
'mobile-app': {
examplePrompt:
'Экран мобильного приложения, показанный внутри точного по пикселям корпуса iPhone 15 Pro.',
},
'mobile-onboarding': {
examplePrompt:
'Спроектируйте мобильный onboarding из 3 экранов для приложения по медитации — Welcome, Value Props, Sign-in.',
},
'motion-frames': {
examplePrompt:
'Спроектируйте анимированный hero-блок — вращающееся типографическое кольцо вокруг каркасного глобуса, с заголовком "Reach every country." Зацикливание на 12 с, готово к экспорту в HyperFrames.',
},
'pm-spec': {
examplePrompt:
'Напишите мне PRD для two-factor authentication в нашем SaaS-приложении — problem, scope, milestones, open questions.',
},
'pptx-html-fidelity-audit': {
examplePrompt:
'Сравните deck.pptx и deck.html, перечислите расхождения в верстке (переполнение футера, пропавший курсив, hero-блок не отцентрован) и заново экспортируйте с footer rail и cursor flow.',
},
'pricing-page': {
examplePrompt:
'Отдельная pricing page — header, тарифные уровни, сравнительная таблица функций и FAQ.',
},
'replit-deck': {
examplePrompt:
'Однофайловая HTML-колода с горизонтальным свайпом в духе галереи шаблонов лендингов Replit Slides.',
},
'saas-landing': {
examplePrompt:
'Одностраничный SaaS-лендинг с hero-блоком, features, social proof, pricing и CTA.',
},
'simple-deck': {
examplePrompt:
'Однофайловая HTML-колода с горизонтальным свайпом.',
},
'social-carousel': {
examplePrompt:
'Спроектируйте кинематографичную карусель из 3 карточек — "onwards.", "to the next one.", "looking ahead.". Квадраты 1080x1080, сразу готово для Instagram.',
},
'sprite-animation': {
examplePrompt:
'Сделайте спрайтовую анимацию с короткими фактами об истории Nintendo. Сочетайте пиксельного маскота, анимированный текст и акцент в духе hanafuda. Цвет и типографика должны ощущаться как у бренда Nintendo.',
},
'team-okrs': {
examplePrompt:
'Сделайте OKR-трекер на Q4 — три objectives, у каждого по три key results, progress bars, ответственные, статус-пиллы.',
},
tweaks: {
examplePrompt:
'Добавьте к этому лендингу панель настроек — Accent Color, Type Scale, Density, Light/Dark — и сохраняйте выбор в localStorage, чтобы он не пропадал после обновления страницы.',
},
'video-shortform': {
examplePrompt:
'5-секундный product reveal — керамическая кофейная кружка вращается на мягком бумажном фоне, теплый боковой свет слева, мелкие пылинки парят в луче света. Кинематографично, 16:9, медленный дрейф камеры.',
description:
'Генерация коротких видео длительностью 3-10 секунд для product reveal, motion teasers и атмосферных зацикленных роликов.',
},
'web-prototype': {
examplePrompt:
'Универсальный прототип для desktop web.',
},
'weekly-update': {
examplePrompt:
'Сделайте презентацию еженедельного обновления для команды роста — что завершено, что в работе, блокеры, метрики и вопросы на следующую неделю.',
},
'wireframe-sketch': {
examplePrompt:
'Набросайте hand-drawn wireframe v0.1 для портала — четыре варианта во вкладках на миллиметровке, заголовки маркером, заметки на стикерах, заштрихованные заглушки графиков.',
},
};
export const RU_DESIGN_SYSTEM_SUMMARIES: Record<string, string> = {
airbnb: 'Маркетплейс путешествий. Теплый коралловый акцент, опора на фотографию, скругленный UI.',
airtable: 'Гибрид таблицы и базы данных. Ярко, дружелюбно, с эстетикой структурированных данных.',
apple: 'Потребительская электроника. Премиальный воздух, SF Pro, кинематографичная подача.',
'atelier-zero':
'Редакционная студийная система. Теплое бумажное полотно, сюрреалистичный коллаж из гипса и архитектуры, смешанная display-типографика с курсивной антиквой, римские цифры как маркеры секций и один коралловый акцент — для журнальных лендингов, сайтов студий и manifesto-страниц.',
binance: 'Криптобиржа. Сильный желтый акцент на монохроме, энергетика trading floor.',
bmw: 'Премиальный автопром. Темные статусные поверхности, точная немецкая инженерная эстетика.',
bugatti: 'Бренд гиперкаров. Кинематографично темное полотно, монохромная строгость, монументальная display-типографика.',
cal: 'Open-source-планирование встреч. Чистый нейтральный UI, простота для разработчиков.',
claude: 'ИИ-ассистент Anthropic. Теплый терракотовый акцент, чистая редакционная композиция.',
clay: 'Креативное агентство. Органические формы, мягкие градиенты, art-directed layout.',
clickhouse: 'Быстрая аналитическая БД. Техническая документарная эстетика с желтым акцентом.',
cohere: 'Корпоративная AI-платформа. Живые градиенты, насыщенная dashboard-эстетика.',
coinbase: 'Криптобиржа. Чистая синяя айдентика, акцент на доверии, институциональное ощущение.',
composio: 'Платформа интеграции инструментов. Современная темная база с цветными иконками интеграций.',
cursor: 'AI-first редактор кода. Лаконичный темный интерфейс, акцентные градиенты.',
default:
'Чистый продуктовый дефолт. Подходит, когда бриф не задает конкретного настроения — для B2B-инструментов, дашбордов и утилитарных страниц.',
elevenlabs: 'Платформа AI-голоса. Темный кинематографичный UI, эстетика аудиоволн.',
expo: 'Платформа React Native. Темная тема, плотный трекинг, кодоцентричная подача.',
ferrari: 'Премиальный автопром. Редакционный chiaroscuro, акценты Ferrari Red, кинематографичный черный.',
figma: 'Совместный дизайн-инструмент. Яркая многокрасочность, игриво и профессионально.',
framer: 'Конструктор сайтов. Смелый черный и синий, приоритет motion, дизайн-ориентированность.',
hashicorp: 'Автоматизация инфраструктуры. Чистый enterprise-визуал, черно-белая строгость.',
ibm: 'Корпоративные технологии. Carbon Design System, структурированная синяя палитра.',
intercom: 'Клиентские коммуникации. Дружелюбная синяя палитра, разговорные UI-паттерны.',
kami:
'Редакционная бумажная система. Теплое пергаментное полотно, чернильно-синий акцент, антиква в одном начертании — для резюме, one-pager, white paper, портфолио и deck.',
kraken: 'Криптотрейдинг. Темный UI с фиолетовым акцентом, насыщенные данными дашборды.',
lamborghini: 'Бренд суперкаров. Абсолютно черные поверхности, золотые акценты, драматичная капительная типографика.',
'linear-app': 'Управление проектами. Ультраминимализм, точность, фиолетовый акцент.',
lovable: 'AI-конструктор full-stack-продуктов. Игривые градиенты, дружелюбная эстетика для разработчиков.',
mastercard: 'Глобальная платежная сеть. Теплое кремовое полотно, орбитальные pill-формы, редакционное тепло.',
meta: 'Тех-ритейл. Опора на фотографию, бинарные светлые/темные поля, CTA в Meta Blue.',
minimax: 'Поставщик AI-моделей. Смелая темная поверхность с неоновыми акцентами.',
mintlify: 'Платформа документации. Чисто, с зеленым акцентом, оптимизировано для чтения.',
miro: 'Визуальная коллаборация. Светлый желтый акцент, эстетика бесконечного холста.',
'mistral-ai': 'Поставщик open-weight LLM. Французски выверенный минимализм с фиолетовым оттенком.',
mongodb: 'Документная БД. Зеленая leaf-айдентика, акцент на документации для разработчиков.',
nike: 'Спортивный ритейл. Монохромный UI, массивный верхний регистр, full-bleed-фотография.',
notion: 'Единое рабочее пространство. Теплый минимализм, серифные заголовки, мягкие поверхности.',
nvidia: 'GPU-компьютинг. Черно-зеленая энергия, техническая силовая эстетика.',
ollama: 'Локальный запуск LLM. Terminal-first, монохромная простота.',
'opencode-ai': 'Платформа AI-кодинга. Dev-centered темная тема.',
pinterest: 'Визуальное открытие. Красный акцент, masonry grid, упор на изображения.',
playstation:
'Ритейл игровых консолей. Трехплоскостная channel-композиция, спокойная авторитетность в display-типографике, циановый hover-scale.',
posthog: 'Product analytics. Игривый брендинг, дружелюбный к разработчикам темный UI.',
raycast: 'Лаунчер продуктивности. Лаконичный темный chrome, живые градиентные акценты.',
renault: 'Французский автопром. Живые aurora-градиенты, типографика NouvelR, сильная энергия.',
replicate: 'Запуск ML-моделей через API. Чистое белое полотно, кодоцентричность.',
resend: 'Email API. Минималистичная темная тема, моноширинные акценты.',
revolut: 'Цифровой банкинг. Лаконичная темная поверхность, градиентные карты, fintech-точность.',
runwayml: 'AI-видеогенерация. Кинематографичный темный UI, медийно насыщенный layout.',
sanity: 'Headless CMS. Красный акцент, content-first редакционная композиция.',
sentry: 'Мониторинг ошибок. Темный dashboard, плотность данных, розово-фиолетовый акцент.',
shopify: 'E-commerce-платформа. Dark-first и кинематографично, неоново-зеленый акцент, сверхлегкая типографика.',
spacex: 'Космические технологии. Строгий черно-белый язык, full-bleed-изображения, футуризм.',
spotify: 'Музыкальный стриминг. Яркий зеленый на темном, жирная типографика, опора на обложки.',
starbucks:
'Глобальный кофейный ритейл. Четырехступенчатая зеленая система, теплое кремовое полотно, кнопки full pill.',
stripe: 'Платежная инфраструктура. Фирменные фиолетовые градиенты, элегантность weight-300.',
supabase: 'Open-source-альтернатива Firebase. Темная изумрудная тема, code-first.',
superhuman: 'Быстрый почтовый клиент. Премиальный темный UI, keyboard-first, фиолетовое свечение.',
tesla: 'Электромобили. Радикальная редукция, полноэкранная фотография, почти отсутствие UI.',
theverge:
'Тех-издание. Акценты acid mint и ultraviolet, display Manuka, карточки сюжетов в духе rave-flyer.',
'together-ai': 'Open-source AI-инфраструктура. Технический язык, дизайн в духе blueprint.',
uber: 'Платформа мобильности. Сильный черно-белый контраст, узкая типографика, городская энергия.',
vercel: 'Frontend-деплой. Черно-белая точность, шрифт Geist.',
vodafone: 'Глобальный телеком-бренд. Монументальная display-типографика в верхнем регистре, красные chapter bands Vodafone.',
voltagent: 'Фреймворк AI-агентов. Void-черное полотно, изумрудный акцент, терминальная нативность.',
'warm-editorial':
'Журнальная эстетика под антикву. Терракотовый акцент на теплой off-white-бумаге — для long-form, editorial и брендовых маркетинговых страниц.',
warp: 'Современный терминал. Темная IDE-подобная поверхность, командный UI из блоков.',
webflow: 'Визуальный конструктор сайтов. Синие акценты, полированная эстетика маркетингового сайта.',
wired: 'Тех-журнал. Газетная плотность на бумажно-белом фоне, custom display-антиква, mono-kicker, чернильно-синие ссылки.',
wise: 'Денежные переводы. Яркий зеленый акцент, дружелюбно и ясно.',
'x-ai': 'AI-лаборатория Илона Маска. Строгий монохром, футуристический минимализм.',
xiaohongshu: 'Lifestyle UGC-соцсеть. Единый фирменный красный, щедрый радиус, content-first.',
zapier: 'Платформа автоматизации. Теплый оранжевый, дружелюбная иллюстративная подача.',
};
export const RU_DESIGN_SYSTEM_CATEGORIES: Record<string, string> = {
Starter: 'Стартовые',
'AI & LLM': 'AI & LLM',
'Bold & Expressive': 'Смелые и выразительные',
'Creative & Artistic': 'Креативные и художественные',
'Developer Tools': 'Инструменты для разработчиков',
'Layout & Structure': 'Композиция и структура',
'Modern & Minimal': 'Современные и минималистичные',
'Morphism & Effects': 'Морфизм и эффекты',
'Productivity & SaaS': 'Продуктивность и SaaS',
'Professional & Corporate': 'Профессиональные и корпоративные',
'Backend & Data': 'Бэкенд и данные',
'Design & Creative': 'Дизайн и креатив',
'Fintech & Crypto': 'Финтех и крипто',
'E-Commerce & Retail': 'Электронная коммерция и ритейл',
'Media & Consumer': 'Медиа и потребительские',
Automotive: 'Автомобили',
'Editorial & Print': 'Редакционные и печатные',
'Editorial · Studio': 'Редакционная студия',
'Retro & Nostalgic': 'Ретро и ностальгия',
'Themed & Unique': 'Тематические и уникальные',
Uncategorized: 'Без категории',
};
export const RU_SKILL_IDS_WITH_EN_FALLBACK = [
'html-ppt-taste-brutalist',
'html-ppt-taste-editorial',
'orbit-general',
'orbit-github',
'orbit-gmail',
'orbit-linear',
'orbit-notion',
'social-media-dashboard',
'web-prototype-taste-brutalist',
'web-prototype-taste-editorial',
'web-prototype-taste-soft',
] as const;
export const RU_DESIGN_SYSTEM_IDS_WITH_EN_FALLBACK = [
'agentic',
'ant',
'application',
'arc',
'artistic',
'bento',
'bold',
'brutalism',
'cafe',
'canva',
'claymorphism',
'clean',
'colorful',
'contemporary',
'corporate',
'cosmic',
'creative',
'dashboard',
'discord',
'dithered',
'doodle',
'dramatic',
'duolingo',
'editorial',
'elegant',
'energetic',
'enterprise',
'expressive',
'fantasy',
'flat',
'friendly',
'futuristic',
'github',
'glassmorphism',
'gradient',
'huggingface',
'levels',
'lingo',
'luxury',
'material',
'minimal',
'modern',
'mono',
'neobrutalism',
'neon',
'neumorphism',
'openai',
'pacman',
'paper',
'perspective',
'premium',
'professional',
'publication',
'refined',
'retro',
'shadcn',
'simple',
'skeumorphism',
'sleek',
'spacious',
'storytelling',
'totality-festival',
'tetris',
'vibrant',
'vintage',
] as const;
export const RU_PROMPT_TEMPLATE_CATEGORIES: Record<string, string> = {
Infographic: 'Инфографика',
'Anime / Manga': 'Аниме / манга',
'App / Web Design': 'Дизайн приложений / веба',
'Game UI': 'Игровой UI',
Illustration: 'Иллюстрация',
'Profile / Avatar': 'Профиль / аватар',
'Social Media Post': 'Пост для соцсетей',
General: 'Общее',
Advertising: 'Реклама',
'Motion Graphics': 'Моушен-графика',
Cinematic: 'Кинематографичное',
'VFX / Fantasy': 'VFX / фэнтези',
Anime: 'Аниме',
'Social / Meme': 'Соцсети / мемы',
Branding: 'Брендинг',
Data: 'Данные',
Marketing: 'Маркетинг',
Product: 'Продукт',
'Short Form': 'Короткий формат',
Travel: 'Путешествия',
};
export const RU_PROMPT_TEMPLATE_IDS_WITH_EN_FALLBACK = [] as const;
export const RU_PROMPT_TEMPLATE_TAGS: Record<string, string> = {
'3d': '3D',
'3d-render': '3D-рендер',
action: 'Экшен',
'ancient-china': 'Древний Китай',
anime: 'Аниме',
'app-showcase': 'Демонстрация приложения',
archery: 'Стрельба из лука',
arpg: 'ARPG',
'audio-reactive': 'Аудиореактивный',
'boss-fight': 'Битва с боссом',
brand: 'Бренд',
branding: 'Брендинг',
captions: 'Субтитры',
cavalry: 'Кавалерия',
chart: 'Диаграмма',
childlike: 'Детский',
choreography: 'Хореография',
cinematic: 'Кинематографично',
'cinematic-romance': 'Киноромантика',
combat: 'Бой',
combo: 'Комбо',
'companion-to-image': 'Дополнение к изображению',
counter: 'Счетчик',
crayon: 'Восковой мелок',
cyberpunk: 'Киберпанк',
dance: 'Танец',
'data-viz': 'Визуализация данных',
editorial: 'Редакционный',
'elden-ring': 'Elden Ring',
endcard: 'Финальная заставка',
escort: 'Сопровождение',
'escort-mission': 'Миссия сопровождения',
fantasy: 'Фэнтези',
fashion: 'Мода',
'fighting-game': 'Файтинг',
food: 'Еда',
'game-cinematic': 'Игровой синематик',
'game-ui': 'Игровой UI',
'grid-sheet': 'Сетка',
guanyu: 'Гуань Юй',
'hand-drawn': 'Ручной рисунок',
hud: 'HUD',
'hud-safe': 'Безопасная зона HUD',
hype: 'Хайп',
hyperframes: 'HyperFrames',
idol: 'Айдол',
illustration: 'Иллюстрация',
'image-to-image': 'Редактирование по изображению',
infographic: 'Инфографика',
japanese: 'Японский',
karaoke: 'Караоке',
'key-visual': 'Ключевой визуал',
'kinetic-typography': 'Кинетическая типографика',
'linear-style': 'Стиль Linear',
logo: 'Логотип',
lyubu: 'Люй Бу',
map: 'Карта',
marketing: 'Маркетинг',
minimal: 'Минимализм',
mmo: 'MMO',
mobile: 'Мобильный',
money: 'Деньги',
'mounted-combat': 'Конный бой',
nature: 'Природа',
'open-world': 'Открытый мир',
'otaku-dance': 'Отаку-танец',
outro: 'Аутро',
overlay: 'Оверлей',
pipeline: 'Пайплайн',
'pose-reference': 'Референс позы',
portrait: 'Портрет',
product: 'Продукт',
'product-promo': 'Промо продукта',
rework: 'Переработка',
route: 'Маршрут',
saas: 'SaaS',
sequence: 'Последовательность',
sizzle: 'Сиззл-ролик',
social: 'Соцсети',
storyboard: 'Сториборд',
'street-fighter': 'Street Fighter',
'style-transfer': 'Перенос стиля',
tekken: 'Tekken',
'three-kingdoms': 'Троецарствие',
tiktok: 'TikTok',
'title-card': 'Титульная заставка',
transform: 'Трансформация',
travel: 'Путешествия',
tts: 'TTS',
typography: 'Типографика',
'unreal-engine-5': 'Unreal Engine 5',
vertical: 'Вертикальный',
'video-reference': 'Видео-референс',
'vs-screen': 'VS-экран',
'website-to-video': 'Сайт-в-видео',
wuxia: 'Уся',
zhaoyun: 'Чжао Юнь',
};
export const RU_PROMPT_TEMPLATE_COPY: Record<string, Partial<Pick<PromptTemplateSummary, 'summary' | 'title'>>> = {
'3d-stone-staircase-evolution-infographic': {
title: '3D-инфографика эволюции в виде каменной лестницы',
summary:
'Преобразует плоскую временную шкалу эволюции в реалистичную 3D-инфографику в виде каменной лестницы с детализированными рендерами организмов и структурированными боковыми панелями.',
},
'anime-martial-arts-battle-illustration': {
title: 'Аниме-иллюстрация с боем в стиле martial arts',
summary:
'Создает динамичную, эффектную аниме-иллюстрацию двух девушек, сражающихся в традиционном додзе на фоне стихийных энергетических эффектов.',
},
'e-commerce-live-stream-ui-mockup': {
title: 'Макет UI для e-commerce-стрима',
summary:
'Создает реалистичный интерфейс соцсетевого лайвстрима поверх портретного кадра, включая настраиваемый чат, всплывающие подарки и карточку покупки товара.',
},
'illustrated-city-food-map': {
title: 'Иллюстрированная гастрономическая карта города',
summary:
'Создает нарисованную от руки туристическую карту в акварельной манере с пронумерованными локальными специалитетами, достопримечательностями и легендой.',
},
'infographic-otaku-dance-choreography-breakdown-gokurakujodo-16-panels': {},
'momotaro-explainer-slide-in-hybrid-style': {
title: 'Объясняющий слайд о Момотаро в гибридном стиле',
summary:
'Соединяет простую теплую эстетику иллюстраций Irasutoya с высокой информационной плотностью японских ведомственных объясняющих слайдов.',
},
'profile-avatar-anime-girl-to-cinematic-photo': {
title: 'Профиль / аватар - от аниме-девушки к кинематографичному фото',
summary:
'Преобразует иллюстрацию персонажа в реалистичный теплый интерьерный портрет в винтажной тональности, сохраняя одежду, позу и кошку.',
},
'profile-avatar-casual-fashion-grid-photoshoot': {
title: 'Профиль / аватар - casual fashion grid-фотосессия',
summary:
'Структурированный JSON-промпт для коллажа из 4 кадров повседневной fashion-съемки с детализированными параметрами персонажа и света.',
},
'profile-avatar-cinematic-south-asian-male-portrait-with-vultures': {
title: 'Профиль / аватар - кинематографичный портрет южноазиатского мужчины с грифами',
summary:
'Детализированный кинематографичный портрет молодого южноазиатского мужчины в мрачной фэнтези-сцене, окруженного грифами и воронами.',
},
'profile-avatar-cyberpunk-anime-portrait-with-neon-face-text': {
title: 'Профиль / аватар - киберпанк-аниме-портрет с неоновым текстом на лице',
summary:
'Стильный неоновый аниме-портрет для постера, арта для соцсетей или футуристических бренд-визуалов.',
},
'profile-avatar-elegant-fantasy-girl-in-violet-garden': {
title: 'Профиль / аватар - элегантная фэнтези-героиня в фиолетовом саду',
summary:
'Создает выверенный аниме-фэнтези-портрет элегантной девушки с блестяще уложенными волосами, фиолетово-черным образом и волшебным цветочным садом.',
},
'profile-avatar-ethereal-blue-haired-fantasy-portrait': {
title: 'Профиль / аватар - эфирный фэнтези-портрет с голубыми волосами',
summary:
'Создает мягкий сияющий аниме-фэнтези-портрет для вертикального key art или изящных иллюстраций персонажа с струящимися волосами.',
},
'profile-avatar-glamorous-woman-in-black-portrait': {
title: 'Профиль / аватар - гламурный женский портрет в черном',
summary:
'Создает фотореалистичный люксовый портрет элегантной женщины в черном образе, подходящий для fashion editorials и beauty-визуалов.',
},
'profile-avatar-hyper-realistic-selfie-texture-prompts': {
title: 'Профиль / аватар - гиперреалистичные промпты для текстуры селфи',
summary:
'Детализированные заготовки промптов для реалистичных текстур кожи и естественного кадрирования смартфонного селфи с видимыми порами и мягким дневным светом.',
},
'profile-avatar-lavender-fantasy-mage-portrait': {
title: 'Профиль / аватар - лавандовый портрет фэнтези-магессы',
summary:
'Создает выверенный аниме-фэнтези-портрет элегантной принцессы-магессы со светлыми волосами, фиолетовыми цветами и платьем, напоминающим кристаллы.',
},
'profile-avatar-monochrome-studio-portrait': {
title: 'Профиль / аватар - монохромный студийный портрет',
summary:
'Премиальный промпт для коммерческой съемки монохромного портрета с выразительным разделенным фоном и драматичным студийным светом.',
},
'profile-avatar-old-photo-restoration-to-dslr-portrait': {
title: 'Профиль / аватар - реставрация старого фото в DSLR-портрет',
summary:
'Восстанавливает поврежденное винтажное семейное фото с четырьмя людьми в чистый, раскрашенный и высокодетализированный реалистичный портрет.',
},
'profile-avatar-poetic-woman-in-garden-portrait': {
title: 'Профиль / аватар - поэтичный женский портрет в саду',
summary:
'Создает реалистичный editorial-портрет читающей молодой женщины в солнечном саду — для lifestyle-фотографии или literary branding.',
},
'profile-avatar-professional-identity-portrait-wallpaper': {
title: 'Профиль / аватар - обои с профессиональным имиджевым портретом',
summary:
'Создает премиальные обои высокого разрешения с человеком в профессиональном образе, рабочими действиями и типографикой.',
},
'profile-avatar-realistically-imperfect-ai-selfie': {
title: 'Профиль / аватар - намеренно несовершенное AI-селфи',
summary:
'Креативный GPT-Image-2-промпт для "неудачного" селфи, которое выглядит как случайный смартфонный снимок низкого качества.',
},
'profile-avatar-signed-marker-portrait-on-shikishi': {
title: 'Профиль / аватар - подписанный маркерный портрет на сикиси',
summary:
'Создает яркий подписанный маркерный портрет на квадратной доске shikishi — для фан-арта с автографом и персональных благодарственных визуалов.',
},
'profile-avatar-snow-rabbit-empress-portrait': {
title: 'Профиль / аватар - портрет императрицы снежного кролика',
summary:
'Реалистичный фэнтези-промпт для царственного женского образа с мотивами кролика в зимнем ханьфу на фоне заснеженного горного храма.',
},
'profile-avatar-snow-rabbit-mask-hanfu-portrait': {
title: 'Профиль / аватар - портрет в ханьфу и маске снежного кролика',
summary:
'Создает кинематографичный зимний фэнтези-портрет женщины в белом ханьфу и маске с кроличьим мотивом — для изящного character art.',
},
'profile-avatar-snowy-rabbit-hanfu-portrait': {
title: 'Профиль / аватар - заснеженный портрет в ханьфу с кроличьим мотивом',
summary:
'Создает ультрадетализированный фэнтези beauty-портрет женщины с кроличьими ушами в расшитом ханьфу — для character art и costume design.',
},
'profile-avatar-snowy-rabbit-spirit-portrait': {
title: 'Профиль / аватар - заснеженный портрет духа-кролика',
summary:
'Создает спокойный фэнтези-портрет безымянной женщины с кроличьими ушами в зимнем антураже — для атмосферного character art.',
},
'profile-avatar-song-dynasty-hanfu-portrait': {
title: 'Профиль / аватар - портрет в ханьфу эпохи Сун',
summary:
'Оптимизированный промпт для детализированного реалистичного портрета красавицы в традиционном ханьфу династии Сун в древнем дворцовом окружении.',
},
'social-media-post-anime-pokemon-shop-outfit-teaser-poster': {
title: 'Пост для соцсетей - аниме-тизер наряда в магазине Pokemon',
summary:
'Создает мягкий пастельный аниме-fashion-постер с размытым лицом в интерьере магазина Pokemon.',
},
'social-media-post-cinematic-elevator-scene': {
title: 'Пост для соцсетей - кинематографичная сцена в лифте',
summary:
'Промпт для мрачной кинематографичной сцены с женщиной в металлическом лифте, с реалистичным светом и отражениями.',
},
'social-media-post-confused-elf-girl-at-pastel-desk': {
title: 'Пост для соцсетей - растерянная эльфийка за пастельным столом',
summary:
'Создает мягкую пастельную аниме-иллюстрацию эльфийки за компьютером в уютном kawaii-рабочем пространстве.',
},
'social-media-post-editorial-fashion-photography': {
title: 'Пост для соцсетей - editorial fashion-фотография',
summary:
'Атмосферный промпт с акцентом на моду для минималистичной студийной сцены с мягким светом и теплыми тонами.',
},
'social-media-post-fashion-editorial-collage': {
title: 'Пост для соцсетей - fashion editorial-коллаж',
summary:
'Высокодетализированный промпт для фотоколлажа 2x2 из editorial fashion-съемки с единым стайлингом, точно заданным светом и референсным лицом.',
},
'social-media-post-psg-transfer-announcement-poster': {
title: 'Пост для соцсетей - постер о трансфере в PSG',
summary:
'Яркий профессиональный футбольный постер о подписании игрока для объявления о переходе в Paris Saint-Germain.',
},
'social-media-post-showa-day-retro-culture-magazine-cover': {
title: 'Пост для соцсетей - ретро-культурная журнальная обложка ко Дню Сёва',
summary:
'Теплая редакционная страница о японском празднике с аниме-артом, ностальгической уличной сценой эпохи Сёва и журнальной версткой.',
},
'social-media-post-social-media-fashion-outfit-generation': {
title: 'Пост для соцсетей - генерация fashion-образов',
summary:
'Промпт для создания недельной подборки образов fashion-блогера на основе профиля персонажа, с подписями брендов и ценами.',
},
'social-media-post-travel-snapshot-collage-prompt': {
title: 'Пост для соцсетей - коллаж из travel-снимков',
summary:
'Детализированный промпт для ностальгического коллажа из 12 кадров, похожих на смартфонные фото из одиночного путешествия.',
},
'social-media-post-vintage-sign-painter-sketch': {
title: 'Пост для соцсетей - винтажный эскиз вывески от sign painter',
summary:
'Создает нарисованный маркером эскиз на бумаге с реалистичными деталями вроде графитных линий и наплывов чернил.',
},
'vr-headset-exploded-view-poster': {
title: 'Постер со взрывной схемой VR-гарнитуры',
summary:
'Создает технологичную взрывную схему VR-гарнитуры с детализированными выносками компонентов и рекламным текстом.',
},
'3d-animated-boy-building-lego': {
title: '3D-анимированный мальчик собирает Lego',
summary:
'Промпт для многокадрового видео в стиле 3D-анимации о мальчике, который аккуратно собирает Lego в комнате, включая эффекты time-lapse.',
},
'a-decade-of-refinement-glow-up': {
title: 'Десять лет шлифовки: glow-up',
summary:
'Трансформационный промпт для Seedance 2.0, который проводит мужчину от расслабленного сеттинга 2016 года к роскошному лайфстайлу Дубая 2026 года.',
},
'ancient-guardian-dragon-rescue': {
title: 'Спасение древним драконом-хранителем',
summary:
'Детализированный кинематографичный multi-shot-промпт о девочке в дождливой деревне, которую спасает появившийся дракон.',
},
'ancient-indian-kingdom-fpv-video': {
title: 'FPV-видео древнего индийского царства',
summary:
'Быстрый кинематографичный FPV-дрон-промпт, показывающий мистическое индийское царство с храмами и джунглями.',
},
'animation-transfer-and-camera-tracking-prompt': {
title: 'Промпт для animation transfer и camera tracking',
summary:
'Технический промпт для Seedance 2.0, который переносит заданный референс движения на персонажа и одновременно удерживает стабильный tracking камеры.',
},
'beat-synced-outfit-transformation-dance': {
title: 'Танец с beat-synced трансформацией костюма',
summary:
'Промпт для Seedance 2.0, где персонаж танцует по breakdown-кадрам и синхронно с битом меняет образ.',
},
'character-intro-motion-graphics-sequence': {
title: 'Motion-graphics-секвенция знакомства с персонажем',
summary:
'Сложный многосоставный motion-graphics-промпт для представления команды персонажей с UI-оверлеями и переходами.',
},
'cinematic-birthday-celebration-sequence': {
title: 'Кинематографичная секвенция празднования дня рождения',
summary:
'Высокодетализированный multi-shot-видеопромпт для сцены дня рождения с упором на консистентность персонажей и эмоциональный сторителлинг.',
},
'cinematic-dragon-interaction-flight': {
title: 'Кинематографичное взаимодействие с драконом и полет',
summary:
'Детализированный storyboard-промпт для видео с эмоциональным взаимодействием женщины и дракона, за которым следует кинематографичный полет.',
},
'cinematic-east-asian-woman-hand-dance': {
title: 'Кинематографичный танец рук восточноазиатской женщины',
summary:
'Высокодетализированный кинематографичный multi-shot-видеопромпт для стилизованного танца рук с поминутными указаниями по камере и действию.',
},
'cinematic-emotional-face-close-up': {
title: 'Кинематографичный эмоциональный крупный план лица',
summary:
'Высокодетализированный технический промпт для Seedance 2.0 с упором на реалистичные текстуры кожи и сложные эмоциональные переходы на лице.',
},
'cinematic-marine-biologist-exploration': {
title: 'Кинематографичное исследование морского биолога',
summary:
'Детализированный кинематографичный видеопромпт для подводной сцены, где морской биолог обнаруживает старый затонувший корабль в коралловом рифе.',
},
'cinematic-music-podcast-and-guitar-technique': {
title: 'Кинематографичный музыкальный подкаст и гитарная техника',
summary:
'Продвинутый кинематографичный промпт для 4K-видео музыкального подкаста с фокусом на гитарную технику, pinch harmonics и студийную эстетику.',
},
'cinematic-route-navigation-guide': {
title: 'Кинематографичный гид по маршруту',
summary:
'Структурированный multi-scene-промпт для Seedance, создающий консистентное walking-navigation-видео с повторяющимся гидом.',
},
'cinematic-street-racing-sequence-for-seedance-2': {
title: 'Кинематографичная street-racing-секвенция для Seedance 2',
summary:
'Детализированный multi-shot-промпт для ночной street-racing-сцены с интенсивным фокусом на водителе, динамичной камерой и взрывным разгоном.',
},
'cinematic-vampire-alley-fight-sequence': {
title: 'Кинематографичная вампирская драка в переулке',
summary:
'Развернутый экшен-промпт для сцены короткометражки с динамичной камерой и скоростным боем в неоновом переулке.',
},
'crimson-horizon-sci-fi-cinematic-sequence': {
title: 'Кинематографичная sci-fi-секвенция Crimson Horizon',
summary:
'Полноценная 9-shot-кинематографическая последовательность для sci-fi-фильма "Crimson Horizon" — от запуска ракеты до тревожной встречи с пришельцем на Марсе.',
},
'cyberpunk-game-trailer-script': {
title: 'Сценарий трейлера киберпанк-игры',
summary:
'Развернутый видеопромпт для трейлера киберпанк-игры с character design, UI-анимациями и сменой окружения от белого void к фавеле.',
},
'forbidden-city-cat-satire': {
title: 'Сатира с котом в Запретном городе',
summary:
'Сложный dark comedy-промпт для Seedance 2.0 с рыжим котом-чиновником и императором-гиеной в сатирической сцене времен Цин.',
},
'game-screenshot-anime-fighting-game-captain-ryuuga-vs-kaze-renshin': {},
'game-screenshot-three-kingdoms-guanyu-slaying-yanliang': {},
'game-screenshot-three-kingdoms-lyubu-yuanmen-archery': {},
'game-screenshot-three-kingdoms-zhaoyun-cradle-escape': {},
'hollywood-haute-couture-fantasy-video-prompt': {
title: 'Фэнтези-видеопромпт в духе Hollywood haute couture',
summary:
'Детализированный multi-scene-видеопромпт для Seedance 2.0, рассчитанный на фэнтези-фильм в эстетике Hollywood haute couture с 8K / Unreal Engine.',
},
'hyperframes-app-showcase-three-phones': {
title: 'HyperFrames: 12-секундная демонстрация приложения — три парящих телефона',
summary:
'12-секундная композиция 16:9 для демонстрации приложения — три парящих экрана iPhone висят в 3D-пространстве и по очереди вращаются, показывая разные функции; есть beat-синхронные label-callout\'ы и финальный logo lockup. Напрямую построено на каталожном блоке HyperFrames `app-showcase`.',
},
'hyperframes-brand-sizzle-reel': {
title: 'HyperFrames: 30-секундный брендовый sizzle reel',
summary:
'30-секундный sizzle reel HyperFrames в формате 16:9 — быстрый монтаж, beat-синхронная кинетическая типографика, audio-reactive масштабирование ключевых слов, shader-переходы между пятью сценами и финальная end card с bloom-логотипом. Смоделировано по архетипу aisoc-hype из Student Kit.',
},
'hyperframes-data-bar-chart-race': {
title: 'HyperFrames: анимированная гонка столбчатых диаграмм в стиле NYT',
summary:
'12-секундная инфографика 16:9 — анимированные столбики и линейный график с поэтапным раскрытием категорий, serif-заголовком в духе NYT, сноской с источником и кинетическими метками значений. Напрямую построено на каталожном блоке HyperFrames `data-chart`.',
},
'hyperframes-flight-map-route': {
title: 'HyperFrames: карта перелета в стиле Apple (от точки отправления к точке назначения)',
summary:
'8-секундная кинематографичная карта маршрута 16:9 — реалистичный зум по рельефу, анимированный самолет, скользящий по изогнутому маршруту от отправления к прибытию, подписанные города и кинетический счетчик расстояния. Построено на каталожном блоке HyperFrames `nyc-paris-flight` и переиспользуемо для любой пары городов.',
},
'hyperframes-logo-outro-cinematic': {
title: 'HyperFrames: 4-секундное кинематографичное logo outro',
summary:
'4-секундное outro с логотипом в формате 16:9 — покомпонентная сборка wordmark, shimmer-sweep по финальному lockup, мягкий grain overlay и однострочный CTA. Основано на блоках HyperFrames `logo-outro`, `shimmer-sweep` и `grain-overlay`.',
},
'hyperframes-money-counter-hype': {
title: 'HyperFrames: hype-ролик со счетчиком от $0 до $10K (9:16)',
summary:
'6-секундный вертикальный HyperFrames-клип 1080x1920 — счетчик в духе Apple от $0 до $10 000 с зеленой вспышкой, денежными частицами, иконкой пачки наличных и заголовком-kicker. Основано на каталожном блоке HyperFrames `apple-money-count`.',
},
'hyperframes-product-reveal-minimal': {
title: 'HyperFrames: 5-секундный минималистичный product reveal',
summary:
'5-секундная композиция HyperFrames для премиального product reveal — темное полотно, один теплый акцент, медленный push-in титульной карточки, кинетическая kicker-строка и сдержанное движение. Агент рендерит MP4 из HTML + GSAP через Puppeteer; стоковое видео не требуется.',
},
'hyperframes-saas-product-promo-30s': {
title: 'HyperFrames: 30-секундное SaaS product promo в стиле Linear',
summary:
'30-секундная композиция HyperFrames, смоделированная по продуктовым роликам в духе Linear / ClickUp — 3D-reveal интерфейса, beat-синхронная кинетическая типографика, анимированные UI-скриншоты и финальная карточка с logo outro. Собирается из каталожных HF-блоков `ui-3d-reveal`, `app-showcase`, `logo-outro` и shader-переходов между сценами.',
},
'hyperframes-social-overlay-stack': {
title: 'HyperFrames: вертикальный стек соцоверлеев 9:16 (X · Reddit · Spotify · Instagram)',
summary:
'15-секундная вертикальная композиция HyperFrames 1080x1920, в которой поверх face-cam-loop по очереди наслаиваются четыре анимированные social card: пост X, реакция Reddit, карточка Spotify Now Playing и финальный Instagram follow CTA. Каждая карточка — каталожный блок HyperFrames; ценность в хореографии.',
},
'hyperframes-tiktok-karaoke-talking-head': {
title: 'HyperFrames: talking head для TikTok 9:16 с караоке-субтитрами',
summary:
'Вертикальный HyperFrames-short 1080x1920 — talking head с TTS-озвучкой поверх face-cam-loop, с караоке-подобными пословно синхронизированными субтитрами, animated lower third и финальным TikTok follow overlay. Повторяет архетип may-shorts-19 из HyperFrames Student Kit.',
},
'hyperframes-website-to-video-promo': {
title: 'HyperFrames: конвейер website-to-video (15-секундный маркетинговый монтаж)',
summary:
'15-секундная композиция HyperFrames 16:9, которая захватывает живой сайт в трех размерах viewport, а затем анимирует сцены с помощью chromatic radial split. Повторяет архетип hyperframes-sizzle из Student Kit, где сайт служит исходным ассетом.',
},
'hunched-character-animation': {
title: 'Анимация сутулого персонажа',
summary:
'Инструкция для Seedance 2 по созданию walking-анимации на месте для заданного референса персонажа.',
},
'live-action-anime-adaptation-water-vs-thunder-breathing-duel': {
title: 'Live-action-аниме-адаптация: дуэль водного и громового дыхания',
summary:
'Высокодетализированный 15-секундный промпт для live-action-адаптации аниме-дуэли с синими водными и золотыми электрическими эффектами.',
},
'luxury-supercar-cinematic-narrative': {
title: 'Кинематографичный сюжет о роскошном суперкаре',
summary:
'Высокодетализированный multi-shot-промпт для Seedance 2.0 со стильным мужчиной, доберманами и винтажным суперкаром в туманном горном пейзаже.',
},
'magical-academy-storyboard-sequence': {
title: 'Сториборд-секвенция магической академии',
summary:
'Детализированный сториборд-промпт для кинематографичной последовательности о magical girl в академии — от прибытия до магической дуэли.',
},
'modern-rural-aesthetics-healing-short-film-video-prompt': {
title: 'Healing-короткометражка в эстетике современного rural',
summary:
'Детализированный three-shot-промпт для Seedance 2.0, создающий исцеляющую кинематографичную короткометражку в современной rural-aesthetic.',
},
'nightclub-flyer-atmospheric-animation': {
title: 'Атмосферная анимация nightclub-флайера',
summary:
'Ненавязчивый анимационный промпт для Seedance 2.0, который оживляет фон и световые элементы, оставляя основной мотив неподвижным.',
},
'retro-hk-wuxia-film-aesthetic': {
title: 'Эстетика ретро-HK wuxia-фильма',
summary:
'Сложный многосоставный видеопромпт, воссоздающий гонконгскую wuxia-эстетику 80-х и 90-х с превращением кота в человека.',
},
'seedance-2-0-15-second-cinematic-japanese-romance-short-film': {
title: 'Seedance 2.0: 15-секундная кинематографичная японская romance-короткометражка',
summary:
'Высокодетализированный multi-scene-промпт на 15 секунд для кинематографичной и ультрареалистичной японской школьной romance-короткометражки.',
},
'seedance-2-0-80-year-old-rapper-mv': {
title: 'Seedance 2.0: 80-летняя рэперша в музыкальном видео',
summary:
'Детализированный 15-секундный промпт для уличного рэп-клипа 16:9 с 80-летней женщиной и холодной неоново-фиолетово-синей палитрой.',
},
'sequence-and-movement-instruction-for-martial-arts-video': {
title: 'Инструкция по последовательности и движению для видео о единоборствах',
summary:
'Видеопромпт для Seedance 2.0, который анимирует секвенцию по character sheet и подчеркивает конкретные движения и шаги.',
},
'soul-switching-mirror-magic-sequence': {
title: 'Магическая зеркальная секвенция с обменом душами',
summary:
'Нарративный видеопромпт о магическом обмене душами у зеркала, с указаниями по камере и эмоциональными cues.',
},
'toaster-rocket-jumpscare': {
title: 'Джампскейр с тостером-ракетой',
summary:
'Промпт для реалистичной домашней видеосцены, в которой пожилой мужчина пугается, когда тостер выстреливает хлебом как ракетой.',
},
'traditional-dance-performance': {
title: 'Традиционное танцевальное выступление',
summary:
'Развернутый видеопромпт для Seedance 2.0 с изящным традиционным танцем, построенным на референсах хореографии и внешности.',
},
'video-seedance-three-kingdoms-guanyu-slaying-yanliang': {},
'video-seedance-three-kingdoms-lyubu-yuanmen-archery': {},
'video-seedance-three-kingdoms-zhaoyun-cradle-escape': {},
'vintage-disney-style-pirate-crocodile-animation': {
title: 'Пиратская крокодилья анимация в духе винтажного Disney',
summary:
'Многосценный нарративный промпт для классической disney-style-анимации с винтажным оттенком, крокодилом-пиратом и птицами-пиратами на корабле.',
},
'viral-k-pop-dance-choreography': {
title: 'Вирусная K-pop-хореография',
summary:
'Детализированный промпт для Seedance 2.0, где персонаж танцует хореографию по 16-панельному storyboard-референсу.',
},
'wasteland-factory-chase': {
title: 'Погоня по пустоши с фабрикой на ходу',
summary:
'Кинематографичный промпт для скоростной пустынной wasteland-сцены с шагающей индустриальной фабрикой и погоней на rebel bike.',
},
'game-ui-ancient-china-open-world-mmo-hud': {
title: 'Игровой UI - древний Китай, HUD open-world MMO',
summary:
'Создает mockup внутриигрового HUD-скриншота для AAA open-world MMO о древнем Китае в кинематографичном фотореалистичном стиле Black Myth: Wukong, с акцентом на мечницу в туманной горной сцене и полным MMO-HUD (панель персонажа, миникарта, хотбар навыков, трекер квестов, чат).',
},
'illustration-crayon-kid-drawing-rework': {
title: 'Иллюстрация - переработка детского рисунка восковыми мелками',
summary:
'Промпт для style transfer, который превращает любое референсное изображение в нарисованную от руки восковыми мелками иллюстрацию, будто ее сделал десятилетний ребенок. Исходная палитра заменяется яркими, игривыми мелковыми цветами на чистой белой бумаге, с детскими декоративными мотивами — замками, сладостями, звездами и радугами. Работает как image-to-image-редактирование в GPT-image-2.',
},
'social-media-post-sensational-girl-dance-storyboard-8-shots': {
title: 'Пост для соцсетей - танцевальный сториборд стильной героини (8 кадров)',
summary:
'Полный набор промптов для сториборда из 8 кадров, предназначенный для генерации цельной танцевальной последовательности со стильным персонажем кадр за кадром. Включает общие глобальные style tokens, переиспользуемый negative prompt и восемь отдельных кадров (стартовая поза -> groove бедрами -> body wave -> поворот бедер на бит-дропе -> боковое покачивание бедрами -> бросок волос -> power stance -> финальная поза).',
},
};
File diff suppressed because it is too large Load Diff
+156
View File
@@ -0,0 +1,156 @@
'use client';
import {
createContext,
useCallback,
useContext,
useEffect,
useMemo,
useState,
type ReactNode,
} from 'react';
import { de } from './locales/de';
import { en } from './locales/en';
import { esES } from './locales/es-ES';
import { fa } from './locales/fa';
import { ar } from './locales/ar';
import { ja } from './locales/ja';
import { ko } from './locales/ko';
import { ptBR } from './locales/pt-BR';
import { ru } from './locales/ru';
import { zhCN } from './locales/zh-CN';
import { zhTW } from './locales/zh-TW';
import { pl } from './locales/pl';
import { hu } from './locales/hu';
import { fr } from './locales/fr';
import { uk } from './locales/uk';
import { tr } from './locales/tr';
import { LOCALES, type Dict, type Locale } from './types';
export { LOCALES, LOCALE_LABEL } from './types';
export type { Locale } from './types';
type DictKey = keyof Dict;
const DICTS: Record<Locale, Dict> = {
'en': en,
'de': de,
'zh-CN': zhCN,
'zh-TW': zhTW,
'pt-BR': ptBR,
'es-ES': esES,
'ru': ru,
'fa': fa,
'ar': ar,
'ja': ja,
'ko': ko,
'pl': pl,
'hu': hu,
'fr': fr,
'uk': uk,
'tr': tr,
};
const LS_KEY = 'open-design:locale';
// First-run default is English. We honor an explicit user pick saved to
// localStorage but never auto-detect from `navigator.language`, so the
// initial experience is consistent and predictable.
function detectInitialLocale(): Locale {
if (typeof window === 'undefined') return 'en';
try {
const stored = window.localStorage.getItem(LS_KEY);
if (stored && (LOCALES as string[]).includes(stored)) {
return stored as Locale;
}
} catch {
/* ignore */
}
return 'en';
}
interface I18nContextValue {
locale: Locale;
setLocale: (next: Locale) => void;
t: (key: DictKey, vars?: Record<string, string | number>) => string;
}
const I18nContext = createContext<I18nContextValue | null>(null);
interface ProviderProps {
initial?: Locale;
children: ReactNode;
}
const RTL_LOCALES: Locale[] = ['ar', 'fa'];
export function I18nProvider({ initial, children }: ProviderProps) {
const [locale, setLocaleState] = useState<Locale>(() => initial ?? detectInitialLocale());
// Keep <html lang="…" dir="…"> in sync so screen readers and CSS hooks
// pick the right language token and direction without each component
// having to set it itself.
useEffect(() => {
if (typeof document !== 'undefined') {
const dir = RTL_LOCALES.includes(locale) ? 'rtl' : 'ltr';
document.documentElement.setAttribute('lang', locale);
document.documentElement.setAttribute('dir', dir);
}
}, [locale]);
const setLocale = useCallback((next: Locale) => {
setLocaleState(next);
try {
window.localStorage.setItem(LS_KEY, next);
} catch {
/* ignore */
}
}, []);
const t = useCallback(
(key: DictKey, vars?: Record<string, string | number>): string => {
const dict = DICTS[locale] ?? en;
const raw = dict[key] ?? en[key] ?? key;
if (!vars) return raw;
return raw.replace(/\{(\w+)\}/g, (_, name: string) => {
const v = vars[name];
return v == null ? `{${name}}` : String(v);
});
},
[locale],
);
const value = useMemo<I18nContextValue>(
() => ({ locale, setLocale, t }),
[locale, setLocale, t],
);
return <I18nContext.Provider value={value}>{children}</I18nContext.Provider>;
}
export function useI18n(): I18nContextValue {
const ctx = useContext(I18nContext);
if (!ctx) {
// Fall back to a stand-alone English translator when no provider is
// mounted (e.g. an isolated test). This keeps the API safe to call
// without requiring every callsite to wrap in a provider.
return {
locale: 'en',
setLocale: () => { },
t: (key, vars) => {
const raw = en[key] ?? key;
if (!vars) return raw;
return raw.replace(/\{(\w+)\}/g, (_, n: string) => {
const v = vars[n];
return v == null ? `{${n}}` : String(v);
});
},
};
}
return ctx;
}
// Convenience for components that only need the translator function.
export function useT(): I18nContextValue['t'] {
return useI18n().t;
}
+951
View File
@@ -0,0 +1,951 @@
import { en } from './en';
import type { Dict } from '../types';
export const ar: Dict = {
...en,
'common.cancel': 'إلغاء',
'common.save': 'حفظ',
'common.close': 'إغلاق',
'common.delete': 'حذف',
'common.rename': 'إعادة تسمية',
'common.preview': 'معاينة',
'common.share': 'مشاركة',
'common.search': 'بحث',
'common.searchEllipsis': 'بحث...',
'common.loading': 'جاري التحميل...',
'common.all': 'الكل',
'common.none': 'لا شيء',
'common.default': 'افتراضي',
'common.installed': 'مثبت',
'common.notInstalled': 'غير مثبت',
'common.active': 'نشط',
'common.offline': 'غير متصل',
'common.selected': 'محدد',
'common.create': 'إنشاء',
'common.openPreview': 'فتح المعاينة',
'common.exitFullscreen': 'الخروج من ملء الشاشة',
'common.fullscreen': 'ملء الشاشة',
'common.openInNewTab': 'فتح في علامة تبويب جديدة',
'common.exportPdf': 'تصدير كـ PDF',
'common.exportZip': 'تحميل كـ zip.',
'common.exportHtml': 'تصدير كـ HTML مستقل',
'common.justNow': 'الآن',
'common.minutesAgo': 'منذ {n} دقيقة',
'common.hoursAgo': 'منذ {n} ساعة',
'common.daysAgo': 'منذ {n} يوم',
'common.now': 'الآن',
'common.minutesShort': '{n} د',
'common.hoursShort': '{n} سا',
'common.daysShort': '{n} ي',
'common.untitled': 'بدون عنوان',
'app.brand': 'Open Design',
'app.brandPill': 'معاينة البحث',
'app.brandSubtitle': 'بواسطة Nexu Labs',
'app.welcomeLoading': 'جاري تحميل مساحة العمل...',
'settings.welcomeKicker': 'مرحباً',
'settings.welcomeTitle': 'إعداد Open Design',
'settings.welcomeSubtitle':
"اختر كيف تريد تشغيل الأجيال. يمكنك تغيير هذا في أي وقت من زر الإعدادات في الشريط العلوي.",
'settings.kicker': 'الإعدادات',
'settings.title': 'التنفيذ والنموذج',
'settings.subtitle': 'اختر بين CLI المحلي و BYOK. يتم حفظ مفتاح API في هذا المتصفح فقط.',
'settings.modeAria': 'وضع التنفيذ',
'settings.protocolAria': 'بروتوكول API',
'settings.modeDaemon': 'CLI محلي',
'settings.modeDaemonHelp': 'التشغيل عبر واجهة CLI على جهازك',
'settings.modeDaemonOffline': 'البرنامج الخفي لا يعمل',
'settings.modeDaemonOfflineMeta': 'غير متصل',
'settings.modeDaemonInstalledMeta': '{count} مثبت',
'settings.modeApi': 'مزود API',
'settings.modeApiMeta': 'BYOK',
'settings.codeAgent': 'وكيل الكود',
'settings.codeAgentHint':
'تم اكتشافه عبر مسح PATH الخاص بك. اختر واجهة CLI التي تريد أن تمر الأجيال عبرها.',
'settings.rescan': '↻ إعادة المسح',
'settings.rescanTitle': 'إعادة مسح PATH',
'settings.rescanRunning': 'جارٍ المسح...',
'settings.rescanSuccess': 'اكتمل المسح. {count} متاح.',
'settings.rescanFailed': 'فشل المسح. تحقق من البرنامج الخفي وحاول مرة أخرى.',
'settings.noAgentsDetected':
'لم يتم اكتشاف أي وكلاء بعد. قم بتثبيت Claude Code أو Codex أو Devin أو Gemini CLI أو OpenCode أو Cursor Agent أو Qwen أو GitHub Copilot CLI، ثم اضغط على إعادة المسح.',
'settings.apiSection': 'Anthropic API',
'settings.quickFillProvider': 'ملء المزوّد سريعًا',
'settings.customProvider': 'مزوّد مخصص',
'settings.apiKey': 'مفتاح API',
'settings.showKey': 'إظهار المفتاح',
'settings.hideKey': 'إخفاء المفتاح',
'settings.show': 'إظهار',
'settings.hide': 'إخفاء',
'settings.model': 'النموذج',
'settings.suggestedModelsHint':
'هذه نماذج مقترحة لهذا البروتوكول. قد يدعم مزوّدك نماذج مختلفة.',
'settings.baseUrl': 'رابط القاعدة',
'settings.baseUrlInvalid': 'أدخل رابط http:// أو https:// عام وصالح. يُسمح بـ localhost؛ ويتم حظر عناوين IP للشبكات الخاصة.',
'settings.azureDeploymentModel': 'اسم النشر',
'settings.azureDeploymentModelHint':
'في Azure OpenAI، يُستخدم هذا الحقل كاسم النشر في /openai/deployments/<model>. أدخل اسم النشر الذي أنشأته في Azure.',
'settings.apiVersion': 'إصدار API',
'settings.maxTokens': 'أقصى عدد من الرموز (اختياري)',
'settings.maxTokensHint':
'الحد الأقصى لطول الاستجابة. لكل نموذج قيمة افتراضية؛ اتركها فارغة لاستخدامها، أو أدخل رقماً للتجاوز.',
'settings.apiHint': 'تُرسل الطلبات عبر وكيل daemon المحلي إلى Base URL الذي تحدده. يُحفظ المفتاح في هذا المتصفح فقط ويُرسل مع طلبات المزود.',
'settings.skipForNow': 'تخطي الآن',
'settings.getStarted': 'ابدأ الآن',
'settings.envConfigure': 'تكوين وضع التنفيذ',
'settings.localCli': 'CLI محلي',
'settings.anthropicApi': 'Anthropic API',
'settings.noAgentSelected': 'لم يتم اختيار وكيل',
'settings.language': 'اللغة',
'settings.languageHint': 'تغيير لغة الواجهة. تحفظ في المتصفح.',
'settings.appearance': 'المظهر',
'settings.appearanceHint': 'اختر الفاتح، الداكن، أو اتبع إعدادات النظام.',
'settings.themeSystem': 'النظام',
'settings.themeLight': 'فاتح',
'settings.themeDark': 'داكن',
'settings.modelPicker': 'النموذج',
'settings.reasoningPicker': 'جهد التفكير',
'settings.modelPickerHint':
'يتم جلبه من CLI عندما يعرض أمر `models`. "الافتراضي" يترك الخيار لإعدادات CLI؛ "مخصص..." يسمح لك بكتابة أي معرف نموذج يقبله CLI.',
'settings.cliEnvTitle': 'CLI config locations',
'settings.cliEnvHint':
'Set non-secret config directories for packaged app runs and agent detection.',
'settings.cliEnvClaudeConfigDir': 'Claude Code config dir',
'settings.cliEnvCodexHome': 'Codex home',
'settings.modelCustom': 'مخصص (اكتب أدناه)...',
'settings.modelCustomLabel': 'معرف النموذج المخصص',
'settings.modelCustomPlaceholder': 'مثلاً: anthropic/claude-sonnet-4-6',
'settings.mediaProviders': 'مزودو الوسائط',
'settings.mediaProvidersHint':
'مفاتيح API لإنشاء الصور والفيديو والصوت. تخزن محلياً وتزامن مع البرنامج الخفي المحلي.',
'settings.mediaProviderApiKey': 'مفتاح API',
'settings.mediaProviderBaseUrl': 'رابط القاعدة',
'settings.mediaProviderConfigured': 'تم التكوين',
'settings.mediaProviderUnset': 'غير محدد',
'settings.mediaProviderClear': 'مسح',
'settings.mediaProviderPlaceholder': 'الصق مفتاح API',
'settings.mediaProviderBaseUrlPlaceholder': 'تجاوز رابط القاعدة الافتراضي',
'settings.about': 'حول',
'settings.aboutHint': 'تفاصيل النسخة ووقت التشغيل',
'settings.appVersion': 'النسخة',
'settings.appChannel': 'القناة',
'settings.appRuntime': 'وقت التشغيل',
'settings.appPlatform': 'المنصة',
'settings.appArchitecture': 'المعمارية',
'settings.runtimePackaged': 'تطبيق معبأ',
'settings.runtimeDevelopment': 'تطوير',
'settings.versionUnavailable': 'تفاصيل النسخة غير متوفرة بينما البرنامج الخفي غير متصل.',
'entry.tabDesigns': 'التصاميم',
'entry.tabExamples': 'أمثلة',
'entry.tabDesignSystems': 'أنظمة التصميم',
'entry.tabConnectors': 'الموصلات',
'entry.openSettingsTitle': 'الإعدادات',
'entry.openSettingsAria': 'فتح الإعدادات',
'entry.resizeAria': 'تغيير حجم الشريط الجانبي',
'entry.loadingWorkspace': 'جاري تحميل مساحة العمل...',
'entry.tabImageTemplates': 'قوالب الصور',
'entry.tabVideoTemplates': 'قوالب الفيديو',
'promptTemplates.searchPlaceholder': 'بحث في القوالب...',
'promptTemplates.countLabel': '{n} نتائج',
'promptTemplates.emptyImage': 'لم يتم تثبيت قوالب صور بعد.',
'promptTemplates.emptyVideo': 'لم يتم تثبيت قوالب فيديو بعد.',
'promptTemplates.emptyNoMatch': 'لا توجد قوالب تطابق بحثك.',
'promptTemplates.attributionFooter': 'مقتبس من مكتبات الأوامر العامة. كل بطاقة تشير إلى المؤلف الأصلي.',
'promptTemplates.openPreviewTitle': 'فتح الأمر والمعاينة',
'promptTemplates.sourcePrefix': 'المصدر:',
'promptTemplates.fetchError': 'تعذر تحميل جسم هذا القالب.',
'promptTemplates.promptLabel': 'جسم الأمر',
'promptTemplates.copyPrompt': 'نسخ الأمر',
'promptTemplates.copyDone': 'تم النسخ!',
'promptTemplates.modelHint': 'النموذج المقترح: {model}',
'promptTemplates.openSource': 'عرض الأصلي',
'promptTemplates.openFullscreen': 'فتح معاينة بملء الشاشة',
'promptTemplates.closeFullscreen': 'إغلاق معاينة بملء الشاشة',
'promptTemplates.retry': 'إعادة المحاولة',
'connectors.title': 'الموصلات',
'connectors.subtitle': 'مصادر بيانات محلية وقادمة يمكنها تشغيل العناصر الحية.',
'connectors.account': 'الحساب',
'connectors.noAccount': 'غير متصل',
'connectors.tools': 'الأدوات',
'connectors.connect': 'اتصال',
'connectors.disconnect': 'قطع الاتصال',
'connectors.configure': 'إعداد',
'connectors.unavailable': 'غير متاح',
'connectors.phaseStubTitle': 'واجهات الموصلات ستصل في المرحلة 3؛ هذه مجرد واجهة معاينة.',
'connectors.statusAvailable': 'متاح',
'connectors.statusConnected': 'متصل',
'connectors.statusError': 'خطأ',
'connectors.statusDisabled': 'معطل',
'connectors.gateTitle': 'قم بإعداد مفتاح Composio API أولاً',
'connectors.gateBody': 'تتطلب الموصلات مفتاح Composio API. أضفه في الإعدادات لتفعيل التكاملات المتاحة.',
'connectors.gateAction': 'فتح الإعدادات',
'connectors.aboutLabel': 'حول',
'connectors.detailsLabel': 'التفاصيل',
'connectors.statusLabel': 'الحالة',
'connectors.categoryLabel': 'الفئة',
'connectors.providerLabel': 'المزوّد',
'connectors.toolsSection': 'الأدوات',
'connectors.toolsLoading': 'جارٍ تحميل الأدوات…',
'connectors.noToolsAvailable': 'لا توجد أدوات متاحة بعد. بعد الاتصال ستظهر إمكانات هذا التكامل.',
'connectors.openDetailsAria': 'فتح تفاصيل {name}',
'connectors.toolsBadgeNone': 'لا أدوات',
'connectors.toolsBadgeOne': '{n} أداة',
'connectors.toolsBadgeMany': '{n} أدوات',
'connectors.searchPlaceholder': 'ابحث في الموصلات…',
'connectors.searchAriaLabel': 'ابحث في الموصلات حسب الاسم أو المزوّد أو الأداة',
'connectors.searchClear': 'مسح البحث',
'connectors.emptyNoMatchTitle': 'لا توجد موصلات تطابق “{query}”',
'connectors.emptyNoMatchBody': 'جرّب كلمة مفتاحية أخرى أو امسح البحث لعرض القائمة الكاملة.',
'connectors.emptyNoMatchAction': 'مسح البحث',
'newproj.tabPrototype': 'نموذج أولي',
'newproj.tabDeck': 'عرض تقديمي',
'newproj.tabTemplate': 'من قالب',
'newproj.tabOther': 'آخر',
'newproj.titlePrototype': 'نموذج أولي جديد',
'newproj.titleDeck': 'عرض تقديمي جديد',
'newproj.titleTemplate': 'ابدأ من قالب',
'newproj.titleImage': 'صورة جديدة',
'newproj.titleVideo': 'فيديو جديد',
'newproj.titleAudio': 'صوت جديد',
'newproj.titleOther': 'مشروع جديد',
'newproj.namePlaceholder': 'اسم المشروع',
'newproj.fidelityLabel': 'الدقة',
'newproj.fidelityWireframe': 'رسم تخطيطي',
'newproj.fidelityHigh': 'دقة عالية',
'newproj.toggleSpeakerNotes': 'استخدم ملاحظات المتحدث',
'newproj.toggleSpeakerNotesHint': 'نص أقل على الشرائح - احتفظ بنقاط الحديث في الملاحظات.',
'newproj.toggleAnimations': 'تضمين الرسوم المتحركة',
'newproj.toggleAnimationsHint':
'أضف الحركة (دخول، تحويم، انتقالات) فوق القالب.',
'newproj.templateLabel': 'القالب',
'newproj.noTemplatesTitle': 'لا توجد قوالب بعد',
'newproj.noTemplatesBody':
'افتح أي مشروع، ثم استخدم قائمة المشاركة داخل عارض الملفات لتحويله إلى قالب. ستظهر القوالب هنا.',
'newproj.savedTemplate': 'قالب محفوظ',
'newproj.fileSingular': 'ملف',
'newproj.filePlural': 'ملفات',
'newproj.create': 'إنشاء',
'newproj.createFromTemplate': 'إنشاء من قالب',
'newproj.createDisabledTitle':
'احفظ مشروعاً كقالب أولاً (قائمة المشاركة داخل أي مشروع).',
'newproj.importClaudeZip': 'استيراد ZIP من Claude Design',
'newproj.importClaudeZipTitle': 'استيراد تصدير .zip من Claude Design',
'newproj.importingClaudeZip': 'جاري الاستيراد...',
'newproj.privacyFooter': 'أنت فقط من يمكنه رؤية مشروعك افتراضياً.',
'newproj.designSystem': 'نظام التصميم',
'newproj.dsNoneFreeform': 'لا يوجد - شكل حر',
'newproj.dsNoneSubtitleEmpty': 'لا توجد رموز نظام، اختر لوحة الألوان الخاصة بك',
'newproj.dsNoneSubtitleSelected': 'تخطي رموز النظام. يختار الوكيل لوحة الألوان الخاصة به.',
'newproj.dsCategoryFallback': 'نظام التصميم',
'newproj.dsSearch': 'بحث في أنظمة التصميم...',
'newproj.dsModeAria': 'وضع الاختيار',
'newproj.dsModeSingle': 'فردي',
'newproj.dsModeMulti': 'متعدد',
'newproj.dsNoneTitle': 'لا يوجد - شكل حر',
'newproj.dsNoneSub': 'تخطي رموز النظام. يختار الوكيل لوحة الألوان الخاصة به.',
'newproj.dsEmpty': 'لا توجد أنظمة تصميم تطابق "{query}".',
'newproj.dsFootSingular': 'للإلهام فقط.',
'newproj.dsFootPlural': 'للإلهام فقط.',
'newproj.dsFootClear': 'مسح',
'newproj.dsBadgeDefault': 'افتراضي',
'newproj.dsPrimaryFallback': 'أساسي',
'newproj.surfaceImage': 'صورة',
'newproj.surfaceVideo': 'فيديو',
'newproj.surfaceAudio': 'صوت',
'newproj.modelLabel': 'النموذج',
'newproj.aspectLabel': 'الأبعاد',
'newproj.imageStyleLabel': 'ملاحظات الأسلوب',
'newproj.imageStylePlaceholder': 'صورة تحريرية، ضوء نهار ناعم، لوحة ألوان هادئة',
'newproj.videoLengthLabel': 'الطول',
'newproj.videoLengthSeconds': '{n} ثا',
'newproj.audioKindLabel': 'نوع الصوت',
'newproj.audioKindMusic': 'موسيقى',
'newproj.audioKindSpeech': 'كلام / TTS',
'newproj.audioKindSfx': 'تأثيرات صوتية',
'newproj.audioDurationLabel': 'المدة',
'newproj.audioDurationSeconds': '{n} ثا',
'newproj.voiceLabel': 'الصوت',
'newproj.voicePlaceholder': 'معرف صوت المزود، اختياري',
'newproj.connectorsLabel': 'الموصلات',
'newproj.connectorsHint': 'مصادر البيانات التي يمكن لهذا العنصر استخدامها.',
'newproj.connectorsEmptyTitle': 'لا توجد موصلات مُعدّة',
'newproj.connectorsEmptyBody': 'صِل مصدر بيانات حتى يستخدم العنصر الحي بيانات حقيقية بدل العناصر النائبة.',
'newproj.connectorsEmptyCta': 'إعداد الموصلات ←',
'newproj.connectorsLoading': 'جارٍ تحميل الموصلات…',
'newproj.connectorsCountOne': '{n} متصل',
'newproj.connectorsCountMany': '{n} متصل',
'newproj.connectorsManage': 'إدارة',
'newproj.promptTemplateLabel': 'قالب مرجعي',
'newproj.promptTemplateNoneTitle': 'لا يوجد - اكتب خاصتك',
'newproj.promptTemplateNoneSub': 'تخطي المعرض، صف موجزك الخاص',
'newproj.promptTemplateRefSub': 'قالب مرجعي',
'newproj.promptTemplateSearch': 'بحث في القوالب...',
'newproj.promptTemplateEmpty': 'لم يتم تثبيت قوالب لهذه السطح بعد.',
'newproj.promptTemplateBodyLabel': 'الأمر (يمكنك ضبطه)',
'newproj.promptTemplateOptimizeHint':
'عدل أي شيء - تغييراتك تنتقل إلى موجز الوكيل.',
'newproj.promptTemplateBodyEmpty':
'جسم فارغ - لن يحصل الوكيل على مرجع قالب.',
'designs.subRecent': 'الأخيرة',
'designs.subYours': 'تصاميمك',
'designs.filterAria': 'تصفية المشاريع',
'designs.searchPlaceholder': 'بحث...',
'designs.emptyNoProjects': 'لا توجد مشاريع بعد. أنشئ واحداً على اليسار.',
'designs.emptyNoMatch': 'لا توجد مشاريع تطابق بحثك.',
'designs.deleteTitle': 'حذف المشروع',
'designs.deleteConfirm': 'هل تريد حذف "{name}"؟',
'designs.cardFreeform': 'شكل حر',
'designs.status.notStarted': 'لم يبدأ',
'designs.status.queued': 'في الانتظار',
'designs.status.running': 'جاري التشغيل',
'designs.status.awaitingInput': 'يحتاج مدخلات',
'designs.status.succeeded': 'اكتمل',
'designs.status.failed': 'فشل',
'designs.status.canceled': 'ملغى',
'designs.viewToggleAria': 'وضع العرض',
'designs.viewGrid': 'عرض الشبكة',
'designs.viewKanban': 'عرض اللوحة',
'designs.kanbanEmptyColumn': 'لا توجد تصاميم',
'designs.deleteAria': 'حذف المشروع {name}',
'examples.typeLabel': 'النوع',
'examples.surfaceLabel': 'السطح',
'examples.surfaceWeb': 'ويب',
'examples.surfaceImage': 'صورة',
'examples.surfaceVideo': 'فيديو',
'examples.surfaceAudio': 'صوت',
'examples.scenarioLabel': 'السيناريو',
'examples.modeAll': 'الكل',
'examples.modePrototypeDesktop': 'نماذج أولية · سطح المكتب',
'examples.modePrototypeMobile': 'نماذج أولية · الجوال',
'examples.modeDeck': 'شرائح',
'examples.modeDocument': 'مستندات وقوالب',
'examples.modeOrbit': 'Orbit',
'examples.scenarioGeneral': 'عام',
'examples.scenarioEngineering': 'هندسة',
'examples.scenarioProduct': 'منتج',
'examples.scenarioDesign': 'تصميم',
'examples.scenarioMarketing': 'تسويق',
'examples.scenarioSales': 'مبيعات',
'examples.scenarioFinance': 'مالية',
'examples.scenarioHr': 'موارد بشرية',
'examples.scenarioOperations': 'عمليات',
'examples.scenarioSupport': 'دعم',
'examples.scenarioLegal': 'قانوني',
'examples.scenarioEducation': 'تعليم',
'examples.scenarioPersonal': 'شخصي',
'examples.emptyNoSkills': 'لا توجد مهارات متوفرة. هل البرنامج الخفي يعمل؟',
'examples.searchPlaceholder': 'بحث في الأمثلة...',
'examples.searchAria': 'بحث في الأمثلة بالاسم',
'examples.emptyNoMatch': 'لا توجد أمثلة تطابق هذه الفلاتر.',
'examples.openPreview': '⤢ فتح المعاينة',
'examples.loadingPreview': 'جاري تحميل المعاينة...',
'examples.hoverPreview': 'حوم للمعاينة',
'examples.usePrompt': 'استخدم هذا الأمر',
'examples.previewModalTitle': 'فتح المعاينة الكاملة (نافذة)',
'examples.shareTitle': 'مشاركة هذا المثال',
'examples.shareLoadFirst': 'حوم لتحميل المعاينة أولاً',
'examples.shareMenu': 'مشاركة ▾',
'examples.exportPdfAllSlides': 'تصدير كـ PDF (كل الشرائح)',
'examples.exportPptxLocked': 'تصدير كـ PPTX... (افتح القالب أولاً)',
'examples.tagSlideDeck': 'عرض تقديمي',
'examples.tagTemplate': 'قالب',
'examples.tagDesignSystem': 'نظام تصميم',
'examples.tagMobilePrototype': 'نموذج أولي للجوال',
'examples.tagDesktopPrototype': 'نموذج أولي لسطح المكتب',
'examples.tagImage': 'صورة',
'examples.tagVideo': 'فيديو',
'examples.tagAudio': 'صوت',
'examples.previewLabel': 'معاينة',
'ds.surfaceLabel': 'السطح',
'ds.surfaceWeb': 'ويب',
'ds.surfaceImage': 'صورة',
'ds.surfaceVideo': 'فيديو',
'ds.surfaceAudio': 'صوت',
'ds.searchPlaceholder': 'بحث في أنظمة التصميم...',
'ds.emptyNoMatch': 'لا توجد أنظمة تصميم تطابق بحثك.',
'ds.badgeDefault': 'افتراضي',
'ds.preview': 'معاينة',
'ds.previewTitle': 'معاينة نظام التصميم',
'ds.categoryAll': 'الكل',
'ds.categoryUncategorized': 'غير مصنف',
'ds.showcase': 'عرض',
'ds.tokens': 'الرموز',
'ds.specToggle': 'DESIGN.md',
'ds.specLoading': 'جاري تحميل DESIGN.md...',
'avatar.title': 'الحساب والإعدادات',
'avatar.localCli': 'CLI محلي',
'avatar.anthropicApi': 'Anthropic API',
'avatar.useLocal': 'استخدام CLI محلي',
'avatar.useApi': 'استخدام API · BYOK',
'avatar.codeAgent': 'وكيل الكود',
'avatar.rescan': 'إعادة مسح PATH',
'avatar.settings': 'الإعدادات',
'avatar.backToProjects': 'العودة للمشاريع',
'avatar.metaActive': 'نشط',
'avatar.metaOffline': 'غير متصل',
'avatar.metaSelected': 'محدد',
'avatar.noAgentSelected': 'لم يتم اختيار وكيل',
'avatar.modelSection': 'النموذج',
'avatar.modelLabel': 'النموذج',
'avatar.reasoningLabel': 'التفكير',
'avatar.customSuffix': '(مخصص)',
'project.backToProjects': 'العودة للمشاريع',
'project.metaFreeform': 'شكل حر',
'project.resizeChatPanel': 'تغيير حجم لوحة الدردشة',
'chat.tabChat': 'دردشة',
'chat.tabComments': 'تعليقات',
'chat.commentsSoon': 'التعليقات - قريباً',
'chat.comments.attached': 'مرفق بالدردشة',
'chat.comments.emptyAttached': 'لا توجد تعليقات مرفقة.',
'chat.comments.saved': 'تعليقات محفوظة',
'chat.comments.emptySaved': 'لا توجد تعليقات محفوظة.',
'chat.comments.add': 'إضافة',
'chat.comments.addAll': 'إضافة الكل',
'chat.comments.remove': 'إزالة',
'chat.comments.placeholder': 'علق على هذا العنصر...',
'chat.comments.addSend': 'إضافة وإرسال',
'chat.comments.updateSend': 'تحديث وإرسال',
'chat.comments.removeAttachment': 'إزالة مرفق التعليق',
'chat.comments.removeAttachmentAria': 'إزالة مرفق التعليق لـ {name}',
'chat.conversationsTitle': 'المحادثات',
'chat.conversationsAria': 'سجل المحادثات',
'chat.newConversation': 'محادثة جديدة',
'chat.newConversationsTitle': 'محادثة جديدة',
'chat.conversationsHeading': 'المحادثات',
'chat.new': 'جديد',
'chat.emptyConversations': 'لا توجد محادثات بعد.',
'chat.deleteConversation': 'حذف المحادثة',
'chat.deleteConversationConfirm':
'هل تريد حذف "{title}"؟ سيؤدي هذا لإزالة رسائلها.',
'chat.untitledConversation': 'محادثة بدون عنوان',
'chat.startTitle': 'ابدأ محادثة',
'chat.startHint':
'اسحب وأفلت الصور للمرجع البصري، أو اكتب @ لإرفاق ملف من هذا المشروع. أو جرب أحد هذه البدايات:',
'chat.fillInputTitle': 'اضغط لملء المدخلات',
'chat.jumpToLatest': 'انتقال للأحدث',
'chat.scrollToLatest': 'التمرير للأحدث',
'chat.you': 'أنت',
'chat.openFile': 'فتح {name}',
'chat.composerPlaceholder':
'صف التصميم الذي تريده - الصق أو اسحب الصور، أو @ لملف...',
'chat.composerHint':
'⌘/Ctrl + Enter للإرسال · الصق الصور · @ للإشارة لملفات',
'chat.cliSettingsTitle': 'إعدادات CLI والنموذج',
'chat.cliSettingsAria': 'فتح إعدادات CLI والنموذج',
'chat.attachTitle': 'إرفاق ملفات (أو الصق / اسحب)',
'chat.attachAria': 'إرفاق ملفات',
'chat.importTitle': 'استيراد المصادر (قريباً)',
'chat.importLabel': 'استيراد',
'chat.importComingSoon': 'قريباً',
'chat.importSoon': 'قريباً',
'chat.importFig': 'رفع ملف .fig',
'chat.importGitHub': 'ربط GitHub',
'chat.importWeb': 'جلب عنصر ويب',
'chat.importFolder': 'ربط مجلد كود',
'chat.importSkills': 'المهارات وأنظمة التصميم',
'chat.importProject': 'Reference another project',
'chat.linkedFolderRemoveAria': 'إزالة المجلد المرتبط {path}',
'chat.linkedFolderNotFound': 'المجلد غير موجود',
'chat.linkedFolderAlready': 'هذا المجلد مرتبط بالفعل',
'chat.linkedFolderPickError': 'تعذر فتح منتقي المجلدات',
'chat.send': 'إرسال',
'chat.stop': 'إيقاف',
'chat.removeAria': 'إزالة {name}',
'chat.example1Title': 'عرض تقديمي تحريري',
'chat.example1Tag': 'مجلة',
'chat.example1Prompt':
'عرض تقديمي تحريري من 10 شرائح لاستوديو تصميم يجمع تمويلاً - تخطيط شبكة سويسرية، عناوين عريضة مع أحرف استهلالية بارزة، أرقام أقسام أحادية المسافة، مساحات سلبية سخية، وشرائح صور بملء الشاشة تتخللها شرائح نصية مكثفة. الغلاف، الرؤية، السوق، المنتج، الزخم، الفريق، الطلب، الاتصال.',
'chat.example2Title': 'لوحة تحكم تحليلات SaaS',
'chat.example2Tag': 'بيانات',
'chat.example2Prompt':
'لوحة تحكم تحليلات مكثفة لـ SaaS لأدوات المطورين - شريط KPI مع التغييرات الأسبوعية، مخططان خطيان متراكمان (MRR ومساحات العمل النشطة)، خريطة حرارية عالمية للاستخدام، شبكة احتفاظ بالمجموعات، لوحة صدارة لكبار العملاء، وخلاصة أحداث فورية. سمة داكنة، أرقام أحادية المسافة، تأثيرات sparkline.',
'chat.example3Title': 'تقرير سنوي بالتمرير الطويل',
'chat.example3Tag': 'تحريري',
'chat.example3Prompt':
'تقرير سنوي تفاعلي لمنظمة مناخية غير ربحية - تخطيط تحريري بالتمرير الطويل يمزج بين كتل الاقتباسات الكبيرة، تصورات البيانات (أعمدة متراكمة، عدادات متحركة، خريطة لمواقع المشاريع)، فواصل صور، جدار المتبرعين، ودعوة نهائية للعمل. خط متن حديث، تسميات مخططات sans-serif، لوحة ألوان ورقية ترابية.',
'preview.shareMenu': 'مشاركة ▾',
'preview.openInNewTab': 'فتح في علامة تبويب جديدة',
'preview.exit': '⤓ خروج',
'preview.fullscreen': '⤢ ملء الشاشة',
'preview.closeTitle': 'إغلاق (Esc)',
'preview.loading': 'جاري تحميل {label}...',
'preview.showSidebar': 'إظهار {label}',
'preview.hideSidebar': 'إخفاء {label}',
'misc.savedTemplate': 'قالب محفوظ',
'misc.primary': 'أساسي',
'misc.designSystem': 'نظام تصميم',
'workspace.designFiles': 'ملفات التصميم',
'workspace.focusMode': 'Focus workspace',
'workspace.showChat': 'Show chat',
'workspace.closeTab': 'إغلاق علامة التبويب',
'workspace.deleteFileConfirm': 'حذف "{name}" من مجلد المشروع؟',
'workspace.openFromDesignFiles': 'فتح ملف من',
'workspace.designFilesLink': 'ملفات التصميم',
'workspace.loadingSketch': 'جاري تحميل الرسم...',
'designFiles.title': 'ملفات التصميم',
'designFiles.upload': 'رفع ملفات',
'designFiles.pasteText': 'لصق كملف نصي',
'designFiles.newSketch': 'رسم جديد',
'designFiles.empty':
'لا يوجد شيء هنا بعد. اسحب الملفات أدناه، أو أنشئ رسماً / الصق نصاً.',
'designFiles.refresh': 'تحديث',
'designFiles.delete': 'حذف',
'designFiles.searchPlaceholder': 'بحث في الملفات...',
'designFiles.up': 'للأعلى',
'designFiles.back': 'رجوع',
'designFiles.crumbs': 'مشروع',
'designFiles.rowMenu': 'قائمة الصف',
'designFiles.openInTab': 'فتح في علامة تبويب',
'designFiles.download': 'تحميل',
'designFiles.downloadSelected': 'Download {n} as ZIP',
'designFiles.clearSelection': 'Clear',
'designFiles.selectAll': 'Select all',
'designFiles.dropTitle': '⤓ أسقط الملفات هنا',
'designFiles.dropDesc':
'الصور، المستندات، المراجع، أو المجلدات - سيستخدمها الوكيل كسياق.',
'designFiles.upload.title': 'رفع ملفات',
'designFiles.paste.title': 'لصق نص كملف',
'designFiles.upload.label': 'رفع',
'designFiles.paste.label': 'لصق',
'designFiles.previewOpen': 'فتح',
'designFiles.previewClose': 'إغلاق المعاينة',
'designFiles.modified': 'تم التعديل {time} · {size}',
'designFiles.weeksAgo': 'منذ {n} أسبوع',
'designFiles.sectionPages': 'صفحات',
'designFiles.sectionScripts': 'سكربتات',
'designFiles.sectionImages': 'صور',
'designFiles.sectionSketches': 'رسومات',
'designFiles.sectionOther': 'أخرى',
'designFiles.showMore': 'عرض +{n} أخرى',
'designFiles.kindHtml': 'صفحة HTML',
'designFiles.kindImage': 'صورة',
'designFiles.kindSketch': 'رسم',
'designFiles.kindText': 'نص',
'designFiles.kindCode': 'سكربت',
'designFiles.kindPdf': 'PDF',
'designFiles.kindDocument': 'مستند',
'designFiles.kindPresentation': 'عرض تقديمي',
'designFiles.kindSpreadsheet': 'جدول بيانات',
'designFiles.kindBinary': 'ثنائي',
'quickSwitcher.placeholder': 'فتح ملف…',
'quickSwitcher.empty': 'لا توجد ملفات في هذا المشروع',
'quickSwitcher.noMatches': 'لا توجد نتائج',
'quickSwitcher.navigate': 'تنقل',
'quickSwitcher.open': 'فتح',
'quickSwitcher.close': 'إغلاق',
'pasteDialog.title': 'لصق نص',
'pasteDialog.hint': 'يحفظ في مجلد المشروع. اختر أي اسم.',
'pasteDialog.fileNameLabel': 'اسم الملف',
'pasteDialog.namePlaceholder': 'notes.txt',
'pasteDialog.contentLabel': 'المحتوى',
'pasteDialog.contentPlaceholder': 'الصق أي شيء...',
'pasteDialog.save': 'حفظ',
'pasteDialog.cancel': 'إلغاء',
'sketch.save': 'حفظ الرسم',
'sketch.cancel': 'إلغاء',
'sketch.saving': 'جاري الحفظ...',
'sketch.tooltipDirty': 'تغييرات غير محفوظة',
'sketch.tooltipClean': 'تم الحفظ',
'fileViewer.empty': 'اختر ملفاً لعرضه.',
'fileViewer.loading': 'جاري التحميل...',
'fileViewer.exportPptx': 'تصدير كـ PPTX',
'fileViewer.openInNewTab': 'فتح في علامة تبويب جديدة',
'fileViewer.copyPath': 'نسخ المسار',
'fileViewer.copied': 'تم النسخ!',
'fileViewer.share': 'مشاركة',
'fileViewer.binaryMeta': 'ثنائي · {size}',
'fileViewer.binaryNote':
'ملف ثنائي ({size} بايت). حمله أو افتحه من القرص لفحصه.',
'fileViewer.pdfMeta': 'PDF · {size}',
'fileViewer.documentMeta': 'مستند',
'fileViewer.presentationMeta': 'عرض تقديمي',
'fileViewer.spreadsheetMeta': 'جدول بيانات',
'fileViewer.previewUnavailable': 'المعاينة غير متوفرة. حمل الملف أو افتحه لفحصه.',
'fileViewer.download': 'تحميل',
'fileViewer.open': 'فتح',
'fileViewer.imageMeta': 'صورة · {size}',
'fileViewer.reactMeta': 'مكون React · {size}',
'fileViewer.sketchMeta': 'رسم · {size}',
'fileViewer.markdownStreamingMeta': 'معاينة متدفقة...',
'fileViewer.markdownErrorMeta': 'قد تكون المعاينة غير مكتملة (خطأ في التوليد).',
'fileViewer.markdownStreamingStatus': 'تدفق... عرض ماركداون جزئي.',
'fileViewer.markdownErrorStatus': 'خطأ في التوليد. عرض آخر محتوى متوفر.',
'fileViewer.videoMeta': 'فيديو · {size}',
'fileViewer.audioMeta': 'صوت · {size}',
'fileViewer.reload': 'إعادة تحميل',
'fileViewer.reloadDisk': 'إعادة تحميل من القرص',
'fileViewer.copy': 'نسخ',
'fileViewer.copyTitle': 'نسخ محتويات الملف',
'fileViewer.saveDisabled': 'حفظ (عارض للقراءة فقط)',
'fileViewer.save': 'حفظ',
'fileViewer.preview': 'معاينة',
'fileViewer.source': 'المصدر',
'fileViewer.tweaks': 'تعديلات',
'fileViewer.comment': 'تعليق',
'fileViewer.edit': 'تعديل',
'fileViewer.draw': 'رسم',
'manualEdit.layers': "Layers",
'manualEdit.editableCount': "{count} editable",
'manualEdit.title': "Manual editor",
'manualEdit.selectLayer': "Select a layer",
'manualEdit.empty': "Click an element in the preview or choose a layer.",
'manualEdit.noClass': "no class",
'manualEdit.tabsAria': "Manual edit tabs",
'manualEdit.tabContent': "Content",
'manualEdit.tabStyle': "Style",
'manualEdit.tabAttributes': "Attributes",
'manualEdit.tabHtml': "Html",
'manualEdit.tabSource': "Source",
'manualEdit.attributesJson': "Attributes JSON",
'manualEdit.selectedHtml': "Selected element HTML",
'manualEdit.fullSource': "Full artifact source",
'manualEdit.applyContent': "Apply Content",
'manualEdit.applyStyle': "Apply Style",
'manualEdit.applyAttributes': "Apply Attributes",
'manualEdit.applyHtml': "Apply HTML",
'manualEdit.applySource': "Apply Source",
'manualEdit.invalidAttributes': "Invalid attributes JSON.",
'manualEdit.changes': "Changes",
'manualEdit.undo': "Undo",
'manualEdit.redo': "Redo",
'manualEdit.noChanges': "No manual edits yet.",
'manualEdit.imageUrl': "Image URL",
'manualEdit.altText': "Alt text",
'manualEdit.label': "Label",
'manualEdit.text': "Text",
'manualEdit.href': "Href",
'manualEdit.textColor': "Text color",
'manualEdit.background': "Background",
'manualEdit.fontSize': "Font size",
'manualEdit.weight': "Weight",
'manualEdit.align': "Align",
'manualEdit.padding': "Padding",
'manualEdit.margin': "Margin",
'manualEdit.radius': "Radius",
'manualEdit.border': "Border",
'manualEdit.width': "Width",
'manualEdit.minHeight': "Min height",
'fileViewer.zoomOut': 'تصغير',
'fileViewer.zoomIn': 'تكبير',
'fileViewer.resetZoom': 'إعادة تعيين الزوم',
'fileViewer.reloadAria': 'إعادة تحميل',
'fileViewer.previousSlide': 'الشريحة السابقة',
'fileViewer.nextSlide': 'الشريحة التالية',
'fileViewer.slideNavAria': 'التنقل بين الشرائح',
'fileViewer.present': 'تقديم',
'fileViewer.presentInTab': 'في علامة التبويب هذه',
'fileViewer.presentFullscreen': 'ملء الشاشة',
'fileViewer.presentNewTab': 'علامة تبويب جديدة',
'fileViewer.exitPresentation': 'الخروج من العرض',
'fileViewer.shareLabel': 'مشاركة',
'fileViewer.exportPdf': 'تصدير كـ PDF',
'fileViewer.exportPdfAllSlides': 'تصدير كـ PDF (كل الشرائح)',
'fileViewer.exportPptxBusy': 'انتظر انتهاء الدور الحالي.',
'fileViewer.exportPptxHint':
'أرسل طلباً للوكيل لتحويل هذا التصميم إلى PPTX.',
'fileViewer.exportPptxNa': 'تصدير PPTX غير متوفر هنا.',
'fileViewer.exportZip': 'تحميل كـ zip.',
'fileViewer.exportHtml': 'تصدير كـ HTML مستقل',
'fileViewer.exportMd': 'تصدير كـ Markdown',
'fileViewer.exportJsx': 'تصدير كـ JSX',
'fileViewer.exportReactHtml': 'تصدير المعاينة كـ HTML',
'fileViewer.saveAsTemplate': 'حفظ كقالب...',
'fileViewer.savingTemplate': 'جاري حفظ القالب...',
'fileViewer.savedTemplate': 'تم الحفظ باسم "{name}"',
'fileViewer.savedTemplateFail': 'تعذر حفظ القالب - حاول مرة أخرى.',
'fileViewer.templateNamePrompt': 'اسم القالب',
'fileViewer.templateNameDefault': 'قالب بدون عنوان',
'fileViewer.templateDescPrompt':
'وصف قصير (اختياري - ما الذي يجعل هذا القالب مفيداً؟)',
'fileViewer.deployToVercel': 'نشر على Vercel',
'fileViewer.redeployToVercel': 'إعادة النشر',
'fileViewer.deployingToVercel': 'جاري النشر على Vercel...',
'fileViewer.preparingPublicLink': 'جاري تحضير الرابط العام...',
'fileViewer.copyDeployLink': 'نسخ الرابط',
'fileViewer.deployModalTitle': 'نشر على Vercel',
'fileViewer.deployModalSubtitle':
'انشر هذا الـ HTML كمعاينة Vercel باستخدام حسابك الخاص.',
'fileViewer.vercelToken': 'رمز Vercel',
'fileViewer.vercelTokenGetLink': 'احصل على رمز Vercel',
'fileViewer.vercelTokenPlaceholder': 'الصق رمز Vercel الخاص بك',
'fileViewer.vercelTokenReuseHint':
'سيتم استخدام الرمز المحفوظ. أدخل رمزاً جديداً لاستبداله.',
'fileViewer.vercelTokenRequired': 'أدخل واحفظ رمز Vercel أولاً.',
'fileViewer.vercelTeamId': 'معرف الفريق',
'fileViewer.vercelTeamSlug': 'اسم الفريق اللطيف',
'fileViewer.optional': 'اختياري',
'fileViewer.vercelPreviewOnly': 'النشر للمعاينة فقط حالياً.',
'fileViewer.savingConfig': 'جاري الحفظ...',
'fileViewer.deployConfigSaveFailed': 'تعذر حفظ إعدادات Vercel.',
'fileViewer.deployFailed': 'فشل النشر. تحقق من إعدادات Vercel وحاول مرة أخرى.',
'fileViewer.deployResultLabel': 'رابط النشر',
'fileViewer.deployLinkPreparingLabel': 'الرابط العام معلق',
'fileViewer.deployLinkDelayed':
'تم نشر موقعك. Vercel لا يزال يحضر الرابط العام.',
'fileViewer.deployLinkProtectedLabel': 'حماية Vercel مفعلة',
'fileViewer.deployLinkProtected':
'تم نشر موقعك، لكن Vercel يتطلب المصادقة لهذا الرابط. عطل حماية النشر أو استخدم دومين مخصص.',
'fileViewer.retryLink': 'إعادة المحاولة الآن',
'questionForm.submit': 'إرسال',
'questionForm.skip': 'تخطي',
'questionForm.locked': 'تمت الإجابة',
'conv.switch': 'تبديل المحادثة',
'conv.label': 'المحادثة',
'conv.heading': 'المحادثات',
'conv.new': '+ جديد',
'conv.empty': 'لا توجد محادثات بعد.',
'conv.untitled': 'محادثة بدون عنوان',
'conv.renameTooltip': 'انقر مرتين لإعادة التسمية',
'conv.delete': 'حذف المحادثة',
'conv.deleteConfirm': 'هل تريد حذف "{title}"؟ سيؤدي هذا لإزالة رسائلها.',
'agentPicker.label': 'الوكيل',
'agentPicker.modeChoose': 'اختر وضع التنفيذ',
'agentPicker.localCli': 'CLI محلي',
'agentPicker.daemonOff': 'البرنامج الخفي متوقف',
'agentPicker.byok': 'API · BYOK',
'agentPicker.selectAgent': 'اختر وكيل كود مكتشف',
'agentPicker.noAgents': 'لا يوجد وكلاء في PATH',
'agentPicker.notInstalled': 'غير مثبت',
'agentPicker.rescan': 'إعادة مسح PATH المحلي للوكلاء',
'tool.openInTab': 'فتح {name} في علامة تبويب',
'tool.open': 'فتح',
'tool.todos': 'المهام',
'tool.write': 'كتابة',
'tool.edit': 'تعديل',
'tool.read': 'قراءة',
'tool.bash': 'Bash',
'tool.glob': 'Glob',
'tool.grep': 'Grep',
'tool.fetch': 'جلب',
'tool.search': 'بحث',
'tool.lines': '{n} أسطر',
'tool.changeSingular': 'تغيير',
'tool.changePlural': 'تغييرات',
'tool.in': 'في {path}',
'tool.hide': 'إخفاء',
'tool.output': 'المخرجات',
'tool.running': 'جاري التشغيل...',
'tool.error': 'خطأ',
'tool.done': 'تم',
'assistant.role': 'المساعد',
'assistant.workingLabel': 'جاري العمل',
'assistant.doneLabel': 'تم',
'assistant.unfinishedLabel': 'توقف مع عمل غير مكتمل',
'assistant.unfinishedSummary': 'تبقى {n} مهمة/مهام',
'assistant.unfinishedMore': '+{n} أكثر',
'assistant.continueRemaining': 'متابعة المهام المتبقية',
'assistant.outTokens': '{n} خرج',
'assistant.producedFiles': 'الملفات من هذا الدور',
'assistant.openFile': 'فتح',
'assistant.downloadFile': 'تحميل',
'assistant.thinking': 'تفكير',
'assistant.systemReminder': 'تذكير النظام',
'assistant.waitingFirstOutput': 'في انتظار أول مخرج',
'assistant.statusBootingAgent': 'تشغيل الوكيل',
'assistant.statusStarting': 'بدء',
'assistant.statusRequesting': 'إرسال الطلب',
'assistant.statusThinking': 'تفكير',
'assistant.statusStreaming': 'تدفق',
'assistant.slowHint':
'يستغرق وقتاً أطول من المعتاد. يظهر النموذج عادة في 5-10 ثوانٍ - يمكنك التوقف وإعادة الصياغة.',
'assistant.verbEditing': 'تعديل',
'assistant.verbWriting': 'كتابة',
'assistant.verbReading': 'قراءة',
'assistant.verbSearching': 'بحث',
'assistant.verbRunning': 'تشغيل',
'assistant.verbTodos': 'مهام',
'assistant.verbFetching': 'جلب',
'assistant.verbCalling': 'اتصال',
'qf.answered': 'تمت الإجابة',
'qf.choose': 'اختر...',
'qf.required': 'مطلوب',
'qf.lockedSubmitted':
'تم إرسال الإجابات - يستخدمها الوكيل لبقية الجلسة.',
'qf.lockedPrev': 'هذا النموذج من دور سابق.',
'qf.hint':
"اختر ما يناسبك. تخطى الحقول الاختيارية التي لا تهمك - سيستخدم الوكيل افتراضات معقولة.",
'qf.submitDefault': 'إرسال الإجابات',
'qf.submitDisabledTitle': 'املأ الحقول المطلوبة أولاً',
'qf.submitTitle': 'إرسال الإجابات',
'qf.cardSelected': 'محدد',
'qf.cardRefs': 'المراجع:',
'qf.cardSampleText': 'The quick brown fox · 0123',
'sketch.toolSelect': 'تحديد (لا إجراء)',
'sketch.toolPen': 'قلم',
'sketch.toolText': 'نص',
'sketch.toolRect': 'مستطيل',
'sketch.toolArrow': 'سهم',
'sketch.toolEraser': 'ممحاة',
'sketch.color': 'اللون',
'sketch.strokeSize': 'حجم الخط',
'sketch.undo': 'تراجع',
'sketch.clear': 'مسح',
'sketch.close': 'إغلاق',
'sketch.textPrompt': 'النص:',
'pet.title': 'الحيوانات الأليفة',
'pet.subtitle': 'تبنَّ رفيقاً صغيراً يطفو فوق مساحة عملك.',
'pet.navTitle': 'الحيوانات الأليفة',
'pet.navHint': 'تبنَّ أو خصص',
'pet.tabBuiltIn': 'مدمج',
'pet.tabBuiltInHint': 'رفقاء منتقون مدمجون مع Open Design - اختر واحداً وتبنَّه.',
'pet.builtInEmpty': 'الحيوانات الأليفة المدمجة غير متوفرة حالياً. حاول تحديث تبويب المجتمع بمجرد اتصال البرنامج الخفي.',
'pet.tabCustom': 'مخصص',
'pet.tabCustomHint': 'اصنع خاصتك باسم، رمز، لون أو صورة.',
'pet.tabCommunity': 'المجتمع',
'pet.tabCommunityHint': 'حيوانات مفقوسة من Codex - تبنَّ واحداً أو ولد واحداً جديداً.',
'pet.tabsAria': 'مصدر الحيوان الأليف',
'pet.adopt': 'تبنَّ',
'pet.adoptedBadge': 'تم التبني',
'pet.adoptCallout': 'تبنَّ حيواناً أليفاً',
'pet.changePet': 'تغيير الحيوان الأليف',
'pet.wake': 'إيقاظ',
'pet.tuck': 'إخفاء',
'pet.wakeTitle': 'إيقاظ الحيوان الأليف - إظهار الطبقة العائمة.',
'pet.tuckTitle': 'إخفاء الحيوان الأليف - إخفاء الطبقة العائمة.',
'pet.settingsTitle': 'فتح إعدادات الحيوان الأليف',
'pet.useCustom': 'استخدم حيواني',
'pet.customTitle': 'اصنع خاصتك',
'pet.customHint': 'اختر اسماً، رمزاً ولوناً - الطبقة تتحدث مباشرة.',
'pet.customGreetingPlaceholder': 'قل مرحباً من حيوانك الأليف...',
'pet.fieldName': 'الاسم',
'pet.fieldGlyph': 'الرمز',
'pet.fieldGlyphHint': 'إيموجي واحد يعمل بشكل أفضل (مثلاً: 🐝, 🦄, 🐢).',
'pet.fieldGreeting': 'التحية',
'pet.fieldAccent': 'لون التمييز',
'pet.fieldAccentCustom': 'لون مخصص',
'pet.overlayAria': 'رفيق الحيوان الأليف',
'pet.spriteAria': '{name} - اسحب للتحريك، اضغط للدردشة',
'pet.spriteTitle': 'مرحباً من {name}! اضغط للدردشة.',
'pet.railAria': 'منتقي الحيوانات الأليفة',
'pet.railTitle': 'الحيوانات الأليفة',
'pet.railHint': 'اختر رفيقاً ليطفو فوق مساحة عملك.',
'pet.railExpand': 'إظهار منتقي الحيوانات الأليفة',
'pet.railCollapse': 'طي منتقي الحيوانات الأليفة',
'pet.railHide': 'إخفاء منتقي الحيوانات الأليفة',
'pet.railShow': 'إظهار منتقي الحيوانات الأليفة',
'pet.railCustomFlavor': 'خاصتك - اسم، رمز، لون.',
'pet.railCustomize': 'تخصيص...',
'pet.composerTitle': 'الحيوانات الأليفة - إيقاظ، إخفاء، أو اختيار واحد',
'pet.composerMenuTitle': 'الحيوانات الأليفة',
'pet.composerMenuHint': 'تلميح: اكتب /pet للتبديل',
'pet.composerOpenSettings': 'تخصيص في الإعدادات',
'pet.welcomeTeaserTitle': 'تبنَّ حيواناً أليفاً',
'pet.welcomeTeaserBody': 'رفيق عائم صغير يقضي الوقت معك.',
'pet.welcomeTeaserCta': 'اختر واحداً',
'pet.imageUpload': 'رفع صورة',
'pet.imageReplace': 'استبدال الصورة',
'pet.imageRemove': 'استخدام إيموجي',
'pet.imageHintIdle': 'PNG, JPG, WebP, GIF أو SVG. رفع ورقة؟ أسقط شريطاً أفقياً وحدد عدد الإطارات.',
'pet.imageHintActive': 'عرض صورتك. حدد الإطارات > 1 للمشي في ورقة صور أفقية.',
'pet.fieldFrames': 'الإطارات',
'pet.fieldFramesHint': '1 = ثابت. > 1 = ورقة صور أفقية.',
'pet.fieldFps': 'السرعة (fps)',
'pet.fieldFpsHint': 'مدى سرعة تدوير الإطارات.',
'pet.atlasImport': 'استيراد صورة Codex',
'pet.atlasImportTitle': 'استيراد أطلس حيوان مفقوس 8x9 / 192x208 (PNG أو WebP).',
'pet.atlasPickerTitle': 'اختر صف رسوم متحركة',
'pet.atlasPickerHint': 'حيوانات Codex تأتي بـ 9 صفوف رسوم متحركة. افتراضياً نحتفظ بالأطلس الكامل ليغير الحيوان الصفوف عند التحويم، السحب، والسكون. يمكنك أيضاً تجميده في حلقة واحدة.',
'pet.atlasCancel': 'تجاهل الأطلس',
'pet.atlasAdopt': 'تجميد في هذا الصف',
'pet.atlasAdoptFull': 'استخدام الأطلس الكامل (متحرك)',
'pet.atlasAdoptFullTitle': 'الاحتفاظ بكل الصفوف ليتفاعل الحيوان مع التحويم، اتجاه السحب، والسكون الطويل.',
'pet.atlasAdoptRowTitle': 'قص الصف المظلل فقط في شريط متكرر واحد.',
'pet.atlasActiveHint': 'الأطلس المتحرك نشط - يختار الحيوان صفاً من تفاعلك (تحويم، سحب، سكون).',
'pet.atlasRow.idle': 'ساكن',
'pet.atlasRow.running-right': 'جري يميناً',
'pet.atlasRow.running-left': 'جري يساراً',
'pet.atlasRow.waving': 'تلويح',
'pet.atlasRow.jumping': 'قفز',
'pet.atlasRow.failed': 'فشل',
'pet.atlasRow.waiting': 'انتظار',
'pet.atlasRow.running': 'جري',
'pet.atlasRow.review': 'مراجعة',
'pet.hatchTitle': 'فقس حيوان جديد بالذكاء الاصطناعي',
'pet.hatchHint': 'استخدم مهارة hatch-pet في الدردشة لتوليد ورقة صور بأسلوب Codex، ثم استوردها هنا.',
'pet.hatchConcept': 'مفهوم الحيوان (اختياري)',
'pet.hatchConceptPlaceholder': 'مثلاً: شيبا بيكسل-آرت صغير في سترة مريحة',
'pet.hatchCopy': 'نسخ الأمر',
'pet.hatchCopied': 'تم النسخ!',
'pet.hatchFoot': 'بعد أن يحفظ المساعد حيوانك، عد إلى هنا واختر "استيراد صورة Codex".',
'pet.slashPopoverAria': 'أوامر Slash',
'pet.slashPopoverTitle': 'الأوامر',
'pet.slashPopoverHint': '↑↓ للتنقل · enter للاختيار · esc للتجاهل',
'pet.slashPet': 'تبديل، تبني، أو الانتقال لإعدادات الحيوانات الأليفة.',
'pet.slashPetWake': 'إيقاظ طبقة الحيوان الأليف العائمة.',
'pet.slashPetTuck': 'إخفاء الحيوان الأليف حالياً.',
'pet.slashHatch': 'توليد حيوان Codex عبر مهارة hatch-pet.',
'pet.slashHatchArg': '<مفهوم>',
'pet.codexTitle': 'فقس مؤخراً',
'pet.codexSubtitle': 'الحيوانات التي تمت تعبئتها بواسطة مهارة hatch-pet تظهر هنا للتبني بنقرة واحدة.',
'pet.codexSubtitleWithDir': 'مسح {dir} للبحث عن حيوانات معبأة بواسطة مهارة hatch-pet.',
'pet.codexEmpty': 'لا توجد حيوانات مفقوسة بعد. اكتب /hatch في الدردشة لتوليد واحد.',
'pet.codexLoading': 'البحث عن حيوانات مفقوسة...',
'pet.codexRefresh': 'تحديث',
'pet.codexAdopt': 'تبنَّ',
'pet.codexAdopting': 'جاري التبني...',
'pet.communitySync': 'تحميل حيوانات المجتمع',
'pet.communitySyncing': 'جاري التحميل...',
'pet.communitySyncTitle': 'مزامنة أحدث الحيوانات من Codex Pet Share + j20 Hatchery إلى ~/.codex/pets/.',
'pet.communitySyncDone': 'تمت مزامنة {wrote} حيواناً جديداً ({total} إجمالي).',
'pet.communitySyncFailed': 'فشلت المزامنة: {error}',
'pet.codexBundled': 'مدمج',
'pet.codexBundledTitle': 'يأتي مع Open Design - لا حاجة للتحميل.',
'settings.notifications': 'الإشعارات',
'settings.notificationsHint': 'صوت وإشعار سطح المكتب عند اكتمال المهمة',
'settings.notifyCompletionSound': 'صوت الاكتمال',
'settings.notifyCompletionSoundHint': 'يُشغَّل عند انتهاء الجولة. متوقف افتراضيًا.',
'settings.notifySuccessSound': 'صوت النجاح',
'settings.notifyFailureSound': 'صوت الفشل',
'settings.notifyDesktop': 'إشعار سطح المكتب',
'settings.notifyDesktopHint': 'يُرسَل عندما لا تكون النافذة في المقدمة.',
'settings.notifyDesktopBlocked': 'تم حظر الإشعارات من المتصفح. اسمح بها من إعدادات الموقع.',
'settings.notifyDesktopUnsupported': 'إشعارات سطح المكتب غير متاحة في هذه البيئة.',
'settings.notifyTest': 'إرسال اختبار',
'settings.notifyTestSent': 'تم إرسال إشعار الاختبار. إذا لم تظهر نافذة، فتحقق من إعدادات إشعارات المتصفح والنظام.',
'settings.notifyTestFailed': 'فشل استدعاء الإشعار. تحقق من إعدادات إشعارات المتصفح والنظام.',
'settings.notifySoundDing': 'دينج',
'settings.notifySoundChime': 'جرس',
'settings.notifySoundTwoToneUp': 'نغمتان صاعدتان',
'settings.notifySoundPluck': 'نقرة وتر',
'settings.notifySoundBuzz': 'طنين',
'settings.notifySoundTwoToneDown': 'نغمتان هابطتان',
'settings.notifySoundThud': 'دمدمة',
'settings.library': 'المهارات وأنظمة التصميم',
'settings.libraryHint': 'تصفح ومعاينة وتفعيل/تعطيل مكتبة المحتوى الخاصة بك',
'settings.librarySkills': 'المهارات',
'settings.libraryDesignSystems': 'أنظمة التصميم',
'settings.librarySearch': 'بحث...',
'settings.libraryAll': 'الكل',
'settings.libraryPreview': 'معاينة',
'settings.libraryPreviewClose': 'إغلاق',
'settings.libraryLoading': 'جارٍ التحميل...',
'settings.libraryNoResults': 'لا توجد عناصر تطابق بحثك.',
'settings.libraryEnabled': 'مفعّل',
'settings.libraryDisabled': 'معطّل',
'settings.libraryToggleLabel': 'تبديل',
'notify.successTitle': 'اكتملت المهمة',
'notify.failureTitle': 'فشلت المهمة',
'notify.successBody': 'انتهت جولة.',
'notify.failureBody': 'انتهت المهمة بخطأ.',
};
+907
View File
@@ -0,0 +1,907 @@
import type { Dict } from '../types';
import { en } from './en';
export const de: Dict = {
...en,
'common.cancel': 'Abbrechen',
'common.save': 'Speichern',
'common.close': 'Schließen',
'common.delete': 'Löschen',
'common.rename': 'Umbenennen',
'common.preview': 'Vorschau',
'common.share': 'Teilen',
'common.search': 'Suchen',
'common.searchEllipsis': 'Suchen…',
'common.loading': 'Wird geladen…',
'common.all': 'Alle',
'common.none': 'Keine',
'common.default': 'Standard',
'common.installed': 'installiert',
'common.notInstalled': 'nicht installiert',
'common.active': 'aktiv',
'common.offline': 'offline',
'common.selected': 'ausgewählt',
'common.create': 'Erstellen',
'common.openPreview': 'Vorschau öffnen',
'common.exitFullscreen': 'Vollbild verlassen',
'common.fullscreen': 'Vollbild',
'common.openInNewTab': 'In neuem Tab öffnen',
'common.exportPdf': 'Als PDF exportieren',
'common.exportZip': 'Als .zip herunterladen',
'common.exportHtml': 'Als eigenständiges HTML exportieren',
'common.justNow': 'gerade eben',
'common.minutesAgo': 'vor {n} Min.',
'common.hoursAgo': 'vor {n} Std.',
'common.daysAgo': 'vor {n} T.',
'common.now': 'jetzt',
'common.minutesShort': '{n} Min.',
'common.hoursShort': '{n} Std.',
'common.daysShort': '{n} T.',
'common.untitled': 'Ohne Titel',
'app.brand': 'Open Design',
'app.brandPill': 'Forschungsvorschau',
'app.brandSubtitle': 'von Nexu Labs',
'app.welcomeLoading': 'Workspace wird geladen…',
'settings.welcomeKicker': 'Willkommen',
'settings.welcomeTitle': 'Open Design einrichten',
'settings.welcomeSubtitle':
'Wählen Sie aus, wie Generierungen ausgeführt werden sollen. Sie können dies jederzeit über die Schaltfläche „Einstellungen“ in der oberen Leiste ändern.',
'settings.kicker': 'Einstellungen',
'settings.title': 'Ausführung & Modell',
'settings.subtitle': 'Wählen Sie zwischen lokaler CLI und BYOK. Ihr API-Schlüssel wird nur in diesem Browser gespeichert.',
'settings.modeAria': 'Ausführungsmodus',
'settings.protocolAria': 'API-Protokoll',
'settings.modeDaemon': 'Lokale CLI',
'settings.modeDaemonHelp': 'Über eine Code-Agent-CLI auf Ihrem Rechner ausführen',
'settings.modeDaemonOffline': 'Daemon läuft nicht',
'settings.modeDaemonOfflineMeta': 'Daemon offline',
'settings.modeDaemonInstalledMeta': '{count} installiert',
'settings.modeApi': 'API-Anbieter',
'settings.modeApiMeta': 'BYOK',
'settings.codeAgent': 'Code-Agent',
'settings.codeAgentHint':
'Durch Scannen Ihres PATH erkannt. Wählen Sie die CLI, über die Generierungen laufen sollen.',
'settings.rescan': '↻ Neu scannen',
'settings.rescanTitle': 'PATH erneut scannen',
'settings.rescanRunning': 'Scannen...',
'settings.rescanSuccess': 'Scan abgeschlossen. {count} verfuegbar.',
'settings.rescanFailed': 'Scan fehlgeschlagen. Pruefen Sie den Daemon und versuchen Sie es erneut.',
'settings.noAgentsDetected':
'Noch keine Agents erkannt. Installieren Sie Claude Code, Codex, Devin for Terminal, Gemini CLI, OpenCode, Cursor Agent, Qwen oder GitHub Copilot CLI und klicken Sie dann auf Neu scannen.',
'settings.apiSection': 'Anthropic API',
'settings.quickFillProvider': 'Anbieter schnell ausfüllen',
'settings.customProvider': 'Benutzerdefinierter Anbieter',
'settings.apiKey': 'API-Key',
'settings.showKey': 'Key anzeigen',
'settings.hideKey': 'Key ausblenden',
'settings.show': 'Anzeigen',
'settings.hide': 'Ausblenden',
'settings.model': 'Modell',
'settings.suggestedModelsHint':
'Dies sind vorgeschlagene Modelle für dieses Protokoll. Ihr Anbieter kann andere Modelle unterstützen.',
'settings.baseUrl': 'Base URL',
'settings.baseUrlInvalid': 'Geben Sie eine gültige öffentliche http://- oder https://-URL ein. Localhost ist erlaubt; private Netzwerk-IPs werden blockiert.',
'settings.azureDeploymentModel': 'Deployment-Name',
'settings.azureDeploymentModelHint':
'Fuer Azure OpenAI wird dieses Feld als Deployment-Name in /openai/deployments/<model> verwendet. Geben Sie den in Azure angelegten Deployment-Namen ein.',
'settings.apiVersion': 'API-Version',
'settings.maxTokens': 'Max. Tokens (optional)',
'settings.maxTokensHint':
'Obergrenze für die Antwortlänge. Jedes Modell hat einen abgestimmten Standardwert (im Platzhalter sichtbar); leer lassen, um ihn zu verwenden, oder eine Zahl eingeben, um ihn zu überschreiben.',
'settings.apiHint': 'Anfragen werden über den lokalen Daemon-Proxy an die festgelegte Base URL gesendet. Der Schlüssel wird nur in diesem Browser gespeichert und mit Provider-Anfragen gesendet.',
'settings.skipForNow': 'Vorerst überspringen',
'settings.getStarted': 'Loslegen',
'settings.envConfigure': 'Ausführungsmodus konfigurieren',
'settings.localCli': 'Lokale CLI',
'settings.anthropicApi': 'Anthropic API',
'settings.noAgentSelected': 'kein Agent ausgewählt',
'settings.language': 'Sprache',
'settings.languageHint': 'Wechseln Sie die Sprache der Oberfläche. Wird in diesem Browser gespeichert.',
'settings.appearance': 'Erscheinungsbild',
'settings.appearanceHint': 'Hell, dunkel oder Systemeinstellung übernehmen.',
'settings.themeSystem': 'System',
'settings.themeLight': 'Hell',
'settings.themeDark': 'Dunkel',
'settings.modelPicker': 'Modell',
'settings.reasoningPicker': 'Reasoning-Aufwand',
'settings.modelPickerHint':
'Wird aus der CLI geladen, wenn sie einen `models`-Befehl anbietet. „Standard“ überlässt die Auswahl der CLI-Konfiguration; mit „Benutzerdefiniert…“ können Sie jede von der CLI akzeptierte Modell-ID eingeben.',
'settings.cliEnvTitle': 'CLI config locations',
'settings.cliEnvHint':
'Set non-secret config directories for packaged app runs and agent detection.',
'settings.cliEnvClaudeConfigDir': 'Claude Code config dir',
'settings.cliEnvCodexHome': 'Codex home',
'settings.modelCustom': 'Benutzerdefiniert (unten eingeben)…',
'settings.modelCustomLabel': 'Benutzerdefinierte Modell-ID',
'settings.modelCustomPlaceholder': 'z. B. anthropic/claude-sonnet-4-6',
'settings.mediaProviders': 'Medienanbieter',
'settings.mediaProvidersHint':
'API-Keys für Bild-, Video- und Audiogenerierung. Lokal gespeichert und mit dem lokalen Daemon synchronisiert.',
'settings.mediaProviderApiKey': 'API-Key',
'settings.mediaProviderBaseUrl': 'Base URL',
'settings.mediaProviderConfigured': 'Konfiguriert',
'settings.mediaProviderUnset': 'Nicht gesetzt',
'settings.mediaProviderClear': 'Leeren',
'settings.mediaProviderPlaceholder': 'API-Key einfügen',
'settings.mediaProviderBaseUrlPlaceholder': 'Standard-Base-URL überschreiben',
'settings.about': 'Info',
'settings.aboutHint': 'Version und Laufzeitdetails',
'settings.appVersion': 'Version',
'settings.appChannel': 'Kanal',
'settings.appRuntime': 'Laufzeit',
'settings.appPlatform': 'Plattform',
'settings.appArchitecture': 'Architektur',
'settings.runtimePackaged': 'Paketierte App',
'settings.runtimeDevelopment': 'Entwicklung',
'settings.versionUnavailable': 'Versionsdetails sind nicht verfügbar, solange der Daemon offline ist.',
'entry.tabDesigns': 'Designs',
'entry.tabExamples': 'Beispiele',
'entry.tabDesignSystems': 'Designsysteme',
'entry.openSettingsTitle': 'Einstellungen',
'entry.openSettingsAria': 'Einstellungen öffnen',
'entry.resizeAria': 'Seitenleiste skalieren',
'entry.loadingWorkspace': 'Workspace wird geladen…',
'entry.tabImageTemplates': 'Bildvorlagen',
'entry.tabVideoTemplates': 'Videovorlagen',
'promptTemplates.searchPlaceholder': 'Templates suchen…',
'promptTemplates.countLabel': '{n} Ergebnisse',
'promptTemplates.emptyImage': 'Noch keine Bild-Prompt-Templates installiert.',
'promptTemplates.emptyVideo': 'Noch keine Video-Prompt-Templates installiert.',
'promptTemplates.emptyNoMatch': 'Keine Templates passen zu Ihrer Suche.',
'promptTemplates.attributionFooter': 'Aus öffentlichen Prompt-Bibliotheken adaptiert. Jede Karte verlinkt zum ursprünglichen Autor.',
'promptTemplates.openPreviewTitle': 'Prompt und Vorschau öffnen',
'promptTemplates.sourcePrefix': 'Quelle:',
'promptTemplates.fetchError': 'Dieser Template-Inhalt konnte nicht geladen werden.',
'promptTemplates.promptLabel': 'Prompt-Text',
'promptTemplates.copyPrompt': 'Prompt kopieren',
'promptTemplates.copyDone': 'Kopiert!',
'promptTemplates.modelHint': 'Vorgeschlagenes Modell: {model}',
'promptTemplates.openSource': 'Original anzeigen',
'promptTemplates.openFullscreen': 'Vollbildvorschau öffnen',
'promptTemplates.closeFullscreen': 'Vollbildvorschau schließen',
'promptTemplates.allSources': 'Alle Quellen',
'promptTemplates.sourceFilterAria': 'Nach Quelle filtern',
'promptTemplates.retry': 'Erneut versuchen',
'newproj.tabPrototype': 'Prototyp',
'newproj.tabDeck': 'Slide Deck',
'newproj.tabTemplate': 'Aus Template',
'newproj.tabOther': 'Andere',
'newproj.titlePrototype': 'Neuer Prototyp',
'newproj.titleDeck': 'Neues Slide Deck',
'newproj.titleTemplate': 'Mit Template starten',
'newproj.titleImage': 'Neues Bild',
'newproj.titleVideo': 'Neues Video',
'newproj.titleAudio': 'Neues Audio',
'newproj.titleOther': 'Neues Projekt',
'newproj.namePlaceholder': 'Projektname',
'newproj.fidelityLabel': 'Detailgrad',
'newproj.fidelityWireframe': 'Wireframe',
'newproj.fidelityHigh': 'High Fidelity',
'newproj.toggleSpeakerNotes': 'Sprechernotizen verwenden',
'newproj.toggleSpeakerNotesHint': 'Weniger Text auf Slides — Gesprächspunkte in Notizen halten.',
'newproj.toggleAnimations': 'Animationen einbeziehen',
'newproj.toggleAnimationsHint':
'Bewegung (Einstiege, Hover, Übergänge) zusätzlich zum Template hinzufügen.',
'newproj.templateLabel': 'Template',
'newproj.noTemplatesTitle': 'Noch keine Templates',
'newproj.noTemplatesBody':
'Öffnen Sie ein Projekt und nutzen Sie dann das Teilen-Menü im File Viewer, um es in ein Template umzuwandeln. Templates erscheinen hier.',
'newproj.savedTemplate': 'Gespeichertes Template',
'newproj.fileSingular': 'Datei',
'newproj.filePlural': 'Dateien',
'newproj.create': 'Erstellen',
'newproj.createFromTemplate': 'Aus Template erstellen',
'newproj.createDisabledTitle':
'Speichern Sie zuerst ein Projekt als Template (Teilen-Menü in einem beliebigen Projekt).',
'newproj.importClaudeZip': 'Claude Design ZIP importieren',
'newproj.importClaudeZipTitle': 'Einen Claude Design .zip-Export importieren',
'newproj.importingClaudeZip': 'Import läuft…',
'newproj.privacyFooter': 'Standardmäßig können nur Sie Ihr Projekt sehen.',
'newproj.designSystem': 'Designsystem',
'newproj.dsNoneFreeform': 'Keines — frei',
'newproj.dsNoneSubtitleEmpty': 'Keine System-Tokens, eigene Palette wählen',
'newproj.dsNoneSubtitleSelected': 'System-Tokens überspringen. Der Agent wählt eine eigene Palette.',
'newproj.dsCategoryFallback': 'Designsystem',
'newproj.dsSearch': 'Designsysteme suchen…',
'newproj.dsModeAria': 'Auswahlmodus',
'newproj.dsModeSingle': 'Einzeln',
'newproj.dsModeMulti': 'Mehrfach',
'newproj.dsNoneTitle': 'Keines — frei',
'newproj.dsNoneSub': 'System-Tokens überspringen. Der Agent wählt eine eigene Palette.',
'newproj.dsEmpty': 'Keine Designsysteme passen zu „{query}“.',
'newproj.dsFootSingular': 'dient nur als Inspiration.',
'newproj.dsFootPlural': 'dienen nur als Inspiration.',
'newproj.dsFootClear': 'Leeren',
'newproj.dsBadgeDefault': 'STANDARD',
'newproj.dsPrimaryFallback': 'Primär',
'newproj.surfaceImage': 'Bild',
'newproj.surfaceVideo': 'Video',
'newproj.surfaceAudio': 'Audio',
'newproj.modelLabel': 'Modell',
'newproj.aspectLabel': 'Format',
'newproj.imageStyleLabel': 'Stilnotizen',
'newproj.imageStylePlaceholder': 'Editorial-Foto, weiches Tageslicht, gedämpfte Palette',
'newproj.videoLengthLabel': 'Länge',
'newproj.videoLengthSeconds': '{n}s',
'newproj.audioKindLabel': 'Audiotyp',
'newproj.audioKindMusic': 'Musik',
'newproj.audioKindSpeech': 'Sprache / TTS',
'newproj.audioKindSfx': 'SFX',
'newproj.audioDurationLabel': 'Dauer',
'newproj.audioDurationSeconds': '{n}s',
'newproj.voiceLabel': 'Stimme',
'newproj.voicePlaceholder': 'Provider-Voice-ID, optional',
'newproj.promptTemplateLabel': 'Referenzvorlage',
'newproj.promptTemplateNoneTitle': 'Keine — eigene schreiben',
'newproj.promptTemplateNoneSub': 'Galerie überspringen und eigenes Briefing verfassen',
'newproj.promptTemplateRefSub': 'Referenzvorlage',
'newproj.promptTemplateSearch': 'Vorlagen suchen…',
'newproj.promptTemplateEmpty': 'Für dieses Format sind noch keine Vorlagen installiert.',
'newproj.promptTemplateBodyLabel': 'Prompt (kann angepasst werden)',
'newproj.promptTemplateOptimizeHint':
'Beliebig editierbar — deine Änderungen fließen in das Agenten-Briefing ein.',
'newproj.promptTemplateBodyEmpty':
'Leerer Body — der Agent erhält keine Vorlagenreferenz.',
'designs.subRecent': 'Aktuell',
'designs.subYours': 'Ihre Designs',
'designs.filterAria': 'Projekte filtern',
'designs.searchPlaceholder': 'Suchen…',
'designs.emptyNoProjects': 'Noch keine Projekte. Erstellen Sie links eines.',
'designs.emptyNoMatch': 'Keine Projekte passen zu Ihrer Suche.',
'designs.deleteTitle': 'Projekt löschen',
'designs.deleteConfirm': '„{name}“ löschen?',
'designs.cardFreeform': 'frei',
'designs.status.notStarted': 'Nicht gestartet',
'designs.status.queued': 'In Warteschlange',
'designs.status.running': 'Läuft',
'designs.status.awaitingInput': 'Eingabe nötig',
'designs.status.succeeded': 'Abgeschlossen',
'designs.status.failed': 'Fehlgeschlagen',
'designs.status.canceled': 'Abgebrochen',
'designs.viewToggleAria': 'Ansichtsmodus',
'designs.viewGrid': 'Rasteransicht',
'designs.viewKanban': 'Board-Ansicht',
'designs.kanbanEmptyColumn': 'Keine Designs',
'designs.deleteAria': 'Projekt {name} löschen',
'examples.typeLabel': 'Typ',
'examples.surfaceLabel': 'Oberfläche',
'examples.surfaceWeb': 'Web',
'examples.surfaceImage': 'Bild',
'examples.surfaceVideo': 'Video',
'examples.surfaceAudio': 'Audio',
'examples.scenarioLabel': 'Szenario',
'examples.modeAll': 'Alle',
'examples.modePrototypeDesktop': 'Prototypen · Desktop',
'examples.modePrototypeMobile': 'Prototypen · Mobil',
'examples.modeDeck': 'Folien',
'examples.modeDocument': 'Dokumente & Templates',
'examples.modeOrbit': 'Orbit',
'examples.scenarioGeneral': 'Allgemein',
'examples.scenarioEngineering': 'Engineering',
'examples.scenarioProduct': 'Produkt',
'examples.scenarioDesign': 'Design',
'examples.scenarioMarketing': 'Marketing',
'examples.scenarioSales': 'Vertrieb',
'examples.scenarioFinance': 'Finanzen',
'examples.scenarioHr': 'Personal',
'examples.scenarioOperations': 'Betrieb',
'examples.scenarioSupport': 'Support',
'examples.scenarioLegal': 'Recht',
'examples.scenarioEducation': 'Bildung',
'examples.scenarioPersonal': 'Persönlich',
'examples.emptyNoSkills': 'Keine Skills verfügbar. Läuft der Daemon?',
'examples.searchPlaceholder': 'Beispiele suchen…',
'examples.searchAria': 'Beispiele nach Namen suchen',
'examples.emptyNoMatch': 'Keine Beispiele passen zu diesen Filtern.',
'examples.openPreview': '⤢ Vorschau öffnen',
'examples.loadingPreview': 'Vorschau wird geladen…',
'examples.hoverPreview': 'Für Vorschau hovern',
'examples.usePrompt': 'Diesen Prompt verwenden',
'examples.previewModalTitle': 'Vollständige Vorschau öffnen (Modal)',
'examples.shareTitle': 'Dieses Beispiel teilen',
'examples.shareLoadFirst': 'Zuerst hovern, um die Vorschau zu laden',
'examples.shareMenu': 'Teilen ▾',
'examples.exportPdfAllSlides': 'Als PDF exportieren (alle Slides)',
'examples.exportPptxLocked': 'Als PPTX exportieren… (zuerst Template öffnen)',
'examples.tagSlideDeck': 'Foliendeck',
'examples.tagTemplate': 'Template',
'examples.tagDesignSystem': 'Designsystem',
'examples.tagMobilePrototype': 'Mobiler Prototyp',
'examples.tagDesktopPrototype': 'Desktop-Prototyp',
'examples.tagImage': 'Bild',
'examples.tagVideo': 'Video',
'examples.tagAudio': 'Audio',
'examples.previewLabel': 'Vorschau',
'ds.surfaceLabel': 'Oberfläche',
'ds.surfaceWeb': 'Web',
'ds.surfaceImage': 'Bild',
'ds.surfaceVideo': 'Video',
'ds.surfaceAudio': 'Audio',
'ds.searchPlaceholder': 'Designsysteme suchen…',
'ds.emptyNoMatch': 'Keine Designsysteme passen zu Ihrer Suche.',
'ds.badgeDefault': 'STANDARD',
'ds.preview': 'Vorschau',
'ds.previewTitle': 'Designsystem-Vorschau',
'ds.categoryAll': 'Alle',
'ds.categoryUncategorized': 'Nicht kategorisiert',
'ds.showcase': 'Showcase',
'ds.tokens': 'Tokens',
'ds.specToggle': 'DESIGN.md',
'ds.specLoading': 'DESIGN.md wird geladen…',
'avatar.title': 'Konto & Einstellungen',
'avatar.localCli': 'Lokale CLI',
'avatar.anthropicApi': 'Anthropic API',
'avatar.useLocal': 'Lokale CLI verwenden',
'avatar.useApi': 'API · BYOK verwenden',
'avatar.codeAgent': 'Code-Agent',
'avatar.rescan': 'PATH neu scannen',
'avatar.settings': 'Einstellungen',
'avatar.backToProjects': 'Zurück zu Projekten',
'avatar.metaActive': 'aktiv',
'avatar.metaOffline': 'offline',
'avatar.metaSelected': 'ausgewählt',
'avatar.noAgentSelected': 'kein Agent ausgewählt',
'avatar.modelSection': 'Modell',
'avatar.modelLabel': 'Modell',
'avatar.reasoningLabel': 'Reasoning',
'avatar.customSuffix': '(benutzerdefiniert)',
'project.backToProjects': 'Zurück zu Projekten',
'project.metaFreeform': 'frei',
'project.resizeChatPanel': 'Größe des Chat-Bereichs ändern',
'chat.tabChat': 'Chat',
'chat.tabComments': 'Kommentare',
'chat.commentsSoon': 'Kommentare — demnächst',
'chat.comments.attached': 'Attached to chat',
'chat.comments.emptyAttached': 'No comments attached.',
'chat.comments.saved': 'Saved comments',
'chat.comments.emptySaved': 'No saved comments.',
'chat.comments.add': 'Add',
'chat.comments.addAll': 'Add all',
'chat.comments.remove': 'Remove',
'chat.comments.placeholder': 'Comment on this element…',
'chat.comments.addSend': 'Add & send',
'chat.comments.updateSend': 'Update & send',
'chat.comments.removeAttachment': 'Remove comment attachment',
'chat.comments.removeAttachmentAria': 'Remove comment attachment for {name}',
'chat.conversationsTitle': 'Konversationen',
'chat.conversationsAria': 'Konversationsverlauf',
'chat.newConversation': 'Neue Konversation',
'chat.newConversationsTitle': 'Neue Konversation',
'chat.conversationsHeading': 'Konversationen',
'chat.new': 'Neu',
'chat.emptyConversations': 'Noch keine Konversationen.',
'chat.deleteConversation': 'Konversation löschen',
'chat.deleteConversationConfirm':
'„{title}“ löschen? Dadurch werden die Nachrichten entfernt.',
'chat.untitledConversation': 'Konversation ohne Titel',
'chat.startTitle': 'Konversation starten',
'chat.startHint':
'Legen Sie Bilder als visuelle Referenz ab, fügen Sie sie ein oder tippen Sie @, um eine Datei aus diesem Projekt anzuhängen. Oder probieren Sie einen dieser Starts:',
'chat.fillInputTitle': 'Klicken, um die Eingabe zu füllen',
'chat.jumpToLatest': 'Zur neuesten springen',
'chat.scrollToLatest': 'Zur neuesten scrollen',
'chat.you': 'Sie',
'chat.openFile': '{name} öffnen',
'chat.composerPlaceholder':
'Beschreiben Sie das gewünschte Design — Bilder einfügen/ablegen oder mit @ eine Datei referenzieren…',
'chat.composerHint':
'⌘/Ctrl + Enter zum Senden · Bilder einfügen · @ für Dateireferenzen',
'chat.cliSettingsTitle': 'CLI- & Modelleinstellungen',
'chat.cliSettingsAria': 'CLI- und Modelleinstellungen öffnen',
'chat.attachTitle': 'Dateien anhängen (oder einfügen / ablegen)',
'chat.attachAria': 'Dateien anhängen',
'chat.importTitle': 'Quellen importieren (demnächst)',
'chat.importLabel': 'Importieren',
'chat.importComingSoon': 'Demnächst',
'chat.importSoon': 'Bald',
'chat.importFig': '.fig-Datei hochladen',
'chat.importGitHub': 'GitHub verbinden',
'chat.importWeb': 'Webelement erfassen',
'chat.importFolder': 'Code-Ordner verknüpfen',
'chat.importSkills': 'Skills und Designsysteme',
'chat.importProject': 'Reference another project',
'chat.linkedFolderRemoveAria': 'Verknüpften Ordner {path} entfernen',
'chat.linkedFolderNotFound': 'Ordner existiert nicht',
'chat.linkedFolderAlready': 'Dieser Ordner ist bereits verknüpft',
'chat.linkedFolderPickError': 'Ordnerauswahl konnte nicht geöffnet werden',
'chat.send': 'Senden',
'chat.stop': 'Stoppen',
'chat.removeAria': '{name} entfernen',
'chat.example1Title': 'Editorial Pitch Deck',
'chat.example1Tag': 'Magazin',
'chat.example1Prompt':
'Ein 10-Slide-Editorial-Pitch-Deck für ein Designstudio, das eine Seed-Runde aufnimmt — Swiss-Grid-Layout, übergroße Serif-Headlines mit markanten Initialen, Monospace-Abschnittsnummern, großzügiger Negativraum und Full-Bleed-Fotoslides im Wechsel mit textlastigen Slides. Cover, Vision, Markt, Produkt, Traction, Team, Ask, Kontakt.',
'chat.example2Title': 'SaaS-Analytics-Dashboard',
'chat.example2Tag': 'Daten',
'chat.example2Prompt':
'Ein dichtes Analytics-Dashboard für ein Developer-Tools-SaaS — KPI-Leiste mit Week-over-Week-Deltas, zwei gestapelte Liniendiagramme (MRR und aktive Workspaces), eine Welt-Heatmap der Nutzung, ein Kohorten-Retention-Raster, eine Top-Customers-Bestenliste und ein Echtzeit-Event-Feed. Dark Theme, tabellarische Monospace-Ziffern, Sparkline-Akzente.',
'chat.example3Title': 'Annual Report Long-Scroll',
'chat.example3Tag': 'Editorial',
'chat.example3Prompt':
'Ein interaktiver Annual Report für eine Klima-Non-Profit-Organisation — Long-Scroll-Editorial-Layout mit großen Pull-Quote-Blöcken, Datenvisualisierungen (gestapelte Balken, animierte Counter, Choropleth-Karte der Projektstandorte), Fotobrechern, Spenderwand und finalem Call-to-Action. Moderne Serifenschrift für Body, Sans-Serif-Chartlabels, erdige Papierpalette.',
'preview.shareMenu': 'Teilen ▾',
'preview.openInNewTab': 'In neuem Tab öffnen',
'preview.exit': '⤓ Beenden',
'preview.fullscreen': '⤢ Vollbild',
'preview.closeTitle': 'Schließen (Esc)',
'preview.loading': '{label} wird geladen…',
'preview.showSidebar': '{label} einblenden',
'preview.hideSidebar': '{label} ausblenden',
'misc.savedTemplate': 'Gespeichertes Template',
'misc.primary': 'Primär',
'misc.designSystem': 'Designsystem',
'workspace.designFiles': 'Design-Dateien',
'workspace.focusMode': 'Focus workspace',
'workspace.showChat': 'Show chat',
'workspace.closeTab': 'Tab schließen',
'workspace.deleteFileConfirm': '„{name}“ aus dem Projektordner löschen?',
'workspace.openFromDesignFiles': 'Datei öffnen aus',
'workspace.designFilesLink': 'Design-Dateien',
'workspace.loadingSketch': 'Sketch wird geladen…',
'designFiles.title': 'Design-Dateien',
'designFiles.upload': 'Dateien hochladen',
'designFiles.pasteText': 'Als Textdatei einfügen',
'designFiles.newSketch': 'Neuer Sketch',
'designFiles.empty':
'Noch nichts hier. Legen Sie unten Dateien ab oder erstellen Sie einen Sketch / fügen Sie Text ein.',
'designFiles.refresh': 'Aktualisieren',
'designFiles.delete': 'Löschen',
'designFiles.searchPlaceholder': 'Dateien suchen…',
'designFiles.up': 'Nach oben',
'designFiles.back': 'Zurück',
'designFiles.crumbs': 'Projekt',
'designFiles.rowMenu': 'Zeilenmenü',
'designFiles.openInTab': 'In Tab öffnen',
'designFiles.download': 'Herunterladen',
'designFiles.downloadSelected': 'Download {n} as ZIP',
'designFiles.clearSelection': 'Clear',
'designFiles.selectAll': 'Select all',
'designFiles.dropTitle': '⤓ Dateien hier ablegen',
'designFiles.dropDesc':
'Bilder, Docs, Referenzen oder Ordner — der Agent nutzt sie als Kontext.',
'designFiles.upload.title': 'Dateien hochladen',
'designFiles.paste.title': 'Text als Datei einfügen',
'designFiles.upload.label': 'Hochladen',
'designFiles.paste.label': 'Einfügen',
'designFiles.previewOpen': 'Öffnen',
'designFiles.previewClose': 'Vorschau schließen',
'designFiles.modified': 'Geändert {time} · {size}',
'designFiles.weeksAgo': 'vor {n} W.',
'designFiles.sectionPages': 'Seiten',
'designFiles.sectionScripts': 'Skripte',
'designFiles.sectionImages': 'Bilder',
'designFiles.sectionSketches': 'Sketches',
'designFiles.sectionOther': 'Andere',
'designFiles.showMore': '+{n} weitere anzeigen',
'designFiles.kindHtml': 'HTML-Seite',
'designFiles.kindImage': 'Bild',
'designFiles.kindSketch': 'Sketch',
'designFiles.kindText': 'Text',
'designFiles.kindCode': 'Skript',
'designFiles.kindPdf': 'PDF',
'designFiles.kindDocument': 'Dokument',
'designFiles.kindPresentation': 'Präsentation',
'designFiles.kindSpreadsheet': 'Tabellenblatt',
'designFiles.kindBinary': 'Binärdatei',
'quickSwitcher.placeholder': 'Datei öffnen…',
'quickSwitcher.empty': 'Keine Dateien in diesem Projekt',
'quickSwitcher.noMatches': 'Keine Treffer',
'quickSwitcher.navigate': 'navigieren',
'quickSwitcher.open': 'öffnen',
'quickSwitcher.close': 'schließen',
'pasteDialog.title': 'Text einfügen',
'pasteDialog.hint': 'Wird im Projektordner gespeichert. Wählen Sie einen beliebigen Namen.',
'pasteDialog.fileNameLabel': 'Dateiname',
'pasteDialog.namePlaceholder': 'notes.txt',
'pasteDialog.contentLabel': 'Inhalt',
'pasteDialog.contentPlaceholder': 'Beliebigen Text einfügen…',
'pasteDialog.save': 'Speichern',
'pasteDialog.cancel': 'Abbrechen',
'sketch.save': 'Sketch speichern',
'sketch.cancel': 'Abbrechen',
'sketch.saving': 'Speichern…',
'sketch.tooltipDirty': 'Ungespeicherte Änderungen',
'sketch.tooltipClean': 'Gespeichert',
'fileViewer.empty': 'Wählen Sie eine Datei zur Ansicht aus.',
'fileViewer.loading': 'Wird geladen…',
'fileViewer.exportPptx': 'Als PPTX exportieren',
'fileViewer.openInNewTab': 'In neuem Tab öffnen',
'fileViewer.copyPath': 'Pfad kopieren',
'fileViewer.copied': 'Kopiert!',
'fileViewer.share': 'Teilen',
'fileViewer.binaryMeta': 'Binärdatei · {size}',
'fileViewer.binaryNote':
'Binärdatei ({size} Bytes). Laden Sie sie herunter oder öffnen Sie sie von der Festplatte, um sie zu prüfen.',
'fileViewer.pdfMeta': 'PDF · {size}',
'fileViewer.documentMeta': 'Dokument',
'fileViewer.presentationMeta': 'Präsentation',
'fileViewer.spreadsheetMeta': 'Tabellenblatt',
'fileViewer.previewUnavailable': 'Vorschau nicht verfügbar. Laden Sie die Datei herunter oder öffnen Sie sie zur Prüfung.',
'fileViewer.download': 'Herunterladen',
'fileViewer.open': 'Öffnen',
'fileViewer.imageMeta': 'Bild · {size}',
'fileViewer.reactMeta': 'React-Komponente · {size}',
'fileViewer.sketchMeta': 'Sketch · {size}',
'fileViewer.markdownStreamingMeta': 'Streaming-Vorschau…',
'fileViewer.markdownErrorMeta': 'Vorschau ist möglicherweise unvollständig (Generierungsfehler).',
'fileViewer.markdownStreamingStatus': 'Streaming… zeige partielles Markdown.',
'fileViewer.markdownErrorStatus': 'Generierungsfehler. Zeige letzten verfügbaren Inhalt.',
'fileViewer.videoMeta': 'Video · {size}',
'fileViewer.audioMeta': 'Audio · {size}',
'fileViewer.reload': 'Neu laden',
'fileViewer.reloadDisk': 'Von Festplatte neu laden',
'fileViewer.copy': 'Kopieren',
'fileViewer.copyTitle': 'Dateiinhalte kopieren',
'fileViewer.saveDisabled': 'Speichern (Read-only-Viewer)',
'fileViewer.save': 'Speichern',
'fileViewer.preview': 'Vorschau',
'fileViewer.source': 'Quelle',
'fileViewer.tweaks': 'Tweaks',
'fileViewer.comment': 'Kommentieren',
'fileViewer.edit': 'Bearbeiten',
'fileViewer.draw': 'Zeichnen',
'manualEdit.layers': "Layers",
'manualEdit.editableCount': "{count} editable",
'manualEdit.title': "Manual editor",
'manualEdit.selectLayer': "Select a layer",
'manualEdit.empty': "Click an element in the preview or choose a layer.",
'manualEdit.noClass': "no class",
'manualEdit.tabsAria': "Manual edit tabs",
'manualEdit.tabContent': "Content",
'manualEdit.tabStyle': "Style",
'manualEdit.tabAttributes': "Attributes",
'manualEdit.tabHtml': "Html",
'manualEdit.tabSource': "Source",
'manualEdit.attributesJson': "Attributes JSON",
'manualEdit.selectedHtml': "Selected element HTML",
'manualEdit.fullSource': "Full artifact source",
'manualEdit.applyContent': "Apply Content",
'manualEdit.applyStyle': "Apply Style",
'manualEdit.applyAttributes': "Apply Attributes",
'manualEdit.applyHtml': "Apply HTML",
'manualEdit.applySource': "Apply Source",
'manualEdit.invalidAttributes': "Invalid attributes JSON.",
'manualEdit.changes': "Changes",
'manualEdit.undo': "Undo",
'manualEdit.redo': "Redo",
'manualEdit.noChanges': "No manual edits yet.",
'manualEdit.imageUrl': "Image URL",
'manualEdit.altText': "Alt text",
'manualEdit.label': "Label",
'manualEdit.text': "Text",
'manualEdit.href': "Href",
'manualEdit.textColor': "Text color",
'manualEdit.background': "Background",
'manualEdit.fontSize': "Font size",
'manualEdit.weight': "Weight",
'manualEdit.align': "Align",
'manualEdit.padding': "Padding",
'manualEdit.margin': "Margin",
'manualEdit.radius': "Radius",
'manualEdit.border': "Border",
'manualEdit.width': "Width",
'manualEdit.minHeight': "Min height",
'fileViewer.zoomOut': 'Verkleinern',
'fileViewer.zoomIn': 'Vergrößern',
'fileViewer.resetZoom': 'Zoom zurücksetzen',
'fileViewer.reloadAria': 'Neu laden',
'fileViewer.previousSlide': 'Vorherige Slide',
'fileViewer.nextSlide': 'Nächste Slide',
'fileViewer.slideNavAria': 'Slide-Navigation',
'fileViewer.present': 'Präsentieren',
'fileViewer.presentInTab': 'In diesem Tab',
'fileViewer.presentFullscreen': 'Vollbild',
'fileViewer.presentNewTab': 'Neuer Tab',
'fileViewer.exitPresentation': 'Präsentation beenden',
'fileViewer.shareLabel': 'Teilen',
'fileViewer.exportPdf': 'Als PDF exportieren',
'fileViewer.exportPdfAllSlides': 'Als PDF exportieren (alle Slides)',
'fileViewer.exportPptxBusy': 'Warten Sie, bis der aktuelle Turn abgeschlossen ist.',
'fileViewer.exportPptxHint':
'Senden Sie eine Anfrage an den Agent, um dieses Design in PPTX umzuwandeln.',
'fileViewer.exportPptxNa': 'PPTX-Export ist hier nicht verfügbar.',
'fileViewer.exportZip': 'Als .zip herunterladen',
'fileViewer.exportHtml': 'Als eigenständiges HTML exportieren',
'fileViewer.exportMd': 'Als Markdown exportieren',
'fileViewer.exportJsx': 'Als JSX exportieren',
'fileViewer.exportReactHtml': 'Vorschau als HTML exportieren',
'fileViewer.saveAsTemplate': 'Als Template speichern…',
'fileViewer.savingTemplate': 'Template wird gespeichert…',
'fileViewer.savedTemplate': 'Als „{name}“ gespeichert',
'fileViewer.savedTemplateFail': 'Template konnte nicht gespeichert werden — bitte erneut versuchen.',
'fileViewer.templateNamePrompt': 'Template-Name',
'fileViewer.templateNameDefault': 'Template ohne Titel',
'fileViewer.templateDescPrompt':
'Kurze Beschreibung (optional — was macht dieses Template nützlich?)',
'fileViewer.deployToVercel': 'Auf Vercel deployen',
'fileViewer.redeployToVercel': 'Erneut deployen',
'fileViewer.deployingToVercel': 'Deployment auf Vercel läuft…',
'fileViewer.preparingPublicLink': 'Öffentlicher Link wird vorbereitet…',
'fileViewer.copyDeployLink': 'Link kopieren',
'fileViewer.deployModalTitle': 'Auf Vercel deployen',
'fileViewer.deployModalSubtitle':
'Deployen Sie dieses HTML-Artifact als Vercel Preview mit Ihrem eigenen Konto.',
'fileViewer.vercelToken': 'Vercel Token',
'fileViewer.vercelTokenGetLink': 'Vercel Token abrufen',
'fileViewer.vercelTokenPlaceholder': 'Vercel Token einfügen',
'fileViewer.vercelTokenReuseHint':
'Gespeicherter Token wird verwendet. Geben Sie einen neuen Token ein, um ihn zu ersetzen.',
'fileViewer.vercelTokenRequired': 'Geben und speichern Sie zuerst einen Vercel Token.',
'fileViewer.vercelTeamId': 'Team-ID',
'fileViewer.vercelTeamSlug': 'Team-Slug',
'fileViewer.optional': 'Optional',
'fileViewer.vercelPreviewOnly': 'Deployments sind vorerst nur Previews.',
'fileViewer.savingConfig': 'Speichern…',
'fileViewer.deployConfigSaveFailed': 'Vercel-Einstellungen konnten nicht gespeichert werden.',
'fileViewer.deployFailed': 'Deployment fehlgeschlagen. Prüfen Sie die Vercel-Einstellungen und versuchen Sie es erneut.',
'fileViewer.deployResultLabel': 'Bereitgestellte URL',
'fileViewer.deployLinkPreparingLabel': 'Öffentlicher Link ausstehend',
'fileViewer.deployLinkDelayed':
'Ihre Site ist deployed. Vercel bereitet den öffentlichen Link noch vor.',
'fileViewer.deployLinkProtectedLabel': 'Vercel Protection aktiviert',
'fileViewer.deployLinkProtected':
'Ihre Site wurde deployed, aber Vercel verlangt Authentifizierung für diesen Preview-Link. Deaktivieren Sie Deployment Protection oder verwenden Sie eine Custom Domain.',
'fileViewer.retryLink': 'Jetzt erneut versuchen',
'questionForm.submit': 'Absenden',
'questionForm.skip': 'Überspringen',
'questionForm.locked': 'Beantwortet',
'conv.switch': 'Konversation wechseln',
'conv.label': 'Konversation',
'conv.heading': 'Konversationen',
'conv.new': '+ Neu',
'conv.empty': 'Noch keine Konversationen.',
'conv.untitled': 'Konversation ohne Titel',
'conv.renameTooltip': 'Doppelklicken zum Umbenennen',
'conv.delete': 'Konversation löschen',
'conv.deleteConfirm': '„{title}“ löschen? Dadurch werden die Nachrichten entfernt.',
'agentPicker.label': 'Agent',
'agentPicker.modeChoose': 'Ausführungsmodus wählen',
'agentPicker.localCli': 'Lokale CLI',
'agentPicker.daemonOff': 'Daemon aus',
'agentPicker.byok': 'API · BYOK',
'agentPicker.selectAgent': 'Erkannte Code-Agent-CLI auswählen',
'agentPicker.noAgents': 'keine Agents im PATH',
'agentPicker.notInstalled': 'nicht installiert',
'agentPicker.rescan': 'Lokalen PATH erneut nach Agents scannen',
'tool.openInTab': '{name} in einem Tab öffnen',
'tool.open': 'öffnen',
'tool.todos': 'Todos',
'tool.write': 'Write',
'tool.edit': 'Edit',
'tool.read': 'Read',
'tool.bash': 'Bash',
'tool.glob': 'Glob',
'tool.grep': 'Grep',
'tool.fetch': 'Fetch',
'tool.search': 'Search',
'tool.lines': '{n} Zeilen',
'tool.changeSingular': 'Änderung',
'tool.changePlural': 'Änderungen',
'tool.in': 'in {path}',
'tool.hide': 'ausblenden',
'tool.output': 'Ausgabe',
'tool.running': 'läuft…',
'tool.error': 'Fehler',
'tool.done': 'fertig',
'assistant.role': 'Assistent',
'assistant.workingLabel': 'Arbeitet',
'assistant.doneLabel': 'Fertig',
'assistant.unfinishedLabel': 'Mit unerledigter Arbeit gestoppt',
'assistant.unfinishedSummary': '{n} Aufgabe(n) offen',
'assistant.unfinishedMore': '+{n} weitere',
'assistant.continueRemaining': 'Offene Aufgaben fortsetzen',
'assistant.outTokens': '{n} ausgehend',
'assistant.producedFiles': 'Dateien aus diesem Turn',
'assistant.openFile': 'Öffnen',
'assistant.downloadFile': 'Herunterladen',
'assistant.thinking': 'Denkt',
'assistant.systemReminder': 'Systemhinweis',
'assistant.waitingFirstOutput': 'Warte auf erste Ausgabe',
'assistant.statusBootingAgent': 'Agent wird gestartet',
'assistant.statusStarting': 'Startet',
'assistant.statusRequesting': 'Anfrage wird gesendet',
'assistant.statusThinking': 'Denkt',
'assistant.statusStreaming': 'Streamt',
'assistant.slowHint':
'Dauert länger als üblich. Das Formular erscheint normalerweise nach 5–10 s — Sie können Stoppen und umformulieren.',
'assistant.verbEditing': 'Bearbeitet',
'assistant.verbWriting': 'Schreibt',
'assistant.verbReading': 'Liest',
'assistant.verbSearching': 'Sucht',
'assistant.verbRunning': 'Führt aus',
'assistant.verbTodos': 'Todos',
'assistant.verbFetching': 'Holt',
'assistant.verbCalling': 'Ruft auf',
'qf.answered': 'beantwortet',
'qf.choose': 'Auswählen…',
'qf.required': 'erforderlich',
'qf.lockedSubmitted':
'Antworten gesendet — der Agent nutzt sie für den Rest der Sitzung.',
'qf.lockedPrev': 'Dieses Formular stammt aus einem vorherigen Turn.',
'qf.hint':
'Wählen Sie, was passt. Überspringen Sie optionale Felder, die Ihnen egal sind — der Agent nutzt sinnvolle Standards.',
'qf.submitDefault': 'Antworten senden',
'qf.submitDisabledTitle': 'Füllen Sie zuerst die erforderlichen Felder aus',
'qf.submitTitle': 'Antworten senden',
'qf.cardSelected': 'ausgewählt',
'qf.cardRefs': 'Refs:',
'qf.cardSampleText': 'Franz jagt im komplett verwahrlosten Taxi quer durch Bayern · 0123',
'sketch.toolSelect': 'Auswählen (no-op)',
'sketch.toolPen': 'Stift',
'sketch.toolText': 'Text',
'sketch.toolRect': 'Rechteck',
'sketch.toolArrow': 'Pfeil',
'sketch.toolEraser': 'Radierer',
'sketch.color': 'Farbe',
'sketch.strokeSize': 'Strichstärke',
'sketch.undo': 'Rückgängig',
'sketch.clear': 'Leeren',
'sketch.close': 'Schließen',
'sketch.textPrompt': 'Text:',
'pet.title': 'Haustiere',
'pet.tabBuiltIn': 'Vorgegeben',
'pet.tabBuiltInHint': 'Mit Open Design gebündelte Begleiter — auswählen und adoptieren.',
'pet.builtInEmpty': 'Eingebaute Pets sind gerade nicht verfügbar. Aktualisiere den Community-Tab, sobald der Daemon wieder online ist.',
'pet.tabCustom': 'Eigenes',
'pet.tabCustomHint': 'Eigener Name, Glyph, Farbe oder Sprite.',
'pet.tabCommunity': 'Community',
'pet.tabCommunityHint': 'Von Codex geschlüpfte Pets — adoptieren oder neue generieren.',
'pet.tabsAria': 'Pet-Quelle',
'pet.subtitle': 'Adoptiere ein kleines Maskottchen, das über deinem Workspace schwebt.',
'pet.navTitle': 'Haustiere',
'pet.navHint': 'Adoptieren oder anpassen',
'pet.adopt': 'Adoptieren',
'pet.adoptedBadge': 'Adoptiert',
'pet.adoptCallout': 'Ein Haustier adoptieren',
'pet.changePet': 'Haustier wechseln',
'pet.wake': 'Wecken',
'pet.tuck': 'Verstecken',
'pet.wakeTitle': 'Haustier wecken — Overlay anzeigen.',
'pet.tuckTitle': 'Haustier verstecken — Overlay ausblenden.',
'pet.settingsTitle': 'Haustier-Einstellungen öffnen',
'pet.useCustom': 'Mein Haustier verwenden',
'pet.customTitle': 'Selbst gestalten',
'pet.customHint': 'Wähle Name, Symbol und Akzentfarbe — das Overlay aktualisiert sich live.',
'pet.customGreetingPlaceholder': 'Eine Begrüßung von deinem Haustier…',
'pet.fieldName': 'Name',
'pet.fieldGlyph': 'Symbol',
'pet.fieldGlyphHint': 'Ein einzelnes Emoji passt am besten (z. B. 🐝, 🦄, 🐢).',
'pet.fieldGreeting': 'Begrüßung',
'pet.fieldAccent': 'Akzentfarbe',
'pet.fieldAccentCustom': 'Eigene Farbe',
'pet.overlayAria': 'Haustier-Begleiter',
'pet.spriteAria': '{name} — zum Bewegen ziehen, zum Plaudern klicken',
'pet.spriteTitle': 'Hallo von {name}! Klick zum Plaudern.',
'pet.railAria': 'Haustier-Auswahl',
'pet.railTitle': 'Haustiere',
'pet.railHint': 'Wähle einen Begleiter, der über deinem Workspace schwebt.',
'pet.railExpand': 'Haustier-Auswahl einblenden',
'pet.railCollapse': 'Haustier-Auswahl einklappen',
'pet.railHide': 'Haustier-Auswahl ausblenden',
'pet.railShow': 'Haustier-Auswahl einblenden',
'pet.railCustomFlavor': 'Eigenes — Name, Symbol, Farbe.',
'pet.railCustomize': 'Anpassen…',
'pet.composerTitle': 'Haustiere — wecken, verstecken oder auswählen',
'pet.composerMenuTitle': 'Haustiere',
'pet.composerMenuHint': 'Tipp: tippe /pet zum Umschalten',
'pet.composerOpenSettings': 'In den Einstellungen anpassen',
'pet.welcomeTeaserTitle': 'Adoptiere ein Haustier',
'pet.welcomeTeaserBody': 'Ein kleiner schwebender Begleiter für deinen Workspace.',
'pet.welcomeTeaserCta': 'Eines wählen',
'pet.imageUpload': 'Sprite hochladen',
'pet.imageReplace': 'Sprite ersetzen',
'pet.imageRemove': 'Emoji verwenden',
'pet.imageHintIdle': 'PNG, JPG, WebP, GIF oder SVG. Spritesheet? Lade einen horizontalen Streifen hoch und setze die Frame-Anzahl.',
'pet.imageHintActive': 'Dein Sprite wird angezeigt. Setze Frames > 1, um einen horizontalen Spritesheet zu animieren.',
'pet.fieldFrames': 'Frames',
'pet.fieldFramesHint': '1 = statisch. > 1 = horizontaler Spritesheet.',
'pet.fieldFps': 'Geschwindigkeit (fps)',
'pet.fieldFpsHint': 'Wie schnell die Frames durchlaufen.',
'pet.atlasImport': 'Codex-Sprite importieren',
'pet.atlasImportTitle': 'Importiere ein hatch-pet 8x9 / 192x208 Atlas (PNG oder WebP).',
'pet.atlasPickerTitle': 'Animationszeile wählen',
'pet.atlasPickerHint': 'Codex-Pets bringen 9 Animationszeilen mit. Standardmäßig behalten wir den ganzen Atlas, damit das Pet bei Hover, Drag-Richtung und langer Untätigkeit die Reihen wechselt. Du kannst es auch auf eine Schleife festlegen.',
'pet.atlasCancel': 'Atlas verwerfen',
'pet.atlasAdopt': 'Auf diese Zeile festlegen',
'pet.atlasAdoptFull': 'Ganzen Atlas verwenden (animiert)',
'pet.atlasAdoptFullTitle': 'Alle Zeilen behalten, damit das Pet auf Hover, Drag-Richtung und lange Untätigkeit reagiert.',
'pet.atlasAdoptRowTitle': 'Nur die markierte Zeile als einzelne Endlosschleife herausschneiden.',
'pet.atlasActiveHint': 'Animierter Atlas aktiv — das Pet wählt anhand deiner Interaktion (Hover, Drag, Untätigkeit) eine Zeile aus.',
'pet.atlasRow.idle': 'Idle',
'pet.atlasRow.running-right': 'Lauf rechts',
'pet.atlasRow.running-left': 'Lauf links',
'pet.atlasRow.waving': 'Winken',
'pet.atlasRow.jumping': 'Springen',
'pet.atlasRow.failed': 'Gescheitert',
'pet.atlasRow.waiting': 'Warten',
'pet.atlasRow.running': 'Laufen',
'pet.atlasRow.review': 'Prüfen',
'pet.hatchTitle': 'Neues Pet mit KI ausbrüten',
'pet.hatchHint': 'Nutze das mitgelieferte hatch-pet-Skill im Chat, um ein Codex-Spritesheet zu erzeugen, und importiere es danach hier.',
'pet.hatchConcept': 'Pet-Konzept (optional)',
'pet.hatchConceptPlaceholder': 'z. B. ein winziger Pixel-Shiba im kuscheligen Pulli',
'pet.hatchCopy': 'Prompt kopieren',
'pet.hatchCopied': 'Kopiert!',
'pet.hatchFoot': 'Sobald das Skill dein Pet gespeichert hat, kommst du zurück und wählst „Codex-Sprite importieren".',
'pet.slashPopoverAria': 'Slash-Befehle',
'pet.slashPopoverTitle': 'Befehle',
'pet.slashPopoverHint': '↑↓ navigieren · enter auswählen · esc schließen',
'pet.slashPet': 'Pet umschalten, adoptieren oder Einstellungen öffnen.',
'pet.slashPetWake': 'Schwebende Pet-Anzeige aufwecken.',
'pet.slashPetTuck': 'Pet vorerst wegstecken.',
'pet.slashHatch': 'Codex-Pet mit dem hatch-pet-Skill erzeugen.',
'pet.slashHatchArg': '<Konzept>',
'pet.codexTitle': 'Kürzlich ausgebrütet',
'pet.codexSubtitle': 'Vom hatch-pet-Skill gepackte Pets erscheinen hier zur Ein-Klick-Adoption.',
'pet.codexSubtitleWithDir': 'Suche in {dir} nach hatch-pet-Paketen.',
'pet.codexEmpty': 'Noch keine ausgebrüteten Pets. Tippe /hatch im Chat, um eines zu erzeugen.',
'pet.codexLoading': 'Suche nach ausgebrüteten Pets…',
'pet.codexRefresh': 'Aktualisieren',
'pet.codexAdopt': 'Adoptieren',
'pet.codexAdopting': 'Adoptiere…',
'pet.communitySync': 'Community-Pets herunterladen',
'pet.communitySyncing': 'Lade…',
'pet.communitySyncTitle': 'Synchronisiere die neuesten Pets aus Codex Pet Share + j20 Hatchery nach ~/.codex/pets/.',
'pet.communitySyncDone': '{wrote} neue Pets synchronisiert ({total} insgesamt).',
'pet.communitySyncFailed': 'Sync fehlgeschlagen: {error}',
'pet.codexBundled': 'Mitgeliefert',
'pet.codexBundledTitle': 'Wird mit Open Design ausgeliefert — kein Download nötig.',
'settings.notifications': 'Benachrichtigungen',
'settings.notificationsHint': 'Ton und Desktop-Benachrichtigung beim Abschluss von Aufgaben',
'settings.notifyCompletionSound': 'Abschluss-Ton',
'settings.notifyCompletionSoundHint': 'Wird abgespielt, wenn eine Runde endet. Standardmäßig aus.',
'settings.notifySuccessSound': 'Erfolgs-Ton',
'settings.notifyFailureSound': 'Fehler-Ton',
'settings.notifyDesktop': 'Desktop-Benachrichtigung',
'settings.notifyDesktopHint': 'Wird gesendet, wenn das Fenster nicht im Vordergrund ist.',
'settings.notifyDesktopBlocked': 'Vom Browser blockiert. Bitte in den Website-Einstellungen erlauben.',
'settings.notifyDesktopUnsupported': 'Desktop-Benachrichtigungen werden in dieser Umgebung nicht unterstützt.',
'settings.notifyTest': 'Test senden',
'settings.notifyTestSent': 'Testbenachrichtigung gesendet. Wenn kein Banner erscheint, Browser- und Systembenachrichtigungen prüfen.',
'settings.notifyTestFailed': 'Benachrichtigungsaufruf fehlgeschlagen. Browser- und Systembenachrichtigungen prüfen.',
'settings.notifySoundDing': 'Ding',
'settings.notifySoundChime': 'Glockenspiel',
'settings.notifySoundTwoToneUp': 'Zweiton aufwärts',
'settings.notifySoundPluck': 'Zupfen',
'settings.notifySoundBuzz': 'Summen',
'settings.notifySoundTwoToneDown': 'Zweiton abwärts',
'settings.notifySoundThud': 'Dumpfer Schlag',
'settings.library': 'Fähigkeiten & Designsysteme',
'settings.libraryHint': 'Inhaltsbibliothek durchsuchen, vorschauen und umschalten',
'settings.librarySkills': 'Fähigkeiten',
'settings.libraryDesignSystems': 'Designsysteme',
'settings.librarySearch': 'Suchen...',
'settings.libraryAll': 'Alle',
'settings.libraryPreview': 'Vorschau',
'settings.libraryPreviewClose': 'Schließen',
'settings.libraryLoading': 'Laden...',
'settings.libraryNoResults': 'Keine Elemente entsprechen Ihrer Suche.',
'settings.libraryEnabled': 'Aktiviert',
'settings.libraryDisabled': 'Deaktiviert',
'settings.libraryToggleLabel': 'Umschalten',
'notify.successTitle': 'Aufgabe abgeschlossen',
'notify.failureTitle': 'Aufgabe fehlgeschlagen',
'notify.successBody': 'Eine Runde ist abgeschlossen.',
'notify.failureBody': 'Die Aufgabe wurde mit einem Fehler beendet.',
};
+984
View File
@@ -0,0 +1,984 @@
import type { Dict } from '../types';
export const en: Dict = {
'common.cancel': 'Cancel',
'common.save': 'Save',
'common.close': 'Close',
'common.delete': 'Delete',
'common.rename': 'Rename',
'common.preview': 'Preview',
'common.share': 'Share',
'common.search': 'Search',
'common.searchEllipsis': 'Search…',
'common.loading': 'Loading…',
'common.all': 'All',
'common.none': 'None',
'common.default': 'Default',
'common.installed': 'installed',
'common.notInstalled': 'not installed',
'common.active': 'active',
'common.offline': 'offline',
'common.selected': 'selected',
'common.create': 'Create',
'common.openPreview': 'Open preview',
'common.exitFullscreen': 'Exit fullscreen',
'common.fullscreen': 'Fullscreen',
'common.openInNewTab': 'Open in new tab',
'common.exportPdf': 'Export as PDF',
'common.exportZip': 'Download as .zip',
'common.exportHtml': 'Export as standalone HTML',
'common.justNow': 'just now',
'common.minutesAgo': '{n}m ago',
'common.hoursAgo': '{n}h ago',
'common.daysAgo': '{n}d ago',
'common.now': 'now',
'common.minutesShort': '{n}m',
'common.hoursShort': '{n}h',
'common.daysShort': '{n}d',
'common.untitled': 'Untitled',
'app.brand': 'Open Design',
'app.brandPill': 'Research Preview',
'app.brandSubtitle': 'by Nexu Labs',
'app.welcomeLoading': 'Loading workspace…',
'settings.welcomeKicker': 'Welcome',
'settings.welcomeTitle': 'Set up Open Design',
'settings.welcomeSubtitle':
"Pick how you'd like to run generations. You can change this any time from the Settings button in the top bar.",
'settings.kicker': 'Settings',
'settings.title': 'Execution & model',
'settings.subtitle': 'Choose between Local CLI and BYOK. Your API key is stored only in this browser.',
'settings.modeAria': 'Execution mode',
'settings.protocolAria': 'API protocol',
'settings.modeDaemon': 'Local CLI',
'settings.modeDaemonHelp': 'Run via a code-agent CLI on your machine',
'settings.modeDaemonOffline': 'Daemon is not running',
'settings.modeDaemonOfflineMeta': 'daemon offline',
'settings.modeDaemonInstalledMeta': '{count} installed',
'settings.modeApi': 'API provider',
'settings.modeApiMeta': 'BYOK',
'settings.codeAgent': 'Code agent',
'settings.codeAgentHint':
'Detected by scanning your PATH. Pick the CLI you want generations to flow through.',
'settings.rescan': '↻ Rescan',
'settings.rescanTitle': 'Re-scan PATH',
'settings.rescanRunning': 'Scanning...',
'settings.rescanSuccess': 'Scan complete. {count} available.',
'settings.rescanFailed': 'Scan failed. Check the daemon and try again.',
'settings.noAgentsDetected':
'No agents detected yet. Install one of Claude Code, Codex, Devin for Terminal, Gemini CLI, OpenCode, Cursor Agent, Qwen, or GitHub Copilot CLI, then click Rescan.',
'settings.apiSection': 'Anthropic API',
'settings.quickFillProvider': 'Quick fill provider',
'settings.customProvider': 'Custom provider',
'settings.apiKey': 'API key',
'settings.showKey': 'Show key',
'settings.hideKey': 'Hide key',
'settings.show': 'Show',
'settings.hide': 'Hide',
'settings.model': 'Model',
'settings.suggestedModelsHint':
'These are suggested models for this protocol. Your provider may support different models.',
'settings.baseUrl': 'Base URL',
'settings.baseUrlInvalid': 'Enter a valid public http:// or https:// URL. Localhost is allowed; private network IPs are blocked.',
'settings.azureDeploymentModel': 'Deployment name',
'settings.azureDeploymentModelHint':
'For Azure OpenAI, this field is used as the deployment name in /openai/deployments/<model>. Enter the deployment name you created in Azure.',
'settings.apiVersion': 'API version',
'settings.maxTokens': 'Max tokens (optional)',
'settings.maxTokensHint':
'Cap on the response length. Each model has a tuned default (shown as a placeholder); leave blank to use it, or enter a number to override.',
'settings.apiHint': 'Calls are sent through the local daemon proxy to the base URL you set. The key is stored only in this browser and sent with provider requests.',
'settings.skipForNow': 'Skip for now',
'settings.getStarted': 'Get started',
'settings.envConfigure': 'Configure execution mode',
'settings.localCli': 'Local CLI',
'settings.anthropicApi': 'Anthropic API',
'settings.noAgentSelected': 'no agent selected',
'settings.language': 'Language',
'settings.languageHint': 'Switch the interface language. Saved to this browser.',
'settings.appearance': 'Appearance',
'settings.appearanceHint': 'Choose light, dark, or follow your system setting.',
'settings.themeSystem': 'System',
'settings.themeLight': 'Light',
'settings.themeDark': 'Dark',
'settings.modelPicker': 'Model',
'settings.reasoningPicker': 'Reasoning effort',
'settings.modelPickerHint':
'Fetched from the CLI when it exposes a `models` command. "Default" leaves the choice to the CLI’s own config; "Custom…" lets you type any model id the CLI accepts.',
'settings.cliEnvTitle': 'CLI config locations',
'settings.cliEnvHint':
'Set non-secret config directories for packaged app runs and agent detection.',
'settings.cliEnvClaudeConfigDir': 'Claude Code config dir',
'settings.cliEnvCodexHome': 'Codex home',
'settings.modelCustom': 'Custom (type below)…',
'settings.modelCustomLabel': 'Custom model id',
'settings.modelCustomPlaceholder': 'e.g. anthropic/claude-sonnet-4-6',
'settings.mediaProviders': 'Media providers',
'settings.mediaProvidersHint':
'API keys for image, video and audio generation. Stored locally and synced to the local daemon.',
'settings.mediaProviderApiKey': 'API key',
'settings.mediaProviderBaseUrl': 'Base URL',
'settings.mediaProviderConfigured': 'Configured',
'settings.mediaProviderUnset': 'Unset',
'settings.mediaProviderClear': 'Clear',
'settings.mediaProviderPlaceholder': 'Paste API key',
'settings.mediaProviderBaseUrlPlaceholder': 'Override default base URL',
'settings.about': 'About',
'settings.aboutHint': 'Version and runtime details',
'settings.appVersion': 'Version',
'settings.appChannel': 'Channel',
'settings.appRuntime': 'Runtime',
'settings.appPlatform': 'Platform',
'settings.appArchitecture': 'Architecture',
'settings.runtimePackaged': 'Packaged app',
'settings.runtimeDevelopment': 'Development',
'settings.versionUnavailable': 'Version details are unavailable while the daemon is offline.',
'entry.tabDesigns': 'Designs',
'entry.tabExamples': 'Examples',
'entry.tabDesignSystems': 'Design systems',
'entry.tabConnectors': 'Connectors',
'entry.openSettingsTitle': 'Settings',
'entry.openSettingsAria': 'Open settings',
'entry.resizeAria': 'Resize sidebar',
'entry.loadingWorkspace': 'Loading workspace…',
'entry.tabImageTemplates': 'Image templates',
'entry.tabVideoTemplates': 'Video templates',
'promptTemplates.searchPlaceholder': 'Search templates…',
'promptTemplates.countLabel': '{n} results',
'promptTemplates.emptyImage': 'No image prompt templates installed yet.',
'promptTemplates.emptyVideo': 'No video prompt templates installed yet.',
'promptTemplates.emptyNoMatch': 'No templates match your search.',
'promptTemplates.attributionFooter': 'Adapted from public prompt libraries. Each card links back to the original author.',
'promptTemplates.openPreviewTitle': 'Open prompt and preview',
'promptTemplates.sourcePrefix': 'Source:',
'promptTemplates.fetchError': 'Could not load this template body.',
'promptTemplates.promptLabel': 'Prompt body',
'promptTemplates.copyPrompt': 'Copy prompt',
'promptTemplates.copyDone': 'Copied!',
'promptTemplates.modelHint': 'Suggested model: {model}',
'promptTemplates.openSource': 'View original',
'promptTemplates.openFullscreen': 'Open fullscreen preview',
'promptTemplates.closeFullscreen': 'Close fullscreen preview',
'promptTemplates.allSources': 'All sources',
'promptTemplates.sourceFilterAria': 'Filter by source',
'promptTemplates.retry': 'Retry',
'connectors.title': 'Connectors',
'connectors.subtitle': 'Local and future data sources that can power live artifacts.',
'connectors.account': 'Account',
'connectors.noAccount': 'Not connected',
'connectors.tools': 'Tools',
'connectors.connect': 'Connect',
'connectors.disconnect': 'Disconnect',
'connectors.configure': 'Configure',
'connectors.unavailable': 'Unavailable',
'connectors.phaseStubTitle': 'Connector APIs arrive in Phase 3; this is a preview surface.',
'connectors.statusAvailable': 'Available',
'connectors.statusConnected': 'Connected',
'connectors.statusError': 'Error',
'connectors.statusDisabled': 'Disabled',
'connectors.gateTitle': 'Configure Composio API key',
'connectors.gateBody': 'Connectors require a Composio API key. Add it in Settings to unlock available integrations.',
'connectors.gateAction': 'Open settings',
'connectors.aboutLabel': 'About',
'connectors.detailsLabel': 'Details',
'connectors.statusLabel': 'Status',
'connectors.categoryLabel': 'Category',
'connectors.providerLabel': 'Provider',
'connectors.toolsSection': 'Tools',
'connectors.toolsLoading': 'Loading tools…',
'connectors.noToolsAvailable': 'No tools available yet. Connect to discover what this integration exposes.',
'connectors.openDetailsAria': 'Open {name} details',
'connectors.toolsBadgeNone': 'No tools',
'connectors.toolsBadgeOne': '{n} tool',
'connectors.toolsBadgeMany': '{n} tools',
'connectors.searchPlaceholder': 'Search connectors…',
'connectors.searchAriaLabel': 'Search connectors by name, provider, or tool',
'connectors.searchClear': 'Clear search',
'connectors.emptyNoMatchTitle': 'No connectors match “{query}”',
'connectors.emptyNoMatchBody': 'Try a different keyword, or clear the search to browse the full catalog.',
'connectors.emptyNoMatchAction': 'Clear search',
'newproj.tabPrototype': 'Prototype',
'newproj.tabLiveArtifact': 'Live artifact',
'newproj.tabDeck': 'Slide deck',
'newproj.tabTemplate': 'From template',
'newproj.tabOther': 'Other',
'newproj.titlePrototype': 'New prototype',
'newproj.titleLiveArtifact': 'New live artifact',
'newproj.titleDeck': 'New slide deck',
'newproj.titleTemplate': 'Start from a template',
'newproj.titleImage': 'New image',
'newproj.titleVideo': 'New video',
'newproj.titleAudio': 'New audio',
'newproj.titleOther': 'New project',
'newproj.namePlaceholder': 'Project name',
'newproj.fidelityLabel': 'Fidelity',
'newproj.fidelityWireframe': 'Wireframe',
'newproj.fidelityHigh': 'High fidelity',
'newproj.toggleSpeakerNotes': 'Use speaker notes',
'newproj.toggleSpeakerNotesHint': 'Less text on slides — keep talking points in notes.',
'newproj.toggleAnimations': 'Include animations',
'newproj.toggleAnimationsHint':
'Add motion (entrance, hover, transitions) on top of the template.',
'newproj.templateLabel': 'Template',
'newproj.noTemplatesTitle': 'No templates yet',
'newproj.noTemplatesBody':
'Open any project, then use the Share menu inside the file viewer to convert it into a template. Templates show up here.',
'newproj.savedTemplate': 'Saved template',
'newproj.fileSingular': 'file',
'newproj.filePlural': 'files',
'newproj.create': 'Create',
'newproj.createLiveArtifact': 'Create live artifact',
'newproj.createFromTemplate': 'Create from template',
'newproj.createDisabledTitle':
'Save a project as a template first (Share menu inside any project).',
'newproj.importClaudeZip': 'Import Claude Design ZIP',
'newproj.importClaudeZipTitle': 'Import a Claude Design .zip export',
'newproj.importingClaudeZip': 'Importing…',
'newproj.privacyFooter': 'Only you can see your project by default.',
'newproj.designSystem': 'Design system',
'newproj.dsNoneFreeform': 'None — freeform',
'newproj.dsNoneSubtitleEmpty': 'No system tokens, choose your own palette',
'newproj.dsNoneSubtitleSelected': 'Skip system tokens. The agent picks its own palette.',
'newproj.dsCategoryFallback': 'Design system',
'newproj.dsSearch': 'Search design systems…',
'newproj.dsModeAria': 'Selection mode',
'newproj.dsModeSingle': 'Single',
'newproj.dsModeMulti': 'Multi',
'newproj.dsNoneTitle': 'None — freeform',
'newproj.dsNoneSub': 'Skip system tokens. The agent picks its own palette.',
'newproj.dsEmpty': 'No design systems match “{query}”.',
'newproj.dsFootSingular': 'is inspiration only.',
'newproj.dsFootPlural': 'are inspiration only.',
'newproj.dsFootClear': 'Clear',
'newproj.dsBadgeDefault': 'DEFAULT',
'newproj.dsPrimaryFallback': 'Primary',
'newproj.surfaceImage': 'Image',
'newproj.surfaceVideo': 'Video',
'newproj.surfaceAudio': 'Audio',
'newproj.modelLabel': 'Model',
'newproj.aspectLabel': 'Aspect',
'newproj.imageStyleLabel': 'Style notes',
'newproj.imageStylePlaceholder': 'Editorial photo, soft daylight, muted palette',
'newproj.videoLengthLabel': 'Length',
'newproj.videoLengthSeconds': '{n}s',
'newproj.audioKindLabel': 'Audio type',
'newproj.audioKindMusic': 'Music',
'newproj.audioKindSpeech': 'Speech / TTS',
'newproj.audioKindSfx': 'SFX',
'newproj.audioDurationLabel': 'Duration',
'newproj.audioDurationSeconds': '{n}s',
'newproj.voiceLabel': 'Voice',
'newproj.voicePlaceholder': 'Provider voice id, optional',
'newproj.connectorsLabel': 'Connectors',
'newproj.connectorsHint': 'Data sources this artifact can pull from.',
'newproj.connectorsEmptyTitle': 'No connectors configured',
'newproj.connectorsEmptyBody':
'Connect a data source so your live artifact can fetch real numbers instead of placeholders.',
'newproj.connectorsEmptyCta': 'Set up connectors →',
'newproj.connectorsLoading': 'Loading connectors…',
'newproj.connectorsCountOne': '{n} connected',
'newproj.connectorsCountMany': '{n} connected',
'newproj.connectorsManage': 'Manage',
'newproj.promptTemplateLabel': 'Reference template',
'newproj.promptTemplateNoneTitle': 'None — write your own',
'newproj.promptTemplateNoneSub': 'Skip the gallery, describe your own brief',
'newproj.promptTemplateRefSub': 'Reference template',
'newproj.promptTemplateSearch': 'Search templates…',
'newproj.promptTemplateEmpty': 'No templates installed for this surface yet.',
'newproj.promptTemplateBodyLabel': 'Prompt (you can tune it)',
'newproj.promptTemplateOptimizeHint':
'Edit anything — your changes carry into the agent\'s brief.',
'newproj.promptTemplateBodyEmpty':
'Empty body — the agent will get no template reference.',
'designs.subRecent': 'Recent',
'designs.subYours': 'Your designs',
'designs.filterAria': 'Filter projects',
'designs.searchPlaceholder': 'Search…',
'designs.emptyNoProjects': 'No projects yet. Create one on the left.',
'designs.emptyNoMatch': 'No projects match your search.',
'designs.deleteTitle': 'Delete project',
'designs.deleteConfirm': 'Delete "{name}"?',
'designs.cardFreeform': 'freeform',
'designs.badgeLive': 'Live',
'designs.liveArtifactBadgesAria': 'Live artifact badges',
'designs.liveCount': '{n} live',
'designs.statusLive': 'Live artifact',
'designs.statusArchived': 'Archived',
'designs.statusError': 'Error',
'designs.statusRefreshing': 'Refreshing…',
'designs.statusRefreshFailed': 'Refresh failed',
'designs.statusRefreshed': 'Refreshed',
'designs.status.notStarted': 'Not started',
'designs.status.queued': 'Queued',
'designs.status.running': 'Running',
'designs.status.awaitingInput': 'Needs input',
'designs.status.succeeded': 'Completed',
'designs.status.failed': 'Failed',
'designs.status.canceled': 'Canceled',
'designs.viewToggleAria': 'View mode',
'designs.viewGrid': 'Grid view',
'designs.viewKanban': 'Board view',
'designs.kanbanEmptyColumn': 'No designs',
'designs.deleteAria': 'Delete project {name}',
'examples.typeLabel': 'Type',
'examples.surfaceLabel': 'Surface',
'examples.surfaceWeb': 'Web',
'examples.surfaceImage': 'Image',
'examples.surfaceVideo': 'Video',
'examples.surfaceAudio': 'Audio',
'examples.scenarioLabel': 'Scenario',
'examples.modeAll': 'All',
'examples.modePrototypeDesktop': 'Prototypes · Desktop',
'examples.modePrototypeMobile': 'Prototypes · Mobile',
'examples.modeDeck': 'Slides',
'examples.modeDocument': 'Docs & templates',
'examples.modeOrbit': 'Orbit',
'examples.scenarioGeneral': 'General',
'examples.scenarioEngineering': 'Engineering',
'examples.scenarioProduct': 'Product',
'examples.scenarioDesign': 'Design',
'examples.scenarioMarketing': 'Marketing',
'examples.scenarioSales': 'Sales',
'examples.scenarioFinance': 'Finance',
'examples.scenarioHr': 'HR',
'examples.scenarioOperations': 'Operations',
'examples.scenarioSupport': 'Support',
'examples.scenarioLegal': 'Legal',
'examples.scenarioEducation': 'Education',
'examples.scenarioPersonal': 'Personal',
'examples.searchPlaceholder': 'Search examples…',
'examples.searchAria': 'Search examples by name',
'examples.emptyNoSkills': 'No skills available. Is the daemon running?',
'examples.emptyNoMatch': 'No examples match these filters.',
'examples.openPreview': '⤢ Open preview',
'examples.loadingPreview': 'Loading preview…',
'examples.hoverPreview': 'Hover to preview',
'examples.usePrompt': 'Use this prompt',
'examples.previewModalTitle': 'Open full preview (modal)',
'examples.shareTitle': 'Share this example',
'examples.shareLoadFirst': 'Hover to load preview first',
'examples.shareMenu': 'Share ▾',
'examples.exportPdfAllSlides': 'Export as PDF (all slides)',
'examples.exportPptxLocked': 'Export as PPTX… (open template first)',
'examples.tagSlideDeck': 'Slide deck',
'examples.tagTemplate': 'Template',
'examples.tagDesignSystem': 'Design system',
'examples.tagMobilePrototype': 'Mobile prototype',
'examples.tagDesktopPrototype': 'Desktop prototype',
'examples.tagImage': 'Image',
'examples.tagVideo': 'Video',
'examples.tagAudio': 'Audio',
'examples.previewLabel': 'Preview',
'ds.surfaceLabel': 'Surface',
'ds.surfaceWeb': 'Web',
'ds.surfaceImage': 'Image',
'ds.surfaceVideo': 'Video',
'ds.surfaceAudio': 'Audio',
'ds.searchPlaceholder': 'Search design systems…',
'ds.emptyNoMatch': 'No design systems match your search.',
'ds.badgeDefault': 'DEFAULT',
'ds.preview': 'Preview',
'ds.previewTitle': 'Preview design system',
'ds.categoryAll': 'All',
'ds.categoryUncategorized': 'Uncategorized',
'ds.showcase': 'Showcase',
'ds.tokens': 'Tokens',
'ds.specToggle': 'DESIGN.md',
'ds.specLoading': 'Loading DESIGN.md…',
'avatar.title': 'Account & settings',
'avatar.localCli': 'Local CLI',
'avatar.anthropicApi': 'Anthropic API',
'avatar.useLocal': 'Use Local CLI',
'avatar.useApi': 'Use API · BYOK',
'avatar.codeAgent': 'Code agent',
'avatar.rescan': 'Rescan PATH',
'avatar.settings': 'Settings',
'avatar.backToProjects': 'Back to projects',
'avatar.metaActive': 'active',
'avatar.metaOffline': 'offline',
'avatar.metaSelected': 'selected',
'avatar.noAgentSelected': 'no agent selected',
'avatar.modelSection': 'Model',
'avatar.modelLabel': 'Model',
'avatar.reasoningLabel': 'Reasoning',
'avatar.customSuffix': '(custom)',
'project.backToProjects': 'Back to projects',
'project.metaFreeform': 'freeform',
'project.resizeChatPanel': 'Resize chat panel',
'chat.tabChat': 'Chat',
'chat.tabComments': 'Comments',
'chat.commentsSoon': 'Comments — coming soon',
'chat.comments.attached': 'Attached to chat',
'chat.comments.emptyAttached': 'No comments attached.',
'chat.comments.saved': 'Saved comments',
'chat.comments.emptySaved': 'No saved comments.',
'chat.comments.add': 'Add',
'chat.comments.addAll': 'Add all',
'chat.comments.remove': 'Remove',
'chat.comments.placeholder': 'Comment on this element…',
'chat.comments.addSend': 'Add & send',
'chat.comments.updateSend': 'Update & send',
'chat.comments.removeAttachment': 'Remove comment attachment',
'chat.comments.removeAttachmentAria': 'Remove comment attachment for {name}',
'chat.conversationsTitle': 'Conversations',
'chat.conversationsAria': 'Conversation history',
'chat.newConversation': 'New conversation',
'chat.newConversationsTitle': 'New conversation',
'chat.conversationsHeading': 'Conversations',
'chat.new': 'New',
'chat.emptyConversations': 'No conversations yet.',
'chat.deleteConversation': 'Delete conversation',
'chat.deleteConversationConfirm':
'Delete "{title}"? This removes its messages.',
'chat.untitledConversation': 'Untitled conversation',
'chat.startTitle': 'Start a conversation',
'chat.startHint':
'Drop or paste images for visual reference, or type @ to attach a file from this project. Or try one of these starters:',
'chat.fillInputTitle': 'Click to fill the input',
'chat.jumpToLatest': 'Jump to latest',
'chat.scrollToLatest': 'Scroll to latest',
'chat.you': 'You',
'chat.openFile': 'Open {name}',
'chat.composerPlaceholder':
'Describe the design you want — paste or drop images, or @ a file…',
'chat.composerHint':
'⌘/Ctrl + Enter to send · paste images · @ to reference files',
'chat.cliSettingsTitle': 'CLI & model settings',
'chat.cliSettingsAria': 'Open CLI and model settings',
'chat.attachTitle': 'Attach files (or paste / drop)',
'chat.attachAria': 'Attach files',
'chat.importTitle': 'Import sources (coming soon)',
'chat.importLabel': 'Import',
'chat.importComingSoon': 'Coming soon',
'chat.importSoon': 'Soon',
'chat.importFig': 'Upload .fig file',
'chat.importGitHub': 'Connect GitHub',
'chat.importWeb': 'Grab web element',
'chat.importFolder': 'Link code folder',
'chat.importSkills': 'Skills and design systems',
'chat.importProject': 'Reference another project',
'chat.linkedFolderRemoveAria': 'Remove linked folder {path}',
'chat.linkedFolderNotFound': 'Folder does not exist',
'chat.linkedFolderAlready': 'This folder is already linked',
'chat.linkedFolderPickError': 'Could not open folder picker',
'chat.send': 'Send',
'chat.stop': 'Stop',
'chat.removeAria': 'Remove {name}',
'chat.example1Title': 'Editorial pitch deck',
'chat.example1Tag': 'Magazine',
'chat.example1Prompt':
'A 10-slide editorial pitch deck for a design studio raising a seed round — Swiss-grid layout, oversized serif headlines with bold drop caps, monospace section numbers, generous negative space, and full-bleed photo slides interleaved with text-heavy ones. Cover, vision, market, product, traction, team, ask, contact.',
'chat.example2Title': 'SaaS analytics dashboard',
'chat.example2Tag': 'Data',
'chat.example2Prompt':
'A dense analytics dashboard for a developer-tools SaaS — KPI strip with week-over-week deltas, two stacked line charts (MRR and active workspaces), a world heatmap of usage, a cohort retention grid, a top-customers leaderboard, and a real-time event feed. Dark theme, tabular monospace numerals, sparkline accents.',
'chat.example3Title': 'Annual report long-scroll',
'chat.example3Tag': 'Editorial',
'chat.example3Prompt':
'An interactive annual report for a climate non-profit — long-scroll editorial layout mixing big pull-quote blocks, data visualizations (stacked bars, animated counters, a choropleth map of project sites), photography breakers, donor wall, and a final call-to-action. Modern serif body, sans-serif chart labels, earthy paper palette.',
'preview.shareMenu': 'Share ▾',
'preview.openInNewTab': 'Open in new tab',
'preview.exit': '⤓ Exit',
'preview.fullscreen': '⤢ Fullscreen',
'preview.closeTitle': 'Close (Esc)',
'preview.loading': 'Loading {label}…',
'preview.showSidebar': 'Show {label}',
'preview.hideSidebar': 'Hide {label}',
'misc.savedTemplate': 'Saved template',
'misc.primary': 'Primary',
'misc.designSystem': 'Design system',
'workspace.designFiles': 'Design Files',
'workspace.focusMode': 'Focus workspace',
'workspace.showChat': 'Show chat',
'workspace.closeTab': 'Close tab',
'workspace.deleteFileConfirm': 'Delete "{name}" from the project folder?',
'workspace.openFromDesignFiles': 'Open a file from',
'workspace.designFilesLink': 'Design Files',
'workspace.loadingSketch': 'Loading sketch…',
'designFiles.title': 'Design Files',
'designFiles.upload': 'Upload files',
'designFiles.pasteText': 'Paste as text file',
'designFiles.newSketch': 'New sketch',
'designFiles.empty':
'Nothing here yet. Drop files below, or create a sketch / paste text.',
'designFiles.refresh': 'Refresh',
'designFiles.delete': 'Delete',
'designFiles.searchPlaceholder': 'Search files…',
'designFiles.up': 'Up',
'designFiles.back': 'Back',
'designFiles.crumbs': 'project',
'designFiles.rowMenu': 'Row menu',
'designFiles.openInTab': 'Open in tab',
'designFiles.download': 'Download',
'designFiles.downloadSelected': 'Download {n} as ZIP',
'designFiles.clearSelection': 'Clear',
'designFiles.selectAll': 'Select all',
'designFiles.dropTitle': '⤓ Drop files here',
'designFiles.dropDesc':
'Images, docs, references, or folders — the agent will use them as context.',
'designFiles.upload.title': 'Upload files',
'designFiles.paste.title': 'Paste text as a file',
'designFiles.upload.label': 'Upload',
'designFiles.paste.label': 'Paste',
'designFiles.previewOpen': 'Open',
'designFiles.previewClose': 'Close preview',
'designFiles.modified': 'Modified {time} · {size}',
'designFiles.weeksAgo': '{n}w ago',
'designFiles.sectionPages': 'Pages',
'designFiles.sectionScripts': 'Scripts',
'designFiles.sectionImages': 'Images',
'designFiles.sectionSketches': 'Sketches',
'designFiles.sectionLiveArtifacts': 'Live artifacts',
'designFiles.sectionOther': 'Other',
'designFiles.showMore': 'Show +{n} more',
'designFiles.kindHtml': 'HTML page',
'designFiles.kindImage': 'Image',
'designFiles.kindSketch': 'Sketch',
'designFiles.kindText': 'Text',
'designFiles.kindCode': 'Script',
'designFiles.kindPdf': 'PDF',
'designFiles.kindDocument': 'Document',
'designFiles.kindPresentation': 'Presentation',
'designFiles.kindSpreadsheet': 'Spreadsheet',
'designFiles.kindLiveArtifact': 'Live artifact',
'designFiles.kindBinary': 'Binary',
'quickSwitcher.placeholder': 'Open file…',
'quickSwitcher.empty': 'No files in this project',
'quickSwitcher.noMatches': 'No matches',
'quickSwitcher.navigate': 'navigate',
'quickSwitcher.open': 'open',
'quickSwitcher.close': 'close',
'pasteDialog.title': 'Paste text',
'pasteDialog.hint': 'Saved into the project folder. Pick any name.',
'pasteDialog.fileNameLabel': 'File name',
'pasteDialog.namePlaceholder': 'notes.txt',
'pasteDialog.contentLabel': 'Content',
'pasteDialog.contentPlaceholder': 'Paste anything…',
'pasteDialog.save': 'Save',
'pasteDialog.cancel': 'Cancel',
'sketch.save': 'Save sketch',
'sketch.cancel': 'Cancel',
'sketch.saving': 'Saving…',
'sketch.tooltipDirty': 'Unsaved changes',
'sketch.tooltipClean': 'Saved',
'fileViewer.empty': 'Select a file to view.',
'fileViewer.loading': 'Loading…',
'fileViewer.exportPptx': 'Export as PPTX',
'fileViewer.openInNewTab': 'Open in new tab',
'fileViewer.copyPath': 'Copy path',
'fileViewer.copied': 'Copied!',
'fileViewer.share': 'Share',
'fileViewer.binaryMeta': 'Binary · {size}',
'fileViewer.binaryNote':
'Binary file ({size} bytes). Download or open from disk to inspect.',
'fileViewer.pdfMeta': 'PDF · {size}',
'fileViewer.documentMeta': 'Document',
'fileViewer.presentationMeta': 'Presentation',
'fileViewer.spreadsheetMeta': 'Spreadsheet',
'fileViewer.previewUnavailable': 'Preview unavailable. Download or open the file to inspect.',
'fileViewer.download': 'Download',
'fileViewer.open': 'Open',
'fileViewer.imageMeta': 'Image · {size}',
'fileViewer.reactMeta': 'React component · {size}',
'fileViewer.sketchMeta': 'Sketch · {size}',
'fileViewer.markdownStreamingMeta': 'Streaming preview…',
'fileViewer.markdownErrorMeta': 'Preview may be incomplete (generation error).',
'fileViewer.markdownStreamingStatus': 'Streaming… showing partial markdown.',
'fileViewer.markdownErrorStatus': 'Generation error. Showing last available content.',
'fileViewer.videoMeta': 'Video · {size}',
'fileViewer.audioMeta': 'Audio · {size}',
'fileViewer.reload': 'Reload',
'fileViewer.reloadDisk': 'Reload from disk',
'fileViewer.copy': 'Copy',
'fileViewer.copyTitle': 'Copy file contents',
'fileViewer.saveDisabled': 'Save (read-only viewer)',
'fileViewer.save': 'Save',
'fileViewer.preview': 'Preview',
'fileViewer.source': 'Source',
'fileViewer.tweaks': 'Tweaks',
'fileViewer.comment': 'Comment',
'fileViewer.edit': 'Edit',
'fileViewer.draw': 'Draw',
'manualEdit.layers': "Layers",
'manualEdit.editableCount': "{count} editable",
'manualEdit.title': "Manual editor",
'manualEdit.selectLayer': "Select a layer",
'manualEdit.empty': "Click an element in the preview or choose a layer.",
'manualEdit.noClass': "no class",
'manualEdit.tabsAria': "Manual edit tabs",
'manualEdit.tabContent': "Content",
'manualEdit.tabStyle': "Style",
'manualEdit.tabAttributes': "Attributes",
'manualEdit.tabHtml': "Html",
'manualEdit.tabSource': "Source",
'manualEdit.attributesJson': "Attributes JSON",
'manualEdit.selectedHtml': "Selected element HTML",
'manualEdit.fullSource': "Full artifact source",
'manualEdit.applyContent': "Apply Content",
'manualEdit.applyStyle': "Apply Style",
'manualEdit.applyAttributes': "Apply Attributes",
'manualEdit.applyHtml': "Apply HTML",
'manualEdit.applySource': "Apply Source",
'manualEdit.invalidAttributes': "Invalid attributes JSON.",
'manualEdit.changes': "Changes",
'manualEdit.undo': "Undo",
'manualEdit.redo': "Redo",
'manualEdit.noChanges': "No manual edits yet.",
'manualEdit.imageUrl': "Image URL",
'manualEdit.altText': "Alt text",
'manualEdit.label': "Label",
'manualEdit.text': "Text",
'manualEdit.href': "Href",
'manualEdit.textColor': "Text color",
'manualEdit.background': "Background",
'manualEdit.fontSize': "Font size",
'manualEdit.weight': "Weight",
'manualEdit.align': "Align",
'manualEdit.padding': "Padding",
'manualEdit.margin': "Margin",
'manualEdit.radius': "Radius",
'manualEdit.border': "Border",
'manualEdit.width': "Width",
'manualEdit.minHeight': "Min height",
'fileViewer.zoomOut': 'Zoom out',
'fileViewer.zoomIn': 'Zoom in',
'fileViewer.resetZoom': 'Reset zoom',
'fileViewer.reloadAria': 'Reload',
'fileViewer.previousSlide': 'Previous slide',
'fileViewer.nextSlide': 'Next slide',
'fileViewer.slideNavAria': 'Slide navigation',
'fileViewer.present': 'Present',
'fileViewer.presentInTab': 'In this tab',
'fileViewer.presentFullscreen': 'Fullscreen',
'fileViewer.presentNewTab': 'New tab',
'fileViewer.exitPresentation': 'Exit presentation',
'fileViewer.shareLabel': 'Share',
'fileViewer.exportPdf': 'Export as PDF',
'fileViewer.exportPdfAllSlides': 'Export as PDF (all slides)',
'fileViewer.exportPptxBusy': 'Wait for the current turn to finish.',
'fileViewer.exportPptxHint':
'Send a request to the agent to convert this design to PPTX.',
'fileViewer.exportPptxNa': 'PPTX export is not available here.',
'fileViewer.exportZip': 'Download as .zip',
'fileViewer.exportHtml': 'Export as standalone HTML',
'fileViewer.exportMd': 'Export as Markdown',
'fileViewer.exportJsx': 'Export as JSX',
'fileViewer.exportReactHtml': 'Export preview as HTML',
'fileViewer.saveAsTemplate': 'Save as template…',
'fileViewer.savingTemplate': 'Saving template…',
'fileViewer.savedTemplate': 'Saved as "{name}"',
'fileViewer.savedTemplateFail': 'Could not save template — try again.',
'fileViewer.templateNamePrompt': 'Template name',
'fileViewer.templateNameDefault': 'Untitled template',
'fileViewer.templateDescPrompt':
'Short description (optional — what makes this template useful?)',
'liveArtifact.refresh.button': 'Refresh',
'liveArtifact.refresh.buttonTitle': 'Refresh this live artifact',
'liveArtifact.refresh.loadingTitle': 'Loading live artifact…',
'liveArtifact.refresh.noSourceTitle': 'No refresh source is available yet.',
'liveArtifact.refresh.running': 'Refreshing…',
'liveArtifact.refresh.runningMessage': 'Refreshing data and preview. This can take a moment.',
'liveArtifact.refresh.runningAction': 'The previous preview stays visible until the refresh succeeds.',
'liveArtifact.refresh.successOne': 'Refresh complete. Data updated.',
'liveArtifact.refresh.successMany': 'Refresh complete. Data updated.',
'liveArtifact.refresh.successAction': 'The preview has been reloaded with the latest committed data.',
'liveArtifact.refresh.previousFailure': 'Previous refresh failed: {message}',
'liveArtifact.refresh.failureAction': 'Review Refresh history, fix the source or permission issue, then try again.',
'liveArtifact.refresh.networkFailure': 'Refresh request failed. Check your connection and try again.',
'liveArtifact.refresh.genericFailure': 'Refresh failed.',
'liveArtifact.refresh.statusNever': 'Not refreshable',
'liveArtifact.refresh.statusReady': 'Ready to refresh',
'liveArtifact.refresh.statusSucceeded': 'Up to date',
'liveArtifact.refresh.statusFailed': 'Refresh failed',
'fileViewer.deployToVercel': 'Deploy to Vercel',
'fileViewer.redeployToVercel': 'Redeploy',
'fileViewer.deployingToVercel': 'Deploying to Vercel…',
'fileViewer.preparingPublicLink': 'Preparing public link…',
'fileViewer.copyDeployLink': 'Copy link',
'fileViewer.deployModalTitle': 'Deploy to Vercel',
'fileViewer.deployModalSubtitle':
'Deploy this HTML artifact as a Vercel Preview using your own account.',
'fileViewer.vercelToken': 'Vercel token',
'fileViewer.vercelTokenGetLink': 'Get Vercel token',
'fileViewer.vercelTokenPlaceholder': 'Paste your Vercel token',
'fileViewer.vercelTokenReuseHint':
'Saved token will be used. Enter a new token to replace it.',
'fileViewer.vercelTokenRequired': 'Enter and save a Vercel token first.',
'fileViewer.vercelTeamId': 'Team ID',
'fileViewer.vercelTeamSlug': 'Team slug',
'fileViewer.optional': 'Optional',
'fileViewer.vercelPreviewOnly': 'Deploys are Preview-only for now.',
'fileViewer.savingConfig': 'Saving…',
'fileViewer.deployConfigSaveFailed': 'Could not save Vercel settings.',
'fileViewer.deployFailed': 'Deploy failed. Check Vercel settings and try again.',
'fileViewer.deployResultLabel': 'Deployed URL',
'fileViewer.deployLinkPreparingLabel': 'Public link pending',
'fileViewer.deployLinkDelayed':
'Your site is deployed. Vercel is still preparing the public link.',
'fileViewer.deployLinkProtectedLabel': 'Vercel protection enabled',
'fileViewer.deployLinkProtected':
'Your site deployed, but Vercel is requiring authentication for this preview link. Disable Deployment Protection or use a custom domain.',
'fileViewer.retryLink': 'Retry now',
'questionForm.submit': 'Submit',
'questionForm.skip': 'Skip',
'questionForm.locked': 'Answered',
'conv.switch': 'Switch conversation',
'conv.label': 'Conversation',
'conv.heading': 'Conversations',
'conv.new': '+ New',
'conv.empty': 'No conversations yet.',
'conv.untitled': 'Untitled conversation',
'conv.renameTooltip': 'Double-click to rename',
'conv.delete': 'Delete conversation',
'conv.deleteConfirm': 'Delete "{title}"? This removes its messages.',
'agentPicker.label': 'Agent',
'agentPicker.modeChoose': 'Choose execution mode',
'agentPicker.localCli': 'Local CLI',
'agentPicker.daemonOff': 'daemon off',
'agentPicker.byok': 'API · BYOK',
'agentPicker.selectAgent': 'Select a detected code-agent CLI',
'agentPicker.noAgents': 'no agents on PATH',
'agentPicker.notInstalled': 'not installed',
'agentPicker.rescan': 'Re-scan local PATH for agents',
'tool.openInTab': 'Open {name} in a tab',
'tool.open': 'open',
'tool.todos': 'Todos',
'tool.write': 'Write',
'tool.edit': 'Edit',
'tool.read': 'Read',
'tool.bash': 'Bash',
'tool.glob': 'Glob',
'tool.grep': 'Grep',
'tool.fetch': 'Fetch',
'tool.search': 'Search',
'tool.lines': '{n} lines',
'tool.changeSingular': 'change',
'tool.changePlural': 'changes',
'tool.in': 'in {path}',
'tool.hide': 'hide',
'tool.output': 'output',
'tool.running': 'running…',
'tool.error': 'error',
'tool.done': 'done',
'assistant.role': 'Assistant',
'assistant.workingLabel': 'Working',
'assistant.doneLabel': 'Done',
'assistant.unfinishedLabel': 'Stopped with unfinished work',
'assistant.unfinishedSummary': '{n} task(s) remain',
'assistant.unfinishedMore': '+{n} more',
'assistant.continueRemaining': 'Continue remaining tasks',
'assistant.outTokens': '{n} out',
'assistant.producedFiles': 'Files from this turn',
'assistant.openFile': 'Open',
'assistant.downloadFile': 'Download',
'assistant.thinking': 'Thinking',
'assistant.systemReminder': 'System reminder',
'assistant.waitingFirstOutput': 'Waiting for first output',
'assistant.statusBootingAgent': 'Booting agent',
'assistant.statusStarting': 'Starting',
'assistant.statusRequesting': 'Sending request',
'assistant.statusThinking': 'Thinking',
'assistant.statusStreaming': 'Streaming',
'assistant.slowHint':
'Taking longer than usual. The form usually shows in 5–10s — you can Stop and rephrase.',
'assistant.verbEditing': 'Editing',
'assistant.verbWriting': 'Writing',
'assistant.verbReading': 'Reading',
'assistant.verbSearching': 'Searching',
'assistant.verbRunning': 'Running',
'assistant.verbTodos': 'Todos',
'assistant.verbFetching': 'Fetching',
'assistant.verbCalling': 'Calling',
'qf.answered': 'answered',
'qf.choose': 'Choose…',
'qf.required': 'required',
'qf.lockedSubmitted':
'Answers sent — agent is using these for the rest of the session.',
'qf.lockedPrev': 'This form is from a previous turn.',
'qf.hint':
"Pick what fits. Skip optional fields you don't care about — the agent will use sensible defaults.",
'qf.submitDefault': 'Send answers',
'qf.submitDisabledTitle': 'Fill in the required fields first',
'qf.submitTitle': 'Send answers',
'qf.cardSelected': 'selected',
'qf.cardRefs': 'Refs:',
'qf.cardSampleText': 'The quick brown fox · 0123',
'sketch.toolSelect': 'Select (no-op)',
'sketch.toolPen': 'Pen',
'sketch.toolText': 'Text',
'sketch.toolRect': 'Rectangle',
'sketch.toolArrow': 'Arrow',
'sketch.toolEraser': 'Eraser',
'sketch.color': 'Color',
'sketch.strokeSize': 'Stroke size',
'sketch.undo': 'Undo',
'sketch.clear': 'Clear',
'sketch.close': 'Close',
'sketch.textPrompt': 'Text:',
'pet.title': 'Pets',
'pet.subtitle': 'Adopt a tiny companion that floats over your workspace.',
'pet.navTitle': 'Pets',
'pet.navHint': 'Adopt or customize',
'pet.tabBuiltIn': 'Built-in',
'pet.tabBuiltInHint': 'Curated companions bundled with Open Design — pick one and adopt.',
'pet.builtInEmpty': 'Built-in pets are unavailable right now. Try refreshing the Community tab once the daemon is online.',
'pet.tabCustom': 'Custom',
'pet.tabCustomHint': 'Make your own with a name, glyph, color or sprite.',
'pet.tabCommunity': 'Community',
'pet.tabCommunityHint': 'Hatched pets from Codex — adopt one or generate a new one.',
'pet.tabsAria': 'Pet source',
'pet.adopt': 'Adopt',
'pet.adoptedBadge': 'Adopted',
'pet.adoptCallout': 'Adopt a pet',
'pet.changePet': 'Change pet',
'pet.wake': 'Wake',
'pet.tuck': 'Tuck away',
'pet.wakeTitle': 'Wake the pet — show the floating overlay.',
'pet.tuckTitle': 'Tuck the pet away — hide the floating overlay.',
'pet.settingsTitle': 'Open pet settings',
'pet.useCustom': 'Use my pet',
'pet.customTitle': 'Make your own',
'pet.customHint': 'Pick a name, glyph and accent — the overlay updates live.',
'pet.customGreetingPlaceholder': 'Say hi from your pet…',
'pet.fieldName': 'Name',
'pet.fieldGlyph': 'Glyph',
'pet.fieldGlyphHint': 'A single emoji works best (e.g. 🐝, 🦄, 🐢).',
'pet.fieldGreeting': 'Greeting',
'pet.fieldAccent': 'Accent color',
'pet.fieldAccentCustom': 'Custom color',
'pet.overlayAria': 'Pet companion',
'pet.spriteAria': '{name} — drag to move, click to chat',
'pet.spriteTitle': 'Hi from {name}! Click to chat.',
'pet.railAria': 'Pet picker',
'pet.railTitle': 'Pets',
'pet.railHint': 'Pick a companion to float over your workspace.',
'pet.railExpand': 'Show pet picker',
'pet.railCollapse': 'Collapse pet picker',
'pet.railHide': 'Hide pet picker',
'pet.railShow': 'Show pet picker',
'pet.railCustomFlavor': 'Your own — name, glyph, color.',
'pet.railCustomize': 'Customize…',
'pet.composerTitle': 'Pets — wake, tuck, or pick one',
'pet.composerMenuTitle': 'Pets',
'pet.composerMenuHint': 'tip: type /pet to toggle',
'pet.composerOpenSettings': 'Customize in Settings',
'pet.welcomeTeaserTitle': 'Adopt a pet',
'pet.welcomeTeaserBody': 'A tiny floating companion that hangs out with you.',
'pet.welcomeTeaserCta': 'Pick one',
'pet.imageUpload': 'Upload sprite',
'pet.imageReplace': 'Replace sprite',
'pet.imageRemove': 'Use emoji',
'pet.imageHintIdle': 'PNG, JPG, WebP, GIF or SVG. Sheet upload? Drop a horizontal strip and set the frame count.',
'pet.imageHintActive': 'Showing your sprite. Set frames > 1 to walk a horizontal spritesheet.',
'pet.fieldFrames': 'Frames',
'pet.fieldFramesHint': '1 = static. > 1 = horizontal spritesheet.',
'pet.fieldFps': 'Speed (fps)',
'pet.fieldFpsHint': 'How quickly the frames cycle.',
'pet.atlasImport': 'Import Codex sprite',
'pet.atlasImportTitle': 'Import a hatch-pet 8x9 / 192x208 atlas (PNG or WebP).',
'pet.atlasPickerTitle': 'Pick an animation row',
'pet.atlasPickerHint': 'Codex pets ship 9 animation rows. By default we keep the full atlas so the pet swaps rows on hover, drag, and idle. You can also freeze it to a single loop.',
'pet.atlasCancel': 'Discard atlas',
'pet.atlasAdopt': 'Freeze to this row',
'pet.atlasAdoptFull': 'Use full atlas (animated)',
'pet.atlasAdoptFullTitle': 'Keep every row so the pet reacts to hover, drag direction, and long idles.',
'pet.atlasAdoptRowTitle': 'Slice just the highlighted row into a single looping strip.',
'pet.atlasActiveHint': 'Animated atlas active — the pet picks a row from your interaction (hover, drag, idle).',
'pet.atlasRow.idle': 'Idle',
'pet.atlasRow.running-right': 'Run right',
'pet.atlasRow.running-left': 'Run left',
'pet.atlasRow.waving': 'Waving',
'pet.atlasRow.jumping': 'Jumping',
'pet.atlasRow.failed': 'Failed',
'pet.atlasRow.waiting': 'Waiting',
'pet.atlasRow.running': 'Running',
'pet.atlasRow.review': 'Review',
'pet.hatchTitle': 'Hatch a new pet with AI',
'pet.hatchHint': 'Use the bundled hatch-pet skill in chat to generate a Codex-style spritesheet, then import it here.',
'pet.hatchConcept': 'Pet concept (optional)',
'pet.hatchConceptPlaceholder': 'e.g. a tiny pixel-art shiba in a cozy sweater',
'pet.hatchCopy': 'Copy prompt',
'pet.hatchCopied': 'Copied!',
'pet.hatchFoot': 'After the skill saves your pet, come back and pick "Import Codex sprite".',
'pet.slashPopoverAria': 'Slash commands',
'pet.slashPopoverTitle': 'Commands',
'pet.slashPopoverHint': '↑↓ navigate · enter to pick · esc to dismiss',
'pet.slashPet': 'Toggle, adopt, or jump to pet settings.',
'pet.slashPetWake': 'Wake the floating pet overlay.',
'pet.slashPetTuck': 'Tuck the pet away for now.',
'pet.slashHatch': 'Generate a Codex pet via the hatch-pet skill.',
'pet.slashHatchArg': '<concept>',
'pet.codexTitle': 'Recently hatched',
'pet.codexSubtitle': 'Pets packaged by the hatch-pet skill show up here for one-click adoption.',
'pet.codexSubtitleWithDir': 'Scanning {dir} for pets packaged by the hatch-pet skill.',
'pet.codexEmpty': 'No hatched pets yet. Type /hatch in chat to generate one.',
'pet.codexLoading': 'Looking for hatched pets…',
'pet.codexRefresh': 'Refresh',
'pet.codexAdopt': 'Adopt',
'pet.codexAdopting': 'Adopting…',
'pet.communitySync': 'Download community pets',
'pet.communitySyncing': 'Downloading…',
'pet.communitySyncTitle': 'Sync the latest pets from Codex Pet Share + j20 Hatchery into ~/.codex/pets/.',
'pet.communitySyncDone': 'Synced {wrote} new pets ({total} total).',
'pet.communitySyncFailed': 'Sync failed: {error}',
'pet.codexBundled': 'Bundled',
'pet.codexBundledTitle': 'Ships with Open Design — no download needed.',
'settings.notifications': 'Notifications',
'settings.notificationsHint': 'Sound and desktop notification on task completion',
'settings.notifyCompletionSound': 'Completion sound',
'settings.notifyCompletionSoundHint': 'Plays when a turn finishes. Off by default.',
'settings.notifySuccessSound': 'Success sound',
'settings.notifyFailureSound': 'Failure sound',
'settings.notifyDesktop': 'Desktop notification',
'settings.notifyDesktopHint': 'Sent when the window is not focused.',
'settings.notifyDesktopBlocked': 'Notifications blocked by the browser. Allow them in site settings.',
'settings.notifyDesktopUnsupported': 'Desktop notifications unavailable in this environment.',
'settings.notifyTest': 'Send test',
'settings.notifyTestSent': 'Test notification sent. If no banner appears, check browser and system notification settings.',
'settings.notifyTestFailed': 'Notification call failed. Check browser and system notification settings.',
'settings.notifySoundDing': 'Ding',
'settings.notifySoundChime': 'Chime',
'settings.notifySoundTwoToneUp': 'Two-tone up',
'settings.notifySoundPluck': 'Pluck',
'settings.notifySoundBuzz': 'Buzz',
'settings.notifySoundTwoToneDown': 'Two-tone down',
'settings.notifySoundThud': 'Thud',
'settings.library': 'Skills & Design Systems',
'settings.libraryHint': 'Browse, preview, and toggle your content library',
'settings.librarySkills': 'Skills',
'settings.libraryDesignSystems': 'Design Systems',
'settings.librarySearch': 'Search...',
'settings.libraryAll': 'All',
'settings.libraryPreview': 'Preview',
'settings.libraryPreviewClose': 'Close',
'settings.libraryLoading': 'Loading...',
'settings.libraryNoResults': 'No items match your search.',
'settings.libraryEnabled': 'Enabled',
'settings.libraryDisabled': 'Disabled',
'settings.libraryToggleLabel': 'Toggle',
'notify.successTitle': 'Task completed',
'notify.failureTitle': 'Task failed',
'notify.successBody': 'A turn has finished.',
'notify.failureBody': 'The task ended with an error.',
};
+908
View File
@@ -0,0 +1,908 @@
import type { Dict } from '../types';
import { en } from './en';
export const esES: Dict = {
...en,
'common.cancel': 'Cancelar',
'common.save': 'Guardar',
'common.close': 'Cerrar',
'common.delete': 'Eliminar',
'common.rename': 'Renombrar',
'common.preview': 'Vista previa',
'common.share': 'Compartir',
'common.search': 'Buscar',
'common.searchEllipsis': 'Buscar…',
'common.loading': 'Cargando…',
'common.all': 'Todos',
'common.none': 'Ninguno',
'common.default': 'Predeterminado',
'common.installed': 'instalado',
'common.notInstalled': 'no instalado',
'common.active': 'activo',
'common.offline': 'sin conexión',
'common.selected': 'seleccionado',
'common.create': 'Crear',
'common.openPreview': 'Abrir vista previa',
'common.exitFullscreen': 'Salir de pantalla completa',
'common.fullscreen': 'Pantalla completa',
'common.openInNewTab': 'Abrir en pestaña nueva',
'common.exportPdf': 'Exportar como PDF',
'common.exportZip': 'Descargar como .zip',
'common.exportHtml': 'Exportar como HTML independiente',
'common.justNow': 'justo ahora',
'common.minutesAgo': 'hace {n} min',
'common.hoursAgo': 'hace {n} h',
'common.daysAgo': 'hace {n} d',
'common.now': 'ahora',
'common.minutesShort': '{n} min',
'common.hoursShort': '{n} h',
'common.daysShort': '{n} d',
'common.untitled': 'Sin título',
'app.brand': 'Open Design',
'app.brandPill': 'Vista previa de investigación',
'app.brandSubtitle': 'por Nexu Labs',
'app.welcomeLoading': 'Cargando espacio de trabajo…',
'settings.welcomeKicker': 'Bienvenido',
'settings.welcomeTitle': 'Configura Open Design',
'settings.welcomeSubtitle':
'Elige cómo quieres ejecutar las generaciones. Puedes cambiarlo en cualquier momento desde el botón Ajustes en la barra superior.',
'settings.kicker': 'Ajustes',
'settings.title': 'Ejecución y modelo',
'settings.subtitle': 'Elige entre CLI local y BYOK. Tu clave de API se guarda solo en este navegador.',
'settings.modeAria': 'Modo de ejecución',
'settings.protocolAria': 'Protocolo de API',
'settings.modeDaemon': 'CLI local',
'settings.modeDaemonHelp': 'Ejecuta a través de una CLI de agente de código en tu máquina',
'settings.modeDaemonOffline': 'El daemon no está en ejecución',
'settings.modeDaemonOfflineMeta': 'daemon sin conexión',
'settings.modeDaemonInstalledMeta': '{count} instalados',
'settings.modeApi': 'Proveedor de API',
'settings.modeApiMeta': 'BYOK',
'settings.codeAgent': 'Agente de código',
'settings.codeAgentHint':
'Detectado al escanear tu PATH. Elige la CLI por la que quieres que pasen las generaciones.',
'settings.rescan': '↻ Reescanear',
'settings.rescanTitle': 'Reescanear PATH',
'settings.rescanRunning': 'Escaneando...',
'settings.rescanSuccess': 'Escaneo completado. {count} disponibles.',
'settings.rescanFailed': 'El escaneo falló. Comprueba el daemon e inténtalo de nuevo.',
'settings.noAgentsDetected':
'Aún no se ha detectado ningún agente. Instala Claude Code, Codex, Devin for Terminal, Gemini CLI, OpenCode, Cursor Agent, Qwen o GitHub Copilot CLI y pulsa Reescanear.',
'settings.apiSection': 'API de Anthropic',
'settings.quickFillProvider': 'Rellenar proveedor',
'settings.customProvider': 'Proveedor personalizado',
'settings.apiKey': 'Clave de API',
'settings.showKey': 'Mostrar clave',
'settings.hideKey': 'Ocultar clave',
'settings.show': 'Mostrar',
'settings.hide': 'Ocultar',
'settings.model': 'Modelo',
'settings.suggestedModelsHint':
'Estos son modelos sugeridos para este protocolo. Tu proveedor puede admitir modelos diferentes.',
'settings.baseUrl': 'URL base',
'settings.baseUrlInvalid': 'Introduce una URL pública http:// o https:// válida. Localhost está permitido; las IPs de red privada se bloquean.',
'settings.azureDeploymentModel': 'Nombre del despliegue',
'settings.azureDeploymentModelHint':
'Para Azure OpenAI, este campo se usa como nombre del despliegue en /openai/deployments/<model>. Introduce el nombre del despliegue que creaste en Azure.',
'settings.apiVersion': 'Versión de API',
'settings.maxTokens': 'Tokens máx. (opcional)',
'settings.maxTokensHint':
'Tope para la longitud de la respuesta. Cada modelo tiene un valor por defecto ajustado (visible en el placeholder); déjalo vacío para usarlo o introduce un número para anularlo.',
'settings.apiHint': 'Las llamadas pasan por el proxy del daemon local hasta la URL base configurada. La clave se guarda solo en este navegador y se envía con las solicitudes al proveedor.',
'settings.skipForNow': 'Omitir por ahora',
'settings.getStarted': 'Empezar',
'settings.envConfigure': 'Configurar el modo de ejecución',
'settings.localCli': 'CLI local',
'settings.anthropicApi': 'API de Anthropic',
'settings.noAgentSelected': 'ningún agente seleccionado',
'settings.language': 'Idioma',
'settings.languageHint': 'Cambia el idioma de la interfaz. Se guarda en este navegador.',
'settings.appearance': 'Apariencia',
'settings.appearanceHint': 'Elige claro, oscuro o seguir la configuración del sistema.',
'settings.themeSystem': 'Sistema',
'settings.themeLight': 'Claro',
'settings.themeDark': 'Oscuro',
'settings.modelPicker': 'Modelo',
'settings.reasoningPicker': 'Esfuerzo de razonamiento',
'settings.modelPickerHint':
'Se obtiene de la CLI cuando expone un comando `models`. «Predeterminado» deja la elección a la propia configuración de la CLI; «Personalizado…» permite escribir cualquier id de modelo aceptado por la CLI.',
'settings.cliEnvTitle': 'CLI config locations',
'settings.cliEnvHint':
'Set non-secret config directories for packaged app runs and agent detection.',
'settings.cliEnvClaudeConfigDir': 'Claude Code config dir',
'settings.cliEnvCodexHome': 'Codex home',
'settings.modelCustom': 'Personalizado (escribe abajo)…',
'settings.modelCustomLabel': 'Id de modelo personalizado',
'settings.modelCustomPlaceholder': 'p. ej., anthropic/claude-sonnet-4-6',
'settings.mediaProviders': 'Proveedores de medios',
'settings.mediaProvidersHint':
'Claves de API para generación de imagen, vídeo y audio. Se guardan localmente y se sincronizan con el daemon local.',
'settings.mediaProviderApiKey': 'Clave de API',
'settings.mediaProviderBaseUrl': 'URL base',
'settings.mediaProviderConfigured': 'Configurado',
'settings.mediaProviderUnset': 'Sin configurar',
'settings.mediaProviderClear': 'Limpiar',
'settings.mediaProviderPlaceholder': 'Pega la clave de API',
'settings.mediaProviderBaseUrlPlaceholder': 'Sobrescribir URL base por defecto',
'settings.about': 'Acerca de',
'settings.aboutHint': 'Versión y detalles de ejecución',
'settings.appVersion': 'Versión',
'settings.appChannel': 'Canal',
'settings.appRuntime': 'Ejecución',
'settings.appPlatform': 'Plataforma',
'settings.appArchitecture': 'Arquitectura',
'settings.runtimePackaged': 'App empaquetada',
'settings.runtimeDevelopment': 'Desarrollo',
'settings.versionUnavailable': 'Los detalles de versión no están disponibles mientras el daemon está offline.',
'entry.tabDesigns': 'Diseños',
'entry.tabExamples': 'Ejemplos',
'entry.tabDesignSystems': 'Sistemas de diseño',
'entry.openSettingsTitle': 'Ajustes',
'entry.openSettingsAria': 'Abrir ajustes',
'entry.resizeAria': 'Redimensionar barra lateral',
'entry.loadingWorkspace': 'Cargando espacio de trabajo…',
'entry.tabImageTemplates': 'Plantillas de imagen',
'entry.tabVideoTemplates': 'Plantillas de vídeo',
'promptTemplates.searchPlaceholder': 'Buscar plantillas…',
'promptTemplates.countLabel': '{n} resultados',
'promptTemplates.emptyImage': 'Aún no hay plantillas de prompt de imagen instaladas.',
'promptTemplates.emptyVideo': 'Aún no hay plantillas de prompt de vídeo instaladas.',
'promptTemplates.emptyNoMatch': 'Ninguna plantilla coincide con tu búsqueda.',
'promptTemplates.attributionFooter':
'Adaptadas de bibliotecas públicas de prompts. Cada tarjeta enlaza al autor original.',
'promptTemplates.openPreviewTitle': 'Abrir prompt y vista previa',
'promptTemplates.sourcePrefix': 'Fuente:',
'promptTemplates.fetchError': 'No se pudo cargar el cuerpo de esta plantilla.',
'promptTemplates.promptLabel': 'Cuerpo del prompt',
'promptTemplates.copyPrompt': 'Copiar prompt',
'promptTemplates.copyDone': '¡Copiado!',
'promptTemplates.modelHint': 'Modelo sugerido: {model}',
'promptTemplates.openSource': 'Ver original',
'promptTemplates.openFullscreen': 'Abrir vista previa en pantalla completa',
'promptTemplates.closeFullscreen': 'Cerrar vista previa en pantalla completa',
'promptTemplates.allSources': 'Todas las fuentes',
'promptTemplates.sourceFilterAria': 'Filtrar por fuente',
'promptTemplates.retry': 'Reintentar',
'newproj.tabPrototype': 'Prototipo',
'newproj.tabDeck': 'Presentación',
'newproj.tabTemplate': 'Desde plantilla',
'newproj.tabOther': 'Otro',
'newproj.titlePrototype': 'Nuevo prototipo',
'newproj.titleDeck': 'Nueva presentación',
'newproj.titleTemplate': 'Empezar desde una plantilla',
'newproj.titleImage': 'Nueva imagen',
'newproj.titleVideo': 'Nuevo vídeo',
'newproj.titleAudio': 'Nuevo audio',
'newproj.titleOther': 'Nuevo proyecto',
'newproj.namePlaceholder': 'Nombre del proyecto',
'newproj.fidelityLabel': 'Fidelidad',
'newproj.fidelityWireframe': 'Wireframe',
'newproj.fidelityHigh': 'Alta fidelidad',
'newproj.toggleSpeakerNotes': 'Usar notas del orador',
'newproj.toggleSpeakerNotesHint': 'Menos texto en las diapositivas: deja los puntos clave en las notas.',
'newproj.toggleAnimations': 'Incluir animaciones',
'newproj.toggleAnimationsHint':
'Añade movimiento (entrada, hover, transiciones) sobre la plantilla.',
'newproj.templateLabel': 'Plantilla',
'newproj.noTemplatesTitle': 'Aún no hay plantillas',
'newproj.noTemplatesBody':
'Abre cualquier proyecto y usa el menú Compartir dentro del visor de archivos para convertirlo en plantilla. Las plantillas aparecerán aquí.',
'newproj.savedTemplate': 'Plantilla guardada',
'newproj.fileSingular': 'archivo',
'newproj.filePlural': 'archivos',
'newproj.create': 'Crear',
'newproj.createFromTemplate': 'Crear desde plantilla',
'newproj.createDisabledTitle':
'Guarda primero un proyecto como plantilla (menú Compartir dentro de cualquier proyecto).',
'newproj.importClaudeZip': 'Importar ZIP de Claude Design',
'newproj.importClaudeZipTitle': 'Importar una exportación .zip de Claude Design',
'newproj.importingClaudeZip': 'Importando…',
'newproj.privacyFooter': 'Por defecto, solo tú puedes ver tu proyecto.',
'newproj.designSystem': 'Sistema de diseño',
'newproj.dsNoneFreeform': 'Ninguno: estilo libre',
'newproj.dsNoneSubtitleEmpty': 'Sin tokens de sistema, elige tu propia paleta',
'newproj.dsNoneSubtitleSelected': 'Omitir tokens de sistema. El agente elige su propia paleta.',
'newproj.dsCategoryFallback': 'Sistema de diseño',
'newproj.dsSearch': 'Buscar sistemas de diseño…',
'newproj.dsModeAria': 'Modo de selección',
'newproj.dsModeSingle': 'Único',
'newproj.dsModeMulti': 'Múltiple',
'newproj.dsNoneTitle': 'Ninguno: estilo libre',
'newproj.dsNoneSub': 'Omitir tokens de sistema. El agente elige su propia paleta.',
'newproj.dsEmpty': 'Ningún sistema de diseño coincide con «{query}».',
'newproj.dsFootSingular': 'es solo inspiración.',
'newproj.dsFootPlural': 'son solo inspiración.',
'newproj.dsFootClear': 'Limpiar',
'newproj.dsBadgeDefault': 'PREDETERMINADO',
'newproj.dsPrimaryFallback': 'Principal',
'newproj.surfaceImage': 'Imagen',
'newproj.surfaceVideo': 'Vídeo',
'newproj.surfaceAudio': 'Audio',
'newproj.modelLabel': 'Modelo',
'newproj.aspectLabel': 'Proporción',
'newproj.imageStyleLabel': 'Notas de estilo',
'newproj.imageStylePlaceholder': 'Foto editorial, luz suave de día, paleta apagada',
'newproj.videoLengthLabel': 'Duración',
'newproj.videoLengthSeconds': '{n} s',
'newproj.audioKindLabel': 'Tipo de audio',
'newproj.audioKindMusic': 'Música',
'newproj.audioKindSpeech': 'Voz / TTS',
'newproj.audioKindSfx': 'Efecto de sonido',
'newproj.audioDurationLabel': 'Duración',
'newproj.audioDurationSeconds': '{n} s',
'newproj.voiceLabel': 'Voz',
'newproj.voicePlaceholder': 'Id de voz del proveedor, opcional',
'newproj.promptTemplateLabel': 'Plantilla de referencia',
'newproj.promptTemplateNoneTitle': 'Ninguna — escribe la tuya',
'newproj.promptTemplateNoneSub': 'Sáltate la galería y describe tu propio briefing',
'newproj.promptTemplateRefSub': 'Plantilla de referencia',
'newproj.promptTemplateSearch': 'Buscar plantillas…',
'newproj.promptTemplateEmpty': 'Aún no hay plantillas para este formato.',
'newproj.promptTemplateBodyLabel': 'Prompt (editable)',
'newproj.promptTemplateOptimizeHint':
'Edita lo que quieras — tus cambios se incorporan al briefing del agente.',
'newproj.promptTemplateBodyEmpty':
'Cuerpo vacío — el agente no recibirá ninguna referencia de plantilla.',
'designs.subRecent': 'Recientes',
'designs.subYours': 'Tus diseños',
'designs.filterAria': 'Filtrar proyectos',
'designs.searchPlaceholder': 'Buscar…',
'designs.emptyNoProjects': 'Aún no hay proyectos. Crea uno a la izquierda.',
'designs.emptyNoMatch': 'Ningún proyecto coincide con tu búsqueda.',
'designs.deleteTitle': 'Eliminar proyecto',
'designs.deleteConfirm': '¿Eliminar «{name}»?',
'designs.cardFreeform': 'estilo libre',
'designs.status.notStarted': 'Sin empezar',
'designs.status.queued': 'En cola',
'designs.status.running': 'En ejecución',
'designs.status.awaitingInput': 'Necesita respuesta',
'designs.status.succeeded': 'Completado',
'designs.status.failed': 'Fallido',
'designs.status.canceled': 'Cancelado',
'designs.viewToggleAria': 'Modo de vista',
'designs.viewGrid': 'Vista en cuadrícula',
'designs.viewKanban': 'Vista en tablero',
'designs.kanbanEmptyColumn': 'Sin diseños',
'designs.deleteAria': 'Eliminar proyecto {name}',
'examples.typeLabel': 'Tipo',
'examples.surfaceLabel': 'Superficie',
'examples.surfaceWeb': 'Web',
'examples.surfaceImage': 'Imagen',
'examples.surfaceVideo': 'Vídeo',
'examples.surfaceAudio': 'Audio',
'examples.scenarioLabel': 'Escenario',
'examples.modeAll': 'Todos',
'examples.modePrototypeDesktop': 'Prototipos · Escritorio',
'examples.modePrototypeMobile': 'Prototipos · Móvil',
'examples.modeDeck': 'Diapositivas',
'examples.modeDocument': 'Documentos y plantillas',
'examples.modeOrbit': 'Orbit',
'examples.scenarioGeneral': 'General',
'examples.scenarioEngineering': 'Ingeniería',
'examples.scenarioProduct': 'Producto',
'examples.scenarioDesign': 'Diseño',
'examples.scenarioMarketing': 'Marketing',
'examples.scenarioSales': 'Ventas',
'examples.scenarioFinance': 'Finanzas',
'examples.scenarioHr': 'RR. HH.',
'examples.scenarioOperations': 'Operaciones',
'examples.scenarioSupport': 'Soporte',
'examples.scenarioLegal': 'Legal',
'examples.scenarioEducation': 'Educación',
'examples.scenarioPersonal': 'Personal',
'examples.emptyNoSkills': 'No hay skills disponibles. ¿Está el daemon en ejecución?',
'examples.searchPlaceholder': 'Buscar ejemplos…',
'examples.searchAria': 'Buscar ejemplos por nombre',
'examples.emptyNoMatch': 'Ningún ejemplo coincide con estos filtros.',
'examples.openPreview': '⤢ Abrir vista previa',
'examples.loadingPreview': 'Cargando vista previa…',
'examples.hoverPreview': 'Pasa el cursor para ver la vista previa',
'examples.usePrompt': 'Usar este prompt',
'examples.previewModalTitle': 'Abrir vista previa completa (modal)',
'examples.shareTitle': 'Compartir este ejemplo',
'examples.shareLoadFirst': 'Pasa el cursor para cargar primero la vista previa',
'examples.shareMenu': 'Compartir ▾',
'examples.exportPdfAllSlides': 'Exportar como PDF (todas las diapositivas)',
'examples.exportPptxLocked': 'Exportar como PPTX… (abre primero la plantilla)',
'examples.tagSlideDeck': 'Presentación',
'examples.tagTemplate': 'Plantilla',
'examples.tagDesignSystem': 'Sistema de diseño',
'examples.tagMobilePrototype': 'Prototipo móvil',
'examples.tagDesktopPrototype': 'Prototipo de escritorio',
'examples.tagImage': 'Imagen',
'examples.tagVideo': 'Vídeo',
'examples.tagAudio': 'Audio',
'examples.previewLabel': 'Vista previa',
'ds.surfaceLabel': 'Superficie',
'ds.surfaceWeb': 'Web',
'ds.surfaceImage': 'Imagen',
'ds.surfaceVideo': 'Vídeo',
'ds.surfaceAudio': 'Audio',
'ds.searchPlaceholder': 'Buscar sistemas de diseño…',
'ds.emptyNoMatch': 'Ningún sistema de diseño coincide con tu búsqueda.',
'ds.badgeDefault': 'PREDETERMINADO',
'ds.preview': 'Vista previa',
'ds.previewTitle': 'Vista previa del sistema de diseño',
'ds.categoryAll': 'Todos',
'ds.categoryUncategorized': 'Sin categoría',
'ds.showcase': 'Vitrina',
'ds.tokens': 'Tokens',
'ds.specToggle': 'DESIGN.md',
'ds.specLoading': 'Cargando DESIGN.md…',
'avatar.title': 'Cuenta y ajustes',
'avatar.localCli': 'CLI local',
'avatar.anthropicApi': 'API de Anthropic',
'avatar.useLocal': 'Usar CLI local',
'avatar.useApi': 'Usar API · BYOK',
'avatar.codeAgent': 'Agente de código',
'avatar.rescan': 'Reescanear PATH',
'avatar.settings': 'Ajustes',
'avatar.backToProjects': 'Volver a los proyectos',
'avatar.metaActive': 'activo',
'avatar.metaOffline': 'sin conexión',
'avatar.metaSelected': 'seleccionado',
'avatar.noAgentSelected': 'ningún agente seleccionado',
'avatar.modelSection': 'Modelo',
'avatar.modelLabel': 'Modelo',
'avatar.reasoningLabel': 'Razonamiento',
'avatar.customSuffix': '(personalizado)',
'project.backToProjects': 'Volver a los proyectos',
'project.metaFreeform': 'estilo libre',
'project.resizeChatPanel': 'Redimensionar panel de chat',
'chat.tabChat': 'Chat',
'chat.tabComments': 'Comentarios',
'chat.commentsSoon': 'Comentarios — próximamente',
'chat.comments.attached': 'Attached to chat',
'chat.comments.emptyAttached': 'No comments attached.',
'chat.comments.saved': 'Saved comments',
'chat.comments.emptySaved': 'No saved comments.',
'chat.comments.add': 'Add',
'chat.comments.addAll': 'Add all',
'chat.comments.remove': 'Remove',
'chat.comments.placeholder': 'Comment on this element…',
'chat.comments.addSend': 'Add & send',
'chat.comments.updateSend': 'Update & send',
'chat.comments.removeAttachment': 'Remove comment attachment',
'chat.comments.removeAttachmentAria': 'Remove comment attachment for {name}',
'chat.conversationsTitle': 'Conversaciones',
'chat.conversationsAria': 'Historial de conversaciones',
'chat.newConversation': 'Nueva conversación',
'chat.newConversationsTitle': 'Nueva conversación',
'chat.conversationsHeading': 'Conversaciones',
'chat.new': 'Nueva',
'chat.emptyConversations': 'Aún no hay conversaciones.',
'chat.deleteConversation': 'Eliminar conversación',
'chat.deleteConversationConfirm':
'¿Eliminar «{title}»? Se borrarán sus mensajes.',
'chat.untitledConversation': 'Conversación sin título',
'chat.startTitle': 'Empieza una conversación',
'chat.startHint':
'Suelta o pega imágenes como referencia visual, o escribe @ para adjuntar un archivo de este proyecto. O prueba uno de estos comienzos:',
'chat.fillInputTitle': 'Haz clic para rellenar el campo',
'chat.jumpToLatest': 'Ir al más reciente',
'chat.scrollToLatest': 'Desplazar al más reciente',
'chat.you': 'Tú',
'chat.openFile': 'Abrir {name}',
'chat.composerPlaceholder':
'Describe el diseño que quieres: pega o suelta imágenes, o usa @ para referenciar un archivo…',
'chat.composerHint':
'⌘/Ctrl + Intro para enviar · pega imágenes · @ para referenciar archivos',
'chat.cliSettingsTitle': 'Ajustes de CLI y modelo',
'chat.cliSettingsAria': 'Abrir ajustes de CLI y modelo',
'chat.attachTitle': 'Adjuntar archivos (o pegar / soltar)',
'chat.attachAria': 'Adjuntar archivos',
'chat.importTitle': 'Importar fuentes (próximamente)',
'chat.importLabel': 'Importar',
'chat.importComingSoon': 'Próximamente',
'chat.importSoon': 'Pronto',
'chat.importFig': 'Subir archivo .fig',
'chat.importGitHub': 'Conectar GitHub',
'chat.importWeb': 'Capturar elemento web',
'chat.importFolder': 'Vincular carpeta de código',
'chat.importSkills': 'Skills y sistemas de diseño',
'chat.importProject': 'Reference another project',
'chat.linkedFolderRemoveAria': 'Eliminar carpeta vinculada {path}',
'chat.linkedFolderNotFound': 'La carpeta no existe',
'chat.linkedFolderAlready': 'Esta carpeta ya está vinculada',
'chat.linkedFolderPickError': 'No se pudo abrir el selector de carpetas',
'chat.send': 'Enviar',
'chat.stop': 'Detener',
'chat.removeAria': 'Quitar {name}',
'chat.example1Title': 'Pitch deck editorial',
'chat.example1Tag': 'Revista',
'chat.example1Prompt':
'Una presentación editorial de 10 diapositivas para un estudio de diseño que levanta una ronda seed: maquetación con grid suizo, titulares serif enormes con capitulares marcadas, números de sección en monoespaciada, abundante espacio en blanco y diapositivas a sangre con foto intercaladas con otras densas en texto. Portada, visión, mercado, producto, tracción, equipo, petición y contacto.',
'chat.example2Title': 'Dashboard de analítica SaaS',
'chat.example2Tag': 'Datos',
'chat.example2Prompt':
'Un dashboard denso de analítica para un SaaS de herramientas para desarrolladores: tira de KPIs con variaciones semana a semana, dos gráficos de líneas apilados (MRR y workspaces activos), un mapa de calor mundial de uso, una rejilla de retención por cohortes, un ranking de clientes principales y un feed de eventos en tiempo real. Tema oscuro, números monoespaciados tabulares, acentos con sparklines.',
'chat.example3Title': 'Memoria anual long-scroll',
'chat.example3Tag': 'Editorial',
'chat.example3Prompt':
'Una memoria anual interactiva para una ONG climática: maquetación editorial long-scroll mezclando grandes bloques de citas, visualizaciones de datos (barras apiladas, contadores animados, un mapa coroplético de proyectos), separadores con fotografía, muro de donantes y llamada a la acción final. Cuerpo en serif moderna, etiquetas de gráficos en sans-serif, paleta terrosa de papel.',
'preview.shareMenu': 'Compartir ▾',
'preview.openInNewTab': 'Abrir en pestaña nueva',
'preview.exit': '⤓ Salir',
'preview.fullscreen': '⤢ Pantalla completa',
'preview.closeTitle': 'Cerrar (Esc)',
'preview.loading': 'Cargando {label}…',
'preview.showSidebar': 'Mostrar {label}',
'preview.hideSidebar': 'Ocultar {label}',
'misc.savedTemplate': 'Plantilla guardada',
'misc.primary': 'Principal',
'misc.designSystem': 'Sistema de diseño',
'workspace.designFiles': 'Archivos de diseño',
'workspace.focusMode': 'Focus workspace',
'workspace.showChat': 'Show chat',
'workspace.closeTab': 'Cerrar pestaña',
'workspace.deleteFileConfirm': '¿Eliminar «{name}» de la carpeta del proyecto?',
'workspace.openFromDesignFiles': 'Abre un archivo desde',
'workspace.designFilesLink': 'Archivos de diseño',
'workspace.loadingSketch': 'Cargando boceto…',
'designFiles.title': 'Archivos de diseño',
'designFiles.upload': 'Subir archivos',
'designFiles.pasteText': 'Pegar como archivo de texto',
'designFiles.newSketch': 'Nuevo boceto',
'designFiles.empty':
'Aquí no hay nada todavía. Suelta archivos abajo, o crea un boceto / pega texto.',
'designFiles.refresh': 'Actualizar',
'designFiles.delete': 'Eliminar',
'designFiles.searchPlaceholder': 'Buscar archivos…',
'designFiles.up': 'Subir',
'designFiles.back': 'Atrás',
'designFiles.crumbs': 'proyecto',
'designFiles.rowMenu': 'Menú de la fila',
'designFiles.openInTab': 'Abrir en pestaña',
'designFiles.download': 'Descargar',
'designFiles.downloadSelected': 'Download {n} as ZIP',
'designFiles.clearSelection': 'Clear',
'designFiles.selectAll': 'Select all',
'designFiles.dropTitle': '⤓ Suelta archivos aquí',
'designFiles.dropDesc':
'Imágenes, documentos, referencias o carpetas: el agente los usará como contexto.',
'designFiles.upload.title': 'Subir archivos',
'designFiles.paste.title': 'Pegar texto como archivo',
'designFiles.upload.label': 'Subir',
'designFiles.paste.label': 'Pegar',
'designFiles.previewOpen': 'Abrir',
'designFiles.previewClose': 'Cerrar vista previa',
'designFiles.modified': 'Modificado {time} · {size}',
'designFiles.weeksAgo': 'hace {n} sem',
'designFiles.sectionPages': 'Páginas',
'designFiles.sectionScripts': 'Scripts',
'designFiles.sectionImages': 'Imágenes',
'designFiles.sectionSketches': 'Bocetos',
'designFiles.sectionOther': 'Otros',
'designFiles.showMore': 'Mostrar +{n} más',
'designFiles.kindHtml': 'Página HTML',
'designFiles.kindImage': 'Imagen',
'designFiles.kindSketch': 'Boceto',
'designFiles.kindText': 'Texto',
'designFiles.kindCode': 'Script',
'designFiles.kindPdf': 'PDF',
'designFiles.kindDocument': 'Documento',
'designFiles.kindPresentation': 'Presentación',
'designFiles.kindSpreadsheet': 'Hoja de cálculo',
'designFiles.kindBinary': 'Binario',
'quickSwitcher.placeholder': 'Abrir archivo…',
'quickSwitcher.empty': 'No hay archivos en este proyecto',
'quickSwitcher.noMatches': 'Sin resultados',
'quickSwitcher.navigate': 'navegar',
'quickSwitcher.open': 'abrir',
'quickSwitcher.close': 'cerrar',
'pasteDialog.title': 'Pegar texto',
'pasteDialog.hint': 'Se guarda en la carpeta del proyecto. Elige cualquier nombre.',
'pasteDialog.fileNameLabel': 'Nombre del archivo',
'pasteDialog.namePlaceholder': 'notas.txt',
'pasteDialog.contentLabel': 'Contenido',
'pasteDialog.contentPlaceholder': 'Pega lo que quieras…',
'pasteDialog.save': 'Guardar',
'pasteDialog.cancel': 'Cancelar',
'sketch.save': 'Guardar boceto',
'sketch.cancel': 'Cancelar',
'sketch.saving': 'Guardando…',
'sketch.tooltipDirty': 'Cambios sin guardar',
'sketch.tooltipClean': 'Guardado',
'fileViewer.empty': 'Selecciona un archivo para verlo.',
'fileViewer.loading': 'Cargando…',
'fileViewer.exportPptx': 'Exportar como PPTX',
'fileViewer.openInNewTab': 'Abrir en pestaña nueva',
'fileViewer.copyPath': 'Copiar ruta',
'fileViewer.copied': '¡Copiado!',
'fileViewer.share': 'Compartir',
'fileViewer.binaryMeta': 'Binario · {size}',
'fileViewer.binaryNote':
'Archivo binario ({size} bytes). Descárgalo o ábrelo desde el disco para inspeccionarlo.',
'fileViewer.pdfMeta': 'PDF · {size}',
'fileViewer.documentMeta': 'Documento',
'fileViewer.presentationMeta': 'Presentación',
'fileViewer.spreadsheetMeta': 'Hoja de cálculo',
'fileViewer.previewUnavailable': 'Vista previa no disponible. Descarga o abre el archivo para inspeccionarlo.',
'fileViewer.download': 'Descargar',
'fileViewer.open': 'Abrir',
'fileViewer.imageMeta': 'Imagen · {size}',
'fileViewer.reactMeta': 'Componente React · {size}',
'fileViewer.sketchMeta': 'Boceto · {size}',
'fileViewer.markdownStreamingMeta': 'Vista previa en streaming…',
'fileViewer.markdownErrorMeta': 'La vista previa puede estar incompleta (error de generación).',
'fileViewer.markdownStreamingStatus': 'Streaming… mostrando markdown parcial.',
'fileViewer.markdownErrorStatus': 'Error de generación. Mostrando el último contenido disponible.',
'fileViewer.videoMeta': 'Vídeo · {size}',
'fileViewer.audioMeta': 'Audio · {size}',
'fileViewer.reload': 'Recargar',
'fileViewer.reloadDisk': 'Recargar desde el disco',
'fileViewer.copy': 'Copiar',
'fileViewer.copyTitle': 'Copiar el contenido del archivo',
'fileViewer.saveDisabled': 'Guardar (visor de solo lectura)',
'fileViewer.save': 'Guardar',
'fileViewer.preview': 'Vista previa',
'fileViewer.source': 'Código fuente',
'fileViewer.tweaks': 'Ajustes',
'fileViewer.comment': 'Comentar',
'fileViewer.edit': 'Editar',
'fileViewer.draw': 'Dibujar',
'manualEdit.layers': "Layers",
'manualEdit.editableCount': "{count} editable",
'manualEdit.title': "Manual editor",
'manualEdit.selectLayer': "Select a layer",
'manualEdit.empty': "Click an element in the preview or choose a layer.",
'manualEdit.noClass': "no class",
'manualEdit.tabsAria': "Manual edit tabs",
'manualEdit.tabContent': "Content",
'manualEdit.tabStyle': "Style",
'manualEdit.tabAttributes': "Attributes",
'manualEdit.tabHtml': "Html",
'manualEdit.tabSource': "Source",
'manualEdit.attributesJson': "Attributes JSON",
'manualEdit.selectedHtml': "Selected element HTML",
'manualEdit.fullSource': "Full artifact source",
'manualEdit.applyContent': "Apply Content",
'manualEdit.applyStyle': "Apply Style",
'manualEdit.applyAttributes': "Apply Attributes",
'manualEdit.applyHtml': "Apply HTML",
'manualEdit.applySource': "Apply Source",
'manualEdit.invalidAttributes': "Invalid attributes JSON.",
'manualEdit.changes': "Changes",
'manualEdit.undo': "Undo",
'manualEdit.redo': "Redo",
'manualEdit.noChanges': "No manual edits yet.",
'manualEdit.imageUrl': "Image URL",
'manualEdit.altText': "Alt text",
'manualEdit.label': "Label",
'manualEdit.text': "Text",
'manualEdit.href': "Href",
'manualEdit.textColor': "Text color",
'manualEdit.background': "Background",
'manualEdit.fontSize': "Font size",
'manualEdit.weight': "Weight",
'manualEdit.align': "Align",
'manualEdit.padding': "Padding",
'manualEdit.margin': "Margin",
'manualEdit.radius': "Radius",
'manualEdit.border': "Border",
'manualEdit.width': "Width",
'manualEdit.minHeight': "Min height",
'fileViewer.zoomOut': 'Reducir zoom',
'fileViewer.zoomIn': 'Aumentar zoom',
'fileViewer.resetZoom': 'Restablecer zoom',
'fileViewer.reloadAria': 'Recargar',
'fileViewer.previousSlide': 'Diapositiva anterior',
'fileViewer.nextSlide': 'Diapositiva siguiente',
'fileViewer.slideNavAria': 'Navegación de diapositivas',
'fileViewer.present': 'Presentar',
'fileViewer.presentInTab': 'En esta pestaña',
'fileViewer.presentFullscreen': 'Pantalla completa',
'fileViewer.presentNewTab': 'Pestaña nueva',
'fileViewer.exitPresentation': 'Salir de la presentación',
'fileViewer.shareLabel': 'Compartir',
'fileViewer.exportPdf': 'Exportar como PDF',
'fileViewer.exportPdfAllSlides': 'Exportar como PDF (todas las diapositivas)',
'fileViewer.exportPptxBusy': 'Espera a que termine el turno actual.',
'fileViewer.exportPptxHint':
'Envía una solicitud al agente para convertir este diseño a PPTX.',
'fileViewer.exportPptxNa': 'La exportación a PPTX no está disponible aquí.',
'fileViewer.exportZip': 'Descargar como .zip',
'fileViewer.exportHtml': 'Exportar como HTML independiente',
'fileViewer.exportMd': 'Exportar como Markdown',
'fileViewer.exportJsx': 'Exportar como JSX',
'fileViewer.exportReactHtml': 'Exportar vista previa como HTML',
'fileViewer.saveAsTemplate': 'Guardar como plantilla…',
'fileViewer.savingTemplate': 'Guardando plantilla…',
'fileViewer.savedTemplate': 'Guardado como «{name}»',
'fileViewer.savedTemplateFail': 'No se pudo guardar la plantilla. Inténtalo de nuevo.',
'fileViewer.templateNamePrompt': 'Nombre de la plantilla',
'fileViewer.templateNameDefault': 'Plantilla sin título',
'fileViewer.templateDescPrompt':
'Descripción breve (opcional: ¿qué hace útil esta plantilla?)',
'fileViewer.deployToVercel': 'Desplegar en Vercel',
'fileViewer.redeployToVercel': 'Volver a desplegar',
'fileViewer.deployingToVercel': 'Desplegando en Vercel…',
'fileViewer.preparingPublicLink': 'Preparando enlace público…',
'fileViewer.copyDeployLink': 'Copiar enlace',
'fileViewer.deployModalTitle': 'Desplegar en Vercel',
'fileViewer.deployModalSubtitle':
'Despliega este artefacto HTML como Preview de Vercel usando tu propia cuenta.',
'fileViewer.vercelToken': 'Token de Vercel',
'fileViewer.vercelTokenGetLink': 'Obtener token de Vercel',
'fileViewer.vercelTokenPlaceholder': 'Pega tu token de Vercel',
'fileViewer.vercelTokenReuseHint':
'Se usará el token guardado. Introduce uno nuevo para reemplazarlo.',
'fileViewer.vercelTokenRequired': 'Introduce y guarda primero un token de Vercel.',
'fileViewer.vercelTeamId': 'Team ID',
'fileViewer.vercelTeamSlug': 'Team slug',
'fileViewer.optional': 'Opcional',
'fileViewer.vercelPreviewOnly': 'Por ahora los despliegues son solo Preview.',
'fileViewer.savingConfig': 'Guardando…',
'fileViewer.deployConfigSaveFailed': 'No se pudieron guardar los ajustes de Vercel.',
'fileViewer.deployFailed': 'El despliegue falló. Revisa los ajustes de Vercel e inténtalo de nuevo.',
'fileViewer.deployResultLabel': 'URL desplegada',
'fileViewer.deployLinkPreparingLabel': 'Enlace público pendiente',
'fileViewer.deployLinkDelayed':
'Tu sitio está desplegado. Vercel todavía está preparando el enlace público.',
'fileViewer.deployLinkProtectedLabel': 'Protección de Vercel activada',
'fileViewer.deployLinkProtected':
'Tu sitio se desplegó, pero Vercel exige autenticación para este enlace de preview. Desactiva Deployment Protection o usa un dominio personalizado.',
'fileViewer.retryLink': 'Reintentar ahora',
'questionForm.submit': 'Enviar',
'questionForm.skip': 'Omitir',
'questionForm.locked': 'Respondido',
'conv.switch': 'Cambiar de conversación',
'conv.label': 'Conversación',
'conv.heading': 'Conversaciones',
'conv.new': '+ Nueva',
'conv.empty': 'Aún no hay conversaciones.',
'conv.untitled': 'Conversación sin título',
'conv.renameTooltip': 'Doble clic para renombrar',
'conv.delete': 'Eliminar conversación',
'conv.deleteConfirm': '¿Eliminar «{title}»? Se borrarán sus mensajes.',
'agentPicker.label': 'Agente',
'agentPicker.modeChoose': 'Elige el modo de ejecución',
'agentPicker.localCli': 'CLI local',
'agentPicker.daemonOff': 'daemon apagado',
'agentPicker.byok': 'API · BYOK',
'agentPicker.selectAgent': 'Selecciona una CLI de agente de código detectada',
'agentPicker.noAgents': 'no hay agentes en el PATH',
'agentPicker.notInstalled': 'no instalado',
'agentPicker.rescan': 'Reescanear el PATH local en busca de agentes',
'tool.openInTab': 'Abrir {name} en una pestaña',
'tool.open': 'abrir',
'tool.todos': 'Tareas',
'tool.write': 'Escribir',
'tool.edit': 'Editar',
'tool.read': 'Leer',
'tool.bash': 'Bash',
'tool.glob': 'Glob',
'tool.grep': 'Grep',
'tool.fetch': 'Obtener',
'tool.search': 'Buscar',
'tool.lines': '{n} líneas',
'tool.changeSingular': 'cambio',
'tool.changePlural': 'cambios',
'tool.in': 'en {path}',
'tool.hide': 'ocultar',
'tool.output': 'salida',
'tool.running': 'ejecutando…',
'tool.error': 'error',
'tool.done': 'listo',
'assistant.role': 'Asistente',
'assistant.workingLabel': 'Trabajando',
'assistant.doneLabel': 'Listo',
'assistant.unfinishedLabel': 'Detenido con tareas pendientes',
'assistant.unfinishedSummary': 'quedan {n} tarea(s)',
'assistant.unfinishedMore': '+{n} más',
'assistant.continueRemaining': 'Continuar tareas pendientes',
'assistant.outTokens': '{n} salida',
'assistant.producedFiles': 'Archivos de este turno',
'assistant.openFile': 'Abrir',
'assistant.downloadFile': 'Descargar',
'assistant.thinking': 'Pensando',
'assistant.systemReminder': 'Recordatorio del sistema',
'assistant.waitingFirstOutput': 'Esperando la primera salida',
'assistant.statusBootingAgent': 'Iniciando agente',
'assistant.statusStarting': 'Iniciando',
'assistant.statusRequesting': 'Enviando solicitud',
'assistant.statusThinking': 'Pensando',
'assistant.statusStreaming': 'Transmitiendo',
'assistant.slowHint':
'Está tardando más de lo normal. El formulario suele aparecer en 5-10 s. Puedes pulsar Detener y reformular.',
'assistant.verbEditing': 'Editando',
'assistant.verbWriting': 'Escribiendo',
'assistant.verbReading': 'Leyendo',
'assistant.verbSearching': 'Buscando',
'assistant.verbRunning': 'Ejecutando',
'assistant.verbTodos': 'Tareas',
'assistant.verbFetching': 'Obteniendo',
'assistant.verbCalling': 'Llamando',
'qf.answered': 'respondido',
'qf.choose': 'Elige…',
'qf.required': 'obligatorio',
'qf.lockedSubmitted':
'Respuestas enviadas: el agente las usará durante el resto de la sesión.',
'qf.lockedPrev': 'Este formulario es de un turno anterior.',
'qf.hint':
'Elige lo que encaje. Omite los campos opcionales que no te importen: el agente usará valores predeterminados sensatos.',
'qf.submitDefault': 'Enviar respuestas',
'qf.submitDisabledTitle': 'Rellena primero los campos obligatorios',
'qf.submitTitle': 'Enviar respuestas',
'qf.cardSelected': 'seleccionado',
'qf.cardRefs': 'Refs:',
'qf.cardSampleText': 'El veloz murciélago hindú · 0123',
'sketch.toolSelect': 'Seleccionar (sin acción)',
'sketch.toolPen': 'Lápiz',
'sketch.toolText': 'Texto',
'sketch.toolRect': 'Rectángulo',
'sketch.toolArrow': 'Flecha',
'sketch.toolEraser': 'Borrador',
'sketch.color': 'Color',
'sketch.strokeSize': 'Grosor del trazo',
'sketch.undo': 'Deshacer',
'sketch.clear': 'Limpiar',
'sketch.close': 'Cerrar',
'sketch.textPrompt': 'Texto:',
'pet.title': 'Mascotas',
'pet.tabBuiltIn': 'Integradas',
'pet.tabBuiltInHint': 'Compañeros incluidos con Open Design — elige uno y adóptalo.',
'pet.builtInEmpty': 'Las mascotas integradas no están disponibles ahora. Actualiza la pestaña Comunidad cuando el daemon vuelva a estar en línea.',
'pet.tabCustom': 'Personalizada',
'pet.tabCustomHint': 'Pon nombre, glifo, color o sube un sprite.',
'pet.tabCommunity': 'Comunidad',
'pet.tabCommunityHint': 'Mascotas eclosionadas de Codex — adopta o genera una con IA.',
'pet.tabsAria': 'Fuente de la mascota',
'pet.subtitle': 'Adopta una mascotita que flota sobre tu workspace.',
'pet.navTitle': 'Mascotas',
'pet.navHint': 'Adopta o personaliza',
'pet.adopt': 'Adoptar',
'pet.adoptedBadge': 'Adoptada',
'pet.adoptCallout': 'Adopta una mascota',
'pet.changePet': 'Cambiar mascota',
'pet.wake': 'Despertar',
'pet.tuck': 'Esconder',
'pet.wakeTitle': 'Despertar la mascota — mostrar el overlay.',
'pet.tuckTitle': 'Esconder la mascota — ocultar el overlay.',
'pet.settingsTitle': 'Abrir ajustes de mascota',
'pet.useCustom': 'Usar mi mascota',
'pet.customTitle': 'Crea la tuya',
'pet.customHint': 'Elige nombre, símbolo y color — el overlay se actualiza en vivo.',
'pet.customGreetingPlaceholder': 'Saluda con tu mascota…',
'pet.fieldName': 'Nombre',
'pet.fieldGlyph': 'Símbolo',
'pet.fieldGlyphHint': 'Un solo emoji va mejor (p. ej. 🐝, 🦄, 🐢).',
'pet.fieldGreeting': 'Saludo',
'pet.fieldAccent': 'Color de acento',
'pet.fieldAccentCustom': 'Color personalizado',
'pet.overlayAria': 'Compañero',
'pet.spriteAria': '{name} — arrastra para mover, haz clic para conversar',
'pet.spriteTitle': '¡Hola de {name}! Haz clic para conversar.',
'pet.railAria': 'Selector de mascota',
'pet.railTitle': 'Mascotas',
'pet.railHint': 'Elige un compañero que flote sobre tu workspace.',
'pet.railExpand': 'Mostrar selector',
'pet.railCollapse': 'Plegar selector',
'pet.railHide': 'Ocultar selector de mascotas',
'pet.railShow': 'Mostrar selector de mascotas',
'pet.railCustomFlavor': 'La tuya — nombre, símbolo y color.',
'pet.railCustomize': 'Personalizar…',
'pet.composerTitle': 'Mascotas — despertar, esconder o elegir',
'pet.composerMenuTitle': 'Mascotas',
'pet.composerMenuHint': 'tip: escribe /pet para alternar',
'pet.composerOpenSettings': 'Personalizar en Ajustes',
'pet.welcomeTeaserTitle': 'Adopta una mascota',
'pet.welcomeTeaserBody': 'Un compañerito que flota sobre tu workspace.',
'pet.welcomeTeaserCta': 'Elegir',
'pet.imageUpload': 'Subir sprite',
'pet.imageReplace': 'Reemplazar sprite',
'pet.imageRemove': 'Usar emoji',
'pet.imageHintIdle': 'PNG, JPG, WebP, GIF o SVG. ¿Spritesheet? Sube una tira horizontal y ajusta el número de frames.',
'pet.imageHintActive': 'Mostrando tu sprite. Pon frames > 1 para animar un spritesheet horizontal.',
'pet.fieldFrames': 'Frames',
'pet.fieldFramesHint': '1 = estático. > 1 = spritesheet horizontal.',
'pet.fieldFps': 'Velocidad (fps)',
'pet.fieldFpsHint': 'Velocidad de cambio de frames.',
'pet.atlasImport': 'Importar sprite de Codex',
'pet.atlasImportTitle': 'Importa un atlas hatch-pet 8x9 / 192x208 (PNG o WebP).',
'pet.atlasPickerTitle': 'Elige una fila de animación',
'pet.atlasPickerHint': 'Las mascotas Codex traen 9 filas de animación. Por defecto mantenemos todo el atlas para que la mascota cambie de fila al pasar el ratón, según la dirección del arrastre o tras estar inactiva. También puedes fijar un solo bucle.',
'pet.atlasCancel': 'Descartar atlas',
'pet.atlasAdopt': 'Fijar a esta fila',
'pet.atlasAdoptFull': 'Usar atlas completo (animado)',
'pet.atlasAdoptFullTitle': 'Conserva todas las filas para que la mascota reaccione al hover, a la dirección del arrastre y a la inactividad larga.',
'pet.atlasAdoptRowTitle': 'Recorta solo la fila resaltada en una tira con bucle único.',
'pet.atlasActiveHint': 'Atlas animado activo — la mascota elige una fila según tu interacción (hover, arrastre, inactividad).',
'pet.atlasRow.idle': 'Idle',
'pet.atlasRow.running-right': 'Corre a la derecha',
'pet.atlasRow.running-left': 'Corre a la izquierda',
'pet.atlasRow.waving': 'Saludo',
'pet.atlasRow.jumping': 'Salto',
'pet.atlasRow.failed': 'Falló',
'pet.atlasRow.waiting': 'Espera',
'pet.atlasRow.running': 'Corre',
'pet.atlasRow.review': 'Revisión',
'pet.hatchTitle': 'Eclosiona una mascota nueva con IA',
'pet.hatchHint': 'Usa la skill hatch-pet incluida desde el chat para generar un spritesheet estilo Codex y luego impórtalo aquí.',
'pet.hatchConcept': 'Concepto de mascota (opcional)',
'pet.hatchConceptPlaceholder': 'p. ej. un shiba pixel-art con un suéter cómodo',
'pet.hatchCopy': 'Copiar prompt',
'pet.hatchCopied': '¡Copiado!',
'pet.hatchFoot': 'Cuando la skill guarde tu mascota, vuelve y pulsa "Importar sprite de Codex".',
'pet.slashPopoverAria': 'Comandos slash',
'pet.slashPopoverTitle': 'Comandos',
'pet.slashPopoverHint': '↑↓ navegar · enter elegir · esc cerrar',
'pet.slashPet': 'Alternar, adoptar o ir a ajustes de mascota.',
'pet.slashPetWake': 'Despertar la mascota flotante.',
'pet.slashPetTuck': 'Guardar la mascota por ahora.',
'pet.slashHatch': 'Genera una mascota Codex con la skill hatch-pet.',
'pet.slashHatchArg': '<concepto>',
'pet.codexTitle': 'Recién eclosionadas',
'pet.codexSubtitle': 'Las mascotas empaquetadas por la skill hatch-pet aparecen aquí para adopción en un clic.',
'pet.codexSubtitleWithDir': 'Escaneando {dir} en busca de paquetes de hatch-pet.',
'pet.codexEmpty': 'Aún no hay mascotas eclosionadas. Escribe /hatch en el chat para generar una.',
'pet.codexLoading': 'Buscando mascotas eclosionadas…',
'pet.codexRefresh': 'Refrescar',
'pet.codexAdopt': 'Adoptar',
'pet.codexAdopting': 'Adoptando…',
'pet.communitySync': 'Descargar mascotas de la comunidad',
'pet.communitySyncing': 'Descargando…',
'pet.communitySyncTitle': 'Sincronizar las últimas mascotas de Codex Pet Share + j20 Hatchery en ~/.codex/pets/.',
'pet.communitySyncDone': '{wrote} mascotas nuevas sincronizadas ({total} en total).',
'pet.communitySyncFailed': 'Error al sincronizar: {error}',
'pet.codexBundled': 'Incluida',
'pet.codexBundledTitle': 'Viene con Open Design — sin descarga.',
'settings.notifications': 'Notificaciones',
'settings.notificationsHint': 'Sonido y notificación al completar la tarea',
'settings.notifyCompletionSound': 'Sonido al completar',
'settings.notifyCompletionSoundHint': 'Se reproduce al terminar un turno. Desactivado por defecto.',
'settings.notifySuccessSound': 'Sonido de éxito',
'settings.notifyFailureSound': 'Sonido de error',
'settings.notifyDesktop': 'Notificación de escritorio',
'settings.notifyDesktopHint': 'Se envía cuando la ventana no está en primer plano.',
'settings.notifyDesktopBlocked': 'Bloqueadas por el navegador. Habilítalas en la configuración del sitio.',
'settings.notifyDesktopUnsupported': 'Las notificaciones de escritorio no están disponibles en este entorno.',
'settings.notifyTest': 'Enviar prueba',
'settings.notifyTestSent': 'Notificación de prueba enviada. Si no aparece el aviso, revisa las notificaciones del navegador y del sistema.',
'settings.notifyTestFailed': 'Falló la llamada de notificación. Revisa las notificaciones del navegador y del sistema.',
'settings.notifySoundDing': 'Tilín',
'settings.notifySoundChime': 'Carillón',
'settings.notifySoundTwoToneUp': 'Dos tonos ascendente',
'settings.notifySoundPluck': 'Pulsación',
'settings.notifySoundBuzz': 'Zumbido',
'settings.notifySoundTwoToneDown': 'Dos tonos descendente',
'settings.notifySoundThud': 'Golpe',
'settings.library': 'Habilidades y sistemas de diseño',
'settings.libraryHint': 'Explorar, previsualizar y activar/desactivar tu biblioteca de contenidos',
'settings.librarySkills': 'Habilidades',
'settings.libraryDesignSystems': 'Sistemas de diseño',
'settings.librarySearch': 'Buscar...',
'settings.libraryAll': 'Todo',
'settings.libraryPreview': 'Vista previa',
'settings.libraryPreviewClose': 'Cerrar',
'settings.libraryLoading': 'Cargando...',
'settings.libraryNoResults': 'Ningún elemento coincide con tu búsqueda.',
'settings.libraryEnabled': 'Activado',
'settings.libraryDisabled': 'Desactivado',
'settings.libraryToggleLabel': 'Alternar',
'notify.successTitle': 'Tarea completada',
'notify.failureTitle': 'La tarea falló',
'notify.successBody': 'Un turno ha terminado.',
'notify.failureBody': 'La tarea terminó con un error.',
};
+985
View File
@@ -0,0 +1,985 @@
import type { Dict } from '../types';
export const fa: Dict = {
'common.cancel': 'لغو',
'common.save': 'ذخیره',
'common.close': 'بستن',
'common.delete': 'حذف',
'common.rename': 'تغییر نام',
'common.preview': 'پیش‌نمایش',
'common.share': 'اشتراک‌گذاری',
'common.search': 'جستجو',
'common.searchEllipsis': 'جستجو…',
'common.loading': 'در حال بارگذاری…',
'common.all': 'همه',
'common.none': 'هیچ',
'common.default': 'پیش‌فرض',
'common.installed': 'نصب شده',
'common.notInstalled': 'نصب نشده',
'common.active': 'فعال',
'common.offline': 'آفلاین',
'common.selected': 'انتخاب شده',
'common.create': 'ایجاد',
'common.openPreview': 'باز کردن پیش‌نمایش',
'common.exitFullscreen': 'خروج از تمام صفحه',
'common.fullscreen': 'تمام صفحه',
'common.openInNewTab': 'باز کردن در تب جدید',
'common.exportPdf': 'صادرکردن به PDF',
'common.exportZip': 'دانلود به صورت .zip',
'common.exportHtml': 'صادرکردن به HTML مستقل',
'common.justNow': 'همین الان',
'common.minutesAgo': '{n} دقیقه پیش',
'common.hoursAgo': '{n} ساعت پیش',
'common.daysAgo': '{n} روز پیش',
'common.now': 'الان',
'common.minutesShort': '{n}د',
'common.hoursShort': '{n}س',
'common.daysShort': '{n}ر',
'common.untitled': 'بدون عنوان',
'app.brand': 'Open Design',
'app.brandPill': 'پیش‌نمایش تحقیقاتی',
'app.brandSubtitle': 'توسط Nexu Labs',
'app.welcomeLoading': 'در حال بارگذاری فضای کاری…',
'settings.welcomeKicker': 'خوش آمدید',
'settings.welcomeTitle': 'Open Design را راه‌اندازی کنید',
'settings.welcomeSubtitle':
'نحوه اجرای تولیدات را انتخاب کنید. می‌توانید هر زمان از دکمه تنظیمات در نوار بالا این را تغییر دهید.',
'settings.kicker': 'تنظیمات',
'settings.title': 'اجرا و مدل',
'settings.subtitle': 'بین CLI محلی و BYOK انتخاب کنید. کلید API فقط در همین مرورگر ذخیره می‌شود.',
'settings.modeAria': 'حالت اجرا',
'settings.protocolAria': 'پروتکل API',
'settings.modeDaemon': 'CLI محلی',
'settings.modeDaemonHelp': 'اجرا از طریق CLI عامل کد روی دستگاه شما',
'settings.modeDaemonOffline': 'Daemon در حال اجرا نیست',
'settings.modeDaemonOfflineMeta': 'daemon آفلاین',
'settings.modeDaemonInstalledMeta': '{count} نصب شده',
'settings.modeApi': 'ارائه‌دهنده API',
'settings.modeApiMeta': 'BYOK',
'settings.codeAgent': 'عامل کد',
'settings.codeAgentHint':
'با اسکن PATH شما شناسایی شده. CLI مورد نظر برای جریان تولیدات را انتخاب کنید.',
'settings.rescan': '↻ اسکن مجدد',
'settings.rescanTitle': 'اسکن مجدد PATH',
'settings.rescanRunning': 'در حال اسکن...',
'settings.rescanSuccess': 'اسکن کامل شد. {count} مورد در دسترس است.',
'settings.rescanFailed': 'اسکن ناموفق بود. daemon را بررسی کنید و دوباره تلاش کنید.',
'settings.noAgentsDetected':
'هنوز هیچ عاملی شناسایی نشده. یکی از Claude Code، Codex، Gemini CLI، OpenCode، Cursor Agent، Qwen یا GitHub Copilot CLI را نصب کنید، سپس روی اسکن مجدد کلیک کنید.',
'settings.apiSection': 'Anthropic API',
'settings.quickFillProvider': 'پر کردن سریع ارائه‌دهنده',
'settings.customProvider': 'ارائه‌دهنده سفارشی',
'settings.apiKey': 'کلید API',
'settings.showKey': 'نمایش کلید',
'settings.hideKey': 'پنهان کردن کلید',
'settings.show': 'نمایش',
'settings.hide': 'پنهان',
'settings.model': 'مدل',
'settings.suggestedModelsHint':
'این‌ها مدل‌های پیشنهادی برای این پروتکل هستند. ارائه‌دهنده شما ممکن است مدل‌های دیگری را پشتیبانی کند.',
'settings.baseUrl': 'آدرس پایه',
'settings.baseUrlInvalid': 'یک URL عمومی معتبر با http:// یا https:// وارد کنید. localhost مجاز است؛ IPهای شبکه خصوصی مسدود می‌شوند.',
'settings.azureDeploymentModel': 'نام استقرار',
'settings.azureDeploymentModelHint':
'در Azure OpenAI، این فیلد به عنوان نام استقرار در /openai/deployments/<model> استفاده می‌شود. نام استقراری را که در Azure ساخته‌اید وارد کنید.',
'settings.apiVersion': 'نسخه API',
'settings.maxTokens': 'حداکثر توکن (اختیاری)',
'settings.maxTokensHint':
'سقف طول پاسخ. هر مدل مقدار پیش‌فرض تنظیم‌شدهٔ خود را دارد (در placeholder نمایش داده می‌شود)؛ برای استفاده از آن خالی بگذارید، یا برای جایگزینی، عددی وارد کنید.',
'settings.apiHint': 'درخواست‌ها از طریق پراکسی daemon محلی به Base URL تنظیم‌شده ارسال می‌شوند. کلید فقط در همین مرورگر ذخیره می‌شود و همراه درخواست‌های ارائه‌دهنده فرستاده می‌شود.',
'settings.skipForNow': 'فعلاً رد کنید',
'settings.getStarted': 'شروع کنید',
'settings.envConfigure': 'پیکربندی حالت اجرا',
'settings.localCli': 'CLI محلی',
'settings.anthropicApi': 'Anthropic API',
'settings.noAgentSelected': 'هیچ عاملی انتخاب نشده',
'settings.language': 'زبان',
'settings.languageHint': 'زبان رابط را تغییر دهید. در این مرورگر ذخیره می‌شود.',
'settings.appearance': 'ظاهر',
'settings.appearanceHint': 'روشن، تاریک یا پیروی از تنظیمات سیستم.',
'settings.themeSystem': 'سیستم',
'settings.themeLight': 'روشن',
'settings.themeDark': 'تاریک',
'settings.modelPicker': 'مدل',
'settings.reasoningPicker': 'سطح استدلال',
'settings.modelPickerHint':
'هنگامی که CLI یک دستور `models` را ارائه می‌دهد از آن دریافت می‌شود. «پیش‌فرض» انتخاب را به پیکربندی خود CLI واگذار می‌کند؛ «سفارشی…» به شما امکان می‌دهد هر شناسه مدلی را که CLI می‌پذیرد تایپ کنید.',
'settings.cliEnvTitle': 'CLI config locations',
'settings.cliEnvHint':
'Set non-secret config directories for packaged app runs and agent detection.',
'settings.cliEnvClaudeConfigDir': 'Claude Code config dir',
'settings.cliEnvCodexHome': 'Codex home',
'settings.modelCustom': 'سفارشی (در زیر تایپ کنید)…',
'settings.modelCustomLabel': 'شناسه مدل سفارشی',
'settings.modelCustomPlaceholder': 'مثلاً anthropic/claude-sonnet-4-6',
'settings.mediaProviders': 'ارائه‌دهندگان رسانه',
'settings.mediaProvidersHint':
'کلیدهای API برای تولید تصویر، ویدئو و صدا. به صورت محلی ذخیره و با daemon محلی همگام می‌شود.',
'settings.mediaProviderApiKey': 'کلید API',
'settings.mediaProviderBaseUrl': 'آدرس پایه',
'settings.mediaProviderConfigured': 'پیکربندی شده',
'settings.mediaProviderUnset': 'تنظیم نشده',
'settings.mediaProviderClear': 'پاک کردن',
'settings.mediaProviderPlaceholder': 'کلید API را وارد کنید',
'settings.mediaProviderBaseUrlPlaceholder': 'بازنویسی آدرس پایه پیش‌فرض',
'settings.about': 'درباره',
'settings.aboutHint': 'جزئیات نسخه و اجرا',
'settings.appVersion': 'نسخه',
'settings.appChannel': 'کانال',
'settings.appRuntime': 'محیط اجرا',
'settings.appPlatform': 'سکو',
'settings.appArchitecture': 'معماری',
'settings.runtimePackaged': 'برنامه بسته‌بندی‌شده',
'settings.runtimeDevelopment': 'توسعه',
'settings.versionUnavailable': 'تا وقتی daemon آفلاین است جزئیات نسخه در دسترس نیست.',
'entry.tabDesigns': 'طرح‌ها',
'entry.tabExamples': 'نمونه‌ها',
'entry.tabDesignSystems': 'سیستم‌های طراحی',
'entry.tabConnectors': 'اتصال‌دهنده‌ها',
'entry.tabImageTemplates': 'قالب‌های تصویر',
'entry.tabVideoTemplates': 'قالب‌های ویدئو',
'entry.openSettingsTitle': 'تنظیمات',
'entry.openSettingsAria': 'باز کردن تنظیمات',
'entry.resizeAria': 'تغییر اندازه نوار کناری',
'entry.loadingWorkspace': 'در حال بارگذاری فضای کاری…',
'promptTemplates.searchPlaceholder': 'جستجوی قالب‌ها…',
'promptTemplates.countLabel': '{n} نتیجه',
'promptTemplates.emptyImage': 'هنوز قالب پرامپت تصویر نصب نشده است.',
'promptTemplates.emptyVideo': 'هنوز قالب پرامپت ویدئو نصب نشده است.',
'promptTemplates.emptyNoMatch': 'هیچ قالبی با جستجوی شما مطابقت ندارد.',
'promptTemplates.attributionFooter':
'برگرفته از کتابخانه‌های عمومی پرامپت. هر کارت به نویسنده اصلی لینک دارد.',
'promptTemplates.openPreviewTitle': 'باز کردن پرامپت و پیش‌نمایش',
'promptTemplates.sourcePrefix': 'منبع:',
'promptTemplates.fetchError': 'بارگذاری متن این قالب ممکن نبود.',
'promptTemplates.promptLabel': 'متن پرامپت',
'promptTemplates.copyPrompt': 'کپی پرامپت',
'promptTemplates.copyDone': 'کپی شد!',
'promptTemplates.modelHint': 'مدل پیشنهادی: {model}',
'promptTemplates.openSource': 'دیدن منبع اصلی',
'promptTemplates.openFullscreen': 'باز کردن پیش‌نمایش تمام‌صفحه',
'promptTemplates.closeFullscreen': 'بستن پیش‌نمایش تمام‌صفحه',
'promptTemplates.allSources': 'همهٔ منابع',
'promptTemplates.sourceFilterAria': 'فیلتر بر اساس منبع',
'promptTemplates.retry': 'تلاش دوباره',
'connectors.title': 'اتصال‌دهنده‌ها',
'connectors.subtitle': 'منابع داده محلی و آینده که می‌توانند به مصنوعات زنده نیرو بدهند.',
'connectors.account': 'حساب',
'connectors.noAccount': 'متصل نیست',
'connectors.tools': 'ابزارها',
'connectors.connect': 'اتصال',
'connectors.disconnect': 'قطع اتصال',
'connectors.configure': 'پیکربندی',
'connectors.unavailable': 'در دسترس نیست',
'connectors.phaseStubTitle': 'APIهای اتصال‌دهنده در فاز ۳ می‌رسند؛ این فقط یک نمای پیش‌نمایش است.',
'connectors.statusAvailable': 'در دسترس',
'connectors.statusConnected': 'متصل',
'connectors.statusError': 'خطا',
'connectors.statusDisabled': 'غیرفعال',
'connectors.gateTitle': 'ابتدا کلید Composio API را پیکربندی کنید',
'connectors.gateBody': 'اتصال‌دهنده‌ها به کلید Composio API نیاز دارند. برای فعال‌سازی ادغام‌های موجود، آن را در تنظیمات اضافه کنید.',
'connectors.gateAction': 'باز کردن تنظیمات',
'connectors.aboutLabel': 'درباره',
'connectors.detailsLabel': 'جزئیات',
'connectors.statusLabel': 'وضعیت',
'connectors.categoryLabel': 'دسته‌بندی',
'connectors.providerLabel': 'ارائه‌دهنده',
'connectors.toolsSection': 'ابزارها',
'connectors.toolsLoading': 'در حال بارگیری ابزارها…',
'connectors.noToolsAvailable': 'هنوز ابزاری در دسترس نیست. پس از اتصال، قابلیت‌های این ادغام آشکار می‌شود.',
'connectors.openDetailsAria': 'باز کردن جزئیات {name}',
'connectors.toolsBadgeNone': 'بدون ابزار',
'connectors.toolsBadgeOne': '{n} ابزار',
'connectors.toolsBadgeMany': '{n} ابزار',
'connectors.searchPlaceholder': 'جستجوی اتصال‌دهنده‌ها…',
'connectors.searchAriaLabel': 'جستجوی اتصال‌دهنده‌ها بر اساس نام، ارائه‌دهنده یا ابزار',
'connectors.searchClear': 'پاک کردن جستجو',
'connectors.emptyNoMatchTitle': 'هیچ اتصال‌دهنده‌ای با «{query}» مطابقت ندارد',
'connectors.emptyNoMatchBody': 'کلمه‌ی کلیدی دیگری را امتحان کنید یا جستجو را پاک کنید تا کل فهرست نمایش داده شود.',
'connectors.emptyNoMatchAction': 'پاک کردن جستجو',
'newproj.tabPrototype': 'نمونه اولیه',
'newproj.tabLiveArtifact': 'مصنوع زنده جدید',
'newproj.tabDeck': 'ارائه اسلاید',
'newproj.tabTemplate': 'از قالب',
'newproj.tabOther': 'سایر',
'newproj.titlePrototype': 'نمونه اولیه جدید',
'newproj.titleLiveArtifact': 'مصنوع زنده جدید',
'newproj.titleDeck': 'ارائه اسلاید جدید',
'newproj.titleTemplate': 'شروع از یک قالب',
'newproj.titleImage': 'تصویر جدید',
'newproj.titleVideo': 'ویدئوی جدید',
'newproj.titleAudio': 'صدای جدید',
'newproj.titleOther': 'پروژه جدید',
'newproj.namePlaceholder': 'نام پروژه',
'newproj.fidelityLabel': 'دقت',
'newproj.fidelityWireframe': 'وایرفریم',
'newproj.fidelityHigh': 'دقت بالا',
'newproj.toggleSpeakerNotes': 'استفاده از یادداشت‌های سخنران',
'newproj.toggleSpeakerNotesHint': 'متن کمتر روی اسلایدها — نکات صحبت را در یادداشت‌ها نگه دارید.',
'newproj.toggleAnimations': 'افزودن انیمیشن',
'newproj.toggleAnimationsHint':
'افزودن حرکت (ورود، هاور، انتقال) بر روی قالب.',
'newproj.templateLabel': 'قالب',
'newproj.noTemplatesTitle': 'هنوز هیچ قالبی وجود ندارد',
'newproj.noTemplatesBody':
'هر پروژه‌ای را باز کنید، سپس از منوی اشتراک‌گذاری در داخل نمایشگر فایل آن را به قالب تبدیل کنید. قالب‌ها اینجا نمایش داده می‌شوند.',
'newproj.savedTemplate': 'قالب ذخیره شده',
'newproj.fileSingular': 'فایل',
'newproj.filePlural': 'فایل',
'newproj.create': 'ایجاد',
'newproj.createLiveArtifact': 'ایجاد مصنوع زنده',
'newproj.createFromTemplate': 'ایجاد از قالب',
'newproj.createDisabledTitle':
'ابتدا یک پروژه را به عنوان قالب ذخیره کنید (منوی اشتراک‌گذاری در داخل هر پروژه).',
'newproj.importClaudeZip': 'وارد کردن ZIP طراحی Claude',
'newproj.importClaudeZipTitle': 'وارد کردن یک فایل .zip صادر شده از Claude Design',
'newproj.importingClaudeZip': 'در حال وارد کردن…',
'newproj.privacyFooter': 'به طور پیش‌فرض فقط شما می‌توانید پروژه خود را ببینید.',
'newproj.designSystem': 'سیستم طراحی',
'newproj.dsNoneFreeform': 'هیچ — آزاد',
'newproj.dsNoneSubtitleEmpty': 'بدون توکن‌های سیستم، پالت خود را انتخاب کنید',
'newproj.dsNoneSubtitleSelected': 'از توکن‌های سیستم صرف نظر کنید. عامل پالت خود را انتخاب می‌کند.',
'newproj.dsCategoryFallback': 'سیستم طراحی',
'newproj.dsSearch': 'جستجوی سیستم‌های طراحی…',
'newproj.dsModeAria': 'حالت انتخاب',
'newproj.surfaceImage': 'تصویر',
'newproj.surfaceVideo': 'ویدئو',
'newproj.surfaceAudio': 'صدا',
'newproj.modelLabel': 'مدل',
'newproj.aspectLabel': 'نسبت تصویر',
'newproj.imageStyleLabel': 'یادداشت‌های سبک',
'newproj.imageStylePlaceholder': 'عکس ادیتوریال، نور روز نرم، پالت ملایم',
'newproj.videoLengthLabel': 'طول',
'newproj.videoLengthSeconds': '{n}ث',
'newproj.audioKindLabel': 'نوع صدا',
'newproj.audioKindMusic': 'موسیقی',
'newproj.audioKindSpeech': 'گفتار / TTS',
'newproj.audioKindSfx': 'افکت صوتی',
'newproj.audioDurationLabel': 'مدت',
'newproj.audioDurationSeconds': '{n}ث',
'newproj.voiceLabel': 'صدا',
'newproj.voicePlaceholder': 'شناسه صدای ارائه‌دهنده، اختیاری',
'newproj.connectorsLabel': 'اتصال‌دهنده‌ها',
'newproj.connectorsHint': 'منابع داده‌ای که این مصنوع می‌تواند از آن‌ها استفاده کند.',
'newproj.connectorsEmptyTitle': 'هیچ اتصال‌دهنده‌ای پیکربندی نشده',
'newproj.connectorsEmptyBody':
'یک منبع داده متصل کنید تا مصنوع زنده به‌جای داده‌های جایگزین از داده‌های واقعی استفاده کند.',
'newproj.connectorsEmptyCta': 'پیکربندی اتصال‌دهنده‌ها ←',
'newproj.connectorsLoading': 'در حال بارگذاری اتصال‌دهنده‌ها…',
'newproj.connectorsCountOne': '{n} متصل',
'newproj.connectorsCountMany': '{n} متصل',
'newproj.connectorsManage': 'مدیریت',
'newproj.promptTemplateLabel': 'قالب مرجع',
'newproj.promptTemplateNoneTitle': 'بدون قالب — توصیف اختصاصی',
'newproj.promptTemplateNoneSub': 'گالری را رد کنید و خودتان توضیح دهید',
'newproj.promptTemplateRefSub': 'قالب مرجع',
'newproj.promptTemplateSearch': 'جست‌وجوی قالب‌ها…',
'newproj.promptTemplateEmpty': 'هنوز قالبی برای این نوع نصب نشده است.',
'newproj.promptTemplateBodyLabel': 'پرامپت (قابل ویرایش)',
'newproj.promptTemplateOptimizeHint':
'هر چیزی را می‌توانید ویرایش کنید — تغییرات شما به بریف ایجنت اضافه می‌شود.',
'newproj.promptTemplateBodyEmpty': 'متن خالی است — ایجنت هیچ مرجع قالبی دریافت نمی‌کند.',
'newproj.dsModeSingle': 'تکی',
'newproj.dsModeMulti': 'چندگانه',
'newproj.dsNoneTitle': 'هیچ — آزاد',
'newproj.dsNoneSub': 'از توکن‌های سیستم صرف نظر کنید. عامل پالت خود را انتخاب می‌کند.',
'newproj.dsEmpty': 'هیچ سیستم طراحی با «{query}» مطابقت ندارد.',
'newproj.dsFootSingular': 'فقط الهام‌بخش است.',
'newproj.dsFootPlural': 'فقط الهام‌بخش هستند.',
'newproj.dsFootClear': 'پاک کردن',
'newproj.dsBadgeDefault': 'پیش‌فرض',
'newproj.dsPrimaryFallback': 'اصلی',
'designs.subRecent': 'اخیر',
'designs.subYours': 'طرح‌های شما',
'designs.filterAria': 'فیلتر پروژه‌ها',
'designs.searchPlaceholder': 'جستجو…',
'designs.emptyNoProjects': 'هنوز هیچ پروژه‌ای وجود ندارد. یکی را از سمت چپ ایجاد کنید.',
'designs.emptyNoMatch': 'هیچ پروژه‌ای با جستجوی شما مطابقت ندارد.',
'designs.deleteTitle': 'حذف پروژه',
'designs.deleteConfirm': 'آیا «{name}» حذف شود؟',
'designs.cardFreeform': 'آزاد',
'designs.badgeLive': 'زنده',
'designs.liveArtifactBadgesAria': 'نشان‌های مصنوعات زنده',
'designs.liveCount': '{n} زنده',
'designs.statusLive': 'مصنوع زنده',
'designs.statusArchived': 'بایگانی‌شده',
'designs.statusError': 'خطا',
'designs.statusRefreshing': 'در حال بازخوانی…',
'designs.statusRefreshFailed': 'بازخوانی ناموفق بود',
'designs.statusRefreshed': 'بازخوانی شد',
'designs.status.notStarted': 'شروع نشده',
'designs.status.queued': 'در صف',
'designs.status.running': 'در حال اجرا',
'designs.status.awaitingInput': 'نیازمند ورودی',
'designs.status.succeeded': 'تکمیل شد',
'designs.status.failed': 'ناموفق',
'designs.status.canceled': 'لغو شد',
'designs.viewToggleAria': 'حالت نمایش',
'designs.viewGrid': 'نمای شبکه‌ای',
'designs.viewKanban': 'نمای برد',
'designs.kanbanEmptyColumn': 'هیچ طرحی نیست',
'designs.deleteAria': 'حذف پروژه {name}',
'examples.typeLabel': 'نوع',
'examples.surfaceLabel': 'سطح',
'examples.surfaceWeb': 'وب',
'examples.surfaceImage': 'تصویر',
'examples.surfaceVideo': 'ویدئو',
'examples.surfaceAudio': 'صدا',
'examples.scenarioLabel': 'سناریو',
'examples.modeAll': 'همه',
'examples.modePrototypeDesktop': 'نمونه اولیه · دسکتاپ',
'examples.modePrototypeMobile': 'نمونه اولیه · موبایل',
'examples.modeDeck': 'اسلایدها',
'examples.modeDocument': 'اسناد و قالب‌ها',
'examples.modeOrbit': 'Orbit',
'examples.scenarioGeneral': 'عمومی',
'examples.scenarioEngineering': 'مهندسی',
'examples.scenarioProduct': 'محصول',
'examples.scenarioDesign': 'طراحی',
'examples.scenarioMarketing': 'بازاریابی',
'examples.scenarioSales': 'فروش',
'examples.scenarioFinance': 'مالی',
'examples.scenarioHr': 'منابع انسانی',
'examples.scenarioOperations': 'عملیات',
'examples.scenarioSupport': 'پشتیبانی',
'examples.scenarioLegal': 'حقوقی',
'examples.scenarioEducation': 'آموزش',
'examples.scenarioPersonal': 'شخصی',
'examples.emptyNoSkills': 'هیچ مهارتی موجود نیست. آیا daemon در حال اجرا است؟',
'examples.searchPlaceholder': 'جستجوی نمونه‌ها…',
'examples.searchAria': 'جستجوی نمونه‌ها بر اساس نام',
'examples.emptyNoMatch': 'هیچ نمونه‌ای با این فیلترها مطابقت ندارد.',
'examples.openPreview': '⤢ باز کردن پیش‌نمایش',
'examples.loadingPreview': 'در حال بارگذاری پیش‌نمایش…',
'examples.hoverPreview': 'برای پیش‌نمایش هاور کنید',
'examples.usePrompt': 'استفاده از این پرامپت',
'examples.previewModalTitle': 'باز کردن پیش‌نمایش کامل (modal)',
'examples.shareTitle': 'اشتراک‌گذاری این نمونه',
'examples.shareLoadFirst': 'ابتدا برای بارگذاری پیش‌نمایش هاور کنید',
'examples.shareMenu': 'اشتراک‌گذاری ▾',
'examples.exportPdfAllSlides': 'صادرکردن به PDF (همه اسلایدها)',
'examples.exportPptxLocked': 'صادرکردن به PPTX… (ابتدا قالب را باز کنید)',
'examples.tagSlideDeck': 'ارائه اسلاید',
'examples.tagTemplate': 'قالب',
'examples.tagDesignSystem': 'سیستم طراحی',
'examples.tagMobilePrototype': 'نمونه اولیه موبایل',
'examples.tagDesktopPrototype': 'نمونه اولیه دسکتاپ',
'examples.tagImage': 'تصویر',
'examples.tagVideo': 'ویدئو',
'examples.tagAudio': 'صدا',
'examples.previewLabel': 'پیش‌نمایش',
'ds.surfaceLabel': 'سطح',
'ds.surfaceWeb': 'وب',
'ds.surfaceImage': 'تصویر',
'ds.surfaceVideo': 'ویدئو',
'ds.surfaceAudio': 'صدا',
'ds.searchPlaceholder': 'جستجوی سیستم‌های طراحی…',
'ds.emptyNoMatch': 'هیچ سیستم طراحی با جستجوی شما مطابقت ندارد.',
'ds.badgeDefault': 'پیش‌فرض',
'ds.preview': 'پیش‌نمایش',
'ds.previewTitle': 'پیش‌نمایش سیستم طراحی',
'ds.categoryAll': 'همه',
'ds.categoryUncategorized': 'دسته‌بندی نشده',
'ds.showcase': 'ویترین',
'ds.tokens': 'توکن‌ها',
'ds.specToggle': 'DESIGN.md',
'ds.specLoading': 'بارگذاری DESIGN.md…',
'avatar.title': 'حساب و تنظیمات',
'avatar.localCli': 'CLI محلی',
'avatar.anthropicApi': 'Anthropic API',
'avatar.useLocal': 'استفاده از CLI محلی',
'avatar.useApi': 'استفاده از API · BYOK',
'avatar.codeAgent': 'عامل کد',
'avatar.rescan': 'اسکن مجدد PATH',
'avatar.settings': 'تنظیمات',
'avatar.backToProjects': 'بازگشت به پروژه‌ها',
'avatar.metaActive': 'فعال',
'avatar.metaOffline': 'آفلاین',
'avatar.metaSelected': 'انتخاب شده',
'avatar.noAgentSelected': 'هیچ عاملی انتخاب نشده',
'avatar.modelSection': 'مدل',
'avatar.modelLabel': 'مدل',
'avatar.reasoningLabel': 'استدلال',
'avatar.customSuffix': '(سفارشی)',
'project.backToProjects': 'بازگشت به پروژه‌ها',
'project.metaFreeform': 'آزاد',
'project.resizeChatPanel': 'تغییر اندازه پنل چت',
'chat.tabChat': 'چت',
'chat.tabComments': 'نظرات',
'chat.commentsSoon': 'نظرات — به زودی',
'chat.comments.attached': 'Attached to chat',
'chat.comments.emptyAttached': 'No comments attached.',
'chat.comments.saved': 'Saved comments',
'chat.comments.emptySaved': 'No saved comments.',
'chat.comments.add': 'Add',
'chat.comments.addAll': 'Add all',
'chat.comments.remove': 'Remove',
'chat.comments.placeholder': 'Comment on this element…',
'chat.comments.addSend': 'Add & send',
'chat.comments.updateSend': 'Update & send',
'chat.comments.removeAttachment': 'Remove comment attachment',
'chat.comments.removeAttachmentAria': 'Remove comment attachment for {name}',
'chat.conversationsTitle': 'مکالمات',
'chat.conversationsAria': 'تاریخچه مکالمات',
'chat.newConversation': 'مکالمه جدید',
'chat.newConversationsTitle': 'مکالمه جدید',
'chat.conversationsHeading': 'مکالمات',
'chat.new': 'جدید',
'chat.emptyConversations': 'هنوز هیچ مکالمه‌ای وجود ندارد.',
'chat.deleteConversation': 'حذف مکالمه',
'chat.deleteConversationConfirm':
'آیا «{title}» حذف شود؟ این کار پیام‌های آن را حذف می‌کند.',
'chat.untitledConversation': 'مکالمه بدون عنوان',
'chat.startTitle': 'یک مکالمه شروع کنید',
'chat.startHint':
'تصاویر را برای مرجع بصری رها کنید یا بچسبانید، یا @ را تایپ کنید تا یک فایل از این پروژه را ضمیمه کنید. یا یکی از این شروع‌کننده‌ها را امتحان کنید:',
'chat.fillInputTitle': 'برای پر کردن ورودی کلیک کنید',
'chat.jumpToLatest': 'رفتن به آخرین',
'chat.scrollToLatest': 'اسکرول به آخرین',
'chat.you': 'شما',
'chat.openFile': 'باز کردن {name}',
'chat.composerPlaceholder':
'طرح مورد نظر خود را توصیف کنید — تصاویر را بچسبانید یا رها کنید، یا @ برای مرجع فایل…',
'chat.composerHint':
'⌘/Ctrl + Enter برای ارسال · چسباندن تصاویر · @ برای مرجع فایل‌ها',
'chat.cliSettingsTitle': 'تنظیمات CLI و مدل',
'chat.cliSettingsAria': 'باز کردن تنظیمات CLI و مدل',
'chat.attachTitle': 'ضمیمه کردن فایل‌ها (یا چسباندن / رها کردن)',
'chat.attachAria': 'ضمیمه کردن فایل‌ها',
'chat.importTitle': 'وارد کردن منابع (به زودی)',
'chat.importLabel': 'وارد کردن',
'chat.importComingSoon': 'به زودی',
'chat.importSoon': 'به زودی',
'chat.importFig': 'آپلود فایل .fig',
'chat.importGitHub': 'اتصال به GitHub',
'chat.importWeb': 'گرفتن عنصر وب',
'chat.importFolder': 'لینک کردن پوشه کد',
'chat.importSkills': 'مهارت‌ها و سیستم‌های طراحی',
'chat.importProject': 'Reference another project',
'chat.linkedFolderRemoveAria': 'حذف پوشه لینک شده {path}',
'chat.linkedFolderNotFound': 'پوشه وجود ندارد',
'chat.linkedFolderAlready': 'این پوشه قبلاً لینک شده است',
'chat.linkedFolderPickError': 'انتخابگر پوشه باز نشد',
'chat.send': 'ارسال',
'chat.stop': 'توقف',
'chat.removeAria': 'حذف {name}',
'chat.example1Title': 'ارائه سردبیری',
'chat.example1Tag': 'مجله',
'chat.example1Prompt':
'یک ارائه سردبیری ۱۰ اسلایدی برای یک استودیو طراحی که در حال جمع‌آوری یک دور سرمایه‌گذاری اولیه است — چیدمان شبکه سوئیسی، عناوین سریف بزرگ با حروف تزئینی پررنگ، شماره‌های بخش با فونت monospace، فضای منفی سخاوتمندانه، و اسلایدهای تمام خون عکس که با اسلایدهای متن‌محور در هم تنیده شده‌اند. جلد، چشم‌انداز، بازار، محصول، کشش، تیم، درخواست، تماس.',
'chat.example2Title': 'داشبورد تحلیل SaaS',
'chat.example2Tag': 'داده',
'chat.example2Prompt':
'یک داشبورد تحلیل متراکم برای یک SaaS ابزار توسعه‌دهنده — نوار KPI با دلتاهای هفته به هفته، دو نمودار خط انباشته (MRR و فضاهای کاری فعال)، یک نقشه حرارتی جهانی از استفاده، یک شبکه ماندگاری کوهورت، یک جدول رهبری برترین مشتریان، و یک فید رویداد بلادرنگ. تم تاریک، اعداد جدولی monospace، تأکیدات sparkline.',
'chat.example3Title': 'گزارش سالانه اسکرول بلند',
'chat.example3Tag': 'سردبیری',
'chat.example3Prompt':
'یک گزارش سالانه تعاملی برای یک سازمان غیرانتفاعی آب و هوایی — چیدمان سردبیری اسکرول بلند که بلوک‌های نقل قول بزرگ، تصویرسازی‌های داده، عکاسی، دیوار اهداکنندگان و یک فراخوان به عمل نهایی را ترکیب می‌کند.',
'preview.shareMenu': 'اشتراک‌گذاری ▾',
'preview.openInNewTab': 'باز کردن در تب جدید',
'preview.exit': '⤓ خروج',
'preview.fullscreen': '⤢ تمام صفحه',
'preview.closeTitle': 'بستن (Esc)',
'preview.loading': 'در حال بارگذاری {label}…',
'preview.showSidebar': 'نمایش {label}',
'preview.hideSidebar': 'پنهان کردن {label}',
'misc.savedTemplate': 'قالب ذخیره شده',
'misc.primary': 'اصلی',
'misc.designSystem': 'سیستم طراحی',
'workspace.designFiles': 'فایل‌های طراحی',
'workspace.focusMode': 'Focus workspace',
'workspace.showChat': 'Show chat',
'workspace.closeTab': 'بستن تب',
'workspace.deleteFileConfirm': 'آیا «{name}» از پوشه پروژه حذف شود؟',
'workspace.openFromDesignFiles': 'باز کردن یک فایل از',
'workspace.designFilesLink': 'فایل‌های طراحی',
'workspace.loadingSketch': 'در حال بارگذاری طرح…',
'designFiles.title': 'فایل‌های طراحی',
'designFiles.upload': 'آپلود فایل‌ها',
'designFiles.pasteText': 'چسباندن به عنوان فایل متنی',
'designFiles.newSketch': 'طرح جدید',
'designFiles.empty':
'هنوز هیچ چیزی اینجا نیست. فایل‌ها را رها کنید، یا یک طرح ایجاد کنید / متن بچسبانید.',
'designFiles.refresh': 'بازنشانی',
'designFiles.delete': 'حذف',
'designFiles.searchPlaceholder': 'جستجوی فایل‌ها…',
'designFiles.up': 'بالا',
'designFiles.back': 'بازگشت',
'designFiles.crumbs': 'پروژه',
'designFiles.rowMenu': 'منوی ردیف',
'designFiles.openInTab': 'باز کردن در تب',
'designFiles.download': 'دانلود',
'designFiles.downloadSelected': 'Download {n} as ZIP',
'designFiles.clearSelection': 'Clear',
'designFiles.selectAll': 'Select all',
'designFiles.dropTitle': '⤓ فایل‌ها را اینجا رها کنید',
'designFiles.dropDesc':
'تصاویر، اسناد، مراجع یا پوشه‌ها — عامل از آن‌ها به عنوان زمینه استفاده خواهد کرد.',
'designFiles.upload.title': 'آپلود فایل‌ها',
'designFiles.paste.title': 'چسباندن متن به عنوان فایل',
'designFiles.upload.label': 'آپلود',
'designFiles.paste.label': 'چسباندن',
'designFiles.previewOpen': 'باز کردن',
'designFiles.previewClose': 'بستن پیش‌نمایش',
'designFiles.modified': 'ویرایش شده {time} · {size}',
'designFiles.weeksAgo': '{n} هفته پیش',
'designFiles.sectionPages': 'صفحات',
'designFiles.sectionScripts': 'اسکریپت‌ها',
'designFiles.sectionImages': 'تصاویر',
'designFiles.sectionSketches': 'طرح‌ها',
'designFiles.sectionLiveArtifacts': 'مصنوعات زنده',
'designFiles.sectionOther': 'سایر',
'designFiles.showMore': '+{n} بیشتر',
'designFiles.kindHtml': 'صفحه HTML',
'designFiles.kindImage': 'تصویر',
'designFiles.kindSketch': 'طرح',
'designFiles.kindText': 'متن',
'designFiles.kindCode': 'اسکریپت',
'designFiles.kindPdf': 'PDF',
'designFiles.kindDocument': 'سند',
'designFiles.kindPresentation': 'ارائه',
'designFiles.kindSpreadsheet': 'صفحه گسترده',
'designFiles.kindLiveArtifact': 'مصنوع زنده',
'designFiles.kindBinary': 'باینری',
'quickSwitcher.placeholder': 'باز کردن فایل…',
'quickSwitcher.empty': 'هیچ فایلی در این پروژه نیست',
'quickSwitcher.noMatches': 'بدون نتیجه',
'quickSwitcher.navigate': 'حرکت',
'quickSwitcher.open': 'باز کردن',
'quickSwitcher.close': 'بستن',
'pasteDialog.title': 'چسباندن متن',
'pasteDialog.hint': 'در پوشه پروژه ذخیره می‌شود. هر نامی انتخاب کنید.',
'pasteDialog.fileNameLabel': 'نام فایل',
'pasteDialog.namePlaceholder': 'notes.txt',
'pasteDialog.contentLabel': 'محتوا',
'pasteDialog.contentPlaceholder': 'هر چیزی را بچسبانید…',
'pasteDialog.save': 'ذخیره',
'pasteDialog.cancel': 'لغو',
'sketch.save': 'ذخیره طرح',
'sketch.cancel': 'لغو',
'sketch.saving': 'در حال ذخیره…',
'sketch.tooltipDirty': 'تغییرات ذخیره نشده',
'sketch.tooltipClean': 'ذخیره شد',
'fileViewer.empty': 'یک فایل را برای مشاهده انتخاب کنید.',
'fileViewer.loading': 'در حال بارگذاری…',
'fileViewer.exportPptx': 'صادرکردن به PPTX',
'fileViewer.openInNewTab': 'باز کردن در تب جدید',
'fileViewer.copyPath': 'کپی مسیر',
'fileViewer.copied': 'کپی شد!',
'fileViewer.share': 'اشتراک‌گذاری',
'fileViewer.binaryMeta': 'باینری · {size}',
'fileViewer.binaryNote':
'فایل باینری ({size} بایت). برای بررسی دانلود یا از دیسک باز کنید.',
'fileViewer.markdownStreamingMeta': 'پیش‌نمایش در حال استریم…',
'fileViewer.markdownErrorMeta': 'پیش‌نمایش ممکن است ناقص باشد (خطای تولید).',
'fileViewer.markdownStreamingStatus': 'در حال استریم… Markdown ناقص نمایش داده می‌شود.',
'fileViewer.markdownErrorStatus': 'خطای تولید. آخرین محتوای در دسترس نمایش داده می‌شود.',
'fileViewer.pdfMeta': 'PDF · {size}',
'fileViewer.documentMeta': 'سند',
'fileViewer.presentationMeta': 'ارائه',
'fileViewer.spreadsheetMeta': 'صفحه گسترده',
'fileViewer.previewUnavailable': 'پیش‌نمایش در دسترس نیست. برای بررسی فایل را دانلود یا باز کنید.',
'fileViewer.download': 'دانلود',
'fileViewer.open': 'باز کردن',
'fileViewer.imageMeta': 'تصویر · {size}',
'fileViewer.reactMeta': 'مؤلفه React · {size}',
'fileViewer.sketchMeta': 'طرح · {size}',
'fileViewer.videoMeta': 'ویدئو · {size}',
'fileViewer.audioMeta': 'صدا · {size}',
'fileViewer.reload': 'بارگذاری مجدد',
'fileViewer.reloadDisk': 'بارگذاری مجدد از دیسک',
'fileViewer.copy': 'کپی',
'fileViewer.copyTitle': 'کپی محتوای فایل',
'fileViewer.saveDisabled': 'ذخیره (نمایشگر فقط خواندنی)',
'fileViewer.save': 'ذخیره',
'fileViewer.preview': 'پیش‌نمایش',
'fileViewer.source': 'منبع',
'fileViewer.tweaks': 'تنظیمات جزئی',
'fileViewer.comment': 'نظر',
'fileViewer.edit': 'ویرایش',
'fileViewer.draw': 'رسم',
'manualEdit.layers': "Layers",
'manualEdit.editableCount': "{count} editable",
'manualEdit.title': "Manual editor",
'manualEdit.selectLayer': "Select a layer",
'manualEdit.empty': "Click an element in the preview or choose a layer.",
'manualEdit.noClass': "no class",
'manualEdit.tabsAria': "Manual edit tabs",
'manualEdit.tabContent': "Content",
'manualEdit.tabStyle': "Style",
'manualEdit.tabAttributes': "Attributes",
'manualEdit.tabHtml': "Html",
'manualEdit.tabSource': "Source",
'manualEdit.attributesJson': "Attributes JSON",
'manualEdit.selectedHtml': "Selected element HTML",
'manualEdit.fullSource': "Full artifact source",
'manualEdit.applyContent': "Apply Content",
'manualEdit.applyStyle': "Apply Style",
'manualEdit.applyAttributes': "Apply Attributes",
'manualEdit.applyHtml': "Apply HTML",
'manualEdit.applySource': "Apply Source",
'manualEdit.invalidAttributes': "Invalid attributes JSON.",
'manualEdit.changes': "Changes",
'manualEdit.undo': "Undo",
'manualEdit.redo': "Redo",
'manualEdit.noChanges': "No manual edits yet.",
'manualEdit.imageUrl': "Image URL",
'manualEdit.altText': "Alt text",
'manualEdit.label': "Label",
'manualEdit.text': "Text",
'manualEdit.href': "Href",
'manualEdit.textColor': "Text color",
'manualEdit.background': "Background",
'manualEdit.fontSize': "Font size",
'manualEdit.weight': "Weight",
'manualEdit.align': "Align",
'manualEdit.padding': "Padding",
'manualEdit.margin': "Margin",
'manualEdit.radius': "Radius",
'manualEdit.border': "Border",
'manualEdit.width': "Width",
'manualEdit.minHeight': "Min height",
'fileViewer.zoomOut': 'کوچک‌نمایی',
'fileViewer.zoomIn': 'بزرگ‌نمایی',
'fileViewer.resetZoom': 'بازنشانی زوم',
'fileViewer.reloadAria': 'بارگذاری مجدد',
'fileViewer.previousSlide': 'اسلاید قبلی',
'fileViewer.nextSlide': 'اسلاید بعدی',
'fileViewer.slideNavAria': 'پیمایش اسلاید',
'fileViewer.present': 'ارائه',
'fileViewer.presentInTab': 'در این تب',
'fileViewer.presentFullscreen': 'تمام صفحه',
'fileViewer.presentNewTab': 'تب جدید',
'fileViewer.exitPresentation': 'خروج از ارائه',
'fileViewer.shareLabel': 'اشتراک‌گذاری',
'fileViewer.exportPdf': 'صادرکردن به PDF',
'fileViewer.exportPdfAllSlides': 'صادرکردن به PDF (همه اسلایدها)',
'fileViewer.exportPptxBusy': 'منتظر پایان نوبت فعلی باشید.',
'fileViewer.exportPptxHint':
'یک درخواست به عامل برای تبدیل این طرح به PPTX ارسال کنید.',
'fileViewer.exportPptxNa': 'صادرکردن PPTX اینجا در دسترس نیست.',
'fileViewer.exportZip': 'دانلود به صورت .zip',
'fileViewer.exportHtml': 'صادرکردن به HTML مستقل',
'fileViewer.exportMd': 'صادرکردن به صورت Markdown',
'fileViewer.exportJsx': 'صادرکردن به JSX',
'fileViewer.exportReactHtml': 'صادرکردن پیش‌نمایش به HTML',
'fileViewer.saveAsTemplate': 'ذخیره به عنوان قالب…',
'fileViewer.savingTemplate': 'در حال ذخیره قالب…',
'fileViewer.savedTemplate': 'به عنوان «{name}» ذخیره شد',
'fileViewer.savedTemplateFail': 'ذخیره قالب ناموفق بود — دوباره امتحان کنید.',
'fileViewer.templateNamePrompt': 'نام قالب',
'fileViewer.templateNameDefault': 'قالب بدون عنوان',
'fileViewer.templateDescPrompt':
'توضیح کوتاه (اختیاری — چه چیزی این قالب را مفید می‌کند؟)',
'liveArtifact.refresh.button': 'بازخوانی',
'liveArtifact.refresh.buttonTitle': 'این مصنوع زنده را بازخوانی کن',
'liveArtifact.refresh.loadingTitle': 'در حال بارگذاری مصنوع زنده…',
'liveArtifact.refresh.noSourceTitle': 'هنوز هیچ منبع بازخوانی فقط‌خواندنیِ تأییدشده‌ای موجود نیست.',
'liveArtifact.refresh.running': 'در حال بازخوانی…',
'liveArtifact.refresh.runningMessage': 'در حال بازخوانی داده‌ها و پیش‌نمایش. این کار ممکن است کمی طول بکشد.',
'liveArtifact.refresh.runningAction': 'پیش‌نمایش قبلی تا موفق شدن بازخوانی قابل مشاهده می‌ماند.',
'liveArtifact.refresh.successOne': 'بازخوانی کامل شد. داده‌ها به‌روزرسانی شدند.',
'liveArtifact.refresh.successMany': 'بازخوانی کامل شد. داده‌ها به‌روزرسانی شدند.',
'liveArtifact.refresh.successAction': 'پیش‌نمایش با جدیدترین داده‌های ثبت‌شده دوباره بارگذاری شد.',
'liveArtifact.refresh.previousFailure': 'بازخوانی قبلی ناموفق بود: {message}',
'liveArtifact.refresh.failureAction': 'تاریخچه بازخوانی را بررسی کنید، مشکل منبع یا مجوز را رفع کنید، سپس دوباره تلاش کنید.',
'liveArtifact.refresh.networkFailure': 'درخواست بازخوانی ناموفق بود. اتصال خود را بررسی کنید و دوباره تلاش کنید.',
'liveArtifact.refresh.genericFailure': 'بازخوانی ناموفق بود.',
'liveArtifact.refresh.statusNever': 'قابل بازخوانی نیست',
'liveArtifact.refresh.statusReady': 'آماده بازخوانی',
'liveArtifact.refresh.statusSucceeded': 'به‌روز است',
'liveArtifact.refresh.statusFailed': 'بازخوانی ناموفق بود',
'questionForm.submit': 'ارسال',
'questionForm.skip': 'رد کردن',
'questionForm.locked': 'پاسخ داده شده',
'conv.switch': 'تغییر مکالمه',
'conv.label': 'مکالمه',
'conv.heading': 'مکالمات',
'conv.new': '+ جدید',
'conv.empty': 'هنوز هیچ مکالمه‌ای وجود ندارد.',
'conv.untitled': 'مکالمه بدون عنوان',
'conv.renameTooltip': 'برای تغییر نام دوبار کلیک کنید',
'conv.delete': 'حذف مکالمه',
'conv.deleteConfirm': 'آیا «{title}» حذف شود؟ این کار پیام‌های آن را حذف می‌کند.',
'agentPicker.label': 'عامل',
'agentPicker.modeChoose': 'انتخاب حالت اجرا',
'agentPicker.localCli': 'CLI محلی',
'agentPicker.daemonOff': 'daemon خاموش',
'agentPicker.byok': 'API · BYOK',
'agentPicker.selectAgent': 'انتخاب یک CLI عامل کد شناسایی شده',
'agentPicker.noAgents': 'هیچ عاملی در PATH وجود ندارد',
'agentPicker.notInstalled': 'نصب نشده',
'agentPicker.rescan': 'اسکن مجدد PATH محلی برای عامل‌ها',
'tool.openInTab': 'باز کردن {name} در یک تب',
'tool.open': 'باز کردن',
'tool.todos': 'وظایف',
'tool.write': 'نوشتن',
'tool.edit': 'ویرایش',
'tool.read': 'خواندن',
'tool.bash': 'Bash',
'tool.glob': 'Glob',
'tool.grep': 'Grep',
'tool.fetch': 'دریافت',
'tool.search': 'جستجو',
'tool.lines': '{n} خط',
'tool.changeSingular': 'تغییر',
'tool.changePlural': 'تغییرات',
'tool.in': 'در {path}',
'tool.hide': 'پنهان',
'tool.output': 'خروجی',
'tool.running': 'در حال اجرا…',
'tool.error': 'خطا',
'tool.done': 'انجام شد',
'assistant.role': 'دستیار',
'assistant.workingLabel': 'در حال کار',
'assistant.doneLabel': 'انجام شد',
'assistant.unfinishedLabel': 'با کار ناتمام متوقف شد',
'assistant.unfinishedSummary': '{n} وظیفه باقی مانده',
'assistant.unfinishedMore': '+{n} بیشتر',
'assistant.continueRemaining': 'ادامه وظایف باقی مانده',
'assistant.outTokens': '{n} خروجی',
'assistant.producedFiles': 'فایل‌های این نوبت',
'assistant.openFile': 'باز کردن',
'assistant.downloadFile': 'دانلود',
'assistant.thinking': 'در حال فکر کردن',
'assistant.systemReminder': 'یادآور سیستم',
'assistant.waitingFirstOutput': 'در انتظار اولین خروجی',
'assistant.statusBootingAgent': 'راه‌اندازی عامل',
'assistant.statusStarting': 'در حال شروع',
'assistant.statusRequesting': 'در حال ارسال درخواست',
'assistant.statusThinking': 'در حال فکر کردن',
'assistant.statusStreaming': 'در حال استریم',
'assistant.slowHint':
'بیشتر از حد معمول طول می‌کشد. فرم معمولاً در ۵ تا ۱۰ ثانیه نمایش داده می‌شود — می‌توانید متوقف کنید و عبارت را تغییر دهید.',
'assistant.verbEditing': 'در حال ویرایش',
'assistant.verbWriting': 'در حال نوشتن',
'assistant.verbReading': 'در حال خواندن',
'assistant.verbSearching': 'در حال جستجو',
'assistant.verbRunning': 'در حال اجرا',
'assistant.verbTodos': 'وظایف',
'assistant.verbFetching': 'در حال دریافت',
'assistant.verbCalling': 'در حال فراخوانی',
'qf.answered': 'پاسخ داده شده',
'qf.choose': 'انتخاب کنید…',
'qf.required': 'الزامی',
'qf.lockedSubmitted':
'پاسخ‌ها ارسال شدند — عامل از این‌ها برای بقیه جلسه استفاده می‌کند.',
'qf.lockedPrev': 'این فرم از یک نوبت قبلی است.',
'qf.hint':
'آنچه را که مناسب است انتخاب کنید. فیلدهای اختیاری که برایتان مهم نیست را رد کنید — عامل از پیش‌فرض‌های معقول استفاده خواهد کرد.',
'qf.submitDefault': 'ارسال پاسخ‌ها',
'qf.submitDisabledTitle': 'ابتدا فیلدهای الزامی را پر کنید',
'qf.submitTitle': 'ارسال پاسخ‌ها',
'qf.cardSelected': 'انتخاب شده',
'qf.cardRefs': 'مراجع:',
'qf.cardSampleText': 'روباه قهوه‌ای سریع · ۰۱۲۳',
'fileViewer.deployToVercel': 'Deploy to Vercel',
'fileViewer.redeployToVercel': 'Redeploy',
'fileViewer.deployingToVercel': 'Deploying to Vercel…',
'fileViewer.preparingPublicLink': 'Preparing public link…',
'fileViewer.copyDeployLink': 'Copy link',
'fileViewer.deployModalTitle': 'Deploy to Vercel',
'fileViewer.deployModalSubtitle':
'Deploy this HTML artifact as a Vercel Preview using your own account.',
'fileViewer.vercelToken': 'Vercel token',
'fileViewer.vercelTokenGetLink': 'Get Vercel token',
'fileViewer.vercelTokenPlaceholder': 'Paste your Vercel token',
'fileViewer.vercelTokenReuseHint':
'Saved token will be used. Enter a new token to replace it.',
'fileViewer.vercelTokenRequired': 'Enter and save a Vercel token first.',
'fileViewer.vercelTeamId': 'Team ID',
'fileViewer.vercelTeamSlug': 'Team slug',
'fileViewer.optional': 'Optional',
'fileViewer.vercelPreviewOnly': 'Deploys are Preview-only for now.',
'fileViewer.savingConfig': 'Saving…',
'fileViewer.deployConfigSaveFailed': 'Could not save Vercel settings.',
'fileViewer.deployFailed': 'Deploy failed. Check Vercel settings and try again.',
'fileViewer.deployResultLabel': 'Deployed URL',
'fileViewer.deployLinkPreparingLabel': 'Public link pending',
'fileViewer.deployLinkDelayed':
'Your site is deployed. Vercel is still preparing the public link.',
'fileViewer.deployLinkProtectedLabel': 'Vercel protection enabled',
'fileViewer.deployLinkProtected':
'Your site deployed, but Vercel is requiring authentication for this preview link. Disable Deployment Protection or use a custom domain.',
'fileViewer.retryLink': 'Retry now',
'sketch.toolSelect': 'انتخاب (غیرفعال)',
'sketch.toolPen': 'قلم',
'sketch.toolText': 'متن',
'sketch.toolRect': 'مستطیل',
'sketch.toolArrow': 'فلش',
'sketch.toolEraser': 'پاک‌کن',
'sketch.color': 'رنگ',
'sketch.strokeSize': 'اندازه خط',
'sketch.undo': 'واگرد',
'sketch.clear': 'پاک کردن',
'sketch.close': 'بستن',
'sketch.textPrompt': 'متن:',
'pet.title': 'حیوان خانگی',
'pet.tabBuiltIn': 'پیش‌فرض',
'pet.tabBuiltInHint': 'همراهان منتخب همراه Open Design — یکی را انتخاب و فرزندخوانده کن.',
'pet.builtInEmpty': 'حیوانات داخلی در حال حاضر در دسترس نیستند. وقتی دیمن دوباره فعال شد، تب جامعه را تازه کن.',
'pet.tabCustom': 'سفارشی',
'pet.tabCustomHint': 'نام، نشان، رنگ یا اسپرایت دلخواه خودت را تنظیم کن.',
'pet.tabCommunity': 'انجمن',
'pet.tabCommunityHint': 'حیوانات تولید‌شدهٔ Codex — یکی را پذیرش کن یا با هوش مصنوعی بساز.',
'pet.tabsAria': 'منبع حیوان خانگی',
'pet.subtitle': 'یک همراه کوچک را به فرزندخواندگی بپذیرید که روی فضای کاری شما شناور می‌ماند.',
'pet.navTitle': 'حیوان خانگی',
'pet.navHint': 'فرزندخواندگی یا سفارشی‌سازی',
'pet.adopt': 'فرزندخواندگی',
'pet.adoptedBadge': 'فرزندخوانده',
'pet.adoptCallout': 'یک حیوان خانگی بپذیرید',
'pet.changePet': 'تغییر حیوان خانگی',
'pet.wake': 'بیدار کردن',
'pet.tuck': 'پنهان کردن',
'pet.wakeTitle': 'بیدار کردن حیوان خانگی — نمایش لایه شناور.',
'pet.tuckTitle': 'پنهان کردن حیوان خانگی — مخفی کردن لایه شناور.',
'pet.settingsTitle': 'باز کردن تنظیمات حیوان خانگی',
'pet.useCustom': 'استفاده از حیوان خانگی من',
'pet.customTitle': 'خودتان بسازید',
'pet.customHint': 'یک نام، نماد و رنگ تأکید انتخاب کنید — لایه به‌طور زنده به‌روزرسانی می‌شود.',
'pet.customGreetingPlaceholder': 'سلامی از طرف حیوان خانگی شما…',
'pet.fieldName': 'نام',
'pet.fieldGlyph': 'نماد',
'pet.fieldGlyphHint': 'یک ایموجی بهترین کارایی را دارد (مثلاً 🐝، 🦄، 🐢).',
'pet.fieldGreeting': 'پیام خوش‌آمد',
'pet.fieldAccent': 'رنگ تأکید',
'pet.fieldAccentCustom': 'رنگ سفارشی',
'pet.overlayAria': 'همراه حیوان خانگی',
'pet.spriteAria': '{name} — برای جابجایی بکشید، برای گفت‌وگو کلیک کنید',
'pet.spriteTitle': 'سلام از طرف {name}! برای گفت‌وگو کلیک کنید.',
'pet.railAria': 'انتخابگر حیوان خانگی',
'pet.railTitle': 'حیوانات خانگی',
'pet.railHint': 'یک همراه انتخاب کنید تا روی فضای کاری شما شناور شود.',
'pet.railExpand': 'نمایش انتخابگر',
'pet.railCollapse': 'جمع‌کردن انتخابگر',
'pet.railHide': 'مخفی کردن انتخابگر حیوانات',
'pet.railShow': 'نمایش انتخابگر حیوانات',
'pet.railCustomFlavor': 'مال شما — نام، نماد و رنگ.',
'pet.railCustomize': 'سفارشی‌سازی…',
'pet.composerTitle': 'حیوانات خانگی — بیدار کردن، پنهان یا انتخاب',
'pet.composerMenuTitle': 'حیوانات خانگی',
'pet.composerMenuHint': 'نکته: /pet را تایپ کنید تا تغییر دهید',
'pet.composerOpenSettings': 'سفارشی‌سازی در تنظیمات',
'pet.welcomeTeaserTitle': 'یک حیوان خانگی بپذیرید',
'pet.welcomeTeaserBody': 'یک همراه کوچک که بالای فضای کاری شما شناور می‌شود.',
'pet.welcomeTeaserCta': 'یکی انتخاب کنید',
'pet.imageUpload': 'بارگذاری اسپرایت',
'pet.imageReplace': 'جایگزینی اسپرایت',
'pet.imageRemove': 'استفاده از ایموجی',
'pet.imageHintIdle': 'PNG، JPG، WebP، GIF یا SVG. اسپرایت‌شیت؟ یک نوار افقی بارگذاری کنید و تعداد فریم را تنظیم کنید.',
'pet.imageHintActive': 'اسپرایت شما نمایش داده می‌شود. فریم را > ۱ تنظیم کنید تا یک اسپرایت‌شیت افقی متحرک شود.',
'pet.fieldFrames': 'فریم‌ها',
'pet.fieldFramesHint': '۱ = ثابت. > ۱ = اسپرایت‌شیت افقی.',
'pet.fieldFps': 'سرعت (fps)',
'pet.fieldFpsHint': 'سرعت چرخش فریم‌ها.',
'pet.atlasImport': 'وارد کردن اسپرایت Codex',
'pet.atlasImportTitle': 'یک اطلس hatch-pet با ابعاد 8x9 / 192x208 (PNG یا WebP) وارد کنید.',
'pet.atlasPickerTitle': 'یک ردیف انیمیشن انتخاب کنید',
'pet.atlasPickerHint': 'پت‌های Codex با ۹ ردیف انیمیشن می‌آیند. به‌طور پیش‌فرض کل اطلس را نگه می‌داریم تا پت با هاور، جهت کشیدن و بیکاری طولانی ردیف عوض کند. می‌توانی به یک حلقهٔ ثابت هم محدودش کنی.',
'pet.atlasCancel': 'حذف اطلس',
'pet.atlasAdopt': 'قفل روی این ردیف',
'pet.atlasAdoptFull': 'استفاده از کل اطلس (متحرک)',
'pet.atlasAdoptFullTitle': 'همهٔ ردیف‌ها را نگه دار تا پت به هاور، جهت کشیدن و بیکاری طولانی واکنش بدهد.',
'pet.atlasAdoptRowTitle': 'فقط ردیف برجسته‌شده را به نوار حلقه‌ای تک‌ردیفی تبدیل کن.',
'pet.atlasActiveHint': 'اطلس متحرک فعال است — پت بر اساس تعامل تو (هاور، کشیدن، بیکاری) ردیف را عوض می‌کند.',
'pet.atlasRow.idle': 'بی‌حرکت',
'pet.atlasRow.running-right': 'دویدن به راست',
'pet.atlasRow.running-left': 'دویدن به چپ',
'pet.atlasRow.waving': 'تکان دادن دست',
'pet.atlasRow.jumping': 'پرش',
'pet.atlasRow.failed': 'شکست',
'pet.atlasRow.waiting': 'انتظار',
'pet.atlasRow.running': 'دویدن',
'pet.atlasRow.review': 'بررسی',
'pet.hatchTitle': 'یک پت جدید با هوش مصنوعی پرورش بده',
'pet.hatchHint': 'از مهارت hatch-pet داخل چت برای ساخت اسپرایت‌شیت سبک Codex استفاده کنید و سپس اینجا وارد کنید.',
'pet.hatchConcept': 'مفهوم پت (اختیاری)',
'pet.hatchConceptPlaceholder': 'مثلاً: یک شیبا اینوی پیکسلی با ژاکتی نرم',
'pet.hatchCopy': 'کپی پرامپت',
'pet.hatchCopied': 'کپی شد!',
'pet.hatchFoot': 'پس از اینکه مهارت پت شما را ذخیره کرد، اینجا برگردید و «وارد کردن اسپرایت Codex» را بزنید.',
'pet.slashPopoverAria': 'دستورهای اسلش',
'pet.slashPopoverTitle': 'دستورها',
'pet.slashPopoverHint': '↑↓ پیمایش · enter انتخاب · esc بستن',
'pet.slashPet': 'پت را روشن/خاموش کنید، انتخاب کنید یا تنظیمات را باز کنید.',
'pet.slashPetWake': 'پت شناور را بیدار کنید.',
'pet.slashPetTuck': 'پت را فعلاً جمع کنید.',
'pet.slashHatch': 'با مهارت hatch-pet یک پت Codex بسازید.',
'pet.slashHatchArg': '<مفهوم>',
'pet.codexTitle': 'تازه‌متولدها',
'pet.codexSubtitle': 'پت‌هایی که مهارت hatch-pet بسته‌بندی کرده اینجا ظاهر می‌شوند تا با یک کلیک پذیرفته شوند.',
'pet.codexSubtitleWithDir': 'در حال اسکن {dir} برای بسته‌های hatch-pet.',
'pet.codexEmpty': 'هنوز پتی متولد نشده. در چت /hatch بنویسید تا یکی بسازد.',
'pet.codexLoading': 'در حال جستجوی پت‌های متولدشده…',
'pet.codexRefresh': 'بازخوانی',
'pet.codexAdopt': 'پذیرش',
'pet.codexAdopting': 'در حال پذیرش…',
'pet.communitySync': 'دانلود حیوانات اجتماعی',
'pet.communitySyncing': 'در حال دانلود…',
'pet.communitySyncTitle': 'همگام‌سازی جدیدترین حیوانات از Codex Pet Share + j20 Hatchery در ~/.codex/pets/.',
'pet.communitySyncDone': '{wrote} حیوان جدید همگام شد (مجموع {total}).',
'pet.communitySyncFailed': 'خطا در همگام‌سازی: {error}',
'pet.codexBundled': 'همراه',
'pet.codexBundledTitle': 'همراه Open Design ارائه می‌شود — نیازی به دانلود نیست.',
'settings.notifications': 'اعلان‌ها',
'settings.notificationsHint': 'صدا و اعلان دسکتاپ هنگام تکمیل وظیفه',
'settings.notifyCompletionSound': 'صدای تکمیل',
'settings.notifyCompletionSoundHint': 'پس از اتمام یک نوبت پخش می‌شود. به‌طور پیش‌فرض خاموش است.',
'settings.notifySuccessSound': 'صدای موفقیت',
'settings.notifyFailureSound': 'صدای خطا',
'settings.notifyDesktop': 'اعلان دسکتاپ',
'settings.notifyDesktopHint': 'هنگامی که پنجره فعال نیست ارسال می‌شود.',
'settings.notifyDesktopBlocked': 'مرورگر اعلان‌ها را مسدود کرده است. در تنظیمات سایت آن‌ها را مجاز کنید.',
'settings.notifyDesktopUnsupported': 'اعلان‌های دسکتاپ در این محیط در دسترس نیستند.',
'settings.notifyTest': 'ارسال آزمایشی',
'settings.notifyTestSent': 'اعلان آزمایشی ارسال شد. اگر بنری نمایش داده نشد، تنظیمات اعلان مرورگر و سیستم را بررسی کنید.',
'settings.notifyTestFailed': 'فراخوانی اعلان ناموفق بود. تنظیمات اعلان مرورگر و سیستم را بررسی کنید.',
'settings.notifySoundDing': 'دینگ',
'settings.notifySoundChime': 'زنگ',
'settings.notifySoundTwoToneUp': 'دو نوای بالارونده',
'settings.notifySoundPluck': 'مضراب',
'settings.notifySoundBuzz': 'وزوز',
'settings.notifySoundTwoToneDown': 'دو نوای پایین‌رونده',
'settings.notifySoundThud': 'تالاپ',
'settings.library': 'مهارت‌ها و سیستم‌های طراحی',
'settings.libraryHint': 'مرور، پیش‌نمایش و فعال/غیرفعال‌سازی کتابخانه محتوای شما',
'settings.librarySkills': 'مهارت‌ها',
'settings.libraryDesignSystems': 'سیستم‌های طراحی',
'settings.librarySearch': 'جستجو...',
'settings.libraryAll': 'همه',
'settings.libraryPreview': 'پیش‌نمایش',
'settings.libraryPreviewClose': 'بستن',
'settings.libraryLoading': 'در حال بارگذاری...',
'settings.libraryNoResults': 'هیچ موردی با جستجوی شما مطابقت ندارد.',
'settings.libraryEnabled': 'فعال',
'settings.libraryDisabled': 'غیرفعال',
'settings.libraryToggleLabel': 'تغییر وضعیت',
'notify.successTitle': 'وظیفه تکمیل شد',
'notify.failureTitle': 'وظیفه ناموفق بود',
'notify.successBody': 'یک نوبت به پایان رسید.',
'notify.failureBody': 'وظیفه با خطا پایان یافت.',
};
+951
View File
@@ -0,0 +1,951 @@
import { en } from './en';
import type { Dict } from '../types';
export const fr: Dict = {
...en,
'common.cancel': 'Annuler',
'common.save': 'Enregistrer',
'common.close': 'Fermer',
'common.delete': 'Supprimer',
'common.rename': 'Renommer',
'common.preview': 'Aperçu',
'common.share': 'Partager',
'common.search': 'Rechercher',
'common.searchEllipsis': 'Rechercher…',
'common.loading': 'Chargement…',
'common.all': 'Tout',
'common.none': 'Aucun',
'common.default': 'Par défaut',
'common.installed': 'installé',
'common.notInstalled': 'non installé',
'common.active': 'actif',
'common.offline': 'hors ligne',
'common.selected': 'sélectionné',
'common.create': 'Créer',
'common.openPreview': 'Ouvrir l\'aperçu',
'common.exitFullscreen': 'Quitter le plein écran',
'common.fullscreen': 'Plein écran',
'common.openInNewTab': 'Ouvrir dans un nouvel onglet',
'common.exportPdf': 'Exporter en PDF',
'common.exportZip': 'Télécharger en .zip',
'common.exportHtml': 'Exporter en HTML autonome',
'common.justNow': 'à l\'instant',
'common.minutesAgo': 'il y a {n} min',
'common.hoursAgo': 'il y a {n} h',
'common.daysAgo': 'il y a {n} j',
'common.now': 'maintenant',
'common.minutesShort': '{n} min',
'common.hoursShort': '{n} h',
'common.daysShort': '{n} j',
'common.untitled': 'Sans titre',
'app.brand': 'Open Design',
'app.brandPill': 'Aperçu de recherche',
'app.brandSubtitle': 'par Nexu Labs',
'app.welcomeLoading': 'Chargement de l\'espace de travail…',
'settings.welcomeKicker': 'Bienvenue',
'settings.welcomeTitle': 'Configurer Open Design',
'settings.welcomeSubtitle':
'Choisissez comment vous souhaitez exécuter les générations. Vous pouvez changer cela à tout moment depuis le bouton Paramètres dans la barre supérieure.',
'settings.kicker': 'Paramètres',
'settings.title': 'Exécution et modèle',
'settings.subtitle': 'Choisissez entre CLI local et BYOK. Votre clé API est stockée uniquement dans ce navigateur.',
'settings.modeAria': 'Mode d\'exécution',
'settings.protocolAria': 'Protocole d\'API',
'settings.modeDaemon': 'CLI local',
'settings.modeDaemonHelp': 'Exécuter via un agent CLI sur votre machine',
'settings.modeDaemonOffline': 'Le daemon n\'est pas en cours d\'exécution',
'settings.modeDaemonOfflineMeta': 'daemon hors ligne',
'settings.modeDaemonInstalledMeta': '{count} installé(s)',
'settings.modeApi': 'Fournisseur API',
'settings.modeApiMeta': 'BYOK',
'settings.codeAgent': 'Agent de code',
'settings.codeAgentHint':
'Détecté en analysant votre PATH. Choisissez le CLI à travers lequel les générations seront exécutées.',
'settings.rescan': '↻ Réanalyser',
'settings.rescanTitle': 'Réanalyser le PATH',
'settings.rescanRunning': 'Analyse...',
'settings.rescanSuccess': 'Analyse terminée. {count} disponible(s).',
'settings.rescanFailed': 'L’analyse a échoué. Vérifiez le daemon et réessayez.',
'settings.noAgentsDetected':
'Aucun agent détecté pour l\'instant. Installez Claude Code, Codex, Devin for Terminal, Gemini CLI, OpenCode, Cursor Agent, Qwen ou GitHub Copilot CLI, puis cliquez sur Réanalyser.',
'settings.apiSection': 'API Anthropic',
'settings.quickFillProvider': 'Remplissage rapide du fournisseur',
'settings.customProvider': 'Fournisseur personnalisé',
'settings.apiKey': 'Clé API',
'settings.showKey': 'Afficher la clé',
'settings.hideKey': 'Masquer la clé',
'settings.show': 'Afficher',
'settings.hide': 'Masquer',
'settings.model': 'Modèle',
'settings.suggestedModelsHint':
'Ce sont des modèles suggérés pour ce protocole. Votre fournisseur peut prendre en charge d\'autres modèles.',
'settings.baseUrl': 'URL de base',
'settings.baseUrlInvalid': 'Saisissez une URL publique http:// ou https:// valide. Localhost est autorisé ; les IP de réseau privé sont bloquées.',
'settings.azureDeploymentModel': 'Nom du déploiement',
'settings.azureDeploymentModelHint':
'Pour Azure OpenAI, ce champ est utilisé comme nom du déploiement dans /openai/deployments/<model>. Saisissez le nom du déploiement créé dans Azure.',
'settings.apiVersion': 'Version API',
'settings.maxTokens': 'Tokens max (optionnel)',
'settings.maxTokensHint':
'Limite de la longueur de réponse. Chaque modèle a une valeur par défaut (affichée en placeholder) ; laissez vide pour l\'utiliser, ou entrez un nombre pour la remplacer.',
'settings.apiHint': 'Les appels passent par le proxy du daemon local vers la Base URL définie. La clé est stockée uniquement dans ce navigateur et envoyée avec les requêtes au fournisseur.',
'settings.skipForNow': 'Passer pour l\'instant',
'settings.getStarted': 'Commencer',
'settings.envConfigure': 'Configurer le mode d\'exécution',
'settings.localCli': 'CLI local',
'settings.anthropicApi': 'API Anthropic',
'settings.noAgentSelected': 'aucun agent sélectionné',
'settings.language': 'Langue',
'settings.languageHint': 'Changer la langue de l\'interface. Enregistré dans ce navigateur.',
'settings.appearance': 'Apparence',
'settings.appearanceHint': 'Choisissez clair, sombre, ou suivez le paramètre système.',
'settings.themeSystem': 'Système',
'settings.themeLight': 'Clair',
'settings.themeDark': 'Sombre',
'settings.modelPicker': 'Modèle',
'settings.reasoningPicker': 'Effort de raisonnement',
'settings.modelPickerHint':
'Récupéré depuis le CLI lorsqu\'il expose une commande `models`. « Par défaut » laisse le choix à la configuration du CLI ; « Personnalisé… » vous permet de saisir n\'importe quel identifiant de modèle accepté par le CLI.',
'settings.cliEnvTitle': 'CLI config locations',
'settings.cliEnvHint':
'Set non-secret config directories for packaged app runs and agent detection.',
'settings.cliEnvClaudeConfigDir': 'Claude Code config dir',
'settings.cliEnvCodexHome': 'Codex home',
'settings.modelCustom': 'Personnalisé (saisir ci-dessous)…',
'settings.modelCustomLabel': 'Identifiant du modèle personnalisé',
'settings.modelCustomPlaceholder': 'ex. anthropic/claude-sonnet-4-6',
'settings.mediaProviders': 'Fournisseurs de médias',
'settings.mediaProvidersHint':
'Clés API pour la génération d\'images, de vidéos et d\'audio. Stockées localement et synchronisées avec le daemon local.',
'settings.mediaProviderApiKey': 'Clé API',
'settings.mediaProviderBaseUrl': 'URL de base',
'settings.mediaProviderConfigured': 'Configuré',
'settings.mediaProviderUnset': 'Non défini',
'settings.mediaProviderClear': 'Effacer',
'settings.mediaProviderPlaceholder': 'Coller la clé API',
'settings.mediaProviderBaseUrlPlaceholder': 'Remplacer l\'URL de base par défaut',
'settings.about': 'À propos',
'settings.aboutHint': 'Version et informations d\'exécution',
'settings.appVersion': 'Version',
'settings.appChannel': 'Canal',
'settings.appRuntime': 'Environnement',
'settings.appPlatform': 'Plateforme',
'settings.appArchitecture': 'Architecture',
'settings.runtimePackaged': 'Application empaquetée',
'settings.runtimeDevelopment': 'Développement',
'settings.versionUnavailable': 'Les informations de version sont indisponibles lorsque le daemon est hors ligne.',
'entry.tabDesigns': 'Designs',
'entry.tabExamples': 'Exemples',
'entry.tabDesignSystems': 'Design systems',
'entry.tabConnectors': 'Connecteurs',
'entry.openSettingsTitle': 'Paramètres',
'entry.openSettingsAria': 'Ouvrir les paramètres',
'entry.resizeAria': 'Redimensionner la barre latérale',
'entry.loadingWorkspace': 'Chargement de l\'espace de travail…',
'entry.tabImageTemplates': 'Modèles d\'image',
'entry.tabVideoTemplates': 'Modèles de vidéo',
'promptTemplates.searchPlaceholder': 'Rechercher des modèles…',
'promptTemplates.countLabel': '{n} résultats',
'promptTemplates.emptyImage': 'Aucun modèle de prompt d\'image installé pour l\'instant.',
'promptTemplates.emptyVideo': 'Aucun modèle de prompt vidéo installé pour l\'instant.',
'promptTemplates.emptyNoMatch': 'Aucun modèle ne correspond à votre recherche.',
'promptTemplates.attributionFooter': 'Adapté de bibliothèques de prompts publiques. Chaque carte renvoie vers l\'auteur original.',
'promptTemplates.openPreviewTitle': 'Ouvrir le prompt et l\'aperçu',
'promptTemplates.sourcePrefix': 'Source :',
'promptTemplates.fetchError': 'Impossible de charger le contenu de ce modèle.',
'promptTemplates.promptLabel': 'Corps du prompt',
'promptTemplates.copyPrompt': 'Copier le prompt',
'promptTemplates.copyDone': 'Copié !',
'promptTemplates.modelHint': 'Modèle suggéré : {model}',
'promptTemplates.openSource': 'Voir l\'original',
'promptTemplates.openFullscreen': 'Ouvrir l\'aperçu en plein écran',
'promptTemplates.closeFullscreen': 'Fermer l\'aperçu plein écran',
'promptTemplates.retry': 'Réessayer',
'connectors.title': 'Connecteurs',
'connectors.subtitle': 'Sources de données locales et futures pouvant alimenter les artefacts live.',
'connectors.account': 'Compte',
'connectors.noAccount': 'Non connecté',
'connectors.tools': 'Outils',
'connectors.connect': 'Connecter',
'connectors.disconnect': 'Déconnecter',
'connectors.configure': 'Configurer',
'connectors.unavailable': 'Indisponible',
'connectors.phaseStubTitle': 'Les API de connecteurs arrivent en phase 3 ; ceci est un aperçu.',
'connectors.statusAvailable': 'Disponible',
'connectors.statusConnected': 'Connecté',
'connectors.statusError': 'Erreur',
'connectors.statusDisabled': 'Désactivé',
'connectors.gateTitle': 'Configurez d\'abord la clé API Composio',
'connectors.gateBody': 'Les connecteurs nécessitent une clé API Composio. Ajoutez-la dans les paramètres pour activer les intégrations disponibles.',
'connectors.gateAction': 'Ouvrir les paramètres',
'connectors.aboutLabel': 'À propos',
'connectors.detailsLabel': 'Détails',
'connectors.statusLabel': 'Statut',
'connectors.categoryLabel': 'Catégorie',
'connectors.providerLabel': 'Fournisseur',
'connectors.toolsSection': 'Outils',
'connectors.toolsLoading': 'Chargement des outils…',
'connectors.noToolsAvailable': 'Aucun outil disponible pour le moment. Connectez-vous pour découvrir les capacités de cette intégration.',
'connectors.openDetailsAria': 'Ouvrir les détails de {name}',
'connectors.toolsBadgeNone': 'Aucun outil',
'connectors.toolsBadgeOne': '{n} outil',
'connectors.toolsBadgeMany': '{n} outils',
'connectors.searchPlaceholder': 'Rechercher des connecteurs…',
'connectors.searchAriaLabel': 'Rechercher des connecteurs par nom, fournisseur ou outil',
'connectors.searchClear': 'Effacer la recherche',
'connectors.emptyNoMatchTitle': 'Aucun connecteur ne correspond à « {query} »',
'connectors.emptyNoMatchBody': 'Essayez un autre mot-clé ou effacez la recherche pour voir le catalogue complet.',
'connectors.emptyNoMatchAction': 'Effacer la recherche',
'newproj.tabPrototype': 'Prototype',
'newproj.tabDeck': 'Diaporama',
'newproj.tabTemplate': 'Depuis un modèle',
'newproj.tabOther': 'Autre',
'newproj.titlePrototype': 'Nouveau prototype',
'newproj.titleDeck': 'Nouveau diaporama',
'newproj.titleTemplate': 'Partir d\'un modèle',
'newproj.titleImage': 'Nouvelle image',
'newproj.titleVideo': 'Nouvelle vidéo',
'newproj.titleAudio': 'Nouvel audio',
'newproj.titleOther': 'Nouveau projet',
'newproj.namePlaceholder': 'Nom du projet',
'newproj.fidelityLabel': 'Fidélité',
'newproj.fidelityWireframe': 'Wireframe',
'newproj.fidelityHigh': 'Haute fidélité',
'newproj.toggleSpeakerNotes': 'Utiliser des notes d\'orateur',
'newproj.toggleSpeakerNotesHint': 'Moins de texte sur les diapositives — gardez les points de discussion dans les notes.',
'newproj.toggleAnimations': 'Inclure des animations',
'newproj.toggleAnimationsHint':
'Ajouter du mouvement (entrée, survol, transitions) en plus du modèle.',
'newproj.templateLabel': 'Modèle',
'newproj.noTemplatesTitle': 'Aucun modèle pour l\'instant',
'newproj.noTemplatesBody':
'Ouvrez un projet, puis utilisez le menu Partager dans la visionneuse de fichiers pour le convertir en modèle. Les modèles apparaissent ici.',
'newproj.savedTemplate': 'Modèle enregistré',
'newproj.fileSingular': 'fichier',
'newproj.filePlural': 'fichiers',
'newproj.create': 'Créer',
'newproj.createFromTemplate': 'Créer depuis le modèle',
'newproj.createDisabledTitle':
'Enregistrez d\'abord un projet comme modèle (menu Partager dans un projet).',
'newproj.importClaudeZip': 'Importer un ZIP Claude Design',
'newproj.importClaudeZipTitle': 'Importer une exportation .zip Claude Design',
'newproj.importingClaudeZip': 'Importation…',
'newproj.privacyFooter': 'Seul vous pouvez voir votre projet par défaut.',
'newproj.designSystem': 'Design system',
'newproj.dsNoneFreeform': 'Aucun — libre',
'newproj.dsNoneSubtitleEmpty': 'Pas de jetons système, choisissez votre propre palette',
'newproj.dsNoneSubtitleSelected': 'Ignorer les jetons système. L\'agent choisit sa propre palette.',
'newproj.dsCategoryFallback': 'Design system',
'newproj.dsSearch': 'Rechercher des design systems…',
'newproj.dsModeAria': 'Mode de sélection',
'newproj.dsModeSingle': 'Unique',
'newproj.dsModeMulti': 'Multiple',
'newproj.dsNoneTitle': 'Aucun — libre',
'newproj.dsNoneSub': 'Ignorer les jetons système. L\'agent choisit sa propre palette.',
'newproj.dsEmpty': 'Aucun design system ne correspond à « {query} ».',
'newproj.dsFootSingular': 'est uniquement à titre d\'inspiration.',
'newproj.dsFootPlural': 'sont uniquement à titre d\'inspiration.',
'newproj.dsFootClear': 'Effacer',
'newproj.dsBadgeDefault': 'DÉFAUT',
'newproj.dsPrimaryFallback': 'Primaire',
'newproj.surfaceImage': 'Image',
'newproj.surfaceVideo': 'Vidéo',
'newproj.surfaceAudio': 'Audio',
'newproj.modelLabel': 'Modèle',
'newproj.aspectLabel': 'Format',
'newproj.imageStyleLabel': 'Notes de style',
'newproj.imageStylePlaceholder': 'Photo éditoriale, lumière douce, palette sobre',
'newproj.videoLengthLabel': 'Durée',
'newproj.videoLengthSeconds': '{n}s',
'newproj.audioKindLabel': 'Type d\'audio',
'newproj.audioKindMusic': 'Musique',
'newproj.audioKindSpeech': 'Voix / TTS',
'newproj.audioKindSfx': 'Effets sonores',
'newproj.audioDurationLabel': 'Durée',
'newproj.audioDurationSeconds': '{n}s',
'newproj.voiceLabel': 'Voix',
'newproj.voicePlaceholder': 'Identifiant de voix du fournisseur, optionnel',
'newproj.connectorsLabel': 'Connecteurs',
'newproj.connectorsHint': 'Sources de données que cet artefact peut interroger.',
'newproj.connectorsEmptyTitle': 'Aucun connecteur configuré',
'newproj.connectorsEmptyBody': 'Connectez une source de données pour que l\'artefact live utilise de vraies données au lieu d\'espaces réservés.',
'newproj.connectorsEmptyCta': 'Configurer les connecteurs →',
'newproj.connectorsLoading': 'Chargement des connecteurs…',
'newproj.connectorsCountOne': '{n} connecté',
'newproj.connectorsCountMany': '{n} connectés',
'newproj.connectorsManage': 'Gérer',
'newproj.promptTemplateLabel': 'Modèle de référence',
'newproj.promptTemplateNoneTitle': 'Aucun — rédigez le vôtre',
'newproj.promptTemplateNoneSub': 'Ignorer la galerie, décrivez votre propre brief',
'newproj.promptTemplateRefSub': 'Modèle de référence',
'newproj.promptTemplateSearch': 'Rechercher des modèles…',
'newproj.promptTemplateEmpty': 'Aucun modèle installé pour cette surface pour l\'instant.',
'newproj.promptTemplateBodyLabel': 'Prompt (vous pouvez l\'ajuster)',
'newproj.promptTemplateOptimizeHint':
'Modifiez ce que vous voulez — vos modifications sont transmises au brief de l\'agent.',
'newproj.promptTemplateBodyEmpty':
'Corps vide — l\'agent ne recevra aucune référence de modèle.',
'designs.subRecent': 'Récents',
'designs.subYours': 'Vos designs',
'designs.filterAria': 'Filtrer les projets',
'designs.searchPlaceholder': 'Rechercher…',
'designs.emptyNoProjects': 'Aucun projet pour l\'instant. Créez-en un à gauche.',
'designs.emptyNoMatch': 'Aucun projet ne correspond à votre recherche.',
'designs.deleteTitle': 'Supprimer le projet',
'designs.deleteConfirm': 'Supprimer « {name} » ?',
'designs.cardFreeform': 'libre',
'designs.status.notStarted': 'Non commencé',
'designs.status.queued': 'En file d\'attente',
'designs.status.running': 'En cours',
'designs.status.awaitingInput': 'Entrée requise',
'designs.status.succeeded': 'Terminé',
'designs.status.failed': 'Échoué',
'designs.status.canceled': 'Annulé',
'designs.viewToggleAria': 'Mode d\'affichage',
'designs.viewGrid': 'Vue grille',
'designs.viewKanban': 'Vue tableau',
'designs.kanbanEmptyColumn': 'Aucun design',
'designs.deleteAria': 'Supprimer le projet {name}',
'examples.typeLabel': 'Type',
'examples.surfaceLabel': 'Surface',
'examples.surfaceWeb': 'Web',
'examples.surfaceImage': 'Image',
'examples.surfaceVideo': 'Vidéo',
'examples.surfaceAudio': 'Audio',
'examples.scenarioLabel': 'Scénario',
'examples.modeAll': 'Tout',
'examples.modePrototypeDesktop': 'Prototypes · Bureau',
'examples.modePrototypeMobile': 'Prototypes · Mobile',
'examples.modeDeck': 'Diaporamas',
'examples.modeDocument': 'Docs et modèles',
'examples.modeOrbit': 'Orbit',
'examples.scenarioGeneral': 'Général',
'examples.scenarioEngineering': 'Ingénierie',
'examples.scenarioProduct': 'Produit',
'examples.scenarioDesign': 'Design',
'examples.scenarioMarketing': 'Marketing',
'examples.scenarioSales': 'Ventes',
'examples.scenarioFinance': 'Finance',
'examples.scenarioHr': 'RH',
'examples.scenarioOperations': 'Opérations',
'examples.scenarioSupport': 'Support',
'examples.scenarioLegal': 'Juridique',
'examples.scenarioEducation': 'Éducation',
'examples.scenarioPersonal': 'Personnel',
'examples.searchPlaceholder': 'Rechercher des exemples…',
'examples.searchAria': 'Rechercher des exemples par nom',
'examples.emptyNoSkills': 'Aucune compétence disponible. Le daemon est-il en cours d\'exécution ?',
'examples.emptyNoMatch': 'Aucun exemple ne correspond à ces filtres.',
'examples.openPreview': '⤢ Ouvrir l\'aperçu',
'examples.loadingPreview': 'Chargement de l\'aperçu…',
'examples.hoverPreview': 'Survoler pour prévisualiser',
'examples.usePrompt': 'Utiliser ce prompt',
'examples.previewModalTitle': 'Ouvrir l\'aperçu complet (modale)',
'examples.shareTitle': 'Partager cet exemple',
'examples.shareLoadFirst': 'Survolez pour charger l\'aperçu d\'abord',
'examples.shareMenu': 'Partager ▾',
'examples.exportPdfAllSlides': 'Exporter en PDF (toutes les diapos)',
'examples.exportPptxLocked': 'Exporter en PPTX… (ouvrez d\'abord le modèle)',
'examples.tagSlideDeck': 'Diaporama',
'examples.tagTemplate': 'Modèle',
'examples.tagDesignSystem': 'Design system',
'examples.tagMobilePrototype': 'Prototype mobile',
'examples.tagDesktopPrototype': 'Prototype bureau',
'examples.tagImage': 'Image',
'examples.tagVideo': 'Vidéo',
'examples.tagAudio': 'Audio',
'examples.previewLabel': 'Aperçu',
'ds.surfaceLabel': 'Surface',
'ds.surfaceWeb': 'Web',
'ds.surfaceImage': 'Image',
'ds.surfaceVideo': 'Vidéo',
'ds.surfaceAudio': 'Audio',
'ds.searchPlaceholder': 'Rechercher des design systems…',
'ds.emptyNoMatch': 'Aucun design system ne correspond à votre recherche.',
'ds.badgeDefault': 'DÉFAUT',
'ds.preview': 'Aperçu',
'ds.previewTitle': 'Aperçu du design system',
'ds.categoryAll': 'Tout',
'ds.categoryUncategorized': 'Non catégorisé',
'ds.showcase': 'Vitrine',
'ds.tokens': 'Jetons',
'ds.specToggle': 'DESIGN.md',
'ds.specLoading': 'Chargement du DESIGN.md…',
'avatar.title': 'Compte et paramètres',
'avatar.localCli': 'CLI local',
'avatar.anthropicApi': 'API Anthropic',
'avatar.useLocal': 'Utiliser le CLI local',
'avatar.useApi': 'Utiliser API · BYOK',
'avatar.codeAgent': 'Agent de code',
'avatar.rescan': 'Réanalyser le PATH',
'avatar.settings': 'Paramètres',
'avatar.backToProjects': 'Retour aux projets',
'avatar.metaActive': 'actif',
'avatar.metaOffline': 'hors ligne',
'avatar.metaSelected': 'sélectionné',
'avatar.noAgentSelected': 'aucun agent sélectionné',
'avatar.modelSection': 'Modèle',
'avatar.modelLabel': 'Modèle',
'avatar.reasoningLabel': 'Raisonnement',
'avatar.customSuffix': '(personnalisé)',
'project.backToProjects': 'Retour aux projets',
'project.metaFreeform': 'libre',
'project.resizeChatPanel': 'Redimensionner le panneau de chat',
'chat.tabChat': 'Chat',
'chat.tabComments': 'Commentaires',
'chat.commentsSoon': 'Commentaires — bientôt disponible',
'chat.comments.attached': 'Attaché au chat',
'chat.comments.emptyAttached': 'Aucun commentaire attaché.',
'chat.comments.saved': 'Commentaires enregistrés',
'chat.comments.emptySaved': 'Aucun commentaire enregistré.',
'chat.comments.add': 'Ajouter',
'chat.comments.addAll': 'Tout ajouter',
'chat.comments.remove': 'Retirer',
'chat.comments.placeholder': 'Commenter cet élément…',
'chat.comments.addSend': 'Ajouter et envoyer',
'chat.comments.updateSend': 'Mettre à jour et envoyer',
'chat.comments.removeAttachment': 'Retirer le commentaire attaché',
'chat.comments.removeAttachmentAria': 'Retirer le commentaire attaché pour {name}',
'chat.conversationsTitle': 'Conversations',
'chat.conversationsAria': 'Historique des conversations',
'chat.newConversation': 'Nouvelle conversation',
'chat.newConversationsTitle': 'Nouvelle conversation',
'chat.conversationsHeading': 'Conversations',
'chat.new': 'Nouvelle',
'chat.emptyConversations': 'Aucune conversation pour l\'instant.',
'chat.deleteConversation': 'Supprimer la conversation',
'chat.deleteConversationConfirm':
'Supprimer « {title} » ? Cela supprime ses messages.',
'chat.untitledConversation': 'Conversation sans titre',
'chat.startTitle': 'Démarrer une conversation',
'chat.startHint':
'Déposez ou collez des images comme référence visuelle, ou tapez @ pour attacher un fichier du projet. Ou essayez l\'une de ces suggestions :',
'chat.fillInputTitle': 'Cliquez pour remplir le champ',
'chat.jumpToLatest': 'Aller au plus récent',
'chat.scrollToLatest': 'Défiler jusqu\'au plus récent',
'chat.you': 'Vous',
'chat.openFile': 'Ouvrir {name}',
'chat.composerPlaceholder':
'Décrivez le design souhaité — collez ou déposez des images, ou @ un fichier…',
'chat.composerHint':
'⌘/Ctrl + Entrée pour envoyer · coller des images · @ pour référencer des fichiers',
'chat.cliSettingsTitle': 'Paramètres CLI et modèle',
'chat.cliSettingsAria': 'Ouvrir les paramètres CLI et modèle',
'chat.attachTitle': 'Attacher des fichiers (ou coller / déposer)',
'chat.attachAria': 'Attacher des fichiers',
'chat.importTitle': 'Importer des sources (bientôt disponible)',
'chat.importLabel': 'Importer',
'chat.importComingSoon': 'Bientôt disponible',
'chat.importSoon': 'Bientôt',
'chat.importFig': 'Téléverser un fichier .fig',
'chat.importGitHub': 'Connecter GitHub',
'chat.importWeb': 'Capturer un élément web',
'chat.importFolder': 'Lier un dossier de code',
'chat.importSkills': 'Compétences et design systems',
'chat.importProject': 'Référencer un autre projet',
'chat.linkedFolderRemoveAria': 'Supprimer le dossier lié {path}',
'chat.linkedFolderNotFound': 'Le dossier n\'existe pas',
'chat.linkedFolderAlready': 'Ce dossier est déjà lié',
'chat.linkedFolderPickError': 'Impossible d\'ouvrir le sélecteur de dossier',
'chat.send': 'Envoyer',
'chat.stop': 'Arrêter',
'chat.removeAria': 'Retirer {name}',
'chat.example1Title': 'Pitch deck éditorial',
'chat.example1Tag': 'Magazine',
'chat.example1Prompt':
'Un pitch deck éditorial de 10 diapositives pour un studio de design levant des fonds — mise en page grille suisse, titres avec empattement surdimensionnés et lettrines, numéros de section en monospace, généreux espaces négatifs, et diapositives photo pleine page entrecoupées de diapos riches en texte. Couverture, vision, marché, produit, traction, équipe, levée de fonds, contact.',
'chat.example2Title': 'Tableau de bord SaaS analytics',
'chat.example2Tag': 'Données',
'chat.example2Prompt':
'Un tableau de bord analytics dense pour un SaaS d\'outils développeurs — bandeau KPI avec deltas semaine sur semaine, deux graphiques en lignes empilées (MRR et espaces de travail actifs), une carte de chaleur mondiale d\'utilisation, une grille de rétention de cohortes, un classement des meilleurs clients et un fil d\'actualité en temps réel. Thème sombre, chiffres tabulaires en monospace, accents sparkline.',
'chat.example3Title': 'Rapport annuel long défilement',
'chat.example3Tag': 'Éditorial',
'chat.example3Prompt':
'Un rapport annuel interactif pour une ONG climatique — mise en page éditoriale à long défilement mêlant de grands blocs de citation, des visualisations de données (barres empilées, compteurs animés, une carte choroplèthe des sites de projet), des séparateurs photo, un mur de donateurs et un appel à l\'action final. Texte en serif moderne, étiquettes de graphiques en sans-serif, palette papier aux tons terreux.',
'preview.shareMenu': 'Partager ▾',
'preview.openInNewTab': 'Ouvrir dans un nouvel onglet',
'preview.exit': '⤓ Quitter',
'preview.fullscreen': '⤢ Plein écran',
'preview.closeTitle': 'Fermer (Échap)',
'preview.loading': 'Chargement de {label}…',
'preview.showSidebar': 'Afficher {label}',
'preview.hideSidebar': 'Masquer {label}',
'misc.savedTemplate': 'Modèle enregistré',
'misc.primary': 'Primaire',
'misc.designSystem': 'Design system',
'workspace.designFiles': 'Fichiers de design',
'workspace.focusMode': 'Focus workspace',
'workspace.showChat': 'Show chat',
'workspace.closeTab': 'Fermer l\'onglet',
'workspace.deleteFileConfirm': 'Supprimer « {name} » du dossier du projet ?',
'workspace.openFromDesignFiles': 'Ouvrir un fichier depuis',
'workspace.designFilesLink': 'Fichiers de design',
'workspace.loadingSketch': 'Chargement du croquis…',
'designFiles.title': 'Fichiers de design',
'designFiles.upload': 'Téléverser des fichiers',
'designFiles.pasteText': 'Coller comme fichier texte',
'designFiles.newSketch': 'Nouveau croquis',
'designFiles.empty':
'Rien ici pour l\'instant. Déposez des fichiers ci-dessous, ou créez un croquis / collez du texte.',
'designFiles.refresh': 'Actualiser',
'designFiles.delete': 'Supprimer',
'designFiles.searchPlaceholder': 'Rechercher des fichiers…',
'designFiles.up': 'Haut',
'designFiles.back': 'Retour',
'designFiles.crumbs': 'projet',
'designFiles.rowMenu': 'Menu de ligne',
'designFiles.openInTab': 'Ouvrir dans un onglet',
'designFiles.download': 'Télécharger',
'designFiles.downloadSelected': 'Download {n} as ZIP',
'designFiles.clearSelection': 'Clear',
'designFiles.selectAll': 'Select all',
'designFiles.dropTitle': '⤓ Déposez les fichiers ici',
'designFiles.dropDesc':
'Images, documents, références ou dossiers — l\'agent les utilisera comme contexte.',
'designFiles.upload.title': 'Téléverser des fichiers',
'designFiles.paste.title': 'Coller du texte comme fichier',
'designFiles.upload.label': 'Téléverser',
'designFiles.paste.label': 'Coller',
'designFiles.previewOpen': 'Ouvrir',
'designFiles.previewClose': 'Fermer l\'aperçu',
'designFiles.modified': 'Modifié {time} · {size}',
'designFiles.weeksAgo': 'il y a {n} sem',
'designFiles.sectionPages': 'Pages',
'designFiles.sectionScripts': 'Scripts',
'designFiles.sectionImages': 'Images',
'designFiles.sectionSketches': 'Croquis',
'designFiles.sectionOther': 'Autre',
'designFiles.showMore': 'Afficher +{n} de plus',
'designFiles.kindHtml': 'Page HTML',
'designFiles.kindImage': 'Image',
'designFiles.kindSketch': 'Croquis',
'designFiles.kindText': 'Texte',
'designFiles.kindCode': 'Script',
'designFiles.kindPdf': 'PDF',
'designFiles.kindDocument': 'Document',
'designFiles.kindPresentation': 'Présentation',
'designFiles.kindSpreadsheet': 'Tableur',
'designFiles.kindBinary': 'Binaire',
'quickSwitcher.placeholder': 'Ouvrir un fichier…',
'quickSwitcher.empty': 'Aucun fichier dans ce projet',
'quickSwitcher.noMatches': 'Aucun résultat',
'quickSwitcher.navigate': 'naviguer',
'quickSwitcher.open': 'ouvrir',
'quickSwitcher.close': 'fermer',
'pasteDialog.title': 'Coller du texte',
'pasteDialog.hint': 'Enregistré dans le dossier du projet. Choisissez un nom.',
'pasteDialog.fileNameLabel': 'Nom du fichier',
'pasteDialog.namePlaceholder': 'notes.txt',
'pasteDialog.contentLabel': 'Contenu',
'pasteDialog.contentPlaceholder': 'Collez n\'importe quoi…',
'pasteDialog.save': 'Enregistrer',
'pasteDialog.cancel': 'Annuler',
'sketch.save': 'Enregistrer le croquis',
'sketch.cancel': 'Annuler',
'sketch.saving': 'Enregistrement…',
'sketch.tooltipDirty': 'Modifications non enregistrées',
'sketch.tooltipClean': 'Enregistré',
'fileViewer.empty': 'Sélectionnez un fichier à afficher.',
'fileViewer.loading': 'Chargement…',
'fileViewer.exportPptx': 'Exporter en PPTX',
'fileViewer.openInNewTab': 'Ouvrir dans un nouvel onglet',
'fileViewer.copyPath': 'Copier le chemin',
'fileViewer.copied': 'Copié !',
'fileViewer.share': 'Partager',
'fileViewer.binaryMeta': 'Binaire · {size}',
'fileViewer.binaryNote':
'Fichier binaire ({size} octets). Téléchargez ou ouvrez depuis le disque pour inspecter.',
'fileViewer.pdfMeta': 'PDF · {size}',
'fileViewer.documentMeta': 'Document',
'fileViewer.presentationMeta': 'Présentation',
'fileViewer.spreadsheetMeta': 'Tableur',
'fileViewer.previewUnavailable': 'Aperçu indisponible. Téléchargez ou ouvrez le fichier pour inspecter.',
'fileViewer.download': 'Télécharger',
'fileViewer.open': 'Ouvrir',
'fileViewer.imageMeta': 'Image · {size}',
'fileViewer.reactMeta': 'Composant React · {size}',
'fileViewer.sketchMeta': 'Croquis · {size}',
'fileViewer.markdownStreamingMeta': 'Aperçu en streaming…',
'fileViewer.markdownErrorMeta': 'L\'aperçu peut être incomplet (erreur de génération).',
'fileViewer.markdownStreamingStatus': 'Streaming… affichage du markdown partiel.',
'fileViewer.markdownErrorStatus': 'Erreur de génération. Affichage du dernier contenu disponible.',
'fileViewer.videoMeta': 'Vidéo · {size}',
'fileViewer.audioMeta': 'Audio · {size}',
'fileViewer.reload': 'Recharger',
'fileViewer.reloadDisk': 'Recharger depuis le disque',
'fileViewer.copy': 'Copier',
'fileViewer.copyTitle': 'Copier le contenu du fichier',
'fileViewer.saveDisabled': 'Enregistrer (visionneuse en lecture seule)',
'fileViewer.save': 'Enregistrer',
'fileViewer.preview': 'Aperçu',
'fileViewer.source': 'Source',
'fileViewer.tweaks': 'Ajustements',
'fileViewer.comment': 'Commenter',
'fileViewer.edit': 'Modifier',
'fileViewer.draw': 'Dessiner',
'manualEdit.layers': "Layers",
'manualEdit.editableCount': "{count} editable",
'manualEdit.title': "Manual editor",
'manualEdit.selectLayer': "Select a layer",
'manualEdit.empty': "Click an element in the preview or choose a layer.",
'manualEdit.noClass': "no class",
'manualEdit.tabsAria': "Manual edit tabs",
'manualEdit.tabContent': "Content",
'manualEdit.tabStyle': "Style",
'manualEdit.tabAttributes': "Attributes",
'manualEdit.tabHtml': "Html",
'manualEdit.tabSource': "Source",
'manualEdit.attributesJson': "Attributes JSON",
'manualEdit.selectedHtml': "Selected element HTML",
'manualEdit.fullSource': "Full artifact source",
'manualEdit.applyContent': "Apply Content",
'manualEdit.applyStyle': "Apply Style",
'manualEdit.applyAttributes': "Apply Attributes",
'manualEdit.applyHtml': "Apply HTML",
'manualEdit.applySource': "Apply Source",
'manualEdit.invalidAttributes': "Invalid attributes JSON.",
'manualEdit.changes': "Changes",
'manualEdit.undo': "Undo",
'manualEdit.redo': "Redo",
'manualEdit.noChanges': "No manual edits yet.",
'manualEdit.imageUrl': "Image URL",
'manualEdit.altText': "Alt text",
'manualEdit.label': "Label",
'manualEdit.text': "Text",
'manualEdit.href': "Href",
'manualEdit.textColor': "Text color",
'manualEdit.background': "Background",
'manualEdit.fontSize': "Font size",
'manualEdit.weight': "Weight",
'manualEdit.align': "Align",
'manualEdit.padding': "Padding",
'manualEdit.margin': "Margin",
'manualEdit.radius': "Radius",
'manualEdit.border': "Border",
'manualEdit.width': "Width",
'manualEdit.minHeight': "Min height",
'fileViewer.zoomOut': 'Zoom arrière',
'fileViewer.zoomIn': 'Zoom avant',
'fileViewer.resetZoom': 'Réinitialiser le zoom',
'fileViewer.reloadAria': 'Recharger',
'fileViewer.previousSlide': 'Diapositive précédente',
'fileViewer.nextSlide': 'Diapositive suivante',
'fileViewer.slideNavAria': 'Navigation des diapositives',
'fileViewer.present': 'Présenter',
'fileViewer.presentInTab': 'Dans cet onglet',
'fileViewer.presentFullscreen': 'Plein écran',
'fileViewer.presentNewTab': 'Nouvel onglet',
'fileViewer.exitPresentation': 'Quitter la présentation',
'fileViewer.shareLabel': 'Partager',
'fileViewer.exportPdf': 'Exporter en PDF',
'fileViewer.exportPdfAllSlides': 'Exporter en PDF (toutes les diapos)',
'fileViewer.exportPptxBusy': 'Attendez la fin du tour en cours.',
'fileViewer.exportPptxHint':
'Envoyez une requête à l\'agent pour convertir ce design en PPTX.',
'fileViewer.exportPptxNa': 'L\'export PPTX n\'est pas disponible ici.',
'fileViewer.exportZip': 'Télécharger en .zip',
'fileViewer.exportHtml': 'Exporter en HTML autonome',
'fileViewer.exportMd': 'Exporter en Markdown',
'fileViewer.exportJsx': 'Exporter en JSX',
'fileViewer.exportReactHtml': 'Exporter l\'aperçu en HTML',
'fileViewer.saveAsTemplate': 'Enregistrer comme modèle…',
'fileViewer.savingTemplate': 'Enregistrement du modèle…',
'fileViewer.savedTemplate': 'Enregistré comme « {name} »',
'fileViewer.savedTemplateFail': 'Impossible d\'enregistrer le modèle — réessayez.',
'fileViewer.templateNamePrompt': 'Nom du modèle',
'fileViewer.templateNameDefault': 'Modèle sans titre',
'fileViewer.templateDescPrompt':
'Courte description (optionnelle — qu\'est-ce qui rend ce modèle utile ?)',
'fileViewer.deployToVercel': 'Déployer sur Vercel',
'fileViewer.redeployToVercel': 'Redéployer',
'fileViewer.deployingToVercel': 'Déploiement sur Vercel…',
'fileViewer.preparingPublicLink': 'Préparation du lien public…',
'fileViewer.copyDeployLink': 'Copier le lien',
'fileViewer.deployModalTitle': 'Déployer sur Vercel',
'fileViewer.deployModalSubtitle':
'Déployez cet artefact HTML en tant que Vercel Preview avec votre propre compte.',
'fileViewer.vercelToken': 'Jeton Vercel',
'fileViewer.vercelTokenGetLink': 'Obtenir un jeton Vercel',
'fileViewer.vercelTokenPlaceholder': 'Collez votre jeton Vercel',
'fileViewer.vercelTokenReuseHint':
'Le jeton enregistré sera utilisé. Entrez un nouveau jeton pour le remplacer.',
'fileViewer.vercelTokenRequired': 'Entrez et enregistrez d\'abord un jeton Vercel.',
'fileViewer.vercelTeamId': 'ID d\'équipe',
'fileViewer.vercelTeamSlug': 'Slug d\'équipe',
'fileViewer.optional': 'Optionnel',
'fileViewer.vercelPreviewOnly': 'Les déploiements sont en Preview uniquement pour l\'instant.',
'fileViewer.savingConfig': 'Enregistrement…',
'fileViewer.deployConfigSaveFailed': 'Impossible d\'enregistrer les paramètres Vercel.',
'fileViewer.deployFailed': 'Le déploiement a échoué. Vérifiez les paramètres Vercel et réessayez.',
'fileViewer.deployResultLabel': 'URL déployée',
'fileViewer.deployLinkPreparingLabel': 'Lien public en attente',
'fileViewer.deployLinkDelayed':
'Votre site est déployé. Vercel prépare encore le lien public.',
'fileViewer.deployLinkProtectedLabel': 'Protection Vercel activée',
'fileViewer.deployLinkProtected':
'Votre site est déployé, mais Vercel exige une authentification pour ce lien de prévisualisation. Désactivez la protection de déploiement ou utilisez un domaine personnalisé.',
'fileViewer.retryLink': 'Réessayer maintenant',
'questionForm.submit': 'Envoyer',
'questionForm.skip': 'Passer',
'questionForm.locked': 'Répondu',
'conv.switch': 'Changer de conversation',
'conv.label': 'Conversation',
'conv.heading': 'Conversations',
'conv.new': '+ Nouvelle',
'conv.empty': 'Aucune conversation pour l\'instant.',
'conv.untitled': 'Conversation sans titre',
'conv.renameTooltip': 'Double-cliquez pour renommer',
'conv.delete': 'Supprimer la conversation',
'conv.deleteConfirm': 'Supprimer « {title} » ? Cela supprime ses messages.',
'agentPicker.label': 'Agent',
'agentPicker.modeChoose': 'Choisir le mode d\'exécution',
'agentPicker.localCli': 'CLI local',
'agentPicker.daemonOff': 'daemon arrêté',
'agentPicker.byok': 'API · BYOK',
'agentPicker.selectAgent': 'Sélectionner un agent CLI détecté',
'agentPicker.noAgents': 'aucun agent dans le PATH',
'agentPicker.notInstalled': 'non installé',
'agentPicker.rescan': 'Réanalyser le PATH local pour les agents',
'tool.openInTab': 'Ouvrir {name} dans un onglet',
'tool.open': 'ouvrir',
'tool.todos': 'Tâches',
'tool.write': 'Écrire',
'tool.edit': 'Modifier',
'tool.read': 'Lire',
'tool.bash': 'Bash',
'tool.glob': 'Glob',
'tool.grep': 'Grep',
'tool.fetch': 'Fetch',
'tool.search': 'Rechercher',
'tool.lines': '{n} lignes',
'tool.changeSingular': 'modification',
'tool.changePlural': 'modifications',
'tool.in': 'dans {path}',
'tool.hide': 'masquer',
'tool.output': 'sortie',
'tool.running': 'en cours…',
'tool.error': 'erreur',
'tool.done': 'terminé',
'assistant.role': 'Assistant',
'assistant.workingLabel': 'En cours',
'assistant.doneLabel': 'Terminé',
'assistant.unfinishedLabel': 'Arrêté avec du travail non terminé',
'assistant.unfinishedSummary': '{n} tâche(s) restante(s)',
'assistant.unfinishedMore': '+{n} de plus',
'assistant.continueRemaining': 'Continuer les tâches restantes',
'assistant.outTokens': '{n} sortie',
'assistant.producedFiles': 'Fichiers de ce tour',
'assistant.openFile': 'Ouvrir',
'assistant.downloadFile': 'Télécharger',
'assistant.thinking': 'Réflexion',
'assistant.systemReminder': 'Rappel système',
'assistant.waitingFirstOutput': 'En attente de la première sortie',
'assistant.statusBootingAgent': 'Démarrage de l\'agent',
'assistant.statusStarting': 'Démarrage',
'assistant.statusRequesting': 'Envoi de la requête',
'assistant.statusThinking': 'Réflexion',
'assistant.statusStreaming': 'Streaming',
'assistant.slowHint':
'Plus long que d\'habitude. Le formulaire s\'affiche généralement en 5–10s — vous pouvez Arrêter et reformuler.',
'assistant.verbEditing': 'Modification',
'assistant.verbWriting': 'Écriture',
'assistant.verbReading': 'Lecture',
'assistant.verbSearching': 'Recherche',
'assistant.verbRunning': 'Exécution',
'assistant.verbTodos': 'Tâches',
'assistant.verbFetching': 'Récupération',
'assistant.verbCalling': 'Appel',
'qf.answered': 'répondu',
'qf.choose': 'Choisir…',
'qf.required': 'requis',
'qf.lockedSubmitted':
'Réponses envoyées — l\'agent les utilise pour le reste de la session.',
'qf.lockedPrev': 'Ce formulaire provient d\'un tour précédent.',
'qf.hint':
'Choisissez ce qui convient. Ignorez les champs optionnels qui ne vous intéressent pas — l\'agent utilisera des valeurs par défaut raisonnables.',
'qf.submitDefault': 'Envoyer les réponses',
'qf.submitDisabledTitle': 'Remplissez d\'abord les champs requis',
'qf.submitTitle': 'Envoyer les réponses',
'qf.cardSelected': 'sélectionné',
'qf.cardRefs': 'Réfs :',
'qf.cardSampleText': 'Portez ce vieux whisky au juge blond qui fume · 0123',
'sketch.toolSelect': 'Sélection (sans effet)',
'sketch.toolPen': 'Stylo',
'sketch.toolText': 'Texte',
'sketch.toolRect': 'Rectangle',
'sketch.toolArrow': 'Flèche',
'sketch.toolEraser': 'Gomme',
'sketch.color': 'Couleur',
'sketch.strokeSize': 'Taille du trait',
'sketch.undo': 'Annuler',
'sketch.clear': 'Effacer',
'sketch.close': 'Fermer',
'sketch.textPrompt': 'Texte :',
'pet.title': 'Compagnons',
'pet.subtitle': 'Adoptez un petit compagnon qui flotte au-dessus de votre espace de travail.',
'pet.navTitle': 'Compagnons',
'pet.navHint': 'Adopter ou personnaliser',
'pet.tabBuiltIn': 'Intégrés',
'pet.tabBuiltInHint': 'Compagnons fournis avec Open Design — choisissez-en un et adoptez-le.',
'pet.builtInEmpty': 'Les compagnons intégrés sont indisponibles pour l\'instant. Essayez d\'actualiser l\'onglet Communauté une fois le daemon en ligne.',
'pet.tabCustom': 'Personnalisé',
'pet.tabCustomHint': 'Créez le vôtre avec un nom, un glyphe, une couleur ou un sprite.',
'pet.tabCommunity': 'Communauté',
'pet.tabCommunityHint': 'Compagnons éclos de Codex — adoptez-en un ou générez-en un nouveau.',
'pet.tabsAria': 'Source du compagnon',
'pet.adopt': 'Adopter',
'pet.adoptedBadge': 'Adopté',
'pet.adoptCallout': 'Adopter un compagnon',
'pet.changePet': 'Changer de compagnon',
'pet.wake': 'Réveiller',
'pet.tuck': 'Cacher',
'pet.wakeTitle': 'Réveiller le compagnon — afficher l\'overlay flottant.',
'pet.tuckTitle': 'Cacher le compagnon — masquer l\'overlay flottant.',
'pet.settingsTitle': 'Ouvrir les paramètres du compagnon',
'pet.useCustom': 'Utiliser mon compagnon',
'pet.customTitle': 'Créez le vôtre',
'pet.customHint': 'Choisissez un nom, un glyphe et une couleur d\'accent — l\'overlay se met à jour en direct.',
'pet.customGreetingPlaceholder': 'Faites dire bonjour à votre compagnon…',
'pet.fieldName': 'Nom',
'pet.fieldGlyph': 'Glyphe',
'pet.fieldGlyphHint': 'Un seul emoji fonctionne le mieux (ex. 🐝, 🦄, 🐢).',
'pet.fieldGreeting': 'Salutation',
'pet.fieldAccent': 'Couleur d\'accent',
'pet.fieldAccentCustom': 'Couleur personnalisée',
'pet.overlayAria': 'Compagnon',
'pet.spriteAria': '{name} — glisser pour déplacer, cliquer pour chatter',
'pet.spriteTitle': 'Salut de {name} ! Cliquez pour chatter.',
'pet.railAria': 'Sélecteur de compagnon',
'pet.railTitle': 'Compagnons',
'pet.railHint': 'Choisissez un compagnon à faire flotter au-dessus de votre espace de travail.',
'pet.railExpand': 'Afficher le sélecteur de compagnon',
'pet.railCollapse': 'Réduire le sélecteur de compagnon',
'pet.railHide': 'Masquer le sélecteur de compagnon',
'pet.railShow': 'Afficher le sélecteur de compagnon',
'pet.railCustomFlavor': 'Le vôtre — nom, glyphe, couleur.',
'pet.railCustomize': 'Personnaliser…',
'pet.composerTitle': 'Compagnons — réveiller, cacher ou choisir',
'pet.composerMenuTitle': 'Compagnons',
'pet.composerMenuHint': 'astuce : tapez /pet pour basculer',
'pet.composerOpenSettings': 'Personnaliser dans les paramètres',
'pet.welcomeTeaserTitle': 'Adoptez un compagnon',
'pet.welcomeTeaserBody': 'Un petit compagnon flottant qui traîne avec vous.',
'pet.welcomeTeaserCta': 'En choisir un',
'pet.imageUpload': 'Téléverser un sprite',
'pet.imageReplace': 'Remplacer le sprite',
'pet.imageRemove': 'Utiliser un emoji',
'pet.imageHintIdle': 'PNG, JPG, WebP, GIF ou SVG. Téléversement de planche ? Déposez une bande horizontale et définissez le nombre de frames.',
'pet.imageHintActive': 'Affichage de votre sprite. Définissez frames > 1 pour faire défiler une planche de sprites horizontale.',
'pet.fieldFrames': 'Frames',
'pet.fieldFramesHint': '1 = statique. > 1 = planche de sprites horizontale.',
'pet.fieldFps': 'Vitesse (fps)',
'pet.fieldFpsHint': 'À quelle vitesse les frames défilent.',
'pet.atlasImport': 'Importer un sprite Codex',
'pet.atlasImportTitle': 'Importer un atlas de pet 8×9 / 192×208 (PNG ou WebP).',
'pet.atlasPickerTitle': 'Choisir une rangée d\'animation',
'pet.atlasPickerHint': 'Les pets Codex sont livrés avec 9 rangées d\'animation. Par défaut, nous gardons l\'atlas complet pour que le pet change de rangée au survol, au glisser et à l\'inactivité. Vous pouvez aussi le figer sur une seule boucle.',
'pet.atlasCancel': 'Abandonner l\'atlas',
'pet.atlasAdopt': 'Figer sur cette rangée',
'pet.atlasAdoptFull': 'Utiliser l\'atlas complet (animé)',
'pet.atlasAdoptFullTitle': 'Garder chaque rangée pour que le pet réagisse au survol, à la direction du glisser et aux longues inactivités.',
'pet.atlasAdoptRowTitle': 'Découper uniquement la rangée sélectionnée en une seule bande en boucle.',
'pet.atlasActiveHint': 'Atlas animé actif — le pet choisit une rangée selon votre interaction (survol, glisser, inactivité).',
'pet.atlasRow.idle': 'Inactif',
'pet.atlasRow.running-right': 'Court à droite',
'pet.atlasRow.running-left': 'Court à gauche',
'pet.atlasRow.waving': 'Salut',
'pet.atlasRow.jumping': 'Saut',
'pet.atlasRow.failed': 'Échec',
'pet.atlasRow.waiting': 'Attente',
'pet.atlasRow.running': 'Course',
'pet.atlasRow.review': 'Révision',
'pet.hatchTitle': 'Faire éclore un nouveau compagnon avec l\'IA',
'pet.hatchHint': 'Utilisez la compétence hatch-pet intégrée dans le chat pour générer une planche de sprites style Codex, puis importez-la ici.',
'pet.hatchConcept': 'Concept du compagnon (optionnel)',
'pet.hatchConceptPlaceholder': 'ex. un petit shiba pixel art dans un pull douillet',
'pet.hatchCopy': 'Copier le prompt',
'pet.hatchCopied': 'Copié !',
'pet.hatchFoot': 'Une fois que la compétence a enregistré votre compagnon, revenez et choisissez « Importer un sprite Codex ».',
'pet.slashPopoverAria': 'Commandes slash',
'pet.slashPopoverTitle': 'Commandes',
'pet.slashPopoverHint': '↑↓ naviguer · entrée pour choisir · échap pour fermer',
'pet.slashPet': 'Basculer, adopter ou aller aux paramètres du compagnon.',
'pet.slashPetWake': 'Réveiller l\'overlay flottant du compagnon.',
'pet.slashPetTuck': 'Cacher le compagnon pour l\'instant.',
'pet.slashHatch': 'Générer un pet Codex via la compétence hatch-pet.',
'pet.slashHatchArg': '<concept>',
'pet.codexTitle': 'Éclos récemment',
'pet.codexSubtitle': 'Les pets empaquetés par la compétence hatch-pet apparaissent ici pour une adoption en un clic.',
'pet.codexSubtitleWithDir': 'Analyse de {dir} pour les pets empaquetés par la compétence hatch-pet.',
'pet.codexEmpty': 'Aucun pet éclos pour l\'instant. Tapez /hatch dans le chat pour en générer un.',
'pet.codexLoading': 'Recherche de pets éclos…',
'pet.codexRefresh': 'Actualiser',
'pet.codexAdopt': 'Adopter',
'pet.codexAdopting': 'Adoption…',
'pet.communitySync': 'Télécharger les pets de la communauté',
'pet.communitySyncing': 'Téléchargement…',
'pet.communitySyncTitle': 'Synchroniser les derniers pets de Codex Pet Share + j20 Hatchery dans ~/.codex/pets/.',
'pet.communitySyncDone': '{wrote} nouveaux pets synchronisés ({total} au total).',
'pet.communitySyncFailed': 'Échec de la synchronisation : {error}',
'pet.codexBundled': 'Fourni',
'pet.codexBundledTitle': 'Livré avec Open Design — aucun téléchargement nécessaire.',
'settings.notifications': 'Notifications',
'settings.notificationsHint': 'Son et notification bureau à la fin d\'une tâche',
'settings.notifyCompletionSound': 'Son de fin',
'settings.notifyCompletionSoundHint': 'Joué quand un tour se termine. Désactivé par défaut.',
'settings.notifySuccessSound': 'Son de succès',
'settings.notifyFailureSound': 'Son d\'échec',
'settings.notifyDesktop': 'Notification bureau',
'settings.notifyDesktopHint': 'Envoyée lorsque la fenêtre n\'est pas active.',
'settings.notifyDesktopBlocked': 'Notifications bloquées par le navigateur. Autorisez-les dans les paramètres du site.',
'settings.notifyDesktopUnsupported': 'Notifications bureau indisponibles dans cet environnement.',
'settings.notifyTest': 'Envoyer un test',
'settings.notifyTestSent': 'Notification de test envoyée. Si aucune bannière n\'apparaît, vérifiez les paramètres de notification du navigateur et du système.',
'settings.notifyTestFailed': 'L\'appel de notification a échoué. Vérifiez les paramètres de notification du navigateur et du système.',
'settings.notifySoundDing': 'Ding',
'settings.notifySoundChime': 'Carillon',
'settings.notifySoundTwoToneUp': 'Bitonale montante',
'settings.notifySoundPluck': 'Pizzicato',
'settings.notifySoundBuzz': 'Buzz',
'settings.notifySoundTwoToneDown': 'Bitonale descendante',
'settings.notifySoundThud': 'Sourd',
'settings.library': 'Compétences et systèmes de design',
'settings.libraryHint': 'Parcourir, prévisualiser et activer/désactiver votre bibliothèque de contenus',
'settings.librarySkills': 'Compétences',
'settings.libraryDesignSystems': 'Systèmes de design',
'settings.librarySearch': 'Rechercher...',
'settings.libraryAll': 'Tout',
'settings.libraryPreview': 'Aperçu',
'settings.libraryPreviewClose': 'Fermer',
'settings.libraryLoading': 'Chargement...',
'settings.libraryNoResults': 'Aucun élément ne correspond à votre recherche.',
'settings.libraryEnabled': 'Activé',
'settings.libraryDisabled': 'Désactivé',
'settings.libraryToggleLabel': 'Basculer',
'notify.successTitle': 'Tâche terminée',
'notify.failureTitle': 'Tâche échouée',
'notify.successBody': 'Un tour est terminé.',
'notify.failureBody': 'La tâche s\'est terminée avec une erreur.',
};
+963
View File
@@ -0,0 +1,963 @@
import { en } from './en';
import type { Dict } from '../types';
export const hu: Dict = {
...en,
'common.cancel': 'Mégse',
'common.save': 'Mentés',
'common.close': 'Bezárás',
'common.delete': 'Törlés',
'common.rename': 'Átnevezés',
'common.preview': 'Előnézet',
'common.share': 'Megosztás',
'common.search': 'Keresés',
'common.searchEllipsis': 'Keresés…',
'common.loading': 'Betöltés…',
'common.all': 'Összes',
'common.none': 'Nincs',
'common.default': 'Alapértelmezett',
'common.installed': 'telepítve',
'common.notInstalled': 'nincs telepítve',
'common.active': 'aktív',
'common.offline': 'offline',
'common.selected': 'kiválasztva',
'common.create': 'Létrehozás',
'common.openPreview': 'Előnézet megnyitása',
'common.exitFullscreen': 'Kilépés a teljes képernyőből',
'common.fullscreen': 'Teljes képernyő',
'common.openInNewTab': 'Megnyitás új lapon',
'common.exportPdf': 'Exportálás PDF-ként',
'common.exportZip': 'Letöltés .zip-ként',
'common.exportHtml': 'Exportálás önálló HTML-ként',
'common.justNow': 'az imént',
'common.minutesAgo': '{n} perce',
'common.hoursAgo': '{n} órája',
'common.daysAgo': '{n} napja',
'common.now': 'most',
'common.minutesShort': '{n}p',
'common.hoursShort': '{n}ó',
'common.daysShort': '{n}n',
'common.untitled': 'Cím nélkül',
'app.brand': 'Open Design',
'app.brandPill': 'Kutatási előzetes',
'app.brandSubtitle': 'a Nexu Labs-tól',
'app.welcomeLoading': 'Munkaterület betöltése…',
'settings.welcomeKicker': 'Üdvözlünk',
'settings.welcomeTitle': 'Open Design beállítása',
'settings.welcomeSubtitle':
'Válaszd ki, hogyan szeretnéd futtatni a generálásokat. Ezt bármikor módosíthatod a felső sáv Beállítások gombjával.',
'settings.kicker': 'Beállítások',
'settings.title': 'Végrehajtás és modell',
'settings.subtitle': 'Válassz helyi CLI és BYOK között. Az API-kulcs csak ebben a böngészőben tárolódik.',
'settings.modeAria': 'Végrehajtási mód',
'settings.protocolAria': 'API protokoll',
'settings.modeDaemon': 'Helyi CLI',
'settings.modeDaemonHelp': 'Futtatás a gépeden lévő code-agent CLI-n keresztül',
'settings.modeDaemonOffline': 'A daemon nem fut',
'settings.modeDaemonOfflineMeta': 'a daemon offline',
'settings.modeDaemonInstalledMeta': '{count} telepítve',
'settings.modeApi': 'API-szolgáltató',
'settings.modeApiMeta': 'BYOK',
'settings.codeAgent': 'Code agent',
'settings.codeAgentHint':
'A PATH átvizsgálásával észlelve. Válaszd ki a CLI-t, amelyen át a generálásokat szeretnéd futtatni.',
'settings.rescan': '↻ Újraellenőrzés',
'settings.rescanTitle': 'PATH újraellenőrzése',
'settings.rescanRunning': 'Ellenőrzés...',
'settings.rescanSuccess': 'Ellenőrzés kész. {count} elérhető.',
'settings.rescanFailed': 'Az ellenőrzés sikertelen. Ellenőrizd a daemont, majd próbáld újra.',
'settings.noAgentsDetected':
'Még nincs észlelt ügynök. Telepítsd a Claude Code, Codex, Devin for Terminal, Gemini CLI, OpenCode, Cursor Agent, Qwen vagy GitHub Copilot CLI valamelyikét, majd kattints az Újraellenőrzésre.',
'settings.apiSection': 'Anthropic API',
'settings.quickFillProvider': 'Szolgáltató gyors kitöltése',
'settings.customProvider': 'Egyéni szolgáltató',
'settings.apiKey': 'API-kulcs',
'settings.showKey': 'Kulcs megjelenítése',
'settings.hideKey': 'Kulcs elrejtése',
'settings.show': 'Megjelenítés',
'settings.hide': 'Elrejtés',
'settings.model': 'Modell',
'settings.suggestedModelsHint':
'Ezek a protokollhoz javasolt modellek. A szolgáltatód más modelleket is támogathat.',
'settings.baseUrl': 'Base URL',
'settings.baseUrlInvalid': 'Adj meg egy érvényes nyilvános http:// vagy https:// URL-t. A localhost engedélyezett; a privát hálózati IP-k blokkolva vannak.',
'settings.azureDeploymentModel': 'Deployment név',
'settings.azureDeploymentModelHint':
'Azure OpenAI esetén ez a mező a /openai/deployments/<model> deployment neveként szerepel. Add meg az Azure-ban létrehozott deployment nevét.',
'settings.apiVersion': 'API-verzió',
'settings.maxTokens': 'Max tokenek (opcionális)',
'settings.maxTokensHint':
'A válasz hosszának felső határa. Minden modellnek van hangolt alapértelmezése (placeholderként látható); hagyd üresen az alkalmazásához, vagy adj meg számot a felülíráshoz.',
'settings.apiHint': 'A hívások a helyi daemon proxyn keresztül mennek a beállított Base URL-re. A kulcs csak ebben a böngészőben tárolódik, és a szolgáltatói kérésekkel együtt kerül elküldésre.',
'settings.skipForNow': 'Most kihagyom',
'settings.getStarted': 'Kezdjük',
'settings.envConfigure': 'Végrehajtási mód beállítása',
'settings.localCli': 'Helyi CLI',
'settings.anthropicApi': 'Anthropic API',
'settings.noAgentSelected': 'nincs kiválasztott ügynök',
'settings.language': 'Nyelv',
'settings.languageHint': 'A felület nyelvének váltása. Ebben a böngészőben mentve.',
'settings.appearance': 'Megjelenés',
'settings.appearanceHint': 'Válassz világos, sötét, vagy kövesd a rendszer beállítását.',
'settings.themeSystem': 'Rendszer',
'settings.themeLight': 'Világos',
'settings.themeDark': 'Sötét',
'settings.modelPicker': 'Modell',
'settings.reasoningPicker': 'Gondolkodási erőfeszítés',
'settings.modelPickerHint':
'A CLI-tól kérdezi le, ha az közzéteszi a `models` parancsot. Az „Alapértelmezett" a CLI saját konfigjára bízza a választást; az „Egyedi…" tetszőleges, a CLI által elfogadott modell-id-t enged megadni.',
'settings.cliEnvTitle': 'CLI config locations',
'settings.cliEnvHint':
'Set non-secret config directories for packaged app runs and agent detection.',
'settings.cliEnvClaudeConfigDir': 'Claude Code config dir',
'settings.cliEnvCodexHome': 'Codex home',
'settings.modelCustom': 'Egyedi (gépeld be alább)…',
'settings.modelCustomLabel': 'Egyedi modell-id',
'settings.modelCustomPlaceholder': 'pl. anthropic/claude-sonnet-4-6',
'settings.mediaProviders': 'Média-szolgáltatók',
'settings.mediaProvidersHint':
'API-kulcsok kép-, videó- és hanggeneráláshoz. Helyben tárolva, és a helyi daemonnal szinkronizálva.',
'settings.mediaProviderApiKey': 'API-kulcs',
'settings.mediaProviderBaseUrl': 'Bázis URL',
'settings.mediaProviderConfigured': 'Beállítva',
'settings.mediaProviderUnset': 'Nincs beállítva',
'settings.mediaProviderClear': 'Törlés',
'settings.mediaProviderPlaceholder': 'API-kulcs beillesztése',
'settings.mediaProviderBaseUrlPlaceholder': 'Alapértelmezett bázis URL felülírása',
'settings.about': 'Névjegy',
'settings.aboutHint': 'Verzió- és futtatókörnyezeti adatok',
'settings.appVersion': 'Verzió',
'settings.appChannel': 'Csatorna',
'settings.appRuntime': 'Futtatókörnyezet',
'settings.appPlatform': 'Platform',
'settings.appArchitecture': 'Architektúra',
'settings.runtimePackaged': 'Csomagolt alkalmazás',
'settings.runtimeDevelopment': 'Fejlesztői',
'settings.versionUnavailable': 'A verzió adatai nem érhetők el, amíg a daemon offline.',
'entry.tabDesigns': 'Tervek',
'entry.tabExamples': 'Példák',
'entry.tabDesignSystems': 'Designrendszerek',
'entry.tabConnectors': 'Kapcsolók',
'entry.openSettingsTitle': 'Beállítások',
'entry.openSettingsAria': 'Beállítások megnyitása',
'entry.resizeAria': 'Oldalsáv átméretezése',
'entry.loadingWorkspace': 'Munkaterület betöltése…',
'entry.tabImageTemplates': 'Képsablonok',
'entry.tabVideoTemplates': 'Videósablonok',
'promptTemplates.searchPlaceholder': 'Sablonok keresése…',
'promptTemplates.countLabel': '{n} találat',
'promptTemplates.emptyImage': 'Még nincs telepített képsablon.',
'promptTemplates.emptyVideo': 'Még nincs telepített videósablon.',
'promptTemplates.emptyNoMatch': 'Egy sablon sem felel meg a keresésnek.',
'promptTemplates.attributionFooter': 'Nyilvános prompt-tárakból átvéve. Minden kártya az eredeti szerzőre mutat.',
'promptTemplates.openPreviewTitle': 'Prompt és előnézet megnyitása',
'promptTemplates.sourcePrefix': 'Forrás:',
'promptTemplates.fetchError': 'A sablon törzse nem tölthető be.',
'promptTemplates.promptLabel': 'Prompt törzse',
'promptTemplates.copyPrompt': 'Prompt másolása',
'promptTemplates.copyDone': 'Másolva!',
'promptTemplates.modelHint': 'Ajánlott modell: {model}',
'promptTemplates.openSource': 'Eredeti megnyitása',
'promptTemplates.openFullscreen': 'Teljes képernyős előnézet',
'promptTemplates.closeFullscreen': 'Teljes képernyős előnézet bezárása',
'promptTemplates.allSources': 'Minden forrás',
'promptTemplates.sourceFilterAria': 'Szűrés forrás szerint',
'promptTemplates.retry': 'Újra',
'connectors.title': 'Kapcsolók',
'connectors.subtitle': 'Helyi és jövőbeli adatforrások, amelyek élő artefaktokat táplálhatnak.',
'connectors.account': 'Fiók',
'connectors.noAccount': 'Nincs csatlakoztatva',
'connectors.tools': 'Eszközök',
'connectors.connect': 'Csatlakozás',
'connectors.disconnect': 'Leválasztás',
'connectors.configure': 'Beállítás',
'connectors.unavailable': 'Nem érhető el',
'connectors.phaseStubTitle': 'A kapcsoló API-k a 3. fázisban érkeznek; ez csak előnézet.',
'connectors.statusAvailable': 'Elérhető',
'connectors.statusConnected': 'Csatlakoztatva',
'connectors.statusError': 'Hiba',
'connectors.statusDisabled': 'Letiltva',
'connectors.gateTitle': 'Először állítsd be a Composio API-kulcsot',
'connectors.gateBody': 'A kapcsolókhoz Composio API-kulcs kell. Add meg a beállításokban az elérhető integrációk engedélyezéséhez.',
'connectors.gateAction': 'Beállítások megnyitása',
'connectors.aboutLabel': 'Névjegy',
'connectors.detailsLabel': 'Részletek',
'connectors.statusLabel': 'Állapot',
'connectors.categoryLabel': 'Kategória',
'connectors.providerLabel': 'Szolgáltató',
'connectors.toolsSection': 'Eszközök',
'connectors.toolsLoading': 'Eszközök betöltése…',
'connectors.noToolsAvailable': 'Még nincs elérhető eszköz. Csatlakozás után megjelennek ennek az integrációnak a képességei.',
'connectors.openDetailsAria': '{name} részleteinek megnyitása',
'connectors.toolsBadgeNone': 'Nincs eszköz',
'connectors.toolsBadgeOne': '{n} eszköz',
'connectors.toolsBadgeMany': '{n} eszköz',
'connectors.searchPlaceholder': 'Kapcsolók keresése…',
'connectors.searchAriaLabel': 'Kapcsolók keresése név, szolgáltató vagy eszköz alapján',
'connectors.searchClear': 'Keresés törlése',
'connectors.emptyNoMatchTitle': 'Nincs „{query}” kifejezésre illeszkedő kapcsoló',
'connectors.emptyNoMatchBody': 'Próbálj más kulcsszót, vagy töröld a keresést a teljes katalógushoz.',
'connectors.emptyNoMatchAction': 'Keresés törlése',
'newproj.tabPrototype': 'Prototípus',
'newproj.tabDeck': 'Diavetítés',
'newproj.tabTemplate': 'Sablonból',
'newproj.tabOther': 'Egyéb',
'newproj.titlePrototype': 'Új prototípus',
'newproj.titleDeck': 'Új diavetítés',
'newproj.titleTemplate': 'Indulás sablonból',
'newproj.titleImage': 'Új kép',
'newproj.titleVideo': 'Új videó',
'newproj.titleAudio': 'Új hang',
'newproj.titleOther': 'Új projekt',
'newproj.namePlaceholder': 'Projekt neve',
'newproj.fidelityLabel': 'Részletesség',
'newproj.fidelityWireframe': 'Wireframe',
'newproj.fidelityHigh': 'Részletes',
'newproj.toggleSpeakerNotes': 'Előadói jegyzetek használata',
'newproj.toggleSpeakerNotesHint': 'Kevesebb szöveg a diákon — a beszédpontok a jegyzetekbe kerülnek.',
'newproj.toggleAnimations': 'Animációk hozzáadása',
'newproj.toggleAnimationsHint':
'Mozgás (belépés, hover, átmenetek) hozzáadása a sablonra.',
'newproj.templateLabel': 'Sablon',
'newproj.noTemplatesTitle': 'Még nincs sablon',
'newproj.noTemplatesBody':
'Nyiss meg egy projektet, majd a fájlnézőben a Megosztás menüvel alakítsd sablonná. A sablonok itt jelennek meg.',
'newproj.savedTemplate': 'Mentett sablon',
'newproj.fileSingular': 'fájl',
'newproj.filePlural': 'fájl',
'newproj.create': 'Létrehozás',
'newproj.createFromTemplate': 'Létrehozás sablonból',
'newproj.createDisabledTitle':
'Először ments el egy projektet sablonként (bármely projekt Megosztás menüjéből).',
'newproj.importClaudeZip': 'Claude Design ZIP importálása',
'newproj.importClaudeZipTitle': 'Claude Design .zip export importálása',
'newproj.importingClaudeZip': 'Importálás…',
'newproj.privacyFooter': 'Alapértelmezetten csak te láthatod a projekted.',
'newproj.designSystem': 'Designrendszer',
'newproj.dsNoneFreeform': 'Nincs — szabad formátum',
'newproj.dsNoneSubtitleEmpty': 'Nincsenek rendszertokenek, válassz saját palettát',
'newproj.dsNoneSubtitleSelected': 'Hagyd ki a rendszertokeneket. Az ügynök maga választ palettát.',
'newproj.dsCategoryFallback': 'Designrendszer',
'newproj.dsSearch': 'Designrendszerek keresése…',
'newproj.dsModeAria': 'Kijelölési mód',
'newproj.dsModeSingle': 'Egy',
'newproj.dsModeMulti': 'Több',
'newproj.dsNoneTitle': 'Nincs — szabad formátum',
'newproj.dsNoneSub': 'Hagyd ki a rendszertokeneket. Az ügynök maga választ palettát.',
'newproj.dsEmpty': 'Egy designrendszer sem felel meg a „{query}" keresésnek.',
'newproj.dsFootSingular': 'csak inspiráció.',
'newproj.dsFootPlural': 'csak inspiráció.',
'newproj.dsFootClear': 'Törlés',
'newproj.dsBadgeDefault': 'ALAPÉRT.',
'newproj.dsPrimaryFallback': 'Elsődleges',
'newproj.surfaceImage': 'Kép',
'newproj.surfaceVideo': 'Videó',
'newproj.surfaceAudio': 'Hang',
'newproj.modelLabel': 'Modell',
'newproj.aspectLabel': 'Képarány',
'newproj.imageStyleLabel': 'Stílusjegyzetek',
'newproj.imageStylePlaceholder': 'Magazinszerű fotó, lágy nappali fény, tompa paletta',
'newproj.videoLengthLabel': 'Hossz',
'newproj.videoLengthSeconds': '{n} mp',
'newproj.audioKindLabel': 'Hangtípus',
'newproj.audioKindMusic': 'Zene',
'newproj.audioKindSpeech': 'Beszéd / TTS',
'newproj.audioKindSfx': 'Hangeffekt',
'newproj.audioDurationLabel': 'Időtartam',
'newproj.audioDurationSeconds': '{n} mp',
'newproj.voiceLabel': 'Hang',
'newproj.voicePlaceholder': 'Szolgáltatói hang-id, opcionális',
'newproj.connectorsLabel': 'Kapcsolók',
'newproj.connectorsHint': 'Adatforrások, amelyeket ez az artefaktum használhat.',
'newproj.connectorsEmptyTitle': 'Nincs beállított kapcsoló',
'newproj.connectorsEmptyBody': 'Csatlakoztass egy adatforrást, hogy az élő artefaktum valódi adatokat használjon helykitöltők helyett.',
'newproj.connectorsEmptyCta': 'Kapcsolók beállítása →',
'newproj.connectorsLoading': 'Kapcsolók betöltése…',
'newproj.connectorsCountOne': '{n} csatlakoztatva',
'newproj.connectorsCountMany': '{n} csatlakoztatva',
'newproj.connectorsManage': 'Kezelés',
'newproj.promptTemplateLabel': 'Hivatkozási sablon',
'newproj.promptTemplateNoneTitle': 'Nincs — saját megfogalmazás',
'newproj.promptTemplateNoneSub': 'Hagyd ki a galériát, írd le a saját brieffed',
'newproj.promptTemplateRefSub': 'Hivatkozási sablon',
'newproj.promptTemplateSearch': 'Sablonok keresése…',
'newproj.promptTemplateEmpty': 'Még nincs telepített sablon ehhez a felülethez.',
'newproj.promptTemplateBodyLabel': 'Prompt (módosítható)',
'newproj.promptTemplateOptimizeHint':
'Bármit módosíthatsz — a változtatásaid beépülnek az ügynök briefjébe.',
'newproj.promptTemplateBodyEmpty':
'Üres törzs — az ügynök nem kap sablonhivatkozást.',
'designs.subRecent': 'Legutóbbi',
'designs.subYours': 'A te terveid',
'designs.filterAria': 'Projektek szűrése',
'designs.searchPlaceholder': 'Keresés…',
'designs.emptyNoProjects': 'Még nincs projekt. Hozz létre egyet a bal oldalon.',
'designs.emptyNoMatch': 'Egy projekt sem felel meg a keresésnek.',
'designs.deleteTitle': 'Projekt törlése',
'designs.deleteConfirm': 'Törlöd a(z) „{name}" projektet?',
'designs.cardFreeform': 'szabad formátum',
'designs.status.notStarted': 'Nem kezdődött el',
'designs.status.queued': 'Sorban',
'designs.status.running': 'Fut',
'designs.status.awaitingInput': 'Bevitelre vár',
'designs.status.succeeded': 'Befejezve',
'designs.status.failed': 'Sikertelen',
'designs.status.canceled': 'Megszakítva',
'designs.viewToggleAria': 'Nézet módja',
'designs.viewGrid': 'Rácsnézet',
'designs.viewKanban': 'Tábla nézet',
'designs.kanbanEmptyColumn': 'Nincs terv',
'designs.deleteAria': '{name} projekt törlése',
'examples.typeLabel': 'Típus',
'examples.surfaceLabel': 'Felület',
'examples.surfaceWeb': 'Web',
'examples.surfaceImage': 'Kép',
'examples.surfaceVideo': 'Videó',
'examples.surfaceAudio': 'Hang',
'examples.scenarioLabel': 'Forgatókönyv',
'examples.modeAll': 'Mind',
'examples.modePrototypeDesktop': 'Prototípusok · Asztali',
'examples.modePrototypeMobile': 'Prototípusok · Mobil',
'examples.modeDeck': 'Diák',
'examples.modeDocument': 'Dokumentumok és sablonok',
'examples.modeOrbit': 'Orbit',
'examples.scenarioGeneral': 'Általános',
'examples.scenarioEngineering': 'Mérnöki',
'examples.scenarioProduct': 'Termék',
'examples.scenarioDesign': 'Design',
'examples.scenarioMarketing': 'Marketing',
'examples.scenarioSales': 'Értékesítés',
'examples.scenarioFinance': 'Pénzügy',
'examples.scenarioHr': 'HR',
'examples.scenarioOperations': 'Operáció',
'examples.scenarioSupport': 'Ügyfélszolgálat',
'examples.scenarioLegal': 'Jogi',
'examples.scenarioEducation': 'Oktatás',
'examples.scenarioPersonal': 'Személyes',
'examples.emptyNoSkills': 'Nincs elérhető skill. Fut a daemon?',
'examples.searchPlaceholder': 'Példák keresése…',
'examples.searchAria': 'Példák keresése név alapján',
'examples.emptyNoMatch': 'Egy példa sem felel meg ezeknek a szűrőknek.',
'examples.openPreview': '⤢ Előnézet megnyitása',
'examples.loadingPreview': 'Előnézet betöltése…',
'examples.hoverPreview': 'Vidd fölé az egeret az előnézethez',
'examples.usePrompt': 'Használd ezt a promptot',
'examples.previewModalTitle': 'Teljes előnézet (modális)',
'examples.shareTitle': 'Példa megosztása',
'examples.shareLoadFirst': 'Vidd fölé az egeret az előnézet betöltéséhez',
'examples.shareMenu': 'Megosztás ▾',
'examples.exportPdfAllSlides': 'Exportálás PDF-ként (minden dia)',
'examples.exportPptxLocked': 'Exportálás PPTX-ként… (előbb sablont nyiss)',
'examples.tagSlideDeck': 'Diavetítés',
'examples.tagTemplate': 'Sablon',
'examples.tagDesignSystem': 'Designrendszer',
'examples.tagMobilePrototype': 'Mobil prototípus',
'examples.tagDesktopPrototype': 'Asztali prototípus',
'examples.tagImage': 'Kép',
'examples.tagVideo': 'Videó',
'examples.tagAudio': 'Hang',
'examples.previewLabel': 'Előnézet',
'ds.surfaceLabel': 'Felület',
'ds.surfaceWeb': 'Web',
'ds.surfaceImage': 'Kép',
'ds.surfaceVideo': 'Videó',
'ds.surfaceAudio': 'Hang',
'ds.searchPlaceholder': 'Designrendszerek keresése…',
'ds.emptyNoMatch': 'Egy designrendszer sem felel meg a keresésnek.',
'ds.badgeDefault': 'ALAPÉRT.',
'ds.preview': 'Előnézet',
'ds.previewTitle': 'Designrendszer előnézete',
'ds.categoryAll': 'Mind',
'ds.categoryUncategorized': 'Kategorizálatlan',
'ds.showcase': 'Bemutató',
'ds.tokens': 'Tokenek',
'ds.specToggle': 'DESIGN.md',
'ds.specLoading': 'DESIGN.md betöltése…',
'avatar.title': 'Fiók és beállítások',
'avatar.localCli': 'Helyi CLI',
'avatar.anthropicApi': 'Anthropic API',
'avatar.useLocal': 'Helyi CLI használata',
'avatar.useApi': 'API · BYOK használata',
'avatar.codeAgent': 'Kód-ügynök',
'avatar.rescan': 'PATH újraellenőrzése',
'avatar.settings': 'Beállítások',
'avatar.backToProjects': 'Vissza a projektekhez',
'avatar.metaActive': 'aktív',
'avatar.metaOffline': 'offline',
'avatar.metaSelected': 'kiválasztva',
'avatar.noAgentSelected': 'nincs kiválasztott ügynök',
'avatar.modelSection': 'Modell',
'avatar.modelLabel': 'Modell',
'avatar.reasoningLabel': 'Gondolkodás',
'avatar.customSuffix': '(egyedi)',
'project.backToProjects': 'Vissza a projektekhez',
'project.metaFreeform': 'szabad formátum',
'project.resizeChatPanel': 'Csevegőpanel átméretezése',
'chat.tabChat': 'Csevegés',
'chat.tabComments': 'Megjegyzések',
'chat.commentsSoon': 'Megjegyzések — hamarosan',
'chat.comments.attached': 'Attached to chat',
'chat.comments.emptyAttached': 'No comments attached.',
'chat.comments.saved': 'Saved comments',
'chat.comments.emptySaved': 'No saved comments.',
'chat.comments.add': 'Add',
'chat.comments.addAll': 'Add all',
'chat.comments.remove': 'Remove',
'chat.comments.placeholder': 'Comment on this element…',
'chat.comments.addSend': 'Add & send',
'chat.comments.updateSend': 'Update & send',
'chat.comments.removeAttachment': 'Remove comment attachment',
'chat.comments.removeAttachmentAria': 'Remove comment attachment for {name}',
'chat.conversationsTitle': 'Beszélgetések',
'chat.conversationsAria': 'Beszélgetések előzménye',
'chat.newConversation': 'Új beszélgetés',
'chat.newConversationsTitle': 'Új beszélgetés',
'chat.conversationsHeading': 'Beszélgetések',
'chat.new': 'Új',
'chat.emptyConversations': 'Még nincs beszélgetés.',
'chat.deleteConversation': 'Beszélgetés törlése',
'chat.deleteConversationConfirm':
'Törlöd a(z) „{title}" beszélgetést? Ez eltávolítja az üzeneteit.',
'chat.untitledConversation': 'Cím nélküli beszélgetés',
'chat.startTitle': 'Indíts beszélgetést',
'chat.startHint':
'Húzz vagy illessz be képeket vizuális hivatkozásként, vagy gépelj @-et a projekt egy fájljának csatolásához. Vagy próbáld ki ezeket a kezdéseket:',
'chat.fillInputTitle': 'Kattints a beviteli mező kitöltéséhez',
'chat.jumpToLatest': 'Ugrás a legutóbbira',
'chat.scrollToLatest': 'Görgetés a legutóbbira',
'chat.you': 'Te',
'chat.openFile': '{name} megnyitása',
'chat.composerPlaceholder':
'Írd le a kívánt designt — illessz be vagy húzz képeket, vagy @-tel hivatkozz fájlra…',
'chat.composerHint':
'⌘/Ctrl + Enter: küldés · képek beillesztése · @ fájlra hivatkozás',
'chat.cliSettingsTitle': 'CLI- és modellbeállítások',
'chat.cliSettingsAria': 'CLI- és modellbeállítások megnyitása',
'chat.attachTitle': 'Fájlok csatolása (vagy beillesztés / húzás)',
'chat.attachAria': 'Fájlok csatolása',
'chat.importTitle': 'Források importálása (hamarosan)',
'chat.importLabel': 'Importálás',
'chat.importComingSoon': 'Hamarosan',
'chat.importSoon': 'Hamarosan',
'chat.importFig': '.fig fájl feltöltése',
'chat.importGitHub': 'GitHub csatlakoztatása',
'chat.importWeb': 'Webelem mentése',
'chat.importFolder': 'Kódmappa hozzákapcsolása',
'chat.importSkills': 'Skillek és designrendszerek',
'chat.importProject': 'Reference another project',
'chat.linkedFolderRemoveAria': 'Hozzákapcsolt mappa eltávolítása {path}',
'chat.linkedFolderNotFound': 'A mappa nem létezik',
'chat.linkedFolderAlready': 'Ez a mappa már hozzá van kapcsolva',
'chat.linkedFolderPickError': 'Nem sikerült megnyitni a mappaválasztót',
'chat.send': 'Küldés',
'chat.stop': 'Leállítás',
'chat.removeAria': '{name} eltávolítása',
'chat.example1Title': 'Magazinszerű pitch deck',
'chat.example1Tag': 'Magazin',
'chat.example1Prompt':
'Egy 10 diás magazinszerű pitch deck egy designstúdió seed köréhez — svájci rácselrendezés, túlméretezett serif címsorok félkövér drop capekkel, monospace szakaszszámok, bőséges üres tér, és teljes kihasználású fotódiák szövegközpontú diákkal váltakozva. Borító, vízió, piac, termék, eredmények, csapat, kérés, kapcsolat.',
'chat.example2Title': 'SaaS analitikai dashboard',
'chat.example2Tag': 'Adat',
'chat.example2Prompt':
'Sűrű analitikai dashboard fejlesztői SaaS-hez — KPI-csík hét/hét deltákkal, két egymásra rakott vonaldiagram (MRR és aktív munkaterületek), világtérképes hőtérkép a használatról, kohorsz-megtartási rács, top-ügyfelek ranglista, és valós idejű eseménystream. Sötét téma, táblázatos monospace számok, sparkline akcentusok.',
'chat.example3Title': 'Éves jelentés long-scroll',
'chat.example3Tag': 'Magazinszerű',
'chat.example3Prompt':
'Interaktív éves jelentés egy klíma-non-profitnak — long-scroll magazinszerű elrendezés, nagy kiemelt-idézet blokkokkal, adatvizualizációkkal (egymásra rakott oszlopok, animált számlálók, projekthelyek choropleth térképe), fotó-megszakítókkal, donor fallal, és záró cselekvésre hívással. Modern serif törzs, sans-serif diagramcímkék, földes papírpaletta.',
'preview.shareMenu': 'Megosztás ▾',
'preview.openInNewTab': 'Megnyitás új lapon',
'preview.exit': '⤓ Kilépés',
'preview.fullscreen': '⤢ Teljes képernyő',
'preview.closeTitle': 'Bezárás (Esc)',
'preview.loading': '{label} betöltése…',
'preview.showSidebar': '{label} megjelenítése',
'preview.hideSidebar': '{label} elrejtése',
'misc.savedTemplate': 'Mentett sablon',
'misc.primary': 'Elsődleges',
'misc.designSystem': 'Designrendszer',
'workspace.designFiles': 'Designfájlok',
'workspace.focusMode': 'Focus workspace',
'workspace.showChat': 'Show chat',
'workspace.closeTab': 'Lap bezárása',
'workspace.deleteFileConfirm': 'Törlöd a(z) „{name}" fájlt a projektmappából?',
'workspace.openFromDesignFiles': 'Nyiss meg egy fájlt innen:',
'workspace.designFilesLink': 'Designfájlok',
'workspace.loadingSketch': 'Vázlat betöltése…',
'designFiles.title': 'Designfájlok',
'designFiles.upload': 'Fájlok feltöltése',
'designFiles.pasteText': 'Beillesztés szövegfájlként',
'designFiles.newSketch': 'Új vázlat',
'designFiles.empty':
'Még nincs itt semmi. Húzz be fájlokat, vagy hozz létre vázlatot / illessz be szöveget.',
'designFiles.refresh': 'Frissítés',
'designFiles.delete': 'Törlés',
'designFiles.searchPlaceholder': 'Fájlok keresése…',
'designFiles.up': 'Fel',
'designFiles.back': 'Vissza',
'designFiles.crumbs': 'projekt',
'designFiles.rowMenu': 'Sor menü',
'designFiles.openInTab': 'Megnyitás lapon',
'designFiles.download': 'Letöltés',
'designFiles.downloadSelected': 'Download {n} as ZIP',
'designFiles.clearSelection': 'Clear',
'designFiles.selectAll': 'Select all',
'designFiles.dropTitle': '⤓ Húzd ide a fájlokat',
'designFiles.dropDesc':
'Képek, dokumentumok, hivatkozások vagy mappák — az ügynök kontextusként használja őket.',
'designFiles.upload.title': 'Fájlok feltöltése',
'designFiles.paste.title': 'Szöveg beillesztése fájlként',
'designFiles.upload.label': 'Feltöltés',
'designFiles.paste.label': 'Beillesztés',
'designFiles.previewOpen': 'Megnyitás',
'designFiles.previewClose': 'Előnézet bezárása',
'designFiles.modified': 'Módosítva: {time} · {size}',
'designFiles.weeksAgo': '{n} hete',
'designFiles.sectionPages': 'Oldalak',
'designFiles.sectionScripts': 'Szkriptek',
'designFiles.sectionImages': 'Képek',
'designFiles.sectionSketches': 'Vázlatok',
'designFiles.sectionOther': 'Egyéb',
'designFiles.showMore': '+{n} további megjelenítése',
'designFiles.kindHtml': 'HTML oldal',
'designFiles.kindImage': 'Kép',
'designFiles.kindSketch': 'Vázlat',
'designFiles.kindText': 'Szöveg',
'designFiles.kindCode': 'Szkript',
'designFiles.kindPdf': 'PDF',
'designFiles.kindDocument': 'Dokumentum',
'designFiles.kindPresentation': 'Prezentáció',
'designFiles.kindSpreadsheet': 'Táblázat',
'designFiles.kindBinary': 'Bináris',
'quickSwitcher.placeholder': 'Fájl megnyitása…',
'quickSwitcher.empty': 'Nincsenek fájlok ebben a projektben',
'quickSwitcher.noMatches': 'Nincs találat',
'quickSwitcher.navigate': 'navigáció',
'quickSwitcher.open': 'megnyitás',
'quickSwitcher.close': 'bezárás',
'pasteDialog.title': 'Szöveg beillesztése',
'pasteDialog.hint': 'A projektmappába mentve. Bármilyen név adható.',
'pasteDialog.fileNameLabel': 'Fájlnév',
'pasteDialog.namePlaceholder': 'jegyzetek.txt',
'pasteDialog.contentLabel': 'Tartalom',
'pasteDialog.contentPlaceholder': 'Illessz be bármit…',
'pasteDialog.save': 'Mentés',
'pasteDialog.cancel': 'Mégse',
'sketch.save': 'Vázlat mentése',
'sketch.cancel': 'Mégse',
'sketch.saving': 'Mentés…',
'sketch.tooltipDirty': 'Mentetlen változtatások',
'sketch.tooltipClean': 'Mentve',
'fileViewer.empty': 'Válassz fájlt a megtekintéshez.',
'fileViewer.loading': 'Betöltés…',
'fileViewer.exportPptx': 'Exportálás PPTX-ként',
'fileViewer.openInNewTab': 'Megnyitás új lapon',
'fileViewer.copyPath': 'Útvonal másolása',
'fileViewer.copied': 'Másolva!',
'fileViewer.share': 'Megosztás',
'fileViewer.binaryMeta': 'Bináris · {size}',
'fileViewer.binaryNote':
'Bináris fájl ({size} bájt). A megtekintéshez töltsd le, vagy nyisd meg lemezről.',
'fileViewer.pdfMeta': 'PDF · {size}',
'fileViewer.documentMeta': 'Dokumentum',
'fileViewer.presentationMeta': 'Prezentáció',
'fileViewer.spreadsheetMeta': 'Táblázat',
'fileViewer.previewUnavailable': 'Előnézet nem elérhető. Töltsd le vagy nyisd meg a fájlt a megtekintéshez.',
'fileViewer.download': 'Letöltés',
'fileViewer.open': 'Megnyitás',
'fileViewer.imageMeta': 'Kép · {size}',
'fileViewer.reactMeta': 'React komponens · {size}',
'fileViewer.sketchMeta': 'Vázlat · {size}',
'fileViewer.markdownStreamingMeta': 'Streamelő előnézet…',
'fileViewer.markdownErrorMeta': 'Az előnézet hiányos lehet (generálási hiba).',
'fileViewer.markdownStreamingStatus': 'Streamelés… részleges markdownt mutatva.',
'fileViewer.markdownErrorStatus': 'Generálási hiba. Az utolsó elérhető tartalom látszik.',
'fileViewer.videoMeta': 'Videó · {size}',
'fileViewer.audioMeta': 'Hang · {size}',
'fileViewer.reload': 'Újratöltés',
'fileViewer.reloadDisk': 'Újratöltés lemezről',
'fileViewer.copy': 'Másolás',
'fileViewer.copyTitle': 'Fájltartalom másolása',
'fileViewer.saveDisabled': 'Mentés (csak olvasható nézet)',
'fileViewer.save': 'Mentés',
'fileViewer.preview': 'Előnézet',
'fileViewer.source': 'Forrás',
'fileViewer.tweaks': 'Finomhangolás',
'fileViewer.comment': 'Megjegyzés',
'fileViewer.edit': 'Szerkesztés',
'fileViewer.draw': 'Rajz',
'manualEdit.layers': "Layers",
'manualEdit.editableCount': "{count} editable",
'manualEdit.title': "Manual editor",
'manualEdit.selectLayer': "Select a layer",
'manualEdit.empty': "Click an element in the preview or choose a layer.",
'manualEdit.noClass': "no class",
'manualEdit.tabsAria': "Manual edit tabs",
'manualEdit.tabContent': "Content",
'manualEdit.tabStyle': "Style",
'manualEdit.tabAttributes': "Attributes",
'manualEdit.tabHtml': "Html",
'manualEdit.tabSource': "Source",
'manualEdit.attributesJson': "Attributes JSON",
'manualEdit.selectedHtml': "Selected element HTML",
'manualEdit.fullSource': "Full artifact source",
'manualEdit.applyContent': "Apply Content",
'manualEdit.applyStyle': "Apply Style",
'manualEdit.applyAttributes': "Apply Attributes",
'manualEdit.applyHtml': "Apply HTML",
'manualEdit.applySource': "Apply Source",
'manualEdit.invalidAttributes': "Invalid attributes JSON.",
'manualEdit.changes': "Changes",
'manualEdit.undo': "Undo",
'manualEdit.redo': "Redo",
'manualEdit.noChanges': "No manual edits yet.",
'manualEdit.imageUrl': "Image URL",
'manualEdit.altText': "Alt text",
'manualEdit.label': "Label",
'manualEdit.text': "Text",
'manualEdit.href': "Href",
'manualEdit.textColor': "Text color",
'manualEdit.background': "Background",
'manualEdit.fontSize': "Font size",
'manualEdit.weight': "Weight",
'manualEdit.align': "Align",
'manualEdit.padding': "Padding",
'manualEdit.margin': "Margin",
'manualEdit.radius': "Radius",
'manualEdit.border': "Border",
'manualEdit.width': "Width",
'manualEdit.minHeight': "Min height",
'fileViewer.zoomOut': 'Kicsinyítés',
'fileViewer.zoomIn': 'Nagyítás',
'fileViewer.resetZoom': 'Nagyítás visszaállítása',
'fileViewer.reloadAria': 'Újratöltés',
'fileViewer.previousSlide': 'Előző dia',
'fileViewer.nextSlide': 'Következő dia',
'fileViewer.slideNavAria': 'Dianavigáció',
'fileViewer.present': 'Bemutatás',
'fileViewer.presentInTab': 'Ezen a lapon',
'fileViewer.presentFullscreen': 'Teljes képernyő',
'fileViewer.presentNewTab': 'Új lap',
'fileViewer.exitPresentation': 'Bemutató bezárása',
'fileViewer.shareLabel': 'Megosztás',
'fileViewer.exportPdf': 'Exportálás PDF-ként',
'fileViewer.exportPdfAllSlides': 'Exportálás PDF-ként (minden dia)',
'fileViewer.exportPptxBusy': 'Várj, amíg az aktuális kör befejeződik.',
'fileViewer.exportPptxHint':
'Küldj kérést az ügynöknek, hogy alakítsa át ezt a designt PPTX-szé.',
'fileViewer.exportPptxNa': 'A PPTX export itt nem elérhető.',
'fileViewer.exportZip': 'Letöltés .zip-ként',
'fileViewer.exportHtml': 'Exportálás önálló HTML-ként',
'fileViewer.exportMd': 'Exportálás Markdown-ként',
'fileViewer.exportJsx': 'Exportálás JSX-ként',
'fileViewer.exportReactHtml': 'Előnézet exportálása HTML-ként',
'fileViewer.saveAsTemplate': 'Mentés sablonként…',
'fileViewer.savingTemplate': 'Sablon mentése…',
'fileViewer.savedTemplate': 'Mentve „{name}" néven',
'fileViewer.savedTemplateFail': 'A sablon mentése nem sikerült — próbáld újra.',
'fileViewer.templateNamePrompt': 'Sablon neve',
'fileViewer.templateNameDefault': 'Cím nélküli sablon',
'fileViewer.templateDescPrompt':
'Rövid leírás (opcionális — mitől hasznos ez a sablon?)',
'fileViewer.deployToVercel': 'Telepítés Vercelre',
'fileViewer.redeployToVercel': 'Újratelepítés',
'fileViewer.deployingToVercel': 'Telepítés Vercelre…',
'fileViewer.preparingPublicLink': 'Nyilvános link előkészítése…',
'fileViewer.copyDeployLink': 'Link másolása',
'fileViewer.deployModalTitle': 'Telepítés Vercelre',
'fileViewer.deployModalSubtitle':
'Telepítsd ezt a HTML-artefaktumot Vercel Preview-ként a saját fiókodból.',
'fileViewer.vercelToken': 'Vercel token',
'fileViewer.vercelTokenGetLink': 'Vercel token kérése',
'fileViewer.vercelTokenPlaceholder': 'Illeszd be a Vercel tokenedet',
'fileViewer.vercelTokenReuseHint':
'A mentett tokent használjuk. Adj meg újat a cseréhez.',
'fileViewer.vercelTokenRequired': 'Előbb adj meg és ments el egy Vercel tokent.',
'fileViewer.vercelTeamId': 'Team ID',
'fileViewer.vercelTeamSlug': 'Team slug',
'fileViewer.optional': 'Opcionális',
'fileViewer.vercelPreviewOnly': 'A telepítések egyelőre csak Preview-k.',
'fileViewer.savingConfig': 'Mentés…',
'fileViewer.deployConfigSaveFailed': 'A Vercel beállítások nem menthetők.',
'fileViewer.deployFailed': 'A telepítés sikertelen. Ellenőrizd a Vercel beállításokat, és próbáld újra.',
'fileViewer.deployResultLabel': 'Telepített URL',
'fileViewer.deployLinkPreparingLabel': 'Nyilvános link várólistán',
'fileViewer.deployLinkDelayed':
'Az oldal telepítve. A Vercel még készíti a nyilvános linket.',
'fileViewer.deployLinkProtectedLabel': 'Vercel-védelem aktív',
'fileViewer.deployLinkProtected':
'Az oldal telepítve, de a Vercel hitelesítést kér ehhez az előnézeti linkhez. Kapcsold ki a Deployment Protection-t, vagy használj egyedi domaint.',
'fileViewer.retryLink': 'Újra most',
'questionForm.submit': 'Beküldés',
'questionForm.skip': 'Kihagyás',
'questionForm.locked': 'Megválaszolva',
'conv.switch': 'Beszélgetés váltása',
'conv.label': 'Beszélgetés',
'conv.heading': 'Beszélgetések',
'conv.new': '+ Új',
'conv.empty': 'Még nincs beszélgetés.',
'conv.untitled': 'Cím nélküli beszélgetés',
'conv.renameTooltip': 'Dupla kattintás az átnevezéshez',
'conv.delete': 'Beszélgetés törlése',
'conv.deleteConfirm': 'Törlöd a(z) „{title}" beszélgetést? Ez eltávolítja az üzeneteit.',
'agentPicker.label': 'Ügynök',
'agentPicker.modeChoose': 'Válassz végrehajtási módot',
'agentPicker.localCli': 'Helyi CLI',
'agentPicker.daemonOff': 'a daemon kikapcsolva',
'agentPicker.byok': 'API · BYOK',
'agentPicker.selectAgent': 'Válassz egy észlelt code-agent CLI-t',
'agentPicker.noAgents': 'nincs ügynök a PATH-on',
'agentPicker.notInstalled': 'nincs telepítve',
'agentPicker.rescan': 'Helyi PATH újraellenőrzése ügynökökért',
'tool.openInTab': '{name} megnyitása lapon',
'tool.open': 'megnyitás',
'tool.todos': 'Feladatok',
'tool.write': 'Írás',
'tool.edit': 'Szerkesztés',
'tool.read': 'Olvasás',
'tool.bash': 'Bash',
'tool.glob': 'Glob',
'tool.grep': 'Grep',
'tool.fetch': 'Lekérés',
'tool.search': 'Keresés',
'tool.lines': '{n} sor',
'tool.changeSingular': 'változás',
'tool.changePlural': 'változás',
'tool.in': 'itt: {path}',
'tool.hide': 'elrejtés',
'tool.output': 'kimenet',
'tool.running': 'fut…',
'tool.error': 'hiba',
'tool.done': 'kész',
'assistant.role': 'Asszisztens',
'assistant.workingLabel': 'Dolgozik',
'assistant.doneLabel': 'Kész',
'assistant.unfinishedLabel': 'Befejezetlen munkával állt le',
'assistant.unfinishedSummary': '{n} feladat hátravan',
'assistant.unfinishedMore': '+{n} további',
'assistant.continueRemaining': 'Hátralévő feladatok folytatása',
'assistant.outTokens': '{n} ki',
'assistant.producedFiles': 'A körben létrehozott fájlok',
'assistant.openFile': 'Megnyitás',
'assistant.downloadFile': 'Letöltés',
'assistant.thinking': 'Gondolkodik',
'assistant.systemReminder': 'Rendszer-emlékeztető',
'assistant.waitingFirstOutput': 'Az első kimenetre vár',
'assistant.statusBootingAgent': 'Ügynök indítása',
'assistant.statusStarting': 'Indítás',
'assistant.statusRequesting': 'Kérés küldése',
'assistant.statusThinking': 'Gondolkodik',
'assistant.statusStreaming': 'Streamelés',
'assistant.slowHint':
'Tovább tart a szokásosnál. Az űrlap általában 5–10 mp alatt megjelenik — leállíthatod és újrafogalmazhatod.',
'assistant.verbEditing': 'Szerkesztés',
'assistant.verbWriting': 'Írás',
'assistant.verbReading': 'Olvasás',
'assistant.verbSearching': 'Keresés',
'assistant.verbRunning': 'Futtatás',
'assistant.verbTodos': 'Feladatok',
'assistant.verbFetching': 'Lekérés',
'assistant.verbCalling': 'Hívás',
'qf.answered': 'megválaszolva',
'qf.choose': 'Válassz…',
'qf.required': 'kötelező',
'qf.lockedSubmitted':
'Válaszok elküldve — az ügynök ezeket használja a folyamat további részében.',
'qf.lockedPrev': 'Ez az űrlap egy korábbi körből származik.',
'qf.hint':
'Válaszd, ami illik. Hagyd ki az opcionális mezőket, amik nem érdekesek — az ügynök ésszerű alapértékeket használ.',
'qf.submitDefault': 'Válaszok küldése',
'qf.submitDisabledTitle': 'Előbb töltsd ki a kötelező mezőket',
'qf.submitTitle': 'Válaszok küldése',
'qf.cardSelected': 'kiválasztva',
'qf.cardRefs': 'Hivatkozások:',
'qf.cardSampleText': 'Árvíztűrő tükörfúrógép · 0123',
'sketch.toolSelect': 'Kijelölés (nem aktív)',
'sketch.toolPen': 'Toll',
'sketch.toolText': 'Szöveg',
'sketch.toolRect': 'Téglalap',
'sketch.toolArrow': 'Nyíl',
'sketch.toolEraser': 'Radír',
'sketch.color': 'Szín',
'sketch.strokeSize': 'Vonalvastagság',
'sketch.undo': 'Visszavonás',
'sketch.clear': 'Törlés',
'sketch.close': 'Bezárás',
'sketch.textPrompt': 'Szöveg:',
'pet.title': 'Háziállatok',
'pet.subtitle': 'Fogadj be egy apró társat, aki a munkaterületed felett lebeg.',
'pet.navTitle': 'Háziállatok',
'pet.navHint': 'Befogadás vagy testreszabás',
'pet.tabBuiltIn': 'Beépített',
'pet.tabBuiltInHint': 'Az Open Designnal csomagolt társak — válassz egyet és fogadd örökbe.',
'pet.builtInEmpty': 'A beépített állatok most nem elérhetők. Frissítsd a Közösség fület, amint a daemon újra online.',
'pet.tabCustom': 'Egyéni',
'pet.tabCustomHint': 'Készíts sajátot névvel, jellel, színnel vagy sprite-tal.',
'pet.tabCommunity': 'Közösségi',
'pet.tabCommunityHint': 'Codex-ben kikelt háziállatok — fogadj be egyet, vagy generálj újat.',
'pet.tabsAria': 'Háziállat forrása',
'pet.adopt': 'Befogadás',
'pet.adoptedBadge': 'Befogadva',
'pet.adoptCallout': 'Fogadj be egy háziállatot',
'pet.changePet': 'Háziállat váltása',
'pet.wake': 'Ébresztés',
'pet.tuck': 'Elrejtés',
'pet.wakeTitle': 'Háziállat ébresztése — lebegő réteg megjelenítése.',
'pet.tuckTitle': 'Háziállat elrejtése — lebegő réteg eltüntetése.',
'pet.settingsTitle': 'Háziállat beállításainak megnyitása',
'pet.useCustom': 'Saját háziállat használata',
'pet.customTitle': 'Készíts egy sajátot',
'pet.customHint': 'Válassz nevet, jelet és kiemelőszínt — a réteg élőben frissül.',
'pet.customGreetingPlaceholder': 'Köszönj a háziállatod nevében…',
'pet.fieldName': 'Név',
'pet.fieldGlyph': 'Jel',
'pet.fieldGlyphHint': 'Egyetlen emoji a legjobb (pl. 🐝, 🦄, 🐢).',
'pet.fieldGreeting': 'Üdvözlés',
'pet.fieldAccent': 'Kiemelőszín',
'pet.fieldAccentCustom': 'Egyedi szín',
'pet.overlayAria': 'Háziállat társ',
'pet.spriteAria': '{name} — húzd a mozgatáshoz, kattints a beszélgetéshez',
'pet.spriteTitle': 'Üdv tőlem, {name}! Kattints a beszélgetéshez.',
'pet.railAria': 'Háziállat-választó',
'pet.railTitle': 'Háziállatok',
'pet.railHint': 'Válassz társat, aki a munkaterületed felett lebeg.',
'pet.railExpand': 'Háziállat-választó megjelenítése',
'pet.railCollapse': 'Háziállat-választó összecsukása',
'pet.railHide': 'Háziállat-választó elrejtése',
'pet.railShow': 'Háziállat-választó megjelenítése',
'pet.railCustomFlavor': 'A sajátod — név, jel, szín.',
'pet.railCustomize': 'Testreszabás…',
'pet.composerTitle': 'Háziállatok — ébresztés, elrejtés vagy választás',
'pet.composerMenuTitle': 'Háziállatok',
'pet.composerMenuHint': 'tipp: írd be /pet a váltáshoz',
'pet.composerOpenSettings': 'Testreszabás a Beállításokban',
'pet.welcomeTeaserTitle': 'Fogadj be egy háziállatot',
'pet.welcomeTeaserBody': 'Egy apró lebegő társ, aki veled van.',
'pet.welcomeTeaserCta': 'Választok egyet',
'pet.imageUpload': 'Sprite feltöltése',
'pet.imageReplace': 'Sprite cseréje',
'pet.imageRemove': 'Emoji használata',
'pet.imageHintIdle':
'PNG, JPG, WebP, GIF vagy SVG. Spritesheet? Tölts fel egy vízszintes szalagot, és add meg a képkockaszámot.',
'pet.imageHintActive':
'A sprite-od látható. Állítsd a képkockaszámot 1 fölé egy vízszintes spritesheet animálásához.',
'pet.fieldFrames': 'Képkockák',
'pet.fieldFramesHint': '1 = statikus. > 1 = vízszintes spritesheet.',
'pet.fieldFps': 'Sebesség (fps)',
'pet.fieldFpsHint': 'Milyen gyorsan forognak a képkockák.',
'pet.atlasImport': 'Codex sprite importálása',
'pet.atlasImportTitle': 'Importálj egy hatch-pet 8x9 / 192x208 atlast (PNG vagy WebP).',
'pet.atlasPickerTitle': 'Válassz animációs sort',
'pet.atlasPickerHint':
'A Codex háziállatok 9 animációs sort hoznak. Alapból a teljes atlast használjuk, így a háziállat sort vált hover, húzás és tétlen állapot szerint. Egy sorra is rögzíthető.',
'pet.atlasCancel': 'Atlas eldobása',
'pet.atlasAdopt': 'Rögzítés erre a sorra',
'pet.atlasAdoptFull': 'Teljes atlas használata (animált)',
'pet.atlasAdoptFullTitle':
'Minden sor megmarad, így a háziállat reagál a hoverre, a húzás irányára és a hosszú tétlenségre.',
'pet.atlasAdoptRowTitle':
'Csak a kiemelt sort vágjuk ki egy ismétlődő szalaggá.',
'pet.atlasActiveHint':
'Animált atlas aktív — a háziállat az interakcióid (hover, húzás, tétlen) alapján választ sort.',
'pet.atlasRow.idle': 'Tétlen',
'pet.atlasRow.running-right': 'Futás jobbra',
'pet.atlasRow.running-left': 'Futás balra',
'pet.atlasRow.waving': 'Integetés',
'pet.atlasRow.jumping': 'Ugrás',
'pet.atlasRow.failed': 'Sikertelen',
'pet.atlasRow.waiting': 'Várakozás',
'pet.atlasRow.running': 'Futás',
'pet.atlasRow.review': 'Áttekintés',
'pet.hatchTitle': 'Új háziállat költése MI-vel',
'pet.hatchHint':
'Használd a beépített hatch-pet skillt a chatben egy Codex-stílusú spritesheet generálásához, majd importáld ide.',
'pet.hatchConcept': 'Háziállat-koncepció (opcionális)',
'pet.hatchConceptPlaceholder': 'pl. egy apró pixel-art shiba kötött pulóverben',
'pet.hatchCopy': 'Prompt másolása',
'pet.hatchCopied': 'Kimásolva!',
'pet.hatchFoot':
'Miután a skill elmentette a háziállatot, gyere vissza és válaszd a „Codex sprite importálása" lehetőséget.',
'pet.slashPopoverAria': 'Slash parancsok',
'pet.slashPopoverTitle': 'Parancsok',
'pet.slashPopoverHint': '↑↓ navigáció · enter választás · esc kilépés',
'pet.slashPet': 'Háziállat váltása, befogadása vagy a beállítások megnyitása.',
'pet.slashPetWake': 'Lebegő háziállat-réteg ébresztése.',
'pet.slashPetTuck': 'Háziállat elrejtése egy időre.',
'pet.slashHatch': 'Codex háziállat generálása a hatch-pet skill-lel.',
'pet.slashHatchArg': '<koncepció>',
'pet.codexTitle': 'Frissen kikelt',
'pet.codexSubtitle':
'A hatch-pet skill által csomagolt háziállatok itt jelennek meg, egy kattintással befogadhatók.',
'pet.codexSubtitleWithDir': '{dir} keresése hatch-pet csomagok után.',
'pet.codexEmpty': 'Még nincs kikelt háziállat. Írd be /hatch a chatbe egy generálásához.',
'pet.codexLoading': 'Kikelt háziállatok keresése…',
'pet.codexRefresh': 'Frissítés',
'pet.codexAdopt': 'Befogadás',
'pet.codexAdopting': 'Befogadás folyamatban…',
'pet.communitySync': 'Közösségi háziállatok letöltése',
'pet.communitySyncing': 'Letöltés…',
'pet.communitySyncTitle':
'Frissítsd a Codex Pet Share és j20 Hatchery legutóbbi háziállatait a ~/.codex/pets/ mappába.',
'pet.communitySyncDone': '{wrote} új háziállat szinkronizálva (összesen {total}).',
'pet.communitySyncFailed': 'A szinkronizálás sikertelen: {error}',
'pet.codexBundled': 'Beépített',
'pet.codexBundledTitle': 'Az Open Designgal érkezik — letöltés nem szükséges.',
'settings.notifications': 'Értesítések',
'settings.notificationsHint': 'Hang és asztali értesítés a feladat befejezésekor',
'settings.notifyCompletionSound': 'Befejezési hang',
'settings.notifyCompletionSoundHint': 'Megszólal egy kör végén. Alapértelmezetten kikapcsolva.',
'settings.notifySuccessSound': 'Sikerhang',
'settings.notifyFailureSound': 'Hibahang',
'settings.notifyDesktop': 'Asztali értesítés',
'settings.notifyDesktopHint': 'Akkor érkezik, ha az ablak nem aktív.',
'settings.notifyDesktopBlocked': 'A böngésző letiltotta. Engedélyezd a webhely beállításaiban.',
'settings.notifyDesktopUnsupported': 'Az asztali értesítések ebben a környezetben nem elérhetők.',
'settings.notifyTest': 'Tesztküldés',
'settings.notifyTestSent': 'Tesztértesítés elküldve. Ha nem jelenik meg banner, ellenőrizd a böngésző és a rendszer értesítési beállításait.',
'settings.notifyTestFailed': 'Az értesítéshívás sikertelen. Ellenőrizd a böngésző és a rendszer értesítési beállításait.',
'settings.notifySoundDing': 'Csilingelés',
'settings.notifySoundChime': 'Csengő',
'settings.notifySoundTwoToneUp': 'Kétszólamú emelkedő',
'settings.notifySoundPluck': 'Pengetés',
'settings.notifySoundBuzz': 'Zümmögés',
'settings.notifySoundTwoToneDown': 'Kétszólamú ereszkedő',
'settings.notifySoundThud': 'Tompa puffanás',
'settings.library': 'Készségek és tervezőrendszerek',
'settings.libraryHint': 'Tartalomkönyvtár böngészése, előnézete és be-/kikapcsolása',
'settings.librarySkills': 'Készségek',
'settings.libraryDesignSystems': 'Tervezőrendszerek',
'settings.librarySearch': 'Keresés...',
'settings.libraryAll': 'Összes',
'settings.libraryPreview': 'Előnézet',
'settings.libraryPreviewClose': 'Bezárás',
'settings.libraryLoading': 'Betöltés...',
'settings.libraryNoResults': 'Nincs a keresésnek megfelelő elem.',
'settings.libraryEnabled': 'Engedélyezve',
'settings.libraryDisabled': 'Letiltva',
'settings.libraryToggleLabel': 'Átváltás',
'notify.successTitle': 'Feladat befejezve',
'notify.failureTitle': 'A feladat meghiúsult',
'notify.successBody': 'Egy kör befejeződött.',
'notify.failureBody': 'A feladat hibával ért véget.',
};
+906
View File
@@ -0,0 +1,906 @@
import type { Dict } from '../types';
import { en } from './en';
export const ja: Dict = {
...en,
'common.cancel': 'キャンセル',
'common.save': '保存',
'common.close': '閉じる',
'common.delete': '削除',
'common.rename': '名前を変更',
'common.preview': 'プレビュー',
'common.share': '共有',
'common.search': '検索',
'common.searchEllipsis': '検索…',
'common.loading': '読み込み中…',
'common.all': 'すべて',
'common.none': 'なし',
'common.default': 'デフォルト',
'common.installed': 'インストール済み',
'common.notInstalled': '未インストール',
'common.active': 'アクティブ',
'common.offline': 'オフライン',
'common.selected': '選択中',
'common.create': '作成',
'common.openPreview': 'プレビューを開く',
'common.exitFullscreen': 'フルスクリーンを終了',
'common.fullscreen': 'フルスクリーン',
'common.openInNewTab': '新しいタブで開く',
'common.exportPdf': 'PDFとしてエクスポート',
'common.exportZip': '.zipとしてダウンロード',
'common.exportHtml': 'スタンドアロンHTMLとしてエクスポート',
'common.justNow': 'たった今',
'common.minutesAgo': '{n}分前',
'common.hoursAgo': '{n}時間前',
'common.daysAgo': '{n}日前',
'common.now': '今',
'common.minutesShort': '{n}分',
'common.hoursShort': '{n}時間',
'common.daysShort': '{n}日',
'common.untitled': '無題',
'app.brand': 'Open Design',
'app.brandPill': 'リサーチプレビュー',
'app.brandSubtitle': 'by Nexu Labs',
'app.welcomeLoading': 'ワークスペースを読み込み中…',
'settings.welcomeKicker': 'ようこそ',
'settings.welcomeTitle': 'Open Design を設定',
'settings.welcomeSubtitle':
'生成の実行方法を選んでください。この設定はいつでもトップバーの設定ボタンから変更できます。',
'settings.kicker': '設定',
'settings.title': '実行モデル',
'settings.subtitle': 'ローカル CLI と BYOK のどちらを使うか選択します。API キーはこのブラウザ内にのみ保存されます。',
'settings.modeAria': '実行モード',
'settings.protocolAria': 'API プロトコル',
'settings.modeDaemon': 'ローカル CLI',
'settings.modeDaemonHelp': 'マシン上のコードエージェント CLI 経由で実行',
'settings.modeDaemonOffline': 'デーモンが起動していません',
'settings.modeDaemonOfflineMeta': 'デーモンオフライン',
'settings.modeDaemonInstalledMeta': '{count} インストール済み',
'settings.modeApi': 'API プロバイダー',
'settings.modeApiMeta': 'BYOK',
'settings.codeAgent': 'コードエージェント',
'settings.codeAgentHint':
'PATH をスキャンして検出されます。生成に使用する CLI を選択してください。',
'settings.rescan': '↻ 再スキャン',
'settings.rescanTitle': 'PATH を再スキャン',
'settings.rescanRunning': 'スキャン中...',
'settings.rescanSuccess': 'スキャン完了。{count} 件が利用可能です。',
'settings.rescanFailed': 'スキャンに失敗しました。デーモンを確認して再試行してください。',
'settings.noAgentsDetected':
'エージェントが検出されませんでした。Claude Code、Codex、Gemini CLI、OpenCode、Cursor Agent、Qwen、または GitHub Copilot CLI のいずれかをインストールして、再スキャンをクリックしてください。',
'settings.apiSection': 'Anthropic API',
'settings.quickFillProvider': 'プロバイダーをクイック入力',
'settings.customProvider': 'カスタムプロバイダー',
'settings.apiKey': 'APIキー',
'settings.showKey': 'キーを表示',
'settings.hideKey': 'キーを隠す',
'settings.show': '表示',
'settings.hide': '隠す',
'settings.model': 'モデル',
'settings.suggestedModelsHint':
'これはこのプロトコル向けの推奨モデルです。プロバイダーによっては別のモデルをサポートしている場合があります。',
'settings.baseUrl': 'ベース URL',
'settings.baseUrlInvalid': '有効な公開 http:// または https:// URL を入力してください。localhost は許可され、プライベートネットワーク IP はブロックされます。',
'settings.azureDeploymentModel': 'デプロイ名',
'settings.azureDeploymentModelHint':
'Azure OpenAI では、このフィールドが /openai/deployments/<model> のデプロイ名として使われます。Azure で作成したデプロイ名を入力してください。',
'settings.apiVersion': 'API バージョン',
'settings.maxTokens': '最大トークン(任意)',
'settings.maxTokensHint':
'応答長の上限。各モデルにチューニング済みのデフォルト値があります(プレースホルダーに表示)。空のままにすればそれを使用し、数値を入力すれば上書きされます。',
'settings.apiHint': 'リクエストはローカル daemon プロキシ経由で設定した Base URL に送信されます。キーはこのブラウザ内にのみ保存され、プロバイダーへのリクエスト時に送信されます。',
'settings.skipForNow': '今はスキップ',
'settings.getStarted': '始める',
'settings.envConfigure': '実行モードを設定',
'settings.localCli': 'ローカル CLI',
'settings.anthropicApi': 'Anthropic API',
'settings.noAgentSelected': 'エージェント未選択',
'settings.language': '言語',
'settings.languageHint': 'インターフェースの言語を切り替えます。このブラウザに保存されます。',
'settings.appearance': '外観',
'settings.appearanceHint': 'ライト、ダーク、またはシステム設定に従う。',
'settings.themeSystem': 'システム',
'settings.themeLight': 'ライト',
'settings.themeDark': 'ダーク',
'settings.modelPicker': 'モデル',
'settings.reasoningPicker': '推論の強さ',
'settings.modelPickerHint':
'CLI が `models` コマンドを公開している場合に取得されます。「デフォルト」は CLI 自身の設定に委ね、「カスタム…」は CLI が受け付ける任意のモデル ID を入力できます。',
'settings.cliEnvTitle': 'CLI config locations',
'settings.cliEnvHint':
'Set non-secret config directories for packaged app runs and agent detection.',
'settings.cliEnvClaudeConfigDir': 'Claude Code config dir',
'settings.cliEnvCodexHome': 'Codex home',
'settings.modelCustom': 'カスタム(下に入力)…',
'settings.modelCustomLabel': 'カスタムモデル ID',
'settings.modelCustomPlaceholder': '例: anthropic/claude-sonnet-4-6',
'settings.mediaProviders': 'メディアプロバイダー',
'settings.mediaProvidersHint':
'画像・動画・音声生成のための API キー。ローカルに保存され、ローカルデーモンに同期されます。',
'settings.mediaProviderApiKey': 'APIキー',
'settings.mediaProviderBaseUrl': 'ベース URL',
'settings.mediaProviderConfigured': '設定済み',
'settings.mediaProviderUnset': '未設定',
'settings.mediaProviderClear': 'クリア',
'settings.mediaProviderPlaceholder': 'APIキーを貼り付け',
'settings.mediaProviderBaseUrlPlaceholder': 'デフォルトのベース URL を上書き',
'settings.about': 'About',
'settings.aboutHint': 'バージョンと実行環境の詳細',
'settings.appVersion': 'バージョン',
'settings.appChannel': 'チャンネル',
'settings.appRuntime': '実行環境',
'settings.appPlatform': 'プラットフォーム',
'settings.appArchitecture': 'アーキテクチャ',
'settings.runtimePackaged': 'パッケージ版アプリ',
'settings.runtimeDevelopment': '開発環境',
'settings.versionUnavailable': 'daemon がオフラインの間はバージョン詳細を取得できません。',
'entry.tabDesigns': 'デザイン',
'entry.tabExamples': 'サンプル',
'entry.tabDesignSystems': 'デザインシステム',
'entry.openSettingsTitle': '設定',
'entry.openSettingsAria': '設定を開く',
'entry.resizeAria': 'サイドバーをリサイズ',
'entry.loadingWorkspace': 'ワークスペースを読み込み中…',
'entry.tabImageTemplates': '画像テンプレート',
'entry.tabVideoTemplates': '動画テンプレート',
'promptTemplates.searchPlaceholder': 'テンプレートを検索…',
'promptTemplates.countLabel': '{n} 件',
'promptTemplates.emptyImage': '画像プロンプトテンプレートがまだインストールされていません。',
'promptTemplates.emptyVideo': '動画プロンプトテンプレートがまだインストールされていません。',
'promptTemplates.emptyNoMatch': '検索に一致するテンプレートがありません。',
'promptTemplates.attributionFooter': '公開プロンプトライブラリから引用。各カードは元の作者にリンクしています。',
'promptTemplates.openPreviewTitle': 'プロンプトとプレビューを開く',
'promptTemplates.sourcePrefix': 'ソース:',
'promptTemplates.fetchError': 'テンプレートの本文を読み込めませんでした。',
'promptTemplates.promptLabel': 'プロンプト本文',
'promptTemplates.copyPrompt': 'プロンプトをコピー',
'promptTemplates.copyDone': 'コピーしました!',
'promptTemplates.modelHint': '推奨モデル: {model}',
'promptTemplates.openSource': 'オリジナルを表示',
'promptTemplates.openFullscreen': 'フルスクリーンプレビューを開く',
'promptTemplates.closeFullscreen': 'フルスクリーンプレビューを閉じる',
'promptTemplates.allSources': 'すべてのソース',
'promptTemplates.sourceFilterAria': 'ソースで絞り込む',
'promptTemplates.retry': '再試行',
'newproj.tabPrototype': 'プロトタイプ',
'newproj.tabDeck': 'スライド',
'newproj.tabTemplate': 'テンプレートから',
'newproj.tabOther': 'その他',
'newproj.titlePrototype': '新しいプロトタイプ',
'newproj.titleDeck': '新しいスライドデッキ',
'newproj.titleTemplate': 'テンプレートから開始',
'newproj.titleImage': '新しい画像',
'newproj.titleVideo': '新しい動画',
'newproj.titleAudio': '新しい音声',
'newproj.titleOther': '新しいプロジェクト',
'newproj.namePlaceholder': 'プロジェクト名',
'newproj.fidelityLabel': '品質',
'newproj.fidelityWireframe': 'ワイヤーフレーム',
'newproj.fidelityHigh': '高品質',
'newproj.toggleSpeakerNotes': 'スピーカーノートを使用',
'newproj.toggleSpeakerNotesHint': 'スライドのテキストを減らし、話す内容をノートに残します。',
'newproj.toggleAnimations': 'アニメーションを含める',
'newproj.toggleAnimationsHint':
'テンプレートにモーション(入場・ホバー・トランジション)を追加します。',
'newproj.templateLabel': 'テンプレート',
'newproj.noTemplatesTitle': 'テンプレートがまだありません',
'newproj.noTemplatesBody':
'プロジェクトを開き、ファイルビューア内の共有メニューからテンプレートに変換してください。テンプレートはここに表示されます。',
'newproj.savedTemplate': '保存済みテンプレート',
'newproj.fileSingular': 'ファイル',
'newproj.filePlural': 'ファイル',
'newproj.create': '作成',
'newproj.createFromTemplate': 'テンプレートから作成',
'newproj.createDisabledTitle':
'最初にプロジェクトをテンプレートとして保存してください(プロジェクト内の共有メニュー)。',
'newproj.importClaudeZip': 'Claude Design ZIP をインポート',
'newproj.importClaudeZipTitle': 'Claude Design の .zip エクスポートをインポート',
'newproj.importingClaudeZip': 'インポート中…',
'newproj.privacyFooter': 'デフォルトではあなただけがプロジェクトを見ることができます。',
'newproj.designSystem': 'デザインシステム',
'newproj.dsNoneFreeform': 'なし — フリーフォーム',
'newproj.dsNoneSubtitleEmpty': 'システムトークンなし、独自のパレットを選択',
'newproj.dsNoneSubtitleSelected': 'システムトークンをスキップ。エージェントが独自のパレットを選択します。',
'newproj.dsCategoryFallback': 'デザインシステム',
'newproj.dsSearch': 'デザインシステムを検索…',
'newproj.dsModeAria': '選択モード',
'newproj.dsModeSingle': 'シングル',
'newproj.dsModeMulti': 'マルチ',
'newproj.dsNoneTitle': 'なし — フリーフォーム',
'newproj.dsNoneSub': 'システムトークンをスキップ。エージェントが独自のパレットを選択します。',
'newproj.dsEmpty': '"{query}" に一致するデザインシステムがありません。',
'newproj.dsFootSingular': 'はインスピレーションのみです。',
'newproj.dsFootPlural': 'はインスピレーションのみです。',
'newproj.dsFootClear': 'クリア',
'newproj.dsBadgeDefault': 'デフォルト',
'newproj.dsPrimaryFallback': 'プライマリ',
'newproj.surfaceImage': '画像',
'newproj.surfaceVideo': '動画',
'newproj.surfaceAudio': '音声',
'newproj.modelLabel': 'モデル',
'newproj.aspectLabel': 'アスペクト',
'newproj.imageStyleLabel': 'スタイルメモ',
'newproj.imageStylePlaceholder': '編集写真、柔らかな昼光、落ち着いたパレット',
'newproj.videoLengthLabel': '長さ',
'newproj.videoLengthSeconds': '{n}秒',
'newproj.audioKindLabel': '音声タイプ',
'newproj.audioKindMusic': '音楽',
'newproj.audioKindSpeech': 'スピーチ / TTS',
'newproj.audioKindSfx': '効果音',
'newproj.audioDurationLabel': '長さ',
'newproj.audioDurationSeconds': '{n}秒',
'newproj.voiceLabel': '音声',
'newproj.voicePlaceholder': 'プロバイダーの音声 ID(省略可)',
'newproj.promptTemplateLabel': '参照テンプレート',
'newproj.promptTemplateNoneTitle': 'なし — 自分で書く',
'newproj.promptTemplateNoneSub': 'ギャラリーをスキップして、自分でブリーフを書きます',
'newproj.promptTemplateRefSub': '参照テンプレート',
'newproj.promptTemplateSearch': 'テンプレートを検索…',
'newproj.promptTemplateEmpty': 'この種類のテンプレートはまだインストールされていません。',
'newproj.promptTemplateBodyLabel': 'プロンプト(編集可能)',
'newproj.promptTemplateOptimizeHint':
'自由に編集できます — 変更内容はエージェントのブリーフに反映されます。',
'newproj.promptTemplateBodyEmpty': '本文が空です — エージェントはテンプレート参照を受け取りません。',
'designs.subRecent': '最近',
'designs.subYours': 'あなたのデザイン',
'designs.filterAria': 'プロジェクトをフィルター',
'designs.searchPlaceholder': '検索…',
'designs.emptyNoProjects': 'プロジェクトがまだありません。左側で作成してください。',
'designs.emptyNoMatch': '検索に一致するプロジェクトがありません。',
'designs.deleteTitle': 'プロジェクトを削除',
'designs.deleteConfirm': '"{name}" を削除しますか?',
'designs.cardFreeform': 'フリーフォーム',
'designs.status.notStarted': '未開始',
'designs.status.queued': 'キュー中',
'designs.status.running': '実行中',
'designs.status.awaitingInput': '入力待ち',
'designs.status.succeeded': '完了',
'designs.status.failed': '失敗',
'designs.status.canceled': 'キャンセル済み',
'designs.viewToggleAria': '表示モード',
'designs.viewGrid': 'グリッド表示',
'designs.viewKanban': 'ボード表示',
'designs.kanbanEmptyColumn': 'デザインなし',
'designs.deleteAria': 'プロジェクト {name} を削除',
'examples.typeLabel': 'タイプ',
'examples.surfaceLabel': 'サーフェス',
'examples.surfaceWeb': 'Web',
'examples.surfaceImage': '画像',
'examples.surfaceVideo': '動画',
'examples.surfaceAudio': '音声',
'examples.scenarioLabel': 'シナリオ',
'examples.modeAll': 'すべて',
'examples.modePrototypeDesktop': 'プロトタイプ · デスクトップ',
'examples.modePrototypeMobile': 'プロトタイプ · モバイル',
'examples.modeDeck': 'スライド',
'examples.modeDocument': 'ドキュメント & テンプレート',
'examples.modeOrbit': 'Orbit',
'examples.scenarioGeneral': '一般',
'examples.scenarioEngineering': 'エンジニアリング',
'examples.scenarioProduct': 'プロダクト',
'examples.scenarioDesign': 'デザイン',
'examples.scenarioMarketing': 'マーケティング',
'examples.scenarioSales': 'セールス',
'examples.scenarioFinance': 'ファイナンス',
'examples.scenarioHr': '人事',
'examples.scenarioOperations': 'オペレーション',
'examples.scenarioSupport': 'サポート',
'examples.scenarioLegal': '法務',
'examples.scenarioEducation': '教育',
'examples.scenarioPersonal': '個人',
'examples.emptyNoSkills': 'スキルがありません。デーモンは起動していますか?',
'examples.searchPlaceholder': 'サンプルを検索…',
'examples.searchAria': '名前でサンプルを検索',
'examples.emptyNoMatch': 'このフィルターに一致するサンプルがありません。',
'examples.openPreview': '⤢ プレビューを開く',
'examples.loadingPreview': 'プレビューを読み込み中…',
'examples.hoverPreview': 'ホバーでプレビュー',
'examples.usePrompt': 'このプロンプトを使用',
'examples.previewModalTitle': 'フルプレビューを開く(モーダル)',
'examples.shareTitle': 'このサンプルを共有',
'examples.shareLoadFirst': 'プレビューを読み込むためにホバーしてください',
'examples.shareMenu': '共有 ▾',
'examples.exportPdfAllSlides': 'PDFとしてエクスポート(全スライド)',
'examples.exportPptxLocked': 'PPTXとしてエクスポート…(先にテンプレートを開いてください)',
'examples.tagSlideDeck': 'スライドデッキ',
'examples.tagTemplate': 'テンプレート',
'examples.tagDesignSystem': 'デザインシステム',
'examples.tagMobilePrototype': 'モバイルプロトタイプ',
'examples.tagDesktopPrototype': 'デスクトッププロトタイプ',
'examples.tagImage': '画像',
'examples.tagVideo': '動画',
'examples.tagAudio': '音声',
'examples.previewLabel': 'プレビュー',
'ds.surfaceLabel': 'サーフェス',
'ds.surfaceWeb': 'Web',
'ds.surfaceImage': '画像',
'ds.surfaceVideo': '動画',
'ds.surfaceAudio': '音声',
'ds.searchPlaceholder': 'デザインシステムを検索…',
'ds.emptyNoMatch': '検索に一致するデザインシステムがありません。',
'ds.badgeDefault': 'デフォルト',
'ds.preview': 'プレビュー',
'ds.previewTitle': 'デザインシステムをプレビュー',
'ds.categoryAll': 'すべて',
'ds.categoryUncategorized': '未分類',
'ds.showcase': 'ショーケース',
'ds.tokens': 'トークン',
'ds.specToggle': 'DESIGN.md',
'ds.specLoading': 'DESIGN.md を読み込み中…',
'avatar.title': 'アカウントと設定',
'avatar.localCli': 'ローカル CLI',
'avatar.anthropicApi': 'Anthropic API',
'avatar.useLocal': 'ローカル CLI を使用',
'avatar.useApi': 'API · BYOK を使用',
'avatar.codeAgent': 'コードエージェント',
'avatar.rescan': 'PATH を再スキャン',
'avatar.settings': '設定',
'avatar.backToProjects': 'プロジェクトに戻る',
'avatar.metaActive': 'アクティブ',
'avatar.metaOffline': 'オフライン',
'avatar.metaSelected': '選択中',
'avatar.noAgentSelected': 'エージェント未選択',
'avatar.modelSection': 'モデル',
'avatar.modelLabel': 'モデル',
'avatar.reasoningLabel': '推論',
'avatar.customSuffix': '(カスタム)',
'project.backToProjects': 'プロジェクトに戻る',
'project.metaFreeform': 'フリーフォーム',
'project.resizeChatPanel': 'チャットパネルのサイズを変更',
'chat.tabChat': 'チャット',
'chat.tabComments': 'コメント',
'chat.commentsSoon': 'コメント — 近日公開',
'chat.comments.attached': 'Attached to chat',
'chat.comments.emptyAttached': 'No comments attached.',
'chat.comments.saved': 'Saved comments',
'chat.comments.emptySaved': 'No saved comments.',
'chat.comments.add': 'Add',
'chat.comments.addAll': 'Add all',
'chat.comments.remove': 'Remove',
'chat.comments.placeholder': 'Comment on this element…',
'chat.comments.addSend': 'Add & send',
'chat.comments.updateSend': 'Update & send',
'chat.comments.removeAttachment': 'Remove comment attachment',
'chat.comments.removeAttachmentAria': 'Remove comment attachment for {name}',
'chat.conversationsTitle': '会話',
'chat.conversationsAria': '会話履歴',
'chat.newConversation': '新しい会話',
'chat.newConversationsTitle': '新しい会話',
'chat.conversationsHeading': '会話',
'chat.new': '新規',
'chat.emptyConversations': 'まだ会話がありません。',
'chat.deleteConversation': '会話を削除',
'chat.deleteConversationConfirm':
'"{title}" を削除しますか?メッセージも削除されます。',
'chat.untitledConversation': '無題の会話',
'chat.startTitle': '会話を始める',
'chat.startHint':
'画像をドロップまたは貼り付けてビジュアルリファレンスにするか、@ でこのプロジェクトのファイルを添付してください。またはこれらのスターターをお試しください:',
'chat.fillInputTitle': 'クリックして入力欄に入力',
'chat.jumpToLatest': '最新にジャンプ',
'chat.scrollToLatest': '最新にスクロール',
'chat.you': 'あなた',
'chat.openFile': '{name} を開く',
'chat.composerPlaceholder':
'欲しいデザインを説明してください — 画像を貼り付けるかドロップ、または @ でファイルを参照…',
'chat.composerHint':
'⌘/Ctrl + Enter で送信 · 画像を貼り付け · @ でファイルを参照',
'chat.cliSettingsTitle': 'CLI とモデルの設定',
'chat.cliSettingsAria': 'CLI とモデルの設定を開く',
'chat.attachTitle': 'ファイルを添付(または貼り付け / ドロップ)',
'chat.attachAria': 'ファイルを添付',
'chat.importTitle': 'ソースをインポート(近日公開)',
'chat.importLabel': 'インポート',
'chat.importComingSoon': '近日公開',
'chat.importSoon': '近日',
'chat.importFig': '.fig ファイルをアップロード',
'chat.importGitHub': 'GitHub に接続',
'chat.importWeb': 'Web 要素を取得',
'chat.importFolder': 'コードフォルダーをリンク',
'chat.importSkills': 'スキルとデザインシステム',
'chat.importProject': 'Reference another project',
'chat.linkedFolderRemoveAria': 'リンクされたフォルダー {path} を削除',
'chat.linkedFolderNotFound': 'フォルダーが存在しません',
'chat.linkedFolderAlready': 'このフォルダーは既にリンクされています',
'chat.linkedFolderPickError': 'フォルダー選択を開けません',
'chat.send': '送信',
'chat.stop': '停止',
'chat.removeAria': '{name} を削除',
'chat.example1Title': '編集ピッチデッキ',
'chat.example1Tag': '雑誌',
'chat.example1Prompt':
'シードラウンドを調達するデザインスタジオの10スライド編集ピッチデッキ — スイスグリッドレイアウト、大きなセリフ体の見出しにボールドドロップキャップ、等幅フォントのセクション番号、余白を活かしたデザイン、テキスト中心のスライドと交互に配置したフルブリード写真スライド。カバー、ビジョン、マーケット、プロダクト、トラクション、チーム、調達額、連絡先。',
'chat.example2Title': 'SaaS 分析ダッシュボード',
'chat.example2Tag': 'データ',
'chat.example2Prompt':
'開発者ツール SaaS の高密度な分析ダッシュボード — 前週比デルタ付き KPI ストリップ、積み上げ折れ線グラフ2本(MRR とアクティブワークスペース)、使用状況のワールドヒートマップ、コホートリテンショングリッド、トップ顧客リーダーボード、リアルタイムイベントフィード。ダークテーマ、表形式等幅数字、スパークラインアクセント。',
'chat.example3Title': '年次報告書 長スクロール',
'chat.example3Tag': '編集',
'chat.example3Prompt':
'気候系 NPO のインタラクティブ年次報告書 — 大きな引用ブロック、データビジュアライゼーション(積み上げ棒グラフ、アニメーションカウンター、プロジェクトサイトのコロプレスマップ)、写真ブレーカー、ドナーウォール、最後にコールトゥアクションを混在させた長スクロール編集レイアウト。モダンなセリフ体本文、サンセリフのチャートラベル、土のようなペーパーパレット。',
'preview.shareMenu': '共有 ▾',
'preview.openInNewTab': '新しいタブで開く',
'preview.exit': '⤓ 終了',
'preview.fullscreen': '⤢ フルスクリーン',
'preview.closeTitle': '閉じる (Esc)',
'preview.loading': '{label} を読み込み中…',
'preview.showSidebar': '{label} を表示',
'preview.hideSidebar': '{label} を非表示',
'misc.savedTemplate': '保存済みテンプレート',
'misc.primary': 'プライマリ',
'misc.designSystem': 'デザインシステム',
'workspace.designFiles': 'デザインファイル',
'workspace.focusMode': 'Focus workspace',
'workspace.showChat': 'Show chat',
'workspace.closeTab': 'タブを閉じる',
'workspace.deleteFileConfirm': 'プロジェクトフォルダーから "{name}" を削除しますか?',
'workspace.openFromDesignFiles': 'ファイルを開く: ',
'workspace.designFilesLink': 'デザインファイル',
'workspace.loadingSketch': 'スケッチを読み込み中…',
'designFiles.title': 'デザインファイル',
'designFiles.upload': 'ファイルをアップロード',
'designFiles.pasteText': 'テキストファイルとして貼り付け',
'designFiles.newSketch': '新しいスケッチ',
'designFiles.empty':
'まだ何もありません。以下にファイルをドロップするか、スケッチを作成するかテキストを貼り付けてください。',
'designFiles.refresh': '更新',
'designFiles.delete': '削除',
'designFiles.searchPlaceholder': 'ファイルを検索…',
'designFiles.up': '上へ',
'designFiles.back': '戻る',
'designFiles.crumbs': 'プロジェクト',
'designFiles.rowMenu': '行メニュー',
'designFiles.openInTab': 'タブで開く',
'designFiles.download': 'ダウンロード',
'designFiles.downloadSelected': 'Download {n} as ZIP',
'designFiles.clearSelection': 'Clear',
'designFiles.selectAll': 'Select all',
'designFiles.dropTitle': '⤓ ファイルをここにドロップ',
'designFiles.dropDesc':
'画像、ドキュメント、参考資料、フォルダー — エージェントがコンテキストとして使用します。',
'designFiles.upload.title': 'ファイルをアップロード',
'designFiles.paste.title': 'テキストをファイルとして貼り付け',
'designFiles.upload.label': 'アップロード',
'designFiles.paste.label': '貼り付け',
'designFiles.previewOpen': '開く',
'designFiles.previewClose': 'プレビューを閉じる',
'designFiles.modified': '{time} に変更 · {size}',
'designFiles.weeksAgo': '{n}週間前',
'designFiles.sectionPages': 'ページ',
'designFiles.sectionScripts': 'スクリプト',
'designFiles.sectionImages': '画像',
'designFiles.sectionSketches': 'スケッチ',
'designFiles.sectionOther': 'その他',
'designFiles.showMore': 'さらに {n} 件表示',
'designFiles.kindHtml': 'HTML ページ',
'designFiles.kindImage': '画像',
'designFiles.kindSketch': 'スケッチ',
'designFiles.kindText': 'テキスト',
'designFiles.kindCode': 'スクリプト',
'designFiles.kindPdf': 'PDF',
'designFiles.kindDocument': 'ドキュメント',
'designFiles.kindPresentation': 'プレゼンテーション',
'designFiles.kindSpreadsheet': 'スプレッドシート',
'designFiles.kindBinary': 'バイナリ',
'quickSwitcher.placeholder': 'ファイルを開く…',
'quickSwitcher.empty': 'このプロジェクトにファイルがありません',
'quickSwitcher.noMatches': '一致なし',
'quickSwitcher.navigate': '移動',
'quickSwitcher.open': '開く',
'quickSwitcher.close': '閉じる',
'pasteDialog.title': 'テキストを貼り付け',
'pasteDialog.hint': 'プロジェクトフォルダーに保存されます。任意の名前を付けてください。',
'pasteDialog.fileNameLabel': 'ファイル名',
'pasteDialog.namePlaceholder': 'notes.txt',
'pasteDialog.contentLabel': 'コンテンツ',
'pasteDialog.contentPlaceholder': '何でも貼り付け…',
'pasteDialog.save': '保存',
'pasteDialog.cancel': 'キャンセル',
'sketch.save': 'スケッチを保存',
'sketch.cancel': 'キャンセル',
'sketch.saving': '保存中…',
'sketch.tooltipDirty': '未保存の変更があります',
'sketch.tooltipClean': '保存済み',
'fileViewer.empty': 'ファイルを選択して表示します。',
'fileViewer.loading': '読み込み中…',
'fileViewer.exportPptx': 'PPTX としてエクスポート',
'fileViewer.openInNewTab': '新しいタブで開く',
'fileViewer.copyPath': 'パスをコピー',
'fileViewer.copied': 'コピーしました!',
'fileViewer.share': '共有',
'fileViewer.binaryMeta': 'バイナリ · {size}',
'fileViewer.binaryNote':
'バイナリファイル({size} バイト)。ダウンロードするかディスクから開いて確認してください。',
'fileViewer.pdfMeta': 'PDF · {size}',
'fileViewer.documentMeta': 'ドキュメント',
'fileViewer.presentationMeta': 'プレゼンテーション',
'fileViewer.spreadsheetMeta': 'スプレッドシート',
'fileViewer.previewUnavailable': 'プレビューは利用できません。ファイルをダウンロードするか開いて確認してください。',
'fileViewer.download': 'ダウンロード',
'fileViewer.open': '開く',
'fileViewer.imageMeta': '画像 · {size}',
'fileViewer.reactMeta': 'React コンポーネント · {size}',
'fileViewer.sketchMeta': 'スケッチ · {size}',
'fileViewer.markdownStreamingMeta': 'ストリーミングプレビュー中…',
'fileViewer.markdownErrorMeta': 'プレビューが不完全な場合があります(生成エラー)。',
'fileViewer.markdownStreamingStatus': 'ストリーミング中… 部分的な Markdown を表示しています。',
'fileViewer.markdownErrorStatus': '生成エラー。最後に利用可能なコンテンツを表示しています。',
'fileViewer.videoMeta': '動画 · {size}',
'fileViewer.audioMeta': '音声 · {size}',
'fileViewer.reload': '再読み込み',
'fileViewer.reloadDisk': 'ディスクから再読み込み',
'fileViewer.copy': 'コピー',
'fileViewer.copyTitle': 'ファイルの内容をコピー',
'fileViewer.saveDisabled': '保存(読み取り専用ビューアー)',
'fileViewer.save': '保存',
'fileViewer.preview': 'プレビュー',
'fileViewer.source': 'ソース',
'fileViewer.tweaks': '調整',
'fileViewer.comment': 'コメント',
'fileViewer.edit': '編集',
'fileViewer.draw': '描画',
'manualEdit.layers': "Layers",
'manualEdit.editableCount': "{count} editable",
'manualEdit.title': "Manual editor",
'manualEdit.selectLayer': "Select a layer",
'manualEdit.empty': "Click an element in the preview or choose a layer.",
'manualEdit.noClass': "no class",
'manualEdit.tabsAria': "Manual edit tabs",
'manualEdit.tabContent': "Content",
'manualEdit.tabStyle': "Style",
'manualEdit.tabAttributes': "Attributes",
'manualEdit.tabHtml': "Html",
'manualEdit.tabSource': "Source",
'manualEdit.attributesJson': "Attributes JSON",
'manualEdit.selectedHtml': "Selected element HTML",
'manualEdit.fullSource': "Full artifact source",
'manualEdit.applyContent': "Apply Content",
'manualEdit.applyStyle': "Apply Style",
'manualEdit.applyAttributes': "Apply Attributes",
'manualEdit.applyHtml': "Apply HTML",
'manualEdit.applySource': "Apply Source",
'manualEdit.invalidAttributes': "Invalid attributes JSON.",
'manualEdit.changes': "Changes",
'manualEdit.undo': "Undo",
'manualEdit.redo': "Redo",
'manualEdit.noChanges': "No manual edits yet.",
'manualEdit.imageUrl': "Image URL",
'manualEdit.altText': "Alt text",
'manualEdit.label': "Label",
'manualEdit.text': "Text",
'manualEdit.href': "Href",
'manualEdit.textColor': "Text color",
'manualEdit.background': "Background",
'manualEdit.fontSize': "Font size",
'manualEdit.weight': "Weight",
'manualEdit.align': "Align",
'manualEdit.padding': "Padding",
'manualEdit.margin': "Margin",
'manualEdit.radius': "Radius",
'manualEdit.border': "Border",
'manualEdit.width': "Width",
'manualEdit.minHeight': "Min height",
'fileViewer.zoomOut': 'ズームアウト',
'fileViewer.zoomIn': 'ズームイン',
'fileViewer.resetZoom': 'ズームをリセット',
'fileViewer.reloadAria': '再読み込み',
'fileViewer.previousSlide': '前のスライド',
'fileViewer.nextSlide': '次のスライド',
'fileViewer.slideNavAria': 'スライドナビゲーション',
'fileViewer.present': 'プレゼン',
'fileViewer.presentInTab': 'このタブで',
'fileViewer.presentFullscreen': 'フルスクリーン',
'fileViewer.presentNewTab': '新しいタブ',
'fileViewer.exitPresentation': 'プレゼンを終了',
'fileViewer.shareLabel': '共有',
'fileViewer.exportPdf': 'PDFとしてエクスポート',
'fileViewer.exportPdfAllSlides': 'PDFとしてエクスポート(全スライド)',
'fileViewer.exportPptxBusy': '現在のターンが終わるまでお待ちください。',
'fileViewer.exportPptxHint':
'エージェントにこのデザインを PPTX に変換するようリクエストを送信します。',
'fileViewer.exportPptxNa': 'ここでは PPTX エクスポートは利用できません。',
'fileViewer.exportZip': '.zip としてダウンロード',
'fileViewer.exportHtml': 'スタンドアロン HTML としてエクスポート',
'fileViewer.exportMd': 'Markdown としてエクスポート',
'fileViewer.exportJsx': 'JSX としてエクスポート',
'fileViewer.exportReactHtml': 'プレビューを HTML としてエクスポート',
'fileViewer.saveAsTemplate': 'テンプレートとして保存…',
'fileViewer.savingTemplate': 'テンプレートを保存中…',
'fileViewer.savedTemplate': '"{name}" として保存しました',
'fileViewer.savedTemplateFail': 'テンプレートを保存できませんでした — もう一度試してください。',
'fileViewer.templateNamePrompt': 'テンプレート名',
'fileViewer.templateNameDefault': '無題のテンプレート',
'fileViewer.templateDescPrompt':
'短い説明(省略可 — このテンプレートの使いどころは?)',
'fileViewer.deployToVercel': 'Vercel にデプロイ',
'fileViewer.redeployToVercel': '再デプロイ',
'fileViewer.deployingToVercel': 'Vercel にデプロイ中…',
'fileViewer.preparingPublicLink': '公開リンクを準備中…',
'fileViewer.copyDeployLink': 'リンクをコピー',
'fileViewer.deployModalTitle': 'Vercel にデプロイ',
'fileViewer.deployModalSubtitle':
'この HTML アーティファクトをご自身のアカウントを使用して Vercel Preview としてデプロイします。',
'fileViewer.vercelToken': 'Vercel トークン',
'fileViewer.vercelTokenGetLink': 'Vercel トークンを取得',
'fileViewer.vercelTokenPlaceholder': 'Vercel トークンを貼り付け',
'fileViewer.vercelTokenReuseHint':
'保存済みトークンが使用されます。新しいトークンを入力すると置き換えられます。',
'fileViewer.vercelTokenRequired': '最初に Vercel トークンを入力して保存してください。',
'fileViewer.vercelTeamId': 'チーム ID',
'fileViewer.vercelTeamSlug': 'チームスラッグ',
'fileViewer.optional': '省略可',
'fileViewer.vercelPreviewOnly': 'デプロイは現在 Preview のみです。',
'fileViewer.savingConfig': '保存中…',
'fileViewer.deployConfigSaveFailed': 'Vercel の設定を保存できませんでした。',
'fileViewer.deployFailed': 'デプロイに失敗しました。Vercel の設定を確認して再試行してください。',
'fileViewer.deployResultLabel': 'デプロイ URL',
'fileViewer.deployLinkPreparingLabel': '公開リンク準備中',
'fileViewer.deployLinkDelayed':
'サイトはデプロイされました。Vercel が公開リンクを準備中です。',
'fileViewer.deployLinkProtectedLabel': 'Vercel の保護が有効',
'fileViewer.deployLinkProtected':
'サイトはデプロイされましたが、Vercel がこのプレビューリンクに認証を要求しています。デプロイ保護を無効にするかカスタムドメインを使用してください。',
'fileViewer.retryLink': '今すぐ再試行',
'questionForm.submit': '送信',
'questionForm.skip': 'スキップ',
'questionForm.locked': '回答済み',
'conv.switch': '会話を切り替え',
'conv.label': '会話',
'conv.heading': '会話',
'conv.new': '+ 新規',
'conv.empty': 'まだ会話がありません。',
'conv.untitled': '無題の会話',
'conv.renameTooltip': 'ダブルクリックで名前を変更',
'conv.delete': '会話を削除',
'conv.deleteConfirm': '"{title}" を削除しますか?メッセージも削除されます。',
'agentPicker.label': 'エージェント',
'agentPicker.modeChoose': '実行モードを選択',
'agentPicker.localCli': 'ローカル CLI',
'agentPicker.daemonOff': 'デーモン停止中',
'agentPicker.byok': 'API · BYOK',
'agentPicker.selectAgent': '検出されたコードエージェント CLI を選択',
'agentPicker.noAgents': 'PATH 上にエージェントなし',
'agentPicker.notInstalled': '未インストール',
'agentPicker.rescan': 'エージェントのローカル PATH を再スキャン',
'tool.openInTab': '{name} をタブで開く',
'tool.open': '開く',
'tool.todos': 'Todos',
'tool.write': '書き込み',
'tool.edit': '編集',
'tool.read': '読み取り',
'tool.bash': 'Bash',
'tool.glob': 'Glob',
'tool.grep': 'Grep',
'tool.fetch': 'フェッチ',
'tool.search': '検索',
'tool.lines': '{n} 行',
'tool.changeSingular': '変更',
'tool.changePlural': '変更',
'tool.in': '{path} 内',
'tool.hide': '隠す',
'tool.output': '出力',
'tool.running': '実行中…',
'tool.error': 'エラー',
'tool.done': '完了',
'assistant.role': 'アシスタント',
'assistant.workingLabel': '作業中',
'assistant.doneLabel': '完了',
'assistant.unfinishedLabel': '未完了の作業があります',
'assistant.unfinishedSummary': '{n} 件のタスクが残っています',
'assistant.unfinishedMore': '+{n} 件',
'assistant.continueRemaining': '残りのタスクを続ける',
'assistant.outTokens': '{n} 出力',
'assistant.producedFiles': 'このターンのファイル',
'assistant.openFile': '開く',
'assistant.downloadFile': 'ダウンロード',
'assistant.thinking': '考え中',
'assistant.systemReminder': 'システムリマインダー',
'assistant.waitingFirstOutput': '最初の出力を待っています',
'assistant.statusBootingAgent': 'エージェントを起動中',
'assistant.statusStarting': '開始中',
'assistant.statusRequesting': 'リクエストを送信中',
'assistant.statusThinking': '考え中',
'assistant.statusStreaming': 'ストリーミング中',
'assistant.slowHint':
'通常より時間がかかっています。フォームは通常 5〜10 秒で表示されます — 停止して言い換えることもできます。',
'assistant.verbEditing': '編集中',
'assistant.verbWriting': '生成中',
'assistant.verbReading': '読み取り中',
'assistant.verbSearching': '検索中',
'assistant.verbRunning': '実行中',
'assistant.verbTodos': 'Todos',
'assistant.verbFetching': 'フェッチ中',
'assistant.verbCalling': '呼び出し中',
'qf.answered': '回答済み',
'qf.choose': '選択…',
'qf.required': '必須',
'qf.lockedSubmitted':
'回答を送信しました — エージェントがセッション終了まで参照します。',
'qf.lockedPrev': 'このフォームは前のターンのものです。',
'qf.hint':
'適切なものを選んでください。気にしない任意フィールドはスキップしてください — エージェントが適切なデフォルト値を使用します。',
'qf.submitDefault': '回答を送信',
'qf.submitDisabledTitle': '最初に必須フィールドを入力してください',
'qf.submitTitle': '回答を送信',
'qf.cardSelected': '選択済み',
'qf.cardRefs': '参照:',
'qf.cardSampleText': 'The quick brown fox · 0123',
'sketch.toolSelect': '選択(操作なし)',
'sketch.toolPen': 'ペン',
'sketch.toolText': 'テキスト',
'sketch.toolRect': '四角形',
'sketch.toolArrow': '矢印',
'sketch.toolEraser': '消しゴム',
'sketch.color': '色',
'sketch.strokeSize': 'ストロークサイズ',
'sketch.undo': '元に戻す',
'sketch.clear': 'クリア',
'sketch.close': '閉じる',
'sketch.textPrompt': 'テキスト:',
'pet.title': 'ペット',
'pet.tabBuiltIn': '組み込み',
'pet.tabBuiltInHint': 'Open Design に同梱された厳選コンパニオン — 選んで迎え入れよう。',
'pet.builtInEmpty': '組み込みペットを今は読み込めません。デーモンが復帰したらコミュニティタブを更新してください。',
'pet.tabCustom': 'カスタム',
'pet.tabCustomHint': '名前・絵文字・色・スプライトを自分で設定。',
'pet.tabCommunity': 'コミュニティ',
'pet.tabCommunityHint': 'Codex で孵ったペット — 養子に取るか AI で新しく作る。',
'pet.tabsAria': 'ペットのソース',
'pet.subtitle': 'ワークスペースに浮かぶ小さな相棒を迎えましょう。',
'pet.navTitle': 'ペット',
'pet.navHint': '迎える・カスタマイズ',
'pet.adopt': '迎える',
'pet.adoptedBadge': '迎え済み',
'pet.adoptCallout': 'ペットを迎える',
'pet.changePet': 'ペットを変更',
'pet.wake': '呼び出す',
'pet.tuck': 'しまう',
'pet.wakeTitle': 'ペットを呼び出す — 浮かぶオーバーレイを表示。',
'pet.tuckTitle': 'ペットをしまう — オーバーレイを非表示。',
'pet.settingsTitle': 'ペット設定を開く',
'pet.useCustom': 'マイペットを使う',
'pet.customTitle': '自分で作る',
'pet.customHint': '名前、アイコン、アクセントカラーを選ぶと、オーバーレイが即時に更新されます。',
'pet.customGreetingPlaceholder': 'ペットからのあいさつ…',
'pet.fieldName': '名前',
'pet.fieldGlyph': 'アイコン',
'pet.fieldGlyphHint': '絵文字 1 つが最適です(例:🐝、🦄、🐢)。',
'pet.fieldGreeting': 'あいさつ',
'pet.fieldAccent': 'アクセントカラー',
'pet.fieldAccentCustom': 'カスタムカラー',
'pet.overlayAria': 'ペットの相棒',
'pet.spriteAria': '{name} — ドラッグで移動、クリックで会話',
'pet.spriteTitle': '{name} からこんにちは!クリックで会話。',
'pet.railAria': 'ペット選択',
'pet.railTitle': 'ペット',
'pet.railHint': 'ワークスペースに浮かぶ相棒を選びましょう。',
'pet.railExpand': '選択を展開',
'pet.railCollapse': '選択をたたむ',
'pet.railHide': 'ペット選択を隠す',
'pet.railShow': 'ペット選択を表示',
'pet.railCustomFlavor': '自分だけ — 名前・アイコン・色を自由に。',
'pet.railCustomize': 'カスタマイズ…',
'pet.composerTitle': 'ペット — 呼び出す・しまう・選ぶ',
'pet.composerMenuTitle': 'ペット',
'pet.composerMenuHint': 'ヒント:/pet と入力で切替',
'pet.composerOpenSettings': '設定でカスタマイズ',
'pet.welcomeTeaserTitle': 'ペットを迎える',
'pet.welcomeTeaserBody': 'ワークスペースに浮かぶ小さな相棒です。',
'pet.welcomeTeaserCta': '選ぶ',
'pet.imageUpload': 'スプライトをアップロード',
'pet.imageReplace': 'スプライトを差し替える',
'pet.imageRemove': '絵文字に戻す',
'pet.imageHintIdle': 'PNG / JPG / WebP / GIF / SVG に対応。スプライトシート?横長の帯をアップしてフレーム数を指定してください。',
'pet.imageHintActive': 'アップしたスプライトを表示中。フレーム数を 1 より大きくすると横スプライトシートが動きます。',
'pet.fieldFrames': 'フレーム数',
'pet.fieldFramesHint': '1 = 静止。2 以上 = 横スプライトシート。',
'pet.fieldFps': '速度 (fps)',
'pet.fieldFpsHint': 'フレーム切替の速さ。',
'pet.atlasImport': 'Codex スプライトを取り込む',
'pet.atlasImportTitle': 'hatch-pet の 8x9 / 192x208 アトラス(PNG または WebP)を取り込みます。',
'pet.atlasPickerTitle': 'アニメーション行を選択',
'pet.atlasPickerHint': 'Codex ペットは 9 種類のアニメーション行を持っています。デフォルトはアトラス全体を保持し、ホバー・ドラッグ方向・長時間アイドルに応じて行が切り替わります。1 行だけにロックすることもできます。',
'pet.atlasCancel': 'アトラスを破棄',
'pet.atlasAdopt': 'この行に固定',
'pet.atlasAdoptFull': 'アトラス全体を使う(アニメーション)',
'pet.atlasAdoptFullTitle': 'すべての行を保持して、ホバー・ドラッグ方向・長時間アイドルに反応させます。',
'pet.atlasAdoptRowTitle': 'ハイライト中の行だけをループするストリップに切り出します。',
'pet.atlasActiveHint': 'アニメーションアトラス有効 — 操作(ホバー・ドラッグ・アイドル)に応じてペットが行を切り替えます。',
'pet.atlasRow.idle': 'アイドル',
'pet.atlasRow.running-right': '右に走る',
'pet.atlasRow.running-left': '左に走る',
'pet.atlasRow.waving': '手を振る',
'pet.atlasRow.jumping': 'ジャンプ',
'pet.atlasRow.failed': '失敗',
'pet.atlasRow.waiting': '待機',
'pet.atlasRow.running': '走る',
'pet.atlasRow.review': 'レビュー',
'pet.hatchTitle': 'AI で新しいペットを孵化',
'pet.hatchHint': '同梱の hatch-pet スキルをチャットで実行して Codex 風のスプライトシートを生成し、ここから取り込んでください。',
'pet.hatchConcept': 'ペットのコンセプト(任意)',
'pet.hatchConceptPlaceholder': '例: セーターを着た小さなピクセル風の柴犬',
'pet.hatchCopy': 'プロンプトをコピー',
'pet.hatchCopied': 'コピー済み!',
'pet.hatchFoot': 'スキルがペットを保存したら、ここに戻って「Codex スプライトを取り込む」を選んでください。',
'pet.slashPopoverAria': 'スラッシュコマンド',
'pet.slashPopoverTitle': 'コマンド',
'pet.slashPopoverHint': '↑↓ で移動 · enter で選択 · esc で閉じる',
'pet.slashPet': 'ペットを切替・採用、または設定を開く。',
'pet.slashPetWake': '浮遊ペットを起こす。',
'pet.slashPetTuck': 'ペットを一旦しまう。',
'pet.slashHatch': 'hatch-pet スキルで Codex ペットを生成。',
'pet.slashHatchArg': '<コンセプト>',
'pet.codexTitle': '最近の孵化',
'pet.codexSubtitle': 'hatch-pet スキルがパッケージしたペットがここに表示され、ワンクリックで採用できます。',
'pet.codexSubtitleWithDir': '{dir} を hatch-pet スキルのパッケージのために走査中。',
'pet.codexEmpty': '孵化したペットはまだありません。チャットで /hatch を入力して生成しましょう。',
'pet.codexLoading': '孵化したペットを探しています…',
'pet.codexRefresh': '更新',
'pet.codexAdopt': '採用',
'pet.codexAdopting': '採用中…',
'pet.communitySync': 'コミュニティペットをダウンロード',
'pet.communitySyncing': 'ダウンロード中…',
'pet.communitySyncTitle': 'Codex Pet Share と j20 Hatchery の最新ペットを ~/.codex/pets/ に同期します。',
'pet.communitySyncDone': '{wrote} 体の新しいペットを同期しました(合計 {total} 体)。',
'pet.communitySyncFailed': '同期に失敗しました: {error}',
'pet.codexBundled': '同梱',
'pet.codexBundledTitle': 'Open Design に同梱 — ダウンロード不要。',
'settings.notifications': '通知',
'settings.notificationsHint': 'タスク完了時の効果音とデスクトップ通知',
'settings.notifyCompletionSound': '完了サウンド',
'settings.notifyCompletionSoundHint': '1ターン終了時に再生されます。既定ではオフです。',
'settings.notifySuccessSound': '成功サウンド',
'settings.notifyFailureSound': '失敗サウンド',
'settings.notifyDesktop': 'デスクトップ通知',
'settings.notifyDesktopHint': 'ウィンドウが非アクティブのときに送信されます。',
'settings.notifyDesktopBlocked': 'ブラウザにブロックされています。サイト設定で許可してください。',
'settings.notifyDesktopUnsupported': 'この環境ではデスクトップ通知に対応していません。',
'settings.notifyTest': 'テスト送信',
'settings.notifyTestSent': 'テスト通知を送信しました。バナーが出ない場合は、ブラウザとシステムの通知設定を確認してください。',
'settings.notifyTestFailed': '通知の呼び出しに失敗しました。ブラウザとシステムの通知設定を確認してください。',
'settings.notifySoundDing': 'ティン',
'settings.notifySoundChime': 'チャイム',
'settings.notifySoundTwoToneUp': '上昇2音',
'settings.notifySoundPluck': 'プラック',
'settings.notifySoundBuzz': 'ブザー',
'settings.notifySoundTwoToneDown': '下降2音',
'settings.notifySoundThud': 'ドスン',
'settings.library': 'スキルとデザインシステム',
'settings.libraryHint': 'コンテンツライブラリの閲覧、プレビュー、切り替え',
'settings.librarySkills': 'スキル',
'settings.libraryDesignSystems': 'デザインシステム',
'settings.librarySearch': '検索...',
'settings.libraryAll': 'すべて',
'settings.libraryPreview': 'プレビュー',
'settings.libraryPreviewClose': '閉じる',
'settings.libraryLoading': '読み込み中...',
'settings.libraryNoResults': '検索条件に一致する項目がありません。',
'settings.libraryEnabled': '有効',
'settings.libraryDisabled': '無効',
'settings.libraryToggleLabel': '切り替え',
'notify.successTitle': 'タスクが完了しました',
'notify.failureTitle': 'タスクが失敗しました',
'notify.successBody': '1ターンが終了しました。',
'notify.failureBody': 'タスクはエラーで終了しました。',
};
+953
View File
@@ -0,0 +1,953 @@
import { en } from './en';
import type { Dict } from '../types';
export const ko: Dict = {
...en,
'common.cancel': '취소',
'common.save': '저장',
'common.close': '닫기',
'common.delete': '삭제',
'common.rename': '이름 변경',
'common.preview': '미리보기',
'common.share': '공유',
'common.search': '검색',
'common.searchEllipsis': '검색…',
'common.loading': '불러오는 중…',
'common.all': '전체',
'common.none': '없음',
'common.default': '기본값',
'common.installed': '설치됨',
'common.notInstalled': '설치되지 않음',
'common.active': '활성',
'common.offline': '오프라인',
'common.selected': '선택됨',
'common.create': '생성',
'common.openPreview': '미리보기 열기',
'common.exitFullscreen': '전체 화면 종료',
'common.fullscreen': '전체 화면',
'common.openInNewTab': '새 탭에서 열기',
'common.exportPdf': 'PDF로 내보내기',
'common.exportZip': '.zip으로 다운로드',
'common.exportHtml': '독립 실행형 HTML로 내보내기',
'common.justNow': '방금 전',
'common.minutesAgo': '{n}분 전',
'common.hoursAgo': '{n}시간 전',
'common.daysAgo': '{n}일 전',
'common.now': '지금',
'common.minutesShort': '{n}분',
'common.hoursShort': '{n}시간',
'common.daysShort': '{n}일',
'common.untitled': '제목 없음',
'app.brand': 'Open Design',
'app.brandPill': 'Research Preview',
'app.brandSubtitle': 'by Nexu Labs',
'app.welcomeLoading': '워크스페이스를 불러오는 중…',
'settings.welcomeKicker': '환영합니다',
'settings.welcomeTitle': 'Open Design 설정',
'settings.welcomeSubtitle':
"생성을 실행할 방법을 선택하세요. 상단 바의 Settings 버튼을 통해 언제든지 변경할 수 있습니다.",
'settings.kicker': '설정',
'settings.title': '실행 및 모델',
'settings.subtitle': '로컬 CLI와 BYOK 중에서 선택하세요. API 키는 이 브라우저에만 저장됩니다.',
'settings.modeAria': '실행 모드',
'settings.protocolAria': 'API 프로토콜',
'settings.modeDaemon': '로컬 CLI',
'settings.modeDaemonHelp': '사용자 기기의 코드 에이전트 CLI를 통해 실행합니다',
'settings.modeDaemonOffline': '데몬이 실행 중이 아닙니다',
'settings.modeDaemonOfflineMeta': '데몬 오프라인',
'settings.modeDaemonInstalledMeta': '{count}개 설치됨',
'settings.modeApi': 'API 제공자',
'settings.modeApiMeta': 'BYOK',
'settings.codeAgent': '코드 에이전트',
'settings.codeAgentHint':
'PATH 환경 변수 스캔을 통해 감지됩니다. 생성을 처리할 CLI를 선택하세요.',
'settings.rescan': '↻ 다시 스캔',
'settings.rescanTitle': 'PATH 다시 스캔',
'settings.rescanRunning': '스캔 중...',
'settings.rescanSuccess': '스캔 완료. {count}개 사용 가능.',
'settings.rescanFailed': '스캔에 실패했습니다. 데몬을 확인한 후 다시 시도하세요.',
'settings.noAgentsDetected':
'에이전트가 감지되지 않았습니다. Claude Code, Codex, Devin for Terminal, Gemini CLI, OpenCode, Cursor Agent, Qwen 또는 GitHub Copilot CLI 중 하나를 설치한 후 다시 스캔을 클릭하세요.',
'settings.apiSection': 'Anthropic API',
'settings.quickFillProvider': '제공자 빠른 입력',
'settings.customProvider': '사용자 지정 제공자',
'settings.apiKey': 'API 키',
'settings.showKey': '키 표시',
'settings.hideKey': '키 숨기기',
'settings.show': '표시',
'settings.hide': '숨기기',
'settings.model': '모델',
'settings.suggestedModelsHint':
'이 프로토콜에 대한 추천 모델입니다. 사용 중인 제공자는 다른 모델을 지원할 수 있습니다.',
'settings.maxTokens': '최대 토큰 수 (선택 사항)',
'settings.maxTokensHint':
'응답 길이 상한입니다. 각 모델에는 기본값이 미리 조정되어 있으며(placeholder로 표시됨), 비워 두면 그 값을 사용하고 숫자를 입력하면 덮어씁니다.',
'settings.baseUrl': 'Base URL',
'settings.baseUrlInvalid': '유효한 공개 http:// 또는 https:// URL을 입력하세요. localhost는 허용되며 사설 네트워크 IP는 차단됩니다.',
'settings.azureDeploymentModel': '배포 이름',
'settings.azureDeploymentModelHint':
'Azure OpenAI에서는 이 필드가 /openai/deployments/<model>의 배포 이름으로 사용됩니다. Azure에서 만든 배포 이름을 입력하세요.',
'settings.apiVersion': 'API 버전',
'settings.apiHint': '요청은 로컬 daemon 프록시를 통해 설정한 Base URL로 전송됩니다. 키는 이 브라우저에만 저장되며 제공자 요청과 함께 전송됩니다.',
'settings.skipForNow': '지금은 건너뛰기',
'settings.getStarted': '시작하기',
'settings.envConfigure': '실행 모드 구성',
'settings.localCli': '로컬 CLI',
'settings.anthropicApi': 'Anthropic API',
'settings.noAgentSelected': '선택된 에이전트 없음',
'settings.language': '언어',
'settings.languageHint': '인터페이스 언어를 변경합니다. 이 브라우저에 저장됩니다.',
'settings.appearance': '화면 모드',
'settings.appearanceHint': '라이트, 다크 또는 시스템 설정에 따릅니다.',
'settings.themeSystem': '시스템',
'settings.themeLight': '라이트',
'settings.themeDark': '다크',
'settings.modelPicker': '모델',
'settings.reasoningPicker': '추론 (Reasoning)',
'settings.modelPickerHint':
'CLI가 `models` 명령어를 지원할 때 가져옵니다. "Default"는 CLI 자체 설정을 따르며, "직접 입력…"을 선택하면 CLI가 허용하는 모델 ID를 입력할 수 있습니다.',
'settings.cliEnvTitle': 'CLI config locations',
'settings.cliEnvHint':
'Set non-secret config directories for packaged app runs and agent detection.',
'settings.cliEnvClaudeConfigDir': 'Claude Code config dir',
'settings.cliEnvCodexHome': 'Codex home',
'settings.modelCustom': '직접 입력…',
'settings.modelCustomLabel': '사용자 지정 모델 ID',
'settings.modelCustomPlaceholder': '예: anthropic/claude-sonnet-4-6',
'settings.mediaProviders': '미디어 프로바이더',
'settings.mediaProvidersHint':
'이미지, 비디오, 오디오 생성을 위한 API 키입니다. 로컬에 저장되며 로컬 데몬과 동기화됩니다.',
'settings.mediaProviderApiKey': 'API 키',
'settings.mediaProviderBaseUrl': 'Base URL',
'settings.mediaProviderConfigured': '설정됨',
'settings.mediaProviderUnset': '설정 안됨',
'settings.mediaProviderClear': '지우기',
'settings.mediaProviderPlaceholder': 'API 키를 붙여넣으세요',
'settings.mediaProviderBaseUrlPlaceholder': '기본 Base URL 재정의',
'settings.about': '정보',
'settings.aboutHint': '버전 및 런타임 세부 정보',
'settings.appVersion': '버전',
'settings.appChannel': '채널',
'settings.appRuntime': '런타임',
'settings.appPlatform': '플랫폼',
'settings.appArchitecture': '아키텍처',
'settings.runtimePackaged': '패키징된 앱',
'settings.runtimeDevelopment': '개발 (Development)',
'settings.versionUnavailable': '데몬이 오프라인 상태일 때는 버전 세부 정보를 확인할 수 없습니다.',
'entry.tabDesigns': '디자인',
'entry.tabExamples': '예제',
'entry.tabDesignSystems': '디자인 시스템',
'entry.tabConnectors': '커넥터',
'entry.openSettingsTitle': '설정',
'entry.openSettingsAria': '설정 열기',
'entry.resizeAria': '사이드바 크기 조절',
'entry.loadingWorkspace': '워크스페이스를 불러오는 중…',
'entry.tabImageTemplates': '이미지 템플릿',
'entry.tabVideoTemplates': '비디오 템플릿',
'promptTemplates.searchPlaceholder': '템플릿 검색…',
'promptTemplates.countLabel': '{n}개 결과',
'promptTemplates.emptyImage': '설치된 이미지 프롬프트 템플릿이 없습니다.',
'promptTemplates.emptyVideo': '설치된 비디오 프롬프트 템플릿이 없습니다.',
'promptTemplates.emptyNoMatch': '검색어와 일치하는 템플릿이 없습니다.',
'promptTemplates.attributionFooter': '공개 프롬프트 라이브러리를 기반으로 합니다. 각 카드는 원작자 페이지로 연결됩니다.',
'promptTemplates.openPreviewTitle': '프롬프트 열기 및 미리보기',
'promptTemplates.sourcePrefix': '출처:',
'promptTemplates.fetchError': '이 템플릿의 본문을 불러올 수 없습니다.',
'promptTemplates.promptLabel': '프롬프트 본문',
'promptTemplates.copyPrompt': '프롬프트 복사',
'promptTemplates.copyDone': '복사 완료!',
'promptTemplates.modelHint': '추천 모델: {model}',
'promptTemplates.openSource': '원본 보기',
'promptTemplates.openFullscreen': '전체 화면 미리보기 열기',
'promptTemplates.closeFullscreen': '전체 화면 미리보기 닫기',
'promptTemplates.allSources': '모든 출처',
'promptTemplates.sourceFilterAria': '출처별 필터',
'promptTemplates.retry': '다시 시도',
'connectors.title': '커넥터',
'connectors.subtitle': '라이브 아티팩트에 연결할 수 있는 로컬 및 향후 데이터 소스입니다.',
'connectors.account': '계정',
'connectors.noAccount': '연결되지 않음',
'connectors.tools': '도구',
'connectors.connect': '연결',
'connectors.disconnect': '연결 해제',
'connectors.configure': '설정',
'connectors.unavailable': '사용 불가',
'connectors.phaseStubTitle': '커넥터 API는 3단계에서 제공됩니다. 현재는 미리보기 화면입니다.',
'connectors.statusAvailable': '사용 가능',
'connectors.statusConnected': '연결됨',
'connectors.statusError': '오류',
'connectors.statusDisabled': '비활성화됨',
'connectors.gateTitle': '먼저 Composio API 키를 설정하세요',
'connectors.gateBody': '커넥터를 사용하려면 Composio API 키가 필요합니다. 설정에 추가하면 사용 가능한 통합을 활성화할 수 있습니다.',
'connectors.gateAction': '설정 열기',
'connectors.aboutLabel': '정보',
'connectors.detailsLabel': '세부 정보',
'connectors.statusLabel': '상태',
'connectors.categoryLabel': '카테고리',
'connectors.providerLabel': '제공자',
'connectors.toolsSection': '도구',
'connectors.toolsLoading': '도구 불러오는 중…',
'connectors.noToolsAvailable': '아직 사용 가능한 도구가 없습니다. 연결 후 이 통합의 기능이 표시됩니다.',
'connectors.openDetailsAria': '{name} 세부 정보 열기',
'connectors.toolsBadgeNone': '도구 없음',
'connectors.toolsBadgeOne': '{n}개 도구',
'connectors.toolsBadgeMany': '{n}개 도구',
'connectors.searchPlaceholder': '커넥터 검색…',
'connectors.searchAriaLabel': '이름, 제공자 또는 도구 기준으로 커넥터 검색',
'connectors.searchClear': '검색 지우기',
'connectors.emptyNoMatchTitle': '“{query}”와 일치하는 커넥터가 없습니다',
'connectors.emptyNoMatchBody': '다른 키워드를 시도하거나 검색을 지워 전체 목록을 확인하세요.',
'connectors.emptyNoMatchAction': '검색 지우기',
'newproj.tabPrototype': '프로토타입',
'newproj.tabDeck': '슬라이드 덱',
'newproj.tabTemplate': '템플릿에서 시작',
'newproj.tabOther': '기타',
'newproj.titlePrototype': '새 프로토타입',
'newproj.titleDeck': '새 슬라이드 덱',
'newproj.titleTemplate': '템플릿에서 시작',
'newproj.titleImage': '새 이미지',
'newproj.titleVideo': '새 비디오',
'newproj.titleAudio': '새 오디오',
'newproj.titleOther': '새 프로젝트',
'newproj.namePlaceholder': '프로젝트 이름',
'newproj.fidelityLabel': '피델리티 (Fidelity)',
'newproj.fidelityWireframe': '와이어프레임',
'newproj.fidelityHigh': '하이 피델리티 (High fidelity)',
'newproj.toggleSpeakerNotes': '발표자 노트 사용',
'newproj.toggleSpeakerNotesHint': '슬라이드 텍스트를 줄이고 주요 내용을 노트에 보관합니다.',
'newproj.toggleAnimations': '애니메이션 포함',
'newproj.toggleAnimationsHint':
'템플릿에 모션 (등장, 호버, 전환 효과)을 추가합니다.',
'newproj.templateLabel': '템플릿',
'newproj.noTemplatesTitle': '아직 템플릿이 없습니다',
'newproj.noTemplatesBody':
'프로젝트를 열고 파일 뷰어 안의 공유(Share) 메뉴를 사용하여 템플릿으로 변환하세요. 생성된 템플릿이 여기에 표시됩니다.',
'newproj.savedTemplate': '저장된 템플릿',
'newproj.fileSingular': '파일',
'newproj.filePlural': '파일들',
'newproj.create': '생성',
'newproj.createFromTemplate': '템플릿으로 생성',
'newproj.createDisabledTitle':
'먼저 프로젝트를 템플릿으로 저장하세요 (프로젝트 내 공유 메뉴 이용).',
'newproj.importClaudeZip': 'Claude Design ZIP 가져오기',
'newproj.importClaudeZipTitle': 'Claude Design .zip 내보내기 파일 가져오기',
'newproj.importingClaudeZip': '가져오는 중…',
'newproj.privacyFooter': '기본적으로 프로젝트는 나만 볼 수 있습니다.',
'newproj.designSystem': '디자인 시스템',
'newproj.dsNoneFreeform': '없음 — 자유 양식',
'newproj.dsNoneSubtitleEmpty': '시스템 토큰 없이 자체 팔레트를 선택합니다.',
'newproj.dsNoneSubtitleSelected': '시스템 토큰을 건너뜁니다. 에이전트가 팔레트를 알아서 선택합니다.',
'newproj.dsCategoryFallback': '디자인 시스템',
'newproj.dsSearch': '디자인 시스템 검색…',
'newproj.dsModeAria': '선택 모드',
'newproj.dsModeSingle': '단일',
'newproj.dsModeMulti': '다중',
'newproj.dsNoneTitle': '없음 — 자유 양식',
'newproj.dsNoneSub': '시스템 토큰을 건너뜁니다. 에이전트가 팔레트를 알아서 선택합니다.',
'newproj.dsEmpty': '“{query}”와(과) 일치하는 디자인 시스템이 없습니다.',
'newproj.dsFootSingular': '은(는) 참고용입니다.',
'newproj.dsFootPlural': '은(는) 참고용입니다.',
'newproj.dsFootClear': '지우기',
'newproj.dsBadgeDefault': '기본 (DEFAULT)',
'newproj.dsPrimaryFallback': '기본색 (Primary)',
'newproj.surfaceImage': '이미지',
'newproj.surfaceVideo': '비디오',
'newproj.surfaceAudio': '오디오',
'newproj.modelLabel': '모델',
'newproj.aspectLabel': '비율 (Aspect)',
'newproj.imageStyleLabel': '스타일 메모',
'newproj.imageStylePlaceholder': '에디토리얼 사진, 부드러운 자연광, 차분한 팔레트',
'newproj.videoLengthLabel': '길이',
'newproj.videoLengthSeconds': '{n}초',
'newproj.audioKindLabel': '오디오 유형',
'newproj.audioKindMusic': '음악',
'newproj.audioKindSpeech': '음성 / TTS',
'newproj.audioKindSfx': '효과음 (SFX)',
'newproj.audioDurationLabel': '길이',
'newproj.audioDurationSeconds': '{n}초',
'newproj.voiceLabel': '목소리',
'newproj.voicePlaceholder': '프로바이더 보이스 ID (선택 사항)',
'newproj.connectorsLabel': '커넥터',
'newproj.connectorsHint': '이 아티팩트가 가져올 수 있는 데이터 소스입니다.',
'newproj.connectorsEmptyTitle': '설정된 커넥터가 없습니다',
'newproj.connectorsEmptyBody': '데이터 소스를 연결해 라이브 아티팩트가 자리표시자 대신 실제 데이터를 사용하도록 하세요.',
'newproj.connectorsEmptyCta': '커넥터 설정 →',
'newproj.connectorsLoading': '커넥터 불러오는 중…',
'newproj.connectorsCountOne': '{n}개 연결됨',
'newproj.connectorsCountMany': '{n}개 연결됨',
'newproj.connectorsManage': '관리',
'newproj.promptTemplateLabel': '참조 템플릿',
'newproj.promptTemplateNoneTitle': '없음 — 직접 작성',
'newproj.promptTemplateNoneSub': '갤러리를 건너뛰고 직접 브리프를 작성합니다.',
'newproj.promptTemplateRefSub': '참조 템플릿',
'newproj.promptTemplateSearch': '템플릿 검색…',
'newproj.promptTemplateEmpty': '이 유형에 설치된 템플릿이 없습니다.',
'newproj.promptTemplateBodyLabel': '프롬프트 (수정 가능)',
'newproj.promptTemplateOptimizeHint':
'내용을 수정할 수 있습니다. 변경된 내용은 에이전트의 브리프에 반영됩니다.',
'newproj.promptTemplateBodyEmpty':
'본문이 비어있습니다 — 에이전트에게 전달될 템플릿 참조가 없습니다.',
'designs.subRecent': '최근 항목',
'designs.subYours': '내 디자인',
'designs.filterAria': '프로젝트 필터링',
'designs.searchPlaceholder': '검색…',
'designs.emptyNoProjects': '아직 프로젝트가 없습니다. 왼쪽에서 새 프로젝트를 생성하세요.',
'designs.emptyNoMatch': '검색어와 일치하는 프로젝트가 없습니다.',
'designs.deleteTitle': '프로젝트 삭제',
'designs.deleteConfirm': '"{name}" 프로젝트를 삭제하시겠습니까?',
'designs.cardFreeform': '자유 양식',
'designs.status.notStarted': '시작되지 않음',
'designs.status.queued': '대기 중',
'designs.status.running': '실행 중',
'designs.status.awaitingInput': '입력 대기 중',
'designs.status.succeeded': '완료됨',
'designs.status.failed': '실패',
'designs.status.canceled': '취소됨',
'designs.viewToggleAria': '보기 모드',
'designs.viewGrid': '그리드 보기',
'designs.viewKanban': '보드 보기',
'designs.kanbanEmptyColumn': '디자인 없음',
'designs.deleteAria': '프로젝트 삭제 {name}',
'examples.typeLabel': '유형',
'examples.surfaceLabel': '대상 표면 (Surface)',
'examples.surfaceWeb': '웹',
'examples.surfaceImage': '이미지',
'examples.surfaceVideo': '비디오',
'examples.surfaceAudio': '오디오',
'examples.scenarioLabel': '시나리오',
'examples.modeAll': '전체',
'examples.modePrototypeDesktop': '프로토타입 · 데스크탑',
'examples.modePrototypeMobile': '프로토타입 · 모바일',
'examples.modeDeck': '슬라이드',
'examples.modeDocument': '문서 및 템플릿',
'examples.modeOrbit': 'Orbit',
'examples.scenarioGeneral': '일반',
'examples.scenarioEngineering': '엔지니어링',
'examples.scenarioProduct': '제품',
'examples.scenarioDesign': '디자인',
'examples.scenarioMarketing': '마케팅',
'examples.scenarioSales': '영업',
'examples.scenarioFinance': '재무',
'examples.scenarioHr': '인사 (HR)',
'examples.scenarioOperations': '운영',
'examples.scenarioSupport': '고객 지원',
'examples.scenarioLegal': '법무',
'examples.scenarioEducation': '교육',
'examples.scenarioPersonal': '개인',
'examples.emptyNoSkills': '사용 가능한 스킬이 없습니다. 데몬이 실행 중인지 확인하세요.',
'examples.searchPlaceholder': '예제 검색…',
'examples.searchAria': '이름으로 예제 검색',
'examples.emptyNoMatch': '필터와 일치하는 예제가 없습니다.',
'examples.openPreview': '⤢ 미리보기 열기',
'examples.loadingPreview': '미리보기 불러오는 중…',
'examples.hoverPreview': '마우스를 올려 미리보기',
'examples.usePrompt': '이 프롬프트 사용하기',
'examples.previewModalTitle': '전체 미리보기 열기 (모달)',
'examples.shareTitle': '이 예제 공유하기',
'examples.shareLoadFirst': '마우스를 올려 미리보기를 먼저 로드하세요',
'examples.shareMenu': '공유 ▾',
'examples.exportPdfAllSlides': 'PDF로 내보내기 (모든 슬라이드)',
'examples.exportPptxLocked': 'PPTX로 내보내기… (템플릿을 먼저 여세요)',
'examples.tagSlideDeck': '슬라이드 덱',
'examples.tagTemplate': '템플릿',
'examples.tagDesignSystem': '디자인 시스템',
'examples.tagMobilePrototype': '모바일 프로토타입',
'examples.tagDesktopPrototype': '데스크탑 프로토타입',
'examples.tagImage': '이미지',
'examples.tagVideo': '비디오',
'examples.tagAudio': '오디오',
'examples.previewLabel': '미리보기',
'ds.surfaceLabel': '대상 표면 (Surface)',
'ds.surfaceWeb': '웹',
'ds.surfaceImage': '이미지',
'ds.surfaceVideo': '비디오',
'ds.surfaceAudio': '오디오',
'ds.searchPlaceholder': '디자인 시스템 검색…',
'ds.emptyNoMatch': '검색어와 일치하는 디자인 시스템이 없습니다.',
'ds.badgeDefault': '기본 (DEFAULT)',
'ds.preview': '미리보기',
'ds.previewTitle': '디자인 시스템 미리보기',
'ds.categoryAll': '전체',
'ds.categoryUncategorized': '미분류',
'ds.showcase': '쇼케이스',
'ds.tokens': '토큰',
'ds.specToggle': 'DESIGN.md',
'ds.specLoading': 'DESIGN.md 불러오는 중…',
'avatar.title': '계정 및 설정',
'avatar.localCli': '로컬 CLI',
'avatar.anthropicApi': 'Anthropic API',
'avatar.useLocal': '로컬 CLI 사용',
'avatar.useApi': 'API · BYOK 사용',
'avatar.codeAgent': '코드 에이전트',
'avatar.rescan': 'PATH 다시 스캔',
'avatar.settings': '설정',
'avatar.backToProjects': '프로젝트 목록으로 돌아가기',
'avatar.metaActive': '활성',
'avatar.metaOffline': '오프라인',
'avatar.metaSelected': '선택됨',
'avatar.noAgentSelected': '선택된 에이전트 없음',
'avatar.modelSection': '모델',
'avatar.modelLabel': '모델',
'avatar.reasoningLabel': '추론 (Reasoning)',
'avatar.customSuffix': '(직접 입력)',
'project.backToProjects': '프로젝트 목록으로 돌아가기',
'project.metaFreeform': '자유 양식',
'project.resizeChatPanel': '채팅 패널 크기 조절',
'chat.tabChat': '채팅',
'chat.tabComments': '댓글',
'chat.commentsSoon': '댓글 — 곧 지원될 예정입니다.',
'chat.comments.attached': 'Attached to chat',
'chat.comments.emptyAttached': 'No comments attached.',
'chat.comments.saved': 'Saved comments',
'chat.comments.emptySaved': 'No saved comments.',
'chat.comments.add': 'Add',
'chat.comments.addAll': 'Add all',
'chat.comments.remove': 'Remove',
'chat.comments.placeholder': 'Comment on this element…',
'chat.comments.addSend': 'Add & send',
'chat.comments.updateSend': 'Update & send',
'chat.comments.removeAttachment': 'Remove comment attachment',
'chat.comments.removeAttachmentAria': 'Remove comment attachment for {name}',
'chat.conversationsTitle': '대화 목록',
'chat.conversationsAria': '대화 내역',
'chat.newConversation': '새 대화 시작',
'chat.newConversationsTitle': '새 대화',
'chat.conversationsHeading': '대화 목록',
'chat.new': '새로 만들기',
'chat.emptyConversations': '아직 대화가 없습니다.',
'chat.deleteConversation': '대화 삭제',
'chat.deleteConversationConfirm':
'"{title}" 대화를 삭제하시겠습니까? 관련 메시지가 모두 삭제됩니다.',
'chat.untitledConversation': '제목 없는 대화',
'chat.startTitle': '대화 시작하기',
'chat.startHint':
'시각적 참조를 위해 이미지를 붙여넣거나 끌어다 놓으세요. @를 입력하여 이 프로젝트의 파일을 첨부할 수도 있습니다. 아래 추천 질문으로 시작할 수도 있습니다:',
'chat.fillInputTitle': '클릭하여 입력창에 채우기',
'chat.jumpToLatest': '최신 내용으로 이동',
'chat.scrollToLatest': '최신 내용으로 스크롤',
'chat.you': '나',
'chat.openFile': '{name} 열기',
'chat.composerPlaceholder':
'원하는 디자인을 설명하세요 — 이미지 붙여넣기/끌어놓기 가능, @로 파일 참조…',
'chat.composerHint':
'⌘/Ctrl + Enter 로 전송 · 이미지 붙여넣기 · @로 파일 참조',
'chat.cliSettingsTitle': 'CLI 및 모델 설정',
'chat.cliSettingsAria': 'CLI 및 모델 설정 열기',
'chat.attachTitle': '파일 첨부 (또는 붙여넣기 / 끌어놓기)',
'chat.attachAria': '파일 첨부',
'chat.importTitle': '소스 가져오기 (곧 지원 예정)',
'chat.importLabel': '가져오기',
'chat.importComingSoon': '곧 지원될 예정입니다',
'chat.importSoon': '예정',
'chat.importFig': '.fig 파일 업로드',
'chat.importGitHub': 'GitHub 연결',
'chat.importWeb': '웹 요소 가져오기',
'chat.importFolder': '코드 폴더 연결',
'chat.importSkills': '스킬 및 디자인 시스템',
'chat.importProject': 'Reference another project',
'chat.linkedFolderRemoveAria': '연결된 폴더 {path} 제거',
'chat.linkedFolderNotFound': '폴더가 존재하지 않습니다',
'chat.linkedFolderAlready': '이미 연결된 폴더입니다',
'chat.linkedFolderPickError': '폴더 선택기를 열 수 없습니다',
'chat.send': '전송',
'chat.stop': '중지',
'chat.removeAria': '{name} 제거',
'chat.example1Title': '에디토리얼 피치 덱',
'chat.example1Tag': '매거진',
'chat.example1Prompt':
'디자인 스튜디오의 시드 라운드 투자 유치를 위한 10장짜리 에디토리얼 피치 덱을 만들어 주세요. 스위스 스타일의 그리드 레이아웃, 볼드한 드롭 캡이 있는 크고 굵은 세리프체 헤드라인, 고정폭 폰트의 섹션 번호, 넉넉한 여백, 텍스트가 많은 슬라이드와 대비되는 꽉 찬 이미지 슬라이드를 조합해 주세요. 커버, 비전, 시장, 제품, 트랙션, 팀 구성, 투자 요청액, 연락처를 포함해 주세요.',
'chat.example2Title': 'SaaS 애널리틱스 대시보드',
'chat.example2Tag': '데이터',
'chat.example2Prompt':
'개발자 도구 SaaS를 위한 정보가 밀집된 애널리틱스 대시보드를 만들어 주세요. 전주 대비 변화량을 보여주는 주요 KPI 스트립, 두 개의 누적 선 그래프 (MRR 및 활성 워크스페이스), 사용량 기준 전 세계 히트맵, 코호트 리텐션 그리드, 상위 고객 리더보드, 그리고 실시간 이벤트 피드가 포함되어야 합니다. 다크 테마를 기반으로, 가독성을 위한 고정폭 숫자를 사용하고 스파크라인 포인트 색상으로 강조해 주세요.',
'chat.example3Title': '연례 보고서 롱 스크롤 페이지',
'chat.example3Tag': '에디토리얼',
'chat.example3Prompt':
'기후 변화 관련 비영리 단체의 인터랙티브 연례 보고서를 제작해 주세요. 큰 인용구 블록이 특징인 긴 스크롤 기반 에디토리얼 레이아웃과 함께, 누적 막대 그래프, 움직이는 카운터, 프로젝트 사이트 분포를 보여주는 코로플레스 맵 등 데이터 시각화를 섞어 주세요. 텍스트 중간중간 사진을 삽입하고, 기부자 명단과 마지막 결론 부분(CTA)을 포함해 주세요. 본문은 모던 세리프 폰트를, 차트 라벨은 산세리프 폰트를 사용하며 전체적으로 따뜻한 색감의 팔레트를 적용해 주세요.',
'preview.shareMenu': '공유 ▾',
'preview.openInNewTab': '새 탭에서 열기',
'preview.exit': '⤓ 나가기',
'preview.fullscreen': '⤢ 전체 화면',
'preview.closeTitle': '닫기 (Esc)',
'preview.loading': '{label} 불러오는 중…',
'preview.showSidebar': '{label} 표시',
'preview.hideSidebar': '{label} 숨기기',
'misc.savedTemplate': '저장된 템플릿',
'misc.primary': '기본색 (Primary)',
'misc.designSystem': '디자인 시스템',
'workspace.designFiles': '디자인 파일',
'workspace.focusMode': 'Focus workspace',
'workspace.showChat': 'Show chat',
'workspace.closeTab': '탭 닫기',
'workspace.deleteFileConfirm': '프로젝트 폴더에서 "{name}" 파일을 삭제하시겠습니까?',
'workspace.openFromDesignFiles': '디자인 파일 열기',
'workspace.designFilesLink': '디자인 파일',
'workspace.loadingSketch': '스케치 불러오는 중…',
'designFiles.title': '디자인 파일',
'designFiles.upload': '파일 업로드',
'designFiles.pasteText': '텍스트 파일로 붙여넣기',
'designFiles.newSketch': '새 스케치',
'designFiles.empty':
'아직 파일이 없습니다. 여기에 파일을 끌어다 놓거나, 스케치를 생성하거나, 텍스트를 붙여넣으세요.',
'designFiles.refresh': '새로고침',
'designFiles.delete': '삭제',
'designFiles.searchPlaceholder': '파일 검색…',
'designFiles.up': '위로',
'designFiles.back': '뒤로',
'designFiles.crumbs': '프로젝트',
'designFiles.rowMenu': '항목 메뉴',
'designFiles.openInTab': '탭에서 열기',
'designFiles.download': '다운로드',
'designFiles.downloadSelected': 'Download {n} as ZIP',
'designFiles.clearSelection': 'Clear',
'designFiles.selectAll': 'Select all',
'designFiles.dropTitle': '⤓ 여기에 파일을 놓으세요',
'designFiles.dropDesc':
'이미지, 문서, 참조 자료, 폴더 등을 놓아주세요. 에이전트가 문맥으로 활용합니다.',
'designFiles.upload.title': '파일 업로드',
'designFiles.paste.title': '텍스트를 파일로 붙여넣기',
'designFiles.upload.label': '업로드',
'designFiles.paste.label': '붙여넣기',
'designFiles.previewOpen': '열기',
'designFiles.previewClose': '미리보기 닫기',
'designFiles.modified': '{time} 수정됨 · {size}',
'designFiles.weeksAgo': '{n}주 전',
'designFiles.sectionPages': '페이지',
'designFiles.sectionScripts': '스크립트',
'designFiles.sectionImages': '이미지',
'designFiles.sectionSketches': '스케치',
'designFiles.sectionOther': '기타',
'designFiles.showMore': '+{n}개 더 보기',
'designFiles.kindHtml': 'HTML 페이지',
'designFiles.kindImage': '이미지',
'designFiles.kindSketch': '스케치',
'designFiles.kindText': '텍스트',
'designFiles.kindCode': '스크립트',
'designFiles.kindPdf': 'PDF 문서',
'designFiles.kindDocument': '문서',
'designFiles.kindPresentation': '프레젠테이션',
'designFiles.kindSpreadsheet': '스프레드시트',
'designFiles.kindBinary': '바이너리 파일',
'quickSwitcher.placeholder': '파일 열기…',
'quickSwitcher.empty': '이 프로젝트에 파일이 없습니다',
'quickSwitcher.noMatches': '일치 항목 없음',
'quickSwitcher.navigate': '탐색',
'quickSwitcher.open': '열기',
'quickSwitcher.close': '닫기',
'pasteDialog.title': '텍스트 붙여넣기',
'pasteDialog.hint': '프로젝트 폴더에 저장됩니다. 파일 이름을 지정하세요.',
'pasteDialog.fileNameLabel': '파일 이름',
'pasteDialog.namePlaceholder': 'notes.txt',
'pasteDialog.contentLabel': '내용',
'pasteDialog.contentPlaceholder': '여기에 내용을 붙여넣으세요…',
'pasteDialog.save': '저장',
'pasteDialog.cancel': '취소',
'sketch.save': '스케치 저장',
'sketch.cancel': '취소',
'sketch.saving': '저장 중…',
'sketch.tooltipDirty': '저장되지 않은 변경 사항',
'sketch.tooltipClean': '저장됨',
'fileViewer.empty': '보려는 파일을 선택하세요.',
'fileViewer.loading': '불러오는 중…',
'fileViewer.exportPptx': 'PPTX로 내보내기',
'fileViewer.openInNewTab': '새 탭에서 열기',
'fileViewer.copyPath': '경로 복사',
'fileViewer.copied': '복사 완료!',
'fileViewer.share': '공유',
'fileViewer.binaryMeta': '바이너리 · {size}',
'fileViewer.binaryNote':
'바이너리 파일 ({size} 바이트). 확인하려면 다운로드하거나 디스크에서 직접 여세요.',
'fileViewer.pdfMeta': 'PDF 문서 · {size}',
'fileViewer.documentMeta': '문서',
'fileViewer.presentationMeta': '프레젠테이션',
'fileViewer.spreadsheetMeta': '스프레드시트',
'fileViewer.previewUnavailable': '미리보기를 제공할 수 없습니다. 파일을 확인하려면 다운로드하거나 직접 열어보세요.',
'fileViewer.download': '다운로드',
'fileViewer.open': '열기',
'fileViewer.imageMeta': '이미지 · {size}',
'fileViewer.reactMeta': 'React 컴포넌트 · {size}',
'fileViewer.sketchMeta': '스케치 · {size}',
'fileViewer.markdownStreamingMeta': '스트리밍 미리보기 중…',
'fileViewer.markdownErrorMeta': '생성 오류로 인해 미리보기가 불완전할 수 있습니다.',
'fileViewer.markdownStreamingStatus': '스트리밍 중… 일부 마크다운만 보입니다.',
'fileViewer.markdownErrorStatus': '생성 오류가 발생했습니다. 이용 가능한 마지막 내용만 표시합니다.',
'fileViewer.videoMeta': '비디오 · {size}',
'fileViewer.audioMeta': '오디오 · {size}',
'fileViewer.reload': '새로고침',
'fileViewer.reloadDisk': '디스크에서 새로고침',
'fileViewer.copy': '복사',
'fileViewer.copyTitle': '파일 내용 복사',
'fileViewer.saveDisabled': '저장 (읽기 전용)',
'fileViewer.save': '저장',
'fileViewer.preview': '미리보기',
'fileViewer.source': '소스 코드',
'fileViewer.tweaks': '조정 (Tweaks)',
'fileViewer.comment': '댓글',
'fileViewer.edit': '편집',
'fileViewer.draw': '그리기',
'manualEdit.layers': "Layers",
'manualEdit.editableCount': "{count} editable",
'manualEdit.title': "Manual editor",
'manualEdit.selectLayer': "Select a layer",
'manualEdit.empty': "Click an element in the preview or choose a layer.",
'manualEdit.noClass': "no class",
'manualEdit.tabsAria': "Manual edit tabs",
'manualEdit.tabContent': "Content",
'manualEdit.tabStyle': "Style",
'manualEdit.tabAttributes': "Attributes",
'manualEdit.tabHtml': "Html",
'manualEdit.tabSource': "Source",
'manualEdit.attributesJson': "Attributes JSON",
'manualEdit.selectedHtml': "Selected element HTML",
'manualEdit.fullSource': "Full artifact source",
'manualEdit.applyContent': "Apply Content",
'manualEdit.applyStyle': "Apply Style",
'manualEdit.applyAttributes': "Apply Attributes",
'manualEdit.applyHtml': "Apply HTML",
'manualEdit.applySource': "Apply Source",
'manualEdit.invalidAttributes': "Invalid attributes JSON.",
'manualEdit.changes': "Changes",
'manualEdit.undo': "Undo",
'manualEdit.redo': "Redo",
'manualEdit.noChanges': "No manual edits yet.",
'manualEdit.imageUrl': "Image URL",
'manualEdit.altText': "Alt text",
'manualEdit.label': "Label",
'manualEdit.text': "Text",
'manualEdit.href': "Href",
'manualEdit.textColor': "Text color",
'manualEdit.background': "Background",
'manualEdit.fontSize': "Font size",
'manualEdit.weight': "Weight",
'manualEdit.align': "Align",
'manualEdit.padding': "Padding",
'manualEdit.margin': "Margin",
'manualEdit.radius': "Radius",
'manualEdit.border': "Border",
'manualEdit.width': "Width",
'manualEdit.minHeight': "Min height",
'fileViewer.zoomOut': '축소',
'fileViewer.zoomIn': '확대',
'fileViewer.resetZoom': '배율 초기화',
'fileViewer.reloadAria': '새로고침',
'fileViewer.previousSlide': '이전 슬라이드',
'fileViewer.nextSlide': '다음 슬라이드',
'fileViewer.slideNavAria': '슬라이드 이동',
'fileViewer.present': '프레젠테이션',
'fileViewer.presentInTab': '현재 탭에서',
'fileViewer.presentFullscreen': '전체 화면',
'fileViewer.presentNewTab': '새 탭에서',
'fileViewer.exitPresentation': '프레젠테이션 종료',
'fileViewer.shareLabel': '공유',
'fileViewer.exportPdf': 'PDF로 내보내기',
'fileViewer.exportPdfAllSlides': 'PDF로 내보내기 (모든 슬라이드)',
'fileViewer.exportPptxBusy': '현재 작업이 끝날 때까지 기다려 주세요.',
'fileViewer.exportPptxHint':
'이 디자인을 PPTX로 변환하도록 에이전트에 요청합니다.',
'fileViewer.exportPptxNa': '이곳에서는 PPTX 내보내기를 할 수 없습니다.',
'fileViewer.exportZip': '.zip으로 다운로드',
'fileViewer.exportHtml': '독립 실행형 HTML로 내보내기',
'fileViewer.exportMd': 'Markdown으로 내보내기',
'fileViewer.exportJsx': 'JSX로 내보내기',
'fileViewer.exportReactHtml': '미리보기를 HTML로 내보내기',
'fileViewer.saveAsTemplate': '템플릿으로 저장…',
'fileViewer.savingTemplate': '템플릿 저장 중…',
'fileViewer.savedTemplate': '"{name}"(으)로 저장됨',
'fileViewer.savedTemplateFail': '템플릿 저장에 실패했습니다. 다시 시도해 주세요.',
'fileViewer.templateNamePrompt': '템플릿 이름',
'fileViewer.templateNameDefault': '제목 없는 템플릿',
'fileViewer.templateDescPrompt':
'간단한 설명 (선택 사항 — 이 템플릿의 용도나 특징이 무엇인가요?)',
'fileViewer.deployToVercel': 'Vercel에 배포',
'fileViewer.redeployToVercel': '다시 배포',
'fileViewer.deployingToVercel': 'Vercel에 배포 중…',
'fileViewer.preparingPublicLink': '공개 링크 준비 중…',
'fileViewer.copyDeployLink': '링크 복사',
'fileViewer.deployModalTitle': 'Vercel에 배포',
'fileViewer.deployModalSubtitle':
'사용자 개인 계정을 사용하여 이 HTML 결과물을 Vercel Preview로 배포합니다.',
'fileViewer.vercelToken': 'Vercel 토큰',
'fileViewer.vercelTokenGetLink': 'Vercel 토큰 발급 받기',
'fileViewer.vercelTokenPlaceholder': 'Vercel 토큰을 붙여넣으세요',
'fileViewer.vercelTokenReuseHint':
'저장된 토큰이 사용됩니다. 변경하려면 새 토큰을 입력하세요.',
'fileViewer.vercelTokenRequired': '먼저 Vercel 토큰을 입력하고 저장하세요.',
'fileViewer.vercelTeamId': '팀 ID (Team ID)',
'fileViewer.vercelTeamSlug': '팀 슬러그 (Team slug)',
'fileViewer.optional': '선택 사항',
'fileViewer.vercelPreviewOnly': '현재 배포는 Preview 모드만 지원합니다.',
'fileViewer.savingConfig': '설정 저장 중…',
'fileViewer.deployConfigSaveFailed': 'Vercel 설정을 저장하지 못했습니다.',
'fileViewer.deployFailed': '배포 실패. Vercel 설정을 확인하고 다시 시도해 주세요.',
'fileViewer.deployResultLabel': '배포된 URL',
'fileViewer.deployLinkPreparingLabel': '공개 링크 보류 중',
'fileViewer.deployLinkDelayed':
'사이트 배포는 완료되었으나, Vercel 측에서 공개 링크를 준비 중입니다.',
'fileViewer.deployLinkProtectedLabel': 'Vercel 보호 설정 됨',
'fileViewer.deployLinkProtected':
'배포는 완료되었지만, Vercel 계정 설정에 의해 이 링크가 보호되어 있습니다. Vercel Deployment Protection을 비활성화하거나 커스텀 도메인을 사용하세요.',
'fileViewer.retryLink': '지금 다시 시도',
'questionForm.submit': '제출',
'questionForm.skip': '건너뛰기',
'questionForm.locked': '답변됨',
'conv.switch': '대화 전환',
'conv.label': '대화',
'conv.heading': '대화 목록',
'conv.new': '+ 새 대화',
'conv.empty': '아직 대화가 없습니다.',
'conv.untitled': '제목 없는 대화',
'conv.renameTooltip': '더블 클릭하여 이름 변경',
'conv.delete': '대화 삭제',
'conv.deleteConfirm': '"{title}" 대화를 삭제하시겠습니까? 관련 메시지도 함께 삭제됩니다.',
'agentPicker.label': '에이전트',
'agentPicker.modeChoose': '실행 모드 선택',
'agentPicker.localCli': '로컬 CLI',
'agentPicker.daemonOff': '데몬 꺼짐',
'agentPicker.byok': 'API · BYOK',
'agentPicker.selectAgent': '감지된 코드 에이전트 CLI 선택',
'agentPicker.noAgents': 'PATH에서 에이전트를 찾을 수 없음',
'agentPicker.notInstalled': '설치되지 않음',
'agentPicker.rescan': '로컬 PATH에서 에이전트 다시 스캔',
'tool.openInTab': '탭에서 {name} 열기',
'tool.open': '열기',
'tool.todos': '할 일 (Todos)',
'tool.write': '작성 (Write)',
'tool.edit': '편집 (Edit)',
'tool.read': '읽기 (Read)',
'tool.bash': '명령어 (Bash)',
'tool.glob': '검색 (Glob)',
'tool.grep': '검색 (Grep)',
'tool.fetch': '가져오기 (Fetch)',
'tool.search': '검색 (Search)',
'tool.lines': '{n} 줄',
'tool.changeSingular': '변경',
'tool.changePlural': '변경',
'tool.in': '경로: {path}',
'tool.hide': '숨기기',
'tool.output': '출력',
'tool.running': '실행 중…',
'tool.error': '오류',
'tool.done': '완료',
'assistant.role': '어시스턴트 (Assistant)',
'assistant.workingLabel': '작업 중',
'assistant.doneLabel': '완료됨',
'assistant.unfinishedLabel': '작업을 마치지 못하고 중지됨',
'assistant.unfinishedSummary': '{n}개 작업 남음',
'assistant.unfinishedMore': '+{n}개 추가',
'assistant.continueRemaining': '남은 작업 계속하기',
'assistant.outTokens': '{n} 출력',
'assistant.producedFiles': '이 턴에서 생성된 파일',
'assistant.openFile': '열기',
'assistant.downloadFile': '다운로드',
'assistant.thinking': '생각 중 (Thinking)',
'assistant.systemReminder': '시스템 알림',
'assistant.waitingFirstOutput': '첫 번째 출력 대기 중',
'assistant.statusBootingAgent': '에이전트 부팅 중',
'assistant.statusStarting': '시작 중',
'assistant.statusRequesting': '요청 전송 중',
'assistant.statusThinking': '생각 중',
'assistant.statusStreaming': '스트리밍 중',
'assistant.slowHint':
'평소보다 오래 걸립니다. 5-10초 후에도 양식이 나타나지 않으면, 중지(Stop)를 누르고 질문을 다시 작성해 보세요.',
'assistant.verbEditing': '편집 중',
'assistant.verbWriting': '작성 중',
'assistant.verbReading': '읽는 중',
'assistant.verbSearching': '검색 중',
'assistant.verbRunning': '실행 중',
'assistant.verbTodos': '할 일 목록',
'assistant.verbFetching': '가져오는 중',
'assistant.verbCalling': '호출 중',
'qf.answered': '답변 완료',
'qf.choose': '선택하세요…',
'qf.required': '필수',
'qf.lockedSubmitted':
'답변이 전송되었습니다 — 에이전트가 이 답변을 활용하여 남은 세션을 진행합니다.',
'qf.lockedPrev': '이전에 완료된 턴의 양식입니다.',
'qf.hint':
"적절한 항목을 선택하세요. 관심 없는 선택 항목은 건너뛰어도 좋습니다 — 에이전트가 알아서 기본값을 적용합니다.",
'qf.submitDefault': '답변 전송',
'qf.submitDisabledTitle': '필수 항목을 모두 채워주세요',
'qf.submitTitle': '답변 전송',
'qf.cardSelected': '선택됨',
'qf.cardRefs': '참조:',
'qf.cardSampleText': '다람쥐 헌 쳇바퀴에 타고파 · 0123',
'sketch.toolSelect': '선택',
'sketch.toolPen': '펜',
'sketch.toolText': '텍스트',
'sketch.toolRect': '사각형',
'sketch.toolArrow': '화살표',
'sketch.toolEraser': '지우개',
'sketch.color': '색상',
'sketch.strokeSize': '선 굵기',
'sketch.undo': '실행 취소',
'sketch.clear': '모두 지우기',
'sketch.close': '닫기',
'sketch.textPrompt': '텍스트:',
'pet.title': '펫',
'pet.tabBuiltIn': '내장',
'pet.tabBuiltInHint': 'Open Design에 기본 포함된 친구들 — 골라서 입양하세요.',
'pet.builtInEmpty': '지금은 기본 제공 펫을 불러올 수 없어요. 데몬이 다시 켜지면 커뮤니티 탭을 새로고침해 주세요.',
'pet.tabCustom': '커스텀',
'pet.tabCustomHint': '이름·글리프·색상·스프라이트를 직접 정해 보세요.',
'pet.tabCommunity': '커뮤니티',
'pet.tabCommunityHint': 'Codex에서 부화한 펫 — 입양하거나 AI로 새로 만드세요.',
'pet.tabsAria': '펫 소스',
'pet.subtitle': '작업 공간 위에 떠다니는 작은 친구를 입양해 보세요.',
'pet.navTitle': '펫',
'pet.navHint': '입양 또는 사용자 지정',
'pet.adopt': '입양',
'pet.adoptedBadge': '입양 완료',
'pet.adoptCallout': '펫 입양하기',
'pet.changePet': '펫 변경',
'pet.wake': '깨우기',
'pet.tuck': '숨기기',
'pet.wakeTitle': '펫 깨우기 — 떠다니는 오버레이 표시.',
'pet.tuckTitle': '펫 숨기기 — 오버레이 숨김.',
'pet.settingsTitle': '펫 설정 열기',
'pet.useCustom': '내 펫 사용',
'pet.customTitle': '내 펫 만들기',
'pet.customHint': '이름, 아이콘, 강조 색상을 골라보세요. 오버레이가 실시간으로 업데이트됩니다.',
'pet.customGreetingPlaceholder': '펫의 인사말…',
'pet.fieldName': '이름',
'pet.fieldGlyph': '아이콘',
'pet.fieldGlyphHint': '이모지 하나가 가장 잘 어울려요 (예: 🐝, 🦄, 🐢).',
'pet.fieldGreeting': '인사말',
'pet.fieldAccent': '강조 색상',
'pet.fieldAccentCustom': '사용자 색상',
'pet.overlayAria': '펫 친구',
'pet.spriteAria': '{name} — 드래그하여 이동, 클릭하여 대화',
'pet.spriteTitle': '{name}의 인사! 클릭해서 대화하세요.',
'pet.railAria': '펫 선택기',
'pet.railTitle': '펫',
'pet.railHint': '작업 공간 위에 떠다닐 친구를 골라 보세요.',
'pet.railExpand': '선택기 펼치기',
'pet.railCollapse': '선택기 접기',
'pet.railHide': '펫 선택기 숨기기',
'pet.railShow': '펫 선택기 표시',
'pet.railCustomFlavor': '내 펫 — 이름·아이콘·색상 마음대로.',
'pet.railCustomize': '사용자 지정…',
'pet.composerTitle': '펫 — 깨우기, 숨기기 또는 선택',
'pet.composerMenuTitle': '펫',
'pet.composerMenuHint': '팁: /pet 을 입력하면 토글',
'pet.composerOpenSettings': '설정에서 사용자 지정',
'pet.welcomeTeaserTitle': '펫 입양하기',
'pet.welcomeTeaserBody': '작업 공간 위에 떠다니는 작은 친구입니다.',
'pet.welcomeTeaserCta': '고르기',
'pet.imageUpload': '스프라이트 업로드',
'pet.imageReplace': '스프라이트 교체',
'pet.imageRemove': '이모지로 변경',
'pet.imageHintIdle': 'PNG / JPG / WebP / GIF / SVG 지원. 스프라이트시트? 가로 스트립을 올리고 프레임 수를 설정하세요.',
'pet.imageHintActive': '업로드한 스프라이트 표시 중. 프레임을 1보다 크게 설정하면 가로 스프라이트시트가 움직입니다.',
'pet.fieldFrames': '프레임',
'pet.fieldFramesHint': '1 = 정적. > 1 = 가로 스프라이트시트.',
'pet.fieldFps': '속도 (fps)',
'pet.fieldFpsHint': '프레임 전환 속도.',
'pet.atlasImport': 'Codex 스프라이트 가져오기',
'pet.atlasImportTitle': 'hatch-pet의 8x9 / 192x208 아틀라스(PNG 또는 WebP)를 가져옵니다.',
'pet.atlasPickerTitle': '애니메이션 행 선택',
'pet.atlasPickerHint': 'Codex 펫은 9개의 애니메이션 행을 가집니다. 기본값은 전체 아틀라스를 유지해 호버, 드래그 방향, 장시간 대기에 따라 행이 바뀝니다. 한 행으로 고정할 수도 있습니다.',
'pet.atlasCancel': '아틀라스 취소',
'pet.atlasAdopt': '이 행으로 고정',
'pet.atlasAdoptFull': '전체 아틀라스 사용 (애니메이션)',
'pet.atlasAdoptFullTitle': '모든 행을 유지해 호버, 드래그 방향, 장시간 대기에 반응합니다.',
'pet.atlasAdoptRowTitle': '강조된 행만 루프 스트립으로 잘라냅니다.',
'pet.atlasActiveHint': '애니메이션 아틀라스 활성 — 상호작용(호버, 드래그, 대기)에 따라 펫이 행을 자동으로 전환합니다.',
'pet.atlasRow.idle': '대기',
'pet.atlasRow.running-right': '오른쪽으로 달리기',
'pet.atlasRow.running-left': '왼쪽으로 달리기',
'pet.atlasRow.waving': '손 흔들기',
'pet.atlasRow.jumping': '점프',
'pet.atlasRow.failed': '실패',
'pet.atlasRow.waiting': '기다리기',
'pet.atlasRow.running': '달리기',
'pet.atlasRow.review': '검토',
'pet.hatchTitle': 'AI로 새 펫 부화하기',
'pet.hatchHint': '내장된 hatch-pet 스킬을 채팅에서 실행해 Codex 스타일 스프라이트시트를 만든 뒤 여기에서 가져오세요.',
'pet.hatchConcept': '펫 콘셉트 (선택)',
'pet.hatchConceptPlaceholder': '예: 스웨터를 입은 작은 픽셀 시바견',
'pet.hatchCopy': '프롬프트 복사',
'pet.hatchCopied': '복사됨!',
'pet.hatchFoot': '스킬이 펫을 저장하면 여기로 돌아와 "Codex 스프라이트 가져오기"를 누르세요.',
'pet.slashPopoverAria': '슬래시 명령',
'pet.slashPopoverTitle': '명령',
'pet.slashPopoverHint': '↑↓ 이동 · enter 선택 · esc 닫기',
'pet.slashPet': '펫을 토글하거나 입양 또는 설정으로 이동.',
'pet.slashPetWake': '플로팅 펫을 깨우기.',
'pet.slashPetTuck': '펫을 잠시 치우기.',
'pet.slashHatch': 'hatch-pet 스킬로 Codex 펫 생성.',
'pet.slashHatchArg': '<콘셉트>',
'pet.codexTitle': '최근 부화',
'pet.codexSubtitle': 'hatch-pet 스킬이 패키지한 펫이 여기에서 원클릭으로 입양 가능.',
'pet.codexSubtitleWithDir': 'hatch-pet 스킬 패키지를 위해 {dir} 스캔 중.',
'pet.codexEmpty': '부화된 펫이 아직 없습니다. 채팅에서 /hatch를 입력해 생성하세요.',
'pet.codexLoading': '부화된 펫을 찾는 중…',
'pet.codexRefresh': '새로고침',
'pet.codexAdopt': '입양',
'pet.codexAdopting': '입양 중…',
'pet.communitySync': '커뮤니티 펫 다운로드',
'pet.communitySyncing': '다운로드 중…',
'pet.communitySyncTitle': 'Codex Pet Share + j20 Hatchery 의 최신 펫을 ~/.codex/pets/ 로 동기화합니다.',
'pet.communitySyncDone': '신규 펫 {wrote} 마리 동기화됨 (총 {total} 마리).',
'pet.communitySyncFailed': '동기화 실패: {error}',
'pet.codexBundled': '내장',
'pet.codexBundledTitle': 'Open Design 에 내장 — 다운로드 불필요.',
'settings.notifications': '알림',
'settings.notificationsHint': '작업 완료 시 효과음 및 데스크톱 알림',
'settings.notifyCompletionSound': '완료 사운드',
'settings.notifyCompletionSoundHint': '한 턴이 끝나면 재생됩니다. 기본값은 꺼짐입니다.',
'settings.notifySuccessSound': '성공 사운드',
'settings.notifyFailureSound': '실패 사운드',
'settings.notifyDesktop': '데스크톱 알림',
'settings.notifyDesktopHint': '창이 활성화되지 않았을 때 전송됩니다.',
'settings.notifyDesktopBlocked': '브라우저에서 차단되었습니다. 사이트 설정에서 허용하세요.',
'settings.notifyDesktopUnsupported': '이 환경에서는 데스크톱 알림을 사용할 수 없습니다.',
'settings.notifyTest': '테스트 보내기',
'settings.notifyTestSent': '테스트 알림을 보냈습니다. 배너가 보이지 않으면 브라우저와 시스템 알림 설정을 확인하세요.',
'settings.notifyTestFailed': '알림 호출에 실패했습니다. 브라우저와 시스템 알림 설정을 확인하세요.',
'settings.notifySoundDing': '딩',
'settings.notifySoundChime': '차임벨',
'settings.notifySoundTwoToneUp': '상승 2음',
'settings.notifySoundPluck': '플럭',
'settings.notifySoundBuzz': '버즈',
'settings.notifySoundTwoToneDown': '하강 2음',
'settings.notifySoundThud': '쿵',
'settings.library': '스킬 및 디자인 시스템',
'settings.libraryHint': '콘텐츠 라이브러리 찾아보기, 미리보기 및 전환',
'settings.librarySkills': '스킬',
'settings.libraryDesignSystems': '디자인 시스템',
'settings.librarySearch': '검색...',
'settings.libraryAll': '전체',
'settings.libraryPreview': '미리보기',
'settings.libraryPreviewClose': '닫기',
'settings.libraryLoading': '불러오는 중...',
'settings.libraryNoResults': '검색어와 일치하는 항목이 없습니다.',
'settings.libraryEnabled': '활성화됨',
'settings.libraryDisabled': '비활성화됨',
'settings.libraryToggleLabel': '전환',
'notify.successTitle': '작업 완료',
'notify.failureTitle': '작업 실패',
'notify.successBody': '한 턴이 끝났습니다.',
'notify.failureBody': '작업이 오류로 종료되었습니다.',
};
+953
View File
@@ -0,0 +1,953 @@
import { en } from './en';
import type { Dict } from '../types';
export const pl: Dict = {
...en,
'common.cancel': 'Anuluj',
'common.save': 'Zapisz',
'common.close': 'Zamknij',
'common.delete': 'Usuń',
'common.rename': 'Zmień nazwę',
'common.preview': 'Podgląd',
'common.share': 'Udostępnij',
'common.search': 'Szukaj',
'common.searchEllipsis': 'Szukaj…',
'common.loading': 'Ładowanie…',
'common.all': 'Wszystkie',
'common.none': 'Brak',
'common.default': 'Domyślne',
'common.installed': 'zainstalowano',
'common.notInstalled': 'nie zainstalowano',
'common.active': 'aktywny',
'common.offline': 'offline',
'common.selected': 'wybrano',
'common.create': 'Utwórz',
'common.openPreview': 'Otwórz podgląd',
'common.exitFullscreen': 'Zamknij pełny ekran',
'common.fullscreen': 'Pełny ekran',
'common.openInNewTab': 'Otwórz w nowej karcie',
'common.exportPdf': 'Eksportuj jako PDF',
'common.exportZip': 'Pobierz jako .zip',
'common.exportHtml': 'Eksportuj jako samodzielny HTML',
'common.justNow': 'przed chwilą',
'common.minutesAgo': '{n} min temu',
'common.hoursAgo': '{n} godz. temu',
'common.daysAgo': '{n} dni temu',
'common.now': 'teraz',
'common.minutesShort': '{n}m',
'common.hoursShort': '{n}h',
'common.daysShort': '{n}d',
'common.untitled': 'Bez tytułu',
'app.brand': 'Open Design',
'app.brandPill': 'Wersja badawcza',
'app.brandSubtitle': 'od Nexu Labs',
'app.welcomeLoading': 'Ładowanie obszaru roboczego…',
'settings.welcomeKicker': 'Witaj',
'settings.welcomeTitle': 'Skonfiguruj Open Design',
'settings.welcomeSubtitle':
"Wybierz sposób generowania projektów. Możesz to zmienić w dowolnym momencie w Ustawieniach na górnym pasku.",
'settings.kicker': 'Ustawienia',
'settings.title': 'Wykonanie i model',
'settings.subtitle': 'Wybierz lokalne CLI albo BYOK. Klucz API jest przechowywany tylko w tej przeglądarce.',
'settings.modeAria': 'Tryb wykonywania',
'settings.protocolAria': 'Protokół API',
'settings.modeDaemon': 'Lokalne CLI',
'settings.modeDaemonHelp': 'Uruchamiaj przez agenta CLI na swoim komputerze',
'settings.modeDaemonOffline': 'Daemon nie jest uruchomiony',
'settings.modeDaemonOfflineMeta': 'daemon offline',
'settings.modeDaemonInstalledMeta': '{count} zainstalowano',
'settings.modeApi': 'Dostawca API',
'settings.modeApiMeta': 'BYOK',
'settings.codeAgent': 'Agent kodu',
'settings.codeAgentHint':
'Wykryto poprzez skanowanie PATH. Wybierz CLI, przez które mają przechodzić generacje.',
'settings.rescan': '↻ Ponów skanowanie',
'settings.rescanTitle': 'Ponownie skanuj PATH',
'settings.rescanRunning': 'Skanowanie...',
'settings.rescanSuccess': 'Skanowanie zakończone. Dostępne: {count}.',
'settings.rescanFailed': 'Skanowanie nie powiodło się. Sprawdź daemon i spróbuj ponownie.',
'settings.noAgentsDetected':
'Nie wykryto jeszcze żadnych agentów. Zainstaluj Claude Code, Codex, Devin for Terminal, Gemini CLI, OpenCode, Cursor Agent, Qwen lub GitHub Copilot CLI, a następnie kliknij Ponów skanowanie.',
'settings.apiSection': 'Anthropic API',
'settings.quickFillProvider': 'Szybkie wypełnienie dostawcy',
'settings.customProvider': 'Niestandardowy dostawca',
'settings.apiKey': 'Klucz API',
'settings.showKey': 'Pokaż klucz',
'settings.hideKey': 'Ukryj klucz',
'settings.show': 'Pokaż',
'settings.hide': 'Ukryj',
'settings.model': 'Model',
'settings.suggestedModelsHint':
'To sugerowane modele dla tego protokołu. Twój dostawca może obsługiwać inne modele.',
'settings.baseUrl': 'Bazowy URL',
'settings.baseUrlInvalid': 'Wpisz poprawny publiczny URL http:// lub https://. Localhost jest dozwolony; prywatne adresy IP są blokowane.',
'settings.azureDeploymentModel': 'Nazwa wdrożenia',
'settings.azureDeploymentModelHint':
'Dla Azure OpenAI to pole jest używane jako nazwa wdrożenia w /openai/deployments/<model>. Wpisz nazwę wdrożenia utworzonego w Azure.',
'settings.apiVersion': 'Wersja API',
'settings.maxTokens': 'Maks. liczba tokenów (opcjonalnie)',
'settings.maxTokensHint':
'Limit długości odpowiedzi. Każdy model ma dostrojony domyślny limit (widoczny jako placeholder); pozostaw puste, aby go użyć, lub wpisz liczbę.',
'settings.apiHint': 'Wywołania są wysyłane przez lokalny proxy daemon do ustawionego Base URL. Klucz jest przechowywany tylko w tej przeglądarce i wysyłany z żądaniami do dostawcy.',
'settings.skipForNow': 'Pomiń na razie',
'settings.getStarted': 'Rozpocznij',
'settings.envConfigure': 'Skonfiguruj tryb wykonywania',
'settings.localCli': 'Lokalne CLI',
'settings.anthropicApi': 'Anthropic API',
'settings.noAgentSelected': 'nie wybrano agenta',
'settings.language': 'Język',
'settings.languageHint': 'Zmień język interfejsu. Zapisano w tej przeglądarce.',
'settings.appearance': 'Wygląd',
'settings.appearanceHint': 'Jasny, ciemny lub zgodny z ustawieniami systemu.',
'settings.themeSystem': 'Systemowy',
'settings.themeLight': 'Jasny',
'settings.themeDark': 'Ciemny',
'settings.modelPicker': 'Model',
'settings.reasoningPicker': 'Poziom rozumowania',
'settings.modelPickerHint':
'Pobierane z CLI, gdy obsługuje ono polecenie `models`. „Domyślne” pozostawia wybór konfiguracji CLI; „Własne…” pozwala wpisać dowolne ID modelu akceptowane przez CLI.',
'settings.cliEnvTitle': 'CLI config locations',
'settings.cliEnvHint':
'Set non-secret config directories for packaged app runs and agent detection.',
'settings.cliEnvClaudeConfigDir': 'Claude Code config dir',
'settings.cliEnvCodexHome': 'Codex home',
'settings.modelCustom': 'Własny (wpisz poniżej)…',
'settings.modelCustomLabel': 'Własne ID modelu',
'settings.modelCustomPlaceholder': 'np. anthropic/claude-sonnet-4-6',
'settings.mediaProviders': 'Dostawcy multimediów',
'settings.mediaProvidersHint':
'Klucze API do generowania obrazów, wideo i dźwięku. Przechowywane lokalnie i synchronizowane z lokalnym daemonem.',
'settings.mediaProviderApiKey': 'Klucz API',
'settings.mediaProviderBaseUrl': 'Bazowy URL',
'settings.mediaProviderConfigured': 'Skonfigurowano',
'settings.mediaProviderUnset': 'Nieustawione',
'settings.mediaProviderClear': 'Wyczyść',
'settings.mediaProviderPlaceholder': 'Wklej klucz API',
'settings.mediaProviderBaseUrlPlaceholder': 'Nadpisz domyślny bazowy URL',
'settings.about': 'O aplikacji',
'settings.aboutHint': 'Szczegóły wersji i środowiska uruchomieniowego',
'settings.appVersion': 'Wersja',
'settings.appChannel': 'Kanał',
'settings.appRuntime': 'Środowisko',
'settings.appPlatform': 'Platforma',
'settings.appArchitecture': 'Architektura',
'settings.runtimePackaged': 'Aplikacja spakowana',
'settings.runtimeDevelopment': 'Rozwojowe',
'settings.versionUnavailable': 'Szczegóły wersji są niedostępne, gdy daemon jest offline.',
'entry.tabDesigns': 'Projekty',
'entry.tabExamples': 'Przykłady',
'entry.tabDesignSystems': 'Systemy projektowania',
'entry.tabConnectors': 'Konektory',
'entry.openSettingsTitle': 'Ustawienia',
'entry.openSettingsAria': 'Otwórz ustawienia',
'entry.resizeAria': 'Zmień rozmiar paska bocznego',
'entry.loadingWorkspace': 'Ładowanie obszaru roboczego…',
'entry.tabImageTemplates': 'Szablony obrazów',
'entry.tabVideoTemplates': 'Szablony wideo',
'promptTemplates.searchPlaceholder': 'Szukaj szablonów…',
'promptTemplates.countLabel': '{n} wyników',
'promptTemplates.emptyImage': 'Nie zainstalowano jeszcze szablonów promptów obrazów.',
'promptTemplates.emptyVideo': 'Nie zainstalowano jeszcze szablonów promptów wideo.',
'promptTemplates.emptyNoMatch': 'Brak szablonów pasujących do wyszukiwania.',
'promptTemplates.attributionFooter': 'Zaadaptowano z publicznych bibliotek promptów. Każda karta linkuje do oryginalnego autora.',
'promptTemplates.openPreviewTitle': 'Otwórz prompt i podgląd',
'promptTemplates.sourcePrefix': 'Źródło:',
'promptTemplates.fetchError': 'Nie udało się załadować treści szablonu.',
'promptTemplates.promptLabel': 'Treść promptu',
'promptTemplates.copyPrompt': 'Kopiuj prompt',
'promptTemplates.copyDone': 'Skopiowano!',
'promptTemplates.modelHint': 'Sugerowany model: {model}',
'promptTemplates.openSource': 'Zobacz oryginał',
'promptTemplates.openFullscreen': 'Podgląd pełnoekranowy',
'promptTemplates.closeFullscreen': 'Zamknij podgląd pełnoekranowy',
'promptTemplates.allSources': 'Wszystkie źródła',
'promptTemplates.sourceFilterAria': 'Filtruj według źródła',
'promptTemplates.retry': 'Ponów',
'connectors.title': 'Konektory',
'connectors.subtitle': 'Lokalne i przyszłe źródła danych, które mogą zasilać artefakty live.',
'connectors.account': 'Konto',
'connectors.noAccount': 'Niepołączone',
'connectors.tools': 'Narzędzia',
'connectors.connect': 'Połącz',
'connectors.disconnect': 'Rozłącz',
'connectors.configure': 'Skonfiguruj',
'connectors.unavailable': 'Niedostępne',
'connectors.phaseStubTitle': 'Interfejsy konektorów pojawią się w fazie 3; to tylko podgląd.',
'connectors.statusAvailable': 'Dostępne',
'connectors.statusConnected': 'Połączone',
'connectors.statusError': 'Błąd',
'connectors.statusDisabled': 'Wyłączone',
'connectors.gateTitle': 'Najpierw skonfiguruj klucz API Composio',
'connectors.gateBody': 'Konektory wymagają klucza API Composio. Dodaj go w ustawieniach, aby włączyć dostępne integracje.',
'connectors.gateAction': 'Otwórz ustawienia',
'connectors.aboutLabel': 'Informacje',
'connectors.detailsLabel': 'Szczegóły',
'connectors.statusLabel': 'Status',
'connectors.categoryLabel': 'Kategoria',
'connectors.providerLabel': 'Dostawca',
'connectors.toolsSection': 'Narzędzia',
'connectors.toolsLoading': 'Ładowanie narzędzi…',
'connectors.noToolsAvailable': 'Brak dostępnych narzędzi. Po połączeniu odkryjesz możliwości tej integracji.',
'connectors.openDetailsAria': 'Otwórz szczegóły {name}',
'connectors.toolsBadgeNone': 'Brak narzędzi',
'connectors.toolsBadgeOne': '{n} narzędzie',
'connectors.toolsBadgeMany': '{n} narzędzi',
'connectors.searchPlaceholder': 'Szukaj konektorów…',
'connectors.searchAriaLabel': 'Szukaj konektorów po nazwie, dostawcy lub narzędziu',
'connectors.searchClear': 'Wyczyść wyszukiwanie',
'connectors.emptyNoMatchTitle': 'Brak konektorów pasujących do „{query}”',
'connectors.emptyNoMatchBody': 'Spróbuj innego słowa kluczowego lub wyczyść wyszukiwanie, aby zobaczyć pełny katalog.',
'connectors.emptyNoMatchAction': 'Wyczyść wyszukiwanie',
'newproj.tabPrototype': 'Prototyp',
'newproj.tabDeck': 'Prezentacja',
'newproj.tabTemplate': 'Z szablonu',
'newproj.tabOther': 'Inne',
'newproj.titlePrototype': 'Nowy prototyp',
'newproj.titleDeck': 'Nowa prezentacja',
'newproj.titleTemplate': 'Zacznij od szablonu',
'newproj.titleImage': 'Nowy obraz',
'newproj.titleVideo': 'Nowe wideo',
'newproj.titleAudio': 'Nowy dźwięk',
'newproj.titleOther': 'Nowy projekt',
'newproj.namePlaceholder': 'Nazwa projektu',
'newproj.fidelityLabel': 'Wierność (Fidelity)',
'newproj.fidelityWireframe': 'Szkic (Wireframe)',
'newproj.fidelityHigh': 'Wysoka wierność (Hi-Fi)',
'newproj.toggleSpeakerNotes': 'Użyj notatek prelegenta',
'newproj.toggleSpeakerNotesHint': 'Mniej tekstu na slajdach — główne punkty w notatkach.',
'newproj.toggleAnimations': 'Dołącz animacje',
'newproj.toggleAnimationsHint':
'Dodaj ruch (wejście, najechanie, przejścia) do szablonu.',
'newproj.templateLabel': 'Szablon',
'newproj.noTemplatesTitle': 'Brak szablonów',
'newproj.noTemplatesBody':
'Otwórz dowolny projekt, a następnie użyj menu Udostępnij w przeglądarce plików, aby przekonwertować go na szablon. Szablony pojawią się tutaj.',
'newproj.savedTemplate': 'Zapisany szablon',
'newproj.fileSingular': 'plik',
'newproj.filePlural': 'pliki',
'newproj.create': 'Utwórz',
'newproj.createFromTemplate': 'Utwórz z szablonu',
'newproj.createDisabledTitle':
'Najpierw zapisz projekt jako szablon (menu Udostępnij wewnątrz projektu).',
'newproj.importClaudeZip': 'Importuj Claude Design ZIP',
'newproj.importClaudeZipTitle': 'Importuj eksport .zip z Claude Design',
'newproj.importingClaudeZip': 'Importowanie…',
'newproj.privacyFooter': 'Domyślnie tylko Ty widzisz swój projekt.',
'newproj.designSystem': 'System projektowania',
'newproj.dsNoneFreeform': 'Brak — styl dowolny',
'newproj.dsNoneSubtitleEmpty': 'Brak tokenów systemowych, wybierz własną paletę',
'newproj.dsNoneSubtitleSelected': 'Pomiń tokeny systemowe. Agent dobierze własną paletę.',
'newproj.dsCategoryFallback': 'System projektowania',
'newproj.dsSearch': 'Szukaj systemów projektowania…',
'newproj.dsModeAria': 'Tryb wyboru',
'newproj.dsModeSingle': 'Pojedynczy',
'newproj.dsModeMulti': 'Wiele',
'newproj.dsNoneTitle': 'Brak — styl dowolny',
'newproj.dsNoneSub': 'Pomiń tokeny systemowe. Agent dobierze własną paletę.',
'newproj.dsEmpty': 'Brak systemów projektowania pasujących do „{query}”.',
'newproj.dsFootSingular': 'służy tylko jako inspiracja.',
'newproj.dsFootPlural': 'służą tylko jako inspiracja.',
'newproj.dsFootClear': 'Wyczyść',
'newproj.dsBadgeDefault': 'DOMYŚLNY',
'newproj.dsPrimaryFallback': 'Główny',
'newproj.surfaceImage': 'Obraz',
'newproj.surfaceVideo': 'Wideo',
'newproj.surfaceAudio': 'Dźwięk',
'newproj.modelLabel': 'Model',
'newproj.aspectLabel': 'Proporcje',
'newproj.imageStyleLabel': 'Uwagi dot. stylu',
'newproj.imageStylePlaceholder': 'Zdjęcie redakcyjne, miękkie światło dzienne, stonowana paleta',
'newproj.videoLengthLabel': 'Długość',
'newproj.videoLengthSeconds': '{n}s',
'newproj.audioKindLabel': 'Rodzaj dźwięku',
'newproj.audioKindMusic': 'Muzyka',
'newproj.audioKindSpeech': 'Mowa / TTS',
'newproj.audioKindSfx': 'Efekty (SFX)',
'newproj.audioDurationLabel': 'Czas trwania',
'newproj.audioDurationSeconds': '{n}s',
'newproj.voiceLabel': 'Głos',
'newproj.voicePlaceholder': 'ID głosu dostawcy, opcjonalnie',
'newproj.connectorsLabel': 'Konektory',
'newproj.connectorsHint': 'Źródła danych, z których może korzystać ten artefakt.',
'newproj.connectorsEmptyTitle': 'Brak skonfigurowanych konektorów',
'newproj.connectorsEmptyBody': 'Połącz źródło danych, aby artefakt live używał prawdziwych danych zamiast placeholderów.',
'newproj.connectorsEmptyCta': 'Skonfiguruj konektory →',
'newproj.connectorsLoading': 'Ładowanie konektorów…',
'newproj.connectorsCountOne': '{n} połączony',
'newproj.connectorsCountMany': '{n} połączonych',
'newproj.connectorsManage': 'Zarządzaj',
'newproj.promptTemplateLabel': 'Szablon referencyjny',
'newproj.promptTemplateNoneTitle': 'Brak — napisz własny',
'newproj.promptTemplateNoneSub': 'Pomiń galerię, opisz własne zadanie',
'newproj.promptTemplateRefSub': 'Szablon referencyjny',
'newproj.promptTemplateSearch': 'Szukaj szablonów…',
'newproj.promptTemplateEmpty': 'Nie zainstalowano jeszcze szablonów dla tego typu powierzchni.',
'newproj.promptTemplateBodyLabel': 'Polecenie (możesz go dostosować)',
'newproj.promptTemplateOptimizeHint':
'Możesz edytować wszystko — Twoje zmiany zostaną uwzględnione w instrukcjach dla agenta.',
'newproj.promptTemplateBodyEmpty':
'Pusta treść — agent nie otrzyma referencji do szablonu.',
'designs.subRecent': 'Ostatnie',
'designs.subYours': 'Twoje projekty',
'designs.filterAria': 'Filtruj projekty',
'designs.searchPlaceholder': 'Szukaj…',
'designs.emptyNoProjects': 'Brak projektów. Utwórz jeden po lewej stronie.',
'designs.emptyNoMatch': 'Brak projektów pasujących do wyszukiwania.',
'designs.deleteTitle': 'Usuń projekt',
'designs.deleteConfirm': 'Usunąć „{name}”?',
'designs.cardFreeform': 'styl dowolny',
'designs.status.notStarted': 'Nie rozpoczęto',
'designs.status.queued': 'W kolejce',
'designs.status.running': 'Uruchomiony',
'designs.status.awaitingInput': 'Wymaga danych',
'designs.status.succeeded': 'Zakończono',
'designs.status.failed': 'Błąd',
'designs.status.canceled': 'Anulowano',
'designs.viewToggleAria': 'Tryb widoku',
'designs.viewGrid': 'Widok siatki',
'designs.viewKanban': 'Widok tablicy',
'designs.kanbanEmptyColumn': 'Brak projektów',
'designs.deleteAria': 'Usuń projekt {name}',
'examples.typeLabel': 'Typ',
'examples.surfaceLabel': 'Powierzchnia',
'examples.surfaceWeb': 'Web',
'examples.surfaceImage': 'Obraz',
'examples.surfaceVideo': 'Wideo',
'examples.surfaceAudio': 'Dźwięk',
'examples.scenarioLabel': 'Scenariusz',
'examples.modeAll': 'Wszystkie',
'examples.modePrototypeDesktop': 'Prototypy · Desktop',
'examples.modePrototypeMobile': 'Prototypy · Mobile',
'examples.modeDeck': 'Slajdy',
'examples.modeDocument': 'Dokumenty i szablony',
'examples.modeOrbit': 'Orbit',
'examples.scenarioGeneral': 'Ogólne',
'examples.scenarioEngineering': 'Inżynieria',
'examples.scenarioProduct': 'Produkt',
'examples.scenarioDesign': 'Design',
'examples.scenarioMarketing': 'Marketing',
'examples.scenarioSales': 'Sprzedaż',
'examples.scenarioFinance': 'Finanse',
'examples.scenarioHr': 'HR',
'examples.scenarioOperations': 'Operacje',
'examples.scenarioSupport': 'Wsparcie',
'examples.scenarioLegal': 'Prawo',
'examples.scenarioEducation': 'Edukacja',
'examples.scenarioPersonal': 'Osobiste',
'examples.emptyNoSkills': 'Brak dostępnych umiejętności. Czy daemon jest uruchomiony?',
'examples.searchPlaceholder': 'Szukaj przykładów…',
'examples.searchAria': 'Szukaj przykładów po nazwie',
'examples.emptyNoMatch': 'Brak przykładów pasujących do filtrów.',
'examples.openPreview': '⤢ Otwórz podgląd',
'examples.loadingPreview': 'Ładowanie podglądu…',
'examples.hoverPreview': 'Najedź, aby zobaczyć podgląd',
'examples.usePrompt': 'Użyj tego promptu',
'examples.previewModalTitle': 'Pełny podgląd (okno)',
'examples.shareTitle': 'Udostępnij ten przykład',
'examples.shareLoadFirst': 'Najedź, aby najpierw załadować podgląd',
'examples.shareMenu': 'Udostępnij ▾',
'examples.exportPdfAllSlides': 'Eksportuj jako PDF (wszystkie slajdy)',
'examples.exportPptxLocked': 'Eksportuj jako PPTX… (najpierw otwórz szablon)',
'examples.tagSlideDeck': 'Prezentacja',
'examples.tagTemplate': 'Szablon',
'examples.tagDesignSystem': 'System projektowania',
'examples.tagMobilePrototype': 'Prototyp mobilny',
'examples.tagDesktopPrototype': 'Prototyp desktopowy',
'examples.tagImage': 'Obraz',
'examples.tagVideo': 'Wideo',
'examples.tagAudio': 'Dźwięk',
'examples.previewLabel': 'Podgląd',
'ds.surfaceLabel': 'Powierzchnia',
'ds.surfaceWeb': 'Web',
'ds.surfaceImage': 'Obraz',
'ds.surfaceVideo': 'Wideo',
'ds.surfaceAudio': 'Dźwięk',
'ds.searchPlaceholder': 'Szukaj systemów projektowania…',
'ds.emptyNoMatch': 'Brak systemów projektowania pasujących do wyszukiwania.',
'ds.badgeDefault': 'DOMYŚLNY',
'ds.preview': 'Podgląd',
'ds.previewTitle': 'Podgląd systemu projektowania',
'ds.categoryAll': 'Wszystkie',
'ds.categoryUncategorized': 'Niekategoryzowane',
'ds.showcase': 'Galeria',
'ds.tokens': 'Tokeny',
'ds.specToggle': 'DESIGN.md',
'ds.specLoading': 'Ładowanie DESIGN.md…',
'avatar.title': 'Konto i ustawienia',
'avatar.localCli': 'Lokalne CLI',
'avatar.anthropicApi': 'Anthropic API',
'avatar.useLocal': 'Użyj lokalnego CLI',
'avatar.useApi': 'Użyj API · BYOK',
'avatar.codeAgent': 'Agent kodu',
'avatar.rescan': 'Skanuj PATH ponownie',
'avatar.settings': 'Ustawienia',
'avatar.backToProjects': 'Wróć do projektów',
'avatar.metaActive': 'aktywny',
'avatar.metaOffline': 'offline',
'avatar.metaSelected': 'wybrano',
'avatar.noAgentSelected': 'nie wybrano agenta',
'avatar.modelSection': 'Model',
'avatar.modelLabel': 'Model',
'avatar.reasoningLabel': 'Rozumowanie',
'avatar.customSuffix': '(własny)',
'project.backToProjects': 'Wróć do projektów',
'project.metaFreeform': 'styl dowolny',
'project.resizeChatPanel': 'Zmień rozmiar panelu czatu',
'chat.tabChat': 'Czat',
'chat.tabComments': 'Komentarze',
'chat.commentsSoon': 'Komentarze — wkrótce',
'chat.comments.attached': 'Dołączone do czatu',
'chat.comments.emptyAttached': 'Brak dołączonych komentarzy.',
'chat.comments.saved': 'Zapisane komentarze',
'chat.comments.emptySaved': 'Brak zapisanych komentarzy.',
'chat.comments.add': 'Dodaj',
'chat.comments.addAll': 'Dodaj wszystkie',
'chat.comments.remove': 'Usuń',
'chat.comments.placeholder': 'Skomentuj ten element…',
'chat.comments.addSend': 'Dodaj i wyślij',
'chat.comments.updateSend': 'Zaktualizuj i wyślij',
'chat.comments.removeAttachment': 'Usuń załącznik komentarza',
'chat.comments.removeAttachmentAria': 'Usuń załącznik komentarza dla {name}',
'chat.conversationsTitle': 'Rozmowy',
'chat.conversationsAria': 'Historia rozmów',
'chat.newConversation': 'Nowa rozmowa',
'chat.newConversationsTitle': 'Nowa rozmowa',
'chat.conversationsHeading': 'Rozmowy',
'chat.new': 'Nowa',
'chat.emptyConversations': 'Brak rozmów.',
'chat.deleteConversation': 'Usuń rozmowę',
'chat.deleteConversationConfirm':
'Usunąć „{title}”? Spowoduje to usunięcie wszystkich wiadomości.',
'chat.untitledConversation': 'Rozmowa bez tytułu',
'chat.startTitle': 'Zacznij rozmowę',
'chat.startHint':
'Przeciągnij lub wklej obrazy jako referencję wizualną lub wpisz @, aby załączyć plik z tego projektu. Możesz też wypróbować jeden z tematów na start:',
'chat.fillInputTitle': 'Kliknij, aby wypełnić pole tekstowe',
'chat.jumpToLatest': 'Skocz do najnowszych',
'chat.scrollToLatest': 'Przewiń do najnowszych',
'chat.you': 'Ty',
'chat.openFile': 'Otwórz {name}',
'chat.composerPlaceholder':
'Opisz projekt, który chcesz stworzyć — wklej obrazy lub użyj @, aby wskazać plik…',
'chat.composerHint':
'⌘/Ctrl + Enter aby wysłać · wklej obrazy · @ aby wskazać pliki',
'chat.cliSettingsTitle': 'Ustawienia CLI i modelu',
'chat.cliSettingsAria': 'Otwórz ustawienia CLI i modelu',
'chat.attachTitle': 'Załącz pliki (lub wklej / przeciągnij)',
'chat.attachAria': 'Załącz pliki',
'chat.importTitle': 'Importuj źródła (wkrótce)',
'chat.importLabel': 'Importuj',
'chat.importComingSoon': 'Wkrótce',
'chat.importSoon': 'Wkrótce',
'chat.importFig': 'Prześlij plik .fig',
'chat.importGitHub': 'Połącz z GitHub',
'chat.importWeb': 'Pobierz element webowy',
'chat.importFolder': 'Połącz folder z kodem',
'chat.importSkills': 'Umiejętności i systemy projektowania',
'chat.importProject': 'Reference another project',
'chat.linkedFolderRemoveAria': 'Usuń połączony folder {path}',
'chat.linkedFolderNotFound': 'Folder nie istnieje',
'chat.linkedFolderAlready': 'Ten folder jest już połączony',
'chat.linkedFolderPickError': 'Nie można otworzyć wyboru folderu',
'chat.send': 'Wyślij',
'chat.stop': 'Zatrzymaj',
'chat.removeAria': 'Usuń {name}',
'chat.example1Title': 'Prezentacja redakcyjna (Pitch deck)',
'chat.example1Tag': 'Magazyn',
'chat.example1Prompt':
'10-slajdowa prezentacja (pitch deck) dla studia projektowego zbierającego rundę seed — układ typu Swiss-grid, duże nagłówki szeryfowe z pogrubionymi inicjałami, numery sekcji o stałej szerokości znaków, dużo wolnej przestrzeni i slajdy ze zdjęciami na cały ekran przeplatane tymi z dużą ilością tekstu. Okładka, wizja, rynek, produkt, trakcja, zespół, zapytanie, kontakt.',
'chat.example2Title': 'Dashboard analityczny SaaS',
'chat.example2Tag': 'Dane',
'chat.example2Prompt':
'Gęsty dashboard analityczny dla SaaS-a z narzędziami dla programistów — pasek KPI ze zmianami tydzień do tygodnia, dwa wykresy liniowe (MRR i aktywne obszary robocze), mapa cieplna użycia na świecie, siatka retencji kohortowej, tabela liderów wśród klientów i kanał zdarzeń w czasie rzeczywistym. Ciemny motyw, cyfry o stałej szerokości, akcenty typu sparkline.',
'chat.example3Title': 'Raport roczny (long-scroll)',
'chat.example3Tag': 'Edytorskie',
'chat.example3Prompt':
'Interaktywny raport roczny dla organizacji klimatycznej — układ typu long-scroll mieszający bloki z dużymi cytatami, wizualizacje danych (wykresy słupkowe, animowane liczniki, mapa choropletowa lokalizacji projektów), przerywniki fotograficzne, lista darczyńców i końcowe wezwanie do działania. Nowoczesny tekst szeryfowy, etykiety wykresów bezszeryfowe, ziemista paleta kolorów.',
'preview.shareMenu': 'Udostępnij ▾',
'preview.openInNewTab': 'Otwórz w nowej karcie',
'preview.exit': '⤓ Wyjdź',
'preview.fullscreen': '⤢ Pełny ekran',
'preview.closeTitle': 'Zamknij (Esc)',
'preview.loading': 'Ładowanie {label}…',
'preview.showSidebar': 'Pokaż {label}',
'preview.hideSidebar': 'Ukryj {label}',
'misc.savedTemplate': 'Zapisany szablon',
'misc.primary': 'Główny',
'misc.designSystem': 'System projektowania',
'workspace.designFiles': 'Pliki projektu',
'workspace.focusMode': 'Focus workspace',
'workspace.showChat': 'Show chat',
'workspace.closeTab': 'Zamknij kartę',
'workspace.deleteFileConfirm': 'Usunąć „{name}” z folderu projektu?',
'workspace.openFromDesignFiles': 'Otwórz plik z',
'workspace.designFilesLink': 'Pliki projektu',
'workspace.loadingSketch': 'Ładowanie szkicu…',
'designFiles.title': 'Pliki projektu',
'designFiles.upload': 'Prześlij pliki',
'designFiles.pasteText': 'Wklej jako plik tekstowy',
'designFiles.newSketch': 'Nowy szkic',
'designFiles.empty':
'Nic tu jeszcze nie ma. Przeciągnij pliki poniżej lub utwórz szkic / wklej tekst.',
'designFiles.refresh': 'Odśwież',
'designFiles.delete': 'Usuń',
'designFiles.searchPlaceholder': 'Szukaj plików…',
'designFiles.up': 'W górę',
'designFiles.back': 'Wstecz',
'designFiles.crumbs': 'projekt',
'designFiles.rowMenu': 'Menu wiersza',
'designFiles.openInTab': 'Otwórz w karcie',
'designFiles.download': 'Pobierz',
'designFiles.downloadSelected': 'Download {n} as ZIP',
'designFiles.clearSelection': 'Clear',
'designFiles.selectAll': 'Select all',
'designFiles.dropTitle': '⤓ Upuść pliki tutaj',
'designFiles.dropDesc':
'Obrazy, dokumenty, referencje lub foldery — agent użyje ich jako kontekstu.',
'designFiles.upload.title': 'Prześlij pliki',
'designFiles.paste.title': 'Wklej tekst jako plik',
'designFiles.upload.label': 'Prześlij',
'designFiles.paste.label': 'Wklej',
'designFiles.previewOpen': 'Otwórz',
'designFiles.previewClose': 'Zamknij podgląd',
'designFiles.modified': 'Zmodyfikowano {time} · {size}',
'designFiles.weeksAgo': '{n} tyg. temu',
'designFiles.sectionPages': 'Strony',
'designFiles.sectionScripts': 'Skrypty',
'designFiles.sectionImages': 'Obrazy',
'designFiles.sectionSketches': 'Szkice',
'designFiles.sectionOther': 'Inne',
'designFiles.showMore': 'Pokaż +{n} więcej',
'designFiles.kindHtml': 'Strona HTML',
'designFiles.kindImage': 'Obraz',
'designFiles.kindSketch': 'Szkic',
'designFiles.kindText': 'Tekst',
'designFiles.kindCode': 'Skrypt',
'designFiles.kindPdf': 'PDF',
'designFiles.kindDocument': 'Dokument',
'designFiles.kindPresentation': 'Prezentacja',
'designFiles.kindSpreadsheet': 'Arkusz kalkulacyjny',
'designFiles.kindBinary': 'Plik binarny',
'quickSwitcher.placeholder': 'Otwórz plik…',
'quickSwitcher.empty': 'Brak plików w tym projekcie',
'quickSwitcher.noMatches': 'Brak wyników',
'quickSwitcher.navigate': 'nawiguj',
'quickSwitcher.open': 'otwórz',
'quickSwitcher.close': 'zamknij',
'pasteDialog.title': 'Wklej tekst',
'pasteDialog.hint': 'Zapisano w folderze projektu. Wybierz dowolną nazwę.',
'pasteDialog.fileNameLabel': 'Nazwa pliku',
'pasteDialog.namePlaceholder': 'notatki.txt',
'pasteDialog.contentLabel': 'Treść',
'pasteDialog.contentPlaceholder': 'Wklej cokolwiek…',
'pasteDialog.save': 'Zapisz',
'pasteDialog.cancel': 'Anuluj',
'sketch.save': 'Zapisz szkic',
'sketch.cancel': 'Anuluj',
'sketch.saving': 'Zapisywanie…',
'sketch.tooltipDirty': 'Niezapisane zmiany',
'sketch.tooltipClean': 'Zapisano',
'fileViewer.empty': 'Wybierz plik, aby go wyświetlić.',
'fileViewer.loading': 'Ładowanie…',
'fileViewer.exportPptx': 'Eksportuj jako PPTX',
'fileViewer.openInNewTab': 'Otwórz w nowej karcie',
'fileViewer.copyPath': 'Kopiuj ścieżkę',
'fileViewer.copied': 'Skopiowano!',
'fileViewer.share': 'Udostępnij',
'fileViewer.binaryMeta': 'Binarny · {size}',
'fileViewer.binaryNote':
'Plik binarny ({size} bajtów). Pobierz go lub otwórz z dysku, aby sprawdzić zawartość.',
'fileViewer.pdfMeta': 'PDF · {size}',
'fileViewer.documentMeta': 'Dokument',
'fileViewer.presentationMeta': 'Prezentacja',
'fileViewer.spreadsheetMeta': 'Arkusz kalkulacyjny',
'fileViewer.previewUnavailable': 'Podgląd niedostępny. Pobierz lub otwórz plik, aby go sprawdzić.',
'fileViewer.download': 'Pobierz',
'fileViewer.open': 'Otwórz',
'fileViewer.imageMeta': 'Obraz · {size}',
'fileViewer.reactMeta': 'Komponent React · {size}',
'fileViewer.sketchMeta': 'Szkic · {size}',
'fileViewer.markdownStreamingMeta': 'Podgląd na żywo…',
'fileViewer.markdownErrorMeta': 'Podgląd może być niepełny (błąd generowania).',
'fileViewer.markdownStreamingStatus': 'Strumieniowanie… wyświetlanie częściowego markdownu.',
'fileViewer.markdownErrorStatus': 'Błąd generowania. Wyświetlanie ostatniej dostępnej treści.',
'fileViewer.videoMeta': 'Wideo · {size}',
'fileViewer.audioMeta': 'Dźwięk · {size}',
'fileViewer.reload': 'Odśwież',
'fileViewer.reloadDisk': 'Odśwież z dysku',
'fileViewer.copy': 'Kopiuj',
'fileViewer.copyTitle': 'Kopiuj zawartość pliku',
'fileViewer.saveDisabled': 'Zapisz (widok tylko do odczytu)',
'fileViewer.save': 'Zapisz',
'fileViewer.preview': 'Podgląd',
'fileViewer.source': 'Źródło',
'fileViewer.tweaks': 'Poprawki',
'fileViewer.comment': 'Komentarz',
'fileViewer.edit': 'Edytuj',
'fileViewer.draw': 'Rysuj',
'manualEdit.layers': "Layers",
'manualEdit.editableCount': "{count} editable",
'manualEdit.title': "Manual editor",
'manualEdit.selectLayer': "Select a layer",
'manualEdit.empty': "Click an element in the preview or choose a layer.",
'manualEdit.noClass': "no class",
'manualEdit.tabsAria': "Manual edit tabs",
'manualEdit.tabContent': "Content",
'manualEdit.tabStyle': "Style",
'manualEdit.tabAttributes': "Attributes",
'manualEdit.tabHtml': "Html",
'manualEdit.tabSource': "Source",
'manualEdit.attributesJson': "Attributes JSON",
'manualEdit.selectedHtml': "Selected element HTML",
'manualEdit.fullSource': "Full artifact source",
'manualEdit.applyContent': "Apply Content",
'manualEdit.applyStyle': "Apply Style",
'manualEdit.applyAttributes': "Apply Attributes",
'manualEdit.applyHtml': "Apply HTML",
'manualEdit.applySource': "Apply Source",
'manualEdit.invalidAttributes': "Invalid attributes JSON.",
'manualEdit.changes': "Changes",
'manualEdit.undo': "Undo",
'manualEdit.redo': "Redo",
'manualEdit.noChanges': "No manual edits yet.",
'manualEdit.imageUrl': "Image URL",
'manualEdit.altText': "Alt text",
'manualEdit.label': "Label",
'manualEdit.text': "Text",
'manualEdit.href': "Href",
'manualEdit.textColor': "Text color",
'manualEdit.background': "Background",
'manualEdit.fontSize': "Font size",
'manualEdit.weight': "Weight",
'manualEdit.align': "Align",
'manualEdit.padding': "Padding",
'manualEdit.margin': "Margin",
'manualEdit.radius': "Radius",
'manualEdit.border': "Border",
'manualEdit.width': "Width",
'manualEdit.minHeight': "Min height",
'fileViewer.zoomOut': 'Pomniejsz',
'fileViewer.zoomIn': 'Powiększ',
'fileViewer.resetZoom': 'Resetuj powiększenie',
'fileViewer.reloadAria': 'Odśwież',
'fileViewer.previousSlide': 'Poprzedni slajd',
'fileViewer.nextSlide': 'Następny slajd',
'fileViewer.slideNavAria': 'Nawigacja slajdów',
'fileViewer.present': 'Prezentuj',
'fileViewer.presentInTab': 'W tej karcie',
'fileViewer.presentFullscreen': 'Pełny ekran',
'fileViewer.presentNewTab': 'Nowa karta',
'fileViewer.exitPresentation': 'Wyjdź z prezentacji',
'fileViewer.shareLabel': 'Udostępnij',
'fileViewer.exportPdf': 'Eksportuj jako PDF',
'fileViewer.exportPdfAllSlides': 'Eksportuj jako PDF (wszystkie slajdy)',
'fileViewer.exportPptxBusy': 'Poczekaj, aż bieżąca tura zostanie zakończona.',
'fileViewer.exportPptxHint':
'Wyślij prośbę do agenta o przekonwertowanie tego projektu na PPTX.',
'fileViewer.exportPptxNa': 'Eksport do PPTX nie jest tutaj dostępny.',
'fileViewer.exportZip': 'Pobierz jako .zip',
'fileViewer.exportHtml': 'Eksportuj jako samodzielny HTML',
'fileViewer.exportMd': 'Eksportuj jako Markdown',
'fileViewer.exportJsx': 'Eksportuj jako JSX',
'fileViewer.exportReactHtml': 'Eksportuj podgląd jako HTML',
'fileViewer.saveAsTemplate': 'Zapisz jako szablon…',
'fileViewer.savingTemplate': 'Zapisywanie szablonu…',
'fileViewer.savedTemplate': 'Zapisano jako „{name}”',
'fileViewer.savedTemplateFail': 'Nie udało się zapisać szablonu — spróbuj ponownie.',
'fileViewer.templateNamePrompt': 'Nazwa szablonu',
'fileViewer.templateNameDefault': 'Szablon bez tytułu',
'fileViewer.templateDescPrompt':
'Krótki opis (opcjonalnie — co czyni ten szablon użytecznym?)',
'fileViewer.deployToVercel': 'Wdróż na Vercel',
'fileViewer.redeployToVercel': 'Wdróż ponownie',
'fileViewer.deployingToVercel': 'Wdrażanie na Vercel…',
'fileViewer.preparingPublicLink': 'Przygotowywanie publicznego linku…',
'fileViewer.copyDeployLink': 'Kopiuj link',
'fileViewer.deployModalTitle': 'Wdróż na Vercel',
'fileViewer.deployModalSubtitle':
'Wdróż ten artefakt HTML jako podgląd Vercel (Preview) przy użyciu własnego konta.',
'fileViewer.vercelToken': 'Token Vercel',
'fileViewer.vercelTokenGetLink': 'Pobierz token Vercel',
'fileViewer.vercelTokenPlaceholder': 'Wklej swój token Vercel',
'fileViewer.vercelTokenReuseHint':
'Zapisany token zostanie użyty. Wprowadź nowy, aby go zastąpić.',
'fileViewer.vercelTokenRequired': 'Najpierw wprowadź i zapisz token Vercel.',
'fileViewer.vercelTeamId': 'ID zespołu',
'fileViewer.vercelTeamSlug': 'Slug zespołu',
'fileViewer.optional': 'Opcjonalnie',
'fileViewer.vercelPreviewOnly': 'Wdrożenia są obecnie dostępne tylko jako Podgląd (Preview).',
'fileViewer.savingConfig': 'Zapisywanie…',
'fileViewer.deployConfigSaveFailed': 'Nie udało się zapisać ustawień Vercel.',
'fileViewer.deployFailed': 'Wdrożenie nie powiodło się. Sprawdź ustawienia Vercel i spróbuj ponownie.',
'fileViewer.deployResultLabel': 'Wdrożony URL',
'fileViewer.deployLinkPreparingLabel': 'Oczekiwanie na link publiczny',
'fileViewer.deployLinkDelayed':
'Strona została wdrożona. Vercel wciąż przygotowuje link publiczny.',
'fileViewer.deployLinkProtectedLabel': 'Ochrona Vercel włączona',
'fileViewer.deployLinkProtected':
'Strona została wdrożona, ale Vercel wymaga uwierzytelnienia dla tego linku podglądu. Wyłącz Deployment Protection lub użyj własnej domeny.',
'fileViewer.retryLink': 'Ponów teraz',
'questionForm.submit': 'Wyślij',
'questionForm.skip': 'Pomiń',
'questionForm.locked': 'Odpowiedziano',
'conv.switch': 'Przełącz rozmowę',
'conv.label': 'Rozmowa',
'conv.heading': 'Rozmowy',
'conv.new': '+ Nowa',
'conv.empty': 'Brak rozmów.',
'conv.untitled': 'Rozmowa bez tytułu',
'conv.renameTooltip': 'Kliknij dwukrotnie, aby zmienić nazwę',
'conv.delete': 'Usuń rozmowę',
'conv.deleteConfirm': 'Usunąć „{title}”? Spowoduje to usunięcie wszystkich wiadomości.',
'agentPicker.label': 'Agent',
'agentPicker.modeChoose': 'Wybierz tryb wykonywania',
'agentPicker.localCli': 'Lokalne CLI',
'agentPicker.daemonOff': 'daemon wyłączony',
'agentPicker.byok': 'API · BYOK',
'agentPicker.selectAgent': 'Wybierz wykrytego agenta CLI',
'agentPicker.noAgents': 'brak agentów w PATH',
'agentPicker.notInstalled': 'nie zainstalowano',
'agentPicker.rescan': 'Ponownie skanuj lokalny PATH w poszukiwaniu agentów',
'tool.openInTab': 'Otwórz {name} w karcie',
'tool.open': 'otwórz',
'tool.todos': 'Zadania',
'tool.write': 'Zapisz',
'tool.edit': 'Edytuj',
'tool.read': 'Czytaj',
'tool.bash': 'Bash',
'tool.glob': 'Glob',
'tool.grep': 'Grep',
'tool.fetch': 'Pobierz (Fetch)',
'tool.search': 'Szukaj',
'tool.lines': '{n} linii',
'tool.changeSingular': 'zmiana',
'tool.changePlural': 'zmiany',
'tool.in': 'w {path}',
'tool.hide': 'ukryj',
'tool.output': 'wyjście',
'tool.running': 'uruchomiony…',
'tool.error': 'błąd',
'tool.done': 'gotowe',
'assistant.role': 'Asystent',
'assistant.workingLabel': 'Pracuję',
'assistant.doneLabel': 'Gotowe',
'assistant.unfinishedLabel': 'Zatrzymano z niedokończonymi zadaniami',
'assistant.unfinishedSummary': 'pozostało {n} zadań',
'assistant.unfinishedMore': '+{n} więcej',
'assistant.continueRemaining': 'Kontynuuj pozostałe zadania',
'assistant.outTokens': '{n} wysłano',
'assistant.producedFiles': 'Pliki z tej tury',
'assistant.openFile': 'Otwórz',
'assistant.downloadFile': 'Pobierz',
'assistant.thinking': 'Myślę',
'assistant.systemReminder': 'Przypomnienie systemowe',
'assistant.waitingFirstOutput': 'Oczekiwanie na pierwszą odpowiedź',
'assistant.statusBootingAgent': 'Uruchamianie agenta',
'assistant.statusStarting': 'Startowanie',
'assistant.statusRequesting': 'Wysyłanie prośby',
'assistant.statusThinking': 'Myślenie',
'assistant.statusStreaming': 'Strumieniowanie',
'assistant.slowHint':
'Trwa to dłużej niż zwykle. Formularz zazwyczaj pojawia się w 5–10s — możesz zatrzymać i sformułować zapytanie inaczej.',
'assistant.verbEditing': 'Edytowanie',
'assistant.verbWriting': 'Zapisywanie',
'assistant.verbReading': 'Czytanie',
'assistant.verbSearching': 'Wyszukiwanie',
'assistant.verbRunning': 'Uruchamianie',
'assistant.verbTodos': 'Zadania',
'assistant.verbFetching': 'Pobieranie',
'assistant.verbCalling': 'Wywoływanie',
'qf.answered': 'odpowiedziano',
'qf.choose': 'Wybierz…',
'qf.required': 'wymagane',
'qf.lockedSubmitted':
'Odpowiedzi wysłane — agent używa ich do końca sesji.',
'qf.lockedPrev': 'Ten formularz pochodzi z poprzedniej tury.',
'qf.hint':
"Wybierz to, co pasuje. Pomiń opcjonalne pola, które Cię nie interesują — agent użyje rozsądnych domyślnych ustawień.",
'qf.submitDefault': 'Wyślij odpowiedzi',
'qf.submitDisabledTitle': 'Najpierw wypełnij wymagane pola',
'qf.submitTitle': 'Wyślij odpowiedzi',
'qf.cardSelected': 'wybrano',
'qf.cardRefs': 'Ref:',
'qf.cardSampleText': 'Zażółć gęślą jaźń · 0123',
'sketch.toolSelect': 'Wybierz (brak akcji)',
'sketch.toolPen': 'Pióro',
'sketch.toolText': 'Tekst',
'sketch.toolRect': 'Prostokąt',
'sketch.toolArrow': 'Strzałka',
'sketch.toolEraser': 'Gumka',
'sketch.color': 'Kolor',
'sketch.strokeSize': 'Grubość linii',
'sketch.undo': 'Cofnij',
'sketch.clear': 'Wyczyść',
'sketch.close': 'Zamknij',
'sketch.textPrompt': 'Tekst:',
'pet.title': 'Pupile',
'pet.tabBuiltIn': 'Wbudowane',
'pet.tabBuiltInHint': 'Towarzysze dołączeni do Open Design — wybierz jednego i adoptuj.',
'pet.builtInEmpty': 'Wbudowane zwierzaki są teraz niedostępne. Odśwież zakładkę Społeczność, gdy daemon wróci.',
'pet.tabCustom': 'Własny',
'pet.tabCustomHint': 'Ustaw imię, glif, kolor lub wgraj sprite.',
'pet.tabCommunity': 'Społeczność',
'pet.tabCommunityHint': 'Pupile wyklute przez Codex — adoptuj albo wygeneruj nowego z AI.',
'pet.tabsAria': 'Źródło pupila',
'pet.subtitle': 'Adoptuj małego towarzysza, który unosi się nad Twoim workspace.',
'pet.navTitle': 'Pupile',
'pet.navHint': 'Adoptuj lub dostosuj',
'pet.adopt': 'Adoptuj',
'pet.adoptedBadge': 'Adoptowany',
'pet.adoptCallout': 'Adoptuj pupila',
'pet.changePet': 'Zmień pupila',
'pet.wake': 'Obudź',
'pet.tuck': 'Schowaj',
'pet.wakeTitle': 'Obudź pupila — pokaż nakładkę.',
'pet.tuckTitle': 'Schowaj pupila — ukryj nakładkę.',
'pet.settingsTitle': 'Otwórz ustawienia pupila',
'pet.useCustom': 'Użyj mojego pupila',
'pet.customTitle': 'Stwórz własnego',
'pet.customHint': 'Wybierz imię, symbol i kolor akcentu — nakładka aktualizuje się na żywo.',
'pet.customGreetingPlaceholder': 'Powitanie od Twojego pupila…',
'pet.fieldName': 'Imię',
'pet.fieldGlyph': 'Symbol',
'pet.fieldGlyphHint': 'Pojedyncze emoji wygląda najlepiej (np. 🐝, 🦄, 🐢).',
'pet.fieldGreeting': 'Powitanie',
'pet.fieldAccent': 'Kolor akcentu',
'pet.fieldAccentCustom': 'Własny kolor',
'pet.overlayAria': 'Towarzysz pupil',
'pet.spriteAria': '{name} — przeciągnij, aby przesunąć, kliknij, aby porozmawiać',
'pet.spriteTitle': 'Cześć od {name}! Kliknij, aby porozmawiać.',
'pet.railAria': 'Wybór pupila',
'pet.railTitle': 'Pupile',
'pet.railHint': 'Wybierz towarzysza, który będzie unosił się nad workspace.',
'pet.railExpand': 'Pokaż wybór',
'pet.railCollapse': 'Zwiń wybór',
'pet.railHide': 'Ukryj wybór zwierzaków',
'pet.railShow': 'Pokaż wybór zwierzaków',
'pet.railCustomFlavor': 'Twój — imię, symbol, kolor.',
'pet.railCustomize': 'Dostosuj…',
'pet.composerTitle': 'Pupile — obudź, schowaj lub wybierz',
'pet.composerMenuTitle': 'Pupile',
'pet.composerMenuHint': 'wskazówka: wpisz /pet, aby przełączyć',
'pet.composerOpenSettings': 'Dostosuj w Ustawieniach',
'pet.welcomeTeaserTitle': 'Adoptuj pupila',
'pet.welcomeTeaserBody': 'Mały towarzysz unoszący się nad workspace.',
'pet.welcomeTeaserCta': 'Wybierz',
'pet.imageUpload': 'Wgraj sprite',
'pet.imageReplace': 'Zmień sprite',
'pet.imageRemove': 'Użyj emoji',
'pet.imageHintIdle': 'PNG, JPG, WebP, GIF lub SVG. Spritesheet? Wgraj poziomy pasek i ustaw liczbę klatek.',
'pet.imageHintActive': 'Wyświetlam Twój sprite. Ustaw klatki > 1, aby animować poziomy spritesheet.',
'pet.fieldFrames': 'Klatki',
'pet.fieldFramesHint': '1 = statyczny. > 1 = poziomy spritesheet.',
'pet.fieldFps': 'Szybkość (fps)',
'pet.fieldFpsHint': 'Jak szybko klatki się zmieniają.',
'pet.atlasImport': 'Importuj sprite Codex',
'pet.atlasImportTitle': 'Zaimportuj atlas hatch-pet 8x9 / 192x208 (PNG lub WebP).',
'pet.atlasPickerTitle': 'Wybierz wiersz animacji',
'pet.atlasPickerHint': 'Pety Codex mają 9 wierszy animacji. Domyślnie zachowujemy cały atlas, aby pet przełączał wiersze przy hoverze, kierunku przeciągania i dłuższej bezczynności. Możesz też zablokować jeden loop.',
'pet.atlasCancel': 'Odrzuć atlas',
'pet.atlasAdopt': 'Zablokuj na tym wierszu',
'pet.atlasAdoptFull': 'Użyj pełnego atlasu (animowany)',
'pet.atlasAdoptFullTitle': 'Zachowaj wszystkie wiersze, aby pet reagował na hover, kierunek przeciągania i długą bezczynność.',
'pet.atlasAdoptRowTitle': 'Wytnij tylko podświetlony wiersz jako pojedynczy zapętlony pasek.',
'pet.atlasActiveHint': 'Animowany atlas aktywny — pet wybiera wiersz na podstawie Twojej interakcji (hover, przeciąganie, bezczynność).',
'pet.atlasRow.idle': 'Bezruch',
'pet.atlasRow.running-right': 'Bieg w prawo',
'pet.atlasRow.running-left': 'Bieg w lewo',
'pet.atlasRow.waving': 'Machanie',
'pet.atlasRow.jumping': 'Skok',
'pet.atlasRow.failed': 'Porażka',
'pet.atlasRow.waiting': 'Oczekiwanie',
'pet.atlasRow.running': 'Bieg',
'pet.atlasRow.review': 'Przegląd',
'pet.hatchTitle': 'Wykluj nowego peta z AI',
'pet.hatchHint': 'Użyj dołączonej skill hatch-pet w czacie, aby wygenerować spritesheet w stylu Codex, a potem zaimportuj go tutaj.',
'pet.hatchConcept': 'Koncept peta (opcjonalnie)',
'pet.hatchConceptPlaceholder': 'np.: mały pixel-art shiba w przytulnym sweterku',
'pet.hatchCopy': 'Kopiuj prompt',
'pet.hatchCopied': 'Skopiowano!',
'pet.hatchFoot': 'Gdy skill zapisze peta, wróć tutaj i kliknij „Importuj sprite Codex".',
'pet.slashPopoverAria': 'Polecenia slash',
'pet.slashPopoverTitle': 'Polecenia',
'pet.slashPopoverHint': '↑↓ nawigacja · enter wybierz · esc zamknij',
'pet.slashPet': 'Przełącz, adoptuj lub otwórz ustawienia peta.',
'pet.slashPetWake': 'Obudź pływającego peta.',
'pet.slashPetTuck': 'Schowaj peta na razie.',
'pet.slashHatch': 'Wygeneruj peta Codex skillem hatch-pet.',
'pet.slashHatchArg': '<koncept>',
'pet.codexTitle': 'Niedawno wyklute',
'pet.codexSubtitle': 'Pety zapakowane przez skill hatch-pet pojawiają się tutaj do adopcji jednym kliknięciem.',
'pet.codexSubtitleWithDir': 'Skanuję {dir} w poszukiwaniu paczek hatch-pet.',
'pet.codexEmpty': 'Brak wyklutych petów. Wpisz /hatch w czacie, aby wygenerować.',
'pet.codexLoading': 'Szukam wyklutych petów…',
'pet.codexRefresh': 'Odśwież',
'pet.codexAdopt': 'Adoptuj',
'pet.codexAdopting': 'Adoptuję…',
'pet.communitySync': 'Pobierz zwierzaki społeczności',
'pet.communitySyncing': 'Pobieranie…',
'pet.communitySyncTitle': 'Zsynchronizuj najnowsze zwierzaki z Codex Pet Share + j20 Hatchery do ~/.codex/pets/.',
'pet.communitySyncDone': 'Zsynchronizowano {wrote} nowych zwierzaków (łącznie {total}).',
'pet.communitySyncFailed': 'Błąd synchronizacji: {error}',
'pet.codexBundled': 'W zestawie',
'pet.codexBundledTitle': 'Dostarczany z Open Design — bez pobierania.',
'settings.notifications': 'Powiadomienia',
'settings.notificationsHint': 'Dźwięk i powiadomienie pulpitu po zakończeniu zadania',
'settings.notifyCompletionSound': 'Dźwięk zakończenia',
'settings.notifyCompletionSoundHint': 'Odtwarzane po zakończeniu tury. Domyślnie wyłączone.',
'settings.notifySuccessSound': 'Dźwięk sukcesu',
'settings.notifyFailureSound': 'Dźwięk błędu',
'settings.notifyDesktop': 'Powiadomienie pulpitu',
'settings.notifyDesktopHint': 'Wysyłane, gdy okno nie jest aktywne.',
'settings.notifyDesktopBlocked': 'Zablokowane przez przeglądarkę. Włącz je w ustawieniach witryny.',
'settings.notifyDesktopUnsupported': 'Powiadomienia pulpitu są niedostępne w tym środowisku.',
'settings.notifyTest': 'Wyślij test',
'settings.notifyTestSent': 'Powiadomienie testowe wysłane. Jeśli baner się nie pojawi, sprawdź ustawienia powiadomień przeglądarki i systemu.',
'settings.notifyTestFailed': 'Wywołanie powiadomienia nie powiodło się. Sprawdź ustawienia powiadomień przeglądarki i systemu.',
'settings.notifySoundDing': 'Dzyń',
'settings.notifySoundChime': 'Dzwonek',
'settings.notifySoundTwoToneUp': 'Dwuton rosnący',
'settings.notifySoundPluck': 'Szarpnięcie',
'settings.notifySoundBuzz': 'Brzęczenie',
'settings.notifySoundTwoToneDown': 'Dwuton malejący',
'settings.notifySoundThud': 'Łomot',
'settings.library': 'Umiejętności i systemy projektowe',
'settings.libraryHint': 'Przeglądaj, podglądaj i włączaj/wyłączaj bibliotekę treści',
'settings.librarySkills': 'Umiejętności',
'settings.libraryDesignSystems': 'Systemy projektowe',
'settings.librarySearch': 'Szukaj...',
'settings.libraryAll': 'Wszystkie',
'settings.libraryPreview': 'Podgląd',
'settings.libraryPreviewClose': 'Zamknij',
'settings.libraryLoading': 'Ładowanie...',
'settings.libraryNoResults': 'Brak elementów pasujących do wyszukiwania.',
'settings.libraryEnabled': 'Włączone',
'settings.libraryDisabled': 'Wyłączone',
'settings.libraryToggleLabel': 'Przełącz',
'notify.successTitle': 'Zadanie ukończone',
'notify.failureTitle': 'Zadanie nieudane',
'notify.successBody': 'Tura zakończona.',
'notify.failureBody': 'Zadanie zakończyło się błędem.',
};
+983
View File
@@ -0,0 +1,983 @@
import type { Dict } from '../types';
export const ptBR: Dict = {
'common.cancel': 'Cancelar',
'common.save': 'Salvar',
'common.close': 'Fechar',
'common.delete': 'Excluir',
'common.rename': 'Renomear',
'common.preview': 'Prévia',
'common.share': 'Compartilhar',
'common.search': 'Buscar',
'common.searchEllipsis': 'Buscar…',
'common.loading': 'Carregando…',
'common.all': 'Todos',
'common.none': 'Nenhum',
'common.default': 'Padrão',
'common.installed': 'instalado',
'common.notInstalled': 'não instalado',
'common.active': 'ativo',
'common.offline': 'offline',
'common.selected': 'selecionado',
'common.create': 'Criar',
'common.openPreview': 'Abrir prévia',
'common.exitFullscreen': 'Sair da tela cheia',
'common.fullscreen': 'Tela cheia',
'common.openInNewTab': 'Abrir em nova aba',
'common.exportPdf': 'Exportar como PDF',
'common.exportZip': 'Baixar como .zip',
'common.exportHtml': 'Exportar como HTML independente',
'common.justNow': 'agora mesmo',
'common.minutesAgo': 'há {n} min',
'common.hoursAgo': 'há {n} h',
'common.daysAgo': 'há {n} d',
'common.now': 'agora',
'common.minutesShort': '{n} min',
'common.hoursShort': '{n} h',
'common.daysShort': '{n} d',
'common.untitled': 'Sem título',
'app.brand': 'Open Design',
'app.brandPill': 'Prévia de pesquisa',
'app.brandSubtitle': 'por Nexu Labs',
'app.welcomeLoading': 'Carregando área de trabalho…',
'settings.welcomeKicker': 'Bem-vindo',
'settings.welcomeTitle': 'Configure o Open Design',
'settings.welcomeSubtitle':
'Escolha como você quer executar as gerações. Você pode mudar isso a qualquer momento no botão Configurações da barra superior.',
'settings.kicker': 'Configurações',
'settings.title': 'Execução e modelo',
'settings.subtitle': 'Escolha entre CLI local e BYOK. Sua chave de API fica armazenada apenas neste navegador.',
'settings.modeAria': 'Modo de execução',
'settings.protocolAria': 'Protocolo de API',
'settings.modeDaemon': 'CLI local',
'settings.modeDaemonHelp': 'Execute por uma CLI de agente de código na sua máquina',
'settings.modeDaemonOffline': 'Daemon não está em execução',
'settings.modeDaemonOfflineMeta': 'daemon offline',
'settings.modeDaemonInstalledMeta': '{count} instalados',
'settings.modeApi': 'Provedor de API',
'settings.modeApiMeta': 'BYOK',
'settings.codeAgent': 'Agente de código',
'settings.codeAgentHint':
'Detectado ao escanear seu PATH. Escolha a CLI por onde as gerações devem passar.',
'settings.rescan': '↻ Reescanear',
'settings.rescanTitle': 'Reescanear PATH',
'settings.rescanRunning': 'Escaneando...',
'settings.rescanSuccess': 'Escaneamento concluido. {count} disponiveis.',
'settings.rescanFailed': 'Falha ao escanear. Verifique o daemon e tente novamente.',
'settings.noAgentsDetected':
'Nenhum agente detectado ainda. Instale Claude Code, Codex, Devin for Terminal, Gemini CLI, OpenCode, Cursor Agent, Qwen ou GitHub Copilot CLI e clique em Reescanear.',
'settings.apiSection': 'API da Anthropic',
'settings.quickFillProvider': 'Preencher provedor',
'settings.customProvider': 'Provedor personalizado',
'settings.apiKey': 'Chave de API',
'settings.showKey': 'Mostrar chave',
'settings.hideKey': 'Ocultar chave',
'settings.show': 'Mostrar',
'settings.hide': 'Ocultar',
'settings.model': 'Modelo',
'settings.suggestedModelsHint':
'Estes são modelos sugeridos para este protocolo. Seu provedor pode oferecer suporte a modelos diferentes.',
'settings.baseUrl': 'URL base',
'settings.baseUrlInvalid': 'Informe uma URL pública http:// ou https:// válida. Localhost é permitido; IPs de rede privada são bloqueados.',
'settings.azureDeploymentModel': 'Nome do deployment',
'settings.azureDeploymentModelHint':
'No Azure OpenAI, este campo e usado como nome do deployment em /openai/deployments/<model>. Informe o nome do deployment criado no Azure.',
'settings.apiVersion': 'Versão da API',
'settings.maxTokens': 'Tokens máx. (opcional)',
'settings.maxTokensHint':
'Limite para o comprimento da resposta. Cada modelo tem um valor padrão ajustado (visível no placeholder); deixe em branco para usá-lo ou insira um número para substituí-lo.',
'settings.apiHint': 'As chamadas passam pelo proxy do daemon local até a Base URL definida. A chave fica armazenada apenas neste navegador e é enviada com as requisições ao provedor.',
'settings.skipForNow': 'Pular por enquanto',
'settings.getStarted': 'Começar',
'settings.envConfigure': 'Configurar modo de execução',
'settings.localCli': 'CLI local',
'settings.anthropicApi': 'API da Anthropic',
'settings.noAgentSelected': 'nenhum agente selecionado',
'settings.language': 'Idioma',
'settings.languageHint': 'Altere o idioma da interface. Salvo neste navegador.',
'settings.appearance': 'Aparência',
'settings.appearanceHint': 'Escolha claro, escuro ou seguir as configurações do sistema.',
'settings.themeSystem': 'Sistema',
'settings.themeLight': 'Claro',
'settings.themeDark': 'Escuro',
'settings.modelPicker': 'Modelo',
'settings.reasoningPicker': 'Esforço de raciocínio',
'settings.modelPickerHint':
'Buscado na CLI quando ela expõe um comando `models`. "Padrão" deixa a escolha para a configuração da própria CLI; "Personalizado…" permite digitar qualquer id de modelo aceito pela CLI.',
'settings.cliEnvTitle': 'CLI config locations',
'settings.cliEnvHint':
'Set non-secret config directories for packaged app runs and agent detection.',
'settings.cliEnvClaudeConfigDir': 'Claude Code config dir',
'settings.cliEnvCodexHome': 'Codex home',
'settings.modelCustom': 'Personalizado (digite abaixo)…',
'settings.modelCustomLabel': 'Id do modelo personalizado',
'settings.modelCustomPlaceholder': 'ex.: anthropic/claude-sonnet-4-6',
'settings.mediaProviders': 'Provedores de mídia',
'settings.mediaProvidersHint': 'Chaves de API para geração de imagem, vídeo e áudio. Salvas localmente e sincronizadas com o daemon local.',
'settings.mediaProviderApiKey': 'API key',
'settings.mediaProviderBaseUrl': 'Base URL',
'settings.mediaProviderConfigured': 'Configurado',
'settings.mediaProviderUnset': 'Não configurado',
'settings.mediaProviderClear': 'Limpar',
'settings.mediaProviderPlaceholder': 'Cole a API key',
'settings.mediaProviderBaseUrlPlaceholder': 'Sobrescrever Base URL padrão',
'settings.about': 'Sobre',
'settings.aboutHint': 'Versão e detalhes de execução',
'settings.appVersion': 'Versão',
'settings.appChannel': 'Canal',
'settings.appRuntime': 'Runtime',
'settings.appPlatform': 'Plataforma',
'settings.appArchitecture': 'Arquitetura',
'settings.runtimePackaged': 'App empacotado',
'settings.runtimeDevelopment': 'Desenvolvimento',
'settings.versionUnavailable': 'Os detalhes de versão ficam indisponíveis enquanto o daemon está offline.',
'entry.tabDesigns': 'Designs',
'entry.tabExamples': 'Exemplos',
'entry.tabDesignSystems': 'Sistemas de design',
'entry.tabConnectors': 'Conectores',
'entry.openSettingsTitle': 'Configurações',
'entry.openSettingsAria': 'Abrir configurações',
'entry.resizeAria': 'Redimensionar barra lateral',
'entry.loadingWorkspace': 'Carregando área de trabalho…',
'entry.tabImageTemplates': 'Modelos de imagem',
'entry.tabVideoTemplates': 'Modelos de vídeo',
'promptTemplates.searchPlaceholder': 'Buscar templates…',
'promptTemplates.countLabel': '{n} resultados',
'promptTemplates.emptyImage': 'Nenhum template de prompt de imagem instalado.',
'promptTemplates.emptyVideo': 'Nenhum template de prompt de vídeo instalado.',
'promptTemplates.emptyNoMatch': 'Nenhum template corresponde à busca.',
'promptTemplates.attributionFooter': 'Adaptado de bibliotecas públicas de prompts. Cada card aponta para o autor original.',
'promptTemplates.openPreviewTitle': 'Abrir prompt e prévia',
'promptTemplates.sourcePrefix': 'Fonte:',
'promptTemplates.fetchError': 'Não foi possível carregar o corpo deste template.',
'promptTemplates.promptLabel': 'Corpo do prompt',
'promptTemplates.copyPrompt': 'Copiar prompt',
'promptTemplates.copyDone': 'Copiado!',
'promptTemplates.modelHint': 'Modelo sugerido: {model}',
'promptTemplates.openSource': 'Ver original',
'promptTemplates.openFullscreen': 'Abrir prévia em tela cheia',
'promptTemplates.closeFullscreen': 'Fechar prévia em tela cheia',
'promptTemplates.allSources': 'Todas as fontes',
'promptTemplates.sourceFilterAria': 'Filtrar por fonte',
'promptTemplates.retry': 'Tentar novamente',
'connectors.title': 'Conectores',
'connectors.subtitle': 'Fontes locais e futuras que podem alimentar artefatos live.',
'connectors.account': 'Conta',
'connectors.noAccount': 'Não conectado',
'connectors.tools': 'Ferramentas',
'connectors.connect': 'Conectar',
'connectors.disconnect': 'Desconectar',
'connectors.configure': 'Configurar',
'connectors.unavailable': 'Indisponível',
'connectors.phaseStubTitle': 'As APIs de conectores chegam na Phase 3; esta é uma superfície de prévia.',
'connectors.statusAvailable': 'Disponível',
'connectors.statusConnected': 'Conectado',
'connectors.statusError': 'Erro',
'connectors.statusDisabled': 'Desativado',
'connectors.gateTitle': 'Configure a chave da API Composio',
'connectors.gateBody': 'Os conectores exigem uma chave da API Composio. Adicione-a em Configurações para desbloquear as integrações disponíveis.',
'connectors.gateAction': 'Abrir configurações',
'connectors.aboutLabel': 'Sobre',
'connectors.detailsLabel': 'Detalhes',
'connectors.statusLabel': 'Status',
'connectors.categoryLabel': 'Categoria',
'connectors.providerLabel': 'Provedor',
'connectors.toolsSection': 'Ferramentas',
'connectors.toolsLoading': 'Carregando ferramentas…',
'connectors.noToolsAvailable': 'Nenhuma ferramenta disponível ainda. Conecte-se para descobrir o que esta integração oferece.',
'connectors.openDetailsAria': 'Abrir detalhes de {name}',
'connectors.toolsBadgeNone': 'Sem ferramentas',
'connectors.toolsBadgeOne': '{n} ferramenta',
'connectors.toolsBadgeMany': '{n} ferramentas',
'connectors.searchPlaceholder': 'Buscar conectores…',
'connectors.searchAriaLabel': 'Buscar conectores por nome, provedor ou ferramenta',
'connectors.searchClear': 'Limpar busca',
'connectors.emptyNoMatchTitle': 'Nenhum conector corresponde a “{query}”',
'connectors.emptyNoMatchBody': 'Tente outra palavra-chave ou limpe a busca para ver o catálogo completo.',
'connectors.emptyNoMatchAction': 'Limpar busca',
'newproj.tabPrototype': 'Protótipo',
'newproj.tabLiveArtifact': 'Novo artefato live',
'newproj.tabDeck': 'Apresentação',
'newproj.tabTemplate': 'A partir de template',
'newproj.tabOther': 'Outro',
'newproj.titlePrototype': 'Novo protótipo',
'newproj.titleLiveArtifact': 'Novo artefato live',
'newproj.titleDeck': 'Nova apresentação',
'newproj.titleTemplate': 'Começar de um template',
'newproj.titleImage': 'Nova imagem',
'newproj.titleVideo': 'Novo vídeo',
'newproj.titleAudio': 'Novo áudio',
'newproj.titleOther': 'Novo projeto',
'newproj.namePlaceholder': 'Nome do projeto',
'newproj.fidelityLabel': 'Fidelidade',
'newproj.fidelityWireframe': 'Wireframe',
'newproj.fidelityHigh': 'Alta fidelidade',
'newproj.toggleSpeakerNotes': 'Usar notas do apresentador',
'newproj.toggleSpeakerNotesHint': 'Menos texto nos slides — deixe os pontos de fala nas notas.',
'newproj.toggleAnimations': 'Incluir animações',
'newproj.toggleAnimationsHint':
'Adicionar movimento (entrada, hover, transições) sobre o template.',
'newproj.templateLabel': 'Template',
'newproj.noTemplatesTitle': 'Ainda não há templates',
'newproj.noTemplatesBody':
'Abra qualquer projeto e use o menu Compartilhar no visualizador de arquivos para convertê-lo em template. Os templates aparecem aqui.',
'newproj.savedTemplate': 'Template salvo',
'newproj.fileSingular': 'arquivo',
'newproj.filePlural': 'arquivos',
'newproj.create': 'Criar',
'newproj.createLiveArtifact': 'Criar artefato live',
'newproj.createFromTemplate': 'Criar a partir do template',
'newproj.createDisabledTitle':
'Salve primeiro um projeto como template (menu Compartilhar dentro de qualquer projeto).',
'newproj.importClaudeZip': 'Importar ZIP do Claude Design',
'newproj.importClaudeZipTitle': 'Importar uma exportação .zip do Claude Design',
'newproj.importingClaudeZip': 'Importando…',
'newproj.privacyFooter': 'Por padrão, só você pode ver seu projeto.',
'newproj.designSystem': 'Sistema de design',
'newproj.dsNoneFreeform': 'Nenhum — livre',
'newproj.dsNoneSubtitleEmpty': 'Sem tokens de sistema, escolha sua própria paleta',
'newproj.dsNoneSubtitleSelected': 'Pular tokens de sistema. O agente escolhe a própria paleta.',
'newproj.dsCategoryFallback': 'Sistema de design',
'newproj.dsSearch': 'Buscar sistemas de design…',
'newproj.dsModeAria': 'Modo de seleção',
'newproj.dsModeSingle': 'Único',
'newproj.dsModeMulti': 'Múltiplo',
'newproj.dsNoneTitle': 'Nenhum — livre',
'newproj.dsNoneSub': 'Pular tokens de sistema. O agente escolhe a própria paleta.',
'newproj.dsEmpty': 'Nenhum sistema de design corresponde a “{query}”.',
'newproj.dsFootSingular': 'é apenas inspiração.',
'newproj.dsFootPlural': 'são apenas inspiração.',
'newproj.dsFootClear': 'Limpar',
'newproj.dsBadgeDefault': 'PADRÃO',
'newproj.dsPrimaryFallback': 'Principal',
'newproj.surfaceImage': 'Imagem',
'newproj.surfaceVideo': 'Vídeo',
'newproj.surfaceAudio': 'Áudio',
'newproj.modelLabel': 'Modelo',
'newproj.aspectLabel': 'Proporção',
'newproj.imageStyleLabel': 'Notas de estilo',
'newproj.imageStylePlaceholder': 'Foto editorial, luz suave, paleta contida',
'newproj.videoLengthLabel': 'Duração',
'newproj.videoLengthSeconds': '{n}s',
'newproj.audioKindLabel': 'Tipo de áudio',
'newproj.audioKindMusic': 'Música',
'newproj.audioKindSpeech': 'Voz / TTS',
'newproj.audioKindSfx': 'Efeito sonoro',
'newproj.audioDurationLabel': 'Duração',
'newproj.audioDurationSeconds': '{n}s',
'newproj.voiceLabel': 'Voz',
'newproj.voicePlaceholder': 'Voice id do provedor, opcional',
'newproj.connectorsLabel': 'Conectores',
'newproj.connectorsHint': 'Fontes de dados que este artefato pode consultar.',
'newproj.connectorsEmptyTitle': 'Nenhum conector configurado',
'newproj.connectorsEmptyBody':
'Conecte uma fonte de dados para que o artefato live use dados reais em vez de placeholders.',
'newproj.connectorsEmptyCta': 'Configurar conectores →',
'newproj.connectorsLoading': 'Carregando conectores…',
'newproj.connectorsCountOne': '{n} conectado',
'newproj.connectorsCountMany': '{n} conectados',
'newproj.connectorsManage': 'Gerenciar',
'newproj.promptTemplateLabel': 'Modelo de referência',
'newproj.promptTemplateNoneTitle': 'Nenhum — escreva o seu',
'newproj.promptTemplateNoneSub': 'Pule a galeria e descreva o próprio briefing',
'newproj.promptTemplateRefSub': 'Modelo de referência',
'newproj.promptTemplateSearch': 'Buscar modelos…',
'newproj.promptTemplateEmpty': 'Nenhum modelo instalado para este formato ainda.',
'newproj.promptTemplateBodyLabel': 'Prompt (você pode ajustar)',
'newproj.promptTemplateOptimizeHint':
'Edite o que quiser — suas alterações entram no briefing do agente.',
'newproj.promptTemplateBodyEmpty':
'Corpo vazio — o agente não receberá nenhuma referência de modelo.',
'designs.subRecent': 'Recentes',
'designs.subYours': 'Seus designs',
'designs.filterAria': 'Filtrar projetos',
'designs.searchPlaceholder': 'Buscar…',
'designs.emptyNoProjects': 'Ainda não há projetos. Crie um à esquerda.',
'designs.emptyNoMatch': 'Nenhum projeto corresponde à sua busca.',
'designs.deleteTitle': 'Excluir projeto',
'designs.deleteConfirm': 'Excluir "{name}"?',
'designs.cardFreeform': 'livre',
'designs.badgeLive': 'Live',
'designs.liveArtifactBadgesAria': 'Marcadores de artefato live',
'designs.liveCount': '{n} live',
'designs.statusLive': 'Artefato live',
'designs.statusArchived': 'Arquivado',
'designs.statusError': 'Erro',
'designs.statusRefreshing': 'Atualizando…',
'designs.statusRefreshFailed': 'Falha ao atualizar',
'designs.statusRefreshed': 'Atualizado',
'designs.status.notStarted': 'Não iniciado',
'designs.status.queued': 'Na fila',
'designs.status.running': 'Em execução',
'designs.status.awaitingInput': 'Aguardando resposta',
'designs.status.succeeded': 'Concluído',
'designs.status.failed': 'Falhou',
'designs.status.canceled': 'Cancelado',
'designs.viewToggleAria': 'Modo de visualização',
'designs.viewGrid': 'Visualização em grade',
'designs.viewKanban': 'Visualização em quadro',
'designs.kanbanEmptyColumn': 'Sem designs',
'designs.deleteAria': 'Excluir projeto {name}',
'examples.typeLabel': 'Tipo',
'examples.surfaceLabel': 'Superfície',
'examples.surfaceWeb': 'Web',
'examples.surfaceImage': 'Imagem',
'examples.surfaceVideo': 'Vídeo',
'examples.surfaceAudio': 'Áudio',
'examples.scenarioLabel': 'Cenário',
'examples.modeAll': 'Todos',
'examples.modePrototypeDesktop': 'Protótipos · Desktop',
'examples.modePrototypeMobile': 'Protótipos · Mobile',
'examples.modeDeck': 'Slides',
'examples.modeDocument': 'Docs e templates',
'examples.modeOrbit': 'Orbit',
'examples.scenarioGeneral': 'Geral',
'examples.scenarioEngineering': 'Engenharia',
'examples.scenarioProduct': 'Produto',
'examples.scenarioDesign': 'Design',
'examples.scenarioMarketing': 'Marketing',
'examples.scenarioSales': 'Vendas',
'examples.scenarioFinance': 'Finanças',
'examples.scenarioHr': 'RH',
'examples.scenarioOperations': 'Operações',
'examples.scenarioSupport': 'Suporte',
'examples.scenarioLegal': 'Jurídico',
'examples.scenarioEducation': 'Educação',
'examples.scenarioPersonal': 'Pessoal',
'examples.emptyNoSkills': 'Nenhuma skill disponível. O daemon está em execução?',
'examples.searchPlaceholder': 'Buscar exemplos…',
'examples.searchAria': 'Buscar exemplos por nome',
'examples.emptyNoMatch': 'Nenhum exemplo corresponde a esses filtros.',
'examples.openPreview': '⤢ Abrir prévia',
'examples.loadingPreview': 'Carregando prévia…',
'examples.hoverPreview': 'Passe o cursor para ver a prévia',
'examples.usePrompt': 'Usar este prompt',
'examples.previewModalTitle': 'Abrir prévia completa (modal)',
'examples.shareTitle': 'Compartilhar este exemplo',
'examples.shareLoadFirst': 'Passe o cursor para carregar a prévia primeiro',
'examples.shareMenu': 'Compartilhar ▾',
'examples.exportPdfAllSlides': 'Exportar como PDF (todos os slides)',
'examples.exportPptxLocked': 'Exportar como PPTX… (abra o template primeiro)',
'examples.tagSlideDeck': 'Apresentação',
'examples.tagTemplate': 'Template',
'examples.tagDesignSystem': 'Sistema de design',
'examples.tagMobilePrototype': 'Protótipo mobile',
'examples.tagDesktopPrototype': 'Protótipo desktop',
'examples.tagImage': 'Imagem',
'examples.tagVideo': 'Vídeo',
'examples.tagAudio': 'Áudio',
'examples.previewLabel': 'Prévia',
'ds.surfaceLabel': 'Superfície',
'ds.surfaceWeb': 'Web',
'ds.surfaceImage': 'Imagem',
'ds.surfaceVideo': 'Vídeo',
'ds.surfaceAudio': 'Áudio',
'ds.searchPlaceholder': 'Buscar sistemas de design…',
'ds.emptyNoMatch': 'Nenhum sistema de design corresponde à sua busca.',
'ds.badgeDefault': 'PADRÃO',
'ds.preview': 'Prévia',
'ds.previewTitle': 'Prévia do sistema de design',
'ds.categoryAll': 'Todos',
'ds.categoryUncategorized': 'Sem categoria',
'ds.showcase': 'Vitrine',
'ds.tokens': 'Tokens',
'ds.specToggle': 'DESIGN.md',
'ds.specLoading': 'Carregando DESIGN.md…',
'avatar.title': 'Conta e configurações',
'avatar.localCli': 'CLI local',
'avatar.anthropicApi': 'API da Anthropic',
'avatar.useLocal': 'Usar CLI local',
'avatar.useApi': 'Usar API · BYOK',
'avatar.codeAgent': 'Agente de código',
'avatar.rescan': 'Reescanear PATH',
'avatar.settings': 'Configurações',
'avatar.backToProjects': 'Voltar aos projetos',
'avatar.metaActive': 'ativo',
'avatar.metaOffline': 'offline',
'avatar.metaSelected': 'selecionado',
'avatar.noAgentSelected': 'nenhum agente selecionado',
'avatar.modelSection': 'Modelo',
'avatar.modelLabel': 'Modelo',
'avatar.reasoningLabel': 'Raciocínio',
'avatar.customSuffix': '(personalizado)',
'project.backToProjects': 'Voltar aos projetos',
'project.metaFreeform': 'livre',
'project.resizeChatPanel': 'Redimensionar painel de chat',
'chat.tabChat': 'Chat',
'chat.tabComments': 'Comentários',
'chat.commentsSoon': 'Comentários — em breve',
'chat.comments.attached': 'Attached to chat',
'chat.comments.emptyAttached': 'No comments attached.',
'chat.comments.saved': 'Saved comments',
'chat.comments.emptySaved': 'No saved comments.',
'chat.comments.add': 'Add',
'chat.comments.addAll': 'Add all',
'chat.comments.remove': 'Remove',
'chat.comments.placeholder': 'Comment on this element…',
'chat.comments.addSend': 'Add & send',
'chat.comments.updateSend': 'Update & send',
'chat.comments.removeAttachment': 'Remove comment attachment',
'chat.comments.removeAttachmentAria': 'Remove comment attachment for {name}',
'chat.conversationsTitle': 'Conversas',
'chat.conversationsAria': 'Histórico de conversas',
'chat.newConversation': 'Nova conversa',
'chat.newConversationsTitle': 'Nova conversa',
'chat.conversationsHeading': 'Conversas',
'chat.new': 'Nova',
'chat.emptyConversations': 'Ainda não há conversas.',
'chat.deleteConversation': 'Excluir conversa',
'chat.deleteConversationConfirm':
'Excluir "{title}"? Isso remove as mensagens.',
'chat.untitledConversation': 'Conversa sem título',
'chat.startTitle': 'Comece uma conversa',
'chat.startHint':
'Arraste ou cole imagens como referência visual, ou digite @ para anexar um arquivo deste projeto. Ou experimente um destes começos:',
'chat.fillInputTitle': 'Clique para preencher o campo',
'chat.jumpToLatest': 'Ir para a mais recente',
'chat.scrollToLatest': 'Rolar para a mais recente',
'chat.you': 'Você',
'chat.openFile': 'Abrir {name}',
'chat.composerPlaceholder':
'Descreva o design que você quer — cole ou arraste imagens, ou use @ para referenciar um arquivo…',
'chat.composerHint':
'⌘/Ctrl + Enter para enviar · cole imagens · @ para referenciar arquivos',
'chat.cliSettingsTitle': 'Configurações de CLI e modelo',
'chat.cliSettingsAria': 'Abrir configurações de CLI e modelo',
'chat.attachTitle': 'Anexar arquivos (ou colar / arrastar)',
'chat.attachAria': 'Anexar arquivos',
'chat.importTitle': 'Importar fontes (em breve)',
'chat.importLabel': 'Importar',
'chat.importComingSoon': 'Em breve',
'chat.importSoon': 'Em breve',
'chat.importFig': 'Enviar arquivo .fig',
'chat.importGitHub': 'Conectar GitHub',
'chat.importWeb': 'Capturar elemento web',
'chat.importFolder': 'Vincular pasta de código',
'chat.importSkills': 'Skills e sistemas de design',
'chat.importProject': 'Reference another project',
'chat.linkedFolderRemoveAria': 'Remover pasta vinculada {path}',
'chat.linkedFolderNotFound': 'A pasta não existe',
'chat.linkedFolderAlready': 'Esta pasta já está vinculada',
'chat.linkedFolderPickError': 'Não foi possível abrir o seletor de pasta',
'chat.send': 'Enviar',
'chat.stop': 'Parar',
'chat.removeAria': 'Remover {name}',
'chat.example1Title': 'Pitch deck editorial',
'chat.example1Tag': 'Revista',
'chat.example1Prompt':
'Uma apresentação editorial de 10 slides para um estúdio de design levantando uma rodada seed — layout em grid suíço, títulos serifados enormes com capitulares marcantes, números de seção em monoespaçada, bastante espaço negativo e slides com fotos em tela cheia intercalados com slides densos de texto. Capa, visão, mercado, produto, tração, equipe, pedido, contato.',
'chat.example2Title': 'Dashboard de analytics SaaS',
'chat.example2Tag': 'Dados',
'chat.example2Prompt':
'Um dashboard denso de analytics para um SaaS de ferramentas de desenvolvedor — faixa de KPIs com variações semanais, dois gráficos de linha empilhados (MRR e workspaces ativos), um mapa-múndi de calor de uso, uma grade de retenção por coorte, ranking de principais clientes e feed de eventos em tempo real. Tema escuro, números tabulares monoespaçados, acentos em sparklines.',
'chat.example3Title': 'Relatório anual long-scroll',
'chat.example3Tag': 'Editorial',
'chat.example3Prompt':
'Um relatório anual interativo para uma ONG climática — layout editorial long-scroll misturando grandes blocos de citações, visualizações de dados (barras empilhadas, contadores animados, mapa coroplético de locais de projetos), quebras com fotografia, mural de doadores e chamada final para ação. Corpo com serif moderna, rótulos de gráficos sem serifa, paleta terrosa de papel.',
'preview.shareMenu': 'Compartilhar ▾',
'preview.openInNewTab': 'Abrir em nova aba',
'preview.exit': '⤓ Sair',
'preview.fullscreen': '⤢ Tela cheia',
'preview.closeTitle': 'Fechar (Esc)',
'preview.loading': 'Carregando {label}…',
'preview.showSidebar': 'Mostrar {label}',
'preview.hideSidebar': 'Ocultar {label}',
'misc.savedTemplate': 'Template salvo',
'misc.primary': 'Principal',
'misc.designSystem': 'Sistema de design',
'workspace.designFiles': 'Arquivos de design',
'workspace.focusMode': 'Focus workspace',
'workspace.showChat': 'Show chat',
'workspace.closeTab': 'Fechar aba',
'workspace.deleteFileConfirm': 'Excluir "{name}" da pasta do projeto?',
'workspace.openFromDesignFiles': 'Abra um arquivo em',
'workspace.designFilesLink': 'Arquivos de design',
'workspace.loadingSketch': 'Carregando esboço…',
'designFiles.title': 'Arquivos de design',
'designFiles.upload': 'Enviar arquivos',
'designFiles.pasteText': 'Colar como arquivo de texto',
'designFiles.newSketch': 'Novo esboço',
'designFiles.empty':
'Nada aqui ainda. Arraste arquivos abaixo, crie um esboço ou cole texto.',
'designFiles.refresh': 'Atualizar',
'designFiles.delete': 'Excluir',
'designFiles.searchPlaceholder': 'Buscar arquivos…',
'designFiles.up': 'Subir',
'designFiles.back': 'Voltar',
'designFiles.crumbs': 'projeto',
'designFiles.rowMenu': 'Menu da linha',
'designFiles.openInTab': 'Abrir em aba',
'designFiles.download': 'Baixar',
'designFiles.downloadSelected': 'Download {n} as ZIP',
'designFiles.clearSelection': 'Clear',
'designFiles.selectAll': 'Select all',
'designFiles.dropTitle': '⤓ Solte arquivos aqui',
'designFiles.dropDesc':
'Imagens, docs, referências ou pastas — o agente usará tudo como contexto.',
'designFiles.upload.title': 'Enviar arquivos',
'designFiles.paste.title': 'Colar texto como arquivo',
'designFiles.upload.label': 'Enviar',
'designFiles.paste.label': 'Colar',
'designFiles.previewOpen': 'Abrir',
'designFiles.previewClose': 'Fechar prévia',
'designFiles.modified': 'Modificado {time} · {size}',
'designFiles.weeksAgo': 'há {n} sem',
'designFiles.sectionPages': 'Páginas',
'designFiles.sectionScripts': 'Scripts',
'designFiles.sectionImages': 'Imagens',
'designFiles.sectionSketches': 'Esboços',
'designFiles.sectionLiveArtifacts': 'Artefatos live',
'designFiles.sectionOther': 'Outros',
'designFiles.showMore': 'Mostrar +{n} mais',
'designFiles.kindHtml': 'Página HTML',
'designFiles.kindImage': 'Imagem',
'designFiles.kindSketch': 'Esboço',
'designFiles.kindText': 'Texto',
'designFiles.kindCode': 'Script',
'designFiles.kindPdf': 'PDF',
'designFiles.kindDocument': 'Documento',
'designFiles.kindPresentation': 'Apresentação',
'designFiles.kindSpreadsheet': 'Planilha',
'designFiles.kindLiveArtifact': 'Artefato live',
'designFiles.kindBinary': 'Binário',
'quickSwitcher.placeholder': 'Abrir arquivo…',
'quickSwitcher.empty': 'Nenhum arquivo neste projeto',
'quickSwitcher.noMatches': 'Sem resultados',
'quickSwitcher.navigate': 'navegar',
'quickSwitcher.open': 'abrir',
'quickSwitcher.close': 'fechar',
'pasteDialog.title': 'Colar texto',
'pasteDialog.hint': 'Salvo na pasta do projeto. Escolha qualquer nome.',
'pasteDialog.fileNameLabel': 'Nome do arquivo',
'pasteDialog.namePlaceholder': 'notas.txt',
'pasteDialog.contentLabel': 'Conteúdo',
'pasteDialog.contentPlaceholder': 'Cole qualquer coisa…',
'pasteDialog.save': 'Salvar',
'pasteDialog.cancel': 'Cancelar',
'sketch.save': 'Salvar esboço',
'sketch.cancel': 'Cancelar',
'sketch.saving': 'Salvando…',
'sketch.tooltipDirty': 'Alterações não salvas',
'sketch.tooltipClean': 'Salvo',
'fileViewer.empty': 'Selecione um arquivo para visualizar.',
'fileViewer.loading': 'Carregando…',
'fileViewer.exportPptx': 'Exportar como PPTX',
'fileViewer.openInNewTab': 'Abrir em nova aba',
'fileViewer.copyPath': 'Copiar caminho',
'fileViewer.copied': 'Copiado!',
'fileViewer.share': 'Compartilhar',
'fileViewer.binaryMeta': 'Binário · {size}',
'fileViewer.binaryNote':
'Arquivo binário ({size} bytes). Baixe ou abra do disco para inspecionar.',
'fileViewer.pdfMeta': 'PDF · {size}',
'fileViewer.documentMeta': 'Documento',
'fileViewer.presentationMeta': 'Apresentação',
'fileViewer.spreadsheetMeta': 'Planilha',
'fileViewer.previewUnavailable': 'Prévia indisponível. Baixe ou abra o arquivo para inspecionar.',
'fileViewer.download': 'Baixar',
'fileViewer.open': 'Abrir',
'fileViewer.imageMeta': 'Imagem · {size}',
'fileViewer.reactMeta': 'Componente React · {size}',
'fileViewer.sketchMeta': 'Esboço · {size}',
'fileViewer.markdownStreamingMeta': 'Prévia em streaming…',
'fileViewer.markdownErrorMeta': 'A prévia pode estar incompleta (erro de geração).',
'fileViewer.markdownStreamingStatus': 'Streaming… mostrando markdown parcial.',
'fileViewer.markdownErrorStatus': 'Erro de geração. Mostrando o último conteúdo disponível.',
'fileViewer.videoMeta': 'Vídeo · {size}',
'fileViewer.audioMeta': 'Áudio · {size}',
'fileViewer.reload': 'Recarregar',
'fileViewer.reloadDisk': 'Recarregar do disco',
'fileViewer.copy': 'Copiar',
'fileViewer.copyTitle': 'Copiar conteúdo do arquivo',
'fileViewer.saveDisabled': 'Salvar (visualizador somente leitura)',
'fileViewer.save': 'Salvar',
'fileViewer.preview': 'Prévia',
'fileViewer.source': 'Código-fonte',
'fileViewer.tweaks': 'Ajustes',
'fileViewer.comment': 'Comentar',
'fileViewer.edit': 'Editar',
'fileViewer.draw': 'Desenhar',
'manualEdit.layers': "Layers",
'manualEdit.editableCount': "{count} editable",
'manualEdit.title': "Manual editor",
'manualEdit.selectLayer': "Select a layer",
'manualEdit.empty': "Click an element in the preview or choose a layer.",
'manualEdit.noClass': "no class",
'manualEdit.tabsAria': "Manual edit tabs",
'manualEdit.tabContent': "Content",
'manualEdit.tabStyle': "Style",
'manualEdit.tabAttributes': "Attributes",
'manualEdit.tabHtml': "Html",
'manualEdit.tabSource': "Source",
'manualEdit.attributesJson': "Attributes JSON",
'manualEdit.selectedHtml': "Selected element HTML",
'manualEdit.fullSource': "Full artifact source",
'manualEdit.applyContent': "Apply Content",
'manualEdit.applyStyle': "Apply Style",
'manualEdit.applyAttributes': "Apply Attributes",
'manualEdit.applyHtml': "Apply HTML",
'manualEdit.applySource': "Apply Source",
'manualEdit.invalidAttributes': "Invalid attributes JSON.",
'manualEdit.changes': "Changes",
'manualEdit.undo': "Undo",
'manualEdit.redo': "Redo",
'manualEdit.noChanges': "No manual edits yet.",
'manualEdit.imageUrl': "Image URL",
'manualEdit.altText': "Alt text",
'manualEdit.label': "Label",
'manualEdit.text': "Text",
'manualEdit.href': "Href",
'manualEdit.textColor': "Text color",
'manualEdit.background': "Background",
'manualEdit.fontSize': "Font size",
'manualEdit.weight': "Weight",
'manualEdit.align': "Align",
'manualEdit.padding': "Padding",
'manualEdit.margin': "Margin",
'manualEdit.radius': "Radius",
'manualEdit.border': "Border",
'manualEdit.width': "Width",
'manualEdit.minHeight': "Min height",
'fileViewer.zoomOut': 'Diminuir zoom',
'fileViewer.zoomIn': 'Aumentar zoom',
'fileViewer.resetZoom': 'Redefinir zoom',
'fileViewer.reloadAria': 'Recarregar',
'fileViewer.previousSlide': 'Slide anterior',
'fileViewer.nextSlide': 'Próximo slide',
'fileViewer.slideNavAria': 'Navegação de slides',
'fileViewer.present': 'Apresentar',
'fileViewer.presentInTab': 'Nesta aba',
'fileViewer.presentFullscreen': 'Tela cheia',
'fileViewer.presentNewTab': 'Nova aba',
'fileViewer.exitPresentation': 'Sair da apresentação',
'fileViewer.shareLabel': 'Compartilhar',
'fileViewer.exportPdf': 'Exportar como PDF',
'fileViewer.exportPdfAllSlides': 'Exportar como PDF (todos os slides)',
'fileViewer.exportPptxBusy': 'Aguarde o turno atual terminar.',
'fileViewer.exportPptxHint':
'Envie uma solicitação ao agente para converter este design em PPTX.',
'fileViewer.exportPptxNa': 'Exportação PPTX não está disponível aqui.',
'fileViewer.exportZip': 'Baixar como .zip',
'fileViewer.exportHtml': 'Exportar como HTML independente',
'fileViewer.exportMd': 'Exportar como Markdown',
'fileViewer.exportJsx': 'Exportar como JSX',
'fileViewer.exportReactHtml': 'Exportar prévia como HTML',
'fileViewer.saveAsTemplate': 'Salvar como template…',
'fileViewer.savingTemplate': 'Salvando template…',
'fileViewer.savedTemplate': 'Salvo como "{name}"',
'fileViewer.savedTemplateFail': 'Não foi possível salvar o template — tente novamente.',
'fileViewer.templateNamePrompt': 'Nome do template',
'fileViewer.templateNameDefault': 'Template sem título',
'fileViewer.templateDescPrompt':
'Descrição curta (opcional — o que torna este template útil?)',
'liveArtifact.refresh.button': 'Atualizar',
'liveArtifact.refresh.buttonTitle': 'Atualizar este artefato ao vivo',
'liveArtifact.refresh.loadingTitle': 'Carregando artefato ao vivo…',
'liveArtifact.refresh.noSourceTitle': 'Ainda não há fonte de atualização somente leitura aprovada.',
'liveArtifact.refresh.running': 'Atualizando…',
'liveArtifact.refresh.runningMessage': 'Atualizando dados e prévia. Isso pode levar um momento.',
'liveArtifact.refresh.runningAction': 'A prévia anterior continua visível até a atualização ter sucesso.',
'liveArtifact.refresh.successOne': 'Atualização concluída. Dados atualizados.',
'liveArtifact.refresh.successMany': 'Atualização concluída. Dados atualizados.',
'liveArtifact.refresh.successAction': 'A prévia foi recarregada com os dados confirmados mais recentes.',
'liveArtifact.refresh.previousFailure': 'Atualização anterior falhou: {message}',
'liveArtifact.refresh.failureAction': 'Revise o histórico de atualização, corrija a fonte ou permissão e tente novamente.',
'liveArtifact.refresh.networkFailure': 'A solicitação de atualização falhou. Verifique sua conexão e tente novamente.',
'liveArtifact.refresh.genericFailure': 'Atualização falhou.',
'liveArtifact.refresh.statusNever': 'Não atualizável',
'liveArtifact.refresh.statusReady': 'Pronto para atualizar',
'liveArtifact.refresh.statusSucceeded': 'Atualizado',
'liveArtifact.refresh.statusFailed': 'Atualização falhou',
'fileViewer.deployToVercel': 'Deploy to Vercel',
'fileViewer.redeployToVercel': 'Redeploy',
'fileViewer.deployingToVercel': 'Deploying to Vercel…',
'fileViewer.preparingPublicLink': 'Preparing public link…',
'fileViewer.copyDeployLink': 'Copy link',
'fileViewer.deployModalTitle': 'Deploy to Vercel',
'fileViewer.deployModalSubtitle':
'Deploy this HTML artifact as a Vercel Preview using your own account.',
'fileViewer.vercelToken': 'Vercel token',
'fileViewer.vercelTokenGetLink': 'Get Vercel token',
'fileViewer.vercelTokenPlaceholder': 'Paste your Vercel token',
'fileViewer.vercelTokenReuseHint':
'Saved token will be used. Enter a new token to replace it.',
'fileViewer.vercelTokenRequired': 'Enter and save a Vercel token first.',
'fileViewer.vercelTeamId': 'Team ID',
'fileViewer.vercelTeamSlug': 'Team slug',
'fileViewer.optional': 'Optional',
'fileViewer.vercelPreviewOnly': 'Deploys are Preview-only for now.',
'fileViewer.savingConfig': 'Saving…',
'fileViewer.deployConfigSaveFailed': 'Could not save Vercel settings.',
'fileViewer.deployFailed': 'Deploy failed. Check Vercel settings and try again.',
'fileViewer.deployResultLabel': 'Deployed URL',
'fileViewer.deployLinkPreparingLabel': 'Public link pending',
'fileViewer.deployLinkDelayed':
'Your site is deployed. Vercel is still preparing the public link.',
'fileViewer.deployLinkProtectedLabel': 'Vercel protection enabled',
'fileViewer.deployLinkProtected':
'Your site deployed, but Vercel is requiring authentication for this preview link. Disable Deployment Protection or use a custom domain.',
'fileViewer.retryLink': 'Retry now',
'questionForm.submit': 'Enviar',
'questionForm.skip': 'Pular',
'questionForm.locked': 'Respondido',
'conv.switch': 'Trocar conversa',
'conv.label': 'Conversa',
'conv.heading': 'Conversas',
'conv.new': '+ Nova',
'conv.empty': 'Ainda não há conversas.',
'conv.untitled': 'Conversa sem título',
'conv.renameTooltip': 'Clique duas vezes para renomear',
'conv.delete': 'Excluir conversa',
'conv.deleteConfirm': 'Excluir "{title}"? Isso remove as mensagens.',
'agentPicker.label': 'Agente',
'agentPicker.modeChoose': 'Escolha o modo de execução',
'agentPicker.localCli': 'CLI local',
'agentPicker.daemonOff': 'daemon desligado',
'agentPicker.byok': 'API · BYOK',
'agentPicker.selectAgent': 'Selecione uma CLI de agente de código detectada',
'agentPicker.noAgents': 'nenhum agente no PATH',
'agentPicker.notInstalled': 'não instalado',
'agentPicker.rescan': 'Reescanear agentes no PATH local',
'tool.openInTab': 'Abrir {name} em uma aba',
'tool.open': 'abrir',
'tool.todos': 'Tarefas',
'tool.write': 'Escrever',
'tool.edit': 'Editar',
'tool.read': 'Ler',
'tool.bash': 'Bash',
'tool.glob': 'Glob',
'tool.grep': 'Grep',
'tool.fetch': 'Buscar',
'tool.search': 'Pesquisar',
'tool.lines': '{n} linhas',
'tool.changeSingular': 'alteração',
'tool.changePlural': 'alterações',
'tool.in': 'em {path}',
'tool.hide': 'ocultar',
'tool.output': 'saída',
'tool.running': 'executando…',
'tool.error': 'erro',
'tool.done': 'concluído',
'assistant.role': 'Assistente',
'assistant.workingLabel': 'Trabalhando',
'assistant.doneLabel': 'Concluído',
'assistant.unfinishedLabel': 'Interrompido com trabalho pendente',
'assistant.unfinishedSummary': '{n} tarefa(s) restante(s)',
'assistant.unfinishedMore': '+{n} mais',
'assistant.continueRemaining': 'Continuar tarefas restantes',
'assistant.outTokens': '{n} saída',
'assistant.producedFiles': 'Arquivos deste turno',
'assistant.openFile': 'Abrir',
'assistant.downloadFile': 'Baixar',
'assistant.thinking': 'Pensando',
'assistant.systemReminder': 'Lembrete do sistema',
'assistant.waitingFirstOutput': 'Aguardando primeira saída',
'assistant.statusBootingAgent': 'Iniciando agente',
'assistant.statusStarting': 'Iniciando',
'assistant.statusRequesting': 'Enviando solicitação',
'assistant.statusThinking': 'Pensando',
'assistant.statusStreaming': 'Transmitindo',
'assistant.slowHint':
'Está demorando mais que o normal. O formulário geralmente aparece em 5–10 s — você pode Parar e reformular.',
'assistant.verbEditing': 'Editando',
'assistant.verbWriting': 'Escrevendo',
'assistant.verbReading': 'Lendo',
'assistant.verbSearching': 'Pesquisando',
'assistant.verbRunning': 'Executando',
'assistant.verbTodos': 'Tarefas',
'assistant.verbFetching': 'Buscando',
'assistant.verbCalling': 'Chamando',
'qf.answered': 'respondido',
'qf.choose': 'Escolha…',
'qf.required': 'obrigatório',
'qf.lockedSubmitted':
'Respostas enviadas — o agente usará isso pelo resto da sessão.',
'qf.lockedPrev': 'Este formulário é de um turno anterior.',
'qf.hint':
'Escolha o que se encaixa. Pule campos opcionais se não se importar — o agente usará padrões sensatos.',
'qf.submitDefault': 'Enviar respostas',
'qf.submitDisabledTitle': 'Preencha os campos obrigatórios primeiro',
'qf.submitTitle': 'Enviar respostas',
'qf.cardSelected': 'selecionado',
'qf.cardRefs': 'Refs:',
'qf.cardSampleText': 'A rápida raposa marrom · 0123',
'sketch.toolSelect': 'Selecionar (sem ação)',
'sketch.toolPen': 'Caneta',
'sketch.toolText': 'Texto',
'sketch.toolRect': 'Retângulo',
'sketch.toolArrow': 'Seta',
'sketch.toolEraser': 'Borracha',
'sketch.color': 'Cor',
'sketch.strokeSize': 'Espessura do traço',
'sketch.undo': 'Desfazer',
'sketch.clear': 'Limpar',
'sketch.close': 'Fechar',
'sketch.textPrompt': 'Texto:',
'pet.title': 'Bichinhos',
'pet.tabBuiltIn': 'Inclusos',
'pet.tabBuiltInHint': 'Companheiros incluídos no Open Design — escolha um e adote.',
'pet.builtInEmpty': 'Os pets integrados não estão disponíveis agora. Atualize a aba Comunidade quando o daemon voltar.',
'pet.tabCustom': 'Personalizado',
'pet.tabCustomHint': 'Defina nome, glifo, cor ou envie um sprite.',
'pet.tabCommunity': 'Comunidade',
'pet.tabCommunityHint': 'Bichinhos chocados pelo Codex — adote ou gere um novo com IA.',
'pet.tabsAria': 'Fonte do bichinho',
'pet.subtitle': 'Adote um companheirinho que flutua sobre o seu workspace.',
'pet.navTitle': 'Bichinhos',
'pet.navHint': 'Adote ou personalize',
'pet.adopt': 'Adotar',
'pet.adoptedBadge': 'Adotado',
'pet.adoptCallout': 'Adote um bichinho',
'pet.changePet': 'Trocar bichinho',
'pet.wake': 'Acordar',
'pet.tuck': 'Esconder',
'pet.wakeTitle': 'Acordar o bichinho — mostrar o overlay.',
'pet.tuckTitle': 'Esconder o bichinho — ocultar o overlay.',
'pet.settingsTitle': 'Abrir configurações do bichinho',
'pet.useCustom': 'Usar meu bichinho',
'pet.customTitle': 'Crie o seu',
'pet.customHint': 'Escolha nome, símbolo e cor de destaque — o overlay atualiza ao vivo.',
'pet.customGreetingPlaceholder': 'Diga oi pelo seu bichinho…',
'pet.fieldName': 'Nome',
'pet.fieldGlyph': 'Símbolo',
'pet.fieldGlyphHint': 'Um único emoji funciona melhor (por ex. 🐝, 🦄, 🐢).',
'pet.fieldGreeting': 'Saudação',
'pet.fieldAccent': 'Cor de destaque',
'pet.fieldAccentCustom': 'Cor personalizada',
'pet.overlayAria': 'Companheiro',
'pet.spriteAria': '{name} — arraste para mover, clique para conversar',
'pet.spriteTitle': 'Olá de {name}! Clique para conversar.',
'pet.railAria': 'Seletor de bichinho',
'pet.railTitle': 'Bichinhos',
'pet.railHint': 'Escolha um companheiro para flutuar pelo seu workspace.',
'pet.railExpand': 'Mostrar seletor',
'pet.railCollapse': 'Recolher seletor',
'pet.railHide': 'Esconder seletor de pets',
'pet.railShow': 'Mostrar seletor de pets',
'pet.railCustomFlavor': 'O seu — nome, símbolo e cor.',
'pet.railCustomize': 'Personalizar…',
'pet.composerTitle': 'Bichinhos — acordar, esconder ou escolher',
'pet.composerMenuTitle': 'Bichinhos',
'pet.composerMenuHint': 'dica: digite /pet para alternar',
'pet.composerOpenSettings': 'Personalizar nas configurações',
'pet.welcomeTeaserTitle': 'Adote um bichinho',
'pet.welcomeTeaserBody': 'Um companheirinho que flutua pelo workspace.',
'pet.welcomeTeaserCta': 'Escolher',
'pet.imageUpload': 'Enviar sprite',
'pet.imageReplace': 'Substituir sprite',
'pet.imageRemove': 'Usar emoji',
'pet.imageHintIdle': 'PNG, JPG, WebP, GIF ou SVG. Spritesheet? Envie uma faixa horizontal e ajuste o número de frames.',
'pet.imageHintActive': 'Mostrando seu sprite. Defina frames > 1 para animar um spritesheet horizontal.',
'pet.fieldFrames': 'Frames',
'pet.fieldFramesHint': '1 = estático. > 1 = spritesheet horizontal.',
'pet.fieldFps': 'Velocidade (fps)',
'pet.fieldFpsHint': 'Velocidade da animação dos frames.',
'pet.atlasImport': 'Importar sprite do Codex',
'pet.atlasImportTitle': 'Importe um atlas hatch-pet 8x9 / 192x208 (PNG ou WebP).',
'pet.atlasPickerTitle': 'Escolha uma linha de animação',
'pet.atlasPickerHint': 'Os pets do Codex trazem 9 linhas de animação. Por padrão mantemos o atlas inteiro para que o pet troque de linha ao passar o mouse, conforme a direção do arrasto e após longa ociosidade. Você também pode fixar uma única linha.',
'pet.atlasCancel': 'Descartar atlas',
'pet.atlasAdopt': 'Fixar nesta linha',
'pet.atlasAdoptFull': 'Usar atlas inteiro (animado)',
'pet.atlasAdoptFullTitle': 'Mantém todas as linhas para o pet reagir a hover, direção do arrasto e ociosidade longa.',
'pet.atlasAdoptRowTitle': 'Corta apenas a linha destacada em uma tira de loop único.',
'pet.atlasActiveHint': 'Atlas animado ativo — o pet escolhe a linha com base na sua interação (hover, arrasto, ociosidade).',
'pet.atlasRow.idle': 'Parado',
'pet.atlasRow.running-right': 'Corre à direita',
'pet.atlasRow.running-left': 'Corre à esquerda',
'pet.atlasRow.waving': 'Acenando',
'pet.atlasRow.jumping': 'Pulando',
'pet.atlasRow.failed': 'Falhou',
'pet.atlasRow.waiting': 'Esperando',
'pet.atlasRow.running': 'Correndo',
'pet.atlasRow.review': 'Revisão',
'pet.hatchTitle': 'Choque um novo pet com IA',
'pet.hatchHint': 'Use a skill hatch-pet incluída no chat para gerar um spritesheet estilo Codex e depois importe-o aqui.',
'pet.hatchConcept': 'Conceito do pet (opcional)',
'pet.hatchConceptPlaceholder': 'ex.: um shiba pixel art com um suéter aconchegante',
'pet.hatchCopy': 'Copiar prompt',
'pet.hatchCopied': 'Copiado!',
'pet.hatchFoot': 'Quando a skill salvar seu pet, volte aqui e clique em "Importar sprite do Codex".',
'pet.slashPopoverAria': 'Comandos slash',
'pet.slashPopoverTitle': 'Comandos',
'pet.slashPopoverHint': '↑↓ navegar · enter escolher · esc fechar',
'pet.slashPet': 'Alternar, adotar ou abrir as configurações do pet.',
'pet.slashPetWake': 'Acordar o pet flutuante.',
'pet.slashPetTuck': 'Guardar o pet por agora.',
'pet.slashHatch': 'Gere um pet Codex com a skill hatch-pet.',
'pet.slashHatchArg': '<conceito>',
'pet.codexTitle': 'Recém-chocados',
'pet.codexSubtitle': 'Pets empacotados pela skill hatch-pet aparecem aqui para adoção em um clique.',
'pet.codexSubtitleWithDir': 'Verificando {dir} em busca de pacotes do hatch-pet.',
'pet.codexEmpty': 'Ainda sem pets chocados. Digite /hatch no chat para gerar um.',
'pet.codexLoading': 'Procurando pets chocados…',
'pet.codexRefresh': 'Atualizar',
'pet.codexAdopt': 'Adotar',
'pet.codexAdopting': 'Adotando…',
'pet.communitySync': 'Baixar pets da comunidade',
'pet.communitySyncing': 'Baixando…',
'pet.communitySyncTitle': 'Sincronizar os pets mais recentes do Codex Pet Share + j20 Hatchery em ~/.codex/pets/.',
'pet.communitySyncDone': '{wrote} pets novos sincronizados ({total} no total).',
'pet.communitySyncFailed': 'Falha na sincronização: {error}',
'pet.codexBundled': 'Incluído',
'pet.codexBundledTitle': 'Já vem com o Open Design — sem download.',
'settings.notifications': 'Notificações',
'settings.notificationsHint': 'Som e notificação na conclusão da tarefa',
'settings.notifyCompletionSound': 'Som de conclusão',
'settings.notifyCompletionSoundHint': 'Toca ao terminar uma rodada. Desativado por padrão.',
'settings.notifySuccessSound': 'Som de sucesso',
'settings.notifyFailureSound': 'Som de falha',
'settings.notifyDesktop': 'Notificação na área de trabalho',
'settings.notifyDesktopHint': 'Enviada quando a janela não está em foco.',
'settings.notifyDesktopBlocked': 'Bloqueadas pelo navegador. Habilite nas configurações do site.',
'settings.notifyDesktopUnsupported': 'Notificações na área de trabalho indisponíveis neste ambiente.',
'settings.notifyTest': 'Enviar teste',
'settings.notifyTestSent': 'Notificação de teste enviada. Se nenhum banner aparecer, verifique as notificações do navegador e do sistema.',
'settings.notifyTestFailed': 'Falha ao chamar a notificação. Verifique as notificações do navegador e do sistema.',
'settings.notifySoundDing': 'Tilim',
'settings.notifySoundChime': 'Carrilhão',
'settings.notifySoundTwoToneUp': 'Dois tons crescente',
'settings.notifySoundPluck': 'Dedilhado',
'settings.notifySoundBuzz': 'Zumbido',
'settings.notifySoundTwoToneDown': 'Dois tons descendente',
'settings.notifySoundThud': 'Baque',
'settings.library': 'Habilidades e sistemas de design',
'settings.libraryHint': 'Navegar, visualizar e ativar/desativar sua biblioteca de conteúdos',
'settings.librarySkills': 'Habilidades',
'settings.libraryDesignSystems': 'Sistemas de design',
'settings.librarySearch': 'Pesquisar...',
'settings.libraryAll': 'Todos',
'settings.libraryPreview': 'Visualizar',
'settings.libraryPreviewClose': 'Fechar',
'settings.libraryLoading': 'Carregando...',
'settings.libraryNoResults': 'Nenhum item corresponde à sua pesquisa.',
'settings.libraryEnabled': 'Ativado',
'settings.libraryDisabled': 'Desativado',
'settings.libraryToggleLabel': 'Alternar',
'notify.successTitle': 'Tarefa concluída',
'notify.failureTitle': 'Tarefa falhou',
'notify.successBody': 'Uma rodada foi concluída.',
'notify.failureBody': 'A tarefa terminou com erro.',
};
+983
View File
@@ -0,0 +1,983 @@
import type { Dict } from '../types';
export const ru: Dict = {
'common.cancel': 'Отмена',
'common.save': 'Сохранить',
'common.close': 'Закрыть',
'common.delete': 'Удалить',
'common.rename': 'Переименовать',
'common.preview': 'Предпросмотр',
'common.share': 'Поделиться',
'common.search': 'Поиск',
'common.searchEllipsis': 'Поиск…',
'common.loading': 'Загрузка…',
'common.all': 'Все',
'common.none': 'Нет',
'common.default': 'По умолчанию',
'common.installed': 'установлено',
'common.notInstalled': 'не установлено',
'common.active': 'активно',
'common.offline': 'офлайн',
'common.selected': 'выбрано',
'common.create': 'Создать',
'common.openPreview': 'Открыть предпросмотр',
'common.exitFullscreen': 'Выйти из полноэкранного режима',
'common.fullscreen': 'Полноэкранный режим',
'common.openInNewTab': 'Открыть в новой вкладке',
'common.exportPdf': 'Экспорт в PDF',
'common.exportZip': 'Скачать как .zip',
'common.exportHtml': 'Экспорт как HTML',
'common.justNow': 'только что',
'common.minutesAgo': '{n} мин. назад',
'common.hoursAgo': '{n} ч. назад',
'common.daysAgo': '{n} д. назад',
'common.now': 'сейчас',
'common.minutesShort': '{n}м',
'common.hoursShort': '{n}ч',
'common.daysShort': '{n}д',
'common.untitled': 'Без названия',
'app.brand': 'Open Design',
'app.brandPill': 'Предварительная исследовательская версия',
'app.brandSubtitle': 'от Nexu Labs',
'app.welcomeLoading': 'Загрузка рабочего пространства…',
'settings.welcomeKicker': 'Добро пожаловать',
'settings.welcomeTitle': 'Настройте Open Design',
'settings.welcomeSubtitle':
'Выберите, как запускать генерации. Вы можете изменить это в любое время через кнопку Настройки в верхней панели.',
'settings.kicker': 'Настройки',
'settings.title': 'Выполнение и модель',
'settings.subtitle': 'Выберите локальный CLI или BYOK. Ваш API-ключ хранится только в этом браузере.',
'settings.modeAria': 'Режим выполнения',
'settings.protocolAria': 'Протокол API',
'settings.modeDaemon': 'Локальный CLI',
'settings.modeDaemonHelp': 'Запуск через CLI код-агента на вашем компьютере',
'settings.modeDaemonOffline': 'Демон не запущен',
'settings.modeDaemonOfflineMeta': 'демон офлайн',
'settings.modeDaemonInstalledMeta': '{count} установлено',
'settings.modeApi': 'API-провайдер',
'settings.modeApiMeta': 'BYOK',
'settings.codeAgent': 'Код-агент',
'settings.codeAgentHint':
'Определяется сканированием вашего PATH. Выберите CLI, через который будут проходить генерации.',
'settings.rescan': '↻ Пересканировать',
'settings.rescanTitle': 'Пересканировать PATH',
'settings.rescanRunning': 'Сканирование...',
'settings.rescanSuccess': 'Сканирование завершено. Доступно: {count}.',
'settings.rescanFailed': 'Сканирование не удалось. Проверьте демон и повторите попытку.',
'settings.noAgentsDetected':
'Агенты ещё не обнаружены. Установите один из следующих инструментов: Claude Code, Codex, Devin for Terminal, Gemini CLI, OpenCode, Cursor Agent, Qwen или GitHub Copilot CLI, затем нажмите «Пересканировать».',
'settings.apiSection': 'Anthropic API',
'settings.quickFillProvider': 'Быстро заполнить провайдера',
'settings.customProvider': 'Пользовательский провайдер',
'settings.apiKey': 'API-ключ',
'settings.showKey': 'Показать ключ',
'settings.hideKey': 'Скрыть ключ',
'settings.show': 'Показать',
'settings.hide': 'Скрыть',
'settings.model': 'Модель',
'settings.suggestedModelsHint':
'Это рекомендуемые модели для этого протокола. Ваш провайдер может поддерживать другие модели.',
'settings.baseUrl': 'Базовый URL',
'settings.baseUrlInvalid': 'Введите корректный публичный URL с http:// или https://. Localhost разрешен; IP частных сетей блокируются.',
'settings.azureDeploymentModel': 'Имя развертывания',
'settings.azureDeploymentModelHint':
'Для Azure OpenAI это поле используется как имя развертывания в /openai/deployments/<model>. Укажите имя развертывания, созданного в Azure.',
'settings.apiVersion': 'Версия API',
'settings.maxTokens': 'Макс. токенов (опционально)',
'settings.maxTokensHint':
'Ограничение длины ответа. У каждой модели свой настроенный дефолт (виден в плейсхолдере); оставьте поле пустым, чтобы использовать его, или введите число, чтобы переопределить.',
'settings.apiHint': 'Запросы отправляются через локальный прокси daemon на указанную Base URL. Ключ хранится только в этом браузере и отправляется в запросах к провайдеру.',
'settings.skipForNow': 'Пропустить сейчас',
'settings.getStarted': 'Начать',
'settings.envConfigure': 'Настроить режим выполнения',
'settings.localCli': 'Локальный CLI',
'settings.anthropicApi': 'Anthropic API',
'settings.noAgentSelected': 'агент не выбран',
'settings.language': 'Язык',
'settings.languageHint': 'Переключить язык интерфейса. Сохраняется в этом браузере.',
'settings.appearance': 'Внешний вид',
'settings.appearanceHint': 'Выберите светлую, тёмную или системную тему.',
'settings.themeSystem': 'Системная',
'settings.themeLight': 'Светлая',
'settings.themeDark': 'Тёмная',
'settings.modelPicker': 'Модель',
'settings.reasoningPicker': 'Сложность рассуждений',
'settings.modelPickerHint':
'Получается из CLI, если он поддерживает команду `models`. «По умолчанию» оставляет выбор конфигурации CLI, а «Пользовательская…» позволяет ввести любой ID модели, который CLI принимает.',
'settings.cliEnvTitle': 'CLI config locations',
'settings.cliEnvHint':
'Set non-secret config directories for packaged app runs and agent detection.',
'settings.cliEnvClaudeConfigDir': 'Claude Code config dir',
'settings.cliEnvCodexHome': 'Codex home',
'settings.modelCustom': 'Пользовательская (введите ниже)…',
'settings.modelCustomLabel': 'Пользовательский ID модели',
'settings.modelCustomPlaceholder': 'например, anthropic/claude-sonnet-4-6',
'settings.mediaProviders': 'Медиа-провайдеры',
'settings.mediaProvidersHint': 'API-ключи для генерации изображений, видео и аудио. Хранятся локально и синхронизируются с локальным демоном.',
'settings.mediaProviderApiKey': 'API-ключ',
'settings.mediaProviderBaseUrl': 'Базовый URL',
'settings.mediaProviderConfigured': 'Настроено',
'settings.mediaProviderUnset': 'Не настроено',
'settings.mediaProviderClear': 'Очистить',
'settings.mediaProviderPlaceholder': 'Вставьте API-ключ',
'settings.mediaProviderBaseUrlPlaceholder': 'Переопределить базовый URL',
'settings.about': 'О приложении',
'settings.aboutHint': 'Версия и сведения о запуске',
'settings.appVersion': 'Версия',
'settings.appChannel': 'Канал',
'settings.appRuntime': 'Среда запуска',
'settings.appPlatform': 'Платформа',
'settings.appArchitecture': 'Архитектура',
'settings.runtimePackaged': 'Упакованное приложение',
'settings.runtimeDevelopment': 'Разработка',
'settings.versionUnavailable': 'Сведения о версии недоступны, пока daemon не запущен.',
'entry.tabDesigns': 'Дизайны',
'entry.tabExamples': 'Примеры',
'entry.tabDesignSystems': 'Дизайн-системы',
'entry.tabConnectors': 'Коннекторы',
'entry.openSettingsTitle': 'Настройки',
'entry.openSettingsAria': 'Открыть настройки',
'entry.resizeAria': 'Изменить размер боковой панели',
'entry.loadingWorkspace': 'Загрузка рабочего пространства…',
'entry.tabImageTemplates': 'Шаблоны изображений',
'entry.tabVideoTemplates': 'Шаблоны видео',
'promptTemplates.searchPlaceholder': 'Поиск шаблонов…',
'promptTemplates.countLabel': '{n} результатов',
'promptTemplates.emptyImage': 'Шаблоны промптов изображений не установлены.',
'promptTemplates.emptyVideo': 'Шаблоны промптов видео не установлены.',
'promptTemplates.emptyNoMatch': 'Нет шаблонов, соответствующих поиску.',
'promptTemplates.attributionFooter': 'Адаптировано из публичных библиотек промптов. Каждая карточка ссылается на исходного автора.',
'promptTemplates.openPreviewTitle': 'Открыть промпт и предпросмотр',
'promptTemplates.sourcePrefix': 'Источник:',
'promptTemplates.fetchError': 'Не удалось загрузить текст шаблона.',
'promptTemplates.promptLabel': 'Текст промпта',
'promptTemplates.copyPrompt': 'Копировать промпт',
'promptTemplates.copyDone': 'Скопировано!',
'promptTemplates.modelHint': 'Рекомендуемая модель: {model}',
'promptTemplates.openSource': 'Открыть оригинал',
'promptTemplates.openFullscreen': 'Открыть полноэкранный предпросмотр',
'promptTemplates.closeFullscreen': 'Закрыть полноэкранный предпросмотр',
'promptTemplates.allSources': 'Все источники',
'promptTemplates.sourceFilterAria': 'Фильтр по источнику',
'promptTemplates.retry': 'Повторить',
'connectors.title': 'Коннекторы',
'connectors.subtitle': 'Локальные и будущие источники данных для live-артефактов.',
'connectors.account': 'Аккаунт',
'connectors.noAccount': 'Не подключено',
'connectors.tools': 'Инструменты',
'connectors.connect': 'Подключить',
'connectors.disconnect': 'Отключить',
'connectors.configure': 'Настроить',
'connectors.unavailable': 'Недоступно',
'connectors.phaseStubTitle': 'API коннекторов появятся на этапе 3; это предварительный интерфейс.',
'connectors.statusAvailable': 'Доступно',
'connectors.statusConnected': 'Подключено',
'connectors.statusError': 'Ошибка',
'connectors.statusDisabled': 'Отключено',
'connectors.gateTitle': 'Сначала настройте ключ Composio API',
'connectors.gateBody': 'Коннекторам нужен ключ Composio API. Добавьте его в настройках, чтобы разблокировать доступные интеграции.',
'connectors.gateAction': 'Открыть настройки',
'connectors.aboutLabel': 'О коннекторе',
'connectors.detailsLabel': 'Детали',
'connectors.statusLabel': 'Статус',
'connectors.categoryLabel': 'Категория',
'connectors.providerLabel': 'Провайдер',
'connectors.toolsSection': 'Инструменты',
'connectors.toolsLoading': 'Загрузка инструментов…',
'connectors.noToolsAvailable': 'Инструменты ещё не загружены. Подключитесь, чтобы увидеть возможности интеграции.',
'connectors.openDetailsAria': 'Открыть детали «{name}»',
'connectors.toolsBadgeNone': 'Нет инструментов',
'connectors.toolsBadgeOne': '{n} инструмент',
'connectors.toolsBadgeMany': '{n} инструментов',
'connectors.searchPlaceholder': 'Поиск коннекторов…',
'connectors.searchAriaLabel': 'Поиск коннекторов по названию, провайдеру или инструменту',
'connectors.searchClear': 'Очистить поиск',
'connectors.emptyNoMatchTitle': 'Нет коннекторов по запросу «{query}»',
'connectors.emptyNoMatchBody': 'Попробуйте другое ключевое слово или очистите поиск, чтобы вернуться к полному каталогу.',
'connectors.emptyNoMatchAction': 'Очистить поиск',
'newproj.tabPrototype': 'Прототип',
'newproj.tabLiveArtifact': 'Новый live-артефакт',
'newproj.tabDeck': 'Презентация',
'newproj.tabTemplate': 'Шаблон',
'newproj.tabOther': 'Другое',
'newproj.titlePrototype': 'Новый прототип',
'newproj.titleLiveArtifact': 'Новый live-артефакт',
'newproj.titleDeck': 'Новая презентация',
'newproj.titleTemplate': 'Начать с шаблона',
'newproj.titleImage': 'Новое изображение',
'newproj.titleVideo': 'Новое видео',
'newproj.titleAudio': 'Новое аудио',
'newproj.titleOther': 'Новый проект',
'newproj.namePlaceholder': 'Название проекта',
'newproj.fidelityLabel': 'Детализация',
'newproj.fidelityWireframe': 'Вайрфрейм',
'newproj.fidelityHigh': 'Высокая детализация',
'newproj.toggleSpeakerNotes': 'Использовать заметки докладчика',
'newproj.toggleSpeakerNotesHint': 'Меньше текста на слайдах — основные тезисы в заметках.',
'newproj.toggleAnimations': 'Включить анимации',
'newproj.toggleAnimationsHint':
'Добавить анимации (появление, наведение, переходы) поверх шаблона.',
'newproj.templateLabel': 'Шаблон',
'newproj.noTemplatesTitle': 'Шаблонов пока нет',
'newproj.noTemplatesBody':
'Откройте любой проект, затем используйте меню «Поделиться» в просмотре файлов, чтобы преобразовать его в шаблон. Шаблоны появятся здесь.',
'newproj.savedTemplate': 'Сохраненный шаблон',
'newproj.fileSingular': 'файл',
'newproj.filePlural': 'файлов',
'newproj.create': 'Создать',
'newproj.createLiveArtifact': 'Создать live-артефакт',
'newproj.createFromTemplate': 'Создать из шаблона',
'newproj.createDisabledTitle':
'Сначала сохраните проект как шаблон (меню «Поделиться» в любом проекте).',
'newproj.importClaudeZip': 'Импортировать ZIP-файл из Claude Design',
'newproj.importClaudeZipTitle': 'Импортировать экспорт `.zip` из Claude Design',
'newproj.importingClaudeZip': 'Импорт…',
'newproj.privacyFooter': 'По умолчанию только вы можете видеть свой проект.',
'newproj.designSystem': 'Дизайн-система',
'newproj.dsNoneFreeform': 'Нет — произвольная форма',
'newproj.dsNoneSubtitleEmpty': 'Без системных токенов, выбирайте свою палитру',
'newproj.dsNoneSubtitleSelected': 'Пропустить системные токены. Агент выбирает свою палитру.',
'newproj.dsCategoryFallback': 'Дизайн-система',
'newproj.dsSearch': 'Поиск дизайн-систем…',
'newproj.dsModeAria': 'Режим выбора',
'newproj.dsModeSingle': 'Один',
'newproj.dsModeMulti': 'Несколько',
'newproj.dsNoneTitle': 'Нет — произвольная форма',
'newproj.dsNoneSub': 'Пропустить системные токены. Агент выбирает свою палитру.',
'newproj.dsEmpty': 'Нет дизайн-систем, соответствующих «{query}».',
'newproj.dsFootSingular': 'только для вдохновения.',
'newproj.dsFootPlural': 'только для вдохновения.',
'newproj.dsFootClear': 'Очистить',
'newproj.dsBadgeDefault': 'ПО УМОЛЧАНИЮ',
'newproj.dsPrimaryFallback': 'Основной',
'newproj.surfaceImage': 'Изображение',
'newproj.surfaceVideo': 'Видео',
'newproj.surfaceAudio': 'Аудио',
'newproj.modelLabel': 'Модель',
'newproj.aspectLabel': 'Формат',
'newproj.imageStyleLabel': 'Заметки о стиле',
'newproj.imageStylePlaceholder': 'Редакционная фотография, мягкий свет, приглушенная палитра',
'newproj.videoLengthLabel': 'Длина',
'newproj.videoLengthSeconds': '{n}с',
'newproj.audioKindLabel': 'Тип аудио',
'newproj.audioKindMusic': 'Музыка',
'newproj.audioKindSpeech': 'Речь / TTS',
'newproj.audioKindSfx': 'Звуковые эффекты',
'newproj.audioDurationLabel': 'Длительность',
'newproj.audioDurationSeconds': '{n}с',
'newproj.voiceLabel': 'Голос',
'newproj.voicePlaceholder': 'Voice id провайдера, опционально',
'newproj.connectorsLabel': 'Коннекторы',
'newproj.connectorsHint': 'Источники данных, из которых артефакт может получать данные.',
'newproj.connectorsEmptyTitle': 'Коннекторы не настроены',
'newproj.connectorsEmptyBody':
'Подключите источник данных, чтобы live-артефакт использовал реальные данные вместо заглушек.',
'newproj.connectorsEmptyCta': 'Настроить коннекторы →',
'newproj.connectorsLoading': 'Загрузка коннекторов…',
'newproj.connectorsCountOne': 'Подключено: {n}',
'newproj.connectorsCountMany': 'Подключено: {n}',
'newproj.connectorsManage': 'Управлять',
'newproj.promptTemplateLabel': 'Эталонный шаблон',
'newproj.promptTemplateNoneTitle': 'Без шаблона — свой бриф',
'newproj.promptTemplateNoneSub': 'Пропустить галерею и описать самостоятельно',
'newproj.promptTemplateRefSub': 'Эталонный шаблон',
'newproj.promptTemplateSearch': 'Поиск шаблонов…',
'newproj.promptTemplateEmpty': 'Шаблоны для этого формата ещё не добавлены.',
'newproj.promptTemplateBodyLabel': 'Промпт (можно править)',
'newproj.promptTemplateOptimizeHint':
'Меняйте всё что нужно — правки попадут в бриф агента.',
'newproj.promptTemplateBodyEmpty':
'Пустое тело — агент не получит шаблонную референцию.',
'designs.subRecent': 'Недавние',
'designs.subYours': 'Ваши дизайны',
'designs.filterAria': 'Фильтр проектов',
'designs.searchPlaceholder': 'Поиск…',
'designs.emptyNoProjects': 'Проектов пока нет. Создайте один слева.',
'designs.emptyNoMatch': 'Нет проектов, соответствующих вашему поиску.',
'designs.deleteTitle': 'Удалить проект',
'designs.deleteConfirm': 'Удалить «{name}»?',
'designs.cardFreeform': 'произвольная форма',
'designs.badgeLive': 'Live',
'designs.liveArtifactBadgesAria': 'Бейджи live-артефактов',
'designs.liveCount': '{n} live',
'designs.statusLive': 'Live-артефакт',
'designs.statusArchived': 'Архивирован',
'designs.statusError': 'Ошибка',
'designs.statusRefreshing': 'Обновление…',
'designs.statusRefreshFailed': 'Не удалось обновить',
'designs.statusRefreshed': 'Обновлено',
'designs.status.notStarted': 'Не начато',
'designs.status.queued': 'В очереди',
'designs.status.running': 'Выполняется',
'designs.status.awaitingInput': 'Нужен ввод',
'designs.status.succeeded': 'Завершено',
'designs.status.failed': 'Ошибка',
'designs.status.canceled': 'Отменено',
'designs.viewToggleAria': 'Режим просмотра',
'designs.viewGrid': 'Вид сеткой',
'designs.viewKanban': 'Вид доской',
'designs.kanbanEmptyColumn': 'Нет дизайнов',
'designs.deleteAria': 'Удалить проект {name}',
'examples.typeLabel': 'Тип',
'examples.surfaceLabel': 'Поверхность',
'examples.surfaceWeb': 'Веб',
'examples.surfaceImage': 'Изображение',
'examples.surfaceVideo': 'Видео',
'examples.surfaceAudio': 'Аудио',
'examples.scenarioLabel': 'Сценарий',
'examples.modeAll': 'Все',
'examples.modePrototypeDesktop': 'Прототипы · Десктоп',
'examples.modePrototypeMobile': 'Прототипы · Мобильные',
'examples.modeDeck': 'Презентации',
'examples.modeDocument': 'Документы и шаблоны',
'examples.modeOrbit': 'Orbit',
'examples.scenarioGeneral': 'Общее',
'examples.scenarioEngineering': 'Инженерия',
'examples.scenarioProduct': 'Продукт',
'examples.scenarioDesign': 'Дизайн',
'examples.scenarioMarketing': 'Маркетинг',
'examples.scenarioSales': 'Продажи',
'examples.scenarioFinance': 'Финансы',
'examples.scenarioHr': 'HR',
'examples.scenarioOperations': 'Операции',
'examples.scenarioSupport': 'Поддержка',
'examples.scenarioLegal': 'Юридический',
'examples.scenarioEducation': 'Образование',
'examples.scenarioPersonal': 'Личное',
'examples.emptyNoSkills': 'Нет доступных навыков. Демон запущен?',
'examples.searchPlaceholder': 'Поиск примеров…',
'examples.searchAria': 'Поиск примеров по имени',
'examples.emptyNoMatch': 'Нет примеров, соответствующих этим фильтрам.',
'examples.openPreview': '⤢ Открыть предпросмотр',
'examples.loadingPreview': 'Загрузка предпросмотра…',
'examples.hoverPreview': 'Наведите для предпросмотра',
'examples.usePrompt': 'Использовать этот запрос',
'examples.previewModalTitle': 'Открыть полный предпросмотр (модально)',
'examples.shareTitle': 'Поделиться этим примером',
'examples.shareLoadFirst': 'Сначала наведите для загрузки предпросмотра',
'examples.shareMenu': 'Поделиться ▾',
'examples.exportPdfAllSlides': 'Экспорт в PDF (все слайды)',
'examples.exportPptxLocked': 'Экспорт в PPTX… (сначала откройте шаблон)',
'examples.tagSlideDeck': 'Презентация',
'examples.tagTemplate': 'Шаблон',
'examples.tagDesignSystem': 'Дизайн-система',
'examples.tagMobilePrototype': 'Мобильный прототип',
'examples.tagDesktopPrototype': 'Десктопный прототип',
'examples.tagImage': 'Изображение',
'examples.tagVideo': 'Видео',
'examples.tagAudio': 'Аудио',
'examples.previewLabel': 'Предпросмотр',
'ds.surfaceLabel': 'Поверхность',
'ds.surfaceWeb': 'Веб',
'ds.surfaceImage': 'Изображение',
'ds.surfaceVideo': 'Видео',
'ds.surfaceAudio': 'Аудио',
'ds.searchPlaceholder': 'Поиск дизайн-систем…',
'ds.emptyNoMatch': 'Нет дизайн-систем, соответствующих вашему поиску.',
'ds.badgeDefault': 'ПО УМОЛЧАНИЮ',
'ds.preview': 'Предпросмотр',
'ds.previewTitle': 'Предпросмотр дизайн-системы',
'ds.categoryAll': 'Все',
'ds.categoryUncategorized': 'Без категории',
'ds.showcase': 'Витрина',
'ds.tokens': 'Токены',
'ds.specToggle': 'DESIGN.md',
'ds.specLoading': 'Загрузка DESIGN.md…',
'avatar.title': 'Аккаунт и настройки',
'avatar.localCli': 'Локальный CLI',
'avatar.anthropicApi': 'Anthropic API',
'avatar.useLocal': 'Использовать локальный CLI',
'avatar.useApi': 'Использовать API · BYOK',
'avatar.codeAgent': 'Код-агент',
'avatar.rescan': 'Пересканировать PATH',
'avatar.settings': 'Настройки',
'avatar.backToProjects': 'Назад к проектам',
'avatar.metaActive': 'активно',
'avatar.metaOffline': 'офлайн',
'avatar.metaSelected': 'выбрано',
'avatar.noAgentSelected': 'агент не выбран',
'avatar.modelSection': 'Модель',
'avatar.modelLabel': 'Модель',
'avatar.reasoningLabel': 'Рассуждения',
'avatar.customSuffix': '(пользовательская)',
'project.backToProjects': 'Назад к проектам',
'project.metaFreeform': 'произвольная форма',
'project.resizeChatPanel': 'Изменить размер панели чата',
'chat.tabChat': 'Чат',
'chat.tabComments': 'Комментарии',
'chat.commentsSoon': 'Комментарии — скоро',
'chat.comments.attached': 'Прикреплены к чату',
'chat.comments.emptyAttached': 'Нет прикреплённых комментариев.',
'chat.comments.saved': 'Сохранённые комментарии',
'chat.comments.emptySaved': 'Сохранённых комментариев нет.',
'chat.comments.add': 'Добавить',
'chat.comments.addAll': 'Добавить все',
'chat.comments.remove': 'Удалить',
'chat.comments.placeholder': 'Оставьте комментарий к этому элементу…',
'chat.comments.addSend': 'Добавить и отправить',
'chat.comments.updateSend': 'Обновить и отправить',
'chat.comments.removeAttachment': 'Открепить комментарий',
'chat.comments.removeAttachmentAria': 'Открепить комментарий для {name}',
'chat.conversationsTitle': 'Разговоры',
'chat.conversationsAria': 'История разговоров',
'chat.newConversation': 'Новый разговор',
'chat.newConversationsTitle': 'Новый разговор',
'chat.conversationsHeading': 'Разговоры',
'chat.new': 'Новый',
'chat.emptyConversations': 'Разговоров пока нет.',
'chat.deleteConversation': 'Удалить разговор',
'chat.deleteConversationConfirm':
'Удалить «{title}»? Это удалит его сообщения.',
'chat.untitledConversation': 'Разговор без названия',
'chat.startTitle': 'Начать разговор',
'chat.startHint':
'Перетащите или вставьте изображения для визуальной ссылки или введите @ для прикрепления файла из этого проекта. Или попробуйте одно из этих начал:',
'chat.fillInputTitle': 'Нажмите, чтобы заполнить ввод',
'chat.jumpToLatest': 'Перейти к последнему',
'chat.scrollToLatest': 'Прокрутить к последнему',
'chat.you': 'Вы',
'chat.openFile': 'Открыть {name}',
'chat.composerPlaceholder':
'Опишите дизайн, который вы хотите — вставьте или добавьте изображения, или @ файл…',
'chat.composerHint':
'⌘/Ctrl + Enter для отправки · вставьте изображения · @ для ссылки на файлы',
'chat.cliSettingsTitle': 'Настройки CLI и модели',
'chat.cliSettingsAria': 'Открыть настройки CLI и модели',
'chat.attachTitle': 'Прикрепить файлы (или вставить / перетащить)',
'chat.attachAria': 'Прикрепить файлы',
'chat.importTitle': 'Импортировать источники (скоро)',
'chat.importLabel': 'Импорт',
'chat.importComingSoon': 'Скоро',
'chat.importSoon': 'Скоро',
'chat.importFig': 'Загрузить .fig файл',
'chat.importGitHub': 'Подключить GitHub',
'chat.importWeb': 'Захватить веб-элемент',
'chat.importFolder': 'Ссылка на папку с кодом',
'chat.importSkills': 'Навыки и дизайн-системы',
'chat.importProject': 'Reference another project',
'chat.linkedFolderRemoveAria': 'Удалить связанную папку {path}',
'chat.linkedFolderNotFound': 'Папка не существует',
'chat.linkedFolderAlready': 'Эта папка уже связана',
'chat.linkedFolderPickError': 'Не удалось открыть выбор папки',
'chat.send': 'Отправить',
'chat.stop': 'Остановить',
'chat.removeAria': 'Удалить {name}',
'chat.example1Title': 'Редакционная презентация',
'chat.example1Tag': 'Журнал',
'chat.example1Prompt':
'10-слайдовая редакционная презентация для дизайн-студии, привлекающей посевной раунд — швейцарская сетка, крупные заголовки с засечками и жирными буквицами, моноширинные номера секций, много негативного пространства и полноформатные фотослайды, чередующиеся с текстовыми. Обложка, видение, рынок, продукт, тракция, команда, запрос, контакт.',
'chat.example2Title': 'SaaS аналитическая панель',
'chat.example2Tag': 'Данные',
'chat.example2Prompt':
'Насыщенная аналитическая панель для SaaS-инструментов разработчика — полоса KPI с динамикой неделя к неделе, две составные линейные диаграммы (MRR и активные рабочие пространства), мировая тепловая карта использования, когортная матрица удержания, таблица лидеров по ключевым клиентам и лента событий в реальном времени. Тёмная тема, табличные моноширинные цифры, акцентные мини-графики.',
'chat.example3Title': 'Годовой отчет с длинной прокруткой',
'chat.example3Tag': 'Редакционный',
'chat.example3Prompt':
'Интерактивный годовой отчёт для климатической некоммерческой организации — редакционный макет с длинной прокруткой, сочетающий крупные цитатные блоки, визуализации данных (составные столбчатые диаграммы, анимированные счётчики, хороплетную карту проектных площадок), фотографические разделители, стену доноров и финальный призыв к действию. Современный serif для основного текста, sans-serif для подписей графиков и землистая бумажная палитра.',
'preview.shareMenu': 'Поделиться ▾',
'preview.openInNewTab': 'Открыть в новой вкладке',
'preview.exit': '⤓ Выход',
'preview.fullscreen': '⤢ Полноэкранный',
'preview.closeTitle': 'Закрыть (Esc)',
'preview.loading': 'Загрузка {label}…',
'preview.showSidebar': 'Показать {label}',
'preview.hideSidebar': 'Скрыть {label}',
'misc.savedTemplate': 'Сохраненный шаблон',
'misc.primary': 'Основной',
'misc.designSystem': 'Дизайн-система',
'workspace.designFiles': 'Файлы дизайна',
'workspace.focusMode': 'Focus workspace',
'workspace.showChat': 'Show chat',
'workspace.closeTab': 'Закрыть вкладку',
'workspace.deleteFileConfirm': 'Удалить «{name}» из папки проекта?',
'workspace.openFromDesignFiles': 'Открыть файл из',
'workspace.designFilesLink': 'Файлы дизайна',
'workspace.loadingSketch': 'Загрузка эскиза…',
'designFiles.title': 'Файлы дизайна',
'designFiles.upload': 'Загрузить файлы',
'designFiles.pasteText': 'Вставить как текстовый файл',
'designFiles.newSketch': 'Новый эскиз',
'designFiles.empty':
'Здесь пока ничего нет. Перетащите файлы ниже или создайте эскиз / вставьте текст.',
'designFiles.refresh': 'Обновить',
'designFiles.delete': 'Удалить',
'designFiles.searchPlaceholder': 'Поиск файлов…',
'designFiles.up': 'Вверх',
'designFiles.back': 'Назад',
'designFiles.crumbs': 'проект',
'designFiles.rowMenu': 'Меню строки',
'designFiles.openInTab': 'Открыть во вкладке',
'designFiles.download': 'Скачать',
'designFiles.downloadSelected': 'Download {n} as ZIP',
'designFiles.clearSelection': 'Clear',
'designFiles.selectAll': 'Select all',
'designFiles.dropTitle': '⤓ Перетащите файлы сюда',
'designFiles.dropDesc':
'Изображения, документы, референсы или папки — агент будет использовать их как контекст.',
'designFiles.upload.title': 'Загрузить файлы',
'designFiles.paste.title': 'Вставить текст как файл',
'designFiles.upload.label': 'Загрузить',
'designFiles.paste.label': 'Вставить',
'designFiles.previewOpen': 'Открыть',
'designFiles.previewClose': 'Закрыть предпросмотр',
'designFiles.modified': 'Изменено {time} · {size}',
'designFiles.weeksAgo': '{n} нед. назад',
'designFiles.sectionPages': 'Страницы',
'designFiles.sectionScripts': 'Скрипты',
'designFiles.sectionImages': 'Изображения',
'designFiles.sectionSketches': 'Эскизы',
'designFiles.sectionLiveArtifacts': 'Live-артефакты',
'designFiles.sectionOther': 'Другое',
'designFiles.showMore': 'Показать ещё +{n}',
'designFiles.kindHtml': 'HTML страница',
'designFiles.kindImage': 'Изображение',
'designFiles.kindSketch': 'Эскиз',
'designFiles.kindText': 'Текст',
'designFiles.kindCode': 'Скрипт',
'designFiles.kindPdf': 'PDF',
'designFiles.kindDocument': 'Документ',
'designFiles.kindPresentation': 'Презентация',
'designFiles.kindSpreadsheet': 'Таблица',
'designFiles.kindLiveArtifact': 'Live-артефакт',
'designFiles.kindBinary': 'Бинарный',
'quickSwitcher.placeholder': 'Открыть файл…',
'quickSwitcher.empty': 'В проекте нет файлов',
'quickSwitcher.noMatches': 'Нет совпадений',
'quickSwitcher.navigate': 'навигация',
'quickSwitcher.open': 'открыть',
'quickSwitcher.close': 'закрыть',
'pasteDialog.title': 'Вставить текст',
'pasteDialog.hint': 'Сохраняется в папку проекта. Выберите любое имя.',
'pasteDialog.fileNameLabel': 'Имя файла',
'pasteDialog.namePlaceholder': 'заметки.txt',
'pasteDialog.contentLabel': 'Содержимое',
'pasteDialog.contentPlaceholder': 'Вставьте что угодно…',
'pasteDialog.save': 'Сохранить',
'pasteDialog.cancel': 'Отмена',
'sketch.save': 'Сохранить эскиз',
'sketch.cancel': 'Отмена',
'sketch.saving': 'Сохранение…',
'sketch.tooltipDirty': 'Несохраненные изменения',
'sketch.tooltipClean': 'Сохранено',
'fileViewer.empty': 'Выберите файл для просмотра.',
'fileViewer.loading': 'Загрузка…',
'fileViewer.exportPptx': 'Экспорт в PPTX',
'fileViewer.openInNewTab': 'Открыть в новой вкладке',
'fileViewer.copyPath': 'Копировать путь',
'fileViewer.copied': 'Скопировано!',
'fileViewer.share': 'Поделиться',
'fileViewer.binaryMeta': 'Бинарный · {size}',
'fileViewer.binaryNote':
'Бинарный файл ({size} байт). Скачайте или откройте с диска для просмотра.',
'fileViewer.markdownStreamingMeta': 'Потоковый предпросмотр…',
'fileViewer.markdownErrorMeta': 'Предпросмотр может быть неполным (ошибка генерации).',
'fileViewer.markdownStreamingStatus': 'Потоковая передача… показан частичный Markdown.',
'fileViewer.markdownErrorStatus': 'Ошибка генерации. Показано последнее доступное содержимое.',
'fileViewer.pdfMeta': 'PDF · {size}',
'fileViewer.documentMeta': 'Документ',
'fileViewer.presentationMeta': 'Презентация',
'fileViewer.spreadsheetMeta': 'Таблица',
'fileViewer.previewUnavailable': 'Предпросмотр недоступен. Скачайте или откройте файл для просмотра.',
'fileViewer.download': 'Скачать',
'fileViewer.open': 'Открыть',
'fileViewer.imageMeta': 'Изображение · {size}',
'fileViewer.reactMeta': 'React-компонент · {size}',
'fileViewer.sketchMeta': 'Эскиз · {size}',
'fileViewer.videoMeta': 'Видео · {size}',
'fileViewer.audioMeta': 'Аудио · {size}',
'fileViewer.reload': 'Перезагрузить',
'fileViewer.reloadDisk': 'Перезагрузить с диска',
'fileViewer.copy': 'Копировать',
'fileViewer.copyTitle': 'Копировать содержимое файла',
'fileViewer.saveDisabled': 'Сохранить (только для чтения)',
'fileViewer.save': 'Сохранить',
'fileViewer.preview': 'Предпросмотр',
'fileViewer.source': 'Исходный код',
'fileViewer.tweaks': 'Настройки',
'fileViewer.comment': 'Комментарий',
'fileViewer.edit': 'Редактировать',
'fileViewer.draw': 'Рисовать',
'manualEdit.layers': "Layers",
'manualEdit.editableCount': "{count} editable",
'manualEdit.title': "Manual editor",
'manualEdit.selectLayer': "Select a layer",
'manualEdit.empty': "Click an element in the preview or choose a layer.",
'manualEdit.noClass': "no class",
'manualEdit.tabsAria': "Manual edit tabs",
'manualEdit.tabContent': "Content",
'manualEdit.tabStyle': "Style",
'manualEdit.tabAttributes': "Attributes",
'manualEdit.tabHtml': "Html",
'manualEdit.tabSource': "Source",
'manualEdit.attributesJson': "Attributes JSON",
'manualEdit.selectedHtml': "Selected element HTML",
'manualEdit.fullSource': "Full artifact source",
'manualEdit.applyContent': "Apply Content",
'manualEdit.applyStyle': "Apply Style",
'manualEdit.applyAttributes': "Apply Attributes",
'manualEdit.applyHtml': "Apply HTML",
'manualEdit.applySource': "Apply Source",
'manualEdit.invalidAttributes': "Invalid attributes JSON.",
'manualEdit.changes': "Changes",
'manualEdit.undo': "Undo",
'manualEdit.redo': "Redo",
'manualEdit.noChanges': "No manual edits yet.",
'manualEdit.imageUrl': "Image URL",
'manualEdit.altText': "Alt text",
'manualEdit.label': "Label",
'manualEdit.text': "Text",
'manualEdit.href': "Href",
'manualEdit.textColor': "Text color",
'manualEdit.background': "Background",
'manualEdit.fontSize': "Font size",
'manualEdit.weight': "Weight",
'manualEdit.align': "Align",
'manualEdit.padding': "Padding",
'manualEdit.margin': "Margin",
'manualEdit.radius': "Radius",
'manualEdit.border': "Border",
'manualEdit.width': "Width",
'manualEdit.minHeight': "Min height",
'fileViewer.zoomOut': 'Уменьшить',
'fileViewer.zoomIn': 'Увеличить',
'fileViewer.resetZoom': 'Сбросить масштаб',
'fileViewer.reloadAria': 'Перезагрузить',
'fileViewer.previousSlide': 'Предыдущий слайд',
'fileViewer.nextSlide': 'Следующий слайд',
'fileViewer.slideNavAria': 'Навигация по слайдам',
'fileViewer.present': 'Презентация',
'fileViewer.presentInTab': 'В этой вкладке',
'fileViewer.presentFullscreen': 'Полноэкранный',
'fileViewer.presentNewTab': 'Новая вкладка',
'fileViewer.exitPresentation': 'Выйти из презентации',
'fileViewer.shareLabel': 'Поделиться',
'fileViewer.exportPdf': 'Экспорт в PDF',
'fileViewer.exportPdfAllSlides': 'Экспорт в PDF (все слайды)',
'fileViewer.exportPptxBusy': 'Дождитесь окончания текущего хода.',
'fileViewer.exportPptxHint':
'Отправьте запрос агенту для конвертации этого дизайна в PPTX.',
'fileViewer.exportPptxNa': 'Экспорт PPTX здесь недоступен.',
'fileViewer.exportZip': 'Скачать как .zip',
'fileViewer.exportHtml': 'Экспорт как HTML',
'fileViewer.exportMd': 'Экспорт в Markdown',
'fileViewer.exportJsx': 'Экспорт как JSX',
'fileViewer.exportReactHtml': 'Экспорт предпросмотра как HTML',
'fileViewer.saveAsTemplate': 'Сохранить как шаблон…',
'fileViewer.savingTemplate': 'Сохранение шаблона…',
'fileViewer.savedTemplate': 'Сохранено как «{name}»',
'fileViewer.savedTemplateFail': 'Не удалось сохранить шаблон — попробуйте снова.',
'fileViewer.templateNamePrompt': 'Название шаблона',
'fileViewer.templateNameDefault': 'Шаблон без названия',
'fileViewer.templateDescPrompt':
'Краткое описание (необязательно — чем полезен этот шаблон?)',
'liveArtifact.refresh.button': 'Обновить',
'liveArtifact.refresh.buttonTitle': 'Обновить этот live-артефакт',
'liveArtifact.refresh.loadingTitle': 'Загрузка live-артефакта…',
'liveArtifact.refresh.noSourceTitle': 'Пока нет одобренного источника обновления только для чтения.',
'liveArtifact.refresh.running': 'Обновление…',
'liveArtifact.refresh.runningMessage': 'Обновляем данные и предпросмотр. Это может занять немного времени.',
'liveArtifact.refresh.runningAction': 'Предыдущий предпросмотр остается видимым, пока обновление не завершится успешно.',
'liveArtifact.refresh.successOne': 'Обновление завершено. Данные обновлены.',
'liveArtifact.refresh.successMany': 'Обновление завершено. Данные обновлены.',
'liveArtifact.refresh.successAction': 'Предпросмотр перезагружен с последними сохраненными данными.',
'liveArtifact.refresh.previousFailure': 'Предыдущее обновление завершилось ошибкой: {message}',
'liveArtifact.refresh.failureAction': 'Проверьте историю обновлений, исправьте проблему с источником или правами и повторите попытку.',
'liveArtifact.refresh.networkFailure': 'Не удалось отправить запрос на обновление. Проверьте подключение и попробуйте снова.',
'liveArtifact.refresh.genericFailure': 'Не удалось обновить.',
'liveArtifact.refresh.statusNever': 'Не обновляется',
'liveArtifact.refresh.statusReady': 'Готов к обновлению',
'liveArtifact.refresh.statusSucceeded': 'Актуально',
'liveArtifact.refresh.statusFailed': 'Обновление не удалось',
'fileViewer.deployToVercel': 'Развернуть на Vercel',
'fileViewer.redeployToVercel': 'Развернуть заново',
'fileViewer.deployingToVercel': 'Развёртывание на Vercel…',
'fileViewer.preparingPublicLink': 'Подготовка публичной ссылки…',
'fileViewer.copyDeployLink': 'Скопировать ссылку',
'fileViewer.deployModalTitle': 'Развернуть на Vercel',
'fileViewer.deployModalSubtitle':
'Разверните этот HTML-артефакт как Vercel Preview в своей учётной записи.',
'fileViewer.vercelToken': 'Токен Vercel',
'fileViewer.vercelTokenGetLink': 'Получить токен Vercel',
'fileViewer.vercelTokenPlaceholder': 'Вставьте токен Vercel',
'fileViewer.vercelTokenReuseHint':
'Будет использован сохранённый токен. Введите новый, чтобы заменить его.',
'fileViewer.vercelTokenRequired': 'Сначала введите и сохраните токен Vercel.',
'fileViewer.vercelTeamId': 'ID команды',
'fileViewer.vercelTeamSlug': 'Слаг команды',
'fileViewer.optional': 'Необязательно',
'fileViewer.vercelPreviewOnly': 'Пока поддерживаются только Preview-развёртывания.',
'fileViewer.savingConfig': 'Сохранение…',
'fileViewer.deployConfigSaveFailed': 'Не удалось сохранить настройки Vercel.',
'fileViewer.deployFailed': 'Развёртывание не удалось. Проверьте настройки Vercel и попробуйте снова.',
'fileViewer.deployResultLabel': 'URL развёрнутого сайта',
'fileViewer.deployLinkPreparingLabel': 'Публичная ссылка готовится',
'fileViewer.deployLinkDelayed':
'Сайт уже развернут. Vercel ещё подготавливает публичную ссылку.',
'fileViewer.deployLinkProtectedLabel': 'Включена защита Vercel',
'fileViewer.deployLinkProtected':
'Сайт развернут, но Vercel требует аутентификацию для этой preview-ссылки. Отключите Deployment Protection или используйте собственный домен.',
'fileViewer.retryLink': 'Повторить',
'questionForm.submit': 'Отправить',
'questionForm.skip': 'Пропустить',
'questionForm.locked': 'Отвечено',
'conv.switch': 'Переключить разговор',
'conv.label': 'Разговор',
'conv.heading': 'Разговоры',
'conv.new': '+ Новый',
'conv.empty': 'Разговоров пока нет.',
'conv.untitled': 'Разговор без названия',
'conv.renameTooltip': 'Дважды кликните для переименования',
'conv.delete': 'Удалить разговор',
'conv.deleteConfirm': 'Удалить «{title}»? Это удалит его сообщения.',
'agentPicker.label': 'Агент',
'agentPicker.modeChoose': 'Выберите режим выполнения',
'agentPicker.localCli': 'Локальный CLI',
'agentPicker.daemonOff': 'демон выключен',
'agentPicker.byok': 'API · BYOK',
'agentPicker.selectAgent': 'Выберите обнаруженный CLI код-агента',
'agentPicker.noAgents': 'нет агентов в PATH',
'agentPicker.notInstalled': 'не установлено',
'agentPicker.rescan': 'Пересканировать локальный PATH для агентов',
'tool.openInTab': 'Открыть {name} во вкладке',
'tool.open': 'открыть',
'tool.todos': 'Задачи',
'tool.write': 'Записать',
'tool.edit': 'Редактировать',
'tool.read': 'Читать',
'tool.bash': 'Bash',
'tool.glob': 'Glob',
'tool.grep': 'Grep',
'tool.fetch': 'Fetch',
'tool.search': 'Поиск',
'tool.lines': '{n} строк',
'tool.changeSingular': 'изменение',
'tool.changePlural': 'изменения',
'tool.in': 'в {path}',
'tool.hide': 'скрыть',
'tool.output': 'вывод',
'tool.running': 'выполняется…',
'tool.error': 'ошибка',
'tool.done': 'готово',
'assistant.role': 'Ассистент',
'assistant.workingLabel': 'Работает',
'assistant.doneLabel': 'Готово',
'assistant.unfinishedLabel': 'Остановлено с незавершенной работой',
'assistant.unfinishedSummary': 'Осталось задач: {n}',
'assistant.unfinishedMore': '+{n} еще',
'assistant.continueRemaining': 'Продолжить оставшиеся задачи',
'assistant.outTokens': '{n} токенов вывода',
'assistant.producedFiles': 'Файлы из этого хода',
'assistant.openFile': 'Открыть',
'assistant.downloadFile': 'Скачать',
'assistant.thinking': 'Думает',
'assistant.systemReminder': 'Системное напоминание',
'assistant.waitingFirstOutput': 'Ожидание первого ответа',
'assistant.statusBootingAgent': 'Загрузка агента',
'assistant.statusStarting': 'Запуск',
'assistant.statusRequesting': 'Отправка запроса',
'assistant.statusThinking': 'Думает',
'assistant.statusStreaming': 'Потоковая передача',
'assistant.slowHint':
'Занимает больше времени, чем обычно. Форма обычно появляется через 5–10с — вы можете остановить и перефразировать.',
'assistant.verbEditing': 'Редактирование',
'assistant.verbWriting': 'Запись',
'assistant.verbReading': 'Чтение',
'assistant.verbSearching': 'Поиск',
'assistant.verbRunning': 'Выполнение',
'assistant.verbTodos': 'Задачи',
'assistant.verbFetching': 'Получение',
'assistant.verbCalling': 'Вызов',
'qf.answered': 'отвечено',
'qf.choose': 'Выберите…',
'qf.required': 'обязательно',
'qf.lockedSubmitted':
'Ответы отправлены — агент будет использовать их до конца сессии.',
'qf.lockedPrev': 'Эта форма из предыдущего хода.',
'qf.hint':
'Выберите подходящее. Пропустите необязательные поля, которые вам не важны — агент будет использовать разумные значения по умолчанию.',
'qf.submitDefault': 'Отправить ответы',
'qf.submitDisabledTitle': 'Сначала заполните обязательные поля',
'qf.submitTitle': 'Отправить ответы',
'qf.cardSelected': 'выбрано',
'qf.cardRefs': 'Ссылки:',
'qf.cardSampleText': 'Быстрая коричневая лиса · 0123',
'sketch.toolSelect': 'Выбор (без действий)',
'sketch.toolPen': 'Ручка',
'sketch.toolText': 'Текст',
'sketch.toolRect': 'Прямоугольник',
'sketch.toolArrow': 'Стрелка',
'sketch.toolEraser': 'Ластик',
'sketch.color': 'Цвет',
'sketch.strokeSize': 'Размер штриха',
'sketch.undo': 'Отменить',
'sketch.clear': 'Очистить',
'sketch.close': 'Закрыть',
'sketch.textPrompt': 'Текст:',
'pet.title': 'Питомцы',
'pet.tabBuiltIn': 'Встроенные',
'pet.tabBuiltInHint': 'Подобранные питомцы в комплекте Open Design — выберите и забирайте.',
'pet.builtInEmpty': 'Встроенные питомцы сейчас недоступны. Обновите вкладку «Сообщество», когда демон снова запустится.',
'pet.tabCustom': 'Свой',
'pet.tabCustomHint': 'Своё имя, глиф, цвет или загруженный спрайт.',
'pet.tabCommunity': 'Сообщество',
'pet.tabCommunityHint': 'Питомцы из Codex — заведите своего или сгенерируйте нового через ИИ.',
'pet.tabsAria': 'Источник питомца',
'pet.subtitle': 'Заведите маленького спутника, который парит над вашей рабочей областью.',
'pet.navTitle': 'Питомцы',
'pet.navHint': 'Завести или настроить',
'pet.adopt': 'Завести',
'pet.adoptedBadge': 'Заведён',
'pet.adoptCallout': 'Завести питомца',
'pet.changePet': 'Сменить питомца',
'pet.wake': 'Разбудить',
'pet.tuck': 'Спрятать',
'pet.wakeTitle': 'Разбудить питомца — показать оверлей.',
'pet.tuckTitle': 'Спрятать питомца — скрыть оверлей.',
'pet.settingsTitle': 'Открыть настройки питомца',
'pet.useCustom': 'Использовать своего',
'pet.customTitle': 'Создайте своего',
'pet.customHint': 'Выберите имя, символ и акцентный цвет — оверлей обновляется на лету.',
'pet.customGreetingPlaceholder': 'Приветствие от вашего питомца…',
'pet.fieldName': 'Имя',
'pet.fieldGlyph': 'Символ',
'pet.fieldGlyphHint': 'Один эмодзи подходит лучше всего (например 🐝, 🦄, 🐢).',
'pet.fieldGreeting': 'Приветствие',
'pet.fieldAccent': 'Акцентный цвет',
'pet.fieldAccentCustom': 'Свой цвет',
'pet.overlayAria': 'Питомец-компаньон',
'pet.spriteAria': '{name} — тащите, чтобы переместить, кликните, чтобы пообщаться',
'pet.spriteTitle': 'Привет от {name}! Кликните, чтобы пообщаться.',
'pet.railAria': 'Выбор питомца',
'pet.railTitle': 'Питомцы',
'pet.railHint': 'Выберите спутника, который будет парить над воркспейсом.',
'pet.railExpand': 'Показать выбор',
'pet.railCollapse': 'Свернуть выбор',
'pet.railHide': 'Скрыть выбор питомцев',
'pet.railShow': 'Показать выбор питомцев',
'pet.railCustomFlavor': 'Свой — имя, символ, цвет.',
'pet.railCustomize': 'Настроить…',
'pet.composerTitle': 'Питомцы — разбудить, спрятать или выбрать',
'pet.composerMenuTitle': 'Питомцы',
'pet.composerMenuHint': 'совет: введите /pet, чтобы переключить',
'pet.composerOpenSettings': 'Настроить в Настройках',
'pet.welcomeTeaserTitle': 'Заведите питомца',
'pet.welcomeTeaserBody': 'Маленький спутник, парящий над воркспейсом.',
'pet.welcomeTeaserCta': 'Выбрать',
'pet.imageUpload': 'Загрузить спрайт',
'pet.imageReplace': 'Заменить спрайт',
'pet.imageRemove': 'Использовать emoji',
'pet.imageHintIdle': 'PNG, JPG, WebP, GIF или SVG. Спрайтшит? Загрузите горизонтальную ленту и укажите число кадров.',
'pet.imageHintActive': 'Показан ваш спрайт. Установите кадры > 1, чтобы анимировать горизонтальный спрайтшит.',
'pet.fieldFrames': 'Кадры',
'pet.fieldFramesHint': '1 = статично. > 1 = горизонтальный спрайтшит.',
'pet.fieldFps': 'Скорость (fps)',
'pet.fieldFpsHint': 'Скорость смены кадров.',
'pet.atlasImport': 'Импорт спрайта Codex',
'pet.atlasImportTitle': 'Импортируйте атлас hatch-pet 8x9 / 192x208 (PNG или WebP).',
'pet.atlasPickerTitle': 'Выберите ряд анимации',
'pet.atlasPickerHint': 'У Codex-петов 9 рядов анимаций. По умолчанию мы оставляем весь атлас — питомец меняет ряд при наведении, направлении перетаскивания и долгом простое. Можно зафиксировать и один цикл.',
'pet.atlasCancel': 'Отменить атлас',
'pet.atlasAdopt': 'Зафиксировать этот ряд',
'pet.atlasAdoptFull': 'Использовать весь атлас (анимация)',
'pet.atlasAdoptFullTitle': 'Сохранить все ряды, чтобы питомец реагировал на наведение, направление перетаскивания и долгое бездействие.',
'pet.atlasAdoptRowTitle': 'Вырезать только выделенный ряд в отдельную циклическую полоску.',
'pet.atlasActiveHint': 'Анимированный атлас включён — питомец выбирает ряд по вашему взаимодействию (наведение, перетаскивание, бездействие).',
'pet.atlasRow.idle': 'Покой',
'pet.atlasRow.running-right': 'Бег вправо',
'pet.atlasRow.running-left': 'Бег влево',
'pet.atlasRow.waving': 'Машет',
'pet.atlasRow.jumping': 'Прыжок',
'pet.atlasRow.failed': 'Неудача',
'pet.atlasRow.waiting': 'Ожидание',
'pet.atlasRow.running': 'Бежит',
'pet.atlasRow.review': 'Анализ',
'pet.hatchTitle': 'Вырастить нового пета с ИИ',
'pet.hatchHint': 'Запустите встроенный навык hatch-pet в чате, чтобы получить спрайтшит в стиле Codex, а затем импортируйте его здесь.',
'pet.hatchConcept': 'Концепт пета (по желанию)',
'pet.hatchConceptPlaceholder': 'напр.: маленький пиксель-арт сиба-ину в уютном свитере',
'pet.hatchCopy': 'Скопировать промпт',
'pet.hatchCopied': 'Скопировано!',
'pet.hatchFoot': 'Когда навык сохранит пета, вернитесь и нажмите «Импорт спрайта Codex».',
'pet.slashPopoverAria': 'Слэш-команды',
'pet.slashPopoverTitle': 'Команды',
'pet.slashPopoverHint': '↑↓ навигация · enter выбрать · esc закрыть',
'pet.slashPet': 'Переключить, выбрать или открыть настройки пета.',
'pet.slashPetWake': 'Разбудить плавающего пета.',
'pet.slashPetTuck': 'Спрятать пета на время.',
'pet.slashHatch': 'Создать Codex-пета через навык hatch-pet.',
'pet.slashHatchArg': '<концепт>',
'pet.codexTitle': 'Недавно вылупленные',
'pet.codexSubtitle': 'Петы, упакованные навыком hatch-pet, появятся здесь для усыновления в один клик.',
'pet.codexSubtitleWithDir': 'Сканируем {dir} в поисках пакетов hatch-pet.',
'pet.codexEmpty': 'Пока нет вылупленных петов. Наберите /hatch в чате, чтобы создать.',
'pet.codexLoading': 'Ищем вылупленных петов…',
'pet.codexRefresh': 'Обновить',
'pet.codexAdopt': 'Усыновить',
'pet.codexAdopting': 'Усыновляем…',
'pet.communitySync': 'Скачать сообщество питомцев',
'pet.communitySyncing': 'Загрузка…',
'pet.communitySyncTitle': 'Синхронизировать свежих питомцев из Codex Pet Share + j20 Hatchery в ~/.codex/pets/.',
'pet.communitySyncDone': 'Синхронизировано {wrote} новых питомцев (всего {total}).',
'pet.communitySyncFailed': 'Ошибка синхронизации: {error}',
'pet.codexBundled': 'Встроен',
'pet.codexBundledTitle': 'Поставляется с Open Design — загрузка не нужна.',
'settings.notifications': 'Уведомления',
'settings.notificationsHint': 'Звук и уведомление при завершении задачи',
'settings.notifyCompletionSound': 'Звук завершения',
'settings.notifyCompletionSoundHint': 'Воспроизводится по завершении хода. По умолчанию выключено.',
'settings.notifySuccessSound': 'Звук успеха',
'settings.notifyFailureSound': 'Звук ошибки',
'settings.notifyDesktop': 'Уведомление на рабочем столе',
'settings.notifyDesktopHint': 'Отправляется, когда окно не активно.',
'settings.notifyDesktopBlocked': 'Уведомления заблокированы браузером. Разрешите их в настройках сайта.',
'settings.notifyDesktopUnsupported': 'Уведомления на рабочем столе недоступны в этой среде.',
'settings.notifyTest': 'Отправить тест',
'settings.notifyTestSent': 'Тестовое уведомление отправлено. Если баннер не появился, проверьте настройки уведомлений браузера и системы.',
'settings.notifyTestFailed': 'Вызов уведомления не удался. Проверьте настройки уведомлений браузера и системы.',
'settings.notifySoundDing': 'Динь',
'settings.notifySoundChime': 'Колокольчик',
'settings.notifySoundTwoToneUp': 'Двухтон вверх',
'settings.notifySoundPluck': 'Щипок',
'settings.notifySoundBuzz': 'Жужжание',
'settings.notifySoundTwoToneDown': 'Двухтон вниз',
'settings.notifySoundThud': 'Глухой удар',
'settings.library': 'Навыки и системы дизайна',
'settings.libraryHint': 'Просмотр, предпросмотр и управление библиотекой контента',
'settings.librarySkills': 'Навыки',
'settings.libraryDesignSystems': 'Системы дизайна',
'settings.librarySearch': 'Поиск...',
'settings.libraryAll': 'Все',
'settings.libraryPreview': 'Предпросмотр',
'settings.libraryPreviewClose': 'Закрыть',
'settings.libraryLoading': 'Загрузка...',
'settings.libraryNoResults': 'Ничего не найдено по вашему запросу.',
'settings.libraryEnabled': 'Включено',
'settings.libraryDisabled': 'Отключено',
'settings.libraryToggleLabel': 'Переключить',
'notify.successTitle': 'Задача выполнена',
'notify.failureTitle': 'Задача завершилась с ошибкой',
'notify.successBody': 'Ход завершён.',
'notify.failureBody': 'Задача завершилась с ошибкой.',
};
+945
View File
@@ -0,0 +1,945 @@
import { en } from './en';
import type { Dict } from '../types';
export const tr: Dict = {
...en,
'common.cancel': 'İptal et',
'common.save': 'Kaydet',
'common.close': 'Kapat',
'common.delete': 'Sil',
'common.rename': 'Yeniden adlandır',
'common.preview': 'Önizleme',
'common.share': 'Paylaş',
'common.search': 'Ara',
'common.searchEllipsis': 'Ara…',
'common.loading': 'Yükleniyor…',
'common.all': 'Hepsi',
'common.none': 'Hiçbiri',
'common.default': 'Varsayılan',
'common.installed': 'kuruldu',
'common.notInstalled': 'kurulmadı',
'common.active': 'aktif',
'common.offline': 'çevrim dışı',
'common.selected': 'seçili',
'common.create': 'Oluştur',
'common.openPreview': 'Önizlemeyi aç',
'common.exitFullscreen': 'Tam ekrandan çık',
'common.fullscreen': 'Tam ekran',
'common.openInNewTab': 'Yeni sekmede aç',
'common.exportPdf': 'PDF olarak dışa aktar',
'common.exportZip': 'ZIP olarak indir',
'common.exportHtml': 'Tekil HTML olarak dışa aktar',
'common.justNow': 'şimdi',
'common.minutesAgo': '{n} dakika önce',
'common.hoursAgo': '{n} saat önce',
'common.daysAgo': '{n} gün önce',
'common.now': 'şimdi',
'common.minutesShort': '{n}d',
'common.hoursShort': '{n}s',
'common.daysShort': '{n}g',
'common.untitled': 'Başlıksız',
'app.brand': 'Open Design',
'app.brandPill': 'Önizleme Araştırması',
'app.brandSubtitle': 'Nexu Labs tarafından',
'app.welcomeLoading': 'Çalışma alanı yükleniyor…',
'settings.welcomeKicker': 'Hoşgeldiniz',
'settings.welcomeTitle': 'Open Design kurulumu',
'settings.welcomeSubtitle':
"Oluşturmaları nasıl çalıştıracağınızı seçin. Bunu her zaman üst çubuktaki Ayarlar sekmesinden değiştirebilirsiniz.",
'settings.kicker': 'Ayarlar',
'settings.title': 'Çalıştırma & model',
'settings.subtitle': 'Yerel CLI ile BYOK arasında seçim yapın. API anahtarınız yalnızca bu tarayıcıda saklanır.',
'settings.modeAria': 'Çalıştırma modu',
'settings.protocolAria': 'API protokolü',
'settings.modeDaemon': 'Yerel CLI',
'settings.modeDaemonHelp': 'Yerel kod ajanı CLI ile çalıştır',
'settings.modeDaemonOffline': 'Arka plan servisi çalışmıyor',
'settings.modeDaemonOfflineMeta': 'Arka plan servisi devre dışı',
'settings.modeDaemonInstalledMeta': '{count} kuruldu',
'settings.modeApi': 'API sağlayıcısı',
'settings.modeApiMeta': 'BYOK',
'settings.codeAgent': 'Kod ajanı',
'settings.codeAgentHint':
'Yerel PATH taranarak tespit edildi. Oluşum akışının yaşanacağı CLI aracınızı seçin.',
'settings.rescan': '↻ Yeniden tara',
'settings.rescanTitle': 'PATH’ı yeniden tara',
'settings.rescanRunning': 'Taranıyor...',
'settings.rescanSuccess': 'Tarama tamamlandı. {count} kullanılabilir.',
'settings.rescanFailed': 'Tarama başarısız. Daemon’u kontrol edip tekrar deneyin.',
'settings.noAgentsDetected':
'Hiçbir ajan tespit edilemedi. Claude Code, Codex, Devin for Terminal, Gemini CLI, OpenCode, Cursor Agent, Qwen, veya GitHub Copilot CLI’lardan birini kurun ve yeniden tarayın.',
'settings.apiSection': 'Anthropic API',
'settings.quickFillProvider': 'Sağlayıcıyı hızlı doldur',
'settings.customProvider': 'Özel sağlayıcı',
'settings.apiKey': 'API anahtarı',
'settings.showKey': 'Anahtarı göster',
'settings.hideKey': 'Anahtarı gizle',
'settings.show': 'Göster',
'settings.hide': 'Gizle',
'settings.model': 'Model',
'settings.suggestedModelsHint':
'Bunlar bu protokol için önerilen modellerdir. Sağlayıcınız farklı modelleri destekleyebilir.',
'settings.baseUrl': 'Temel URL',
'settings.baseUrlInvalid': 'Geçerli bir genel http:// veya https:// URL girin. Localhost izinlidir; özel ağ IPleri engellenir.',
'settings.azureDeploymentModel': 'Dağıtım adı',
'settings.azureDeploymentModelHint':
'Azure OpenAI icin bu alan /openai/deployments/<model> icindeki dagitim adi olarak kullanilir. Azureda olusturdugunuz dagitim adini girin.',
'settings.apiVersion': 'API sürümü',
'settings.maxTokens': 'Maks. token (isteğe bağlı)',
'settings.maxTokensHint':
'Yanıt uzunluğu sınırı. Her modelin ayarlanmış bir varsayılanı vardır (yer tutucuda görünür); kullanmak için boş bırakın, üzerine yazmak için bir sayı girin.',
'settings.apiHint': 'İstekler yerel daemon proxy üzerinden ayarladığınız Base URLye gönderilir. Anahtar yalnızca bu tarayıcıda saklanır ve sağlayıcı istekleriyle birlikte gönderilir.',
'settings.skipForNow': 'Şimdilik atla',
'settings.getStarted': 'Başla',
'settings.envConfigure': 'Yürütme modunu ayarlayın',
'settings.localCli': 'Yerel CLI',
'settings.anthropicApi': 'Anthropic API',
'settings.noAgentSelected': 'Ajan seçilmedi',
'settings.language': 'Dil',
'settings.languageHint': 'Arayüz dilini değiştirin. Bu tarayıcıya kaydedilir.',
'settings.appearance': 'Görünüm',
'settings.appearanceHint': 'Açık, koyu veya sistem ayarını takip et.',
'settings.themeSystem': 'Sistem',
'settings.themeLight': 'Açık',
'settings.themeDark': 'Koyu',
'settings.modelPicker': 'Model',
'settings.reasoningPicker': 'Akıl yürütme eforu',
'settings.modelPickerHint':
'Bir `models` komutu açığa çıkaran CLI’lardan getirilir. "Varsayılan" seçimi CLI’ın kendi ayarına bırakır; "Özel…" CLI’ın kabul edeceği herhangi bir model kimliği seçmenize izin verir.',
'settings.modelCustom': 'Özel (aşağıya yazın)…',
'settings.modelCustomLabel': 'Özel model kimliği',
'settings.modelCustomPlaceholder': 'örn. anthropic/claude-sonnet-4-6',
'settings.mediaProviders': 'Medya sağlayıcıları',
'settings.mediaProvidersHint':
'Görsel, video ve ses oluşumu için API anahtarları. Yerel saklanır ve yerel arka plan servisiyle senkronize edilir.',
'settings.mediaProviderApiKey': 'API anahtarı',
'settings.mediaProviderBaseUrl': 'Temel URL',
'settings.mediaProviderConfigured': 'Ayarlandı',
'settings.mediaProviderUnset': 'Ayarlanmadı',
'settings.mediaProviderClear': 'Temizle',
'settings.mediaProviderPlaceholder': 'API anahtarı yapıştır',
'settings.mediaProviderBaseUrlPlaceholder': 'Varsayılan temel URL’yi görmezden gel',
'settings.about': 'Hakkında',
'settings.aboutHint': 'Sürüm ve çalışma zamanı detayları',
'settings.appVersion': 'Sürüm',
'settings.appChannel': 'Kanal',
'settings.appRuntime': 'Çalışma zamanı',
'settings.appPlatform': 'Platform',
'settings.appArchitecture': 'Mimari',
'settings.runtimePackaged': 'Paketlenmiş uygulama',
'settings.runtimeDevelopment': 'Geliştirme',
'settings.versionUnavailable': 'Arka plan servisi devre dışıyken sürüm detayları mevcut değildir.',
'entry.tabDesigns': 'Tasarımlar',
'entry.tabExamples': 'Örnekler',
'entry.tabDesignSystems': 'Tasarım sistemleri',
'entry.tabConnectors': 'Bağlayıcılar',
'entry.openSettingsTitle': 'Ayarlar',
'entry.openSettingsAria': 'Ayarları aç',
'entry.resizeAria': 'Yan çubuğu yeniden boyutlandır',
'entry.loadingWorkspace': 'Çalışma alanı yükleniyor…',
'entry.tabImageTemplates': 'Görsel istemleri',
'entry.tabVideoTemplates': 'Video istemleri',
'promptTemplates.searchPlaceholder': 'Şablon ara…',
'promptTemplates.countLabel': '{n} sonuç',
'promptTemplates.emptyImage': 'Henüz görsel istemi şablonu yüklenmedi.',
'promptTemplates.emptyVideo': 'Henüz video istemi şablonu yüklenmedi.',
'promptTemplates.emptyNoMatch': 'Aramanıza uygun şablon bulunamadı.',
'promptTemplates.attributionFooter': 'Herkese açık istem kütüphanesinden adape edildi. Her kart orijinal yazara bağlantılıdır.',
'promptTemplates.openPreviewTitle': 'istemi aç ve önizle',
'promptTemplates.sourcePrefix': 'Kaynak:',
'promptTemplates.fetchError': 'Bu şablon gövdesi yüklenemedi.',
'promptTemplates.promptLabel': 'İstem gövdesi',
'promptTemplates.copyPrompt': 'İstemi kopyala',
'promptTemplates.copyDone': 'Kopyalandı!',
'promptTemplates.modelHint': 'Tavsiye edilen model: {model}',
'promptTemplates.openSource': 'Orijinali görüntüle',
'promptTemplates.openFullscreen': 'Tam ekran ön izlemeyi aç',
'promptTemplates.closeFullscreen': 'Tam ekran ön izlemeyi kapat',
'promptTemplates.allSources': 'Tüm kaynaklar',
'promptTemplates.sourceFilterAria': 'Kaynağa göre filtrele',
'promptTemplates.retry': 'Yeniden dene',
'connectors.title': 'Bağlayıcılar',
'connectors.subtitle': 'Canlı artefaktları besleyebilecek yerel ve gelecekteki veri kaynakları.',
'connectors.account': 'Hesap',
'connectors.noAccount': 'Bağlı değil',
'connectors.tools': 'Araçlar',
'connectors.connect': 'Bağlan',
'connectors.disconnect': 'Bağlantıyı kes',
'connectors.configure': 'Yapılandır',
'connectors.unavailable': 'Kullanılamıyor',
'connectors.phaseStubTitle': 'Bağlayıcı API\'leri 3. aşamada gelecek; burası yalnızca önizleme yüzeyi.',
'connectors.statusAvailable': 'Kullanılabilir',
'connectors.statusConnected': 'Bağlı',
'connectors.statusError': 'Hata',
'connectors.statusDisabled': 'Devre dışı',
'connectors.gateTitle': 'Önce Composio API anahtarını yapılandırın',
'connectors.gateBody': 'Bağlayıcılar bir Composio API anahtarı gerektirir. Kullanılabilir entegrasyonları etkinleştirmek için ayarlara ekleyin.',
'connectors.gateAction': 'Ayarları aç',
'connectors.aboutLabel': 'Hakkında',
'connectors.detailsLabel': 'Ayrıntılar',
'connectors.statusLabel': 'Durum',
'connectors.categoryLabel': 'Kategori',
'connectors.providerLabel': 'Sağlayıcı',
'connectors.toolsSection': 'Araçlar',
'connectors.toolsLoading': 'Araçlar yükleniyor…',
'connectors.noToolsAvailable': 'Henüz kullanılabilir araç yok. Bağlandıktan sonra bu entegrasyonun yetenekleri görünür.',
'connectors.openDetailsAria': '{name} ayrıntılarını aç',
'connectors.toolsBadgeNone': 'Araç yok',
'connectors.toolsBadgeOne': '{n} araç',
'connectors.toolsBadgeMany': '{n} araç',
'connectors.searchPlaceholder': 'Bağlayıcı ara…',
'connectors.searchAriaLabel': 'Bağlayıcıları ada, sağlayıcıya veya araca göre ara',
'connectors.searchClear': 'Aramayı temizle',
'connectors.emptyNoMatchTitle': '“{query}” ile eşleşen bağlayıcı yok',
'connectors.emptyNoMatchBody': 'Başka bir anahtar kelime deneyin veya tüm kataloğu görmek için aramayı temizleyin.',
'connectors.emptyNoMatchAction': 'Aramayı temizle',
'newproj.tabPrototype': 'Prototip',
'newproj.tabDeck': 'Slayt gösterisi',
'newproj.tabTemplate': 'Şablondan',
'newproj.tabOther': 'Diğer',
'newproj.titlePrototype': 'Yeni prototip',
'newproj.titleDeck': 'Yeni slayt gösterisi',
'newproj.titleTemplate': 'Bir şablondan başla',
'newproj.titleImage': 'Yeni görsel',
'newproj.titleVideo': 'Yeni video',
'newproj.titleAudio': 'Yeni ses',
'newproj.titleOther': 'Yeni proje',
'newproj.namePlaceholder': 'Proje ismi',
'newproj.fidelityLabel': 'Sadakat',
'newproj.fidelityWireframe': 'İskelet',
'newproj.fidelityHigh': 'Yüksek sadakat',
'newproj.toggleSpeakerNotes': 'Konuşmacı notlarını kullan',
'newproj.toggleSpeakerNotesHint': 'Slaytlarda daha az metin — konuşma noktalarını notlarda tut.',
'newproj.toggleAnimations': 'Animasyonları dahil et',
'newproj.toggleAnimationsHint':
'Şablonunuzun üstüne hareket (giriş, yüzme, geçişler) ekleyin.',
'newproj.templateLabel': 'Şablon',
'newproj.noTemplatesTitle': 'Henüz şablon yok',
'newproj.noTemplatesBody':
'Herhangi bir projeyi açın, ardından dosya görüntüleyicideki Paylaş menüsü ile bir şablona dönüştürün. Şablonlar burada görünür.',
'newproj.savedTemplate': 'Şablon kaydedildi',
'newproj.fileSingular': 'dosya',
'newproj.filePlural': 'dosyalar',
'newproj.create': 'Oluştur',
'newproj.createFromTemplate': 'Şablondan oluştur',
'newproj.createDisabledTitle':
'Önce bir projeyi şablon olarak kaydedin (herhangi bir projenin içinde Paylaş menüsünden).',
'newproj.importClaudeZip': 'Claude Design ZIP’i içe aktar',
'newproj.importClaudeZipTitle': 'Bir Claude Design .zip’ini içe aktarın',
'newproj.importingClaudeZip': 'İçe aktarılıyor…',
'newproj.privacyFooter': 'Projeyi varsayılan olarak yalnızca siz görebilirsiniz.',
'newproj.designSystem': 'Tasarım sistemi',
'newproj.dsNoneFreeform': 'Hiçbiri — serbest stil',
'newproj.dsNoneSubtitleEmpty': 'Sistem tokeni yok, kendi paletinizi seçin',
'newproj.dsNoneSubtitleSelected': 'Sistem tokenlerini atla. Ajan kendi paletini seçer.',
'newproj.dsCategoryFallback': 'Tasarım sistemi',
'newproj.dsSearch': 'Tasarım sistemleri ara…',
'newproj.dsModeAria': 'Seçim modu',
'newproj.dsModeSingle': 'Tekli',
'newproj.dsModeMulti': 'Çoklu',
'newproj.dsNoneTitle': 'Hiçbiri — serbest stil',
'newproj.dsNoneSub': 'Sistem tokenlerini atla. Ajan kendi paletini seçer.',
'newproj.dsEmpty': 'Hiçbir tasarım sistemi “{query}” aramasıyla örtüşmedi.',
'newproj.dsFootSingular': 'yalnızca ilhamdır.',
'newproj.dsFootPlural': 'yalnızca ilhamdır.',
'newproj.dsFootClear': 'Temizle',
'newproj.dsBadgeDefault': 'VARSAYILAN',
'newproj.dsPrimaryFallback': 'Birincil',
'newproj.surfaceImage': 'Görsel',
'newproj.surfaceVideo': 'Video',
'newproj.surfaceAudio': 'Ses',
'newproj.modelLabel': 'Model',
'newproj.aspectLabel': 'Oran',
'newproj.imageStyleLabel': 'Stil notları',
'newproj.imageStylePlaceholder': 'Editöryel fotoğraf, yumuşak gün ışığı, pastel renk paleti',
'newproj.videoLengthLabel': 'Uzunluk',
'newproj.videoLengthSeconds': '{n}s',
'newproj.audioKindLabel': 'Ses tipi',
'newproj.audioKindMusic': 'Müzik',
'newproj.audioKindSpeech': 'Konuşma / TTS',
'newproj.audioKindSfx': 'Ses efekti',
'newproj.audioDurationLabel': 'Süre',
'newproj.audioDurationSeconds': '{n}s',
'newproj.voiceLabel': 'Ses',
'newproj.voicePlaceholder': 'Sağlayıcı ses kimliği, opsiyonel',
'newproj.connectorsLabel': 'Bağlayıcılar',
'newproj.connectorsHint': 'Bu artefaktın veri çekebileceği kaynaklar.',
'newproj.connectorsEmptyTitle': 'Yapılandırılmış bağlayıcı yok',
'newproj.connectorsEmptyBody': 'Canlı artefaktın yer tutucular yerine gerçek verileri kullanması için bir veri kaynağı bağlayın.',
'newproj.connectorsEmptyCta': 'Bağlayıcıları ayarla →',
'newproj.connectorsLoading': 'Bağlayıcılar yükleniyor…',
'newproj.connectorsCountOne': '{n} bağlı',
'newproj.connectorsCountMany': '{n} bağlı',
'newproj.connectorsManage': 'Yönet',
'newproj.promptTemplateLabel': 'Referans şablon',
'newproj.promptTemplateNoneTitle': 'Hiçbiri — kendin yaz',
'newproj.promptTemplateNoneSub': 'Galeriyi atla, kendi brief’ini açıkla',
'newproj.promptTemplateRefSub': 'Referans şablon',
'newproj.promptTemplateSearch': 'Şablon ara…',
'newproj.promptTemplateEmpty': 'Bu yüzey için henüz şablon yüklenmedi.',
'newproj.promptTemplateBodyLabel': 'İstem (istediğin gibi düzenleyebilirsin)',
'newproj.promptTemplateOptimizeHint':
'İstediğin her şeyi düzenle — değişikliklerin ajan brief’ine taşınır.',
'newproj.promptTemplateBodyEmpty': 'Gövde boş — ajana şablon referansı gitmeyecek.',
'designs.subRecent': 'Yakında',
'designs.subYours': 'Tasarımların',
'designs.filterAria': 'Projeleri filtrele',
'designs.searchPlaceholder': 'Ara…',
'designs.emptyNoProjects': 'Henüz proje yok. Sol taraftan yeni bir tane oluşturun.',
'designs.emptyNoMatch': 'Hiçbir proje aramanızla örtüşmedi.',
'designs.deleteTitle': 'Projeyi sil',
'designs.deleteConfirm': '"{name}"’i sil?',
'designs.cardFreeform': 'serbest stil',
'designs.status.notStarted': 'başlamadı',
'designs.status.queued': 'Sırada',
'designs.status.running': 'Çalışıyor',
'designs.status.awaitingInput': 'Girdi gerekli',
'designs.status.succeeded': 'Tamamlandı',
'designs.status.failed': 'Başarısız',
'designs.status.canceled': 'İptal edildi',
'designs.viewToggleAria': 'Görüntüleme modu',
'designs.viewGrid': 'Izgara görünümü',
'designs.viewKanban': 'Tahta görünümü',
'designs.kanbanEmptyColumn': 'Tasarım yok',
'designs.deleteAria': '{name} projesini sil',
'examples.typeLabel': 'Tip',
'examples.surfaceLabel': 'Yüzey',
'examples.surfaceWeb': 'Web',
'examples.surfaceImage': 'Görsel',
'examples.surfaceVideo': 'Video',
'examples.surfaceAudio': 'Ses',
'examples.scenarioLabel': 'Senaryo',
'examples.modeAll': 'Tümü',
'examples.modePrototypeDesktop': 'Prototipler · Masaüstü',
'examples.modePrototypeMobile': 'Prototipler · Mobil',
'examples.modeDeck': 'Slaytlar',
'examples.modeDocument': 'Doküman & şablonlar',
'examples.modeOrbit': 'Orbit',
'examples.scenarioGeneral': 'Genel',
'examples.scenarioEngineering': 'Mühendislik',
'examples.scenarioProduct': 'Ürün',
'examples.scenarioDesign': 'Tasarım',
'examples.scenarioMarketing': 'Pazarlama',
'examples.scenarioSales': 'Satış',
'examples.scenarioFinance': 'Finans',
'examples.scenarioHr': 'İnsan Kaynakları',
'examples.scenarioOperations': 'Operasyonlar',
'examples.scenarioSupport': 'Destek',
'examples.scenarioLegal': 'Yasal',
'examples.scenarioEducation': 'Eğitim',
'examples.scenarioPersonal': 'Şahsi',
'examples.emptyNoSkills': 'Yetenekler mevcut değil. Arka plan servisi çalışıyor mu?',
'examples.searchPlaceholder': 'Örnek ara…',
'examples.searchAria': 'Örnekleri ada göre ara',
'examples.emptyNoMatch': 'Hiçbir örnek bu filtrelere uymuyor.',
'examples.openPreview': '⤢ Önizlemeyi aç',
'examples.loadingPreview': 'Önizleme yükleniyor…',
'examples.hoverPreview': 'Önizlemek için fareyi üzerine getirin',
'examples.usePrompt': 'Bu istemi kullan',
'examples.previewModalTitle': 'Tam önizlemeyi aç (modal)',
'examples.shareTitle': 'Bu örneği paylaş',
'examples.shareLoadFirst': 'önizlemek için önce fareyi üzerine getirin',
'examples.shareMenu': 'Paylaş ▾',
'examples.exportPdfAllSlides': 'PDF olarak dışa aktar (tüm slaytlar)',
'examples.exportPptxLocked': 'PPTX olarak dışa aktar… (Önce şablon açın)',
'examples.tagSlideDeck': 'Slayt gösterisi',
'examples.tagTemplate': 'Şablon',
'examples.tagDesignSystem': 'Tasarım sistemi',
'examples.tagMobilePrototype': 'Mobil prototip',
'examples.tagDesktopPrototype': 'Masaüstü prototip',
'examples.tagImage': 'Görsel',
'examples.tagVideo': 'Video',
'examples.tagAudio': 'Ses',
'examples.previewLabel': 'Önizleme',
'ds.surfaceLabel': 'Yüzey',
'ds.surfaceWeb': 'Web',
'ds.surfaceImage': 'Image',
'ds.surfaceVideo': 'Video',
'ds.surfaceAudio': 'Ses',
'ds.searchPlaceholder': 'Tasarım sistemleri ara…',
'ds.emptyNoMatch': 'Hiçbir tasarım sistemi aramanızla örtüşmedi.',
'ds.badgeDefault': 'VARSAYILAN',
'ds.preview': 'Önizleme',
'ds.previewTitle': 'Tasarım sistemini önizle',
'ds.categoryAll': 'Tümü',
'ds.categoryUncategorized': 'Kategorilendirilmemiş',
'ds.showcase': 'Tanıtım',
'ds.tokens': 'Tokenler',
'ds.specToggle': 'DESIGN.md',
'ds.specLoading': 'DESIGN.md yükleniyor…',
'avatar.title': 'Hesap & ayarlar',
'avatar.localCli': 'Yerel CLI',
'avatar.anthropicApi': 'Anthropic API',
'avatar.useLocal': 'Yerel CLI’ı kullan',
'avatar.useApi': 'API · BYOK kullan',
'avatar.codeAgent': 'Kod ajanı',
'avatar.rescan': 'PATH’ı yeniden tara',
'avatar.settings': 'Ayarlar',
'avatar.backToProjects': 'Projelere dön',
'avatar.metaActive': 'aktif',
'avatar.metaOffline': 'çevrim dışı',
'avatar.metaSelected': 'seçildi',
'avatar.noAgentSelected': 'ajan seçilmedi',
'avatar.modelSection': 'Model',
'avatar.modelLabel': 'Model',
'avatar.reasoningLabel': 'Akıl yürütme',
'avatar.customSuffix': '(özel)',
'project.backToProjects': 'Projelere dön',
'project.metaFreeform': 'serbest stil',
'project.resizeChatPanel': 'Sohbet panelini yeniden boyutlandır',
'chat.tabChat': 'Sohbet',
'chat.tabComments': 'Yorumlar',
'chat.commentsSoon': 'Yorumlar — yakında',
'chat.comments.attached': 'Attached to chat',
'chat.comments.emptyAttached': 'No comments attached.',
'chat.comments.saved': 'Saved comments',
'chat.comments.emptySaved': 'No saved comments.',
'chat.comments.add': 'Add',
'chat.comments.addAll': 'Add all',
'chat.comments.remove': 'Remove',
'chat.comments.placeholder': 'Comment on this element…',
'chat.comments.addSend': 'Add & send',
'chat.comments.updateSend': 'Update & send',
'chat.comments.removeAttachment': 'Remove comment attachment',
'chat.comments.removeAttachmentAria': 'Remove comment attachment for {name}',
'chat.conversationsTitle': 'Konuşmalar',
'chat.conversationsAria': 'Konuşma geçmişi',
'chat.newConversation': 'Yeni konuşma',
'chat.newConversationsTitle': 'Yeni Konuşma',
'chat.conversationsHeading': 'Konuşmalar',
'chat.new': 'Yeni',
'chat.emptyConversations': 'Henüz konuşma yok.',
'chat.deleteConversation': 'Konuşmayı sil',
'chat.deleteConversationConfirm':
'"{title}"’ı sil? Bu mesajları silecektir.',
'chat.untitledConversation': 'Başlıksız konuşma',
'chat.startTitle': 'Bir konuşma başlat',
'chat.startHint':
'Görsel referans için görsel sürükleyin veya yapıştırın, veya bu projeden bir dosya iliştirmek için @ yazın. Veya bu başlatıcılardan birini deneyin:',
'chat.fillInputTitle': 'İstemi doldurmak için tıklayın',
'chat.jumpToLatest': 'En son mesaja atla',
'chat.scrollToLatest': 'En son mesaja kaydır',
'chat.you': 'Sen',
'chat.openFile': '{name}’ı aç',
'chat.composerPlaceholder':
'İstediğiniz tasarımı açıklayın — görsel yapıştırın veya sürükleyin, veya bir dosyayı @’leyin…',
'chat.composerHint':
'Görselleri göndermek · yapıştırmak için ⌘/Ctrl + Enter · dosyaları referans almak için @',
'chat.cliSettingsTitle': 'CLI & model ayarları',
'chat.cliSettingsAria': 'CLI ve model ayarlarını aç',
'chat.attachTitle': 'Dosyaları iliştirin (veya yapıştırın / sürükleyin)',
'chat.attachAria': 'Dosyaları iliştirin',
'chat.importTitle': 'Kaynakları içe aktar (yakında)',
'chat.importLabel': 'İçe aktar',
'chat.importComingSoon': 'Yakında',
'chat.importSoon': 'Yakında',
'chat.importFig': 'Bir .fig dosyası yükleyin',
'chat.importGitHub': 'GitHub bağla',
'chat.importWeb': 'Bir web elementi',
'chat.importFolder': 'Kod klasörünü bağlantıla',
'chat.importSkills': 'Yetenekler ve tasarım sistemleri',
'chat.importProject': 'Reference another project',
'chat.linkedFolderRemoveAria': 'Bağlantılı klasörü kaldır {path}',
'chat.linkedFolderNotFound': 'Klasör mevcut değil',
'chat.linkedFolderAlready': 'Bu klasör zaten bağlantılı',
'chat.linkedFolderPickError': 'Klasör seçici açılamadı',
'chat.send': 'Gönder',
'chat.stop': 'Durdur',
'chat.removeAria': '{name}’ı sil',
'chat.example1Title': 'Editörlük sunum dosyası',
'chat.example1Tag': 'Magazin',
'chat.example1Prompt':
'10 slaytlık bir editoryal pitch deck: seed yatırım turu için fon arayan bir tasarım stüdyosu — İsviçre grid yerleşimi, büyük serif başlıklar ve kalın drop cap’ler, monospace bölüm numaraları, geniş negatif alan kullanımı ve metin yoğun slaytlarla dönüşümlü tam sayfa (full-bleed) fotoğraf slaytları. Kapak, vizyon, pazar, ürün, traction, ekip, talep, iletişim.',
'chat.example2Title': 'SaaS analitik gösterge paneli',
'chat.example2Tag': 'Veri',
'chat.example2Prompt':
'Geliştirici araçlarına yönelik bir SaaS için yoğun bir analitik gösterge paneli: haftadan haftaya değişimleri gösteren KPI şeridi, üst üste yerleştirilmiş iki çizgi grafik (MRR ve aktif çalışma alanları), kullanımın dünya ısı haritası, cohort retention grid’i, en iyi müşteriler liderlik tablosu ve gerçek zamanlı olay akışı. Karanlık tema, tabular monospace rakamlar, sparkline vurguları.',
'chat.example3Title': 'Annual report long-scroll',
'chat.example3Tag': 'Editoryal',
'chat.example3Prompt':
'İklim odaklı bir sivil toplum kuruluşu için etkileşimli bir yıllık rapor: büyük alıntı blokları, veri görselleştirmeleri (yığılmış çubuk grafikler, animasyonlu sayaçlar, proje sahalarını gösteren choropleth harita), fotoğraf geçişleri, bağışçı duvarı ve finalde bir call-to-action içeren uzun kaydırmalı editoryal yerleşim. Modern serif gövde metni, grafik etiketlerinde sans-serif, toprak tonlarında kâğıt paleti.',
'preview.shareMenu': 'Paylaş ▾',
'preview.openInNewTab': 'Yeni sekmede aç',
'preview.exit': '⤓ Çık',
'preview.fullscreen': '⤢ Tam ekran',
'preview.closeTitle': 'Kapat (Esc)',
'preview.loading': '{label} yükleniyor…',
'preview.showSidebar': '{label} göster',
'preview.hideSidebar': '{label} gizle',
'misc.savedTemplate': 'Kaydedilmiş şablonlar',
'misc.primary': 'Birincil',
'misc.designSystem': 'Tasarım sistemi',
'workspace.designFiles': 'Tasarım Dosyaları',
'workspace.closeTab': 'Sekmeyi kapat',
'workspace.deleteFileConfirm': '"{name}"ı proje klasöründen sil?',
'workspace.openFromDesignFiles': 'bir dosya aç',
'workspace.designFilesLink': 'Tasarım Dosyaları',
'workspace.loadingSketch': 'Taslak yükleniyor…',
'designFiles.title': 'Tasarım Dosyaları',
'designFiles.upload': 'Dosyaları yükle',
'designFiles.pasteText': 'Metin dosyası olarak yapıştır',
'designFiles.newSketch': 'Yeni taslak',
'designFiles.empty':
'Burada henüz bir şey yok. Dosyaları aşağı sürükleyin, veya bir taslak oluşturun / metin yapıştırın.',
'designFiles.refresh': 'Yenile',
'designFiles.delete': 'Sil',
'designFiles.searchPlaceholder': 'Dosyaları ara…',
'designFiles.up': 'Yukarı',
'designFiles.back': 'Geri',
'designFiles.crumbs': 'proje',
'designFiles.rowMenu': 'Sıra menüsü',
'designFiles.openInTab': 'Sekmede aç',
'designFiles.download': 'İndir',
'designFiles.downloadSelected': 'Download {n} as ZIP',
'designFiles.clearSelection': 'Clear',
'designFiles.selectAll': 'Select all',
'designFiles.dropTitle': '⤓ Dosyaları buraya sürükleyin',
'designFiles.dropDesc':
'Görseller, dokümanlar, referanslar, veya klasörler — ajan onları bağlam olarak kullanacak.',
'designFiles.upload.title': 'Dosyaları yükleyin',
'designFiles.paste.title': 'Metin dosyası olarak yapıştır',
'designFiles.upload.label': 'Yükle',
'designFiles.paste.label': 'Yapıştır',
'designFiles.previewOpen': 'Aç',
'designFiles.previewClose': 'Önizlemeyi kapat',
'designFiles.modified': 'Düzenlendi: {time} · {size}',
'designFiles.weeksAgo': '{n} hafta önce',
'designFiles.sectionPages': 'Sayfalar',
'designFiles.sectionScripts': 'Betikler',
'designFiles.sectionImages': 'Görseller',
'designFiles.sectionSketches': 'Taslaklar',
'designFiles.sectionOther': 'Diğer',
'designFiles.showMore': '+{n} tane daha göster',
'designFiles.kindHtml': 'HTML sayfası',
'designFiles.kindImage': 'Görsel',
'designFiles.kindSketch': 'Taslak',
'designFiles.kindText': 'Metin',
'designFiles.kindCode': 'Betil',
'designFiles.kindPdf': 'PDF',
'designFiles.kindDocument': 'Doküman',
'designFiles.kindPresentation': 'Sunum',
'designFiles.kindSpreadsheet': 'Elektronik tablo',
'designFiles.kindBinary': 'Binary',
'quickSwitcher.placeholder': 'Dosya aç…',
'quickSwitcher.empty': 'Bu projede dosya yok',
'quickSwitcher.noMatches': 'Eşleşme yok',
'quickSwitcher.navigate': 'gezin',
'quickSwitcher.open': 'aç',
'quickSwitcher.close': 'kapat',
'pasteDialog.title': 'Metin yapıştır',
'pasteDialog.hint': 'Proje klasörüne kaydedilir. Herhangi bir isim seçin.',
'pasteDialog.fileNameLabel': 'Dosya adı',
'pasteDialog.namePlaceholder': 'notes.txt',
'pasteDialog.contentLabel': 'İçerik',
'pasteDialog.contentPlaceholder': 'Herhangi bir şey yapıştırın…',
'pasteDialog.save': 'Kaydet',
'pasteDialog.cancel': 'İptal et',
'sketch.save': 'Taslağı kaydet',
'sketch.cancel': 'İptal et',
'sketch.saving': 'Kaydediliyor…',
'sketch.tooltipDirty': 'Kaydedilmemiş değişiklikler',
'sketch.tooltipClean': 'Kaydedildi',
'fileViewer.empty': 'Görüntülemek için bir dosya seçin.',
'fileViewer.loading': 'Yükleniyor…',
'fileViewer.exportPptx': 'PPTX olarak dışa aktar',
'fileViewer.openInNewTab': 'Yeni sekmede aç',
'fileViewer.copyPath': 'Yolu kopyala',
'fileViewer.copied': 'Kopyalandı!',
'fileViewer.share': 'Paylaş',
'fileViewer.binaryMeta': 'Binary · {size}',
'fileViewer.binaryNote':
'Binary dosyası ({size} bytes). İncelemek için indirin veya diskten seçin.',
'fileViewer.pdfMeta': 'PDF · {size}',
'fileViewer.documentMeta': 'Doküman',
'fileViewer.presentationMeta': 'Sunum',
'fileViewer.spreadsheetMeta': 'Elektronik tablo',
'fileViewer.previewUnavailable': 'Önizleme mevcut değil. İncelemek için indirin veya diskten seçin.',
'fileViewer.download': 'İndir',
'fileViewer.open': 'Aç',
'fileViewer.imageMeta': 'Görsel · {size}',
'fileViewer.reactMeta': 'React bileşeni · {size}',
'fileViewer.sketchMeta': 'Taslak · {size}',
'fileViewer.markdownStreamingMeta': 'Önizleme yayınlanıyor…',
'fileViewer.markdownErrorMeta': 'Önizleme eksik olabilir (oluşturma hatası).',
'fileViewer.markdownStreamingStatus': 'Yayınlanıyor… kısmi markdown gösteriliyor.',
'fileViewer.markdownErrorStatus': 'Oluşturma hatası. Son mevcut içerik gösteriliyor.',
'fileViewer.videoMeta': 'Video · {size}',
'fileViewer.audioMeta': 'Ses · {size}',
'fileViewer.reload': 'Yeniden yükle',
'fileViewer.reloadDisk': 'Diskten yeniden yükle',
'fileViewer.copy': 'Kopyala',
'fileViewer.copyTitle': 'Dosya içeriklerini kopyala',
'fileViewer.saveDisabled': 'Kaydet (salt-okunur görüntüleyici)',
'fileViewer.save': 'Kaydet',
'fileViewer.preview': 'Önizle',
'fileViewer.source': 'Kaynak',
'fileViewer.tweaks': 'Düzenlemeler',
'fileViewer.comment': 'Yorum',
'fileViewer.edit': 'Düzenle',
'fileViewer.draw': 'Çiz',
'manualEdit.layers': "Layers",
'manualEdit.editableCount': "{count} editable",
'manualEdit.title': "Manual editor",
'manualEdit.selectLayer': "Select a layer",
'manualEdit.empty': "Click an element in the preview or choose a layer.",
'manualEdit.noClass': "no class",
'manualEdit.tabsAria': "Manual edit tabs",
'manualEdit.tabContent': "Content",
'manualEdit.tabStyle': "Style",
'manualEdit.tabAttributes': "Attributes",
'manualEdit.tabHtml': "Html",
'manualEdit.tabSource': "Source",
'manualEdit.attributesJson': "Attributes JSON",
'manualEdit.selectedHtml': "Selected element HTML",
'manualEdit.fullSource': "Full artifact source",
'manualEdit.applyContent': "Apply Content",
'manualEdit.applyStyle': "Apply Style",
'manualEdit.applyAttributes': "Apply Attributes",
'manualEdit.applyHtml': "Apply HTML",
'manualEdit.applySource': "Apply Source",
'manualEdit.invalidAttributes': "Invalid attributes JSON.",
'manualEdit.changes': "Changes",
'manualEdit.undo': "Undo",
'manualEdit.redo': "Redo",
'manualEdit.noChanges': "No manual edits yet.",
'manualEdit.imageUrl': "Image URL",
'manualEdit.altText': "Alt text",
'manualEdit.label': "Label",
'manualEdit.text': "Text",
'manualEdit.href': "Href",
'manualEdit.textColor': "Text color",
'manualEdit.background': "Background",
'manualEdit.fontSize': "Font size",
'manualEdit.weight': "Weight",
'manualEdit.align': "Align",
'manualEdit.padding': "Padding",
'manualEdit.margin': "Margin",
'manualEdit.radius': "Radius",
'manualEdit.border': "Border",
'manualEdit.width': "Width",
'manualEdit.minHeight': "Min height",
'fileViewer.zoomOut': 'Yakınlaş',
'fileViewer.zoomIn': 'Uzaklaş',
'fileViewer.resetZoom': 'Uzaklığı sıfırla',
'fileViewer.reloadAria': 'Yeniden yükle',
'fileViewer.previousSlide': 'Önceki slayt',
'fileViewer.nextSlide': 'Sonraki slayt',
'fileViewer.slideNavAria': 'Slayt hareketi',
'fileViewer.present': 'Sun',
'fileViewer.presentInTab': 'Bu pencerede sun',
'fileViewer.presentFullscreen': 'Tam ekran',
'fileViewer.presentNewTab': 'Yeni sekme',
'fileViewer.exitPresentation': 'Sunumdan ayrıl',
'fileViewer.shareLabel': 'Paylaş',
'fileViewer.exportPdf': 'PDF olarak dışa aktar',
'fileViewer.exportPdfAllSlides': 'PDF olarak dışa aktar (tüm slaytlar)',
'fileViewer.exportPptxBusy': 'Güncel sıranın bitmesini bekleyin.',
'fileViewer.exportPptxHint':
'Bu tasarımı PPTX’e dönüştürmesi için ajana bir istek yollayın.',
'fileViewer.exportPptxNa': 'PPTX dışa aktarma burada mevcut değil.',
'fileViewer.exportZip': 'ZIP olarak indir',
'fileViewer.exportHtml': 'Tekil HTML olarak dışa aktar',
'fileViewer.exportMd': 'Markdown olarak dışa aktar',
'fileViewer.exportJsx': 'JSX olarak dışa aktar',
'fileViewer.exportReactHtml': 'Önizlemeyi HTML olarak dışa aktar',
'fileViewer.saveAsTemplate': 'Şablon olarak kaydet…',
'fileViewer.savingTemplate': 'Şablon kaydediliyor…',
'fileViewer.savedTemplate': '"{name}" olarak kaydedildi',
'fileViewer.savedTemplateFail': 'Şablon olarak kaydedilemedi — yeniden deneyin.',
'fileViewer.templateNamePrompt': 'Şablon ismi',
'fileViewer.templateNameDefault': 'Başlıksız şablon',
'fileViewer.templateDescPrompt':
'Kısa açıklama (opsiyonel — bu şablonu kullanışlı yapan ne?)',
'fileViewer.deployToVercel': 'Vercel’e yayınla',
'fileViewer.redeployToVercel': 'Yeniden yayınla',
'fileViewer.deployingToVercel': 'Vercel’e yayınlanıyor…',
'fileViewer.preparingPublicLink': 'Herkese açık bağlantı hazırlanıyor…',
'fileViewer.copyDeployLink': 'Bağlantıyı kopyala',
'fileViewer.deployModalTitle': 'Vercel’e yayınla',
'fileViewer.deployModalSubtitle':
'Kendi hesabınızı kullanarak bu HTML eserini bir Vercel Önizlemesi olarak yayınlayın.',
'fileViewer.vercelToken': 'Vercel tokeni',
'fileViewer.vercelTokenGetLink': 'Vercel tokenini al',
'fileViewer.vercelTokenPlaceholder': 'Vercel tokeninizi yapıştırın',
'fileViewer.vercelTokenReuseHint':
'Kaydedilmiş token kullanılacak. Değiştirmek için yeni bir token girin.',
'fileViewer.vercelTokenRequired': 'Önce bir Vercel tokeni girin ve kaydedin.',
'fileViewer.vercelTeamId': 'Takım ID',
'fileViewer.vercelTeamSlug': 'Takım slug’ı',
'fileViewer.optional': 'Opsiyonel',
'fileViewer.vercelPreviewOnly': 'Yayınlanmış içerikler şimdilik yalnızca önizlenebilir.',
'fileViewer.savingConfig': 'Kaydediliyor…',
'fileViewer.deployConfigSaveFailed': 'Vercel ayarları kaydedilemedi.',
'fileViewer.deployFailed': 'Yayınlama başarısız oldu. Vercel ayarlarınızı kontrol edin ve yeniden deneyin.',
'fileViewer.deployResultLabel': 'Yayınlanmış URL',
'fileViewer.deployLinkPreparingLabel': 'Herkese açık link bekleniyor',
'fileViewer.deployLinkDelayed':
'Siteniz yayınlandı. Vercel hala herkese açık linki hazırlıyor.',
'fileViewer.deployLinkProtectedLabel': 'Vercel koruması açıldı',
'fileViewer.deployLinkProtected':
'Siteniz yayınlandı, Ancak Vercel bu linki önizlemek için doğrulama gerektiriyor. Yayınlama Korumasını devre dışı bırakın veya özel bir domain kullanın.',
'fileViewer.retryLink': 'Şimdi yeniden dene',
'questionForm.submit': 'Gönder',
'questionForm.skip': 'Atla',
'questionForm.locked': 'Cevaplandı',
'conv.switch': 'Konuşmayı değiştir',
'conv.label': 'Konuşma',
'conv.heading': 'Konuşmalar',
'conv.new': '+ Yeni',
'conv.empty': 'Henüz konuşma yok.',
'conv.untitled': 'Başlıksız konuşma',
'conv.renameTooltip': 'Yeniden adlandırmak için çift tıklayın',
'conv.delete': 'Konuşmayı sil',
'conv.deleteConfirm': '"{title}"ı sil? Bu mesajları silecektir.',
'agentPicker.label': 'Ajan',
'agentPicker.modeChoose': 'Yürütme modunu seç',
'agentPicker.localCli': 'Yerel CLI',
'agentPicker.daemonOff': 'Arka plan servisi kapalı',
'agentPicker.byok': 'API · BYOK',
'agentPicker.selectAgent': 'Tespit edilmiş bir kod ajanı CLI’ı seçin',
'agentPicker.noAgents': 'PATH’te ajan yok',
'agentPicker.notInstalled': 'kurulmadı',
'agentPicker.rescan': 'Ajanlar için yerel PATH’ı yeniden tara',
'tool.openInTab': '{name}’ı bir sekmede aç ',
'tool.open': 'aç',
'tool.todos': 'Yapılacaklar',
'tool.write': 'Yaz',
'tool.edit': 'Düzenle',
'tool.read': 'Oku',
'tool.bash': 'Bash',
'tool.glob': 'Glob',
'tool.grep': 'Grep',
'tool.fetch': 'Fetch',
'tool.search': 'Ara',
'tool.lines': '{n} satır',
'tool.changeSingular': 'değişiklik',
'tool.changePlural': 'değişiklikler',
'tool.in': '{path} yolunda',
'tool.hide': 'sakla',
'tool.output': 'çıktı',
'tool.running': 'çalışıyor…',
'tool.error': 'hata',
'tool.done': 'bitti',
'assistant.role': 'Asistan',
'assistant.workingLabel': 'Çalışıyor',
'assistant.doneLabel': 'Bitti',
'assistant.unfinishedLabel': 'Bitmemiş işlerle durduruldu',
'assistant.unfinishedSummary': '{n} görev kaldı',
'assistant.unfinishedMore': '+{n} daha',
'assistant.continueRemaining': 'Kalan görevleri sürdür',
'assistant.outTokens': '{n} çıktı',
'assistant.producedFiles': 'Bu çalışmadan dosyalar',
'assistant.openFile': 'Aç',
'assistant.downloadFile': 'İndir',
'assistant.thinking': 'Düşünüyor',
'assistant.systemReminder': 'Sistem hatırlatıcısı',
'assistant.waitingFirstOutput': 'İlk girdi için bekleniyor',
'assistant.statusBootingAgent': 'Ajan başlatılıyor',
'assistant.statusStarting': 'Başlıyor',
'assistant.statusRequesting': 'İstek gönderiliyor',
'assistant.statusThinking': 'Düşünüyor',
'assistant.statusStreaming': 'Yayınlıyor',
'assistant.slowHint':
'Normalden uzun sürüyor. Form normalde 5–10 saniye içinde görünür — Durabilir ve cümleninizi yeniden gönderebilirsiniz.',
'assistant.verbEditing': 'Düzenliyor',
'assistant.verbWriting': 'Yazıyor',
'assistant.verbReading': 'Okuyor',
'assistant.verbSearching': 'Arıyor',
'assistant.verbRunning': 'Çalıştırıyor',
'assistant.verbTodos': 'Yapılacaklar',
'assistant.verbFetching': 'Getiriyor',
'assistant.verbCalling': 'Çağırıyor',
'qf.answered': 'cevapladı',
'qf.choose': 'Se.…',
'qf.required': 'gerekli',
'qf.lockedSubmitted':
'Cevaplar gönderildi — ajan bunları oturum sonuna kadar kullanıyor.',
'qf.lockedPrev': 'Bu form önceki bir çalışmadan.',
'qf.hint':
"Uyanı seçin. Önemsemediğiniz opsiyonel alanları atlayın — ajan mantıklı varsayılan değerler kullanacak.",
'qf.submitDefault': 'Cevapları gönder',
'qf.submitDisabledTitle': 'Önce gerekli alanları doldurun',
'qf.submitTitle': 'Cevapları gönder',
'qf.cardSelected': 'seçildi',
'qf.cardRefs': 'Referanslar:',
'qf.cardSampleText': 'Pijamalı hasta yağız şoföre çabucak güvendi · 0123',
'sketch.toolSelect': 'Seç (işlem yok)',
'sketch.toolPen': 'Kalem',
'sketch.toolText': 'Metin',
'sketch.toolRect': 'Dörtgen',
'sketch.toolArrow': 'Ok',
'sketch.toolEraser': 'Silgi',
'sketch.color': 'Renk',
'sketch.strokeSize': 'Fırça boyutu',
'sketch.undo': 'Geri al',
'sketch.clear': 'Temizle',
'sketch.close': 'Kapat',
'sketch.textPrompt': 'Metin:',
'pet.title': 'Evcil Dostlar',
'pet.tabBuiltIn': 'Yerleşik',
'pet.tabBuiltInHint': 'Open Design ile gelen seçili dostlar — birini seç ve sahiplen.',
'pet.builtInEmpty': 'Hazır petler şu an kullanılamıyor. Daemon tekrar çevrimiçi olduğunda Topluluk sekmesini yenile.',
'pet.tabCustom': 'Özel',
'pet.tabCustomHint': 'Ad, glif, renk veya sprite\'ını kendin belirle.',
'pet.tabCommunity': 'Topluluk',
'pet.tabCommunityHint': 'Codex\'te yumurtadan çıkan dostlar — sahiplen ya da yapay zekâ ile yeni bir tane üret.',
'pet.tabsAria': 'Evcil dost kaynağı',
'pet.subtitle': 'Çalışma alanının üstünde süzülen küçük bir dost edin.',
'pet.navTitle': 'Evcil Dostlar',
'pet.navHint': 'Sahiplen veya özelleştir',
'pet.adopt': 'Sahiplen',
'pet.adoptedBadge': 'Sahiplenildi',
'pet.adoptCallout': 'Bir evcil dost sahiplen',
'pet.changePet': 'Dostu değiştir',
'pet.wake': 'Uyandır',
'pet.tuck': 'Sakla',
'pet.wakeTitle': 'Dostu uyandır — kayan paneli göster.',
'pet.tuckTitle': 'Dostu sakla — kayan paneli gizle.',
'pet.settingsTitle': 'Evcil dost ayarlarını aç',
'pet.useCustom': 'Kendi dostumu kullan',
'pet.customTitle': 'Kendin oluştur',
'pet.customHint': 'Bir ad, simge ve vurgu rengi seç — panel anında güncellenir.',
'pet.customGreetingPlaceholder': 'Dostundan bir selam…',
'pet.fieldName': 'Ad',
'pet.fieldGlyph': 'Simge',
'pet.fieldGlyphHint': 'Tek bir emoji en iyisidir (ör. 🐝, 🦄, 🐢).',
'pet.fieldGreeting': 'Selamlama',
'pet.fieldAccent': 'Vurgu rengi',
'pet.fieldAccentCustom': 'Özel renk',
'pet.overlayAria': 'Evcil dost yoldaş',
'pet.spriteAria': '{name} — taşımak için sürükle, sohbet için tıkla',
'pet.spriteTitle': '{name} merhaba diyor! Sohbet için tıkla.',
'pet.railAria': 'Evcil dost seçici',
'pet.railTitle': 'Evcil Dostlar',
'pet.railHint': 'Çalışma alanının üstünde süzülecek bir yoldaş seç.',
'pet.railExpand': 'Seçiciyi göster',
'pet.railCollapse': 'Seçiciyi daralt',
'pet.railHide': 'Pet seçiciyi gizle',
'pet.railShow': 'Pet seçiciyi göster',
'pet.railCustomFlavor': 'Kendi dostun — ad, simge ve renk.',
'pet.railCustomize': 'Özelleştir…',
'pet.composerTitle': 'Evcil Dostlar — uyandır, sakla veya seç',
'pet.composerMenuTitle': 'Evcil Dostlar',
'pet.composerMenuHint': 'ipucu: değiştirmek için /pet yaz',
'pet.composerOpenSettings': 'Ayarlardan özelleştir',
'pet.welcomeTeaserTitle': 'Bir evcil dost sahiplen',
'pet.welcomeTeaserBody': 'Çalışma alanın üstünde süzülen küçük bir yoldaş.',
'pet.welcomeTeaserCta': 'Birini seç',
'pet.imageUpload': 'Sprite yükle',
'pet.imageReplace': 'Sprite değiştir',
'pet.imageRemove': 'Emoji kullan',
'pet.imageHintIdle': 'PNG, JPG, WebP, GIF veya SVG. Spritesheet? Yatay bir şerit yükle ve frame sayısını ayarla.',
'pet.imageHintActive': 'Sprite gösteriliyor. Frame sayısını > 1 yaparak yatay spritesheeti hareket ettir.',
'pet.fieldFrames': 'Frame',
'pet.fieldFramesHint': '1 = statik. > 1 = yatay spritesheet.',
'pet.fieldFps': 'Hız (fps)',
'pet.fieldFpsHint': 'Frame değişim hızı.',
'pet.atlasImport': 'Codex sprite\'ı içe aktar',
'pet.atlasImportTitle': 'hatch-pet 8x9 / 192x208 atlasını (PNG veya WebP) içe aktarın.',
'pet.atlasPickerTitle': 'Bir animasyon satırı seçin',
'pet.atlasPickerHint': 'Codex evcilleri 9 animasyon satırı ile gelir. Varsayılan olarak tüm atlası saklarız; böylece evcil hayvan üzerine gelmede, sürükleme yönünde ve uzun boşta kalmada satır değiştirir. Tek bir döngüye de sabitleyebilirsiniz.',
'pet.atlasCancel': 'Atlası bırak',
'pet.atlasAdopt': 'Bu satıra sabitle',
'pet.atlasAdoptFull': 'Tüm atlası kullan (animasyonlu)',
'pet.atlasAdoptFullTitle': 'Tüm satırları koruyun; böylece evcil hayvan üzerine gelmeye, sürükleme yönüne ve uzun boşta kalmaya tepki verir.',
'pet.atlasAdoptRowTitle': 'Yalnızca vurgulanan satırı tek döngülü bir şerite kesin.',
'pet.atlasActiveHint': 'Animasyonlu atlas etkin — evcil hayvan etkileşiminize (üzerine gelme, sürükleme, boşta kalma) göre bir satır seçer.',
'pet.atlasRow.idle': 'Boşta',
'pet.atlasRow.running-right': 'Sağa koş',
'pet.atlasRow.running-left': 'Sola koş',
'pet.atlasRow.waving': 'El sallama',
'pet.atlasRow.jumping': 'Zıplama',
'pet.atlasRow.failed': 'Başarısız',
'pet.atlasRow.waiting': 'Bekleme',
'pet.atlasRow.running': 'Koşu',
'pet.atlasRow.review': 'İnceleme',
'pet.hatchTitle': 'AI ile yeni pet kuluçkala',
'pet.hatchHint': 'Sohbette gömülü hatch-pet skill\'ini kullanarak Codex tarzı bir spritesheet üretin, ardından buraya içe aktarın.',
'pet.hatchConcept': 'Pet konsepti (opsiyonel)',
'pet.hatchConceptPlaceholder': 'örn. rahat bir kazak giyen küçük piksel-art shiba',
'pet.hatchCopy': 'Prompt\'u kopyala',
'pet.hatchCopied': 'Kopyalandı!',
'pet.hatchFoot': 'Skill petinizi kaydettiğinde geri dönüp "Codex sprite\'ı içe aktar" düğmesine basın.',
'pet.slashPopoverAria': 'Slash komutları',
'pet.slashPopoverTitle': 'Komutlar',
'pet.slashPopoverHint': '↑↓ gez · enter seç · esc kapat',
'pet.slashPet': 'Peti aç/kapat, evlat edin veya ayarları aç.',
'pet.slashPetWake': 'Yüzen peti uyandır.',
'pet.slashPetTuck': 'Peti şimdilik sakla.',
'pet.slashHatch': 'hatch-pet skill\'i ile bir Codex peti üret.',
'pet.slashHatchArg': '<konsept>',
'pet.codexTitle': 'Yeni kuluçkalananlar',
'pet.codexSubtitle': 'hatch-pet skill\'inin paketlediği petler tek tıkla evlat edinmek için burada görünür.',
'pet.codexSubtitleWithDir': 'hatch-pet paketleri için {dir} taranıyor.',
'pet.codexEmpty': 'Henüz kuluçkalanan pet yok. Sohbette /hatch yazarak bir tane üretin.',
'pet.codexLoading': 'Kuluçkalanan petler aranıyor…',
'pet.codexRefresh': 'Yenile',
'pet.codexAdopt': 'Evlat edin',
'pet.codexAdopting': 'Evlat ediniyor…',
'pet.communitySync': 'Topluluk petlerini indir',
'pet.communitySyncing': 'İndiriliyor…',
'pet.communitySyncTitle': 'Codex Pet Share + j20 Hatchery üzerindeki en yeni petleri ~/.codex/pets/ altına eşitle.',
'pet.communitySyncDone': '{wrote} yeni pet eşitlendi (toplam {total}).',
'pet.communitySyncFailed': 'Eşitleme başarısız: {error}',
'pet.codexBundled': 'Yerleşik',
'pet.codexBundledTitle': 'Open Design ile birlikte gelir — indirme gerekmez.',
'settings.notifications': 'Bildirimler',
'settings.notificationsHint': 'Görev tamamlandığında ses ve masaüstü bildirimi',
'settings.notifyCompletionSound': 'Tamamlanma sesi',
'settings.notifyCompletionSoundHint': 'Bir tur sona erdiğinde çalar. Varsayılan olarak kapalı.',
'settings.notifySuccessSound': 'Başarı sesi',
'settings.notifyFailureSound': 'Hata sesi',
'settings.notifyDesktop': 'Masaüstü bildirimi',
'settings.notifyDesktopHint': 'Pencere etkin değilken gönderilir.',
'settings.notifyDesktopBlocked': 'Tarayıcı bildirimleri engelledi. Site ayarlarından izin verin.',
'settings.notifyDesktopUnsupported': 'Bu ortamda masaüstü bildirimleri kullanılamıyor.',
'settings.notifyTest': 'Test gönder',
'settings.notifyTestSent': 'Test bildirimi gönderildi. Banner görünmezse tarayıcı ve sistem bildirim ayarlarını kontrol edin.',
'settings.notifyTestFailed': 'Bildirim çağrısı başarısız oldu. Tarayıcı ve sistem bildirim ayarlarını kontrol edin.',
'settings.notifySoundDing': 'Çın',
'settings.notifySoundChime': 'Çıngırak',
'settings.notifySoundTwoToneUp': 'Yükselen iki ton',
'settings.notifySoundPluck': 'Tıngırtı',
'settings.notifySoundBuzz': 'Vızıltı',
'settings.notifySoundTwoToneDown': 'Alçalan iki ton',
'settings.notifySoundThud': 'Boğuk vuruş',
'settings.library': 'Beceriler ve tasarım sistemleri',
'settings.libraryHint': 'İçerik kitaplığınıza göz atın, önizleyin ve açıp kapatın',
'settings.librarySkills': 'Beceriler',
'settings.libraryDesignSystems': 'Tasarım sistemleri',
'settings.librarySearch': 'Ara...',
'settings.libraryAll': 'Tümü',
'settings.libraryPreview': 'Önizleme',
'settings.libraryPreviewClose': 'Kapat',
'settings.libraryLoading': 'Yükleniyor...',
'settings.libraryNoResults': 'Aramanızla eşleşen öğe bulunamadı.',
'settings.libraryEnabled': 'Etkin',
'settings.libraryDisabled': 'Devre dışı',
'settings.libraryToggleLabel': 'Değiştir',
'notify.successTitle': 'Görev tamamlandı',
'notify.failureTitle': 'Görev başarısız oldu',
'notify.successBody': 'Bir tur tamamlandı.',
'notify.failureBody': 'Görev bir hata ile sona erdi.',
};
+984
View File
@@ -0,0 +1,984 @@
import type { Dict } from '../types';
export const uk: Dict = {
'common.cancel': 'Скасувати',
'common.save': 'Зберегти',
'common.close': 'Закрити',
'common.delete': 'Видалити',
'common.rename': 'Перейменувати',
'common.preview': 'Переглянути',
'common.share': 'Поділитися',
'common.search': 'Пошук',
'common.searchEllipsis': 'Пошук…',
'common.loading': 'Завантаження…',
'common.all': 'Все',
'common.none': 'Жодного',
'common.default': 'За замовчуванням',
'common.installed': 'встановлено',
'common.notInstalled': 'не встановлено',
'common.active': 'активно',
'common.offline': 'вимкнено',
'common.selected': 'вибрано',
'common.create': 'Створити',
'common.openPreview': 'Відкрити попередній перегляд',
'common.exitFullscreen': 'Вийти з повноекранного режиму',
'common.fullscreen': 'Повноекранний режим',
'common.openInNewTab': 'Відкрити в новій вкладці',
'common.exportPdf': 'Експортувати як PDF',
'common.exportZip': 'Завантажити як .zip',
'common.exportHtml': 'Експортувати як HTML автономно',
'common.justNow': 'щойно',
'common.minutesAgo': '{n}хв тому',
'common.hoursAgo': '{n}г тому',
'common.daysAgo': '{n}дн тому',
'common.now': 'тепер',
'common.minutesShort': '{n}хв',
'common.hoursShort': '{n}г',
'common.daysShort': '{n}дн',
'common.untitled': 'Без назви',
'app.brand': 'Open Design',
'app.brandPill': 'Попередній перегляд',
'app.brandSubtitle': 'від Nexu Labs',
'app.welcomeLoading': 'Завантаження робочого простору…',
'settings.welcomeKicker': 'Ласкаво просимо',
'settings.welcomeTitle': 'Налаштування Open Design',
'settings.welcomeSubtitle':
'Виберіть, як ви хочете запускати генерацію. Ви можете змінити це в будь-який час за допомогою кнопки Налаштування в верхній панелі.',
'settings.kicker': 'Налаштування',
'settings.title': 'Виконання та модель',
'settings.subtitle': 'Виберіть локальний CLI або BYOK. Ваш API-ключ зберігається лише в цьому браузері.',
'settings.modeAria': 'Режим виконання',
'settings.protocolAria': 'Протокол API',
'settings.modeDaemon': 'Локальний CLI',
'settings.modeDaemonHelp': 'Запуск через CLI кодового агента на вашому комп\'ютері',
'settings.modeDaemonOffline': 'Фоновий процес не запущений',
'settings.modeDaemonOfflineMeta': 'Фоновий процес офлайн',
'settings.modeDaemonInstalledMeta': '{count} встановлено',
'settings.modeApi': 'API-провайдер',
'settings.modeApiMeta': 'BYOK',
'settings.codeAgent': 'Кодовий агент',
'settings.codeAgentHint':
'Виявляється за допомогою сканування вашого PATH. Виберіть CLI, через який мають проходити генерації.',
'settings.rescan': '↻ Переканувати',
'settings.rescanTitle': 'Повторно сканувати PATH',
'settings.rescanRunning': 'Сканування...',
'settings.rescanSuccess': 'Сканування завершено. Доступно: {count}.',
'settings.rescanFailed':
'Сканування не вдалося. Перевірте фоновий процес і спробуйте ще раз.',
'settings.noAgentsDetected':
'Агентів ще не виявлено. Встановіть один з: Claude Code, Codex, Devin for Terminal, Gemini CLI, OpenCode, Cursor Agent, Qwen або GitHub Copilot CLI, а потім натисніть Переканувати.',
'settings.apiSection': 'Anthropic API',
'settings.quickFillProvider': 'Швидко заповнити провайдера',
'settings.customProvider': 'Власний провайдер',
'settings.apiKey': 'API-ключ',
'settings.showKey': 'Показати ключ',
'settings.hideKey': 'Приховати ключ',
'settings.show': 'Показати',
'settings.hide': 'Приховати',
'settings.model': 'Модель',
'settings.suggestedModelsHint':
'Це рекомендовані моделі для цього протоколу. Ваш провайдер може підтримувати інші моделі.',
'settings.baseUrl': 'Базовий URL',
'settings.baseUrlInvalid': 'Введіть дійсний публічний URL з http:// або https://. Localhost дозволено; IP приватних мереж блокуються.',
'settings.azureDeploymentModel': 'Назва розгортання',
'settings.azureDeploymentModelHint':
'Для Azure OpenAI це поле використовується як назва розгортання в /openai/deployments/<model>. Введіть назву розгортання, створену в Azure.',
'settings.apiVersion': 'Версія API',
'settings.maxTokens': 'Макс. токенів (необов\'язково)',
'settings.maxTokensHint':
'Обмеження на довжину відповіді. Кожна модель має налаштовану за замовчуванням (показано в заповнювачі); залиште поле порожнім, щоб використовувати її, або введіть число, щоб переопрацювати.',
'settings.apiHint': 'Запити надсилаються через локальний проксі daemon до вказаного Base URL. Ключ зберігається лише в цьому браузері й надсилається із запитами до провайдера.',
'settings.skipForNow': 'Пропустити зараз',
'settings.getStarted': 'Почати',
'settings.envConfigure': 'Налаштування режиму виконання',
'settings.localCli': 'Локальний CLI',
'settings.anthropicApi': 'Anthropic API',
'settings.noAgentSelected': 'агент не вибран',
'settings.language': 'Мова',
'settings.languageHint': 'Перемкніть мову інтерфейсу. Зберігається в цьому браузері.',
'settings.appearance': 'Зовнішній вигляд',
'settings.appearanceHint': 'Виберіть світлу, темну тему або дотримуйтеся системного параметра.',
'settings.themeSystem': 'Системна',
'settings.themeLight': 'Світла',
'settings.themeDark': 'Темна',
'settings.modelPicker': 'Модель',
'settings.reasoningPicker': 'Інтенсивність міркувань',
'settings.modelPickerHint':
'Отримується з CLI, коли він виявляє команду `models`. «За замовчуванням» залишає вибір конфігурації CLI; «Власна…» дозволяє ввести будь-яке ID моделі, яке приймає CLI.',
'settings.cliEnvTitle': 'CLI config locations',
'settings.cliEnvHint':
'Set non-secret config directories for packaged app runs and agent detection.',
'settings.cliEnvClaudeConfigDir': 'Claude Code config dir',
'settings.cliEnvCodexHome': 'Codex home',
'settings.modelCustom': 'Власна (введіть нижче)…',
'settings.modelCustomLabel': 'Власне ID моделі',
'settings.modelCustomPlaceholder': 'напр. anthropic/claude-sonnet-4-6',
'settings.mediaProviders': 'Медіа-провайдери',
'settings.mediaProvidersHint':
'API-ключі для генерації зображень, відео та аудіо. Зберігаються локально та синхронізуються з локальним фоновим процесом.',
'settings.mediaProviderApiKey': 'API-ключ',
'settings.mediaProviderBaseUrl': 'Базовий URL',
'settings.mediaProviderConfigured': 'Налаштовано',
'settings.mediaProviderUnset': 'Не встановлено',
'settings.mediaProviderClear': 'Очистити',
'settings.mediaProviderPlaceholder': 'Вставте API-ключ',
'settings.mediaProviderBaseUrlPlaceholder': 'Переопрацювати базовий URL за замовчуванням',
'settings.about': 'Про програму',
'settings.aboutHint': 'Деталі версії та виконання',
'settings.appVersion': 'Версія',
'settings.appChannel': 'Канал',
'settings.appRuntime': 'Середовище виконання',
'settings.appPlatform': 'Платформа',
'settings.appArchitecture': 'Архітектура',
'settings.runtimePackaged': 'Упакований додаток',
'settings.runtimeDevelopment': 'Розробка',
'settings.versionUnavailable': 'Деталі версії недоступні, поки фоновий процес перебуває в офлайні.',
'entry.tabDesigns': 'Дизайни',
'entry.tabExamples': 'Приклади',
'entry.tabDesignSystems': 'Системи дизайну',
'entry.tabConnectors': 'Конектори',
'entry.openSettingsTitle': 'Налаштування',
'entry.openSettingsAria': 'Відкрити налаштування',
'entry.resizeAria': 'Змінити розмір бічної панелі',
'entry.loadingWorkspace': 'Завантаження робочого простору…',
'entry.tabImageTemplates': 'Шаблони зображень',
'entry.tabVideoTemplates': 'Шаблони відеороликів',
'promptTemplates.searchPlaceholder': 'Пошук шаблонів…',
'promptTemplates.countLabel': '{n} результатів',
'promptTemplates.allSources': 'Усі джерела',
'promptTemplates.sourceFilterAria': 'Фільтрувати за джерелом',
'promptTemplates.emptyImage': 'Шаблонів підказок для зображень ще не встановлено.',
'promptTemplates.emptyVideo': 'Шаблонів підказок для відео ще не встановлено.',
'promptTemplates.emptyNoMatch': 'Немає шаблонів, що відповідають вашому пошуку.',
'promptTemplates.attributionFooter': 'Адаптовано з публічних бібліотек підказок. Кожна картка посилається на автора.',
'promptTemplates.openPreviewTitle': 'Відкрити підказку та попередній перегляд',
'promptTemplates.sourcePrefix': 'Джерело:',
'promptTemplates.fetchError': 'Не вдалося завантажити текст цього шаблону.',
'promptTemplates.promptLabel': 'Текст підказки',
'promptTemplates.copyPrompt': 'Копіювати підказку',
'promptTemplates.copyDone': 'Скопійовано!',
'promptTemplates.modelHint': 'Рекомендована модель: {model}',
'promptTemplates.openSource': 'Переглянути оригінал',
'promptTemplates.openFullscreen': 'Відкрити попередній перегляд у повноекранному режимі',
'promptTemplates.closeFullscreen': 'Закрити попередній перегляд у повноекранному режимі',
'promptTemplates.retry': 'Повторити',
'connectors.title': 'Конектори',
'connectors.subtitle': 'Локальні та майбутні джерела даних, які можуть живити live-артефакти.',
'connectors.account': 'Обліковий запис',
'connectors.noAccount': 'Не підключено',
'connectors.tools': 'Інструменти',
'connectors.connect': 'Підключити',
'connectors.disconnect': 'Відключити',
'connectors.configure': 'Налаштувати',
'connectors.unavailable': 'Недоступно',
'connectors.phaseStubTitle': 'API конекторів зʼявляться у фазі 3; це поверхня попереднього перегляду.',
'connectors.statusAvailable': 'Доступно',
'connectors.statusConnected': 'Підключено',
'connectors.statusError': 'Помилка',
'connectors.statusDisabled': 'Вимкнено',
'connectors.gateTitle': 'Налаштуйте API-ключ Composio',
'connectors.gateBody': 'Для конекторів потрібен API-ключ Composio. Додайте його в Налаштуваннях, щоб розблокувати доступні інтеграції.',
'connectors.gateAction': 'Відкрити налаштування',
'connectors.aboutLabel': 'Про',
'connectors.detailsLabel': 'Деталі',
'connectors.statusLabel': 'Статус',
'connectors.categoryLabel': 'Категорія',
'connectors.providerLabel': 'Провайдер',
'connectors.toolsSection': 'Інструменти',
'connectors.toolsLoading': 'Завантаження інструментів…',
'connectors.noToolsAvailable': 'Інструментів ще немає. Підключіться, щоб дізнатися, що надає ця інтеграція.',
'connectors.openDetailsAria': 'Відкрити деталі {name}',
'connectors.toolsBadgeNone': 'Немає інструментів',
'connectors.toolsBadgeOne': '{n} інструмент',
'connectors.toolsBadgeMany': '{n} інструментів',
'connectors.searchPlaceholder': 'Пошук конекторів…',
'connectors.searchAriaLabel': 'Пошук конекторів за назвою, провайдером або інструментом',
'connectors.searchClear': 'Очистити пошук',
'connectors.emptyNoMatchTitle': 'Немає конекторів для “{query}”',
'connectors.emptyNoMatchBody': 'Спробуйте інше ключове слово або очистіть пошук, щоб переглянути весь каталог.',
'connectors.emptyNoMatchAction': 'Очистити пошук',
'newproj.tabPrototype': 'Прототип',
'newproj.tabLiveArtifact': 'Live-артефакт',
'newproj.tabDeck': 'Презентація',
'newproj.tabTemplate': 'З шаблону',
'newproj.tabOther': 'Інше',
'newproj.titlePrototype': 'Новий прототип',
'newproj.titleLiveArtifact': 'Новий live-артефакт',
'newproj.titleDeck': 'Нова презентація',
'newproj.titleTemplate': 'Почати з шаблону',
'newproj.titleImage': 'Нове зображення',
'newproj.titleVideo': 'Новий відеоролик',
'newproj.titleAudio': 'Новий звуковий файл',
'newproj.titleOther': 'Новий проект',
'newproj.namePlaceholder': 'Назва проекту',
'newproj.fidelityLabel': 'Деталізація',
'newproj.fidelityWireframe': 'Каркас інтерфейсу',
'newproj.fidelityHigh': 'Висока деталізація',
'newproj.toggleSpeakerNotes': 'Використовувати нотатки доповідача',
'newproj.toggleSpeakerNotesHint': 'Менше тексту на слайдах — основні моменти зберігаються в нотатках.',
'newproj.toggleAnimations': 'Включити анімації',
'newproj.toggleAnimationsHint':
'Додати рух (вхід, наведення, переходи) поверх шаблону.',
'newproj.templateLabel': 'Шаблон',
'newproj.noTemplatesTitle': 'Шаблони ще не створені',
'newproj.noTemplatesBody':
'Відкрийте будь-який проект, а потім за допомогою меню Поділитися всередині переглядача файлів перетворіть його на шаблон. Шаблони з\'являтимуться тут.',
'newproj.savedTemplate': 'Збережений шаблон',
'newproj.fileSingular': 'файл',
'newproj.filePlural': 'файли',
'newproj.create': 'Створити',
'newproj.createLiveArtifact': 'Створити live-артефакт',
'newproj.createFromTemplate': 'Створити з шаблону',
'newproj.createDisabledTitle':
'Спочатку збережіть проект як шаблон (меню Поділитися всередині будь-якого проекту).',
'newproj.importClaudeZip': 'Імпортувати Claude Design ZIP',
'newproj.importClaudeZipTitle': 'Імпортувати експорт Claude Design .zip',
'newproj.importingClaudeZip': 'Імпортування…',
'newproj.privacyFooter': 'За замовчуванням лише ви можете переглянути свій проект.',
'newproj.designSystem': 'Система дизайну',
'newproj.dsNoneFreeform': 'Без — власний варіант',
'newproj.dsNoneSubtitleEmpty': 'Без системних токенів, виберіть свою палітру',
'newproj.dsNoneSubtitleSelected': 'Пропустити системні токени. Агент вибирає свою палітру.',
'newproj.dsCategoryFallback': 'Система дизайну',
'newproj.dsSearch': 'Пошук систем дизайну…',
'newproj.dsModeAria': 'Режим вибору',
'newproj.dsModeSingle': 'Одна',
'newproj.dsModeMulti': 'Кілька',
'newproj.dsNoneTitle': 'Без — власний варіант',
'newproj.dsNoneSub': 'Пропустити системні токени. Агент вибирає свою палітру.',
'newproj.dsEmpty': 'Системи дизайну, що відповідають "{query}", не знайдені.',
'newproj.dsFootSingular': 'є лише натхненням.',
'newproj.dsFootPlural': 'є лише натхненням.',
'newproj.dsFootClear': 'Очистити',
'newproj.dsBadgeDefault': 'ТИПОВА',
'newproj.dsPrimaryFallback': 'Основна',
'newproj.surfaceImage': 'Зображення',
'newproj.surfaceVideo': 'Відеоролик',
'newproj.surfaceAudio': 'Аудіо',
'newproj.modelLabel': 'Модель',
'newproj.aspectLabel': 'Пропорція',
'newproj.imageStyleLabel': 'Примітки до стилю',
'newproj.imageStylePlaceholder': 'Редакційне фото, м\'яке денне світло, приглушена палітра',
'newproj.videoLengthLabel': 'Тривалість',
'newproj.videoLengthSeconds': '{n}с',
'newproj.audioKindLabel': 'Тип аудіо',
'newproj.audioKindMusic': 'Музика',
'newproj.audioKindSpeech': 'Мовлення / TTS',
'newproj.audioKindSfx': 'Звукові ефекти',
'newproj.audioDurationLabel': 'Тривалість',
'newproj.audioDurationSeconds': '{n}с',
'newproj.voiceLabel': 'Голос',
'newproj.voicePlaceholder': 'ID голосу провайдера, необов\'язково',
'newproj.promptTemplateLabel': 'Шаблон для посилання',
'newproj.promptTemplateNoneTitle': 'Жоден — напишіть власний',
'newproj.promptTemplateNoneSub': 'Пропустити галерею, описати власний брифінг',
'newproj.promptTemplateRefSub': 'Шаблон для посилання',
'newproj.promptTemplateSearch': 'Пошук шаблонів…',
'newproj.promptTemplateEmpty': 'Для цієї поверхні ще не встановлено жодних шаблонів.',
'newproj.promptTemplateBodyLabel': 'Підказка (ви можете налаштувати)',
'newproj.promptTemplateOptimizeHint':
'Редагуйте що завгодно — ваші зміни переносяться в брифінг агента.',
'newproj.promptTemplateBodyEmpty':
'Порожній текст — агент не отримає посилання на шаблон.',
'newproj.connectorsLabel': 'Конектори',
'newproj.connectorsHint': 'Надайте агенту доступ до підключених джерел даних для цього live-артефакту.',
'newproj.connectorsEmptyTitle': 'Поки що немає підключених конекторів',
'newproj.connectorsEmptyBody': 'Підключіть джерело даних у вкладці Конектори, а потім поверніться, щоб додати його до цього артефакту.',
'newproj.connectorsEmptyCta': 'Перейти до Конекторів',
'newproj.connectorsLoading': 'Завантаження конекторів…',
'newproj.connectorsCountOne': '{n} конектор',
'newproj.connectorsCountMany': '{n} конекторів',
'newproj.connectorsManage': 'Керувати конекторами',
'designs.subRecent': 'Нещодавні',
'designs.subYours': 'Ваші дизайни',
'designs.filterAria': 'Фільтрувати проекти',
'designs.searchPlaceholder': 'Пошук…',
'designs.emptyNoProjects': 'Проектів ще немає. Створіть один зліва.',
'designs.emptyNoMatch': 'Проектів, що відповідають пошуку, не знайдено.',
'designs.deleteTitle': 'Видалити проект',
'designs.deleteConfirm': 'Видалити "{name}"?',
'designs.cardFreeform': 'власний варіант',
'designs.status.notStarted': 'Не розпочато',
'designs.status.queued': 'У черзі',
'designs.status.running': 'Виконується',
'designs.status.awaitingInput': 'Чекає підтвердження',
'designs.status.succeeded': 'Завершено',
'designs.status.failed': 'Помилка',
'designs.status.canceled': 'Скасовано',
'designs.viewToggleAria': 'Режим перегляду',
'designs.viewGrid': 'Вигляд сітки',
'designs.viewKanban': 'Вигляд дошки',
'designs.kanbanEmptyColumn': 'Немає дизайнів',
'designs.deleteAria': 'Видалити проект {name}',
'designs.badgeLive': 'Live',
'designs.liveArtifactBadgesAria': 'Мітки live-артефакту',
'designs.liveCount': '{n} live-артефактів',
'designs.statusLive': 'Live',
'designs.statusArchived': 'Архівовано',
'designs.statusError': 'Помилка',
'designs.statusRefreshing': 'Оновлення',
'designs.statusRefreshFailed': 'Оновлення не вдалося',
'designs.statusRefreshed': 'Оновлено',
'examples.typeLabel': 'Тип',
'examples.surfaceLabel': 'Приклади',
'examples.surfaceWeb': 'Веб',
'examples.surfaceImage': 'Зображення',
'examples.surfaceVideo': 'Відеоролик',
'examples.surfaceAudio': 'Аудіо',
'examples.scenarioLabel': 'Кейс використання',
'examples.modeAll': 'Все',
'examples.modePrototypeDesktop': 'Прототипи · Комп\'ютер',
'examples.modePrototypeMobile': 'Прототипи · Мобільний',
'examples.modeDeck': 'Слайди',
'examples.modeDocument': 'Документи та шаблони',
'examples.modeOrbit': 'Orbit',
'examples.scenarioGeneral': 'Загальне',
'examples.scenarioEngineering': 'Інженерія',
'examples.scenarioProduct': 'Продукт',
'examples.scenarioDesign': 'Дизайн',
'examples.scenarioMarketing': 'Маркетинг',
'examples.scenarioSales': 'Продажі',
'examples.scenarioFinance': 'Фінанси',
'examples.scenarioHr': 'HR',
'examples.scenarioOperations': 'Операції',
'examples.scenarioSupport': 'Підтримка',
'examples.scenarioLegal': 'Юридичні послуги',
'examples.scenarioEducation': 'Освіта',
'examples.scenarioPersonal': 'Особисте',
'examples.searchPlaceholder': 'Пошук прикладів…',
'examples.searchAria': 'Пошук прикладів за назвою',
'examples.emptyNoSkills': 'Навички недоступні. Чи запущений фоновий процес?',
'examples.emptyNoMatch': 'Приклади, що відповідають цим фільтрам, не знайдені.',
'examples.openPreview': '⤢ Відкрити попередній перегляд',
'examples.loadingPreview': 'Завантаження попереднього перегляду…',
'examples.hoverPreview': 'Наведіть мишею для попереднього перегляду',
'examples.usePrompt': 'Використовувати цю підказку',
'examples.previewModalTitle': 'Відкрити повний попередній перегляд (модальне вікно)',
'examples.shareTitle': 'Поділитися цим прикладом',
'examples.shareLoadFirst': 'Спочатку наведіть мишею, щоб завантажити попередній перегляд',
'examples.shareMenu': 'Поділитися ▾',
'examples.exportPdfAllSlides': 'Експортувати як PDF (усі слайди)',
'examples.exportPptxLocked': 'Експортувати як PPTX… (спочатку відкрийте шаблон)',
'examples.tagSlideDeck': 'Презентація',
'examples.tagTemplate': 'Шаблон',
'examples.tagDesignSystem': 'Система дизайну',
'examples.tagMobilePrototype': 'Мобільний прототип',
'examples.tagDesktopPrototype': 'Прототип комп\'ютера',
'examples.tagImage': 'Зображення',
'examples.tagVideo': 'Відеоролик',
'examples.tagAudio': 'Аудіо',
'examples.previewLabel': 'Попередній перегляд',
'ds.surfaceLabel': 'Приклади',
'ds.surfaceWeb': 'Веб',
'ds.surfaceImage': 'Зображення',
'ds.surfaceVideo': 'Відеоролик',
'ds.surfaceAudio': 'Аудіо',
'ds.searchPlaceholder': 'Пошук систем дизайну…',
'ds.emptyNoMatch': 'Системи дизайну, що відповідають пошуку, не знайдені.',
'ds.badgeDefault': 'ТИПОВА',
'ds.preview': 'Попередній перегляд',
'ds.previewTitle': 'Попередній перегляд системи дизайну',
'ds.categoryAll': 'Все',
'ds.categoryUncategorized': 'Без категорії',
'ds.showcase': 'Витрина',
'ds.tokens': 'Токени',
'ds.specToggle': 'DESIGN.md',
'ds.specLoading': 'Завантаження DESIGN.md…',
'avatar.title': 'Обліковий запис та налаштування',
'avatar.localCli': 'Локальний CLI',
'avatar.anthropicApi': 'Anthropic API',
'avatar.useLocal': 'Використовувати локальний CLI',
'avatar.useApi': 'Використовувати API · BYOK',
'avatar.codeAgent': 'Кодовий агент',
'avatar.rescan': 'Переканувати PATH',
'avatar.settings': 'Налаштування',
'avatar.backToProjects': 'Назад до проектів',
'avatar.metaActive': 'активно',
'avatar.metaOffline': 'вимкнено',
'avatar.metaSelected': 'вибрано',
'avatar.noAgentSelected': 'агент не вибран',
'avatar.modelSection': 'Модель',
'avatar.modelLabel': 'Модель',
'avatar.reasoningLabel': 'Міркування',
'avatar.customSuffix': '(власна)',
'project.backToProjects': 'Назад до проектів',
'project.metaFreeform': 'вільна форма',
'project.resizeChatPanel': 'Змінити розмір панелі чату',
'chat.tabChat': 'Чат',
'chat.tabComments': 'Коментарі',
'chat.commentsSoon': 'Коментарі — скоро',
'chat.comments.attached': 'Прикріплено до чату',
'chat.comments.emptyAttached': 'Коментарів не прикріплено.',
'chat.comments.saved': 'Збережені коментарі',
'chat.comments.emptySaved': 'Немає збережених коментарів.',
'chat.comments.add': 'Додати',
'chat.comments.addAll': 'Додати все',
'chat.comments.remove': 'Видалити',
'chat.comments.placeholder': 'Коментар до цього елемента…',
'chat.comments.addSend': 'Додати та надіслати',
'chat.comments.updateSend': 'Оновити та надіслати',
'chat.comments.removeAttachment': 'Видалити прикріплений коментар',
'chat.comments.removeAttachmentAria': 'Видалити прикріплений коментар для {name}',
'chat.conversationsTitle': 'Розмови',
'chat.conversationsAria': 'Історія розмов',
'chat.newConversation': 'Нова розмова',
'chat.newConversationsTitle': 'Нова розмова',
'chat.conversationsHeading': 'Розмови',
'chat.new': 'Нова',
'chat.emptyConversations': 'Розмов ще немає.',
'chat.deleteConversation': 'Видалити розмову',
'chat.deleteConversationConfirm':
'Видалити "{title}"? Це видалить усі її повідомлення.',
'chat.untitledConversation': 'Розмова без назви',
'chat.startTitle': 'Почніть розмову',
'chat.startHint':
'Перенесіть або вставте зображення для візуального посилання, або введіть @, щоб прикріпити файл з цього проекту. Або спробуйте один з цих стартерів:',
'chat.fillInputTitle': 'Натисніть, щоб заповнити введення',
'chat.jumpToLatest': 'Перейти до останнього',
'chat.scrollToLatest': 'Прокрутити до останнього',
'chat.you': 'Ви',
'chat.openFile': 'Відкрити {name}',
'chat.composerPlaceholder':
'Опишіть дизайн, який ви хочете — вставте або перенесіть зображення, або скористайтеся @ для посилання на файл…',
'chat.composerHint':
'⌘/Ctrl + Enter для надіслання · вставляння зображень · @ для посилання на файли',
'chat.cliSettingsTitle': 'Налаштування CLI та моделі',
'chat.cliSettingsAria': 'Відкрити налаштування CLI та моделі',
'chat.attachTitle': 'Прикріпити файли (або вставити / перенести)',
'chat.attachAria': 'Прикріпити файли',
'chat.importTitle': 'Імпортувати джерела (скоро)',
'chat.importLabel': 'Імпортувати',
'chat.importComingSoon': 'Скоро',
'chat.importSoon': 'Скоро',
'chat.importFig': 'Завантажити файл .fig',
'chat.importGitHub': 'Підключити GitHub',
'chat.importWeb': 'Захопити веб-елемент',
'chat.importFolder': 'Пов\'язати папку коду',
'chat.importSkills': 'Навички та системи дизайну',
'chat.importProject': 'Посилання на інший проект',
'chat.linkedFolderRemoveAria': 'Видалити пов\'язану папку {path}',
'chat.linkedFolderNotFound': 'Папка не існує',
'chat.linkedFolderAlready': 'Ця папка вже пов\'язана',
'chat.linkedFolderPickError': 'Не вдалося відкрити вибір папки',
'chat.send': 'Надіслати',
'chat.stop': 'Зупинити',
'chat.removeAria': 'Видалити {name}',
'chat.example1Title': 'Редакційна піч-дека',
'chat.example1Tag': 'Журнал',
'chat.example1Prompt':
' 10-слайдова редакційна презентація для студії дизайну, що залучає стартовий раунд — макет швейцарської сітки, великі серифні заголовки з сміливими літерницями, моноширокі номери розділів, щедрий негативний простір та повнорозмірні фотослайди, чергуючися з текстозасадженими. Обкладинка, бачення, ринок, продукт, результати, команда, пропозиція, контакти.',
'chat.example2Title': 'SaaS аналітична панель',
'chat.example2Tag': 'Дані',
'chat.example2Prompt':
'Щільна аналітична панель для SaaS з інструментами розробника — смуга KPI з дельтами від тижня до тижня, два нашаровані графіки (MRR та активні робочі простори), світова теплова карта використання, сітка утримання когорти, лідерборд найпопулярніших клієнтів та стрічка подій реального часу. Темна тема, таблична моноширока цифра, акценти спарклайна.',
'chat.example3Title': 'Довгий скрол річного звіту',
'chat.example3Tag': 'Редакційне',
'chat.example3Prompt':
'Інтерактивний річний звіт для екологічної організації, що не шукає прибутку — довгий скрол редакційного макета, що змішує великі блоки цитат, візуалізацію даних (накопичені бари, анімовані лічильники, хорографічна карта місць проектів), перерви за фотографіями, стіна донорів та остаточний клич. Сучасний шрифт з засічками, безсерифні ярлики графіків, землиста палітра паперу.',
'preview.shareMenu': 'Поділитися ▾',
'preview.openInNewTab': 'Відкрити в новій вкладці',
'preview.exit': '⤓ Вихід',
'preview.fullscreen': '⤢ Повноекранний режим',
'preview.closeTitle': 'Закрити (Esc)',
'preview.loading': 'Завантаження {label}…',
'preview.showSidebar': 'Показати {label}',
'preview.hideSidebar': 'Приховати {label}',
'misc.savedTemplate': 'Збережений шаблон',
'misc.primary': 'Основна',
'misc.designSystem': 'Система дизайну',
'workspace.designFiles': 'Файли дизайну',
'workspace.focusMode': 'Focus workspace',
'workspace.showChat': 'Show chat',
'workspace.closeTab': 'Закрити вкладку',
'workspace.deleteFileConfirm': 'Видалити "{name}" з папки проекту?',
'workspace.openFromDesignFiles': 'Відкрити файл з',
'workspace.designFilesLink': 'Файли дизайну',
'workspace.loadingSketch': 'Завантаження ескізу…',
'designFiles.title': 'Файли дизайну',
'designFiles.upload': 'Завантажити файли',
'designFiles.pasteText': 'Вставити як текстовий файл',
'designFiles.newSketch': 'Новий ескіз',
'designFiles.empty':
'Тут нічого немає. Перенесіть файли нижче, або створіть ескіз / вставте текст.',
'designFiles.refresh': 'Оновити',
'designFiles.delete': 'Видалити',
'designFiles.searchPlaceholder': 'Пошук файлів…',
'designFiles.up': 'Вгору',
'designFiles.back': 'Назад',
'designFiles.crumbs': 'проект',
'designFiles.rowMenu': 'Меню рядка',
'designFiles.openInTab': 'Відкрити на вкладці',
'designFiles.download': 'Завантажити',
'designFiles.downloadSelected': 'Download {n} as ZIP',
'designFiles.clearSelection': 'Clear',
'designFiles.selectAll': 'Select all',
'designFiles.dropTitle': '⤓ Перенесіть файли сюди',
'designFiles.dropDesc':
'Зображення, документи, посилання або папки — агент використовуватиме їх як контекст.',
'designFiles.upload.title': 'Завантажити файли',
'designFiles.paste.title': 'Вставити текст як файл',
'designFiles.upload.label': 'Завантажити',
'designFiles.paste.label': 'Вставити',
'designFiles.previewOpen': 'Відкрити',
'designFiles.previewClose': 'Закрити попередній перегляд',
'designFiles.modified': 'Змінено {time} · {size}',
'designFiles.weeksAgo': '{n}тижнів назад',
'designFiles.sectionPages': 'Сторінки',
'designFiles.sectionLiveArtifacts': 'Live-артефакти',
'designFiles.sectionScripts': 'Скрипти',
'designFiles.sectionImages': 'Зображення',
'designFiles.sectionSketches': 'Ескізи',
'designFiles.sectionOther': 'Інше',
'designFiles.showMore': 'Показати ще +{n}',
'designFiles.kindHtml': 'Веб-сторінка',
'designFiles.kindLiveArtifact': 'Live-артефакт',
'designFiles.kindImage': 'Зображення',
'designFiles.kindSketch': 'Ескіз',
'designFiles.kindText': 'Текст',
'designFiles.kindCode': 'Скрипт',
'designFiles.kindPdf': 'PDF',
'designFiles.kindDocument': 'Документ',
'designFiles.kindPresentation': 'Презентація',
'designFiles.kindSpreadsheet': 'Електронна таблиця',
'designFiles.kindBinary': 'Двійковий',
'liveArtifact.refresh.button': 'Оновити',
'liveArtifact.refresh.buttonTitle': 'Оновити live-артефакт',
'liveArtifact.refresh.loadingTitle': 'Оновлення live-артефакту…',
'liveArtifact.refresh.noSourceTitle': 'Джерело оновлення недоступне',
'liveArtifact.refresh.running': 'Оновлення…',
'liveArtifact.refresh.runningMessage': 'Агент оновлює цей live-артефакт.',
'liveArtifact.refresh.runningAction': 'Переглянути виконання',
'liveArtifact.refresh.successOne': 'Оновлення завершено. Дані оновлено.',
'liveArtifact.refresh.successMany': 'Оновлення завершено. Дані оновлено.',
'liveArtifact.refresh.successAction': 'Переглянути зміни',
'liveArtifact.refresh.previousFailure': 'Попереднє оновлення не вдалося: {message}',
'liveArtifact.refresh.failureAction': 'Переглянути деталі',
'liveArtifact.refresh.networkFailure': 'Не вдалося звʼязатися з локальним фоновим процесом.',
'liveArtifact.refresh.genericFailure': 'Не вдалося оновити live-артефакт.',
'liveArtifact.refresh.statusNever': 'Ще не оновлювався',
'liveArtifact.refresh.statusReady': 'Готовий до оновлення',
'liveArtifact.refresh.statusSucceeded': 'Оновлено',
'liveArtifact.refresh.statusFailed': 'Оновлення не вдалося',
'quickSwitcher.placeholder': 'Відкрити файл…',
'quickSwitcher.empty': 'У цьому проєкті немає файлів',
'quickSwitcher.noMatches': 'Немає збігів',
'quickSwitcher.navigate': 'навігація',
'quickSwitcher.open': 'відкрити',
'quickSwitcher.close': 'закрити',
'pasteDialog.title': 'Вставити текст',
'pasteDialog.hint': 'Збережено в папці проекту. Виберіть будь-яку назву.',
'pasteDialog.fileNameLabel': 'Назва файлу',
'pasteDialog.namePlaceholder': 'notes.txt',
'pasteDialog.contentLabel': 'Вміст',
'pasteDialog.contentPlaceholder': 'Вставте що завгодно…',
'pasteDialog.save': 'Зберегти',
'pasteDialog.cancel': 'Скасувати',
'sketch.save': 'Зберегти ескіз',
'sketch.cancel': 'Скасувати',
'sketch.saving': 'Збереження…',
'sketch.tooltipDirty': 'Незбережені зміни',
'sketch.tooltipClean': 'Збережено',
'fileViewer.empty': 'Виберіть файл для перегляду.',
'fileViewer.loading': 'Завантаження…',
'fileViewer.exportPptx': 'Експортувати як PPTX',
'fileViewer.openInNewTab': 'Відкрити в новій вкладці',
'fileViewer.copyPath': 'Копіювати шлях',
'fileViewer.copied': 'Скопійовано!',
'fileViewer.share': 'Поділитися',
'fileViewer.binaryMeta': 'Двійковий · {size}',
'fileViewer.binaryNote':
'Двійковий файл ({size} байтів). Завантажте або відкрийте з диска для інспекції.',
'fileViewer.pdfMeta': 'PDF · {size}',
'fileViewer.documentMeta': 'Документ',
'fileViewer.presentationMeta': 'Презентація',
'fileViewer.spreadsheetMeta': 'Електронна таблиця',
'fileViewer.previewUnavailable': 'Попередній перегляд недоступний. Завантажте або відкрийте файл для інспекції.',
'fileViewer.download': 'Завантажити',
'fileViewer.open': 'Відкрити',
'fileViewer.imageMeta': 'Зображення · {size}',
'fileViewer.reactMeta': 'React компонент · {size}',
'fileViewer.sketchMeta': 'Ескіз · {size}',
'fileViewer.markdownStreamingMeta': 'Попередній перегляд потоку…',
'fileViewer.markdownErrorMeta': 'Попередній перегляд може бути неповним (помилка генерації).',
'fileViewer.markdownStreamingStatus': 'Потоком… показано часткове повідомлення.',
'fileViewer.markdownErrorStatus': 'Помилка генерації. Показано останній доступний вміст.',
'fileViewer.videoMeta': 'Відеоролик · {size}',
'fileViewer.audioMeta': 'Аудіо · {size}',
'fileViewer.reload': 'Перезавантажити',
'fileViewer.reloadDisk': 'Перезавантажити з диска',
'fileViewer.copy': 'Копіювати',
'fileViewer.copyTitle': 'Копіювати вміст файлу',
'fileViewer.saveDisabled': 'Зберегти (переглядач лише для читання)',
'fileViewer.save': 'Зберегти',
'fileViewer.preview': 'Попередній перегляд',
'fileViewer.source': 'Джерело',
'fileViewer.tweaks': 'Настройки',
'fileViewer.comment': 'Коментар',
'fileViewer.edit': 'Редагувати',
'fileViewer.draw': 'Малювати',
'manualEdit.layers': "Layers",
'manualEdit.editableCount': "{count} editable",
'manualEdit.title': "Manual editor",
'manualEdit.selectLayer': "Select a layer",
'manualEdit.empty': "Click an element in the preview or choose a layer.",
'manualEdit.noClass': "no class",
'manualEdit.tabsAria': "Manual edit tabs",
'manualEdit.tabContent': "Content",
'manualEdit.tabStyle': "Style",
'manualEdit.tabAttributes': "Attributes",
'manualEdit.tabHtml': "Html",
'manualEdit.tabSource': "Source",
'manualEdit.attributesJson': "Attributes JSON",
'manualEdit.selectedHtml': "Selected element HTML",
'manualEdit.fullSource': "Full artifact source",
'manualEdit.applyContent': "Apply Content",
'manualEdit.applyStyle': "Apply Style",
'manualEdit.applyAttributes': "Apply Attributes",
'manualEdit.applyHtml': "Apply HTML",
'manualEdit.applySource': "Apply Source",
'manualEdit.invalidAttributes': "Invalid attributes JSON.",
'manualEdit.changes': "Changes",
'manualEdit.undo': "Undo",
'manualEdit.redo': "Redo",
'manualEdit.noChanges': "No manual edits yet.",
'manualEdit.imageUrl': "Image URL",
'manualEdit.altText': "Alt text",
'manualEdit.label': "Label",
'manualEdit.text': "Text",
'manualEdit.href': "Href",
'manualEdit.textColor': "Text color",
'manualEdit.background': "Background",
'manualEdit.fontSize': "Font size",
'manualEdit.weight': "Weight",
'manualEdit.align': "Align",
'manualEdit.padding': "Padding",
'manualEdit.margin': "Margin",
'manualEdit.radius': "Radius",
'manualEdit.border': "Border",
'manualEdit.width': "Width",
'manualEdit.minHeight': "Min height",
'fileViewer.zoomOut': 'Зменшити',
'fileViewer.zoomIn': 'Збільшити',
'fileViewer.resetZoom': 'Скинути масштаб',
'fileViewer.reloadAria': 'Перезавантажити',
'fileViewer.previousSlide': 'Попередній слайд',
'fileViewer.nextSlide': 'Наступний слайд',
'fileViewer.slideNavAria': 'Навігація по слайдах',
'fileViewer.present': 'Презентувати',
'fileViewer.presentInTab': 'На цій вкладці',
'fileViewer.presentFullscreen': 'Повноекранний режим',
'fileViewer.presentNewTab': 'Нова вкладка',
'fileViewer.exitPresentation': 'Вийти з режиму презентації',
'fileViewer.shareLabel': 'Поділитися',
'fileViewer.exportPdf': 'Експортувати як PDF',
'fileViewer.exportPdfAllSlides': 'Експортувати як PDF (усі слайди)',
'fileViewer.exportPptxBusy': 'Чекайте, поки поточна черга завершиться.',
'fileViewer.exportPptxHint':
'Надішліть запит агентові для перетворення цього дизайну на PPTX.',
'fileViewer.exportPptxNa': 'Експорт PPTX недоступний тут.',
'fileViewer.exportZip': 'Завантажити як .zip',
'fileViewer.exportHtml': 'Експортувати як самостійний HTML',
'fileViewer.exportMd': 'Експортувати як Markdown',
'fileViewer.exportJsx': 'Експортувати як JSX',
'fileViewer.exportReactHtml': 'Експортувати попередній перегляд як HTML',
'fileViewer.saveAsTemplate': 'Зберегти як шаблон…',
'fileViewer.savingTemplate': 'Збереження шаблону…',
'fileViewer.savedTemplate': 'Збережено як "{name}"',
'fileViewer.savedTemplateFail': 'Не вдалося зберегти шаблон — спробуйте ще раз.',
'fileViewer.templateNamePrompt': 'Назва шаблону',
'fileViewer.templateNameDefault': 'Шаблон без назви',
'fileViewer.templateDescPrompt':
'Короткий опис (необов\'язково — що робить цей шаблон корисним?)',
'fileViewer.deployToVercel': 'Розгорнути на Vercel',
'fileViewer.redeployToVercel': 'Повторно розгорнути',
'fileViewer.deployingToVercel': 'Розгортання на Vercel…',
'fileViewer.preparingPublicLink': 'Підготовка публічного посилання…',
'fileViewer.copyDeployLink': 'Копіювати посилання',
'fileViewer.deployModalTitle': 'Розгорнути на Vercel',
'fileViewer.deployModalSubtitle':
'Розгорніть цей HTML артефакт як Vercel Preview за допомогою свого облікового запису.',
'fileViewer.vercelToken': 'Токен Vercel',
'fileViewer.vercelTokenGetLink': 'Отримати токен Vercel',
'fileViewer.vercelTokenPlaceholder': 'Вставте свій токен Vercel',
'fileViewer.vercelTokenReuseHint':
'Збережений токен буде використаний. Введіть новий токен, щоб замінити його.',
'fileViewer.vercelTokenRequired': 'Спочатку введіть та збережіть токен Vercel.',
'fileViewer.vercelTeamId': 'ID команди',
'fileViewer.vercelTeamSlug': 'Слаг команди',
'fileViewer.optional': 'Необов\'язково',
'fileViewer.vercelPreviewOnly': 'Розгортання наразі лише для попереднього перегляду.',
'fileViewer.savingConfig': 'Збереження…',
'fileViewer.deployConfigSaveFailed': 'Не вдалося зберегти налаштування Vercel.',
'fileViewer.deployFailed': 'Розгортання не вдалося. Перевірте налаштування Vercel та спробуйте ще раз.',
'fileViewer.deployResultLabel': 'URL розгортання',
'fileViewer.deployLinkPreparingLabel': 'Публічне посилання очікує',
'fileViewer.deployLinkDelayed':
'Ваш сайт розгорнуто. Vercel все ще готує публічне посилання.',
'fileViewer.deployLinkProtectedLabel': 'Увімкнено захист Vercel',
'fileViewer.deployLinkProtected':
'Ваш сайт розгорнуто, але Vercel вимагає автентифікацію для цього посилання попереднього перегляду. Вимкніть захист розгортання або використовуйте користувацький домен.',
'fileViewer.retryLink': 'Повторити зараз',
'questionForm.submit': 'Надіслати',
'questionForm.skip': 'Пропустити',
'questionForm.locked': 'Відповідь дано',
'conv.switch': 'Перемкнути розмову',
'conv.label': 'Розмова',
'conv.heading': 'Розмови',
'conv.new': '+ Нова',
'conv.empty': 'Розмов ще немає.',
'conv.untitled': 'Розмова без назви',
'conv.renameTooltip': 'Двічі натисніть, щоб перейменувати',
'conv.delete': 'Видалити розмову',
'conv.deleteConfirm': 'Видалити "{title}"? Це видалить усі її повідомлення.',
'agentPicker.label': 'Агент',
'agentPicker.modeChoose': 'Виберіть режим виконання',
'agentPicker.localCli': 'Локальний CLI',
'agentPicker.daemonOff': 'фоновий процес вимкнений',
'agentPicker.byok': 'API · BYOK',
'agentPicker.selectAgent': 'Виберіть виявлений CLI кодового агента',
'agentPicker.noAgents': 'немає агентів на PATH',
'agentPicker.notInstalled': 'не встановлено',
'agentPicker.rescan': 'Повторно сканувати локальний PATH для агентів',
'tool.openInTab': 'Відкрити {name} на вкладці',
'tool.open': 'відкрити',
'tool.todos': 'Завдання',
'tool.write': 'Написати',
'tool.edit': 'Редагувати',
'tool.read': 'Читати',
'tool.bash': 'Bash',
'tool.glob': 'Glob',
'tool.grep': 'Grep',
'tool.fetch': 'Отримати',
'tool.search': 'Пошук',
'tool.lines': '{n} рядків',
'tool.changeSingular': 'змінення',
'tool.changePlural': 'змінення',
'tool.in': 'в {path}',
'tool.hide': 'приховати',
'tool.output': 'вихід',
'tool.running': 'виконується…',
'tool.error': 'помилка',
'tool.done': 'готово',
'assistant.role': 'Асистент',
'assistant.workingLabel': 'Роботи',
'assistant.doneLabel': 'Готово',
'assistant.unfinishedLabel': 'Зупинено з незавершеною роботою',
'assistant.unfinishedSummary': 'залишилось {n} завдання(нь)',
'assistant.unfinishedMore': '+ще {n}',
'assistant.continueRemaining': 'Продовжити залишкові завдання',
'assistant.outTokens': '{n} вихід',
'assistant.producedFiles': 'Файли з цієї черги',
'assistant.openFile': 'Відкрити',
'assistant.downloadFile': 'Завантажити',
'assistant.thinking': 'Мислення',
'assistant.systemReminder': 'Системне нагадування',
'assistant.waitingFirstOutput': 'Очікування першого виходу',
'assistant.statusBootingAgent': 'Завантаження агента',
'assistant.statusStarting': 'Запуск',
'assistant.statusRequesting': 'Надсилання запиту',
'assistant.statusThinking': 'Мислення',
'assistant.statusStreaming': 'Потоком',
'assistant.slowHint':
'Займає більше часу, ніж зазвичай. Форма зазвичай з\'являється за 5–10 с — ви можете зупинити та переформулювати.',
'assistant.verbEditing': 'Редагування',
'assistant.verbWriting': 'Написання',
'assistant.verbReading': 'Читання',
'assistant.verbSearching': 'Пошук',
'assistant.verbRunning': 'Виконання',
'assistant.verbTodos': 'Завдання',
'assistant.verbFetching': 'Отримання',
'assistant.verbCalling': 'Виклик',
'qf.answered': 'відповідь дано',
'qf.choose': 'Виберіть…',
'qf.required': 'обов\'язково',
'qf.lockedSubmitted':
'Відповіді надіслано — агент використовуватиме їх для решти сеансу.',
'qf.lockedPrev': 'Ця форма з попередньої черги.',
'qf.hint':
'Виберіть те, що підходить. Пропустіть необов\'язкові поля, які вас не цікавлять — агент використовуватиме розумні значення за замовчуванням.',
'qf.submitDefault': 'Надіслати відповіді',
'qf.submitDisabledTitle': 'Спочатку заповніть обов\'язкові поля',
'qf.submitTitle': 'Надіслати відповіді',
'qf.cardSelected': 'вибрано',
'qf.cardRefs': 'Посилання:',
'qf.cardSampleText': 'Швидка коричнева лисиця · 0123',
'sketch.toolSelect': 'Виділення (без ефекту)',
'sketch.toolPen': 'Ручка',
'sketch.toolText': 'Текст',
'sketch.toolRect': 'Прямокутник',
'sketch.toolArrow': 'Стрілка',
'sketch.toolEraser': 'Ластик',
'sketch.color': 'Колір',
'sketch.strokeSize': 'Товщина лінії',
'sketch.undo': 'Скасувати',
'sketch.clear': 'Очистити',
'sketch.close': 'Закрити',
'sketch.textPrompt': 'Текст:',
'pet.title': 'Маскоти',
'pet.subtitle': 'Встановити крихітного супутника, який пливе над вашим робочим простором.',
'pet.navTitle': 'Маскоти',
'pet.navHint': 'Встановити або налаштувати',
'pet.tabBuiltIn': 'Вбудовані',
'pet.tabBuiltInHint': 'Кураторські супутники в комплекті з Open Design — виберіть один та встановіть.',
'pet.builtInEmpty': 'Вбудовані маскоти наразі недоступні. Спробуйте оновити вкладку Спільнота, коли фоновий процес перейде в мережу.',
'pet.tabCustom': 'Власна',
'pet.tabCustomHint': 'Створіть свою власну назвою, гліфом, кольором або спрайтом.',
'pet.tabCommunity': 'Спільнота',
'pet.tabCommunityHint': 'Маскоти, створені Codex — встановіть одну або створіть нову.',
'pet.tabsAria': 'Джерело маскота',
'pet.adopt': 'Встановити',
'pet.adoptedBadge': 'Додано',
'pet.adoptCallout': 'Додати помічника',
'pet.changePet': 'Змінити маскота',
'pet.wake': 'Розбудити',
'pet.tuck': 'Сховати',
'pet.wakeTitle': 'Розбудити помічника — показати плаваючу накладку.',
'pet.tuckTitle': 'Сховати помічника — приховати плаваючу накладку.',
'pet.settingsTitle': 'Відкрити налаштування маскота',
'pet.useCustom': 'Використовувати мого маскота',
'pet.customTitle': 'Створіть свою власну',
'pet.customHint': 'Виберіть назву, гліф та акцент — накладка оновлюється в режимі реального часу.',
'pet.customGreetingPlaceholder': 'Привіт від вашої домашної тварини…',
'pet.fieldName': 'Назва',
'pet.fieldGlyph': 'Гліф',
'pet.fieldGlyphHint': 'Один емодзі працює найкраще (напр. 🐝, 🦄, 🐢).',
'pet.fieldGreeting': 'Привіт',
'pet.fieldAccent': 'Колір акценту',
'pet.fieldAccentCustom': 'Власний колір',
'pet.overlayAria': 'Супутник домашної тварини',
'pet.spriteAria': '{name} — перетягніть для переміщення, натисніть для чату',
'pet.spriteTitle': 'Привіт від {name}! Натисніть для чату.',
'pet.railAria': 'Вибір маскота',
'pet.railTitle': 'Маскоти',
'pet.railHint': 'Оберіть компаньйона, що відображатиметься над робочим простором',
'pet.railExpand': 'Показати вибір маскота',
'pet.railCollapse': 'Згорнути вибір маскота',
'pet.railHide': 'Приховати вибір маскота',
'pet.railShow': 'Показати вибір маскота',
'pet.railCustomFlavor': 'Ваша власна — назва, гліф, колір.',
'pet.railCustomize': 'Налаштувати…',
'pet.composerTitle': 'Маскоти — розбудити, Сховати або виберіть одну',
'pet.composerMenuTitle': 'Маскоти',
'pet.composerMenuHint': 'підказка: введіть /pet для перемикання',
'pet.composerOpenSettings': 'Налаштування в параметрах',
'pet.welcomeTeaserTitle': 'Встановити маскота',
'pet.welcomeTeaserBody': 'Крихітний плаваючий супутник, який зависає з вами.',
'pet.welcomeTeaserCta': 'Виберіть один',
'pet.imageUpload': 'Завантажити спрайт',
'pet.imageReplace': 'Замінити спрайт',
'pet.imageRemove': 'Використовувати емодзі',
'pet.imageHintIdle': 'PNG, JPG, WebP, GIF або SVG. Завантаження аркушу? Перенесіть горизонтальну смугу та встановіть кількість кадрів.',
'pet.imageHintActive': 'Показувати ваш спрайт. Встановіть frames > 1, щоб прогулятися по горизонтальному аркушу спрайтів.',
'pet.fieldFrames': 'Кадри',
'pet.fieldFramesHint': '1 = статичне. > 1 = горизонтальний аркуш спрайтів.',
'pet.fieldFps': 'Швидкість (fps)',
'pet.fieldFpsHint': 'Наскільки швидко циклюються кадри.',
'pet.atlasImport': 'Імпортувати спрайт Codex',
'pet.atlasImportTitle': 'Імпортувати атлас hatch-pet 8x9 / 192x208 (PNG або WebP).',
'pet.atlasPickerTitle': 'Виберіть рядок анімації',
'pet.atlasPickerHint': 'Codex маскоти мають 9 рядків анімації. За замовчуванням ми зберігаємо повний атлас, щоб домашна тварина міняла рядки при наведенні, перетягуванні та простої. Ви також можете заморозити його на одному циклі.',
'pet.atlasCancel': 'Відхилити атлас',
'pet.atlasAdopt': 'Заморозити цей рядок',
'pet.atlasAdoptFull': 'Використовувати повний атлас (анімований)',
'pet.atlasAdoptFullTitle': 'Зберігайте кожен рядок, щоб домашна тварина реагувала на наведення, напрям перетягування та довгі простої.',
'pet.atlasAdoptRowTitle': 'Розташуйте тільки виділений рядок у єдину циклічну смугу.',
'pet.atlasActiveHint': 'Активний анімований атлас — домашна тварина вибирає рядок з вашої взаємодії (наведення, перетягування, простій).',
'pet.atlasRow.idle': 'Простій',
'pet.atlasRow.running-right': 'Біг вправо',
'pet.atlasRow.running-left': 'Біг вліво',
'pet.atlasRow.waving': 'Махання',
'pet.atlasRow.jumping': 'Стрибання',
'pet.atlasRow.failed': 'Невдача',
'pet.atlasRow.waiting': 'Очікування',
'pet.atlasRow.running': 'Біг',
'pet.atlasRow.review': 'Огляд',
'pet.hatchTitle': 'Виведіть нову домашну тварину за допомогою AI',
'pet.hatchHint': 'Використовуйте вбудовану навичку hatch-pet у чаті для генерування спрайту у стилі Codex, а потім імпортуйте його сюди.',
'pet.hatchConcept': 'Концепція домашної тварини (необов\'язково)',
'pet.hatchConceptPlaceholder': 'напр. крихітна піксельна собака сиба в затишному светрі',
'pet.hatchCopy': 'Копіювати підказку',
'pet.hatchCopied': 'Скопійовано!',
'pet.hatchFoot': 'Після того, як навичка збереже вашу домашну тварину, повернітеся та виберіть «Імпортувати спрайт Codex».',
'pet.slashPopoverAria': 'Команди скісної риски',
'pet.slashPopoverTitle': 'Команди',
'pet.slashPopoverHint': '↑↓ навігація · enter для вибору · esc для закриття',
'pet.slashPet': 'Перемикання, встановлення або перехід до параметрів домашної тварини.',
'pet.slashPetWake': 'Розбудити накладку плаваючої домашної тварини.',
'pet.slashPetTuck': 'Сховати домашну тварину на цей час.',
'pet.slashHatch': 'Створити домашну тварину Codex через навичку hatch-pet.',
'pet.slashHatchArg': '<concept>',
'pet.codexTitle': 'Недавно виведені',
'pet.codexSubtitle': 'Домашні тварини, упаковані навичкою hatch-pet, з\'являються тут для встановлення одним натисненням.',
'pet.codexSubtitleWithDir': 'Сканування {dir} для домашних тварин, упакованих навичкою hatch-pet.',
'pet.codexEmpty': 'Виведених домашних тварин ще немає. Введіть /hatch у чаті, щоб створити одну.',
'pet.codexLoading': 'Пошук виведених домашних тварин…',
'pet.codexRefresh': 'Оновити',
'pet.codexAdopt': 'Встановити',
'pet.codexAdopting': 'Встановлення…',
'pet.communitySync': 'Завантажити домашних тварин спільноти',
'pet.communitySyncing': 'Завантаження…',
'pet.communitySyncTitle': 'Синхронізуйте останніх домашних тварин від Codex Pet Share + j20 Hatchery до ~/.codex/pets/.',
'pet.communitySyncDone': 'Синхронізовано {wrote} нових домашних тварин ({total} всього).',
'pet.communitySyncFailed': 'Синхронізація не вдалася: {error}',
'pet.codexBundled': 'Упаковано',
'pet.codexBundledTitle': 'Поставляється з Open Design — завантаження не потрібне.',
'settings.notifications': 'Сповіщення',
'settings.notificationsHint': 'Звук та сповіщення робочого столу при завершенні завдання',
'settings.notifyCompletionSound': 'Звук завершення',
'settings.notifyCompletionSoundHint': 'Відтворюється по завершенні черги. За замовчуванням вимкнено.',
'settings.notifySuccessSound': 'Звук успіху',
'settings.notifyFailureSound': 'Звук помилки',
'settings.notifyDesktop': 'Сповіщення робочого столу',
'settings.notifyDesktopHint': 'Надіслано, коли вікно не має фокусу.',
'settings.notifyDesktopBlocked': 'Сповіщення заблоковано браузером. Дозволіть їм у налаштуваннях сайту.',
'settings.notifyDesktopUnsupported': 'Сповіщення робочого столу недоступні в цьому середовищі.',
'settings.notifyTest': 'Надіслати тест',
'settings.notifyTestSent': 'Тестове сповіщення надіслано. Якщо банер не з\'явиться, перевірте налаштування сповіщень браузера та системи.',
'settings.notifyTestFailed': 'Помилка виклику сповіщення. Перевірте налаштування спoвіщень браузера та системи.',
'settings.notifySoundDing': 'Дзвенить',
'settings.notifySoundChime': 'Дзвоник',
'settings.notifySoundTwoToneUp': 'Два тони вгору',
'settings.notifySoundPluck': 'Щипок',
'settings.notifySoundBuzz': 'Гудіння',
'settings.notifySoundTwoToneDown': 'Два тони вниз',
'settings.notifySoundThud': 'Глухий звук',
'settings.library': 'Навички та системи дизайну',
'settings.libraryHint': 'Перегляд, попередній перегляд та керування бібліотекою вмісту',
'settings.librarySkills': 'Навички',
'settings.libraryDesignSystems': 'Системи дизайну',
'settings.librarySearch': 'Пошук...',
'settings.libraryAll': 'Усі',
'settings.libraryPreview': 'Попередній перегляд',
'settings.libraryPreviewClose': 'Закрити',
'settings.libraryLoading': 'Завантаження...',
'settings.libraryNoResults': 'Нічого не знайдено за вашим запитом.',
'settings.libraryEnabled': 'Увімкнено',
'settings.libraryDisabled': 'Вимкнено',
'settings.libraryToggleLabel': 'Перемкнути',
'notify.successTitle': 'Завдання завершено',
'notify.failureTitle': 'Завдання не вдалося',
'notify.successBody': 'Черга завершена.',
'notify.failureBody': 'Завдання завершилось помилкою.',
};
+965
View File
@@ -0,0 +1,965 @@
import type { Dict } from '../types';
export const zhCN: Dict = {
'common.cancel': '取消',
'common.save': '保存',
'common.close': '关闭',
'common.delete': '删除',
'common.rename': '重命名',
'common.preview': '预览',
'common.share': '分享',
'common.search': '搜索',
'common.searchEllipsis': '搜索…',
'common.loading': '加载中…',
'common.all': '全部',
'common.none': '无',
'common.default': '默认',
'common.installed': '已安装',
'common.notInstalled': '未安装',
'common.active': '使用中',
'common.offline': '未运行',
'common.selected': '已选',
'common.create': '创建',
'common.openPreview': '打开预览',
'common.exitFullscreen': '退出全屏',
'common.fullscreen': '全屏',
'common.openInNewTab': '在新标签页中打开',
'common.exportPdf': '导出为 PDF',
'common.exportZip': '下载为 .zip',
'common.exportHtml': '导出为独立 HTML',
'common.justNow': '刚刚',
'common.minutesAgo': '{n} 分钟前',
'common.hoursAgo': '{n} 小时前',
'common.daysAgo': '{n} 天前',
'common.now': '刚刚',
'common.minutesShort': '{n}分',
'common.hoursShort': '{n}时',
'common.daysShort': '{n}天',
'common.untitled': '未命名',
'app.brand': 'Open Design',
'app.brandPill': '研究预览版',
'app.brandSubtitle': '由 Nexu Labs 出品',
'app.welcomeLoading': '正在加载工作区…',
'settings.welcomeKicker': '欢迎',
'settings.welcomeTitle': '初始化 Open Design',
'settings.welcomeSubtitle':
'选择你希望使用的执行方式。后续可以随时从顶部「设置」按钮中修改。',
'settings.kicker': '设置',
'settings.title': '执行模式与模型',
'settings.subtitle': '在本机 CLI 与 BYOK 之间选择。API Key 只保存在当前浏览器中。',
'settings.modeAria': '执行模式',
'settings.protocolAria': 'API 协议',
'settings.modeDaemon': '本机 CLI',
'settings.modeDaemonHelp': '通过本机的代码代理 CLI 执行',
'settings.modeDaemonOffline': '后台守护进程未运行',
'settings.modeDaemonOfflineMeta': '守护进程未运行',
'settings.modeDaemonInstalledMeta': '已安装 {count} 个',
'settings.modeApi': 'API 提供方',
'settings.modeApiMeta': 'BYOK',
'settings.codeAgent': '代码代理',
'settings.codeAgentHint': '通过扫描 PATH 自动检测,选择你希望使用的 CLI。',
'settings.rescan': '↻ 重新扫描',
'settings.rescanTitle': '重新扫描 PATH',
'settings.rescanRunning': '扫描中...',
'settings.rescanSuccess': '扫描完成,{count} 个可用。',
'settings.rescanFailed': '扫描失败,请检查后台守护进程后重试。',
'settings.noAgentsDetected':
'尚未检测到任何代理。请安装 Claude Code、Codex、Gemini CLI、OpenCode、Cursor Agent、Qwen 或 GitHub Copilot CLI 中的一个,然后点击「重新扫描」。',
'settings.apiSection': 'Anthropic API',
'settings.quickFillProvider': '快速填充提供方',
'settings.customProvider': '自定义提供方',
'settings.apiKey': 'API Key',
'settings.showKey': '显示 Key',
'settings.hideKey': '隐藏 Key',
'settings.show': '显示',
'settings.hide': '隐藏',
'settings.model': '模型',
'settings.suggestedModelsHint':
'这些是此协议的建议模型。你的提供方可能支持不同的模型。',
'settings.baseUrl': 'Base URL',
'settings.baseUrlInvalid': '请输入有效的公网 http:// 或 https:// URL。允许 localhost;会阻止私有网络 IP。',
'settings.azureDeploymentModel': '部署名称',
'settings.azureDeploymentModelHint':
'对于 Azure OpenAI,此字段会作为 /openai/deployments/<model> 中的部署名称使用。请填写你在 Azure 中创建的部署名称。',
'settings.apiVersion': 'API 版本',
'settings.maxTokens': '最大 tokens(可选)',
'settings.maxTokensHint':
'响应长度上限。每个 model 有调优过的默认值(在 placeholder 里显示),留空即使用,输入数字则覆盖。',
'settings.apiHint': '请求会通过本机 daemon 代理发送到你设置的 Base URL。Key 只保存在当前浏览器中,并随提供方请求发送。',
'settings.skipForNow': '暂时跳过',
'settings.getStarted': '开始使用',
'settings.envConfigure': '配置执行模式',
'settings.localCli': '本机 CLI',
'settings.anthropicApi': 'Anthropic API',
'settings.noAgentSelected': '尚未选择代理',
'settings.language': '界面语言',
'settings.languageHint': '切换界面语言,设置仅保存在当前浏览器。',
'settings.appearance': '外观',
'settings.appearanceHint': '选择浅色、深色或跟随系统设置。',
'settings.themeSystem': '系统',
'settings.themeLight': '浅色',
'settings.themeDark': '深色',
'settings.modelPicker': '模型',
'settings.reasoningPicker': '推理强度',
'settings.modelPickerHint':
'当 CLI 提供 `models` 命令时会自动拉取。选择「默认」则沿用 CLI 自身的配置;选择「自定义」可手动输入任何 CLI 支持的模型 id。',
'settings.cliEnvTitle': 'CLI 配置位置',
'settings.cliEnvHint':
'为打包版应用运行和 agent 检测设置非敏感配置目录。',
'settings.cliEnvClaudeConfigDir': 'Claude Code 配置目录',
'settings.cliEnvCodexHome': 'Codex home',
'settings.modelCustom': '自定义(在下方填写)…',
'settings.modelCustomLabel': '自定义模型 id',
'settings.modelCustomPlaceholder': '例如 anthropic/claude-sonnet-4-6',
'settings.mediaProviders': '媒体生成提供商',
'settings.mediaProvidersHint': '图片、视频、音频生成的 API key。存于本机并同步到本地守护进程。',
'settings.mediaProviderApiKey': 'API key',
'settings.mediaProviderBaseUrl': 'Base URL',
'settings.mediaProviderConfigured': '已配置',
'settings.mediaProviderUnset': '未配置',
'settings.mediaProviderClear': '清除',
'settings.mediaProviderPlaceholder': '粘贴 API key',
'settings.mediaProviderBaseUrlPlaceholder': '覆盖默认 Base URL',
'settings.about': '关于',
'settings.aboutHint': '版本和运行时详情',
'settings.appVersion': '版本',
'settings.appChannel': '渠道',
'settings.appRuntime': '运行时',
'settings.appPlatform': '平台',
'settings.appArchitecture': '架构',
'settings.runtimePackaged': '已打包应用',
'settings.runtimeDevelopment': '开发环境',
'settings.versionUnavailable': '守护进程离线时无法获取版本详情。',
'entry.tabDesigns': '我的设计',
'entry.tabExamples': '示例',
'entry.tabDesignSystems': '设计体系',
'entry.tabConnectors': '连接器',
'entry.openSettingsTitle': '设置',
'entry.openSettingsAria': '打开设置',
'entry.resizeAria': '调整侧边栏宽度',
'entry.loadingWorkspace': '正在加载工作区…',
'entry.tabImageTemplates': '图片模板',
'entry.tabVideoTemplates': '视频模板',
'promptTemplates.searchPlaceholder': '搜索模板…',
'promptTemplates.countLabel': '{n} 个结果',
'promptTemplates.emptyImage': '还没有安装图片 Prompt 模板。',
'promptTemplates.emptyVideo': '还没有安装视频 Prompt 模板。',
'promptTemplates.emptyNoMatch': '没有匹配的模板。',
'promptTemplates.attributionFooter': '改编自公开 Prompt 库,每张卡片都链接到原作者。',
'promptTemplates.openPreviewTitle': '打开 Prompt 与预览',
'promptTemplates.sourcePrefix': '来源:',
'promptTemplates.fetchError': '无法加载此模板正文。',
'promptTemplates.promptLabel': 'Prompt 正文',
'promptTemplates.copyPrompt': '复制 Prompt',
'promptTemplates.copyDone': '已复制!',
'promptTemplates.modelHint': '建议模型:{model}',
'promptTemplates.openSource': '查看原始来源',
'promptTemplates.openFullscreen': '打开全屏预览',
'promptTemplates.closeFullscreen': '关闭全屏预览',
'promptTemplates.allSources': '所有来源',
'promptTemplates.sourceFilterAria': '按来源筛选',
'promptTemplates.retry': '重试',
'connectors.title': '连接器',
'connectors.subtitle': '可为实时制品提供数据的本地和未来数据源。',
'connectors.account': '账号',
'connectors.noAccount': '未连接',
'connectors.tools': '工具',
'connectors.connect': '连接',
'connectors.disconnect': '断开连接',
'connectors.configure': '配置',
'connectors.unavailable': '不可用',
'connectors.phaseStubTitle': '连接器 API 将在 Phase 3 提供;这里是预览入口。',
'connectors.statusAvailable': '可用',
'connectors.statusConnected': '已连接',
'connectors.statusError': '错误',
'connectors.statusDisabled': '已停用',
'connectors.gateTitle': '请先配置 Composio API 密钥',
'connectors.gateBody': '连接器需要 Composio API 密钥。请在设置中配置后即可启用可用的集成。',
'connectors.gateAction': '打开设置',
'connectors.aboutLabel': '简介',
'connectors.detailsLabel': '详情',
'connectors.statusLabel': '状态',
'connectors.categoryLabel': '类别',
'connectors.providerLabel': '提供方',
'connectors.toolsSection': '工具',
'connectors.toolsLoading': '正在加载工具…',
'connectors.noToolsAvailable': '暂无可用工具,连接后即可发现此集成提供的能力。',
'connectors.openDetailsAria': '查看 {name} 详情',
'connectors.toolsBadgeNone': '暂无工具',
'connectors.toolsBadgeOne': '{n} 个工具',
'connectors.toolsBadgeMany': '{n} 个工具',
'connectors.searchPlaceholder': '搜索连接器…',
'connectors.searchAriaLabel': '按名称、提供方或工具搜索连接器',
'connectors.searchClear': '清除搜索',
'connectors.emptyNoMatchTitle': '没有匹配“{query}”的连接器',
'connectors.emptyNoMatchBody': '换个关键词试试,或清除搜索以浏览完整目录。',
'connectors.emptyNoMatchAction': '清除搜索',
'newproj.tabPrototype': '原型',
'newproj.tabLiveArtifact': '新建实时制品',
'newproj.tabDeck': '幻灯片',
'newproj.tabTemplate': '从模板',
'newproj.tabOther': '其它',
'newproj.titlePrototype': '新建原型',
'newproj.titleLiveArtifact': '新建实时制品',
'newproj.titleDeck': '新建幻灯片',
'newproj.titleTemplate': '从模板开始',
'newproj.titleImage': '新建图片',
'newproj.titleVideo': '新建视频',
'newproj.titleAudio': '新建音频',
'newproj.titleOther': '新建项目',
'newproj.namePlaceholder': '项目名称',
'newproj.fidelityLabel': '精度',
'newproj.fidelityWireframe': '线框图',
'newproj.fidelityHigh': '高保真',
'newproj.toggleSpeakerNotes': '使用演讲备注',
'newproj.toggleSpeakerNotesHint': '减少幻灯片上的文字,要点放到备注中。',
'newproj.toggleAnimations': '加入动效',
'newproj.toggleAnimationsHint': '在模板基础上叠加动效(入场、悬停、过渡)。',
'newproj.templateLabel': '模板',
'newproj.noTemplatesTitle': '还没有模板',
'newproj.noTemplatesBody':
'打开任意项目,在文件查看器内的「分享」菜单将其保存为模板,模板将出现在这里。',
'newproj.savedTemplate': '已保存的模板',
'newproj.fileSingular': '个文件',
'newproj.filePlural': '个文件',
'newproj.create': '创建',
'newproj.createLiveArtifact': '创建实时制品',
'newproj.createFromTemplate': '基于模板创建',
'newproj.createDisabledTitle': '请先在任意项目内通过「分享」菜单将其保存为模板。',
'newproj.importClaudeZip': '导入 Claude Design ZIP',
'newproj.importClaudeZipTitle': '导入 Claude Design 导出的 .zip 文件',
'newproj.importingClaudeZip': '正在导入…',
'newproj.privacyFooter': '默认情况下只有你能看到自己的项目。',
'newproj.designSystem': '设计体系',
'newproj.dsNoneFreeform': '不指定 — 自由发挥',
'newproj.dsNoneSubtitleEmpty': '不使用体系 token,由你决定整体配色',
'newproj.dsNoneSubtitleSelected': '跳过体系 token,由代理自行选择配色。',
'newproj.dsCategoryFallback': '设计体系',
'newproj.dsSearch': '搜索设计体系…',
'newproj.dsModeAria': '选择模式',
'newproj.dsModeSingle': '单选',
'newproj.dsModeMulti': '多选',
'newproj.dsNoneTitle': '不指定 — 自由发挥',
'newproj.dsNoneSub': '跳过体系 token,由代理自行选择配色。',
'newproj.dsEmpty': '没有匹配「{query}」的设计体系。',
'newproj.dsFootSingular': '只作为灵感参考。',
'newproj.dsFootPlural': '只作为灵感参考。',
'newproj.dsFootClear': '清除',
'newproj.dsBadgeDefault': '默认',
'newproj.dsPrimaryFallback': '主体系',
'newproj.surfaceImage': '图片',
'newproj.surfaceVideo': '视频',
'newproj.surfaceAudio': '音频',
'newproj.modelLabel': '模型',
'newproj.aspectLabel': '比例',
'newproj.imageStyleLabel': '风格备注',
'newproj.imageStylePlaceholder': '编辑摄影、柔和日光、低饱和配色',
'newproj.videoLengthLabel': '时长',
'newproj.videoLengthSeconds': '{n} 秒',
'newproj.audioKindLabel': '音频类型',
'newproj.audioKindMusic': '音乐',
'newproj.audioKindSpeech': '配音 / TTS',
'newproj.audioKindSfx': '音效',
'newproj.audioDurationLabel': '时长',
'newproj.audioDurationSeconds': '{n} 秒',
'newproj.voiceLabel': '声音',
'newproj.voicePlaceholder': '提供商 voice id,可选',
'newproj.connectorsLabel': '连接器',
'newproj.connectorsHint': '实时制品可以从这些数据源拉取信息。',
'newproj.connectorsEmptyTitle': '尚未配置连接器',
'newproj.connectorsEmptyBody': '连接一个数据源,让实时制品加载真实数据而非占位内容。',
'newproj.connectorsEmptyCta': '去配置连接器 →',
'newproj.connectorsLoading': '正在加载连接器…',
'newproj.connectorsCountOne': '已连接 {n} 个',
'newproj.connectorsCountMany': '已连接 {n} 个',
'newproj.connectorsManage': '管理',
'newproj.promptTemplateLabel': '参考模板',
'newproj.promptTemplateNoneTitle': '不指定 — 自由发挥',
'newproj.promptTemplateNoneSub': '跳过模板库,自己描述需求',
'newproj.promptTemplateRefSub': '参考模板',
'newproj.promptTemplateSearch': '搜索模板…',
'newproj.promptTemplateEmpty': '当前还没有此类型的模板。',
'newproj.promptTemplateBodyLabel': 'Prompt(可继续优化)',
'newproj.promptTemplateOptimizeHint':
'可以任意编辑 — 修改后的内容会作为 agent 生成时的参考。',
'newproj.promptTemplateBodyEmpty': '正文为空 — agent 不会拿到模板参考。',
'designs.subRecent': '最近',
'designs.subYours': '我的设计',
'designs.filterAria': '筛选项目',
'designs.searchPlaceholder': '搜索…',
'designs.emptyNoProjects': '还没有项目。请在左侧创建一个。',
'designs.emptyNoMatch': '没有匹配的项目。',
'designs.deleteTitle': '删除项目',
'designs.deleteConfirm': '确定删除「{name}」?',
'designs.cardFreeform': '自由设计',
'designs.badgeLive': 'Live',
'designs.liveArtifactBadgesAria': '实时产物标记',
'designs.liveCount': '{n} 个实时',
'designs.statusLive': '实时产物',
'designs.statusArchived': '已归档',
'designs.statusError': '错误',
'designs.statusRefreshing': '刷新中…',
'designs.statusRefreshFailed': '刷新失败',
'designs.statusRefreshed': '已刷新',
'designs.status.notStarted': '未开始',
'designs.status.queued': '等待中',
'designs.status.running': '运行中',
'designs.status.awaitingInput': '等待回复',
'designs.status.succeeded': '已完成',
'designs.status.failed': '失败',
'designs.status.canceled': '已取消',
'designs.viewToggleAria': '视图模式',
'designs.viewGrid': '网格视图',
'designs.viewKanban': '看板视图',
'designs.kanbanEmptyColumn': '暂无设计',
'designs.deleteAria': '删除项目 {name}',
'examples.typeLabel': '类型',
'examples.surfaceLabel': '类型',
'examples.surfaceWeb': '网页',
'examples.surfaceImage': '图片',
'examples.surfaceVideo': '视频',
'examples.surfaceAudio': '音频',
'examples.scenarioLabel': '场景',
'examples.modeAll': '全部',
'examples.modePrototypeDesktop': '原型 · 桌面端',
'examples.modePrototypeMobile': '原型 · 移动端',
'examples.modeDeck': '幻灯片',
'examples.modeDocument': '文档与模板',
'examples.modeOrbit': 'Orbit',
'examples.scenarioGeneral': '通用',
'examples.scenarioEngineering': '工程',
'examples.scenarioProduct': '产品',
'examples.scenarioDesign': '设计',
'examples.scenarioMarketing': '市场',
'examples.scenarioSales': '销售',
'examples.scenarioFinance': '财务',
'examples.scenarioHr': '人力资源',
'examples.scenarioOperations': '运营',
'examples.scenarioSupport': '支持',
'examples.scenarioLegal': '法务',
'examples.scenarioEducation': '教育',
'examples.scenarioPersonal': '个人',
'examples.emptyNoSkills': '没有可用的技能,守护进程是否在运行?',
'examples.searchPlaceholder': '搜索示例…',
'examples.searchAria': '按名称搜索示例',
'examples.emptyNoMatch': '没有匹配当前筛选的示例。',
'examples.openPreview': '⤢ 打开预览',
'examples.loadingPreview': '正在加载预览…',
'examples.hoverPreview': '将鼠标悬停以查看预览',
'examples.usePrompt': '使用此 Prompt',
'examples.previewModalTitle': '在弹窗中查看完整预览',
'examples.shareTitle': '分享此示例',
'examples.shareLoadFirst': '请先悬停以加载预览',
'examples.shareMenu': '分享 ▾',
'examples.exportPdfAllSlides': '导出为 PDF(全部幻灯片)',
'examples.exportPptxLocked': '导出为 PPTX…(请先打开模板)',
'examples.tagSlideDeck': '幻灯片',
'examples.tagTemplate': '模板',
'examples.tagDesignSystem': '设计体系',
'examples.tagMobilePrototype': '移动端原型',
'examples.tagDesktopPrototype': '桌面端原型',
'examples.tagImage': '图片',
'examples.tagVideo': '视频',
'examples.tagAudio': '音频',
'examples.previewLabel': '预览',
'ds.surfaceLabel': '类型',
'ds.surfaceWeb': '网页',
'ds.surfaceImage': '图片',
'ds.surfaceVideo': '视频',
'ds.surfaceAudio': '音频',
'ds.searchPlaceholder': '搜索设计体系…',
'ds.emptyNoMatch': '没有匹配的设计体系。',
'ds.badgeDefault': '默认',
'ds.preview': '预览',
'ds.previewTitle': '预览设计体系',
'ds.categoryAll': '全部',
'ds.categoryUncategorized': '未分类',
'ds.showcase': '展示',
'ds.tokens': 'Token',
'ds.specToggle': 'DESIGN.md',
'ds.specLoading': '正在加载 DESIGN.md…',
'avatar.title': '账户与设置',
'avatar.localCli': '本机 CLI',
'avatar.anthropicApi': 'Anthropic API',
'avatar.useLocal': '使用本机 CLI',
'avatar.useApi': '使用 API · BYOK',
'avatar.codeAgent': '代码代理',
'avatar.rescan': '重新扫描 PATH',
'avatar.settings': '设置',
'avatar.backToProjects': '返回项目列表',
'avatar.metaActive': '使用中',
'avatar.metaOffline': '未运行',
'avatar.metaSelected': '已选',
'avatar.noAgentSelected': '尚未选择代理',
'avatar.modelSection': '模型',
'avatar.modelLabel': '模型',
'avatar.reasoningLabel': '推理',
'avatar.customSuffix': '(自定义)',
'project.backToProjects': '返回项目列表',
'project.metaFreeform': '自由设计',
'project.resizeChatPanel': '调整聊天面板大小',
'chat.tabChat': '对话',
'chat.tabComments': '评论',
'chat.commentsSoon': '评论 — 即将上线',
'chat.comments.attached': 'Attached to chat',
'chat.comments.emptyAttached': 'No comments attached.',
'chat.comments.saved': 'Saved comments',
'chat.comments.emptySaved': 'No saved comments.',
'chat.comments.add': 'Add',
'chat.comments.addAll': 'Add all',
'chat.comments.remove': 'Remove',
'chat.comments.placeholder': 'Comment on this element…',
'chat.comments.addSend': 'Add & send',
'chat.comments.updateSend': 'Update & send',
'chat.comments.removeAttachment': 'Remove comment attachment',
'chat.comments.removeAttachmentAria': 'Remove comment attachment for {name}',
'chat.conversationsTitle': '对话历史',
'chat.conversationsAria': '对话历史',
'chat.newConversation': '新建对话',
'chat.newConversationsTitle': '新建对话',
'chat.conversationsHeading': '对话',
'chat.new': '新建',
'chat.emptyConversations': '还没有对话。',
'chat.deleteConversation': '删除对话',
'chat.deleteConversationConfirm': '确定删除「{title}」?该操作会删除其消息。',
'chat.untitledConversation': '未命名对话',
'chat.startTitle': '开始一个对话',
'chat.startHint':
'可以拖拽或粘贴图片作为视觉参考,或键入 @ 引用本项目中的文件。也可以从下面的示例开始:',
'chat.fillInputTitle': '点击填充到输入框',
'chat.jumpToLatest': '回到最新',
'chat.scrollToLatest': '滚动到最新',
'chat.you': '你',
'chat.openFile': '打开 {name}',
'chat.composerPlaceholder': '描述你想要的设计 — 可粘贴/拖入图片,或用 @ 引用文件…',
'chat.composerHint': '⌘/Ctrl + Enter 发送 · 可粘贴图片 · @ 引用文件',
'chat.cliSettingsTitle': 'CLI 与模型设置',
'chat.cliSettingsAria': '打开 CLI 与模型设置',
'chat.attachTitle': '附加文件(也可以粘贴/拖入)',
'chat.attachAria': '附加文件',
'chat.importTitle': '导入素材(即将上线)',
'chat.importLabel': '导入',
'chat.importComingSoon': '即将上线',
'chat.importSoon': '即将',
'chat.importFig': '上传 .fig 文件',
'chat.importGitHub': '连接 GitHub',
'chat.importWeb': '抓取网页元素',
'chat.importFolder': '关联代码目录',
'chat.importSkills': '技能与设计体系',
'chat.importProject': '引用其它项目',
'chat.linkedFolderRemoveAria': '移除关联文件夹 {path}',
'chat.linkedFolderNotFound': '文件夹不存在',
'chat.linkedFolderAlready': '该文件夹已关联',
'chat.linkedFolderPickError': '无法打开文件夹选择器',
'chat.send': '发送',
'chat.stop': '停止',
'chat.removeAria': '移除 {name}',
'chat.example1Title': '编辑风路演 PPT',
'chat.example1Tag': '杂志',
'chat.example1Prompt':
'为一家正在融种子轮的设计工作室制作 10 张编辑风路演 PPT —— 瑞士网格布局,超大号衬线标题加粗体首字下沉,等宽字体的章节编号,留白充足,整页大图与文字密集页穿插出现。封面、愿景、市场、产品、增长、团队、融资诉求、联系方式。',
'chat.example2Title': 'SaaS 分析仪表盘',
'chat.example2Tag': '数据',
'chat.example2Prompt':
'为一款面向开发者的 SaaS 设计一份信息密度高的分析仪表盘 —— 顶部 KPI 条带(含周环比变化)、两张堆叠折线图(MRR 与活跃工作区)、全球使用热力图、留存矩阵、客户排行榜以及实时事件流。深色主题,等宽数字,迷你图作为点缀。',
'chat.example3Title': '长滚动年度报告',
'chat.example3Tag': '编辑',
'chat.example3Prompt':
'为一家关注气候议题的非营利机构制作互动式年度报告 —— 长滚动编辑式布局,混合大段引言区块、数据可视化(堆叠柱状图、动态计数器、项目地点分布的等值线地图)、摄影分隔页、捐赠者墙,以及最终行动号召。现代衬线正文、无衬线图表标签、大地纸张配色。',
'preview.shareMenu': '分享 ▾',
'preview.openInNewTab': '在新标签页中打开',
'preview.exit': '⤓ 退出',
'preview.fullscreen': '⤢ 全屏',
'preview.closeTitle': '关闭(Esc)',
'preview.loading': '正在加载{label}…',
'preview.showSidebar': '展开{label}',
'preview.hideSidebar': '收起{label}',
'misc.savedTemplate': '已保存的模板',
'misc.primary': '主体系',
'misc.designSystem': '设计体系',
'workspace.designFiles': '设计文件',
'workspace.focusMode': '专注工作区',
'workspace.showChat': '显示聊天',
'workspace.closeTab': '关闭标签页',
'workspace.deleteFileConfirm': '从项目文件夹中删除「{name}」?',
'workspace.openFromDesignFiles': '请从',
'workspace.designFilesLink': '设计文件',
'workspace.loadingSketch': '正在加载草图…',
'designFiles.title': '设计文件',
'designFiles.upload': '上传文件',
'designFiles.pasteText': '粘贴为文本文件',
'designFiles.newSketch': '新建草图',
'designFiles.empty': '这里还没有文件。可以拖拽下方区域,或新建草图、粘贴文本。',
'designFiles.refresh': '刷新',
'designFiles.delete': '删除',
'designFiles.searchPlaceholder': '搜索文件…',
'designFiles.up': '上一级',
'designFiles.back': '返回',
'designFiles.crumbs': '项目',
'designFiles.rowMenu': '行菜单',
'designFiles.openInTab': '在标签页中打开',
'designFiles.download': '下载',
'designFiles.downloadSelected': '下载选中的 {n} 个文件为 ZIP',
'designFiles.clearSelection': '取消选择',
'designFiles.selectAll': '全选',
'designFiles.dropTitle': '⤓ 把文件拖到这里',
'designFiles.dropDesc': '图片、文档、参考资料或文件夹 — 智能体都会用作上下文。',
'designFiles.upload.title': '上传文件',
'designFiles.paste.title': '将文本粘贴为文件',
'designFiles.upload.label': '上传',
'designFiles.paste.label': '粘贴',
'designFiles.previewOpen': '打开',
'designFiles.previewClose': '关闭预览',
'designFiles.modified': '修改于 {time} · {size}',
'designFiles.weeksAgo': '{n} 周前',
'designFiles.sectionPages': '页面',
'designFiles.sectionScripts': '脚本',
'designFiles.sectionImages': '图片',
'designFiles.sectionSketches': '草图',
'designFiles.sectionLiveArtifacts': '实时制品',
'designFiles.sectionOther': '其它',
'designFiles.showMore': '再显示 {n} 个',
'designFiles.kindHtml': 'HTML 页面',
'designFiles.kindImage': '图片',
'designFiles.kindSketch': '草图',
'designFiles.kindText': '文本',
'designFiles.kindCode': '脚本',
'designFiles.kindPdf': 'PDF',
'designFiles.kindDocument': '文档',
'designFiles.kindPresentation': '演示文稿',
'designFiles.kindSpreadsheet': '电子表格',
'designFiles.kindLiveArtifact': '实时制品',
'designFiles.kindBinary': '二进制',
'quickSwitcher.placeholder': '打开文件…',
'quickSwitcher.empty': '此项目中没有文件',
'quickSwitcher.noMatches': '无匹配项',
'quickSwitcher.navigate': '导航',
'quickSwitcher.open': '打开',
'quickSwitcher.close': '关闭',
'pasteDialog.title': '粘贴文本',
'pasteDialog.hint': '将保存到项目文件夹中,名称随你定。',
'pasteDialog.fileNameLabel': '文件名',
'pasteDialog.namePlaceholder': 'notes.txt',
'pasteDialog.contentLabel': '内容',
'pasteDialog.contentPlaceholder': '在此粘贴任何内容…',
'pasteDialog.save': '保存',
'pasteDialog.cancel': '取消',
'sketch.save': '保存草图',
'sketch.cancel': '取消',
'sketch.saving': '保存中…',
'sketch.tooltipDirty': '尚未保存',
'sketch.tooltipClean': '已保存',
'fileViewer.empty': '请选择一个文件查看。',
'fileViewer.loading': '加载中…',
'fileViewer.exportPptx': '导出为 PPTX',
'fileViewer.openInNewTab': '在新标签页中打开',
'fileViewer.copyPath': '复制路径',
'fileViewer.copied': '已复制!',
'fileViewer.share': '分享',
'fileViewer.binaryMeta': '二进制 · {size}',
'fileViewer.binaryNote': '二进制文件({size} 字节)。请下载或在本地打开查看。',
'fileViewer.pdfMeta': 'PDF · {size}',
'fileViewer.documentMeta': '文档',
'fileViewer.presentationMeta': '演示文稿',
'fileViewer.spreadsheetMeta': '电子表格',
'fileViewer.previewUnavailable': '无法生成预览,请下载或打开文件查看。',
'fileViewer.download': '下载',
'fileViewer.open': '打开',
'fileViewer.imageMeta': '图片 · {size}',
'fileViewer.reactMeta': 'React 组件 · {size}',
'fileViewer.sketchMeta': '草图 · {size}',
'fileViewer.markdownStreamingMeta': '正在流式预览…',
'fileViewer.markdownErrorMeta': '预览可能不完整(生成错误)。',
'fileViewer.markdownStreamingStatus': '正在流式生成…显示部分 Markdown。',
'fileViewer.markdownErrorStatus': '生成错误。正在显示最后可用内容。',
'fileViewer.videoMeta': '视频 · {size}',
'fileViewer.audioMeta': '音频 · {size}',
'fileViewer.reload': '重新加载',
'fileViewer.reloadDisk': '从磁盘重新加载',
'fileViewer.copy': '复制',
'fileViewer.copyTitle': '复制文件内容',
'fileViewer.saveDisabled': '保存(只读预览)',
'fileViewer.save': '保存',
'fileViewer.preview': '预览',
'fileViewer.source': '源代码',
'fileViewer.tweaks': '调整',
'fileViewer.comment': '评论',
'fileViewer.edit': '编辑',
'fileViewer.draw': '绘制',
'manualEdit.layers': "Layers",
'manualEdit.editableCount': "{count} editable",
'manualEdit.title': "Manual editor",
'manualEdit.selectLayer': "Select a layer",
'manualEdit.empty': "Click an element in the preview or choose a layer.",
'manualEdit.noClass': "no class",
'manualEdit.tabsAria': "Manual edit tabs",
'manualEdit.tabContent': "Content",
'manualEdit.tabStyle': "Style",
'manualEdit.tabAttributes': "Attributes",
'manualEdit.tabHtml': "Html",
'manualEdit.tabSource': "Source",
'manualEdit.attributesJson': "Attributes JSON",
'manualEdit.selectedHtml': "Selected element HTML",
'manualEdit.fullSource': "Full artifact source",
'manualEdit.applyContent': "Apply Content",
'manualEdit.applyStyle': "Apply Style",
'manualEdit.applyAttributes': "Apply Attributes",
'manualEdit.applyHtml': "Apply HTML",
'manualEdit.applySource': "Apply Source",
'manualEdit.invalidAttributes': "Invalid attributes JSON.",
'manualEdit.changes': "Changes",
'manualEdit.undo': "Undo",
'manualEdit.redo': "Redo",
'manualEdit.noChanges': "No manual edits yet.",
'manualEdit.imageUrl': "Image URL",
'manualEdit.altText': "Alt text",
'manualEdit.label': "Label",
'manualEdit.text': "Text",
'manualEdit.href': "Href",
'manualEdit.textColor': "Text color",
'manualEdit.background': "Background",
'manualEdit.fontSize': "Font size",
'manualEdit.weight': "Weight",
'manualEdit.align': "Align",
'manualEdit.padding': "Padding",
'manualEdit.margin': "Margin",
'manualEdit.radius': "Radius",
'manualEdit.border': "Border",
'manualEdit.width': "Width",
'manualEdit.minHeight': "Min height",
'fileViewer.zoomOut': '缩小',
'fileViewer.zoomIn': '放大',
'fileViewer.resetZoom': '重置缩放',
'fileViewer.reloadAria': '重新加载',
'fileViewer.previousSlide': '上一张',
'fileViewer.nextSlide': '下一张',
'fileViewer.slideNavAria': '幻灯片导航',
'fileViewer.present': '演示',
'fileViewer.presentInTab': '在当前标签页',
'fileViewer.presentFullscreen': '全屏',
'fileViewer.presentNewTab': '新标签页',
'fileViewer.exitPresentation': '退出演示',
'fileViewer.shareLabel': '分享',
'fileViewer.exportPdf': '导出为 PDF',
'fileViewer.exportPdfAllSlides': '导出为 PDF(全部幻灯片)',
'fileViewer.exportPptxBusy': '请等待当前任务完成。',
'fileViewer.exportPptxHint': '请求代理将此设计转换为 PPTX。',
'fileViewer.exportPptxNa': '此处暂不支持导出 PPTX。',
'fileViewer.exportZip': '下载为 .zip',
'fileViewer.exportHtml': '导出为独立 HTML',
'fileViewer.exportMd': '导出为 Markdown',
'fileViewer.exportJsx': '导出为 JSX',
'fileViewer.exportReactHtml': '导出预览 HTML',
'fileViewer.saveAsTemplate': '保存为模板…',
'fileViewer.savingTemplate': '正在保存模板…',
'fileViewer.savedTemplate': '已保存为「{name}」',
'fileViewer.savedTemplateFail': '保存模板失败,请重试。',
'fileViewer.templateNamePrompt': '模板名称',
'fileViewer.templateNameDefault': '未命名模板',
'fileViewer.templateDescPrompt': '简短描述(可选 — 这个模板用于什么场景?)',
'liveArtifact.refresh.button': '刷新',
'liveArtifact.refresh.buttonTitle': '刷新此实时产物',
'liveArtifact.refresh.loadingTitle': '正在加载实时产物…',
'liveArtifact.refresh.noSourceTitle': '暂无可刷新来源。',
'liveArtifact.refresh.running': '刷新中…',
'liveArtifact.refresh.runningMessage': '正在刷新数据和预览,可能需要一点时间。',
'liveArtifact.refresh.runningAction': '刷新成功前会继续显示上一次预览。',
'liveArtifact.refresh.successOne': '刷新完成,数据已更新。',
'liveArtifact.refresh.successMany': '刷新完成,数据已更新。',
'liveArtifact.refresh.successAction': '预览已使用最新提交的数据重新加载。',
'liveArtifact.refresh.previousFailure': '上次刷新失败:{message}',
'liveArtifact.refresh.failureAction': '请检查「刷新历史」,修复来源或权限问题后重试。',
'liveArtifact.refresh.networkFailure': '刷新请求失败。请检查网络连接后重试。',
'liveArtifact.refresh.genericFailure': '刷新失败。',
'liveArtifact.refresh.statusNever': '不可刷新',
'liveArtifact.refresh.statusReady': '可刷新',
'liveArtifact.refresh.statusSucceeded': '已是最新',
'liveArtifact.refresh.statusFailed': '刷新失败',
'fileViewer.deployToVercel': '部署到 Vercel',
'fileViewer.redeployToVercel': '重新部署',
'fileViewer.deployingToVercel': '正在部署到 Vercel…',
'fileViewer.preparingPublicLink': '正在准备公开链接…',
'fileViewer.copyDeployLink': '复制链接',
'fileViewer.deployModalTitle': '部署到 Vercel',
'fileViewer.deployModalSubtitle': '使用你自己的 Vercel 账号部署此 HTML 作品预览。',
'fileViewer.vercelToken': 'Vercel token',
'fileViewer.vercelTokenGetLink': '获取 Vercel token',
'fileViewer.vercelTokenPlaceholder': '粘贴你的 Vercel token',
'fileViewer.vercelTokenReuseHint': '将使用已保存的 token。输入新 token 可替换。',
'fileViewer.vercelTokenRequired': '请先输入并保存 Vercel token。',
'fileViewer.vercelTeamId': 'Team ID',
'fileViewer.vercelTeamSlug': 'Team slug',
'fileViewer.optional': '可选',
'fileViewer.vercelPreviewOnly': '当前仅部署 Preview。',
'fileViewer.savingConfig': '保存中…',
'fileViewer.deployConfigSaveFailed': '保存 Vercel 设置失败。',
'fileViewer.deployFailed': '部署失败,请检查 Vercel 设置后重试。',
'fileViewer.deployResultLabel': '部署链接',
'fileViewer.deployLinkPreparingLabel': '公开链接准备中',
'fileViewer.deployLinkDelayed': '站点已经部署,Vercel 仍在准备公开链接。',
'fileViewer.deployLinkProtectedLabel': 'Vercel 访问保护已开启',
'fileViewer.deployLinkProtected':
'站点已部署,但 Vercel 要求登录后才能访问此预览链接。请关闭 Deployment Protection 或使用自定义域名。',
'fileViewer.retryLink': '立即重试',
'questionForm.submit': '提交',
'questionForm.skip': '跳过',
'questionForm.locked': '已回答',
'conv.switch': '切换对话',
'conv.label': '对话',
'conv.heading': '对话历史',
'conv.new': '+ 新建',
'conv.empty': '还没有对话。',
'conv.untitled': '未命名对话',
'conv.renameTooltip': '双击重命名',
'conv.delete': '删除对话',
'conv.deleteConfirm': '确定删除「{title}」?该操作会删除其消息。',
'agentPicker.label': '代理',
'agentPicker.modeChoose': '选择执行模式',
'agentPicker.localCli': '本机 CLI',
'agentPicker.daemonOff': '守护进程未运行',
'agentPicker.byok': 'API · BYOK',
'agentPicker.selectAgent': '选择已检测到的代码代理 CLI',
'agentPicker.noAgents': 'PATH 中未发现代理',
'agentPicker.notInstalled': '未安装',
'agentPicker.rescan': '重新扫描 PATH 中的代理',
'tool.openInTab': '在标签页中打开 {name}',
'tool.open': '打开',
'tool.todos': '待办',
'tool.write': '写入',
'tool.edit': '编辑',
'tool.read': '读取',
'tool.bash': 'Bash',
'tool.glob': 'Glob',
'tool.grep': 'Grep',
'tool.fetch': '抓取',
'tool.search': '搜索',
'tool.lines': '{n} 行',
'tool.changeSingular': '处变更',
'tool.changePlural': '处变更',
'tool.in': '于 {path}',
'tool.hide': '隐藏',
'tool.output': '输出',
'tool.running': '运行中…',
'tool.error': '错误',
'tool.done': '完成',
'assistant.role': '助手',
'assistant.workingLabel': '执行中',
'assistant.doneLabel': '已完成',
'assistant.unfinishedLabel': '已停止,仍有未完成任务',
'assistant.unfinishedSummary': '剩余 {n} 个任务',
'assistant.unfinishedMore': '还有 {n} 个',
'assistant.continueRemaining': '继续剩余任务',
'assistant.outTokens': '{n} 输出',
'assistant.producedFiles': '本轮产出的文件',
'assistant.openFile': '打开',
'assistant.downloadFile': '下载',
'assistant.thinking': '思考中',
'assistant.systemReminder': '系统提示',
'assistant.waitingFirstOutput': '等待首批输出中',
'assistant.statusBootingAgent': '正在启动代理',
'assistant.statusStarting': '启动中',
'assistant.statusRequesting': '正在发送请求',
'assistant.statusThinking': '思考中',
'assistant.statusStreaming': '流式输出中',
'assistant.slowHint':
'耗时比平时更久。一般 5–10 秒内会出现表单,可以「停止」后重新表述。',
'assistant.verbEditing': '编辑',
'assistant.verbWriting': '写入',
'assistant.verbReading': '读取',
'assistant.verbSearching': '搜索',
'assistant.verbRunning': '运行',
'assistant.verbTodos': '待办',
'assistant.verbFetching': '抓取',
'assistant.verbCalling': '调用',
'qf.answered': '已回答',
'qf.choose': '请选择…',
'qf.required': '必填',
'qf.lockedSubmitted': '答案已发送,代理将在本次会话后续使用。',
'qf.lockedPrev': '该表单来自此前的对话。',
'qf.hint': '挑选合适的选项;可选项可以跳过,代理会使用合理的默认值。',
'qf.submitDefault': '发送答案',
'qf.submitDisabledTitle': '请先填写必填项',
'qf.submitTitle': '发送答案',
'qf.cardSelected': '已选',
'qf.cardRefs': '参考:',
'qf.cardSampleText': '飞燕环宇 · 0123',
'sketch.toolSelect': '选择(占位)',
'sketch.toolPen': '钢笔',
'sketch.toolText': '文本',
'sketch.toolRect': '矩形',
'sketch.toolArrow': '箭头',
'sketch.toolEraser': '橡皮擦',
'sketch.color': '颜色',
'sketch.strokeSize': '描边粗细',
'sketch.undo': '撤销',
'sketch.clear': '清空',
'sketch.close': '关闭',
'sketch.textPrompt': '请输入文本:',
'pet.title': '宠物',
'pet.tabBuiltIn': '内置',
'pet.tabBuiltInHint': 'Open Design 内置的精选宠物 — 一键领养。',
'pet.builtInEmpty': '暂时无法加载内置宠物。等本地服务恢复后,刷新「社区」页签再试。',
'pet.tabCustom': '自定义',
'pet.tabCustomHint': '自己取名、选符号或上传精灵图。',
'pet.tabCommunity': '社区',
'pet.tabCommunityHint': '来自 Codex 的孵化宠物 — 领养或用 AI 生成新的。',
'pet.tabsAria': '宠物来源',
'pet.subtitle': '领养一只小宠物,让它陪你一起设计。',
'pet.navTitle': '宠物',
'pet.navHint': '领养与自定义',
'pet.adopt': '领养',
'pet.adoptedBadge': '已领养',
'pet.adoptCallout': '领养一只宠物',
'pet.changePet': '更换宠物',
'pet.wake': '唤醒',
'pet.tuck': '收起',
'pet.wakeTitle': '唤醒宠物 — 显示浮窗。',
'pet.tuckTitle': '收起宠物 — 隐藏浮窗。',
'pet.settingsTitle': '打开宠物设置',
'pet.useCustom': '使用我的宠物',
'pet.customTitle': '自定义你的宠物',
'pet.customHint': '挑一个名字、表情和主题色,浮窗会即时更新。',
'pet.customGreetingPlaceholder': '来自宠物的问候…',
'pet.fieldName': '名字',
'pet.fieldGlyph': '表情',
'pet.fieldGlyphHint': '建议使用单个 emoji(例如 🐝、🦄、🐢)。',
'pet.fieldGreeting': '问候语',
'pet.fieldAccent': '主题色',
'pet.fieldAccentCustom': '自定义颜色',
'pet.overlayAria': '宠物伙伴',
'pet.spriteAria': '{name} — 拖动可移动,点击与它互动',
'pet.spriteTitle': '{name} 来打招呼啦!点击聊天。',
'pet.railAria': '宠物选择器',
'pet.railTitle': '宠物',
'pet.railHint': '挑一只小伙伴,让它在你的工作区里飘着。',
'pet.railExpand': '展开宠物选择器',
'pet.railCollapse': '收起宠物选择器',
'pet.railHide': '隐藏宠物选择器',
'pet.railShow': '显示宠物选择器',
'pet.railCustomFlavor': '自定义 — 名字、表情、颜色随你定。',
'pet.railCustomize': '自定义…',
'pet.composerTitle': '宠物 — 唤醒、收起或选一只',
'pet.composerMenuTitle': '宠物',
'pet.composerMenuHint': '小贴士:输入 /pet 即可切换',
'pet.composerOpenSettings': '在设置中自定义',
'pet.welcomeTeaserTitle': '领养一只宠物',
'pet.welcomeTeaserBody': '一只小小的浮窗伙伴,会陪着你工作。',
'pet.welcomeTeaserCta': '挑一只',
'pet.imageUpload': '上传形象',
'pet.imageReplace': '替换形象',
'pet.imageRemove': '改用 emoji',
'pet.imageHintIdle': '支持 PNG / JPG / WebP / GIF / SVG。要做精灵动画?传一张横向序列图并设置帧数。',
'pet.imageHintActive': '正在使用你上传的形象。把帧数设为 > 1 即可让横向序列图动起来。',
'pet.fieldFrames': '帧数',
'pet.fieldFramesHint': '1 = 静态;> 1 = 横向序列图。',
'pet.fieldFps': '速度 (fps)',
'pet.fieldFpsHint': '控制序列图的播放速度。',
'pet.atlasImport': '导入 Codex 精灵图',
'pet.atlasImportTitle': '导入 hatch-pet 8x9 / 192x208 精灵图(PNG 或 WebP)。',
'pet.atlasPickerTitle': '选择动画行',
'pet.atlasPickerHint': 'Codex 宠物自带 9 个动画状态。默认会保留完整精灵图,这样宠物会根据悬停、拖拽方向、长时间空闲自动切换动画。也可以只保留一个循环。',
'pet.atlasCancel': '丢弃精灵图',
'pet.atlasAdopt': '锁定这一行',
'pet.atlasAdoptFull': '使用完整精灵图(动态)',
'pet.atlasAdoptFullTitle': '保留全部动画行,让宠物对悬停、拖拽方向以及长时间空闲做出反应。',
'pet.atlasAdoptRowTitle': '只把高亮的这一行切成单循环条带。',
'pet.atlasActiveHint': '动态精灵图已启用 — 宠物会根据你的交互(悬停、拖拽、空闲)自动切换动画。',
'pet.atlasRow.idle': '待机',
'pet.atlasRow.running-right': '向右跑',
'pet.atlasRow.running-left': '向左跑',
'pet.atlasRow.waving': '挥手',
'pet.atlasRow.jumping': '跳跃',
'pet.atlasRow.failed': '失败',
'pet.atlasRow.waiting': '等待',
'pet.atlasRow.running': '奔跑',
'pet.atlasRow.review': '审视',
'pet.hatchTitle': '用 AI 孵化新宠物',
'pet.hatchHint': '通过聊天调用内置的 hatch-pet 技能生成 Codex 风格的精灵图,完成后回到这里导入。',
'pet.hatchConcept': '宠物概念(可选)',
'pet.hatchConceptPlaceholder': '例如:一只穿着毛衣的像素风柴犬',
'pet.hatchCopy': '复制提示词',
'pet.hatchCopied': '已复制!',
'pet.hatchFoot': '技能保存好宠物后,回到这里点击「导入 Codex 精灵图」即可。',
'pet.slashPopoverAria': '斜杠命令',
'pet.slashPopoverTitle': '命令',
'pet.slashPopoverHint': '↑↓ 切换 · 回车选择 · esc 关闭',
'pet.slashPet': '切换、领养或跳转到宠物设置。',
'pet.slashPetWake': '唤醒漂浮的宠物。',
'pet.slashPetTuck': '把宠物收起来。',
'pet.slashHatch': '调用 hatch-pet 技能生成一只 Codex 宠物。',
'pet.slashHatchArg': '<概念>',
'pet.codexTitle': '最近孵化',
'pet.codexSubtitle': 'hatch-pet 技能打包的宠物会出现在这里,可一键领养。',
'pet.codexSubtitleWithDir': '正在扫描 {dir},查找 hatch-pet 技能打包的宠物。',
'pet.codexEmpty': '还没有孵化的宠物。在聊天中输入 /hatch 来生成一只。',
'pet.codexLoading': '正在查找已孵化的宠物…',
'pet.codexRefresh': '刷新',
'pet.codexAdopt': '领养',
'pet.codexAdopting': '领养中…',
'pet.communitySync': '下载社区宠物',
'pet.communitySyncing': '下载中…',
'pet.communitySyncTitle': '从 Codex Pet Share 与 j20 Hatchery 同步最新宠物到 ~/.codex/pets/。',
'pet.communitySyncDone': '已同步 {wrote} 个新宠物(共 {total} 个)。',
'pet.communitySyncFailed': '同步失败:{error}',
'pet.codexBundled': '内置',
'pet.codexBundledTitle': 'Open Design 内置宠物,无需下载。',
'settings.notifications': '通知',
'settings.notificationsHint': '任务完成时的声音和桌面通知',
'settings.notifyCompletionSound': '完成提示音',
'settings.notifyCompletionSoundHint': '一轮任务结束时播放,默认关闭',
'settings.notifySuccessSound': '成功音色',
'settings.notifyFailureSound': '失败音色',
'settings.notifyDesktop': '桌面通知',
'settings.notifyDesktopHint': '窗口不在前台时弹出系统通知',
'settings.notifyDesktopBlocked': '浏览器已拒绝通知权限,请在站点设置中开启',
'settings.notifyDesktopUnsupported': '当前环境不支持桌面通知',
'settings.notifyTest': '测试通知',
'settings.notifyTestSent': '测试通知已发送;如果没有弹窗,请检查浏览器和系统通知设置。',
'settings.notifyTestFailed': '通知调用失败,请检查浏览器和系统通知设置。',
'settings.notifySoundDing': '叮',
'settings.notifySoundChime': '风铃',
'settings.notifySoundTwoToneUp': '上行双音',
'settings.notifySoundPluck': '拨弦',
'settings.notifySoundBuzz': '蜂鸣',
'settings.notifySoundTwoToneDown': '下行双音',
'settings.notifySoundThud': '低响',
'settings.library': '技能与设计系统',
'settings.libraryHint': '浏览、预览和管理您的内容库',
'settings.librarySkills': '技能',
'settings.libraryDesignSystems': '设计系统',
'settings.librarySearch': '搜索...',
'settings.libraryAll': '全部',
'settings.libraryPreview': '预览',
'settings.libraryPreviewClose': '关闭',
'settings.libraryLoading': '加载中...',
'settings.libraryNoResults': '没有匹配的项目。',
'settings.libraryEnabled': '已启用',
'settings.libraryDisabled': '已禁用',
'settings.libraryToggleLabel': '切换',
'notify.successTitle': '任务已完成',
'notify.failureTitle': '任务失败',
'notify.successBody': '一轮回答已经写完。',
'notify.failureBody': '本轮任务出错,请查看错误信息。',
};
+965
View File
@@ -0,0 +1,965 @@
import type { Dict } from '../types';
export const zhTW: Dict = {
'common.cancel': '取消',
'common.save': '儲存',
'common.close': '關閉',
'common.delete': '刪除',
'common.rename': '重新命名',
'common.preview': '預覽',
'common.share': '分享',
'common.search': '搜尋',
'common.searchEllipsis': '搜尋…',
'common.loading': '載入中…',
'common.all': '全部',
'common.none': '無',
'common.default': '預設',
'common.installed': '已安裝',
'common.notInstalled': '未安裝',
'common.active': '使用中',
'common.offline': '未執行',
'common.selected': '已選',
'common.create': '建立',
'common.openPreview': '開啟預覽',
'common.exitFullscreen': '離開全螢幕',
'common.fullscreen': '全螢幕',
'common.openInNewTab': '在新分頁中開啟',
'common.exportPdf': '匯出為 PDF',
'common.exportZip': '下載為 .zip',
'common.exportHtml': '匯出為獨立 HTML',
'common.justNow': '剛剛',
'common.minutesAgo': '{n} 分鐘前',
'common.hoursAgo': '{n} 小時前',
'common.daysAgo': '{n} 天前',
'common.now': '剛剛',
'common.minutesShort': '{n}分',
'common.hoursShort': '{n}時',
'common.daysShort': '{n}天',
'common.untitled': '未命名',
'app.brand': 'Open Design',
'app.brandPill': '研究預覽版',
'app.brandSubtitle': '由 Nexu Labs 出品',
'app.welcomeLoading': '正在載入工作區…',
'settings.welcomeKicker': '歡迎',
'settings.welcomeTitle': '初始化 Open Design',
'settings.welcomeSubtitle':
'選擇你希望使用的執行方式。後續可以隨時從頂端「設定」按鈕中修改。',
'settings.kicker': '設定',
'settings.title': '執行模式與模型',
'settings.subtitle': '在本機 CLI 與 BYOK 之間選擇。API Key 只儲存在目前瀏覽器中。',
'settings.modeAria': '執行模式',
'settings.protocolAria': 'API 協定',
'settings.modeDaemon': '本機 CLI',
'settings.modeDaemonHelp': '透過本機的程式碼代理 CLI 執行',
'settings.modeDaemonOffline': '背景守護程序未執行',
'settings.modeDaemonOfflineMeta': '守護程序未執行',
'settings.modeDaemonInstalledMeta': '已安裝 {count} 個',
'settings.modeApi': 'API 提供方',
'settings.modeApiMeta': 'BYOK',
'settings.codeAgent': '程式碼代理',
'settings.codeAgentHint': '透過掃描 PATH 自動偵測,選擇你希望使用的 CLI。',
'settings.rescan': '↻ 重新掃描',
'settings.rescanTitle': '重新掃描 PATH',
'settings.rescanRunning': '掃描中...',
'settings.rescanSuccess': '掃描完成,{count} 個可用。',
'settings.rescanFailed': '掃描失敗,請檢查背景守護程序後重試。',
'settings.noAgentsDetected':
'尚未偵測到任何代理。請安裝 Claude Code、Codex、Gemini CLI、OpenCode、Cursor Agent 或 Qwen 其中之一,然後點擊「重新掃描」。',
'settings.apiSection': 'API 設定',
'settings.quickFillProvider': '快速填入提供方',
'settings.customProvider': '自訂提供方',
'settings.apiKey': 'API Key',
'settings.showKey': '顯示 Key',
'settings.hideKey': '隱藏 Key',
'settings.show': '顯示',
'settings.hide': '隱藏',
'settings.model': '模型',
'settings.suggestedModelsHint':
'這些是此協定的建議模型。你的提供方可能支援不同的模型。',
'settings.baseUrl': 'Base URL',
'settings.baseUrlInvalid': '請輸入有效的公網 http:// 或 https:// URL。允許 localhost;會阻止私有網路 IP。',
'settings.azureDeploymentModel': '部署名稱',
'settings.azureDeploymentModelHint':
'對於 Azure OpenAI,此欄位會作為 /openai/deployments/<model> 中的部署名稱使用。請填入你在 Azure 中建立的部署名稱。',
'settings.apiVersion': 'API 版本',
'settings.maxTokens': '最大 tokens(可選)',
'settings.maxTokensHint':
'回應長度上限。每個 model 有調過的預設值(在 placeholder 顯示),留空即使用,輸入數字則覆蓋。',
'settings.apiHint': '請求會透過本機 daemon 代理送到你設定的 Base URL。Key 只儲存在目前瀏覽器中,並隨提供方請求送出。',
'settings.skipForNow': '暫時跳過',
'settings.getStarted': '開始使用',
'settings.envConfigure': '設定執行模式',
'settings.localCli': '本機 CLI',
'settings.anthropicApi': 'Anthropic API',
'settings.noAgentSelected': '尚未選擇代理',
'settings.language': '介面語言',
'settings.languageHint': '切換介面語言,設定僅儲存在當前瀏覽器。',
'settings.appearance': '外觀',
'settings.appearanceHint': '選擇淺色、深色或跟隨系統設定。',
'settings.themeSystem': '系統',
'settings.themeLight': '淺色',
'settings.themeDark': '深色',
'settings.modelPicker': '模型',
'settings.reasoningPicker': '推理強度',
'settings.modelPickerHint':
'當 CLI 提供 `models` 命令時會自動拉取。選擇「預設」則沿用 CLI 自身的設定;選擇「自訂」可手動輸入任何 CLI 支援的模型 id。',
'settings.cliEnvTitle': 'CLI 設定位置',
'settings.cliEnvHint':
'為打包版應用執行和 agent 偵測設定非敏感設定目錄。',
'settings.cliEnvClaudeConfigDir': 'Claude Code 設定目錄',
'settings.cliEnvCodexHome': 'Codex home',
'settings.modelCustom': '自訂(在下方填寫)…',
'settings.modelCustomLabel': '自訂模型 id',
'settings.modelCustomPlaceholder': '例如 anthropic/claude-sonnet-4-6',
'settings.mediaProviders': '媒體生成提供商',
'settings.mediaProvidersHint': '圖片、影片、音訊生成的 API key。存於本機並同步到本地守護程序。',
'settings.mediaProviderApiKey': 'API key',
'settings.mediaProviderBaseUrl': 'Base URL',
'settings.mediaProviderConfigured': '已設定',
'settings.mediaProviderUnset': '未設定',
'settings.mediaProviderClear': '清除',
'settings.mediaProviderPlaceholder': '貼上 API key',
'settings.mediaProviderBaseUrlPlaceholder': '覆蓋預設 Base URL',
'settings.about': '關於',
'settings.aboutHint': '版本與執行環境詳情',
'settings.appVersion': '版本',
'settings.appChannel': '通道',
'settings.appRuntime': '執行環境',
'settings.appPlatform': '平台',
'settings.appArchitecture': '架構',
'settings.runtimePackaged': '已封裝應用程式',
'settings.runtimeDevelopment': '開發環境',
'settings.versionUnavailable': '守護程式離線時無法取得版本詳情。',
'entry.tabDesigns': '我的設計',
'entry.tabExamples': '範例',
'entry.tabDesignSystems': '設計系統',
'entry.tabConnectors': '連接器',
'entry.openSettingsTitle': '設定',
'entry.openSettingsAria': '開啟設定',
'entry.resizeAria': '調整側邊欄寬度',
'entry.loadingWorkspace': '正在載入工作區…',
'entry.tabImageTemplates': '圖片範本',
'entry.tabVideoTemplates': '影片範本',
'promptTemplates.searchPlaceholder': '搜尋範本…',
'promptTemplates.countLabel': '{n} 個結果',
'promptTemplates.emptyImage': '還沒有安裝圖片 Prompt 範本。',
'promptTemplates.emptyVideo': '還沒有安裝影片 Prompt 範本。',
'promptTemplates.emptyNoMatch': '沒有符合的範本。',
'promptTemplates.attributionFooter': '改編自公開 Prompt 庫,每張卡片都連結到原作者。',
'promptTemplates.openPreviewTitle': '開啟 Prompt 與預覽',
'promptTemplates.sourcePrefix': '來源:',
'promptTemplates.fetchError': '無法載入此範本文字。',
'promptTemplates.promptLabel': 'Prompt 內容',
'promptTemplates.copyPrompt': '複製 Prompt',
'promptTemplates.copyDone': '已複製!',
'promptTemplates.modelHint': '建議模型:{model}',
'promptTemplates.openSource': '查看原始來源',
'promptTemplates.openFullscreen': '開啟全螢幕預覽',
'promptTemplates.closeFullscreen': '關閉全螢幕預覽',
'promptTemplates.allSources': '所有來源',
'promptTemplates.sourceFilterAria': '依來源篩選',
'promptTemplates.retry': '重試',
'connectors.title': '連接器',
'connectors.subtitle': '可為即時製品提供資料的本地和未來資料來源。',
'connectors.account': '帳號',
'connectors.noAccount': '未連接',
'connectors.tools': '工具',
'connectors.connect': '連接',
'connectors.disconnect': '中斷連接',
'connectors.configure': '設定',
'connectors.unavailable': '不可用',
'connectors.phaseStubTitle': '連接器 API 將在 Phase 3 提供;這裡是預覽入口。',
'connectors.statusAvailable': '可用',
'connectors.statusConnected': '已連接',
'connectors.statusError': '錯誤',
'connectors.statusDisabled': '已停用',
'connectors.gateTitle': '請先設定 Composio API 金鑰',
'connectors.gateBody': '連接器需要 Composio API 金鑰。請在設定中配置後即可啟用可用的整合。',
'connectors.gateAction': '開啟設定',
'connectors.aboutLabel': '簡介',
'connectors.detailsLabel': '詳情',
'connectors.statusLabel': '狀態',
'connectors.categoryLabel': '類別',
'connectors.providerLabel': '提供方',
'connectors.toolsSection': '工具',
'connectors.toolsLoading': '正在載入工具…',
'connectors.noToolsAvailable': '目前沒有可用工具,連接後即可發現此整合提供的能力。',
'connectors.openDetailsAria': '檢視 {name} 詳情',
'connectors.toolsBadgeNone': '尚無工具',
'connectors.toolsBadgeOne': '{n} 個工具',
'connectors.toolsBadgeMany': '{n} 個工具',
'connectors.searchPlaceholder': '搜尋連接器…',
'connectors.searchAriaLabel': '依名稱、提供者或工具搜尋連接器',
'connectors.searchClear': '清除搜尋',
'connectors.emptyNoMatchTitle': '沒有符合「{query}」的連接器',
'connectors.emptyNoMatchBody': '試試其他關鍵字,或清除搜尋以瀏覽完整目錄。',
'connectors.emptyNoMatchAction': '清除搜尋',
'newproj.tabPrototype': '原型',
'newproj.tabLiveArtifact': '新建即時成品',
'newproj.tabDeck': '投影片',
'newproj.tabTemplate': '從範本',
'newproj.tabOther': '其它',
'newproj.titlePrototype': '新建原型',
'newproj.titleLiveArtifact': '新建即時成品',
'newproj.titleDeck': '新建投影片',
'newproj.titleTemplate': '從範本開始',
'newproj.titleImage': '新建圖片',
'newproj.titleVideo': '新建影片',
'newproj.titleAudio': '新建音訊',
'newproj.titleOther': '新建專案',
'newproj.namePlaceholder': '專案名稱',
'newproj.fidelityLabel': '精細度',
'newproj.fidelityWireframe': '線框圖',
'newproj.fidelityHigh': '高擬真',
'newproj.toggleSpeakerNotes': '使用演講備忘稿',
'newproj.toggleSpeakerNotesHint': '減少投影片上的文字,重點放到備忘稿中。',
'newproj.toggleAnimations': '加入動畫效果',
'newproj.toggleAnimationsHint': '在範本基礎上疊加動畫效果(入場、懸停、過渡)。',
'newproj.templateLabel': '範本',
'newproj.noTemplatesTitle': '還沒有範本',
'newproj.noTemplatesBody':
'開啟任意專案,在檔案檢視器內的「分享」選單將其儲存為範本,範本將出現在這裡。',
'newproj.savedTemplate': '已儲存的範本',
'newproj.fileSingular': '個檔案',
'newproj.filePlural': '個檔案',
'newproj.create': '建立',
'newproj.createLiveArtifact': '建立即時成品',
'newproj.createFromTemplate': '基於範本建立',
'newproj.createDisabledTitle': '請先在任意專案內透過「分享」選單將其儲存為範本。',
'newproj.importClaudeZip': '匯入 Claude Design ZIP',
'newproj.importClaudeZipTitle': '匯入 Claude Design 匯出的 .zip 檔案',
'newproj.importingClaudeZip': '正在匯入…',
'newproj.privacyFooter': '預設情況下只有你能看到自己的專案。',
'newproj.designSystem': '設計系統',
'newproj.dsNoneFreeform': '不指定 — 自由發揮',
'newproj.dsNoneSubtitleEmpty': '不使用系統 token,由你決定整體配色',
'newproj.dsNoneSubtitleSelected': '跳過系統 token,由代理自行選擇配色。',
'newproj.dsCategoryFallback': '設計系統',
'newproj.dsSearch': '搜尋設計系統…',
'newproj.dsModeAria': '選擇模式',
'newproj.dsModeSingle': '單選',
'newproj.dsModeMulti': '多選',
'newproj.dsNoneTitle': '不指定 — 自由發揮',
'newproj.dsNoneSub': '跳過系統 token,由代理自行選擇配色。',
'newproj.dsEmpty': '沒有符合「{query}」的設計系統。',
'newproj.dsFootSingular': '只作為靈感參考。',
'newproj.dsFootPlural': '只作為靈感參考。',
'newproj.dsFootClear': '清除',
'newproj.dsBadgeDefault': '預設',
'newproj.dsPrimaryFallback': '主系統',
'newproj.surfaceImage': '圖片',
'newproj.surfaceVideo': '影片',
'newproj.surfaceAudio': '音訊',
'newproj.modelLabel': '模型',
'newproj.aspectLabel': '比例',
'newproj.imageStyleLabel': '風格備註',
'newproj.imageStylePlaceholder': '編輯攝影、柔和日光、低飽和配色',
'newproj.videoLengthLabel': '時長',
'newproj.videoLengthSeconds': '{n} 秒',
'newproj.audioKindLabel': '音訊類型',
'newproj.audioKindMusic': '音樂',
'newproj.audioKindSpeech': '配音 / TTS',
'newproj.audioKindSfx': '音效',
'newproj.audioDurationLabel': '時長',
'newproj.audioDurationSeconds': '{n} 秒',
'newproj.voiceLabel': '聲音',
'newproj.voicePlaceholder': '提供商 voice id,可選',
'newproj.connectorsLabel': '連接器',
'newproj.connectorsHint': '即時製品可以從這些資料來源拉取資訊。',
'newproj.connectorsEmptyTitle': '尚未配置連接器',
'newproj.connectorsEmptyBody': '連接一個資料來源,讓即時製品載入真實資料而非佔位內容。',
'newproj.connectorsEmptyCta': '前往配置連接器 →',
'newproj.connectorsLoading': '正在載入連接器…',
'newproj.connectorsCountOne': '已連接 {n} 個',
'newproj.connectorsCountMany': '已連接 {n} 個',
'newproj.connectorsManage': '管理',
'newproj.promptTemplateLabel': '參考範本',
'newproj.promptTemplateNoneTitle': '不指定 — 自由發揮',
'newproj.promptTemplateNoneSub': '跳過範本庫,自行描述需求',
'newproj.promptTemplateRefSub': '參考範本',
'newproj.promptTemplateSearch': '搜尋範本…',
'newproj.promptTemplateEmpty': '目前沒有此類型的範本。',
'newproj.promptTemplateBodyLabel': 'Prompt(可繼續優化)',
'newproj.promptTemplateOptimizeHint':
'可隨意編輯 — 修改後的內容會作為 agent 生成時的參考。',
'newproj.promptTemplateBodyEmpty': '內容為空 — agent 不會拿到範本參考。',
'designs.subRecent': '最近',
'designs.subYours': '我的設計',
'designs.filterAria': '篩選專案',
'designs.searchPlaceholder': '搜尋…',
'designs.emptyNoProjects': '還沒有專案。請在左側建立一個。',
'designs.emptyNoMatch': '沒有符合的專案。',
'designs.deleteTitle': '刪除專案',
'designs.deleteConfirm': '確定刪除「{name}」?',
'designs.cardFreeform': '自由設計',
'designs.badgeLive': 'Live',
'designs.liveArtifactBadgesAria': '即時產物標記',
'designs.liveCount': '{n} 個即時',
'designs.statusLive': '即時產物',
'designs.statusArchived': '已封存',
'designs.statusError': '錯誤',
'designs.statusRefreshing': '重新整理中…',
'designs.statusRefreshFailed': '重新整理失敗',
'designs.statusRefreshed': '已重新整理',
'designs.status.notStarted': '未開始',
'designs.status.queued': '等待中',
'designs.status.running': '執行中',
'designs.status.awaitingInput': '等待回覆',
'designs.status.succeeded': '已完成',
'designs.status.failed': '失敗',
'designs.status.canceled': '已取消',
'designs.viewToggleAria': '檢視模式',
'designs.viewGrid': '網格檢視',
'designs.viewKanban': '看板檢視',
'designs.kanbanEmptyColumn': '暫無設計',
'designs.deleteAria': '刪除專案 {name}',
'examples.typeLabel': '類型',
'examples.surfaceLabel': '類型',
'examples.surfaceWeb': '網頁',
'examples.surfaceImage': '圖片',
'examples.surfaceVideo': '影片',
'examples.surfaceAudio': '音訊',
'examples.scenarioLabel': '情境',
'examples.modeAll': '全部',
'examples.modePrototypeDesktop': '原型 · 桌面版',
'examples.modePrototypeMobile': '原型 · 行動版',
'examples.modeDeck': '投影片',
'examples.modeDocument': '文件與範本',
'examples.modeOrbit': 'Orbit',
'examples.scenarioGeneral': '通用',
'examples.scenarioEngineering': '工程',
'examples.scenarioProduct': '產品',
'examples.scenarioDesign': '設計',
'examples.scenarioMarketing': '行銷',
'examples.scenarioSales': '業務',
'examples.scenarioFinance': '財務',
'examples.scenarioHr': '人力資源',
'examples.scenarioOperations': '營運',
'examples.scenarioSupport': '支援',
'examples.scenarioLegal': '法務',
'examples.scenarioEducation': '教育',
'examples.scenarioPersonal': '個人',
'examples.emptyNoSkills': '沒有可用的技能,守護程序是否在執行?',
'examples.searchPlaceholder': '搜尋範例…',
'examples.searchAria': '依名稱搜尋範例',
'examples.emptyNoMatch': '沒有符合當前篩選的範例。',
'examples.openPreview': '⤢ 開啟預覽',
'examples.loadingPreview': '正在載入預覽…',
'examples.hoverPreview': '將滑鼠懸停以檢視預覽',
'examples.usePrompt': '使用此 Prompt',
'examples.previewModalTitle': '在彈窗中檢視完整預覽',
'examples.shareTitle': '分享此範例',
'examples.shareLoadFirst': '請先懸停以載入預覽',
'examples.shareMenu': '分享 ▾',
'examples.exportPdfAllSlides': '匯出為 PDF(全部投影片)',
'examples.exportPptxLocked': '匯出為 PPTX…(請先開啟範本)',
'examples.tagSlideDeck': '投影片',
'examples.tagTemplate': '範本',
'examples.tagDesignSystem': '設計系統',
'examples.tagMobilePrototype': '行動版原型',
'examples.tagDesktopPrototype': '桌面版原型',
'examples.tagImage': '圖片',
'examples.tagVideo': '影片',
'examples.tagAudio': '音訊',
'examples.previewLabel': '預覽',
'ds.surfaceLabel': '類型',
'ds.surfaceWeb': '網頁',
'ds.surfaceImage': '圖片',
'ds.surfaceVideo': '影片',
'ds.surfaceAudio': '音訊',
'ds.searchPlaceholder': '搜尋設計系統…',
'ds.emptyNoMatch': '沒有符合的設計系統。',
'ds.badgeDefault': '預設',
'ds.preview': '預覽',
'ds.previewTitle': '預覽設計系統',
'ds.categoryAll': '全部',
'ds.categoryUncategorized': '未分類',
'ds.showcase': '展示',
'ds.tokens': 'Token',
'ds.specToggle': 'DESIGN.md',
'ds.specLoading': '正在載入 DESIGN.md…',
'avatar.title': '帳號與設定',
'avatar.localCli': '本機 CLI',
'avatar.anthropicApi': 'Anthropic API',
'avatar.useLocal': '使用本機 CLI',
'avatar.useApi': '使用 API · BYOK',
'avatar.codeAgent': '程式碼代理',
'avatar.rescan': '重新掃描 PATH',
'avatar.settings': '設定',
'avatar.backToProjects': '返回專案列表',
'avatar.metaActive': '使用中',
'avatar.metaOffline': '未執行',
'avatar.metaSelected': '已選',
'avatar.noAgentSelected': '尚未選擇代理',
'avatar.modelSection': '模型',
'avatar.modelLabel': '模型',
'avatar.reasoningLabel': '推理',
'avatar.customSuffix': '(自訂)',
'project.backToProjects': '返回專案列表',
'project.metaFreeform': '自由設計',
'project.resizeChatPanel': '調整聊天面板大小',
'chat.tabChat': '對話',
'chat.tabComments': '評論',
'chat.commentsSoon': '評論 — 即將上線',
'chat.comments.attached': 'Attached to chat',
'chat.comments.emptyAttached': 'No comments attached.',
'chat.comments.saved': 'Saved comments',
'chat.comments.emptySaved': 'No saved comments.',
'chat.comments.add': 'Add',
'chat.comments.addAll': 'Add all',
'chat.comments.remove': 'Remove',
'chat.comments.placeholder': 'Comment on this element…',
'chat.comments.addSend': 'Add & send',
'chat.comments.updateSend': 'Update & send',
'chat.comments.removeAttachment': 'Remove comment attachment',
'chat.comments.removeAttachmentAria': 'Remove comment attachment for {name}',
'chat.conversationsTitle': '對話紀錄',
'chat.conversationsAria': '對話紀錄',
'chat.newConversation': '新建對話',
'chat.newConversationsTitle': '新建對話',
'chat.conversationsHeading': '對話',
'chat.new': '新建',
'chat.emptyConversations': '還沒有對話。',
'chat.deleteConversation': '刪除對話',
'chat.deleteConversationConfirm': '確定刪除「{title}」?該操作會刪除其訊息。',
'chat.untitledConversation': '未命名對話',
'chat.startTitle': '開始一個對話',
'chat.startHint':
'可以拖曳或貼上圖片作為視覺參考,或鍵入 @ 引用本專案中的檔案。也可以從下面的範例開始:',
'chat.fillInputTitle': '點擊填充到輸入框',
'chat.jumpToLatest': '回到最新',
'chat.scrollToLatest': '捲動到最新',
'chat.you': '你',
'chat.openFile': '開啟 {name}',
'chat.composerPlaceholder': '描述你想要的設計 — 可貼上/拖入圖片,或用 @ 引用檔案…',
'chat.composerHint': '⌘/Ctrl + Enter 傳送 · 可貼上圖片 · @ 引用檔案',
'chat.cliSettingsTitle': 'CLI 與模型設定',
'chat.cliSettingsAria': '開啟 CLI 與模型設定',
'chat.attachTitle': '附加檔案(也可以貼上/拖入)',
'chat.attachAria': '附加檔案',
'chat.importTitle': '匯入素材(即將上線)',
'chat.importLabel': '匯入',
'chat.importComingSoon': '即將上線',
'chat.importSoon': '即將',
'chat.importFig': '上傳 .fig 檔案',
'chat.importGitHub': '連接 GitHub',
'chat.importWeb': '擷取網頁元素',
'chat.importFolder': '關聯程式碼目錄',
'chat.importSkills': '技能與設計系統',
'chat.importProject': '引用其它專案',
'chat.linkedFolderRemoveAria': '移除關聯資料夾 {path}',
'chat.linkedFolderNotFound': '資料夾不存在',
'chat.linkedFolderAlready': '該資料夾已關聯',
'chat.linkedFolderPickError': '無法開啟資料夾選擇器',
'chat.send': '傳送',
'chat.stop': '停止',
'chat.removeAria': '移除 {name}',
'chat.example1Title': '編輯風路演 PPT',
'chat.example1Tag': '雜誌',
'chat.example1Prompt':
'為一家正在融種子輪的設計工作室製作 10 張編輯風路演 PPT —— 瑞士格線佈局,超大號襯線標題加粗體首字下沉,等寬字體的章節編號,留白充足,整頁大圖與文字密集頁穿插出現。封面、願景、市場、產品、成長、團隊、融資需求、聯絡方式。',
'chat.example2Title': 'SaaS 分析儀表板',
'chat.example2Tag': '資料',
'chat.example2Prompt':
'為一款面向開發者的 SaaS 設計一份資訊密度高的分析儀表板 —— 頂端 KPI 條帶(含週環比變化)、兩張堆疊折線圖(MRR 與活躍工作區)、全球使用熱力圖、留存矩陣、客戶排行榜以及即時事件流。深色主題,等寬數字,迷你圖作為點綴。',
'chat.example3Title': '長捲動年度報告',
'chat.example3Tag': '編輯',
'chat.example3Prompt':
'為一家關注氣候議題的非營利機構製作互動式年度報告 —— 長捲動編輯式佈局,混合大段引言區塊、資料視覺化(堆疊柱狀圖、動態計數器、專案地點分布的等值線地圖)、攝影分隔頁、捐贈者牆,以及最終行動號召。現代襯線內文、無襯線圖表標籤、大地紙張配色。',
'preview.shareMenu': '分享 ▾',
'preview.openInNewTab': '在新分頁中開啟',
'preview.exit': '⤓ 離開',
'preview.fullscreen': '⤢ 全螢幕',
'preview.closeTitle': '關閉(Esc)',
'preview.loading': '正在載入{label}…',
'preview.showSidebar': '展開{label}',
'preview.hideSidebar': '收合{label}',
'misc.savedTemplate': '已儲存的範本',
'misc.primary': '主系統',
'misc.designSystem': '設計系統',
'workspace.designFiles': '設計檔案',
'workspace.focusMode': '專注工作區',
'workspace.showChat': '顯示聊天',
'workspace.closeTab': '關閉分頁',
'workspace.deleteFileConfirm': '從專案資料夾中刪除「{name}」?',
'workspace.openFromDesignFiles': '請從',
'workspace.designFilesLink': '設計檔案',
'workspace.loadingSketch': '正在載入草圖…',
'designFiles.title': '設計檔案',
'designFiles.upload': '上傳圖片',
'designFiles.pasteText': '貼上為文字檔案',
'designFiles.newSketch': '新建草圖',
'designFiles.empty': '這裡還沒有檔案。可以拖曳下方區域,或新建草圖、貼上文字。',
'designFiles.refresh': '重新整理',
'designFiles.delete': '刪除',
'designFiles.searchPlaceholder': '搜尋檔案…',
'designFiles.up': '上一層',
'designFiles.back': '返回',
'designFiles.crumbs': '專案',
'designFiles.rowMenu': '列選單',
'designFiles.openInTab': '在分頁中開啟',
'designFiles.download': '下載',
'designFiles.downloadSelected': '下載選中的 {n} 個檔案為 ZIP',
'designFiles.clearSelection': '取消選擇',
'designFiles.selectAll': '全選',
'designFiles.dropTitle': '⤓ 把檔案拖到這裡',
'designFiles.dropDesc': '圖片、文件、參考資料或資料夾 — 智慧體都會用作上下文。',
'designFiles.upload.title': '上傳一張圖片',
'designFiles.paste.title': '將文字貼上為檔案',
'designFiles.upload.label': '上傳',
'designFiles.paste.label': '貼上',
'designFiles.previewOpen': '開啟',
'designFiles.previewClose': '關閉預覽',
'designFiles.modified': '修改於 {time} · {size}',
'designFiles.weeksAgo': '{n} 週前',
'designFiles.sectionPages': '頁面',
'designFiles.sectionScripts': '腳本',
'designFiles.sectionImages': '圖片',
'designFiles.sectionSketches': '草圖',
'designFiles.sectionLiveArtifacts': '即時成品',
'designFiles.sectionOther': '其它',
'designFiles.showMore': '再顯示 {n} 個',
'designFiles.kindHtml': 'HTML 頁面',
'designFiles.kindImage': '圖片',
'designFiles.kindSketch': '草圖',
'designFiles.kindText': '文字',
'designFiles.kindCode': '腳本',
'designFiles.kindPdf': 'PDF',
'designFiles.kindDocument': '文件',
'designFiles.kindPresentation': '簡報',
'designFiles.kindSpreadsheet': '試算表',
'designFiles.kindLiveArtifact': '即時成品',
'designFiles.kindBinary': '二進位',
'quickSwitcher.placeholder': '開啟檔案…',
'quickSwitcher.empty': '此專案中沒有檔案',
'quickSwitcher.noMatches': '無符合項目',
'quickSwitcher.navigate': '導覽',
'quickSwitcher.open': '開啟',
'quickSwitcher.close': '關閉',
'pasteDialog.title': '貼上文字',
'pasteDialog.hint': '將儲存到專案資料夾中,名稱隨你定。',
'pasteDialog.fileNameLabel': '檔案名稱',
'pasteDialog.namePlaceholder': 'notes.txt',
'pasteDialog.contentLabel': '內容',
'pasteDialog.contentPlaceholder': '在此貼上任何內容…',
'pasteDialog.save': '儲存',
'pasteDialog.cancel': '取消',
'sketch.save': '儲存草圖',
'sketch.cancel': '取消',
'sketch.saving': '儲存中…',
'sketch.tooltipDirty': '尚未儲存',
'sketch.tooltipClean': '已儲存',
'fileViewer.empty': '請選擇一個檔案檢視。',
'fileViewer.loading': '載入中…',
'fileViewer.exportPptx': '匯出為 PPTX',
'fileViewer.openInNewTab': '在新分頁中開啟',
'fileViewer.copyPath': '複製路徑',
'fileViewer.copied': '已複製!',
'fileViewer.share': '分享',
'fileViewer.binaryMeta': '二進位 · {size}',
'fileViewer.binaryNote': '二進位檔案({size} 位元組)。請下載或在本機開啟檢視。',
'fileViewer.pdfMeta': 'PDF · {size}',
'fileViewer.documentMeta': '文件',
'fileViewer.presentationMeta': '簡報',
'fileViewer.spreadsheetMeta': '試算表',
'fileViewer.previewUnavailable': '無法產生預覽,請下載或開啟檔案檢視。',
'fileViewer.download': '下載',
'fileViewer.open': '開啟',
'fileViewer.imageMeta': '圖片 · {size}',
'fileViewer.reactMeta': 'React 元件 · {size}',
'fileViewer.sketchMeta': '草圖 · {size}',
'fileViewer.markdownStreamingMeta': '正在串流預覽…',
'fileViewer.markdownErrorMeta': '預覽可能不完整(產生錯誤)。',
'fileViewer.markdownStreamingStatus': '正在串流產生…顯示部分 Markdown。',
'fileViewer.markdownErrorStatus': '產生錯誤。正在顯示最後可用內容。',
'fileViewer.videoMeta': '影片 · {size}',
'fileViewer.audioMeta': '音訊 · {size}',
'fileViewer.reload': '重新載入',
'fileViewer.reloadDisk': '從磁碟重新載入',
'fileViewer.copy': '複製',
'fileViewer.copyTitle': '複製檔案內容',
'fileViewer.saveDisabled': '儲存(唯讀預覽)',
'fileViewer.save': '儲存',
'fileViewer.preview': '預覽',
'fileViewer.source': '原始碼',
'fileViewer.tweaks': '調整',
'fileViewer.comment': '評論',
'fileViewer.edit': '編輯',
'fileViewer.draw': '繪製',
'manualEdit.layers': "Layers",
'manualEdit.editableCount': "{count} editable",
'manualEdit.title': "Manual editor",
'manualEdit.selectLayer': "Select a layer",
'manualEdit.empty': "Click an element in the preview or choose a layer.",
'manualEdit.noClass': "no class",
'manualEdit.tabsAria': "Manual edit tabs",
'manualEdit.tabContent': "Content",
'manualEdit.tabStyle': "Style",
'manualEdit.tabAttributes': "Attributes",
'manualEdit.tabHtml': "Html",
'manualEdit.tabSource': "Source",
'manualEdit.attributesJson': "Attributes JSON",
'manualEdit.selectedHtml': "Selected element HTML",
'manualEdit.fullSource': "Full artifact source",
'manualEdit.applyContent': "Apply Content",
'manualEdit.applyStyle': "Apply Style",
'manualEdit.applyAttributes': "Apply Attributes",
'manualEdit.applyHtml': "Apply HTML",
'manualEdit.applySource': "Apply Source",
'manualEdit.invalidAttributes': "Invalid attributes JSON.",
'manualEdit.changes': "Changes",
'manualEdit.undo': "Undo",
'manualEdit.redo': "Redo",
'manualEdit.noChanges': "No manual edits yet.",
'manualEdit.imageUrl': "Image URL",
'manualEdit.altText': "Alt text",
'manualEdit.label': "Label",
'manualEdit.text': "Text",
'manualEdit.href': "Href",
'manualEdit.textColor': "Text color",
'manualEdit.background': "Background",
'manualEdit.fontSize': "Font size",
'manualEdit.weight': "Weight",
'manualEdit.align': "Align",
'manualEdit.padding': "Padding",
'manualEdit.margin': "Margin",
'manualEdit.radius': "Radius",
'manualEdit.border': "Border",
'manualEdit.width': "Width",
'manualEdit.minHeight': "Min height",
'fileViewer.zoomOut': '縮小',
'fileViewer.zoomIn': '放大',
'fileViewer.resetZoom': '重設縮放',
'fileViewer.reloadAria': '重新載入',
'fileViewer.previousSlide': '上一張',
'fileViewer.nextSlide': '下一張',
'fileViewer.slideNavAria': '投影片導覽',
'fileViewer.present': '簡報',
'fileViewer.presentInTab': '在當前分頁',
'fileViewer.presentFullscreen': '全螢幕',
'fileViewer.presentNewTab': '新分頁',
'fileViewer.exitPresentation': '離開簡報',
'fileViewer.shareLabel': '分享',
'fileViewer.exportPdf': '匯出為 PDF',
'fileViewer.exportPdfAllSlides': '匯出為 PDF(全部投影片)',
'fileViewer.exportPptxBusy': '請等待當前任務完成。',
'fileViewer.exportPptxHint': '請求代理將此設計轉換為 PPTX。',
'fileViewer.exportPptxNa': '此處暫不支援匯出 PPTX。',
'fileViewer.exportZip': '下載為 .zip',
'fileViewer.exportHtml': '匯出為獨立 HTML',
'fileViewer.exportMd': '匯出為 Markdown',
'fileViewer.exportJsx': '匯出為 JSX',
'fileViewer.exportReactHtml': '匯出預覽 HTML',
'fileViewer.saveAsTemplate': '儲存為範本…',
'fileViewer.savingTemplate': '正在儲存範本…',
'fileViewer.savedTemplate': '已儲存為「{name}」',
'fileViewer.savedTemplateFail': '儲存範本失敗,請重試。',
'fileViewer.templateNamePrompt': '範本名稱',
'fileViewer.templateNameDefault': '未命名範本',
'fileViewer.templateDescPrompt': '簡短描述(可選 — 這個範本用於什麼情境?)',
'liveArtifact.refresh.button': '重新整理',
'liveArtifact.refresh.buttonTitle': '重新整理此即時產物',
'liveArtifact.refresh.loadingTitle': '正在載入即時產物…',
'liveArtifact.refresh.noSourceTitle': '尚無已核准的唯讀重新整理來源。',
'liveArtifact.refresh.running': '重新整理中…',
'liveArtifact.refresh.runningMessage': '正在重新整理資料和預覽,可能需要一點時間。',
'liveArtifact.refresh.runningAction': '重新整理成功前會繼續顯示上一次預覽。',
'liveArtifact.refresh.successOne': '重新整理完成,資料已更新。',
'liveArtifact.refresh.successMany': '重新整理完成,資料已更新。',
'liveArtifact.refresh.successAction': '預覽已使用最新提交的資料重新載入。',
'liveArtifact.refresh.previousFailure': '上次重新整理失敗:{message}',
'liveArtifact.refresh.failureAction': '請檢查「重新整理紀錄」,修復來源或權限問題後重試。',
'liveArtifact.refresh.networkFailure': '重新整理請求失敗。請檢查網路連線後重試。',
'liveArtifact.refresh.genericFailure': '重新整理失敗。',
'liveArtifact.refresh.statusNever': '不可重新整理',
'liveArtifact.refresh.statusReady': '可重新整理',
'liveArtifact.refresh.statusSucceeded': '已是最新',
'liveArtifact.refresh.statusFailed': '重新整理失敗',
'fileViewer.deployToVercel': '部署到 Vercel',
'fileViewer.redeployToVercel': '重新部署',
'fileViewer.deployingToVercel': '正在部署到 Vercel…',
'fileViewer.preparingPublicLink': '正在準備公開連結…',
'fileViewer.copyDeployLink': '複製連結',
'fileViewer.deployModalTitle': '部署到 Vercel',
'fileViewer.deployModalSubtitle': '使用你自己的 Vercel 帳號部署此 HTML 作品預覽。',
'fileViewer.vercelToken': 'Vercel token',
'fileViewer.vercelTokenGetLink': '取得 Vercel token',
'fileViewer.vercelTokenPlaceholder': '貼上你的 Vercel token',
'fileViewer.vercelTokenReuseHint': '將使用已儲存的 token。輸入新 token 可替換。',
'fileViewer.vercelTokenRequired': '請先輸入並儲存 Vercel token。',
'fileViewer.vercelTeamId': 'Team ID',
'fileViewer.vercelTeamSlug': 'Team slug',
'fileViewer.optional': '可選',
'fileViewer.vercelPreviewOnly': '目前僅部署 Preview。',
'fileViewer.savingConfig': '儲存中…',
'fileViewer.deployConfigSaveFailed': '儲存 Vercel 設定失敗。',
'fileViewer.deployFailed': '部署失敗,請檢查 Vercel 設定後重試。',
'fileViewer.deployResultLabel': '部署連結',
'fileViewer.deployLinkPreparingLabel': '公開連結準備中',
'fileViewer.deployLinkDelayed': '站點已部署,Vercel 仍在準備公開連結。',
'fileViewer.deployLinkProtectedLabel': 'Vercel 存取保護已開啟',
'fileViewer.deployLinkProtected':
'站點已部署,但 Vercel 要求登入後才能存取此預覽連結。請關閉 Deployment Protection 或使用自訂網域。',
'fileViewer.retryLink': '立即重試',
'questionForm.submit': '提交',
'questionForm.skip': '跳過',
'questionForm.locked': '已回答',
'conv.switch': '切換對話',
'conv.label': '對話',
'conv.heading': '對話紀錄',
'conv.new': '+ 新建',
'conv.empty': '還沒有對話。',
'conv.untitled': '未命名對話',
'conv.renameTooltip': '雙擊重新命名',
'conv.delete': '刪除對話',
'conv.deleteConfirm': '確定刪除「{title}」?該操作會刪除其訊息。',
'agentPicker.label': '代理',
'agentPicker.modeChoose': '選擇執行模式',
'agentPicker.localCli': '本機 CLI',
'agentPicker.daemonOff': '守護程序未執行',
'agentPicker.byok': 'API · BYOK',
'agentPicker.selectAgent': '選擇已偵測到的程式碼代理 CLI',
'agentPicker.noAgents': 'PATH 中未發現代理',
'agentPicker.notInstalled': '未安裝',
'agentPicker.rescan': '重新掃描 PATH 中的代理',
'tool.openInTab': '在分頁中開啟 {name}',
'tool.open': '開啟',
'tool.todos': '待辦',
'tool.write': '寫入',
'tool.edit': '編輯',
'tool.read': '讀取',
'tool.bash': 'Bash',
'tool.glob': 'Glob',
'tool.grep': 'Grep',
'tool.fetch': '擷取',
'tool.search': '搜尋',
'tool.lines': '{n} 行',
'tool.changeSingular': '處變更',
'tool.changePlural': '處變更',
'tool.in': '於 {path}',
'tool.hide': '隱藏',
'tool.output': '輸出',
'tool.running': '執行中…',
'tool.error': '錯誤',
'tool.done': '完成',
'assistant.role': '助手',
'assistant.workingLabel': '執行中',
'assistant.doneLabel': '已完成',
'assistant.outTokens': '{n} 輸出',
'assistant.producedFiles': '本輪產出的檔案',
'assistant.openFile': '開啟',
'assistant.downloadFile': '下載',
'assistant.unfinishedLabel': '已停止,仍有未完成任務',
'assistant.unfinishedSummary': '剩餘 {n} 個任務',
'assistant.unfinishedMore': '還有 {n} 個',
'assistant.continueRemaining': '繼續剩餘任務',
'assistant.thinking': '思考中',
'assistant.systemReminder': '系統提示',
'assistant.waitingFirstOutput': '等待首批輸出中',
'assistant.statusBootingAgent': '正在啟動代理',
'assistant.statusStarting': '啟動中',
'assistant.statusRequesting': '正在傳送請求',
'assistant.statusThinking': '思考中',
'assistant.statusStreaming': '串流輸出中',
'assistant.slowHint':
'耗時比平時更久。一般 5–10 秒內會出現表單,可以「停止」後重新表達。',
'assistant.verbEditing': '編輯',
'assistant.verbWriting': '寫入',
'assistant.verbReading': '讀取',
'assistant.verbSearching': '搜尋',
'assistant.verbRunning': '執行',
'assistant.verbTodos': '待辦',
'assistant.verbFetching': '擷取',
'assistant.verbCalling': '呼叫',
'qf.answered': '已回答',
'qf.choose': '請選擇…',
'qf.required': '必填',
'qf.lockedSubmitted': '答案已傳送,代理將在本次工作階段後續使用。',
'qf.lockedPrev': '該表單來自先前的對話。',
'qf.hint': '挑選合適的選項;可選項可以跳過,代理會使用合理的預設值。',
'qf.submitDefault': '傳送答案',
'qf.submitDisabledTitle': '請先填寫必填項',
'qf.submitTitle': '傳送答案',
'qf.cardSelected': '已選',
'qf.cardRefs': '參考:',
'qf.cardSampleText': '飛燕環宇 · 0123',
'sketch.toolSelect': '選擇(佔位)',
'sketch.toolPen': '鋼筆',
'sketch.toolText': '文字',
'sketch.toolRect': '矩形',
'sketch.toolArrow': '箭頭',
'sketch.toolEraser': '橡皮擦',
'sketch.color': '顏色',
'sketch.strokeSize': '描邊粗細',
'sketch.undo': '復原',
'sketch.clear': '清除',
'sketch.close': '關閉',
'sketch.textPrompt': '請輸入文字:',
'pet.title': '寵物',
'pet.tabBuiltIn': '內建',
'pet.tabBuiltInHint': 'Open Design 內建的精選寵物 — 一鍵領養。',
'pet.builtInEmpty': '目前無法載入內建寵物。等本地服務恢復後,重新整理「社群」頁籤再試。',
'pet.tabCustom': '自訂',
'pet.tabCustomHint': '自己命名、選符號或上傳精靈圖。',
'pet.tabCommunity': '社群',
'pet.tabCommunityHint': '來自 Codex 的孵化寵物 — 領養或用 AI 生成新的。',
'pet.tabsAria': '寵物來源',
'pet.subtitle': '領養一隻小寵物,讓它陪你一起設計。',
'pet.navTitle': '寵物',
'pet.navHint': '領養與自訂',
'pet.adopt': '領養',
'pet.adoptedBadge': '已領養',
'pet.adoptCallout': '領養一隻寵物',
'pet.changePet': '更換寵物',
'pet.wake': '喚醒',
'pet.tuck': '收起',
'pet.wakeTitle': '喚醒寵物 — 顯示浮窗。',
'pet.tuckTitle': '收起寵物 — 隱藏浮窗。',
'pet.settingsTitle': '開啟寵物設定',
'pet.useCustom': '使用我的寵物',
'pet.customTitle': '自訂你的寵物',
'pet.customHint': '挑一個名字、表情和主題色,浮窗會即時更新。',
'pet.customGreetingPlaceholder': '來自寵物的問候…',
'pet.fieldName': '名字',
'pet.fieldGlyph': '表情',
'pet.fieldGlyphHint': '建議使用單個 emoji(例如 🐝、🦄、🐢)。',
'pet.fieldGreeting': '問候語',
'pet.fieldAccent': '主題色',
'pet.fieldAccentCustom': '自訂顏色',
'pet.overlayAria': '寵物夥伴',
'pet.spriteAria': '{name} — 拖曳可移動,點擊與它互動',
'pet.spriteTitle': '{name} 來打招呼啦!點擊聊天。',
'pet.railAria': '寵物選擇器',
'pet.railTitle': '寵物',
'pet.railHint': '挑一隻小夥伴,讓牠在你的工作區裡漂著。',
'pet.railExpand': '展開寵物選擇器',
'pet.railCollapse': '收起寵物選擇器',
'pet.railHide': '隱藏寵物選擇器',
'pet.railShow': '顯示寵物選擇器',
'pet.railCustomFlavor': '自訂 — 名字、表情、顏色都行。',
'pet.railCustomize': '自訂…',
'pet.composerTitle': '寵物 — 喚醒、收起或挑一隻',
'pet.composerMenuTitle': '寵物',
'pet.composerMenuHint': '小提示:輸入 /pet 即可切換',
'pet.composerOpenSettings': '在設定中自訂',
'pet.welcomeTeaserTitle': '領養一隻寵物',
'pet.welcomeTeaserBody': '一隻小小的浮窗夥伴,會陪你工作。',
'pet.welcomeTeaserCta': '挑一隻',
'pet.imageUpload': '上傳形象',
'pet.imageReplace': '替換形象',
'pet.imageRemove': '改用 emoji',
'pet.imageHintIdle': '支援 PNG / JPG / WebP / GIF / SVG。要做精靈動畫?傳一張橫向序列圖並設定影格數。',
'pet.imageHintActive': '正在使用你上傳的形象。把影格數設為 > 1,橫向序列圖就會動起來。',
'pet.fieldFrames': '影格數',
'pet.fieldFramesHint': '1 = 靜態;> 1 = 橫向序列圖。',
'pet.fieldFps': '速度 (fps)',
'pet.fieldFpsHint': '控制序列圖播放速度。',
'pet.atlasImport': '匯入 Codex 精靈圖',
'pet.atlasImportTitle': '匯入 hatch-pet 8x9 / 192x208 精靈圖(PNG 或 WebP)。',
'pet.atlasPickerTitle': '選擇動畫列',
'pet.atlasPickerHint': 'Codex 寵物自帶 9 個動畫狀態。預設會保留完整精靈圖,寵物會根據懸停、拖曳方向、長時間閒置自動切換動畫。也可以只保留一個迴圈。',
'pet.atlasCancel': '捨棄精靈圖',
'pet.atlasAdopt': '鎖定這一列',
'pet.atlasAdoptFull': '使用完整精靈圖(動態)',
'pet.atlasAdoptFullTitle': '保留所有動畫列,讓寵物對懸停、拖曳方向以及長時間閒置做出反應。',
'pet.atlasAdoptRowTitle': '只把高亮的這一列切成單迴圈條帶。',
'pet.atlasActiveHint': '動態精靈圖已啟用 — 寵物會依據你的互動(懸停、拖曳、閒置)自動切換動畫。',
'pet.atlasRow.idle': '待機',
'pet.atlasRow.running-right': '向右跑',
'pet.atlasRow.running-left': '向左跑',
'pet.atlasRow.waving': '揮手',
'pet.atlasRow.jumping': '跳躍',
'pet.atlasRow.failed': '失敗',
'pet.atlasRow.waiting': '等待',
'pet.atlasRow.running': '奔跑',
'pet.atlasRow.review': '審視',
'pet.hatchTitle': '用 AI 孵化新寵物',
'pet.hatchHint': '透過聊天呼叫內建的 hatch-pet 技能產生 Codex 風格的精靈圖,完成後回到這裡匯入。',
'pet.hatchConcept': '寵物概念(可選)',
'pet.hatchConceptPlaceholder': '例如:一隻穿著毛衣的像素風柴犬',
'pet.hatchCopy': '複製提示詞',
'pet.hatchCopied': '已複製!',
'pet.hatchFoot': '技能儲存好寵物後,回到這裡點擊「匯入 Codex 精靈圖」即可。',
'pet.slashPopoverAria': '斜線命令',
'pet.slashPopoverTitle': '命令',
'pet.slashPopoverHint': '↑↓ 切換 · enter 選擇 · esc 關閉',
'pet.slashPet': '切換、領養或跳到寵物設定。',
'pet.slashPetWake': '喚醒漂浮的寵物。',
'pet.slashPetTuck': '把寵物收起來。',
'pet.slashHatch': '呼叫 hatch-pet 技能生成一隻 Codex 寵物。',
'pet.slashHatchArg': '<概念>',
'pet.codexTitle': '最近孵化',
'pet.codexSubtitle': 'hatch-pet 技能打包的寵物會出現在這裡,可一鍵領養。',
'pet.codexSubtitleWithDir': '正在掃描 {dir},尋找 hatch-pet 技能打包的寵物。',
'pet.codexEmpty': '還沒有孵化的寵物。在聊天中輸入 /hatch 來生成一隻。',
'pet.codexLoading': '正在尋找已孵化的寵物…',
'pet.codexRefresh': '重新整理',
'pet.codexAdopt': '領養',
'pet.codexAdopting': '領養中…',
'pet.communitySync': '下載社群寵物',
'pet.communitySyncing': '下載中…',
'pet.communitySyncTitle': '從 Codex Pet Share 與 j20 Hatchery 同步最新寵物到 ~/.codex/pets/。',
'pet.communitySyncDone': '已同步 {wrote} 個新寵物(共 {total} 個)。',
'pet.communitySyncFailed': '同步失敗:{error}',
'pet.codexBundled': '內建',
'pet.codexBundledTitle': 'Open Design 內建寵物,無需下載。',
'settings.notifications': '通知',
'settings.notificationsHint': '任務完成時的音效和桌面通知',
'settings.notifyCompletionSound': '完成提示音',
'settings.notifyCompletionSoundHint': '一輪任務結束時播放,預設關閉',
'settings.notifySuccessSound': '成功音色',
'settings.notifyFailureSound': '失敗音色',
'settings.notifyDesktop': '桌面通知',
'settings.notifyDesktopHint': '視窗不在前景時跳出系統通知',
'settings.notifyDesktopBlocked': '瀏覽器已拒絕通知權限,請在網站設定中開啟',
'settings.notifyDesktopUnsupported': '當前環境不支援桌面通知',
'settings.notifyTest': '測試通知',
'settings.notifyTestSent': '測試通知已送出;如果沒有彈窗,請檢查瀏覽器和系統通知設定。',
'settings.notifyTestFailed': '通知呼叫失敗,請檢查瀏覽器和系統通知設定。',
'settings.notifySoundDing': '叮',
'settings.notifySoundChime': '風鈴',
'settings.notifySoundTwoToneUp': '上行雙音',
'settings.notifySoundPluck': '撥弦',
'settings.notifySoundBuzz': '蜂鳴',
'settings.notifySoundTwoToneDown': '下行雙音',
'settings.notifySoundThud': '低響',
'settings.library': '技能與設計系統',
'settings.libraryHint': '瀏覽、預覽和管理您的內容庫',
'settings.librarySkills': '技能',
'settings.libraryDesignSystems': '設計系統',
'settings.librarySearch': '搜尋...',
'settings.libraryAll': '全部',
'settings.libraryPreview': '預覽',
'settings.libraryPreviewClose': '關閉',
'settings.libraryLoading': '載入中...',
'settings.libraryNoResults': '沒有符合的項目。',
'settings.libraryEnabled': '已啟用',
'settings.libraryDisabled': '已停用',
'settings.libraryToggleLabel': '切換',
'notify.successTitle': '任務已完成',
'notify.failureTitle': '任務失敗',
'notify.successBody': '一輪回答已經寫完。',
'notify.failureBody': '本輪任務出錯,請查看錯誤訊息。',
};
File diff suppressed because it is too large Load Diff
+11050
View File
File diff suppressed because it is too large Load Diff
+500
View File
@@ -0,0 +1,500 @@
/**
* Single source of truth for the media-generation model registry.
*
* Both the frontend (NewProjectPanel model pickers, Settings dialog
* provider list) and the daemon (od media generate dispatcher) consume
* this registry. When you add a model entry here, the picker shows it,
* the daemon can dispatch to it, and the Settings dialog knows which
* API keys are needed.
*
* The model catalogue mirrors the breadth of lobehub's model-bank:
* every image / video model that lobehub natively supports is listed
* here so the user can pick from the same surface area without us
* re-implementing every provider's transport. For provider integrations
* we only ship the two flagship paths today — OpenAI (gpt-image-*) and
* Volcengine Ark (Seedance 2.0) — the rest fall back to a placeholder
* with a clear "no provider integration yet" note. The contract the
* code agent follows is identical regardless.
*
* The daemon imports the JS mirror of this file at
* daemon/media-models.js (kept in sync by review).
*/
import type { AudioKind, MediaAspect } from '../types';
/**
* Provider identifier — used both as a grouping key in the picker and as
* the lookup key for API-credentials in `AppConfig.mediaProviders`. New
* providers must be added to {@link MEDIA_PROVIDERS} below.
*/
export type MediaProviderId =
| 'openai'
| 'volcengine'
| 'grok'
| 'hyperframes'
| 'nanobanana'
| 'bfl'
| 'fal'
| 'replicate'
| 'google'
| 'midjourney'
| 'kling'
| 'minimax'
| 'suno'
| 'udio'
| 'elevenlabs'
| 'fishaudio'
| 'stub';
export interface MediaProvider {
id: MediaProviderId;
/** Display name shown in Settings + ModelPicker headers. */
label: string;
/** Short marketing-style sub-label. */
hint: string;
/** Whether the daemon ships a real integration for this provider. */
integrated: boolean;
/** Whether the provider needs user-supplied credentials. */
credentialsRequired?: boolean;
/** Whether the provider should appear in Settings -> Media. */
settingsVisible?: boolean;
/** Default base URL the daemon hits when no override is configured. */
defaultBaseUrl?: string;
/** Documentation URL for getting an API key. */
docsUrl?: string;
/** Whether Settings should expose a custom model override field. */
supportsCustomModel?: boolean;
}
/**
* Catalogue of providers. The Settings dialog renders one section per
* entry; the new-project model picker uses {@link integrated} to flag
* cards that will silently fall back to a stub if the user hasn't
* configured a key.
*/
export const MEDIA_PROVIDERS: MediaProvider[] = [
{
id: 'openai',
label: 'OpenAI',
hint: 'gpt-image-2 / dall-e-3',
integrated: true,
defaultBaseUrl: 'https://api.openai.com/v1',
docsUrl: 'https://platform.openai.com/api-keys',
},
{
id: 'volcengine',
label: 'Volcengine Ark (Doubao)',
hint: 'Seedance 2.0 / Seedream',
integrated: true,
defaultBaseUrl: 'https://ark.cn-beijing.volces.com/api/v3',
docsUrl: 'https://console.volcengine.com/ark',
},
{
id: 'grok',
label: 'xAI Grok Imagine',
hint: 'grok-imagine — image + video with native audio',
integrated: true,
defaultBaseUrl: 'https://api.x.ai/v1',
docsUrl: 'https://docs.x.ai/developers/model-capabilities/video/generation',
},
{
id: 'hyperframes',
label: 'HyperFrames',
hint: 'Local HTML -> MP4 renderer',
integrated: true,
credentialsRequired: false,
settingsVisible: false,
docsUrl: 'https://hyperframes.heygen.com',
},
{
id: 'nanobanana',
label: 'Nano Banana',
hint: 'Google official by default; custom gateway configurable',
integrated: true,
defaultBaseUrl: 'https://generativelanguage.googleapis.com',
docsUrl: 'https://ai.google.dev/gemini-api/docs/api-key',
supportsCustomModel: true,
},
{
id: 'bfl',
label: 'Black Forest Labs',
hint: 'FLUX 1.1 Pro / FLUX Pro / Dev',
integrated: false,
defaultBaseUrl: 'https://api.bfl.ai',
docsUrl: 'https://docs.bfl.ai/quick_start/create_account',
},
{
id: 'fal',
label: 'Fal.ai',
hint: 'Sora / Seedance / Veo / FLUX',
integrated: false,
defaultBaseUrl: 'https://fal.run',
docsUrl: 'https://fal.ai/dashboard/keys',
},
{
id: 'replicate',
label: 'Replicate',
hint: 'FLUX / SDXL / Ideogram',
integrated: false,
defaultBaseUrl: 'https://api.replicate.com/v1',
docsUrl: 'https://replicate.com/account/api-tokens',
},
{
id: 'google',
label: 'Google AI / Vertex',
hint: 'Imagen 4 / Veo 3 / Lyria',
integrated: false,
docsUrl: 'https://ai.google.dev/gemini-api/docs/api-key',
},
{
id: 'kling',
label: 'Kuaishou Kling',
hint: 'Kling 1.6 / 2.0 video',
integrated: false,
docsUrl: 'https://klingai.com/dev-center',
},
{
id: 'midjourney',
label: 'Midjourney (proxy)',
hint: 'midjourney-v7',
integrated: false,
},
{
id: 'minimax',
label: 'MiniMax',
hint: 'TTS / video-01',
integrated: true,
defaultBaseUrl: 'https://api.minimaxi.chat/v1',
docsUrl: 'https://platform.minimaxi.com',
},
{
id: 'suno',
label: 'Suno',
hint: 'Music generation',
integrated: false,
},
{
id: 'udio',
label: 'Udio',
hint: 'Music generation',
integrated: false,
},
{
id: 'elevenlabs',
label: 'ElevenLabs',
hint: 'Voice / SFX',
integrated: false,
docsUrl: 'https://elevenlabs.io/app/settings/api-keys',
},
{
id: 'fishaudio',
label: 'FishAudio',
hint: 'Speech / voice clone',
integrated: true,
defaultBaseUrl: 'https://api.fish.audio',
docsUrl: 'https://fish.audio',
},
{
id: 'stub',
label: 'Stub (placeholder)',
hint: 'Deterministic local placeholder bytes',
integrated: true,
},
];
export interface MediaModel {
/** Stable ID used in metadata.imageModel / videoModel / audioModel. */
id: string;
/** Short label shown in pickers. */
label: string;
/** Vendor / context hint shown under the label. */
hint: string;
/** Provider this model is dispatched through. */
provider: MediaProviderId;
/**
* Capabilities the agent may rely on when planning. Used downstream by
* the dispatcher to decide which provider call to make.
*/
caps?: string[];
/** Marks the default-checked card per surface in the picker. */
default?: boolean;
}
/**
* Image generation models. Mirrors the breadth of
* `packages/model-bank/src/aiModels/openai.ts` and friends in lobehub.
*/
export const IMAGE_MODELS: MediaModel[] = [
// OpenAI — fully integrated path.
{
id: 'gpt-image-2',
label: 'gpt-image-2',
hint: 'OpenAI · 4K, native multimodal',
provider: 'openai',
caps: ['t2i', 'i2i', 'inpaint'],
default: true,
},
{
id: 'gpt-image-1.5',
label: 'gpt-image-1.5',
hint: 'OpenAI · 4× faster than gpt-image-1',
provider: 'openai',
caps: ['t2i', 'i2i', 'inpaint'],
},
{
id: 'gpt-image-1',
label: 'gpt-image-1',
hint: 'OpenAI · ChatGPT native',
provider: 'openai',
caps: ['t2i', 'i2i', 'inpaint'],
},
{
id: 'gpt-image-1-mini',
label: 'gpt-image-1-mini',
hint: 'OpenAI · low-cost variant',
provider: 'openai',
caps: ['t2i', 'i2i'],
},
{
id: 'dall-e-3',
label: 'dall-e-3',
hint: 'OpenAI · classic',
provider: 'openai',
caps: ['t2i'],
},
{
id: 'dall-e-2',
label: 'dall-e-2',
hint: 'OpenAI · legacy',
provider: 'openai',
caps: ['t2i'],
},
// Volcengine — Doubao Seedream image generation.
{
id: 'doubao-seedream-3-0-t2i-250415',
label: 'seedream-3.0',
hint: 'ByteDance · Doubao image',
provider: 'volcengine',
caps: ['t2i'],
},
{
id: 'doubao-seededit-3-0-i2i-250628',
label: 'seededit-3.0',
hint: 'ByteDance · image edit',
provider: 'volcengine',
caps: ['i2i'],
},
// xAI Grok Imagine — text-to-image (1k/2k, 11+ aspect ratios).
{
id: 'grok-imagine-image',
label: 'grok-imagine-image',
hint: 'xAI · 2K text-to-image',
provider: 'grok',
caps: ['t2i'],
},
// Nano Banana — Google-compatible generateContent image path.
{
id: 'gemini-3.1-flash-image-preview',
label: 'nano-banana-2',
hint: 'Nano Banana · text-to-image',
provider: 'nanobanana',
caps: ['t2i'],
},
// Black Forest Labs FLUX family.
{ id: 'flux-1.1-pro', label: 'flux-1.1-pro', hint: 'BFL · flagship', provider: 'bfl', caps: ['t2i', 'i2i'] },
{ id: 'flux-pro', label: 'flux-pro', hint: 'BFL', provider: 'bfl', caps: ['t2i'] },
{ id: 'flux-dev', label: 'flux-dev', hint: 'BFL · open weights', provider: 'bfl', caps: ['t2i'] },
{ id: 'flux-schnell', label: 'flux-schnell', hint: 'BFL · fast', provider: 'bfl', caps: ['t2i'] },
{ id: 'flux-kontext-pro', label: 'flux-kontext-pro', hint: 'BFL · in-context edits', provider: 'bfl', caps: ['t2i', 'i2i'] },
// Google.
{ id: 'imagen-4', label: 'imagen-4', hint: 'Google · latest', provider: 'google', caps: ['t2i'] },
{ id: 'imagen-3', label: 'imagen-3', hint: 'Google', provider: 'google', caps: ['t2i'] },
{ id: 'gemini-3-pro-image-preview', label: 'gemini-3-pro-image', hint: 'Google · Nano Banana Pro', provider: 'google', caps: ['t2i', 'i2i'] },
// Replicate / Fal hosted image models.
{ id: 'ideogram-v2', label: 'ideogram-v2', hint: 'Replicate · typography', provider: 'replicate', caps: ['t2i'] },
{ id: 'sdxl', label: 'stable-diffusion-xl', hint: 'Replicate · SDXL', provider: 'replicate', caps: ['t2i'] },
{ id: 'sd-3.5', label: 'stable-diffusion-3.5', hint: 'Fal · SD 3.5', provider: 'fal', caps: ['t2i'] },
// Midjourney via community proxies.
{ id: 'midjourney-v7', label: 'midjourney-v7', hint: 'Midjourney · via proxy', provider: 'midjourney', caps: ['t2i'] },
];
/**
* Video generation models. Mirrors lobehub's volcengine.ts (Seedance,
* Seedance Lite), kling.ts and friends.
*/
export const VIDEO_MODELS: MediaModel[] = [
// Volcengine — Seedance 2.0 (integrated).
{
id: 'doubao-seedance-2-0-260128',
label: 'seedance-2.0',
hint: 'ByteDance · t2v + i2v + audio',
provider: 'volcengine',
caps: ['t2v', 'i2v', 'audio'],
default: true,
},
{
id: 'doubao-seedance-2-0-fast-260128',
label: 'seedance-2.0-fast',
hint: 'ByteDance · faster, cheaper',
provider: 'volcengine',
caps: ['t2v', 'i2v', 'audio'],
},
{
id: 'doubao-seedance-1-0-pro-250528',
label: 'seedance-1.0-pro',
hint: 'ByteDance · 1.0',
provider: 'volcengine',
caps: ['t2v', 'i2v'],
},
{
id: 'doubao-seedance-1-0-lite-i2v-250428',
label: 'seedance-1.0-lite-i2v',
hint: 'ByteDance · image-to-video',
provider: 'volcengine',
caps: ['i2v'],
},
{
id: 'doubao-seedance-1-0-lite-t2v-250428',
label: 'seedance-1.0-lite-t2v',
hint: 'ByteDance · text-to-video',
provider: 'volcengine',
caps: ['t2v'],
},
// xAI Grok Imagine — 720p t2v + i2v with natively generated audio.
{
id: 'grok-imagine-video',
label: 'grok-imagine-video',
hint: 'xAI · 720p t2v + i2v + native audio',
provider: 'grok',
caps: ['t2v', 'i2v', 'audio'],
},
// Kuaishou Kling.
{ id: 'kling-2.0', label: 'kling-2.0', hint: 'Kuaishou · latest', provider: 'kling', caps: ['t2v', 'i2v'] },
{ id: 'kling-1.6', label: 'kling-1.6', hint: 'Kuaishou', provider: 'kling', caps: ['t2v', 'i2v'] },
{ id: 'kling-1.5', label: 'kling-1.5', hint: 'Kuaishou', provider: 'kling', caps: ['t2v', 'i2v'] },
// Google Veo.
{ id: 'veo-3', label: 'veo-3', hint: 'Google · sound-on', provider: 'google', caps: ['t2v', 'audio'] },
{ id: 'veo-2', label: 'veo-2', hint: 'Google', provider: 'google', caps: ['t2v'] },
// OpenAI Sora (via Fal hosting today).
{ id: 'sora-2', label: 'sora-2', hint: 'OpenAI · via Fal', provider: 'fal', caps: ['t2v'] },
{ id: 'sora-2-pro', label: 'sora-2-pro', hint: 'OpenAI · via Fal', provider: 'fal', caps: ['t2v'] },
// MiniMax video.
{ id: 'minimax-video-01', label: 'video-01', hint: 'MiniMax · Hailuo', provider: 'minimax', caps: ['t2v', 'i2v'] },
{ id: 'hyperframes-html', label: 'hyperframes-html', hint: 'HyperFrames · local HTML renderer', provider: 'hyperframes', caps: ['t2v'] },
];
export const AUDIO_MODELS_BY_KIND: Record<AudioKind, MediaModel[]> = {
music: [
{ id: 'suno-v5', label: 'suno-v5', hint: 'Suno · default', provider: 'suno', caps: ['music'], default: true },
{ id: 'suno-v4-5', label: 'suno-v4.5', hint: 'Suno', provider: 'suno', caps: ['music'] },
{ id: 'udio-v2', label: 'udio-v2', hint: 'Udio', provider: 'udio', caps: ['music'] },
{ id: 'lyria-2', label: 'lyria-2', hint: 'Google', provider: 'google', caps: ['music'] },
],
speech: [
{ id: 'gpt-4o-mini-tts', label: 'gpt-4o-mini-tts', hint: 'OpenAI · expressive TTS', provider: 'openai', caps: ['tts'] },
{ id: 'minimax-tts', label: 'minimax-tts', hint: 'MiniMax · default', provider: 'minimax', caps: ['tts'], default: true },
{ id: 'fish-speech-2', label: 'fish-speech-2', hint: 'FishAudio', provider: 'fishaudio', caps: ['tts', 'voice-clone'] },
{ id: 'elevenlabs-v3', label: 'elevenlabs-v3', hint: 'ElevenLabs', provider: 'elevenlabs', caps: ['tts', 'voice-clone'] },
{ id: 'doubao-tts', label: 'doubao-tts', hint: 'Volcengine · TTS', provider: 'volcengine', caps: ['tts'] },
],
sfx: [
{ id: 'elevenlabs-sfx', label: 'elevenlabs-sfx', hint: 'ElevenLabs SFX', provider: 'elevenlabs', caps: ['sfx'], default: true },
{ id: 'audiocraft', label: 'audiocraft', hint: 'Meta · open', provider: 'replicate', caps: ['sfx', 'music'] },
],
};
export const MEDIA_ASPECTS: MediaAspect[] = ['1:1', '16:9', '9:16', '4:3', '3:4'];
export const VIDEO_LENGTHS_SEC: number[] = [3, 5, 8, 10, 15, 30];
export const AUDIO_DURATIONS_SEC: number[] = [5, 10, 15, 30, 60, 120];
export const DEFAULT_IMAGE_MODEL =
IMAGE_MODELS.find((m) => m.default)?.id ?? IMAGE_MODELS[0]!.id;
export const DEFAULT_VIDEO_MODEL =
VIDEO_MODELS.find((m) => m.default)?.id ?? VIDEO_MODELS[0]!.id;
export const DEFAULT_AUDIO_MODEL: Record<AudioKind, string> = {
music:
AUDIO_MODELS_BY_KIND.music.find((m) => m.default)?.id
?? AUDIO_MODELS_BY_KIND.music[0]!.id,
speech:
AUDIO_MODELS_BY_KIND.speech.find((m) => m.default)?.id
?? AUDIO_MODELS_BY_KIND.speech[0]!.id,
sfx:
AUDIO_MODELS_BY_KIND.sfx.find((m) => m.default)?.id
?? AUDIO_MODELS_BY_KIND.sfx[0]!.id,
};
/**
* Look up a model record across all surfaces by ID. Returns null if the
* agent passes an unknown model — the dispatcher rejects with a clear
* error so the agent re-plans instead of silently falling back.
*/
export function findMediaModel(id: string): MediaModel | null {
const all: MediaModel[] = [
...IMAGE_MODELS,
...VIDEO_MODELS,
...AUDIO_MODELS_BY_KIND.music,
...AUDIO_MODELS_BY_KIND.speech,
...AUDIO_MODELS_BY_KIND.sfx,
];
return all.find((m) => m.id === id) ?? null;
}
export function findProvider(id: MediaProviderId): MediaProvider | null {
return MEDIA_PROVIDERS.find((p) => p.id === id) ?? null;
}
/** All model IDs grouped by surface, used for prompt-side disclosure. */
export function modelIdsBySurface(): {
image: string[];
video: string[];
audio: { music: string[]; speech: string[]; sfx: string[] };
} {
return {
image: IMAGE_MODELS.map((m) => m.id),
video: VIDEO_MODELS.map((m) => m.id),
audio: {
music: AUDIO_MODELS_BY_KIND.music.map((m) => m.id),
speech: AUDIO_MODELS_BY_KIND.speech.map((m) => m.id),
sfx: AUDIO_MODELS_BY_KIND.sfx.map((m) => m.id),
},
};
}
/**
* Group a flat list of {@link MediaModel} by provider while preserving
* the catalogue order. Used by the picker to render section headers.
*/
export function groupByProvider(models: MediaModel[]): Array<{
provider: MediaProvider;
models: MediaModel[];
}> {
const order: MediaProviderId[] = [];
const map = new Map<MediaProviderId, MediaModel[]>();
for (const m of models) {
if (!map.has(m.provider)) {
order.push(m.provider);
map.set(m.provider, []);
}
map.get(m.provider)!.push(m);
}
return order
.map((id) => {
const provider = findProvider(id);
const list = map.get(id) ?? [];
return provider ? { provider, models: list } : null;
})
.filter((entry): entry is { provider: MediaProvider; models: MediaModel[] } => entry != null);
}
@@ -0,0 +1,13 @@
import type { AppConfig, ChatMessage } from '../types';
import type { StreamHandlers } from './anthropic';
import { streamProxyEndpoint } from './api-proxy';
export async function streamMessageAnthropicProxy(
cfg: AppConfig,
system: string,
history: ChatMessage[],
signal: AbortSignal,
handlers: StreamHandlers,
): Promise<void> {
return streamProxyEndpoint('/api/proxy/anthropic/stream', cfg, system, history, signal, handlers);
}
+88
View File
@@ -0,0 +1,88 @@
/**
* Thin wrapper over @anthropic-ai/sdk. Minimal analog of
* packages/providers/src/index.ts in the reference repo.
*
* Runs in the browser with dangerouslyAllowBrowser — this is a BYOK local-
* first tool, so the key is the user's and never leaves their machine. If
* you later move to a server-hosted build, drop that flag and proxy through
* your own backend.
*/
import Anthropic from '@anthropic-ai/sdk';
import { effectiveMaxTokens } from '../state/maxTokens';
import type { AppConfig, ChatMessage } from '../types';
import { streamMessageAnthropicProxy } from './anthropic-compatible';
import { streamMessageAzure } from './azure-compatible';
import { streamMessageGoogle } from './google-compatible';
import { isOpenAICompatible, streamMessageOpenAI } from './openai-compatible';
// Re-export for convenience
export { isOpenAICompatible } from './openai-compatible';
export interface StreamHandlers {
onDelta: (textDelta: string) => void;
onDone: (fullText: string) => void;
onError: (err: Error) => void;
}
export function makeClient(cfg: AppConfig): Anthropic {
return new Anthropic({
apiKey: cfg.apiKey,
baseURL: cfg.baseUrl || undefined,
dangerouslyAllowBrowser: true,
});
}
export async function streamMessage(
cfg: AppConfig,
system: string,
history: ChatMessage[],
signal: AbortSignal,
handlers: StreamHandlers,
): Promise<void> {
// Prefer the explicit Settings protocol; keep the legacy heuristic as a
// fallback for configs saved before apiProtocol existed.
if (cfg.apiProtocol === 'azure') {
return streamMessageAzure(cfg, system, history, signal, handlers);
}
if (cfg.apiProtocol === 'google') {
return streamMessageGoogle(cfg, system, history, signal, handlers);
}
if (cfg.apiProtocol === 'openai' || (!cfg.apiProtocol && isOpenAICompatible(cfg.model, cfg.baseUrl))) {
return streamMessageOpenAI(cfg, system, history, signal, handlers);
}
if (cfg.baseUrl && cfg.baseUrl !== 'https://api.anthropic.com') {
return streamMessageAnthropicProxy(cfg, system, history, signal, handlers);
}
if (!cfg.apiKey) {
handlers.onError(new Error('Missing API key — open Settings and paste one in.'));
return;
}
const client = makeClient(cfg);
let acc = '';
try {
const stream = client.messages.stream(
{
model: cfg.model,
max_tokens: effectiveMaxTokens(cfg),
system,
messages: history.map((m) => ({ role: m.role, content: m.content })),
},
{ signal },
);
stream.on('text', (delta) => {
acc += delta;
handlers.onDelta(delta);
});
await stream.finalMessage();
handlers.onDone(acc);
} catch (err) {
if ((err as Error).name === 'AbortError') return;
handlers.onError(err instanceof Error ? err : new Error(String(err)));
}
}
+96
View File
@@ -0,0 +1,96 @@
import { effectiveMaxTokens } from '../state/maxTokens';
import type { AppConfig, ChatMessage } from '../types';
import type { StreamHandlers } from './anthropic';
import { parseSseFrame } from './sse';
export async function streamProxyEndpoint(
endpoint: string,
cfg: AppConfig,
system: string,
history: ChatMessage[],
signal: AbortSignal,
handlers: StreamHandlers,
): Promise<void> {
if (!cfg.apiKey) {
handlers.onError(new Error('Missing API key — open Settings and paste one in.'));
return;
}
let acc = '';
try {
const resp = await fetch(endpoint, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
baseUrl: cfg.baseUrl,
apiKey: cfg.apiKey,
model: cfg.model,
systemPrompt: system,
messages: history.map((m) => ({ role: m.role, content: m.content })),
maxTokens: effectiveMaxTokens(cfg),
apiVersion: cfg.apiVersion,
}),
signal,
});
if (!resp.ok || !resp.body) {
const text = await resp.text().catch(() => '');
handlers.onError(new Error(`proxy ${resp.status}: ${text || 'no body'}`));
return;
}
const reader = resp.body.getReader();
const decoder = new TextDecoder();
let buf = '';
while (true) {
const { value, done } = await reader.read();
if (done) break;
buf += decoder.decode(value, { stream: true });
while (true) {
const match = buf.match(/\r?\n\r?\n/);
if (!match || match.index === undefined) break;
const frame = buf.slice(0, match.index);
buf = buf.slice(match.index + match[0].length);
const parsed = parseSseFrame(frame);
if (!parsed || parsed.kind !== 'event') continue;
if (parsed.event === 'delta') {
const text = String(parsed.data.delta ?? parsed.data.text ?? '');
if (text) {
acc += text;
handlers.onDelta(text);
}
continue;
}
if (parsed.event === 'error') {
handlers.onError(new Error(proxyErrorMessage(parsed.data)));
return;
}
if (parsed.event === 'end') {
handlers.onDone(acc);
return;
}
}
}
handlers.onDone(acc);
} catch (err) {
if ((err as Error).name === 'AbortError') return;
handlers.onError(err instanceof Error ? err : new Error(String(err)));
}
}
function proxyErrorMessage(data: Record<string, unknown>): string {
const nested = data.error;
if (nested && typeof nested === 'object' && 'message' in nested) {
const message = (nested as { message?: unknown }).message;
if (typeof message === 'string' && message) return message;
}
return String(data.message ?? 'proxy error');
}
@@ -0,0 +1,13 @@
import type { AppConfig, ChatMessage } from '../types';
import type { StreamHandlers } from './anthropic';
import { streamProxyEndpoint } from './api-proxy';
export async function streamMessageAzure(
cfg: AppConfig,
system: string,
history: ChatMessage[],
signal: AbortSignal,
handlers: StreamHandlers,
): Promise<void> {
return streamProxyEndpoint('/api/proxy/azure/stream', cfg, system, history, signal, handlers);
}
+435
View File
@@ -0,0 +1,435 @@
/**
* Daemon provider — fetch-based SSE client for /api/runs. The daemon can
* emit three event streams depending on the agent's streamFormat:
* - 'agent' : typed events emitted by Claude Code's stream-json parser
* (status, text_delta, thinking_delta, tool_use, tool_result,
* usage, raw). We forward these to the UI as AgentEvent items.
* - 'stdout' : plain chunks from other CLIs. We wrap them in a single
* rolling 'text' event.
* - 'stderr' : incidental stderr. Shown only when the process exits
* non-zero (tail appended to the error message).
*/
import type { AgentEvent, ChatCommentAttachment, ChatMessage } from '../types';
import type {
ChatRunCreateResponse,
ChatRunListResponse,
ChatRunStatus,
ChatRunStatusResponse,
ChatRequest,
ChatSseEvent,
ChatSseStartPayload,
DaemonAgentPayload,
SseErrorPayload,
} from '@open-design/contracts';
import type { StreamHandlers } from './anthropic';
import { parseSseFrame } from './sse';
export interface DaemonStreamHandlers extends StreamHandlers {
onAgentEvent: (ev: AgentEvent) => void;
}
export interface DaemonStreamOptions {
agentId: string;
history: ChatMessage[];
/** Legacy field accepted by older tests/callers. Daemon-owned prompt composition ignores it. */
systemPrompt?: string;
/** Stops the current browser-side SSE subscription. The daemon run continues. */
signal: AbortSignal;
/** Explicit user cancellation signal. This maps to POST /api/runs/:id/cancel. */
cancelSignal?: AbortSignal;
handlers: DaemonStreamHandlers;
// The active project's id. When supplied, the daemon spawns the agent
// with cwd = the project folder so its file tools target the right
// workspace.
projectId?: string | null;
conversationId?: string | null;
assistantMessageId?: string | null;
clientRequestId?: string | null;
skillId?: string | null;
designSystemId?: string | null;
// Project-relative paths the user has staged for this turn. The
// daemon resolves them inside the project folder, validates they
// exist, and stitches them into the user message as `@<path>` hints.
attachments?: string[];
commentAttachments?: ChatCommentAttachment[];
// Per-CLI model + reasoning the user picked in the model menu. Both are
// optional; the daemon validates them against the agent's declared
// options and falls back to the CLI default when missing.
model?: string | null;
reasoning?: string | null;
initialLastEventId?: string | null;
onRunCreated?: (runId: string) => void;
onRunStatus?: (status: ChatRunStatus) => void;
onRunEventId?: (eventId: string) => void;
}
export interface DaemonReattachOptions {
runId: string;
signal: AbortSignal;
cancelSignal?: AbortSignal;
handlers: DaemonStreamHandlers;
initialLastEventId?: string | null;
onRunStatus?: (status: ChatRunStatus) => void;
onRunEventId?: (eventId: string) => void;
}
export async function streamViaDaemon({
agentId,
history,
signal,
cancelSignal,
handlers,
projectId,
conversationId,
assistantMessageId,
clientRequestId,
skillId,
designSystemId,
attachments,
commentAttachments,
model,
reasoning,
initialLastEventId,
onRunCreated,
onRunStatus,
onRunEventId,
}: DaemonStreamOptions): Promise<void> {
// Local CLIs are single-turn print-mode programs, so we collapse the whole
// chat into one string. If this becomes too noisy for long histories, the
// fix is to only include the final user turn.
const transcript = history
.map((m) => `## ${m.role}\n${m.content.trim()}`)
.join('\n\n');
const request: ChatRequest = {
agentId,
message: transcript,
projectId: projectId ?? null,
conversationId: conversationId ?? null,
assistantMessageId: assistantMessageId ?? null,
clientRequestId: clientRequestId ?? null,
skillId: skillId ?? null,
designSystemId: designSystemId ?? null,
attachments: attachments ?? [],
commentAttachments: commentAttachments ?? [],
model: model ?? null,
reasoning: reasoning ?? null,
};
const body = JSON.stringify(request);
try {
const createResp = await fetch('/api/runs', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body,
});
if (!createResp.ok) {
const text = await createResp.text().catch(() => '');
onRunStatus?.('failed');
handlers.onError(new Error(`daemon ${createResp.status}: ${text || 'no body'}`));
return;
}
const created = (await createResp.json()) as ChatRunCreateResponse;
const runId = created.runId;
onRunCreated?.(runId);
onRunStatus?.('queued');
await consumeDaemonRun({
runId,
signal,
cancelSignal,
handlers,
initialLastEventId,
onRunStatus,
onRunEventId,
});
} catch (err) {
if ((err as Error).name === 'AbortError') return;
onRunStatus?.('failed');
handlers.onError(err instanceof Error ? err : new Error(String(err)));
}
}
export async function reattachDaemonRun(options: DaemonReattachOptions): Promise<void> {
await consumeDaemonRun(options);
}
export async function fetchChatRunStatus(runId: string): Promise<ChatRunStatusResponse | null> {
try {
const resp = await fetch(`/api/runs/${encodeURIComponent(runId)}`);
if (!resp.ok) return null;
return (await resp.json()) as ChatRunStatusResponse;
} catch {
return null;
}
}
export async function listActiveChatRuns(
projectId: string,
conversationId: string,
): Promise<ChatRunStatusResponse[]> {
try {
const qs = new URLSearchParams({ projectId, conversationId, status: 'active' });
const resp = await fetch(`/api/runs?${qs.toString()}`);
if (!resp.ok) return [];
const body = (await resp.json()) as ChatRunListResponse;
return body.runs ?? [];
} catch {
return [];
}
}
async function consumeDaemonRun({
runId,
signal,
cancelSignal,
handlers,
initialLastEventId,
onRunStatus,
onRunEventId,
}: DaemonReattachOptions): Promise<void> {
let acc = '';
let stderrBuf = '';
let exitCode: number | null = null;
let exitSignal: string | null = null;
let endStatus: ChatRunStatus | null = null;
let lastEventId: string | null = initialLastEventId ?? null;
let canceled = false;
const cancelRun = () => {
if (canceled) return;
canceled = true;
void fetch(`/api/runs/${encodeURIComponent(runId)}/cancel`, { method: 'POST' }).catch(() => {});
};
cancelSignal?.addEventListener('abort', cancelRun, { once: true });
try {
if (cancelSignal?.aborted) {
cancelRun();
return;
}
for (let reconnects = 0; endStatus === null && reconnects < 5;) {
const qs = lastEventId ? `?after=${encodeURIComponent(lastEventId)}` : '';
let resp: Response;
try {
resp = await fetch(`/api/runs/${encodeURIComponent(runId)}/events${qs}`, {
method: 'GET',
signal,
});
} catch (err) {
if ((err as Error).name === 'AbortError') throw err;
reconnects += 1;
continue;
}
if (!resp.ok || !resp.body) {
const text = await resp.text().catch(() => '');
handlers.onError(new Error(`daemon ${resp.status}: ${text || 'no body'}`));
return;
}
const reader = resp.body.getReader();
const decoder = new TextDecoder();
let buf = '';
let sawStreamProgress = false;
while (true) {
const { value, done } = await reader.read();
if (done) break;
buf += decoder.decode(value, { stream: true });
let idx: number;
while ((idx = buf.indexOf('\n\n')) !== -1) {
const frame = buf.slice(0, idx);
buf = buf.slice(idx + 2);
const parsed = parseSseFrame(frame);
if (!parsed) continue;
if (parsed.kind === 'comment') {
sawStreamProgress = true;
continue;
}
if (parsed.kind !== 'event') continue;
sawStreamProgress = true;
if (parsed.id) {
lastEventId = parsed.id;
onRunEventId?.(parsed.id);
}
const event = parsed as unknown as ChatSseEvent;
if (event.event === 'stdout') {
const chunk = String(event.data.chunk ?? '');
acc += chunk;
handlers.onDelta(chunk);
handlers.onAgentEvent({ kind: 'text', text: chunk });
continue;
}
if (event.event === 'stderr') {
stderrBuf += event.data.chunk ?? '';
continue;
}
if (event.event === 'agent') {
const translated = translateAgentEvent(event.data);
if (!translated) continue;
if (translated.kind === 'text') {
acc += translated.text;
handlers.onDelta(translated.text);
}
handlers.onAgentEvent(translated);
continue;
}
if (event.event === 'start') {
const data = event.data as ChatSseStartPayload;
onRunStatus?.('running');
handlers.onAgentEvent({
kind: 'status',
label: 'starting',
detail: typeof data.bin === 'string' ? data.bin : undefined,
});
continue;
}
if (event.event === 'error') {
onRunStatus?.('failed');
const data = event.data as SseErrorPayload;
handlers.onError(new Error(String(data.error?.message ?? data.message ?? 'daemon error')));
return;
}
if (event.event === 'end') {
exitCode = typeof event.data.code === 'number' ? event.data.code : null;
exitSignal = typeof event.data.signal === 'string' ? event.data.signal : null;
endStatus = isChatRunStatus(event.data.status) ? event.data.status : 'succeeded';
onRunStatus?.(endStatus);
}
}
}
reconnects = sawStreamProgress ? 0 : reconnects + 1;
}
if (endStatus === null) {
const status = await fetchChatRunStatus(runId);
if (status && isChatRunStatus(status.status) && status.status !== 'queued' && status.status !== 'running') {
endStatus = status.status;
exitCode = status.exitCode ?? null;
exitSignal = status.signal ?? null;
onRunStatus?.(endStatus);
} else {
handlers.onError(new Error('daemon stream disconnected before run completed'));
return;
}
}
if (endStatus === 'canceled') return;
if (endStatus === 'failed' || exitSignal || (exitCode !== null && exitCode !== 0)) {
const tail = stderrBuf.trim().slice(-400);
handlers.onError(
new Error(`agent exited with ${exitSignal ? `signal ${exitSignal}` : `code ${exitCode}`}${tail ? `\n${tail}` : ''}`),
);
return;
}
handlers.onDone(acc);
} finally {
cancelSignal?.removeEventListener('abort', cancelRun);
}
}
function isChatRunStatus(value: unknown): value is ChatRunStatus {
return value === 'queued' || value === 'running' || value === 'succeeded' || value === 'failed' || value === 'canceled';
}
// Translate a raw `agent` SSE payload (what apps/daemon/src/claude-stream.ts emits)
// into the UI's AgentEvent union. Keep this liberal — unknown types just
// return null so the UI ignores them instead of rendering garbage.
function translateAgentEvent(data: DaemonAgentPayload): AgentEvent | null {
const t = data.type;
if (t === 'status' && typeof data.label === 'string') {
return {
kind: 'status',
label: data.label,
detail:
typeof data.model === 'string'
? data.model
: typeof data.ttftMs === 'number'
? `first token in ${Math.round((data.ttftMs as number) / 100) / 10}s`
: undefined,
};
}
if (t === 'text_delta' && typeof data.delta === 'string') {
return { kind: 'text', text: data.delta };
}
if (t === 'thinking_delta' && typeof data.delta === 'string') {
return { kind: 'thinking', text: data.delta };
}
if (t === 'thinking_start') {
return { kind: 'status', label: 'thinking' };
}
if (t === 'live_artifact') {
return {
kind: 'live_artifact',
action: data.action,
projectId: data.projectId,
artifactId: data.artifactId,
title: data.title,
refreshStatus: data.refreshStatus,
};
}
if (t === 'live_artifact_refresh') {
return {
kind: 'live_artifact_refresh',
phase: data.phase,
projectId: data.projectId,
artifactId: data.artifactId,
refreshId: data.refreshId,
title: data.title,
refreshedSourceCount: data.refreshedSourceCount,
error: data.error,
};
}
if (t === 'tool_use' && typeof data.id === 'string' && typeof data.name === 'string') {
return { kind: 'tool_use', id: data.id, name: data.name, input: data.input ?? null };
}
if (t === 'tool_result' && typeof data.toolUseId === 'string') {
return {
kind: 'tool_result',
toolUseId: data.toolUseId,
content: String(data.content ?? ''),
isError: Boolean(data.isError),
};
}
if (t === 'usage') {
const usage = (data.usage ?? {}) as Record<string, number>;
return {
kind: 'usage',
inputTokens: usage.input_tokens,
outputTokens: usage.output_tokens,
costUsd: typeof data.costUsd === 'number' ? data.costUsd : undefined,
durationMs: typeof data.durationMs === 'number' ? data.durationMs : undefined,
};
}
if (t === 'raw' && typeof data.line === 'string') {
return { kind: 'raw', line: data.line };
}
return null;
}
export async function saveArtifact(
identifier: string,
title: string,
html: string,
): Promise<{ url: string; path: string } | null> {
try {
const resp = await fetch('/api/artifacts/save', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ identifier, title, html }),
});
if (!resp.ok) return null;
return (await resp.json()) as { url: string; path: string };
} catch {
return null;
}
}
@@ -0,0 +1,13 @@
import type { AppConfig, ChatMessage } from '../types';
import type { StreamHandlers } from './anthropic';
import { streamProxyEndpoint } from './api-proxy';
export async function streamMessageGoogle(
cfg: AppConfig,
system: string,
history: ChatMessage[],
signal: AbortSignal,
handlers: StreamHandlers,
): Promise<void> {
return streamProxyEndpoint('/api/proxy/google/stream', cfg, system, history, signal, handlers);
}
@@ -0,0 +1,62 @@
/**
* OpenAI-compatible API provider. Works with any service that exposes the
* /v1/chat/completions endpoint (e.g. MiMo, DeepSeek, Groq, Together, etc.).
*
* Routes through the daemon proxy to avoid browser CORS issues.
* BYOK — the key stays on the user's machine.
*/
import type { AppConfig, ChatMessage } from '../types';
import type { StreamHandlers } from './anthropic';
import { streamProxyEndpoint } from './api-proxy';
export async function streamMessageOpenAI(
cfg: AppConfig,
system: string,
history: ChatMessage[],
signal: AbortSignal,
handlers: StreamHandlers,
): Promise<void> {
return streamProxyEndpoint('/api/proxy/openai/stream', cfg, system, history, signal, handlers);
}
/**
* Detect whether a model ID / base URL should use the OpenAI-compatible
* provider rather than the Anthropic SDK.
*/
export function isOpenAICompatible(model: string, baseUrl: string): boolean {
const m = model.toLowerCase();
const u = baseUrl.toLowerCase();
const parsed = new URL(u || 'https://api.anthropic.com', 'https://local.invalid');
const pathSegments = parsed.pathname.split('/').filter(Boolean);
const isOfficialAnthropic = parsed.hostname === 'api.anthropic.com';
const isAnthropicEndpoint = pathSegments.at(-1) === 'anthropic' || (
/^v\d+$/.test(pathSegments.at(-1) ?? '') && pathSegments.at(-2) === 'anthropic'
);
// Anthropic endpoint paths should win for providers that expose both
// protocol shapes on the same host, e.g. /v1/anthropic or /anthropic/v1.
if (isAnthropicEndpoint) return false;
// Explicit OpenAI-compatible providers/models should win even when a host or
// unrelated path segment happens to contain the word "anthropic".
if (u.includes('xiaomimimo.com/v1')) return true;
if (u.includes('api.minimaxi.com/v1')) return true;
if (u.includes('api.deepseek')) return true;
if (u.includes('api.groq')) return true;
if (u.includes('api.together')) return true;
if (u.includes('openrouter')) return true;
if (u.includes('openai.com')) return true;
if (m.startsWith('deepseek')) return true;
if (m.startsWith('groq') || m.startsWith('llama') || m.startsWith('mixtral')) return true;
if (m.startsWith('gpt-') || m.startsWith('o1') || m.startsWith('o3') || m.startsWith('o4')) return true;
// MiMo exposes both OpenAI-compatible (/v1) and Anthropic-compatible
// (/anthropic) endpoints with the same model names, so path shape must break
// the tie for this provider.
if (m.startsWith('mimo')) return true;
// If the base URL is custom and not clearly Anthropic-compatible, preserve
// the existing OpenAI-compatible fallback for third-party providers.
if (u && !isOfficialAnthropic) return true;
return false;
}
+158
View File
@@ -0,0 +1,158 @@
import { useEffect, useRef } from 'react';
import type { LiveArtifactRefreshSsePayload, LiveArtifactSsePayload } from '@open-design/contracts';
export interface ProjectFileChangeEvent {
type: 'file-changed';
path: string;
kind: 'add' | 'change' | 'unlink';
}
export type ProjectLiveArtifactEvent = LiveArtifactSsePayload | LiveArtifactRefreshSsePayload;
export type ProjectEvent = ProjectFileChangeEvent | ProjectLiveArtifactEvent;
export interface ProjectEventsConnectionOptions {
/** Test seam: substitute a mock EventSource constructor. */
EventSourceCtor?: typeof EventSource;
/** Initial backoff in ms. Defaults to 1000. */
initialBackoffMs?: number;
/** Max backoff in ms. Defaults to 30000. */
maxBackoffMs?: number;
/** Test seam: setTimeout/clearTimeout substitutes for fake timers. */
setTimeoutFn?: typeof setTimeout;
clearTimeoutFn?: typeof clearTimeout;
}
const DEFAULT_INITIAL_BACKOFF = 1000;
const DEFAULT_MAX_BACKOFF = 30_000;
export function projectEventsUrl(projectId: string): string {
return `/api/projects/${encodeURIComponent(projectId)}/events`;
}
export interface ProjectEventsConnection {
close(): void;
}
/**
* Pure connection manager for a project's file-change SSE stream. Used by
* `useProjectFileEvents`; exposed standalone so tests can drive it under a
* node environment without React + JSDOM.
*
* Reconnects with exponential backoff (default 1s → 30s cap). On a successful
* `ready` event the backoff resets so a flaky network doesn't permanently
* stretch the gap between events.
*/
export function createProjectEventsConnection(
projectId: string,
onChange: (evt: ProjectEvent) => void,
options: ProjectEventsConnectionOptions = {},
): ProjectEventsConnection {
const Ctor = options.EventSourceCtor
?? (typeof EventSource === 'undefined' ? null : EventSource);
if (!Ctor) return { close() { /* noop */ } };
const initialBackoff = options.initialBackoffMs ?? DEFAULT_INITIAL_BACKOFF;
const maxBackoff = options.maxBackoffMs ?? DEFAULT_MAX_BACKOFF;
const setT = options.setTimeoutFn ?? setTimeout;
const clearT = options.clearTimeoutFn ?? clearTimeout;
let cancelled = false;
let backoff = initialBackoff;
let source: EventSource | null = null;
let reconnectTimer: ReturnType<typeof setTimeout> | null = null;
const connect = (): void => {
if (cancelled) return;
const es = new Ctor(projectEventsUrl(projectId));
source = es;
es.addEventListener('ready', () => {
backoff = initialBackoff;
});
es.addEventListener('file-changed', (evt) => {
try {
const data = JSON.parse((evt as MessageEvent).data) as ProjectFileChangeEvent;
onChange(data);
} catch (err) {
// Ignore malformed payloads — we'll get more on the next change.
// Log in dev so payload-shape bugs don't go silent during testing.
if (
typeof process !== 'undefined' &&
process.env?.NODE_ENV === 'development'
) {
// eslint-disable-next-line no-console
console.warn('[project-events] malformed file-changed payload', err);
}
}
});
const handleLiveArtifactEvent = (evt: Event) => {
try {
const data = JSON.parse((evt as MessageEvent).data) as ProjectLiveArtifactEvent;
onChange(data);
} catch (err) {
if (
typeof process !== 'undefined' &&
process.env?.NODE_ENV === 'development'
) {
// eslint-disable-next-line no-console
console.warn('[project-events] malformed live-artifact payload', err);
}
}
};
es.addEventListener('live_artifact', handleLiveArtifactEvent);
es.addEventListener('live_artifact_refresh', handleLiveArtifactEvent);
es.addEventListener('error', () => {
if (cancelled) return;
es.close();
if (source === es) source = null;
const delay = backoff;
backoff = Math.min(backoff * 2, maxBackoff);
reconnectTimer = setT(connect, delay) as ReturnType<typeof setTimeout>;
});
};
connect();
return {
close(): void {
cancelled = true;
if (reconnectTimer) clearT(reconnectTimer);
if (source) source.close();
},
};
}
/**
* Subscribe to a project's filesystem-change SSE stream.
*
* Producer side: chokidar watcher in `apps/daemon/src/project-watchers.ts`
* fires through `/api/projects/:id/events`. This hook listens and invokes
* `onChange` for each `file-changed` event. Caller is expected to react by
* refetching the file list — propagating new mtimes through to FileViewer
* iframes is what triggers the actual reload (PR #384's `?v=${mtime}` cache-bust).
*
* Reconnects with exponential backoff (1s → 30s cap) on transient failures.
* `enabled=false` (or a missing `projectId`) tears the stream down cleanly.
*/
export function useProjectFileEvents(
projectId: string | null | undefined,
enabled: boolean,
onChange: (evt: ProjectEvent) => void,
options: ProjectEventsConnectionOptions = {},
): void {
const onChangeRef = useRef(onChange);
useEffect(() => {
onChangeRef.current = onChange;
}, [onChange]);
useEffect(() => {
if (!enabled || !projectId) return;
if (typeof window === 'undefined') return;
const conn = createProjectEventsConnection(
projectId,
(evt) => onChangeRef.current(evt),
options,
);
return () => conn.close();
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [projectId, enabled, options.EventSourceCtor, options.initialBackoffMs, options.maxBackoffMs]);
}
+962
View File
@@ -0,0 +1,962 @@
import type {
ConnectorDetail,
ConnectorConnectResponse,
ConnectorDiscoveryResponse,
ConnectorDetailResponse,
ConnectorListResponse,
ConnectorStatusResponse,
} from '@open-design/contracts';
import type {
AgentInfo,
AppVersionInfo,
AppVersionResponse,
ChatAttachment,
CodexPetSummary,
CodexPetsResponse,
SyncCommunityPetsRequest,
SyncCommunityPetsResponse,
PreviewComment,
PreviewCommentStatus,
PreviewCommentUpsertRequest,
DeployConfigResponse,
DeployProjectFileResponse,
DesignSystemDetail,
DesignSystemSummary,
LiveArtifact,
LiveArtifactRefreshLogEntry,
LiveArtifactSummary,
ProjectDeploymentsResponse,
PromptTemplateDetail,
PromptTemplateSummary,
ProjectFile,
SkillDetail,
SkillSummary,
UpdateDeployConfigRequest,
} from '../types';
import type { ArtifactManifest } from '../artifacts/types';
export async function fetchAgents(options?: { throwOnError?: boolean }): Promise<AgentInfo[]> {
try {
const resp = await fetch('/api/agents');
if (!resp.ok) {
if (options?.throwOnError) throw new Error(`agents ${resp.status}`);
return [];
}
const json = (await resp.json()) as { agents: AgentInfo[] };
return json.agents ?? [];
} catch (err) {
if (options?.throwOnError) throw err;
return [];
}
}
export async function fetchSkills(): Promise<SkillSummary[]> {
try {
const resp = await fetch('/api/skills');
if (!resp.ok) return [];
const json = (await resp.json()) as { skills: SkillSummary[] };
return json.skills ?? [];
} catch {
return [];
}
}
// Pets packaged by the Codex `hatch-pet` skill — surfaced so the web
// pet settings can offer one-click adoption right after the agent run
// finishes. Returns an empty list (not an error) when the registry
// folder is missing so the "Recently hatched" UI can simply render an
// empty state.
export async function fetchCodexPets(): Promise<CodexPetsResponse> {
try {
const resp = await fetch('/api/codex-pets');
if (!resp.ok) return { pets: [], rootDir: '' };
return (await resp.json()) as CodexPetsResponse;
} catch {
return { pets: [], rootDir: '' };
}
}
// One-click trigger for the daemon-side port of `sync-community-pets`.
// Always resolves with a summary (even when the daemon errored) so the
// caller can render a status line without having to wrap in try/catch
// on every keystroke.
export async function syncCommunityPets(
input?: SyncCommunityPetsRequest,
): Promise<SyncCommunityPetsResponse & { error?: string }> {
try {
const resp = await fetch('/api/codex-pets/sync', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(input ?? {}),
});
if (!resp.ok) {
const payload = (await resp.json().catch(() => null)) as
| { error?: string }
| null;
return {
wrote: 0,
skipped: 0,
failed: 0,
total: 0,
rootDir: '',
errors: [],
error: payload?.error ?? `Sync failed (${resp.status})`,
};
}
return (await resp.json()) as SyncCommunityPetsResponse;
} catch (err) {
return {
wrote: 0,
skipped: 0,
failed: 0,
total: 0,
rootDir: '',
errors: [],
error: err instanceof Error ? err.message : 'Sync request failed',
};
}
}
export function codexPetSpritesheetUrl(pet: CodexPetSummary): string {
// The daemon stamps an absolute path-prefix in `spritesheetUrl`; if
// that prefix is empty (default), it is already a same-origin path
// we can hand to <img src> or fetch() as-is.
return pet.spritesheetUrl;
}
export async function fetchSkill(id: string): Promise<SkillDetail | null> {
try {
const resp = await fetch(`/api/skills/${encodeURIComponent(id)}`);
if (!resp.ok) return null;
return (await resp.json()) as SkillDetail;
} catch {
return null;
}
}
export async function fetchDesignSystems(): Promise<DesignSystemSummary[]> {
try {
const resp = await fetch('/api/design-systems');
if (!resp.ok) return [];
const json = (await resp.json()) as { designSystems: DesignSystemSummary[] };
return json.designSystems ?? [];
} catch {
return [];
}
}
export async function fetchDesignSystem(id: string): Promise<DesignSystemDetail | null> {
try {
const resp = await fetch(`/api/design-systems/${encodeURIComponent(id)}`);
if (!resp.ok) return null;
return (await resp.json()) as DesignSystemDetail;
} catch {
return null;
}
}
export async function fetchPromptTemplates(): Promise<PromptTemplateSummary[]> {
try {
const resp = await fetch('/api/prompt-templates');
if (!resp.ok) return [];
const json = (await resp.json()) as { promptTemplates: PromptTemplateSummary[] };
return json.promptTemplates ?? [];
} catch {
return [];
}
}
export async function fetchPromptTemplate(
surface: 'image' | 'video',
id: string,
): Promise<PromptTemplateDetail | null> {
try {
const resp = await fetch(
`/api/prompt-templates/${encodeURIComponent(surface)}/${encodeURIComponent(id)}`,
);
if (!resp.ok) return null;
const json = (await resp.json()) as { promptTemplate: PromptTemplateDetail };
return json.promptTemplate ?? null;
} catch {
return null;
}
}
export async function daemonIsLive(): Promise<boolean> {
try {
const resp = await fetch('/api/health');
return resp.ok;
} catch {
return false;
}
}
export async function fetchConnectors(): Promise<ConnectorDetail[]> {
try {
const resp = await fetch('/api/connectors');
if (!resp.ok) return [];
const json = (await resp.json()) as ConnectorListResponse;
return json.connectors ?? [];
} catch {
return [];
}
}
export async function fetchConnectorStatuses(): Promise<ConnectorStatusResponse['statuses']> {
try {
const resp = await fetch('/api/connectors/status');
if (!resp.ok) return {};
const json = (await resp.json()) as ConnectorStatusResponse;
return json.statuses ?? {};
} catch {
return {};
}
}
let connectorDiscoveryCache: ConnectorDetail[] | null = null;
let connectorDiscoveryPromise: Promise<ConnectorDetail[]> | null = null;
export async function fetchConnectorDiscovery(options: { refresh?: boolean } = {}): Promise<ConnectorDetail[]> {
if (options.refresh) {
connectorDiscoveryCache = null;
connectorDiscoveryPromise = null;
}
if (connectorDiscoveryCache && !options.refresh) return connectorDiscoveryCache;
if (connectorDiscoveryPromise && !options.refresh) return connectorDiscoveryPromise;
const promise = (async () => {
try {
const params = options.refresh ? '?refresh=true' : '';
const resp = await fetch(`/api/connectors/discovery${params}`);
if (!resp.ok) return [];
const json = (await resp.json()) as ConnectorDiscoveryResponse;
const connectors = json.connectors ?? [];
connectorDiscoveryCache = connectors;
return connectors;
} catch {
return [];
} finally {
connectorDiscoveryPromise = null;
}
})();
connectorDiscoveryPromise = promise;
return promise;
}
export async function connectConnector(connectorId: string): Promise<ConnectorDetail | null> {
let authWindow: Window | null = null;
try {
authWindow = window.open('about:blank', '_blank');
renderConnectorAuthLoading(authWindow);
const resp = await fetch(`/api/connectors/${encodeURIComponent(connectorId)}/connect`, {
method: 'POST',
});
if (!resp.ok) {
authWindow?.close();
return null;
}
const json = (await resp.json()) as ConnectorConnectResponse;
if (json.auth?.kind === 'redirect_required' && json.auth.redirectUrl) {
if (authWindow) {
authWindow.location.href = json.auth.redirectUrl;
} else {
window.open(json.auth.redirectUrl, '_blank');
}
} else {
authWindow?.close();
}
return json.connector ?? null;
} catch {
authWindow?.close();
return null;
}
}
function renderConnectorAuthLoading(authWindow: Window | null): void {
if (!authWindow) return;
try {
authWindow.document.title = 'Connecting…';
authWindow.document.body.innerHTML = `
<main style="min-height:100vh;display:grid;place-items:center;margin:0;background:#0f1115;color:#f6f7fb;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;">
<div style="display:grid;gap:14px;justify-items:center;text-align:center;padding:32px;">
<div aria-hidden="true" style="width:28px;height:28px;border-radius:999px;border:3px solid rgba(255,255,255,.22);border-top-color:#fff;animation:od-spin .8s linear infinite;"></div>
<div style="font-size:15px;font-weight:600;">Connecting…</div>
<div style="max-width:280px;color:rgba(246,247,251,.72);font-size:13px;line-height:1.5;">Preparing the authorization flow. This window will redirect when the provider is ready.</div>
</div>
<style>@keyframes od-spin{to{transform:rotate(360deg)}}</style>
</main>
`;
} catch {
/* Popup may be unavailable or already navigated; ignore. */
}
}
export async function disconnectConnector(connectorId: string): Promise<ConnectorDetail | null> {
try {
const resp = await fetch(`/api/connectors/${encodeURIComponent(connectorId)}/connection`, {
method: 'DELETE',
});
if (!resp.ok) return null;
const json = (await resp.json()) as ConnectorDetailResponse;
return json.connector ?? null;
} catch {
return null;
}
}
function isAppVersionInfo(value: unknown): value is AppVersionInfo {
if (!value || typeof value !== 'object') return false;
const candidate = value as Partial<AppVersionInfo>;
return (
typeof candidate.version === 'string' &&
typeof candidate.channel === 'string' &&
typeof candidate.packaged === 'boolean' &&
typeof candidate.platform === 'string' &&
typeof candidate.arch === 'string'
);
}
export async function fetchAppVersionInfo(): Promise<AppVersionInfo | null> {
try {
const resp = await fetch('/api/version');
if (!resp.ok) return null;
const json = (await resp.json()) as Partial<AppVersionResponse>;
return isAppVersionInfo(json.version) ? json.version : null;
} catch {
return null;
}
}
export async function fetchSkillExample(id: string): Promise<string | null> {
try {
const resp = await fetch(`/api/skills/${encodeURIComponent(id)}/example`);
if (!resp.ok) return null;
return await resp.text();
} catch {
return null;
}
}
export async function fetchDeployConfig(): Promise<DeployConfigResponse | null> {
try {
const resp = await fetch('/api/deploy/config');
if (!resp.ok) return null;
return (await resp.json()) as DeployConfigResponse;
} catch {
return null;
}
}
export async function updateDeployConfig(
input: UpdateDeployConfigRequest,
): Promise<DeployConfigResponse | null> {
try {
const resp = await fetch('/api/deploy/config', {
method: 'PUT',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(input),
});
if (!resp.ok) return null;
return (await resp.json()) as DeployConfigResponse;
} catch {
return null;
}
}
export async function fetchProjectDeployments(
projectId: string,
): Promise<ProjectDeploymentsResponse['deployments']> {
try {
const resp = await fetch(`/api/projects/${encodeURIComponent(projectId)}/deployments`);
if (!resp.ok) return [];
const json = (await resp.json()) as ProjectDeploymentsResponse;
return json.deployments ?? [];
} catch {
return [];
}
}
export async function deployProjectFile(
projectId: string,
fileName: string,
): Promise<DeployProjectFileResponse> {
const resp = await fetch(`/api/projects/${encodeURIComponent(projectId)}/deploy`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ fileName, providerId: 'vercel-self' }),
});
if (!resp.ok) {
const payload = (await resp.json().catch(() => null)) as
| { error?: { message?: string }; message?: string }
| null;
throw new Error(payload?.error?.message || payload?.message || `Deploy failed (${resp.status})`);
}
return (await resp.json()) as DeployProjectFileResponse;
}
export async function checkDeploymentLink(
projectId: string,
deploymentId: string,
): Promise<DeployProjectFileResponse> {
const resp = await fetch(
`/api/projects/${encodeURIComponent(projectId)}/deployments/${encodeURIComponent(deploymentId)}/check-link`,
{ method: 'POST' },
);
if (!resp.ok) {
const payload = (await resp.json().catch(() => null)) as
| { error?: { message?: string }; message?: string }
| null;
throw new Error(payload?.error?.message || payload?.message || `Link check failed (${resp.status})`);
}
return (await resp.json()) as DeployProjectFileResponse;
}
// Project files — all paths are scoped under .od/projects/<id>/ on disk.
export async function fetchProjectFiles(projectId: string): Promise<ProjectFile[]> {
try {
const resp = await fetch(`/api/projects/${encodeURIComponent(projectId)}/files`);
if (!resp.ok) return [];
const json = (await resp.json()) as { files: ProjectFile[] };
return json.files ?? [];
} catch {
return [];
}
}
export async function fetchLiveArtifacts(projectId: string): Promise<LiveArtifactSummary[]> {
try {
const resp = await fetch(`/api/live-artifacts?projectId=${encodeURIComponent(projectId)}`);
if (!resp.ok) return [];
const json = (await resp.json()) as {
artifacts?: LiveArtifactSummary[];
liveArtifacts?: LiveArtifactSummary[];
};
return json.liveArtifacts ?? json.artifacts ?? [];
} catch {
return [];
}
}
export async function fetchLiveArtifact(
projectId: string,
artifactId: string,
): Promise<LiveArtifact | null> {
try {
const resp = await fetch(liveArtifactDetailUrl(projectId, artifactId));
if (!resp.ok) return null;
const json = (await resp.json()) as {
artifact?: LiveArtifact;
liveArtifact?: LiveArtifact;
};
return json.liveArtifact ?? json.artifact ?? null;
} catch {
return null;
}
}
export interface LiveArtifactRefreshResult {
artifact: LiveArtifact;
refresh: {
id: string;
status: 'succeeded';
refreshedSourceCount: number;
};
}
export class LiveArtifactRefreshError extends Error {
constructor(
message: string,
readonly status: number,
readonly code?: string,
) {
super(message);
this.name = 'LiveArtifactRefreshError';
}
}
export async function refreshLiveArtifact(
projectId: string,
artifactId: string,
): Promise<LiveArtifactRefreshResult> {
let resp: Response;
try {
resp = await fetch(
`/api/live-artifacts/${encodeURIComponent(artifactId)}/refresh?projectId=${encodeURIComponent(projectId)}`,
{ method: 'POST' },
);
} catch (error) {
throw new LiveArtifactRefreshError(
error instanceof Error ? error.message : 'Refresh request failed.',
0,
);
}
if (!resp.ok) {
const errorBody = await readApiErrorBody(resp);
throw new LiveArtifactRefreshError(errorBody.message, resp.status, errorBody.code);
}
return (await resp.json()) as LiveArtifactRefreshResult;
}
export async function fetchLiveArtifactRefreshes(
projectId: string,
artifactId: string,
): Promise<LiveArtifactRefreshLogEntry[]> {
try {
const resp = await fetch(
`/api/live-artifacts/${encodeURIComponent(artifactId)}/refreshes?projectId=${encodeURIComponent(projectId)}`,
);
if (!resp.ok) return [];
const json = (await resp.json()) as { refreshes?: LiveArtifactRefreshLogEntry[] };
return json.refreshes ?? [];
} catch {
return [];
}
}
export async function updateLiveArtifact(
projectId: string,
artifactId: string,
input: Pick<LiveArtifact, 'title' | 'status' | 'pinned' | 'preview'> & {
slug?: string;
document?: LiveArtifact['document'];
},
): Promise<LiveArtifact> {
let resp: Response;
try {
resp = await fetch(
`/api/live-artifacts/${encodeURIComponent(artifactId)}?projectId=${encodeURIComponent(projectId)}`,
{
method: 'PATCH',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(input),
},
);
} catch (error) {
throw new LiveArtifactRefreshError(
error instanceof Error ? error.message : 'Update request failed.',
0,
);
}
if (!resp.ok) {
const errorBody = await readApiErrorBody(resp);
throw new LiveArtifactRefreshError(errorBody.message, resp.status, errorBody.code);
}
const json = (await resp.json()) as { artifact?: LiveArtifact; liveArtifact?: LiveArtifact };
const artifact = json.liveArtifact ?? json.artifact;
if (!artifact) throw new LiveArtifactRefreshError('Update response did not include a live artifact.', resp.status);
return artifact;
}
export async function deleteLiveArtifact(projectId: string, artifactId: string): Promise<boolean> {
try {
const resp = await fetch(
`/api/live-artifacts/${encodeURIComponent(artifactId)}?projectId=${encodeURIComponent(projectId)}`,
{ method: 'DELETE' },
);
return resp.ok;
} catch {
return false;
}
}
async function readApiErrorBody(resp: Response): Promise<{ message: string; code?: string }> {
try {
const json = (await resp.json()) as { error?: { code?: string; message?: string }; message?: string };
const message = json.error?.message ?? json.message;
return {
message: typeof message === 'string' && message.length > 0 ? message : `Request failed (${resp.status}).`,
...(typeof json.error?.code === 'string' ? { code: json.error.code } : {}),
};
} catch {
return { message: `Request failed (${resp.status}).` };
}
}
export function liveArtifactDetailUrl(projectId: string, artifactId: string): string {
return `/api/live-artifacts/${encodeURIComponent(artifactId)}?projectId=${encodeURIComponent(projectId)}`;
}
export type LiveArtifactPreviewVariant = 'rendered' | 'template' | 'rendered-source';
export function liveArtifactPreviewUrl(projectId: string, artifactId: string, variant: LiveArtifactPreviewVariant = 'rendered'): string {
const variantQuery = variant === 'rendered' ? '' : `&variant=${encodeURIComponent(variant)}`;
return `/api/live-artifacts/${encodeURIComponent(artifactId)}/preview?projectId=${encodeURIComponent(projectId)}${variantQuery}`;
}
export async function fetchLiveArtifactCode(
projectId: string,
artifactId: string,
variant: Exclude<LiveArtifactPreviewVariant, 'rendered'>,
): Promise<string | null> {
try {
const resp = await fetch(liveArtifactPreviewUrl(projectId, artifactId, variant), { cache: 'no-store' });
if (!resp.ok) return null;
return await resp.text();
} catch {
return null;
}
}
export function projectFileUrl(projectId: string, name: string): string {
return projectRawUrl(projectId, name);
}
export interface ProjectFilePreviewSection {
title: string;
lines: string[];
}
export interface ProjectFilePreview {
kind: 'pdf' | 'document' | 'presentation' | 'spreadsheet';
title: string;
sections: ProjectFilePreviewSection[];
}
export async function fetchProjectFilePreview(
projectId: string,
name: string,
): Promise<ProjectFilePreview | null> {
try {
const resp = await fetch(
`/api/projects/${encodeURIComponent(projectId)}/files/${encodeURIComponent(name)}/preview`,
);
if (!resp.ok) return null;
return (await resp.json()) as ProjectFilePreview;
} catch {
return null;
}
}
export async function fetchProjectFileText(
projectId: string,
name: string,
options?: { cache?: RequestCache; cacheBustKey?: string | number },
): Promise<string | null> {
const url = projectFileUrl(projectId, name);
const cacheBustKey = options?.cacheBustKey;
const requestUrl =
cacheBustKey == null
? url
: `${url}${url.includes('?') ? '&' : '?'}cacheBust=${encodeURIComponent(String(cacheBustKey))}`;
const init: RequestInit = {};
if (options?.cache) init.cache = options.cache;
try {
const resp = await fetch(requestUrl, init);
if (!resp.ok) {
console.warn('[fetchProjectFileText] failed:', {
name,
projectId,
status: resp.status,
statusText: resp.statusText,
url: requestUrl,
});
return null;
}
return await resp.text();
} catch (err) {
console.warn('[fetchProjectFileText] failed:', {
error: err,
name,
projectId,
url: requestUrl,
});
return null;
}
}
export async function fetchPreviewComments(
projectId: string,
conversationId: string,
): Promise<PreviewComment[]> {
try {
const resp = await fetch(
`/api/projects/${encodeURIComponent(projectId)}/conversations/${encodeURIComponent(conversationId)}/comments`,
);
if (!resp.ok) return [];
const json = (await resp.json()) as { comments: PreviewComment[] };
return json.comments ?? [];
} catch {
return [];
}
}
export async function upsertPreviewComment(
projectId: string,
conversationId: string,
input: PreviewCommentUpsertRequest,
): Promise<PreviewComment | null> {
try {
const resp = await fetch(
`/api/projects/${encodeURIComponent(projectId)}/conversations/${encodeURIComponent(conversationId)}/comments`,
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(input),
},
);
if (!resp.ok) return null;
const json = (await resp.json()) as { comment: PreviewComment };
return json.comment ?? null;
} catch {
return null;
}
}
export async function patchPreviewCommentStatus(
projectId: string,
conversationId: string,
commentId: string,
status: PreviewCommentStatus,
): Promise<PreviewComment | null> {
try {
const resp = await fetch(
`/api/projects/${encodeURIComponent(projectId)}/conversations/${encodeURIComponent(conversationId)}/comments/${encodeURIComponent(commentId)}`,
{
method: 'PATCH',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ status }),
},
);
if (!resp.ok) return null;
const json = (await resp.json()) as { comment: PreviewComment };
return json.comment ?? null;
} catch {
return null;
}
}
export async function deletePreviewComment(
projectId: string,
conversationId: string,
commentId: string,
): Promise<boolean> {
try {
const resp = await fetch(
`/api/projects/${encodeURIComponent(projectId)}/conversations/${encodeURIComponent(conversationId)}/comments/${encodeURIComponent(commentId)}`,
{ method: 'DELETE' },
);
return resp.ok;
} catch {
return false;
}
}
export async function writeProjectTextFile(
projectId: string,
name: string,
content: string,
options?: { artifactManifest?: ArtifactManifest },
): Promise<ProjectFile | null> {
try {
const resp = await fetch(`/api/projects/${encodeURIComponent(projectId)}/files`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ name, content, artifactManifest: options?.artifactManifest }),
});
if (!resp.ok) return null;
const json = (await resp.json()) as { file: ProjectFile };
return json.file;
} catch {
return null;
}
}
export async function writeProjectBase64File(
projectId: string,
name: string,
base64: string,
): Promise<ProjectFile | null> {
try {
const resp = await fetch(`/api/projects/${encodeURIComponent(projectId)}/files`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ name, content: base64, encoding: 'base64' }),
});
if (!resp.ok) return null;
const json = (await resp.json()) as { file: ProjectFile };
return json.file;
} catch {
return null;
}
}
export async function uploadProjectFile(
projectId: string,
file: File,
desiredName?: string,
): Promise<ProjectFile | null> {
try {
const form = new FormData();
form.append('file', file);
if (desiredName) form.append('name', desiredName);
const resp = await fetch(`/api/projects/${encodeURIComponent(projectId)}/files`, {
method: 'POST',
body: form,
});
if (!resp.ok) return null;
const json = (await resp.json()) as { file: ProjectFile };
return json.file;
} catch {
return null;
}
}
// Multi-file project upload used by the chat composer's paste / drop /
// picker. Each file lands flat in the project folder; the response is
// reshaped into ChatAttachments so the composer can stage them without a
// follow-up listFiles round-trip.
const PROJECT_UPLOAD_BATCH_SIZE = 12;
export interface ProjectUploadFailure {
name: string;
code?: string;
error?: string;
}
export interface UploadProjectFilesResult {
uploaded: ChatAttachment[];
failed: ProjectUploadFailure[];
error?: string;
}
export async function uploadProjectFiles(
projectId: string,
files: File[],
): Promise<UploadProjectFilesResult> {
if (files.length === 0) return { uploaded: [], failed: [] };
const uploaded: ChatAttachment[] = [];
const failed: ProjectUploadFailure[] = [];
let error: string | undefined;
for (let i = 0; i < files.length; i += PROJECT_UPLOAD_BATCH_SIZE) {
const batch = files.slice(i, i + PROJECT_UPLOAD_BATCH_SIZE);
const remaining = files.slice(i + PROJECT_UPLOAD_BATCH_SIZE);
const form = new FormData();
for (const f of batch) form.append('files', f);
try {
const resp = await fetch(
`/api/projects/${encodeURIComponent(projectId)}/upload`,
{ method: 'POST', body: form },
);
if (!resp.ok) {
const payload = (await resp.json().catch(() => null)) as
| { code?: string; error?: string }
| null;
error = payload?.error ?? `upload failed (${resp.status})`;
for (const f of batch) {
failed.push({ name: f.name, code: payload?.code, error: error });
}
for (const f of remaining) {
failed.push({ name: f.name, code: payload?.code, error: error });
}
break;
}
const json = (await resp.json()) as {
files: { name: string; path: string; size?: number; originalName?: string }[];
};
const responseFiles = json.files ?? [];
uploaded.push(
...responseFiles.map((f) => ({
path: f.path,
name: f.originalName ?? f.name,
kind: looksLikeImage(f.name) ? ('image' as const) : ('file' as const),
size: f.size,
})),
);
// Server preserves request order; any dropped files are unmatched at the batch tail.
if (responseFiles.length < batch.length) {
error ??= 'some files could not be stored';
for (const f of batch.slice(responseFiles.length)) {
failed.push({
name: f.name,
error: error ?? 'some files could not be stored',
});
}
}
} catch {
error = 'upload request failed';
for (const f of batch) {
failed.push({ name: f.name, error });
}
for (const f of remaining) {
failed.push({ name: f.name, error });
}
break;
}
}
return { uploaded, failed, error };
}
// Stable URL that serves a project file with its original mime — for
// thumbnails in the staged-attachment chips and for any preview iframe
// that needs to point at the live file (not a srcDoc).
export function projectRawUrl(projectId: string, filePath: string): string {
// Encode each path segment individually so a slash inside the file
// path stays a path separator, not %2F.
const safePath = filePath
.split('/')
.map((seg) => encodeURIComponent(seg))
.join('/');
return `/api/projects/${encodeURIComponent(projectId)}/raw/${safePath}`;
}
function looksLikeImage(name: string): boolean {
return /\.(png|jpe?g|gif|webp|svg|avif|bmp)$/i.test(name);
}
export async function deleteProjectFile(
projectId: string,
name: string,
): Promise<boolean> {
try {
const resp = await fetch(
projectRawUrl(projectId, name),
{ method: 'DELETE' },
);
return resp.ok;
} catch {
return false;
}
}
export async function openFolderDialog(): Promise<string | null> {
try {
const resp = await fetch('/api/dialog/open-folder', { method: 'POST' });
if (!resp.ok) return null;
const data = await resp.json();
return typeof data.path === 'string' && data.path.length > 0 ? data.path : null;
} catch {
return null;
}
}
export async function fetchDesignSystemPreview(id: string): Promise<string | null> {
try {
const resp = await fetch(`/api/design-systems/${encodeURIComponent(id)}/preview`);
if (!resp.ok) return null;
return await resp.text();
} catch {
return null;
}
}
export async function fetchDesignSystemShowcase(id: string): Promise<string | null> {
try {
const resp = await fetch(`/api/design-systems/${encodeURIComponent(id)}/showcase`);
if (!resp.ok) return null;
return await resp.text();
} catch {
return null;
}
}
+38
View File
@@ -0,0 +1,38 @@
export type ParsedSseFrame =
| { kind: 'event'; event: string; data: Record<string, unknown>; id?: string }
| { kind: 'comment'; comment: string }
| { kind: 'empty' };
export function parseSseFrame(frame: string): ParsedSseFrame | null {
const lines = frame.split('\n');
const comments: string[] = [];
let event = 'message';
let id: string | undefined;
const dataLines: string[] = [];
for (const rawLine of lines) {
const line = rawLine.endsWith('\r') ? rawLine.slice(0, -1) : rawLine;
if (line.startsWith(':')) {
comments.push(line.slice(1).trimStart());
} else if (line.startsWith('event: ')) {
event = line.slice(7).trim();
} else if (line.startsWith('id: ')) {
id = line.slice(4).trim();
} else if (line.startsWith('data: ')) {
dataLines.push(line.slice(6));
}
}
if (dataLines.length === 0) {
if (comments.length > 0) {
return { kind: 'comment', comment: comments.join('\n') };
}
return { kind: 'empty' };
}
try {
return { kind: 'event', event, data: JSON.parse(dataLines.join('\n')), ...(id ? { id } : {}) };
} catch {
return null;
}
}

Some files were not shown because too many files have changed in this diff Show More