diff --git a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/automations/$automationId/components/TriggersCard/components/MachineSizePicker/MachineSizePicker.tsx b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/automations/$automationId/components/TriggersCard/components/MachineSizePicker/MachineSizePicker.tsx index 38384c64c60..75cde4210ea 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/automations/$automationId/components/TriggersCard/components/MachineSizePicker/MachineSizePicker.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/automations/$automationId/components/TriggersCard/components/MachineSizePicker/MachineSizePicker.tsx @@ -1,3 +1,4 @@ +import { Trans, useLingui } from "@lingui/react/macro"; import type { MachineSize } from "@superset/shared/billing"; import { DropdownMenu, @@ -12,7 +13,7 @@ import { useMachineSizeOptions } from "renderer/routes/_authenticated/hooks/useM interface MachineSizePickerProps { value: MachineSize | null; - onChange: (machineSize: MachineSize) => void; + onChange: (machineSize: MachineSize | null) => void; className?: string; disabled?: boolean; } @@ -23,10 +24,9 @@ export function MachineSizePicker({ className, disabled, }: MachineSizePickerProps) { - const { options, defaultSize } = useMachineSizeOptions(); - const selected = - options.find((option) => option.size === value) ?? - options.find((option) => option.size === defaultSize); + const { t } = useLingui(); + const { options } = useMachineSizeOptions(); + const selected = options.find((option) => option.size === value); return ( @@ -35,11 +35,23 @@ export function MachineSizePicker({ disabled={disabled} className={className} icon={} - label={selected?.name ?? value ?? defaultSize} + label={ + selected?.name ?? value ?? t({ message: "Environment's size" }) + } title={selected?.spec} /> + onChange(null)} + className="items-start gap-2" + > + + + Environment's size + + {value === null && } + {options.map((option) => ( + ) : undefined; const moveDirections = useWorkspaceMoveDirections(workspace.hostId); const move = moveDirections.length > 0 @@ -296,6 +300,7 @@ export function DashboardSidebarWorkspaceItem({ onRemovePullRequest={handleRemovePullRequest} onRename={startRename} onDelete={requestDelete} + environmentItem={environmentItem} onToggleUnread={handleToggleUnread} onClearStatus={handleClearStatus} > @@ -387,6 +392,7 @@ export function DashboardSidebarWorkspaceItem({ onRemovePullRequest={handleRemovePullRequest} onRename={startRename} onDelete={requestDelete} + environmentItem={environmentItem} onToggleUnread={handleToggleUnread} onClearStatus={handleClearStatus} > diff --git a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarWorkspaceContextMenu/DashboardSidebarWorkspaceContextMenu.tsx b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarWorkspaceContextMenu/DashboardSidebarWorkspaceContextMenu.tsx index 29930cd342c..0f6a6f42410 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarWorkspaceContextMenu/DashboardSidebarWorkspaceContextMenu.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/DashboardSidebarWorkspaceContextMenu/DashboardSidebarWorkspaceContextMenu.tsx @@ -80,6 +80,7 @@ interface DashboardSidebarWorkspaceContextMenuProps { onRemoveFromSidebar?: () => void; onRename?: () => void; onDelete?: () => void; + environmentItem?: React.ReactNode; onToggleUnread: () => void; onClearStatus: () => void; onRemovePullRequest: () => void; @@ -109,6 +110,7 @@ export function DashboardSidebarWorkspaceContextMenu({ onRemoveFromSidebar, onRename, onDelete, + environmentItem, onToggleUnread, onClearStatus, onRemovePullRequest, @@ -249,6 +251,7 @@ export function DashboardSidebarWorkspaceContextMenu({ )} )} + {environmentItem} {move && ( <> diff --git a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/ManageEnvironmentItem/ManageEnvironmentItem.tsx b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/ManageEnvironmentItem/ManageEnvironmentItem.tsx new file mode 100644 index 00000000000..22109974c9f --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/ManageEnvironmentItem/ManageEnvironmentItem.tsx @@ -0,0 +1,35 @@ +import { Trans } from "@lingui/react/macro"; +import { + ContextMenuItem, + ContextMenuSeparator, +} from "@superset/ui/context-menu"; +import { useNavigate } from "@tanstack/react-router"; +import { LuContainer } from "react-icons/lu"; +import { useWorkspaceEnvironment } from "renderer/routes/_authenticated/_dashboard/hooks/useWorkspaceEnvironment"; + +/** Rendered only inside an open menu, so closed sidebar rows look nothing up. */ +export function ManageEnvironmentItem({ + workspaceId, +}: { + workspaceId: string; +}) { + const navigate = useNavigate(); + const environment = useWorkspaceEnvironment(workspaceId); + if (!environment) return null; + return ( + <> + + + void navigate({ + to: "/settings/environments/$environmentId", + params: { environmentId: environment.id }, + }) + } + > + + Manage environment + + + ); +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/ManageEnvironmentItem/index.ts b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/ManageEnvironmentItem/index.ts new file mode 100644 index 00000000000..ccc1db9c3d0 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/DashboardSidebar/components/DashboardSidebarWorkspaceItem/components/ManageEnvironmentItem/index.ts @@ -0,0 +1 @@ +export { ManageEnvironmentItem } from "./ManageEnvironmentItem"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/MoveWorkspaceDialog/components/MoveWorkspaceToCloudDialog/MoveWorkspaceToCloudDialog.tsx b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/MoveWorkspaceDialog/components/MoveWorkspaceToCloudDialog/MoveWorkspaceToCloudDialog.tsx index 85834459481..5cf404fe235 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/MoveWorkspaceDialog/components/MoveWorkspaceToCloudDialog/MoveWorkspaceToCloudDialog.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/components/MoveWorkspaceDialog/components/MoveWorkspaceToCloudDialog/MoveWorkspaceToCloudDialog.tsx @@ -18,8 +18,6 @@ import { useActiveOrganizationId } from "renderer/hooks/useActiveOrganizationId" import { cloudTrpc } from "renderer/lib/cloud-trpc"; import { CreateEnvironmentFlow } from "renderer/routes/_authenticated/components/CreateEnvironmentFlow"; import { EnvironmentPickerPill } from "renderer/routes/_authenticated/components/EnvironmentPickerPill"; -import { MachineSizePickerPill } from "renderer/routes/_authenticated/components/MachineSizePickerPill"; -import { useMachineSizeOptions } from "renderer/routes/_authenticated/hooks/useMachineSizeOptions"; import { resolveCloudChoices } from "renderer/routes/_authenticated/utils/resolveCloudChoices"; import { NO_PROJECT_KEY, @@ -61,7 +59,6 @@ export function MoveWorkspaceToCloudDialog({ { organizationId: organizationId ?? "" }, { enabled: open && !!organizationId }, ); - const machineSizeOptions = useMachineSizeOptions(); const cloudChoices = useV2WorkspaceCreateDefaultsStore( (state) => state.cloudChoices, ); @@ -76,16 +73,8 @@ export function MoveWorkspaceToCloudDialog({ projectId, repositoryFullName, choices: cloudChoices, - offeredSizes: machineSizeOptions.options.map((option) => option.size), - defaultSize: machineSizeOptions.defaultSize, }), - [ - environmentsQuery.data, - projectId, - repositoryFullName, - cloudChoices, - machineSizeOptions, - ], + [environmentsQuery.data, projectId, repositoryFullName, cloudChoices], ); const environment = selection.environment; @@ -104,7 +93,6 @@ export function MoveWorkspaceToCloudDialog({ id: environment.id, repositoryFullName: environment.repositories?.[0]?.fullName ?? null, }, - machineSize: selection.machineSize, onStage: (stage) => progress.setStage(stage === "saving" ? "saving" : "creating"), onBegun: progress.begun, @@ -163,13 +151,6 @@ export function MoveWorkspaceToCloudDialog({ }} isLoading={environmentsQuery.isLoading} /> - - setCloudChoice(choiceKey, { machineSize }) - } - /> - -
- -
- - ); -} diff --git a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/hooks/useMoveWorkspaceToCloud/useMoveWorkspaceToCloud.ts b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/hooks/useMoveWorkspaceToCloud/useMoveWorkspaceToCloud.ts index f0d11ad9d18..2907bb6d644 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/hooks/useMoveWorkspaceToCloud/useMoveWorkspaceToCloud.ts +++ b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/hooks/useMoveWorkspaceToCloud/useMoveWorkspaceToCloud.ts @@ -1,5 +1,4 @@ import { useLingui } from "@lingui/react/macro"; -import type { MachineSize } from "@superset/shared/billing"; import { useCallback } from "react"; import { useHostProjects } from "renderer/hooks/host-projects/useHostProjects"; import { useActiveOrganizationId } from "renderer/hooks/useActiveOrganizationId"; @@ -39,13 +38,11 @@ export function useMoveWorkspaceToCloud(workspace: MovableWorkspace) { return useCallback( async ({ environment, - machineSize, onStage, onBegun, signal, }: { environment: { id: string; repositoryFullName: string | null }; - machineSize: MachineSize; onStage: (stage: MoveToCloudStage) => void; onBegun?: (workspaceMoveId: string) => void; signal?: AbortSignal; @@ -95,7 +92,6 @@ export function useMoveWorkspaceToCloud(workspace: MovableWorkspace) { const created = await cloudTrpcClient.cloudWorkspace.create.mutate({ organizationId, environmentId: environment.id, - machineSize, name: workspace.name, branch: prepared.branch, move: { diff --git a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/hooks/useWorkspaceEnvironment/index.ts b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/hooks/useWorkspaceEnvironment/index.ts new file mode 100644 index 00000000000..623cbdf803b --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/hooks/useWorkspaceEnvironment/index.ts @@ -0,0 +1,4 @@ +export { + useWorkspaceEnvironment, + type WorkspaceEnvironment, +} from "./useWorkspaceEnvironment"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/hooks/useWorkspaceEnvironment/useWorkspaceEnvironment.ts b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/hooks/useWorkspaceEnvironment/useWorkspaceEnvironment.ts new file mode 100644 index 00000000000..24a56406983 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/hooks/useWorkspaceEnvironment/useWorkspaceEnvironment.ts @@ -0,0 +1,36 @@ +import { useCloudWorkspaces } from "renderer/hooks/useCloudWorkspaces"; +import { cloudTrpc } from "renderer/lib/cloud-trpc"; + +export interface WorkspaceEnvironment { + id: string; + name: string; + sourceKind: string; + scope: string; + createdByUserId: string | null; +} + +/** The cloud workspace's environment, when this user can open it: a teammate's personal environment is not listed. */ +export function useWorkspaceEnvironment( + workspaceId: string, +): WorkspaceEnvironment | null { + const { workspaces, organizationId } = useCloudWorkspaces(); + const environmentId = + workspaces?.find((workspace) => workspace.id === workspaceId) + ?.environmentId ?? null; + const environments = cloudTrpc.environment.list.useQuery( + { organizationId: organizationId ?? "" }, + { enabled: !!environmentId && !!organizationId }, + ); + const environment = environments.data?.find( + (row) => row.id === environmentId, + ); + return environment + ? { + id: environment.id, + name: environment.name, + sourceKind: environment.sourceKind, + scope: environment.scope, + createdByUserId: environment.createdByUserId, + } + : null; +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/components/WorkspaceMoreMenu/WorkspaceMoreMenu.tsx b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/components/WorkspaceMoreMenu/WorkspaceMoreMenu.tsx index 7ba696136b8..3d6bf90a488 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/components/WorkspaceMoreMenu/WorkspaceMoreMenu.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/components/WorkspaceMoreMenu/WorkspaceMoreMenu.tsx @@ -9,8 +9,11 @@ import { } from "@superset/ui/dropdown-menu"; import { useRunAfterMenuClose } from "@superset/ui/hooks/use-run-after-menu-close"; import { Tooltip, TooltipContent, TooltipTrigger } from "@superset/ui/tooltip"; +import { useNavigate } from "@tanstack/react-router"; import { CloudUpload, + Container, + DatabaseBackup, Ellipsis, Laptop, Play, @@ -18,9 +21,13 @@ import { Square, X, } from "lucide-react"; -import { useState } from "react"; +import { useRef, useState } from "react"; +import { useCloudWorkspaces } from "renderer/hooks/useCloudWorkspaces"; +import { useIsOrganizationAdmin } from "renderer/hooks/useIsOrganizationAdmin"; import { useHotkeyDisplay } from "renderer/hotkeys"; +import { authClient } from "renderer/lib/auth-client"; import { MoveWorkspaceDialog } from "renderer/routes/_authenticated/_dashboard/components/MoveWorkspaceDialog"; +import { useWorkspaceEnvironment } from "renderer/routes/_authenticated/_dashboard/hooks/useWorkspaceEnvironment"; import { useWorkspaceMoveDirections, type WorkspaceMoveDirection, @@ -31,6 +38,7 @@ import { useWorkspace } from "../../../providers/WorkspaceProvider"; import { useConfigureWorkspaceRun } from "../../hooks/useConfigureWorkspaceRun"; import { useWorkspaceOpenIn } from "../../hooks/useWorkspaceOpenIn"; import { useWorkspaceOpenInTarget } from "../../hooks/useWorkspaceOpenInTarget"; +import { SaveCheckpointDialog } from "./components/SaveCheckpointDialog"; import { WorkspaceOpenInItems } from "./components/WorkspaceOpenInItems"; interface WorkspaceMoreMenuProps { @@ -69,6 +77,24 @@ export function WorkspaceMoreMenu({ const { machineId } = useLocalHostService(); const [moveOpen, setMoveOpen] = useState(null); const { runAfterClose, onCloseAutoFocus } = useRunAfterMenuClose(); + const actionPendingRef = useRef(false); + const openAfterClose = (action: () => void) => { + actionPendingRef.current = true; + runAfterClose(action); + }; + const environment = useWorkspaceEnvironment(workspaceId); + const { workspaces: cloudWorkspaces } = useCloudWorkspaces(); + const isWorkspaceReady = + cloudWorkspaces?.find((row) => row.id === workspaceId)?.status === "ready"; + const { data: session } = authClient.useSession(); + const isAdmin = useIsOrganizationAdmin() === true; + const canSaveCheckpoint = + !!environment && + (environment.scope !== "organization" || + environment.createdByUserId === session?.user?.id || + isAdmin); + const [checkpointOpen, setCheckpointOpen] = useState(false); + const navigate = useNavigate(); return ( <> @@ -90,9 +116,11 @@ export function WorkspaceMoreMenu({ 0 ? onCloseAutoFocus : undefined - } + onCloseAutoFocus={(event) => { + if (!actionPendingRef.current) return; + actionPendingRef.current = false; + onCloseAutoFocus(event); + }} > {openInTarget && ( <> @@ -147,11 +175,36 @@ export function WorkspaceMoreMenu({ )}
)} + {environment && ( + <> + + + void navigate({ + to: "/settings/environments/$environmentId", + params: { environmentId: environment.id }, + }) + } + > + + Manage environment + + {canSaveCheckpoint && ( + openAfterClose(() => setCheckpointOpen(true))} + > + + Save checkpoint + + )} + + )} {moveDirections.length > 0 && } {moveDirections.map((direction) => ( runAfterClose(() => setMoveOpen(direction))} + onSelect={() => openAfterClose(() => setMoveOpen(direction))} > {direction === "to-cloud" ? ( <> @@ -172,6 +225,14 @@ export function WorkspaceMoreMenu({ ))}
+ {environment && canSaveCheckpoint && ( + + )} {moveOpen && ( void; +} + +export function SaveCheckpointDialog({ + cloudWorkspaceId, + environment, + open, + onOpenChange, +}: SaveCheckpointDialogProps) { + const { t } = useLingui(); + const utils = cloudTrpc.useUtils(); + const promote = cloudTrpc.environment.promote.useMutation(); + const name = environment.name; + + const handleSave = () => { + toast.promise( + promote + .mutateAsync({ cloudWorkspaceId, environmentId: environment.id }) + .then(() => + Promise.all([ + utils.environment.invalidate(), + utils.cloudWorkspace.list.invalidate(), + ]), + ), + { + loading: t({ message: `Saving a checkpoint to ${name}...` }), + success: t({ message: `Checkpoint saved to ${name}` }), + error: (error) => errorMessage(error), + }, + ); + }; + + return ( + + + + + Save a checkpoint to {name}? + + + + Saves this workspace as it is now, with everything installed in + it. New workspaces from {name} start from this checkpoint. The + workspace stops for a moment while it saves. + + + + + + + Save checkpoint + + + + + ); +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/components/WorkspaceMoreMenu/components/SaveCheckpointDialog/index.ts b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/components/WorkspaceMoreMenu/components/SaveCheckpointDialog/index.ts new file mode 100644 index 00000000000..1f9669ddf40 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/components/WorkspaceMoreMenu/components/SaveCheckpointDialog/index.ts @@ -0,0 +1 @@ +export { SaveCheckpointDialog } from "./SaveCheckpointDialog"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/hooks/usePaneRegistry/components/ChatSession/components/ChatLink/ChatLink.tsx b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/hooks/usePaneRegistry/components/ChatSession/components/ChatLink/ChatLink.tsx index 76e95ff328b..7e85ff42c3b 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/hooks/usePaneRegistry/components/ChatSession/components/ChatLink/ChatLink.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/hooks/usePaneRegistry/components/ChatSession/components/ChatLink/ChatLink.tsx @@ -48,7 +48,7 @@ function openInApp( return; case "environment": void navigate({ - to: "/environments/$environmentId", + to: "/settings/environments/$environmentId", params: { environmentId: link.environmentId }, }); return; diff --git a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/hooks/usePaneRegistry/components/ChatSession/components/Composer/Composer.tsx b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/hooks/usePaneRegistry/components/ChatSession/components/Composer/Composer.tsx index 7d680a15dad..78042f5a9a5 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/hooks/usePaneRegistry/components/ChatSession/components/Composer/Composer.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/hooks/usePaneRegistry/components/ChatSession/components/Composer/Composer.tsx @@ -62,6 +62,7 @@ import { mcpContextLine } from "../../utils/mcpServerChips"; import { elementsForChips } from "../../utils/messageElements"; import { AccountLimitNotice } from "./components/AccountLimitNotice"; import { ContextWindowRing } from "./components/ContextWindowRing"; +import { EnvironmentSetupNotice } from "./components/EnvironmentSetupNotice"; import { FILE_SEARCH_LIMIT } from "./constants"; import { useAppCommands } from "./hooks/useAppCommands"; import { @@ -607,6 +608,17 @@ export const Composer = memo(function Composer({ [availableCommands, blocked, runTyped, send, t, target], ); + const insertSetupPrompt = useCallback((prompt: string) => { + const input = promptInputRef.current; + if (!input) return; + input.restoreDraft({ + segments: [ + { type: "text", text: input.isEmpty() ? prompt : `\n\n${prompt}` }, + ], + attachments: [], + }); + }, []); + return (
)} + {!target && ( + + )} void; +}) { + const { data: session } = authClient.useSession(); + const environment = useWorkspaceEnvironment(workspaceId); + if ( + environment?.sourceKind !== "image" || + !session?.user?.id || + environment.createdByUserId !== session.user.id + ) { + return null; + } + const environmentUrl = new URL( + `/environments/${environment.id}`, + env.NEXT_PUBLIC_WEB_URL, + ).toString(); + return ( +
+ + onSetUp( + withEnvironmentSetupSkill(ENVIRONMENT_SETUP_PROMPT, environmentUrl), + ) + } + /> +
+ ); +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/hooks/usePaneRegistry/components/ChatSession/components/Composer/components/EnvironmentSetupNotice/index.ts b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/hooks/usePaneRegistry/components/ChatSession/components/Composer/components/EnvironmentSetupNotice/index.ts new file mode 100644 index 00000000000..2e692c079cc --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspace/$workspaceId/hooks/usePaneRegistry/components/ChatSession/components/Composer/components/EnvironmentSetupNotice/index.ts @@ -0,0 +1 @@ +export { EnvironmentSetupNotice } from "./EnvironmentSetupNotice"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/CreateEnvironmentFlow.tsx b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/CreateEnvironmentFlow.tsx index f98edac1c80..83188c7bb7b 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/CreateEnvironmentFlow.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/CreateEnvironmentFlow.tsx @@ -1,31 +1,38 @@ import { useLingui } from "@lingui/react/macro"; import { errorMessage } from "@superset/i18n/errors"; +import { isCloudUsageRefusal } from "@superset/shared/billing"; import { Dialog, DialogContent } from "@superset/ui/dialog"; import { toast } from "@superset/ui/sonner"; import { useNavigate } from "@tanstack/react-router"; -import { useState } from "react"; +import { useRef, useState } from "react"; import { env } from "renderer/env.renderer"; -import { useCreateAgentSession } from "renderer/hooks/useCreateAgentSession"; import { cloudTrpc } from "renderer/lib/cloud-trpc"; +import { environmentSetupAgentPrompt } from "renderer/routes/_authenticated/utils/environmentSetupPrompt"; import { ChoosePrimaryStep } from "./components/ChoosePrimaryStep"; import { ConnectGitHubStep } from "./components/ConnectGitHubStep"; import { PickRepositoriesStep } from "./components/PickRepositoriesStep"; -import { setupPrompt } from "./utils/setupPrompt"; +import { useStartSetupAgent } from "./hooks/useStartSetupAgent"; +import { type EnvironmentProject, projectToLink } from "./utils/projectToLink"; interface CreateEnvironmentFlowProps { organizationId: string; - projectId?: string | null; + /** Linked to the new environment when it opens on the project's repository. */ + project?: EnvironmentProject | null; open: boolean; onOpenChange: (open: boolean) => void; onStarted?: () => void; + agent?: string; + setupPrompt?: (environmentUrl: string) => string; } export function CreateEnvironmentFlow({ organizationId, - projectId, + project, open, onOpenChange, onStarted, + agent, + setupPrompt = environmentSetupAgentPrompt, }: CreateEnvironmentFlowProps) { const { t } = useLingui(); const utils = cloudTrpc.useUtils(); @@ -51,8 +58,10 @@ export function CreateEnvironmentFlow({ fullName: string; }> | null>(null); const [pickedIds, setPickedIds] = useState([]); + const inFlightRef = useRef(false); const create = cloudTrpc.environment.create.useMutation(); - const { createSession, isPending: isLaunching } = useCreateAgentSession(); + const { start: startSetupAgent, isPending: isLaunching } = + useStartSetupAgent(); const activeInstallation = installation.data && !installation.data.suspended @@ -70,20 +79,33 @@ export function CreateEnvironmentFlow({ ? usage.data.limit : null; + const handleOpenChange = (nextOpen: boolean) => { + if (!nextOpen) { + setPicked(null); + setPickedIds([]); + setSkippedAccount(false); + } + onOpenChange(nextOpen); + }; + const openGitHubIntegration = () => { window.open(`${env.NEXT_PUBLIC_WEB_URL}/integrations/github`, "_blank"); }; const getStarted = async ( - repositories: ReadonlyArray<{ id: string; name: string }>, + repositories: ReadonlyArray<{ id: string; name: string; fullName: string }>, primaryId = repositories[0]?.id, + { startAgent = true }: { startAgent?: boolean } = {}, ) => { const primary = repositories.find( (repository) => repository.id === primaryId, ); - if (!primary) return; + if (!primary || inFlightRef.current) return; + inFlightRef.current = true; + const projectId = projectToLink(project, primary.fullName); + let environment: Awaited>; try { - const environment = await create.mutateAsync({ + environment = await create.mutateAsync({ organizationId, name: primary.name, repositoryIds: [ @@ -96,27 +118,57 @@ export function CreateEnvironmentFlow({ scope: "personal", ...(projectId ? { projectId } : {}), }); - void utils.environment.list.invalidate(); - void utils.billing.environmentUsage.invalidate(); - const url = new URL( - `/environments/${environment.id}`, - env.NEXT_PUBLIC_WEB_URL, - ).toString(); - // Stays open, saying Starting…, until the session's page replaces this one. - await createSession(setupPrompt(url), { - preset: "claude", - preferChat: true, - name: t({ message: `Set up ${environment.name}` }), + } catch (error) { + inFlightRef.current = false; + toast.error(errorMessage(error)); + return; + } + void utils.environment.list.invalidate(); + void utils.billing.environmentUsage.invalidate(); + const name = environment.name; + if (!startAgent) { + inFlightRef.current = false; + handleOpenChange(false); + toast.success(t({ message: `Saved ${name}` })); + return; + } + const url = new URL( + `/environments/${environment.id}`, + env.NEXT_PUBLIC_WEB_URL, + ).toString(); + try { + await startSetupAgent({ + organizationId, + environment, + prompt: setupPrompt(url), + agent, }); - onOpenChange(false); + handleOpenChange(false); onStarted?.(); } catch (error) { - toast.error(errorMessage(error)); + // The environment exists either way; closing keeps a retry from making a second one. + handleOpenChange(false); + const reason = errorMessage(error); + toast.error( + t({ + message: `Saved ${name}, but its setup workspace could not start: ${reason}`, + }), + isCloudUsageRefusal(error) + ? { + action: { + label: t({ message: "Open billing" }), + onClick: () => void navigate({ to: "/settings/billing" }), + }, + } + : undefined, + ); + } finally { + inFlightRef.current = false; } }; return ( - + {needsConnecting ? ( onOpenChange(false)} + onCancel={() => handleOpenChange(false)} onContinue={() => setSkippedAccount(true)} onInstallApp={openGitHubIntegration} /> @@ -133,6 +185,9 @@ export function CreateEnvironmentFlow({ isStarting={create.isPending || isLaunching} onBack={() => setPicked(null)} onGetStarted={(primaryId) => getStarted(picked, primaryId)} + onSkip={(primaryId) => + getStarted(picked, primaryId, { startAgent: false }) + } repositories={picked} /> ) : ( @@ -143,19 +198,23 @@ export function CreateEnvironmentFlow({ isStarting={create.isPending || isLaunching} reachedLimit={reachedLimit} onManageEnvironments={() => { - onOpenChange(false); + handleOpenChange(false); void navigate({ to: "/settings/environments" }); }} onUpgrade={() => { - onOpenChange(false); + handleOpenChange(false); void navigate({ to: "/settings/billing/plans" }); }} - onCancel={() => onOpenChange(false)} + onCancel={() => handleOpenChange(false)} onContinue={(repositories) => { setPickedIds(repositories.map((repository) => repository.id)); if (repositories.length > 1) setPicked(repositories); else void getStarted(repositories); }} + onSkip={(repositories) => { + setPickedIds(repositories.map((repository) => repository.id)); + void getStarted(repositories, undefined, { startAgent: false }); + }} organizationId={organizationId} /> )} diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/components/ChoosePrimaryStep/ChoosePrimaryStep.tsx b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/components/ChoosePrimaryStep/ChoosePrimaryStep.tsx index 3d5e76ea73f..ade6ff30667 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/components/ChoosePrimaryStep/ChoosePrimaryStep.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/components/ChoosePrimaryStep/ChoosePrimaryStep.tsx @@ -10,12 +10,14 @@ import { Label } from "@superset/ui/label"; import { RadioGroup, RadioGroupItem } from "@superset/ui/radio-group"; import { useState } from "react"; import { FaGithub } from "react-icons/fa"; +import { SetupAgentNote } from "../SetupAgentNote"; interface ChoosePrimaryStepProps { repositories: ReadonlyArray<{ id: string; fullName: string }>; isStarting: boolean; onBack: () => void; onGetStarted: (primaryId: string) => void; + onSkip: (primaryId: string) => void; } export function ChoosePrimaryStep({ @@ -23,6 +25,7 @@ export function ChoosePrimaryStep({ isStarting, onBack, onGetStarted, + onSkip, }: ChoosePrimaryStepProps) { const [primaryId, setPrimaryId] = useState(repositories[0]?.id ?? ""); @@ -63,17 +66,26 @@ export function ChoosePrimaryStep({ ))}
+ + diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/components/PickRepositoriesStep/PickRepositoriesStep.tsx b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/components/PickRepositoriesStep/PickRepositoriesStep.tsx index 2759b078b3d..a2b1f05fd2c 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/components/PickRepositoriesStep/PickRepositoriesStep.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/components/PickRepositoriesStep/PickRepositoriesStep.tsx @@ -22,6 +22,7 @@ import { HiCheck } from "react-icons/hi2"; import { LuRefreshCw } from "react-icons/lu"; import { cloudTrpc } from "renderer/lib/cloud-trpc"; import { githubAppSettingsUrl } from "renderer/lib/github/githubAppSettingsUrl"; +import { SetupAgentNote } from "../SetupAgentNote"; import type { GitHubInstallationOption } from "./types"; interface PickRepositoriesStepProps { @@ -37,6 +38,9 @@ interface PickRepositoriesStepProps { onContinue: ( repositories: ReadonlyArray<{ id: string; name: string; fullName: string }>, ) => void; + onSkip: ( + repositories: ReadonlyArray<{ id: string; name: string; fullName: string }>, + ) => void; onCancel: () => void; } @@ -50,6 +54,7 @@ export function PickRepositoriesStep({ onUpgrade, initialSelectedIds = [], onContinue, + onSkip, onCancel, }: PickRepositoriesStepProps) { const { t } = useLingui(); @@ -83,6 +88,7 @@ export function PickRepositoriesStep({ const selected = selectedIds .map((id) => repositories.data?.find((repository) => repository.id === id)) .filter((repository) => repository !== undefined); + const isLastStep = selected.length <= 1; const toggle = (id: string) => setSelectedIds((ids) => ids.includes(id) ? ids.filter((other) => other !== id) : [...ids, id], @@ -96,8 +102,8 @@ export function PickRepositoriesStep({ - Pick the repositories it checks out. An agent on this machine works - out what to install and gets it running in the cloud. + Pick the repositories it checks out. An agent in a cloud workspace + works out what to install and gets it running. {accountLogin && ( @@ -201,6 +207,7 @@ export function PickRepositoriesStep({ )} )} + {isLastStep && } {selected.length === 0 ? ( @@ -212,6 +219,18 @@ export function PickRepositoriesStep({ + {isLastStep && ( + + )} diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/components/SetupAgentNote/SetupAgentNote.tsx b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/components/SetupAgentNote/SetupAgentNote.tsx new file mode 100644 index 00000000000..4cc92dd1403 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/components/SetupAgentNote/SetupAgentNote.tsx @@ -0,0 +1,14 @@ +import { Trans } from "@lingui/react/macro"; + +export function SetupAgentNote() { + return ( +

+ + An agent sets up this environment in a cloud workspace (about 20 minutes + or more): it installs dependencies, writes the setup config and asks for + any secrets it needs. Interrupt it at any time, or take over in the + workspace to finish setup yourself. + +

+ ); +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/components/SetupAgentNote/index.ts b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/components/SetupAgentNote/index.ts new file mode 100644 index 00000000000..acb3ddc7a10 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/components/SetupAgentNote/index.ts @@ -0,0 +1 @@ +export { SetupAgentNote } from "./SetupAgentNote"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/hooks/useStartSetupAgent/index.ts b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/hooks/useStartSetupAgent/index.ts new file mode 100644 index 00000000000..c14940f9f42 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/hooks/useStartSetupAgent/index.ts @@ -0,0 +1 @@ +export { useStartSetupAgent } from "./useStartSetupAgent"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/hooks/useStartSetupAgent/useStartSetupAgent.ts b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/hooks/useStartSetupAgent/useStartSetupAgent.ts new file mode 100644 index 00000000000..d6a199866ad --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/hooks/useStartSetupAgent/useStartSetupAgent.ts @@ -0,0 +1,65 @@ +import { useLingui } from "@lingui/react/macro"; +import { useNavigate } from "@tanstack/react-router"; +import { useCallback } from "react"; +import { cloudTrpc } from "renderer/lib/cloud-trpc"; +import { useDefaultCloudAgent } from "renderer/routes/_authenticated/hooks/useDefaultCloudAgent"; +import { useCollections } from "renderer/routes/_authenticated/providers/CollectionsProvider"; +import { seedPendingCloudChat } from "renderer/stores/workspace-creates/pendingCloudChat"; + +export function useStartSetupAgent() { + const { t } = useLingui(); + const navigate = useNavigate(); + const collections = useCollections(); + const utils = cloudTrpc.useUtils(); + const create = cloudTrpc.cloudWorkspace.create.useMutation(); + const defaultAgent = useDefaultCloudAgent(); + + const start = useCallback( + async ({ + organizationId, + environment, + prompt, + agent = defaultAgent, + }: { + organizationId: string; + environment: { id: string; name: string }; + prompt: string; + agent?: string | null; + }) => { + if (!agent) { + throw new Error( + t({ message: "No agent is available to set up the environment" }), + ); + } + const { initialLaunch, ...created } = await create.mutateAsync({ + organizationId, + environmentId: environment.id, + name: t({ message: `Set up ${environment.name}` }), + prompt, + agent, + agentTerminalId: crypto.randomUUID(), + }); + seedPendingCloudChat({ + collections, + workspaceId: created.id, + launch: initialLaunch, + prompt, + }); + // Seeded, not only invalidated: the route decides between + // "provisioning" and "doesn't exist" off this list. + const listInput = { organizationId }; + await utils.cloudWorkspace.list.cancel(listInput); + utils.cloudWorkspace.list.setData(listInput, (rows) => + rows ? [created, ...rows] : [created], + ); + void navigate({ + to: "/v2-workspace/$workspaceId", + params: { workspaceId: created.id }, + }); + void utils.cloudWorkspace.list.invalidate(); + }, + [create, defaultAgent, t, collections, utils, navigate], + ); + + return { start, isPending: create.isPending }; +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/projectToLink/index.ts b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/projectToLink/index.ts new file mode 100644 index 00000000000..d3f93268e4a --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/projectToLink/index.ts @@ -0,0 +1 @@ +export { type EnvironmentProject, projectToLink } from "./projectToLink"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/projectToLink/projectToLink.test.ts b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/projectToLink/projectToLink.test.ts new file mode 100644 index 00000000000..8c2972c1e8b --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/projectToLink/projectToLink.test.ts @@ -0,0 +1,23 @@ +import { describe, expect, it } from "bun:test"; +import { projectToLink } from "./projectToLink"; + +const MARTEN = { id: "p-marten", repositoryFullName: "ParadevAI/marten" }; + +describe("projectToLink", () => { + it("links the project when the environment opens on its repository", () => { + expect(projectToLink(MARTEN, "paradevai/Marten")).toBe("p-marten"); + }); + + it("does not link a project to another repository's environment", () => { + expect(projectToLink(MARTEN, "ParadevAI/roster")).toBeNull(); + }); + + it("does not link a project without a repository", () => { + expect( + projectToLink( + { id: "p-1", repositoryFullName: null }, + "ParadevAI/roster", + ), + ).toBeNull(); + }); +}); diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/projectToLink/projectToLink.ts b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/projectToLink/projectToLink.ts new file mode 100644 index 00000000000..7cc80db7c7f --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/projectToLink/projectToLink.ts @@ -0,0 +1,15 @@ +export interface EnvironmentProject { + id: string; + repositoryFullName: string | null; +} + +export function projectToLink( + project: EnvironmentProject | null | undefined, + primaryRepositoryFullName: string, +): string | null { + if (!project?.repositoryFullName) return null; + return project.repositoryFullName.toLowerCase() === + primaryRepositoryFullName.toLowerCase() + ? project.id + : null; +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/setupPrompt/index.ts b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/setupPrompt/index.ts deleted file mode 100644 index 6063f1fcd67..00000000000 --- a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/setupPrompt/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { setupPrompt } from "./setupPrompt"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/setupPrompt/setupPrompt.test.ts b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/setupPrompt/setupPrompt.test.ts deleted file mode 100644 index 89a18e5981d..00000000000 --- a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/setupPrompt/setupPrompt.test.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { describe, expect, it } from "bun:test"; -import { setupPrompt } from "./setupPrompt"; - -describe("setupPrompt", () => { - it("names the environment skill and links the new environment", () => { - expect(setupPrompt("https://app.superset.sh/environments/e1")).toBe( - "Use the superset:environment skill to set up the cloud environment https://app.superset.sh/environments/e1", - ); - }); -}); diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/setupPrompt/setupPrompt.ts b/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/setupPrompt/setupPrompt.ts deleted file mode 100644 index e204e2e0790..00000000000 --- a/apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow/utils/setupPrompt/setupPrompt.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** Names the skill rather than running it as a command; the agent loads it. */ -export function setupPrompt(environmentUrl: string): string { - return `Use the superset:environment skill to set up the cloud environment ${environmentUrl}`; -} diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/DashboardNewWorkspaceForm/PromptGroup/hooks/useSubmitWorkspace/useSubmitWorkspace.ts b/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/DashboardNewWorkspaceForm/PromptGroup/hooks/useSubmitWorkspace/useSubmitWorkspace.ts index 46f16a22d12..d69b115a118 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/DashboardNewWorkspaceForm/PromptGroup/hooks/useSubmitWorkspace/useSubmitWorkspace.ts +++ b/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/DashboardNewWorkspaceForm/PromptGroup/hooks/useSubmitWorkspace/useSubmitWorkspace.ts @@ -2,10 +2,7 @@ import { useLingui } from "@lingui/react/macro"; import { acpHarnessForPreset } from "@superset/chat/core"; import { draftText } from "@superset/chat-ui/PromptInput"; import { errorMessage } from "@superset/i18n/errors"; -import { - isCloudUsageRefusal, - type MachineSize, -} from "@superset/shared/billing"; +import { isCloudUsageRefusal } from "@superset/shared/billing"; import { startableCloudEnvironments } from "@superset/shared/cloud-environments"; import { CLOUD_HOST_ID } from "@superset/shared/host-routing"; import { toast } from "@superset/ui/sonner"; @@ -25,6 +22,13 @@ import type { WorkspaceCreateAgent } from "../../types"; import type { UseUploadAttachmentsApi } from "../useUploadAttachments"; import { resolveNames } from "./resolveNames"; +interface Overrides { + cloudEnvironmentId?: string; + cloudPrompt?: (typed: string) => string; + ignoreDraft?: boolean; + cloudAgent?: WorkspaceCreateAgent; +} + /** * Submits a workspace create against the new `workspaces.create` host * procedure. Attachment uploads run optimistically through `useUploadAttachments` @@ -41,14 +45,14 @@ export function useSubmitWorkspace( uploadAttachments: UseUploadAttachmentsApi, promptContext: NewWorkspacePromptContextApi, cloudEnvironmentId: string | null = null, - cloudMachineSize: MachineSize | null = null, hostId: string | null = null, isSession = false, ) { const { t } = useLingui(); const navigate = useNavigate(); const matchRoute = useMatchRoute(); - const { closeAndResetDraft, draft } = useDashboardNewWorkspaceDraft(); + const { closeAndResetDraft, closeModal, draft } = + useDashboardNewWorkspaceDraft(); const prompt = draftText(draft.promptDraft); const { issues: linkedIssues, pr: linkedPR } = useMemo( () => draftLinkedContext(draft.promptDraft), @@ -70,370 +74,399 @@ export function useSubmitWorkspace( const inFlightRef = useRef(false); const [isSubmitting, setIsSubmitting] = useState(false); - const submitWorkspaceInner = useCallback(async () => { - const isCloud = hostId === CLOUD_HOST_ID; - // A cloud workspace clones the one cloud repo, so it has no use for a - // project — and the create surface hides the project picker when cloud - // is the target, which would make this an unanswerable error. - if (!projectId && !isSession && !isCloud) { - toast.error( - t({ - message: "Select a project first", - }), - ); - return; - } - if (isSession && linkedPR !== null) { - toast.error( - t({ - message: "Checking out a PR requires a project", - }), - ); - return; - } - if (!activeOrganizationId) { - toast.error( - t({ - message: "No active organization", - }), - ); - return; - } + const submitWorkspaceInner = useCallback( + async (overrides?: Overrides): Promise => { + const isCloud = hostId === CLOUD_HOST_ID; + // A cloud workspace clones the one cloud repo, so it has no use for a + // project — and the create surface hides the project picker when cloud + // is the target, which would make this an unanswerable error. + if (!projectId && !isSession && !isCloud) { + toast.error( + t({ + message: "Select a project first", + }), + ); + return false; + } + if (isSession && linkedPR !== null) { + toast.error( + t({ + message: "Checking out a PR requires a project", + }), + ); + return false; + } + if (!activeOrganizationId) { + toast.error( + t({ + message: "No active organization", + }), + ); + return false; + } - if (!hostId) { - toast.error( - t({ - message: "No active host", - }), - ); - return; - } + if (!hostId) { + toast.error( + t({ + message: "No active host", + }), + ); + return false; + } - const { readyIds: attachmentIds, errors } = - await uploadAttachments.awaitUploads(); - if (errors.length > 0) { - const first = errors[0]; - toast.error( - first.filename - ? t({ - message: `Attachment upload failed (${first.filename}): ${first.message}`, - }) - : t({ - message: `Attachment upload failed: ${first.message}`, - }), - ); - return; - } + const ignoreDraft = overrides?.ignoreDraft === true; + const { readyIds: attachmentIds, errors } = ignoreDraft + ? { readyIds: [], errors: [] } + : await uploadAttachments.awaitUploads(); + if (errors.length > 0) { + const first = errors[0]; + toast.error( + first.filename + ? t({ + message: `Attachment upload failed (${first.filename}): ${first.message}`, + }) + : t({ + message: `Attachment upload failed: ${first.message}`, + }), + ); + return false; + } - const { branchName, workspaceName } = resolveNames(draft); + const { branchName, workspaceName } = ignoreDraft + ? { branchName: null, workspaceName: null } + : resolveNames(draft); - // Cloud workspaces are provisioned by the API, not the local host, so - // they bypass the host `workspaces.create` path entirely. - if (isCloud) { - try { - // Checked against the live list so a stale draft can't start a - // vanished environment. - const environmentId = cloudEnvironmentId - ? startableCloudEnvironments( - await cloudTrpcClient.environment.list.query({ - organizationId: activeOrganizationId, + // Cloud workspaces are provisioned by the API, not the local host, so + // they bypass the host `workspaces.create` path entirely. + if (isCloud) { + try { + // Checked against the live list so a stale draft can't start a + // vanished environment. + const requestedEnvironmentId = + overrides?.cloudEnvironmentId ?? cloudEnvironmentId; + const environmentId = requestedEnvironmentId + ? startableCloudEnvironments( + await cloudTrpcClient.environment.list.query({ + organizationId: activeOrganizationId, + }), + ).find((row) => row.id === requestedEnvironmentId)?.id + : undefined; + if (!environmentId) { + toast.error( + t({ + message: + "Add an environment in Settings before creating a cloud workspace", }), - ).find((row) => row.id === cloudEnvironmentId)?.id - : undefined; - if (!environmentId) { - toast.error( - t({ - message: - "Add an environment in Settings before creating a cloud workspace", - }), - ); - return; - } - // A typed name wins; otherwise the API names it from the prompt, - // since nothing about a cloud workspace runs on this device. - // Returns as soon as the row exists — the sandbox is still being - // provisioned behind it, which the workspace screen renders. - // Same rule as a local create: an agent launches only when there - // is something to say to it. Attachments were uploaded to cloud - // storage rather than a host, so the ids here are `files.id`s the - // sandbox resolves and pulls once it is up. - const wantCloudAgent = - selectedAgent !== "none" && - (!!prompt.trim() || linkedPR !== null || linkedIssues.length > 0); - const cloudPrompt = wantCloudAgent - ? await promptContext.build({ - userPrompt: prompt, - linkedPR: linkedPR, - linkedIssues: linkedIssues, - timeoutMs: 2000, - }) - : null; - const createdResult = await createCloudWorkspace.mutateAsync({ - organizationId: activeOrganizationId, - environmentId, - name: workspaceName ?? undefined, - // Linked PR and issue bodies can push this past the create input's - // 20,000-character cap. - prompt: (cloudPrompt ?? prompt).trim().slice(0, 20_000) || undefined, - typedPrompt: prompt.trim().slice(0, 20_000) || undefined, - taskIds: linkedIssues - .flatMap((issue) => - issue.source === "internal" && issue.taskId ? [issue.taskId] : [], - ) - .slice(0, 10), - branch: draft.baseBranch ?? branchName ?? undefined, - machineSize: cloudMachineSize ?? undefined, - ...(attachmentIds.length > 0 - ? { attachmentFileIds: attachmentIds } - : {}), - ...(wantCloudAgent - ? { - agent: selectedAgent, - model: selectedModel ?? undefined, - effort: selectedEffort ?? undefined, - mode: selectedMode ?? undefined, - agentTerminalId: crypto.randomUUID(), - } - : {}), - }); - const { initialLaunch, ...created } = createdResult; - if (initialLaunch?.surface === "chat") { - seedPendingCloudChat({ - collections, - workspaceId: created.id, - launch: initialLaunch, - prompt: prompt.trim(), - modelId: selectedModel, - modeId: selectedMode, + ); + return false; + } + // A typed name wins; otherwise the API names it from the prompt, + // since nothing about a cloud workspace runs on this device. + // Returns as soon as the row exists — the sandbox is still being + // provisioned behind it, which the workspace screen renders. + // Same rule as a local create: an agent launches only when there + // is something to say to it. Attachments were uploaded to cloud + // storage rather than a host, so the ids here are `files.id`s the + // sandbox resolves and pulls once it is up. + const userPrompt = overrides?.cloudPrompt?.(prompt) ?? prompt; + const cloudLinkedPR = ignoreDraft ? null : linkedPR; + const cloudLinkedIssues = ignoreDraft ? [] : linkedIssues; + const cloudAgent = overrides?.cloudAgent ?? selectedAgent; + const isSelectedAgent = cloudAgent === selectedAgent; + const wantCloudAgent = + cloudAgent !== "none" && + (!!userPrompt.trim() || + cloudLinkedPR !== null || + cloudLinkedIssues.length > 0); + const cloudPrompt = wantCloudAgent + ? await promptContext.build({ + userPrompt, + linkedPR: cloudLinkedPR, + linkedIssues: cloudLinkedIssues, + timeoutMs: 2000, + }) + : null; + const createdResult = await createCloudWorkspace.mutateAsync({ + organizationId: activeOrganizationId, + environmentId, + name: workspaceName ?? undefined, + // Linked PR and issue bodies can push this past the create input's + // 20,000-character cap. + prompt: + (cloudPrompt ?? userPrompt).trim().slice(0, 20_000) || undefined, + typedPrompt: userPrompt.trim().slice(0, 20_000) || undefined, + taskIds: cloudLinkedIssues + .flatMap((issue) => + issue.source === "internal" && issue.taskId + ? [issue.taskId] + : [], + ) + .slice(0, 10), + branch: draft.baseBranch ?? branchName ?? undefined, + ...(attachmentIds.length > 0 + ? { attachmentFileIds: attachmentIds } + : {}), + ...(wantCloudAgent + ? { + agent: cloudAgent, + ...(isSelectedAgent + ? { + model: selectedModel ?? undefined, + effort: selectedEffort ?? undefined, + mode: selectedMode ?? undefined, + } + : {}), + agentTerminalId: crypto.randomUUID(), + } + : {}), }); - } - closeAndResetDraft(); - // The cloud list is what both the sidebar and the workspace route - // read, and nothing used to tell it a workspace had been created — - // the row appeared whenever the poll next came round, which is why - // creating one felt like nothing had happened. Seeded rather than - // only invalidated because the route we're about to open decides - // between "provisioning" and "doesn't exist" off this list, and - // even one refetch round trip is long enough to flash the wrong - // one. Cancelled first so an in-flight fetch from before the - // create can't land on top of the patch. - const listInput = { organizationId: activeOrganizationId }; - await utils.cloudWorkspace.list.cancel(listInput); - utils.cloudWorkspace.list.setData(listInput, (rows) => - rows ? [created, ...rows] : [created], - ); - void navigate({ - to: "/v2-workspace/$workspaceId", - params: { workspaceId: created.id }, - }).catch((error) => { - console.error( - "[useSubmitWorkspace] failed to open cloud workspace", - error, + const { initialLaunch, ...created } = createdResult; + if (initialLaunch?.surface === "chat") { + seedPendingCloudChat({ + collections, + workspaceId: created.id, + launch: initialLaunch, + prompt: userPrompt.trim(), + modelId: isSelectedAgent ? selectedModel : null, + modeId: isSelectedAgent ? selectedMode : null, + }); + } + if (ignoreDraft) closeModal(); + else closeAndResetDraft(); + // The cloud list is what both the sidebar and the workspace route + // read, and nothing used to tell it a workspace had been created — + // the row appeared whenever the poll next came round, which is why + // creating one felt like nothing had happened. Seeded rather than + // only invalidated because the route we're about to open decides + // between "provisioning" and "doesn't exist" off this list, and + // even one refetch round trip is long enough to flash the wrong + // one. Cancelled first so an in-flight fetch from before the + // create can't land on top of the patch. + const listInput = { organizationId: activeOrganizationId }; + await utils.cloudWorkspace.list.cancel(listInput); + utils.cloudWorkspace.list.setData(listInput, (rows) => + rows ? [created, ...rows] : [created], ); - }); - // Server truth on top of the patch — the generated name lands here. - void utils.cloudWorkspace.list.invalidate(); - } catch (error) { - toast.error( - errorMessage( - error, - t({ - message: "Could not create cloud workspace", - }), - ), - isCloudUsageRefusal(error) - ? { - action: { - label: t({ message: "Open billing" }), - onClick: () => { - void navigate({ to: "/settings/billing" }); + void navigate({ + to: "/v2-workspace/$workspaceId", + params: { workspaceId: created.id }, + }).catch((error) => { + console.error( + "[useSubmitWorkspace] failed to open cloud workspace", + error, + ); + }); + // Server truth on top of the patch — the generated name lands here. + void utils.cloudWorkspace.list.invalidate(); + return true; + } catch (error) { + toast.error( + errorMessage( + error, + t({ + message: "Could not create cloud workspace", + }), + ), + isCloudUsageRefusal(error) + ? { + action: { + label: t({ message: "Open billing" }), + onClick: () => { + void navigate({ to: "/settings/billing" }); + }, }, - }, - } - : undefined, - ); + } + : undefined, + ); + } + return false; } - return; - } - - const isPrCheckout = linkedPR !== null; - // A PR always needs its own worktree; otherwise the picker decides. - const isLocalCheckout = !isPrCheckout && draft.checkout === "local"; - const linkedTaskId = linkedIssues.find( - (issue) => issue.source === "internal" && issue.taskId, - )?.taskId; + const isPrCheckout = linkedPR !== null; + // A PR always needs its own worktree; otherwise the picker decides. + const isLocalCheckout = !isPrCheckout && draft.checkout === "local"; - const hasAnyContext = - !!prompt.trim() || - linkedPR !== null || - linkedIssues.length > 0 || - attachmentIds.length > 0; - const wantAgent = selectedAgent !== "none" && hasAnyContext; + const linkedTaskId = linkedIssues.find( + (issue) => issue.source === "internal" && issue.taskId, + )?.taskId; - const finalPrompt = wantAgent - ? await promptContext.build({ - userPrompt: prompt, - linkedPR: linkedPR, - linkedIssues: linkedIssues, - timeoutMs: 2000, - }) - : null; + const hasAnyContext = + !!prompt.trim() || + linkedPR !== null || + linkedIssues.length > 0 || + attachmentIds.length > 0; + const wantAgent = selectedAgent !== "none" && hasAnyContext; - const openAsChat = - wantAgent && - Boolean(acpHarnessForPreset(selectedPresetId)) && - (await resolveAcpChatEnabled()); - const agents = wantAgent - ? [ - { - agent: selectedAgent, - prompt: finalPrompt ?? "", - attachmentIds: attachmentIds.length > 0 ? attachmentIds : undefined, - model: selectedModel ?? undefined, - effort: openAsChat ? undefined : (selectedEffort ?? undefined), - mode: selectedMode ?? undefined, - ...(openAsChat ? { surface: "chat" as const } : {}), - }, - ] - : undefined; + const finalPrompt = wantAgent + ? await promptContext.build({ + userPrompt: prompt, + linkedPR: linkedPR, + linkedIssues: linkedIssues, + timeoutMs: 2000, + }) + : null; - // PR path supplies a name (PR title) so the in-flight UI has - // something to show immediately. Branch path leaves both `name` - // and `branch` undefined when the user didn't type — a typed name - // seeds the branch slug; otherwise the server creates with a - // friendly random and AI-renames once names arrive. - const prName = isPrCheckout - ? linkedPR?.title || `PR #${linkedPR?.prNumber}` - : undefined; + const openAsChat = + wantAgent && + Boolean(acpHarnessForPreset(selectedPresetId)) && + (await resolveAcpChatEnabled()); + const agents = wantAgent + ? [ + { + agent: selectedAgent, + prompt: finalPrompt ?? "", + attachmentIds: + attachmentIds.length > 0 ? attachmentIds : undefined, + model: selectedModel ?? undefined, + effort: openAsChat ? undefined : (selectedEffort ?? undefined), + mode: selectedMode ?? undefined, + ...(openAsChat ? { surface: "chat" as const } : {}), + }, + ] + : undefined; - const trimmedPrompt = prompt.trim(); - const namingPrompt = openAsChat - ? (finalPrompt ?? trimmedPrompt).trim().slice(0, 20_000) || undefined - : !wantAgent && trimmedPrompt - ? trimmedPrompt + // PR path supplies a name (PR title) so the in-flight UI has + // something to show immediately. Branch path leaves both `name` + // and `branch` undefined when the user didn't type — a typed name + // seeds the branch slug; otherwise the server creates with a + // friendly random and AI-renames once names arrive. + const prName = isPrCheckout + ? linkedPR?.title || `PR #${linkedPR?.prNumber}` : undefined; - const namingAgent = openAsChat ? selectedAgent : undefined; - const workspaceId = crypto.randomUUID(); - const snapshot = isSession - ? { - id: workspaceId, - projectId: null, - name: workspaceName ?? undefined, - agents, - namingPrompt, - namingAgent, - } - : isLocalCheckout + + const trimmedPrompt = prompt.trim(); + const namingPrompt = openAsChat + ? (finalPrompt ?? trimmedPrompt).trim().slice(0, 20_000) || undefined + : !wantAgent && trimmedPrompt + ? trimmedPrompt + : undefined; + const namingAgent = openAsChat ? selectedAgent : undefined; + const workspaceId = crypto.randomUUID(); + const snapshot = isSession ? { id: workspaceId, - projectId: projectId as string, - checkout: "local" as const, + projectId: null, name: workspaceName ?? undefined, - taskId: linkedTaskId, agents, namingPrompt, namingAgent, } - : { - id: workspaceId, - projectId: projectId as string, - name: isPrCheckout ? prName : (workspaceName ?? undefined), - branch: isPrCheckout ? undefined : (branchName ?? undefined), - skipBranchPrefix: - !isPrCheckout && - branchName !== null && - draft.branchNameFromProvider - ? true - : undefined, - pr: isPrCheckout ? linkedPR?.prNumber : undefined, - baseBranch: draft.baseBranch ?? undefined, - taskId: linkedTaskId, - agents, - namingPrompt: isPrCheckout ? undefined : namingPrompt, - namingAgent: isPrCheckout ? undefined : namingAgent, - }; - - if (trimmedPrompt) { - usePromptHistoryStore.getState().recordPrompt(trimmedPrompt); - } - - closeAndResetDraft(); - const { completed } = submit({ hostId, snapshot }); - void navigate({ - to: "/v2-workspace/$workspaceId", - params: { workspaceId }, - }).catch((error) => { - console.error("[useSubmitWorkspace] failed to open workspace", error); - }); - - const isViewingOptimisticWorkspace = () => { - const workspaceMatch = matchRoute({ - to: "/v2-workspace/$workspaceId", - }); - return ( - workspaceMatch !== false && workspaceMatch.workspaceId === workspaceId - ); - }; + : isLocalCheckout + ? { + id: workspaceId, + projectId: projectId as string, + checkout: "local" as const, + name: workspaceName ?? undefined, + taskId: linkedTaskId, + agents, + namingPrompt, + namingAgent, + } + : { + id: workspaceId, + projectId: projectId as string, + name: isPrCheckout ? prName : (workspaceName ?? undefined), + branch: isPrCheckout ? undefined : (branchName ?? undefined), + skipBranchPrefix: + !isPrCheckout && + branchName !== null && + draft.branchNameFromProvider + ? true + : undefined, + pr: isPrCheckout ? linkedPR?.prNumber : undefined, + baseBranch: draft.baseBranch ?? undefined, + taskId: linkedTaskId, + agents, + namingPrompt: isPrCheckout ? undefined : namingPrompt, + namingAgent: isPrCheckout ? undefined : namingAgent, + }; - void completed.then((outcome) => { - if (!outcome.ok) return; + if (trimmedPrompt) { + usePromptHistoryStore.getState().recordPrompt(trimmedPrompt); + } - // The server can resolve the optimistic workspace to a different - // canonical id; follow it only if we're still on the optimistic route. - if (outcome.workspaceId === workspaceId) return; - if (!isViewingOptimisticWorkspace()) return; + closeAndResetDraft(); + const { completed } = submit({ hostId, snapshot }); void navigate({ to: "/v2-workspace/$workspaceId", - params: { workspaceId: outcome.workspaceId }, - replace: true, + params: { workspaceId }, }).catch((error) => { - console.error( - "[useSubmitWorkspace] failed to redirect workspace", - error, + console.error("[useSubmitWorkspace] failed to open workspace", error); + }); + + const isViewingOptimisticWorkspace = () => { + const workspaceMatch = matchRoute({ + to: "/v2-workspace/$workspaceId", + }); + return ( + workspaceMatch !== false && workspaceMatch.workspaceId === workspaceId ); + }; + + void completed.then((outcome) => { + if (!outcome.ok) return; + + // The server can resolve the optimistic workspace to a different + // canonical id; follow it only if we're still on the optimistic route. + if (outcome.workspaceId === workspaceId) return; + if (!isViewingOptimisticWorkspace()) return; + void navigate({ + to: "/v2-workspace/$workspaceId", + params: { workspaceId: outcome.workspaceId }, + replace: true, + }).catch((error) => { + console.error( + "[useSubmitWorkspace] failed to redirect workspace", + error, + ); + }); }); - }); - }, [ - activeOrganizationId, - resolveAcpChatEnabled, - selectedPresetId, - closeAndResetDraft, - collections, - createCloudWorkspace, - draft, - prompt, - linkedIssues, - linkedPR, - isSession, - matchRoute, - hostId, - navigate, - projectId, - promptContext, - selectedAgent, - selectedModel, - selectedEffort, - selectedMode, - submit, - t, - uploadAttachments, - utils, - cloudEnvironmentId, - cloudMachineSize, - ]); + return true; + }, + [ + activeOrganizationId, + resolveAcpChatEnabled, + selectedPresetId, + closeAndResetDraft, + closeModal, + collections, + createCloudWorkspace, + draft, + prompt, + linkedIssues, + linkedPR, + isSession, + matchRoute, + hostId, + navigate, + projectId, + promptContext, + selectedAgent, + selectedModel, + selectedEffort, + selectedMode, + submit, + t, + uploadAttachments, + utils, + cloudEnvironmentId, + ], + ); - const submitWorkspace = useCallback(async () => { - if (inFlightRef.current) return; - inFlightRef.current = true; - setIsSubmitting(true); - try { - await submitWorkspaceInner(); - } finally { - inFlightRef.current = false; - setIsSubmitting(false); - } - }, [submitWorkspaceInner]); + const submitWorkspace = useCallback( + async (overrides?: Overrides): Promise => { + if (inFlightRef.current) return false; + inFlightRef.current = true; + setIsSubmitting(true); + try { + return await submitWorkspaceInner(overrides); + } finally { + inFlightRef.current = false; + setIsSubmitting(false); + } + }, + [submitWorkspaceInner], + ); // Spans the whole submit — pending uploads, the cloud environment lookup, // and the create itself — so the submit control reads busy for exactly the diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/NewWorkspaceScreen.tsx b/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/NewWorkspaceScreen.tsx index 150a9c629ac..f91147088a3 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/NewWorkspaceScreen.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/NewWorkspaceScreen.tsx @@ -2,13 +2,14 @@ import { Trans, useLingui } from "@lingui/react/macro"; import { acpStartModes } from "@superset/chat/core"; import { ComposerDropZone } from "@superset/chat-ui/ComposerDropZone"; import { draftText } from "@superset/chat-ui/PromptInput"; +import { errorMessage } from "@superset/i18n/errors"; import { getAgentEffortSupport, getAgentEfforts, getAgentModelSupport, getAgentModeSupport, } from "@superset/shared/agent-models"; -import type { MachineSize } from "@superset/shared/billing"; +import { isCloudUsageRefusal } from "@superset/shared/billing"; import { startableCloudEnvironments } from "@superset/shared/cloud-environments"; import { FEATURE_FLAGS } from "@superset/shared/constants"; import { CLOUD_HOST_ID } from "@superset/shared/host-routing"; @@ -24,6 +25,7 @@ import { useCallback, useEffect, useMemo, useRef, useState } from "react"; import { LuGitPullRequest } from "react-icons/lu"; import type { AgentSelectAgent } from "renderer/components/AgentSelect"; import { GitHubStarPill } from "renderer/components/GitHubStarPill"; +import { env } from "renderer/env.renderer"; import { useHostProjects } from "renderer/hooks/host-projects/useHostProjects"; import { resolveHostUrl } from "renderer/hooks/host-service/useHostTargetUrl"; import { useAcpChatEnabled } from "renderer/hooks/useAcpChatEnabled"; @@ -51,10 +53,15 @@ import { useGitHubMentionProviders } from "renderer/routes/_authenticated/compon import { draftLinkedContext } from "renderer/routes/_authenticated/components/AgentComposer/utils/linkedContextChips"; import { CreateEnvironmentFlow } from "renderer/routes/_authenticated/components/CreateEnvironmentFlow"; import { EnvironmentPickerPill } from "renderer/routes/_authenticated/components/EnvironmentPickerPill"; -import { MachineSizePickerPill } from "renderer/routes/_authenticated/components/MachineSizePickerPill"; -import { useMachineSizeOptions } from "renderer/routes/_authenticated/hooks/useMachineSizeOptions"; +import { SetUpEnvironmentButton } from "renderer/routes/_authenticated/components/SetUpEnvironmentButton"; +import { useDefaultCloudAgent } from "renderer/routes/_authenticated/hooks/useDefaultCloudAgent"; import { useHostWorkspaces } from "renderer/routes/_authenticated/providers/HostWorkspacesProvider"; import { useLocalHostService } from "renderer/routes/_authenticated/providers/LocalHostServiceProvider"; +import { + ENVIRONMENT_SETUP_PROMPT, + environmentSetupAgentPrompt, + withEnvironmentSetupSkill, +} from "renderer/routes/_authenticated/utils/environmentSetupPrompt"; import { resolveCloudChoices } from "renderer/routes/_authenticated/utils/resolveCloudChoices"; import { useNewWorkspacePromptContext } from "renderer/stores/new-workspace-prompt-context"; import { @@ -88,6 +95,7 @@ import { SamplePrompts } from "./components/SamplePrompts"; import { PROMPT_PLACEHOLDERS } from "./components/SamplePrompts/constants"; import { SupersetIcon } from "./components/SupersetIcon"; import { useConsumeHostIntent } from "./hooks/useConsumeHostIntent"; +import { useCreateProjectEnvironment } from "./hooks/useCreateProjectEnvironment"; import { useGitHubRepositoryProjects } from "./hooks/useGitHubRepositoryProjects"; import { useLinkedIssueNaming } from "./hooks/useLinkedIssueNaming"; import { useSamplePromptSelection } from "./hooks/useSamplePromptSelection"; @@ -99,6 +107,10 @@ import { launchConfigOptions, launchOptionValue, } from "./utils/launchConfigOptions"; +import { + type PendingEnvironmentSetup, + planEnvironmentSetup, +} from "./utils/planEnvironmentSetup"; import { resolveLaunchHost } from "./utils/resolveLaunchHost"; import { type LaunchProjectPick, @@ -139,6 +151,7 @@ export function NewWorkspaceScreen({ const [promptSeed, setPromptSeed] = useState(0); const { closeModal, + closeAndResetDraft, draft, updateDraft, selectProject, @@ -358,7 +371,6 @@ export function NewWorkspaceScreen({ selectedProject?.githubOwner && selectedProject.githubRepoName ? `${selectedProject.githubOwner}/${selectedProject.githubRepoName}` : null; - const machineSizeOptions = useMachineSizeOptions(); const cloudProjectId = isSession ? null : projectId; const cloudChoiceKey = cloudProjectId ?? NO_PROJECT_KEY; const cloudSelection = useMemo( @@ -368,20 +380,42 @@ export function NewWorkspaceScreen({ projectId: cloudProjectId, repositoryFullName: projectRepositoryFullName, choices: cloudChoices, - offeredSizes: machineSizeOptions.options.map((option) => option.size), - defaultSize: machineSizeOptions.defaultSize, }), [ environmentsQuery.data, cloudProjectId, projectRepositoryFullName, cloudChoices, - machineSizeOptions, ], ); const resolvedEnvironment = cloudSelection.environment ?? undefined; - const isCloudTargetLoading = environmentsQuery.isLoading || github.isLoading; + const isCloudTargetLoading = + environmentsQuery.isLoading || github.isLoading || !areProjectsReady; const [isCreatingEnvironment, setIsCreatingEnvironment] = useState(false); + const [dialogSendsDraft, setDialogSendsDraft] = useState(false); + const [pendingSetup, setPendingSetup] = + useState(null); + const needsEnvironment = + isCloudHost && + cloudEnabled !== false && + environmentsQuery.isSuccess && + !isCloudTargetLoading && + !resolvedEnvironment; + const projectRepository = projectRepositoryFullName + ? github.repositoriesByFullName.get(projectRepositoryFullName.toLowerCase()) + : undefined; + const { createEnvironment, isCreating: isCreatingProjectEnvironment } = + useCreateProjectEnvironment(activeOrganizationId); + const setupPlan = isCloudHost + ? planEnvironmentSetup({ + pending: pendingSetup, + choiceKey: cloudChoiceKey, + selectedEnvironmentId: resolvedEnvironment?.id ?? null, + needsEnvironment, + repository: projectRepository, + }) + : null; + const defaultCloudAgent = useDefaultCloudAgent(); const cloudRepository = useMemo(() => { if (!isCloudHost) return null; const primary = resolvedEnvironment?.repositories?.[0]; @@ -512,28 +546,15 @@ export function NewWorkspaceScreen({ setCloudChoice(cloudChoiceKey, { environmentId }), [setCloudChoice, cloudChoiceKey], ); - const handleSelectMachineSize = useCallback( - (machineSize: MachineSize) => - setCloudChoice(cloudChoiceKey, { machineSize }), - [setCloudChoice, cloudChoiceKey], - ); const cloudSettings = useMemo( () => isCloudHost ? { environments: [...cloudSelection.linked, ...cloudSelection.other], onSelectEnvironment: handleSelectEnvironment, - machineSizes: machineSizeOptions.options, - onSelectMachineSize: handleSelectMachineSize, } : null, - [ - isCloudHost, - cloudSelection, - handleSelectEnvironment, - machineSizeOptions, - handleSelectMachineSize, - ], + [isCloudHost, cloudSelection, handleSelectEnvironment], ); const settingProviders = useWorkspaceSettingMentionProviders({ projects: selectableProjects, @@ -764,7 +785,6 @@ export function NewWorkspaceScreen({ uploadAttachments, promptContext, resolvedEnvironment?.id ?? null, - isCloudHost ? cloudSelection.machineSize : null, hostId, isSession, ); @@ -779,9 +799,9 @@ export function NewWorkspaceScreen({ "Cloud workspaces need the Team or Ultra plan. Upgrade in Settings, Billing to start one.", }); if (isCloudTargetLoading) return t({ message: "Loading environments…" }); - return resolvedEnvironment - ? null - : t({ message: "Select an environment" }); + if (environmentsQuery.isError) + return t({ message: "Could not load environments" }); + return null; } if (isProjectPending || (!selectedProject && !isSession)) return t({ @@ -812,7 +832,7 @@ export function NewWorkspaceScreen({ activeHostUrl, selectedRemoteHostPresence, isCloudTargetLoading, - resolvedEnvironment, + environmentsQuery.isError, t, ]); @@ -843,7 +863,91 @@ export function NewWorkspaceScreen({ }); }, [closeModal, hostId, navigate, selectedProject?.id]); + const setupInFlightRef = useRef(false); + const runEnvironmentSetup = useCallback( + async ({ + cloudPrompt, + ignoreDraft, + }: { + cloudPrompt: (typed: string, environmentUrl: string) => string; + ignoreDraft: boolean; + }) => { + if (!setupPlan || setupInFlightRef.current) return; + if (setupPlan.kind === "dialog") { + setDialogSendsDraft(!ignoreDraft); + setIsCreatingEnvironment(true); + return; + } + const agent = + selectedAgent !== "none" ? selectedAgent : defaultCloudAgent; + if (!agent) { + toast.error( + t({ message: "No agent is available to set up the environment" }), + ); + return; + } + setupInFlightRef.current = true; + try { + let environmentId: string | null = + setupPlan.kind === "reuse" ? setupPlan.environmentId : null; + if (setupPlan.kind === "create") { + environmentId = await createEnvironment({ + repository: setupPlan.repository, + projectId: cloudProjectId, + }); + if (!environmentId) return; + setCloudChoice(cloudChoiceKey, { environmentId }); + setPendingSetup({ choiceKey: cloudChoiceKey, environmentId }); + } + if (!environmentId) return; + const environmentUrl = new URL( + `/environments/${environmentId}`, + env.NEXT_PUBLIC_WEB_URL, + ).toString(); + const started = await createWorkspace({ + cloudEnvironmentId: environmentId, + cloudPrompt: (typed) => cloudPrompt(typed, environmentUrl), + cloudAgent: agent, + ignoreDraft, + }); + if (started) setPendingSetup(null); + } catch (error) { + toast.error( + errorMessage(error, t({ message: "Could not create environment" })), + isCloudUsageRefusal(error) + ? { + action: { + label: t({ message: "Open billing" }), + onClick: () => { + closeModal(); + void navigate({ to: "/settings/billing" }); + }, + }, + } + : undefined, + ); + } finally { + setupInFlightRef.current = false; + } + }, + [ + setupPlan, + selectedAgent, + defaultCloudAgent, + createEnvironment, + cloudProjectId, + setCloudChoice, + cloudChoiceKey, + createWorkspace, + closeModal, + navigate, + t, + ], + ); + + const isStarting = isCreating || isCreatingProjectEnvironment; const handleSubmit = useCallback(() => { + if (isStarting) return; if (needsSetup) { handleGoToSetup(); return; @@ -858,10 +962,20 @@ export function NewWorkspaceScreen({ } return; } + if (setupPlan) { + void runEnvironmentSetup({ + cloudPrompt: withEnvironmentSetupSkill, + ignoreDraft: false, + }); + return; + } void createWorkspace(); }, [ activeHostUrl, createWorkspace, + isStarting, + setupPlan, + runEnvironmentSetup, hostId, handleGoToSetup, hostService, @@ -934,6 +1048,18 @@ export function NewWorkspaceScreen({ tier={samplePromptTier} /> ); + const setUpEnvironmentButton = setupPlan && ( + + void runEnvironmentSetup({ + cloudPrompt: (_typed, environmentUrl) => + withEnvironmentSetupSkill(ENVIRONMENT_SETUP_PROMPT, environmentUrl), + ignoreDraft: true, + }) + } + pending={isStarting} + /> + ); const devicePicker = ( ); @@ -960,22 +1086,40 @@ export function NewWorkspaceScreen({ closeModal(); void navigate({ to: "/settings/environments" }); }} + onEditEnvironment={(environmentId) => { + closeModal(); + void navigate({ + to: "/settings/environments/$environmentId", + params: { environmentId }, + }); + }} isLoading={environmentsQuery.isLoading} /> )} - {isCloudHost && ( - - )} {activeOrganizationId && ( { + setIsCreatingEnvironment(open); + if (!open) setDialogSendsDraft(false); + }} + agent={selectedAgent !== "none" ? selectedAgent : undefined} + onStarted={dialogSendsDraft ? closeAndResetDraft : closeModal} + setupPrompt={ + dialogSendsDraft && !isPromptEmpty + ? (environmentUrl) => + withEnvironmentSetupSkill( + draftText(draft.promptDraft), + environmentUrl, + ) + : environmentSetupAgentPrompt + } open={isCreatingEnvironment} organizationId={activeOrganizationId} - projectId={isSession ? null : projectId} + project={ + isSession || !projectId + ? null + : { id: projectId, repositoryFullName: projectRepositoryFullName } + } /> )} {linkedPR ? ( @@ -1056,28 +1200,31 @@ export function NewWorkspaceScreen({ reserveSpace />
- - {isPromptEmpty && - !samplePromptsPending && - !samplePromptsDismissed && ( - - {samplePromptsList} - - )} - + {/* Out of flow, below the block: the composer is centred on + the screen and must not move when the suggestions go. */} +
+ {setUpEnvironmentButton} + + {isPromptEmpty && + !samplePromptsPending && + !samplePromptsDismissed && ( + + {samplePromptsList} + + )} + +
{contextPickers} @@ -1105,7 +1252,7 @@ export function NewWorkspaceScreen({ return false; }} mentionProviders={mentionProviders} - pending={isCreating} + pending={isStarting} placeholder={t({ message: "Do anything in Paradev" })} />
@@ -1180,6 +1327,9 @@ export function NewWorkspaceScreen({ )} + {setUpEnvironmentButton && ( +
{setUpEnvironmentButton}
+ )} => { + if (!organizationId || inFlightRef.current) return null; + inFlightRef.current = true; + setIsCreating(true); + try { + const environment = await create.mutateAsync({ + organizationId, + name: repository.name, + repositoryIds: [repository.id], + primaryRepositoryId: repository.id, + scope: "personal", + ...(projectId ? { projectId } : {}), + }); + void utils.environment.list.invalidate(); + void utils.billing.environmentUsage.invalidate(); + return environment.id; + } finally { + inFlightRef.current = false; + setIsCreating(false); + } + }, + [organizationId, create, utils], + ); + + return { createEnvironment, isCreating }; +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/hooks/useWorkspaceSettingMentionProviders/useWorkspaceSettingMentionProviders.tsx b/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/hooks/useWorkspaceSettingMentionProviders/useWorkspaceSettingMentionProviders.tsx index b0328dab0dd..efd52f92057 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/hooks/useWorkspaceSettingMentionProviders/useWorkspaceSettingMentionProviders.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/hooks/useWorkspaceSettingMentionProviders/useWorkspaceSettingMentionProviders.tsx @@ -3,17 +3,15 @@ import type { ComposerMentionEntry, ComposerMentionProvider, } from "@superset/chat-ui/PromptInput"; -import type { MachineSize } from "@superset/shared/billing"; import { FEATURE_FLAGS } from "@superset/shared/constants"; import { CLOUD_HOST_ID } from "@superset/shared/host-routing"; import { useFeatureFlagEnabled } from "posthog-js/react"; import { useMemo } from "react"; import { HiOutlineComputerDesktop, HiOutlineServer } from "react-icons/hi2"; -import { LuBox, LuContainer, LuCpu } from "react-icons/lu"; +import { LuBox, LuContainer } from "react-icons/lu"; import { CloudGlyph } from "renderer/routes/_authenticated/components/CloudGlyph"; import type { EnvironmentOption } from "renderer/routes/_authenticated/components/EnvironmentPickerPill"; import { ProjectThumbnail } from "renderer/routes/_authenticated/components/ProjectThumbnail"; -import type { MachineSizeOption } from "renderer/routes/_authenticated/hooks/useMachineSizeOptions"; import { useLocalHostService } from "renderer/routes/_authenticated/providers/LocalHostServiceProvider"; import { useWorkspaceHostOptions } from "../../../DashboardNewWorkspaceForm/components/DevicePicker/hooks/useWorkspaceHostOptions"; import type { ProjectOption } from "../../../DashboardNewWorkspaceForm/PromptGroup/types"; @@ -27,8 +25,6 @@ interface UseWorkspaceSettingMentionProvidersOptions { cloud: { environments: EnvironmentOption[]; onSelectEnvironment: (environmentId: string) => void; - machineSizes: MachineSizeOption[]; - onSelectMachineSize: (machineSize: MachineSize) => void; } | null; } @@ -120,7 +116,6 @@ export function useWorkspaceSettingMentionProviders({ if (!cloud) return providers; const environmentKeywords = [t({ message: "environment" }), "environment"]; - const sizeKeywords = [t({ message: "size" }), "size"]; return [ ...providers, staticProvider( @@ -137,21 +132,6 @@ export function useWorkspaceSettingMentionProviders({ select: () => cloud.onSelectEnvironment(environment.id), })), ), - staticProvider( - { - id: "workspace-machine-sizes", - title: t({ message: "Machine size" }), - priority: 4, - }, - cloud.machineSizes.map((option) => ({ - id: `machine-size:${option.size}`, - label: option.name, - description: option.spec, - keywords: [...sizeKeywords, option.size], - icon: , - select: () => cloud.onSelectMachineSize(option.size), - })), - ), ]; }, [ t, diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/utils/planEnvironmentSetup/index.ts b/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/utils/planEnvironmentSetup/index.ts new file mode 100644 index 00000000000..1a7447ccf35 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/utils/planEnvironmentSetup/index.ts @@ -0,0 +1,5 @@ +export { + type EnvironmentSetupPlan, + type PendingEnvironmentSetup, + planEnvironmentSetup, +} from "./planEnvironmentSetup"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/utils/planEnvironmentSetup/planEnvironmentSetup.test.ts b/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/utils/planEnvironmentSetup/planEnvironmentSetup.test.ts new file mode 100644 index 00000000000..b6f88a4b175 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/utils/planEnvironmentSetup/planEnvironmentSetup.test.ts @@ -0,0 +1,58 @@ +import { describe, expect, it } from "bun:test"; +import { planEnvironmentSetup } from "./planEnvironmentSetup"; + +const PENDING = { choiceKey: "project-a", environmentId: "env-1" }; +const base = { + pending: null, + choiceKey: "project-a", + selectedEnvironmentId: null, + needsEnvironment: true, + repository: { id: "repo-1" }, +}; + +describe("planEnvironmentSetup", () => { + it("retries on the environment made earlier before the list has caught up", () => { + expect(planEnvironmentSetup({ ...base, pending: PENDING })).toEqual({ + kind: "reuse", + environmentId: "env-1", + }); + }); + + it("retries once that environment is the selected one", () => { + expect( + planEnvironmentSetup({ + ...base, + pending: PENDING, + selectedEnvironmentId: "env-1", + needsEnvironment: false, + }), + ).toEqual({ kind: "reuse", environmentId: "env-1" }); + }); + + it("leaves a different selected environment alone", () => { + expect( + planEnvironmentSetup({ + ...base, + pending: PENDING, + selectedEnvironmentId: "env-2", + needsEnvironment: false, + }), + ).toBeNull(); + }); + + it("does not carry a pending environment to another project", () => { + expect( + planEnvironmentSetup({ + ...base, + pending: PENDING, + choiceKey: "project-b", + }), + ).toEqual({ kind: "create", repository: { id: "repo-1" } }); + }); + + it("asks through the dialog when the repository is out of reach", () => { + expect(planEnvironmentSetup({ ...base, repository: undefined })).toEqual({ + kind: "dialog", + }); + }); +}); diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/utils/planEnvironmentSetup/planEnvironmentSetup.ts b/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/utils/planEnvironmentSetup/planEnvironmentSetup.ts new file mode 100644 index 00000000000..1416ce8cf01 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/NewWorkspaceScreen/utils/planEnvironmentSetup/planEnvironmentSetup.ts @@ -0,0 +1,40 @@ +export interface PendingEnvironmentSetup { + /** The project (or no-project key) the environment was made for. */ + choiceKey: string; + environmentId: string; +} + +export type EnvironmentSetupPlan = + | { kind: "reuse"; environmentId: string } + | { kind: "create"; repository: Repository } + | { kind: "dialog" }; + +/** + * What submitting does on the cloud: retry setup on the environment made + * earlier whose workspace never started (until the list catches up it is not + * selected yet), make one from the project's repository, or ask through the + * dialog. Null when the selected environment is ready to use. + */ +export function planEnvironmentSetup({ + pending, + choiceKey, + selectedEnvironmentId, + needsEnvironment, + repository, +}: { + pending: PendingEnvironmentSetup | null; + choiceKey: string; + selectedEnvironmentId: string | null; + needsEnvironment: boolean; + repository: Repository | undefined; +}): EnvironmentSetupPlan | null { + if ( + pending?.choiceKey === choiceKey && + (selectedEnvironmentId === null || + selectedEnvironmentId === pending.environmentId) + ) { + return { kind: "reuse", environmentId: pending.environmentId }; + } + if (!needsEnvironment) return null; + return repository ? { kind: "create", repository } : { kind: "dialog" }; +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentPickerPill/EnvironmentPickerPill.tsx b/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentPickerPill/EnvironmentPickerPill.tsx index fc22a4c1a3c..0fafbb5b556 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentPickerPill/EnvironmentPickerPill.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentPickerPill/EnvironmentPickerPill.tsx @@ -17,6 +17,7 @@ import { HiChevronUpDown, HiMiniPlus, HiOutlineCog6Tooth, + HiOutlinePencilSquare, } from "react-icons/hi2"; import { LuContainer } from "react-icons/lu"; import { @@ -27,10 +28,16 @@ import { export interface EnvironmentOption { id: string; name: string; + repositories?: ReadonlyArray<{ fullName: string }> | null; } +const repositoryNames = (environment: EnvironmentOption) => + (environment.repositories ?? []) + .map((repository) => repository.fullName) + .join(", "); + const searchValue = (environment: EnvironmentOption) => - `${environment.name} ${environment.id}`; + `${environment.name} ${repositoryNames(environment)} ${environment.id}`; interface EnvironmentPickerPillProps { selectedEnvironment: EnvironmentOption | undefined; @@ -40,6 +47,7 @@ interface EnvironmentPickerPillProps { onSelectEnvironment: (environmentId: string) => void; onCreateEnvironment: () => void; onManageEnvironments: () => void; + onEditEnvironment?: (environmentId: string) => void; isLoading?: boolean; triggerClassName?: string; } @@ -52,12 +60,14 @@ export function EnvironmentPickerPill({ onSelectEnvironment, onCreateEnvironment, onManageEnvironments, + onEditEnvironment, isLoading = false, triggerClassName, }: EnvironmentPickerPillProps) { const { t } = useLingui(); const [open, setOpen] = useState(false); const [search, setSearch] = useState(""); + const selectedName = selectedEnvironment?.name; const needsSetup = !isLoading && linked.length === 0 && other.length === 0; const showNoneLinked = !!projectName && @@ -76,8 +86,15 @@ export function EnvironmentPickerPill({ value={searchValue(environment)} onSelect={() => pick(environment.id)} > - - {environment.name} + + + {environment.name} + {repositoryNames(environment) && ( + + {repositoryNames(environment)} + + )} + {environment.id === selectedEnvironment?.id && ( )} @@ -163,6 +180,20 @@ export function EnvironmentPickerPill({ Create environment + {selectedEnvironment && onEditEnvironment && ( + { + setOpen(false); + onEditEnvironment(selectedEnvironment.id); + }} + > + + + Edit {selectedName} + + + )} { diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/EnvironmentView.tsx b/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/EnvironmentView.tsx index 6d8b0d530c3..0b19b8d061b 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/EnvironmentView.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/EnvironmentView.tsx @@ -19,6 +19,7 @@ import { LuArchive, LuContainer } from "react-icons/lu"; import { cloudTrpc } from "renderer/lib/cloud-trpc"; import { ArchiveEnvironmentDialog } from "../ArchiveEnvironmentDialog"; import { EnvironmentPropertyRow } from "../EnvironmentPropertyRow"; +import { EnvironmentMachineSize } from "./components/EnvironmentMachineSize"; import { EnvironmentProjectLinks } from "./components/EnvironmentProjectLinks"; import { EnvironmentVariables } from "./components/EnvironmentVariables"; @@ -41,9 +42,6 @@ export function EnvironmentView({ const environment = cloudTrpc.environment.get.useQuery({ id: environmentId, }); - const secrets = cloudTrpc.environment.secrets.list.useQuery({ - environmentId, - }); const [confirmingArchive, setConfirmingArchive] = useState(false); const update = cloudTrpc.environment.update.useMutation({ @@ -54,7 +52,10 @@ export function EnvironmentView({ }); const archive = cloudTrpc.environment.archive.useMutation({ onSuccess: async () => { - await utils.environment.list.invalidate(); + await Promise.all([ + utils.environment.list.invalidate(), + utils.billing.environmentUsage.invalidate(), + ]); toast.success(t({ message: "Environment archived" })); onArchived?.(); }, @@ -143,6 +144,20 @@ export function EnvironmentView({ {region} + Machine size} + > + + update.mutate({ id: row.id, machineSize }) + } + /> + Repositories} @@ -197,10 +212,7 @@ export function EnvironmentView({
- +
- Sensitive + + Sensitive +

- Sensitive values are encrypted and cannot be revealed in the - UI after saving. + + Sensitive values are encrypted and cannot be revealed in + the UI after saving. +

@@ -404,10 +429,10 @@ export function AddSecretSheet({ onClick={() => fileInputRef.current?.click()} > - Import .env + Import .env - or paste .env contents in Key input + or paste .env contents in Key input
diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/components/AddSecretSheet/index.ts b/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/AddSecretSheet/index.ts similarity index 100% rename from apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/components/AddSecretSheet/index.ts rename to apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/AddSecretSheet/index.ts diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/AddSecretSheet/utils/env-file/env-file.ts b/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/AddSecretSheet/utils/env-file/env-file.ts new file mode 100644 index 00000000000..654707a4848 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/AddSecretSheet/utils/env-file/env-file.ts @@ -0,0 +1,7 @@ +import { parseEnvContent } from "@superset/shared/env-file"; + +export { type EnvEntry, parseEnvContent } from "@superset/shared/env-file"; + +export function isValidEnvContent(text: string): boolean { + return !text.includes("\0") && parseEnvContent(text).length > 0; +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/utils/env-file/index.ts b/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/AddSecretSheet/utils/env-file/index.ts similarity index 100% rename from apps/desktop/src/renderer/routes/_authenticated/settings/environments/utils/env-file/index.ts rename to apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/AddSecretSheet/utils/env-file/index.ts diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/components/EditSecretDialog/EditSecretDialog.tsx b/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/EditSecretDialog/EditSecretDialog.tsx similarity index 72% rename from apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/components/EditSecretDialog/EditSecretDialog.tsx rename to apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/EditSecretDialog/EditSecretDialog.tsx index ce9b4a95957..b885845980a 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/components/EditSecretDialog/EditSecretDialog.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/EditSecretDialog/EditSecretDialog.tsx @@ -1,3 +1,4 @@ +import { Trans, useLingui } from "@lingui/react/macro"; import { Button } from "@superset/ui/button"; import { Dialog, @@ -32,6 +33,8 @@ export function EditSecretDialog({ secret, onSaved, }: EditSecretDialogProps) { + const { t } = useLingui(); + const key = secret.key; const [value, setValue] = useState(""); const [isSaving, setIsSaving] = useState(false); @@ -53,12 +56,12 @@ export function EditSecretDialog({ value: value.trim(), sensitive: secret.sensitive, }); - toast.success(`Updated ${secret.key}`); + toast.success(t({ message: `Updated ${key}` })); onSaved(); onOpenChange(false); } catch (err) { console.error("[secrets/edit] Failed to update:", err); - toast.error("Failed to update environment variable"); + toast.error(t({ message: "Failed to update environment variable" })); } finally { setIsSaving(false); } @@ -68,18 +71,24 @@ export function EditSecretDialog({ - Edit Environment Variable + + Edit Environment Variable + - Update the value for{" "} - - {secret.key} - + + Update the value for{" "} + + {key} + +
- Key + + Key +
- Value + + Value + setValue(e.target.value)} className="font-mono text-sm" @@ -106,10 +121,10 @@ export function EditSecretDialog({ onClick={() => onOpenChange(false)} disabled={isSaving} > - Cancel + Cancel diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/components/EditSecretDialog/index.ts b/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/EditSecretDialog/index.ts similarity index 100% rename from apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/components/EditSecretDialog/index.ts rename to apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/EditSecretDialog/index.ts diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/components/EnvironmentVariablesList/EnvironmentVariablesList.tsx b/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/EnvironmentVariablesList/EnvironmentVariablesList.tsx similarity index 87% rename from apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/components/EnvironmentVariablesList/EnvironmentVariablesList.tsx rename to apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/EnvironmentVariablesList/EnvironmentVariablesList.tsx index 21395cdf0c9..e28da2b8fd5 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/components/EnvironmentVariablesList/EnvironmentVariablesList.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/EnvironmentVariablesList/EnvironmentVariablesList.tsx @@ -1,5 +1,7 @@ +import type { MessageDescriptor } from "@lingui/core"; import { msg } from "@lingui/core/macro"; import { useLingui as useTranslation } from "@lingui/react"; +import { Trans } from "@lingui/react/macro"; import { Button } from "@superset/ui/button"; import { Input } from "@superset/ui/input"; import { @@ -30,10 +32,10 @@ interface Secret { type SortOrder = "last-updated" | "name" | "type"; -const SORT_OPTIONS: { value: SortOrder; label: string }[] = [ - { value: "last-updated", label: "Last Updated" }, - { value: "name", label: "Name" }, - { value: "type", label: "Type" }, +const SORT_OPTIONS: { value: SortOrder; label: MessageDescriptor }[] = [ + { value: "last-updated", label: msg({ message: "Last Updated" }) }, + { value: "name", label: msg({ message: "Name", context: "sort order" }) }, + { value: "type", label: msg({ message: "Type", context: "sort order" }) }, ]; function sortSecrets(secrets: Secret[], order: SortOrder): Secret[] { @@ -108,7 +110,7 @@ export function EnvironmentVariablesList({
@@ -134,7 +136,7 @@ export function EnvironmentVariablesList({ {SORT_OPTIONS.map((opt) => ( - {opt.label} + {translate(opt.label)} ))} @@ -146,8 +148,8 @@ export function EnvironmentVariablesList({
{secrets.length === 0 - ? "No environment variables yet" - : "No matching variables"} + ? translate(msg({ message: "No environment variables yet" })) + : translate(msg({ message: "No matching variables" }))}
) : ( diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/components/EnvironmentVariablesList/components/SecretRow/SecretRow.tsx b/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/EnvironmentVariablesList/components/SecretRow/SecretRow.tsx similarity index 87% rename from apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/components/EnvironmentVariablesList/components/SecretRow/SecretRow.tsx rename to apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/EnvironmentVariablesList/components/SecretRow/SecretRow.tsx index 23efc7cbc8c..cd5963d0094 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/components/EnvironmentVariablesList/components/SecretRow/SecretRow.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/EnvironmentVariablesList/components/SecretRow/SecretRow.tsx @@ -1,4 +1,6 @@ -import { Trans } from "@lingui/react/macro"; +import { Trans, useLingui } from "@lingui/react/macro"; +import { errorMessage } from "@superset/i18n/errors"; +import { formatDate } from "@superset/i18n/format"; import { AlertDialog, AlertDialogAction, @@ -20,7 +22,6 @@ import { import { toast } from "@superset/ui/sonner"; import { Tooltip, TooltipContent, TooltipTrigger } from "@superset/ui/tooltip"; import { cn } from "@superset/ui/utils"; -import { format } from "date-fns"; import { useCallback, useState } from "react"; import { HiEllipsisHorizontal, @@ -53,6 +54,7 @@ export function SecretRow({ onEdit, onDeleted, }: SecretRowProps) { + const { t } = useLingui(); const [isRevealed, setIsRevealed] = useState(false); const [isDeleting, setIsDeleting] = useState(false); const [confirmingDelete, setConfirmingDelete] = useState(false); @@ -70,12 +72,15 @@ export function SecretRow({ } catch (err) { console.error("[secrets/delete] Failed to delete:", err); toast.error( - err instanceof Error ? err.message : "Failed to delete secret", + errorMessage( + err, + t({ message: "Failed to delete environment variable" }), + ), ); } finally { setIsDeleting(false); } - }, [secret.key, environmentId, onDeleted]); + }, [secret.key, environmentId, onDeleted, t]); const { copyToClipboard, copied } = useCopyToClipboard(1500); const handleCopy = useCallback(() => { @@ -83,6 +88,10 @@ export function SecretRow({ }, [secret.value, copyToClipboard]); const isEmpty = !secret.sensitive && !secret.value; + const addedOn = formatDate(secret.createdAt, { + month: "short", + day: "numeric", + }); return (
{secret.sensitive && ( - Sensitive + Sensitive )}
@@ -113,7 +122,9 @@ export function SecretRow({
{!secret.sensitive && (isEmpty ? ( - Empty + + Empty + ) : ( <>
- Added {format(new Date(secret.createdAt), "MMM d")} + + Added {addedOn} + {secret.createdBy && ( {!secret.sensitive && ( - Edit + + Edit + )} setConfirmingDelete(true)} variant="destructive" > - Delete + Delete diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/components/EnvironmentVariablesList/components/SecretRow/index.ts b/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/EnvironmentVariablesList/components/SecretRow/index.ts similarity index 100% rename from apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/components/EnvironmentVariablesList/components/SecretRow/index.ts rename to apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/EnvironmentVariablesList/components/SecretRow/index.ts diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/components/EnvironmentVariablesList/index.ts b/apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/EnvironmentVariablesList/index.ts similarity index 100% rename from apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/components/EnvironmentVariablesList/index.ts rename to apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView/components/EnvironmentVariables/components/EnvironmentVariablesList/index.ts diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/MachineSizePickerPill/MachineSizePickerPill.tsx b/apps/desktop/src/renderer/routes/_authenticated/components/MachineSizePickerPill/MachineSizePickerPill.tsx deleted file mode 100644 index f2e8b7bd6e1..00000000000 --- a/apps/desktop/src/renderer/routes/_authenticated/components/MachineSizePickerPill/MachineSizePickerPill.tsx +++ /dev/null @@ -1,73 +0,0 @@ -import { useLingui } from "@lingui/react/macro"; -import type { MachineSize } from "@superset/shared/billing"; -import { - DropdownMenu, - DropdownMenuContent, - DropdownMenuItem, - DropdownMenuTrigger, -} from "@superset/ui/dropdown-menu"; -import { HiCheck, HiChevronUpDown } from "react-icons/hi2"; -import { LuCpu } from "react-icons/lu"; -import { useMachineSizeOptions } from "renderer/routes/_authenticated/hooks/useMachineSizeOptions"; -import { - FORM_PICKER_MENU_CLASS, - FormPickerTrigger, -} from "../FormPickerTrigger"; - -interface MachineSizePickerPillProps { - machineSize: MachineSize | null; - onSelectMachineSize: (machineSize: MachineSize) => void; - triggerClassName?: string; -} - -export function MachineSizePickerPill({ - machineSize, - onSelectMachineSize, - triggerClassName, -}: MachineSizePickerPillProps) { - const { t } = useLingui(); - const { options, defaultSize } = useMachineSizeOptions(); - const selected = - options.find((option) => option.size === machineSize) ?? - options.find((option) => option.size === defaultSize); - const label = selected?.name ?? machineSize ?? defaultSize; - - return ( - - - - - {label} - - - - - {options.map((option) => ( - onSelectMachineSize(option.size)} - className="items-start gap-2" - > - - - {option.name} - - {option.spec} - - - {option.size === selected?.size && ( - - )} - - ))} - - - ); -} diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/MachineSizePickerPill/index.ts b/apps/desktop/src/renderer/routes/_authenticated/components/MachineSizePickerPill/index.ts deleted file mode 100644 index 2b3c79071c5..00000000000 --- a/apps/desktop/src/renderer/routes/_authenticated/components/MachineSizePickerPill/index.ts +++ /dev/null @@ -1 +0,0 @@ -export { MachineSizePickerPill } from "./MachineSizePickerPill"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/SetUpEnvironmentButton/SetUpEnvironmentButton.tsx b/apps/desktop/src/renderer/routes/_authenticated/components/SetUpEnvironmentButton/SetUpEnvironmentButton.tsx new file mode 100644 index 00000000000..16131079e09 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/components/SetUpEnvironmentButton/SetUpEnvironmentButton.tsx @@ -0,0 +1,34 @@ +import { Trans } from "@lingui/react/macro"; +import { cn } from "@superset/ui/utils"; +import { LuContainer, LuLoaderCircle } from "react-icons/lu"; + +interface SetUpEnvironmentButtonProps { + onClick: () => void; + pending?: boolean; + className?: string; +} + +export function SetUpEnvironmentButton({ + onClick, + pending = false, + className, +}: SetUpEnvironmentButtonProps) { + return ( + + ); +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/components/SetUpEnvironmentButton/index.ts b/apps/desktop/src/renderer/routes/_authenticated/components/SetUpEnvironmentButton/index.ts new file mode 100644 index 00000000000..756f8847fe6 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/components/SetUpEnvironmentButton/index.ts @@ -0,0 +1 @@ +export { SetUpEnvironmentButton } from "./SetUpEnvironmentButton"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/hooks/useDefaultCloudAgent/index.ts b/apps/desktop/src/renderer/routes/_authenticated/hooks/useDefaultCloudAgent/index.ts new file mode 100644 index 00000000000..a216ff36b9b --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/hooks/useDefaultCloudAgent/index.ts @@ -0,0 +1 @@ +export { useDefaultCloudAgent } from "./useDefaultCloudAgent"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/hooks/useDefaultCloudAgent/useDefaultCloudAgent.ts b/apps/desktop/src/renderer/routes/_authenticated/hooks/useDefaultCloudAgent/useDefaultCloudAgent.ts new file mode 100644 index 00000000000..40060613bad --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/hooks/useDefaultCloudAgent/useDefaultCloudAgent.ts @@ -0,0 +1,14 @@ +import { useMemo } from "react"; +import { useCloudAgentChoices } from "renderer/hooks/useCloudAgentChoices"; +import { AGENT_STORAGE_KEY } from "renderer/routes/_authenticated/components/DashboardNewWorkspaceModal/components/DashboardNewWorkspaceForm/PromptGroup/types"; + +/** The agent a cloud workspace starts with when nobody picked one: the last one chosen on the new-workspace screen, else the first offered. */ +export function useDefaultCloudAgent(): string | null { + const agents = useCloudAgentChoices(); + return useMemo(() => { + const saved = window.localStorage.getItem(AGENT_STORAGE_KEY); + return ( + agents.find((agent) => agent.id === saved)?.id ?? agents[0]?.id ?? null + ); + }, [agents]); +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/$environmentId/page.tsx b/apps/desktop/src/renderer/routes/_authenticated/settings/environments/$environmentId/page.tsx new file mode 100644 index 00000000000..93bdaaa4c20 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/environments/$environmentId/page.tsx @@ -0,0 +1,30 @@ +import { Trans } from "@lingui/react/macro"; +import { createFileRoute, useNavigate } from "@tanstack/react-router"; +import { HiArrowLeft } from "react-icons/hi2"; +import { EnvironmentView } from "renderer/routes/_authenticated/components/EnvironmentView"; + +export const Route = createFileRoute( + "/_authenticated/settings/environments/$environmentId/", +)({ + component: EnvironmentSettingsPage, +}); + +function EnvironmentSettingsPage() { + const { environmentId } = Route.useParams(); + const navigate = useNavigate(); + const backToList = () => navigate({ to: "/settings/environments" }); + + return ( +
+ + +
+ ); +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/EnvironmentsSettings.tsx b/apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/EnvironmentsSettings.tsx index d1411a7522a..755b1abb2e4 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/EnvironmentsSettings.tsx +++ b/apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/EnvironmentsSettings.tsx @@ -8,7 +8,6 @@ import { useState } from "react"; import { HiOutlineArchiveBox, HiOutlineCube, - HiOutlinePencil, HiOutlinePlus, } from "react-icons/hi2"; import { useActiveOrganizationId } from "renderer/hooks/useActiveOrganizationId"; @@ -20,7 +19,6 @@ import { SETTING_ITEM_ID, type SettingItemId, } from "../../../utils/settings-search"; -import { EnvironmentSecrets } from "./components/EnvironmentSecrets"; interface EnvironmentsSettingsProps { visibleItems?: SettingItemId[] | null; @@ -34,7 +32,6 @@ export function EnvironmentsSettings({ const utils = cloudTrpc.useUtils(); const navigate = useNavigate(); const [isCreating, setIsCreating] = useState(false); - const [selectedId, setSelectedId] = useState(null); const [archiving, setArchiving] = useState<{ id: string; name: string; @@ -69,20 +66,10 @@ export function EnvironmentsSettings({ utils.environment.list.invalidate(), utils.billing.environmentUsage.invalidate(), ]); - setSelectedId(null); }, onError: (error) => toast.error(errorMessage(error)), }); - if (selectedId) { - return ( - setSelectedId(null)} - /> - ); - } - if (!showList && !showSecrets) return null; return ( @@ -155,7 +142,12 @@ export function EnvironmentsSettings({ >
- -
- {/* Always exactly one line of text: an empty heading has no line - box at all, so the header grew when the name resolved. A - non-breaking space is the same height as the name. */} -

- {environment?.name ?? "\u00A0"} -

-

- Variables set on every sandbox started from this environment. -

-
-
- - setIsAddOpen(true)} - refreshToken={reloadKey} - onEdit={(secret) => - setEditing({ - id: secret.id, - key: secret.key, - value: secret.value, - sensitive: secret.sensitive, - }) - } - /> - - - - {editing && ( - { - if (!open) setEditing(null); - }} - onSaved={reload} - open={Boolean(editing)} - secret={editing} - /> - )} -
- ); -} diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/index.ts b/apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/index.ts deleted file mode 100644 index 6b0130df34a..00000000000 --- a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/components/EnvironmentsSettings/components/EnvironmentSecrets/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./EnvironmentSecrets"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/utils/env-file/env-file.ts b/apps/desktop/src/renderer/routes/_authenticated/settings/environments/utils/env-file/env-file.ts deleted file mode 100644 index 009dcf1de4c..00000000000 --- a/apps/desktop/src/renderer/routes/_authenticated/settings/environments/utils/env-file/env-file.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { parseEnvContent } from "@superset/shared/env-file"; - -export { type EnvEntry, parseEnvContent } from "@superset/shared/env-file"; - -const INVALID = { - ok: false as const, - error: "Please upload a valid .env file.", -}; - -export function validateEnvContent( - text: string, -): { ok: true } | { ok: false; error: string } { - if (text.includes("\0")) return INVALID; - return parseEnvContent(text).length > 0 ? { ok: true } : INVALID; -} diff --git a/apps/desktop/src/renderer/routes/_authenticated/utils/environmentSetupPrompt/environmentSetupPrompt.test.ts b/apps/desktop/src/renderer/routes/_authenticated/utils/environmentSetupPrompt/environmentSetupPrompt.test.ts new file mode 100644 index 00000000000..08e4aac55bb --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/utils/environmentSetupPrompt/environmentSetupPrompt.test.ts @@ -0,0 +1,28 @@ +import { describe, expect, it } from "bun:test"; +import { + environmentSetupAgentPrompt, + withEnvironmentSetupSkill, +} from "./environmentSetupPrompt"; + +const URL = "https://app.superset.sh/environments/e1"; +const SET_UP = `Use the superset:environment skill to set up the cloud environment ${URL}. You are already in a box on that environment, so set it up here instead of starting another box.`; + +describe("withEnvironmentSetupSkill", () => { + it("sends the user's message, then the setup request", () => { + expect(withEnvironmentSetupSkill(" add dark mode \n", URL)).toBe( + `add dark mode\n\n${SET_UP}`, + ); + }); + + it("is the setup request alone when nothing was typed", () => { + expect(withEnvironmentSetupSkill(" ", URL)).toBe(SET_UP); + }); +}); + +describe("environmentSetupAgentPrompt", () => { + it("asks for a working environment, then names the skill for this box", () => { + expect(environmentSetupAgentPrompt(URL)).toBe( + `Set up a new development environment for this codebase. Run the relevant applications and demonstrate that the environment works end to end.\n\n${SET_UP}`, + ); + }); +}); diff --git a/apps/desktop/src/renderer/routes/_authenticated/utils/environmentSetupPrompt/environmentSetupPrompt.ts b/apps/desktop/src/renderer/routes/_authenticated/utils/environmentSetupPrompt/environmentSetupPrompt.ts new file mode 100644 index 00000000000..9621dc70549 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/utils/environmentSetupPrompt/environmentSetupPrompt.ts @@ -0,0 +1,17 @@ +export const ENVIRONMENT_SETUP_PROMPT = + "Please set up the development environment for this codebase. Run the application(s) and demonstrate that the environment is working."; + +export function withEnvironmentSetupSkill( + prompt: string, + environmentUrl: string, +): string { + const setUp = `Use the superset:environment skill to set up the cloud environment ${environmentUrl}. You are already in a box on that environment, so set it up here instead of starting another box.`; + return [prompt.trim(), setUp].filter(Boolean).join("\n\n"); +} + +export function environmentSetupAgentPrompt(environmentUrl: string): string { + return withEnvironmentSetupSkill( + "Set up a new development environment for this codebase. Run the relevant applications and demonstrate that the environment works end to end.", + environmentUrl, + ); +} diff --git a/apps/desktop/src/renderer/routes/_authenticated/utils/environmentSetupPrompt/index.ts b/apps/desktop/src/renderer/routes/_authenticated/utils/environmentSetupPrompt/index.ts new file mode 100644 index 00000000000..6139c7bc511 --- /dev/null +++ b/apps/desktop/src/renderer/routes/_authenticated/utils/environmentSetupPrompt/index.ts @@ -0,0 +1,5 @@ +export { + ENVIRONMENT_SETUP_PROMPT, + environmentSetupAgentPrompt, + withEnvironmentSetupSkill, +} from "./environmentSetupPrompt"; diff --git a/apps/desktop/src/renderer/routes/_authenticated/utils/resolveCloudChoices/resolveCloudChoices.test.ts b/apps/desktop/src/renderer/routes/_authenticated/utils/resolveCloudChoices/resolveCloudChoices.test.ts index 320c2fad0a9..e28451ef0cc 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/utils/resolveCloudChoices/resolveCloudChoices.test.ts +++ b/apps/desktop/src/renderer/routes/_authenticated/utils/resolveCloudChoices/resolveCloudChoices.test.ts @@ -18,7 +18,6 @@ const webGpu = { repositories: [{ fullName: "acme/web" }], }; const environments = [web, api, webGpu]; -const sizes = ["small", "medium", "large"] as const; function resolve( projectId: string | null, @@ -30,8 +29,6 @@ function resolve( projectId, repositoryFullName, choices, - offeredSizes: [...sizes], - defaultSize: "medium", }); } @@ -44,7 +41,6 @@ describe("resolveCloudChoices", () => { "env-web-gpu", ]); expect(result.other.map((row) => row.id)).toEqual(["env-api"]); - expect(result.machineSize).toBe("medium"); }); test("a project keeps an environment picked for it, linked or not", () => { @@ -84,28 +80,4 @@ describe("resolveCloudChoices", () => { }); expect(result.environment?.id).toBe("env-web"); }); - - test("machine size: the project's, else the newest anywhere, else the default", () => { - expect( - resolve("project-web", { - "project-web": { machineSize: "large", usedAt: 1 }, - "": { machineSize: "small", usedAt: 2 }, - }).machineSize, - ).toBe("large"); - expect( - resolve("project-docs", { - "project-web": { machineSize: "large", usedAt: 1 }, - "": { machineSize: "small", usedAt: 2 }, - }).machineSize, - ).toBe("small"); - }); - - test("a size the organization no longer offers is skipped", () => { - expect( - resolve("project-web", { - "project-web": { machineSize: "2xlarge", usedAt: 2 }, - "": { machineSize: "large", usedAt: 1 }, - }).machineSize, - ).toBe("large"); - }); }); diff --git a/apps/desktop/src/renderer/routes/_authenticated/utils/resolveCloudChoices/resolveCloudChoices.ts b/apps/desktop/src/renderer/routes/_authenticated/utils/resolveCloudChoices/resolveCloudChoices.ts index 330fba7f45d..dfdc979964e 100644 --- a/apps/desktop/src/renderer/routes/_authenticated/utils/resolveCloudChoices/resolveCloudChoices.ts +++ b/apps/desktop/src/renderer/routes/_authenticated/utils/resolveCloudChoices/resolveCloudChoices.ts @@ -1,4 +1,3 @@ -import type { MachineSize } from "@superset/shared/billing"; import { type CloudCreateChoice, latestCloudChoice, @@ -13,8 +12,8 @@ interface ResolvableEnvironment { } /** - * What the cloud pills show for a project. A project gets the environment and - * size last used with it, else its first linked environment. Without a + * What the cloud pills show for a project. A project gets the environment + * last used with it, else its first linked environment. Without a * project it gets the newest environment used anywhere. An unlinked project * never inherits another project's environment: that would clone the wrong * repository. @@ -24,20 +23,15 @@ export function resolveCloudChoices({ projectId, repositoryFullName, choices, - offeredSizes, - defaultSize, }: { environments: readonly T[]; projectId: string | null; repositoryFullName: string | null; choices: Record; - offeredSizes: readonly MachineSize[]; - defaultSize: MachineSize; }): { linked: T[]; other: T[]; environment: T | null; - machineSize: MachineSize; } { const remembered = choices[projectId ?? NO_PROJECT_KEY]; const byId = new Map(environments.map((row) => [row.id, row])); @@ -63,13 +57,5 @@ export function resolveCloudChoices({ other[0])) ?? null; - const isOffered = (size: MachineSize) => offeredSizes.includes(size); - const machineSize = - (remembered?.machineSize && isOffered(remembered.machineSize) - ? remembered.machineSize - : null) ?? - latestCloudChoice(choices, "machineSize", isOffered) ?? - defaultSize; - - return { linked, other, environment, machineSize }; + return { linked, other, environment }; } diff --git a/apps/desktop/src/renderer/stores/v2-workspace-create-defaults.test.ts b/apps/desktop/src/renderer/stores/v2-workspace-create-defaults.test.ts index 5af0066985c..46c0dc9a341 100644 --- a/apps/desktop/src/renderer/stores/v2-workspace-create-defaults.test.ts +++ b/apps/desktop/src/renderer/stores/v2-workspace-create-defaults.test.ts @@ -8,16 +8,12 @@ import { describe("rememberCloudChoice", () => { test("merges into the project's entry and bumps it", () => { const choices = rememberCloudChoice( - { a: { environmentId: "env-1", machineSize: "small", usedAt: 1 } }, + { a: { environmentId: "env-1", usedAt: 1 } }, "a", - { machineSize: "large" }, + { environmentId: "env-2" }, 5, ); - expect(choices.a).toEqual({ - environmentId: "env-1", - machineSize: "large", - usedAt: 5, - }); + expect(choices.a).toEqual({ environmentId: "env-2", usedAt: 5 }); }); test("evicts the least recently used past the cap", () => { diff --git a/apps/desktop/src/renderer/stores/v2-workspace-create-defaults.ts b/apps/desktop/src/renderer/stores/v2-workspace-create-defaults.ts index 00acfb94b3d..7c04910f1e3 100644 --- a/apps/desktop/src/renderer/stores/v2-workspace-create-defaults.ts +++ b/apps/desktop/src/renderer/stores/v2-workspace-create-defaults.ts @@ -1,4 +1,3 @@ -import type { MachineSize } from "@superset/shared/billing"; import { create } from "zustand"; import { devtools, persist } from "zustand/middleware"; @@ -17,7 +16,6 @@ export type WorkspaceCreateProjectChoice = export interface CloudCreateChoice { environmentId?: string; - machineSize?: MachineSize; usedAt: number; } @@ -50,7 +48,7 @@ export function rememberCloudChoice( } /** The newest remembered value of `field` across every project. */ -export function latestCloudChoice( +export function latestCloudChoice( choices: Record, field: K, accept: (value: NonNullable) => boolean = () => true, @@ -162,7 +160,7 @@ export const useV2WorkspaceCreateDefaultsStore = }), { name: "v2-workspace-create-defaults", - version: 3, + version: 4, migrate: (state, fromVersion) => { let next = state as Record; if (fromVersion < 2 && next && typeof next === "object") { @@ -192,6 +190,22 @@ export const useV2WorkspaceCreateDefaultsStore = cloudChoices: {}, }; } + // Sizes moved to the environment; a remembered one is never read again. + if (fromVersion < 4 && next && typeof next === "object") { + const choices = (next.cloudChoices ?? {}) as Record< + string, + Record + >; + next = { + ...next, + cloudChoices: Object.fromEntries( + Object.entries(choices).map(([key, choice]) => { + const { machineSize: _omit, ...rest } = choice; + return [key, rest]; + }), + ), + }; + } return next as unknown as V2WorkspaceCreateDefaultsState; }, }, diff --git a/packages/cli/src/commands/workspaces/create/command.ts b/packages/cli/src/commands/workspaces/create/command.ts index 7d8b4af4117..664a16ff7d7 100644 --- a/packages/cli/src/commands/workspaces/create/command.ts +++ b/packages/cli/src/commands/workspaces/create/command.ts @@ -19,7 +19,7 @@ export default command({ machineSize: string() .enum(...MACHINE_SIZES) .desc( - "Machine size of a cloud workspace: `small` (2 vCPU, 4 GB), `medium` (4 vCPU, 8 GB; the default) or `large` (8 vCPU, 16 GB); `xlarge` and `2xlarge` where your plan includes them", + "Machine size of a cloud workspace: `small` (2 vCPU, 4 GB), `medium` (4 vCPU, 8 GB) or `large` (8 vCPU, 16 GB); `xlarge` and `2xlarge` where your plan includes them. Omitted: the environment's size, else your organization's default", ), project: string().desc( "Project ID, for a workspace on a host. Required with --local or --host unless --session", diff --git a/packages/i18n/locales/cs/messages.po b/packages/i18n/locales/cs/messages.po index 6d2ef16ef92..50af3e77fe9 100644 --- a/packages/i18n/locales/cs/messages.po +++ b/packages/i18n/locales/cs/messages.po @@ -984,6 +984,9 @@ msgstr "{count} hostitelů používá starší službu hostitele než tato aplik msgid "{count} selected" msgstr "Vybráno: {count}" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "Proměnné nelze uložit ({count}). Podívejte se na zvýrazněné řádky" + msgid "{count}/day" msgstr "{count}/den" @@ -1132,6 +1135,9 @@ msgstr "{lines, plural, one {# řádek} few {# řádky} many {# řádku} other { msgid "{localHostName} (this device)" msgstr "{localHostName} (toto zařízení)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize} (není ve vašem tarifu)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2109,6 +2115,9 @@ msgstr "přidat agenta" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "Před vytvořením cloudového pracovního prostoru přidejte prostředí v Nastavení" +msgid "Add Another" +msgstr "Přidat další" + msgid "Add another account, or disconnect one you no longer use." msgstr "Připoj další účet nebo odpoj ten, který už nepoužíváš." @@ -2136,6 +2145,9 @@ msgstr "Přidat popis" msgid "Add description..." msgstr "Přidat popis..." +msgid "Add Environment Variable" +msgstr "Přidat proměnnou prostředí" + msgid "Add extension" msgstr "Přidat rozšíření" @@ -2173,6 +2185,9 @@ msgstr "Přidat další…" msgid "Add one from the menu in the sidebar to get started." msgstr "Začněte tím, že jednoho přidáte z nabídky v postranním panelu." +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "Přidejte jednu nebo více proměnných prostředí. Můžete také přetáhnout soubor .env." + msgid "Add people" msgstr "Přidat lidi" @@ -2284,9 +2299,18 @@ msgstr "Přidáno: {added}" msgid "Added {added} files to {where}" msgstr "Přidáno {added} souborů do {where}" +msgid "Added {addedOn}" +msgstr "Přidáno {addedOn}" + msgid "Added {bought} GB-hours." msgstr "Přidáno {bought} GB-hodin." +msgid "Added {count} environment variables" +msgstr "Přidané proměnné prostředí: {count}" + +msgid "Added {key}" +msgstr "{key} přidáno" + msgid "Added 1 file to {where}" msgstr "Přidán 1 soubor do {where}" @@ -2781,6 +2805,9 @@ msgstr "Vždy víte, který agent vás potřebuje — oznámení vedou přímo n msgid "An agent completes multi-file changes end to end." msgstr "Agent dokončí změnu napříč více soubory od začátku do konce." +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "Agent nastaví toto prostředí v cloudovém pracovním prostoru (asi 20 minut nebo déle): nainstaluje závislosti, zapíše konfiguraci nastavení a vyžádá si potřebné tajné hodnoty. Kdykoli ho můžete přerušit nebo převzít práci v pracovním prostoru a dokončit nastavení sami." + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "Agent píše celé funkce a soubory, zatímco člověk sleduje každý krok a schvaluje každý příkaz. Jeden agent, jeden člověk. Rychlejší, ale pořád sériové." @@ -4381,6 +4408,9 @@ msgstr "Kontrolní bod · před refaktorem tooltipů" msgid "Checkpoint saved {0}" msgstr "Kontrolní bod uložen {0}" +msgid "Checkpoint saved to {name}" +msgstr "Checkpoint uložen do {name}" + msgid "Checks" msgstr "Kontroly" @@ -4622,6 +4652,9 @@ msgstr "Pokud nedojde k přesměrování, klikněte sem" msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "Kliknutím na „↑ update“ zobrazíte potvrzení před aktualizací" +msgid "Click to copy" +msgstr "Klikněte pro zkopírování" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "Kliknutím zkopírujete ID relace (pokračování přes `claude --resume `)." @@ -5816,6 +5849,9 @@ msgstr "Odkaz se nepodařilo zkopírovat" msgid "Could not create cloud workspace" msgstr "Nepodařilo se vytvořit cloudový pracovní prostor" +msgid "Could not create environment" +msgstr "Prostředí se nepodařilo vytvořit" + msgid "Could not create project" msgstr "Projekt se nepodařilo vytvořit" @@ -7407,6 +7443,9 @@ msgstr "Zahodit změny?" msgid "Discard recording" msgstr "Zahodit nahrávku" +msgid "Discard unsaved changes?" +msgstr "Zahodit neuložené změny?" + msgid "Discarded" msgstr "Zahozeno" @@ -7812,6 +7851,9 @@ msgstr "Získáno: {name} ×{tier}" msgid "Edit" msgstr "Upravit" +msgid "Edit {selectedName}" +msgstr "Upravit {selectedName}" + msgid "Edit Channel Name" msgstr "Upravit název kanálu" @@ -7824,8 +7866,8 @@ msgstr "Upravit popis" msgid "Edit Description" msgstr "Upravit popis" -msgid "Edit environment" -msgstr "Upravit prostředí" +msgid "Edit Environment Variable" +msgstr "Upravit proměnnou prostředí" msgid "Edit files without asking; ask before commands" msgstr "Upravovat soubory bez ptaní; ptát se před příkazy" @@ -8016,6 +8058,9 @@ msgstr "Zadejte celé číslo" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "Zadejte celé číslo od {minHours} do {maxHours} GB-hodin." +msgid "Enter new value" +msgstr "Zadejte novou hodnotu" + msgid "Enter this code when OpenAI asks for it:" msgstr "Až o to OpenAI požádá, zadejte tento kód:" @@ -8046,6 +8091,9 @@ msgstr "Příprava prostředí, nestabilní testy a rozvody přihlašovacích ú msgid "Environment Variables" msgstr "Proměnné prostředí" +msgid "Environment's size" +msgstr "Velikost prostředí" + msgid "Environments" msgstr "Prostředí" @@ -8477,6 +8525,9 @@ msgstr "Nepodařilo se smazat účet" msgid "Failed to delete automation" msgstr "Automatizaci se nepodařilo smazat" +msgid "Failed to delete environment variable" +msgstr "Proměnnou prostředí se nepodařilo smazat" + msgid "Failed to delete host" msgstr "Hostitele se nepodařilo smazat" @@ -8595,6 +8646,9 @@ msgstr "Nepodařilo se odeslat odpověď" msgid "Failed to push branch" msgstr "Nepodařilo se odeslat větev" +msgid "Failed to read file." +msgstr "Soubor se nepodařilo načíst." + msgid "Failed to record page version" msgstr "Nepodařilo se zaznamenat verzi stránky" @@ -8688,6 +8742,9 @@ msgstr "Nepodařilo se spustit příkaz pracovního prostoru" msgid "Failed to save" msgstr "Nepodařilo se uložit" +msgid "Failed to save environment variables" +msgstr "Proměnné prostředí se nepodařilo uložit" + msgid "Failed to save installation. Please try again." msgstr "Nepodařilo se uložit instalaci. Zkuste to prosím znovu." @@ -8754,6 +8811,9 @@ msgstr "Nepodařilo se aktualizovat avatar" msgid "Failed to update branch prefix" msgstr "Nepodařilo se změnit prefix větve" +msgid "Failed to update environment variable" +msgstr "Proměnnou prostředí se nepodařilo aktualizovat" + msgid "Failed to update hooks" msgstr "Nepodařilo se aktualizovat hooky" @@ -8898,6 +8958,9 @@ msgstr "Režim otevírání souborů" msgid "File opens when the workspace wakes up" msgstr "Soubor se otevře, až se pracovní prostor probudí" +msgid "File too large. Maximum size is 256 KB." +msgstr "Soubor je příliš velký. Maximální velikost je 256 KB." + msgid "File viewer" msgstr "Prohlížeč souborů" @@ -10195,6 +10258,9 @@ msgstr "Vydává se za někoho jiného" msgid "Import" msgstr "Importovat" +msgid "Import .env" +msgstr "Importovat .env" + msgid "import a folder" msgstr "importovat složku" @@ -10936,6 +11002,9 @@ msgstr "Nový soubor byl zachován, po vytvoření se změnil" msgid "Kept the new folder because it is no longer empty" msgstr "Nová složka byla zachována, už není prázdná" +msgid "Key" +msgstr "Klíč" + msgid "Key dates" msgstr "Důležitá data" @@ -11081,6 +11150,9 @@ msgstr "Naposledy viděn: {lastSeen}" msgid "Last updated" msgstr "Naposledy aktualizováno" +msgid "Last Updated" +msgstr "Naposledy aktualizováno" + msgid "Last updated on {date}" msgstr "Naposledy aktualizováno {date}" @@ -11671,9 +11743,6 @@ msgstr "Prostředky počítače" msgid "Machine size" msgstr "Velikost stroje" -msgid "Machine size: {label}" -msgstr "Velikost stroje: {label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "Cloudové pracovní prostory nevázané na počítač, které naběhnou během sekund a dají se sdílet s kolegy." @@ -11731,6 +11800,9 @@ msgstr "Správa účtů…" msgid "Manage billing" msgstr "Spravovat fakturaci" +msgid "Manage environment" +msgstr "Spravovat prostředí" + msgid "Manage environments" msgstr "Spravovat prostředí" @@ -12358,6 +12430,10 @@ msgstr "Záhadný strojník" msgid "Name" msgstr "Název" +msgctxt "sort order" +msgid "Name" +msgstr "Název" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "Název a slug vhodný do URL. Obojí jde později změnit." @@ -12708,6 +12784,9 @@ msgstr "Žádné aktivní pracovní prostory" msgid "No agent" msgstr "Žádný agent" +msgid "No agent is available to set up the environment" +msgstr "K nastavení prostředí není k dispozici žádný agent" + msgid "No agent is configured on this host" msgstr "Na tomto hostiteli není nakonfigurován žádný agent" @@ -12856,6 +12935,9 @@ msgstr "Zatím žádná stahování" msgid "No emoji found" msgstr "Žádné emoji nenalezeno" +msgid "No environment variables yet" +msgstr "Zatím žádné proměnné prostředí" + msgid "No environments available" msgstr "Žádná dostupná prostředí" @@ -13012,6 +13094,9 @@ msgstr "Žádné odpovídající pull requesty" msgid "No matching tasks" msgstr "Žádné odpovídající úkoly" +msgid "No matching variables" +msgstr "Žádné odpovídající proměnné" + msgid "No MCP servers found" msgstr "Nenalezeny žádné MCP servery" @@ -13319,8 +13404,8 @@ msgstr "Na tomto zařízení nebyly nalezeny žádné projekty v1." msgid "No v1 terminal scripts found." msgstr "Nebyly nalezeny žádné terminálové skripty v1." -msgid "No variables set yet." -msgstr "Zatím nejsou nastaveny žádné proměnné." +msgid "No valid environment variables found in file" +msgstr "V souboru nebyly nalezeny žádné platné proměnné prostředí" msgid "No versions yet" msgstr "Zatím žádné verze" @@ -13717,6 +13802,9 @@ msgstr "Jeden plugin. Každý programovací agent." msgid "One step left" msgstr "Zbývá jeden krok" +msgid "One variable can't be saved. See the highlighted row" +msgstr "Jednu proměnnou nelze uložit. Podívejte se na zvýrazněný řádek" + msgid "online" msgstr "online" @@ -14372,6 +14460,9 @@ msgstr "Nepovinné. Pomůže nám zjistit, co funguje." msgid "Options" msgstr "Možnosti" +msgid "or paste .env contents in Key input" +msgstr "nebo vložte obsah souboru .env do pole Klíč" + msgid "Orange" msgstr "Oranžová" @@ -14402,6 +14493,9 @@ msgstr "Organizace {id}" msgid "Organization created successfully!" msgstr "Organizace byla vytvořena!" +msgid "Organization default ({defaultName})" +msgstr "Výchozí pro organizaci ({defaultName})" + msgid "Organization deleted" msgstr "Organizace smazána" @@ -15062,8 +15156,8 @@ msgstr "Vyberte novou složku projektu na {hostName}." msgid "Pick the project worktree folder on {hostName}." msgstr "Vyberte složku pro worktree projektu na {hostName}." -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "Vyberte repozitáře, které si stáhne. Agent na tomto počítači zjistí, co nainstalovat, a zprovozní to v cloudu." +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "Vyberte repozitáře, které si stáhne. Agent v cloudovém pracovním prostoru zjistí, co nainstalovat, a zprovozní ho." msgid "Pick the worktree folder on {hostName}." msgstr "Vyberte složku pro worktree na {hostName}." @@ -15167,6 +15261,9 @@ msgstr "Vyberte prosím organizaci" msgid "Please try again, or restart Paradev on that device." msgstr "Zkuste to znovu nebo na daném zařízení restartujte Paradev." +msgid "Please upload a valid .env file." +msgstr "Nahrajte prosím platný soubor .env." + msgid "Plugin" msgstr "Plugin" @@ -17321,6 +17418,9 @@ msgstr "Uložit" msgid "Save & create workspace" msgstr "Uložit a vytvořit pracovní prostor" +msgid "Save a checkpoint to {name}?" +msgstr "Uložit checkpoint do {name}?" + msgid "Save All" msgstr "Uložit vše" @@ -17333,6 +17433,9 @@ msgstr "Uložit jako pohled" msgid "Save Changes" msgstr "Uložit změny" +msgid "Save checkpoint" +msgstr "Uložit checkpoint" + msgid "Save edits" msgstr "Uložit úpravy" @@ -17373,9 +17476,21 @@ msgstr "Uloženo" msgid "Saved \"{0}\" as an environment" msgstr "\"{0}\" uloženo jako prostředí" +msgid "Saved {name}" +msgstr "Uloženo: {name}" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "{name} uloženo, ale jeho pracovní prostor pro nastavení se nepodařilo spustit: {reason}" + msgid "Saved to Downloads" msgstr "Uloženo do Stažených souborů" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "Uloží tento pracovní prostor tak, jak je teď, se vším, co je v něm nainstalované. Nové pracovní prostory z {name} začnou z tohoto checkpointu. Pracovní prostor se během ukládání na chvíli zastaví." + +msgid "Saving a checkpoint to {name}..." +msgstr "Ukládání checkpointu do {name}..." + msgid "Saving as an environment..." msgstr "Ukládání jako prostředí..." @@ -17810,9 +17925,6 @@ msgstr "Vyberte agenta" msgid "Select an editor from the dropdown" msgstr "Vyberte editor z nabídky" -msgid "Select an environment" -msgstr "Vyberte prostředí" - msgid "Select an organization" msgstr "Vyberte organizaci" @@ -17993,6 +18105,12 @@ msgstr "Odesílám…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "Odešle {0} znaků kontextu terminálu (přibližně {1} tokenů) agentovi {2}." +msgid "Sensitive" +msgstr "Citlivé" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "Citlivé hodnoty jsou šifrované a po uložení je nelze zobrazit." + msgid "Sent" msgstr "Odesláno" @@ -18068,9 +18186,6 @@ msgstr "Relace" msgid "Sessions · top {0} by cost" msgstr "Relace · top {0} podle nákladů" -msgid "Set" -msgstr "Nastaveno" - msgid "Set a notification schedule" msgstr "Nastavit plán oznámení" @@ -18113,6 +18228,9 @@ msgstr "Nastavit host přes SSH" msgid "Set up an automation" msgstr "Nastavte automatizaci" +msgid "Set up Environment" +msgstr "Nastavit prostředí" + msgid "Set up once" msgstr "Nastavte jednou" @@ -18666,9 +18784,6 @@ msgstr "Šest úrovní autonomie továrny" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "Šest úrovní autonomie továrny, brány mezi nimi a naše předpověď, kam nás dostane rok 2026. Sepsáno teď, abyste nás mohli později oznámkovat." -msgid "size" -msgstr "Velikost" - msgid "Size" msgstr "Velikost" @@ -18693,6 +18808,9 @@ msgstr "Odstín pleti" msgid "Skip" msgstr "Přeskočit" +msgid "Skip & save" +msgstr "Přeskočit a uložit" + msgid "Skip All" msgstr "Přeskočit vše" @@ -19093,6 +19211,9 @@ msgstr "Zahájit nový chat" msgid "Start a session" msgstr "Spustit relaci" +msgid "Start agent" +msgstr "Spustit agenta" + msgid "Start agents on events or a schedule" msgstr "Spouštějte agenty událostmi nebo podle plánu" @@ -21292,6 +21413,10 @@ msgstr "Obě ruce" msgid "Type" msgstr "Typ" +msgctxt "sort order" +msgid "Type" +msgstr "Typ" + msgid "Type @linear in any prompt." msgstr "Napište @linear do libovolného promptu." @@ -21665,6 +21790,9 @@ msgstr "Aktualizujte službu hostitele na obou počítačích a zkuste to znovu. msgid "Update the host service on this device and try again." msgstr "Aktualizujte službu hostitele na tomto zařízení a zkuste to znovu." +msgid "Update the value for <0>{key}" +msgstr "Aktualizujte hodnotu <0>{key}" + msgid "Update this host to message subagents" msgstr "Aktualizujte tohoto hostitele, abyste mohli psát subagentům" @@ -21681,6 +21809,9 @@ msgstr "Aktualizováno {0}" msgid "Updated {date}" msgstr "Aktualizováno {date}" +msgid "Updated {key}" +msgstr "{key} aktualizováno" + msgid "Updated {updatedRelative}" msgstr "Aktualizováno {updatedRelative}" @@ -21899,6 +22030,9 @@ msgstr "uživatel@host, ssh://uživatel@host:2222 nebo alias z konfigurace ssh" msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectId neodpovídá projektu pracovního prostoru" +msgid "Value" +msgstr "Hodnota" + msgid "Variables" msgstr "Proměnné" @@ -22892,6 +23026,9 @@ msgstr "K tomuto terminálu nemáte přístup." msgid "You don't have permission to remove this member" msgstr "Nemáte oprávnění tohoto člena odebrat" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "Máte neuložené proměnné prostředí. Opravdu chcete zavřít?" + msgid "You install and connect once per account." msgstr "Instalujete a připojujete jednou na účet." diff --git a/packages/i18n/locales/de/messages.po b/packages/i18n/locales/de/messages.po index fd81221816a..2ea3d07085b 100644 --- a/packages/i18n/locales/de/messages.po +++ b/packages/i18n/locales/de/messages.po @@ -984,6 +984,9 @@ msgstr "{count} Hosts führen einen älteren Host-Dienst aus als diese App" msgid "{count} selected" msgstr "{count} ausgewählt" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "{count} Variablen können nicht gespeichert werden. Siehe die markierten Zeilen" + msgid "{count}/day" msgstr "{count}/Tag" @@ -1132,6 +1135,9 @@ msgstr "{lines, plural, one {# Zeile} other {# Zeilen}}" msgid "{localHostName} (this device)" msgstr "{localHostName} (dieses Gerät)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize} (nicht in deinem Tarif)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2109,6 +2115,9 @@ msgstr "einen Agenten hinzufügen" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "Füge in den Einstellungen eine Umgebung hinzu, bevor du einen Cloud-Arbeitsbereich erstellst" +msgid "Add Another" +msgstr "Weitere hinzufügen" + msgid "Add another account, or disconnect one you no longer use." msgstr "Verbinde ein weiteres Konto oder trenne eines, das du nicht mehr brauchst." @@ -2136,6 +2145,9 @@ msgstr "Beschreibung hinzufügen" msgid "Add description..." msgstr "Beschreibung hinzufügen..." +msgid "Add Environment Variable" +msgstr "Umgebungsvariable hinzufügen" + msgid "Add extension" msgstr "Erweiterung hinzufügen" @@ -2173,6 +2185,9 @@ msgstr "Weitere hinzufügen…" msgid "Add one from the menu in the sidebar to get started." msgstr "Füge über das Menü in der Seitenleiste einen hinzu, um loszulegen." +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "Füge eine oder mehrere Umgebungsvariablen hinzu. Du kannst auch eine .env-Datei hierher ziehen." + msgid "Add people" msgstr "Personen hinzufügen" @@ -2284,9 +2299,18 @@ msgstr "{added} hinzugefügt" msgid "Added {added} files to {where}" msgstr "{added} Dateien zu {where} hinzugefügt" +msgid "Added {addedOn}" +msgstr "Hinzugefügt am {addedOn}" + msgid "Added {bought} GB-hours." msgstr "{bought} GB-Stunden hinzugefügt." +msgid "Added {count} environment variables" +msgstr "{count} Umgebungsvariablen hinzugefügt" + +msgid "Added {key}" +msgstr "{key} hinzugefügt" + msgid "Added 1 file to {where}" msgstr "1 Datei zu {where} hinzugefügt" @@ -2781,6 +2805,9 @@ msgstr "Du weißt immer, welcher Agent dich braucht — mit Benachrichtigungen, msgid "An agent completes multi-file changes end to end." msgstr "Ein Agent führt Änderungen über mehrere Dateien vollständig durch." +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "Ein Agent richtet diese Umgebung in einem Cloud-Workspace ein (etwa 20 Minuten oder länger): Er installiert Abhängigkeiten, schreibt die Setup-Konfiguration und fragt nach benötigten Secrets. Du kannst ihn jederzeit unterbrechen oder im Workspace übernehmen und die Einrichtung selbst abschließen." + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "Ein Agent schreibt ganze Funktionen und Dateien, während ein Mensch jeden Schritt beobachtet und jeden Befehl freigibt. Ein Agent, ein Mensch. Schneller, aber weiterhin seriell." @@ -4381,6 +4408,9 @@ msgstr "Checkpoint · vor dem Tooltip-Refactoring" msgid "Checkpoint saved {0}" msgstr "Checkpoint gespeichert {0}" +msgid "Checkpoint saved to {name}" +msgstr "Checkpoint in {name} gespeichert" + msgid "Checks" msgstr "Prüfungen" @@ -4622,6 +4652,9 @@ msgstr "Hier klicken, falls du nicht weitergeleitet wirst" msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "Klicke auf „↑ update“, um die Bestätigung vor dem Update anzuzeigen" +msgid "Click to copy" +msgstr "Zum Kopieren klicken" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "Klicken, um die Session-ID zu kopieren (fortsetzen mit `claude --resume `)." @@ -5816,6 +5849,9 @@ msgstr "Link konnte nicht kopiert werden" msgid "Could not create cloud workspace" msgstr "Cloud-Arbeitsbereich konnte nicht erstellt werden" +msgid "Could not create environment" +msgstr "Umgebung konnte nicht erstellt werden" + msgid "Could not create project" msgstr "Projekt konnte nicht erstellt werden" @@ -7407,6 +7443,9 @@ msgstr "Änderungen verwerfen?" msgid "Discard recording" msgstr "Aufnahme verwerfen" +msgid "Discard unsaved changes?" +msgstr "Ungespeicherte Änderungen verwerfen?" + msgid "Discarded" msgstr "Verworfen" @@ -7812,6 +7851,9 @@ msgstr "{name} ×{tier} erhalten" msgid "Edit" msgstr "Bearbeiten" +msgid "Edit {selectedName}" +msgstr "{selectedName} bearbeiten" + msgid "Edit Channel Name" msgstr "Kanalnamen bearbeiten" @@ -7824,8 +7866,8 @@ msgstr "Beschreibung bearbeiten" msgid "Edit Description" msgstr "Beschreibung bearbeiten" -msgid "Edit environment" -msgstr "Umgebung bearbeiten" +msgid "Edit Environment Variable" +msgstr "Umgebungsvariable bearbeiten" msgid "Edit files without asking; ask before commands" msgstr "Dateien ohne Rückfrage bearbeiten; vor Befehlen fragen" @@ -8016,6 +8058,9 @@ msgstr "Ganze Zahl eingeben" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "Geben Sie eine ganze Zahl von {minHours} bis {maxHours} GB-Stunden ein." +msgid "Enter new value" +msgstr "Neuen Wert eingeben" + msgid "Enter this code when OpenAI asks for it:" msgstr "Gib diesen Code ein, wenn OpenAI danach fragt:" @@ -8046,6 +8091,9 @@ msgstr "Umgebungs-Setup, flaky Tests und Zugangsdaten-Verkabelung — die langwe msgid "Environment Variables" msgstr "Umgebungsvariablen" +msgid "Environment's size" +msgstr "Größe der Umgebung" + msgid "Environments" msgstr "Umgebungen" @@ -8477,6 +8525,9 @@ msgstr "Konto konnte nicht gelöscht werden" msgid "Failed to delete automation" msgstr "Automatisierung konnte nicht gelöscht werden" +msgid "Failed to delete environment variable" +msgstr "Umgebungsvariable konnte nicht gelöscht werden" + msgid "Failed to delete host" msgstr "Host konnte nicht gelöscht werden" @@ -8595,6 +8646,9 @@ msgstr "Antwort konnte nicht gesendet werden" msgid "Failed to push branch" msgstr "Branch konnte nicht gepusht werden" +msgid "Failed to read file." +msgstr "Datei konnte nicht gelesen werden." + msgid "Failed to record page version" msgstr "Seitenversion konnte nicht erfasst werden" @@ -8688,6 +8742,9 @@ msgstr "Der Befehl des Arbeitsbereichs konnte nicht ausgeführt werden" msgid "Failed to save" msgstr "Speichern fehlgeschlagen" +msgid "Failed to save environment variables" +msgstr "Umgebungsvariablen konnten nicht gespeichert werden" + msgid "Failed to save installation. Please try again." msgstr "Installation konnte nicht gespeichert werden. Bitte versuche es erneut." @@ -8754,6 +8811,9 @@ msgstr "Avatar konnte nicht aktualisiert werden" msgid "Failed to update branch prefix" msgstr "Branch-Präfix konnte nicht aktualisiert werden" +msgid "Failed to update environment variable" +msgstr "Umgebungsvariable konnte nicht aktualisiert werden" + msgid "Failed to update hooks" msgstr "Hooks konnten nicht aktualisiert werden" @@ -8898,6 +8958,9 @@ msgstr "Öffnungsmodus für Dateien" msgid "File opens when the workspace wakes up" msgstr "Datei wird geöffnet, sobald der Arbeitsbereich aufgewacht ist" +msgid "File too large. Maximum size is 256 KB." +msgstr "Datei zu groß. Maximal 256 KB." + msgid "File viewer" msgstr "Dateibetrachter" @@ -10195,6 +10258,9 @@ msgstr "Gibt sich als jemand anderes aus" msgid "Import" msgstr "Importieren" +msgid "Import .env" +msgstr ".env importieren" + msgid "import a folder" msgstr "einen Ordner importieren" @@ -10936,6 +11002,9 @@ msgstr "Neue Datei behalten, sie hat sich nach dem Erstellen geändert" msgid "Kept the new folder because it is no longer empty" msgstr "Neuen Ordner behalten, er ist nicht mehr leer" +msgid "Key" +msgstr "Schlüssel" + msgid "Key dates" msgstr "Wichtige Termine" @@ -11081,6 +11150,9 @@ msgstr "Zuletzt gesehen: {lastSeen}" msgid "Last updated" msgstr "Zuletzt aktualisiert" +msgid "Last Updated" +msgstr "Zuletzt aktualisiert" + msgid "Last updated on {date}" msgstr "Zuletzt aktualisiert am {date}" @@ -11671,9 +11743,6 @@ msgstr "Rechnerressourcen" msgid "Machine size" msgstr "Maschinengröße" -msgid "Machine size: {label}" -msgstr "Maschinengröße: {label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "Maschinenunabhängige Cloud-Arbeitsbereiche, die in Sekunden hochfahren und sich mit dem Team teilen lassen." @@ -11731,6 +11800,9 @@ msgstr "Konten verwalten…" msgid "Manage billing" msgstr "Abrechnung verwalten" +msgid "Manage environment" +msgstr "Umgebung verwalten" + msgid "Manage environments" msgstr "Umgebungen verwalten" @@ -12358,6 +12430,10 @@ msgstr "Mysteriöser Maschinist" msgid "Name" msgstr "Name" +msgctxt "sort order" +msgid "Name" +msgstr "Name" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "Name und ein URL-tauglicher Slug. Beides lässt sich später ändern." @@ -12708,6 +12784,9 @@ msgstr "Keine aktiven Arbeitsbereiche" msgid "No agent" msgstr "Kein Agent" +msgid "No agent is available to set up the environment" +msgstr "Kein Agent verfügbar, um die Umgebung einzurichten" + msgid "No agent is configured on this host" msgstr "Auf diesem Host ist kein Agent konfiguriert" @@ -12856,6 +12935,9 @@ msgstr "Noch keine Downloads" msgid "No emoji found" msgstr "Kein Emoji gefunden" +msgid "No environment variables yet" +msgstr "Noch keine Umgebungsvariablen" + msgid "No environments available" msgstr "Keine Umgebungen verfügbar" @@ -13012,6 +13094,9 @@ msgstr "Keine passenden Pull Requests" msgid "No matching tasks" msgstr "Keine passenden Aufgaben" +msgid "No matching variables" +msgstr "Keine passenden Variablen" + msgid "No MCP servers found" msgstr "Keine MCP-Server gefunden" @@ -13319,8 +13404,8 @@ msgstr "Keine v1-Projekte auf diesem Gerät gefunden." msgid "No v1 terminal scripts found." msgstr "Keine v1-Terminalskripte gefunden." -msgid "No variables set yet." -msgstr "Noch keine Variablen gesetzt." +msgid "No valid environment variables found in file" +msgstr "Keine gültigen Umgebungsvariablen in der Datei gefunden" msgid "No versions yet" msgstr "Noch keine Versionen" @@ -13717,6 +13802,9 @@ msgstr "Ein Plugin. Jeder Coding-Agent." msgid "One step left" msgstr "Noch ein Schritt" +msgid "One variable can't be saved. See the highlighted row" +msgstr "Eine Variable kann nicht gespeichert werden. Siehe die markierte Zeile" + msgid "online" msgstr "online" @@ -14372,6 +14460,9 @@ msgstr "Optional. Hilft uns zu verstehen, was funktioniert." msgid "Options" msgstr "Optionen" +msgid "or paste .env contents in Key input" +msgstr "oder .env-Inhalt in das Schlüsselfeld einfügen" + msgid "Orange" msgstr "Orange" @@ -14402,6 +14493,9 @@ msgstr "Organisation {id}" msgid "Organization created successfully!" msgstr "Organisation erfolgreich erstellt!" +msgid "Organization default ({defaultName})" +msgstr "Standard der Organisation ({defaultName})" + msgid "Organization deleted" msgstr "Organisation gelöscht" @@ -15062,8 +15156,8 @@ msgstr "Wähle den neuen Projektordner auf {hostName}." msgid "Pick the project worktree folder on {hostName}." msgstr "Wähle den Worktree-Ordner des Projekts auf {hostName}." -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "Wähle die Repositories, die sie auscheckt. Ein Agent auf diesem Rechner findet heraus, was installiert werden muss, und bringt sie in der Cloud zum Laufen." +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "Wähle die Repositories, die sie auscheckt. Ein Agent in einem Cloud-Workspace findet heraus, was installiert werden muss, und bringt sie zum Laufen." msgid "Pick the worktree folder on {hostName}." msgstr "Wähle den Worktree-Ordner auf {hostName}." @@ -15167,6 +15261,9 @@ msgstr "Bitte wähle eine Organisation" msgid "Please try again, or restart Paradev on that device." msgstr "Bitte versuche es erneut oder starte Paradev auf dem Gerät neu." +msgid "Please upload a valid .env file." +msgstr "Bitte lade eine gültige .env-Datei hoch." + msgid "Plugin" msgstr "Plugin" @@ -17321,6 +17418,9 @@ msgstr "Speichern" msgid "Save & create workspace" msgstr "Speichern & Arbeitsbereich erstellen" +msgid "Save a checkpoint to {name}?" +msgstr "Checkpoint in {name} speichern?" + msgid "Save All" msgstr "Alle speichern" @@ -17333,6 +17433,9 @@ msgstr "Als Ansicht speichern" msgid "Save Changes" msgstr "Änderungen speichern" +msgid "Save checkpoint" +msgstr "Checkpoint speichern" + msgid "Save edits" msgstr "Bearbeitung speichern" @@ -17373,9 +17476,21 @@ msgstr "Gespeichert" msgid "Saved \"{0}\" as an environment" msgstr "„{0}“ als Umgebung gespeichert" +msgid "Saved {name}" +msgstr "{name} gespeichert" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "{name} gespeichert, aber der Setup-Workspace konnte nicht starten: {reason}" + msgid "Saved to Downloads" msgstr "In Downloads gespeichert" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "Speichert diesen Workspace im aktuellen Zustand, mit allem, was darin installiert ist. Neue Workspaces aus {name} starten von diesem Checkpoint. Der Workspace hält während des Speicherns kurz an." + +msgid "Saving a checkpoint to {name}..." +msgstr "Checkpoint wird in {name} gespeichert..." + msgid "Saving as an environment..." msgstr "Wird als Umgebung gespeichert..." @@ -17810,9 +17925,6 @@ msgstr "Agent auswählen" msgid "Select an editor from the dropdown" msgstr "Wähle einen Editor aus der Liste" -msgid "Select an environment" -msgstr "Umgebung auswählen" - msgid "Select an organization" msgstr "Organisation auswählen" @@ -17993,6 +18105,12 @@ msgstr "Wird gesendet…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "Sendet {0} Zeichen Terminal-Kontext (etwa {1} Tokens) an {2}." +msgid "Sensitive" +msgstr "Sensibel" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "Sensible Werte werden verschlüsselt und können nach dem Speichern nicht mehr angezeigt werden." + msgid "Sent" msgstr "Gesendet" @@ -18068,9 +18186,6 @@ msgstr "Sitzungen" msgid "Sessions · top {0} by cost" msgstr "Sitzungen · Top {0} nach Kosten" -msgid "Set" -msgstr "Gesetzt" - msgid "Set a notification schedule" msgstr "Benachrichtigungszeitplan festlegen" @@ -18113,6 +18228,9 @@ msgstr "Host über SSH einrichten" msgid "Set up an automation" msgstr "Automatisierung einrichten" +msgid "Set up Environment" +msgstr "Umgebung einrichten" + msgid "Set up once" msgstr "Einmal einrichten" @@ -18666,9 +18784,6 @@ msgstr "Sechs Stufen der Fabrikautonomie" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "Sechs Stufen der Fabrikautonomie, die Schwellen dazwischen und unsere Prognose, wie weit uns 2026 bringt. Jetzt aufgeschrieben, damit du uns später benoten kannst." -msgid "size" -msgstr "Größe" - msgid "Size" msgstr "Größe" @@ -18693,6 +18808,9 @@ msgstr "Hautton" msgid "Skip" msgstr "Überspringen" +msgid "Skip & save" +msgstr "Überspringen und speichern" + msgid "Skip All" msgstr "Alle überspringen" @@ -19093,6 +19211,9 @@ msgstr "Neuen Chat starten" msgid "Start a session" msgstr "Sitzung starten" +msgid "Start agent" +msgstr "Agent starten" + msgid "Start agents on events or a schedule" msgstr "Starte Agenten bei Ereignissen oder nach Zeitplan" @@ -21292,6 +21413,10 @@ msgstr "Beidhändig" msgid "Type" msgstr "Typ" +msgctxt "sort order" +msgid "Type" +msgstr "Typ" + msgid "Type @linear in any prompt." msgstr "Tippe @linear in einen beliebigen Prompt." @@ -21665,6 +21790,9 @@ msgstr "Aktualisiere den Host-Dienst auf beiden Computern und versuche es erneut msgid "Update the host service on this device and try again." msgstr "Aktualisiere den Host-Dienst auf diesem Gerät und versuche es erneut." +msgid "Update the value for <0>{key}" +msgstr "Wert für <0>{key} aktualisieren" + msgid "Update this host to message subagents" msgstr "Aktualisiere diesen Host, um Subagents Nachrichten zu senden" @@ -21681,6 +21809,9 @@ msgstr "Aktualisiert {0}" msgid "Updated {date}" msgstr "Aktualisiert {date}" +msgid "Updated {key}" +msgstr "{key} aktualisiert" + msgid "Updated {updatedRelative}" msgstr "Aktualisiert {updatedRelative}" @@ -21899,6 +22030,9 @@ msgstr "user@host, ssh://user@host:2222 oder ein Alias aus der ssh-Konfiguration msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectId passt nicht zum Projekt des Arbeitsbereichs" +msgid "Value" +msgstr "Wert" + msgid "Variables" msgstr "Variablen" @@ -22892,6 +23026,9 @@ msgstr "Du hast keinen Zugriff auf dieses Terminal." msgid "You don't have permission to remove this member" msgstr "Du hast keine Berechtigung, dieses Mitglied zu entfernen" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "Du hast ungespeicherte Umgebungsvariablen. Möchtest du wirklich schließen?" + msgid "You install and connect once per account." msgstr "Du installierst und verbindest einmal pro Konto." diff --git a/packages/i18n/locales/en/messages.po b/packages/i18n/locales/en/messages.po index a2a9b972bf5..9e3a77a5b6d 100644 --- a/packages/i18n/locales/en/messages.po +++ b/packages/i18n/locales/en/messages.po @@ -984,6 +984,9 @@ msgstr "{count} hosts run an older host service than this app" msgid "{count} selected" msgstr "{count} selected" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "{count} variables can't be saved. See the highlighted rows" + msgid "{count}/day" msgstr "{count}/day" @@ -1132,6 +1135,9 @@ msgstr "{lines, plural, one {# line} other {# lines}}" msgid "{localHostName} (this device)" msgstr "{localHostName} (this device)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize} (not on your plan)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2109,6 +2115,9 @@ msgstr "add an agent" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "Add an environment in Settings before creating a cloud workspace" +msgid "Add Another" +msgstr "Add Another" + msgid "Add another account, or disconnect one you no longer use." msgstr "Add another account, or disconnect one you no longer use." @@ -2136,6 +2145,9 @@ msgstr "Add Description" msgid "Add description..." msgstr "Add description..." +msgid "Add Environment Variable" +msgstr "Add Environment Variable" + msgid "Add extension" msgstr "Add extension" @@ -2173,6 +2185,9 @@ msgstr "Add more…" msgid "Add one from the menu in the sidebar to get started." msgstr "Add one from the menu in the sidebar to get started." +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "Add one or more environment variables. You can also drag and drop a .env file." + msgid "Add people" msgstr "Add people" @@ -2284,9 +2299,18 @@ msgstr "Added {added}" msgid "Added {added} files to {where}" msgstr "Added {added} files to {where}" +msgid "Added {addedOn}" +msgstr "Added {addedOn}" + msgid "Added {bought} GB-hours." msgstr "Added {bought} GB-hours." +msgid "Added {count} environment variables" +msgstr "Added {count} environment variables" + +msgid "Added {key}" +msgstr "Added {key}" + msgid "Added 1 file to {where}" msgstr "Added 1 file to {where}" @@ -2781,6 +2805,9 @@ msgstr "Always know which agent needs you, with notifications that deep-link str msgid "An agent completes multi-file changes end to end." msgstr "An agent completes multi-file changes end to end." +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." @@ -4381,6 +4408,9 @@ msgstr "Checkpoint · before tooltip refactor" msgid "Checkpoint saved {0}" msgstr "Checkpoint saved {0}" +msgid "Checkpoint saved to {name}" +msgstr "Checkpoint saved to {name}" + msgid "Checks" msgstr "Checks" @@ -4622,6 +4652,9 @@ msgstr "Click here if not redirected" msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "Click the “↑ update” pill to see the pre-update confirm" +msgid "Click to copy" +msgstr "Click to copy" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "Click to copy the session ID (resume with `claude --resume `)." @@ -5816,6 +5849,9 @@ msgstr "Could not copy the link" msgid "Could not create cloud workspace" msgstr "Could not create cloud workspace" +msgid "Could not create environment" +msgstr "Could not create environment" + msgid "Could not create project" msgstr "Could not create project" @@ -7407,6 +7443,9 @@ msgstr "Discard changes?" msgid "Discard recording" msgstr "Discard recording" +msgid "Discard unsaved changes?" +msgstr "Discard unsaved changes?" + msgid "Discarded" msgstr "Discarded" @@ -7812,6 +7851,9 @@ msgstr "Earned {name} ×{tier}" msgid "Edit" msgstr "Edit" +msgid "Edit {selectedName}" +msgstr "Edit {selectedName}" + msgid "Edit Channel Name" msgstr "Edit Channel Name" @@ -7824,8 +7866,8 @@ msgstr "Edit description" msgid "Edit Description" msgstr "Edit Description" -msgid "Edit environment" -msgstr "Edit environment" +msgid "Edit Environment Variable" +msgstr "Edit Environment Variable" msgid "Edit files without asking; ask before commands" msgstr "Edit files without asking; ask before commands" @@ -8016,6 +8058,9 @@ msgstr "Enter a whole number" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "Enter a whole number from {minHours} to {maxHours} GB-hours." +msgid "Enter new value" +msgstr "Enter new value" + msgid "Enter this code when OpenAI asks for it:" msgstr "Enter this code when OpenAI asks for it:" @@ -8046,6 +8091,9 @@ msgstr "Environment setup, flaky tests, and credential plumbing, the boring fail msgid "Environment Variables" msgstr "Environment Variables" +msgid "Environment's size" +msgstr "Environment's size" + msgid "Environments" msgstr "Environments" @@ -8477,6 +8525,9 @@ msgstr "Failed to delete account" msgid "Failed to delete automation" msgstr "Failed to delete automation" +msgid "Failed to delete environment variable" +msgstr "Failed to delete environment variable" + msgid "Failed to delete host" msgstr "Failed to delete host" @@ -8595,6 +8646,9 @@ msgstr "Failed to post reply" msgid "Failed to push branch" msgstr "Failed to push branch" +msgid "Failed to read file." +msgstr "Failed to read file." + msgid "Failed to record page version" msgstr "Failed to record page version" @@ -8688,6 +8742,9 @@ msgstr "Failed to run workspace command" msgid "Failed to save" msgstr "Failed to save" +msgid "Failed to save environment variables" +msgstr "Failed to save environment variables" + msgid "Failed to save installation. Please try again." msgstr "Failed to save installation. Please try again." @@ -8754,6 +8811,9 @@ msgstr "Failed to update avatar" msgid "Failed to update branch prefix" msgstr "Failed to update branch prefix" +msgid "Failed to update environment variable" +msgstr "Failed to update environment variable" + msgid "Failed to update hooks" msgstr "Failed to update hooks" @@ -8898,6 +8958,9 @@ msgstr "File open mode" msgid "File opens when the workspace wakes up" msgstr "File opens when the workspace wakes up" +msgid "File too large. Maximum size is 256 KB." +msgstr "File too large. Maximum size is 256 KB." + msgid "File viewer" msgstr "File viewer" @@ -10195,6 +10258,9 @@ msgstr "Impersonates someone" msgid "Import" msgstr "Import" +msgid "Import .env" +msgstr "Import .env" + msgid "import a folder" msgstr "import a folder" @@ -10936,6 +11002,9 @@ msgstr "Kept the new file because it changed after it was created" msgid "Kept the new folder because it is no longer empty" msgstr "Kept the new folder because it is no longer empty" +msgid "Key" +msgstr "Key" + msgid "Key dates" msgstr "Key dates" @@ -11081,6 +11150,9 @@ msgstr "Last seen {lastSeen}" msgid "Last updated" msgstr "Last updated" +msgid "Last Updated" +msgstr "Last Updated" + msgid "Last updated on {date}" msgstr "Last updated on {date}" @@ -11671,9 +11743,6 @@ msgstr "Machine resources" msgid "Machine size" msgstr "Machine size" -msgid "Machine size: {label}" -msgstr "Machine size: {label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." @@ -11731,6 +11800,9 @@ msgstr "Manage accounts…" msgid "Manage billing" msgstr "Manage billing" +msgid "Manage environment" +msgstr "Manage environment" + msgid "Manage environments" msgstr "Manage environments" @@ -12358,6 +12430,10 @@ msgstr "Mystery Machinist" msgid "Name" msgstr "Name" +msgctxt "sort order" +msgid "Name" +msgstr "Name" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "Name and a URL-friendly slug. Both can be changed later." @@ -12708,6 +12784,9 @@ msgstr "No active workspaces" msgid "No agent" msgstr "No agent" +msgid "No agent is available to set up the environment" +msgstr "No agent is available to set up the environment" + msgid "No agent is configured on this host" msgstr "No agent is configured on this host" @@ -12856,6 +12935,9 @@ msgstr "No downloads yet" msgid "No emoji found" msgstr "No emoji found" +msgid "No environment variables yet" +msgstr "No environment variables yet" + msgid "No environments available" msgstr "No environments available" @@ -13012,6 +13094,9 @@ msgstr "No matching pull requests" msgid "No matching tasks" msgstr "No matching tasks" +msgid "No matching variables" +msgstr "No matching variables" + msgid "No MCP servers found" msgstr "No MCP servers found" @@ -13319,8 +13404,8 @@ msgstr "No v1 projects found on this device." msgid "No v1 terminal scripts found." msgstr "No v1 terminal scripts found." -msgid "No variables set yet." -msgstr "No variables set yet." +msgid "No valid environment variables found in file" +msgstr "No valid environment variables found in file" msgid "No versions yet" msgstr "No versions yet" @@ -13717,6 +13802,9 @@ msgstr "One plugin. Every coding agent." msgid "One step left" msgstr "One step left" +msgid "One variable can't be saved. See the highlighted row" +msgstr "One variable can't be saved. See the highlighted row" + msgid "online" msgstr "online" @@ -14372,6 +14460,9 @@ msgstr "Optional. Helps us learn what works." msgid "Options" msgstr "Options" +msgid "or paste .env contents in Key input" +msgstr "or paste .env contents in Key input" + msgid "Orange" msgstr "Orange" @@ -14402,6 +14493,9 @@ msgstr "Organization {id}" msgid "Organization created successfully!" msgstr "Organization created successfully!" +msgid "Organization default ({defaultName})" +msgstr "Organization default ({defaultName})" + msgid "Organization deleted" msgstr "Organization deleted" @@ -15062,8 +15156,8 @@ msgstr "Pick the new project folder on {hostName}." msgid "Pick the project worktree folder on {hostName}." msgstr "Pick the project worktree folder on {hostName}." -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." msgid "Pick the worktree folder on {hostName}." msgstr "Pick the worktree folder on {hostName}." @@ -15167,6 +15261,9 @@ msgstr "Please select an organization" msgid "Please try again, or restart Paradev on that device." msgstr "Please try again, or restart Paradev on that device." +msgid "Please upload a valid .env file." +msgstr "Please upload a valid .env file." + msgid "Plugin" msgstr "Plugin" @@ -17321,6 +17418,9 @@ msgstr "Save" msgid "Save & create workspace" msgstr "Save & create workspace" +msgid "Save a checkpoint to {name}?" +msgstr "Save a checkpoint to {name}?" + msgid "Save All" msgstr "Save All" @@ -17333,6 +17433,9 @@ msgstr "Save as view" msgid "Save Changes" msgstr "Save Changes" +msgid "Save checkpoint" +msgstr "Save checkpoint" + msgid "Save edits" msgstr "Save edits" @@ -17373,9 +17476,21 @@ msgstr "Saved" msgid "Saved \"{0}\" as an environment" msgstr "Saved \"{0}\" as an environment" +msgid "Saved {name}" +msgstr "Saved {name}" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "Saved {name}, but its setup workspace could not start: {reason}" + msgid "Saved to Downloads" msgstr "Saved to Downloads" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." + +msgid "Saving a checkpoint to {name}..." +msgstr "Saving a checkpoint to {name}..." + msgid "Saving as an environment..." msgstr "Saving as an environment..." @@ -17810,9 +17925,6 @@ msgstr "Select an agent" msgid "Select an editor from the dropdown" msgstr "Select an editor from the dropdown" -msgid "Select an environment" -msgstr "Select an environment" - msgid "Select an organization" msgstr "Select an organization" @@ -17993,6 +18105,12 @@ msgstr "Sending…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "Sends {0} characters of terminal context (about {1} tokens) to {2}." +msgid "Sensitive" +msgstr "Sensitive" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "Sensitive values are encrypted and cannot be revealed in the UI after saving." + msgid "Sent" msgstr "Sent" @@ -18068,9 +18186,6 @@ msgstr "Sessions" msgid "Sessions · top {0} by cost" msgstr "Sessions · top {0} by cost" -msgid "Set" -msgstr "Set" - msgid "Set a notification schedule" msgstr "Set a notification schedule" @@ -18113,6 +18228,9 @@ msgstr "Set up a host over SSH" msgid "Set up an automation" msgstr "Set up an automation" +msgid "Set up Environment" +msgstr "Set up Environment" + msgid "Set up once" msgstr "Set up once" @@ -18666,9 +18784,6 @@ msgstr "Six levels of factory autonomy" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." -msgid "size" -msgstr "size" - msgid "Size" msgstr "Size" @@ -18693,6 +18808,9 @@ msgstr "Skin Tone" msgid "Skip" msgstr "Skip" +msgid "Skip & save" +msgstr "Skip & save" + msgid "Skip All" msgstr "Skip All" @@ -19093,6 +19211,9 @@ msgstr "Start a new chat" msgid "Start a session" msgstr "Start a session" +msgid "Start agent" +msgstr "Start agent" + msgid "Start agents on events or a schedule" msgstr "Start agents on events or a schedule" @@ -21292,6 +21413,10 @@ msgstr "Two Hands" msgid "Type" msgstr "Type" +msgctxt "sort order" +msgid "Type" +msgstr "Type" + msgid "Type @linear in any prompt." msgstr "Type @linear in any prompt." @@ -21665,6 +21790,9 @@ msgstr "Update the host service on both computers and try again." msgid "Update the host service on this device and try again." msgstr "Update the host service on this device and try again." +msgid "Update the value for <0>{key}" +msgstr "Update the value for <0>{key}" + msgid "Update this host to message subagents" msgstr "Update this host to message subagents" @@ -21681,6 +21809,9 @@ msgstr "Updated {0}" msgid "Updated {date}" msgstr "Updated {date}" +msgid "Updated {key}" +msgstr "Updated {key}" + msgid "Updated {updatedRelative}" msgstr "Updated {updatedRelative}" @@ -21899,6 +22030,9 @@ msgstr "user@host, ssh://user@host:2222, or an ssh config alias" msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectId does not match the workspace's project" +msgid "Value" +msgstr "Value" + msgid "Variables" msgstr "Variables" @@ -22892,6 +23026,9 @@ msgstr "You don't have access to this terminal." msgid "You don't have permission to remove this member" msgstr "You don't have permission to remove this member" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "You have unsaved environment variables. Are you sure you want to close?" + msgid "You install and connect once per account." msgstr "You install and connect once per account." diff --git a/packages/i18n/locales/es/messages.po b/packages/i18n/locales/es/messages.po index 492fffc3f22..6dada871dd3 100644 --- a/packages/i18n/locales/es/messages.po +++ b/packages/i18n/locales/es/messages.po @@ -984,6 +984,9 @@ msgstr "{count} hosts ejecutan un servicio de host más antiguo que esta app" msgid "{count} selected" msgstr "{count} seleccionadas" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "{count} variables no se pueden guardar. Revisa las filas resaltadas" + msgid "{count}/day" msgstr "{count}/día" @@ -1132,6 +1135,9 @@ msgstr "{lines, plural, one {# línea} other {# líneas}}" msgid "{localHostName} (this device)" msgstr "{localHostName} (este dispositivo)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize} (no incluido en tu plan)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2109,6 +2115,9 @@ msgstr "añadir un agente" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "Añade un entorno en Ajustes antes de crear un espacio de trabajo en la nube" +msgid "Add Another" +msgstr "Añadir otra" + msgid "Add another account, or disconnect one you no longer use." msgstr "Conecta otra cuenta o desconecta una que ya no uses." @@ -2136,6 +2145,9 @@ msgstr "Añadir descripción" msgid "Add description..." msgstr "Añadir descripción..." +msgid "Add Environment Variable" +msgstr "Añadir variable de entorno" + msgid "Add extension" msgstr "Añadir extensión" @@ -2173,6 +2185,9 @@ msgstr "Añadir más…" msgid "Add one from the menu in the sidebar to get started." msgstr "Añade uno desde el menú de la barra lateral para empezar." +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "Añade una o más variables de entorno. También puedes arrastrar y soltar un archivo .env." + msgid "Add people" msgstr "Añadir personas" @@ -2284,9 +2299,18 @@ msgstr "{added} añadido" msgid "Added {added} files to {where}" msgstr "Se añadieron {added} archivos a {where}" +msgid "Added {addedOn}" +msgstr "Añadida el {addedOn}" + msgid "Added {bought} GB-hours." msgstr "Se añadieron {bought} GB-horas." +msgid "Added {count} environment variables" +msgstr "{count} variables de entorno añadidas" + +msgid "Added {key}" +msgstr "{key} añadida" + msgid "Added 1 file to {where}" msgstr "Se añadió 1 archivo a {where}" @@ -2781,6 +2805,9 @@ msgstr "Sabrás siempre qué agente te necesita, con notificaciones que llevan d msgid "An agent completes multi-file changes end to end." msgstr "Un agente completa cambios en varios archivos de principio a fin." +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "Un agente configura este entorno en un espacio de trabajo en la nube (unos 20 minutos o más): instala las dependencias, escribe la configuración y pide los secretos que necesite. Puedes interrumpirlo en cualquier momento o tomar el control en el espacio de trabajo para terminar tú mismo." + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "Un agente escribe funciones y archivos enteros mientras una persona observa cada paso y aprueba cada comando. Un agente, una persona. Más rápido, pero aún en serie." @@ -4381,6 +4408,9 @@ msgstr "Punto de control · antes de refactorizar los tooltips" msgid "Checkpoint saved {0}" msgstr "Punto de control guardado {0}" +msgid "Checkpoint saved to {name}" +msgstr "Punto de control guardado en {name}" + msgid "Checks" msgstr "Comprobaciones" @@ -4622,6 +4652,9 @@ msgstr "Haz clic aquí si no se te redirige" msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "Haz clic en «↑ update» para ver la confirmación previa a la actualización" +msgid "Click to copy" +msgstr "Haz clic para copiar" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "Haz clic para copiar el ID de la sesión (retómala con `claude --resume `)." @@ -5816,6 +5849,9 @@ msgstr "No se pudo copiar el enlace" msgid "Could not create cloud workspace" msgstr "No se pudo crear el espacio de trabajo en la nube" +msgid "Could not create environment" +msgstr "No se pudo crear el entorno" + msgid "Could not create project" msgstr "No se pudo crear el proyecto" @@ -7407,6 +7443,9 @@ msgstr "¿Descartar los cambios?" msgid "Discard recording" msgstr "Descartar la grabación" +msgid "Discard unsaved changes?" +msgstr "¿Descartar los cambios sin guardar?" + msgid "Discarded" msgstr "Descartado" @@ -7812,6 +7851,9 @@ msgstr "{name} ×{tier} conseguido" msgid "Edit" msgstr "Editar" +msgid "Edit {selectedName}" +msgstr "Editar {selectedName}" + msgid "Edit Channel Name" msgstr "Editar nombre del canal" @@ -7824,8 +7866,8 @@ msgstr "Editar descripción" msgid "Edit Description" msgstr "Editar descripción" -msgid "Edit environment" -msgstr "Editar entorno" +msgid "Edit Environment Variable" +msgstr "Editar variable de entorno" msgid "Edit files without asking; ask before commands" msgstr "Editar archivos sin preguntar; preguntar antes de comandos" @@ -8016,6 +8058,9 @@ msgstr "Introduce un número entero" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "Introduce un número entero de {minHours} a {maxHours} GB-horas." +msgid "Enter new value" +msgstr "Introduce un valor nuevo" + msgid "Enter this code when OpenAI asks for it:" msgstr "Introduce este código cuando OpenAI lo pida:" @@ -8046,6 +8091,9 @@ msgstr "La preparación del entorno, las pruebas inestables y la gestión de cre msgid "Environment Variables" msgstr "Variables de entorno" +msgid "Environment's size" +msgstr "Tamaño del entorno" + msgid "Environments" msgstr "Entornos" @@ -8477,6 +8525,9 @@ msgstr "No se pudo eliminar la cuenta" msgid "Failed to delete automation" msgstr "No se pudo eliminar la automatización" +msgid "Failed to delete environment variable" +msgstr "No se pudo eliminar la variable de entorno" + msgid "Failed to delete host" msgstr "No se pudo eliminar el host" @@ -8595,6 +8646,9 @@ msgstr "No se pudo publicar la respuesta" msgid "Failed to push branch" msgstr "No se pudo hacer push de la rama" +msgid "Failed to read file." +msgstr "No se pudo leer el archivo." + msgid "Failed to record page version" msgstr "No se pudo registrar la versión de la página" @@ -8688,6 +8742,9 @@ msgstr "No se pudo ejecutar el comando del espacio de trabajo" msgid "Failed to save" msgstr "No se pudo guardar" +msgid "Failed to save environment variables" +msgstr "No se pudieron guardar las variables de entorno" + msgid "Failed to save installation. Please try again." msgstr "No se pudo guardar la instalación. Inténtalo de nuevo." @@ -8754,6 +8811,9 @@ msgstr "No se pudo actualizar el avatar" msgid "Failed to update branch prefix" msgstr "No se pudo actualizar el prefijo de rama" +msgid "Failed to update environment variable" +msgstr "No se pudo actualizar la variable de entorno" + msgid "Failed to update hooks" msgstr "No se pudieron actualizar los hooks" @@ -8898,6 +8958,9 @@ msgstr "Modo de apertura de archivos" msgid "File opens when the workspace wakes up" msgstr "El archivo se abre cuando se active el espacio de trabajo" +msgid "File too large. Maximum size is 256 KB." +msgstr "Archivo demasiado grande. El tamaño máximo es 256 KB." + msgid "File viewer" msgstr "Visor de archivos" @@ -10195,6 +10258,9 @@ msgstr "Suplanta a alguien" msgid "Import" msgstr "Importar" +msgid "Import .env" +msgstr "Importar .env" + msgid "import a folder" msgstr "importar una carpeta" @@ -10936,6 +11002,9 @@ msgstr "Se conservó el archivo nuevo: cambió después de crearse" msgid "Kept the new folder because it is no longer empty" msgstr "Se conservó la carpeta nueva: ya no está vacía" +msgid "Key" +msgstr "Clave" + msgid "Key dates" msgstr "Fechas clave" @@ -11081,6 +11150,9 @@ msgstr "Visto por última vez: {lastSeen}" msgid "Last updated" msgstr "Última actualización" +msgid "Last Updated" +msgstr "Última actualización" + msgid "Last updated on {date}" msgstr "Última actualización: {date}" @@ -11671,9 +11743,6 @@ msgstr "Recursos de la máquina" msgid "Machine size" msgstr "Tamaño de la máquina" -msgid "Machine size: {label}" -msgstr "Tamaño de la máquina: {label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "Espacios de trabajo en la nube, sin atarse a una máquina, que arrancan en segundos y se pueden compartir con el equipo." @@ -11731,6 +11800,9 @@ msgstr "Gestionar cuentas…" msgid "Manage billing" msgstr "Gestionar facturación" +msgid "Manage environment" +msgstr "Administrar entorno" + msgid "Manage environments" msgstr "Administrar entornos" @@ -12358,6 +12430,10 @@ msgstr "Maquinista misterioso" msgid "Name" msgstr "Nombre" +msgctxt "sort order" +msgid "Name" +msgstr "Nombre" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "Un nombre y un slug apto para URL. Ambos se pueden cambiar después." @@ -12708,6 +12784,9 @@ msgstr "No hay espacios de trabajo activos" msgid "No agent" msgstr "Sin agente" +msgid "No agent is available to set up the environment" +msgstr "No hay ningún agente disponible para configurar el entorno" + msgid "No agent is configured on this host" msgstr "No hay ningún agente configurado en este host" @@ -12856,6 +12935,9 @@ msgstr "Aún no hay descargas" msgid "No emoji found" msgstr "No se encontraron emojis" +msgid "No environment variables yet" +msgstr "Aún no hay variables de entorno" + msgid "No environments available" msgstr "No hay entornos disponibles" @@ -13012,6 +13094,9 @@ msgstr "No hay pull requests que coincidan" msgid "No matching tasks" msgstr "No hay tareas que coincidan" +msgid "No matching variables" +msgstr "No hay variables que coincidan" + msgid "No MCP servers found" msgstr "No se encontraron servidores MCP" @@ -13319,8 +13404,8 @@ msgstr "No se encontraron proyectos v1 en este dispositivo." msgid "No v1 terminal scripts found." msgstr "No se encontraron scripts de terminal v1." -msgid "No variables set yet." -msgstr "Aún no hay variables definidas." +msgid "No valid environment variables found in file" +msgstr "No se encontraron variables de entorno válidas en el archivo" msgid "No versions yet" msgstr "Aún no hay versiones" @@ -13717,6 +13802,9 @@ msgstr "Un plugin. Todos los agentes de programación." msgid "One step left" msgstr "Falta un paso" +msgid "One variable can't be saved. See the highlighted row" +msgstr "Una variable no se puede guardar. Revisa la fila resaltada" + msgid "online" msgstr "en línea" @@ -14372,6 +14460,9 @@ msgstr "Opcional. Nos ayuda a saber qué funciona." msgid "Options" msgstr "Opciones" +msgid "or paste .env contents in Key input" +msgstr "o pega el contenido de un .env en el campo Clave" + msgid "Orange" msgstr "Naranja" @@ -14402,6 +14493,9 @@ msgstr "Organización {id}" msgid "Organization created successfully!" msgstr "¡Organización creada!" +msgid "Organization default ({defaultName})" +msgstr "Predeterminado de la organización ({defaultName})" + msgid "Organization deleted" msgstr "Organización eliminada" @@ -15062,8 +15156,8 @@ msgstr "Elige la nueva carpeta del proyecto en {hostName}." msgid "Pick the project worktree folder on {hostName}." msgstr "Elige la carpeta de worktrees del proyecto en {hostName}." -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "Elige los repositorios que obtiene. Un agente en este equipo averigua qué instalar y lo pone en marcha en la nube." +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "Elige los repositorios que descarga. Un agente en un espacio de trabajo en la nube averigua qué instalar y lo pone en marcha." msgid "Pick the worktree folder on {hostName}." msgstr "Elige la carpeta del worktree en {hostName}." @@ -15167,6 +15261,9 @@ msgstr "Selecciona una organización" msgid "Please try again, or restart Paradev on that device." msgstr "Inténtalo de nuevo o reinicia Paradev en ese dispositivo." +msgid "Please upload a valid .env file." +msgstr "Sube un archivo .env válido." + msgid "Plugin" msgstr "Plugin" @@ -17321,6 +17418,9 @@ msgstr "Guardar" msgid "Save & create workspace" msgstr "Guardar y crear espacio de trabajo" +msgid "Save a checkpoint to {name}?" +msgstr "¿Guardar un punto de control en {name}?" + msgid "Save All" msgstr "Guardar todo" @@ -17333,6 +17433,9 @@ msgstr "Guardar como vista" msgid "Save Changes" msgstr "Guardar cambios" +msgid "Save checkpoint" +msgstr "Guardar punto de control" + msgid "Save edits" msgstr "Guardar las ediciones" @@ -17373,9 +17476,21 @@ msgstr "Guardado" msgid "Saved \"{0}\" as an environment" msgstr "Se guardó \"{0}\" como entorno" +msgid "Saved {name}" +msgstr "{name} guardado" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "{name} guardado, pero no se pudo iniciar su espacio de trabajo de configuración: {reason}" + msgid "Saved to Downloads" msgstr "Guardada en Descargas" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "Guarda este espacio de trabajo tal como está ahora, con todo lo instalado en él. Los nuevos espacios de trabajo de {name} empezarán desde este punto de control. El espacio de trabajo se detiene un momento mientras se guarda." + +msgid "Saving a checkpoint to {name}..." +msgstr "Guardando un punto de control en {name}..." + msgid "Saving as an environment..." msgstr "Guardando como entorno..." @@ -17810,9 +17925,6 @@ msgstr "Selecciona un agente" msgid "Select an editor from the dropdown" msgstr "Selecciona un editor en el desplegable" -msgid "Select an environment" -msgstr "Selecciona un entorno" - msgid "Select an organization" msgstr "Selecciona una organización" @@ -17993,6 +18105,12 @@ msgstr "Enviando…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "Envía {0} caracteres de contexto del terminal (unos {1} tokens) a {2}." +msgid "Sensitive" +msgstr "Sensible" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "Los valores sensibles se cifran y no se pueden mostrar en la interfaz después de guardarlos." + msgid "Sent" msgstr "Enviada" @@ -18068,9 +18186,6 @@ msgstr "Sesiones" msgid "Sessions · top {0} by cost" msgstr "Sesiones · las {0} de mayor coste" -msgid "Set" -msgstr "Definida" - msgid "Set a notification schedule" msgstr "Configurar un horario de notificaciones" @@ -18113,6 +18228,9 @@ msgstr "Configurar un host por SSH" msgid "Set up an automation" msgstr "Configura una automatización" +msgid "Set up Environment" +msgstr "Configurar entorno" + msgid "Set up once" msgstr "Configúralo una vez" @@ -18666,9 +18784,6 @@ msgstr "Seis niveles de autonomía de la fábrica" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "Seis niveles de autonomía de la fábrica, las metas que los separan y nuestro pronóstico de hasta dónde llega 2026. Lo escribimos ahora para que puedas calificarnos después." -msgid "size" -msgstr "Tamaño" - msgid "Size" msgstr "Tamaño" @@ -18693,6 +18808,9 @@ msgstr "Tono de piel" msgid "Skip" msgstr "Omitir" +msgid "Skip & save" +msgstr "Omitir y guardar" + msgid "Skip All" msgstr "Omitir todo" @@ -19093,6 +19211,9 @@ msgstr "Iniciar un chat nuevo" msgid "Start a session" msgstr "Iniciar una sesión" +msgid "Start agent" +msgstr "Iniciar agente" + msgid "Start agents on events or a schedule" msgstr "Inicia agentes con eventos o según una programación" @@ -21292,6 +21413,10 @@ msgstr "Dos manos" msgid "Type" msgstr "Tipo" +msgctxt "sort order" +msgid "Type" +msgstr "Tipo" + msgid "Type @linear in any prompt." msgstr "Escribe @linear en cualquier prompt." @@ -21665,6 +21790,9 @@ msgstr "Actualiza el servicio de host en ambos equipos y vuelve a intentarlo." msgid "Update the host service on this device and try again." msgstr "Actualiza el servicio de host en este dispositivo y vuelve a intentarlo." +msgid "Update the value for <0>{key}" +msgstr "Actualiza el valor de <0>{key}" + msgid "Update this host to message subagents" msgstr "Actualiza este host para enviar mensajes a los subagentes" @@ -21681,6 +21809,9 @@ msgstr "Actualizado {0}" msgid "Updated {date}" msgstr "Actualizado el {date}" +msgid "Updated {key}" +msgstr "{key} actualizada" + msgid "Updated {updatedRelative}" msgstr "Actualizada {updatedRelative}" @@ -21899,6 +22030,9 @@ msgstr "usuario@host, ssh://usuario@host:2222 o un alias de la configuración de msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectId no coincide con el proyecto del espacio de trabajo" +msgid "Value" +msgstr "Valor" + msgid "Variables" msgstr "Variables" @@ -22892,6 +23026,9 @@ msgstr "No tienes acceso a este terminal." msgid "You don't have permission to remove this member" msgstr "No tienes permiso para quitar a este miembro" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "Tienes variables de entorno sin guardar. ¿Seguro que quieres cerrar?" + msgid "You install and connect once per account." msgstr "Instalas y conectas una vez por cuenta." diff --git a/packages/i18n/locales/fr/messages.po b/packages/i18n/locales/fr/messages.po index 52c49afcd5d..190fc999c20 100644 --- a/packages/i18n/locales/fr/messages.po +++ b/packages/i18n/locales/fr/messages.po @@ -984,6 +984,9 @@ msgstr "{count} hôtes exécutent un service d'hôte plus ancien que cette appli msgid "{count} selected" msgstr "{count} sélectionnée(s)" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "{count} variables ne peuvent pas être enregistrées. Voir les lignes en surbrillance" + msgid "{count}/day" msgstr "{count}/jour" @@ -1132,6 +1135,9 @@ msgstr "{lines, plural, one {# ligne} other {# lignes}}" msgid "{localHostName} (this device)" msgstr "{localHostName} (cet appareil)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize} (hors de votre forfait)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2109,6 +2115,9 @@ msgstr "ajouter un agent" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "Ajoutez un environnement dans les Paramètres avant de créer un espace de travail cloud" +msgid "Add Another" +msgstr "Ajouter une autre" + msgid "Add another account, or disconnect one you no longer use." msgstr "Connectez un autre compte, ou déconnectez-en un que vous n'utilisez plus." @@ -2136,6 +2145,9 @@ msgstr "Ajouter une description" msgid "Add description..." msgstr "Ajouter une description..." +msgid "Add Environment Variable" +msgstr "Ajouter une variable d’environnement" + msgid "Add extension" msgstr "Ajouter l'extension" @@ -2173,6 +2185,9 @@ msgstr "Ajouter d’autres personnes…" msgid "Add one from the menu in the sidebar to get started." msgstr "Ajoutez-en un depuis le menu de la barre latérale pour commencer." +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "Ajoutez une ou plusieurs variables d’environnement. Vous pouvez aussi glisser-déposer un fichier .env." + msgid "Add people" msgstr "Ajouter des personnes" @@ -2284,9 +2299,18 @@ msgstr "{added} ajouté" msgid "Added {added} files to {where}" msgstr "{added} fichiers ajoutés à {where}" +msgid "Added {addedOn}" +msgstr "Ajoutée le {addedOn}" + msgid "Added {bought} GB-hours." msgstr "{bought} Go-heures ajoutées." +msgid "Added {count} environment variables" +msgstr "{count} variables d’environnement ajoutées" + +msgid "Added {key}" +msgstr "{key} ajoutée" + msgid "Added 1 file to {where}" msgstr "1 fichier ajouté à {where}" @@ -2781,6 +2805,9 @@ msgstr "Sachez toujours quel agent a besoin de vous, grâce à des notifications msgid "An agent completes multi-file changes end to end." msgstr "Un agent mène des changements multi-fichiers de bout en bout." +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "Un agent configure cet environnement dans un espace de travail cloud (environ 20 minutes ou plus) : il installe les dépendances, écrit la configuration et demande les secrets nécessaires. Vous pouvez l’interrompre à tout moment ou reprendre la main dans l’espace de travail pour terminer vous-même." + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "Un agent écrit des fonctions et des fichiers entiers pendant qu'un humain surveille chaque étape et approuve chaque commande. Un agent, un humain. Plus rapide, mais toujours en série." @@ -4381,6 +4408,9 @@ msgstr "Point de contrôle · avant le refactor du tooltip" msgid "Checkpoint saved {0}" msgstr "Point de contrôle enregistré {0}" +msgid "Checkpoint saved to {name}" +msgstr "Point de contrôle enregistré dans {name}" + msgid "Checks" msgstr "Vérifications" @@ -4622,6 +4652,9 @@ msgstr "Cliquez ici si la redirection n'a pas lieu" msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "Cliquez sur le bouton « ↑ update » pour afficher la confirmation avant mise à jour" +msgid "Click to copy" +msgstr "Cliquer pour copier" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "Cliquez pour copier l'ID de session (reprenez avec `claude --resume `)." @@ -5816,6 +5849,9 @@ msgstr "Impossible de copier le lien" msgid "Could not create cloud workspace" msgstr "Impossible de créer l'espace de travail cloud" +msgid "Could not create environment" +msgstr "Impossible de créer l’environnement" + msgid "Could not create project" msgstr "Impossible de créer le projet" @@ -7407,6 +7443,9 @@ msgstr "Abandonner les modifications ?" msgid "Discard recording" msgstr "Supprimer l'enregistrement" +msgid "Discard unsaved changes?" +msgstr "Abandonner les modifications non enregistrées ?" + msgid "Discarded" msgstr "Abandonnées" @@ -7812,6 +7851,9 @@ msgstr "{name} ×{tier} obtenu" msgid "Edit" msgstr "Modifier" +msgid "Edit {selectedName}" +msgstr "Modifier {selectedName}" + msgid "Edit Channel Name" msgstr "Modifier le nom du canal" @@ -7824,8 +7866,8 @@ msgstr "Modifier la description" msgid "Edit Description" msgstr "Modifier la description" -msgid "Edit environment" -msgstr "Modifier l'environnement" +msgid "Edit Environment Variable" +msgstr "Modifier la variable d’environnement" msgid "Edit files without asking; ask before commands" msgstr "Modifier les fichiers sans demander ; demander avant les commandes" @@ -8016,6 +8058,9 @@ msgstr "Saisissez un nombre entier" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "Saisissez un nombre entier de {minHours} à {maxHours} Go-heures." +msgid "Enter new value" +msgstr "Saisir une nouvelle valeur" + msgid "Enter this code when OpenAI asks for it:" msgstr "Saisissez ce code quand OpenAI le demande :" @@ -8046,6 +8091,9 @@ msgstr "La préparation des environnements, les tests instables et la plomberie msgid "Environment Variables" msgstr "Variables d'environnement" +msgid "Environment's size" +msgstr "Taille de l’environnement" + msgid "Environments" msgstr "Environnements" @@ -8477,6 +8525,9 @@ msgstr "Échec de la suppression du compte" msgid "Failed to delete automation" msgstr "Impossible de supprimer l'automatisation" +msgid "Failed to delete environment variable" +msgstr "Impossible de supprimer la variable d’environnement" + msgid "Failed to delete host" msgstr "Impossible de supprimer l’hôte" @@ -8595,6 +8646,9 @@ msgstr "Échec de la publication de la réponse" msgid "Failed to push branch" msgstr "Échec du push de la branche" +msgid "Failed to read file." +msgstr "Impossible de lire le fichier." + msgid "Failed to record page version" msgstr "Échec de l'enregistrement de la version de la page" @@ -8688,6 +8742,9 @@ msgstr "Échec de l'exécution de la commande de l'espace de travail" msgid "Failed to save" msgstr "Échec de l'enregistrement" +msgid "Failed to save environment variables" +msgstr "Impossible d’enregistrer les variables d’environnement" + msgid "Failed to save installation. Please try again." msgstr "Échec de l'enregistrement de l'installation. Veuillez réessayer." @@ -8754,6 +8811,9 @@ msgstr "Échec de la mise à jour de l'avatar" msgid "Failed to update branch prefix" msgstr "Échec de la mise à jour du préfixe de branche" +msgid "Failed to update environment variable" +msgstr "Impossible de mettre à jour la variable d’environnement" + msgid "Failed to update hooks" msgstr "Échec de la mise à jour des hooks" @@ -8898,6 +8958,9 @@ msgstr "Mode d'ouverture des fichiers" msgid "File opens when the workspace wakes up" msgstr "Le fichier s’ouvre au réveil de l’espace de travail" +msgid "File too large. Maximum size is 256 KB." +msgstr "Fichier trop volumineux. Taille maximale : 256 Ko." + msgid "File viewer" msgstr "Visionneuse de fichiers" @@ -10195,6 +10258,9 @@ msgstr "Usurpation d'identité" msgid "Import" msgstr "Importer" +msgid "Import .env" +msgstr "Importer un .env" + msgid "import a folder" msgstr "importer un dossier" @@ -10936,6 +11002,9 @@ msgstr "Nouveau fichier conservé, il a changé après sa création" msgid "Kept the new folder because it is no longer empty" msgstr "Nouveau dossier conservé, il n'est plus vide" +msgid "Key" +msgstr "Clé" + msgid "Key dates" msgstr "Dates clés" @@ -11081,6 +11150,9 @@ msgstr "Vu pour la dernière fois : {lastSeen}" msgid "Last updated" msgstr "Dernière mise à jour" +msgid "Last Updated" +msgstr "Dernière mise à jour" + msgid "Last updated on {date}" msgstr "Dernière mise à jour le {date}" @@ -11671,9 +11743,6 @@ msgstr "Ressources de la machine" msgid "Machine size" msgstr "Taille de la machine" -msgid "Machine size: {label}" -msgstr "Taille de la machine : {label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "Des espaces de travail cloud, détachés de toute machine, qui démarrent en quelques secondes et se partagent avec vos coéquipiers." @@ -11731,6 +11800,9 @@ msgstr "Gérer les comptes…" msgid "Manage billing" msgstr "Gérer la facturation" +msgid "Manage environment" +msgstr "Gérer l’environnement" + msgid "Manage environments" msgstr "Gérer les environnements" @@ -12358,6 +12430,10 @@ msgstr "Machiniste mystère" msgid "Name" msgstr "Nom" +msgctxt "sort order" +msgid "Name" +msgstr "Nom" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "Un nom et un slug compatible avec les URL. Les deux peuvent être modifiés plus tard." @@ -12708,6 +12784,9 @@ msgstr "Aucun espace de travail actif" msgid "No agent" msgstr "Aucun agent" +msgid "No agent is available to set up the environment" +msgstr "Aucun agent n’est disponible pour configurer l’environnement" + msgid "No agent is configured on this host" msgstr "Aucun agent n'est configuré sur cet hôte" @@ -12856,6 +12935,9 @@ msgstr "Aucun téléchargement pour l'instant" msgid "No emoji found" msgstr "Aucun emoji trouvé" +msgid "No environment variables yet" +msgstr "Aucune variable d’environnement pour l’instant" + msgid "No environments available" msgstr "Aucun environnement disponible" @@ -13012,6 +13094,9 @@ msgstr "Aucune pull request correspondante" msgid "No matching tasks" msgstr "Aucune tâche correspondante" +msgid "No matching variables" +msgstr "Aucune variable correspondante" + msgid "No MCP servers found" msgstr "Aucun serveur MCP trouvé" @@ -13319,8 +13404,8 @@ msgstr "Aucun projet v1 trouvé sur cet appareil." msgid "No v1 terminal scripts found." msgstr "Aucun script de terminal v1 trouvé." -msgid "No variables set yet." -msgstr "Aucune variable définie pour l'instant." +msgid "No valid environment variables found in file" +msgstr "Aucune variable d’environnement valide trouvée dans le fichier" msgid "No versions yet" msgstr "Aucune version pour l'instant" @@ -13717,6 +13802,9 @@ msgstr "Un plugin. Tous les agents de code." msgid "One step left" msgstr "Plus qu'une étape" +msgid "One variable can't be saved. See the highlighted row" +msgstr "Une variable ne peut pas être enregistrée. Voir la ligne en surbrillance" + msgid "online" msgstr "en ligne" @@ -14372,6 +14460,9 @@ msgstr "Facultatif. Nous aide à savoir ce qui fonctionne." msgid "Options" msgstr "Options" +msgid "or paste .env contents in Key input" +msgstr "ou collez le contenu d’un .env dans le champ Clé" + msgid "Orange" msgstr "Orange" @@ -14402,6 +14493,9 @@ msgstr "Organisation {id}" msgid "Organization created successfully!" msgstr "Organisation créée avec succès !" +msgid "Organization default ({defaultName})" +msgstr "Par défaut de l’organisation ({defaultName})" + msgid "Organization deleted" msgstr "Organisation supprimée" @@ -15062,8 +15156,8 @@ msgstr "Choisissez le nouveau dossier du projet sur {hostName}." msgid "Pick the project worktree folder on {hostName}." msgstr "Choisissez le dossier des worktrees du projet sur {hostName}." -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "Choisissez les dépôts qu'il récupère. Un agent sur cette machine détermine quoi installer et le fait tourner dans le cloud." +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "Choisissez les dépôts qu’il récupère. Un agent dans un espace de travail cloud détermine ce qu’il faut installer et le fait fonctionner." msgid "Pick the worktree folder on {hostName}." msgstr "Choisissez le dossier des worktrees sur {hostName}." @@ -15167,6 +15261,9 @@ msgstr "Veuillez sélectionner une organisation" msgid "Please try again, or restart Paradev on that device." msgstr "Réessayez ou redémarrez Paradev sur cet appareil." +msgid "Please upload a valid .env file." +msgstr "Veuillez importer un fichier .env valide." + msgid "Plugin" msgstr "Plugin" @@ -17321,6 +17418,9 @@ msgstr "Enregistrer" msgid "Save & create workspace" msgstr "Enregistrer et créer l'espace de travail" +msgid "Save a checkpoint to {name}?" +msgstr "Enregistrer un point de contrôle dans {name} ?" + msgid "Save All" msgstr "Tout enregistrer" @@ -17333,6 +17433,9 @@ msgstr "Enregistrer comme vue" msgid "Save Changes" msgstr "Enregistrer les modifications" +msgid "Save checkpoint" +msgstr "Enregistrer un point de contrôle" + msgid "Save edits" msgstr "Enregistrer les modifications" @@ -17373,9 +17476,21 @@ msgstr "Enregistré" msgid "Saved \"{0}\" as an environment" msgstr "« {0} » enregistré comme environnement" +msgid "Saved {name}" +msgstr "{name} enregistré" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "{name} enregistré, mais son espace de travail de configuration n’a pas pu démarrer : {reason}" + msgid "Saved to Downloads" msgstr "Enregistré dans Téléchargements" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "Enregistre cet espace de travail tel qu’il est, avec tout ce qui y est installé. Les nouveaux espaces de travail de {name} partiront de ce point de contrôle. L’espace de travail s’arrête un instant pendant l’enregistrement." + +msgid "Saving a checkpoint to {name}..." +msgstr "Enregistrement d’un point de contrôle dans {name}..." + msgid "Saving as an environment..." msgstr "Enregistrement comme environnement..." @@ -17810,9 +17925,6 @@ msgstr "Sélectionnez un agent" msgid "Select an editor from the dropdown" msgstr "Sélectionnez un éditeur dans la liste déroulante" -msgid "Select an environment" -msgstr "Sélectionnez un environnement" - msgid "Select an organization" msgstr "Sélectionnez une organisation" @@ -17993,6 +18105,12 @@ msgstr "Envoi…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "Envoie {0} caractères de contexte du terminal (environ {1} tokens) à {2}." +msgid "Sensitive" +msgstr "Sensible" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "Les valeurs sensibles sont chiffrées et ne peuvent plus être affichées après l’enregistrement." + msgid "Sent" msgstr "Envoyée" @@ -18068,9 +18186,6 @@ msgstr "Sessions" msgid "Sessions · top {0} by cost" msgstr "Sessions · top {0} par coût" -msgid "Set" -msgstr "Définie" - msgid "Set a notification schedule" msgstr "Définir des horaires de notifications" @@ -18113,6 +18228,9 @@ msgstr "Configurer un hôte via SSH" msgid "Set up an automation" msgstr "Configurer une automatisation" +msgid "Set up Environment" +msgstr "Configurer l’environnement" + msgid "Set up once" msgstr "Configurez une fois" @@ -18666,9 +18784,6 @@ msgstr "Six niveaux d'autonomie de l'usine" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "Six niveaux d'autonomie de l'usine, les portes qui les séparent, et notre prévision de ce que 2026 nous permettra d'atteindre. Écrit dès maintenant pour que vous puissiez nous noter plus tard." -msgid "size" -msgstr "Taille" - msgid "Size" msgstr "Taille" @@ -18693,6 +18808,9 @@ msgstr "Teinte de peau" msgid "Skip" msgstr "Passer" +msgid "Skip & save" +msgstr "Passer et enregistrer" + msgid "Skip All" msgstr "Tout ignorer" @@ -19093,6 +19211,9 @@ msgstr "Démarrer une nouvelle discussion" msgid "Start a session" msgstr "Démarrer une session" +msgid "Start agent" +msgstr "Démarrer l’agent" + msgid "Start agents on events or a schedule" msgstr "Lancez des agents sur événement ou selon une planification" @@ -21292,6 +21413,10 @@ msgstr "Deux mains" msgid "Type" msgstr "Type" +msgctxt "sort order" +msgid "Type" +msgstr "Type" + msgid "Type @linear in any prompt." msgstr "Tapez @linear dans n'importe quel prompt." @@ -21665,6 +21790,9 @@ msgstr "Mettez à jour le service hôte sur les deux ordinateurs, puis réessaye msgid "Update the host service on this device and try again." msgstr "Mettez à jour le service hôte sur cet appareil, puis réessayez." +msgid "Update the value for <0>{key}" +msgstr "Modifiez la valeur de <0>{key}" + msgid "Update this host to message subagents" msgstr "Mettez à jour cet hôte pour envoyer des messages aux sous-agents" @@ -21681,6 +21809,9 @@ msgstr "Mis à jour {0}" msgid "Updated {date}" msgstr "Mis à jour le {date}" +msgid "Updated {key}" +msgstr "{key} mise à jour" + msgid "Updated {updatedRelative}" msgstr "Mis à jour {updatedRelative}" @@ -21899,6 +22030,9 @@ msgstr "user@hôte, ssh://user@hôte:2222 ou un alias de configuration ssh" msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectId ne correspond pas au projet de l'espace de travail" +msgid "Value" +msgstr "Valeur" + msgid "Variables" msgstr "Variables" @@ -22892,6 +23026,9 @@ msgstr "Vous n'avez pas accès à ce terminal." msgid "You don't have permission to remove this member" msgstr "Vous n'avez pas la permission de retirer ce membre" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "Vous avez des variables d’environnement non enregistrées. Voulez-vous vraiment fermer ?" + msgid "You install and connect once per account." msgstr "Vous installez et connectez une seule fois par compte." diff --git a/packages/i18n/locales/id/messages.po b/packages/i18n/locales/id/messages.po index d445eef47e4..fa30adb4f32 100644 --- a/packages/i18n/locales/id/messages.po +++ b/packages/i18n/locales/id/messages.po @@ -984,6 +984,9 @@ msgstr "{count} host menjalankan layanan host yang lebih lama dari aplikasi ini" msgid "{count} selected" msgstr "{count} dipilih" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "{count} variabel tidak dapat disimpan. Lihat baris yang disorot" + msgid "{count}/day" msgstr "{count}/hari" @@ -1132,6 +1135,9 @@ msgstr "{lines, plural, other {# baris}}" msgid "{localHostName} (this device)" msgstr "{localHostName} (perangkat ini)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize} (tidak termasuk paket Anda)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2109,6 +2115,9 @@ msgstr "menambah agen" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "Tambahkan environment di Pengaturan sebelum membuat workspace cloud" +msgid "Add Another" +msgstr "Tambah lagi" + msgid "Add another account, or disconnect one you no longer use." msgstr "Hubungkan akun lain, atau putuskan yang tidak lagi kamu pakai." @@ -2136,6 +2145,9 @@ msgstr "Tambahkan Deskripsi" msgid "Add description..." msgstr "Tambah deskripsi..." +msgid "Add Environment Variable" +msgstr "Tambah variabel environment" + msgid "Add extension" msgstr "Tambahkan ekstensi" @@ -2173,6 +2185,9 @@ msgstr "Tambah lagi…" msgid "Add one from the menu in the sidebar to get started." msgstr "Tambahkan satu dari menu di sidebar untuk memulai." +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "Tambahkan satu atau beberapa variabel environment. Anda juga bisa menyeret dan melepas file .env." + msgid "Add people" msgstr "Tambah orang" @@ -2284,9 +2299,18 @@ msgstr "{added} ditambahkan" msgid "Added {added} files to {where}" msgstr "Menambahkan {added} file ke {where}" +msgid "Added {addedOn}" +msgstr "Ditambahkan {addedOn}" + msgid "Added {bought} GB-hours." msgstr "{bought} GB-jam ditambahkan." +msgid "Added {count} environment variables" +msgstr "{count} variabel environment ditambahkan" + +msgid "Added {key}" +msgstr "{key} ditambahkan" + msgid "Added 1 file to {where}" msgstr "Menambahkan 1 file ke {where}" @@ -2781,6 +2805,9 @@ msgstr "Selalu tahu agen mana yang membutuhkan Anda, dengan notifikasi yang lang msgid "An agent completes multi-file changes end to end." msgstr "Agen menyelesaikan perubahan lintas file dari awal sampai akhir." +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "Agen menyiapkan environment ini di workspace cloud (sekitar 20 menit atau lebih): memasang dependensi, menulis konfigurasi penyiapan, dan meminta secret yang diperlukan. Hentikan kapan saja, atau ambil alih di workspace untuk menyelesaikan penyiapan sendiri." + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "Agen menulis fungsi dan file utuh sementara manusia mengawasi tiap langkah dan menyetujui tiap perintah. Satu agen, satu manusia. Lebih cepat, tapi tetap berurutan." @@ -4381,6 +4408,9 @@ msgstr "Checkpoint · sebelum refactor tooltip" msgid "Checkpoint saved {0}" msgstr "Checkpoint tersimpan {0}" +msgid "Checkpoint saved to {name}" +msgstr "Checkpoint disimpan ke {name}" + msgid "Checks" msgstr "Check" @@ -4622,6 +4652,9 @@ msgstr "Klik di sini kalau tidak dialihkan" msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "Klik tombol “↑ update” untuk melihat konfirmasi sebelum pembaruan" +msgid "Click to copy" +msgstr "Klik untuk menyalin" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "Klik untuk menyalin ID sesi (lanjutkan dengan `claude --resume `)." @@ -5816,6 +5849,9 @@ msgstr "Tidak bisa menyalin tautan" msgid "Could not create cloud workspace" msgstr "Tidak bisa membuat workspace cloud" +msgid "Could not create environment" +msgstr "Tidak dapat membuat lingkungan" + msgid "Could not create project" msgstr "Tidak bisa membuat proyek" @@ -7407,6 +7443,9 @@ msgstr "Buang perubahan?" msgid "Discard recording" msgstr "Buang rekaman" +msgid "Discard unsaved changes?" +msgstr "Buang perubahan yang belum disimpan?" + msgid "Discarded" msgstr "Dibuang" @@ -7812,6 +7851,9 @@ msgstr "{name} ×{tier} diraih" msgid "Edit" msgstr "Edit" +msgid "Edit {selectedName}" +msgstr "Edit {selectedName}" + msgid "Edit Channel Name" msgstr "Edit Nama Saluran" @@ -7824,8 +7866,8 @@ msgstr "Edit deskripsi" msgid "Edit Description" msgstr "Edit Deskripsi" -msgid "Edit environment" -msgstr "Edit environment" +msgid "Edit Environment Variable" +msgstr "Edit variabel environment" msgid "Edit files without asking; ask before commands" msgstr "Edit file tanpa bertanya; tanya sebelum perintah" @@ -8016,6 +8058,9 @@ msgstr "Masukkan bilangan bulat" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "Masukkan bilangan bulat dari {minHours} sampai {maxHours} GB-jam." +msgid "Enter new value" +msgstr "Masukkan nilai baru" + msgid "Enter this code when OpenAI asks for it:" msgstr "Masukkan kode ini saat OpenAI memintanya:" @@ -8046,6 +8091,9 @@ msgstr "Penyiapan environment, tes flaky, dan urusan kredensial — mode kegagal msgid "Environment Variables" msgstr "Variabel Environment" +msgid "Environment's size" +msgstr "Ukuran lingkungan" + msgid "Environments" msgstr "Environment" @@ -8477,6 +8525,9 @@ msgstr "Gagal menghapus akun" msgid "Failed to delete automation" msgstr "Gagal menghapus otomatisasi" +msgid "Failed to delete environment variable" +msgstr "Gagal menghapus variabel environment" + msgid "Failed to delete host" msgstr "Gagal menghapus host" @@ -8595,6 +8646,9 @@ msgstr "Gagal mengirim balasan" msgid "Failed to push branch" msgstr "Gagal mem-push branch" +msgid "Failed to read file." +msgstr "Gagal membaca file." + msgid "Failed to record page version" msgstr "Gagal mencatat versi halaman" @@ -8688,6 +8742,9 @@ msgstr "Gagal menjalankan perintah workspace" msgid "Failed to save" msgstr "Gagal menyimpan" +msgid "Failed to save environment variables" +msgstr "Gagal menyimpan variabel environment" + msgid "Failed to save installation. Please try again." msgstr "Gagal menyimpan instalasi. Silakan coba lagi." @@ -8754,6 +8811,9 @@ msgstr "Gagal memperbarui avatar" msgid "Failed to update branch prefix" msgstr "Gagal memperbarui prefix branch" +msgid "Failed to update environment variable" +msgstr "Gagal memperbarui variabel environment" + msgid "Failed to update hooks" msgstr "Gagal memperbarui hook" @@ -8898,6 +8958,9 @@ msgstr "Mode buka file" msgid "File opens when the workspace wakes up" msgstr "File terbuka saat workspace bangun" +msgid "File too large. Maximum size is 256 KB." +msgstr "File terlalu besar. Ukuran maksimum 256 KB." + msgid "File viewer" msgstr "Penampil file" @@ -10195,6 +10258,9 @@ msgstr "Menyamar sebagai orang lain" msgid "Import" msgstr "Impor" +msgid "Import .env" +msgstr "Impor .env" + msgid "import a folder" msgstr "mengimpor folder" @@ -10936,6 +11002,9 @@ msgstr "File baru dipertahankan, isinya berubah setelah dibuat" msgid "Kept the new folder because it is no longer empty" msgstr "Folder baru dipertahankan, sudah tidak kosong" +msgid "Key" +msgstr "Kunci" + msgid "Key dates" msgstr "Tanggal penting" @@ -11081,6 +11150,9 @@ msgstr "Terakhir terlihat: {lastSeen}" msgid "Last updated" msgstr "Terakhir diperbarui" +msgid "Last Updated" +msgstr "Terakhir diperbarui" + msgid "Last updated on {date}" msgstr "Terakhir diperbarui pada {date}" @@ -11671,9 +11743,6 @@ msgstr "Sumber daya mesin" msgid "Machine size" msgstr "Ukuran mesin" -msgid "Machine size: {label}" -msgstr "Ukuran mesin: {label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "Workspace cloud yang tidak terikat mesin, siap dalam hitungan detik dan bisa dibagikan ke rekan tim." @@ -11731,6 +11800,9 @@ msgstr "Kelola akun…" msgid "Manage billing" msgstr "Kelola penagihan" +msgid "Manage environment" +msgstr "Kelola environment" + msgid "Manage environments" msgstr "Kelola environment" @@ -12358,6 +12430,10 @@ msgstr "Masinis Misterius" msgid "Name" msgstr "Nama" +msgctxt "sort order" +msgid "Name" +msgstr "Nama" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "Nama dan slug yang ramah URL. Keduanya bisa diubah nanti." @@ -12708,6 +12784,9 @@ msgstr "Tidak ada workspace aktif" msgid "No agent" msgstr "Tanpa agen" +msgid "No agent is available to set up the environment" +msgstr "Tidak ada agen yang tersedia untuk menyiapkan environment" + msgid "No agent is configured on this host" msgstr "Tidak ada agen yang dikonfigurasi di host ini" @@ -12856,6 +12935,9 @@ msgstr "Belum ada unduhan" msgid "No emoji found" msgstr "Emoji tidak ditemukan" +msgid "No environment variables yet" +msgstr "Belum ada variabel environment" + msgid "No environments available" msgstr "Tidak ada environment yang tersedia" @@ -13012,6 +13094,9 @@ msgstr "Tidak ada pull request yang cocok" msgid "No matching tasks" msgstr "Tidak ada tugas yang cocok" +msgid "No matching variables" +msgstr "Tidak ada variabel yang cocok" + msgid "No MCP servers found" msgstr "Tidak ada server MCP" @@ -13319,8 +13404,8 @@ msgstr "Tidak ada proyek v1 di perangkat ini." msgid "No v1 terminal scripts found." msgstr "Tidak ada skrip terminal v1." -msgid "No variables set yet." -msgstr "Belum ada variabel yang diatur." +msgid "No valid environment variables found in file" +msgstr "Tidak ada variabel environment yang valid di file" msgid "No versions yet" msgstr "Belum ada versi" @@ -13717,6 +13802,9 @@ msgstr "Satu plugin. Setiap agen coding." msgid "One step left" msgstr "Tinggal satu langkah" +msgid "One variable can't be saved. See the highlighted row" +msgstr "Satu variabel tidak dapat disimpan. Lihat baris yang disorot" + msgid "online" msgstr "online" @@ -14372,6 +14460,9 @@ msgstr "Opsional. Membantu kami mengetahui apa yang berhasil." msgid "Options" msgstr "Opsi" +msgid "or paste .env contents in Key input" +msgstr "atau tempel isi .env di kolom Kunci" + msgid "Orange" msgstr "Oranye" @@ -14402,6 +14493,9 @@ msgstr "Organisasi {id}" msgid "Organization created successfully!" msgstr "Organisasi berhasil dibuat!" +msgid "Organization default ({defaultName})" +msgstr "Bawaan organisasi ({defaultName})" + msgid "Organization deleted" msgstr "Organisasi dihapus" @@ -15062,8 +15156,8 @@ msgstr "Pilih folder proyek yang baru di {hostName}." msgid "Pick the project worktree folder on {hostName}." msgstr "Pilih folder worktree proyek di {hostName}." -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "Pilih repositori yang diambilnya. Agen di mesin ini mencari tahu apa yang perlu dipasang dan menjalankannya di cloud." +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "Pilih repositori yang di-checkout. Agen di workspace cloud mencari tahu apa yang perlu dipasang dan menjalankannya." msgid "Pick the worktree folder on {hostName}." msgstr "Pilih folder worktree di {hostName}." @@ -15167,6 +15261,9 @@ msgstr "Silakan pilih sebuah organisasi" msgid "Please try again, or restart Paradev on that device." msgstr "Coba lagi, atau mulai ulang Paradev di perangkat tersebut." +msgid "Please upload a valid .env file." +msgstr "Unggah file .env yang valid." + msgid "Plugin" msgstr "Plugin" @@ -17321,6 +17418,9 @@ msgstr "Simpan" msgid "Save & create workspace" msgstr "Simpan & buat workspace" +msgid "Save a checkpoint to {name}?" +msgstr "Simpan checkpoint ke {name}?" + msgid "Save All" msgstr "Simpan Semua" @@ -17333,6 +17433,9 @@ msgstr "Simpan sebagai tampilan" msgid "Save Changes" msgstr "Simpan Perubahan" +msgid "Save checkpoint" +msgstr "Simpan checkpoint" + msgid "Save edits" msgstr "Simpan suntingan" @@ -17373,9 +17476,21 @@ msgstr "Tersimpan" msgid "Saved \"{0}\" as an environment" msgstr "\"{0}\" disimpan sebagai environment" +msgid "Saved {name}" +msgstr "{name} disimpan" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "{name} disimpan, tetapi workspace penyiapannya tidak dapat dimulai: {reason}" + msgid "Saved to Downloads" msgstr "Disimpan ke Downloads" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "Menyimpan workspace ini seperti sekarang, dengan semua yang terpasang di dalamnya. Workspace baru dari {name} akan dimulai dari checkpoint ini. Workspace berhenti sebentar saat menyimpan." + +msgid "Saving a checkpoint to {name}..." +msgstr "Menyimpan checkpoint ke {name}..." + msgid "Saving as an environment..." msgstr "Menyimpan sebagai lingkungan..." @@ -17810,9 +17925,6 @@ msgstr "Pilih agen" msgid "Select an editor from the dropdown" msgstr "Pilih editor dari dropdown" -msgid "Select an environment" -msgstr "Pilih lingkungan" - msgid "Select an organization" msgstr "Pilih sebuah organisasi" @@ -17993,6 +18105,12 @@ msgstr "Mengirim…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "Mengirim {0} karakter konteks terminal (sekitar {1} token) ke {2}." +msgid "Sensitive" +msgstr "Sensitif" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "Nilai sensitif dienkripsi dan tidak dapat ditampilkan setelah disimpan." + msgid "Sent" msgstr "Dikirim" @@ -18068,9 +18186,6 @@ msgstr "Sesi" msgid "Sessions · top {0} by cost" msgstr "Sesi · {0} teratas menurut biaya" -msgid "Set" -msgstr "Diatur" - msgid "Set a notification schedule" msgstr "Atur jadwal notifikasi" @@ -18113,6 +18228,9 @@ msgstr "Siapkan host lewat SSH" msgid "Set up an automation" msgstr "Siapkan otomatisasi" +msgid "Set up Environment" +msgstr "Siapkan lingkungan" + msgid "Set up once" msgstr "Atur sekali" @@ -18666,9 +18784,6 @@ msgstr "Enam level otonomi pabrik" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "Enam level otonomi pabrik, gerbang di antaranya, dan prakiraan kami soal sejauh mana 2026 membawa kita. Ditulis sekarang supaya Anda bisa menilai kami nanti." -msgid "size" -msgstr "Ukuran" - msgid "Size" msgstr "Ukuran" @@ -18693,6 +18808,9 @@ msgstr "Warna Kulit" msgid "Skip" msgstr "Lewati" +msgid "Skip & save" +msgstr "Lewati & simpan" + msgid "Skip All" msgstr "Lewati Semua" @@ -19093,6 +19211,9 @@ msgstr "Mulai chat baru" msgid "Start a session" msgstr "Mulai sesi" +msgid "Start agent" +msgstr "Mulai agen" + msgid "Start agents on events or a schedule" msgstr "Jalankan agen saat ada event atau sesuai jadwal" @@ -21292,6 +21413,10 @@ msgstr "Dua tangan" msgid "Type" msgstr "Tipe" +msgctxt "sort order" +msgid "Type" +msgstr "Jenis" + msgid "Type @linear in any prompt." msgstr "Ketik @linear di prompt mana pun." @@ -21665,6 +21790,9 @@ msgstr "Perbarui layanan host di kedua komputer, lalu coba lagi." msgid "Update the host service on this device and try again." msgstr "Perbarui layanan host di perangkat ini, lalu coba lagi." +msgid "Update the value for <0>{key}" +msgstr "Perbarui nilai untuk <0>{key}" + msgid "Update this host to message subagents" msgstr "Perbarui host ini untuk mengirim pesan ke subagen" @@ -21681,6 +21809,9 @@ msgstr "Diperbarui {0}" msgid "Updated {date}" msgstr "Diperbarui {date}" +msgid "Updated {key}" +msgstr "{key} diperbarui" + msgid "Updated {updatedRelative}" msgstr "Diperbarui {updatedRelative}" @@ -21899,6 +22030,9 @@ msgstr "user@host, ssh://user@host:2222, atau alias dari konfigurasi ssh" msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectId tidak cocok dengan proyek workspace" +msgid "Value" +msgstr "Nilai" + msgid "Variables" msgstr "Variabel" @@ -22892,6 +23026,9 @@ msgstr "Anda tidak punya akses ke terminal ini." msgid "You don't have permission to remove this member" msgstr "Anda tidak punya izin untuk menghapus anggota ini" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "Ada variabel environment yang belum disimpan. Yakin ingin menutup?" + msgid "You install and connect once per account." msgstr "Anda menginstal dan menghubungkan sekali per akun." diff --git a/packages/i18n/locales/it/messages.po b/packages/i18n/locales/it/messages.po index abdb3da4f9e..6ffe8f3bd48 100644 --- a/packages/i18n/locales/it/messages.po +++ b/packages/i18n/locales/it/messages.po @@ -984,6 +984,9 @@ msgstr "{count} host eseguono un servizio host più vecchio di questa app" msgid "{count} selected" msgstr "{count} selezionate" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "{count} variabili non possono essere salvate. Vedi le righe evidenziate" + msgid "{count}/day" msgstr "{count}/giorno" @@ -1132,6 +1135,9 @@ msgstr "{lines, plural, one {# riga} other {# righe}}" msgid "{localHostName} (this device)" msgstr "{localHostName} (questo dispositivo)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize} (non incluso nel tuo piano)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2109,6 +2115,9 @@ msgstr "aggiungere un agente" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "Aggiungi un ambiente nelle Impostazioni prima di creare un workspace cloud" +msgid "Add Another" +msgstr "Aggiungi un’altra" + msgid "Add another account, or disconnect one you no longer use." msgstr "Collega un altro account o scollega quello che non usi più." @@ -2136,6 +2145,9 @@ msgstr "Aggiungi descrizione" msgid "Add description..." msgstr "Aggiungi una descrizione..." +msgid "Add Environment Variable" +msgstr "Aggiungi variabile d’ambiente" + msgid "Add extension" msgstr "Aggiungi estensione" @@ -2173,6 +2185,9 @@ msgstr "Aggiungi altri…" msgid "Add one from the menu in the sidebar to get started." msgstr "Aggiungine uno dal menu nella barra laterale per iniziare." +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "Aggiungi una o più variabili d’ambiente. Puoi anche trascinare un file .env." + msgid "Add people" msgstr "Aggiungi persone" @@ -2284,9 +2299,18 @@ msgstr "{added} aggiunto" msgid "Added {added} files to {where}" msgstr "Aggiunti {added} file a {where}" +msgid "Added {addedOn}" +msgstr "Aggiunta il {addedOn}" + msgid "Added {bought} GB-hours." msgstr "Aggiunte {bought} GB-ore." +msgid "Added {count} environment variables" +msgstr "{count} variabili d’ambiente aggiunte" + +msgid "Added {key}" +msgstr "{key} aggiunta" + msgid "Added 1 file to {where}" msgstr "Aggiunto 1 file a {where}" @@ -2781,6 +2805,9 @@ msgstr "Sai sempre quale agente ha bisogno di te, con notifiche che portano drit msgid "An agent completes multi-file changes end to end." msgstr "Un agente completa modifiche su più file dall'inizio alla fine." +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "Un agente configura questo ambiente in un workspace cloud (circa 20 minuti o più): installa le dipendenze, scrive la configurazione e chiede i segreti necessari. Puoi interromperlo in qualsiasi momento o subentrare nel workspace per completare tu la configurazione." + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "Un agente scrive intere funzioni e interi file mentre un umano osserva ogni passaggio e approva ogni comando. Un agente, un umano. Più veloce, ma ancora seriale." @@ -4381,6 +4408,9 @@ msgstr "Checkpoint · prima del refactor dei tooltip" msgid "Checkpoint saved {0}" msgstr "Checkpoint salvato {0}" +msgid "Checkpoint saved to {name}" +msgstr "Checkpoint salvato in {name}" + msgid "Checks" msgstr "Controlli" @@ -4622,6 +4652,9 @@ msgstr "Clicca qui se non vieni reindirizzato" msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "Fai clic su «↑ update» per vedere la conferma prima dell’aggiornamento" +msgid "Click to copy" +msgstr "Clicca per copiare" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "Clicca per copiare l'ID della sessione (riprendi con `claude --resume `)." @@ -5816,6 +5849,9 @@ msgstr "Impossibile copiare il link" msgid "Could not create cloud workspace" msgstr "Impossibile creare il workspace cloud" +msgid "Could not create environment" +msgstr "Impossibile creare l’ambiente" + msgid "Could not create project" msgstr "Impossibile creare il progetto" @@ -7407,6 +7443,9 @@ msgstr "Scartare le modifiche?" msgid "Discard recording" msgstr "Scarta la registrazione" +msgid "Discard unsaved changes?" +msgstr "Scartare le modifiche non salvate?" + msgid "Discarded" msgstr "Scartate" @@ -7812,6 +7851,9 @@ msgstr "Hai ottenuto {name} ×{tier}" msgid "Edit" msgstr "Modifica" +msgid "Edit {selectedName}" +msgstr "Modifica {selectedName}" + msgid "Edit Channel Name" msgstr "Modifica nome del canale" @@ -7824,8 +7866,8 @@ msgstr "Modifica descrizione" msgid "Edit Description" msgstr "Modifica descrizione" -msgid "Edit environment" -msgstr "Modifica ambiente" +msgid "Edit Environment Variable" +msgstr "Modifica variabile d’ambiente" msgid "Edit files without asking; ask before commands" msgstr "Modifica i file senza chiedere; chiedi prima dei comandi" @@ -8016,6 +8058,9 @@ msgstr "Inserisci un numero intero" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "Inserisci un numero intero da {minHours} a {maxHours} GB-ore." +msgid "Enter new value" +msgstr "Inserisci un nuovo valore" + msgid "Enter this code when OpenAI asks for it:" msgstr "Inserisci questo codice quando OpenAI lo chiede:" @@ -8046,6 +8091,9 @@ msgstr "La preparazione dell'ambiente, i test instabili e la gestione delle cred msgid "Environment Variables" msgstr "Variabili d'ambiente" +msgid "Environment's size" +msgstr "Dimensione dell’ambiente" + msgid "Environments" msgstr "Ambienti" @@ -8477,6 +8525,9 @@ msgstr "Eliminazione dell'account non riuscita" msgid "Failed to delete automation" msgstr "Impossibile eliminare l'automazione" +msgid "Failed to delete environment variable" +msgstr "Impossibile eliminare la variabile d’ambiente" + msgid "Failed to delete host" msgstr "Impossibile eliminare l’host" @@ -8595,6 +8646,9 @@ msgstr "Impossibile pubblicare la risposta" msgid "Failed to push branch" msgstr "Push del branch non riuscito" +msgid "Failed to read file." +msgstr "Impossibile leggere il file." + msgid "Failed to record page version" msgstr "Registrazione della versione della pagina non riuscita" @@ -8688,6 +8742,9 @@ msgstr "Esecuzione del comando del workspace non riuscita" msgid "Failed to save" msgstr "Salvataggio non riuscito" +msgid "Failed to save environment variables" +msgstr "Impossibile salvare le variabili d’ambiente" + msgid "Failed to save installation. Please try again." msgstr "Salvataggio dell'installazione non riuscito. Riprova." @@ -8754,6 +8811,9 @@ msgstr "Aggiornamento dell'avatar non riuscito" msgid "Failed to update branch prefix" msgstr "Aggiornamento del prefisso dei branch non riuscito" +msgid "Failed to update environment variable" +msgstr "Impossibile aggiornare la variabile d’ambiente" + msgid "Failed to update hooks" msgstr "Aggiornamento degli hook non riuscito" @@ -8898,6 +8958,9 @@ msgstr "Modalità di apertura dei file" msgid "File opens when the workspace wakes up" msgstr "Il file si apre quando il workspace si riattiva" +msgid "File too large. Maximum size is 256 KB." +msgstr "File troppo grande. La dimensione massima è 256 KB." + msgid "File viewer" msgstr "Visualizzatore di file" @@ -10195,6 +10258,9 @@ msgstr "Si spaccia per qualcun altro" msgid "Import" msgstr "Importa" +msgid "Import .env" +msgstr "Importa .env" + msgid "import a folder" msgstr "importare una cartella" @@ -10936,6 +11002,9 @@ msgstr "Nuovo file mantenuto, è cambiato dopo la creazione" msgid "Kept the new folder because it is no longer empty" msgstr "Nuova cartella mantenuta, non è più vuota" +msgid "Key" +msgstr "Chiave" + msgid "Key dates" msgstr "Date principali" @@ -11081,6 +11150,9 @@ msgstr "Visto l'ultima volta: {lastSeen}" msgid "Last updated" msgstr "Ultimo aggiornamento" +msgid "Last Updated" +msgstr "Ultimo aggiornamento" + msgid "Last updated on {date}" msgstr "Ultimo aggiornamento il {date}" @@ -11671,9 +11743,6 @@ msgstr "Risorse della macchina" msgid "Machine size" msgstr "Dimensione della macchina" -msgid "Machine size: {label}" -msgstr "Dimensione della macchina: {label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "Workspace cloud slegati dalla macchina, pronti in pochi secondi e condivisibili con i colleghi." @@ -11731,6 +11800,9 @@ msgstr "Gestisci account…" msgid "Manage billing" msgstr "Gestisci fatturazione" +msgid "Manage environment" +msgstr "Gestisci ambiente" + msgid "Manage environments" msgstr "Gestisci ambienti" @@ -12358,6 +12430,10 @@ msgstr "Macchinista Misterioso" msgid "Name" msgstr "Nome" +msgctxt "sort order" +msgid "Name" +msgstr "Nome" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "Nome e uno slug adatto agli URL. Entrambi possono essere modificati in seguito." @@ -12708,6 +12784,9 @@ msgstr "Nessun workspace attivo" msgid "No agent" msgstr "Nessun agente" +msgid "No agent is available to set up the environment" +msgstr "Nessun agente disponibile per configurare l’ambiente" + msgid "No agent is configured on this host" msgstr "Nessun agente è configurato su questo host" @@ -12856,6 +12935,9 @@ msgstr "Ancora nessun download" msgid "No emoji found" msgstr "Nessuna emoji trovata" +msgid "No environment variables yet" +msgstr "Ancora nessuna variabile d’ambiente" + msgid "No environments available" msgstr "Nessun ambiente disponibile" @@ -13012,6 +13094,9 @@ msgstr "Nessuna pull request corrispondente" msgid "No matching tasks" msgstr "Nessun task corrispondente" +msgid "No matching variables" +msgstr "Nessuna variabile corrispondente" + msgid "No MCP servers found" msgstr "Nessun server MCP trovato" @@ -13319,8 +13404,8 @@ msgstr "Nessun progetto v1 trovato su questo dispositivo." msgid "No v1 terminal scripts found." msgstr "Nessuno script del terminale v1 trovato." -msgid "No variables set yet." -msgstr "Ancora nessuna variabile impostata." +msgid "No valid environment variables found in file" +msgstr "Nessuna variabile d’ambiente valida trovata nel file" msgid "No versions yet" msgstr "Ancora nessuna versione" @@ -13717,6 +13802,9 @@ msgstr "Un plugin. Ogni agente di coding." msgid "One step left" msgstr "Manca un passaggio" +msgid "One variable can't be saved. See the highlighted row" +msgstr "Una variabile non può essere salvata. Vedi la riga evidenziata" + msgid "online" msgstr "online" @@ -14372,6 +14460,9 @@ msgstr "Facoltativo. Ci aiuta a capire cosa funziona." msgid "Options" msgstr "Opzioni" +msgid "or paste .env contents in Key input" +msgstr "oppure incolla il contenuto di un .env nel campo Chiave" + msgid "Orange" msgstr "Arancione" @@ -14402,6 +14493,9 @@ msgstr "Organizzazione {id}" msgid "Organization created successfully!" msgstr "Organizzazione creata con successo!" +msgid "Organization default ({defaultName})" +msgstr "Predefinito dell’organizzazione ({defaultName})" + msgid "Organization deleted" msgstr "Organizzazione eliminata" @@ -15062,8 +15156,8 @@ msgstr "Scegli la nuova cartella del progetto su {hostName}." msgid "Pick the project worktree folder on {hostName}." msgstr "Scegli la cartella dei worktree del progetto su {hostName}." -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "Scegli i repository da recuperare. Un agente su questa macchina capisce cosa installare e lo fa funzionare nel cloud." +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "Scegli i repository da clonare. Un agente in un workspace cloud capisce cosa installare e lo fa funzionare." msgid "Pick the worktree folder on {hostName}." msgstr "Scegli la cartella dei worktree su {hostName}." @@ -15167,6 +15261,9 @@ msgstr "Seleziona un'organizzazione" msgid "Please try again, or restart Paradev on that device." msgstr "Riprova o riavvia Paradev su quel dispositivo." +msgid "Please upload a valid .env file." +msgstr "Carica un file .env valido." + msgid "Plugin" msgstr "Plugin" @@ -17321,6 +17418,9 @@ msgstr "Salva" msgid "Save & create workspace" msgstr "Salva e crea il workspace" +msgid "Save a checkpoint to {name}?" +msgstr "Salvare un checkpoint in {name}?" + msgid "Save All" msgstr "Salva tutto" @@ -17333,6 +17433,9 @@ msgstr "Salva come vista" msgid "Save Changes" msgstr "Salva modifiche" +msgid "Save checkpoint" +msgstr "Salva checkpoint" + msgid "Save edits" msgstr "Salva le modifiche" @@ -17373,9 +17476,21 @@ msgstr "Salvato" msgid "Saved \"{0}\" as an environment" msgstr "\"{0}\" salvato come ambiente" +msgid "Saved {name}" +msgstr "{name} salvato" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "{name} salvato, ma non è stato possibile avviare il workspace di configurazione: {reason}" + msgid "Saved to Downloads" msgstr "Salvata in Download" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "Salva questo workspace così com’è ora, con tutto ciò che vi è installato. I nuovi workspace da {name} partiranno da questo checkpoint. Il workspace si ferma per un momento durante il salvataggio." + +msgid "Saving a checkpoint to {name}..." +msgstr "Salvataggio di un checkpoint in {name}..." + msgid "Saving as an environment..." msgstr "Salvataggio come ambiente..." @@ -17810,9 +17925,6 @@ msgstr "Seleziona un agente" msgid "Select an editor from the dropdown" msgstr "Seleziona un editor dal menu a discesa" -msgid "Select an environment" -msgstr "Seleziona un ambiente" - msgid "Select an organization" msgstr "Seleziona un'organizzazione" @@ -17993,6 +18105,12 @@ msgstr "Invio…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "Invia {0} caratteri di contesto del terminale (circa {1} token) a {2}." +msgid "Sensitive" +msgstr "Sensibile" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "I valori sensibili sono cifrati e non possono essere mostrati dopo il salvataggio." + msgid "Sent" msgstr "Inviato" @@ -18068,9 +18186,6 @@ msgstr "Sessioni" msgid "Sessions · top {0} by cost" msgstr "Sessioni · prime {0} per costo" -msgid "Set" -msgstr "Impostata" - msgid "Set a notification schedule" msgstr "Imposta un orario delle notifiche" @@ -18113,6 +18228,9 @@ msgstr "Configura un host tramite SSH" msgid "Set up an automation" msgstr "Configura un’automazione" +msgid "Set up Environment" +msgstr "Configura ambiente" + msgid "Set up once" msgstr "Configura una volta" @@ -18666,9 +18784,6 @@ msgstr "Sei livelli di autonomia della fabbrica" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "Sei livelli di autonomia della fabbrica, i gate tra di essi e la nostra previsione su quanto lontano ci porterà il 2026. Messo per iscritto ora, così potrai valutarci dopo." -msgid "size" -msgstr "Dimensione" - msgid "Size" msgstr "Dimensione" @@ -18693,6 +18808,9 @@ msgstr "Tono della pelle" msgid "Skip" msgstr "Salta" +msgid "Skip & save" +msgstr "Salta e salva" + msgid "Skip All" msgstr "Salta tutto" @@ -19093,6 +19211,9 @@ msgstr "Avvia una nuova chat" msgid "Start a session" msgstr "Avvia una sessione" +msgid "Start agent" +msgstr "Avvia agente" + msgid "Start agents on events or a schedule" msgstr "Avvia agenti con eventi o secondo una pianificazione" @@ -21292,6 +21413,10 @@ msgstr "Due mani" msgid "Type" msgstr "Tipo" +msgctxt "sort order" +msgid "Type" +msgstr "Tipo" + msgid "Type @linear in any prompt." msgstr "Scrivi @linear in qualsiasi prompt." @@ -21665,6 +21790,9 @@ msgstr "Aggiorna il servizio host su entrambi i computer e riprova." msgid "Update the host service on this device and try again." msgstr "Aggiorna il servizio host su questo dispositivo e riprova." +msgid "Update the value for <0>{key}" +msgstr "Aggiorna il valore di <0>{key}" + msgid "Update this host to message subagents" msgstr "Aggiorna questo host per inviare messaggi ai sottoagenti" @@ -21681,6 +21809,9 @@ msgstr "Ultimo aggiornamento {0}" msgid "Updated {date}" msgstr "Aggiornato il {date}" +msgid "Updated {key}" +msgstr "{key} aggiornata" + msgid "Updated {updatedRelative}" msgstr "Aggiornata {updatedRelative}" @@ -21899,6 +22030,9 @@ msgstr "utente@host, ssh://utente@host:2222 o un alias della configurazione ssh" msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectId non corrisponde al progetto del workspace" +msgid "Value" +msgstr "Valore" + msgid "Variables" msgstr "Variabili" @@ -22892,6 +23026,9 @@ msgstr "Non hai accesso a questo terminale." msgid "You don't have permission to remove this member" msgstr "Non hai il permesso di rimuovere questo membro" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "Hai variabili d’ambiente non salvate. Vuoi davvero chiudere?" + msgid "You install and connect once per account." msgstr "Installi e colleghi una sola volta per account." diff --git a/packages/i18n/locales/ja/messages.po b/packages/i18n/locales/ja/messages.po index 77d8faa15fa..5f267c0bcc1 100644 --- a/packages/i18n/locales/ja/messages.po +++ b/packages/i18n/locales/ja/messages.po @@ -984,6 +984,9 @@ msgstr "{count}台のホストがこのアプリより古いホストサービ msgid "{count} selected" msgstr "{count}件を選択中" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "{count} 個の変数を保存できません。強調表示された行を確認してください" + msgid "{count}/day" msgstr "{count}/日" @@ -1132,6 +1135,9 @@ msgstr "{lines, plural, other {# 行}}" msgid "{localHostName} (this device)" msgstr "{localHostName}(このデバイス)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize}(ご利用のプランにはありません)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2109,6 +2115,9 @@ msgstr "エージェントを追加する" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "クラウドワークスペースを作成する前に、設定で環境を追加してください" +msgid "Add Another" +msgstr "さらに追加" + msgid "Add another account, or disconnect one you no longer use." msgstr "別のアカウントを接続するか、使わなくなったものを解除します。" @@ -2136,6 +2145,9 @@ msgstr "説明を追加" msgid "Add description..." msgstr "説明を追加..." +msgid "Add Environment Variable" +msgstr "環境変数を追加" + msgid "Add extension" msgstr "拡張機能を追加" @@ -2173,6 +2185,9 @@ msgstr "さらに追加…" msgid "Add one from the menu in the sidebar to get started." msgstr "サイドバーのメニューから追加して始めましょう。" +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "1 つ以上の環境変数を追加します。.env ファイルをドラッグ&ドロップすることもできます。" + msgid "Add people" msgstr "ユーザーを追加" @@ -2284,9 +2299,18 @@ msgstr "{added} を追加しました" msgid "Added {added} files to {where}" msgstr "{added}件のファイルを{where}に追加しました" +msgid "Added {addedOn}" +msgstr "{addedOn} に追加" + msgid "Added {bought} GB-hours." msgstr "{bought} GB 時間を追加しました。" +msgid "Added {count} environment variables" +msgstr "{count} 個の環境変数を追加しました" + +msgid "Added {key}" +msgstr "{key} を追加しました" + msgid "Added 1 file to {where}" msgstr "1件のファイルを{where}に追加しました" @@ -2781,6 +2805,9 @@ msgstr "どのエージェントがあなたを必要としているかが常に msgid "An agent completes multi-file changes end to end." msgstr "エージェントが複数ファイルにまたがる変更を最後までやり切る。" +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "エージェントがクラウドワークスペースでこの環境をセットアップします(20 分以上かかります)。依存関係のインストールやセットアップ設定の作成を行い、必要なシークレットを尋ねます。いつでも中断したり、ワークスペースで引き継いで自分でセットアップを完了したりできます。" + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "エージェントが関数やファイルをまるごと書き、人間は各ステップを見守りコマンドを1つずつ承認します。エージェント1体に人間1人。速くはなりますが、依然として直列です。" @@ -4381,6 +4408,9 @@ msgstr "チェックポイント · tooltipリファクタリング前" msgid "Checkpoint saved {0}" msgstr "チェックポイント保存 {0}" +msgid "Checkpoint saved to {name}" +msgstr "{name} にチェックポイントを保存しました" + msgid "Checks" msgstr "チェック" @@ -4622,6 +4652,9 @@ msgstr "リダイレクトされない場合はこちらをクリック" msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "「↑ update」ボタンをクリックすると更新前の確認が表示されます" +msgid "Click to copy" +msgstr "クリックしてコピー" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "クリックでセッションIDをコピーします(`claude --resume `で再開)。" @@ -5816,6 +5849,9 @@ msgstr "リンクをコピーできませんでした" msgid "Could not create cloud workspace" msgstr "クラウドワークスペースを作成できませんでした" +msgid "Could not create environment" +msgstr "環境を作成できませんでした" + msgid "Could not create project" msgstr "プロジェクトを作成できませんでした" @@ -7407,6 +7443,9 @@ msgstr "変更を破棄しますか?" msgid "Discard recording" msgstr "録音を破棄" +msgid "Discard unsaved changes?" +msgstr "保存していない変更を破棄しますか?" + msgid "Discarded" msgstr "破棄しました" @@ -7812,6 +7851,9 @@ msgstr "「{name}」×{tier} を獲得" msgid "Edit" msgstr "編集" +msgid "Edit {selectedName}" +msgstr "{selectedName} を編集" + msgid "Edit Channel Name" msgstr "チャンネル名を編集" @@ -7824,8 +7866,8 @@ msgstr "説明を編集" msgid "Edit Description" msgstr "説明を編集" -msgid "Edit environment" -msgstr "環境を編集" +msgid "Edit Environment Variable" +msgstr "環境変数を編集" msgid "Edit files without asking; ask before commands" msgstr "ファイルは確認なしで編集し、コマンドは事前に確認" @@ -8016,6 +8058,9 @@ msgstr "整数を入力" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "{minHours} から {maxHours} GB 時間までの整数を入力してください。" +msgid "Enter new value" +msgstr "新しい値を入力" + msgid "Enter this code when OpenAI asks for it:" msgstr "OpenAI に求められたら、このコードを入力してください:" @@ -8046,6 +8091,9 @@ msgstr "環境構築、不安定なテスト、認証情報の受け渡し。202 msgid "Environment Variables" msgstr "環境変数" +msgid "Environment's size" +msgstr "環境のサイズ" + msgid "Environments" msgstr "環境" @@ -8477,6 +8525,9 @@ msgstr "アカウントの削除に失敗しました" msgid "Failed to delete automation" msgstr "オートメーションを削除できませんでした" +msgid "Failed to delete environment variable" +msgstr "環境変数を削除できませんでした" + msgid "Failed to delete host" msgstr "ホストを削除できませんでした" @@ -8595,6 +8646,9 @@ msgstr "返信の投稿に失敗しました" msgid "Failed to push branch" msgstr "ブランチをプッシュできませんでした" +msgid "Failed to read file." +msgstr "ファイルを読み込めませんでした。" + msgid "Failed to record page version" msgstr "ページバージョンの記録に失敗しました" @@ -8688,6 +8742,9 @@ msgstr "ワークスペースコマンドの実行に失敗しました" msgid "Failed to save" msgstr "保存に失敗しました" +msgid "Failed to save environment variables" +msgstr "環境変数を保存できませんでした" + msgid "Failed to save installation. Please try again." msgstr "インストール情報を保存できませんでした。もう一度お試しください。" @@ -8754,6 +8811,9 @@ msgstr "アバターの更新に失敗しました" msgid "Failed to update branch prefix" msgstr "ブランチプレフィックスの更新に失敗しました" +msgid "Failed to update environment variable" +msgstr "環境変数を更新できませんでした" + msgid "Failed to update hooks" msgstr "フックの更新に失敗しました" @@ -8898,6 +8958,9 @@ msgstr "ファイルの開き方" msgid "File opens when the workspace wakes up" msgstr "ワークスペースが起動するとファイルが開きます" +msgid "File too large. Maximum size is 256 KB." +msgstr "ファイルが大きすぎます。最大 256 KB です。" + msgid "File viewer" msgstr "ファイルビューア" @@ -10195,6 +10258,9 @@ msgstr "他人へのなりすまし" msgid "Import" msgstr "インポート" +msgid "Import .env" +msgstr ".env をインポート" + msgid "import a folder" msgstr "フォルダをインポートする" @@ -10936,6 +11002,9 @@ msgstr "新しいファイルを保持しました、作成後に変更されて msgid "Kept the new folder because it is no longer empty" msgstr "新しいフォルダを保持しました、空ではなくなっています" +msgid "Key" +msgstr "キー" + msgid "Key dates" msgstr "主な日程" @@ -11081,6 +11150,9 @@ msgstr "最終確認: {lastSeen}" msgid "Last updated" msgstr "最終更新" +msgid "Last Updated" +msgstr "最終更新" + msgid "Last updated on {date}" msgstr "最終更新: {date}" @@ -11671,9 +11743,6 @@ msgstr "マシンリソース" msgid "Machine size" msgstr "マシンサイズ" -msgid "Machine size: {label}" -msgstr "マシンサイズ: {label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "マシンに縛られないクラウドワークスペース。数秒で立ち上がり、チームメイトと共有できます。" @@ -11731,6 +11800,9 @@ msgstr "アカウントを管理…" msgid "Manage billing" msgstr "請求を管理" +msgid "Manage environment" +msgstr "環境を管理" + msgid "Manage environments" msgstr "環境を管理" @@ -12358,6 +12430,10 @@ msgstr "謎の機械工" msgid "Name" msgstr "名前" +msgctxt "sort order" +msgid "Name" +msgstr "名前" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "名前とURLフレンドリーなスラッグ。どちらも後で変更できます。" @@ -12708,6 +12784,9 @@ msgstr "アクティブなワークスペースはありません" msgid "No agent" msgstr "エージェントなし" +msgid "No agent is available to set up the environment" +msgstr "環境をセットアップできるエージェントがありません" + msgid "No agent is configured on this host" msgstr "このホストにはエージェントが設定されていません" @@ -12856,6 +12935,9 @@ msgstr "ダウンロードはまだありません" msgid "No emoji found" msgstr "絵文字が見つかりません" +msgid "No environment variables yet" +msgstr "環境変数はまだありません" + msgid "No environments available" msgstr "利用可能な環境はありません" @@ -13012,6 +13094,9 @@ msgstr "一致するプルリクエストはありません" msgid "No matching tasks" msgstr "一致するタスクはありません" +msgid "No matching variables" +msgstr "一致する変数はありません" + msgid "No MCP servers found" msgstr "MCPサーバーが見つかりません" @@ -13319,8 +13404,8 @@ msgstr "このデバイスにv1プロジェクトが見つかりません。" msgid "No v1 terminal scripts found." msgstr "v1ターミナルスクリプトが見つかりません。" -msgid "No variables set yet." -msgstr "変数はまだ設定されていません。" +msgid "No valid environment variables found in file" +msgstr "ファイルに有効な環境変数が見つかりませんでした" msgid "No versions yet" msgstr "バージョンはまだありません" @@ -13717,6 +13802,9 @@ msgstr "ひとつのプラグインを、すべてのコーディングエージ msgid "One step left" msgstr "あと1ステップ" +msgid "One variable can't be saved. See the highlighted row" +msgstr "1 つの変数を保存できません。強調表示された行を確認してください" + msgid "online" msgstr "オンライン" @@ -14372,6 +14460,9 @@ msgstr "任意。効果的な施策を知るのに役立ちます。" msgid "Options" msgstr "オプション" +msgid "or paste .env contents in Key input" +msgstr "または .env の内容をキー欄に貼り付け" + msgid "Orange" msgstr "オレンジ" @@ -14402,6 +14493,9 @@ msgstr "組織 {id}" msgid "Organization created successfully!" msgstr "組織を作成しました!" +msgid "Organization default ({defaultName})" +msgstr "組織のデフォルト({defaultName})" + msgid "Organization deleted" msgstr "組織を削除しました" @@ -15062,8 +15156,8 @@ msgstr "{hostName}の新しいプロジェクトフォルダを選択してく msgid "Pick the project worktree folder on {hostName}." msgstr "{hostName}のプロジェクトのワークツリーフォルダを選択してください。" -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "チェックアウトするリポジトリを選んでください。このマシン上のエージェントが必要なものを判断し、クラウドで動く状態にします。" +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "チェックアウトするリポジトリを選択します。クラウドワークスペースのエージェントが、インストールが必要なものを判断して動作させます。" msgid "Pick the worktree folder on {hostName}." msgstr "{hostName}のワークツリーフォルダを選択してください。" @@ -15167,6 +15261,9 @@ msgstr "組織を選択してください" msgid "Please try again, or restart Paradev on that device." msgstr "もう一度試すか、そのデバイスで Paradev を再起動してください。" +msgid "Please upload a valid .env file." +msgstr "有効な .env ファイルをアップロードしてください。" + msgid "Plugin" msgstr "プラグイン" @@ -17321,6 +17418,9 @@ msgstr "保存" msgid "Save & create workspace" msgstr "保存してワークスペースを作成" +msgid "Save a checkpoint to {name}?" +msgstr "{name} にチェックポイントを保存しますか?" + msgid "Save All" msgstr "すべて保存" @@ -17333,6 +17433,9 @@ msgstr "ビューとして保存" msgid "Save Changes" msgstr "変更を保存" +msgid "Save checkpoint" +msgstr "チェックポイントを保存" + msgid "Save edits" msgstr "編集を保存" @@ -17373,9 +17476,21 @@ msgstr "保存済み" msgid "Saved \"{0}\" as an environment" msgstr "「{0}」を環境として保存しました" +msgid "Saved {name}" +msgstr "{name} を保存しました" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "{name} を保存しましたが、セットアップ用ワークスペースを開始できませんでした: {reason}" + msgid "Saved to Downloads" msgstr "ダウンロードフォルダに保存しました" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "このワークスペースを、インストール済みのものも含めて現在の状態で保存します。{name} から作成する新しいワークスペースはこのチェックポイントから始まります。保存中、ワークスペースは少しの間停止します。" + +msgid "Saving a checkpoint to {name}..." +msgstr "{name} にチェックポイントを保存中..." + msgid "Saving as an environment..." msgstr "環境として保存しています..." @@ -17810,9 +17925,6 @@ msgstr "エージェントを選択" msgid "Select an editor from the dropdown" msgstr "ドロップダウンからエディタを選択してください" -msgid "Select an environment" -msgstr "環境を選択してください" - msgid "Select an organization" msgstr "組織を選択" @@ -17993,6 +18105,12 @@ msgstr "送信中…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "ターミナルのコンテキスト {0} 文字(約 {1} トークン)を {2} に送信します。" +msgid "Sensitive" +msgstr "機密" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "機密値は暗号化され、保存後は表示できません。" + msgid "Sent" msgstr "送信日" @@ -18068,9 +18186,6 @@ msgstr "セッション" msgid "Sessions · top {0} by cost" msgstr "セッション · コスト上位{0}件" -msgid "Set" -msgstr "設定済み" - msgid "Set a notification schedule" msgstr "通知スケジュールを設定" @@ -18113,6 +18228,9 @@ msgstr "SSH でホストを設定" msgid "Set up an automation" msgstr "自動化を設定する" +msgid "Set up Environment" +msgstr "環境をセットアップ" + msgid "Set up once" msgstr "一度設定するだけ" @@ -18666,9 +18784,6 @@ msgstr "工場の自律性、6つのレベル" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "工場の自律性を6段階に分け、その間にあるゲートと、2026年にどこまで進むかの予測をまとめました。後から採点できるように、いま書き残しておきます。" -msgid "size" -msgstr "サイズ" - msgid "Size" msgstr "サイズ" @@ -18693,6 +18808,9 @@ msgstr "肌の色" msgid "Skip" msgstr "スキップ" +msgid "Skip & save" +msgstr "スキップして保存" + msgid "Skip All" msgstr "すべてスキップ" @@ -19093,6 +19211,9 @@ msgstr "新しいチャットを開始" msgid "Start a session" msgstr "セッションを開始" +msgid "Start agent" +msgstr "エージェントを開始" + msgid "Start agents on events or a schedule" msgstr "イベントやスケジュールでエージェントを起動" @@ -21292,6 +21413,10 @@ msgstr "両手" msgid "Type" msgstr "型" +msgctxt "sort order" +msgid "Type" +msgstr "種類" + msgid "Type @linear in any prompt." msgstr "どのプロンプトでも @linear と入力します。" @@ -21665,6 +21790,9 @@ msgstr "両方のコンピューターでホストサービスを更新してか msgid "Update the host service on this device and try again." msgstr "このデバイスのホストサービスを更新してから、もう一度お試しください。" +msgid "Update the value for <0>{key}" +msgstr "<0>{key} の値を更新" + msgid "Update this host to message subagents" msgstr "サブエージェントにメッセージを送るには、このホストを更新してください" @@ -21681,6 +21809,9 @@ msgstr "更新: {0}" msgid "Updated {date}" msgstr "{date}に更新" +msgid "Updated {key}" +msgstr "{key} を更新しました" + msgid "Updated {updatedRelative}" msgstr "{updatedRelative}に更新" @@ -21899,6 +22030,9 @@ msgstr "user@host、ssh://user@host:2222、または ssh config のエイリア msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectIdがワークスペースのプロジェクトと一致しません" +msgid "Value" +msgstr "値" + msgid "Variables" msgstr "変数" @@ -22892,6 +23026,9 @@ msgstr "このターミナルへのアクセス権がありません。" msgid "You don't have permission to remove this member" msgstr "このメンバーを削除する権限がありません" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "保存していない環境変数があります。閉じてもよろしいですか?" + msgid "You install and connect once per account." msgstr "インストールと接続は、アカウントごとに一度だけです。" diff --git a/packages/i18n/locales/ko/messages.po b/packages/i18n/locales/ko/messages.po index 31afb120964..592d863679b 100644 --- a/packages/i18n/locales/ko/messages.po +++ b/packages/i18n/locales/ko/messages.po @@ -984,6 +984,9 @@ msgstr "{count}개의 호스트가 이 앱보다 오래된 호스트 서비스 msgid "{count} selected" msgstr "{count}개 선택됨" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "변수 {count}개를 저장할 수 없습니다. 강조 표시된 행을 확인하세요" + msgid "{count}/day" msgstr "하루 {count}개" @@ -1132,6 +1135,9 @@ msgstr "{lines, plural, other {#줄}}" msgid "{localHostName} (this device)" msgstr "{localHostName} (이 기기)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize} (요금제에 포함되지 않음)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2109,6 +2115,9 @@ msgstr "에이전트를 추가할" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "클라우드 워크스페이스를 만들기 전에 설정에서 환경을 추가하세요" +msgid "Add Another" +msgstr "하나 더 추가" + msgid "Add another account, or disconnect one you no longer use." msgstr "다른 계정을 연결하거나 더 이상 쓰지 않는 계정을 해제하세요." @@ -2136,6 +2145,9 @@ msgstr "설명 추가" msgid "Add description..." msgstr "설명 추가..." +msgid "Add Environment Variable" +msgstr "환경 변수 추가" + msgid "Add extension" msgstr "확장 프로그램 추가" @@ -2173,6 +2185,9 @@ msgstr "더 추가…" msgid "Add one from the menu in the sidebar to get started." msgstr "사이드바 메뉴에서 하나 추가해 시작하세요." +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "환경 변수를 하나 이상 추가하세요. .env 파일을 끌어다 놓을 수도 있습니다." + msgid "Add people" msgstr "사람 추가" @@ -2284,9 +2299,18 @@ msgstr "{added} 추가됨" msgid "Added {added} files to {where}" msgstr "{where}에 파일 {added}개를 추가했습니다" +msgid "Added {addedOn}" +msgstr "{addedOn}에 추가됨" + msgid "Added {bought} GB-hours." msgstr "{bought} GB 시간을 추가했습니다." +msgid "Added {count} environment variables" +msgstr "환경 변수 {count}개 추가됨" + +msgid "Added {key}" +msgstr "{key} 추가됨" + msgid "Added 1 file to {where}" msgstr "{where}에 파일 1개를 추가했습니다" @@ -2781,6 +2805,9 @@ msgstr "어떤 에이전트가 나를 필요로 하는지 항상 알 수 있습 msgid "An agent completes multi-file changes end to end." msgstr "에이전트가 여러 파일에 걸친 변경을 처음부터 끝까지 완료합니다." +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "에이전트가 클라우드 워크스페이스에서 이 환경을 설정합니다(약 20분 이상). 의존성을 설치하고 설정 구성을 작성하며 필요한 시크릿을 요청합니다. 언제든 중단하거나 워크스페이스에서 직접 이어받아 설정을 마칠 수 있습니다." + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "에이전트가 함수와 파일 전체를 작성하는 동안 사람이 모든 단계를 지켜보고 모든 명령을 승인합니다. 에이전트 하나에 사람 하나. 더 빠르지만 여전히 순차적입니다." @@ -4381,6 +4408,9 @@ msgstr "체크포인트 · 툴팁 리팩터링 전" msgid "Checkpoint saved {0}" msgstr "체크포인트 저장됨 {0}" +msgid "Checkpoint saved to {name}" +msgstr "{name}에 체크포인트를 저장했습니다" + msgid "Checks" msgstr "검사" @@ -4622,6 +4652,9 @@ msgstr "이동하지 않으면 여기를 클릭하세요" msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "“↑ update” 버튼을 클릭하면 업데이트 전 확인 창이 표시됩니다" +msgid "Click to copy" +msgstr "클릭하여 복사" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "클릭하면 세션 ID를 복사합니다(`claude --resume `로 이어서 진행)." @@ -5816,6 +5849,9 @@ msgstr "링크를 복사할 수 없습니다" msgid "Could not create cloud workspace" msgstr "클라우드 워크스페이스를 만들 수 없습니다" +msgid "Could not create environment" +msgstr "환경을 만들 수 없습니다" + msgid "Could not create project" msgstr "프로젝트를 만들 수 없습니다" @@ -7407,6 +7443,9 @@ msgstr "변경 사항을 버릴까요?" msgid "Discard recording" msgstr "녹음 버리기" +msgid "Discard unsaved changes?" +msgstr "저장하지 않은 변경 사항을 버릴까요?" + msgid "Discarded" msgstr "버렸습니다" @@ -7812,6 +7851,9 @@ msgstr "{name} ×{tier} 획득" msgid "Edit" msgstr "편집" +msgid "Edit {selectedName}" +msgstr "{selectedName} 편집" + msgid "Edit Channel Name" msgstr "채널 이름 편집" @@ -7824,8 +7866,8 @@ msgstr "설명 편집" msgid "Edit Description" msgstr "설명 편집" -msgid "Edit environment" -msgstr "환경 편집" +msgid "Edit Environment Variable" +msgstr "환경 변수 편집" msgid "Edit files without asking; ask before commands" msgstr "파일은 묻지 않고 편집하고 명령 전에는 확인" @@ -8016,6 +8058,9 @@ msgstr "정수 입력" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "{minHours}에서 {maxHours} GB 시간 사이의 정수를 입력하세요." +msgid "Enter new value" +msgstr "새 값 입력" + msgid "Enter this code when OpenAI asks for it:" msgstr "OpenAI가 요청하면 이 코드를 입력하세요:" @@ -8046,6 +8091,9 @@ msgstr "환경 설정, 불안정한 테스트, 자격 증명 연결처럼 2025 msgid "Environment Variables" msgstr "환경 변수" +msgid "Environment's size" +msgstr "환경 크기" + msgid "Environments" msgstr "환경" @@ -8477,6 +8525,9 @@ msgstr "계정을 삭제하지 못했습니다" msgid "Failed to delete automation" msgstr "자동화를 삭제하지 못했습니다" +msgid "Failed to delete environment variable" +msgstr "환경 변수를 삭제하지 못했습니다" + msgid "Failed to delete host" msgstr "호스트를 삭제하지 못했습니다" @@ -8595,6 +8646,9 @@ msgstr "답글을 게시하지 못했습니다" msgid "Failed to push branch" msgstr "브랜치를 푸시하지 못했습니다" +msgid "Failed to read file." +msgstr "파일을 읽지 못했습니다." + msgid "Failed to record page version" msgstr "페이지 버전을 기록하지 못했습니다" @@ -8688,6 +8742,9 @@ msgstr "워크스페이스 명령을 실행하지 못했습니다" msgid "Failed to save" msgstr "저장하지 못했습니다" +msgid "Failed to save environment variables" +msgstr "환경 변수를 저장하지 못했습니다" + msgid "Failed to save installation. Please try again." msgstr "설치를 저장하지 못했습니다. 다시 시도해 주세요." @@ -8754,6 +8811,9 @@ msgstr "아바타를 업데이트하지 못했습니다" msgid "Failed to update branch prefix" msgstr "브랜치 접두사를 업데이트하지 못했습니다" +msgid "Failed to update environment variable" +msgstr "환경 변수를 업데이트하지 못했습니다" + msgid "Failed to update hooks" msgstr "훅을 업데이트하지 못했습니다" @@ -8898,6 +8958,9 @@ msgstr "파일 열기 방식" msgid "File opens when the workspace wakes up" msgstr "워크스페이스가 깨어나면 파일을 엽니다" +msgid "File too large. Maximum size is 256 KB." +msgstr "파일이 너무 큽니다. 최대 크기는 256KB입니다." + msgid "File viewer" msgstr "파일 뷰어" @@ -10195,6 +10258,9 @@ msgstr "타인 사칭" msgid "Import" msgstr "가져오기" +msgid "Import .env" +msgstr ".env 가져오기" + msgid "import a folder" msgstr "폴더를 가져올" @@ -10936,6 +11002,9 @@ msgstr "새 파일을 유지했습니다, 생성 후 내용이 바뀌었습니 msgid "Kept the new folder because it is no longer empty" msgstr "새 폴더를 유지했습니다, 더 이상 비어 있지 않습니다" +msgid "Key" +msgstr "키" + msgid "Key dates" msgstr "주요 일정" @@ -11081,6 +11150,9 @@ msgstr "마지막 확인: {lastSeen}" msgid "Last updated" msgstr "최종 업데이트" +msgid "Last Updated" +msgstr "마지막 업데이트" + msgid "Last updated on {date}" msgstr "마지막 업데이트: {date}" @@ -11671,9 +11743,6 @@ msgstr "머신 리소스" msgid "Machine size" msgstr "머신 크기" -msgid "Machine size: {label}" -msgstr "머신 크기: {label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "머신에 묶이지 않는 클라우드 워크스페이스를 몇 초 만에 띄우고 팀원과 공유할 수 있습니다." @@ -11731,6 +11800,9 @@ msgstr "계정 관리…" msgid "Manage billing" msgstr "결제 관리" +msgid "Manage environment" +msgstr "환경 관리" + msgid "Manage environments" msgstr "환경 관리" @@ -12358,6 +12430,10 @@ msgstr "수수께끼의 기계공" msgid "Name" msgstr "이름" +msgctxt "sort order" +msgid "Name" +msgstr "이름" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "이름과 URL에 쓰기 좋은 슬러그를 정하세요. 둘 다 나중에 바꿀 수 있습니다." @@ -12708,6 +12784,9 @@ msgstr "활성 워크스페이스 없음" msgid "No agent" msgstr "에이전트 없음" +msgid "No agent is available to set up the environment" +msgstr "환경을 설정할 수 있는 에이전트가 없습니다" + msgid "No agent is configured on this host" msgstr "이 호스트에 구성된 에이전트가 없습니다" @@ -12856,6 +12935,9 @@ msgstr "아직 다운로드가 없습니다" msgid "No emoji found" msgstr "이모지를 찾을 수 없음" +msgid "No environment variables yet" +msgstr "아직 환경 변수가 없습니다" + msgid "No environments available" msgstr "사용 가능한 환경 없음" @@ -13012,6 +13094,9 @@ msgstr "일치하는 풀 리퀘스트가 없습니다" msgid "No matching tasks" msgstr "일치하는 작업이 없습니다" +msgid "No matching variables" +msgstr "일치하는 변수가 없습니다" + msgid "No MCP servers found" msgstr "MCP 서버를 찾을 수 없음" @@ -13319,8 +13404,8 @@ msgstr "이 기기에서 v1 프로젝트를 찾을 수 없습니다." msgid "No v1 terminal scripts found." msgstr "v1 터미널 스크립트를 찾을 수 없습니다." -msgid "No variables set yet." -msgstr "아직 설정된 변수가 없습니다." +msgid "No valid environment variables found in file" +msgstr "파일에서 유효한 환경 변수를 찾지 못했습니다" msgid "No versions yet" msgstr "아직 버전이 없습니다" @@ -13717,6 +13802,9 @@ msgstr "하나의 플러그인. 모든 코딩 에이전트." msgid "One step left" msgstr "한 단계 남았습니다" +msgid "One variable can't be saved. See the highlighted row" +msgstr "변수 하나를 저장할 수 없습니다. 강조 표시된 행을 확인하세요" + msgid "online" msgstr "온라인" @@ -14372,6 +14460,9 @@ msgstr "선택 사항입니다. 무엇이 효과적인지 파악하는 데 도 msgid "Options" msgstr "옵션" +msgid "or paste .env contents in Key input" +msgstr "또는 .env 내용을 키 입력란에 붙여 넣기" + msgid "Orange" msgstr "주황" @@ -14402,6 +14493,9 @@ msgstr "조직 {id}" msgid "Organization created successfully!" msgstr "조직을 만들었습니다!" +msgid "Organization default ({defaultName})" +msgstr "조직 기본값 ({defaultName})" + msgid "Organization deleted" msgstr "조직을 삭제했습니다" @@ -15062,8 +15156,8 @@ msgstr "{hostName}에서 새 프로젝트 폴더를 선택하세요." msgid "Pick the project worktree folder on {hostName}." msgstr "{hostName}에서 프로젝트 worktree 폴더를 선택하세요." -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "체크아웃할 리포지토리를 고르세요. 이 컴퓨터의 에이전트가 무엇을 설치할지 파악해 클라우드에서 실행되게 합니다." +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "체크아웃할 저장소를 선택하세요. 클라우드 워크스페이스의 에이전트가 설치할 항목을 파악하고 실행되도록 합니다." msgid "Pick the worktree folder on {hostName}." msgstr "{hostName}에서 worktree 폴더를 선택하세요." @@ -15167,6 +15261,9 @@ msgstr "조직을 선택해 주세요" msgid "Please try again, or restart Paradev on that device." msgstr "다시 시도하거나 해당 기기에서 Paradev를 다시 시작해 주세요." +msgid "Please upload a valid .env file." +msgstr "유효한 .env 파일을 업로드하세요." + msgid "Plugin" msgstr "플러그인" @@ -17321,6 +17418,9 @@ msgstr "저장" msgid "Save & create workspace" msgstr "저장 후 워크스페이스 만들기" +msgid "Save a checkpoint to {name}?" +msgstr "{name}에 체크포인트를 저장할까요?" + msgid "Save All" msgstr "모두 저장" @@ -17333,6 +17433,9 @@ msgstr "뷰로 저장" msgid "Save Changes" msgstr "변경사항 저장" +msgid "Save checkpoint" +msgstr "체크포인트 저장" + msgid "Save edits" msgstr "편집 저장" @@ -17373,9 +17476,21 @@ msgstr "저장됨" msgid "Saved \"{0}\" as an environment" msgstr "\"{0}\"을(를) 환경으로 저장했습니다" +msgid "Saved {name}" +msgstr "{name} 저장됨" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "{name}을(를) 저장했지만 설정용 워크스페이스를 시작할 수 없습니다: {reason}" + msgid "Saved to Downloads" msgstr "다운로드 폴더에 저장했습니다" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "설치된 모든 것을 포함해 이 워크스페이스의 현재 상태를 저장합니다. {name}에서 만드는 새 워크스페이스는 이 체크포인트에서 시작합니다. 저장하는 동안 워크스페이스가 잠시 멈춥니다." + +msgid "Saving a checkpoint to {name}..." +msgstr "{name}에 체크포인트 저장 중..." + msgid "Saving as an environment..." msgstr "환경으로 저장하는 중..." @@ -17810,9 +17925,6 @@ msgstr "에이전트 선택" msgid "Select an editor from the dropdown" msgstr "드롭다운에서 편집기를 선택하세요" -msgid "Select an environment" -msgstr "환경을 선택하세요" - msgid "Select an organization" msgstr "조직을 선택하세요" @@ -17993,6 +18105,12 @@ msgstr "보내는 중…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "터미널 컨텍스트 {0}자(약 {1} 토큰)를 {2}에 보냅니다." +msgid "Sensitive" +msgstr "민감" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "민감한 값은 암호화되며 저장 후에는 표시할 수 없습니다." + msgid "Sent" msgstr "보낸 날짜" @@ -18068,9 +18186,6 @@ msgstr "세션" msgid "Sessions · top {0} by cost" msgstr "세션 · 비용 상위 {0}개" -msgid "Set" -msgstr "설정됨" - msgid "Set a notification schedule" msgstr "알림 일정 설정" @@ -18113,6 +18228,9 @@ msgstr "SSH로 호스트 설정" msgid "Set up an automation" msgstr "자동화 설정하기" +msgid "Set up Environment" +msgstr "환경 설정" + msgid "Set up once" msgstr "한 번만 설정" @@ -18666,9 +18784,6 @@ msgstr "공장 자율성의 여섯 단계" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "공장 자율성의 여섯 단계, 그 사이의 관문, 그리고 2026년에 어디까지 갈지에 대한 전망입니다. 나중에 채점할 수 있도록 지금 적어 둡니다." -msgid "size" -msgstr "크기" - msgid "Size" msgstr "크기" @@ -18693,6 +18808,9 @@ msgstr "피부색" msgid "Skip" msgstr "건너뛰기" +msgid "Skip & save" +msgstr "건너뛰고 저장" + msgid "Skip All" msgstr "모두 건너뛰기" @@ -19093,6 +19211,9 @@ msgstr "새 채팅 시작" msgid "Start a session" msgstr "세션 시작" +msgid "Start agent" +msgstr "에이전트 시작" + msgid "Start agents on events or a schedule" msgstr "이벤트나 일정으로 에이전트 시작" @@ -21292,6 +21413,10 @@ msgstr "양손" msgid "Type" msgstr "타입" +msgctxt "sort order" +msgid "Type" +msgstr "유형" + msgid "Type @linear in any prompt." msgstr "어떤 프롬프트에서든 @linear를 입력하세요." @@ -21665,6 +21790,9 @@ msgstr "두 컴퓨터의 호스트 서비스를 업데이트한 후 다시 시 msgid "Update the host service on this device and try again." msgstr "이 기기의 호스트 서비스를 업데이트한 후 다시 시도하세요." +msgid "Update the value for <0>{key}" +msgstr "<0>{key}의 값 업데이트" + msgid "Update this host to message subagents" msgstr "서브 에이전트에게 메시지를 보내려면 이 호스트를 업데이트하세요" @@ -21681,6 +21809,9 @@ msgstr "{0} 업데이트됨" msgid "Updated {date}" msgstr "{date} 업데이트" +msgid "Updated {key}" +msgstr "{key} 업데이트됨" + msgid "Updated {updatedRelative}" msgstr "{updatedRelative} 업데이트됨" @@ -21899,6 +22030,9 @@ msgstr "user@host, ssh://user@host:2222 또는 ssh 설정 별칭" msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectId가 워크스페이스의 프로젝트와 일치하지 않습니다" +msgid "Value" +msgstr "값" + msgid "Variables" msgstr "변수" @@ -22892,6 +23026,9 @@ msgstr "이 터미널에 접근할 권한이 없습니다." msgid "You don't have permission to remove this member" msgstr "이 멤버를 제거할 권한이 없습니다" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "저장하지 않은 환경 변수가 있습니다. 정말 닫을까요?" + msgid "You install and connect once per account." msgstr "설치와 연결은 계정당 한 번만 하면 됩니다." diff --git a/packages/i18n/locales/nl/messages.po b/packages/i18n/locales/nl/messages.po index fede526d969..229e041b98f 100644 --- a/packages/i18n/locales/nl/messages.po +++ b/packages/i18n/locales/nl/messages.po @@ -984,6 +984,9 @@ msgstr "{count} hosts draaien een oudere hostservice dan deze app" msgid "{count} selected" msgstr "{count} geselecteerd" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "{count} variabelen kunnen niet worden opgeslagen. Zie de gemarkeerde rijen" + msgid "{count}/day" msgstr "{count}/dag" @@ -1132,6 +1135,9 @@ msgstr "{lines, plural, one {# regel} other {# regels}}" msgid "{localHostName} (this device)" msgstr "{localHostName} (dit apparaat)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize} (niet in je abonnement)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2109,6 +2115,9 @@ msgstr "een agent toevoegen" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "Voeg een omgeving toe in Instellingen voordat je een cloudwerkruimte aanmaakt" +msgid "Add Another" +msgstr "Nog een toevoegen" + msgid "Add another account, or disconnect one you no longer use." msgstr "Verbind nog een account, of verbreek er een die je niet meer gebruikt." @@ -2136,6 +2145,9 @@ msgstr "Beschrijving toevoegen" msgid "Add description..." msgstr "Beschrijving toevoegen..." +msgid "Add Environment Variable" +msgstr "Omgevingsvariabele toevoegen" + msgid "Add extension" msgstr "Extensie toevoegen" @@ -2173,6 +2185,9 @@ msgstr "Meer toevoegen…" msgid "Add one from the menu in the sidebar to get started." msgstr "Voeg er een toe via het menu in de zijbalk om te beginnen." +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "Voeg een of meer omgevingsvariabelen toe. Je kunt ook een .env-bestand hierheen slepen." + msgid "Add people" msgstr "Personen toevoegen" @@ -2284,9 +2299,18 @@ msgstr "{added} toegevoegd" msgid "Added {added} files to {where}" msgstr "{added} bestanden toegevoegd aan {where}" +msgid "Added {addedOn}" +msgstr "Toegevoegd op {addedOn}" + msgid "Added {bought} GB-hours." msgstr "{bought} GB-uren toegevoegd." +msgid "Added {count} environment variables" +msgstr "{count} omgevingsvariabelen toegevoegd" + +msgid "Added {key}" +msgstr "{key} toegevoegd" + msgid "Added 1 file to {where}" msgstr "1 bestand toegevoegd aan {where}" @@ -2781,6 +2805,9 @@ msgstr "Weet altijd welke agent jou nodig heeft, met meldingen die rechtstreeks msgid "An agent completes multi-file changes end to end." msgstr "Een agent voltooit wijzigingen over meerdere bestanden van begin tot eind." +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "Een agent richt deze omgeving in een cloudworkspace in (ongeveer 20 minuten of langer): hij installeert afhankelijkheden, schrijft de setupconfiguratie en vraagt om benodigde secrets. Onderbreek hem op elk moment, of neem het over in de workspace om de installatie zelf af te ronden." + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "Een agent schrijft hele functies en bestanden terwijl een mens elke stap volgt en elk commando goedkeurt. Eén agent, één mens. Sneller, maar nog steeds serieel." @@ -4381,6 +4408,9 @@ msgstr "Checkpoint · voor de tooltip-refactor" msgid "Checkpoint saved {0}" msgstr "Checkpoint opgeslagen {0}" +msgid "Checkpoint saved to {name}" +msgstr "Checkpoint opgeslagen in {name}" + msgid "Checks" msgstr "Checks" @@ -4622,6 +4652,9 @@ msgstr "Klik hier als je niet wordt doorgestuurd" msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "Klik op ‘↑ update’ om de bevestiging vóór de update te bekijken" +msgid "Click to copy" +msgstr "Klik om te kopiëren" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "Klik om de sessie-ID te kopiëren (hervatten met `claude --resume `)." @@ -5816,6 +5849,9 @@ msgstr "Kan de link niet kopiëren" msgid "Could not create cloud workspace" msgstr "Kan cloudwerkruimte niet aanmaken" +msgid "Could not create environment" +msgstr "Kan omgeving niet maken" + msgid "Could not create project" msgstr "Kan project niet aanmaken" @@ -7407,6 +7443,9 @@ msgstr "Wijzigingen verwerpen?" msgid "Discard recording" msgstr "Opname verwerpen" +msgid "Discard unsaved changes?" +msgstr "Niet-opgeslagen wijzigingen verwijderen?" + msgid "Discarded" msgstr "Verworpen" @@ -7812,6 +7851,9 @@ msgstr "{name} ×{tier} behaald" msgid "Edit" msgstr "Bewerken" +msgid "Edit {selectedName}" +msgstr "{selectedName} bewerken" + msgid "Edit Channel Name" msgstr "Kanaalnaam bewerken" @@ -7824,8 +7866,8 @@ msgstr "Beschrijving bewerken" msgid "Edit Description" msgstr "Beschrijving bewerken" -msgid "Edit environment" -msgstr "Omgeving bewerken" +msgid "Edit Environment Variable" +msgstr "Omgevingsvariabele bewerken" msgid "Edit files without asking; ask before commands" msgstr "Bestanden bewerken zonder te vragen; vragen vóór commando's" @@ -8016,6 +8058,9 @@ msgstr "Voer een geheel getal in" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "Voer een heel getal in van {minHours} tot {maxHours} GB-uren." +msgid "Enter new value" +msgstr "Nieuwe waarde invoeren" + msgid "Enter this code when OpenAI asks for it:" msgstr "Voer deze code in wanneer OpenAI erom vraagt:" @@ -8046,6 +8091,9 @@ msgstr "Omgevingsopzet, flaky tests en credential-geknutsel — de saaie faalvor msgid "Environment Variables" msgstr "Omgevingsvariabelen" +msgid "Environment's size" +msgstr "Grootte van de omgeving" + msgid "Environments" msgstr "Omgevingen" @@ -8477,6 +8525,9 @@ msgstr "Verwijderen van account mislukt" msgid "Failed to delete automation" msgstr "Automatisering verwijderen mislukt" +msgid "Failed to delete environment variable" +msgstr "Kan omgevingsvariabele niet verwijderen" + msgid "Failed to delete host" msgstr "Host verwijderen mislukt" @@ -8595,6 +8646,9 @@ msgstr "Antwoord plaatsen mislukt" msgid "Failed to push branch" msgstr "Pushen van branch mislukt" +msgid "Failed to read file." +msgstr "Kan bestand niet lezen." + msgid "Failed to record page version" msgstr "Vastleggen van paginaversie mislukt" @@ -8688,6 +8742,9 @@ msgstr "Uitvoeren van werkruimtecommando mislukt" msgid "Failed to save" msgstr "Opslaan mislukt" +msgid "Failed to save environment variables" +msgstr "Kan omgevingsvariabelen niet opslaan" + msgid "Failed to save installation. Please try again." msgstr "Opslaan van de installatie mislukt. Probeer het opnieuw." @@ -8754,6 +8811,9 @@ msgstr "Bijwerken van avatar mislukt" msgid "Failed to update branch prefix" msgstr "Bijwerken van branchprefix mislukt" +msgid "Failed to update environment variable" +msgstr "Kan omgevingsvariabele niet bijwerken" + msgid "Failed to update hooks" msgstr "Bijwerken van hooks mislukt" @@ -8898,6 +8958,9 @@ msgstr "Openmodus voor bestanden" msgid "File opens when the workspace wakes up" msgstr "Bestand opent zodra de werkruimte gewekt is" +msgid "File too large. Maximum size is 256 KB." +msgstr "Bestand te groot. Maximaal 256 KB." + msgid "File viewer" msgstr "Bestandsviewer" @@ -10195,6 +10258,9 @@ msgstr "Doet zich voor als iemand anders" msgid "Import" msgstr "Importeren" +msgid "Import .env" +msgstr ".env importeren" + msgid "import a folder" msgstr "een map importeren" @@ -10936,6 +11002,9 @@ msgstr "Nieuw bestand behouden, het is na het aanmaken gewijzigd" msgid "Kept the new folder because it is no longer empty" msgstr "Nieuwe map behouden, die is niet meer leeg" +msgid "Key" +msgstr "Sleutel" + msgid "Key dates" msgstr "Belangrijke datums" @@ -11081,6 +11150,9 @@ msgstr "Laatst gezien: {lastSeen}" msgid "Last updated" msgstr "Laatst bijgewerkt" +msgid "Last Updated" +msgstr "Laatst bijgewerkt" + msgid "Last updated on {date}" msgstr "Laatst bijgewerkt op {date}" @@ -11671,9 +11743,6 @@ msgstr "Machineresources" msgid "Machine size" msgstr "Machinegrootte" -msgid "Machine size: {label}" -msgstr "Machinegrootte: {label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "Machine-onafhankelijke cloudwerkruimtes die in seconden opstarten en met teamgenoten te delen zijn." @@ -11731,6 +11800,9 @@ msgstr "Accounts beheren…" msgid "Manage billing" msgstr "Facturering beheren" +msgid "Manage environment" +msgstr "Omgeving beheren" + msgid "Manage environments" msgstr "Omgevingen beheren" @@ -12358,6 +12430,10 @@ msgstr "Mysterieuze Machinist" msgid "Name" msgstr "Naam" +msgctxt "sort order" +msgid "Name" +msgstr "Naam" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "Een naam en een URL-vriendelijke slug. Beide zijn later te wijzigen." @@ -12708,6 +12784,9 @@ msgstr "Geen actieve werkruimtes" msgid "No agent" msgstr "Geen agent" +msgid "No agent is available to set up the environment" +msgstr "Er is geen agent beschikbaar om de omgeving in te richten" + msgid "No agent is configured on this host" msgstr "Er is geen agent geconfigureerd op deze host" @@ -12856,6 +12935,9 @@ msgstr "Nog geen downloads" msgid "No emoji found" msgstr "Geen emoji gevonden" +msgid "No environment variables yet" +msgstr "Nog geen omgevingsvariabelen" + msgid "No environments available" msgstr "Geen omgevingen beschikbaar" @@ -13012,6 +13094,9 @@ msgstr "Geen overeenkomende pull requests" msgid "No matching tasks" msgstr "Geen overeenkomende taken" +msgid "No matching variables" +msgstr "Geen overeenkomende variabelen" + msgid "No MCP servers found" msgstr "Geen MCP-servers gevonden" @@ -13319,8 +13404,8 @@ msgstr "Geen v1-projecten op dit apparaat gevonden." msgid "No v1 terminal scripts found." msgstr "Geen v1-terminalscripts gevonden." -msgid "No variables set yet." -msgstr "Nog geen variabelen ingesteld." +msgid "No valid environment variables found in file" +msgstr "Geen geldige omgevingsvariabelen gevonden in bestand" msgid "No versions yet" msgstr "Nog geen versies" @@ -13717,6 +13802,9 @@ msgstr "Eén plugin. Elke coding-agent." msgid "One step left" msgstr "Nog één stap" +msgid "One variable can't be saved. See the highlighted row" +msgstr "Eén variabele kan niet worden opgeslagen. Zie de gemarkeerde rij" + msgid "online" msgstr "online" @@ -14372,6 +14460,9 @@ msgstr "Optioneel. Helpt ons te zien wat werkt." msgid "Options" msgstr "Opties" +msgid "or paste .env contents in Key input" +msgstr "of plak de inhoud van een .env in het veld Sleutel" + msgid "Orange" msgstr "Oranje" @@ -14402,6 +14493,9 @@ msgstr "Organisatie {id}" msgid "Organization created successfully!" msgstr "Organisatie aangemaakt!" +msgid "Organization default ({defaultName})" +msgstr "Standaard van de organisatie ({defaultName})" + msgid "Organization deleted" msgstr "Organisatie verwijderd" @@ -15062,8 +15156,8 @@ msgstr "Kies de nieuwe projectmap op {hostName}." msgid "Pick the project worktree folder on {hostName}." msgstr "Kies de worktree-map van het project op {hostName}." -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "Kies de repositories die ze ophaalt. Een agent op deze machine zoekt uit wat er geïnstalleerd moet worden en laat het in de cloud draaien." +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "Kies de repositories die worden uitgecheckt. Een agent in een cloudworkspace zoekt uit wat er geïnstalleerd moet worden en zorgt dat het draait." msgid "Pick the worktree folder on {hostName}." msgstr "Kies de worktree-map op {hostName}." @@ -15167,6 +15261,9 @@ msgstr "Kies een organisatie" msgid "Please try again, or restart Paradev on that device." msgstr "Probeer het opnieuw of herstart Paradev op dat apparaat." +msgid "Please upload a valid .env file." +msgstr "Upload een geldig .env-bestand." + msgid "Plugin" msgstr "Plugin" @@ -17321,6 +17418,9 @@ msgstr "Opslaan" msgid "Save & create workspace" msgstr "Opslaan en werkruimte aanmaken" +msgid "Save a checkpoint to {name}?" +msgstr "Checkpoint opslaan in {name}?" + msgid "Save All" msgstr "Alles opslaan" @@ -17333,6 +17433,9 @@ msgstr "Opslaan als weergave" msgid "Save Changes" msgstr "Wijzigingen opslaan" +msgid "Save checkpoint" +msgstr "Checkpoint opslaan" + msgid "Save edits" msgstr "Bewerkingen opslaan" @@ -17373,9 +17476,21 @@ msgstr "Opgeslagen" msgid "Saved \"{0}\" as an environment" msgstr "\"{0}\" opgeslagen als omgeving" +msgid "Saved {name}" +msgstr "{name} opgeslagen" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "{name} opgeslagen, maar de setup-workspace kon niet starten: {reason}" + msgid "Saved to Downloads" msgstr "Opgeslagen in Downloads" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "Slaat deze workspace op zoals hij nu is, met alles wat erin is geïnstalleerd. Nieuwe workspaces uit {name} starten vanaf dit checkpoint. De workspace stopt even tijdens het opslaan." + +msgid "Saving a checkpoint to {name}..." +msgstr "Checkpoint opslaan in {name}..." + msgid "Saving as an environment..." msgstr "Opslaan als omgeving..." @@ -17810,9 +17925,6 @@ msgstr "Kies een agent" msgid "Select an editor from the dropdown" msgstr "Kies een editor in het dropdownmenu" -msgid "Select an environment" -msgstr "Selecteer een omgeving" - msgid "Select an organization" msgstr "Kies een organisatie" @@ -17993,6 +18105,12 @@ msgstr "Versturen…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "Stuurt {0} tekens terminalcontext (ongeveer {1} tokens) naar {2}." +msgid "Sensitive" +msgstr "Gevoelig" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "Gevoelige waarden worden versleuteld en kunnen na het opslaan niet meer worden getoond." + msgid "Sent" msgstr "Verstuurd" @@ -18068,9 +18186,6 @@ msgstr "Sessies" msgid "Sessions · top {0} by cost" msgstr "Sessies · top {0} op kosten" -msgid "Set" -msgstr "Ingesteld" - msgid "Set a notification schedule" msgstr "Meldingsschema instellen" @@ -18113,6 +18228,9 @@ msgstr "Host instellen via SSH" msgid "Set up an automation" msgstr "Stel een automatisering in" +msgid "Set up Environment" +msgstr "Omgeving instellen" + msgid "Set up once" msgstr "Eén keer instellen" @@ -18666,9 +18784,6 @@ msgstr "Zes niveaus van fabrieksautonomie" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "Zes niveaus van fabrieksautonomie, de drempels ertussen, en onze voorspelling van hoe ver 2026 ons brengt. Nu opgeschreven zodat je ons later kunt beoordelen." -msgid "size" -msgstr "Grootte" - msgid "Size" msgstr "Grootte" @@ -18693,6 +18808,9 @@ msgstr "Huidskleur" msgid "Skip" msgstr "Overslaan" +msgid "Skip & save" +msgstr "Overslaan en opslaan" + msgid "Skip All" msgstr "Alles overslaan" @@ -19093,6 +19211,9 @@ msgstr "Nieuwe chat starten" msgid "Start a session" msgstr "Sessie starten" +msgid "Start agent" +msgstr "Agent starten" + msgid "Start agents on events or a schedule" msgstr "Start agents bij gebeurtenissen of volgens schema" @@ -21292,6 +21413,10 @@ msgstr "Twee handen" msgid "Type" msgstr "Type" +msgctxt "sort order" +msgid "Type" +msgstr "Type" + msgid "Type @linear in any prompt." msgstr "Typ @linear in elke prompt." @@ -21665,6 +21790,9 @@ msgstr "Werk de hostservice op beide computers bij en probeer het opnieuw." msgid "Update the host service on this device and try again." msgstr "Werk de hostservice op dit apparaat bij en probeer het opnieuw." +msgid "Update the value for <0>{key}" +msgstr "Werk de waarde van <0>{key} bij" + msgid "Update this host to message subagents" msgstr "Werk deze host bij om subagents berichten te sturen" @@ -21681,6 +21809,9 @@ msgstr "Bijgewerkt {0}" msgid "Updated {date}" msgstr "Bijgewerkt {date}" +msgid "Updated {key}" +msgstr "{key} bijgewerkt" + msgid "Updated {updatedRelative}" msgstr "Bijgewerkt {updatedRelative}" @@ -21899,6 +22030,9 @@ msgstr "gebruiker@host, ssh://gebruiker@host:2222 of een alias uit je ssh-config msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectId komt niet overeen met het project van de werkruimte" +msgid "Value" +msgstr "Waarde" + msgid "Variables" msgstr "Variabelen" @@ -22892,6 +23026,9 @@ msgstr "Je hebt geen toegang tot deze terminal." msgid "You don't have permission to remove this member" msgstr "Je hebt geen rechten om dit lid te verwijderen" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "Je hebt niet-opgeslagen omgevingsvariabelen. Weet je zeker dat je wilt sluiten?" + msgid "You install and connect once per account." msgstr "Je installeert en verbindt één keer per account." diff --git a/packages/i18n/locales/pl/messages.po b/packages/i18n/locales/pl/messages.po index 6c1a89ef247..2e85de6f7a2 100644 --- a/packages/i18n/locales/pl/messages.po +++ b/packages/i18n/locales/pl/messages.po @@ -984,6 +984,9 @@ msgstr "{count} hostów działa na starszej usłudze hosta niż ta aplikacja" msgid "{count} selected" msgstr "Wybrano: {count}" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "Nie można zapisać zmiennych: {count}. Zobacz wyróżnione wiersze" + msgid "{count}/day" msgstr "{count}/dzień" @@ -1132,6 +1135,9 @@ msgstr "{lines, plural, one {# wiersz} few {# wiersze} many {# wierszy} other {# msgid "{localHostName} (this device)" msgstr "{localHostName} (to urządzenie)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize} (poza Twoim planem)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2109,6 +2115,9 @@ msgstr "dodać agenta" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "Dodaj środowisko w Ustawieniach, zanim utworzysz obszar roboczy w chmurze" +msgid "Add Another" +msgstr "Dodaj kolejną" + msgid "Add another account, or disconnect one you no longer use." msgstr "Połącz kolejne konto lub odłącz to, którego już nie używasz." @@ -2136,6 +2145,9 @@ msgstr "Dodaj opis" msgid "Add description..." msgstr "Dodaj opis..." +msgid "Add Environment Variable" +msgstr "Dodaj zmienną środowiskową" + msgid "Add extension" msgstr "Dodaj rozszerzenie" @@ -2173,6 +2185,9 @@ msgstr "Dodaj więcej…" msgid "Add one from the menu in the sidebar to get started." msgstr "Dodaj go z menu na pasku bocznym, aby zacząć." +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "Dodaj jedną lub więcej zmiennych środowiskowych. Możesz też przeciągnąć i upuścić plik .env." + msgid "Add people" msgstr "Dodaj osoby" @@ -2284,9 +2299,18 @@ msgstr "Dodano {added}" msgid "Added {added} files to {where}" msgstr "Dodano {added} plików do {where}" +msgid "Added {addedOn}" +msgstr "Dodano {addedOn}" + msgid "Added {bought} GB-hours." msgstr "Dodano {bought} GB-godzin." +msgid "Added {count} environment variables" +msgstr "Dodano zmienne środowiskowe: {count}" + +msgid "Added {key}" +msgstr "Dodano {key}" + msgid "Added 1 file to {where}" msgstr "Dodano 1 plik do {where}" @@ -2781,6 +2805,9 @@ msgstr "Zawsze wiedz, który agent Cię potrzebuje, dzięki powiadomieniom prowa msgid "An agent completes multi-file changes end to end." msgstr "Agent wykonuje zmiany w wielu plikach od początku do końca." +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "Agent skonfiguruje to środowisko w obszarze roboczym w chmurze (około 20 minut lub dłużej): zainstaluje zależności, zapisze konfigurację i poprosi o potrzebne sekrety. W każdej chwili możesz go przerwać albo przejąć pracę w obszarze roboczym i dokończyć konfigurację samodzielnie." + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "Agent pisze całe funkcje i pliki, a człowiek obserwuje każdy krok i zatwierdza każde polecenie. Jeden agent, jeden człowiek. Szybciej, ale nadal szeregowo." @@ -4381,6 +4408,9 @@ msgstr "Punkt kontrolny · przed refaktoryzacją tooltipów" msgid "Checkpoint saved {0}" msgstr "Punkt kontrolny zapisany {0}" +msgid "Checkpoint saved to {name}" +msgstr "Punkt kontrolny zapisany w {name}" + msgid "Checks" msgstr "Kontrole" @@ -4622,6 +4652,9 @@ msgstr "Kliknij tutaj, jeśli przekierowanie nie nastąpi" msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "Kliknij „↑ update”, aby zobaczyć potwierdzenie przed aktualizacją" +msgid "Click to copy" +msgstr "Kliknij, aby skopiować" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "Kliknij, aby skopiować ID sesji (wznów przez `claude --resume `)." @@ -5816,6 +5849,9 @@ msgstr "Nie udało się skopiować linku" msgid "Could not create cloud workspace" msgstr "Nie udało się utworzyć obszaru roboczego w chmurze" +msgid "Could not create environment" +msgstr "Nie udało się utworzyć środowiska" + msgid "Could not create project" msgstr "Nie udało się utworzyć projektu" @@ -7407,6 +7443,9 @@ msgstr "Odrzucić zmiany?" msgid "Discard recording" msgstr "Odrzuć nagranie" +msgid "Discard unsaved changes?" +msgstr "Odrzucić niezapisane zmiany?" + msgid "Discarded" msgstr "Odrzucono" @@ -7812,6 +7851,9 @@ msgstr "Zdobyto: {name} ×{tier}" msgid "Edit" msgstr "Edytuj" +msgid "Edit {selectedName}" +msgstr "Edytuj {selectedName}" + msgid "Edit Channel Name" msgstr "Edytuj nazwę kanału" @@ -7824,8 +7866,8 @@ msgstr "Edytuj opis" msgid "Edit Description" msgstr "Edytuj opis" -msgid "Edit environment" -msgstr "Edytuj środowisko" +msgid "Edit Environment Variable" +msgstr "Edytuj zmienną środowiskową" msgid "Edit files without asking; ask before commands" msgstr "Edytuj pliki bez pytania; pytaj przed poleceniami" @@ -8016,6 +8058,9 @@ msgstr "Wpisz liczbę całkowitą" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "Wpisz liczbę całkowitą od {minHours} do {maxHours} GB-godzin." +msgid "Enter new value" +msgstr "Wpisz nową wartość" + msgid "Enter this code when OpenAI asks for it:" msgstr "Wpisz ten kod, gdy OpenAI o niego poprosi:" @@ -8046,6 +8091,9 @@ msgstr "Konfiguracja środowiska, niestabilne testy i hydraulika poświadczeń msgid "Environment Variables" msgstr "Zmienne środowiskowe" +msgid "Environment's size" +msgstr "Rozmiar środowiska" + msgid "Environments" msgstr "Środowiska" @@ -8477,6 +8525,9 @@ msgstr "Nie udało się usunąć konta" msgid "Failed to delete automation" msgstr "Nie udało się usunąć automatyzacji" +msgid "Failed to delete environment variable" +msgstr "Nie udało się usunąć zmiennej środowiskowej" + msgid "Failed to delete host" msgstr "Nie udało się usunąć hosta" @@ -8595,6 +8646,9 @@ msgstr "Nie udało się opublikować odpowiedzi" msgid "Failed to push branch" msgstr "Nie udało się wypchnąć gałęzi" +msgid "Failed to read file." +msgstr "Nie udało się odczytać pliku." + msgid "Failed to record page version" msgstr "Nie udało się zapisać wersji strony" @@ -8688,6 +8742,9 @@ msgstr "Nie udało się uruchomić polecenia obszaru roboczego" msgid "Failed to save" msgstr "Nie udało się zapisać" +msgid "Failed to save environment variables" +msgstr "Nie udało się zapisać zmiennych środowiskowych" + msgid "Failed to save installation. Please try again." msgstr "Nie udało się zapisać instalacji. Spróbuj ponownie." @@ -8754,6 +8811,9 @@ msgstr "Nie udało się zaktualizować awatara" msgid "Failed to update branch prefix" msgstr "Nie udało się zaktualizować prefiksu gałęzi" +msgid "Failed to update environment variable" +msgstr "Nie udało się zaktualizować zmiennej środowiskowej" + msgid "Failed to update hooks" msgstr "Nie udało się zaktualizować hooków" @@ -8898,6 +8958,9 @@ msgstr "Tryb otwierania plików" msgid "File opens when the workspace wakes up" msgstr "Plik otworzy się, gdy obszar roboczy się wybudzi" +msgid "File too large. Maximum size is 256 KB." +msgstr "Plik jest za duży. Maksymalny rozmiar to 256 KB." + msgid "File viewer" msgstr "Podgląd pliku" @@ -10195,6 +10258,9 @@ msgstr "Podszywa się pod kogoś" msgid "Import" msgstr "Importuj" +msgid "Import .env" +msgstr "Importuj .env" + msgid "import a folder" msgstr "zaimportować folderu" @@ -10936,6 +11002,9 @@ msgstr "Zachowano nowy plik, zmienił się po utworzeniu" msgid "Kept the new folder because it is no longer empty" msgstr "Zachowano nowy folder, nie jest już pusty" +msgid "Key" +msgstr "Klucz" + msgid "Key dates" msgstr "Ważne daty" @@ -11081,6 +11150,9 @@ msgstr "Ostatnio widziany: {lastSeen}" msgid "Last updated" msgstr "Ostatnia aktualizacja" +msgid "Last Updated" +msgstr "Ostatnia aktualizacja" + msgid "Last updated on {date}" msgstr "Ostatnia aktualizacja {date}" @@ -11671,9 +11743,6 @@ msgstr "Zasoby maszyny" msgid "Machine size" msgstr "Rozmiar maszyny" -msgid "Machine size: {label}" -msgstr "Rozmiar maszyny: {label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "Niezwiązane z maszyną obszary robocze w chmurze, które startują w kilka sekund i można je udostępnić zespołowi." @@ -11731,6 +11800,9 @@ msgstr "Zarządzaj kontami…" msgid "Manage billing" msgstr "Zarządzaj rozliczeniami" +msgid "Manage environment" +msgstr "Zarządzaj środowiskiem" + msgid "Manage environments" msgstr "Zarządzaj środowiskami" @@ -12358,6 +12430,10 @@ msgstr "Tajemniczy Tokarz" msgid "Name" msgstr "Nazwa" +msgctxt "sort order" +msgid "Name" +msgstr "Nazwa" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "Nazwa i slug przyjazny adresom URL. Oba można później zmienić." @@ -12708,6 +12784,9 @@ msgstr "Brak aktywnych obszarów roboczych" msgid "No agent" msgstr "Brak agenta" +msgid "No agent is available to set up the environment" +msgstr "Brak dostępnego agenta do skonfigurowania środowiska" + msgid "No agent is configured on this host" msgstr "Na tym hoście nie skonfigurowano żadnego agenta" @@ -12856,6 +12935,9 @@ msgstr "Brak pobranych plików" msgid "No emoji found" msgstr "Nie znaleziono emoji" +msgid "No environment variables yet" +msgstr "Brak zmiennych środowiskowych" + msgid "No environments available" msgstr "Brak dostępnych środowisk" @@ -13012,6 +13094,9 @@ msgstr "Brak pasujących pull requestów" msgid "No matching tasks" msgstr "Brak pasujących zadań" +msgid "No matching variables" +msgstr "Brak pasujących zmiennych" + msgid "No MCP servers found" msgstr "Nie znaleziono serwerów MCP" @@ -13319,8 +13404,8 @@ msgstr "Nie znaleziono projektów v1 na tym urządzeniu." msgid "No v1 terminal scripts found." msgstr "Nie znaleziono skryptów terminala v1." -msgid "No variables set yet." -msgstr "Nie ustawiono jeszcze zmiennych." +msgid "No valid environment variables found in file" +msgstr "Nie znaleziono w pliku prawidłowych zmiennych środowiskowych" msgid "No versions yet" msgstr "Brak wersji" @@ -13717,6 +13802,9 @@ msgstr "Jedna wtyczka. Każdy agent kodujący." msgid "One step left" msgstr "Został jeden krok" +msgid "One variable can't be saved. See the highlighted row" +msgstr "Nie można zapisać jednej zmiennej. Zobacz wyróżniony wiersz" + msgid "online" msgstr "online" @@ -14372,6 +14460,9 @@ msgstr "Opcjonalne. Pomaga nam ustalić, co działa." msgid "Options" msgstr "Opcje" +msgid "or paste .env contents in Key input" +msgstr "lub wklej zawartość pliku .env w polu Klucz" + msgid "Orange" msgstr "Pomarańczowy" @@ -14402,6 +14493,9 @@ msgstr "Organizacja {id}" msgid "Organization created successfully!" msgstr "Organizacja została utworzona!" +msgid "Organization default ({defaultName})" +msgstr "Domyślny dla organizacji ({defaultName})" + msgid "Organization deleted" msgstr "Organizacja usunięta" @@ -15062,8 +15156,8 @@ msgstr "Wybierz nowy folder projektu na {hostName}." msgid "Pick the project worktree folder on {hostName}." msgstr "Wybierz folder worktree projektu na {hostName}." -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "Wybierz repozytoria, które pobiera. Agent na tym komputerze ustali, co zainstalować, i uruchomi je w chmurze." +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "Wybierz repozytoria do pobrania. Agent w obszarze roboczym w chmurze ustali, co zainstalować, i uruchomi środowisko." msgid "Pick the worktree folder on {hostName}." msgstr "Wybierz folder worktree na {hostName}." @@ -15167,6 +15261,9 @@ msgstr "Wybierz organizację" msgid "Please try again, or restart Paradev on that device." msgstr "Spróbuj ponownie lub uruchom ponownie Paradev na tym urządzeniu." +msgid "Please upload a valid .env file." +msgstr "Prześlij prawidłowy plik .env." + msgid "Plugin" msgstr "Wtyczka" @@ -17321,6 +17418,9 @@ msgstr "Zapisz" msgid "Save & create workspace" msgstr "Zapisz i utwórz obszar roboczy" +msgid "Save a checkpoint to {name}?" +msgstr "Zapisać punkt kontrolny w {name}?" + msgid "Save All" msgstr "Zapisz wszystko" @@ -17333,6 +17433,9 @@ msgstr "Zapisz jako widok" msgid "Save Changes" msgstr "Zapisz zmiany" +msgid "Save checkpoint" +msgstr "Zapisz punkt kontrolny" + msgid "Save edits" msgstr "Zapisz zmiany" @@ -17373,9 +17476,21 @@ msgstr "Zapisano" msgid "Saved \"{0}\" as an environment" msgstr "Zapisano \"{0}\" jako środowisko" +msgid "Saved {name}" +msgstr "Zapisano {name}" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "Zapisano {name}, ale nie udało się uruchomić obszaru roboczego konfiguracji: {reason}" + msgid "Saved to Downloads" msgstr "Zapisano w Pobranych" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "Zapisuje ten obszar roboczy w obecnym stanie, ze wszystkim, co jest w nim zainstalowane. Nowe obszary robocze z {name} zaczną od tego punktu kontrolnego. Obszar roboczy na chwilę się zatrzyma podczas zapisywania." + +msgid "Saving a checkpoint to {name}..." +msgstr "Zapisywanie punktu kontrolnego w {name}..." + msgid "Saving as an environment..." msgstr "Zapisywanie jako środowisko..." @@ -17810,9 +17925,6 @@ msgstr "Wybierz agenta" msgid "Select an editor from the dropdown" msgstr "Wybierz edytor z listy" -msgid "Select an environment" -msgstr "Wybierz środowisko" - msgid "Select an organization" msgstr "Wybierz organizację" @@ -17993,6 +18105,12 @@ msgstr "Wysyłanie…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "Wyśle {0} znaków kontekstu terminala (około {1} tokenów) do {2}." +msgid "Sensitive" +msgstr "Poufne" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "Wartości poufne są szyfrowane i po zapisaniu nie można ich wyświetlić." + msgid "Sent" msgstr "Wysłano" @@ -18068,9 +18186,6 @@ msgstr "Sesje" msgid "Sessions · top {0} by cost" msgstr "Sesje · top {0} wg kosztu" -msgid "Set" -msgstr "Ustawiona" - msgid "Set a notification schedule" msgstr "Ustaw harmonogram powiadomień" @@ -18113,6 +18228,9 @@ msgstr "Skonfiguruj host przez SSH" msgid "Set up an automation" msgstr "Skonfiguruj automatyzację" +msgid "Set up Environment" +msgstr "Skonfiguruj środowisko" + msgid "Set up once" msgstr "Skonfiguruj raz" @@ -18666,9 +18784,6 @@ msgstr "Sześć poziomów autonomii fabryki" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "Sześć poziomów autonomii fabryki, bramki między nimi i nasza prognoza, jak daleko zaprowadzi nas 2026. Spisane teraz, żeby można nas było później ocenić." -msgid "size" -msgstr "Rozmiar" - msgid "Size" msgstr "Wielkość" @@ -18693,6 +18808,9 @@ msgstr "Odcień skóry" msgid "Skip" msgstr "Pomiń" +msgid "Skip & save" +msgstr "Pomiń i zapisz" + msgid "Skip All" msgstr "Pomiń wszystkie" @@ -19093,6 +19211,9 @@ msgstr "Rozpocznij nowy czat" msgid "Start a session" msgstr "Uruchom sesję" +msgid "Start agent" +msgstr "Uruchom agenta" + msgid "Start agents on events or a schedule" msgstr "Uruchamiaj agentów zdarzeniami lub według harmonogramu" @@ -21292,6 +21413,10 @@ msgstr "Dwie ręce" msgid "Type" msgstr "Typ" +msgctxt "sort order" +msgid "Type" +msgstr "Typ" + msgid "Type @linear in any prompt." msgstr "Wpisz @linear w dowolnym prompcie." @@ -21665,6 +21790,9 @@ msgstr "Zaktualizuj usługę hosta na obu komputerach i spróbuj ponownie." msgid "Update the host service on this device and try again." msgstr "Zaktualizuj usługę hosta na tym urządzeniu i spróbuj ponownie." +msgid "Update the value for <0>{key}" +msgstr "Zaktualizuj wartość <0>{key}" + msgid "Update this host to message subagents" msgstr "Zaktualizuj tego hosta, aby wysyłać wiadomości do subagentów" @@ -21681,6 +21809,9 @@ msgstr "Zaktualizowano {0}" msgid "Updated {date}" msgstr "Zaktualizowano {date}" +msgid "Updated {key}" +msgstr "Zaktualizowano {key}" + msgid "Updated {updatedRelative}" msgstr "Zaktualizowano {updatedRelative}" @@ -21899,6 +22030,9 @@ msgstr "użytkownik@host, ssh://użytkownik@host:2222 lub alias z konfiguracji s msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectId nie pasuje do projektu obszaru roboczego" +msgid "Value" +msgstr "Wartość" + msgid "Variables" msgstr "Zmienne" @@ -22892,6 +23026,9 @@ msgstr "Nie masz dostępu do tego terminala." msgid "You don't have permission to remove this member" msgstr "Nie masz uprawnień, aby usunąć tego członka" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "Masz niezapisane zmienne środowiskowe. Czy na pewno chcesz zamknąć?" + msgid "You install and connect once per account." msgstr "Instalujesz i łączysz raz na konto." diff --git a/packages/i18n/locales/pt-BR/messages.po b/packages/i18n/locales/pt-BR/messages.po index a770d3f9d19..9f561b26777 100644 --- a/packages/i18n/locales/pt-BR/messages.po +++ b/packages/i18n/locales/pt-BR/messages.po @@ -984,6 +984,9 @@ msgstr "{count} hosts executam um serviço de host mais antigo que este app" msgid "{count} selected" msgstr "{count} selecionadas" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "{count} variáveis não podem ser salvas. Veja as linhas destacadas" + msgid "{count}/day" msgstr "{count}/dia" @@ -1132,6 +1135,9 @@ msgstr "{lines, plural, one {# linha} other {# linhas}}" msgid "{localHostName} (this device)" msgstr "{localHostName} (este dispositivo)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize} (fora do seu plano)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2109,6 +2115,9 @@ msgstr "adicionar um agente" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "Adicione um ambiente em Configurações antes de criar uma área de trabalho na nuvem" +msgid "Add Another" +msgstr "Adicionar outra" + msgid "Add another account, or disconnect one you no longer use." msgstr "Conecte outra conta ou desconecte uma que você não usa mais." @@ -2136,6 +2145,9 @@ msgstr "Adicionar descrição" msgid "Add description..." msgstr "Adicionar descrição..." +msgid "Add Environment Variable" +msgstr "Adicionar variável de ambiente" + msgid "Add extension" msgstr "Adicionar extensão" @@ -2173,6 +2185,9 @@ msgstr "Adicionar mais…" msgid "Add one from the menu in the sidebar to get started." msgstr "Adicione um pelo menu da barra lateral para começar." +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "Adicione uma ou mais variáveis de ambiente. Você também pode arrastar e soltar um arquivo .env." + msgid "Add people" msgstr "Adicionar pessoas" @@ -2284,9 +2299,18 @@ msgstr "{added} adicionado" msgid "Added {added} files to {where}" msgstr "{added} arquivos adicionados a {where}" +msgid "Added {addedOn}" +msgstr "Adicionada em {addedOn}" + msgid "Added {bought} GB-hours." msgstr "{bought} GB-horas adicionadas." +msgid "Added {count} environment variables" +msgstr "{count} variáveis de ambiente adicionadas" + +msgid "Added {key}" +msgstr "{key} adicionada" + msgid "Added 1 file to {where}" msgstr "1 arquivo adicionado a {where}" @@ -2781,6 +2805,9 @@ msgstr "Saiba sempre qual agente precisa de você, com notificações que levam msgid "An agent completes multi-file changes end to end." msgstr "Um agente conclui mudanças em vários arquivos de ponta a ponta." +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "Um agente configura este ambiente em um workspace na nuvem (cerca de 20 minutos ou mais): instala as dependências, escreve a configuração e pede os segredos necessários. Interrompa a qualquer momento ou assuma no workspace para concluir a configuração você mesmo." + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "Um agente escreve funções e arquivos inteiros enquanto uma pessoa acompanha cada passo e aprova cada comando. Um agente, uma pessoa. Mais rápido, mas ainda serial." @@ -4381,6 +4408,9 @@ msgstr "Checkpoint · antes da refatoração dos tooltips" msgid "Checkpoint saved {0}" msgstr "Checkpoint salvo {0}" +msgid "Checkpoint saved to {name}" +msgstr "Checkpoint salvo em {name}" + msgid "Checks" msgstr "Verificações" @@ -4622,6 +4652,9 @@ msgstr "Clique aqui se não for redirecionado" msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "Clique em “↑ update” para ver a confirmação antes da atualização" +msgid "Click to copy" +msgstr "Clique para copiar" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "Clique para copiar o ID da sessão (retome com `claude --resume `)." @@ -5816,6 +5849,9 @@ msgstr "Não foi possível copiar o link" msgid "Could not create cloud workspace" msgstr "Não foi possível criar a área de trabalho na nuvem" +msgid "Could not create environment" +msgstr "Não foi possível criar o ambiente" + msgid "Could not create project" msgstr "Não foi possível criar o projeto" @@ -7407,6 +7443,9 @@ msgstr "Descartar as alterações?" msgid "Discard recording" msgstr "Descartar gravação" +msgid "Discard unsaved changes?" +msgstr "Descartar alterações não salvas?" + msgid "Discarded" msgstr "Descartado" @@ -7812,6 +7851,9 @@ msgstr "{name} ×{tier} conquistado" msgid "Edit" msgstr "Editar" +msgid "Edit {selectedName}" +msgstr "Editar {selectedName}" + msgid "Edit Channel Name" msgstr "Editar nome do canal" @@ -7824,8 +7866,8 @@ msgstr "Editar descrição" msgid "Edit Description" msgstr "Editar descrição" -msgid "Edit environment" -msgstr "Editar ambiente" +msgid "Edit Environment Variable" +msgstr "Editar variável de ambiente" msgid "Edit files without asking; ask before commands" msgstr "Editar arquivos sem perguntar; perguntar antes de comandos" @@ -8016,6 +8058,9 @@ msgstr "Digite um número inteiro" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "Digite um número inteiro de {minHours} a {maxHours} GB-horas." +msgid "Enter new value" +msgstr "Digite um novo valor" + msgid "Enter this code when OpenAI asks for it:" msgstr "Digite este código quando o OpenAI pedir:" @@ -8046,6 +8091,9 @@ msgstr "Preparo de ambiente, testes instáveis e encanamento de credenciais, os msgid "Environment Variables" msgstr "Variáveis de ambiente" +msgid "Environment's size" +msgstr "Tamanho do ambiente" + msgid "Environments" msgstr "Ambientes" @@ -8477,6 +8525,9 @@ msgstr "Falha ao excluir a conta" msgid "Failed to delete automation" msgstr "Falha ao excluir a automação" +msgid "Failed to delete environment variable" +msgstr "Não foi possível excluir a variável de ambiente" + msgid "Failed to delete host" msgstr "Falha ao excluir o host" @@ -8595,6 +8646,9 @@ msgstr "Não foi possível publicar a resposta" msgid "Failed to push branch" msgstr "Falha ao fazer push da branch" +msgid "Failed to read file." +msgstr "Não foi possível ler o arquivo." + msgid "Failed to record page version" msgstr "Falha ao registrar a versão da página" @@ -8688,6 +8742,9 @@ msgstr "Falha ao executar o comando da área de trabalho" msgid "Failed to save" msgstr "Falha ao salvar" +msgid "Failed to save environment variables" +msgstr "Não foi possível salvar as variáveis de ambiente" + msgid "Failed to save installation. Please try again." msgstr "Falha ao salvar a instalação. Tente novamente." @@ -8754,6 +8811,9 @@ msgstr "Falha ao atualizar o avatar" msgid "Failed to update branch prefix" msgstr "Falha ao atualizar o prefixo de branch" +msgid "Failed to update environment variable" +msgstr "Não foi possível atualizar a variável de ambiente" + msgid "Failed to update hooks" msgstr "Falha ao atualizar os hooks" @@ -8898,6 +8958,9 @@ msgstr "Modo de abertura de arquivos" msgid "File opens when the workspace wakes up" msgstr "O arquivo abre quando a área de trabalho for ativada" +msgid "File too large. Maximum size is 256 KB." +msgstr "Arquivo muito grande. O tamanho máximo é 256 KB." + msgid "File viewer" msgstr "Visualizador de arquivos" @@ -10195,6 +10258,9 @@ msgstr "Finge ser outra pessoa" msgid "Import" msgstr "Importar" +msgid "Import .env" +msgstr "Importar .env" + msgid "import a folder" msgstr "importar uma pasta" @@ -10936,6 +11002,9 @@ msgstr "O novo arquivo foi mantido, ele mudou depois de criado" msgid "Kept the new folder because it is no longer empty" msgstr "A nova pasta foi mantida, ela não está mais vazia" +msgid "Key" +msgstr "Chave" + msgid "Key dates" msgstr "Datas importantes" @@ -11081,6 +11150,9 @@ msgstr "Visto pela última vez: {lastSeen}" msgid "Last updated" msgstr "Última atualização" +msgid "Last Updated" +msgstr "Última atualização" + msgid "Last updated on {date}" msgstr "Última atualização em {date}" @@ -11671,9 +11743,6 @@ msgstr "Recursos da máquina" msgid "Machine size" msgstr "Tamanho da máquina" -msgid "Machine size: {label}" -msgstr "Tamanho da máquina: {label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "Áreas de trabalho na nuvem sem máquina fixa, que sobem em segundos e podem ser compartilhadas com o time." @@ -11731,6 +11800,9 @@ msgstr "Gerenciar contas…" msgid "Manage billing" msgstr "Gerenciar faturamento" +msgid "Manage environment" +msgstr "Gerenciar ambiente" + msgid "Manage environments" msgstr "Gerenciar ambientes" @@ -12358,6 +12430,10 @@ msgstr "Maquinista Misterioso" msgid "Name" msgstr "Nome" +msgctxt "sort order" +msgid "Name" +msgstr "Nome" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "Nome e um slug amigável para URL. Os dois podem mudar depois." @@ -12708,6 +12784,9 @@ msgstr "Nenhuma área de trabalho ativa" msgid "No agent" msgstr "Nenhum agente" +msgid "No agent is available to set up the environment" +msgstr "Nenhum agente disponível para configurar o ambiente" + msgid "No agent is configured on this host" msgstr "Nenhum agente está configurado neste host" @@ -12856,6 +12935,9 @@ msgstr "Nenhum download ainda" msgid "No emoji found" msgstr "Nenhum emoji encontrado" +msgid "No environment variables yet" +msgstr "Ainda não há variáveis de ambiente" + msgid "No environments available" msgstr "Nenhum ambiente disponível" @@ -13012,6 +13094,9 @@ msgstr "Nenhum pull request correspondente" msgid "No matching tasks" msgstr "Nenhuma tarefa correspondente" +msgid "No matching variables" +msgstr "Nenhuma variável correspondente" + msgid "No MCP servers found" msgstr "Nenhum servidor MCP encontrado" @@ -13319,8 +13404,8 @@ msgstr "Nenhum projeto v1 encontrado neste dispositivo." msgid "No v1 terminal scripts found." msgstr "Nenhum script de terminal v1 encontrado." -msgid "No variables set yet." -msgstr "Nenhuma variável definida ainda." +msgid "No valid environment variables found in file" +msgstr "Nenhuma variável de ambiente válida encontrada no arquivo" msgid "No versions yet" msgstr "Nenhuma versão ainda" @@ -13717,6 +13802,9 @@ msgstr "Um plugin. Todos os agentes de código." msgid "One step left" msgstr "Falta um passo" +msgid "One variable can't be saved. See the highlighted row" +msgstr "Uma variável não pode ser salva. Veja a linha destacada" + msgid "online" msgstr "online" @@ -14372,6 +14460,9 @@ msgstr "Opcional. Nos ajuda a entender o que funciona." msgid "Options" msgstr "Opções" +msgid "or paste .env contents in Key input" +msgstr "ou cole o conteúdo de um .env no campo Chave" + msgid "Orange" msgstr "Laranja" @@ -14402,6 +14493,9 @@ msgstr "Organização {id}" msgid "Organization created successfully!" msgstr "Organização criada com sucesso!" +msgid "Organization default ({defaultName})" +msgstr "Padrão da organização ({defaultName})" + msgid "Organization deleted" msgstr "Organização excluída" @@ -15062,8 +15156,8 @@ msgstr "Escolha a nova pasta do projeto em {hostName}." msgid "Pick the project worktree folder on {hostName}." msgstr "Escolha a pasta de worktrees do projeto em {hostName}." -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "Escolha os repositórios que ele obtém. Um agente nesta máquina descobre o que instalar e o coloca para rodar na nuvem." +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "Escolha os repositórios que ele baixa. Um agente em um workspace na nuvem descobre o que instalar e coloca tudo para funcionar." msgid "Pick the worktree folder on {hostName}." msgstr "Escolha a pasta das worktrees em {hostName}." @@ -15167,6 +15261,9 @@ msgstr "Selecione uma organização" msgid "Please try again, or restart Paradev on that device." msgstr "Tente novamente ou reinicie o Paradev nesse dispositivo." +msgid "Please upload a valid .env file." +msgstr "Envie um arquivo .env válido." + msgid "Plugin" msgstr "Plugin" @@ -17321,6 +17418,9 @@ msgstr "Salvar" msgid "Save & create workspace" msgstr "Salvar e criar a área de trabalho" +msgid "Save a checkpoint to {name}?" +msgstr "Salvar um checkpoint em {name}?" + msgid "Save All" msgstr "Salvar tudo" @@ -17333,6 +17433,9 @@ msgstr "Salvar como visualização" msgid "Save Changes" msgstr "Salvar alterações" +msgid "Save checkpoint" +msgstr "Salvar checkpoint" + msgid "Save edits" msgstr "Salvar as edições" @@ -17373,9 +17476,21 @@ msgstr "Salvo" msgid "Saved \"{0}\" as an environment" msgstr "\"{0}\" salvo como ambiente" +msgid "Saved {name}" +msgstr "{name} salvo" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "{name} salvo, mas não foi possível iniciar o workspace de configuração: {reason}" + msgid "Saved to Downloads" msgstr "Salvo em Downloads" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "Salva este workspace como está agora, com tudo o que está instalado nele. Novos workspaces de {name} começam a partir deste checkpoint. O workspace para por um momento enquanto salva." + +msgid "Saving a checkpoint to {name}..." +msgstr "Salvando um checkpoint em {name}..." + msgid "Saving as an environment..." msgstr "Salvando como ambiente..." @@ -17810,9 +17925,6 @@ msgstr "Selecione um agente" msgid "Select an editor from the dropdown" msgstr "Selecione um editor no menu" -msgid "Select an environment" -msgstr "Selecione um ambiente" - msgid "Select an organization" msgstr "Selecione uma organização" @@ -17993,6 +18105,12 @@ msgstr "Enviando…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "Envia {0} caracteres de contexto do terminal (cerca de {1} tokens) para {2}." +msgid "Sensitive" +msgstr "Sensível" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "Valores sensíveis são criptografados e não podem ser exibidos depois de salvos." + msgid "Sent" msgstr "Enviado" @@ -18068,9 +18186,6 @@ msgstr "Sessões" msgid "Sessions · top {0} by cost" msgstr "Sessões · top {0} por custo" -msgid "Set" -msgstr "Definida" - msgid "Set a notification schedule" msgstr "Definir um horário de notificações" @@ -18113,6 +18228,9 @@ msgstr "Configurar um host via SSH" msgid "Set up an automation" msgstr "Configure uma automação" +msgid "Set up Environment" +msgstr "Configurar ambiente" + msgid "Set up once" msgstr "Configure uma vez" @@ -18666,9 +18784,6 @@ msgstr "Seis níveis de autonomia da fábrica" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "Seis níveis de autonomia da fábrica, os portões entre eles e nossa previsão de até onde 2026 nos leva. Escrito agora para você poder nos cobrar depois." -msgid "size" -msgstr "Tamanho" - msgid "Size" msgstr "Tamanho" @@ -18693,6 +18808,9 @@ msgstr "Tom de pele" msgid "Skip" msgstr "Pular" +msgid "Skip & save" +msgstr "Pular e salvar" + msgid "Skip All" msgstr "Pular tudo" @@ -19093,6 +19211,9 @@ msgstr "Iniciar um novo chat" msgid "Start a session" msgstr "Iniciar uma sessão" +msgid "Start agent" +msgstr "Iniciar agente" + msgid "Start agents on events or a schedule" msgstr "Inicie agentes por eventos ou por agenda" @@ -21292,6 +21413,10 @@ msgstr "Duas mãos" msgid "Type" msgstr "Tipo" +msgctxt "sort order" +msgid "Type" +msgstr "Tipo" + msgid "Type @linear in any prompt." msgstr "Digite @linear em qualquer prompt." @@ -21665,6 +21790,9 @@ msgstr "Atualize o serviço de host nos dois computadores e tente novamente." msgid "Update the host service on this device and try again." msgstr "Atualize o serviço de host neste dispositivo e tente novamente." +msgid "Update the value for <0>{key}" +msgstr "Atualize o valor de <0>{key}" + msgid "Update this host to message subagents" msgstr "Atualize este host para enviar mensagens aos subagentes" @@ -21681,6 +21809,9 @@ msgstr "Atualizado {0}" msgid "Updated {date}" msgstr "Atualizado em {date}" +msgid "Updated {key}" +msgstr "{key} atualizada" + msgid "Updated {updatedRelative}" msgstr "Atualizado {updatedRelative}" @@ -21899,6 +22030,9 @@ msgstr "usuário@host, ssh://usuário@host:2222 ou um alias da configuração do msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectId não corresponde ao projeto da área de trabalho" +msgid "Value" +msgstr "Valor" + msgid "Variables" msgstr "Variáveis" @@ -22892,6 +23026,9 @@ msgstr "Você não tem acesso a este terminal." msgid "You don't have permission to remove this member" msgstr "Você não tem permissão para remover este membro" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "Você tem variáveis de ambiente não salvas. Tem certeza de que deseja fechar?" + msgid "You install and connect once per account." msgstr "Você instala e conecta uma vez por conta." diff --git a/packages/i18n/locales/ru/messages.po b/packages/i18n/locales/ru/messages.po index 107df76b124..b3c27748b04 100644 --- a/packages/i18n/locales/ru/messages.po +++ b/packages/i18n/locales/ru/messages.po @@ -984,6 +984,9 @@ msgstr "{count} хостов работают на более старой ве msgid "{count} selected" msgstr "Выбрано: {count}" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "Нельзя сохранить переменные ({count}). См. выделенные строки" + msgid "{count}/day" msgstr "{count}/день" @@ -1132,6 +1135,9 @@ msgstr "{lines, plural, one {# строка} few {# строки} many {# стр msgid "{localHostName} (this device)" msgstr "{localHostName} (это устройство)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize} (нет в вашем тарифе)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2109,6 +2115,9 @@ msgstr "добавить агента" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "Добавьте окружение в Настройках, прежде чем создавать облачную рабочую область" +msgid "Add Another" +msgstr "Добавить ещё" + msgid "Add another account, or disconnect one you no longer use." msgstr "Подключите ещё аккаунт или отключите тот, которым больше не пользуетесь." @@ -2136,6 +2145,9 @@ msgstr "Добавить описание" msgid "Add description..." msgstr "Добавьте описание..." +msgid "Add Environment Variable" +msgstr "Добавить переменную окружения" + msgid "Add extension" msgstr "Добавить расширение" @@ -2173,6 +2185,9 @@ msgstr "Добавить ещё…" msgid "Add one from the menu in the sidebar to get started." msgstr "Добавьте агента из меню в боковой панели, чтобы начать." +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "Добавьте одну или несколько переменных окружения. Можно также перетащить файл .env." + msgid "Add people" msgstr "Добавить людей" @@ -2284,9 +2299,18 @@ msgstr "Добавлено: {added}" msgid "Added {added} files to {where}" msgstr "В {where} добавлено файлов: {added}" +msgid "Added {addedOn}" +msgstr "Добавлено {addedOn}" + msgid "Added {bought} GB-hours." msgstr "Добавлено {bought} ГБ-часов." +msgid "Added {count} environment variables" +msgstr "Добавлено переменных окружения: {count}" + +msgid "Added {key}" +msgstr "{key} добавлено" + msgid "Added 1 file to {where}" msgstr "В {where} добавлен 1 файл" @@ -2781,6 +2805,9 @@ msgstr "Всегда знайте, какому агенту вы нужны: у msgid "An agent completes multi-file changes end to end." msgstr "Агент выполняет изменения в нескольких файлах от начала до конца." +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "Агент настроит это окружение в облачном рабочем пространстве (около 20 минут или дольше): установит зависимости, запишет конфигурацию и запросит нужные секреты. Его можно прервать в любой момент или продолжить работу в рабочем пространстве и завершить настройку самостоятельно." + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "Агент пишет целые функции и файлы, а человек следит за каждым шагом и одобряет каждую команду. Один агент, один человек. Быстрее, но всё ещё последовательно." @@ -4381,6 +4408,9 @@ msgstr "Контрольная точка · до рефакторинга toolt msgid "Checkpoint saved {0}" msgstr "Контрольная точка сохранена {0}" +msgid "Checkpoint saved to {name}" +msgstr "Контрольная точка сохранена в {name}" + msgid "Checks" msgstr "Проверки" @@ -4622,6 +4652,9 @@ msgstr "Нажмите здесь, если переход не произошё msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "Нажмите «↑ update», чтобы увидеть подтверждение перед обновлением" +msgid "Click to copy" +msgstr "Нажмите, чтобы скопировать" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "Нажмите, чтобы скопировать ID сессии (возобновление: `claude --resume `)." @@ -5816,6 +5849,9 @@ msgstr "Не удалось скопировать ссылку" msgid "Could not create cloud workspace" msgstr "Не удалось создать облачную рабочую область" +msgid "Could not create environment" +msgstr "Не удалось создать окружение" + msgid "Could not create project" msgstr "Не удалось создать проект" @@ -7407,6 +7443,9 @@ msgstr "Отменить изменения?" msgid "Discard recording" msgstr "Удалить запись" +msgid "Discard unsaved changes?" +msgstr "Отменить несохранённые изменения?" + msgid "Discarded" msgstr "Изменения отменены" @@ -7812,6 +7851,9 @@ msgstr "Получено: {name} ×{tier}" msgid "Edit" msgstr "Изменить" +msgid "Edit {selectedName}" +msgstr "Изменить {selectedName}" + msgid "Edit Channel Name" msgstr "Изменить название канала" @@ -7824,8 +7866,8 @@ msgstr "Изменить описание" msgid "Edit Description" msgstr "Изменить описание" -msgid "Edit environment" -msgstr "Изменить окружение" +msgid "Edit Environment Variable" +msgstr "Изменить переменную окружения" msgid "Edit files without asking; ask before commands" msgstr "Править файлы без вопросов; спрашивать перед командами" @@ -8016,6 +8058,9 @@ msgstr "Введите целое число" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "Введите целое число от {minHours} до {maxHours} ГБ-часов." +msgid "Enter new value" +msgstr "Введите новое значение" + msgid "Enter this code when OpenAI asks for it:" msgstr "Введите этот код, когда OpenAI попросит:" @@ -8046,6 +8091,9 @@ msgstr "Настройка окружения, нестабильные тест msgid "Environment Variables" msgstr "Переменные окружения" +msgid "Environment's size" +msgstr "Размер окружения" + msgid "Environments" msgstr "Окружения" @@ -8477,6 +8525,9 @@ msgstr "Не удалось удалить аккаунт" msgid "Failed to delete automation" msgstr "Не удалось удалить автоматизацию" +msgid "Failed to delete environment variable" +msgstr "Не удалось удалить переменную окружения" + msgid "Failed to delete host" msgstr "Не удалось удалить хост" @@ -8595,6 +8646,9 @@ msgstr "Не удалось отправить ответ" msgid "Failed to push branch" msgstr "Не удалось отправить ветку" +msgid "Failed to read file." +msgstr "Не удалось прочитать файл." + msgid "Failed to record page version" msgstr "Не удалось записать версию страницы" @@ -8688,6 +8742,9 @@ msgstr "Не удалось выполнить команду рабочей о msgid "Failed to save" msgstr "Не удалось сохранить" +msgid "Failed to save environment variables" +msgstr "Не удалось сохранить переменные окружения" + msgid "Failed to save installation. Please try again." msgstr "Не удалось сохранить установку. Попробуйте ещё раз." @@ -8754,6 +8811,9 @@ msgstr "Не удалось обновить аватар" msgid "Failed to update branch prefix" msgstr "Не удалось обновить префикс ветки" +msgid "Failed to update environment variable" +msgstr "Не удалось обновить переменную окружения" + msgid "Failed to update hooks" msgstr "Не удалось обновить хуки" @@ -8898,6 +8958,9 @@ msgstr "Режим открытия файлов" msgid "File opens when the workspace wakes up" msgstr "Файл откроется, когда рабочая область проснётся" +msgid "File too large. Maximum size is 256 KB." +msgstr "Файл слишком большой. Максимальный размер — 256 КБ." + msgid "File viewer" msgstr "Просмотрщик файлов" @@ -10195,6 +10258,9 @@ msgstr "Выдаёт себя за другого" msgid "Import" msgstr "Импортировать" +msgid "Import .env" +msgstr "Импортировать .env" + msgid "import a folder" msgstr "импортировать папку" @@ -10936,6 +11002,9 @@ msgstr "Новый файл сохранён, он изменился после msgid "Kept the new folder because it is no longer empty" msgstr "Новая папка сохранена, она больше не пуста" +msgid "Key" +msgstr "Ключ" + msgid "Key dates" msgstr "Ключевые даты" @@ -11081,6 +11150,9 @@ msgstr "Последний раз в сети: {lastSeen}" msgid "Last updated" msgstr "Обновлено" +msgid "Last Updated" +msgstr "Последнее обновление" + msgid "Last updated on {date}" msgstr "Обновлено {date}" @@ -11671,9 +11743,6 @@ msgstr "Ресурсы машины" msgid "Machine size" msgstr "Размер машины" -msgid "Machine size: {label}" -msgstr "Размер машины: {label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "Облачные рабочие области, не привязанные к машине: поднимаются за секунды, и ими можно делиться с коллегами." @@ -11731,6 +11800,9 @@ msgstr "Управление аккаунтами…" msgid "Manage billing" msgstr "Управление оплатой" +msgid "Manage environment" +msgstr "Управлять окружением" + msgid "Manage environments" msgstr "Управлять окружениями" @@ -12358,6 +12430,10 @@ msgstr "Загадочный станочник" msgid "Name" msgstr "Название" +msgctxt "sort order" +msgid "Name" +msgstr "Название" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "Название и slug для URL. Оба можно изменить позже." @@ -12708,6 +12784,9 @@ msgstr "Нет активных рабочих областей" msgid "No agent" msgstr "Без агента" +msgid "No agent is available to set up the environment" +msgstr "Нет агента, который может настроить окружение" + msgid "No agent is configured on this host" msgstr "На этом хосте не настроен ни один агент" @@ -12856,6 +12935,9 @@ msgstr "Загрузок пока нет" msgid "No emoji found" msgstr "Эмодзи не найдены" +msgid "No environment variables yet" +msgstr "Переменных окружения пока нет" + msgid "No environments available" msgstr "Нет доступных окружений" @@ -13012,6 +13094,9 @@ msgstr "Нет подходящих пул-реквестов" msgid "No matching tasks" msgstr "Нет подходящих задач" +msgid "No matching variables" +msgstr "Нет подходящих переменных" + msgid "No MCP servers found" msgstr "Серверы MCP не найдены" @@ -13319,8 +13404,8 @@ msgstr "На этом устройстве не найдено проектов msgid "No v1 terminal scripts found." msgstr "Скрипты терминала v1 не найдены." -msgid "No variables set yet." -msgstr "Переменные пока не заданы." +msgid "No valid environment variables found in file" +msgstr "В файле не найдено корректных переменных окружения" msgid "No versions yet" msgstr "Версий пока нет" @@ -13717,6 +13802,9 @@ msgstr "Один плагин. Любой агент для программир msgid "One step left" msgstr "Остался один шаг" +msgid "One variable can't be saved. See the highlighted row" +msgstr "Одну переменную нельзя сохранить. См. выделенную строку" + msgid "online" msgstr "онлайн" @@ -14372,6 +14460,9 @@ msgstr "Необязательно. Помогает понять, что раб msgid "Options" msgstr "Параметры" +msgid "or paste .env contents in Key input" +msgstr "или вставьте содержимое .env в поле «Ключ»" + msgid "Orange" msgstr "Оранжевый" @@ -14402,6 +14493,9 @@ msgstr "Организация {id}" msgid "Organization created successfully!" msgstr "Организация успешно создана!" +msgid "Organization default ({defaultName})" +msgstr "По умолчанию для организации ({defaultName})" + msgid "Organization deleted" msgstr "Организация удалена" @@ -15062,8 +15156,8 @@ msgstr "Выберите новую папку проекта на {hostName}." msgid "Pick the project worktree folder on {hostName}." msgstr "Выберите папку worktree проекта на {hostName}." -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "Выберите репозитории, которые оно получает. Агент на этом компьютере разберётся, что установить, и запустит всё в облаке." +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "Выберите репозитории для загрузки. Агент в облачном рабочем пространстве определит, что установить, и запустит окружение." msgid "Pick the worktree folder on {hostName}." msgstr "Выберите папку worktree на {hostName}." @@ -15167,6 +15261,9 @@ msgstr "Выберите организацию" msgid "Please try again, or restart Paradev on that device." msgstr "Попробуйте ещё раз или перезапустите Paradev на этом устройстве." +msgid "Please upload a valid .env file." +msgstr "Загрузите корректный файл .env." + msgid "Plugin" msgstr "Плагин" @@ -17321,6 +17418,9 @@ msgstr "Сохранить" msgid "Save & create workspace" msgstr "Сохранить и создать рабочую область" +msgid "Save a checkpoint to {name}?" +msgstr "Сохранить контрольную точку в {name}?" + msgid "Save All" msgstr "Сохранить всё" @@ -17333,6 +17433,9 @@ msgstr "Сохранить как вид" msgid "Save Changes" msgstr "Сохранить изменения" +msgid "Save checkpoint" +msgstr "Сохранить контрольную точку" + msgid "Save edits" msgstr "Сохранить правки" @@ -17373,9 +17476,21 @@ msgstr "Сохранено" msgid "Saved \"{0}\" as an environment" msgstr "«{0}» сохранено как окружение" +msgid "Saved {name}" +msgstr "{name} сохранено" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "{name} сохранено, но не удалось запустить рабочее пространство для настройки: {reason}" + msgid "Saved to Downloads" msgstr "Сохранено в «Загрузки»" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "Сохраняет это рабочее пространство в текущем виде со всем, что в нём установлено. Новые рабочие пространства из {name} будут начинаться с этой контрольной точки. Во время сохранения рабочее пространство ненадолго остановится." + +msgid "Saving a checkpoint to {name}..." +msgstr "Сохранение контрольной точки в {name}..." + msgid "Saving as an environment..." msgstr "Сохранение как среда..." @@ -17810,9 +17925,6 @@ msgstr "Выберите агента" msgid "Select an editor from the dropdown" msgstr "Выберите редактор из списка" -msgid "Select an environment" -msgstr "Выберите окружение" - msgid "Select an organization" msgstr "Выберите организацию" @@ -17993,6 +18105,12 @@ msgstr "Отправка…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "Отправит {0} символов контекста терминала (примерно {1} токенов) агенту {2}." +msgid "Sensitive" +msgstr "Конфиденциально" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "Конфиденциальные значения шифруются, и после сохранения их нельзя показать." + msgid "Sent" msgstr "Отправлено" @@ -18068,9 +18186,6 @@ msgstr "Сессии" msgid "Sessions · top {0} by cost" msgstr "Сессии · топ {0} по стоимости" -msgid "Set" -msgstr "Задана" - msgid "Set a notification schedule" msgstr "Задать расписание уведомлений" @@ -18113,6 +18228,9 @@ msgstr "Настроить хост по SSH" msgid "Set up an automation" msgstr "Настройте автоматизацию" +msgid "Set up Environment" +msgstr "Настроить окружение" + msgid "Set up once" msgstr "Настройте один раз" @@ -18666,9 +18784,6 @@ msgstr "Шесть уровней автономности фабрики" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "Шесть уровней автономности фабрики, шлюзы между ними и наш прогноз, как далеко нас заведёт 2026 год. Записано сейчас, чтобы потом вы могли выставить нам оценку." -msgid "size" -msgstr "Размер" - msgid "Size" msgstr "Размер" @@ -18693,6 +18808,9 @@ msgstr "Оттенок кожи" msgid "Skip" msgstr "Пропустить" +msgid "Skip & save" +msgstr "Пропустить и сохранить" + msgid "Skip All" msgstr "Пропустить всё" @@ -19093,6 +19211,9 @@ msgstr "Начать новый чат" msgid "Start a session" msgstr "Запустить сессию" +msgid "Start agent" +msgstr "Запустить агента" + msgid "Start agents on events or a schedule" msgstr "Запускайте агентов по событиям или по расписанию" @@ -21292,6 +21413,10 @@ msgstr "Две руки" msgid "Type" msgstr "Тип" +msgctxt "sort order" +msgid "Type" +msgstr "Тип" + msgid "Type @linear in any prompt." msgstr "Напишите @linear в любом промпте." @@ -21665,6 +21790,9 @@ msgstr "Обновите службу хоста на обоих компьют msgid "Update the host service on this device and try again." msgstr "Обновите службу хоста на этом устройстве и повторите попытку." +msgid "Update the value for <0>{key}" +msgstr "Обновите значение <0>{key}" + msgid "Update this host to message subagents" msgstr "Обновите этот хост, чтобы писать субагентам" @@ -21681,6 +21809,9 @@ msgstr "Обновлено {0}" msgid "Updated {date}" msgstr "Обновлено {date}" +msgid "Updated {key}" +msgstr "{key} обновлено" + msgid "Updated {updatedRelative}" msgstr "Обновлено {updatedRelative}" @@ -21899,6 +22030,9 @@ msgstr "user@host, ssh://user@host:2222 или псевдоним из конф msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectId не совпадает с проектом рабочей области" +msgid "Value" +msgstr "Значение" + msgid "Variables" msgstr "Переменные" @@ -22892,6 +23026,9 @@ msgstr "У вас нет доступа к этому терминалу." msgid "You don't have permission to remove this member" msgstr "У вас нет прав удалить этого участника" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "У вас есть несохранённые переменные окружения. Точно закрыть?" + msgid "You install and connect once per account." msgstr "Установка и подключение выполняются один раз на аккаунт." diff --git a/packages/i18n/locales/tr/messages.po b/packages/i18n/locales/tr/messages.po index 6e6579448e4..51b8eec7e95 100644 --- a/packages/i18n/locales/tr/messages.po +++ b/packages/i18n/locales/tr/messages.po @@ -984,6 +984,9 @@ msgstr "{count} ana makine bu uygulamadan daha eski bir ana makine hizmeti çal msgid "{count} selected" msgstr "{count} seçildi" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "{count} değişken kaydedilemiyor. Vurgulanan satırlara bakın" + msgid "{count}/day" msgstr "{count}/gün" @@ -1132,6 +1135,9 @@ msgstr "{lines, plural, one {# satır} other {# satır}}" msgid "{localHostName} (this device)" msgstr "{localHostName} (bu cihaz)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize} (planınızda yok)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2109,6 +2115,9 @@ msgstr "ajan ekleme" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "Bulut çalışma alanı oluşturmadan önce Ayarlar'da bir ortam ekleyin" +msgid "Add Another" +msgstr "Bir tane daha ekle" + msgid "Add another account, or disconnect one you no longer use." msgstr "Başka bir hesap bağla ya da artık kullanmadığın birini kaldır." @@ -2136,6 +2145,9 @@ msgstr "Açıklama Ekle" msgid "Add description..." msgstr "Açıklama ekleyin..." +msgid "Add Environment Variable" +msgstr "Ortam değişkeni ekle" + msgid "Add extension" msgstr "Uzantı ekle" @@ -2173,6 +2185,9 @@ msgstr "Daha fazla ekle…" msgid "Add one from the menu in the sidebar to get started." msgstr "Başlamak için kenar çubuğundaki menüden bir tane ekleyin." +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "Bir veya daha fazla ortam değişkeni ekleyin. Bir .env dosyasını sürükleyip bırakabilirsiniz." + msgid "Add people" msgstr "Kişi ekle" @@ -2284,9 +2299,18 @@ msgstr "{added} eklendi" msgid "Added {added} files to {where}" msgstr "{where} konumuna {added} dosya eklendi" +msgid "Added {addedOn}" +msgstr "{addedOn} tarihinde eklendi" + msgid "Added {bought} GB-hours." msgstr "{bought} GB-saat eklendi." +msgid "Added {count} environment variables" +msgstr "{count} ortam değişkeni eklendi" + +msgid "Added {key}" +msgstr "{key} eklendi" + msgid "Added 1 file to {where}" msgstr "{where} konumuna 1 dosya eklendi" @@ -2781,6 +2805,9 @@ msgstr "Doğrudan engellenen ajana bağlanan bildirimlerle, hangi ajanın size i msgid "An agent completes multi-file changes end to end." msgstr "Bir ajan, çok dosyalı değişiklikleri baştan sona tamamlar." +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "Bir ajan bu ortamı bir bulut çalışma alanında kurar (yaklaşık 20 dakika veya daha uzun): bağımlılıkları yükler, kurulum yapılandırmasını yazar ve gereken gizli değerleri sorar. İstediğiniz an durdurabilir veya çalışma alanında devralıp kurulumu kendiniz bitirebilirsiniz." + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "Bir ajan tüm fonksiyonları ve dosyaları yazarken bir insan her adımı izler ve her komutu onaylar. Bir ajan, bir insan. Daha hızlı, ama hâlâ sıralı." @@ -4381,6 +4408,9 @@ msgstr "Kontrol noktası · tooltip yeniden düzenlemesinden önce" msgid "Checkpoint saved {0}" msgstr "Kontrol noktası kaydedildi {0}" +msgid "Checkpoint saved to {name}" +msgstr "Kontrol noktası {name} ortamına kaydedildi" + msgid "Checks" msgstr "Kontroller" @@ -4622,6 +4652,9 @@ msgstr "Yönlendirilmediyseniz buraya tıklayın" msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "Güncelleme öncesi onayı görmek için “↑ update” düğmesine tıklayın" +msgid "Click to copy" +msgstr "Kopyalamak için tıklayın" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "Oturum kimliğini kopyalamak için tıklayın (`claude --resume ` ile sürdürün)." @@ -5816,6 +5849,9 @@ msgstr "Bağlantı kopyalanamadı" msgid "Could not create cloud workspace" msgstr "Bulut çalışma alanı oluşturulamadı" +msgid "Could not create environment" +msgstr "Ortam oluşturulamadı" + msgid "Could not create project" msgstr "Proje oluşturulamadı" @@ -7407,6 +7443,9 @@ msgstr "Değişiklikler atılsın mı?" msgid "Discard recording" msgstr "Kaydı at" +msgid "Discard unsaved changes?" +msgstr "Kaydedilmemiş değişiklikler atılsın mı?" + msgid "Discarded" msgstr "Atıldı" @@ -7812,6 +7851,9 @@ msgstr "{name} ×{tier} kazanıldı" msgid "Edit" msgstr "Düzenle" +msgid "Edit {selectedName}" +msgstr "{selectedName} ortamını düzenle" + msgid "Edit Channel Name" msgstr "Kanal Adını Düzenle" @@ -7824,8 +7866,8 @@ msgstr "Açıklamayı düzenle" msgid "Edit Description" msgstr "Açıklamayı Düzenle" -msgid "Edit environment" -msgstr "Ortamı düzenle" +msgid "Edit Environment Variable" +msgstr "Ortam değişkenini düzenle" msgid "Edit files without asking; ask before commands" msgstr "Dosyaları sormadan düzenle; komutlardan önce sor" @@ -8016,6 +8058,9 @@ msgstr "Bir tam sayı girin" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "{minHours} ile {maxHours} GB-saat arasında tam sayı girin." +msgid "Enter new value" +msgstr "Yeni değer girin" + msgid "Enter this code when OpenAI asks for it:" msgstr "OpenAI istediğinde bu kodu girin:" @@ -8046,6 +8091,9 @@ msgstr "Ortam kurulumu, kararsız testler ve kimlik bilgisi tesisatı, yani 2025 msgid "Environment Variables" msgstr "Ortam değişkenleri" +msgid "Environment's size" +msgstr "Ortamın boyutu" + msgid "Environments" msgstr "Ortamlar" @@ -8477,6 +8525,9 @@ msgstr "Hesap silinemedi" msgid "Failed to delete automation" msgstr "Otomasyon silinemedi" +msgid "Failed to delete environment variable" +msgstr "Ortam değişkeni silinemedi" + msgid "Failed to delete host" msgstr "Ana makine silinemedi" @@ -8595,6 +8646,9 @@ msgstr "Yanıt gönderilemedi" msgid "Failed to push branch" msgstr "Dal push edilemedi" +msgid "Failed to read file." +msgstr "Dosya okunamadı." + msgid "Failed to record page version" msgstr "Sayfa sürümü kaydedilemedi" @@ -8688,6 +8742,9 @@ msgstr "Çalışma alanı komutu çalıştırılamadı" msgid "Failed to save" msgstr "Kaydedilemedi" +msgid "Failed to save environment variables" +msgstr "Ortam değişkenleri kaydedilemedi" + msgid "Failed to save installation. Please try again." msgstr "Kurulum kaydedilemedi. Lütfen yeniden deneyin." @@ -8754,6 +8811,9 @@ msgstr "Avatar güncellenemedi" msgid "Failed to update branch prefix" msgstr "Dal ön eki güncellenemedi" +msgid "Failed to update environment variable" +msgstr "Ortam değişkeni güncellenemedi" + msgid "Failed to update hooks" msgstr "Hook'lar güncellenemedi" @@ -8898,6 +8958,9 @@ msgstr "Dosya açma modu" msgid "File opens when the workspace wakes up" msgstr "Dosya, çalışma alanı uyandığında açılır" +msgid "File too large. Maximum size is 256 KB." +msgstr "Dosya çok büyük. En fazla 256 KB olabilir." + msgid "File viewer" msgstr "Dosya görüntüleyici" @@ -10195,6 +10258,9 @@ msgstr "Başkasının kimliğine bürünüyor" msgid "Import" msgstr "İçe aktar" +msgid "Import .env" +msgstr ".env içe aktar" + msgid "import a folder" msgstr "klasör içe aktarma" @@ -10936,6 +11002,9 @@ msgstr "Yeni dosya korundu, oluşturulduktan sonra değişti" msgid "Kept the new folder because it is no longer empty" msgstr "Yeni klasör korundu, artık boş değil" +msgid "Key" +msgstr "Anahtar" + msgid "Key dates" msgstr "Önemli tarihler" @@ -11081,6 +11150,9 @@ msgstr "Son görülme: {lastSeen}" msgid "Last updated" msgstr "Son güncelleme" +msgid "Last Updated" +msgstr "Son güncelleme" + msgid "Last updated on {date}" msgstr "Son güncelleme: {date}" @@ -11671,9 +11743,6 @@ msgstr "Makine kaynakları" msgid "Machine size" msgstr "Makine boyutu" -msgid "Machine size: {label}" -msgstr "Makine boyutu: {label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "Saniyeler içinde açılan ve takım arkadaşlarınızla paylaşılabilen, makineye bağlı olmayan bulut çalışma alanları." @@ -11731,6 +11800,9 @@ msgstr "Hesapları yönet…" msgid "Manage billing" msgstr "Faturalandırmayı yönet" +msgid "Manage environment" +msgstr "Ortamı yönet" + msgid "Manage environments" msgstr "Ortamları yönet" @@ -12358,6 +12430,10 @@ msgstr "Gizemli Makinist" msgid "Name" msgstr "Ad" +msgctxt "sort order" +msgid "Name" +msgstr "Ad" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "Bir ad ve URL dostu bir slug. İkisi de sonradan değiştirilebilir." @@ -12708,6 +12784,9 @@ msgstr "Etkin çalışma alanı yok" msgid "No agent" msgstr "Ajan yok" +msgid "No agent is available to set up the environment" +msgstr "Ortamı kurmak için kullanılabilir ajan yok" + msgid "No agent is configured on this host" msgstr "Bu ana makinede yapılandırılmış bir ajan yok" @@ -12856,6 +12935,9 @@ msgstr "Henüz indirme yok" msgid "No emoji found" msgstr "Emoji bulunamadı" +msgid "No environment variables yet" +msgstr "Henüz ortam değişkeni yok" + msgid "No environments available" msgstr "Kullanılabilir ortam yok" @@ -13012,6 +13094,9 @@ msgstr "Eşleşen pull request yok" msgid "No matching tasks" msgstr "Eşleşen görev yok" +msgid "No matching variables" +msgstr "Eşleşen değişken yok" + msgid "No MCP servers found" msgstr "MCP sunucusu bulunamadı" @@ -13319,8 +13404,8 @@ msgstr "Bu cihazda v1 projesi bulunamadı." msgid "No v1 terminal scripts found." msgstr "v1 terminal betiği bulunamadı." -msgid "No variables set yet." -msgstr "Henüz değişken ayarlanmadı." +msgid "No valid environment variables found in file" +msgstr "Dosyada geçerli ortam değişkeni bulunamadı" msgid "No versions yet" msgstr "Henüz sürüm yok" @@ -13717,6 +13802,9 @@ msgstr "Tek eklenti. Her kodlama ajanı." msgid "One step left" msgstr "Bir adım kaldı" +msgid "One variable can't be saved. See the highlighted row" +msgstr "Bir değişken kaydedilemiyor. Vurgulanan satıra bakın" + msgid "online" msgstr "çevrimiçi" @@ -14372,6 +14460,9 @@ msgstr "İsteğe bağlı. Neyin işe yaradığını anlamamıza yardımcı olur. msgid "Options" msgstr "Seçenekler" +msgid "or paste .env contents in Key input" +msgstr "veya .env içeriğini Anahtar alanına yapıştırın" + msgid "Orange" msgstr "Turuncu" @@ -14402,6 +14493,9 @@ msgstr "{id} kuruluşu" msgid "Organization created successfully!" msgstr "Kuruluş oluşturuldu!" +msgid "Organization default ({defaultName})" +msgstr "Kuruluş varsayılanı ({defaultName})" + msgid "Organization deleted" msgstr "Kuruluş silindi" @@ -15062,8 +15156,8 @@ msgstr "{hostName} üzerindeki yeni proje klasörünü seçin." msgid "Pick the project worktree folder on {hostName}." msgstr "{hostName} üzerindeki proje worktree klasörünü seçin." -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "Alacağı depoları seçin. Bu makinedeki bir ajan neyin kurulacağını bulur ve bulutta çalıştırır." +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "Alınacak depoları seçin. Bulut çalışma alanındaki bir ajan neyin kurulacağını belirler ve çalışır hale getirir." msgid "Pick the worktree folder on {hostName}." msgstr "{hostName} üzerindeki worktree klasörünü seçin." @@ -15167,6 +15261,9 @@ msgstr "Lütfen bir kuruluş seçin" msgid "Please try again, or restart Paradev on that device." msgstr "Lütfen tekrar deneyin veya o cihazda Paradev’i yeniden başlatın." +msgid "Please upload a valid .env file." +msgstr "Lütfen geçerli bir .env dosyası yükleyin." + msgid "Plugin" msgstr "Eklenti" @@ -17321,6 +17418,9 @@ msgstr "Kaydet" msgid "Save & create workspace" msgstr "Kaydet ve çalışma alanı oluştur" +msgid "Save a checkpoint to {name}?" +msgstr "{name} ortamına kontrol noktası kaydedilsin mi?" + msgid "Save All" msgstr "Tümünü kaydet" @@ -17333,6 +17433,9 @@ msgstr "Görünüm olarak kaydet" msgid "Save Changes" msgstr "Değişiklikleri Kaydet" +msgid "Save checkpoint" +msgstr "Kontrol noktası kaydet" + msgid "Save edits" msgstr "Düzenlemeleri kaydet" @@ -17373,9 +17476,21 @@ msgstr "Kaydedildi" msgid "Saved \"{0}\" as an environment" msgstr "\"{0}\" ortam olarak kaydedildi" +msgid "Saved {name}" +msgstr "{name} kaydedildi" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "{name} kaydedildi, ancak kurulum çalışma alanı başlatılamadı: {reason}" + msgid "Saved to Downloads" msgstr "İndirilenler klasörüne kaydedildi" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "Bu çalışma alanını, içine kurulan her şeyle birlikte şu anki haliyle kaydeder. {name} ortamından açılan yeni çalışma alanları bu kontrol noktasından başlar. Kaydederken çalışma alanı kısa bir süre durur." + +msgid "Saving a checkpoint to {name}..." +msgstr "{name} ortamına kontrol noktası kaydediliyor..." + msgid "Saving as an environment..." msgstr "Ortam olarak kaydediliyor..." @@ -17810,9 +17925,6 @@ msgstr "Bir ajan seçin" msgid "Select an editor from the dropdown" msgstr "Açılır menüden bir düzenleyici seçin" -msgid "Select an environment" -msgstr "Bir ortam seçin" - msgid "Select an organization" msgstr "Bir kuruluş seçin" @@ -17993,6 +18105,12 @@ msgstr "Gönderiliyor…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "{2} ajanına {0} karakterlik terminal bağlamı (yaklaşık {1} token) gönderir." +msgid "Sensitive" +msgstr "Hassas" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "Hassas değerler şifrelenir ve kaydedildikten sonra gösterilemez." + msgid "Sent" msgstr "Gönderildi" @@ -18068,9 +18186,6 @@ msgstr "Oturumlar" msgid "Sessions · top {0} by cost" msgstr "Oturumlar · maliyete göre ilk {0}" -msgid "Set" -msgstr "Ayarlandı" - msgid "Set a notification schedule" msgstr "Bildirim programı ayarla" @@ -18113,6 +18228,9 @@ msgstr "SSH ile host kur" msgid "Set up an automation" msgstr "Bir otomasyon kur" +msgid "Set up Environment" +msgstr "Ortamı kur" + msgid "Set up once" msgstr "Bir kez kurun" @@ -18666,9 +18784,6 @@ msgstr "Altı fabrika otonomi düzeyi" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "Altı fabrika otonomi düzeyi, aralarındaki eşikler ve 2026'nın bizi ne kadar ileri götüreceğine dair öngörümüz. Sonradan bizi notlandırabilesiniz diye şimdi yazıldı." -msgid "size" -msgstr "Boyut" - msgid "Size" msgstr "Boyut" @@ -18693,6 +18808,9 @@ msgstr "Ten Rengi" msgid "Skip" msgstr "Atla" +msgid "Skip & save" +msgstr "Atla ve kaydet" + msgid "Skip All" msgstr "Tümünü atla" @@ -19093,6 +19211,9 @@ msgstr "Yeni sohbet başlat" msgid "Start a session" msgstr "Bir oturum başlat" +msgid "Start agent" +msgstr "Ajanı başlat" + msgid "Start agents on events or a schedule" msgstr "Ajanları olaylarla veya zamanlamayla başlatın" @@ -21292,6 +21413,10 @@ msgstr "İki el" msgid "Type" msgstr "Tür" +msgctxt "sort order" +msgid "Type" +msgstr "Tür" + msgid "Type @linear in any prompt." msgstr "Herhangi bir prompt'a @linear yazın." @@ -21665,6 +21790,9 @@ msgstr "Her iki bilgisayardaki host hizmetini güncelleyip yeniden deneyin." msgid "Update the host service on this device and try again." msgstr "Bu cihazdaki host hizmetini güncelleyip yeniden deneyin." +msgid "Update the value for <0>{key}" +msgstr "<0>{key} değerini güncelleyin" + msgid "Update this host to message subagents" msgstr "Alt ajanlara mesaj göndermek için bu ana makineyi güncelleyin" @@ -21681,6 +21809,9 @@ msgstr "{0} güncellendi" msgid "Updated {date}" msgstr "Güncelleme: {date}" +msgid "Updated {key}" +msgstr "{key} güncellendi" + msgid "Updated {updatedRelative}" msgstr "Güncelleme {updatedRelative}" @@ -21899,6 +22030,9 @@ msgstr "kullanıcı@host, ssh://kullanıcı@host:2222 veya bir ssh yapılandırm msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectId, çalışma alanının projesiyle eşleşmiyor" +msgid "Value" +msgstr "Değer" + msgid "Variables" msgstr "Değişkenler" @@ -22892,6 +23026,9 @@ msgstr "Bu terminale erişiminiz yok." msgid "You don't have permission to remove this member" msgstr "Bu üyeyi kaldırma izniniz yok" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "Kaydedilmemiş ortam değişkenleriniz var. Kapatmak istediğinizden emin misiniz?" + msgid "You install and connect once per account." msgstr "Kurulumu ve bağlantıyı hesap başına bir kez yaparsınız." diff --git a/packages/i18n/locales/uk/messages.po b/packages/i18n/locales/uk/messages.po index f51145825a5..e9a044e3761 100644 --- a/packages/i18n/locales/uk/messages.po +++ b/packages/i18n/locales/uk/messages.po @@ -978,6 +978,9 @@ msgstr "Хостів зі старішою службою хоста, ніж у msgid "{count} selected" msgstr "Вибрано: {count}" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "Не можна зберегти змінні ({count}). Див. виділені рядки" + msgid "{count}/day" msgstr "{count}/день" @@ -1126,6 +1129,9 @@ msgstr "{lines, plural, one {# рядок} few {# рядки} many {# рядкі msgid "{localHostName} (this device)" msgstr "{localHostName} (цей пристрій)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize} (немає у вашому тарифі)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2103,6 +2109,9 @@ msgstr "додати агента" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "Перш ніж створювати хмарний робочий простір, додайте середовище в налаштуваннях" +msgid "Add Another" +msgstr "Додати ще" + msgid "Add another account, or disconnect one you no longer use." msgstr "Додайте ще один обліковий запис або від'єднайте той, яким більше не користуєтеся." @@ -2130,6 +2139,9 @@ msgstr "Додати опис" msgid "Add description..." msgstr "Додайте опис..." +msgid "Add Environment Variable" +msgstr "Додати змінну середовища" + msgid "Add extension" msgstr "Додати розширення" @@ -2167,6 +2179,9 @@ msgstr "Додати ще…" msgid "Add one from the menu in the sidebar to get started." msgstr "Додайте агента з меню на бічній панелі, щоб почати." +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "Додайте одну або кілька змінних середовища. Можна також перетягнути файл .env." + msgid "Add people" msgstr "Додати людей" @@ -2278,9 +2293,18 @@ msgstr "Додано {added}" msgid "Added {added} files to {where}" msgstr "У {where} додано файлів: {added}" +msgid "Added {addedOn}" +msgstr "Додано {addedOn}" + msgid "Added {bought} GB-hours." msgstr "Додано {bought} ГБ-год." +msgid "Added {count} environment variables" +msgstr "Додано змінних середовища: {count}" + +msgid "Added {key}" +msgstr "{key} додано" + msgid "Added 1 file to {where}" msgstr "У {where} додано 1 файл" @@ -2775,6 +2799,9 @@ msgstr "Завжди знайте, якому агенту ви потрібні msgid "An agent completes multi-file changes end to end." msgstr "Агент повністю виконує зміни в кількох файлах." +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "Агент налаштує це середовище в хмарному робочому просторі (близько 20 хвилин або довше): встановить залежності, запише конфігурацію й попросить потрібні секрети. Його можна перервати будь-коли або продовжити роботу в робочому просторі й завершити налаштування самостійно." + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "Агент пише цілі функції й файли, а людина стежить за кожним кроком і схвалює кожну команду. Один агент, одна людина. Швидше, але все ще послідовно." @@ -4375,6 +4402,9 @@ msgstr "Контрольна точка · до рефакторингу під msgid "Checkpoint saved {0}" msgstr "Контрольну точку збережено {0}" +msgid "Checkpoint saved to {name}" +msgstr "Контрольну точку збережено в {name}" + msgid "Checks" msgstr "Перевірки" @@ -4616,6 +4646,9 @@ msgstr "Натисніть тут, якщо переспрямування не msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "Натисніть «↑ update», щоб побачити підтвердження перед оновленням" +msgid "Click to copy" +msgstr "Натисніть, щоб скопіювати" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "Натисніть, щоб скопіювати ID сеансу (відновлення: `claude --resume `)." @@ -5810,6 +5843,9 @@ msgstr "Не вдалося скопіювати посилання" msgid "Could not create cloud workspace" msgstr "Не вдалося створити хмарний робочий простір" +msgid "Could not create environment" +msgstr "Не вдалося створити середовище" + msgid "Could not create project" msgstr "Не вдалося створити проєкт" @@ -7401,6 +7437,9 @@ msgstr "Відкинути зміни?" msgid "Discard recording" msgstr "Відкинути запис" +msgid "Discard unsaved changes?" +msgstr "Скасувати незбережені зміни?" + msgid "Discarded" msgstr "Відкинуто" @@ -7806,6 +7845,9 @@ msgstr "Отримано: {name} ×{tier}" msgid "Edit" msgstr "Редагувати" +msgid "Edit {selectedName}" +msgstr "Редагувати {selectedName}" + msgid "Edit Channel Name" msgstr "Змінити назву каналу" @@ -7818,8 +7860,8 @@ msgstr "Редагувати опис" msgid "Edit Description" msgstr "Редагувати опис" -msgid "Edit environment" -msgstr "Редагувати середовище" +msgid "Edit Environment Variable" +msgstr "Редагувати змінну середовища" msgid "Edit files without asking; ask before commands" msgstr "Редагувати файли без запиту; питати перед командами" @@ -8010,6 +8052,9 @@ msgstr "Введіть ціле число" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "Введіть ціле число від {minHours} до {maxHours} ГБ-годин." +msgid "Enter new value" +msgstr "Введіть нове значення" + msgid "Enter this code when OpenAI asks for it:" msgstr "Введіть цей код, коли OpenAI попросить:" @@ -8040,6 +8085,9 @@ msgstr "Налаштування середовища, нестабільні т msgid "Environment Variables" msgstr "Змінні середовища" +msgid "Environment's size" +msgstr "Розмір середовища" + msgid "Environments" msgstr "Середовища" @@ -8471,6 +8519,9 @@ msgstr "Не вдалося видалити обліковий запис" msgid "Failed to delete automation" msgstr "Не вдалося видалити автоматизацію" +msgid "Failed to delete environment variable" +msgstr "Не вдалося видалити змінну середовища" + msgid "Failed to delete host" msgstr "Не вдалося видалити хост" @@ -8589,6 +8640,9 @@ msgstr "Не вдалося надіслати відповідь" msgid "Failed to push branch" msgstr "Не вдалося запушити гілку" +msgid "Failed to read file." +msgstr "Не вдалося прочитати файл." + msgid "Failed to record page version" msgstr "Не вдалося записати версію сторінки" @@ -8682,6 +8736,9 @@ msgstr "Не вдалося виконати команду робочого п msgid "Failed to save" msgstr "Не вдалося зберегти" +msgid "Failed to save environment variables" +msgstr "Не вдалося зберегти змінні середовища" + msgid "Failed to save installation. Please try again." msgstr "Не вдалося зберегти встановлення. Спробуйте ще раз." @@ -8748,6 +8805,9 @@ msgstr "Не вдалося оновити аватар" msgid "Failed to update branch prefix" msgstr "Не вдалося оновити префікс гілки" +msgid "Failed to update environment variable" +msgstr "Не вдалося оновити змінну середовища" + msgid "Failed to update hooks" msgstr "Не вдалося оновити хуки" @@ -8892,6 +8952,9 @@ msgstr "Режим відкриття файлів" msgid "File opens when the workspace wakes up" msgstr "Файл відкриється, коли робочий простір прокинеться" +msgid "File too large. Maximum size is 256 KB." +msgstr "Файл завеликий. Максимальний розмір — 256 КБ." + msgid "File viewer" msgstr "Переглядач файлів" @@ -10189,6 +10252,9 @@ msgstr "Видає себе за іншу особу" msgid "Import" msgstr "Імпортувати" +msgid "Import .env" +msgstr "Імпортувати .env" + msgid "import a folder" msgstr "імпортувати папку" @@ -10930,6 +10996,9 @@ msgstr "Новий файл збережено, він змінився післ msgid "Kept the new folder because it is no longer empty" msgstr "Нову папку збережено, вона вже не порожня" +msgid "Key" +msgstr "Ключ" + msgid "Key dates" msgstr "Ключові дати" @@ -11075,6 +11144,9 @@ msgstr "Востаннє в мережі {lastSeen}" msgid "Last updated" msgstr "Останнє оновлення" +msgid "Last Updated" +msgstr "Останнє оновлення" + msgid "Last updated on {date}" msgstr "Востаннє оновлено {date}" @@ -11665,9 +11737,6 @@ msgstr "Ресурси машини" msgid "Machine size" msgstr "Розмір машини" -msgid "Machine size: {label}" -msgstr "Розмір машини: {label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "Хмарні робочі простори без прив'язки до машини, які запускаються за секунди й якими можна ділитися з колегами." @@ -11725,6 +11794,9 @@ msgstr "Керувати обліковими записами…" msgid "Manage billing" msgstr "Керувати оплатою" +msgid "Manage environment" +msgstr "Керувати середовищем" + msgid "Manage environments" msgstr "Керувати середовищами" @@ -12352,6 +12424,10 @@ msgstr "Таємничий верстатник" msgid "Name" msgstr "Назва" +msgctxt "sort order" +msgid "Name" +msgstr "Назва" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "Назва й slug для URL. Обидва можна змінити пізніше." @@ -12702,6 +12778,9 @@ msgstr "Немає активних робочих просторів" msgid "No agent" msgstr "Без агента" +msgid "No agent is available to set up the environment" +msgstr "Немає агента, який може налаштувати середовище" + msgid "No agent is configured on this host" msgstr "На цьому хості не налаштовано жодного агента" @@ -12850,6 +12929,9 @@ msgstr "Завантажень ще немає" msgid "No emoji found" msgstr "Емодзі не знайдено" +msgid "No environment variables yet" +msgstr "Змінних середовища ще немає" + msgid "No environments available" msgstr "Немає доступних середовищ" @@ -13006,6 +13088,9 @@ msgstr "Немає відповідних пул-реквестів" msgid "No matching tasks" msgstr "Немає відповідних завдань" +msgid "No matching variables" +msgstr "Немає відповідних змінних" + msgid "No MCP servers found" msgstr "MCP-серверів не знайдено" @@ -13313,8 +13398,8 @@ msgstr "На цьому пристрої не знайдено проєктів msgid "No v1 terminal scripts found." msgstr "Скриптів термінала v1 не знайдено." -msgid "No variables set yet." -msgstr "Змінних ще не задано." +msgid "No valid environment variables found in file" +msgstr "У файлі не знайдено коректних змінних середовища" msgid "No versions yet" msgstr "Версій ще немає" @@ -13711,6 +13796,9 @@ msgstr "Один плагін. Кожен кодинг-агент." msgid "One step left" msgstr "Залишився один крок" +msgid "One variable can't be saved. See the highlighted row" +msgstr "Одну змінну не можна зберегти. Див. виділений рядок" + msgid "online" msgstr "онлайн" @@ -14366,6 +14454,9 @@ msgstr "Необов'язково. Допомагає нам зрозуміти, msgid "Options" msgstr "Параметри" +msgid "or paste .env contents in Key input" +msgstr "або вставте вміст .env у поле «Ключ»" + msgid "Orange" msgstr "Помаранчевий" @@ -14396,6 +14487,9 @@ msgstr "Організація {id}" msgid "Organization created successfully!" msgstr "Організацію успішно створено!" +msgid "Organization default ({defaultName})" +msgstr "Типове для організації ({defaultName})" + msgid "Organization deleted" msgstr "Організацію видалено" @@ -15056,8 +15150,8 @@ msgstr "Виберіть нову папку проєкту на {hostName}." msgid "Pick the project worktree folder on {hostName}." msgstr "Виберіть папку worktree проєкту на {hostName}." -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "Виберіть репозиторії, які воно клонує. Агент на цьому комп'ютері з'ясує, що встановити, і запустить усе в хмарі." +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "Виберіть репозиторії для завантаження. Агент у хмарному робочому просторі визначить, що встановити, і запустить середовище." msgid "Pick the worktree folder on {hostName}." msgstr "Виберіть папку worktree на {hostName}." @@ -15161,6 +15255,9 @@ msgstr "Виберіть організацію" msgid "Please try again, or restart Paradev on that device." msgstr "Спробуйте ще раз або перезапустіть Paradev на тому пристрої." +msgid "Please upload a valid .env file." +msgstr "Завантажте коректний файл .env." + msgid "Plugin" msgstr "Плагін" @@ -17315,6 +17412,9 @@ msgstr "Зберегти" msgid "Save & create workspace" msgstr "Зберегти й створити робочий простір" +msgid "Save a checkpoint to {name}?" +msgstr "Зберегти контрольну точку в {name}?" + msgid "Save All" msgstr "Зберегти все" @@ -17327,6 +17427,9 @@ msgstr "Зберегти як подання" msgid "Save Changes" msgstr "Зберегти зміни" +msgid "Save checkpoint" +msgstr "Зберегти контрольну точку" + msgid "Save edits" msgstr "Зберегти правки" @@ -17367,9 +17470,21 @@ msgstr "Збережено" msgid "Saved \"{0}\" as an environment" msgstr "«{0}» збережено як середовище" +msgid "Saved {name}" +msgstr "{name} збережено" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "{name} збережено, але не вдалося запустити робочий простір для налаштування: {reason}" + msgid "Saved to Downloads" msgstr "Збережено в «Завантаження»" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "Зберігає цей робочий простір у поточному стані з усім, що в ньому встановлено. Нові робочі простори з {name} починатимуться з цієї контрольної точки. Під час збереження робочий простір ненадовго зупиниться." + +msgid "Saving a checkpoint to {name}..." +msgstr "Збереження контрольної точки в {name}..." + msgid "Saving as an environment..." msgstr "Збереження як середовища..." @@ -17804,9 +17919,6 @@ msgstr "Виберіть агента" msgid "Select an editor from the dropdown" msgstr "Виберіть редактор зі списку" -msgid "Select an environment" -msgstr "Виберіть середовище" - msgid "Select an organization" msgstr "Виберіть організацію" @@ -17987,6 +18099,12 @@ msgstr "Надсилання…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "Надсилає агенту {2} контекст термінала: символів — {0}, токенів — приблизно {1}." +msgid "Sensitive" +msgstr "Конфіденційно" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "Конфіденційні значення шифруються, і після збереження їх не можна показати." + msgid "Sent" msgstr "Надіслано" @@ -18062,9 +18180,6 @@ msgstr "Сеанси" msgid "Sessions · top {0} by cost" msgstr "Сеанси · топ-{0} за вартістю" -msgid "Set" -msgstr "Задано" - msgid "Set a notification schedule" msgstr "Задати розклад сповіщень" @@ -18107,6 +18222,9 @@ msgstr "Налаштувати хост через SSH" msgid "Set up an automation" msgstr "Налаштуйте автоматизацію" +msgid "Set up Environment" +msgstr "Налаштувати середовище" + msgid "Set up once" msgstr "Налаштуйте один раз" @@ -18660,9 +18778,6 @@ msgstr "Шість рівнів автономності фабрики" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "Шість рівнів автономності фабрики, пороги між ними та наш прогноз того, як далеко ми просунемося у 2026 році. Записуємо зараз, щоб пізніше ви могли нас оцінити." -msgid "size" -msgstr "Розмір" - msgid "Size" msgstr "Розмір" @@ -18687,6 +18802,9 @@ msgstr "Тон шкіри" msgid "Skip" msgstr "Пропустити" +msgid "Skip & save" +msgstr "Пропустити й зберегти" + msgid "Skip All" msgstr "Пропустити все" @@ -19087,6 +19205,9 @@ msgstr "Почати новий чат" msgid "Start a session" msgstr "Почати сеанс" +msgid "Start agent" +msgstr "Запустити агента" + msgid "Start agents on events or a schedule" msgstr "Запускайте агентів за подіями або за розкладом" @@ -21286,6 +21407,10 @@ msgstr "Дві руки" msgid "Type" msgstr "Тип" +msgctxt "sort order" +msgid "Type" +msgstr "Тип" + msgid "Type @linear in any prompt." msgstr "Введіть @linear у будь-якому промпті." @@ -21659,6 +21784,9 @@ msgstr "Оновіть хост-службу на обох комп’ютера msgid "Update the host service on this device and try again." msgstr "Оновіть хост-службу на цьому пристрої та спробуйте ще раз." +msgid "Update the value for <0>{key}" +msgstr "Оновіть значення <0>{key}" + msgid "Update this host to message subagents" msgstr "Оновіть цей хост, щоб надсилати повідомлення субагентам" @@ -21675,6 +21803,9 @@ msgstr "Оновлено {0}" msgid "Updated {date}" msgstr "Оновлено {date}" +msgid "Updated {key}" +msgstr "{key} оновлено" + msgid "Updated {updatedRelative}" msgstr "Оновлено {updatedRelative}" @@ -21893,6 +22024,9 @@ msgstr "user@host, ssh://user@host:2222 або аліас із конфігур msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectId не відповідає проєкту робочого простору" +msgid "Value" +msgstr "Значення" + msgid "Variables" msgstr "Змінні" @@ -22886,6 +23020,9 @@ msgstr "У вас немає доступу до цього термінала." msgid "You don't have permission to remove this member" msgstr "У вас немає дозволу видалити цього учасника" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "У вас є незбережені змінні середовища. Справді закрити?" + msgid "You install and connect once per account." msgstr "Встановлення й підключення виконуються один раз для кожного облікового запису." diff --git a/packages/i18n/locales/vi/messages.po b/packages/i18n/locales/vi/messages.po index 774b21c0c70..740fb62c7ef 100644 --- a/packages/i18n/locales/vi/messages.po +++ b/packages/i18n/locales/vi/messages.po @@ -984,6 +984,9 @@ msgstr "{count} máy chủ đang chạy dịch vụ máy chủ cũ hơn ứng d msgid "{count} selected" msgstr "Đã chọn {count}" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "Không thể lưu {count} biến. Xem các dòng được đánh dấu" + msgid "{count}/day" msgstr "{count}/ngày" @@ -1132,6 +1135,9 @@ msgstr "{lines, plural, other {# dòng}}" msgid "{localHostName} (this device)" msgstr "{localHostName} (thiết bị này)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize} (không có trong gói của bạn)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2109,6 +2115,9 @@ msgstr "thêm một agent" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "Thêm một environment trong Settings trước khi tạo workspace cloud" +msgid "Add Another" +msgstr "Thêm biến khác" + msgid "Add another account, or disconnect one you no longer use." msgstr "Kết nối tài khoản khác, hoặc ngắt tài khoản bạn không còn dùng." @@ -2136,6 +2145,9 @@ msgstr "Thêm mô tả" msgid "Add description..." msgstr "Thêm mô tả..." +msgid "Add Environment Variable" +msgstr "Thêm biến môi trường" + msgid "Add extension" msgstr "Thêm tiện ích" @@ -2173,6 +2185,9 @@ msgstr "Thêm nữa…" msgid "Add one from the menu in the sidebar to get started." msgstr "Thêm một agent từ menu ở thanh bên để bắt đầu." +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "Thêm một hoặc nhiều biến môi trường. Bạn cũng có thể kéo thả tệp .env." + msgid "Add people" msgstr "Thêm người" @@ -2284,9 +2299,18 @@ msgstr "Đã thêm {added}" msgid "Added {added} files to {where}" msgstr "Đã thêm {added} tệp vào {where}" +msgid "Added {addedOn}" +msgstr "Đã thêm {addedOn}" + msgid "Added {bought} GB-hours." msgstr "Đã thêm {bought} GB-giờ." +msgid "Added {count} environment variables" +msgstr "Đã thêm {count} biến môi trường" + +msgid "Added {key}" +msgstr "Đã thêm {key}" + msgid "Added 1 file to {where}" msgstr "Đã thêm 1 tệp vào {where}" @@ -2781,6 +2805,9 @@ msgstr "Luôn biết agent nào cần bạn, với thông báo dẫn thẳng t msgid "An agent completes multi-file changes end to end." msgstr "Agent hoàn thành trọn vẹn các thay đổi trên nhiều tệp." +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "Một agent sẽ thiết lập environment này trong một workspace trên cloud (khoảng 20 phút trở lên): cài đặt dependency, viết cấu hình thiết lập và hỏi các secret cần thiết. Bạn có thể dừng bất cứ lúc nào, hoặc tiếp quản trong workspace để tự hoàn tất thiết lập." + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "Agent viết nguyên hàm và nguyên tệp trong khi con người theo dõi từng bước và duyệt từng lệnh. Một agent, một người. Nhanh hơn, nhưng vẫn tuần tự." @@ -4381,6 +4408,9 @@ msgstr "Checkpoint · trước khi refactor tooltip" msgid "Checkpoint saved {0}" msgstr "Đã lưu checkpoint {0}" +msgid "Checkpoint saved to {name}" +msgstr "Đã lưu checkpoint vào {name}" + msgid "Checks" msgstr "Check" @@ -4622,6 +4652,9 @@ msgstr "Nhấp vào đây nếu không được chuyển hướng" msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "Nhấp vào nút “↑ update” để xem xác nhận trước khi cập nhật" +msgid "Click to copy" +msgstr "Nhấp để sao chép" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "Nhấp để sao chép ID phiên (resume bằng `claude --resume `)." @@ -5816,6 +5849,9 @@ msgstr "Không thể sao chép liên kết" msgid "Could not create cloud workspace" msgstr "Không thể tạo workspace trên cloud" +msgid "Could not create environment" +msgstr "Không thể tạo môi trường" + msgid "Could not create project" msgstr "Không thể tạo dự án" @@ -7407,6 +7443,9 @@ msgstr "Bỏ thay đổi?" msgid "Discard recording" msgstr "Bỏ bản ghi" +msgid "Discard unsaved changes?" +msgstr "Bỏ các thay đổi chưa lưu?" + msgid "Discarded" msgstr "Đã bỏ" @@ -7812,6 +7851,9 @@ msgstr "Đã đạt {name} ×{tier}" msgid "Edit" msgstr "Sửa" +msgid "Edit {selectedName}" +msgstr "Chỉnh sửa {selectedName}" + msgid "Edit Channel Name" msgstr "Sửa tên kênh" @@ -7824,8 +7866,8 @@ msgstr "Sửa mô tả" msgid "Edit Description" msgstr "Sửa mô tả" -msgid "Edit environment" -msgstr "Chỉnh sửa environment" +msgid "Edit Environment Variable" +msgstr "Sửa biến môi trường" msgid "Edit files without asking; ask before commands" msgstr "Sửa tệp không cần hỏi; hỏi trước khi chạy lệnh" @@ -8016,6 +8058,9 @@ msgstr "Nhập một số nguyên" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "Nhập số nguyên từ {minHours} đến {maxHours} GB-giờ." +msgid "Enter new value" +msgstr "Nhập giá trị mới" + msgid "Enter this code when OpenAI asks for it:" msgstr "Nhập mã này khi OpenAI yêu cầu:" @@ -8046,6 +8091,9 @@ msgstr "Thiết lập môi trường, test chập chờn và việc đấu nối msgid "Environment Variables" msgstr "Biến môi trường" +msgid "Environment's size" +msgstr "Kích thước môi trường" + msgid "Environments" msgstr "Môi trường" @@ -8477,6 +8525,9 @@ msgstr "Không thể xóa tài khoản" msgid "Failed to delete automation" msgstr "Không thể xóa tự động hóa" +msgid "Failed to delete environment variable" +msgstr "Không thể xóa biến môi trường" + msgid "Failed to delete host" msgstr "Không xóa được máy chủ" @@ -8595,6 +8646,9 @@ msgstr "Đăng trả lời thất bại" msgid "Failed to push branch" msgstr "Không thể push nhánh" +msgid "Failed to read file." +msgstr "Không thể đọc tệp." + msgid "Failed to record page version" msgstr "Không thể ghi nhận phiên bản trang" @@ -8688,6 +8742,9 @@ msgstr "Không thể chạy lệnh của workspace" msgid "Failed to save" msgstr "Không thể lưu" +msgid "Failed to save environment variables" +msgstr "Không thể lưu biến môi trường" + msgid "Failed to save installation. Please try again." msgstr "Không thể lưu bản cài đặt. Vui lòng thử lại." @@ -8754,6 +8811,9 @@ msgstr "Không thể cập nhật ảnh đại diện" msgid "Failed to update branch prefix" msgstr "Không thể cập nhật tiền tố nhánh" +msgid "Failed to update environment variable" +msgstr "Không thể cập nhật biến môi trường" + msgid "Failed to update hooks" msgstr "Không thể cập nhật hook" @@ -8898,6 +8958,9 @@ msgstr "Chế độ mở tệp" msgid "File opens when the workspace wakes up" msgstr "Tệp sẽ mở khi workspace thức dậy" +msgid "File too large. Maximum size is 256 KB." +msgstr "Tệp quá lớn. Kích thước tối đa là 256 KB." + msgid "File viewer" msgstr "Trình xem tệp" @@ -10195,6 +10258,9 @@ msgstr "Mạo danh người khác" msgid "Import" msgstr "Nhập" +msgid "Import .env" +msgstr "Nhập .env" + msgid "import a folder" msgstr "nhập một thư mục" @@ -10936,6 +11002,9 @@ msgstr "Đã giữ tệp mới, nó đã thay đổi sau khi được tạo" msgid "Kept the new folder because it is no longer empty" msgstr "Đã giữ thư mục mới, nó không còn rỗng" +msgid "Key" +msgstr "Khóa" + msgid "Key dates" msgstr "Các mốc quan trọng" @@ -11081,6 +11150,9 @@ msgstr "Lần cuối trực tuyến: {lastSeen}" msgid "Last updated" msgstr "Cập nhật lần cuối" +msgid "Last Updated" +msgstr "Cập nhật gần nhất" + msgid "Last updated on {date}" msgstr "Cập nhật lần cuối vào {date}" @@ -11671,9 +11743,6 @@ msgstr "Tài nguyên máy" msgid "Machine size" msgstr "Kích thước máy" -msgid "Machine size: {label}" -msgstr "Kích thước máy: {label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "Workspace trên cloud không phụ thuộc máy, dựng trong vài giây và chia sẻ được với đồng đội." @@ -11731,6 +11800,9 @@ msgstr "Quản lý tài khoản…" msgid "Manage billing" msgstr "Quản lý thanh toán" +msgid "Manage environment" +msgstr "Quản lý environment" + msgid "Manage environments" msgstr "Quản lý environment" @@ -12358,6 +12430,10 @@ msgstr "Thợ máy bí ẩn" msgid "Name" msgstr "Tên" +msgctxt "sort order" +msgid "Name" +msgstr "Tên" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "Tên và một slug thân thiện với URL. Cả hai đều đổi được sau." @@ -12708,6 +12784,9 @@ msgstr "Không có workspace đang hoạt động" msgid "No agent" msgstr "Không có agent" +msgid "No agent is available to set up the environment" +msgstr "Không có agent nào để thiết lập environment" + msgid "No agent is configured on this host" msgstr "Không có tác nhân nào được cấu hình trên máy chủ này" @@ -12856,6 +12935,9 @@ msgstr "Chưa có lượt tải xuống nào" msgid "No emoji found" msgstr "Không tìm thấy emoji" +msgid "No environment variables yet" +msgstr "Chưa có biến môi trường nào" + msgid "No environments available" msgstr "Không có environment nào" @@ -13012,6 +13094,9 @@ msgstr "Không có pull request phù hợp" msgid "No matching tasks" msgstr "Không có tác vụ phù hợp" +msgid "No matching variables" +msgstr "Không có biến phù hợp" + msgid "No MCP servers found" msgstr "Không tìm thấy server MCP" @@ -13319,8 +13404,8 @@ msgstr "Không tìm thấy dự án v1 trên thiết bị này." msgid "No v1 terminal scripts found." msgstr "Không tìm thấy tập lệnh terminal v1." -msgid "No variables set yet." -msgstr "Chưa đặt biến nào." +msgid "No valid environment variables found in file" +msgstr "Không tìm thấy biến môi trường hợp lệ trong tệp" msgid "No versions yet" msgstr "Chưa có phiên bản nào" @@ -13717,6 +13802,9 @@ msgstr "Một plugin. Mọi agent lập trình." msgid "One step left" msgstr "Còn một bước nữa" +msgid "One variable can't be saved. See the highlighted row" +msgstr "Không thể lưu một biến. Xem dòng được đánh dấu" + msgid "online" msgstr "trực tuyến" @@ -14372,6 +14460,9 @@ msgstr "Không bắt buộc. Giúp chúng tôi biết kênh nào hiệu quả." msgid "Options" msgstr "Tùy chọn" +msgid "or paste .env contents in Key input" +msgstr "hoặc dán nội dung .env vào ô Khóa" + msgid "Orange" msgstr "Cam" @@ -14402,6 +14493,9 @@ msgstr "Tổ chức {id}" msgid "Organization created successfully!" msgstr "Đã tạo tổ chức thành công!" +msgid "Organization default ({defaultName})" +msgstr "Mặc định của tổ chức ({defaultName})" + msgid "Organization deleted" msgstr "Đã xóa tổ chức" @@ -15062,8 +15156,8 @@ msgstr "Chọn thư mục dự án mới trên {hostName}." msgid "Pick the project worktree folder on {hostName}." msgstr "Chọn thư mục worktree của dự án trên {hostName}." -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "Chọn các repository mà nó lấy về. Một agent trên máy này sẽ tìm ra cần cài gì và chạy nó trên đám mây." +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "Chọn các repository cần checkout. Một agent trong workspace trên cloud sẽ tìm ra những gì cần cài và giúp mọi thứ chạy được." msgid "Pick the worktree folder on {hostName}." msgstr "Chọn thư mục worktree trên {hostName}." @@ -15167,6 +15261,9 @@ msgstr "Vui lòng chọn một tổ chức" msgid "Please try again, or restart Paradev on that device." msgstr "Vui lòng thử lại hoặc khởi động lại Paradev trên thiết bị đó." +msgid "Please upload a valid .env file." +msgstr "Vui lòng tải lên tệp .env hợp lệ." + msgid "Plugin" msgstr "Plugin" @@ -17321,6 +17418,9 @@ msgstr "Lưu" msgid "Save & create workspace" msgstr "Lưu & tạo workspace" +msgid "Save a checkpoint to {name}?" +msgstr "Lưu checkpoint vào {name}?" + msgid "Save All" msgstr "Lưu tất cả" @@ -17333,6 +17433,9 @@ msgstr "Lưu thành chế độ xem" msgid "Save Changes" msgstr "Lưu thay đổi" +msgid "Save checkpoint" +msgstr "Lưu checkpoint" + msgid "Save edits" msgstr "Lưu chỉnh sửa" @@ -17373,9 +17476,21 @@ msgstr "Đã lưu" msgid "Saved \"{0}\" as an environment" msgstr "Đã lưu \"{0}\" thành một environment" +msgid "Saved {name}" +msgstr "Đã lưu {name}" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "Đã lưu {name}, nhưng không thể khởi động workspace thiết lập: {reason}" + msgid "Saved to Downloads" msgstr "Đã lưu vào Downloads" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "Lưu workspace này ở trạng thái hiện tại, cùng mọi thứ đã cài trong đó. Các workspace mới từ {name} sẽ bắt đầu từ checkpoint này. Workspace sẽ dừng một lúc trong khi lưu." + +msgid "Saving a checkpoint to {name}..." +msgstr "Đang lưu checkpoint vào {name}..." + msgid "Saving as an environment..." msgstr "Đang lưu làm môi trường..." @@ -17810,9 +17925,6 @@ msgstr "Chọn một agent" msgid "Select an editor from the dropdown" msgstr "Chọn một editor từ danh sách thả xuống" -msgid "Select an environment" -msgstr "Chọn một môi trường" - msgid "Select an organization" msgstr "Chọn một tổ chức" @@ -17993,6 +18105,12 @@ msgstr "Đang gửi…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "Gửi {0} ký tự ngữ cảnh terminal (khoảng {1} token) tới {2}." +msgid "Sensitive" +msgstr "Nhạy cảm" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "Giá trị nhạy cảm được mã hóa và không thể hiển thị sau khi lưu." + msgid "Sent" msgstr "Đã gửi" @@ -18068,9 +18186,6 @@ msgstr "Phiên" msgid "Sessions · top {0} by cost" msgstr "Phiên · {0} phiên tốn nhiều nhất" -msgid "Set" -msgstr "Đã đặt" - msgid "Set a notification schedule" msgstr "Đặt lịch thông báo" @@ -18113,6 +18228,9 @@ msgstr "Thiết lập host qua SSH" msgid "Set up an automation" msgstr "Thiết lập tự động hóa" +msgid "Set up Environment" +msgstr "Thiết lập môi trường" + msgid "Set up once" msgstr "Thiết lập một lần" @@ -18666,9 +18784,6 @@ msgstr "Sáu mức tự chủ của nhà máy" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "Sáu mức tự chủ của nhà máy, các cổng giữa chúng, và dự báo của chúng tôi về việc 2026 đưa ta đi được bao xa. Viết ra bây giờ để sau này bạn chấm điểm chúng tôi." -msgid "size" -msgstr "Kích thước" - msgid "Size" msgstr "Kích thước" @@ -18693,6 +18808,9 @@ msgstr "Màu da" msgid "Skip" msgstr "Bỏ qua" +msgid "Skip & save" +msgstr "Bỏ qua và lưu" + msgid "Skip All" msgstr "Bỏ qua tất cả" @@ -19093,6 +19211,9 @@ msgstr "Bắt đầu trò chuyện mới" msgid "Start a session" msgstr "Bắt đầu một phiên" +msgid "Start agent" +msgstr "Bắt đầu agent" + msgid "Start agents on events or a schedule" msgstr "Khởi chạy agent theo sự kiện hoặc theo lịch" @@ -21292,6 +21413,10 @@ msgstr "Hai tay" msgid "Type" msgstr "Kiểu" +msgctxt "sort order" +msgid "Type" +msgstr "Loại" + msgid "Type @linear in any prompt." msgstr "Gõ @linear trong bất kỳ prompt nào." @@ -21665,6 +21790,9 @@ msgstr "Hãy cập nhật dịch vụ host trên cả hai máy tính rồi thử msgid "Update the host service on this device and try again." msgstr "Hãy cập nhật dịch vụ host trên thiết bị này rồi thử lại." +msgid "Update the value for <0>{key}" +msgstr "Cập nhật giá trị cho <0>{key}" + msgid "Update this host to message subagents" msgstr "Cập nhật máy chủ này để nhắn tin cho agent con" @@ -21681,6 +21809,9 @@ msgstr "Đã cập nhật {0}" msgid "Updated {date}" msgstr "Cập nhật {date}" +msgid "Updated {key}" +msgstr "Đã cập nhật {key}" + msgid "Updated {updatedRelative}" msgstr "Cập nhật {updatedRelative}" @@ -21899,6 +22030,9 @@ msgstr "user@host, ssh://user@host:2222 hoặc một bí danh trong cấu hình msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectId không khớp với dự án của workspace" +msgid "Value" +msgstr "Giá trị" + msgid "Variables" msgstr "Biến" @@ -22892,6 +23026,9 @@ msgstr "Bạn không có quyền truy cập terminal này." msgid "You don't have permission to remove this member" msgstr "Bạn không có quyền gỡ thành viên này" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "Bạn có biến môi trường chưa lưu. Bạn có chắc muốn đóng?" + msgid "You install and connect once per account." msgstr "Bạn cài đặt và kết nối một lần cho mỗi tài khoản." diff --git a/packages/i18n/locales/zh-CN/messages.po b/packages/i18n/locales/zh-CN/messages.po index c603939ca90..afa34181284 100644 --- a/packages/i18n/locales/zh-CN/messages.po +++ b/packages/i18n/locales/zh-CN/messages.po @@ -984,6 +984,9 @@ msgstr "{count} 台主机运行的主机服务比此应用旧" msgid "{count} selected" msgstr "已选择 {count} 个" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "有 {count} 个变量无法保存。请查看高亮的行" + msgid "{count}/day" msgstr "{count}/天" @@ -1132,6 +1135,9 @@ msgstr "{lines, plural, other {# 行}}" msgid "{localHostName} (this device)" msgstr "{localHostName}(此设备)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize}(不在你的套餐中)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2109,6 +2115,9 @@ msgstr "添加智能体" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "创建云端工作区前,请先在设置中添加一个环境" +msgid "Add Another" +msgstr "再添加一个" + msgid "Add another account, or disconnect one you no longer use." msgstr "连接其他账号,或断开不再使用的账号。" @@ -2136,6 +2145,9 @@ msgstr "添加描述" msgid "Add description..." msgstr "添加描述..." +msgid "Add Environment Variable" +msgstr "添加环境变量" + msgid "Add extension" msgstr "添加扩展程序" @@ -2173,6 +2185,9 @@ msgstr "添加更多…" msgid "Add one from the menu in the sidebar to get started." msgstr "从侧边栏菜单中添加一个即可开始。" +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "添加一个或多个环境变量。也可以拖放 .env 文件。" + msgid "Add people" msgstr "添加人员" @@ -2284,9 +2299,18 @@ msgstr "已添加 {added}" msgid "Added {added} files to {where}" msgstr "已向{where}添加{added}个文件" +msgid "Added {addedOn}" +msgstr "添加于 {addedOn}" + msgid "Added {bought} GB-hours." msgstr "已添加 {bought} GB 小时。" +msgid "Added {count} environment variables" +msgstr "已添加 {count} 个环境变量" + +msgid "Added {key}" +msgstr "已添加 {key}" + msgid "Added 1 file to {where}" msgstr "已向{where}添加1个文件" @@ -2781,6 +2805,9 @@ msgstr "随时知道哪个智能体需要你,通知可直接跳转到被阻塞 msgid "An agent completes multi-file changes end to end." msgstr "智能体能端到端完成跨文件改动。" +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "代理会在云工作区中设置此环境(约 20 分钟或更久):安装依赖、编写设置配置,并询问所需的密钥。你可以随时中断,或在工作区中接手并自行完成设置。" + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "智能体写出完整的函数和文件,人类盯着每一步、批准每一条命令。一个智能体,一个人。更快,但仍是串行。" @@ -4381,6 +4408,9 @@ msgstr "检查点 · tooltip重构之前" msgid "Checkpoint saved {0}" msgstr "检查点已保存 {0}" +msgid "Checkpoint saved to {name}" +msgstr "已将检查点保存到 {name}" + msgid "Checks" msgstr "检查" @@ -4622,6 +4652,9 @@ msgstr "如果没有自动跳转,请点击这里" msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "点击“↑ update”按钮查看更新前的确认提示" +msgid "Click to copy" +msgstr "点击复制" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "点击复制会话ID(使用`claude --resume `恢复)。" @@ -5816,6 +5849,9 @@ msgstr "无法复制链接" msgid "Could not create cloud workspace" msgstr "无法创建云端工作区" +msgid "Could not create environment" +msgstr "无法创建环境" + msgid "Could not create project" msgstr "无法创建项目" @@ -7407,6 +7443,9 @@ msgstr "放弃更改?" msgid "Discard recording" msgstr "放弃录音" +msgid "Discard unsaved changes?" +msgstr "放弃未保存的更改?" + msgid "Discarded" msgstr "已放弃" @@ -7812,6 +7851,9 @@ msgstr "已获得「{name}」×{tier}" msgid "Edit" msgstr "编辑" +msgid "Edit {selectedName}" +msgstr "编辑 {selectedName}" + msgid "Edit Channel Name" msgstr "编辑频道名称" @@ -7824,8 +7866,8 @@ msgstr "编辑描述" msgid "Edit Description" msgstr "编辑描述" -msgid "Edit environment" -msgstr "编辑环境" +msgid "Edit Environment Variable" +msgstr "编辑环境变量" msgid "Edit files without asking; ask before commands" msgstr "无需询问即可编辑文件;运行命令前询问" @@ -8016,6 +8058,9 @@ msgstr "输入整数" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "请输入 {minHours} 到 {maxHours} 之间的整数 GB 小时。" +msgid "Enter new value" +msgstr "输入新值" + msgid "Enter this code when OpenAI asks for it:" msgstr "OpenAI 要求时输入此代码:" @@ -8046,6 +8091,9 @@ msgstr "环境搭建、不稳定的测试、凭据串联,这些在2025年让 msgid "Environment Variables" msgstr "环境变量" +msgid "Environment's size" +msgstr "环境的规格" + msgid "Environments" msgstr "环境" @@ -8477,6 +8525,9 @@ msgstr "删除账户失败" msgid "Failed to delete automation" msgstr "无法删除自动化" +msgid "Failed to delete environment variable" +msgstr "无法删除环境变量" + msgid "Failed to delete host" msgstr "删除主机失败" @@ -8595,6 +8646,9 @@ msgstr "回复发送失败" msgid "Failed to push branch" msgstr "推送分支失败" +msgid "Failed to read file." +msgstr "无法读取文件。" + msgid "Failed to record page version" msgstr "记录页面版本失败" @@ -8688,6 +8742,9 @@ msgstr "运行工作区命令失败" msgid "Failed to save" msgstr "保存失败" +msgid "Failed to save environment variables" +msgstr "无法保存环境变量" + msgid "Failed to save installation. Please try again." msgstr "保存安装信息失败。请重试。" @@ -8754,6 +8811,9 @@ msgstr "更新头像失败" msgid "Failed to update branch prefix" msgstr "更新分支前缀失败" +msgid "Failed to update environment variable" +msgstr "无法更新环境变量" + msgid "Failed to update hooks" msgstr "更新钩子失败" @@ -8898,6 +8958,9 @@ msgstr "文件打开方式" msgid "File opens when the workspace wakes up" msgstr "工作区唤醒后将打开文件" +msgid "File too large. Maximum size is 256 KB." +msgstr "文件过大。最大为 256 KB。" + msgid "File viewer" msgstr "文件查看器" @@ -10195,6 +10258,9 @@ msgstr "冒充他人" msgid "Import" msgstr "导入" +msgid "Import .env" +msgstr "导入 .env" + msgid "import a folder" msgstr "导入文件夹" @@ -10936,6 +11002,9 @@ msgstr "已保留新文件,它在创建后发生了更改" msgid "Kept the new folder because it is no longer empty" msgstr "已保留新文件夹,它已不再为空" +msgid "Key" +msgstr "键" + msgid "Key dates" msgstr "关键日期" @@ -11081,6 +11150,9 @@ msgstr "上次在线:{lastSeen}" msgid "Last updated" msgstr "最后更新" +msgid "Last Updated" +msgstr "最近更新" + msgid "Last updated on {date}" msgstr "最后更新于{date}" @@ -11671,9 +11743,6 @@ msgstr "机器资源" msgid "Machine size" msgstr "机器规格" -msgid "Machine size: {label}" -msgstr "机器规格:{label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "不绑定机器的云端工作区,几秒即可启动,还能分享给队友。" @@ -11731,6 +11800,9 @@ msgstr "管理账号…" msgid "Manage billing" msgstr "管理账单" +msgid "Manage environment" +msgstr "管理环境" + msgid "Manage environments" msgstr "管理环境" @@ -12358,6 +12430,10 @@ msgstr "神秘机械师" msgid "Name" msgstr "名称" +msgctxt "sort order" +msgid "Name" +msgstr "名称" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "名称和一个URL友好的slug。两者稍后都可以更改。" @@ -12708,6 +12784,9 @@ msgstr "没有活动的工作区" msgid "No agent" msgstr "无智能体" +msgid "No agent is available to set up the environment" +msgstr "没有可用于设置环境的代理" + msgid "No agent is configured on this host" msgstr "此主机上未配置任何智能体" @@ -12856,6 +12935,9 @@ msgstr "暂无下载" msgid "No emoji found" msgstr "未找到表情" +msgid "No environment variables yet" +msgstr "还没有环境变量" + msgid "No environments available" msgstr "没有可用的环境" @@ -13012,6 +13094,9 @@ msgstr "没有匹配的拉取请求" msgid "No matching tasks" msgstr "没有匹配的任务" +msgid "No matching variables" +msgstr "没有匹配的变量" + msgid "No MCP servers found" msgstr "未找到MCP服务器" @@ -13319,8 +13404,8 @@ msgstr "此设备上未找到 v1 项目。" msgid "No v1 terminal scripts found." msgstr "未找到 v1 终端脚本。" -msgid "No variables set yet." -msgstr "尚未设置变量。" +msgid "No valid environment variables found in file" +msgstr "文件中未找到有效的环境变量" msgid "No versions yet" msgstr "还没有版本" @@ -13717,6 +13802,9 @@ msgstr "一个插件,所有编码智能体。" msgid "One step left" msgstr "还差一步" +msgid "One variable can't be saved. See the highlighted row" +msgstr "有一个变量无法保存。请查看高亮的行" + msgid "online" msgstr "在线" @@ -14372,6 +14460,9 @@ msgstr "可选。帮助我们了解哪些渠道有效。" msgid "Options" msgstr "选项" +msgid "or paste .env contents in Key input" +msgstr "或将 .env 内容粘贴到键输入框" + msgid "Orange" msgstr "橙色" @@ -14402,6 +14493,9 @@ msgstr "组织{id}" msgid "Organization created successfully!" msgstr "组织创建成功!" +msgid "Organization default ({defaultName})" +msgstr "组织默认({defaultName})" + msgid "Organization deleted" msgstr "组织已删除" @@ -15062,8 +15156,8 @@ msgstr "在{hostName}上选择新的项目文件夹。" msgid "Pick the project worktree folder on {hostName}." msgstr "在{hostName}上选择项目的worktree文件夹。" -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "选择它要检出的仓库。这台机器上的智能体会弄清需要安装什么,并让它在云端运行起来。" +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "选择要检出的仓库。云工作区中的代理会确定需要安装的内容并让它运行起来。" msgid "Pick the worktree folder on {hostName}." msgstr "在{hostName}上选择worktree文件夹。" @@ -15167,6 +15261,9 @@ msgstr "请选择一个组织" msgid "Please try again, or restart Paradev on that device." msgstr "请重试,或在该设备上重启 Paradev。" +msgid "Please upload a valid .env file." +msgstr "请上传有效的 .env 文件。" + msgid "Plugin" msgstr "插件" @@ -17321,6 +17418,9 @@ msgstr "保存" msgid "Save & create workspace" msgstr "保存并创建工作区" +msgid "Save a checkpoint to {name}?" +msgstr "将检查点保存到 {name}?" + msgid "Save All" msgstr "全部保存" @@ -17333,6 +17433,9 @@ msgstr "另存为视图" msgid "Save Changes" msgstr "保存更改" +msgid "Save checkpoint" +msgstr "保存检查点" + msgid "Save edits" msgstr "保存编辑" @@ -17373,9 +17476,21 @@ msgstr "已保存" msgid "Saved \"{0}\" as an environment" msgstr "已将“{0}”保存为环境" +msgid "Saved {name}" +msgstr "已保存 {name}" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "已保存 {name},但其设置工作区无法启动:{reason}" + msgid "Saved to Downloads" msgstr "已保存到“下载”文件夹" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "按当前状态保存此工作区,包括其中安装的所有内容。从 {name} 新建的工作区将从此检查点开始。保存期间工作区会短暂停止。" + +msgid "Saving a checkpoint to {name}..." +msgstr "正在将检查点保存到 {name}..." + msgid "Saving as an environment..." msgstr "正在保存为环境..." @@ -17810,9 +17925,6 @@ msgstr "选择智能体" msgid "Select an editor from the dropdown" msgstr "从下拉菜单中选择编辑器" -msgid "Select an environment" -msgstr "选择一个环境" - msgid "Select an organization" msgstr "选择一个组织" @@ -17993,6 +18105,12 @@ msgstr "正在发送…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "将向 {2} 发送 {0} 个字符的终端上下文(约 {1} 个 token)。" +msgid "Sensitive" +msgstr "敏感" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "敏感值会加密,保存后无法再显示。" + msgid "Sent" msgstr "发送时间" @@ -18068,9 +18186,6 @@ msgstr "会话" msgid "Sessions · top {0} by cost" msgstr "会话 · 按费用排名前{0}" -msgid "Set" -msgstr "已设置" - msgid "Set a notification schedule" msgstr "设置通知时间表" @@ -18113,6 +18228,9 @@ msgstr "通过 SSH 设置主机" msgid "Set up an automation" msgstr "设置自动化" +msgid "Set up Environment" +msgstr "设置环境" + msgid "Set up once" msgstr "只需设置一次" @@ -18666,9 +18784,6 @@ msgstr "工厂自主的六个等级" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "工厂自主的六个等级、等级之间的关卡,以及我们对2026年能走多远的预测。现在写下来,方便你以后给我们打分。" -msgid "size" -msgstr "规格" - msgid "Size" msgstr "大小" @@ -18693,6 +18808,9 @@ msgstr "肤色" msgid "Skip" msgstr "跳过" +msgid "Skip & save" +msgstr "跳过并保存" + msgid "Skip All" msgstr "全部跳过" @@ -19093,6 +19211,9 @@ msgstr "开始新的聊天" msgid "Start a session" msgstr "开始一个会话" +msgid "Start agent" +msgstr "启动代理" + msgid "Start agents on events or a schedule" msgstr "按事件或计划启动智能体" @@ -21292,6 +21413,10 @@ msgstr "双手齐开" msgid "Type" msgstr "类型" +msgctxt "sort order" +msgid "Type" +msgstr "类型" + msgid "Type @linear in any prompt." msgstr "在任何提示词中输入 @linear。" @@ -21665,6 +21790,9 @@ msgstr "请更新两台电脑上的主机服务,然后重试。" msgid "Update the host service on this device and try again." msgstr "请更新此设备上的主机服务,然后重试。" +msgid "Update the value for <0>{key}" +msgstr "更新 <0>{key} 的值" + msgid "Update this host to message subagents" msgstr "请更新此主机以向子智能体发送消息" @@ -21681,6 +21809,9 @@ msgstr "更新于{0}" msgid "Updated {date}" msgstr "更新于{date}" +msgid "Updated {key}" +msgstr "已更新 {key}" + msgid "Updated {updatedRelative}" msgstr "更新于{updatedRelative}" @@ -21899,6 +22030,9 @@ msgstr "user@host、ssh://user@host:2222 或 ssh 配置中的别名" msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectId与该工作区的项目不匹配" +msgid "Value" +msgstr "值" + msgid "Variables" msgstr "变量" @@ -22892,6 +23026,9 @@ msgstr "你没有此终端的访问权限。" msgid "You don't have permission to remove this member" msgstr "你没有移除该成员的权限" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "你有未保存的环境变量。确定要关闭吗?" + msgid "You install and connect once per account." msgstr "每个账号只需安装和连接一次。" diff --git a/packages/i18n/locales/zh-TW/messages.po b/packages/i18n/locales/zh-TW/messages.po index 1477218bef9..465878f9c72 100644 --- a/packages/i18n/locales/zh-TW/messages.po +++ b/packages/i18n/locales/zh-TW/messages.po @@ -984,6 +984,9 @@ msgstr "{count} 台主機執行的主機服務比此應用程式舊" msgid "{count} selected" msgstr "已選取 {count} 個" +msgid "{count} variables can't be saved. See the highlighted rows" +msgstr "有 {count} 個變數無法儲存。請查看醒目標示的列" + msgid "{count}/day" msgstr "{count}/天" @@ -1132,6 +1135,9 @@ msgstr "{lines, plural, other {# 行}}" msgid "{localHostName} (this device)" msgstr "{localHostName}(此裝置)" +msgid "{machineSize} (not on your plan)" +msgstr "{machineSize}(不在你的方案中)" + #. placeholder {0}: <> # {" "} result for “{query}” #. placeholder {1}: <> # {" "} results for “{query}” msgid "{matchCount, plural, one {{0}} other {{1}}}" @@ -2109,6 +2115,9 @@ msgstr "新增代理程式" msgid "Add an environment in Settings before creating a cloud workspace" msgstr "建立雲端工作區前,請先在設定中新增環境" +msgid "Add Another" +msgstr "再新增一個" + msgid "Add another account, or disconnect one you no longer use." msgstr "連接其他帳號,或中斷不再使用的帳號。" @@ -2136,6 +2145,9 @@ msgstr "新增說明" msgid "Add description..." msgstr "新增描述..." +msgid "Add Environment Variable" +msgstr "新增環境變數" + msgid "Add extension" msgstr "新增擴充功能" @@ -2173,6 +2185,9 @@ msgstr "新增更多…" msgid "Add one from the menu in the sidebar to get started." msgstr "從側邊欄選單中新增一個即可開始。" +msgid "Add one or more environment variables. You can also drag and drop a .env file." +msgstr "新增一個或多個環境變數。也可以拖放 .env 檔案。" + msgid "Add people" msgstr "新增人員" @@ -2284,9 +2299,18 @@ msgstr "已新增 {added}" msgid "Added {added} files to {where}" msgstr "已向{where}新增{added}個檔案" +msgid "Added {addedOn}" +msgstr "新增於 {addedOn}" + msgid "Added {bought} GB-hours." msgstr "已新增 {bought} GB 小時。" +msgid "Added {count} environment variables" +msgstr "已新增 {count} 個環境變數" + +msgid "Added {key}" +msgstr "已新增 {key}" + msgid "Added 1 file to {where}" msgstr "已向{where}新增1個檔案" @@ -2781,6 +2805,9 @@ msgstr "隨時知道哪個代理程式需要你,通知可直接跳轉到被阻 msgid "An agent completes multi-file changes end to end." msgstr "代理程式能端到端完成跨檔案改動。" +msgid "An agent sets up this environment in a cloud workspace (about 20 minutes or more): it installs dependencies, writes the setup config and asks for any secrets it needs. Interrupt it at any time, or take over in the workspace to finish setup yourself." +msgstr "代理程式會在雲端工作區中設定此環境(約 20 分鐘或更久):安裝相依套件、撰寫設定組態,並詢問所需的密鑰。你可以隨時中斷,或在工作區中接手並自行完成設定。" + msgid "An agent writes whole functions and files while a human watches every step and approves every command. One agent, one human. Faster, but still serial." msgstr "代理程式寫出完整的函式和檔案,人類盯著每一步、批准每一條命令。一個代理程式,一個人。更快,但仍是序列。" @@ -4381,6 +4408,9 @@ msgstr "檢查點 · tooltip重構之前" msgid "Checkpoint saved {0}" msgstr "檢查點已儲存 {0}" +msgid "Checkpoint saved to {name}" +msgstr "已將檢查點儲存到 {name}" + msgid "Checks" msgstr "檢查" @@ -4622,6 +4652,9 @@ msgstr "如果沒有自動跳轉,請點選這裡" msgid "Click the “↑ update” pill to see the pre-update confirm" msgstr "點擊「↑ update」按鈕查看更新前的確認提示" +msgid "Click to copy" +msgstr "點擊複製" + msgid "Click to copy the session ID (resume with `claude --resume `)." msgstr "點選複製會話ID(使用`claude --resume `恢復)。" @@ -5816,6 +5849,9 @@ msgstr "無法複製連結" msgid "Could not create cloud workspace" msgstr "無法建立雲端工作區" +msgid "Could not create environment" +msgstr "無法建立環境" + msgid "Could not create project" msgstr "無法建立專案" @@ -7407,6 +7443,9 @@ msgstr "放棄更改?" msgid "Discard recording" msgstr "放棄錄音" +msgid "Discard unsaved changes?" +msgstr "捨棄未儲存的變更?" + msgid "Discarded" msgstr "已放棄" @@ -7812,6 +7851,9 @@ msgstr "已獲得「{name}」×{tier}" msgid "Edit" msgstr "編輯" +msgid "Edit {selectedName}" +msgstr "編輯 {selectedName}" + msgid "Edit Channel Name" msgstr "編輯頻道名稱" @@ -7824,8 +7866,8 @@ msgstr "編輯說明" msgid "Edit Description" msgstr "編輯說明" -msgid "Edit environment" -msgstr "編輯環境" +msgid "Edit Environment Variable" +msgstr "編輯環境變數" msgid "Edit files without asking; ask before commands" msgstr "無需詢問即可編輯檔案;執行指令前詢問" @@ -8016,6 +8058,9 @@ msgstr "輸入整數" msgid "Enter a whole number from {minHours} to {maxHours} GB-hours." msgstr "請輸入 {minHours} 到 {maxHours} 之間的整數 GB 小時。" +msgid "Enter new value" +msgstr "輸入新值" + msgid "Enter this code when OpenAI asks for it:" msgstr "OpenAI 要求時輸入此代碼:" @@ -8046,6 +8091,9 @@ msgstr "環境搭建、不穩定的測試、憑證串聯,這些在2025年讓 msgid "Environment Variables" msgstr "環境變數" +msgid "Environment's size" +msgstr "環境的規格" + msgid "Environments" msgstr "環境" @@ -8477,6 +8525,9 @@ msgstr "刪除帳戶失敗" msgid "Failed to delete automation" msgstr "無法刪除自動化" +msgid "Failed to delete environment variable" +msgstr "無法刪除環境變數" + msgid "Failed to delete host" msgstr "刪除主機失敗" @@ -8595,6 +8646,9 @@ msgstr "回覆張貼失敗" msgid "Failed to push branch" msgstr "推送分支失敗" +msgid "Failed to read file." +msgstr "無法讀取檔案。" + msgid "Failed to record page version" msgstr "記錄頁面版本失敗" @@ -8688,6 +8742,9 @@ msgstr "執行工作區命令失敗" msgid "Failed to save" msgstr "儲存失敗" +msgid "Failed to save environment variables" +msgstr "無法儲存環境變數" + msgid "Failed to save installation. Please try again." msgstr "儲存安裝資訊失敗。請重試。" @@ -8754,6 +8811,9 @@ msgstr "更新頭像失敗" msgid "Failed to update branch prefix" msgstr "更新分支字首失敗" +msgid "Failed to update environment variable" +msgstr "無法更新環境變數" + msgid "Failed to update hooks" msgstr "更新鉤子失敗" @@ -8898,6 +8958,9 @@ msgstr "檔案開啟方式" msgid "File opens when the workspace wakes up" msgstr "工作區喚醒後將開啟檔案" +msgid "File too large. Maximum size is 256 KB." +msgstr "檔案過大。上限為 256 KB。" + msgid "File viewer" msgstr "檔案檢視器" @@ -10195,6 +10258,9 @@ msgstr "冒充他人" msgid "Import" msgstr "匯入" +msgid "Import .env" +msgstr "匯入 .env" + msgid "import a folder" msgstr "匯入資料夾" @@ -10936,6 +11002,9 @@ msgstr "已保留新檔案,它在建立後發生了更改" msgid "Kept the new folder because it is no longer empty" msgstr "已保留新資料夾,它已不再為空" +msgid "Key" +msgstr "鍵" + msgid "Key dates" msgstr "關鍵日期" @@ -11081,6 +11150,9 @@ msgstr "上次上線:{lastSeen}" msgid "Last updated" msgstr "最後更新" +msgid "Last Updated" +msgstr "最近更新" + msgid "Last updated on {date}" msgstr "最後更新於{date}" @@ -11671,9 +11743,6 @@ msgstr "機器資源" msgid "Machine size" msgstr "機器規格" -msgid "Machine size: {label}" -msgstr "機器規格:{label}" - msgid "Machine-unbound cloud workspaces that spin up in seconds and can be shared with teammates." msgstr "不繫結機器的雲端工作區,幾秒即可啟動,還能分享給隊友。" @@ -11731,6 +11800,9 @@ msgstr "管理帳號…" msgid "Manage billing" msgstr "管理帳單" +msgid "Manage environment" +msgstr "管理環境" + msgid "Manage environments" msgstr "管理環境" @@ -12358,6 +12430,10 @@ msgstr "神秘機械師" msgid "Name" msgstr "名稱" +msgctxt "sort order" +msgid "Name" +msgstr "名稱" + msgid "Name and a URL-friendly slug. Both can be changed later." msgstr "名稱和一個URL友好的slug。兩者稍後都可以更改。" @@ -12708,6 +12784,9 @@ msgstr "沒有作用中的工作區" msgid "No agent" msgstr "無代理程式" +msgid "No agent is available to set up the environment" +msgstr "沒有可用來設定環境的代理程式" + msgid "No agent is configured on this host" msgstr "此主機上未設定任何代理程式" @@ -12856,6 +12935,9 @@ msgstr "暫無下載" msgid "No emoji found" msgstr "未找到表情" +msgid "No environment variables yet" +msgstr "尚無環境變數" + msgid "No environments available" msgstr "沒有可用的環境" @@ -13012,6 +13094,9 @@ msgstr "沒有符合的拉取請求" msgid "No matching tasks" msgstr "沒有符合的任務" +msgid "No matching variables" +msgstr "沒有符合的變數" + msgid "No MCP servers found" msgstr "找不到MCP伺服器" @@ -13319,8 +13404,8 @@ msgstr "此裝置上找不到 v1 專案。" msgid "No v1 terminal scripts found." msgstr "找不到 v1 終端機指令碼。" -msgid "No variables set yet." -msgstr "尚未設定變數。" +msgid "No valid environment variables found in file" +msgstr "檔案中找不到有效的環境變數" msgid "No versions yet" msgstr "還沒有版本" @@ -13717,6 +13802,9 @@ msgstr "一個外掛,所有程式碼代理程式。" msgid "One step left" msgstr "還差一步" +msgid "One variable can't be saved. See the highlighted row" +msgstr "有一個變數無法儲存。請查看醒目標示的列" + msgid "online" msgstr "線上" @@ -14372,6 +14460,9 @@ msgstr "選填。幫助我們了解哪些管道有效。" msgid "Options" msgstr "選項" +msgid "or paste .env contents in Key input" +msgstr "或將 .env 內容貼到鍵輸入欄" + msgid "Orange" msgstr "橙色" @@ -14402,6 +14493,9 @@ msgstr "組織{id}" msgid "Organization created successfully!" msgstr "組織建立成功!" +msgid "Organization default ({defaultName})" +msgstr "組織預設({defaultName})" + msgid "Organization deleted" msgstr "組織已刪除" @@ -15062,8 +15156,8 @@ msgstr "在{hostName}上選擇新的專案資料夾。" msgid "Pick the project worktree folder on {hostName}." msgstr "在{hostName}上選擇專案的worktree資料夾。" -msgid "Pick the repositories it checks out. An agent on this machine works out what to install and gets it running in the cloud." -msgstr "選擇它要檢出的儲存庫。這台機器上的代理程式會判斷需要安裝什麼,並讓它在雲端執行。" +msgid "Pick the repositories it checks out. An agent in a cloud workspace works out what to install and gets it running." +msgstr "選擇要簽出的儲存庫。雲端工作區中的代理程式會判斷需要安裝的內容並讓它執行起來。" msgid "Pick the worktree folder on {hostName}." msgstr "在{hostName}上選擇worktree資料夾。" @@ -15167,6 +15261,9 @@ msgstr "請選擇一個組織" msgid "Please try again, or restart Paradev on that device." msgstr "請重試,或在該裝置上重新啟動 Paradev。" +msgid "Please upload a valid .env file." +msgstr "請上傳有效的 .env 檔案。" + msgid "Plugin" msgstr "外掛" @@ -17321,6 +17418,9 @@ msgstr "儲存" msgid "Save & create workspace" msgstr "儲存並建立工作區" +msgid "Save a checkpoint to {name}?" +msgstr "要將檢查點儲存到 {name} 嗎?" + msgid "Save All" msgstr "全部儲存" @@ -17333,6 +17433,9 @@ msgstr "另存為檢視" msgid "Save Changes" msgstr "儲存變更" +msgid "Save checkpoint" +msgstr "儲存檢查點" + msgid "Save edits" msgstr "儲存編輯" @@ -17373,9 +17476,21 @@ msgstr "已儲存" msgid "Saved \"{0}\" as an environment" msgstr "已將「{0}」儲存為環境" +msgid "Saved {name}" +msgstr "已儲存 {name}" + +msgid "Saved {name}, but its setup workspace could not start: {reason}" +msgstr "已儲存 {name},但其設定工作區無法啟動:{reason}" + msgid "Saved to Downloads" msgstr "已儲存到「下載」資料夾" +msgid "Saves this workspace as it is now, with everything installed in it. New workspaces from {name} start from this checkpoint. The workspace stops for a moment while it saves." +msgstr "以目前狀態儲存此工作區,包括其中安裝的所有內容。從 {name} 建立的新工作區將從此檢查點開始。儲存期間工作區會短暫停止。" + +msgid "Saving a checkpoint to {name}..." +msgstr "正在將檢查點儲存到 {name}..." + msgid "Saving as an environment..." msgstr "正在儲存為環境..." @@ -17810,9 +17925,6 @@ msgstr "選擇代理程式" msgid "Select an editor from the dropdown" msgstr "從下拉選單中選擇編輯器" -msgid "Select an environment" -msgstr "選擇一個環境" - msgid "Select an organization" msgstr "選擇一個組織" @@ -17993,6 +18105,12 @@ msgstr "正在傳送…" msgid "Sends {0} characters of terminal context (about {1} tokens) to {2}." msgstr "將向 {2} 傳送 {0} 個字元的終端上下文(約 {1} 個 token)。" +msgid "Sensitive" +msgstr "敏感" + +msgid "Sensitive values are encrypted and cannot be revealed in the UI after saving." +msgstr "敏感值會加密,儲存後無法再顯示。" + msgid "Sent" msgstr "傳送時間" @@ -18068,9 +18186,6 @@ msgstr "會話" msgid "Sessions · top {0} by cost" msgstr "會話 · 按費用排名前{0}" -msgid "Set" -msgstr "已設定" - msgid "Set a notification schedule" msgstr "設定通知時間表" @@ -18113,6 +18228,9 @@ msgstr "透過 SSH 設定主機" msgid "Set up an automation" msgstr "設定自動化" +msgid "Set up Environment" +msgstr "設定環境" + msgid "Set up once" msgstr "只需設定一次" @@ -18666,9 +18784,6 @@ msgstr "工廠自主的六個等級" msgid "Six levels of factory autonomy, the gates between them, and our forecast for how far 2026 gets us. Written down now so you can grade us later." msgstr "工廠自主的六個等級、等級之間的關卡,以及我們對2026年能走多遠的預測。現在寫下來,方便你以後給我們打分。" -msgid "size" -msgstr "規格" - msgid "Size" msgstr "大小" @@ -18693,6 +18808,9 @@ msgstr "膚色" msgid "Skip" msgstr "跳過" +msgid "Skip & save" +msgstr "略過並儲存" + msgid "Skip All" msgstr "全部跳過" @@ -19093,6 +19211,9 @@ msgstr "開始新的聊天" msgid "Start a session" msgstr "開始一個會話" +msgid "Start agent" +msgstr "啟動代理程式" + msgid "Start agents on events or a schedule" msgstr "依事件或計劃啟動代理程式" @@ -21292,6 +21413,10 @@ msgstr "雙手齊開" msgid "Type" msgstr "型別" +msgctxt "sort order" +msgid "Type" +msgstr "類型" + msgid "Type @linear in any prompt." msgstr "在任何提示詞中輸入 @linear。" @@ -21665,6 +21790,9 @@ msgstr "請更新兩台電腦上的主機服務,然後再試一次。" msgid "Update the host service on this device and try again." msgstr "請更新此裝置上的主機服務,然後再試一次。" +msgid "Update the value for <0>{key}" +msgstr "更新 <0>{key} 的值" + msgid "Update this host to message subagents" msgstr "請更新此主機以傳送訊息給子代理程式" @@ -21681,6 +21809,9 @@ msgstr "更新於{0}" msgid "Updated {date}" msgstr "更新於{date}" +msgid "Updated {key}" +msgstr "已更新 {key}" + msgid "Updated {updatedRelative}" msgstr "更新於{updatedRelative}" @@ -21899,6 +22030,9 @@ msgstr "user@host、ssh://user@host:2222 或 ssh 設定中的別名" msgid "v2ProjectId does not match the workspace's project" msgstr "v2ProjectId與該工作區的專案不匹配" +msgid "Value" +msgstr "值" + msgid "Variables" msgstr "變數" @@ -22892,6 +23026,9 @@ msgstr "你沒有此終端的存取權限。" msgid "You don't have permission to remove this member" msgstr "你沒有移除該成員的權限" +msgid "You have unsaved environment variables. Are you sure you want to close?" +msgstr "你有未儲存的環境變數。確定要關閉嗎?" + msgid "You install and connect once per account." msgstr "每個帳號只需安裝和連接一次。" diff --git a/packages/i18n/test/enforced-dirs.ts b/packages/i18n/test/enforced-dirs.ts index 970ea759a14..c6acae7eefe 100644 --- a/packages/i18n/test/enforced-dirs.ts +++ b/packages/i18n/test/enforced-dirs.ts @@ -18,6 +18,8 @@ export const ENFORCED_DIRS: readonly string[] = [ "apps/desktop/src/renderer/routes/_authenticated/_dashboard/tasks", "apps/desktop/src/renderer/routes/_authenticated/_dashboard/v2-workspaces", "apps/desktop/src/renderer/routes/_authenticated/components/DashboardNewWorkspaceModal", + "apps/desktop/src/renderer/routes/_authenticated/components/CreateEnvironmentFlow", + "apps/desktop/src/renderer/routes/_authenticated/components/EnvironmentView", // settings — everything except `project/` ($projectId), the v1 counterpart // of v2-project that dies with the v1 sunset. "apps/desktop/src/renderer/routes/_authenticated/settings/account", @@ -28,6 +30,7 @@ export const ENFORCED_DIRS: readonly string[] = [ "apps/desktop/src/renderer/routes/_authenticated/settings/billing", "apps/desktop/src/renderer/routes/_authenticated/settings/browser", "apps/desktop/src/renderer/routes/_authenticated/settings/components", + "apps/desktop/src/renderer/routes/_authenticated/settings/environments", "apps/desktop/src/renderer/routes/_authenticated/settings/experimental", "apps/desktop/src/renderer/routes/_authenticated/settings/git", "apps/desktop/src/renderer/routes/_authenticated/settings/hooks", diff --git a/packages/mcp/src/tools/workspaces/create.ts b/packages/mcp/src/tools/workspaces/create.ts index 6faec2c69f1..517c0cd3b39 100644 --- a/packages/mcp/src/tools/workspaces/create.ts +++ b/packages/mcp/src/tools/workspaces/create.ts @@ -80,7 +80,7 @@ export function register(server: McpServer): void { .enum(MACHINE_SIZES) .optional() .describe( - "Cloud only: size of the machine. `small` (2 vCPU, 4 GB) for light work such as triage, review or answering questions; `medium` (4 vCPU, 8 GB) for most coding work and the default; `large` (8 vCPU, 16 GB) for big builds, large test suites or heavy compiles. `xlarge` and `2xlarge` only where the organization's plan includes them.", + "Cloud only: size of the machine. `small` (2 vCPU, 4 GB) for light work such as triage, review or answering questions; `medium` (4 vCPU, 8 GB) for most coding work; `large` (8 vCPU, 16 GB) for big builds, large test suites or heavy compiles. `xlarge` and `2xlarge` only where the organization's plan includes them. Omit it to use the environment's size, else the organization's default.", ), branch: z .string() diff --git a/packages/sdk/src/resources/workspaces.ts b/packages/sdk/src/resources/workspaces.ts index c84a7deb088..fb88c59398a 100644 --- a/packages/sdk/src/resources/workspaces.ts +++ b/packages/sdk/src/resources/workspaces.ts @@ -244,7 +244,7 @@ export interface WorkspaceCreateParams { model?: string; /** Reasoning effort for the agent. Supported values depend on the agent; omit to use its default. */ effort?: string; - /** `small` (2 vCPU, 4 GB), `medium` (4 vCPU, 8 GB; the default) or `large` (8 vCPU, 16 GB); `xlarge` and `2xlarge` where the plan includes them. */ + /** `small` (2 vCPU, 4 GB), `medium` (4 vCPU, 8 GB) or `large` (8 vCPU, 16 GB); `xlarge` and `2xlarge` where the plan includes them. Omitted = the environment's size, else the organization's default. */ machineSize?: "small" | "medium" | "large" | "xlarge" | "2xlarge"; } diff --git a/packages/trpc/src/router/automation/cloudDispatch.ts b/packages/trpc/src/router/automation/cloudDispatch.ts index 49363bdaa40..48188fb918e 100644 --- a/packages/trpc/src/router/automation/cloudDispatch.ts +++ b/packages/trpc/src/router/automation/cloudDispatch.ts @@ -108,12 +108,14 @@ export async function runInCloud( launch: { agent: automation.agent, prompt, automationRunId: runId }, chat, tags: automation.tags, - machineSize: ( - await resolveMachineSize( - automation.organizationId, - automation.machineSize, - ) - )?.name, + machineSize: automation.machineSize + ? ( + await resolveMachineSize( + automation.organizationId, + automation.machineSize, + ) + )?.name + : undefined, beforeProvision: async (workspaceId) => { placed({ cloudWorkspaceId: workspaceId }); const bound = await db diff --git a/packages/trpc/src/router/cloud-workspace/cloud-workspace.test.ts b/packages/trpc/src/router/cloud-workspace/cloud-workspace.test.ts index ca235e08cdf..b0ee9b1c1d8 100644 --- a/packages/trpc/src/router/cloud-workspace/cloud-workspace.test.ts +++ b/packages/trpc/src/router/cloud-workspace/cloud-workspace.test.ts @@ -31,10 +31,16 @@ let restartedWith: string[] = []; const ENVIRONMENT_ID = "5e6f7a8b-9c0d-4e1f-8a2b-3c4d5e6f7a8b"; let inserted: unknown[] = []; let queuedJobs: { launch?: { surface?: string; effort?: string } }[] = []; +let environmentSize: string | null = null; +let sizeLookups: (string | null | undefined)[] = []; stub(db.query.cloudWorkspaces, { findFirst: async () => ROW }); stub(db.query.environments, { - findFirst: async () => ({ id: ENVIRONMENT_ID, scope: "organization" }), + findFirst: async () => ({ + id: ENVIRONMENT_ID, + scope: "organization", + machineSize: environmentSize, + }), }); stub(db.query.users, { findFirst: async () => ({ id: "user-1", name: "Ana", image: null }), @@ -70,8 +76,14 @@ stub(guards, { }); stub(access, { canOpenWorkspace: async () => true }); stub(plan, { - resolveMachineSize: async (_: string, name: string) => - name === "xlarge" ? { name, vcpus: 16 } : null, + resolveMachineSize: async (_: string, name: string | null | undefined) => { + sizeLookups.push(name); + return name === "xlarge" + ? { name, vcpus: 16 } + : name == null + ? { name: "medium", vcpus: 4 } + : null; + }, }); stub(meter, { assertMayBoot: async () => {} }); const FORWARD = { @@ -132,6 +144,8 @@ beforeEach(() => { restartedWith = []; inserted = []; queuedJobs = []; + environmentSize = null; + sizeLookups = []; }); describe("cloudWorkspace.create", () => { @@ -166,6 +180,26 @@ describe("cloudWorkspace.create", () => { }); expect(row.initialLaunch).toMatchObject({ surface: "chat" }); }); + + test("boots at the environment's size when the create names none", async () => { + environmentSize = "xlarge"; + const row = await create({ machineSize: undefined }); + expect(row.machineSize).toBe("xlarge"); + }); + + test("falls back to the organization's default when the environment's size is no longer offered", async () => { + environmentSize = "2xlarge"; + const row = await create({ machineSize: undefined }); + expect(sizeLookups).toEqual(["2xlarge", undefined]); + expect(row.machineSize).toBe("medium"); + }); + + test("refuses a size the caller names that the plan does not offer, whatever the environment's", async () => { + environmentSize = "xlarge"; + await expect(create({ machineSize: "2xlarge" })).rejects.toMatchObject({ + code: "BAD_REQUEST", + }); + }); }); describe("cloudWorkspace.setMachineSize", () => { diff --git a/packages/trpc/src/router/cloud-workspace/cloud-workspace.ts b/packages/trpc/src/router/cloud-workspace/cloud-workspace.ts index f56e8914045..f88f9808add 100644 --- a/packages/trpc/src/router/cloud-workspace/cloud-workspace.ts +++ b/packages/trpc/src/router/cloud-workspace/cloud-workspace.ts @@ -402,7 +402,7 @@ export const cloudWorkspaceRouter = { typedPrompt: z.string().max(20000).optional(), /** Tasks the composer linked; each must be in this organization. */ taskIds: z.array(z.string().uuid()).max(10).optional(), - /** A size the organization offers (see `machineSizes`); omitted = its default. */ + /** A size the organization offers (see `machineSizes`); omitted = the environment's size, else the organization's default. */ machineSize: z.enum(MACHINE_SIZES).optional(), /** The caller's own tags, as `setTags` files them. */ tags: workspaceTagsInputSchema.optional(), diff --git a/packages/trpc/src/router/cloud-workspace/start.ts b/packages/trpc/src/router/cloud-workspace/start.ts index c7494aab0f3..c072f45a867 100644 --- a/packages/trpc/src/router/cloud-workspace/start.ts +++ b/packages/trpc/src/router/cloud-workspace/start.ts @@ -144,7 +144,14 @@ async function start(args: StartCloudWorkspaceInput) { const openAsChat = args.chat === true && supportsCloudAgentChat(args.launch?.agent); const environment = await loadUsableEnvironment(args); - const size = await resolveMachineSize(args.organizationId, args.machineSize); + const size = + (await resolveMachineSize( + args.organizationId, + args.machineSize ?? environment.machineSize, + )) ?? + (args.machineSize + ? null + : await resolveMachineSize(args.organizationId, undefined)); if (!size) throw machineSizeNotAvailable(args.machineSize); const machineSize = size.name; await assertMayBoot(args.organizationId, size.vcpus); diff --git a/packages/trpc/src/router/environment/environment.test.ts b/packages/trpc/src/router/environment/environment.test.ts new file mode 100644 index 00000000000..dda9193c9db --- /dev/null +++ b/packages/trpc/src/router/environment/environment.test.ts @@ -0,0 +1,130 @@ +import { beforeEach, describe, expect, test } from "bun:test"; +import { db } from "@superset/db/client"; +import { stub } from "../../../test/stub"; +import * as plan from "../../lib/billing/plan"; +import * as guards from "../../lib/cloud-guards"; +import * as sandbox from "../../lib/sandbox"; +import { userError } from "../../trpc"; +import * as access from "../cloud-workspace/access"; +import * as integration from "../integration/utils"; + +const ENVIRONMENT_ID = "6f7a8b9c-0d1e-4f2a-8b3c-4d5e6f7a8b9c"; +const ORGANIZATION_ID = "1a2b3c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d"; +const WORKSPACE_ID = "2b3c4d5e-6f7a-4b8c-9d0e-1f2a3b4c5d6e"; + +let environment: Record = {}; +let isAdmin = false; +let written: Record[] = []; + +stub(db.query.environments, { findFirst: async () => environment }); +stub(db, { + update: () => ({ + set: (values: Record) => { + written.push(values); + return { + where: () => ({ + returning: async () => [{ ...environment, ...values }], + }), + }; + }, + }), +}); +stub(guards, { + isMember: async () => true, + assertMember: async () => {}, + assertCloudAccess: async () => {}, +}); +stub(integration, { + verifyOrgAdmin: async () => { + if (!isAdmin) { + throw userError({ + code: "FORBIDDEN", + message: "Admin access required", + i18nKey: "serverError.integration.adminAccessRequired", + }); + } + }, +}); +stub(access, { + loadVisibleWorkspace: async () => ({ + id: WORKSPACE_ID, + organizationId: ORGANIZATION_ID, + environmentId: ENVIRONMENT_ID, + status: "ready", + baseBranch: "main", + branch: "main", + }), +}); +stub(sandbox, { workspaceRepositories: async () => [] }); +stub(plan, { + resolveMachineSize: async (_: string, name: string | null | undefined) => + name === "large" || name == null + ? { name: name ?? "medium", vcpus: 8 } + : null, +}); + +const { environmentRouter } = await import("./environment"); +const { createCallerFactory, createTRPCContext, createTRPCRouter } = + await import("../../trpc"); + +const caller = createCallerFactory( + createTRPCRouter({ environment: environmentRouter }), +)( + createTRPCContext({ + session: { + user: { id: "user-1", email: "user@example.com" }, + session: { activeOrganizationId: ORGANIZATION_ID }, + } as never, + auth: {} as never, + headers: new Headers(), + sandboxCaller: null, + }), +); + +beforeEach(() => { + environment = { + id: ENVIRONMENT_ID, + organizationId: ORGANIZATION_ID, + scope: "organization", + createdByUserId: "someone-else", + sourceKind: "image", + machineSize: "large", + }; + isAdmin = false; + written = []; +}); + +describe("environment.update machineSize", () => { + test("a member who neither created nor administers a shared environment cannot change its size", async () => { + await expect( + caller.environment.update({ id: ENVIRONMENT_ID, machineSize: "large" }), + ).rejects.toMatchObject({ code: "FORBIDDEN" }); + expect(written).toEqual([]); + }); + + test("null goes back to the organization's default", async () => { + isAdmin = true; + await caller.environment.update({ id: ENVIRONMENT_ID, machineSize: null }); + expect(written).toEqual([{ machineSize: null }]); + }); + + test("refuses a size the plan does not offer", async () => { + environment.createdByUserId = "user-1"; + await expect( + caller.environment.update({ id: ENVIRONMENT_ID, machineSize: "2xlarge" }), + ).rejects.toMatchObject({ code: "BAD_REQUEST" }); + expect(written).toEqual([]); + }); +}); + +describe("environment.promote onto an environment", () => { + test("a member who neither created nor administers a shared environment cannot replace its checkpoint", async () => { + await expect( + caller.environment.promote({ + cloudWorkspaceId: WORKSPACE_ID, + environmentId: ENVIRONMENT_ID, + }), + ).rejects.toMatchObject({ code: "FORBIDDEN" }); + expect(written).toEqual([]); + }); +}); diff --git a/packages/trpc/src/router/environment/environment.ts b/packages/trpc/src/router/environment/environment.ts index a57c752b325..086d0edc766 100644 --- a/packages/trpc/src/router/environment/environment.ts +++ b/packages/trpc/src/router/environment/environment.ts @@ -7,6 +7,7 @@ import { environments, githubRepositories, } from "@superset/db/schema"; +import { MACHINE_SIZES } from "@superset/shared/billing"; import { SANDBOX_IMAGE_NAME } from "@superset/shared/constants"; import { SANDBOX_REGION_IDS } from "@superset/shared/sandbox-regions"; import type { TRPCRouterRecord } from "@trpc/server"; @@ -30,6 +31,8 @@ import { } from "../../lib/sandbox"; import { personProcedure, userError } from "../../trpc"; import { loadVisibleWorkspace } from "../cloud-workspace/access"; +import { assertMachineSizeOffered } from "../cloud-workspace/start"; +import { verifyOrgAdmin } from "../integration/utils"; import { currentBundleSha } from "./current-bundle"; import { assertEnvironmentCapacity, @@ -39,6 +42,22 @@ import { regionForRequest } from "./region-for-request"; import { secretsRouter } from "./secrets"; import { decryptSecret, encryptSecret } from "./secrets/utils/crypto"; +async function assertCanChangeForEveryone( + environment: { + scope: string; + createdByUserId: string | null; + organizationId: string; + }, + ctx: MemberContext, +) { + if ( + environment.scope === "organization" && + environment.createdByUserId !== ctx.principal.userId + ) { + await verifyOrgAdmin(ctx.principal.userId, environment.organizationId); + } +} + /** An environment the caller may see; another member's personal one does not exist to them. */ export async function loadEnvironment(id: string, ctx: MemberContext) { const row = await db.query.environments.findFirst({ @@ -296,11 +315,14 @@ export const environmentRouter = { /** Where its boxes run; the region nearest the caller when omitted. */ region: z.enum(SANDBOX_REGION_IDS).optional(), projectId: z.string().min(1).max(200).optional(), + /** The size its workspaces boot at; omitted = the organization's default. */ + machineSize: z.enum(MACHINE_SIZES).optional(), }), ) .mutation(async ({ ctx, input }) => { await assertMember(ctx, input.organizationId); await assertCloudAccess(ctx, input.organizationId); + await assertMachineSizeOffered(input.organizationId, input.machineSize); const limit = await assertEnvironmentCapacity(input.organizationId); if (!input.repositoryIds.includes(input.primaryRepositoryId)) { throw primaryNotIncluded(); @@ -319,6 +341,7 @@ export const environmentRouter = { region: input.region ?? regionForRequest(ctx.headers), bundleSha, scope: input.scope, + machineSize: input.machineSize ?? null, createdByUserId: ctx.principal.userId, }) .returning(); @@ -445,6 +468,7 @@ export const environmentRouter = { i18nKey: "serverError.environment.organizationMismatch", }); } + await assertCanChangeForEveryone(target, ctx); } const targetOwner = target && input.scope === "personal" @@ -525,6 +549,7 @@ export const environmentRouter = { name: input.name as string, ...fromGolden, scope: input.scope ?? source?.scope ?? "organization", + machineSize: source?.machineSize ?? null, createdByUserId: ctx.principal.userId, }) .returning(); @@ -599,11 +624,17 @@ export const environmentRouter = { repositoryIds: z.array(z.string().uuid()).min(1).max(20).optional(), primaryRepositoryId: z.string().uuid().optional(), scope: z.enum(environmentScopeValues).optional(), + /** Null goes back to the organization's default. */ + machineSize: z.enum(MACHINE_SIZES).nullable().optional(), }), ) .mutation(async ({ ctx, input }) => { const current = await loadEnvironment(input.id, ctx); await assertCloudAccess(ctx, current.organizationId); + if (input.machineSize !== undefined) { + await assertCanChangeForEveryone(current, ctx); + } + await assertMachineSizeOffered(current.organizationId, input.machineSize); // A golden was built for its repositories and set up by its primary. // Changing either means a different golden, so it is promoted again. @@ -647,6 +678,9 @@ export const environmentRouter = { const patch = { ...(input.name ? { name: input.name } : {}), ...(input.scope ? { scope: input.scope } : {}), + ...(input.machineSize !== undefined + ? { machineSize: input.machineSize } + : {}), ...(input.scope === "personal" ? { createdByUserId: personalOwner(current, ctx.principal.userId) } : {}),