π OpenHands: AI-Driven Development
[Phase 1] Strip SaaS-specific code from the OSS repo (#17)
Graham Neubig18fc1fd9a930
diff --git a/AGENTS.md b/AGENTS.mdindex 6b070fc7f3..28cff718e7 100644--- a/AGENTS.md+++ b/AGENTS.md@@ -14,16 +14,21 @@- `VITE_ENABLE_BROWSER_TOOLS=false` to omit `BrowserToolSet` from new conversation payloads.- The UI keeps most OpenHands routes/layout intact, but SaaS/org/billing/integration behavior is intentionally hidden or stubbed via the fabricated OSS config because there is no separate app backend.- Verification command: `npm run typecheck && npm run build`.-- `@openhands/typescript-client` is currently consumed via a vendored local file dependency at `vendor/openhands-typescript-client` because anonymous/public GitHub Packages install was not usable in this environment. The vendored package is pinned to `v0.1.2`, keeps built `dist/` output committed, and exposes extra subpath exports for `client/http-client`, `events/remote-events-list`, and `workspace/remote-workspace`.+- `@openhands/typescript-client` is consumed directly from `github:OpenHands/typescript-client#4716d2e`; that package ships the needed subpath exports for `client/http-client`, `events/remote-events-list`, and `workspace/remote-workspace`.- Shared TypeScript-client adapters live in `src/api/typescript-client.ts`; prefer those helpers for agent-server-backed REST/workspace/event/VS Code calls before falling back to `open-hands-axios`.-- In this repo state, `src/api/typescript-client.ts` imports the vendored TypeScript client directly from `vendor/openhands-typescript-client/src/*` rather than the package subpath exports, because the file dependency does not currently ship the expected built `dist/` subpath files in this environment.-- Root `tsconfig.json` excludes `vendor/openhands-typescript-client` so the frontend typecheck only covers the app code.+- Local verification/build gotchas:+ - `npm run typecheck` assumes generated translation types exist; run `npm run make-i18n` first if `src/i18n/declaration.ts` is missing.+- Phase-1 OSS cleanup removed SaaS-only auth/org/billing/onboarding/payment/invitation codepaths, routes, and tests. Keep `integrations`, `git-settings`, `secrets`, MCP settings, and other local/self-hosted flows intact when simplifying OSS behavior.+- When merging main into the Phase-1 OSS cleanup branch, keep the new agent-server compatibility bootstrap in `src/root.tsx`, but do not reintroduce SaaS invitation cleanup or enterprise CTA chrome in the OSS user menu; the OSS account menu should just render settings links plus Docs.++- During the Phase-1 OSS cleanup audit, the runtime SaaS removals held up, but route-level regression coverage for still-active OSS settings pages had been deleted too aggressively. Keep focused tests for local/self-hosted screens like `app-settings`, `llm-settings`, `git-settings`, `mcp-settings`, and `secrets-settings` even when stripping SaaS-only code.- `npm run dev:mock` needs MSW handlers for the direct agent-server routes used by the adapted frontend, not the original OpenHands mock paths. Key routes that must stay covered are:- bootstrap/model loading: `/server_info`, `/api/llm/models/verified`, `/api/llm/providers`- settings schemas: `/api/settings/agent-schema`, `/api/settings/conversation-schema`- conversation browsing/loading: `/api/conversations/search`, `/api/conversations?ids=...`, `/api/conversations/:id`, `/api/conversations/:id/events/*`- runtime git panels: `/api/git/changes`, `/api/git/diff`+- Static mock verification needs a build created with `VITE_MOCK_API=true` (use `npm run build:mock`); the client must start MSW whenever that flag is enabled, even in production/static builds, otherwise routes like `/settings` and the conversations pane fall through to the static server and crash on undefined `.filter`/`.map` assumptions.- Frontend compatibility guard: `OptionService.getConfig()` now uses `/server_info.version` to block unsupported agent-server versions before the app loads. Git history in `software-agent-sdk` shows `/api/settings/agent-schema` and `/api/settings/conversation-schema` first shipped in tag `v1.17.0`, so the GUI currently treats `< 1.17.0` (or unknown/unparseable versions) as incompatible, `useConfig` stops retrying that case, and `src/root.tsx` renders a blocking unsupported-version notice on every route.- Useful regression tests for mock mode live in `__tests__/api/option-service.test.ts`, `__tests__/api/mock-conversation-handlers.test.ts`, and `__tests__/api/mock-settings-handlers.test.ts`.- Browser-verified mock-mode tour artifact was generated at `artifacts/frontend-tour.gif`.diff --git a/__tests__/api/option-service.test.ts b/__tests__/api/option-service.test.tsindex 3bcace72fe..d02673781e 100644--- a/__tests__/api/option-service.test.ts+++ b/__tests__/api/option-service.test.ts@@ -14,6 +14,7 @@ describe("OptionService", () => {expect(config.app_mode).toBe("oss");expect(config.feature_flags.deployment_mode).toBe("self_hosted");+ expect(config.feature_flags.hide_integrations_page).toBe(false);expect(config.updated_at).toBeTruthy();});diff --git a/__tests__/components/context-menu/context-menu-cta.test.tsx b/__tests__/components/context-menu/context-menu-cta.test.tsxdeleted file mode 100644index ba80c81410..0000000000--- a/__tests__/components/context-menu/context-menu-cta.test.tsx+++ /dev/null@@ -1,60 +0,0 @@-import { render, screen } from "@testing-library/react";-import { describe, expect, it, vi } from "vitest";-import userEvent from "@testing-library/user-event";-import { ContextMenuCTA } from "#/components/features/context-menu/context-menu-cta";--// Mock useTracking hook-const mockTrackSaasSelfhostedInquiry = vi.fn();-vi.mock("#/hooks/use-tracking", () => ({- useTracking: () => ({- trackSaasSelfhostedInquiry: mockTrackSaasSelfhostedInquiry,- }),-}));--describe("ContextMenuCTA", () => {- it("should render the CTA component", () => {- render(<ContextMenuCTA />);-- expect(screen.getByText("CTA$ENTERPRISE_TITLE")).toBeInTheDocument();- expect(screen.getByText("CTA$ENTERPRISE_DESCRIPTION")).toBeInTheDocument();- expect(screen.getByText("CTA$LEARN_MORE")).toBeInTheDocument();- });-- it("should call trackSaasSelfhostedInquiry with location 'context_menu' when Learn More is clicked", async () => {- const user = userEvent.setup();- render(<ContextMenuCTA />);-- const learnMoreLink = screen.getByRole("link", {- name: "CTA$LEARN_MORE",- });- await user.click(learnMoreLink);-- expect(mockTrackSaasSelfhostedInquiry).toHaveBeenCalledWith({- location: "context_menu",- });- });-- it("should render Learn More as a link with correct href and target", () => {- render(<ContextMenuCTA />);-- const learnMoreLink = screen.getByRole("link", {- name: "CTA$LEARN_MORE",- });- expect(learnMoreLink).toHaveAttribute(- "href",- "https://openhands.dev/enterprise/",- );- expect(learnMoreLink).toHaveAttribute("target", "_blank");- expect(learnMoreLink).toHaveAttribute("rel", "noopener noreferrer");- });-- it("should render the stacked icon", () => {- render(<ContextMenuCTA />);-- const contentContainer = screen.getByTestId("context-menu-cta-content");- const icon = contentContainer.querySelector("svg");- expect(icon).toBeInTheDocument();- expect(icon).toHaveAttribute("width", "40");- expect(icon).toHaveAttribute("height", "40");- });-});diff --git a/__tests__/components/features/analytics/analytics-consent-form-modal.test.tsx b/__tests__/components/features/analytics/analytics-consent-form-modal.test.tsxdeleted file mode 100644index d1e0fbf5dc..0000000000--- a/__tests__/components/features/analytics/analytics-consent-form-modal.test.tsx+++ /dev/null@@ -1,35 +0,0 @@-import userEvent from "@testing-library/user-event";-import { describe, expect, it, vi, beforeEach } from "vitest";-import { render, screen, waitFor } from "@testing-library/react";-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { AnalyticsConsentFormModal } from "#/components/features/analytics/analytics-consent-form-modal";-import SettingsService from "#/api/settings-service/settings-service.api";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";--describe("AnalyticsConsentFormModal", () => {- beforeEach(() => {- useSelectedOrganizationStore.setState({ organizationId: "test-org-id" });- });-- it("should call saveUserSettings with consent", async () => {- const user = userEvent.setup();- const onCloseMock = vi.fn();- const saveUserSettingsSpy = vi.spyOn(SettingsService, "saveSettings");-- render(<AnalyticsConsentFormModal onClose={onCloseMock} />, {- wrapper: ({ children }) => (- <QueryClientProvider client={new QueryClient()}>- {children}- </QueryClientProvider>- ),- });-- const confirmButton = screen.getByTestId("confirm-preferences");- await user.click(confirmButton);-- expect(saveUserSettingsSpy).toHaveBeenCalledWith(- expect.objectContaining({ user_consents_to_analytics: true }),- );- await waitFor(() => expect(onCloseMock).toHaveBeenCalled());- });-});diff --git a/__tests__/components/features/auth/login-content.test.tsx b/__tests__/components/features/auth/login-content.test.tsxdeleted file mode 100644index 8aadc507cb..0000000000--- a/__tests__/components/features/auth/login-content.test.tsx+++ /dev/null@@ -1,525 +0,0 @@-import { render, screen, waitFor } from "@testing-library/react";-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import userEvent from "@testing-library/user-event";-import { MemoryRouter } from "react-router";-import { LoginContent } from "#/components/features/auth/login-content";--vi.mock("#/hooks/use-auth-url", () => ({- useAuthUrl: (config: {- identityProvider: string;- appMode: string | null;- authUrl?: string;- }) => {- const urls: Record<string, string> = {- gitlab: "https://gitlab.com/oauth/authorize",- bitbucket: "https://bitbucket.org/site/oauth2/authorize",- bitbucket_data_center:- "https://bitbucket-dc.example.com/site/oauth2/authorize",- enterprise_sso: "https://auth.example.com/realms/test/protocol/openid-connect/auth",- };- if (config.appMode === "saas") {- return urls[config.identityProvider] || null;- }- return null;- },-}));--vi.mock("#/hooks/use-tracking", () => ({- useTracking: () => ({- trackLoginButtonClick: vi.fn(),- }),-}));--vi.mock("#/hooks/query/use-config", () => ({- useConfig: () => ({- data: undefined,- }),-}));--vi.mock("#/hooks/use-recaptcha", () => ({- useRecaptcha: () => ({- isReady: false,- isLoading: false,- error: null,- executeRecaptcha: vi.fn().mockResolvedValue(null),- }),-}));--vi.mock("#/utils/custom-toast-handlers", () => ({- displayErrorToast: vi.fn(),-}));--const mockUseAppMode = vi.fn(() => ({- isOss: false,- isSaas: true,- isCloud: true,- isSelfHosted: false,- isEnterpriseSelfHosted: false,- isEnterpriseCloud: true,- appMode: "saas" as string | undefined,- deploymentMode: "cloud" as string | undefined,-}));-vi.mock("#/hooks/use-app-mode", () => ({- useAppMode: () => mockUseAppMode(),-}));--describe("LoginContent", () => {- beforeEach(() => {- vi.stubGlobal("location", { href: "" });- // Reset mock to return SaaS Cloud (CTA enabled) by default- mockUseAppMode.mockReturnValue({- isOss: false,- isSaas: true,- isCloud: true,- isSelfHosted: false,- isEnterpriseSelfHosted: false,- isEnterpriseCloud: true,- appMode: "saas",- deploymentMode: "cloud",- });- });-- afterEach(() => {- vi.unstubAllGlobals();- vi.restoreAllMocks();- });-- it("should render login content with heading", () => {- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/oauth/authorize"- appMode="saas"- providersConfigured={["github", "gitlab", "bitbucket"]}- />- </MemoryRouter>,- );-- expect(screen.getByTestId("login-content")).toBeInTheDocument();- expect(screen.getByText("AUTH$LETS_GET_STARTED")).toBeInTheDocument();- });-- it("should display all configured provider buttons", () => {- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/oauth/authorize"- appMode="saas"- authUrl="https://auth.example.com"- providersConfigured={["github", "gitlab", "bitbucket"]}- />- </MemoryRouter>,- );-- expect(- screen.getByRole("button", { name: "GITHUB$CONNECT_TO_GITHUB" }),- ).toBeInTheDocument();- expect(- screen.getByRole("button", { name: "GITLAB$CONNECT_TO_GITLAB" }),- ).toBeInTheDocument();-- const bitbucketButton = screen.getByRole("button", {- name: /BITBUCKET\$CONNECT_TO_BITBUCKET/i,- });- expect(bitbucketButton).toBeInTheDocument();- });-- it("should only display configured providers", () => {- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/oauth/authorize"- appMode="saas"- providersConfigured={["github"]}- />- </MemoryRouter>,- );-- expect(- screen.getByRole("button", { name: "GITHUB$CONNECT_TO_GITHUB" }),- ).toBeInTheDocument();- expect(- screen.queryByRole("button", { name: "GITLAB$CONNECT_TO_GITLAB" }),- ).not.toBeInTheDocument();- });-- it("should display Enterprise SSO button when configured", () => {- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/oauth/authorize"- appMode="saas"- authUrl="https://auth.example.com"- providersConfigured={["enterprise_sso"]}- />- </MemoryRouter>,- );-- expect(- screen.getByRole("button", { name: /ENTERPRISE_SSO\$CONNECT_TO_ENTERPRISE_SSO/i }),- ).toBeInTheDocument();- });-- it("should display Enterprise SSO alongside other providers when all configured", () => {- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/oauth/authorize"- appMode="saas"- authUrl="https://auth.example.com"- providersConfigured={["github", "gitlab", "bitbucket", "enterprise_sso"]}- />- </MemoryRouter>,- );-- expect(- screen.getByRole("button", { name: "GITHUB$CONNECT_TO_GITHUB" }),- ).toBeInTheDocument();- expect(- screen.getByRole("button", { name: "GITLAB$CONNECT_TO_GITLAB" }),- ).toBeInTheDocument();- expect(- screen.getByRole("button", { name: /BITBUCKET\$CONNECT_TO_BITBUCKET/i }),- ).toBeInTheDocument();- expect(- screen.getByRole("button", { name: /ENTERPRISE_SSO\$CONNECT_TO_ENTERPRISE_SSO/i }),- ).toBeInTheDocument();- });-- it("should redirect to Enterprise SSO auth URL when Enterprise SSO button is clicked", async () => {- const user = userEvent.setup();- const mockUrl = "https://auth.example.com/realms/test/protocol/openid-connect/auth";-- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/oauth/authorize"- appMode="saas"- authUrl="https://auth.example.com"- providersConfigured={["enterprise_sso"]}- />- </MemoryRouter>,- );-- const enterpriseSsoButton = screen.getByRole("button", {- name: /ENTERPRISE_SSO\$CONNECT_TO_ENTERPRISE_SSO/i,- });- await user.click(enterpriseSsoButton);-- await waitFor(() => {- expect(window.location.href).toContain(mockUrl);- });- });-- it("should display message when no providers are configured", () => {- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/oauth/authorize"- appMode="saas"- providersConfigured={[]}- />- </MemoryRouter>,- );-- expect(- screen.getByText("AUTH$NO_PROVIDERS_CONFIGURED"),- ).toBeInTheDocument();- });-- it("should redirect to GitHub auth URL when GitHub button is clicked", async () => {- const user = userEvent.setup();- const mockUrl = "https://github.com/login/oauth/authorize";-- render(- <MemoryRouter>- <LoginContent- githubAuthUrl={mockUrl}- appMode="saas"- providersConfigured={["github"]}- />- </MemoryRouter>,- );-- const githubButton = screen.getByRole("button", {- name: "GITHUB$CONNECT_TO_GITHUB",- });- await user.click(githubButton);-- // Wait for async handleAuthRedirect to complete- // The URL includes state parameter added by handleAuthRedirect- await waitFor(() => {- expect(window.location.href).toContain(mockUrl);- });- });-- it("should display email verified message when emailVerified is true", () => {- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/oauth/authorize"- appMode="saas"- providersConfigured={["github"]}- emailVerified- />- </MemoryRouter>,- );-- expect(- screen.getByText("AUTH$EMAIL_VERIFIED_PLEASE_LOGIN"),- ).toBeInTheDocument();- });-- it("should display duplicate email error when hasDuplicatedEmail is true", () => {- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/oauth/authorize"- appMode="saas"- providersConfigured={["github"]}- hasDuplicatedEmail- />- </MemoryRouter>,- );-- expect(screen.getByText("AUTH$DUPLICATE_EMAIL_ERROR")).toBeInTheDocument();- });-- it("should display Terms and Privacy notice", () => {- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/oauth/authorize"- appMode="saas"- providersConfigured={["github"]}- />- </MemoryRouter>,- );-- expect(screen.getByTestId("terms-and-privacy-notice")).toBeInTheDocument();- });-- it("should display the enterprise LoginCTA component when in SaaS Cloud mode", () => {- mockUseAppMode.mockReturnValue({- isOss: false,- isSaas: true,- isCloud: true,- isSelfHosted: false,- isEnterpriseSelfHosted: false,- isEnterpriseCloud: true,- appMode: "saas",- deploymentMode: "cloud",- });-- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/oauth/authorize"- appMode="saas"- providersConfigured={["github"]}- />- </MemoryRouter>,- );-- expect(screen.getByTestId("login-cta")).toBeInTheDocument();- });-- it("should not display the enterprise LoginCTA component when in OSS mode", () => {- mockUseAppMode.mockReturnValue({- isOss: true,- isSaas: false,- isCloud: false,- isSelfHosted: false,- isEnterpriseSelfHosted: false,- isEnterpriseCloud: false,- appMode: "oss",- deploymentMode: undefined,- });-- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/oauth/authorize"- appMode="oss"- providersConfigured={["github"]}- />- </MemoryRouter>,- );-- expect(screen.queryByTestId("login-cta")).not.toBeInTheDocument();- });-- it("should not display the enterprise LoginCTA component when in SaaS Self-hosted mode", () => {- mockUseAppMode.mockReturnValue({- isOss: false,- isSaas: true,- isCloud: false,- isSelfHosted: true,- isEnterpriseSelfHosted: true,- isEnterpriseCloud: false,- appMode: "saas",- deploymentMode: "self_hosted",- });-- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/oauth/authorize"- appMode="saas"- providersConfigured={["github"]}- />- </MemoryRouter>,- );-- expect(screen.queryByTestId("login-cta")).not.toBeInTheDocument();- });-- it("should display invitation pending message when hasInvitation is true", () => {- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/oauth/authorize"- appMode="saas"- providersConfigured={["github"]}- hasInvitation- />- </MemoryRouter>,- );-- expect(screen.getByText("AUTH$INVITATION_PENDING")).toBeInTheDocument();- });-- it("should not display invitation pending message when hasInvitation is false", () => {- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/oauth/authorize"- appMode="saas"- providersConfigured={["github"]}- hasInvitation={false}- />- </MemoryRouter>,- );-- expect(- screen.queryByText("AUTH$INVITATION_PENDING"),- ).not.toBeInTheDocument();- });-- it("should display Bitbucket signup disabled message when Bitbucket is configured", () => {- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/oauth/authorize"- appMode="saas"- providersConfigured={["github", "bitbucket"]}- />- </MemoryRouter>,- );-- expect(- screen.getByText("AUTH$BITBUCKET_SIGNUP_DISABLED"),- ).toBeInTheDocument();- });-- it("should not display Bitbucket signup disabled message when Bitbucket is not configured", () => {- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/oauth/authorize"- appMode="saas"- providersConfigured={["github"]}- />- </MemoryRouter>,- );-- expect(- screen.queryByText("AUTH$BITBUCKET_SIGNUP_DISABLED"),- ).not.toBeInTheDocument();- });-- it("should call buildOAuthStateData when clicking auth button", async () => {- const user = userEvent.setup();- const mockBuildOAuthStateData = vi.fn((baseState) => ({- ...baseState,- invitation_token: "inv-test-token-12345",- }));-- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/login/oauth/authorize"- appMode="saas"- providersConfigured={["github"]}- buildOAuthStateData={mockBuildOAuthStateData}- />- </MemoryRouter>,- );-- const githubButton = screen.getByRole("button", {- name: "GITHUB$CONNECT_TO_GITHUB",- });- await user.click(githubButton);-- await waitFor(() => {- expect(mockBuildOAuthStateData).toHaveBeenCalled();- const callArg = mockBuildOAuthStateData.mock.calls[0][0];- expect(callArg).toHaveProperty("redirect_url");- });- });-- it("should display Bitbucket Data Center button when configured", () => {- render(- <MemoryRouter>- <LoginContent- githubAuthUrl={null}- appMode="saas"- providersConfigured={["bitbucket_data_center"]}- />- </MemoryRouter>,- );-- expect(- screen.getByRole("button", {- name: /BITBUCKET_DATA_CENTER\$CONNECT_TO_BITBUCKET_DATA_CENTER/i,- }),- ).toBeInTheDocument();- });-- it("should encode state with invitation token when buildOAuthStateData provides token", async () => {- const user = userEvent.setup();- const mockBuildOAuthStateData = vi.fn((baseState) => ({- ...baseState,- invitation_token: "inv-test-token-12345",- }));-- render(- <MemoryRouter>- <LoginContent- githubAuthUrl="https://github.com/login/oauth/authorize"- appMode="saas"- providersConfigured={["github"]}- buildOAuthStateData={mockBuildOAuthStateData}- />- </MemoryRouter>,- );-- const githubButton = screen.getByRole("button", {- name: "GITHUB$CONNECT_TO_GITHUB",- });- await user.click(githubButton);-- await waitFor(() => {- const redirectUrl = window.location.href;- // The URL should contain an encoded state parameter- expect(redirectUrl).toContain("state=");- // Decode and verify the state contains invitation_token- const url = new URL(redirectUrl);- const state = url.searchParams.get("state");- if (state) {- const decodedState = JSON.parse(atob(state));- expect(decodedState.invitation_token).toBe("inv-test-token-12345");- }- });- });-});diff --git a/__tests__/components/features/auth/login-cta.test.tsx b/__tests__/components/features/auth/login-cta.test.tsxdeleted file mode 100644index e1db11a2e4..0000000000--- a/__tests__/components/features/auth/login-cta.test.tsx+++ /dev/null@@ -1,106 +0,0 @@-import { render, screen } from "@testing-library/react";-import { afterEach, describe, expect, it, vi } from "vitest";-import userEvent from "@testing-library/user-event";-import { createRoutesStub } from "react-router";-import { LoginCTA } from "#/components/features/auth/login-cta";--// Mock useTracking hook-const mockTrackSaasSelfhostedInquiry = vi.fn();-vi.mock("#/hooks/use-tracking", () => ({- useTracking: () => ({- trackSaasSelfhostedInquiry: mockTrackSaasSelfhostedInquiry,- }),-}));--describe("LoginCTA", () => {- afterEach(() => {- vi.clearAllMocks();- });-- const renderWithRouter = (source?: "login_page" | "device_verify") => {- const Stub = createRoutesStub([- {- path: "/",- Component: () => <LoginCTA source={source} />,- },- {- path: "/information-request",- Component: () => <div data-testid="information-request-page" />,- },- ]);-- return render(<Stub initialEntries={["/"]} />);- };-- it("should render enterprise CTA with title and description", () => {- renderWithRouter();-- expect(screen.getByTestId("login-cta")).toBeInTheDocument();- expect(screen.getByText("CTA$ENTERPRISE")).toBeInTheDocument();- expect(screen.getByText("CTA$ENTERPRISE_DEPLOY")).toBeInTheDocument();- });-- it("should render all enterprise feature list items", () => {- renderWithRouter();-- expect(screen.getByText("CTA$FEATURE_ON_PREMISES")).toBeInTheDocument();- expect(screen.getByText("CTA$FEATURE_DATA_CONTROL")).toBeInTheDocument();- expect(screen.getByText("CTA$FEATURE_COMPLIANCE")).toBeInTheDocument();- expect(screen.getByText("CTA$FEATURE_SUPPORT")).toBeInTheDocument();- });-- it("should track and navigate to information request page when Learn More is clicked", async () => {- const user = userEvent.setup();- renderWithRouter();-- const learnMoreLink = screen.getByRole("link", {- name: "CTA$LEARN_MORE",- });- await user.click(learnMoreLink);-- expect(mockTrackSaasSelfhostedInquiry).toHaveBeenCalledWith({- location: "login_page",- });- expect(screen.getByTestId("information-request-page")).toBeInTheDocument();- });-- it("should render Learn More as a link for Open in New Tab support", () => {- renderWithRouter();-- const learnMoreLink = screen.getByRole("link", {- name: "CTA$LEARN_MORE",- });- expect(learnMoreLink).toHaveAttribute(- "href",- "/information-request",- );- });-- it("should render external enterprise URL in device verify mode", () => {- renderWithRouter("device_verify");-- const learnMoreLink = screen.getByRole("link", {- name: "CTA$LEARN_MORE",- });- expect(learnMoreLink).toHaveAttribute(- "href",- "https://openhands.dev/enterprise",- );- expect(learnMoreLink).toHaveAttribute("target", "_blank");- expect(learnMoreLink).toHaveAttribute("rel", "noopener noreferrer");- });-- it("should track device_verify location when Learn More is clicked in device verify mode", async () => {- const user = userEvent.setup();- renderWithRouter("device_verify");-- const learnMoreLink = screen.getByRole("link", {- name: "CTA$LEARN_MORE",- });- await user.click(learnMoreLink);-- expect(mockTrackSaasSelfhostedInquiry).toHaveBeenCalledWith({- location: "device_verify",- });- });-});diff --git a/__tests__/components/features/chat/messages.test.tsx b/__tests__/components/features/chat/messages.test.tsxdeleted file mode 100644index cfe5008b81..0000000000--- a/__tests__/components/features/chat/messages.test.tsx+++ /dev/null@@ -1,92 +0,0 @@-import { render, screen } from "@testing-library/react";-import { beforeEach, describe, expect, it, vi } from "vitest";-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { Messages } from "#/components/features/chat/messages";-import {- AssistantMessageAction,- OpenHandsAction,- UserMessageAction,-} from "#/types/core/actions";-import { OpenHandsObservation } from "#/types/core/observations";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";--vi.mock("react-router", async (importOriginal) => ({- ...(await importOriginal<typeof import("react-router")>()),- useParams: () => ({ conversationId: "123" }),- useRevalidator: () => ({ revalidate: vi.fn() }),-}));--let queryClient: QueryClient;--const renderMessages = ({- messages,-}: {- messages: (OpenHandsAction | OpenHandsObservation)[];-}) => {- const { rerender, ...rest } = render(- <Messages messages={messages} isAwaitingUserConfirmation={false} />,- {- wrapper: ({ children }) => (- <QueryClientProvider client={queryClient!}>- {children}- </QueryClientProvider>- ),- },- );-- const rerenderMessages = (- newMessages: (OpenHandsAction | OpenHandsObservation)[],- ) => {- rerender(- <Messages messages={newMessages} isAwaitingUserConfirmation={false} />,- );- };-- return { ...rest, rerender: rerenderMessages };-};--describe("Messages", () => {- beforeEach(() => {- queryClient = new QueryClient();- useSelectedOrganizationStore.setState({ organizationId: "test-org-id" });- });-- const assistantMessage: AssistantMessageAction = {- id: 0,- action: "message",- source: "agent",- message: "Hello, Assistant!",- timestamp: new Date().toISOString(),- args: {- image_urls: [],- file_urls: [],- thought: "",- wait_for_response: false,- },- };-- const userMessage: UserMessageAction = {- id: 1,- action: "message",- source: "user",- message: "Hello, User!",- timestamp: new Date().toISOString(),- args: { content: "Hello, User!", image_urls: [], file_urls: [] },- };-- it("should render", () => {- renderMessages({ messages: [userMessage, assistantMessage] });-- expect(screen.getByText("Hello, User!")).toBeInTheDocument();- expect(screen.getByText("Hello, Assistant!")).toBeInTheDocument();- });-- it("should render a launch to microagent action button on chat messages only if it is a user message", () => {- renderMessages({- messages: [userMessage, assistantMessage],- });-- expect(screen.getByText("Hello, User!")).toBeInTheDocument();- expect(screen.getByText("Hello, Assistant!")).toBeInTheDocument();- });-});diff --git a/__tests__/components/features/home/repo-connector.test.tsx b/__tests__/components/features/home/repo-connector.test.tsxdeleted file mode 100644index 20dbfe736e..0000000000--- a/__tests__/components/features/home/repo-connector.test.tsx+++ /dev/null@@ -1,507 +0,0 @@-import { render, screen, waitFor, within } from "@testing-library/react";-import { beforeEach, describe, expect, it, vi } from "vitest";-import userEvent from "@testing-library/user-event";-import { QueryClientProvider, QueryClient } from "@tanstack/react-query";-import { createRoutesStub, Outlet } from "react-router";-import SettingsService from "#/api/settings-service/settings-service.api";-import V1ConversationService from "#/api/conversation-service/v1-conversation-service.api";-import GitService from "#/api/git-service/git-service.api";-import OptionService from "#/api/option-service/option-service.api";-import { GitRepository } from "#/types/git";-import { RepoConnector } from "#/components/features/home/repo-connector";-import { MOCK_DEFAULT_USER_SETTINGS } from "#/mocks/handlers";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";--const renderRepoConnector = () => {- const mockRepoSelection = vi.fn();- const RouterStub = createRoutesStub([- {- Component: () => <RepoConnector onRepoSelection={mockRepoSelection} />,- path: "/",- },- {- Component: () => <div data-testid="conversation-screen" />,- path: "/conversations/:conversationId",- },- {- Component: () => <Outlet />,- path: "/settings",- children: [- {- Component: () => <div data-testid="settings-screen" />,- path: "/settings",- },- {- Component: () => <div data-testid="git-settings-screen" />,- path: "/settings/integrations",- },- ],- },- ]);-- return render(<RouterStub />, {- wrapper: ({ children }) => (- <QueryClientProvider client={new QueryClient()}>- {children}- </QueryClientProvider>- ),- });-};--const MOCK_RESPOSITORIES: GitRepository[] = [- {- id: "1",- full_name: "rbren/polaris",- git_provider: "github",- is_public: true,- main_branch: "main",- },- {- id: "2",- full_name: "OpenHands/OpenHands",- git_provider: "github",- is_public: true,- main_branch: "main",- },-];--beforeEach(() => {- useSelectedOrganizationStore.setState({ organizationId: "test-org-id" });- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- provider_tokens_set: {- github: "some-token",- gitlab: null,- azure_devops: null,- },- });-});--describe("RepoConnector", () => {- it("should render the repository connector section", () => {- renderRepoConnector();- screen.getByTestId("repo-connector");- });-- it("should render the available repositories in the dropdown", async () => {- const retrieveUserGitRepositoriesSpy = vi.spyOn(- GitService,- "retrieveUserGitRepositories",- );- retrieveUserGitRepositoriesSpy.mockResolvedValue({- items: MOCK_RESPOSITORIES,- next_page_id: null,- });-- // Mock the search function that's used by the dropdown- vi.spyOn(GitService, "searchGitRepositories").mockResolvedValue({- items: MOCK_RESPOSITORIES,- next_page_id: null,- });-- renderRepoConnector();-- // First select the provider- const providerDropdown = await waitFor(() =>- screen.getByTestId("git-provider-dropdown"),- );- await userEvent.click(providerDropdown);- await userEvent.click(screen.getByText("GitHub"));-- // Then interact with the repository dropdown- const repoInput = await waitFor(() =>- screen.getByTestId("git-repo-dropdown"),- );- await userEvent.click(repoInput);-- // Wait for the options to be loaded and displayed- await waitFor(() => {- expect(screen.getByText("rbren/polaris")).toBeInTheDocument();- expect(screen.getByText("OpenHands/OpenHands")).toBeInTheDocument();- });- });-- it("should only enable the launch button if a repo is selected", async () => {- const retrieveUserGitRepositoriesSpy = vi.spyOn(- GitService,- "retrieveUserGitRepositories",- );- retrieveUserGitRepositoriesSpy.mockResolvedValue({- items: MOCK_RESPOSITORIES,- next_page_id: null,- });-- renderRepoConnector();-- const launchButton = await screen.findByTestId("repo-launch-button");- expect(launchButton).toBeDisabled();-- // Mock the repository branches API call- vi.spyOn(GitService, "getRepositoryBranches").mockResolvedValue({- items: [- { name: "main", commit_sha: "123", protected: false },- { name: "develop", commit_sha: "456", protected: false },- ],- next_page_id: null,- });-- // First select the provider- const providerDropdown = await waitFor(() =>- screen.getByTestId("git-provider-dropdown"),- );- await userEvent.click(providerDropdown);- await userEvent.click(screen.getByText("GitHub"));-- // Then select the repository- const repoInput = await waitFor(() =>- screen.getByTestId("git-repo-dropdown"),- );-- await userEvent.click(repoInput);-- // Wait for the options to be loaded and displayed- await waitFor(() => {- expect(screen.getByText("rbren/polaris")).toBeInTheDocument();- });- await userEvent.click(screen.getByText("rbren/polaris"));-- // Wait for the branch to be auto-selected- await waitFor(() => {- const branchInput = screen.getByTestId("git-branch-dropdown-input");- expect(branchInput).toHaveValue("main");- });-- expect(launchButton).toBeEnabled();- });-- it("should render the 'add github repos' link in dropdown if saas mode and github provider is set", async () => {- const getConfiSpy = vi.spyOn(OptionService, "getConfig");- // @ts-expect-error - only return the app_mode and github_app_slug- getConfiSpy.mockResolvedValue({- app_mode: "saas",- github_app_slug: "openhands",- });-- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- provider_tokens_set: {- github: "some-token",- gitlab: null,- },- });-- const retrieveUserGitRepositoriesSpy = vi.spyOn(- GitService,- "retrieveUserGitRepositories",- );- retrieveUserGitRepositoriesSpy.mockResolvedValue({- items: MOCK_RESPOSITORIES,- next_page_id: null,- });-- renderRepoConnector();-- // First select the GitHub provider- const providerDropdown = await waitFor(() =>- screen.getByTestId("git-provider-dropdown"),- );- await userEvent.click(providerDropdown);- await userEvent.click(screen.getByText("GitHub"));-- // Then open the repository dropdown- const repoInput = await waitFor(() =>- screen.getByTestId("git-repo-dropdown"),- );- await userEvent.click(repoInput);-- // The "Add GitHub repos" link should be in the dropdown- await waitFor(() => {- expect(screen.getByText("HOME$ADD_GITHUB_REPOS")).toBeInTheDocument();- });- });-- it("should not render the 'add github repos' link if github provider is not set", async () => {- const getConfiSpy = vi.spyOn(OptionService, "getConfig");- // @ts-expect-error - only return the app_mode and github_app_slug for this test- getConfiSpy.mockResolvedValue({- app_mode: "saas",- github_app_slug: "openhands",- });-- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- provider_tokens_set: {- gitlab: "some-token",- github: null,- },- });-- const retrieveUserGitRepositoriesSpy = vi.spyOn(- GitService,- "retrieveUserGitRepositories",- );- retrieveUserGitRepositoriesSpy.mockResolvedValue({- items: MOCK_RESPOSITORIES,- next_page_id: null,- });-- renderRepoConnector();-- // First select the GitLab provider (not GitHub)- const providerDropdown = await waitFor(() =>- screen.getByTestId("git-provider-dropdown"),- );- await userEvent.click(providerDropdown);- await userEvent.click(screen.getByText("GitLab"));-- // Then open the repository dropdown- const repoInput = await waitFor(() =>- screen.getByTestId("git-repo-dropdown"),- );- await userEvent.click(repoInput);-- // The "Add GitHub repos" link should NOT be in the dropdown for GitLab- expect(screen.queryByText("HOME$ADD_GITHUB_REPOS")).not.toBeInTheDocument();- });-- it("should not render the 'add github repos' link in dropdown if oss mode", async () => {- const getConfiSpy = vi.spyOn(OptionService, "getConfig");- // @ts-expect-error - only return the app_mode- getConfiSpy.mockResolvedValue({- app_mode: "oss",- });-- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- provider_tokens_set: {- github: "some-token",- gitlab: null,- },- });-- const retrieveUserGitRepositoriesSpy = vi.spyOn(- GitService,- "retrieveUserGitRepositories",- );- retrieveUserGitRepositoriesSpy.mockResolvedValue({- items: MOCK_RESPOSITORIES,- next_page_id: null,- });-- renderRepoConnector();-- // First select the GitHub provider- const providerDropdown = await waitFor(() =>- screen.getByTestId("git-provider-dropdown"),- );- await userEvent.click(providerDropdown);- await userEvent.click(screen.getByText("GitHub"));-- // Then open the repository dropdown- const repoInput = await waitFor(() =>- screen.getByTestId("git-repo-dropdown"),- );- await userEvent.click(repoInput);-- // The "Add GitHub repos" link should NOT be in the dropdown for OSS mode- expect(screen.queryByText("HOME$ADD_GITHUB_REPOS")).not.toBeInTheDocument();- });-- it("should create a conversation and redirect with the selected repo when pressing the launch button", async () => {- const createConversationSpy = vi- .spyOn(V1ConversationService, "createConversation")- .mockResolvedValue({- id: "task-id",- created_by_user_id: null,- status: "READY",- detail: null,- app_conversation_id: "mock-conversation-id",- sandbox_id: null,- agent_server_url: "http://agent-server.local",- request: {- sandbox_id: null,- initial_message: null,- processors: [],- llm_model: null,- selected_repository: "rbren/polaris",- selected_branch: "main",- git_provider: "github",- suggested_task: null,- title: null,- trigger: null,- pr_number: [],- parent_conversation_id: null,- agent_type: "default",- },- created_at: new Date().toISOString(),- updated_at: new Date().toISOString(),- });- const retrieveUserGitRepositoriesSpy = vi.spyOn(- GitService,- "retrieveUserGitRepositories",- );- retrieveUserGitRepositoriesSpy.mockResolvedValue({- items: MOCK_RESPOSITORIES,- next_page_id: null,- });-- renderRepoConnector();-- const repoConnector = screen.getByTestId("repo-connector");- const launchButton =- await within(repoConnector).findByTestId("repo-launch-button");- await userEvent.click(launchButton);-- // repo not selected yet- expect(createConversationSpy).not.toHaveBeenCalled();-- // Mock the repository branches API call- vi.spyOn(GitService, "getRepositoryBranches").mockResolvedValue({- items: [- { name: "main", commit_sha: "123", protected: false },- { name: "develop", commit_sha: "456", protected: false },- ],- next_page_id: null,- });-- // First select the provider- const providerDropdown = await waitFor(() =>- screen.getByTestId("git-provider-dropdown"),- );- await userEvent.click(providerDropdown);- await userEvent.click(screen.getByText("GitHub"));-- // Then select the repository- const repoInput = await waitFor(() =>- within(repoConnector).getByTestId("git-repo-dropdown"),- );-- await userEvent.click(repoInput);-- // Wait for the options to be loaded and displayed- await waitFor(() => {- expect(screen.getByText("rbren/polaris")).toBeInTheDocument();- });- await userEvent.click(screen.getByText("rbren/polaris"));-- // Wait for the branch to be auto-selected- await waitFor(() => {- const branchInput = screen.getByTestId("git-branch-dropdown-input");- expect(branchInput).toHaveValue("main");- });-- await userEvent.click(launchButton);-- expect(createConversationSpy).toHaveBeenCalledOnce();- expect(createConversationSpy).toHaveBeenCalledWith(- "rbren/polaris",- "github",- undefined,- "main",- undefined,- undefined,- undefined,- undefined,- undefined,- undefined,- );- });-- it("should change the launch button text to 'Loading...' when creating a conversation", async () => {- const createConversationSpy = vi.spyOn(- V1ConversationService,- "createConversation",- );- createConversationSpy.mockImplementation(() => new Promise(() => { })); // Never resolves to keep loading state- const retrieveUserGitRepositoriesSpy = vi.spyOn(- GitService,- "retrieveUserGitRepositories",- );- retrieveUserGitRepositoriesSpy.mockResolvedValue({- items: MOCK_RESPOSITORIES,- next_page_id: null,- });-- // Mock the repository branches API call- vi.spyOn(GitService, "getRepositoryBranches").mockResolvedValue({- items: [- { name: "main", commit_sha: "123", protected: false },- { name: "develop", commit_sha: "456", protected: false },- ],- next_page_id: null,- });-- renderRepoConnector();-- const launchButton = await screen.findByTestId("repo-launch-button");-- // First select the provider- const providerDropdown = await waitFor(() =>- screen.getByTestId("git-provider-dropdown"),- );- await userEvent.click(providerDropdown);- await userEvent.click(screen.getByText("GitHub"));-- // Then select the repository- const repoInput = await waitFor(() =>- screen.getByTestId("git-repo-dropdown"),- );-- await userEvent.click(repoInput);-- // Wait for the options to be loaded and displayed- await waitFor(() => {- expect(screen.getByText("rbren/polaris")).toBeInTheDocument();- });- await userEvent.click(screen.getByText("rbren/polaris"));-- // Wait for the branch to be auto-selected- await waitFor(() => {- const branchInput = screen.getByTestId("git-branch-dropdown-input");- expect(branchInput).toHaveValue("main");- });-- await userEvent.click(launchButton);- expect(launchButton).toBeDisabled();- expect(launchButton).toHaveTextContent(/Loading/i);- });-- it("should not display a button to settings if the user is signed in with their git provider", async () => {- renderRepoConnector();-- await waitFor(() => {- expect(- screen.queryByTestId("navigate-to-settings-button"),- ).not.toBeInTheDocument();- });- });-- it("should display a button to settings if the user needs to sign in with their git provider", async () => {- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- provider_tokens_set: {},- });- renderRepoConnector();-- const goToSettingsButton = await screen.findByTestId(- "navigate-to-settings-button",- );- const dropdown = screen.queryByTestId("git-repo-dropdown");- const launchButton = screen.queryByTestId("repo-launch-button");- const providerLinks = screen.queryAllByText(/add git(hub|lab) repos/i);-- expect(dropdown).not.toBeInTheDocument();- expect(launchButton).not.toBeInTheDocument();- expect(providerLinks.length).toBe(0);-- expect(goToSettingsButton).toBeInTheDocument();-- await userEvent.click(goToSettingsButton);- await screen.findByTestId("git-settings-screen");- });-});diff --git a/__tests__/components/features/invitations/invitation-accept-modal.test.tsx b/__tests__/components/features/invitations/invitation-accept-modal.test.tsxdeleted file mode 100644index fc3973efd4..0000000000--- a/__tests__/components/features/invitations/invitation-accept-modal.test.tsx+++ /dev/null@@ -1,321 +0,0 @@-import { describe, it, expect, vi, beforeEach } from "vitest";-import { screen, waitFor } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { renderWithProviders, createAxiosError } from "test-utils";-import { InvitationAcceptModal } from "#/components/features/invitations/invitation-accept-modal";-import { organizationService } from "#/api/organization-service/organization-service.api";-import * as toastHandlers from "#/utils/custom-toast-handlers";--// Mock the organization service-vi.mock("#/api/organization-service/organization-service.api", () => ({- organizationService: {- acceptInvitation: vi.fn(),- },-}));--// Mock toast handlers-vi.mock("#/utils/custom-toast-handlers", () => ({- displaySuccessToast: vi.fn(),- displayErrorToast: vi.fn(),-}));--describe("InvitationAcceptModal", () => {- const mockToken = "test-invitation-token-123";- const mockOnClose = vi.fn();- const mockOnSuccess = vi.fn();-- beforeEach(() => {- vi.clearAllMocks();- });-- it("should render the modal with title and description", () => {- renderWithProviders(- <InvitationAcceptModal- token={mockToken}- onClose={mockOnClose}- onSuccess={mockOnSuccess}- />,- );-- expect(screen.getByTestId("invitation-accept-modal")).toBeInTheDocument();- expect(- screen.getByText("ORG$INVITATION_ACCEPT_TITLE"),- ).toBeInTheDocument();- expect(- screen.getByText("ORG$INVITATION_ACCEPT_DESCRIPTION"),- ).toBeInTheDocument();- });-- it("should render accept and cancel buttons", () => {- renderWithProviders(- <InvitationAcceptModal- token={mockToken}- onClose={mockOnClose}- onSuccess={mockOnSuccess}- />,- );-- expect(screen.getByTestId("accept-invitation-button")).toBeInTheDocument();- expect(screen.getByTestId("cancel-invitation-button")).toBeInTheDocument();- });-- it("should call onClose when cancel button is clicked", async () => {- const user = userEvent.setup();-- renderWithProviders(- <InvitationAcceptModal- token={mockToken}- onClose={mockOnClose}- onSuccess={mockOnSuccess}- />,- );-- await user.click(screen.getByTestId("cancel-invitation-button"));-- expect(mockOnClose).toHaveBeenCalledOnce();- });-- it("should call acceptInvitation when accept button is clicked", async () => {- const user = userEvent.setup();- const mockResponse = {- success: true,- org_id: "org-123",- org_name: "Test Organization",- role: "member",- };-- vi.mocked(organizationService.acceptInvitation).mockResolvedValueOnce(- mockResponse,- );-- renderWithProviders(- <InvitationAcceptModal- token={mockToken}- onClose={mockOnClose}- onSuccess={mockOnSuccess}- />,- );-- await user.click(screen.getByTestId("accept-invitation-button"));-- await waitFor(() => {- expect(organizationService.acceptInvitation).toHaveBeenCalledWith({- token: mockToken,- });- });- });-- it("should call onSuccess with org_id and show success toast on successful acceptance", async () => {- const user = userEvent.setup();- const mockResponse = {- success: true,- org_id: "org-123",- org_name: "Test Organization",- role: "member",- };-- vi.mocked(organizationService.acceptInvitation).mockResolvedValueOnce(- mockResponse,- );-- renderWithProviders(- <InvitationAcceptModal- token={mockToken}- onClose={mockOnClose}- onSuccess={mockOnSuccess}- />,- );-- await user.click(screen.getByTestId("accept-invitation-button"));-- await waitFor(() => {- expect(mockOnSuccess).toHaveBeenCalledWith({- orgId: "org-123",- orgName: "Test Organization",- isPersonal: false,- });- });-- expect(toastHandlers.displaySuccessToast).toHaveBeenCalled();- });-- it("should show loading spinner and disable buttons while accepting", async () => {- const user = userEvent.setup();-- // Create a promise that we can control- let resolvePromise: (value: unknown) => void;- const pendingPromise = new Promise((resolve) => {- resolvePromise = resolve;- });-- vi.mocked(organizationService.acceptInvitation).mockReturnValueOnce(- pendingPromise as Promise<{- success: boolean;- org_id: string;- org_name: string;- role: string;- }>,- );-- renderWithProviders(- <InvitationAcceptModal- token={mockToken}- onClose={mockOnClose}- onSuccess={mockOnSuccess}- />,- );-- // Click accept to trigger loading state- await user.click(screen.getByTestId("accept-invitation-button"));-- // Check loading state- await waitFor(() => {- expect(screen.getByTestId("loading-spinner")).toBeInTheDocument();- });- expect(screen.getByTestId("accept-invitation-button")).toBeDisabled();- expect(screen.getByTestId("cancel-invitation-button")).toBeDisabled();-- // Resolve the promise to clean up- resolvePromise!({- success: true,- org_id: "org-123",- org_name: "Test Organization",- role: "member",- });- });-- describe("error handling", () => {- it("should show expired error toast and call onClose when invitation is expired", async () => {- const user = userEvent.setup();-- vi.mocked(organizationService.acceptInvitation).mockRejectedValueOnce(- createAxiosError(400, "Bad Request", { detail: "invitation_expired" }),- );-- renderWithProviders(- <InvitationAcceptModal- token={mockToken}- onClose={mockOnClose}- onSuccess={mockOnSuccess}- />,- );-- await user.click(screen.getByTestId("accept-invitation-button"));-- await waitFor(() => {- expect(toastHandlers.displayErrorToast).toHaveBeenCalledWith(- "ORG$INVITATION_EXPIRED",- );- });-- expect(mockOnClose).toHaveBeenCalledOnce();- expect(mockOnSuccess).not.toHaveBeenCalled();- });-- it("should show invalid error toast and call onClose when invitation is invalid", async () => {- const user = userEvent.setup();-- vi.mocked(organizationService.acceptInvitation).mockRejectedValueOnce(- createAxiosError(400, "Bad Request", { detail: "invitation_invalid" }),- );-- renderWithProviders(- <InvitationAcceptModal- token={mockToken}- onClose={mockOnClose}- onSuccess={mockOnSuccess}- />,- );-- await user.click(screen.getByTestId("accept-invitation-button"));-- await waitFor(() => {- expect(toastHandlers.displayErrorToast).toHaveBeenCalledWith(- "ORG$INVITATION_INVALID",- );- });-- expect(mockOnClose).toHaveBeenCalledOnce();- });-- it("should show already member error toast when user is already a member", async () => {- const user = userEvent.setup();-- vi.mocked(organizationService.acceptInvitation).mockRejectedValueOnce(- createAxiosError(409, "Conflict", { detail: "already_member" }),- );-- renderWithProviders(- <InvitationAcceptModal- token={mockToken}- onClose={mockOnClose}- onSuccess={mockOnSuccess}- />,- );-- await user.click(screen.getByTestId("accept-invitation-button"));-- await waitFor(() => {- expect(toastHandlers.displayErrorToast).toHaveBeenCalledWith(- "ORG$ALREADY_MEMBER",- );- });-- expect(mockOnClose).toHaveBeenCalledOnce();- });-- it("should show email mismatch error toast when email does not match", async () => {- const user = userEvent.setup();-- vi.mocked(organizationService.acceptInvitation).mockRejectedValueOnce(- createAxiosError(403, "Forbidden", { detail: "email_mismatch" }),- );-- renderWithProviders(- <InvitationAcceptModal- token={mockToken}- onClose={mockOnClose}- onSuccess={mockOnSuccess}- />,- );-- await user.click(screen.getByTestId("accept-invitation-button"));-- await waitFor(() => {- expect(toastHandlers.displayErrorToast).toHaveBeenCalledWith(- "ORG$INVITATION_EMAIL_MISMATCH",- );- });-- expect(mockOnClose).toHaveBeenCalledOnce();- });-- it("should show generic error toast for unknown errors", async () => {- const user = userEvent.setup();-- vi.mocked(organizationService.acceptInvitation).mockRejectedValueOnce(- createAxiosError(500, "Internal Server Error", {- detail: "unexpected_error",- }),- );-- renderWithProviders(- <InvitationAcceptModal- token={mockToken}- onClose={mockOnClose}- onSuccess={mockOnSuccess}- />,- );-- await user.click(screen.getByTestId("accept-invitation-button"));-- await waitFor(() => {- expect(toastHandlers.displayErrorToast).toHaveBeenCalledWith(- "ORG$INVITATION_ACCEPT_ERROR",- );- });-- expect(mockOnClose).toHaveBeenCalledOnce();- });- });-});diff --git a/__tests__/components/features/onboarding/enterprise-card.test.tsx b/__tests__/components/features/onboarding/enterprise-card.test.tsxdeleted file mode 100644index 1cc6541a55..0000000000--- a/__tests__/components/features/onboarding/enterprise-card.test.tsx+++ /dev/null@@ -1,83 +0,0 @@-import { render, screen } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { describe, expect, it, vi } from "vitest";-import { MemoryRouter } from "react-router";-import { EnterpriseCard } from "#/components/features/onboarding/enterprise-card";--describe("EnterpriseCard", () => {- const defaultProps = {- icon: <svg data-testid="test-icon" />,- title: "Test Title",- description: "Test description",- features: ["Feature 1", "Feature 2"],- learnMoreLabel: "Learn More",- onLearnMore: vi.fn(),- };-- const renderWithRouter = (props = defaultProps) =>- render(- <MemoryRouter>- <EnterpriseCard {...props} />- </MemoryRouter>,- );-- it("should render the card with title", () => {- renderWithRouter();-- expect(screen.getByText("Test Title")).toBeInTheDocument();- });-- it("should render the description", () => {- renderWithRouter();-- expect(screen.getByText("Test description")).toBeInTheDocument();- });-- it("should render the icon", () => {- renderWithRouter();-- expect(screen.getByTestId("test-icon")).toBeInTheDocument();- });-- it("should render the features", () => {- renderWithRouter();-- expect(screen.getByText("Feature 1")).toBeInTheDocument();- expect(screen.getByText("Feature 2")).toBeInTheDocument();- });-- it("should render the learn more link with correct label", () => {- renderWithRouter();-- const link = screen.getByRole("link", {- name: "Learn More Test Title",- });- expect(link).toBeInTheDocument();- });-- it("should have correct href", () => {- renderWithRouter();-- const link = screen.getByRole("link", { name: "Learn More Test Title" });- expect(link).toHaveAttribute("href", "/information-request");- });-- it("should call onLearnMore when link is clicked", async () => {- const mockOnLearnMore = vi.fn();- const user = userEvent.setup();-- renderWithRouter({ ...defaultProps, onLearnMore: mockOnLearnMore });-- const link = screen.getByRole("link", { name: "Learn More Test Title" });- await user.click(link);-- expect(mockOnLearnMore).toHaveBeenCalledTimes(1);- });-- it("should have correct aria-label on link", () => {- renderWithRouter();-- const link = screen.getByRole("link");- expect(link).toHaveAttribute("aria-label", "Learn More Test Title");- });-});diff --git a/__tests__/components/features/onboarding/feature-list.test.tsx b/__tests__/components/features/onboarding/feature-list.test.tsxdeleted file mode 100644index 046e0c602f..0000000000--- a/__tests__/components/features/onboarding/feature-list.test.tsx+++ /dev/null@@ -1,38 +0,0 @@-import { render, screen } from "@testing-library/react";-import { describe, expect, it } from "vitest";-import { FeatureList } from "#/components/features/onboarding/feature-list";--describe("FeatureList", () => {- it("should render a list of features", () => {- const features = ["Feature 1", "Feature 2", "Feature 3"];- render(<FeatureList features={features} />);-- expect(screen.getByText("Feature 1")).toBeInTheDocument();- expect(screen.getByText("Feature 2")).toBeInTheDocument();- expect(screen.getByText("Feature 3")).toBeInTheDocument();- });-- it("should render bullet points for each feature", () => {- const features = ["Feature 1", "Feature 2"];- render(<FeatureList features={features} />);-- const bullets = screen.getAllByText("β’");- expect(bullets).toHaveLength(2);- });-- it("should render an empty list when no features provided", () => {- render(<FeatureList features={[]} />);-- const list = screen.getByRole("list");- expect(list).toBeInTheDocument();- expect(list.children).toHaveLength(0);- });-- it("should render each feature as a list item", () => {- const features = ["Feature 1", "Feature 2"];- render(<FeatureList features={features} />);-- const listItems = screen.getAllByRole("listitem");- expect(listItems).toHaveLength(2);- });-});diff --git a/__tests__/components/features/onboarding/form-input.test.tsx b/__tests__/components/features/onboarding/form-input.test.tsxdeleted file mode 100644index 0c180f4d47..0000000000--- a/__tests__/components/features/onboarding/form-input.test.tsx+++ /dev/null@@ -1,171 +0,0 @@-import { render, screen } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { describe, expect, it, vi } from "vitest";-import { FormInput } from "#/components/features/onboarding/form-input";--describe("FormInput", () => {- const defaultProps = {- id: "test-input",- label: "Test Label",- value: "",- onChange: vi.fn(),- };-- it("should render with correct test id", () => {- render(<FormInput {...defaultProps} />);-- expect(screen.getByTestId("form-input-test-input")).toBeInTheDocument();- });-- it("should render the label", () => {- render(<FormInput {...defaultProps} />);-- expect(screen.getByText("Test Label")).toBeInTheDocument();- });-- it("should display the provided value", () => {- render(<FormInput {...defaultProps} value="Hello World" />);-- const input = screen.getByTestId("form-input-test-input");- expect(input).toHaveValue("Hello World");- });-- it("should call onChange when user types", async () => {- const mockOnChange = vi.fn();- const user = userEvent.setup();-- render(<FormInput {...defaultProps} onChange={mockOnChange} />);-- const input = screen.getByTestId("form-input-test-input");- await user.type(input, "a");-- expect(mockOnChange).toHaveBeenCalledWith("a");- });-- it("should render as a text input by default", () => {- render(<FormInput {...defaultProps} />);-- const input = screen.getByTestId("form-input-test-input");- expect(input).toHaveAttribute("type", "text");- });-- it("should render as an email input when type is email", () => {- render(<FormInput {...defaultProps} type="email" />);-- const input = screen.getByTestId("form-input-test-input");- expect(input).toHaveAttribute("type", "email");- });-- it("should render a textarea when rows prop is provided", () => {- render(<FormInput {...defaultProps} rows={4} />);-- const textarea = screen.getByTestId("form-input-test-input");- expect(textarea.tagName).toBe("TEXTAREA");- expect(textarea).toHaveAttribute("rows", "4");- });-- it("should render placeholder text", () => {- render(<FormInput {...defaultProps} placeholder="Enter text here" />);-- const input = screen.getByTestId("form-input-test-input");- expect(input).toHaveAttribute("placeholder", "Enter text here");- });-- it("should have aria-required attribute when required", () => {- render(<FormInput {...defaultProps} required />);-- const input = screen.getByTestId("form-input-test-input");- expect(input).toHaveAttribute("aria-required", "true");- });-- it("should have aria-label attribute", () => {- render(<FormInput {...defaultProps} />);-- const input = screen.getByTestId("form-input-test-input");- expect(input).toHaveAttribute("aria-label", "Test Label");- });-- it("should have required attribute on input when required", () => {- render(<FormInput {...defaultProps} required />);-- const input = screen.getByTestId("form-input-test-input");- expect(input).toBeRequired();- });-- it("should have required attribute on textarea when required", () => {- render(<FormInput {...defaultProps} rows={4} required />);-- const textarea = screen.getByTestId("form-input-test-input");- expect(textarea).toBeRequired();- });-- it("should associate label with input via htmlFor", () => {- render(<FormInput {...defaultProps} />);-- const label = screen.getByText("Test Label");- const input = screen.getByTestId("form-input-test-input");-- expect(label).toHaveAttribute("for", "form-input-test-input");- expect(input).toHaveAttribute("id", "form-input-test-input");- });-- describe("error state", () => {- it("should have aria-invalid true when showing error", () => {- render(<FormInput {...defaultProps} required showError />);-- const input = screen.getByTestId("form-input-test-input");- expect(input).toHaveAttribute("aria-invalid", "true");- });-- it("should have aria-invalid false when not showing error", () => {- render(<FormInput {...defaultProps} required showError={false} />);-- const input = screen.getByTestId("form-input-test-input");- expect(input).toHaveAttribute("aria-invalid", "false");- });-- it("should have aria-invalid false when showError is true but field has value", () => {- render(<FormInput {...defaultProps} required showError value="filled" />);-- const input = screen.getByTestId("form-input-test-input");- expect(input).toHaveAttribute("aria-invalid", "false");- });-- it("should have aria-invalid false when showError is true but field is not required", () => {- render(<FormInput {...defaultProps} required={false} showError />);-- const input = screen.getByTestId("form-input-test-input");- expect(input).toHaveAttribute("aria-invalid", "false");- });-- it("should have aria-invalid true on textarea when showError is true and empty", () => {- render(<FormInput {...defaultProps} rows={4} required showError />);-- const textarea = screen.getByTestId("form-input-test-input");- expect(textarea).toHaveAttribute("aria-invalid", "true");- });-- it("should have aria-invalid true for invalid email when showError is true", () => {- render(- <FormInput {...defaultProps} type="email" value="invalid" showError />,- );-- const input = screen.getByTestId("form-input-test-input");- expect(input).toHaveAttribute("aria-invalid", "true");- });-- it("should have aria-invalid false for valid email when showError is true", () => {- render(- <FormInput- {...defaultProps}- type="email"- value="[email protected]"- showError- />,- );-- const input = screen.getByTestId("form-input-test-input");- expect(input).toHaveAttribute("aria-invalid", "false");- });- });-});diff --git a/__tests__/components/features/onboarding/information-request-form.test.tsx b/__tests__/components/features/onboarding/information-request-form.test.tsxdeleted file mode 100644index 1082d44a96..0000000000--- a/__tests__/components/features/onboarding/information-request-form.test.tsx+++ /dev/null@@ -1,367 +0,0 @@-import { render, screen } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { describe, expect, it, vi, beforeEach } from "vitest";-import { createRoutesStub } from "react-router";-import { useState } from "react";-import {- InformationRequestForm,- RequestType,-} from "#/components/features/onboarding/information-request-form";-import { EnterpriseFormData } from "#/utils/local-storage";--// Mock useTracking-const mockTrackEnterpriseLeadFormSubmitted = vi.fn();-vi.mock("#/hooks/use-tracking", () => ({- useTracking: () => ({- trackEnterpriseLeadFormSubmitted: mockTrackEnterpriseLeadFormSubmitted,- }),-}));--const mockOnBack = vi.fn();--// Wrapper to manage form state (needed since component is controlled)-function StatefulForm({ requestType }: { requestType: RequestType }) {- const [formData, setFormData] = useState<EnterpriseFormData>({ name: "", company: "", email: "", message: "" });- return <InformationRequestForm requestType={requestType} formData={formData} onFormDataChange={setFormData} onBack={mockOnBack} />;-}--describe("InformationRequestForm", () => {- const defaultProps = {- requestType: "saas" as RequestType,- };-- beforeEach(() => {- vi.clearAllMocks();- mockOnBack.mockClear();- });-- const renderWithRouter = (props = defaultProps) => {- const Stub = createRoutesStub([- {- path: "/",- Component: () => <StatefulForm {...props} />,- },- {- path: "/login",- Component: () => <div data-testid="login-page" />,- },- {- path: "/information-request",- Component: () => <div data-testid="information-request-page" />,- },- ]);-- return render(<Stub initialEntries={["/"]} />);- };-- it("should render the form", () => {- renderWithRouter();-- expect(screen.getByTestId("information-request-form")).toBeInTheDocument();- });-- it("should render the logo", () => {- renderWithRouter();-- const logo = screen.getByTestId("information-request-form").querySelector("svg");- expect(logo).toBeInTheDocument();- });-- it("should render all form fields", () => {- renderWithRouter();-- expect(screen.getByTestId("form-input-name")).toBeInTheDocument();- expect(screen.getByTestId("form-input-company")).toBeInTheDocument();- expect(screen.getByTestId("form-input-email")).toBeInTheDocument();- expect(screen.getByTestId("form-input-message")).toBeInTheDocument();- });-- it("should render SaaS-specific title when requestType is saas", () => {- renderWithRouter({ ...defaultProps, requestType: "saas" });-- expect(screen.getByText("ENTERPRISE$FORM_SAAS_TITLE")).toBeInTheDocument();- });-- it("should render Self-hosted-specific title when requestType is self-hosted", () => {- renderWithRouter({ ...defaultProps, requestType: "self-hosted" });-- expect(screen.getByText("ENTERPRISE$FORM_SELF_HOSTED_TITLE")).toBeInTheDocument();- });-- it("should render cloud icon for SaaS request type", () => {- renderWithRouter({ ...defaultProps, requestType: "saas" });-- // The card should contain the cloud icon- const card = screen.getByText("ENTERPRISE$SAAS_TITLE").closest("div");- expect(card).toBeInTheDocument();- });-- it("should render stacked icon for self-hosted request type", () => {- renderWithRouter({ ...defaultProps, requestType: "self-hosted" });-- // The card should contain the stacked icon- const card = screen.getByText("ENTERPRISE$SELF_HOSTED_TITLE").closest("div");- expect(card).toBeInTheDocument();- });-- it("should call onBack when back button is clicked", async () => {- const user = userEvent.setup();-- renderWithRouter();-- const backButton = screen.getByRole("button", { name: "COMMON$BACK" });- await user.click(backButton);-- expect(mockOnBack).toHaveBeenCalledTimes(1);- });-- it("should update form fields when user types", async () => {- const user = userEvent.setup();- renderWithRouter();-- const nameInput = screen.getByTestId("form-input-name");- await user.type(nameInput, "John Doe");-- expect(nameInput).toHaveValue("John Doe");- });-- it("should update email field when user types", async () => {- const user = userEvent.setup();- renderWithRouter();-- const emailInput = screen.getByTestId("form-input-email");- await user.type(emailInput, "[email protected]");-- expect(emailInput).toHaveValue("[email protected]");- });-- it("should render message as textarea", () => {- renderWithRouter();-- const messageInput = screen.getByTestId("form-input-message");- expect(messageInput.tagName).toBe("TEXTAREA");- });-- it("should have all fields marked as required", () => {- renderWithRouter();-- expect(screen.getByTestId("form-input-name")).toBeRequired();- expect(screen.getByTestId("form-input-company")).toBeRequired();- expect(screen.getByTestId("form-input-email")).toBeRequired();- expect(screen.getByTestId("form-input-message")).toBeRequired();- });-- it("should render submit button", () => {- renderWithRouter();-- const submitButton = screen.getByRole("button", { name: "ENTERPRISE$FORM_SUBMIT" });- expect(submitButton).toBeInTheDocument();- expect(submitButton).toHaveAttribute("type", "submit");- });-- it("should render back button", () => {- renderWithRouter();-- const backButton = screen.getByRole("button", { name: "COMMON$BACK" });- expect(backButton).toBeInTheDocument();- expect(backButton).toHaveAttribute("type", "button");- });-- it("should have button group with role and aria-label", () => {- renderWithRouter();-- const buttonGroup = screen.getByRole("group", { name: "Form actions" });- expect(buttonGroup).toBeInTheDocument();- });-- it("should display SaaS card description for saas request type", () => {- renderWithRouter({ ...defaultProps, requestType: "saas" });-- expect(screen.getByText("ENTERPRISE$SAAS_DESCRIPTION")).toBeInTheDocument();- });-- it("should display Self-hosted card description for self-hosted request type", () => {- renderWithRouter({ ...defaultProps, requestType: "self-hosted" });-- expect(screen.getByText("ENTERPRISE$SELF_HOSTED_DESCRIPTION")).toBeInTheDocument();- });-- describe("form validation", () => {- it("should not show error state before form submission", () => {- renderWithRouter();-- const nameInput = screen.getByTestId("form-input-name");- const companyInput = screen.getByTestId("form-input-company");- const emailInput = screen.getByTestId("form-input-email");- const messageInput = screen.getByTestId("form-input-message");-- expect(nameInput).toHaveAttribute("aria-invalid", "false");- expect(companyInput).toHaveAttribute("aria-invalid", "false");- expect(emailInput).toHaveAttribute("aria-invalid", "false");- expect(messageInput).toHaveAttribute("aria-invalid", "false");- });-- it("should not navigate when form is submitted with empty fields", async () => {- const user = userEvent.setup();- renderWithRouter();-- const submitButton = screen.getByRole("button", {- name: "ENTERPRISE$FORM_SUBMIT",- });- await user.click(submitButton);-- // Should stay on form page, not navigate to login- expect(screen.getByTestId("information-request-form")).toBeInTheDocument();- expect(screen.queryByTestId("login-page")).not.toBeInTheDocument();- });-- it("should not call tracking when form is submitted with empty fields", async () => {- const user = userEvent.setup();- renderWithRouter();-- const submitButton = screen.getByRole("button", { name: "ENTERPRISE$FORM_SUBMIT" });- await user.click(submitButton);-- expect(mockTrackEnterpriseLeadFormSubmitted).not.toHaveBeenCalled();- });-- it("should navigate to login page when form is submitted with all fields filled", async () => {- const user = userEvent.setup();- renderWithRouter();-- await user.type(screen.getByTestId("form-input-name"), "John Doe");- await user.type(screen.getByTestId("form-input-company"), "Acme Inc");- await user.type(screen.getByTestId("form-input-email"), "[email protected]");- await user.type(screen.getByTestId("form-input-message"), "Hello world");-- const submitButton = screen.getByRole("button", {- name: "ENTERPRISE$FORM_SUBMIT",- });- await user.click(submitButton);-- // Should navigate to login page- expect(screen.getByTestId("login-page")).toBeInTheDocument();- });-- it("should call tracking with form data when form is submitted successfully", async () => {- const user = userEvent.setup();- renderWithRouter({ ...defaultProps, requestType: "saas" });-- await user.type(screen.getByTestId("form-input-name"), "John Doe");- await user.type(screen.getByTestId("form-input-company"), "Acme Inc");- await user.type(screen.getByTestId("form-input-email"), "[email protected]");- await user.type(screen.getByTestId("form-input-message"), "Hello world");-- const submitButton = screen.getByRole("button", { name: "ENTERPRISE$FORM_SUBMIT" });- await user.click(submitButton);-- expect(mockTrackEnterpriseLeadFormSubmitted).toHaveBeenCalledTimes(1);- expect(mockTrackEnterpriseLeadFormSubmitted).toHaveBeenCalledWith({- requestType: "saas",- name: "John Doe",- company: "Acme Inc",- email: "[email protected]",- message: "Hello world",- });- });-- it("should call tracking with self-hosted request type", async () => {- const user = userEvent.setup();- renderWithRouter({ ...defaultProps, requestType: "self-hosted" });-- await user.type(screen.getByTestId("form-input-name"), "Jane Smith");- await user.type(screen.getByTestId("form-input-company"), "Tech Corp");- await user.type(screen.getByTestId("form-input-email"), "[email protected]");- await user.type(screen.getByTestId("form-input-message"), "Interested in self-hosted");-- const submitButton = screen.getByRole("button", { name: "ENTERPRISE$FORM_SUBMIT" });- await user.click(submitButton);-- expect(mockTrackEnterpriseLeadFormSubmitted).toHaveBeenCalledWith({- requestType: "self-hosted",- name: "Jane Smith",- company: "Tech Corp",- email: "[email protected]",- message: "Interested in self-hosted",- });- });-- it("should trim whitespace from form fields before tracking", async () => {- const user = userEvent.setup();- renderWithRouter();-- await user.type(screen.getByTestId("form-input-name"), " John Doe ");- await user.type(screen.getByTestId("form-input-company"), " Acme Inc ");- await user.type(screen.getByTestId("form-input-email"), " [email protected] ");- await user.type(screen.getByTestId("form-input-message"), " Hello world ");-- const submitButton = screen.getByRole("button", { name: "ENTERPRISE$FORM_SUBMIT" });- await user.click(submitButton);-- expect(mockTrackEnterpriseLeadFormSubmitted).toHaveBeenCalledWith({- requestType: "saas",- name: "John Doe",- company: "Acme Inc",- email: "[email protected]",- message: "Hello world",- });- });-- it("should have valid aria-invalid state when field has value", async () => {- const user = userEvent.setup();- renderWithRouter();-- const nameInput = screen.getByTestId("form-input-name");- await user.type(nameInput, "John Doe");-- // Field with value should not be invalid- expect(nameInput).toHaveAttribute("aria-invalid", "false");- });-- it("should not navigate when email is invalid", async () => {- const user = userEvent.setup();- renderWithRouter();-- await user.type(screen.getByTestId("form-input-name"), "John Doe");- await user.type(screen.getByTestId("form-input-company"), "Acme Inc");- await user.type(screen.getByTestId("form-input-email"), "invalid-email");- await user.type(screen.getByTestId("form-input-message"), "Hello world");-- const submitButton = screen.getByRole("button", {- name: "ENTERPRISE$FORM_SUBMIT",- });- await user.click(submitButton);-- // Should stay on form page, not navigate to login- expect(screen.getByTestId("information-request-form")).toBeInTheDocument();- expect(screen.queryByTestId("login-page")).not.toBeInTheDocument();- expect(mockTrackEnterpriseLeadFormSubmitted).not.toHaveBeenCalled();- });- });-- describe("loading state", () => {- it("should prevent double submission", async () => {- const user = userEvent.setup();- renderWithRouter();-- await user.type(screen.getByTestId("form-input-name"), "John Doe");- await user.type(screen.getByTestId("form-input-company"), "Acme Inc");- await user.type(screen.getByTestId("form-input-email"), "[email protected]");- await user.type(screen.getByTestId("form-input-message"), "Hello world");-- const submitButton = screen.getByRole("button", {- name: "ENTERPRISE$FORM_SUBMIT",- });-- // Click multiple times rapidly- await user.click(submitButton);- await user.click(submitButton);- await user.click(submitButton);-- // Should only track once- expect(mockTrackEnterpriseLeadFormSubmitted).toHaveBeenCalledTimes(1);- // Should navigate to login page- expect(screen.getByTestId("login-page")).toBeInTheDocument();- });- });-});diff --git a/__tests__/components/features/onboarding/onboarding-form.test.tsx b/__tests__/components/features/onboarding/onboarding-form.test.tsxdeleted file mode 100644index e024bcef84..0000000000--- a/__tests__/components/features/onboarding/onboarding-form.test.tsx+++ /dev/null@@ -1,662 +0,0 @@-import { render, screen } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { createRoutesStub } from "react-router";-import { beforeEach, describe, expect, it, vi } from "vitest";-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { I18nextProvider } from "react-i18next";-import i18n from "i18next";-import OnboardingForm, { clientLoader } from "#/routes/onboarding-form";--const mockMutate = vi.fn();-const mockNavigate = vi.fn();-const mockUseMe = vi.fn();-const mockTrackOnboardingCompleted = vi.fn();--// Loader data set in beforeEach for each test suite-let loaderData: { config: { app_mode: string; feature_flags: { deployment_mode: string } } };--vi.mock("react-router", async (importOriginal) => {- const original = await importOriginal<typeof import("react-router")>();- return {- ...original,- useNavigate: () => mockNavigate,- };-});--vi.mock("#/hooks/mutation/use-submit-onboarding", () => ({- useSubmitOnboarding: () => ({- mutate: mockMutate,- }),-}));--vi.mock("#/hooks/query/use-me", () => ({- useMe: () => mockUseMe(),-}));--vi.mock("#/hooks/use-tracking", () => ({- useTracking: () => ({- trackOnboardingCompleted: mockTrackOnboardingCompleted,- }),-}));--// Mocks for clientLoader tests-const mockQueryClientGetData = vi.fn();-const mockQueryClientSetData = vi.fn();-vi.mock("#/query-client-config", () => ({- queryClient: {- getQueryData: (...args: unknown[]) => mockQueryClientGetData(...args),- setQueryData: (...args: unknown[]) => mockQueryClientSetData(...args),- },-}));--const mockGetConfig = vi.fn();-vi.mock("#/api/option-service/option-service.api", () => ({- default: {- getConfig: () => mockGetConfig(),- },-}));--const renderOnboardingForm = async () => {- const queryClient = new QueryClient({- defaultOptions: { queries: { retry: false } },- });-- const RouterStub = createRoutesStub([- {- path: "/",- Component: OnboardingForm,- loader: () => loaderData,- },- ]);-- const result = render(- <I18nextProvider i18n={i18n}>- <QueryClientProvider client={queryClient}>- <RouterStub initialEntries={["/"]} />- </QueryClientProvider>- </I18nextProvider>,- );-- // Wait for the component to render- await screen.findByTestId("onboarding-form");- return result;-};--describe("OnboardingForm - Cloud Mode", () => {- beforeEach(() => {- mockMutate.mockClear();- mockNavigate.mockClear();- mockTrackOnboardingCompleted.mockClear();- loaderData = {- config: {- app_mode: "saas",- feature_flags: { deployment_mode: "cloud" },- },- };- // Cloud mode tracks all users, role doesn't matter- mockUseMe.mockReturnValue({ data: { role: "member" } });- });-- it("should render with the correct test id", async () => {- await renderOnboardingForm();-- expect(screen.getByTestId("onboarding-form")).toBeInTheDocument();- });-- it("should render the first step initially", async () => {- await renderOnboardingForm();-- expect(screen.getByTestId("step-header")).toBeInTheDocument();- expect(screen.getByTestId("step-content")).toBeInTheDocument();- expect(screen.getByTestId("step-actions")).toBeInTheDocument();- });-- it("should display step progress indicator with 3 bars for cloud mode", async () => {- await renderOnboardingForm();-- const stepHeader = screen.getByTestId("step-header");- const progressBars = stepHeader.querySelectorAll(".rounded-full");- expect(progressBars).toHaveLength(3);- });-- it("should have the Next button disabled when no option is selected", async () => {- await renderOnboardingForm();-- const nextButton = screen.getByRole("button", { name: /next/i });- expect(nextButton).toBeDisabled();- });-- it("should enable the Next button when an option is selected", async () => {- const user = userEvent.setup();- await renderOnboardingForm();-- await user.click(screen.getByTestId("step-option-solo"));-- const nextButton = screen.getByRole("button", { name: /next/i });- expect(nextButton).not.toBeDisabled();- });-- it("should advance to the next step when Next is clicked", async () => {- const user = userEvent.setup();- await renderOnboardingForm();-- // On step 1, first progress bar should be filled (bg-white)- const stepHeader = screen.getByTestId("step-header");- let progressBars = stepHeader.querySelectorAll(".bg-white");- expect(progressBars).toHaveLength(1);-- await user.click(screen.getByTestId("step-option-solo"));- await user.click(screen.getByRole("button", { name: /next/i }));-- // On step 2, first two progress bars should be filled- progressBars = stepHeader.querySelectorAll(".bg-white");- expect(progressBars).toHaveLength(2);- });-- it("should disable Next button again on new step until option is selected", async () => {- const user = userEvent.setup();- await renderOnboardingForm();-- await user.click(screen.getByTestId("step-option-solo"));- await user.click(screen.getByRole("button", { name: /next/i }));-- const nextButton = screen.getByRole("button", { name: /next/i });- expect(nextButton).toBeDisabled();- });-- it("should call submitOnboarding with selections when finishing the last step", async () => {- const user = userEvent.setup();- await renderOnboardingForm();-- // Step 1 - select org size (first step in saas mode - single select)- await user.click(screen.getByTestId("step-option-org_2_10"));- await user.click(screen.getByRole("button", { name: /next/i }));-- // Step 2 - select use case (multi-select)- await user.click(screen.getByTestId("step-option-new_features"));- await user.click(screen.getByRole("button", { name: /next/i }));-- // Step 3 - select role (last step in saas mode - single select)- await user.click(screen.getByTestId("step-option-software_engineer"));- await user.click(screen.getByRole("button", { name: /finish/i }));-- expect(mockMutate).toHaveBeenCalledTimes(1);- expect(mockMutate).toHaveBeenCalledWith({- selections: {- org_size: "org_2_10",- use_case: ["new_features"],- role: "software_engineer",- },- });- });-- it("should track onboarding completion to PostHog in cloud mode", async () => {- const user = userEvent.setup();- await renderOnboardingForm();-- // Complete the full cloud onboarding flow- await user.click(screen.getByTestId("step-option-org_2_10"));- await user.click(screen.getByRole("button", { name: /next/i }));-- await user.click(screen.getByTestId("step-option-new_features"));- await user.click(screen.getByRole("button", { name: /next/i }));-- await user.click(screen.getByTestId("step-option-software_engineer"));- await user.click(screen.getByRole("button", { name: /finish/i }));-- expect(mockTrackOnboardingCompleted).toHaveBeenCalledTimes(1);- expect(mockTrackOnboardingCompleted).toHaveBeenCalledWith({- role: "software_engineer",- orgSize: "org_2_10",- useCase: ["new_features"],- });- });-- it("should render 5 options on step 1 (org size question)", async () => {- await renderOnboardingForm();-- const options = screen- .getAllByRole("button")- .filter((btn) =>- btn.getAttribute("data-testid")?.startsWith("step-option-"),- );- expect(options).toHaveLength(5);- });-- it("should preserve selections when navigating through steps", async () => {- const user = userEvent.setup();- await renderOnboardingForm();-- // Select org size on step 1 (single select)- await user.click(screen.getByTestId("step-option-solo"));- await user.click(screen.getByRole("button", { name: /next/i }));-- // Select use case on step 2 (multi-select)- await user.click(screen.getByTestId("step-option-fixing_bugs"));- await user.click(screen.getByRole("button", { name: /next/i }));-- // Select role on step 3 (single select)- await user.click(screen.getByTestId("step-option-cto_founder"));- await user.click(screen.getByRole("button", { name: /finish/i }));-- // Verify all selections were preserved- expect(mockMutate).toHaveBeenCalledWith({- selections: {- org_size: "solo",- use_case: ["fixing_bugs"],- role: "cto_founder",- },- });- });-- it("should allow selecting multiple options on multi-select steps", async () => {- const user = userEvent.setup();- await renderOnboardingForm();-- // Step 1 - select org size (single select)- await user.click(screen.getByTestId("step-option-solo"));- await user.click(screen.getByRole("button", { name: /next/i }));-- // Step 2 - select multiple use cases (multi-select)- await user.click(screen.getByTestId("step-option-new_features"));- await user.click(screen.getByTestId("step-option-fixing_bugs"));- await user.click(screen.getByTestId("step-option-refactoring"));- await user.click(screen.getByRole("button", { name: /next/i }));-- // Step 3 - select role (single select)- await user.click(screen.getByTestId("step-option-software_engineer"));- await user.click(screen.getByRole("button", { name: /finish/i }));-- expect(mockMutate).toHaveBeenCalledWith({- selections: {- org_size: "solo",- use_case: ["new_features", "fixing_bugs", "refactoring"],- role: "software_engineer",- },- });- });-- it("should allow deselecting options on multi-select steps", async () => {- const user = userEvent.setup();- await renderOnboardingForm();-- // Step 1 - select org size- await user.click(screen.getByTestId("step-option-solo"));- await user.click(screen.getByRole("button", { name: /next/i }));-- // Step 2 - select and deselect use cases- await user.click(screen.getByTestId("step-option-new_features"));- await user.click(screen.getByTestId("step-option-fixing_bugs"));- await user.click(screen.getByTestId("step-option-new_features")); // Deselect-- await user.click(screen.getByRole("button", { name: /next/i }));-- // Step 3 - select role- await user.click(screen.getByTestId("step-option-software_engineer"));- await user.click(screen.getByRole("button", { name: /finish/i }));-- expect(mockMutate).toHaveBeenCalledWith({- selections: {- org_size: "solo",- use_case: ["fixing_bugs"],- role: "software_engineer",- },- });- });-- it("should show all progress bars filled on the last step", async () => {- const user = userEvent.setup();- await renderOnboardingForm();-- // Navigate to step 3- await user.click(screen.getByTestId("step-option-solo"));- await user.click(screen.getByRole("button", { name: /next/i }));-- await user.click(screen.getByTestId("step-option-new_features"));- await user.click(screen.getByRole("button", { name: /next/i }));-- // On step 3, all three progress bars should be filled- const stepHeader = screen.getByTestId("step-header");- const progressBars = stepHeader.querySelectorAll(".bg-white");- expect(progressBars).toHaveLength(3);- });-- it("should not render the Back button on the first step", async () => {- await renderOnboardingForm();-- const backButton = screen.queryByRole("button", { name: /back/i });- expect(backButton).not.toBeInTheDocument();- });-- it("should render the Back button on step 2", async () => {- const user = userEvent.setup();- await renderOnboardingForm();-- await user.click(screen.getByTestId("step-option-solo"));- await user.click(screen.getByRole("button", { name: /next/i }));-- const backButton = screen.getByRole("button", { name: /back/i });- expect(backButton).toBeInTheDocument();- });-- it("should go back to the previous step when Back is clicked", async () => {- const user = userEvent.setup();- await renderOnboardingForm();-- // Navigate to step 2- await user.click(screen.getByTestId("step-option-solo"));- await user.click(screen.getByRole("button", { name: /next/i }));-- // Verify we're on step 2 (2 progress bars filled)- const stepHeader = screen.getByTestId("step-header");- let progressBars = stepHeader.querySelectorAll(".bg-white");- expect(progressBars).toHaveLength(2);-- // Click Back- await user.click(screen.getByRole("button", { name: /back/i }));-- // Verify we're back on step 1 (1 progress bar filled)- progressBars = stepHeader.querySelectorAll(".bg-white");- expect(progressBars).toHaveLength(1);- });-});--describe("OnboardingForm - Self-Hosted Mode", () => {- // Self-hosted mode has 3 steps: org_name, org_size, use_case- // The role question is cloud-only and not shown in self-hosted mode-- beforeEach(() => {- mockMutate.mockClear();- mockNavigate.mockClear();- mockTrackOnboardingCompleted.mockClear();- loaderData = {- config: {- app_mode: "saas",- feature_flags: { deployment_mode: "self_hosted" },- },- };- // Self-hosted mode only tracks org owners- mockUseMe.mockReturnValue({ data: { role: "owner" } });- });-- it("should render with the correct test id", async () => {- await renderOnboardingForm();-- expect(screen.getByTestId("onboarding-form")).toBeInTheDocument();- });-- it("should display step progress indicator with 3 bars for self-hosted mode", async () => {- await renderOnboardingForm();-- // Self-hosted has 3 steps: org_name, org_size, use_case (role is cloud-only)- const stepHeader = screen.getByTestId("step-header");- const progressBars = stepHeader.querySelectorAll(".rounded-full");- expect(progressBars).toHaveLength(3);- });-- it("should start with org_name question as first step with two input fields", async () => {- await renderOnboardingForm();-- // The first step in self-hosted mode should be org_name with two inputs- const orgNameInput = screen.getByTestId("form-input-org_name");- const orgDomainInput = screen.getByTestId("form-input-org_domain");- expect(orgNameInput).toBeInTheDocument();- expect(orgDomainInput).toBeInTheDocument();- });-- it("should call submitOnboarding with all selections including org_name when finishing", async () => {- const user = userEvent.setup();- await renderOnboardingForm();-- // Step 1 - enter org name and domain (input fields)- const orgNameInput = screen.getByTestId("form-input-org_name");- const orgDomainInput = screen.getByTestId("form-input-org_domain");- await user.type(orgNameInput, "Acme Corp");- await user.type(orgDomainInput, "acme.com");- await user.click(screen.getByRole("button", { name: /next/i }));-- // Step 2 - select org size (single select)- await user.click(screen.getByTestId("step-option-org_2_10"));- await user.click(screen.getByRole("button", { name: /next/i }));-- // Step 3 - select use case (multi-select) - this is the last step in self-hosted mode- await user.click(screen.getByTestId("step-option-new_features"));- await user.click(screen.getByRole("button", { name: /finish/i }));-- expect(mockMutate).toHaveBeenCalledTimes(1);- expect(mockMutate).toHaveBeenCalledWith({- selections: {- org_name: "Acme Corp",- org_domain: "acme.com",- org_size: "org_2_10",- use_case: ["new_features"],- },- });- });-- it("should track onboarding completion in self-hosted mode", async () => {- const user = userEvent.setup();- await renderOnboardingForm();-- // Complete the full self-hosted onboarding flow (3 steps)- const orgNameInput = screen.getByTestId("form-input-org_name");- const orgDomainInput = screen.getByTestId("form-input-org_domain");- await user.type(orgNameInput, "Test Company");- await user.type(orgDomainInput, "test.com");- await user.click(screen.getByRole("button", { name: /next/i }));-- await user.click(screen.getByTestId("step-option-org_2_10"));- await user.click(screen.getByRole("button", { name: /next/i }));-- await user.click(screen.getByTestId("step-option-new_features"));- await user.click(screen.getByRole("button", { name: /finish/i }));-- expect(mockTrackOnboardingCompleted).toHaveBeenCalledTimes(1);- // Note: role is not included since role question is cloud-only- expect(mockTrackOnboardingCompleted).toHaveBeenCalledWith({- role: undefined,- orgSize: "org_2_10",- useCase: ["new_features"],- });- });-- it("should show all 3 progress bars filled on the last step", async () => {- const user = userEvent.setup();- await renderOnboardingForm();-- // Navigate through all 3 steps- const orgNameInput = screen.getByTestId("form-input-org_name");- const orgDomainInput = screen.getByTestId("form-input-org_domain");- await user.type(orgNameInput, "Test Company");- await user.type(orgDomainInput, "test.com");- await user.click(screen.getByRole("button", { name: /next/i }));-- await user.click(screen.getByTestId("step-option-org_2_10"));- await user.click(screen.getByRole("button", { name: /next/i }));-- // On step 3, all three progress bars should be filled- const stepHeader = screen.getByTestId("step-header");- const progressBars = stepHeader.querySelectorAll(".bg-white");- expect(progressBars).toHaveLength(3);- });-- it("should have Next button disabled when both org_name inputs are empty", async () => {- await renderOnboardingForm();-- const nextButton = screen.getByRole("button", { name: /next/i });- expect(nextButton).toBeDisabled();- });-- it("should enable Next button when both org_name and org_domain are entered", async () => {- const user = userEvent.setup();- await renderOnboardingForm();-- const orgNameInput = screen.getByTestId("form-input-org_name");- const orgDomainInput = screen.getByTestId("form-input-org_domain");- await user.type(orgNameInput, "My Company");- await user.type(orgDomainInput, "mycompany.com");-- const nextButton = screen.getByRole("button", { name: /next/i });- expect(nextButton).not.toBeDisabled();- });-- it("should NOT track onboarding completion for non-owners in self-hosted mode", async () => {- // Override the mock to return a member (non-owner) role- mockUseMe.mockReturnValue({ data: { role: "member" } });-- const user = userEvent.setup();- await renderOnboardingForm();-- // Complete the full self-hosted onboarding flow (3 steps)- const orgNameInput = screen.getByTestId("form-input-org_name");- const orgDomainInput = screen.getByTestId("form-input-org_domain");- await user.type(orgNameInput, "Test Company");- await user.type(orgDomainInput, "test.com");- await user.click(screen.getByRole("button", { name: /next/i }));-- await user.click(screen.getByTestId("step-option-org_2_10"));- await user.click(screen.getByRole("button", { name: /next/i }));-- await user.click(screen.getByTestId("step-option-new_features"));- await user.click(screen.getByRole("button", { name: /finish/i }));-- // Tracking should NOT be called for non-owners in self-hosted mode- expect(mockTrackOnboardingCompleted).not.toHaveBeenCalled();-- // But onboarding submission should still work- expect(mockMutate).toHaveBeenCalledTimes(1);- });-- it("should NOT track onboarding completion for admins in self-hosted mode", async () => {- // Override the mock to return an admin role- mockUseMe.mockReturnValue({ data: { role: "admin" } });-- const user = userEvent.setup();- await renderOnboardingForm();-- // Complete the full self-hosted onboarding flow (3 steps)- const orgNameInput = screen.getByTestId("form-input-org_name");- const orgDomainInput = screen.getByTestId("form-input-org_domain");- await user.type(orgNameInput, "Test Company");- await user.type(orgDomainInput, "test.com");- await user.click(screen.getByRole("button", { name: /next/i }));-- await user.click(screen.getByTestId("step-option-org_2_10"));- await user.click(screen.getByRole("button", { name: /next/i }));-- await user.click(screen.getByTestId("step-option-new_features"));- await user.click(screen.getByRole("button", { name: /finish/i }));-- // Tracking should NOT be called for admins in self-hosted mode (only owners)- expect(mockTrackOnboardingCompleted).not.toHaveBeenCalled();-- // But onboarding submission should still work- expect(mockMutate).toHaveBeenCalledTimes(1);- });-});--describe("onboarding-form clientLoader", () => {- beforeEach(() => {- mockQueryClientGetData.mockReset();- mockQueryClientSetData.mockReset();- mockGetConfig.mockReset();- });-- describe("redirect behavior", () => {- it("should redirect to / when app_mode is oss", async () => {- const ossConfig = {- app_mode: "oss",- feature_flags: { deployment_mode: undefined },- };- mockQueryClientGetData.mockReturnValue(ossConfig);-- const result = await clientLoader();-- expect(result).toBeDefined();- expect((result as Response).status).toBe(302);- expect((result as Response).headers.get("Location")).toBe("/");- });-- it("should redirect to / when app_mode is undefined", async () => {- const undefinedConfig = {- app_mode: undefined,- feature_flags: { deployment_mode: "cloud" },- };- mockQueryClientGetData.mockReturnValue(undefinedConfig);-- const result = await clientLoader();-- expect(result).toBeDefined();- expect((result as Response).status).toBe(302);- expect((result as Response).headers.get("Location")).toBe("/");- });-- it("should redirect to / when config is null", async () => {- mockQueryClientGetData.mockReturnValue(null);- mockGetConfig.mockResolvedValue(null);-- const result = await clientLoader();-- expect(result).toBeDefined();- expect((result as Response).status).toBe(302);- expect((result as Response).headers.get("Location")).toBe("/");- });-- it("should allow access and return config when app_mode is saas with cloud deployment", async () => {- const saasCloudConfig = {- app_mode: "saas",- feature_flags: { deployment_mode: "cloud" },- };- mockQueryClientGetData.mockReturnValue(saasCloudConfig);-- const result = await clientLoader();-- expect(result).toEqual({ config: saasCloudConfig });- });-- it("should allow access and return config when app_mode is saas with self_hosted deployment", async () => {- const saasSelfHostedConfig = {- app_mode: "saas",- feature_flags: { deployment_mode: "self_hosted" },- };- mockQueryClientGetData.mockReturnValue(saasSelfHostedConfig);-- const result = await clientLoader();-- expect(result).toEqual({ config: saasSelfHostedConfig });- });- });-- describe("config fetching", () => {- it("should use cached config from queryClient when available", async () => {- const cachedConfig = {- app_mode: "saas",- feature_flags: { deployment_mode: "cloud" },- };- mockQueryClientGetData.mockReturnValue(cachedConfig);-- await clientLoader();-- expect(mockQueryClientGetData).toHaveBeenCalledWith(["web-client-config"]);- expect(mockGetConfig).not.toHaveBeenCalled();- });-- it("should fetch config from OptionService when not cached", async () => {- const fetchedConfig = {- app_mode: "saas",- feature_flags: { deployment_mode: "cloud" },- };- mockQueryClientGetData.mockReturnValue(null);- mockGetConfig.mockResolvedValue(fetchedConfig);-- const result = await clientLoader();-- expect(mockGetConfig).toHaveBeenCalled();- expect(mockQueryClientSetData).toHaveBeenCalledWith(- ["web-client-config"],- fetchedConfig,- );- expect(result).toEqual({ config: fetchedConfig });- });- });-});diff --git a/__tests__/components/features/onboarding/request-submitted-modal.test.tsx b/__tests__/components/features/onboarding/request-submitted-modal.test.tsxdeleted file mode 100644index d5c40bc4eb..0000000000--- a/__tests__/components/features/onboarding/request-submitted-modal.test.tsx+++ /dev/null@@ -1,113 +0,0 @@-import { render, screen } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { describe, expect, it, vi } from "vitest";-import { RequestSubmittedModal } from "#/components/features/onboarding/request-submitted-modal";--describe("RequestSubmittedModal", () => {- const defaultProps = {- onClose: vi.fn(),- };-- it("should render the modal", () => {- render(<RequestSubmittedModal {...defaultProps} />);-- expect(screen.getByTestId("request-submitted-modal")).toBeInTheDocument();- });-- it("should render the title", () => {- render(<RequestSubmittedModal {...defaultProps} />);-- expect(- screen.getByText("ENTERPRISE$REQUEST_SUBMITTED_TITLE"),- ).toBeInTheDocument();- });-- it("should render the description", () => {- render(<RequestSubmittedModal {...defaultProps} />);-- expect(- screen.getByText("ENTERPRISE$REQUEST_SUBMITTED_DESCRIPTION"),- ).toBeInTheDocument();- });-- it("should render the Done button", () => {- render(<RequestSubmittedModal {...defaultProps} />);-- expect(- screen.getByRole("button", { name: "ENTERPRISE$DONE_BUTTON" }),- ).toBeInTheDocument();- });-- it("should render the close button", () => {- render(<RequestSubmittedModal {...defaultProps} />);-- expect(- screen.getByRole("button", { name: "MODAL$CLOSE_BUTTON_LABEL" }),- ).toBeInTheDocument();- });-- it("should call onClose when Done button is clicked", async () => {- const mockOnClose = vi.fn();- const user = userEvent.setup();-- render(<RequestSubmittedModal onClose={mockOnClose} />);-- const doneButton = screen.getByRole("button", {- name: "ENTERPRISE$DONE_BUTTON",- });- await user.click(doneButton);-- expect(mockOnClose).toHaveBeenCalledTimes(1);- });-- it("should call onClose when close button is clicked", async () => {- const mockOnClose = vi.fn();- const user = userEvent.setup();-- render(<RequestSubmittedModal onClose={mockOnClose} />);-- const closeButton = screen.getByRole("button", {- name: "MODAL$CLOSE_BUTTON_LABEL",- });- await user.click(closeButton);-- expect(mockOnClose).toHaveBeenCalledTimes(1);- });-- it("should call onClose when Escape key is pressed", async () => {- const mockOnClose = vi.fn();- const user = userEvent.setup();-- render(<RequestSubmittedModal onClose={mockOnClose} />);-- await user.keyboard("{Escape}");-- expect(mockOnClose).toHaveBeenCalledTimes(1);- });-- it("should call onClose when backdrop is clicked", async () => {- const mockOnClose = vi.fn();- const user = userEvent.setup();-- render(<RequestSubmittedModal onClose={mockOnClose} />);-- // Click on the backdrop (the semi-transparent overlay)- const backdrop = screen.getByRole("dialog").querySelector(".bg-black");- if (backdrop) {- await user.click(backdrop);- }-- expect(mockOnClose).toHaveBeenCalledTimes(1);- });-- it("should have proper accessibility attributes", () => {- render(<RequestSubmittedModal {...defaultProps} />);-- const dialog = screen.getByRole("dialog");- expect(dialog).toHaveAttribute("aria-modal", "true");- expect(dialog).toHaveAttribute(- "aria-label",- "ENTERPRISE$REQUEST_SUBMITTED_TITLE",- );- });-});diff --git a/__tests__/components/features/onboarding/step-content.test.tsx b/__tests__/components/features/onboarding/step-content.test.tsxdeleted file mode 100644index 8f0803cb7c..0000000000--- a/__tests__/components/features/onboarding/step-content.test.tsx+++ /dev/null@@ -1,86 +0,0 @@-import { render, screen } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { describe, expect, it, vi } from "vitest";-import { StepContent } from "#/components/features/onboarding/step-content";--describe("StepContent", () => {- const mockOptions = [- { id: "option1", label: "Option 1" },- { id: "option2", label: "Option 2" },- { id: "option3", label: "Option 3" },- ];-- const defaultProps = {- options: mockOptions,- selectedOptionIds: [],- onSelectOption: vi.fn(),- };-- it("should render with the correct test id", () => {- render(<StepContent {...defaultProps} />);-- expect(screen.getByTestId("step-content")).toBeInTheDocument();- });-- it("should render all options", () => {- render(<StepContent {...defaultProps} />);-- expect(screen.getByText("Option 1")).toBeInTheDocument();- expect(screen.getByText("Option 2")).toBeInTheDocument();- expect(screen.getByText("Option 3")).toBeInTheDocument();- });-- it("should call onSelectOption with correct id when option is clicked", async () => {- const onSelectOptionMock = vi.fn();- const user = userEvent.setup();-- render(- <StepContent {...defaultProps} onSelectOption={onSelectOptionMock} />,- );-- await user.click(screen.getByTestId("step-option-option2"));-- expect(onSelectOptionMock).toHaveBeenCalledWith("option2");- });-- it("should mark the selected option as selected", () => {- render(<StepContent {...defaultProps} selectedOptionIds={["option1"]} />);-- const selectedOption = screen.getByTestId("step-option-option1");- const unselectedOption = screen.getByTestId("step-option-option2");-- expect(selectedOption).toHaveClass("border-white");- expect(unselectedOption).toHaveClass("border-[#3a3a3a]");- });-- it("should render no options when options array is empty", () => {- render(<StepContent {...defaultProps} options={[]} />);-- expect(screen.getByTestId("step-content")).toBeInTheDocument();- expect(screen.queryByRole("button")).not.toBeInTheDocument();- });-- it("should render correct number of options", () => {- render(<StepContent {...defaultProps} />);-- const options = screen.getAllByRole("button");- expect(options).toHaveLength(3);- });-- it("should allow selecting different options", async () => {- const onSelectOptionMock = vi.fn();- const user = userEvent.setup();-- render(- <StepContent {...defaultProps} onSelectOption={onSelectOptionMock} />,- );-- await user.click(screen.getByTestId("step-option-option1"));- expect(onSelectOptionMock).toHaveBeenCalledWith("option1");-- await user.click(screen.getByTestId("step-option-option3"));- expect(onSelectOptionMock).toHaveBeenCalledWith("option3");-- expect(onSelectOptionMock).toHaveBeenCalledTimes(2);- });-});diff --git a/__tests__/components/features/onboarding/step-header.test.tsx b/__tests__/components/features/onboarding/step-header.test.tsxdeleted file mode 100644index 48cea1bec9..0000000000--- a/__tests__/components/features/onboarding/step-header.test.tsx+++ /dev/null@@ -1,75 +0,0 @@-import { render, screen } from "@testing-library/react";-import { describe, expect, it } from "vitest";-import StepHeader from "#/components/features/onboarding/step-header";--describe("StepHeader", () => {- const defaultProps = {- title: "Test Title",- currentStep: 1,- totalSteps: 3,- };-- it("should render with the correct test id", () => {- render(<StepHeader {...defaultProps} />);-- expect(screen.getByTestId("step-header")).toBeInTheDocument();- });-- it("should display the title", () => {- render(<StepHeader {...defaultProps} />);-- expect(screen.getByText("Test Title")).toBeInTheDocument();- });-- it("should render correct number of progress dots based on totalSteps", () => {- render(<StepHeader {...defaultProps} totalSteps={5} />);-- const stepHeader = screen.getByTestId("step-header");- const progressDots = stepHeader.querySelectorAll(".rounded-full");- expect(progressDots).toHaveLength(5);- });-- it("should fill progress dots up to currentStep", () => {- render(<StepHeader {...defaultProps} currentStep={2} totalSteps={4} />);-- const stepHeader = screen.getByTestId("step-header");- const filledDots = stepHeader.querySelectorAll(".bg-white");- const unfilledDots = stepHeader.querySelectorAll(".bg-neutral-600");-- expect(filledDots).toHaveLength(2);- expect(unfilledDots).toHaveLength(2);- });-- it("should show all dots filled when on last step", () => {- render(<StepHeader {...defaultProps} currentStep={3} totalSteps={3} />);-- const stepHeader = screen.getByTestId("step-header");- const filledDots = stepHeader.querySelectorAll(".bg-white");- const unfilledDots = stepHeader.querySelectorAll(".bg-neutral-600");-- expect(filledDots).toHaveLength(3);- expect(unfilledDots).toHaveLength(0);- });-- it("should show no dots filled when currentStep is 0", () => {- render(<StepHeader {...defaultProps} currentStep={0} totalSteps={3} />);-- const stepHeader = screen.getByTestId("step-header");- const filledDots = stepHeader.querySelectorAll(".bg-white");- const unfilledDots = stepHeader.querySelectorAll(".bg-neutral-600");-- expect(filledDots).toHaveLength(0);- expect(unfilledDots).toHaveLength(3);- });-- it("should handle single step progress", () => {- render(<StepHeader {...defaultProps} currentStep={1} totalSteps={1} />);-- const stepHeader = screen.getByTestId("step-header");- const progressDots = stepHeader.querySelectorAll(".rounded-full");- const filledDots = stepHeader.querySelectorAll(".bg-white");-- expect(progressDots).toHaveLength(1);- expect(filledDots).toHaveLength(1);- });-});diff --git a/__tests__/components/features/onboarding/step-option.test.tsx b/__tests__/components/features/onboarding/step-option.test.tsxdeleted file mode 100644index 950a5ff258..0000000000--- a/__tests__/components/features/onboarding/step-option.test.tsx+++ /dev/null@@ -1,89 +0,0 @@-import { render, screen } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { describe, expect, it, vi } from "vitest";-import { StepOption } from "#/components/features/onboarding/step-option";--describe("StepOption", () => {- const defaultProps = {- id: "test-option",- label: "Test Label",- selected: false,- onClick: vi.fn(),- };-- it("should render with the correct test id", () => {- render(<StepOption {...defaultProps} />);-- expect(screen.getByTestId("step-option-test-option")).toBeInTheDocument();- });-- it("should display the label", () => {- render(<StepOption {...defaultProps} />);-- expect(screen.getByText("Test Label")).toBeInTheDocument();- });-- it("should call onClick when clicked", async () => {- const onClickMock = vi.fn();- const user = userEvent.setup();-- render(<StepOption {...defaultProps} onClick={onClickMock} />);-- await user.click(screen.getByTestId("step-option-test-option"));-- expect(onClickMock).toHaveBeenCalledTimes(1);- });-- it("should call onClick when Enter key is pressed", async () => {- const onClickMock = vi.fn();- const user = userEvent.setup();-- render(<StepOption {...defaultProps} onClick={onClickMock} />);-- const option = screen.getByTestId("step-option-test-option");- option.focus();- await user.keyboard("{Enter}");-- expect(onClickMock).toHaveBeenCalledTimes(1);- });-- it("should call onClick when Space key is pressed", async () => {- const onClickMock = vi.fn();- const user = userEvent.setup();-- render(<StepOption {...defaultProps} onClick={onClickMock} />);-- const option = screen.getByTestId("step-option-test-option");- option.focus();- await user.keyboard(" ");-- expect(onClickMock).toHaveBeenCalledTimes(1);- });-- it("should have role='button' for accessibility", () => {- render(<StepOption {...defaultProps} />);-- expect(screen.getByRole("button")).toBeInTheDocument();- });-- it("should be focusable with tabIndex=0", () => {- render(<StepOption {...defaultProps} />);-- const option = screen.getByTestId("step-option-test-option");- expect(option).toHaveAttribute("tabIndex", "0");- });-- it("should have selected styling when selected is true", () => {- render(<StepOption {...defaultProps} selected />);-- const option = screen.getByTestId("step-option-test-option");- expect(option).toHaveClass("border-white");- });-- it("should have unselected styling when selected is false", () => {- render(<StepOption {...defaultProps} selected={false} />);-- const option = screen.getByTestId("step-option-test-option");- expect(option).toHaveClass("border-[#3a3a3a]");- });-});diff --git a/__tests__/components/features/org/add-credits-modal.test.tsx b/__tests__/components/features/org/add-credits-modal.test.tsxdeleted file mode 100644index 1c049aedcd..0000000000--- a/__tests__/components/features/org/add-credits-modal.test.tsx+++ /dev/null@@ -1,351 +0,0 @@-import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";-import { screen, waitFor } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { renderWithProviders } from "test-utils";-import { AddCreditsModal } from "#/components/features/org/add-credits-modal";-import BillingService from "#/api/billing-service/billing-service.api";--vi.mock("react-i18next", async (importOriginal) => ({- ...(await importOriginal<typeof import("react-i18next")>()),- useTranslation: () => ({- t: (key: string) => key,- i18n: {- changeLanguage: vi.fn(),- },- }),-}));--describe("AddCreditsModal", () => {- const onCloseMock = vi.fn();-- const renderModal = () => {- const user = userEvent.setup();- renderWithProviders(<AddCreditsModal onClose={onCloseMock} />);- return { user };- };-- beforeEach(() => {- vi.clearAllMocks();- });-- afterEach(() => {- vi.restoreAllMocks();- });-- describe("Rendering", () => {- it("should render the form with correct elements", () => {- renderModal();-- expect(screen.getByTestId("add-credits-form")).toBeInTheDocument();- expect(screen.getByTestId("amount-input")).toBeInTheDocument();- expect(screen.getByRole("button", { name: /ORG\$NEXT/i })).toBeInTheDocument();- });-- it("should display the title", () => {- renderModal();-- expect(screen.getByText("ORG$ADD_CREDITS")).toBeInTheDocument();- });- });-- describe("Button State Management", () => {- it("should enable submit button initially when modal opens", () => {- renderModal();-- const nextButton = screen.getByRole("button", { name: /ORG\$NEXT/i });- expect(nextButton).not.toBeDisabled();- });-- it("should enable submit button when input contains invalid value", async () => {- const { user } = renderModal();- const amountInput = screen.getByTestId("amount-input");- const nextButton = screen.getByRole("button", { name: /ORG\$NEXT/i });-- await user.type(amountInput, "-50");-- expect(nextButton).not.toBeDisabled();- });-- it("should enable submit button when input contains valid value", async () => {- const { user } = renderModal();- const amountInput = screen.getByTestId("amount-input");- const nextButton = screen.getByRole("button", { name: /ORG\$NEXT/i });-- await user.type(amountInput, "100");-- expect(nextButton).not.toBeDisabled();- });-- it("should enable submit button after validation error is shown", async () => {- const { user } = renderModal();- const amountInput = screen.getByTestId("amount-input");- const nextButton = screen.getByRole("button", { name: /ORG\$NEXT/i });-- await user.type(amountInput, "9");- await user.click(nextButton);-- await waitFor(() => {- expect(screen.getByTestId("amount-error")).toBeInTheDocument();- });-- expect(nextButton).not.toBeDisabled();- });- });-- describe("Input Attributes & Placeholder", () => {- it("should have min attribute set to 10", () => {- renderModal();-- const amountInput = screen.getByTestId("amount-input");- expect(amountInput).toHaveAttribute("min", "10");- });-- it("should have max attribute set to 25000", () => {- renderModal();-- const amountInput = screen.getByTestId("amount-input");- expect(amountInput).toHaveAttribute("max", "25000");- });-- it("should have step attribute set to 1", () => {- renderModal();-- const amountInput = screen.getByTestId("amount-input");- expect(amountInput).toHaveAttribute("step", "1");- });- });-- describe("Error Message Display", () => {- it("should not display error message initially when modal opens", () => {- renderModal();-- const errorMessage = screen.queryByTestId("amount-error");- expect(errorMessage).not.toBeInTheDocument();- });-- it("should display error message after submitting amount above maximum", async () => {- const { user } = renderModal();- const amountInput = screen.getByTestId("amount-input");- const nextButton = screen.getByRole("button", { name: /ORG\$NEXT/i });-- await user.type(amountInput, "25001");- await user.click(nextButton);-- await waitFor(() => {- const errorMessage = screen.getByTestId("amount-error");- expect(errorMessage).toHaveTextContent("PAYMENT$ERROR_MAXIMUM_AMOUNT");- });- });-- it("should display error message after submitting decimal value", async () => {- const { user } = renderModal();- const amountInput = screen.getByTestId("amount-input");- const nextButton = screen.getByRole("button", { name: /ORG\$NEXT/i });-- await user.type(amountInput, "50.5");- await user.click(nextButton);-- await waitFor(() => {- const errorMessage = screen.getByTestId("amount-error");- expect(errorMessage).toHaveTextContent("PAYMENT$ERROR_MUST_BE_WHOLE_NUMBER");- });- });-- it("should display error message after submitting amount below minimum", async () => {- const { user } = renderModal();- const amountInput = screen.getByTestId("amount-input");- const nextButton = screen.getByRole("button", { name: /ORG\$NEXT/i });-- await user.type(amountInput, "9");- await user.click(nextButton);-- await waitFor(() => {- const errorMessage = screen.getByTestId("amount-error");- expect(errorMessage).toHaveTextContent("PAYMENT$ERROR_MINIMUM_AMOUNT");- });- });-- it("should display error message after submitting negative amount", async () => {- const { user } = renderModal();- const amountInput = screen.getByTestId("amount-input");- const nextButton = screen.getByRole("button", { name: /ORG\$NEXT/i });-- await user.type(amountInput, "-50");- await user.click(nextButton);-- await waitFor(() => {- const errorMessage = screen.getByTestId("amount-error");- expect(errorMessage).toHaveTextContent("PAYMENT$ERROR_NEGATIVE_AMOUNT");- });- });-- it("should replace error message when submitting different invalid value", async () => {- const { user } = renderModal();- const amountInput = screen.getByTestId("amount-input");- const nextButton = screen.getByRole("button", { name: /ORG\$NEXT/i });-- await user.type(amountInput, "9");- await user.click(nextButton);-- await waitFor(() => {- const errorMessage = screen.getByTestId("amount-error");- expect(errorMessage).toHaveTextContent("PAYMENT$ERROR_MINIMUM_AMOUNT");- });-- await user.clear(amountInput);- await user.type(amountInput, "25001");- await user.click(nextButton);-- await waitFor(() => {- const errorMessage = screen.getByTestId("amount-error");- expect(errorMessage).toHaveTextContent("PAYMENT$ERROR_MAXIMUM_AMOUNT");- });- });- });-- describe("Form Submission Behavior", () => {- it("should prevent submission when amount is invalid", async () => {- const createCheckoutSessionSpy = vi.spyOn(- BillingService,- "createCheckoutSession",- );- const { user } = renderModal();- const amountInput = screen.getByTestId("amount-input");- const nextButton = screen.getByRole("button", { name: /ORG\$NEXT/i });-- await user.type(amountInput, "9");- await user.click(nextButton);-- expect(createCheckoutSessionSpy).not.toHaveBeenCalled();- await waitFor(() => {- const errorMessage = screen.getByTestId("amount-error");- expect(errorMessage).toHaveTextContent("PAYMENT$ERROR_MINIMUM_AMOUNT");- });- });-- it("should call createCheckoutSession with correct amount when valid", async () => {- const createCheckoutSessionSpy = vi.spyOn(- BillingService,- "createCheckoutSession",- );- const { user } = renderModal();- const amountInput = screen.getByTestId("amount-input");- const nextButton = screen.getByRole("button", { name: /ORG\$NEXT/i });-- await user.type(amountInput, "1000");- await user.click(nextButton);-- expect(createCheckoutSessionSpy).toHaveBeenCalledWith(1000);- const errorMessage = screen.queryByTestId("amount-error");- expect(errorMessage).not.toBeInTheDocument();- });-- it("should not call createCheckoutSession when validation fails", async () => {- const createCheckoutSessionSpy = vi.spyOn(- BillingService,- "createCheckoutSession",- );- const { user } = renderModal();- const amountInput = screen.getByTestId("amount-input");- const nextButton = screen.getByRole("button", { name: /ORG\$NEXT/i });-- await user.type(amountInput, "-50");- await user.click(nextButton);-- expect(createCheckoutSessionSpy).not.toHaveBeenCalled();- await waitFor(() => {- const errorMessage = screen.getByTestId("amount-error");- expect(errorMessage).toHaveTextContent("PAYMENT$ERROR_NEGATIVE_AMOUNT");- });- });-- it("should close modal on successful submission", async () => {- vi.spyOn(BillingService, "createCheckoutSession").mockResolvedValue(- "https://checkout.stripe.com/test-session",- );-- const { user } = renderModal();- const amountInput = screen.getByTestId("amount-input");- const nextButton = screen.getByRole("button", { name: /ORG\$NEXT/i });-- await user.type(amountInput, "1000");- await user.click(nextButton);-- await waitFor(() => {- expect(onCloseMock).toHaveBeenCalled();- });- });-- it("should allow API call when validation passes and clear any previous errors", async () => {- const createCheckoutSessionSpy = vi.spyOn(- BillingService,- "createCheckoutSession",- );-- const { user } = renderModal();- const amountInput = screen.getByTestId("amount-input");- const nextButton = screen.getByRole("button", { name: /ORG\$NEXT/i });-- // First submit invalid value- await user.type(amountInput, "9");- await user.click(nextButton);-- await waitFor(() => {- expect(screen.getByTestId("amount-error")).toBeInTheDocument();- });-- // Then submit valid value- await user.clear(amountInput);- await user.type(amountInput, "100");- await user.click(nextButton);-- expect(createCheckoutSessionSpy).toHaveBeenCalledWith(100);- const errorMessage = screen.queryByTestId("amount-error");- expect(errorMessage).not.toBeInTheDocument();- });- });-- describe("Edge Cases", () => {- it("should handle zero value correctly", async () => {- const { user } = renderModal();- const amountInput = screen.getByTestId("amount-input");- const nextButton = screen.getByRole("button", { name: /ORG\$NEXT/i });-- await user.type(amountInput, "0");- await user.click(nextButton);-- await waitFor(() => {- const errorMessage = screen.getByTestId("amount-error");- expect(errorMessage).toHaveTextContent("PAYMENT$ERROR_MINIMUM_AMOUNT");- });- });-- it("should handle whitespace-only input correctly", async () => {- const createCheckoutSessionSpy = vi.spyOn(- BillingService,- "createCheckoutSession",- );- const { user } = renderModal();- const amountInput = screen.getByTestId("amount-input");- const nextButton = screen.getByRole("button", { name: /ORG\$NEXT/i });-- // Number inputs typically don't accept spaces, but test the behavior- await user.type(amountInput, " ");- await user.click(nextButton);-- // Should not call API (empty/invalid input)- expect(createCheckoutSessionSpy).not.toHaveBeenCalled();- });- });-- describe("Modal Interaction", () => {- it("should call onClose when cancel button is clicked", async () => {- const { user } = renderModal();-- const cancelButton = screen.getByRole("button", { name: /close/i });- await user.click(cancelButton);-- expect(onCloseMock).toHaveBeenCalledOnce();- });- });-});diff --git a/__tests__/components/features/org/claim-button.test.tsx b/__tests__/components/features/org/claim-button.test.tsxdeleted file mode 100644index c467dcd909..0000000000--- a/__tests__/components/features/org/claim-button.test.tsx+++ /dev/null@@ -1,113 +0,0 @@-import { screen } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { describe, expect, it, vi } from "vitest";-import { renderWithProviders } from "test-utils";-import {- ClaimButton,- getButtonState,-} from "#/components/features/org/claim-button";-import type { GitOrg } from "#/types/org";--const createOrg = (overrides: Partial<GitOrg> = {}): GitOrg => ({- id: "1",- claimId: null,- provider: "GitHub",- name: "TestOrg",- status: "unclaimed",- ...overrides,-});--describe("getButtonState", () => {- it("returns 'claiming' during claiming transition regardless of hover", () => {- expect(getButtonState("claiming", false)).toBe("claiming");- expect(getButtonState("claiming", true)).toBe("claiming");- });-- it("returns 'disconnecting' during disconnecting transition regardless of hover", () => {- expect(getButtonState("disconnecting", false)).toBe("disconnecting");- expect(getButtonState("disconnecting", true)).toBe("disconnecting");- });-- it("returns 'disconnect' when claimed and hovered", () => {- expect(getButtonState("claimed", true)).toBe("disconnect");- });-- it("returns 'claimed' when claimed and not hovered", () => {- expect(getButtonState("claimed", false)).toBe("claimed");- });-- it("returns 'unclaimed' when unclaimed", () => {- expect(getButtonState("unclaimed", false)).toBe("unclaimed");- expect(getButtonState("unclaimed", true)).toBe("unclaimed");- });-});--describe("ClaimButton", () => {- it("calls onClaim when clicking an unclaimed org", async () => {- // Arrange- const onClaim = vi.fn();- const org = createOrg({ status: "unclaimed" });- renderWithProviders(- <ClaimButton org={org} onClaim={onClaim} onDisconnect={vi.fn()} />,- );- const user = userEvent.setup();-- // Act- await user.click(screen.getByTestId("claim-button-1"));-- // Assert- expect(onClaim).toHaveBeenCalledWith("1");- });-- it("calls onDisconnect when clicking a claimed org", async () => {- // Arrange- const onDisconnect = vi.fn();- const org = createOrg({ status: "claimed" });- renderWithProviders(- <ClaimButton org={org} onClaim={vi.fn()} onDisconnect={onDisconnect} />,- );- const user = userEvent.setup();-- // Act- await user.click(screen.getByTestId("claim-button-1"));-- // Assert- expect(onDisconnect).toHaveBeenCalledWith("1");- });-- it("does not call handlers when button is disabled during claiming", async () => {- // Arrange- const onClaim = vi.fn();- const onDisconnect = vi.fn();- const org = createOrg({ status: "claiming" });- renderWithProviders(- <ClaimButton org={org} onClaim={onClaim} onDisconnect={onDisconnect} />,- );- const user = userEvent.setup();-- // Act- await user.click(screen.getByTestId("claim-button-1"));-- // Assert- expect(onClaim).not.toHaveBeenCalled();- expect(onDisconnect).not.toHaveBeenCalled();- expect(screen.getByTestId("claim-button-1")).toBeDisabled();- });-- it("shows 'Disconnect' label on hover when claimed", async () => {- // Arrange- const org = createOrg({ status: "claimed" });- renderWithProviders(- <ClaimButton org={org} onClaim={vi.fn()} onDisconnect={vi.fn()} />,- );- const user = userEvent.setup();-- // Act- await user.hover(screen.getByTestId("claim-button-1"));-- // Assert- expect(screen.getByTestId("claim-button-1")).toHaveTextContent(- "ORG$DISCONNECT",- );- });-});diff --git a/__tests__/components/features/org/confirm-remove-member-modal.test.tsx b/__tests__/components/features/org/confirm-remove-member-modal.test.tsxdeleted file mode 100644index 922e8a19ab..0000000000--- a/__tests__/components/features/org/confirm-remove-member-modal.test.tsx+++ /dev/null@@ -1,91 +0,0 @@-import React from "react";-import { describe, it, expect, vi } from "vitest";-import { screen } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { renderWithProviders } from "test-utils";-import { ConfirmRemoveMemberModal } from "#/components/features/org/confirm-remove-member-modal";--vi.mock("react-i18next", async (importOriginal) => ({- ...(await importOriginal<typeof import("react-i18next")>()),- Trans: ({- values,- components,- }: {- values: { email: string };- components: { email: React.ReactElement };- }) => React.cloneElement(components.email, {}, values.email),-}));--describe("ConfirmRemoveMemberModal", () => {- it("should display the member email in the confirmation message", () => {- // Arrange- const memberEmail = "[email protected]";-- // Act- renderWithProviders(- <ConfirmRemoveMemberModal- onConfirm={vi.fn()}- onCancel={vi.fn()}- memberEmail={memberEmail}- />,- );-- // Assert- expect(screen.getByText(memberEmail)).toBeInTheDocument();- });-- it("should call onConfirm when the confirm button is clicked", async () => {- // Arrange- const user = userEvent.setup();- const onConfirmMock = vi.fn();- renderWithProviders(- <ConfirmRemoveMemberModal- onConfirm={onConfirmMock}- onCancel={vi.fn()}- memberEmail="[email protected]"- />,- );-- // Act- await user.click(screen.getByTestId("confirm-button"));-- // Assert- expect(onConfirmMock).toHaveBeenCalledOnce();- });-- it("should call onCancel when the cancel button is clicked", async () => {- // Arrange- const user = userEvent.setup();- const onCancelMock = vi.fn();- renderWithProviders(- <ConfirmRemoveMemberModal- onConfirm={vi.fn()}- onCancel={onCancelMock}- memberEmail="[email protected]"- />,- );-- // Act- await user.click(screen.getByTestId("cancel-button"));-- // Assert- expect(onCancelMock).toHaveBeenCalledOnce();- });-- it("should disable buttons and show loading spinner when isLoading is true", () => {- // Arrange & Act- renderWithProviders(- <ConfirmRemoveMemberModal- onConfirm={vi.fn()}- onCancel={vi.fn()}- memberEmail="[email protected]"- isLoading- />,- );-- // Assert- expect(screen.getByTestId("confirm-button")).toBeDisabled();- expect(screen.getByTestId("cancel-button")).toBeDisabled();- expect(screen.getByTestId("loading-spinner")).toBeInTheDocument();- });-});diff --git a/__tests__/components/features/org/confirm-update-role-modal.test.tsx b/__tests__/components/features/org/confirm-update-role-modal.test.tsxdeleted file mode 100644index d9409565a9..0000000000--- a/__tests__/components/features/org/confirm-update-role-modal.test.tsx+++ /dev/null@@ -1,102 +0,0 @@-import React from "react";-import { describe, it, expect, vi } from "vitest";-import { screen } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { renderWithProviders } from "test-utils";-import { ConfirmUpdateRoleModal } from "#/components/features/org/confirm-update-role-modal";--vi.mock("react-i18next", async (importOriginal) => ({- ...(await importOriginal<typeof import("react-i18next")>()),- Trans: ({- values,- components,- }: {- values: { email: string; role: string };- components: { email: React.ReactElement; role: React.ReactElement };- }) => (- <>- {React.cloneElement(components.email, {}, values.email)}- {React.cloneElement(components.role, {}, values.role)}- </>- ),-}));--describe("ConfirmUpdateRoleModal", () => {- it("should display the member email and new role in the confirmation message", () => {- // Arrange- const memberEmail = "[email protected]";- const newRole = "admin";-- // Act- renderWithProviders(- <ConfirmUpdateRoleModal- onConfirm={vi.fn()}- onCancel={vi.fn()}- memberEmail={memberEmail}- newRole={newRole}- />,- );-- // Assert- expect(screen.getByText(memberEmail)).toBeInTheDocument();- expect(screen.getByText(newRole)).toBeInTheDocument();- });-- it("should call onConfirm when the confirm button is clicked", async () => {- // Arrange- const user = userEvent.setup();- const onConfirmMock = vi.fn();- renderWithProviders(- <ConfirmUpdateRoleModal- onConfirm={onConfirmMock}- onCancel={vi.fn()}- memberEmail="[email protected]"- newRole="admin"- />,- );-- // Act- await user.click(screen.getByTestId("confirm-button"));-- // Assert- expect(onConfirmMock).toHaveBeenCalledOnce();- });-- it("should call onCancel when the cancel button is clicked", async () => {- // Arrange- const user = userEvent.setup();- const onCancelMock = vi.fn();- renderWithProviders(- <ConfirmUpdateRoleModal- onConfirm={vi.fn()}- onCancel={onCancelMock}- memberEmail="[email protected]"- newRole="admin"- />,- );-- // Act- await user.click(screen.getByTestId("cancel-button"));-- // Assert- expect(onCancelMock).toHaveBeenCalledOnce();- });-- it("should disable buttons and show loading spinner when isLoading is true", () => {- // Arrange & Act- renderWithProviders(- <ConfirmUpdateRoleModal- onConfirm={vi.fn()}- onCancel={vi.fn()}- memberEmail="[email protected]"- newRole="admin"- isLoading- />,- );-- // Assert- expect(screen.getByTestId("confirm-button")).toBeDisabled();- expect(screen.getByTestId("cancel-button")).toBeDisabled();- expect(screen.getByTestId("loading-spinner")).toBeInTheDocument();- });-});diff --git a/__tests__/components/features/org/git-conversation-routing.test.tsx b/__tests__/components/features/org/git-conversation-routing.test.tsxdeleted file mode 100644index e6d585de37..0000000000--- a/__tests__/components/features/org/git-conversation-routing.test.tsx+++ /dev/null@@ -1,104 +0,0 @@-import { screen } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import { renderWithProviders } from "test-utils";-import { GitConversationRouting } from "#/components/features/org/git-conversation-routing";--const mockMutate = vi.fn();-const mockDisconnectMutate = vi.fn();--vi.mock("#/hooks/query/use-git-organizations", () => ({- useUserGitOrganizations: () => ({- data: {- provider: "github",- organizations: ["OpenHands", "AcmeCo"],- },- isLoading: false,- }),- useGitClaims: () => ({- data: [- {- id: "claim-1",- org_id: "org-1",- provider: "github",- git_organization: "OpenHands",- claimed_by: "user-1",- claimed_at: "2026-01-01T00:00:00",- },- ],- isLoading: false,- }),-}));--vi.mock("#/hooks/mutation/use-claim-git-org", () => ({- useClaimGitOrg: () => ({- mutate: mockMutate,- }),-}));--vi.mock("#/hooks/mutation/use-disconnect-git-org", () => ({- useDisconnectGitOrg: () => ({- mutate: mockDisconnectMutate,- }),-}));--describe("GitConversationRouting", () => {- beforeEach(() => {- vi.clearAllMocks();- });-- afterEach(() => {- vi.restoreAllMocks();- });-- it("should render organizations from API data", () => {- renderWithProviders(<GitConversationRouting />);-- expect(- screen.getByTestId("org-row-github:openhands"),- ).toHaveTextContent("github/OpenHands");- expect(- screen.getByTestId("org-row-github:acmeco"),- ).toHaveTextContent("github/AcmeCo");- });-- it("should show claimed org with 'Claimed' label", () => {- renderWithProviders(<GitConversationRouting />);-- const claimedButton = screen.getByTestId("claim-button-github:openhands");- expect(claimedButton).toHaveTextContent("ORG$CLAIMED");- });-- it("should show unclaimed orgs with 'Claim' label", () => {- renderWithProviders(<GitConversationRouting />);-- expect(- screen.getByTestId("claim-button-github:acmeco"),- ).toHaveTextContent("ORG$CLAIM");- });-- it("should call claim mutation when clicking claim on unclaimed org", async () => {- renderWithProviders(<GitConversationRouting />);- const user = userEvent.setup();-- await user.click(screen.getByTestId("claim-button-github:acmeco"));-- expect(mockMutate).toHaveBeenCalledWith(- { provider: "github", gitOrganization: "AcmeCo" },- expect.objectContaining({ onSettled: expect.any(Function) }),- );- });-- it("should call disconnect mutation when clicking disconnect on claimed org", async () => {- renderWithProviders(<GitConversationRouting />);- const user = userEvent.setup();-- await user.click(screen.getByTestId("claim-button-github:openhands"));-- expect(mockDisconnectMutate).toHaveBeenCalledWith(- { claimId: "claim-1" },- expect.objectContaining({ onSettled: expect.any(Function) }),- );- });--});diff --git a/__tests__/components/features/org/git-org-row.test.tsx b/__tests__/components/features/org/git-org-row.test.tsxdeleted file mode 100644index ce7dbbf92c..0000000000--- a/__tests__/components/features/org/git-org-row.test.tsx+++ /dev/null@@ -1,46 +0,0 @@-import { screen } from "@testing-library/react";-import { describe, expect, it, vi } from "vitest";-import { renderWithProviders } from "test-utils";-import { GitOrgRow } from "#/components/features/org/git-org-row";-import type { GitOrg } from "#/types/org";--const createOrg = (overrides: Partial<GitOrg> = {}): GitOrg => ({- id: "1",- claimId: null,- provider: "GitHub",- name: "TestOrg",- status: "unclaimed",- ...overrides,-});--describe("GitOrgRow", () => {- it("renders the provider and organization name", () => {- // Arrange & Act- renderWithProviders(- <GitOrgRow- org={createOrg({ provider: "GitLab", name: "MyOrg" })}- isLast={false}- onClaim={vi.fn()}- onDisconnect={vi.fn()}- />,- );-- // Assert- expect(screen.getByTestId("org-row-1")).toHaveTextContent("GitLab/MyOrg");- });-- it("renders a claim button for the organization", () => {- // Arrange & Act- renderWithProviders(- <GitOrgRow- org={createOrg()}- isLast={false}- onClaim={vi.fn()}- onDisconnect={vi.fn()}- />,- );-- // Assert- expect(screen.getByTestId("claim-button-1")).toBeInTheDocument();- });-});diff --git a/__tests__/components/features/org/invite-organization-member-modal.test.tsx b/__tests__/components/features/org/invite-organization-member-modal.test.tsxdeleted file mode 100644index 42e470420d..0000000000--- a/__tests__/components/features/org/invite-organization-member-modal.test.tsx+++ /dev/null@@ -1,141 +0,0 @@-import { within, screen, render } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import { QueryClientProvider, QueryClient } from "@tanstack/react-query";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { InviteOrganizationMemberModal } from "#/components/features/org/invite-organization-member-modal";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";-import * as ToastHandlers from "#/utils/custom-toast-handlers";--vi.mock("react-router", () => ({- useRevalidator: vi.fn(() => ({ revalidate: vi.fn() })),-}));--const renderInviteOrganizationMemberModal = (config?: {- onClose: () => void;-}) =>- render(- <InviteOrganizationMemberModal onClose={config?.onClose || vi.fn()} />,- {- wrapper: ({ children }) => (- <QueryClientProvider client={new QueryClient()}>- {children}- </QueryClientProvider>- ),- },- );--describe("InviteOrganizationMemberModal", () => {- beforeEach(() => {- useSelectedOrganizationStore.setState({ organizationId: "1" });- });-- afterEach(() => {- vi.clearAllMocks();- useSelectedOrganizationStore.setState({ organizationId: null });- });-- it("should call onClose the modal when the close button is clicked", async () => {- const onCloseMock = vi.fn();- renderInviteOrganizationMemberModal({ onClose: onCloseMock });-- const modal = screen.getByTestId("invite-modal");- const closeButton = within(modal).getByRole("button", {- name: /close/i,- });- await userEvent.click(closeButton);-- expect(onCloseMock).toHaveBeenCalledOnce();- });-- it("should call the batch API to invite a single team member when the form is submitted", async () => {- const inviteMembersBatchSpy = vi.spyOn(- organizationService,- "inviteMembers",- );- const onCloseMock = vi.fn();-- renderInviteOrganizationMemberModal({ onClose: onCloseMock });-- const modal = screen.getByTestId("invite-modal");-- const badgeInput = within(modal).getByTestId("emails-badge-input");- await userEvent.type(badgeInput, "[email protected] ");-- // Verify badge is displayed- expect(screen.getByText("[email protected]")).toBeInTheDocument();-- const submitButton = within(modal).getByRole("button", {- name: /add/i,- });- await userEvent.click(submitButton);-- expect(inviteMembersBatchSpy).toHaveBeenCalledExactlyOnceWith({- orgId: "1",- emails: ["[email protected]"],- });-- expect(onCloseMock).toHaveBeenCalledOnce();- });-- it("should allow adding multiple emails using badge input and make a batch POST request", async () => {- const inviteMembersBatchSpy = vi.spyOn(- organizationService,- "inviteMembers",- );- const onCloseMock = vi.fn();-- renderInviteOrganizationMemberModal({ onClose: onCloseMock });-- const modal = screen.getByTestId("invite-modal");-- // Should have badge input instead of regular input- const badgeInput = within(modal).getByTestId("emails-badge-input");- expect(badgeInput).toBeInTheDocument();-- // Add first email by typing and pressing space- await userEvent.type(badgeInput, "[email protected] ");-- // Add second email by typing and pressing space- await userEvent.type(badgeInput, "[email protected] ");-- // Add third email by typing and pressing space- await userEvent.type(badgeInput, "[email protected] ");-- // Verify badges are displayed- expect(screen.getByText("[email protected]")).toBeInTheDocument();- expect(screen.getByText("[email protected]")).toBeInTheDocument();- expect(screen.getByText("[email protected]")).toBeInTheDocument();-- const submitButton = within(modal).getByRole("button", {- name: /add/i,- });- await userEvent.click(submitButton);-- // Should call batch invite API with all emails- expect(inviteMembersBatchSpy).toHaveBeenCalledExactlyOnceWith({- orgId: "1",- });-- expect(onCloseMock).toHaveBeenCalledOnce();- });-- it("should display an error toast when clicking add button with no emails added", async () => {- // Arrange- const displayErrorToastSpy = vi.spyOn(ToastHandlers, "displayErrorToast");- const inviteMembersSpy = vi.spyOn(organizationService, "inviteMembers");- renderInviteOrganizationMemberModal();-- // Act- const modal = screen.getByTestId("invite-modal");- const submitButton = within(modal).getByRole("button", { name: /add/i });- await userEvent.click(submitButton);-- // Assert- expect(displayErrorToastSpy).toHaveBeenCalledWith(- "ORG$NO_EMAILS_ADDED_HINT",- );- expect(inviteMembersSpy).not.toHaveBeenCalled();- });-});diff --git a/__tests__/components/features/org/org-selector.test.tsx b/__tests__/components/features/org/org-selector.test.tsxdeleted file mode 100644index 9ed1a284fa..0000000000--- a/__tests__/components/features/org/org-selector.test.tsx+++ /dev/null@@ -1,287 +0,0 @@-import { screen, render, waitFor, within } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { describe, expect, it, vi, beforeEach } from "vitest";-import { QueryClientProvider, QueryClient } from "@tanstack/react-query";-import { OrgSelector } from "#/components/features/org/org-selector";-import { organizationService } from "#/api/organization-service/organization-service.api";-import * as ToastHandlers from "#/utils/custom-toast-handlers";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";-import {- MOCK_PERSONAL_ORG,- MOCK_TEAM_ORG_ACME,- createMockOrganization,-} from "#/mocks/org-handlers";--vi.mock("react-router", () => ({- useRevalidator: () => ({ revalidate: vi.fn() }),- useNavigate: () => vi.fn(),- useLocation: () => ({ pathname: "/" }),- useMatch: () => null,-}));--vi.mock("#/hooks/query/use-is-authed", () => ({- useIsAuthed: () => ({ data: true }),-}));--// Mock useConfig to return SaaS mode (organizations are a SaaS-only feature)-vi.mock("#/hooks/query/use-config", () => ({- useConfig: () => ({ data: { app_mode: "saas" } }),-}));--vi.mock("react-i18next", async () => {- const actual =- await vi.importActual<typeof import("react-i18next")>("react-i18next");- return {- ...actual,- useTranslation: () => ({- t: (key: string, params?: Record<string, string>) => {- const translations: Record<string, string> = {- "ORG$SELECT_ORGANIZATION_PLACEHOLDER": "Please select an organization",- "ORG$PERSONAL_WORKSPACE": "Personal Workspace",- "ORG$SWITCHED_TO_ORGANIZATION": `You have switched to organization: ${params?.name ?? ""}`,- "ORG$SWITCHED_TO_PERSONAL_WORKSPACE":- "You have switched to your personal workspace.",- };- return translations[key] || key;- },- i18n: {- changeLanguage: vi.fn(),- },- }),- };-});--const renderOrgSelector = () =>- render(<OrgSelector />, {- wrapper: ({ children }) => (- <QueryClientProvider client={new QueryClient()}>- {children}- </QueryClientProvider>- ),- });--describe("OrgSelector", () => {- beforeEach(() => {- useSelectedOrganizationStore.setState({ organizationId: null });- });- it("should not render when user only has a personal workspace", async () => {- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_PERSONAL_ORG],- currentOrgId: MOCK_PERSONAL_ORG.id,- });-- const { container } = renderOrgSelector();-- await waitFor(() => {- expect(container).toBeEmptyDOMElement();- });- });-- it("should render when user only has a team organization", async () => {- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });-- const { container } = renderOrgSelector();-- await waitFor(() => {- expect(container).not.toBeEmptyDOMElement();- });- expect(screen.getByRole("combobox")).toBeInTheDocument();- });-- it("should show a loading indicator when fetching organizations", () => {- vi.spyOn(organizationService, "getOrganizations").mockImplementation(- () => new Promise(() => {}), // never resolves- );-- renderOrgSelector();-- // The dropdown trigger should be disabled while loading- const trigger = screen.getByTestId("dropdown-trigger");- expect(trigger).toBeDisabled();- });-- it("should select the first organization after orgs are loaded", async () => {- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_PERSONAL_ORG, MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_PERSONAL_ORG.id,- });-- renderOrgSelector();-- // The combobox input should show the first org name- await waitFor(() => {- const input = screen.getByRole("combobox");- expect(input).toHaveValue("Personal Workspace");- });- });-- it("should show all options when dropdown is opened", async () => {- const user = userEvent.setup();- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [- MOCK_PERSONAL_ORG,- MOCK_TEAM_ORG_ACME,- createMockOrganization("3", "Test Organization", 500),- ],- currentOrgId: MOCK_PERSONAL_ORG.id,- });-- renderOrgSelector();-- // Wait for the selector to be populated with the first organization- await waitFor(() => {- const input = screen.getByRole("combobox");- expect(input).toHaveValue("Personal Workspace");- });-- // Click the trigger to open dropdown- const trigger = screen.getByTestId("dropdown-trigger");- await user.click(trigger);-- // Verify all 3 options are visible- const listbox = await screen.findByRole("listbox");- const options = within(listbox).getAllByRole("option");-- expect(options).toHaveLength(3);- expect(options[0]).toHaveTextContent("Personal Workspace");- expect(options[1]).toHaveTextContent("Acme Corp");- expect(options[2]).toHaveTextContent("Test Organization");- });-- it("should call switchOrganization API when selecting a different organization", async () => {- // Arrange- const user = userEvent.setup();- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_PERSONAL_ORG, MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_PERSONAL_ORG.id,- });- const switchOrgSpy = vi- .spyOn(organizationService, "switchOrganization")- .mockResolvedValue(MOCK_TEAM_ORG_ACME);-- renderOrgSelector();-- await waitFor(() => {- expect(screen.getByRole("combobox")).toHaveValue("Personal Workspace");- });-- // Act- const trigger = screen.getByTestId("dropdown-trigger");- await user.click(trigger);- const listbox = await screen.findByRole("listbox");- const acmeOption = within(listbox).getByText("Acme Corp");- await user.click(acmeOption);-- // Assert- expect(switchOrgSpy).toHaveBeenCalledWith({ orgId: MOCK_TEAM_ORG_ACME.id });- });-- it("should show loading state while switching organizations", async () => {- // Arrange- const user = userEvent.setup();- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_PERSONAL_ORG, MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_PERSONAL_ORG.id,- });- vi.spyOn(organizationService, "switchOrganization").mockImplementation(- () => new Promise(() => {}), // never resolves to keep loading state- );-- renderOrgSelector();-- await waitFor(() => {- expect(screen.getByRole("combobox")).toHaveValue("Personal Workspace");- });-- // Act- const trigger = screen.getByTestId("dropdown-trigger");- await user.click(trigger);- const listbox = await screen.findByRole("listbox");- const acmeOption = within(listbox).getByText("Acme Corp");- await user.click(acmeOption);-- // Assert- await waitFor(() => {- expect(screen.getByTestId("dropdown-trigger")).toBeDisabled();- });- });-- it("should display toast with organization name when switching to a team organization", async () => {- // Arrange- const user = userEvent.setup();- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_PERSONAL_ORG, MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_PERSONAL_ORG.id,- });- vi.spyOn(organizationService, "switchOrganization").mockResolvedValue(- MOCK_TEAM_ORG_ACME,- );- const displaySuccessToastSpy = vi.spyOn(- ToastHandlers,- "displaySuccessToast",- );-- renderOrgSelector();-- await waitFor(() => {- expect(screen.getByRole("combobox")).toHaveValue("Personal Workspace");- });-- // Act- const trigger = screen.getByTestId("dropdown-trigger");- await user.click(trigger);- const listbox = await screen.findByRole("listbox");- const acmeOption = within(listbox).getByText("Acme Corp");- await user.click(acmeOption);-- // Assert- await waitFor(() => {- expect(displaySuccessToastSpy).toHaveBeenCalledWith(- "You have switched to organization: Acme Corp",- );- });- });-- it("should display toast for personal workspace when switching to personal workspace", async () => {- // Arrange- const user = userEvent.setup();- // Pre-set the store to have team org selected- useSelectedOrganizationStore.setState({- organizationId: MOCK_TEAM_ORG_ACME.id,- });- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_TEAM_ORG_ACME, MOCK_PERSONAL_ORG],- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });- vi.spyOn(organizationService, "switchOrganization").mockResolvedValue(- MOCK_PERSONAL_ORG,- );- const displaySuccessToastSpy = vi.spyOn(- ToastHandlers,- "displaySuccessToast",- );-- renderOrgSelector();-- await waitFor(() => {- expect(screen.getByRole("combobox")).toHaveValue("Acme Corp");- });-- // Act- const trigger = screen.getByTestId("dropdown-trigger");- await user.click(trigger);- const listbox = await screen.findByRole("listbox");- const personalOption = within(listbox).getByText("Personal Workspace");- await user.click(personalOption);-- // Assert- await waitFor(() => {- expect(displaySuccessToastSpy).toHaveBeenCalledWith(- "You have switched to your personal workspace.",- );- });- });-});diff --git a/__tests__/components/features/payment/payment-form.test.tsx b/__tests__/components/features/payment/payment-form.test.tsxdeleted file mode 100644index 48979d3c52..0000000000--- a/__tests__/components/features/payment/payment-form.test.tsx+++ /dev/null@@ -1,194 +0,0 @@-import { screen, waitFor } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { afterEach, beforeEach, describe, expect, it, test, vi } from "vitest";-import BillingService from "#/api/billing-service/billing-service.api";-import OptionService from "#/api/option-service/option-service.api";-import { PaymentForm } from "#/components/features/payment/payment-form";-import { renderWithProviders } from "../../../../test-utils";--// Mock the stripe checkout hook to avoid JSDOM navigation issues-const mockMutate = vi.fn().mockResolvedValue(undefined);-vi.mock("#/hooks/mutation/stripe/use-create-stripe-checkout-session", () => ({- useCreateStripeCheckoutSession: () => ({- mutate: mockMutate,- mutateAsync: vi.fn().mockResolvedValue(undefined),- isPending: false,- }),-}));--describe("PaymentForm", () => {- const getBalanceSpy = vi.spyOn(BillingService, "getBalance");- const createCheckoutSessionSpy = vi.spyOn(- BillingService,- "createCheckoutSession",- );- const getConfigSpy = vi.spyOn(OptionService, "getConfig");-- const renderPaymentForm = () => renderWithProviders(<PaymentForm />);-- beforeEach(() => {- // useBalance hook will return the balance only if the app_mode is "saas" and the billing feature is enabled- // @ts-expect-error - partial mock for testing- getConfigSpy.mockResolvedValue({- app_mode: "saas",- posthog_client_key: "456",- feature_flags: {- enable_billing: true,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- });- });-- afterEach(() => {- vi.clearAllMocks();- mockMutate.mockClear();- });-- it("should render the users current balance", async () => {- getBalanceSpy.mockResolvedValue("100.50");- renderPaymentForm();-- await waitFor(() => {- const balance = screen.getByTestId("user-balance");- expect(balance).toHaveTextContent("$100.50");- });- });-- it("should render the users current balance to two decimal places", async () => {- getBalanceSpy.mockResolvedValue("100");- renderPaymentForm();-- await waitFor(() => {- const balance = screen.getByTestId("user-balance");- expect(balance).toHaveTextContent("$100.00");- });- });-- test("the user can top-up a specific amount", async () => {- const user = userEvent.setup();- renderPaymentForm();-- const topUpInput = await screen.findByTestId("top-up-input");- await user.type(topUpInput, "50");-- const topUpButton = screen.getByText("PAYMENT$ADD_CREDIT");- await user.click(topUpButton);-- expect(mockMutate).toHaveBeenCalledWith({ amount: 50 });- });-- it("should only accept integer values", async () => {- const user = userEvent.setup();- renderPaymentForm();-- const topUpInput = await screen.findByTestId("top-up-input");- await user.type(topUpInput, "50");-- const topUpButton = screen.getByText("PAYMENT$ADD_CREDIT");- await user.click(topUpButton);-- expect(mockMutate).toHaveBeenCalledWith({ amount: 50 });- });-- it("should disable the top-up button if the user enters an invalid amount", async () => {- const user = userEvent.setup();- renderPaymentForm();-- const topUpButton = screen.getByText("PAYMENT$ADD_CREDIT");- expect(topUpButton).toBeDisabled();-- const topUpInput = await screen.findByTestId("top-up-input");- await user.type(topUpInput, " ");-- expect(topUpButton).toBeDisabled();- });-- it("should disable the top-up button after submission", async () => {- const user = userEvent.setup();- renderPaymentForm();-- const topUpInput = await screen.findByTestId("top-up-input");- await user.type(topUpInput, "50");-- const topUpButton = screen.getByText("PAYMENT$ADD_CREDIT");- await user.click(topUpButton);-- expect(topUpButton).toBeDisabled();- });-- describe("prevent submission if", () => {- test("user enters a negative amount", async () => {- const user = userEvent.setup();- renderPaymentForm();-- const topUpInput = await screen.findByTestId("top-up-input");- await user.type(topUpInput, "-50");-- const topUpButton = screen.getByText("PAYMENT$ADD_CREDIT");- await user.click(topUpButton);-- expect(mockMutate).not.toHaveBeenCalled();- });-- test("user enters an empty string", async () => {- const user = userEvent.setup();- renderPaymentForm();-- const topUpInput = await screen.findByTestId("top-up-input");- await user.type(topUpInput, " ");-- const topUpButton = screen.getByText("PAYMENT$ADD_CREDIT");- await user.click(topUpButton);-- expect(mockMutate).not.toHaveBeenCalled();- });-- test("user enters a non-numeric value", async () => {- const user = userEvent.setup();- renderPaymentForm();-- // With type="number", the browser would prevent non-numeric input,- // but we'll test the validation logic anyway- const topUpInput = await screen.findByTestId("top-up-input");- await user.type(topUpInput, "abc");-- const topUpButton = screen.getByText("PAYMENT$ADD_CREDIT");- await user.click(topUpButton);-- expect(mockMutate).not.toHaveBeenCalled();- });-- test("user enters less than the minimum amount", async () => {- const user = userEvent.setup();- renderPaymentForm();-- const topUpInput = await screen.findByTestId("top-up-input");- await user.type(topUpInput, "9"); // test assumes the minimum is 10-- const topUpButton = screen.getByText("PAYMENT$ADD_CREDIT");- await user.click(topUpButton);-- expect(mockMutate).not.toHaveBeenCalled();- });-- test("user enters a decimal value", async () => {- const user = userEvent.setup();- renderPaymentForm();-- // With step="1", the browser would validate this, but we'll test our validation logic- const topUpInput = await screen.findByTestId("top-up-input");- await user.type(topUpInput, "50.5");-- const topUpButton = screen.getByText("PAYMENT$ADD_CREDIT");- await user.click(topUpButton);-- expect(mockMutate).not.toHaveBeenCalled();- });- });-});diff --git a/__tests__/components/features/settings/api-keys-manager.test.tsx b/__tests__/components/features/settings/api-keys-manager.test.tsxdeleted file mode 100644index b2783c6363..0000000000--- a/__tests__/components/features/settings/api-keys-manager.test.tsx+++ /dev/null@@ -1,64 +0,0 @@-import { render, screen } from "@testing-library/react";-import { describe, expect, it, vi, beforeEach } from "vitest";-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { ApiKeysManager } from "#/components/features/settings/api-keys-manager";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";--// Mock the react-i18next-vi.mock("react-i18next", async () => {- const actual = await vi.importActual<typeof import("react-i18next")>("react-i18next");- return {- ...actual,- useTranslation: () => ({- t: (key: string) => key,- }),- Trans: ({ i18nKey, components }: { i18nKey: string; components: Record<string, React.ReactNode> }) => {- // Simplified Trans component that renders the link- if (i18nKey === "SETTINGS$API_KEYS_DESCRIPTION") {- return (- <span>- API keys allow you to authenticate with the OpenHands API programmatically.- Keep your API keys secure; anyone with your API key can access your account.- For more information on how to use the API, see our {components.a}- </span>- );- }- return <span>{i18nKey}</span>;- },- };-});--// Mock the API keys hook-vi.mock("#/hooks/query/use-api-keys", () => ({- useApiKeys: () => ({- data: [],- isLoading: false,- error: null,- }),-}));--describe("ApiKeysManager", () => {- beforeEach(() => {- useSelectedOrganizationStore.setState({ organizationId: "test-org-id" });- });-- const renderComponent = () => {- const queryClient = new QueryClient();- return render(- <QueryClientProvider client={queryClient}>- <ApiKeysManager />- </QueryClientProvider>- );- };-- it("should render the API documentation link", () => {- renderComponent();-- // Find the link to the API documentation- const link = screen.getByRole("link");- expect(link).toBeInTheDocument();- expect(link).toHaveAttribute("href", "https://docs.all-hands.dev/usage/cloud/cloud-api");- expect(link).toHaveAttribute("target", "_blank");- expect(link).toHaveAttribute("rel", "noopener noreferrer");- });-});diff --git a/__tests__/components/features/settings/gitlab-webhook-manager-state.test.tsx b/__tests__/components/features/settings/gitlab-webhook-manager-state.test.tsxdeleted file mode 100644index b854b0cd7a..0000000000--- a/__tests__/components/features/settings/gitlab-webhook-manager-state.test.tsx+++ /dev/null@@ -1,49 +0,0 @@-import { render, screen } from "@testing-library/react";-import { describe, expect, it, vi } from "vitest";-import { GitLabWebhookManagerState } from "#/components/features/settings/git-settings/gitlab-webhook-manager-state";-import { I18nKey } from "#/i18n/declaration";--// Mock react-i18next-vi.mock("react-i18next", () => ({- useTranslation: () => ({- t: (key: string) => key,- }),-}));--describe("GitLabWebhookManagerState", () => {- it("should render title and message with translated keys", () => {- // Arrange- const props = {- titleKey: I18nKey.GITLAB$WEBHOOK_MANAGER_TITLE,- messageKey: I18nKey.GITLAB$WEBHOOK_MANAGER_LOADING,- };-- // Act- render(<GitLabWebhookManagerState {...props} />);-- // Assert- expect(- screen.getByText(I18nKey.GITLAB$WEBHOOK_MANAGER_TITLE),- ).toBeInTheDocument();- expect(- screen.getByText(I18nKey.GITLAB$WEBHOOK_MANAGER_LOADING),- ).toBeInTheDocument();- });-- it("should apply custom className to container", () => {- // Arrange- const customClassName = "custom-container-class";- const props = {- titleKey: I18nKey.GITLAB$WEBHOOK_MANAGER_TITLE,- messageKey: I18nKey.GITLAB$WEBHOOK_MANAGER_LOADING,- className: customClassName,- };-- // Act- const { container } = render(<GitLabWebhookManagerState {...props} />);-- // Assert- const containerElement = container.firstChild as HTMLElement;- expect(containerElement).toHaveClass(customClassName);- });-});diff --git a/__tests__/components/features/settings/gitlab-webhook-manager.test.tsx b/__tests__/components/features/settings/gitlab-webhook-manager.test.tsxdeleted file mode 100644index 12e5e72970..0000000000--- a/__tests__/components/features/settings/gitlab-webhook-manager.test.tsx+++ /dev/null@@ -1,416 +0,0 @@-import { render, screen, waitFor } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { describe, expect, it, vi, beforeEach } from "vitest";-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { GitLabWebhookManager } from "#/components/features/settings/git-settings/gitlab-webhook-manager";-import { integrationService } from "#/api/integration-service/integration-service.api";-import type {- GitLabResource,- ResourceInstallationResult,-} from "#/api/integration-service/integration-service.types";-import * as ToastHandlers from "#/utils/custom-toast-handlers";--// Mock react-i18next-vi.mock("react-i18next", () => ({- useTranslation: () => ({- t: (key: string) => key,- }),-}));--// Mock toast handlers-vi.mock("#/utils/custom-toast-handlers", () => ({- displaySuccessToast: vi.fn(),- displayErrorToast: vi.fn(),-}));--const mockResources: GitLabResource[] = [- {- id: "1",- name: "Test Project",- full_path: "user/test-project",- type: "project",- webhook_installed: false,- webhook_uuid: null,- last_synced: null,- },- {- id: "10",- name: "Test Group",- full_path: "test-group",- type: "group",- webhook_installed: true,- webhook_uuid: "uuid-123",- last_synced: "2024-01-01T00:00:00Z",- },-];--describe("GitLabWebhookManager", () => {- const queryClient = new QueryClient({- defaultOptions: {- queries: { retry: false },- mutations: { retry: false },- },- });-- beforeEach(() => {- queryClient.clear();- vi.clearAllMocks();- });-- const renderComponent = () => {- return render(- <QueryClientProvider client={queryClient}>- <GitLabWebhookManager />- </QueryClientProvider>,- );- };-- it("should display loading state when fetching resources", async () => {- // Arrange- vi.spyOn(integrationService, "getGitLabResources").mockImplementation(- () => new Promise(() => {}), // Never resolves- );-- // Act- renderComponent();-- // Assert- expect(- screen.getByText("GITLAB$WEBHOOK_MANAGER_LOADING"),- ).toBeInTheDocument();- });-- it("should display error state when fetching fails", async () => {- // Arrange- vi.spyOn(integrationService, "getGitLabResources").mockRejectedValue(- new Error("Failed to fetch"),- );-- // Act- renderComponent();-- // Assert- await waitFor(() => {- expect(- screen.getByText("GITLAB$WEBHOOK_MANAGER_ERROR"),- ).toBeInTheDocument();- });- });-- it("should display no resources message when list is empty", async () => {- // Arrange- vi.spyOn(integrationService, "getGitLabResources").mockResolvedValue({- resources: [],- });-- // Act- renderComponent();-- // Assert- await waitFor(() => {- expect(- screen.getByText("GITLAB$WEBHOOK_MANAGER_NO_RESOURCES"),- ).toBeInTheDocument();- });- });-- it("should display resources table when resources are available", async () => {- // Arrange- vi.spyOn(integrationService, "getGitLabResources").mockResolvedValue({- resources: mockResources,- });-- // Act- renderComponent();-- // Assert- await waitFor(() => {- expect(screen.getByText("Test Project")).toBeInTheDocument();- expect(screen.getByText("Test Group")).toBeInTheDocument();- });-- expect(screen.getByText("user/test-project")).toBeInTheDocument();- expect(screen.getByText("test-group")).toBeInTheDocument();- });-- it("should display correct resource types in table", async () => {- // Arrange- vi.spyOn(integrationService, "getGitLabResources").mockResolvedValue({- resources: mockResources,- });-- // Act- renderComponent();-- // Assert- await waitFor(() => {- const projectType = screen.getByText("project");- const groupType = screen.getByText("group");- expect(projectType).toBeInTheDocument();- expect(groupType).toBeInTheDocument();- });- });-- it("should disable reinstall button when webhook is already installed", async () => {- // Arrange- vi.spyOn(integrationService, "getGitLabResources").mockResolvedValue({- resources: [- {- id: "10",- name: "Test Group",- full_path: "test-group",- type: "group",- webhook_installed: true,- webhook_uuid: "uuid-123",- last_synced: null,- },- ],- });-- // Act- renderComponent();-- // Assert- await waitFor(() => {- const reinstallButton = screen.getByTestId(- "reinstall-webhook-button-group:10",- );- expect(reinstallButton).toBeDisabled();- });- });-- it("should enable reinstall button when webhook is not installed", async () => {- // Arrange- vi.spyOn(integrationService, "getGitLabResources").mockResolvedValue({- resources: [- {- id: "1",- name: "Test Project",- full_path: "user/test-project",- type: "project",- webhook_installed: false,- webhook_uuid: null,- last_synced: null,- },- ],- });-- // Act- renderComponent();-- // Assert- await waitFor(() => {- const reinstallButton = screen.getByTestId(- "reinstall-webhook-button-project:1",- );- expect(reinstallButton).not.toBeDisabled();- });- });-- it("should call reinstall service when reinstall button is clicked", async () => {- // Arrange- const user = userEvent.setup();- const reinstallSpy = vi.spyOn(integrationService, "reinstallGitLabWebhook");-- vi.spyOn(integrationService, "getGitLabResources").mockResolvedValue({- resources: [- {- id: "1",- name: "Test Project",- full_path: "user/test-project",- type: "project",- webhook_installed: false,- webhook_uuid: null,- last_synced: null,- },- ],- });-- // Act- renderComponent();- const reinstallButton = await screen.findByTestId(- "reinstall-webhook-button-project:1",- );- await user.click(reinstallButton);-- // Assert- await waitFor(() => {- expect(reinstallSpy).toHaveBeenCalledWith({- resource: {- type: "project",- id: "1",- },- });- });- });-- it("should show loading state on button during reinstallation", async () => {- // Arrange- const user = userEvent.setup();- let resolveReinstall: (value: ResourceInstallationResult) => void;- const reinstallPromise = new Promise<ResourceInstallationResult>(- (resolve) => {- resolveReinstall = resolve;- },- );-- vi.spyOn(integrationService, "reinstallGitLabWebhook").mockReturnValue(- reinstallPromise,- );-- vi.spyOn(integrationService, "getGitLabResources").mockResolvedValue({- resources: [- {- id: "1",- name: "Test Project",- full_path: "user/test-project",- type: "project",- webhook_installed: false,- webhook_uuid: null,- last_synced: null,- },- ],- });-- // Act- renderComponent();- const reinstallButton = await screen.findByTestId(- "reinstall-webhook-button-project:1",- );- await user.click(reinstallButton);-- // Assert- await waitFor(() => {- expect(- screen.getByText("GITLAB$WEBHOOK_REINSTALLING"),- ).toBeInTheDocument();- });-- // Cleanup- resolveReinstall!({- resource_id: "1",- resource_type: "project",- success: true,- error: null,- });- });-- it("should display error message when reinstallation fails", async () => {- // Arrange- const user = userEvent.setup();- const errorMessage = "Permission denied";- vi.spyOn(integrationService, "reinstallGitLabWebhook").mockResolvedValue({- resource_id: "1",- resource_type: "project",- success: false,- error: errorMessage,- });-- vi.spyOn(integrationService, "getGitLabResources").mockResolvedValue({- resources: [- {- id: "1",- name: "Test Project",- full_path: "user/test-project",- type: "project",- webhook_installed: false,- webhook_uuid: null,- last_synced: null,- },- ],- });-- // Act- renderComponent();- const reinstallButton = await screen.findByTestId(- "reinstall-webhook-button-project:1",- );- await user.click(reinstallButton);-- // Assert- await waitFor(() => {- expect(screen.getByText(errorMessage)).toBeInTheDocument();- });- });-- it("should display success toast when reinstallation succeeds", async () => {- // Arrange- const user = userEvent.setup();- const displaySuccessToastSpy = vi.spyOn(- ToastHandlers,- "displaySuccessToast",- );-- vi.spyOn(integrationService, "reinstallGitLabWebhook").mockResolvedValue({- resource_id: "1",- resource_type: "project",- success: true,- error: null,- });-- vi.spyOn(integrationService, "getGitLabResources").mockResolvedValue({- resources: [- {- id: "1",- name: "Test Project",- full_path: "user/test-project",- type: "project",- webhook_installed: false,- webhook_uuid: null,- last_synced: null,- },- ],- });-- // Act- renderComponent();- const reinstallButton = await screen.findByTestId(- "reinstall-webhook-button-project:1",- );- await user.click(reinstallButton);-- // Assert- await waitFor(() => {- expect(displaySuccessToastSpy).toHaveBeenCalledWith(- "GITLAB$WEBHOOK_REINSTALL_SUCCESS",- );- });- });-- it("should display error toast when reinstallation throws error", async () => {- // Arrange- const user = userEvent.setup();- const displayErrorToastSpy = vi.spyOn(ToastHandlers, "displayErrorToast");- const errorMessage = "Network error";-- vi.spyOn(integrationService, "reinstallGitLabWebhook").mockRejectedValue(- new Error(errorMessage),- );-- vi.spyOn(integrationService, "getGitLabResources").mockResolvedValue({- resources: [- {- id: "1",- name: "Test Project",- full_path: "user/test-project",- type: "project",- webhook_installed: false,- webhook_uuid: null,- last_synced: null,- },- ],- });-- // Act- renderComponent();- const reinstallButton = await screen.findByTestId(- "reinstall-webhook-button-project:1",- );- await user.click(reinstallButton);-- // Assert- await waitFor(() => {- expect(displayErrorToastSpy).toHaveBeenCalledWith(errorMessage);- });- });-});diff --git a/__tests__/components/features/settings/org-wide-settings-badge.test.tsx b/__tests__/components/features/settings/org-wide-settings-badge.test.tsxdeleted file mode 100644index c61867d509..0000000000--- a/__tests__/components/features/settings/org-wide-settings-badge.test.tsx+++ /dev/null@@ -1,38 +0,0 @@-import { render, screen } from "@testing-library/react";-import { describe, it, expect } from "vitest";-import { OrgWideSettingsBadge } from "#/components/features/settings/org-wide-settings-badge";--describe("OrgWideSettingsBadge", () => {- it("should render the badge with translated text", () => {- // Arrange & Act- render(<OrgWideSettingsBadge />);-- // Assert- const badge = screen.getByTestId("org-wide-settings-badge");- expect(badge).toBeInTheDocument();- expect(screen.getByText("SETTINGS$ORG_WIDE_SETTING_BADGE")).toBeInTheDocument();- });-- it("should render the info circle icon", () => {- // Arrange & Act- render(<OrgWideSettingsBadge />);-- // Assert- const badge = screen.getByTestId("org-wide-settings-badge");- const icon = badge.querySelector("svg");- expect(icon).toBeInTheDocument();- });-- it("should render the managed-by-admin i18n key when variant is set", () => {- // Arrange & Act- render(<OrgWideSettingsBadge variant="managed-by-admin" />);-- // Assert- expect(- screen.getByText("SETTINGS$ORG_MANAGED_BY_ADMIN_BADGE"),- ).toBeInTheDocument();- expect(- screen.queryByText("SETTINGS$ORG_WIDE_SETTING_BADGE"),- ).not.toBeInTheDocument();- });-});diff --git a/__tests__/components/features/settings/settings-navigation.test.tsx b/__tests__/components/features/settings/settings-navigation.test.tsxindex 7930e84dde..00fe0eaac0 100644--- a/__tests__/components/features/settings/settings-navigation.test.tsx+++ b/__tests__/components/features/settings/settings-navigation.test.tsx@@ -1,168 +1,32 @@-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import { render, screen } from "@testing-library/react";-import { describe, it, expect, vi, beforeEach } from "vitest";+import { describe, expect, it, vi } from "vitest";import { MemoryRouter } from "react-router";import { SettingsNavigation } from "#/components/features/settings/settings-navigation";-import OptionService from "#/api/option-service/option-service.api";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";-import { SAAS_NAV_ITEMS, SettingsNavItem } from "#/constants/settings-nav";+import { OSS_NAV_ITEMS } from "#/constants/settings-nav";import { SettingsNavRenderedItem } from "#/hooks/use-settings-nav-items";-vi.mock("react-router", async () => ({- ...(await vi.importActual("react-router")),- useRevalidator: () => ({ revalidate: vi.fn() }),-}));+const baseItems: SettingsNavRenderedItem[] = [+ { type: "header", text: "SETTINGS$TITLE" as never },+ { type: "item", item: OSS_NAV_ITEMS[0] },+ { type: "divider" },+ { type: "item", item: OSS_NAV_ITEMS[1] },+];-const mockConfig = () => {- vi.spyOn(OptionService, "getConfig").mockResolvedValue({- app_mode: "saas",- } as Awaited<ReturnType<typeof OptionService.getConfig>>);-};--// Convert SettingsNavItem[] to SettingsNavRenderedItem[]-const toRenderedItems = (items: SettingsNavItem[]): SettingsNavRenderedItem[] =>- items.map((item) => ({ type: "item", item }));--const ITEMS_WITHOUT_ORG = SAAS_NAV_ITEMS.filter(- (item) =>- item.to !== "/settings/org" && item.to !== "/settings/org-members",-);--const renderSettingsNavigation = (- items: SettingsNavRenderedItem[] = toRenderedItems(SAAS_NAV_ITEMS),-) => {- const queryClient = new QueryClient({- defaultOptions: {- queries: {- retry: false,- },- },- });-- return render(- <QueryClientProvider client={queryClient}>+describe("SettingsNavigation", () => {+ it("renders the provided OSS navigation items, headers, and dividers", () => {+ render(<MemoryRouter><SettingsNavigationisMobileMenuOpen={false}onCloseMobileMenu={vi.fn()}- navigationItems={items}+ navigationItems={baseItems}/>- </MemoryRouter>- </QueryClientProvider>,- );-};--describe("SettingsNavigation", () => {- beforeEach(() => {- vi.restoreAllMocks();- mockConfig();- useSelectedOrganizationStore.setState({ organizationId: "org-1" });- });-- describe("renders navigation items passed via props", () => {- it("should render org routes when included in navigation items", async () => {- renderSettingsNavigation(toRenderedItems(SAAS_NAV_ITEMS));-- await screen.findByTestId("settings-navbar");-- const orgMembersLink = await screen.findByText("SETTINGS$NAV_ORG_MEMBERS");- const orgLink = await screen.findByText("SETTINGS$NAV_ORGANIZATION");-- expect(orgMembersLink).toBeInTheDocument();- expect(orgLink).toBeInTheDocument();- });-- it("should not render org routes when excluded from navigation items", async () => {- renderSettingsNavigation(toRenderedItems(ITEMS_WITHOUT_ORG));-- await screen.findByTestId("settings-navbar");-- const orgMembersLink = screen.queryByText("SETTINGS$NAV_ORG_MEMBERS");- const orgLink = screen.queryByText("SETTINGS$NAV_ORGANIZATION");-- expect(orgMembersLink).not.toBeInTheDocument();- expect(orgLink).not.toBeInTheDocument();- });-- it("should render all non-org SAAS items regardless of which items are passed", async () => {- renderSettingsNavigation(toRenderedItems(SAAS_NAV_ITEMS));-- await screen.findByTestId("settings-navbar");-- // Verify non-org items are rendered (using their i18n keys as text since- // react-i18next returns the key when no translation is loaded)- const secretsLink = await screen.findByText("SETTINGS$NAV_SECRETS");- const apiKeysLink = await screen.findByText("SETTINGS$NAV_API_KEYS");-- expect(secretsLink).toBeInTheDocument();- expect(apiKeysLink).toBeInTheDocument();- });-- it("should render empty nav when given an empty items list", async () => {- renderSettingsNavigation([]);-- await screen.findByTestId("settings-navbar");-- // No nav links should be rendered- const orgMembersLink = screen.queryByText("SETTINGS$NAV_ORG_MEMBERS");- const orgLink = screen.queryByText("SETTINGS$NAV_ORGANIZATION");-- expect(orgMembersLink).not.toBeInTheDocument();- expect(orgLink).not.toBeInTheDocument();- });- });-- describe("renders section headers and dividers", () => {- it("should render section headers when included in navigation items", async () => {- // Arrange- const itemsWithHeader: SettingsNavRenderedItem[] = [- { type: "header", text: "SETTINGS$ORG_SETTINGS_HEADER" as any },- ...toRenderedItems(SAAS_NAV_ITEMS.slice(0, 2)),- ];-- // Act- renderSettingsNavigation(itemsWithHeader);- await screen.findByTestId("settings-navbar");-- // Assert- expect(screen.getByText("SETTINGS$ORG_SETTINGS_HEADER")).toBeInTheDocument();- });-- it("should render dividers when included in navigation items", async () => {- // Arrange- const itemsWithDivider: SettingsNavRenderedItem[] = [- ...toRenderedItems(SAAS_NAV_ITEMS.slice(0, 2)),- { type: "divider" },- ...toRenderedItems(SAAS_NAV_ITEMS.slice(2, 4)),- ];-- // Act- renderSettingsNavigation(itemsWithDivider);- await screen.findByTestId("settings-navbar");-- // Assert - divider is a div with border-t class- const navbar = screen.getByTestId("settings-navbar");- const dividers = navbar.querySelectorAll(".border-t");- expect(dividers.length).toBeGreaterThan(0);- });-- it("should render multiple headers and dividers in correct order", async () => {- // Arrange- const itemsWithHeadersAndDividers: SettingsNavRenderedItem[] = [- { type: "header", text: "SETTINGS$ORG_SETTINGS_HEADER" as any },- ...toRenderedItems(SAAS_NAV_ITEMS.slice(0, 1)),- { type: "divider" },- { type: "header", text: "SETTINGS$PERSONAL_SETTINGS_HEADER" as any },- ...toRenderedItems(SAAS_NAV_ITEMS.slice(1, 2)),- ];-- // Act- renderSettingsNavigation(itemsWithHeadersAndDividers);- await screen.findByTestId("settings-navbar");+ </MemoryRouter>,+ );- // Assert- expect(screen.getByText("SETTINGS$ORG_SETTINGS_HEADER")).toBeInTheDocument();- expect(screen.getByText("SETTINGS$PERSONAL_SETTINGS_HEADER")).toBeInTheDocument();- });+ expect(screen.getByTestId("settings-navbar")).toBeInTheDocument();+ expect(screen.getAllByText("SETTINGS$TITLE").length).toBeGreaterThan(0);+ expect(screen.getByText("SETTINGS$NAV_LLM")).toBeInTheDocument();+ expect(screen.getByText("SETTINGS$NAV_CONDENSER")).toBeInTheDocument();});});diff --git a/__tests__/components/features/sidebar/sidebar.test.tsx b/__tests__/components/features/sidebar/sidebar.test.tsxdeleted file mode 100644index 4f9249592c..0000000000--- a/__tests__/components/features/sidebar/sidebar.test.tsx+++ /dev/null@@ -1,221 +0,0 @@-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import {- renderWithProviders,- createAxiosNotFoundErrorObject,-} from "test-utils";-import { createRoutesStub } from "react-router";-import { screen, waitFor } from "@testing-library/react";-import { Sidebar } from "#/components/features/sidebar/sidebar";-import SettingsService from "#/api/settings-service/settings-service.api";-import OptionService from "#/api/option-service/option-service.api";-import { MOCK_DEFAULT_USER_SETTINGS } from "#/mocks/handlers";-import { WebClientConfig } from "#/api/option-service/option.types";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";-import * as FeatureFlags from "#/utils/feature-flags";--// Helper to create mock config with sensible defaults-const createMockConfig = (- overrides: Omit<Partial<WebClientConfig>, "feature_flags"> & {- feature_flags?: Partial<WebClientConfig["feature_flags"]>;- } = {},-): WebClientConfig => {- const { feature_flags: featureFlagOverrides, ...restOverrides } = overrides;- return {- app_mode: "oss",- posthog_client_key: "test-posthog-key",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- ...featureFlagOverrides,- },- providers_configured: [],- maintenance_start_time: null,- auth_url: null,- recaptcha_site_key: null,- faulty_models: [],- error_message: null,- updated_at: "2024-01-14T10:00:00Z",- github_app_slug: null,- ...restOverrides,- };-};--// These tests will now fail because the conversation panel is rendered through a portal-// and technically not a child of the Sidebar component.--const ConversationRouterStub = createRoutesStub([- {- path: "/conversation/:conversationId",- Component: () => <Sidebar />,- },-]);--const SettingsRouterStub = createRoutesStub([- {- path: "/settings",- Component: () => <Sidebar />,- },-]);--const renderSidebar = (path: "conversation" | "settings" = "conversation") => {- if (path === "settings") {- return renderWithProviders(- <SettingsRouterStub initialEntries={["/settings"]} />,- );- }- return renderWithProviders(- <ConversationRouterStub initialEntries={["/conversation/123"]} />,- );-};--describe("Sidebar", () => {- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- const getConfigSpy = vi.spyOn(OptionService, "getConfig");-- beforeEach(() => {- useSelectedOrganizationStore.setState({ organizationId: "test-org-id" });- });-- afterEach(() => {- vi.clearAllMocks();- });-- it("should fetch settings data on mount", async () => {- renderSidebar();- await waitFor(() => expect(getSettingsSpy).toHaveBeenCalled());- });-- describe("Settings modal auto-open behavior", () => {- it("should NOT open settings modal when hide_llm_settings is true even with 404 error", async () => {- getConfigSpy.mockResolvedValue(- createMockConfig({ feature_flags: { hide_llm_settings: true } }),- );- getSettingsSpy.mockRejectedValue(createAxiosNotFoundErrorObject());-- renderSidebar();-- await waitFor(() => {- expect(getConfigSpy).toHaveBeenCalled();- expect(getSettingsSpy).toHaveBeenCalled();- });-- // Settings modal should NOT appear when hide_llm_settings is true- await waitFor(() => {- expect(screen.queryByTestId("ai-config-modal")).not.toBeInTheDocument();- });- });-- it("should open settings modal when hide_llm_settings is false and 404 error in OSS mode", async () => {- getConfigSpy.mockResolvedValue(- createMockConfig({ feature_flags: { hide_llm_settings: false } }),- );- getSettingsSpy.mockRejectedValue(createAxiosNotFoundErrorObject());-- renderSidebar();-- // Settings modal should appear when hide_llm_settings is false- await waitFor(() => {- expect(screen.getByTestId("ai-config-modal")).toBeInTheDocument();- });- });-- it("should NOT open settings modal in SaaS mode even with 404 error", async () => {- getConfigSpy.mockResolvedValue(- createMockConfig({- app_mode: "saas",- feature_flags: { hide_llm_settings: false },- }),- );- getSettingsSpy.mockRejectedValue(createAxiosNotFoundErrorObject());-- renderSidebar();-- await waitFor(() => {- expect(getConfigSpy).toHaveBeenCalled();- expect(getSettingsSpy).toHaveBeenCalled();- });-- // Settings modal should NOT appear in SaaS mode (only opens in OSS mode)- await waitFor(() => {- expect(screen.queryByTestId("ai-config-modal")).not.toBeInTheDocument();- });- });-- it("should NOT open settings modal when settings exist (no 404 error)", async () => {- getConfigSpy.mockResolvedValue(- createMockConfig({ feature_flags: { hide_llm_settings: false } }),- );- getSettingsSpy.mockResolvedValue(MOCK_DEFAULT_USER_SETTINGS);-- renderSidebar();-- await waitFor(() => {- expect(getConfigSpy).toHaveBeenCalled();- expect(getSettingsSpy).toHaveBeenCalled();- });-- // Settings modal should NOT appear when settings exist- await waitFor(() => {- expect(screen.queryByTestId("ai-config-modal")).not.toBeInTheDocument();- });- });-- it("should NOT open settings modal when on /settings path", async () => {- getConfigSpy.mockResolvedValue(- createMockConfig({ feature_flags: { hide_llm_settings: false } }),- );- getSettingsSpy.mockRejectedValue(createAxiosNotFoundErrorObject());-- renderSidebar("settings");-- await waitFor(() => {- expect(getConfigSpy).toHaveBeenCalled();- expect(getSettingsSpy).toHaveBeenCalled();- });-- // Settings modal should NOT appear when on /settings path- // (prevents modal from showing when user is already viewing settings)- await waitFor(() => {- expect(screen.queryByTestId("ai-config-modal")).not.toBeInTheDocument();- });- });- });-- describe("Automations button visibility", () => {- let enableAutomationsSpy: ReturnType<typeof vi.spyOn>;-- beforeEach(() => {- enableAutomationsSpy = vi.spyOn(FeatureFlags, "ENABLE_AUTOMATIONS");- });-- it("should show automations button when ENABLE_AUTOMATIONS flag is on", async () => {- enableAutomationsSpy.mockReturnValue(true);-- renderSidebar();-- await waitFor(() => {- expect(- screen.getByTestId("automations-button"),- ).toBeInTheDocument();- });- });-- it("should hide automations button when ENABLE_AUTOMATIONS flag is off", async () => {- enableAutomationsSpy.mockReturnValue(false);-- renderSidebar();-- await waitFor(() => expect(getSettingsSpy).toHaveBeenCalled());-- expect(- screen.queryByTestId("automations-button"),- ).not.toBeInTheDocument();- });- });-});diff --git a/__tests__/components/features/user/user-context-menu.test.tsx b/__tests__/components/features/user/user-context-menu.test.tsxdeleted file mode 100644index a1953bbb03..0000000000--- a/__tests__/components/features/user/user-context-menu.test.tsx+++ /dev/null@@ -1,857 +0,0 @@-import { render, screen, waitFor } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { afterEach, beforeEach, describe, expect, it, test, vi } from "vitest";-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { MemoryRouter } from "react-router";-import { UserContextMenu } from "#/components/features/user/user-context-menu";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { GetComponentPropTypes } from "#/utils/get-component-prop-types";-import {- INITIAL_MOCK_ORGS,- MOCK_PERSONAL_ORG,- MOCK_TEAM_ORG_ACME,-} from "#/mocks/org-handlers";-import AuthService from "#/api/auth-service/auth-service.api";-import { SAAS_NAV_ITEMS, OSS_NAV_ITEMS } from "#/constants/settings-nav";-import OptionService from "#/api/option-service/option-service.api";-import { OrganizationMember } from "#/types/org";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";-import { createMockWebClientConfig } from "#/mocks/settings-handlers";--// Mock useBreakpoint hook-vi.mock("#/hooks/use-breakpoint", () => ({- useBreakpoint: vi.fn(() => false), // Default to desktop (not mobile)-}));--// Mock useTracking hook for CTA-vi.mock("#/hooks/use-tracking", () => ({- useTracking: () => ({- trackSaasSelfhostedInquiry: vi.fn(),- }),-}));--// Import the mocked modules-import * as breakpoint from "#/hooks/use-breakpoint";--type UserContextMenuProps = GetComponentPropTypes<typeof UserContextMenu>;--function UserContextMenuWithRootOutlet({- type,- onClose,- onOpenInviteModal,-}: UserContextMenuProps) {- return (- <div>- <div data-testid="portal-root" id="portal-root" />- <UserContextMenu- type={type}- onClose={onClose}- onOpenInviteModal={onOpenInviteModal}- />- </div>- );-}--const renderUserContextMenu = ({- type,- onClose,- onOpenInviteModal,-}: UserContextMenuProps) =>- render(- <UserContextMenuWithRootOutlet- type={type}- onClose={onClose}- onOpenInviteModal={onOpenInviteModal}- />,- {- wrapper: ({ children }) => (- <MemoryRouter>- <QueryClientProvider client={new QueryClient()}>- {children}- </QueryClientProvider>- </MemoryRouter>- ),- });--const { navigateMock } = vi.hoisted(() => ({- navigateMock: vi.fn(),-}));--vi.mock("react-router", async (importActual) => ({- ...(await importActual()),- useNavigate: () => navigateMock,- useRevalidator: () => ({- revalidate: vi.fn(),- }),-}));--// Mock useIsAuthed to return authenticated state-vi.mock("#/hooks/query/use-is-authed", () => ({- useIsAuthed: () => ({ data: true }),-}));--const createMockUser = (- overrides: Partial<OrganizationMember> = {},-): OrganizationMember => ({- org_id: "org-1",- user_id: "user-1",- email: "[email protected]",- role: "member",- llm_api_key: "",- max_iterations: 100,- llm_model: "gpt-4",- llm_base_url: "",- status: "active",- ...overrides,-});--const seedActiveUser = (user: Partial<OrganizationMember>) => {- useSelectedOrganizationStore.setState({ organizationId: "org-1" });- vi.spyOn(organizationService, "getMe").mockResolvedValue(- createMockUser(user),- );-};--vi.mock("react-i18next", async () => {- const actual =- await vi.importActual<typeof import("react-i18next")>("react-i18next");- return {- ...actual,- useTranslation: () => ({- t: (key: string) => {- const translations: Record<string, string> = {- ORG$SELECT_ORGANIZATION_PLACEHOLDER: "Please select an organization",- ORG$PERSONAL_WORKSPACE: "Personal Workspace",- };- return translations[key] || key;- },- i18n: {- changeLanguage: vi.fn(),- },- }),- };-});--describe("UserContextMenu", () => {- beforeEach(() => {- // Ensure clean state at the start of each test- vi.restoreAllMocks();- useSelectedOrganizationStore.setState({ organizationId: null });- // Reset breakpoint mock to desktop by default- vi.mocked(breakpoint.useBreakpoint).mockReturnValue(false);- });-- afterEach(() => {- vi.restoreAllMocks();- navigateMock.mockClear();- // Reset Zustand store to ensure clean state between tests- useSelectedOrganizationStore.setState({ organizationId: null });- });-- it("should render the default context items for a user", async () => {- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({ app_mode: "saas" }),- );-- renderUserContextMenu({ type: "member", onClose: vi.fn, onOpenInviteModal: vi.fn });-- screen.getByTestId("org-selector");-- // Wait for config to load so logout button appears- await waitFor(() => {- expect(screen.getByText("ACCOUNT_SETTINGS$LOGOUT")).toBeInTheDocument();- });-- expect(- screen.queryByText("ORG$INVITE_ORG_MEMBERS"),- ).not.toBeInTheDocument();- expect(- screen.queryByText("ORG$ORGANIZATION_MEMBERS"),- ).not.toBeInTheDocument();- expect(- screen.queryByText("COMMON$ORGANIZATION"),- ).not.toBeInTheDocument();- });-- it("should render navigation items from SAAS_NAV_ITEMS (except organization-members/org)", async () => {- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- enable_billing: true,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );-- renderUserContextMenu({ type: "member", onClose: vi.fn, onOpenInviteModal: vi.fn });-- // In SaaS, personal LLM/Condenser/Verification routes are hidden in favor- // of /settings/org-defaults/* (visible only when an org is selected, which- // this test does not seed). Org-only and billing routes are also filtered.- const personalLlmPaths = new Set([- "/settings",- "/settings/condenser",- "/settings/verification",- ]);- const expectedItems = SAAS_NAV_ITEMS.filter(- (item) =>- item.to !== "/settings/org-members" &&- item.to !== "/settings/org" &&- item.to !== "/settings/billing" &&- !item.to.startsWith("/settings/org-defaults") &&- !personalLlmPaths.has(item.to),- );-- await waitFor(() => {- expectedItems.forEach((item) => {- expect(screen.getAllByText(item.text).length).toBeGreaterThan(0);- });- });- });-- it("should render navigation items from SAAS_NAV_ITEMS when user role is admin (except organization-members/org)", async () => {- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- enable_billing: true,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );-- seedActiveUser({ role: "admin" });-- renderUserContextMenu({ type: "admin", onClose: vi.fn, onOpenInviteModal: vi.fn });-- // Wait for config to load and verify that navigation items are rendered (except organization-members/org which are filtered out)- const expectedItems = SAAS_NAV_ITEMS.filter(- (item) =>- item.to !== "/settings/org-members" && item.to !== "/settings/org",- );-- await waitFor(() => {- expectedItems.forEach((item) => {- expect(screen.getAllByText(item.text).length).toBeGreaterThan(0);- });- });- });-- it("should not display Organization Members menu item for regular users (filtered out)", () => {- renderUserContextMenu({ type: "member", onClose: vi.fn, onOpenInviteModal: vi.fn });-- // Organization Members is filtered out from nav items for all users- expect(screen.queryByText("Organization Members")).not.toBeInTheDocument();- });-- it("should render a documentation link", () => {- renderUserContextMenu({ type: "member", onClose: vi.fn, onOpenInviteModal: vi.fn });-- const docsLink = screen.getByText("SIDEBAR$DOCS").closest("a");- expect(docsLink).toHaveAttribute("href", "https://docs.openhands.dev");- expect(docsLink).toHaveAttribute("target", "_blank");- });-- describe("OSS mode", () => {- beforeEach(() => {- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({- app_mode: "oss",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );- });-- it("should render OSS_NAV_ITEMS when in OSS mode", async () => {- renderUserContextMenu({ type: "member", onClose: vi.fn, onOpenInviteModal: vi.fn });-- // Wait for the config to load and OSS nav items to appear- await waitFor(() => {- OSS_NAV_ITEMS.forEach((item) => {- expect(screen.getByText(item.text)).toBeInTheDocument();- });- });-- // Verify SAAS-only items are NOT rendered (e.g., Billing)- expect(- screen.queryByText("SETTINGS$NAV_BILLING"),- ).not.toBeInTheDocument();- });-- it("should not display Organization Members menu item in OSS mode", async () => {- renderUserContextMenu({ type: "member", onClose: vi.fn, onOpenInviteModal: vi.fn });-- // Wait for the config to load- await waitFor(() => {- expect(screen.getByText("SETTINGS$NAV_LLM")).toBeInTheDocument();- });-- // Verify Organization Members is NOT rendered in OSS mode- expect(- screen.queryByText("Organization Members"),- ).not.toBeInTheDocument();- });-- it("should not display logout button in OSS mode", async () => {- renderUserContextMenu({ type: "member", onClose: vi.fn, onOpenInviteModal: vi.fn });-- // Wait for the config to load- await waitFor(() => {- expect(screen.getByText("SETTINGS$NAV_LLM")).toBeInTheDocument();- });-- // Verify logout button is NOT rendered in OSS mode- expect(- screen.queryByText("ACCOUNT_SETTINGS$LOGOUT"),- ).not.toBeInTheDocument();- });- });-- describe("HIDE_LLM_SETTINGS feature flag", () => {- it("should hide LLM settings link when HIDE_LLM_SETTINGS is true", async () => {- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- enable_billing: false,- hide_llm_settings: true,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );-- renderUserContextMenu({ type: "member", onClose: vi.fn, onOpenInviteModal: vi.fn });-- await waitFor(() => {- // Other nav items should still be visible- expect(screen.getByText("SETTINGS$NAV_USER")).toBeInTheDocument();- // LLM settings (to: "/settings") should NOT be visible- expect(- screen.queryByText("COMMON$LANGUAGE_MODEL_LLM"),- ).not.toBeInTheDocument();- });- });-- it("should show LLM settings link when HIDE_LLM_SETTINGS is false", async () => {- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );- // The LLM nav item now lives under /settings/org-defaults, which only- // appears when an org is selected. Seed a personal org for that.- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_PERSONAL_ORG],- currentOrgId: MOCK_PERSONAL_ORG.id,- });- useSelectedOrganizationStore.setState({- organizationId: MOCK_PERSONAL_ORG.id,- });-- renderUserContextMenu({ type: "member", onClose: vi.fn, onOpenInviteModal: vi.fn });-- await waitFor(() => {- expect(- screen.getByText("COMMON$LANGUAGE_MODEL_LLM"),- ).toBeInTheDocument();- });- });- });-- it("should render additional context items when user is an admin", async () => {- // Mock SaaS mode and a team org so org management items are visible- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({ app_mode: "saas" }),- );- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });- useSelectedOrganizationStore.setState({- organizationId: MOCK_TEAM_ORG_ACME.id,- });- vi.spyOn(organizationService, "getMe").mockResolvedValue(- createMockUser({ role: "admin", org_id: MOCK_TEAM_ORG_ACME.id }),- );-- renderUserContextMenu({ type: "admin", onClose: vi.fn, onOpenInviteModal: vi.fn });-- screen.getByTestId("org-selector");- // Wait for orgs to load so org management items appear- await waitFor(() => {- expect(screen.getByText("ORG$INVITE_ORG_MEMBERS")).toBeInTheDocument();- });- // Note: Organization and Org Members links may or may not appear depending on- // permission checks in useSettingsNavItems. The key test is that Invite button appears.- });-- it("should render additional context items when user is an owner", async () => {- // Mock SaaS mode and a team org so org management items are visible- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({ app_mode: "saas" }),- );- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });- useSelectedOrganizationStore.setState({- organizationId: MOCK_TEAM_ORG_ACME.id,- });- vi.spyOn(organizationService, "getMe").mockResolvedValue(- createMockUser({ role: "owner", org_id: MOCK_TEAM_ORG_ACME.id }),- );-- renderUserContextMenu({ type: "owner", onClose: vi.fn, onOpenInviteModal: vi.fn });-- screen.getByTestId("org-selector");- // Wait for orgs to load so org management items appear- await waitFor(() => {- expect(screen.getByText("ORG$INVITE_ORG_MEMBERS")).toBeInTheDocument();- });- // Note: Organization and Org Members links may or may not appear depending on- // permission checks in useSettingsNavItems. The key test is that Invite button appears.- });-- it("should call the logout handler when Logout is clicked", async () => {- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({ app_mode: "saas" }),- );-- const logoutSpy = vi.spyOn(AuthService, "logout");- renderUserContextMenu({ type: "member", onClose: vi.fn, onOpenInviteModal: vi.fn });-- // Wait for config to load so logout button appears- const logoutButton = await screen.findByText("ACCOUNT_SETTINGS$LOGOUT");- await userEvent.click(logoutButton);-- expect(logoutSpy).toHaveBeenCalledOnce();- });-- it("should have correct navigation links for nav items", async () => {- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- enable_billing: true, // Enable billing so billing link is shown- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );-- seedActiveUser({ role: "admin" });-- renderUserContextMenu({ type: "admin", onClose: vi.fn, onOpenInviteModal: vi.fn });-- // Wait for config to load and test a few representative nav items have the correct href- await waitFor(() => {- const userLink = screen.getByText("SETTINGS$NAV_USER").closest("a");- expect(userLink).toHaveAttribute("href", "/settings/user");- });-- await waitFor(() => {- const billingLink = screen.getByText("SETTINGS$NAV_BILLING").closest("a");- expect(billingLink).toHaveAttribute("href", "/settings/billing");- });-- await waitFor(() => {- const integrationsLink = screen- .getByText("SETTINGS$NAV_INTEGRATIONS")- .closest("a");- expect(integrationsLink).toHaveAttribute(- "href",- "/settings/integrations",- );- });- });-- it("should have correct link for Organization Members nav item when visible", async () => {- // Mock SaaS mode and a team org so org management items are visible- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({ app_mode: "saas" }),- );- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });- useSelectedOrganizationStore.setState({- organizationId: MOCK_TEAM_ORG_ACME.id,- });- vi.spyOn(organizationService, "getMe").mockResolvedValue(- createMockUser({ role: "admin", org_id: MOCK_TEAM_ORG_ACME.id }),- );-- renderUserContextMenu({ type: "admin", onClose: vi.fn, onOpenInviteModal: vi.fn });-- // Wait for nav items to load. The Org Members link may appear if permissions are met.- await waitFor(() => {- const orgMembersLink = screen.queryByText("SETTINGS$NAV_ORG_MEMBERS");- if (orgMembersLink) {- expect(orgMembersLink.closest("a")).toHaveAttribute(- "href",- "/settings/org-members",- );- }- });- });-- it("should have correct link for Organization nav item when visible", async () => {- // Mock SaaS mode and a team org so org management items are visible- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({ app_mode: "saas" }),- );- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });- useSelectedOrganizationStore.setState({- organizationId: MOCK_TEAM_ORG_ACME.id,- });- vi.spyOn(organizationService, "getMe").mockResolvedValue(- createMockUser({ role: "admin", org_id: MOCK_TEAM_ORG_ACME.id }),- );-- renderUserContextMenu({ type: "admin", onClose: vi.fn, onOpenInviteModal: vi.fn });-- // Wait for nav items to load. The Organization link may appear if permissions are met.- await waitFor(() => {- const orgLink = screen.queryByText("SETTINGS$NAV_ORGANIZATION");- if (orgLink) {- expect(orgLink.closest("a")).toHaveAttribute("href", "/settings/org");- }- });- });-- it("should call the onClose handler when clicking outside the context menu", async () => {- const onCloseMock = vi.fn();- renderUserContextMenu({ type: "member", onClose: onCloseMock, onOpenInviteModal: vi.fn });-- const contextMenu = screen.getByTestId("user-context-menu");- await userEvent.click(contextMenu);-- expect(onCloseMock).not.toHaveBeenCalled();-- // Simulate clicking outside the context menu- await userEvent.click(document.body);-- expect(onCloseMock).toHaveBeenCalled();- });-- it("should call the onClose handler after each action", async () => {- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({ app_mode: "saas" }),- );-- // Mock a team org so org management items are visible- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });- seedActiveUser({ role: "owner" });-- const onCloseMock = vi.fn();- renderUserContextMenu({ type: "owner", onClose: onCloseMock, onOpenInviteModal: vi.fn });-- // Wait for config to load so logout button appears- const logoutButton = await screen.findByText("ACCOUNT_SETTINGS$LOGOUT");- await userEvent.click(logoutButton);- expect(onCloseMock).toHaveBeenCalledTimes(1);-- // Wait for orgs to load so org management items are visible- // Click on Organization Members link (now it's a Link, not a button)- const orgMembersLink = await screen.findByText("SETTINGS$NAV_ORG_MEMBERS");- await userEvent.click(orgMembersLink);- expect(onCloseMock).toHaveBeenCalledTimes(2);-- // Click on Organization link- const orgLink = screen.getByText("SETTINGS$NAV_ORGANIZATION");- await userEvent.click(orgLink);- expect(onCloseMock).toHaveBeenCalledTimes(3);- });-- describe("Personal org vs team org visibility", () => {- it("should not show Organization and Organization Members settings items when personal org is selected", async () => {- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_PERSONAL_ORG],- currentOrgId: MOCK_PERSONAL_ORG.id,- });- vi.spyOn(organizationService, "getMe").mockResolvedValue({- org_id: "1",- user_id: "99",- email: "[email protected]",- role: "admin",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- });-- // Pre-select the personal org in the Zustand store- useSelectedOrganizationStore.setState({ organizationId: "1" });-- renderUserContextMenu({ type: "admin", onClose: vi.fn, onOpenInviteModal: vi.fn });-- // Wait for org selector to load and org management buttons to disappear- // (they disappear when personal org is selected)- await waitFor(() => {- expect(- screen.queryByText("ORG$ORGANIZATION_MEMBERS"),- ).not.toBeInTheDocument();- });-- expect(- screen.queryByText("COMMON$ORGANIZATION"),- ).not.toBeInTheDocument();- });-- it("should not show Billing settings item when team org is selected", async () => {- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });- vi.spyOn(organizationService, "getMe").mockResolvedValue({- org_id: "1",- user_id: "99",- email: "[email protected]",- role: "admin",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- });-- renderUserContextMenu({ type: "admin", onClose: vi.fn, onOpenInviteModal: vi.fn });-- // Wait for org selector to load and billing to disappear- // (billing disappears when team org is selected)- await waitFor(() => {- expect(- screen.queryByText("SETTINGS$NAV_BILLING"),- ).not.toBeInTheDocument();- });- });- });-- it("should call onOpenInviteModal and onClose when Invite Organization Member is clicked", async () => {- // Mock a team org so org management items are visible (not personal org)- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });- useSelectedOrganizationStore.setState({- organizationId: MOCK_TEAM_ORG_ACME.id,- });- vi.spyOn(organizationService, "getMe").mockResolvedValue(- createMockUser({ role: "admin", org_id: MOCK_TEAM_ORG_ACME.id }),- );-- const onCloseMock = vi.fn();- const onOpenInviteModalMock = vi.fn();- renderUserContextMenu({- type: "admin",- onClose: onCloseMock,- onOpenInviteModal: onOpenInviteModalMock,- });-- // Wait for orgs to load so org management items are visible- const inviteButton = await screen.findByText("ORG$INVITE_ORG_MEMBERS");- await userEvent.click(inviteButton);-- expect(onOpenInviteModalMock).toHaveBeenCalledOnce();- expect(onCloseMock).toHaveBeenCalledOnce();- });-- test("the user can change orgs", async () => {- // Mock SaaS mode and organizations for this test- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- enable_billing: true,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: INITIAL_MOCK_ORGS,- currentOrgId: INITIAL_MOCK_ORGS[0].id,- });-- const user = userEvent.setup();- const onCloseMock = vi.fn();- renderUserContextMenu({ type: "member", onClose: onCloseMock, onOpenInviteModal: vi.fn });-- // Wait for org selector to appear (it may take a moment for config to load)- const orgSelector = await screen.findByTestId("org-selector");- expect(orgSelector).toBeInTheDocument();-- // Wait for organizations to load (indicated by org name appearing in the dropdown)- // INITIAL_MOCK_ORGS[0] is a personal org, so it displays "Personal Workspace"- await waitFor(() => {- expect(screen.getByRole("combobox")).toHaveValue("Personal Workspace");- });-- // Open the dropdown by clicking the trigger- const trigger = screen.getByTestId("dropdown-trigger");- await user.click(trigger);-- // Select a different organization- const orgOption = screen.getByRole("option", {- name: INITIAL_MOCK_ORGS[1].name,- });- await user.click(orgOption);-- expect(onCloseMock).not.toHaveBeenCalled();-- // Verify that the dropdown shows the selected organization- expect(screen.getByRole("combobox")).toHaveValue(INITIAL_MOCK_ORGS[1].name);- });-- describe("Context Menu CTA", () => {- it("should render the CTA component in SaaS Cloud mode on desktop", async () => {- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- deployment_mode: "cloud",- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );-- renderUserContextMenu({ type: "member", onClose: vi.fn, onOpenInviteModal: vi.fn });-- await waitFor(() => {- expect(screen.getByTestId("context-menu-cta")).toBeInTheDocument();- });- expect(screen.getByText("CTA$ENTERPRISE_TITLE")).toBeInTheDocument();- expect(screen.getByText("CTA$LEARN_MORE")).toBeInTheDocument();- });-- it("should not render the CTA component in OSS mode", async () => {- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({ app_mode: "oss" }),- );-- renderUserContextMenu({ type: "member", onClose: vi.fn, onOpenInviteModal: vi.fn });-- await waitFor(() => {- expect(screen.getByTestId("user-context-menu")).toBeInTheDocument();- });- expect(screen.queryByTestId("context-menu-cta")).not.toBeInTheDocument();- });-- it("should not render the CTA component on mobile even in SaaS Cloud mode", async () => {- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- deployment_mode: "cloud",- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );- // Set mobile mode- vi.mocked(breakpoint.useBreakpoint).mockReturnValue(true);-- renderUserContextMenu({ type: "member", onClose: vi.fn, onOpenInviteModal: vi.fn });-- await waitFor(() => {- expect(screen.getByTestId("user-context-menu")).toBeInTheDocument();- });-- expect(screen.queryByTestId("context-menu-cta")).not.toBeInTheDocument();- });-- it("should not render the CTA component in SaaS Self-hosted mode", async () => {- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- deployment_mode: "self_hosted",- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );-- renderUserContextMenu({ type: "member", onClose: vi.fn, onOpenInviteModal: vi.fn });-- await waitFor(() => {- expect(screen.getByTestId("user-context-menu")).toBeInTheDocument();- });-- expect(screen.queryByTestId("context-menu-cta")).not.toBeInTheDocument();- });- });-});diff --git a/__tests__/components/features/waitlist/email-verification-modal.test.tsx b/__tests__/components/features/waitlist/email-verification-modal.test.tsxdeleted file mode 100644index 12ff0398a3..0000000000--- a/__tests__/components/features/waitlist/email-verification-modal.test.tsx+++ /dev/null@@ -1,202 +0,0 @@-import React from "react";-import { screen, waitFor } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import { MemoryRouter } from "react-router";-import { emailService } from "#/api/email-service/email-service.api";-import { EmailVerificationModal } from "#/components/features/waitlist/email-verification-modal";-import * as ToastHandlers from "#/utils/custom-toast-handlers";-import { renderWithProviders, createAxiosError } from "../../../../test-utils";--describe("EmailVerificationModal", () => {- const mockOnClose = vi.fn();-- const resendEmailVerificationSpy = vi.spyOn(- emailService,- "resendEmailVerification",- );- const displaySuccessToastSpy = vi.spyOn(ToastHandlers, "displaySuccessToast");- const displayErrorToastSpy = vi.spyOn(ToastHandlers, "displayErrorToast");-- const renderWithRouter = (ui: React.ReactElement) => {- return renderWithProviders(<MemoryRouter>{ui}</MemoryRouter>);- };-- beforeEach(() => {- vi.clearAllMocks();- });-- it("should render the email verification message", () => {- // Arrange & Act- renderWithRouter(<EmailVerificationModal onClose={mockOnClose} />);-- // Assert- expect(- screen.getByText("AUTH$PLEASE_CHECK_EMAIL_TO_VERIFY"),- ).toBeInTheDocument();- });-- it("should render the rate limited message when wasRateLimited is true", () => {- // Arrange & Act- renderWithRouter(- <EmailVerificationModal onClose={mockOnClose} wasRateLimited />,- );-- // Assert - should show the rate limited message instead of the default one- expect(- screen.getByText("AUTH$CHECK_INBOX_FOR_VERIFICATION_EMAIL"),- ).toBeInTheDocument();- expect(- screen.queryByText("AUTH$PLEASE_CHECK_EMAIL_TO_VERIFY"),- ).not.toBeInTheDocument();- });-- it("should render the TermsAndPrivacyNotice component", () => {- // Arrange & Act- renderWithRouter(<EmailVerificationModal onClose={mockOnClose} />);-- // Assert- const termsSection = screen.getByTestId("terms-and-privacy-notice");- expect(termsSection).toBeInTheDocument();- });-- it("should render resend verification button", () => {- // Arrange & Act- renderWithRouter(<EmailVerificationModal onClose={mockOnClose} />);-- // Assert- expect(- screen.getByText("SETTINGS$RESEND_VERIFICATION"),- ).toBeInTheDocument();- });-- it("should call resendEmailVerification when the button is clicked", async () => {- // Arrange- const userId = "test_user_id";- resendEmailVerificationSpy.mockResolvedValue({- message: "Email verification message sent",- });- renderWithRouter(- <EmailVerificationModal onClose={mockOnClose} userId={userId} />,- );-- // Act- const resendButton = screen.getByText("SETTINGS$RESEND_VERIFICATION");- await userEvent.click(resendButton);-- // Assert- await waitFor(() => {- expect(resendEmailVerificationSpy).toHaveBeenCalledWith({- userId,- isAuthFlow: true,- });- });- });-- it("should display success toast when resend succeeds", async () => {- // Arrange- resendEmailVerificationSpy.mockResolvedValue({- message: "Email verification message sent",- });- renderWithRouter(<EmailVerificationModal onClose={mockOnClose} />);-- // Act- const resendButton = screen.getByText("SETTINGS$RESEND_VERIFICATION");- await userEvent.click(resendButton);-- // Assert- await waitFor(() => {- expect(displaySuccessToastSpy).toHaveBeenCalledWith(- "SETTINGS$VERIFICATION_EMAIL_SENT",- );- });- });-- it("should display rate limit error message when receiving 429 status", async () => {- // Arrange- const rateLimitError = createAxiosError(429, "Too Many Requests", {- detail: "Too many requests. Please wait 2 minutes before trying again.",- });- resendEmailVerificationSpy.mockRejectedValue(rateLimitError);- renderWithRouter(<EmailVerificationModal onClose={mockOnClose} />);-- // Act- const resendButton = screen.getByText("SETTINGS$RESEND_VERIFICATION");- await userEvent.click(resendButton);-- // Assert- await waitFor(() => {- expect(displayErrorToastSpy).toHaveBeenCalledWith(- "Too many requests. Please wait 2 minutes before trying again.",- );- });- });-- it("should display generic error message when receiving non-429 error", async () => {- // Arrange- const genericError = createAxiosError(500, "Internal Server Error", {- error: "Internal server error",- });- resendEmailVerificationSpy.mockRejectedValue(genericError);- renderWithRouter(<EmailVerificationModal onClose={mockOnClose} />);-- // Act- const resendButton = screen.getByText("SETTINGS$RESEND_VERIFICATION");- await userEvent.click(resendButton);-- // Assert- await waitFor(() => {- expect(displayErrorToastSpy).toHaveBeenCalledWith(- "SETTINGS$FAILED_TO_RESEND_VERIFICATION",- );- });- });-- it("should disable button and show sending text while request is pending", async () => {- // Arrange- let resolvePromise: (value: { message: string }) => void;- const pendingPromise = new Promise<{ message: string }>((resolve) => {- resolvePromise = resolve;- });- resendEmailVerificationSpy.mockReturnValue(pendingPromise);- renderWithRouter(<EmailVerificationModal onClose={mockOnClose} />);-- // Act- const resendButton = screen.getByText("SETTINGS$RESEND_VERIFICATION");- await userEvent.click(resendButton);-- // Assert- await waitFor(() => {- const sendingButton = screen.getByText("SETTINGS$SENDING");- expect(sendingButton).toBeInTheDocument();- expect(sendingButton).toBeDisabled();- });-- // Cleanup- resolvePromise!({ message: "Email verification message sent" });- });-- it("should re-enable button after request completes", async () => {- // Arrange- resendEmailVerificationSpy.mockResolvedValue({- message: "Email verification message sent",- });- renderWithRouter(<EmailVerificationModal onClose={mockOnClose} />);-- // Act- const resendButton = screen.getByText("SETTINGS$RESEND_VERIFICATION");- await userEvent.click(resendButton);-- // Assert- await waitFor(() => {- expect(resendEmailVerificationSpy).toHaveBeenCalled();- });- // After successful send, the button will be disabled due to cooldown- // So we just verify the mutation was called successfully- await waitFor(() => {- const button = screen.getByRole("button");- expect(button).toBeDisabled(); // Button is disabled during cooldown- expect(button).toHaveTextContent(/SETTINGS\$RESEND_VERIFICATION/);- });- });-});diff --git a/__tests__/components/interactive-chat-box.test.tsx b/__tests__/components/interactive-chat-box.test.tsxdeleted file mode 100644index 884217facb..0000000000--- a/__tests__/components/interactive-chat-box.test.tsx+++ /dev/null@@ -1,283 +0,0 @@-import { screen } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { afterEach, beforeAll, beforeEach, describe, expect, it, vi } from "vitest";-import { MemoryRouter } from "react-router";-import { InteractiveChatBox } from "#/components/features/chat/interactive-chat-box";-import { renderWithProviders } from "../../test-utils";-import { AgentState } from "#/types/agent-state";-import { useAgentState } from "#/hooks/use-agent-state";-import { useConversationStore } from "#/stores/conversation-store";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";--vi.mock("#/hooks/use-agent-state", () => ({- useAgentState: vi.fn(),-}));--// Mock React Router hooks-vi.mock("react-router", async (importOriginal) => ({- ...(await importOriginal<typeof import("react-router")>()),- useNavigate: () => vi.fn(),- useParams: () => ({ conversationId: "test-conversation-id" }),- useRevalidator: () => ({ revalidate: vi.fn() }),-}));--// Mock the useActiveConversation hook-vi.mock("#/hooks/query/use-active-conversation", () => ({- useActiveConversation: () => ({- data: { status: null },- isFetched: true,- refetch: vi.fn(),- }),-}));--// Mock other hooks that might be used by the component-vi.mock("#/hooks/use-user-providers", () => ({- useUserProviders: () => ({- providers: [],- }),-}));--vi.mock("#/hooks/use-conversation-name-context-menu", () => ({- useConversationNameContextMenu: () => ({- isOpen: false,- contextMenuRef: { current: null },- handleContextMenu: vi.fn(),- handleClose: vi.fn(),- handleRename: vi.fn(),- handleDelete: vi.fn(),- }),-}));--describe("InteractiveChatBox", () => {- const onSubmitMock = vi.fn();-- beforeEach(() => {- useSelectedOrganizationStore.setState({ organizationId: "test-org-id" });- });-- const mockStores = (agentState: AgentState = AgentState.INIT) => {- vi.mocked(useAgentState).mockReturnValue({- curAgentState: agentState,- });-- useConversationStore.setState({- images: [],- files: [],- loadingFiles: [],- loadingImages: [],- submittedMessage: null,- messageToSend: null,- shouldShownAgentLoading: false,- shouldHideSuggestions: false,- isRightPanelShown: true,- selectedTab: "editor" as const,- hasRightPanelToggled: true,- });- };-- // Helper function to render with Router context- const renderInteractiveChatBox = (props: any, options: any = {}) =>- renderWithProviders(- <MemoryRouter>- <InteractiveChatBox {...props} />- </MemoryRouter>,- options,- );-- beforeAll(() => {- global.URL.createObjectURL = vi- .fn()- .mockReturnValue("blob:http://example.com");- });-- afterEach(() => {- vi.clearAllMocks();- });-- it("should render", () => {- mockStores(AgentState.INIT);-- renderInteractiveChatBox({- onSubmit: onSubmitMock,- });-- const chatBox = screen.getByTestId("interactive-chat-box");- expect(chatBox).toBeInTheDocument();- });-- it("should set custom values", async () => {- const user = userEvent.setup();- mockStores(AgentState.AWAITING_USER_INPUT);-- renderInteractiveChatBox({- onSubmit: onSubmitMock,- });-- const textbox = screen.getByTestId("chat-input");-- // Simulate user typing to populate the input- await user.type(textbox, "Hello, world!");-- expect(textbox).toHaveTextContent("Hello, world!");- });-- it("should display the image previews when images are uploaded", async () => {- const user = userEvent.setup();- mockStores(AgentState.INIT);-- renderInteractiveChatBox({- onSubmit: onSubmitMock,- });-- // Create a larger file to ensure it passes validation- const fileContent = new Array(1024).fill("a").join(""); // 1KB file- const file = new File([fileContent], "chucknorris.png", {- type: "image/png",- });-- // Click on the paperclip icon to trigger file selection- const paperclipIcon = screen.getByTestId("paperclip-icon");- await user.click(paperclipIcon);-- // Now trigger the file input change event directly- const input = screen.getByTestId("upload-image-input");- await user.upload(input, file);-- // For now, just verify the file input is accessible- expect(input).toBeInTheDocument();- });-- it("should remove the image preview when the close button is clicked", async () => {- const user = userEvent.setup();- mockStores(AgentState.INIT);-- renderInteractiveChatBox({- onSubmit: onSubmitMock,- });-- const fileContent = new Array(1024).fill("a").join(""); // 1KB file- const file = new File([fileContent], "chucknorris.png", {- type: "image/png",- });-- // Click on the paperclip icon to trigger file selection- const paperclipIcon = screen.getByTestId("paperclip-icon");- await user.click(paperclipIcon);-- const input = screen.getByTestId("upload-image-input");- await user.upload(input, file);-- // For now, just verify the file input is accessible- expect(input).toBeInTheDocument();- });-- it("should call onSubmit with the message and images", async () => {- const user = userEvent.setup();- mockStores(AgentState.INIT);-- renderInteractiveChatBox({- onSubmit: onSubmitMock,- });-- const textarea = screen.getByTestId("chat-input");-- // Type the message and ensure it's properly set- await user.type(textarea, "Hello, world!");-- // Set innerText directly as the component reads this property- textarea.innerText = "Hello, world!";-- // Verify the text is in the input before submitting- expect(textarea).toHaveTextContent("Hello, world!");-- // Click the submit button instead of pressing Enter for more reliable testing- const submitButton = screen.getByTestId("submit-button");-- // Verify the button is enabled before clicking- expect(submitButton).not.toBeDisabled();-- await user.click(submitButton);-- expect(onSubmitMock).toHaveBeenCalledWith("Hello, world!", [], []);- });-- it("should disable the submit button when awaiting user confirmation", async () => {- const user = userEvent.setup();- mockStores(AgentState.AWAITING_USER_CONFIRMATION);-- renderInteractiveChatBox({- onSubmit: onSubmitMock,- });-- const button = screen.getByTestId("submit-button");- expect(button).toBeDisabled();-- await user.click(button);- expect(onSubmitMock).not.toHaveBeenCalled();- });-- it("should lock the text input field when disabled prop is true (isNewConversationPending)", () => {- mockStores(AgentState.INIT);-- renderInteractiveChatBox({- onSubmit: onSubmitMock,- disabled: true,- });-- const chatInput = screen.getByTestId("chat-input");- // When disabled=true, the text field should not be editable- expect(chatInput).toHaveAttribute("contenteditable", "false");- // Should show visual disabled state- expect(chatInput.className).toContain("cursor-not-allowed");- expect(chatInput.className).toContain("opacity-50");- });-- it("should keep the text input field editable when disabled prop is false", () => {- mockStores(AgentState.INIT);-- renderInteractiveChatBox({- onSubmit: onSubmitMock,- disabled: false,- });-- const chatInput = screen.getByTestId("chat-input");- expect(chatInput).toHaveAttribute("contenteditable", "true");- expect(chatInput.className).not.toContain("cursor-not-allowed");- expect(chatInput.className).not.toContain("opacity-50");- });-- it("should handle image upload and message submission correctly", async () => {- const user = userEvent.setup();- const onSubmit = vi.fn();-- mockStores(AgentState.AWAITING_USER_INPUT);-- const { rerender } = renderInteractiveChatBox({- onSubmit,- });-- // Verify text input has the initial value- const textarea = screen.getByTestId("chat-input");- expect(textarea).toHaveTextContent("");-- // Set innerText directly as the component reads this property- textarea.innerText = "test message";-- // Submit the message- const submitButton = screen.getByTestId("submit-button");- await user.click(submitButton);-- // Verify onSubmit was called with the message- expect(onSubmit).toHaveBeenCalledWith("test message", [], []);-- // Simulate parent component updating the value prop- rerender(- <MemoryRouter>- <InteractiveChatBox onSubmit={onSubmit} />- </MemoryRouter>,- );-- // Verify the text input was cleared- expect(screen.getByTestId("chat-input")).toHaveTextContent("");- });-});diff --git a/__tests__/components/user-actions.test.tsx b/__tests__/components/user-actions.test.tsxindex fa42dbe1f7..d35b75adbc 100644--- a/__tests__/components/user-actions.test.tsx+++ b/__tests__/components/user-actions.test.tsx@@ -1,418 +1,37 @@-import { render, screen, waitFor, fireEvent, act } from "@testing-library/react";-import { describe, expect, it, vi, afterEach, beforeEach, test } from "vitest";+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";+import { render, screen } from "@testing-library/react";import userEvent from "@testing-library/user-event";-import { QueryClientProvider, QueryClient } from "@tanstack/react-query";-import { MemoryRouter, createRoutesStub } from "react-router";-import { ReactElement } from "react";-import { http, HttpResponse } from "msw";+import { describe, expect, it, vi } from "vitest";+import { MemoryRouter } from "react-router";import { UserActions } from "#/components/features/sidebar/user-actions";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { MOCK_PERSONAL_ORG, MOCK_TEAM_ORG_ACME } from "#/mocks/org-handlers";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";-import { server } from "#/mocks/node";-import { createMockWebClientConfig } from "#/mocks/settings-handlers";-import { renderWithProviders } from "../../test-utils";+import { OSS_NAV_ITEMS } from "#/constants/settings-nav";-vi.mock("react-router", async (importActual) => ({- ...(await importActual()),- useNavigate: () => vi.fn(),- useRevalidator: () => ({- revalidate: vi.fn(),- }),-}));--vi.mock("react-i18next", async () => {- const actual =- await vi.importActual<typeof import("react-i18next")>("react-i18next");- return {- ...actual,- useTranslation: () => ({- t: (key: string) => {- const translations: Record<string, string> = {- ORG$SELECT_ORGANIZATION_PLACEHOLDER: "Please select an organization",- ORG$PERSONAL_WORKSPACE: "Personal Workspace",- };- return translations[key] || key;- },- i18n: {- changeLanguage: vi.fn(),- },- }),- };-});--const renderUserActions = (props = { hasAvatar: true }) => {- render(- <UserActions- user={- props.hasAvatar- ? { avatar_url: "https://example.com/avatar.png" }- : undefined- }- />,- {- wrapper: ({ children }) => (- <MemoryRouter>- <QueryClientProvider client={new QueryClient()}>- {children}- </QueryClientProvider>- </MemoryRouter>- ),- },- );-};--// RouterStub and render helper for menu close delay tests-const RouterStubForMenuCloseDelay = createRoutesStub([- {- path: "/",- Component: () => (- <UserActions user={{ avatar_url: "https://example.com/avatar.png" }} />- ),- },-]);--const renderUserActionsForMenuCloseDelay = () => {- return renderWithProviders(<RouterStubForMenuCloseDelay initialEntries={["/"]} />);-};--// Create mocks for all the hooks we need-const useIsAuthedMock = vi- .fn()- .mockReturnValue({ data: true, isLoading: false });--const useConfigMock = vi- .fn()- .mockReturnValue({ data: { app_mode: "saas" }, isLoading: false });--const useUserProvidersMock = vi- .fn()- .mockReturnValue({ providers: [{ id: "github", name: "GitHub" }] });--// Mock the hooks-vi.mock("#/hooks/query/use-is-authed", () => ({- useIsAuthed: () => useIsAuthedMock(),-}));--vi.mock("#/hooks/query/use-config", () => ({- useConfig: () => useConfigMock(),-}));--vi.mock("#/hooks/use-user-providers", () => ({- useUserProviders: () => useUserProvidersMock(),+vi.mock("#/hooks/use-settings-nav-items", () => ({+ useSettingsNavItems: () => [+ { type: "item", item: OSS_NAV_ITEMS[0] },+ { type: "item", item: OSS_NAV_ITEMS[6] },+ ],}));describe("UserActions", () => {- const user = userEvent.setup();- const onClickAccountSettingsMock = vi.fn();- const onLogoutMock = vi.fn();-- // Create a wrapper with MemoryRouter and renderWithProviders- const renderWithRouter = (ui: ReactElement) =>- renderWithProviders(<MemoryRouter>{ui}</MemoryRouter>);-- beforeEach(() => {- // Reset all mocks to default values before each test- useIsAuthedMock.mockReturnValue({ data: true, isLoading: false });- useConfigMock.mockReturnValue({- data: { app_mode: "saas" },- isLoading: false,- });- useUserProvidersMock.mockReturnValue({- providers: [{ id: "github", name: "GitHub" }],- });- });-- afterEach(() => {- onClickAccountSettingsMock.mockClear();- onLogoutMock.mockClear();- vi.clearAllMocks();- });-- it("should render", () => {- renderUserActions();- expect(screen.getByTestId("user-actions")).toBeInTheDocument();- expect(screen.getByTestId("user-avatar")).toBeInTheDocument();- });-- it("should show context menu even when user has no avatar_url", async () => {- renderUserActions();- const userActions = screen.getByTestId("user-actions");- await user.hover(userActions);-- // Context menu SHOULD appear because user object exists (even with empty avatar_url)- expect(screen.getByTestId("user-context-menu")).toBeInTheDocument();- });-- it("should work with loading state and user provided", async () => {- // Ensure authentication and providers are set correctly- useIsAuthedMock.mockReturnValue({ data: true, isLoading: false });- useConfigMock.mockReturnValue({- data: { app_mode: "saas" },- isLoading: false,- });- useUserProvidersMock.mockReturnValue({- providers: [{ id: "github", name: "GitHub" }],- });-- renderUserActions();- const userActions = screen.getByTestId("user-actions");- await user.hover(userActions);-- // Context menu should still appear even when loading- expect(screen.getByTestId("user-context-menu")).toBeInTheDocument();- });-- test("context menu should default to user role", async () => {- renderUserActions();- const userActions = screen.getByTestId("user-actions");- await user.hover(userActions);-- // Verify logout is present- expect(screen.getByTestId("user-context-menu")).toHaveTextContent(- "ACCOUNT_SETTINGS$LOGOUT",+ it("shows the OSS user menu on hover without SaaS-only actions", async () => {+ const user = userEvent.setup();++ render(+ <MemoryRouter>+ <QueryClientProvider client={new QueryClient()}>+ <UserActions user={{ avatar_url: "https://example.com/avatar.png" }} />+ </QueryClientProvider>+ </MemoryRouter>,);- // Verify nav items are present (e.g., settings nav items)- expect(screen.getByTestId("user-context-menu")).toHaveTextContent(- "SETTINGS$NAV_USER",- );- // Verify admin-only items are NOT present for user role- expect(- screen.queryByText("ORG$MANAGE_ORGANIZATION_MEMBERS"),- ).not.toBeInTheDocument();- expect(- screen.queryByText("ORG$MANAGE_ORGANIZATION"),- ).not.toBeInTheDocument();- });-- test("should NOT show Team and Organization nav items when personal workspace is selected", async () => {- renderUserActions();- const userActions = screen.getByTestId("user-actions");- await user.hover(userActions);-- // Team and Organization nav links should NOT be visible when no org is selected (personal workspace)- expect(screen.queryByText("Team")).not.toBeInTheDocument();- expect(screen.queryByText("Organization")).not.toBeInTheDocument();- });-- it("should show context menu on hover", async () => {- renderUserActions();-- const userActions = screen.getByTestId("user-actions");- const contextMenu = screen.getByTestId("user-context-menu");-- // Menu is in DOM but hidden via CSS (opacity-0, pointer-events-none)- expect(contextMenu.parentElement).toHaveClass("opacity-0");- expect(contextMenu.parentElement).toHaveClass("pointer-events-none");-- // Hover over the user actions area- await user.hover(userActions);-- // Menu should be visible on hover (CSS classes change via group-hover)- expect(contextMenu).toBeVisible();- });-- it("should use state-based visibility for hover behavior instead of CSS pseudo-element", async () => {- renderUserActions();-- const userActions = screen.getByTestId("user-actions");- await user.hover(userActions);-- const contextMenu = screen.getByTestId("user-context-menu");- const hoverBridgeContainer = contextMenu.parentElement;-- // The component uses state-based visibility with a 500ms delay for diagonal mouse movement- // When visible, the container should have opacity-100 and pointer-events-auto- expect(hoverBridgeContainer?.className).toContain("opacity-100");- expect(hoverBridgeContainer?.className).toContain("pointer-events-auto");- });-- describe("Org selector dropdown state reset when context menu hides", () => {- // These tests verify that the org selector dropdown resets its internal- // state (search text, open/closed) when the context menu hides and- // reappears. The component uses a 500ms delay before hiding (to support- // diagonal mouse movement).-- beforeEach(() => {- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_PERSONAL_ORG, MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_PERSONAL_ORG.id,- });- useSelectedOrganizationStore.setState({ organizationId: null });- });-- it("should reset org selector search text when context menu hides and reappears", async () => {- renderUserActions();- const userActions = screen.getByTestId("user-actions");-- // Hover to show context menu- await user.hover(userActions);-- // Wait for orgs to load and auto-select- await waitFor(() => {- expect(screen.getByRole("combobox")).toHaveValue(- MOCK_PERSONAL_ORG.name,- );- });-- // Open dropdown and type search text- const trigger = screen.getByTestId("dropdown-trigger");- await user.click(trigger);- const input = screen.getByRole("combobox");- await user.clear(input);- await user.type(input, "search text");- expect(input).toHaveValue("search text");-- // Unhover to trigger hide timeout, then wait for the 500ms delay to complete- await user.unhover(userActions);-- // Wait for the 500ms hide delay to complete and menu to actually hide- await waitFor(- () => {- // The menu resets when it actually hides (after 500ms delay)- // After hiding, hovering again should show a fresh menu- },- { timeout: 600 },- );-- // Wait a bit more for the timeout to fire- await new Promise((resolve) => setTimeout(resolve, 550));-- // Now hover again to show the menu- await user.hover(userActions);-- // Org selector should be reset β showing selected org name, not search text- await waitFor(() => {- expect(screen.getByRole("combobox")).toHaveValue(- MOCK_PERSONAL_ORG.name,- );- });- });-- it("should reset dropdown to collapsed state when context menu hides and reappears", async () => {- renderUserActions();- const userActions = screen.getByTestId("user-actions");-- // Hover to show context menu- await user.hover(userActions);-- // Wait for orgs to load- await waitFor(() => {- expect(screen.getByRole("combobox")).toHaveValue(- MOCK_PERSONAL_ORG.name,- );- });-- // Open dropdown and type to change its state- const trigger = screen.getByTestId("dropdown-trigger");- await user.click(trigger);- const input = screen.getByRole("combobox");- await user.clear(input);- await user.type(input, "Acme");- expect(input).toHaveValue("Acme");-- // Unhover to trigger hide timeout- await user.unhover(userActions);-- // Wait for the 500ms hide delay to complete- await new Promise((resolve) => setTimeout(resolve, 550));-- // Now hover again to show the menu- await user.hover(userActions);-- // Wait for fresh component with org data- await waitFor(() => {- expect(screen.getByRole("combobox")).toHaveValue(- MOCK_PERSONAL_ORG.name,- );- });-- // Dropdown should be collapsed (closed) after reset- expect(screen.getByTestId("dropdown-trigger")).toHaveAttribute(- "aria-expanded",- "false",- );- // No option elements should be rendered- expect(screen.queryAllByRole("option")).toHaveLength(0);- });- });-- describe("menu close delay", () => {- beforeEach(() => {- vi.useFakeTimers();- useSelectedOrganizationStore.setState({ organizationId: "1" });-- // Mock config to return SaaS mode so useShouldShowUserFeatures returns true- server.use(- http.get("/api/v1/web-client/config", () =>- HttpResponse.json(createMockWebClientConfig({ app_mode: "saas" })),- ),- );- });-- afterEach(() => {- vi.useRealTimers();- server.resetHandlers();- });-- it("should keep menu visible when mouse leaves and re-enters within 500ms", async () => {- // Arrange - render and wait for queries to settle- renderUserActionsForMenuCloseDelay();- await act(async () => {- await vi.runAllTimersAsync();- });-- const userActions = screen.getByTestId("user-actions");-- // Act - open menu- await act(async () => {- fireEvent.mouseEnter(userActions);- });-- // Assert - menu is visible- expect(screen.getByTestId("user-context-menu")).toBeInTheDocument();-- // Act - leave and re-enter within 500ms- await act(async () => {- fireEvent.mouseLeave(userActions);- await vi.advanceTimersByTimeAsync(200);- fireEvent.mouseEnter(userActions);- });-- // Assert - menu should still be visible after waiting (pending close was cancelled)- await act(async () => {- await vi.advanceTimersByTimeAsync(500);- });- expect(screen.getByTestId("user-context-menu")).toBeInTheDocument();- });-- it("should not close menu before 500ms delay when mouse leaves", async () => {- // Arrange - render and wait for queries to settle- renderUserActionsForMenuCloseDelay();- await act(async () => {- await vi.runAllTimersAsync();- });-- const userActions = screen.getByTestId("user-actions");-- // Act - open menu- await act(async () => {- fireEvent.mouseEnter(userActions);- });-- // Assert - menu is visible- expect(screen.getByTestId("user-context-menu")).toBeInTheDocument();- // Act - leave without re-entering, but check before timeout expires- await act(async () => {- fireEvent.mouseLeave(userActions);- await vi.advanceTimersByTimeAsync(400); // Before the 500ms delay- });+ await user.hover(screen.getByTestId("user-actions"));- // Assert - menu should still be visible (delay hasn't expired yet)- // Note: The menu is always in DOM but with opacity-0 when closed.- // This test verifies the state hasn't changed yet (delay is working).- expect(screen.getByTestId("user-context-menu")).toBeInTheDocument();- });+ expect(screen.getByTestId("user-context-menu")).toBeVisible();+ expect(screen.getByText("SETTINGS$NAV_LLM")).toBeInTheDocument();+ expect(screen.getByText("SETTINGS$NAV_APPLICATION")).toBeInTheDocument();+ expect(screen.getByText("SIDEBAR$DOCS")).toBeInTheDocument();+ expect(screen.queryByText("ACCOUNT_SETTINGS$LOGOUT")).not.toBeInTheDocument();+ expect(screen.queryByTestId("context-menu-cta")).not.toBeInTheDocument();});});diff --git a/__tests__/conversation-websocket-handler.test.tsx b/__tests__/conversation-websocket-handler.test.tsxdeleted file mode 100644index a0104dd70a..0000000000--- a/__tests__/conversation-websocket-handler.test.tsx+++ /dev/null@@ -1,1525 +0,0 @@-import React from "react";-import {- describe,- it,- expect,- beforeAll,- beforeEach,- afterAll,- afterEach,- vi,-} from "vitest";-import { screen, waitFor, render, cleanup, act } from "@testing-library/react";-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { http, HttpResponse } from "msw";-import { MemoryRouter, Route, Routes } from "react-router";-import { useOptimisticUserMessageStore } from "#/stores/optimistic-user-message-store";-import { useBrowserStore } from "#/stores/browser-store";-import { useCommandStore } from "#/stores/command-store";-import { useErrorMessageStore } from "#/stores/error-message-store";-import {- createMockMessageEvent,- createMockUserMessageEvent,- createMockConversationErrorEvent,- createMockServerErrorEvent,- createMockAgentErrorEvent,- createMockBrowserObservationEvent,- createMockBrowserNavigateActionEvent,- createMockExecuteBashActionEvent,- createMockExecuteBashObservationEvent,-} from "#/mocks/mock-ws-helpers";-import {- ConnectionStatusComponent,- EventStoreComponent,- OptimisticUserMessageStoreComponent,- ErrorMessageStoreComponent,-} from "./helpers/websocket-test-components";-import {- ConversationWebSocketProvider,- useConversationWebSocket,-} from "#/contexts/conversation-websocket-context";-import { conversationWebSocketTestSetup } from "./helpers/msw-websocket-setup";-import { useEventStore } from "#/stores/use-event-store";-import { isV1Event } from "#/types/v1/type-guards";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";--// Mock useUserConversation to return V1 conversation data-vi.mock("#/hooks/query/use-user-conversation", () => ({- useUserConversation: vi.fn(() => ({- data: {- conversation_version: "V1",- status: "RUNNING",- },- isLoading: false,- error: null,- })),-}));--// MSW WebSocket mock setup-const { wsLink, server: mswServer } = conversationWebSocketTestSetup();--beforeAll(() => {- // The global MSW server from vitest.setup.ts is already running- // We just need to start our WebSocket-specific server- mswServer.listen({ onUnhandledRequest: "bypass" });-});--beforeEach(() => {- useSelectedOrganizationStore.setState({ organizationId: "test-org-id" });-});--afterEach(() => {- mswServer.resetHandlers();- // Clean up any React components- cleanup();- // Reset stores to prevent state leakage between tests- useErrorMessageStore.getState().removeErrorMessage();- useEventStore.getState().clearEvents();-});--afterAll(async () => {- // Close the WebSocket MSW server- mswServer.close();-- // Give time for any pending WebSocket connections to close. This is very important to prevent serious memory leaks- await new Promise((resolve) => {- setTimeout(resolve, 500);- });-});--// Helper function to render components with ConversationWebSocketProvider-function renderWithWebSocketContext(- children: React.ReactNode,- conversationId = "test-conversation-default",- conversationUrl = "http://localhost:3000/api/conversations/test-conversation-default",- sessionApiKey: string | null = null,-) {- const queryClient = new QueryClient({- defaultOptions: {- queries: { retry: false },- mutations: { retry: false },- },- });-- return render(- <QueryClientProvider client={queryClient}>- <MemoryRouter initialEntries={["/test-conversation-default"]}>- <Routes>- <Route- path="/:conversationId"- element={- <ConversationWebSocketProvider- conversationId={conversationId}- conversationUrl={conversationUrl}- sessionApiKey={sessionApiKey}- >- {children}- </ConversationWebSocketProvider>- }- />- </Routes>- </MemoryRouter>- </QueryClientProvider>,- );-}--describe("Conversation WebSocket Handler", () => {- // 1. Connection Lifecycle Tests- describe("Connection Management", () => {- it("should establish WebSocket connection to /events/socket URL", async () => {- // This will fail because we haven't created the context yet- renderWithWebSocketContext(<ConnectionStatusComponent />);-- // Initially should be CONNECTING- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "CONNECTING",- );-- // Wait for connection to be established- await waitFor(() => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "OPEN",- );- });- });-- it.todo("should provide manual disconnect functionality");- });-- // 2. Event Processing Tests- describe("Event Stream Processing", () => {- it("should update event store with received WebSocket events", async () => {- // Create a mock MessageEvent to send through WebSocket- const mockMessageEvent = createMockMessageEvent();-- // Set up MSW to send the event when connection is established- mswServer.use(- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();- // Send the mock event after connection- client.send(JSON.stringify(mockMessageEvent));- }),- );-- // Render components that use both WebSocket and event store- renderWithWebSocketContext(<EventStoreComponent />);-- // Wait for connection and event processing- await waitFor(() => {- expect(screen.getByTestId("events-count")).toHaveTextContent("1");- });-- // Verify the event was added to the store- expect(screen.getByTestId("latest-event-id")).toHaveTextContent(- "test-event-123",- );- expect(screen.getByTestId("ui-events-count")).toHaveTextContent("1");- });-- it("should handle malformed/invalid event data gracefully", async () => {- // Suppress expected console.warn for invalid JSON parsing- const consoleWarnSpy = vi- .spyOn(console, "warn")- .mockImplementation(() => {});-- // Set up MSW to send various invalid events when connection is established- mswServer.use(- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();-- // Send invalid JSON- client.send("invalid json string");-- // Send valid JSON but missing required fields- client.send(JSON.stringify({ message: "missing required fields" }));-- // Send valid JSON with wrong data types- client.send(- JSON.stringify({- id: 123, // should be string- timestamp: "2023-01-01T00:00:00Z",- source: "agent",- }),- );-- // Send null values for required fields- client.send(- JSON.stringify({- id: null,- timestamp: "2023-01-01T00:00:00Z",- source: "agent",- }),- );-- // Send a valid event after invalid ones to ensure processing continues- client.send(- JSON.stringify({- id: "valid-event-123",- timestamp: new Date().toISOString(),- source: "agent",- llm_message: {- role: "assistant",- content: [- { type: "text", text: "Valid message after invalid ones" },- ],- },- activated_microagents: [],- extended_content: [],- }),- );- }),- );-- // Render components that use both WebSocket and event store- renderWithWebSocketContext(<EventStoreComponent />);-- // Wait for connection and event processing- // Only the valid event should be added to the store- await waitFor(() => {- expect(screen.getByTestId("events-count")).toHaveTextContent("1");- });-- // Verify only the valid event was added- expect(screen.getByTestId("latest-event-id")).toHaveTextContent(- "valid-event-123",- );- expect(screen.getByTestId("ui-events-count")).toHaveTextContent("1");-- // Restore console.warn- consoleWarnSpy.mockRestore();- });- });-- // 3. State Management Tests- describe("State Management Integration", () => {- it("should clear optimistic user messages when confirmed", async () => {- // First, set an optimistic user message- const { setOptimisticUserMessage } =- useOptimisticUserMessageStore.getState();- setOptimisticUserMessage("This is an optimistic message");-- // Create a mock user MessageEvent to send through WebSocket- const mockUserMessageEvent = createMockUserMessageEvent();-- // Set up MSW to send the user message event when connection is established- mswServer.use(- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();- // Send the mock user message event after connection- client.send(JSON.stringify(mockUserMessageEvent));- }),- );-- // Render components that use both WebSocket and optimistic user message store- renderWithWebSocketContext(<OptimisticUserMessageStoreComponent />);-- // Initially should show the optimistic message- expect(screen.getByTestId("optimistic-user-message")).toHaveTextContent(- "This is an optimistic message",- );-- // Wait for connection and user message event processing- // The optimistic message should be cleared when user message is confirmed- await waitFor(() => {- expect(screen.getByTestId("optimistic-user-message")).toHaveTextContent(- "none",- );- });- });- });-- // 4. Cache Management Tests- describe("Cache Management", () => {- it.todo(- "should invalidate file changes cache on file edit/write/command events",- );- it.todo("should invalidate specific file diff cache on file modifications");- it.todo("should prevent cache refetch during high message rates");- it.todo("should not invalidate cache for non-file-related events");- it.todo("should invalidate cache with correct conversation ID context");- });-- // 5. Error Handling Tests- describe("Error Handling & Recovery", () => {- beforeEach(() => {- // Clear stores before each error handling test to prevent state leakage- useErrorMessageStore.getState().removeErrorMessage();- useEventStore.getState().clearEvents();- });-- it("should update error message store on ConversationErrorEvent", async () => {- // ConversationErrorEvent represents infrastructure/authentication errors- // that should be shown as a banner to the user.- const mockConversationErrorEvent = createMockConversationErrorEvent();-- // Set up MSW to send the error event when connection is established- mswServer.use(- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();- // Send the mock error event after connection- client.send(JSON.stringify(mockConversationErrorEvent));- }),- );-- // Render components that use both WebSocket and error message store- renderWithWebSocketContext(<ErrorMessageStoreComponent />);-- // Initially should show "none"- expect(screen.getByTestId("error-message")).toHaveTextContent("none");-- // Wait for connection and error event processing- await waitFor(() => {- expect(screen.getByTestId("error-message")).toHaveTextContent(- "Your session has expired. Please log in again.",- );- });- });-- it("should update error message store on ServerErrorEvent", async () => {- // ServerErrorEvent represents server-side errors (e.g., MCP configuration errors)- // that should be shown as a banner to the user.- const mockServerErrorEvent = createMockServerErrorEvent();-- // Set up MSW to send the error event when connection is established- mswServer.use(- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();- // Send the mock error event after connection- client.send(JSON.stringify(mockServerErrorEvent));- }),- );-- // Render components that use both WebSocket and error message store- renderWithWebSocketContext(<ErrorMessageStoreComponent />);-- // Initially should show "none"- expect(screen.getByTestId("error-message")).toHaveTextContent("none");-- // Wait for connection and error event processing- await waitFor(() => {- expect(screen.getByTestId("error-message")).toHaveTextContent(- "MCP server connection failed: Invalid configuration",- );- });- });-- it("should handle different ServerErrorEvent error codes", async () => {- // Test different error codes for ServerErrorEvent- const mockServerErrorEvent = createMockServerErrorEvent({- code: "RuntimeError",- detail: "Agent server runtime error: Out of memory",- });-- mswServer.use(- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();- client.send(JSON.stringify(mockServerErrorEvent));- }),- );-- renderWithWebSocketContext(<ErrorMessageStoreComponent />);-- await waitFor(() => {- expect(screen.getByTestId("error-message")).toHaveTextContent(- "Agent server runtime error: Out of memory",- );- });- });-- it("should clear error message when a successful event is received after a ServerErrorEvent", async () => {- // This test verifies that error banners disappear when follow-up messages- // are sent and received after a ServerErrorEvent.- // Note: This test was originally commented out because the implementation- // didn't properly clear ServerErrorEvent errors on subsequent events.- // After the fix using isDisplayableErrorEvent, this now works correctly.- const conversationId = "test-server-error-clear";-- // Set up MSW to mock event count API and send events- mswServer.use(- http.get(- `http://localhost:3000/api/conversations/${conversationId}/events/count`,- () => HttpResponse.json(2),- ),- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();-- // Send ServerErrorEvent first (sets the error banner)- const mockServerErrorEvent = createMockServerErrorEvent();- client.send(JSON.stringify(mockServerErrorEvent));-- // Send a successful (non-error) event immediately after- // This simulates the user sending a follow-up message and receiving a response- const mockSuccessEvent = createMockMessageEvent({- id: "success-event-after-server-error",- });- client.send(JSON.stringify(mockSuccessEvent));- }),- );-- // Verify error message store is initially empty- expect(useErrorMessageStore.getState().errorMessage).toBeNull();-- // Render with WebSocket context (minimal component just to trigger connection)- renderWithWebSocketContext(- <ConnectionStatusComponent />,- conversationId,- `http://localhost:3000/api/conversations/${conversationId}`,- );-- // Wait for connection- await waitFor(- () => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "OPEN",- );- },- { timeout: 5000 },- );-- // Wait for both events to be received and error to be cleared- // The error was set by the first event (ServerErrorEvent),- // then cleared by the second successful event (MessageEvent).- await waitFor(- () => {- expect(useEventStore.getState().events.length).toBe(2);- expect(useErrorMessageStore.getState().errorMessage).toBeNull();- },- { timeout: 5000 },- );- });-- it("should show friendly i18n message for budget ConversationErrorEvent", async () => {- const mockBudgetConversationError = createMockConversationErrorEvent({- detail:- "Budget has been exceeded! Current cost: 18.51, Max budget: 18.24",- });-- mswServer.use(- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();- client.send(JSON.stringify(mockBudgetConversationError));- }),- );-- renderWithWebSocketContext(<ErrorMessageStoreComponent />);-- expect(screen.getByTestId("error-message")).toHaveTextContent("none");-- await waitFor(() => {- expect(screen.getByTestId("error-message")).toHaveTextContent(- "STATUS$ERROR_LLM_OUT_OF_CREDITS",- );- });- });-- it.skip("should not clear budget error when non-agent events are received", async () => {- // Regression test: budget/credit error banner used to disappear ~500ms after- // appearing because every subsequent non-error event called removeErrorMessage().- // NOTE: This test is skipped due to flakiness in the WebSocket test setup.- // The functionality is tested by "should clear budget error when an agent event is received"- // which verifies that budget errors ARE cleared when agent events arrive, proving the logic works.- // The inverse (budget errors NOT cleared for user events) is handled by the handleNonErrorEvent- // callback in the production code.- const conversationId = "test-conversation-budget-persist";-- const mockBudgetError = createMockConversationErrorEvent({- id: "budget-error-1",- detail:- "Budget has been exceeded! Current cost: 18.51, Max budget: 18.24",- });-- // A user MessageEvent (source: "user") should NOT clear the budget error- const mockUserEvent = createMockUserMessageEvent({- id: "user-msg-after-error",- });-- mswServer.use(- http.get(- `http://localhost:3000/api/conversations/${conversationId}/events/count`,- () => HttpResponse.json(2),- ),- wsLink.addEventListener("connection", async ({ client, server }) => {- server.connect();-- // Wait for connection to be established- await new Promise((resolve) => setTimeout(resolve, 100));-- // Send budget error first- client.send(JSON.stringify(mockBudgetError));-- // Wait for budget error to be processed before sending user event- await new Promise((resolve) => setTimeout(resolve, 200));-- // Send user event - it should NOT clear the budget error- client.send(JSON.stringify(mockUserEvent));- }),- );-- renderWithWebSocketContext(- <ErrorMessageStoreComponent />,- conversationId,- `http://localhost:3000/api/conversations/${conversationId}`,- );-- // Wait for connection- await waitFor(- () => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "OPEN",- );- },- { timeout: 5000 },- );-- // Wait for both events to be processed- await waitFor(- () => {- expect(useEventStore.getState().events.length).toBe(2);- },- { timeout: 5000 },- );-- // Budget error should still be visible β not cleared by the user event- expect(useErrorMessageStore.getState().errorMessage).toBe(- "STATUS$ERROR_LLM_OUT_OF_CREDITS",- );- });-- it("should clear budget error when an agent event is received", async () => {- // When the agent sends a new event, it means the LLM is working- // (credits are available), so the budget error should be cleared.- const conversationId = "test-conversation-budget-clear";-- const mockBudgetError = createMockConversationErrorEvent({- id: "budget-error-2",- detail:- "Budget has been exceeded! Current cost: 18.51, Max budget: 18.24",- });-- // An agent MessageEvent (source: "agent") SHOULD clear the budget error- const mockAgentEvent = createMockMessageEvent({- id: "agent-msg-after-credits",- });-- mswServer.use(- http.get(- `http://localhost:3000/api/conversations/${conversationId}/events/count`,- () => HttpResponse.json(2),- ),- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();- client.send(JSON.stringify(mockBudgetError));- client.send(JSON.stringify(mockAgentEvent));- }),- );-- renderWithWebSocketContext(- <ErrorMessageStoreComponent />,- conversationId,- `http://localhost:3000/api/conversations/${conversationId}`,- );-- // Wait for both events to be processed- await waitFor(() => {- expect(useEventStore.getState().events.length).toBe(2);- });-- // After both events processed, the budget error should have been cleared- // by the agent event (source: "agent"). Check it's not the budget error.- const currentError = useErrorMessageStore.getState().errorMessage;- expect(currentError).not.toBe("STATUS$ERROR_LLM_OUT_OF_CREDITS");- });-- it("should set error message store on WebSocket connection errors", async () => {- // Simulate a connect-then-fail sequence (the MSW server auto-connects by default).- // This should surface an error message because the app has previously connected.- mswServer.use(- wsLink.addEventListener("connection", ({ client }) => {- setTimeout(() => {- client.close(1006, "Connection failed");- }, 50);- }),- );-- // Render components that use both WebSocket and error message store- renderWithWebSocketContext(- <>- <ErrorMessageStoreComponent />- <ConnectionStatusComponent />- </>,- );-- // Initially should show "none"- expect(screen.getByTestId("error-message")).toHaveTextContent("none");-- // Wait for disconnect- await waitFor(() => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "CLOSED",- );- });-- await waitFor(() => {- expect(screen.getByTestId("error-message")).not.toHaveTextContent(- "none",- );- });- });-- it("should set error message store on WebSocket disconnect with error", async () => {- // Set up MSW to connect first, then disconnect with error- mswServer.use(- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();-- // Simulate disconnect with error after a short delay- setTimeout(() => {- client.close(1006, "Unexpected disconnect");- }, 100);- }),- );-- // Render components that use both WebSocket and error message store- renderWithWebSocketContext(- <>- <ErrorMessageStoreComponent />- <ConnectionStatusComponent />- </>,- );-- // Initially should show "none"- expect(screen.getByTestId("error-message")).toHaveTextContent("none");-- // Wait for connection to be established first- await waitFor(() => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "OPEN",- );- });-- // Wait for disconnect and error message to be set- await waitFor(() => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "CLOSED",- );- });-- // Should set error message on unexpected disconnect- await waitFor(() => {- expect(screen.getByTestId("error-message")).not.toHaveTextContent(- "none",- );- });- });-- it("should clear error message store when connection is restored", async () => {- let connectionAttempt = 0;-- // Fail once (after connect), then allow reconnection to stay open.- mswServer.use(- wsLink.addEventListener("connection", ({ client }) => {- connectionAttempt += 1;-- if (connectionAttempt === 1) {- setTimeout(() => {- client.close(1006, "Initial connection failed");- }, 50);- }- }),- );-- // Render components that use both WebSocket and error message store- renderWithWebSocketContext(- <>- <ErrorMessageStoreComponent />- <ConnectionStatusComponent />- </>,- );-- // Initially should show "none"- expect(screen.getByTestId("error-message")).toHaveTextContent("none");-- // Wait for first failure- await waitFor(() => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "CLOSED",- );- });-- await waitFor(() => {- expect(screen.getByTestId("error-message")).not.toHaveTextContent(- "none",- );- });-- // Wait for reconnect to happen and verify error clears on successful connection- await waitFor(- () => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "OPEN",- );- expect(screen.getByTestId("error-message")).toHaveTextContent("none");- },- { timeout: 5000 },- );- });-- it("should clear error message when a successful event is received after a ConversationErrorEvent", async () => {- // This test verifies that error banners disappear when follow-up messages- // are sent and received. Only ConversationErrorEvent sets the error banner,- // and any non-error event should clear it.- const conversationId = "test-conversation-error-clear";-- // Set up MSW to mock event count API and send events- mswServer.use(- http.get(- `http://localhost:3000/api/conversations/${conversationId}/events/count`,- () => HttpResponse.json(2),- ),- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();-- // Send a ConversationErrorEvent first (this sets the error banner)- const mockConversationErrorEvent = createMockConversationErrorEvent();- client.send(JSON.stringify(mockConversationErrorEvent));-- // Send a successful (non-error) event immediately after- // This simulates the user sending a follow-up message and receiving a response- const mockSuccessEvent = createMockMessageEvent({- id: "success-event-after-error",- });- client.send(JSON.stringify(mockSuccessEvent));- }),- );-- // Verify error message store is initially empty- expect(useErrorMessageStore.getState().errorMessage).toBeNull();-- // Render with WebSocket context (minimal component just to trigger connection)- renderWithWebSocketContext(- <ConnectionStatusComponent />,- conversationId,- `http://localhost:3000/api/conversations/${conversationId}`,- );-- // Wait for connection- await waitFor(() => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "OPEN",- );- });-- // Wait for both events to be received and verify the original- // conversation error is no longer the active banner after the- // successful follow-up event. The socket may subsequently close in- // tests, which can replace it with a connection error.- await waitFor(() => {- expect(useEventStore.getState().events.length).toBe(2);- expect(useErrorMessageStore.getState().errorMessage).not.toBe(- "Your session has expired. Please log in again.",- );- });- });-- it("should not create duplicate events when WebSocket reconnects with resend_all=true", async () => {- const conversationId = "test-conversation-reconnect";- let connectionCount = 0;-- // Clear event store before test- useEventStore.getState().clearEvents();-- // Create mock events that will be sent on each connection- const mockHistoryEvents = [- createMockUserMessageEvent({ id: "event-1" }),- createMockMessageEvent({ id: "event-2" }),- createMockMessageEvent({ id: "event-3" }),- ];-- // Set up MSW to mock event count API and WebSocket- // The WebSocket will resend all events on each connection (simulating resend_all=true behavior)- mswServer.use(- http.get(- `http://localhost:3000/api/conversations/${conversationId}/events/count`,- () => HttpResponse.json(3),- ),- wsLink.addEventListener("connection", ({ client, server }) => {- connectionCount += 1;- server.connect();-- // Send all history events on EVERY connection (simulating resend_all=true)- mockHistoryEvents.forEach((event) => {- client.send(JSON.stringify(event));- });-- // On first connection, simulate a disconnect after events are sent- if (connectionCount === 1) {- setTimeout(() => {- client.close(1006, "Simulated disconnect");- }, 100);- }- }),- );-- // Render with WebSocket context- renderWithWebSocketContext(- <ConnectionStatusComponent />,- conversationId,- `http://localhost:3000/api/conversations/${conversationId}`,- );-- // Wait for initial connection and events- await waitFor(() => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "OPEN",- );- });-- await waitFor(() => {- expect(useEventStore.getState().events.length).toBe(3);- });-- // Wait for disconnect- await waitFor(() => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "CLOSED",- );- });-- // Wait for reconnection- await waitFor(- () => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "OPEN",- );- },- { timeout: 5000 },- );-- // Give time for resent events to be processed- await new Promise((resolve) => {- setTimeout(resolve, 200);- });-- // After reconnection, events should NOT be duplicated- // The server sends 3 events again (resend_all=true), but we should deduplicate- const { events } = useEventStore.getState();- const v1Events = events.filter(isV1Event);- const uniqueEventIds = [...new Set(v1Events.map((e) => e.id))];-- // This assertion will FAIL with current implementation (showing the bug)- // Expected: 3 events (deduplicated)- // Actual: 6 events (duplicated)- expect(v1Events.length).toBe(3);- expect(uniqueEventIds.length).toBe(3);-- // Verify we actually had 2 connections- expect(connectionCount).toBe(2);- });-- it.todo("should track and display errors with proper metadata");- it.todo("should set appropriate error states on connection failures");- it.todo(- "should handle WebSocket close codes appropriately (1000, 1006, etc.)",- );- });-- // 6. Connection State Validation Tests- describe("Connection State Management", () => {- it.todo("should only connect when conversation is in RUNNING status");- it.todo("should handle STARTING conversation state appropriately");- it.todo("should disconnect when conversation is STOPPED");- it.todo("should validate runtime status before connecting");- });-- // 7. Message Sending Tests- describe("Message Sending", () => {- it("should send user actions through WebSocket when connected", async () => {- // Arrange- const conversationId = "test-conversation-send";-- // Set up MSW to connect WebSocket- mswServer.use(- wsLink.addEventListener("connection", ({ server }) => {- server.connect();- }),- );-- // Create ref to store sendMessage function- let sendMessageFn: typeof useConversationWebSocket extends () => infer R- ? R extends { sendMessage: infer S }- ? S- : null- : null = null;-- function TestComponent() {- const context = useConversationWebSocket();-- React.useEffect(() => {- if (context?.sendMessage) {- sendMessageFn = context.sendMessage;- }- }, [context?.sendMessage]);-- return (- <div>- <div data-testid="connection-state">- {context?.connectionState || "NOT_AVAILABLE"}- </div>- </div>- );- }-- // Act- renderWithWebSocketContext(- <TestComponent />,- conversationId,- `http://localhost:3000/api/conversations/${conversationId}`,- );-- // Wait for connection- await waitFor(() => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "OPEN",- );- });-- // Send a message- await waitFor(() => {- expect(sendMessageFn).not.toBeNull();- });-- // sendMessage delivers via WebSocket when connected, or falls back to- // REST API (PendingMessageService) due to React useCallback timing.- // Either path is valid β we just verify it completes without error.- await act(async () => {- await sendMessageFn!({- role: "user",- content: [{ type: "text", text: "Hello from test" }],- });- });- });-- it("should not throw error when sendMessage is called with WebSocket connected", async () => {- // This test verifies that sendMessage doesn't throw an error- // when the WebSocket is connected.- const conversationId = "test-conversation-no-throw";- let sendError: Error | null = null;-- // Set up MSW to connect and receive messages- mswServer.use(- wsLink.addEventListener("connection", ({ server }) => {- server.connect();- }),- );-- // Create ref to store sendMessage function- let sendMessageFn: typeof useConversationWebSocket extends () => infer R- ? R extends { sendMessage: infer S }- ? S- : null- : null = null;-- function TestComponent() {- const context = useConversationWebSocket();-- React.useEffect(() => {- if (context?.sendMessage) {- sendMessageFn = context.sendMessage;- }- }, [context?.sendMessage]);-- return (- <div>- <div data-testid="connection-state">- {context?.connectionState || "NOT_AVAILABLE"}- </div>- </div>- );- }-- // Act- renderWithWebSocketContext(- <TestComponent />,- conversationId,- `http://localhost:3000/api/conversations/${conversationId}`,- );-- // Wait for connection- await waitFor(() => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "OPEN",- );- });-- // Wait for the context to be available- await waitFor(() => {- expect(sendMessageFn).not.toBeNull();- });-- // Try to send a message- await act(async () => {- try {- await sendMessageFn!({- role: "user",- content: [{ type: "text", text: "Test message" }],- });- } catch (error) {- sendError = error as Error;- }- });-- // Assert - should NOT throw an error- expect(sendError).toBeNull();- });-- it("should send multiple messages through WebSocket in order", async () => {- // Arrange- const conversationId = "test-conversation-multi";- const receivedMessages: unknown[] = [];-- // Set up MSW to capture sent messages- mswServer.use(- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();-- // Capture messages sent from client- client.addEventListener("message", (event) => {- receivedMessages.push(JSON.parse(event.data as string));- });- }),- );-- // Create ref to store sendMessage function- let sendMessageFn: typeof useConversationWebSocket extends () => infer R- ? R extends { sendMessage: infer S }- ? S- : null- : null = null;-- function TestComponent() {- const context = useConversationWebSocket();-- React.useEffect(() => {- if (context?.sendMessage) {- sendMessageFn = context.sendMessage;- }- }, [context?.sendMessage]);-- return (- <div>- <div data-testid="connection-state">- {context?.connectionState || "NOT_AVAILABLE"}- </div>- </div>- );- }-- // Act- renderWithWebSocketContext(- <TestComponent />,- conversationId,- `http://localhost:3000/api/conversations/${conversationId}`,- );-- // Wait for connection- await waitFor(() => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "OPEN",- );- });-- await waitFor(() => {- expect(sendMessageFn).not.toBeNull();- });-- // Send multiple messages- await act(async () => {- await sendMessageFn!({- role: "user",- content: [{ type: "text", text: "Message 1" }],- });- await sendMessageFn!({- role: "user",- content: [{ type: "text", text: "Message 2" }],- });- });-- // Assert - both messages should have been received in order- await waitFor(() => {- expect(receivedMessages.length).toBe(2);- });-- expect(receivedMessages[0]).toEqual({- role: "user",- content: [{ type: "text", text: "Message 1" }],- });- expect(receivedMessages[1]).toEqual({- role: "user",- content: [{ type: "text", text: "Message 2" }],- });- });- });-- // 8. History Loading State Tests- describe("History Loading State", () => {- it("should track history loading state using event count from API", async () => {- const conversationId = "test-conversation-with-history";-- // Mock the event count API to return 3 events- const expectedEventCount = 3;-- // Create 3 mock events to simulate history- const mockHistoryEvents = [- createMockUserMessageEvent({ id: "history-event-1" }),- createMockMessageEvent({ id: "history-event-2" }),- createMockMessageEvent({ id: "history-event-3" }),- ];-- // Set up MSW to mock both the HTTP API and WebSocket connection- mswServer.use(- // Mock events search for history preloading- http.get(- `http://localhost:3000/api/v1/conversation/${conversationId}/events/search`,- async () => {- await new Promise<void>((resolve) => {- setTimeout(resolve, 10);- });- return HttpResponse.json({- items: mockHistoryEvents,- });- },- ),- http.get(- `http://localhost:3000/api/conversations/${conversationId}/events/count`,- () => HttpResponse.json(expectedEventCount),- ),- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();- // Send all history events- mockHistoryEvents.forEach((event) => {- client.send(JSON.stringify(event));- });- }),- );-- // Create a test component that displays loading state- function HistoryLoadingComponent() {- const context = useConversationWebSocket();- const { events } = useEventStore();-- return (- <div>- <div data-testid="is-loading-history">- {context?.isLoadingHistory ? "true" : "false"}- </div>- <div data-testid="events-received">{events.length}</div>- <div data-testid="expected-event-count">{expectedEventCount}</div>- </div>- );- }-- // Render with WebSocket context- renderWithWebSocketContext(- <HistoryLoadingComponent />,- conversationId,- `http://localhost:3000/api/conversations/${conversationId}`,- );-- // Wait for all events to be received- await waitFor(() => {- expect(screen.getByTestId("events-received")).toHaveTextContent("3");- });-- // Once all events are received, loading should be complete- await waitFor(() => {- expect(screen.getByTestId("is-loading-history")).toHaveTextContent(- "false",- );- });- });-- it("should handle empty conversation history", async () => {- const conversationId = "test-conversation-empty";-- // Set up MSW to mock both the HTTP API and WebSocket connection- mswServer.use(- // Mock empty events search- http.get(- `http://localhost:3000/api/v1/conversation/${conversationId}/events/search`,- () =>- HttpResponse.json({- items: [],- }),- ),- http.get(- `http://localhost:3000/api/conversations/${conversationId}/events/count`,- () => HttpResponse.json(0),- ),- wsLink.addEventListener("connection", ({ server }) => {- server.connect();- // No events sent for empty history- }),- );-- // Create a test component that displays loading state- function HistoryLoadingComponent() {- const context = useConversationWebSocket();-- return (- <div>- <div data-testid="is-loading-history">- {context?.isLoadingHistory ? "true" : "false"}- </div>- </div>- );- }-- // Render with WebSocket context- renderWithWebSocketContext(- <HistoryLoadingComponent />,- conversationId,- `http://localhost:3000/api/conversations/${conversationId}`,- );-- // Should quickly transition from loading to not loading when count is 0- await waitFor(() => {- expect(screen.getByTestId("is-loading-history")).toHaveTextContent(- "false",- );- });- });-- it("should handle history loading with large event count", async () => {- const conversationId = "test-conversation-large-history";-- // Create 50 mock events to simulate large history- const expectedEventCount = 50;- const mockHistoryEvents = Array.from({ length: 50 }, (_, i) =>- createMockMessageEvent({ id: `history-event-${i + 1}` }),- );-- // Set up MSW to mock both the HTTP API and WebSocket connection- mswServer.use(- // Mock events search for history preloading (50 events)- http.get(- `http://localhost:3000/api/v1/conversation/${conversationId}/events/search`,- async () => {- await new Promise<void>((resolve) => {- setTimeout(resolve, 10);- });- return HttpResponse.json({- items: mockHistoryEvents,- });- },- ),- http.get(- `http://localhost:3000/api/conversations/${conversationId}/events/count`,- () => HttpResponse.json(expectedEventCount),- ),- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();- // Send all history events- mockHistoryEvents.forEach((event) => {- client.send(JSON.stringify(event));- });- }),- );-- // Create a test component that displays loading state- function HistoryLoadingComponent() {- const context = useConversationWebSocket();- const { events } = useEventStore();-- return (- <div>- <div data-testid="is-loading-history">- {context?.isLoadingHistory ? "true" : "false"}- </div>- <div data-testid="events-received">{events.length}</div>- </div>- );- }-- // Render with WebSocket context- renderWithWebSocketContext(- <HistoryLoadingComponent />,- conversationId,- `http://localhost:3000/api/conversations/${conversationId}`,- );-- // Wait for all events to be received- await waitFor(() => {- expect(screen.getByTestId("events-received")).toHaveTextContent("50");- });-- // Once all events are received, loading should be complete- await waitFor(() => {- expect(screen.getByTestId("is-loading-history")).toHaveTextContent(- "false",- );- });- });- });-- // 9. Browser State Tests (BrowserObservation)- describe("Browser State Integration", () => {- beforeEach(() => {- useBrowserStore.getState().reset();- });-- it("should update browser store with screenshot when BrowserObservation event is received", async () => {- // Create a mock BrowserObservation event with screenshot data- const mockBrowserObsEvent = createMockBrowserObservationEvent(- "base64-screenshot-data",- "Page loaded successfully",- );-- // Set up MSW to send the event when connection is established- mswServer.use(- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();- // Send the mock event after connection- client.send(JSON.stringify(mockBrowserObsEvent));- }),- );-- // Render with WebSocket context- renderWithWebSocketContext(<ConnectionStatusComponent />);-- // Wait for connection- await waitFor(() => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "OPEN",- );- });-- // Wait for the browser store to be updated with screenshot- await waitFor(() => {- const { screenshotSrc } = useBrowserStore.getState();- expect(screenshotSrc).toBe(- "data:image/png;base64,base64-screenshot-data",- );- });- });-- it("should update browser store with URL when BrowserNavigateAction followed by BrowserObservation", async () => {- // Create mock events - action first, then observation- const mockBrowserActionEvent = createMockBrowserNavigateActionEvent(- "https://example.com/test-page",- );- const mockBrowserObsEvent = createMockBrowserObservationEvent(- "base64-screenshot-data",- "Page loaded successfully",- );-- // Set up MSW to send both events when connection is established- mswServer.use(- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();- // Send action first, then observation- client.send(JSON.stringify(mockBrowserActionEvent));- client.send(JSON.stringify(mockBrowserObsEvent));- }),- );-- // Render with WebSocket context- renderWithWebSocketContext(<ConnectionStatusComponent />);-- // Wait for connection- await waitFor(() => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "OPEN",- );- });-- // Wait for the browser store to be updated with both screenshot and URL- await waitFor(() => {- const { screenshotSrc, url } = useBrowserStore.getState();- expect(screenshotSrc).toBe(- "data:image/png;base64,base64-screenshot-data",- );- expect(url).toBe("https://example.com/test-page");- });- });-- it("should not update browser store when BrowserObservation has no screenshot data", async () => {- const initialScreenshot = useBrowserStore.getState().screenshotSrc;-- // Create a mock BrowserObservation event WITHOUT screenshot data- const mockBrowserObsEvent = createMockBrowserObservationEvent(- null, // no screenshot- "Browser action completed",- );-- // Set up MSW to send the event when connection is established- mswServer.use(- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();- // Send the mock event after connection- client.send(JSON.stringify(mockBrowserObsEvent));- }),- );-- // Render with WebSocket context- renderWithWebSocketContext(<ConnectionStatusComponent />);-- // Wait for connection- await waitFor(() => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "OPEN",- );- });-- // Give some time for any potential updates- await new Promise((resolve) => {- setTimeout(resolve, 100);- });-- // Screenshot should remain unchanged (empty/initial value)- const { screenshotSrc } = useBrowserStore.getState();- expect(screenshotSrc).toBe(initialScreenshot);- });- });-- // 10. Terminal I/O Tests (ExecuteBashAction and ExecuteBashObservation)- describe("Terminal I/O Integration", () => {- beforeEach(() => {- useCommandStore.getState().clearTerminal();- });-- it("should append command to store when ExecuteBashAction event is received", async () => {- // Create a mock ExecuteBashAction event- const mockBashActionEvent = createMockExecuteBashActionEvent("npm test");-- // Set up MSW to send the event when connection is established- mswServer.use(- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();- // Send the mock event after connection- client.send(JSON.stringify(mockBashActionEvent));- }),- );-- // Render with WebSocket context (we don't need a component, just need the provider to be active)- renderWithWebSocketContext(<ConnectionStatusComponent />);-- // Wait for connection- await waitFor(() => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "OPEN",- );- });-- // Wait for the command to be added to the store- await waitFor(() => {- const { commands } = useCommandStore.getState();- expect(commands.length).toBe(1);- });-- // Verify the command was added with correct type and content- const { commands } = useCommandStore.getState();- expect(commands[0].type).toBe("input");- expect(commands[0].content).toBe("npm test");- });-- it("should append output to store when ExecuteBashObservation event is received", async () => {- // Create a mock ExecuteBashObservation event- const mockBashObservationEvent = createMockExecuteBashObservationEvent(- "PASS tests/example.test.js\n β should work (2 ms)",- "npm test",- );-- // Set up MSW to send the event when connection is established- mswServer.use(- wsLink.addEventListener("connection", ({ client, server }) => {- server.connect();- // Send the mock event after connection- client.send(JSON.stringify(mockBashObservationEvent));- }),- );-- // Render with WebSocket context- renderWithWebSocketContext(<ConnectionStatusComponent />);-- // Wait for connection- await waitFor(() => {- expect(screen.getByTestId("connection-state")).toHaveTextContent(- "OPEN",- );- });-- // Wait for the output to be added to the store- await waitFor(() => {- const { commands } = useCommandStore.getState();- expect(commands.length).toBe(1);- });-- // Verify the output was added with correct type and content- const { commands } = useCommandStore.getState();- expect(commands[0].type).toBe("output");- expect(commands[0].content).toBe(- "PASS tests/example.test.js\n β should work (2 ms)",- );- });- });-});diff --git a/__tests__/hooks/mutation/use-invite-members-batch.test.tsx b/__tests__/hooks/mutation/use-invite-members-batch.test.tsxdeleted file mode 100644index b30d9104e1..0000000000--- a/__tests__/hooks/mutation/use-invite-members-batch.test.tsx+++ /dev/null@@ -1,45 +0,0 @@-import { renderHook, waitFor } from "@testing-library/react";-import { describe, expect, it, vi, beforeEach } from "vitest";-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { useInviteMembersBatch } from "#/hooks/mutation/use-invite-members-batch";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";--// Mock the useRevalidator hook from react-router-vi.mock("react-router", () => ({- useRevalidator: () => ({- revalidate: vi.fn(),- }),-}));--describe("useInviteMembersBatch", () => {- beforeEach(() => {- useSelectedOrganizationStore.setState({ organizationId: null });- });-- it("should throw an error when organizationId is null", async () => {- const queryClient = new QueryClient({- defaultOptions: {- mutations: {- retry: false,- },- },- });-- const { result } = renderHook(() => useInviteMembersBatch(), {- wrapper: ({ children }) => (- <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>- ),- });-- // Attempt to mutate without organizationId- result.current.mutate({ emails: ["[email protected]"] });-- // Should fail with an error about missing organizationId- await waitFor(() => {- expect(result.current.isError).toBe(true);- });-- expect(result.current.error).toBeInstanceOf(Error);- expect(result.current.error?.message).toBe("Organization ID is required");- });-});diff --git a/__tests__/hooks/mutation/use-remove-member.test.tsx b/__tests__/hooks/mutation/use-remove-member.test.tsxdeleted file mode 100644index 3eebd139f5..0000000000--- a/__tests__/hooks/mutation/use-remove-member.test.tsx+++ /dev/null@@ -1,45 +0,0 @@-import { renderHook, waitFor } from "@testing-library/react";-import { describe, expect, it, vi, beforeEach } from "vitest";-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { useRemoveMember } from "#/hooks/mutation/use-remove-member";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";--// Mock the useRevalidator hook from react-router-vi.mock("react-router", () => ({- useRevalidator: () => ({- revalidate: vi.fn(),- }),-}));--describe("useRemoveMember", () => {- beforeEach(() => {- useSelectedOrganizationStore.setState({ organizationId: null });- });-- it("should throw an error when organizationId is null", async () => {- const queryClient = new QueryClient({- defaultOptions: {- mutations: {- retry: false,- },- },- });-- const { result } = renderHook(() => useRemoveMember(), {- wrapper: ({ children }) => (- <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>- ),- });-- // Attempt to mutate without organizationId- result.current.mutate({ userId: "user-123" });-- // Should fail with an error about missing organizationId- await waitFor(() => {- expect(result.current.isError).toBe(true);- });-- expect(result.current.error).toBeInstanceOf(Error);- expect(result.current.error?.message).toBe("Organization ID is required");- });-});diff --git a/__tests__/hooks/mutation/use-save-settings.test.tsx b/__tests__/hooks/mutation/use-save-settings.test.tsxdeleted file mode 100644index 2e8fac9757..0000000000--- a/__tests__/hooks/mutation/use-save-settings.test.tsx+++ /dev/null@@ -1,41 +0,0 @@-import { renderHook, waitFor } from "@testing-library/react";-import { describe, expect, it, vi, beforeEach } from "vitest";-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import SettingsService from "#/api/settings-service/settings-service.api";-import { useSaveSettings } from "#/hooks/mutation/use-save-settings";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";--describe("useSaveSettings", () => {- beforeEach(() => {- useSelectedOrganizationStore.setState({ organizationId: "test-org-id" });- });-- it("should preserve canonical llm.api_key payload values", async () => {- const saveSettingsSpy = vi.spyOn(SettingsService, "saveSettings");- const { result } = renderHook(() => useSaveSettings(), {- wrapper: ({ children }) => (- <QueryClientProvider client={new QueryClient()}>- {children}- </QueryClientProvider>- ),- });-- result.current.mutate({ "llm.api_key": "" });- await waitFor(() => {- expect(saveSettingsSpy).toHaveBeenCalledWith(- expect.objectContaining({- "llm.api_key": "",- }),- );- });-- result.current.mutate({ "llm.api_key": null });- await waitFor(() => {- expect(saveSettingsSpy).toHaveBeenCalledWith(- expect.objectContaining({- "llm.api_key": null,- }),- );- });- });-});diff --git a/__tests__/hooks/query/organization-scoped-queries.test.tsx b/__tests__/hooks/query/organization-scoped-queries.test.tsxdeleted file mode 100644index 68ece70883..0000000000--- a/__tests__/hooks/query/organization-scoped-queries.test.tsx+++ /dev/null@@ -1,282 +0,0 @@-import { renderHook, waitFor } from "@testing-library/react";-import { describe, expect, it, vi, beforeEach } from "vitest";-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import React from "react";-import { getSettingsQueryFn, useSettings } from "#/hooks/query/use-settings";-import { useGetSecrets } from "#/hooks/query/use-get-secrets";-import { useApiKeys } from "#/hooks/query/use-api-keys";-import SettingsService from "#/api/settings-service/settings-service.api";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { SecretsService } from "#/api/secrets-service";-import ApiKeysClient from "#/api/api-keys";-import { MOCK_DEFAULT_USER_SETTINGS } from "#/mocks/handlers";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";--vi.mock("#/hooks/query/use-config", () => ({- useConfig: () => ({- data: { app_mode: "saas" },- }),-}));--vi.mock("#/hooks/query/use-is-authed", () => ({- useIsAuthed: () => ({- data: true,- }),-}));--vi.mock("#/hooks/use-is-on-intermediate-page", () => ({- useIsOnIntermediatePage: () => false,-}));--describe("Organization-scoped query hooks", () => {- let queryClient: QueryClient;-- const createWrapper = () => {- return ({ children }: { children: React.ReactNode }) => (- <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>- );- };-- beforeEach(() => {- queryClient = new QueryClient({- defaultOptions: {- queries: {- retry: false,- },- },- });- useSelectedOrganizationStore.setState({ organizationId: "org-1" });- vi.clearAllMocks();- });-- describe("useSettings", () => {- it("should include organizationId in query key for proper cache isolation", async () => {- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue(MOCK_DEFAULT_USER_SETTINGS);-- const { result } = renderHook(() => useSettings(), {- wrapper: createWrapper(),- });-- await waitFor(() => expect(result.current.isFetched).toBe(true));-- // Verify the query was cached with the org-specific key- const cachedData = queryClient.getQueryData([- "settings",- "personal",- "org-1",- ]);- expect(cachedData).toBeDefined();-- // Verify no data is cached under the old key without the scope segment- const oldKeyData = queryClient.getQueryData(["settings", "org-1"]);- expect(oldKeyData).toBeUndefined();- });-- it("should refetch when organization changes", async () => {- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- language: "en",- });-- // First render with org-1- const { result, rerender } = renderHook(() => useSettings(), {- wrapper: createWrapper(),- });-- await waitFor(() => expect(result.current.isFetched).toBe(true));- expect(getSettingsSpy).toHaveBeenCalledTimes(1);-- // Change organization- useSelectedOrganizationStore.setState({ organizationId: "org-2" });- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- language: "es",- });-- // Rerender to pick up the new org ID- rerender();-- await waitFor(() => {- // Should have fetched again for the new org- expect(getSettingsSpy).toHaveBeenCalledTimes(2);- });-- // Verify both org caches exist independently- const org1Data = queryClient.getQueryData([- "settings",- "personal",- "org-1",- ]);- const org2Data = queryClient.getQueryData([- "settings",- "personal",- "org-2",- ]);- expect(org1Data).toBeDefined();- expect(org2Data).toBeDefined();- });-- it("should fetch org-scoped settings with the selected org id", async () => {- const getOrganizationSettingsSpy = vi- .spyOn(organizationService, "getOrganizationSettings")- .mockResolvedValue(MOCK_DEFAULT_USER_SETTINGS);-- const settings = await getSettingsQueryFn("org", "org-1");-- expect(settings.llm_model).toBe(MOCK_DEFAULT_USER_SETTINGS.llm_model);- expect(getOrganizationSettingsSpy).toHaveBeenCalledWith({- orgId: "org-1",- });- });-- it("should prefer schema-managed LLM values over stale legacy flat fields", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- llm_model: "openai/gpt-4o",- llm_base_url: "https://stale.example/v1",- agent_settings: {- ...MOCK_DEFAULT_USER_SETTINGS.agent_settings,- "llm.model": MOCK_DEFAULT_USER_SETTINGS.llm_model,- "llm.base_url": null,- },- });-- const settings = await getSettingsQueryFn();-- expect(settings.llm_model).toBe(MOCK_DEFAULT_USER_SETTINGS.llm_model);- expect(settings.llm_base_url).toBe("");- });-- });-- describe("useGetSecrets", () => {- it("should include organizationId in query key for proper cache isolation", async () => {- const getSecretsSpy = vi.spyOn(SecretsService, "getSecrets");- getSecretsSpy.mockResolvedValue([]);-- const { result } = renderHook(() => useGetSecrets(), {- wrapper: createWrapper(),- });-- await waitFor(() => expect(result.current.isFetched).toBe(true));-- // Verify the query was cached with the org-specific key- const cachedData = queryClient.getQueryData(["secrets", "org-1"]);- expect(cachedData).toBeDefined();-- // Verify no data is cached under the old key without org ID- const oldKeyData = queryClient.getQueryData(["secrets"]);- expect(oldKeyData).toBeUndefined();- });-- it("should fetch different data when organization changes", async () => {- const getSecretsSpy = vi.spyOn(SecretsService, "getSecrets");-- // Mock different secrets for different orgs- getSecretsSpy.mockResolvedValueOnce([- { name: "SECRET_ORG_1", description: "Org 1 secret" },- ]);-- const { result, rerender } = renderHook(() => useGetSecrets(), {- wrapper: createWrapper(),- });-- await waitFor(() => expect(result.current.isFetched).toBe(true));- expect(result.current.data).toHaveLength(1);- expect(result.current.data?.[0].name).toBe("SECRET_ORG_1");-- // Change organization- useSelectedOrganizationStore.setState({ organizationId: "org-2" });- getSecretsSpy.mockResolvedValueOnce([- { name: "SECRET_ORG_2", description: "Org 2 secret" },- ]);-- rerender();-- await waitFor(() => {- expect(result.current.data?.[0]?.name).toBe("SECRET_ORG_2");- });- });- });-- describe("useApiKeys", () => {- it("should include organizationId in query key for proper cache isolation", async () => {- const getApiKeysSpy = vi.spyOn(ApiKeysClient, "getApiKeys");- getApiKeysSpy.mockResolvedValue([]);-- const { result } = renderHook(() => useApiKeys(), {- wrapper: createWrapper(),- });-- await waitFor(() => expect(result.current.isFetched).toBe(true));-- // Verify the query was cached with the org-specific key- const cachedData = queryClient.getQueryData(["api-keys", "org-1"]);- expect(cachedData).toBeDefined();-- // Verify no data is cached under the old key without org ID- const oldKeyData = queryClient.getQueryData(["api-keys"]);- expect(oldKeyData).toBeUndefined();- });- });-- describe("Cache isolation between organizations", () => {- it("should maintain separate caches for each organization", async () => {- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");-- // Simulate fetching for org-1- getSettingsSpy.mockResolvedValueOnce({- ...MOCK_DEFAULT_USER_SETTINGS,- language: "en",- });-- useSelectedOrganizationStore.setState({ organizationId: "org-1" });- const { rerender } = renderHook(() => useSettings(), {- wrapper: createWrapper(),- });-- await waitFor(() => {- expect(- queryClient.getQueryData(["settings", "personal", "org-1"]),- ).toBeDefined();- });-- // Switch to org-2- getSettingsSpy.mockResolvedValueOnce({- ...MOCK_DEFAULT_USER_SETTINGS,- language: "fr",- });-- useSelectedOrganizationStore.setState({ organizationId: "org-2" });- rerender();-- await waitFor(() => {- expect(- queryClient.getQueryData(["settings", "personal", "org-2"]),- ).toBeDefined();- });-- // Switch back to org-1 - should use cached data, not refetch- useSelectedOrganizationStore.setState({ organizationId: "org-1" });- rerender();-- // org-1 data should still be in cache- const org1Cache = queryClient.getQueryData([- "settings",- "personal",- "org-1",- ]) as any;- expect(org1Cache?.language).toBe("en");-- // org-2 data should also still be in cache- const org2Cache = queryClient.getQueryData([- "settings",- "personal",- "org-2",- ]) as any;- expect(org2Cache?.language).toBe("fr");- });- });-});diff --git a/__tests__/hooks/query/use-organizations.test.tsx b/__tests__/hooks/query/use-organizations.test.tsxdeleted file mode 100644index 56530a4a15..0000000000--- a/__tests__/hooks/query/use-organizations.test.tsx+++ /dev/null@@ -1,166 +0,0 @@-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { renderHook, waitFor } from "@testing-library/react";-import { describe, expect, it, vi, beforeEach } from "vitest";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { useOrganizations } from "#/hooks/query/use-organizations";-import type { Organization } from "#/types/org";--vi.mock("#/api/organization-service/organization-service.api", () => ({- organizationService: {- getOrganizations: vi.fn(),- },-}));--// Mock useIsAuthed to return authenticated-vi.mock("#/hooks/query/use-is-authed", () => ({- useIsAuthed: () => ({ data: true }),-}));--// Mock useConfig to return SaaS mode (organizations are a SaaS-only feature)-vi.mock("#/hooks/query/use-config", () => ({- useConfig: () => ({ data: { app_mode: "saas" } }),-}));--const mockGetOrganizations = vi.mocked(organizationService.getOrganizations);--function createMinimalOrg(- id: string,- name: string,- is_personal?: boolean,-): Organization {- return {- id,- name,- is_personal,- contact_name: "",- contact_email: "",- conversation_expiration: 0,- remote_runtime_resource_factor: 0,- billing_margin: 0,- enable_proactive_conversation_starters: false,- sandbox_base_container_image: "",- sandbox_runtime_container_image: "",- org_version: 0,- agent_settings: {},- search_api_key: null,- sandbox_api_key: null,- max_budget_per_task: 0,- enable_solvability_analysis: false,- v1_enabled: false,- credits: 0,- };-}--describe("useOrganizations", () => {- let queryClient: QueryClient;-- const wrapper = ({ children }: { children: React.ReactNode }) => (- <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>- );-- beforeEach(() => {- queryClient = new QueryClient({- defaultOptions: {- queries: { retry: false },- },- });- vi.clearAllMocks();- });-- it("sorts personal workspace first, then non-personal alphabetically by name", async () => {- // API returns unsorted: Beta, Personal, Acme, All Hands- mockGetOrganizations.mockResolvedValue({- items: [- createMinimalOrg("3", "Beta LLC", false),- createMinimalOrg("1", "Personal Workspace", true),- createMinimalOrg("2", "Acme Corp", false),- createMinimalOrg("4", "All Hands AI", false),- ],- currentOrgId: "1",- });-- const { result } = renderHook(() => useOrganizations(), { wrapper });-- await waitFor(() => {- expect(result.current.isSuccess).toBe(true);- });-- const { organizations } = result.current.data!;- expect(organizations).toHaveLength(4);- expect(organizations[0].id).toBe("1");- expect(organizations[0].is_personal).toBe(true);- expect(organizations[0].name).toBe("Personal Workspace");- expect(organizations[1].name).toBe("Acme Corp");- expect(organizations[2].name).toBe("All Hands AI");- expect(organizations[3].name).toBe("Beta LLC");- });-- it("treats missing is_personal as false and sorts by name", async () => {- mockGetOrganizations.mockResolvedValue({- items: [- createMinimalOrg("1", "Zebra Org"), // no is_personal- createMinimalOrg("2", "Alpha Org", true), // personal first- createMinimalOrg("3", "Mango Org"), // no is_personal- ],- currentOrgId: "2",- });-- const { result } = renderHook(() => useOrganizations(), { wrapper });-- await waitFor(() => {- expect(result.current.isSuccess).toBe(true);- });-- const { organizations } = result.current.data!;- expect(organizations[0].id).toBe("2");- expect(organizations[0].is_personal).toBe(true);- expect(organizations[1].name).toBe("Mango Org");- expect(organizations[2].name).toBe("Zebra Org");- });-- it("handles missing name by treating as empty string for sort", async () => {- const orgWithName = createMinimalOrg("2", "Beta", false);- const orgNoName = { ...createMinimalOrg("1", "Alpha", false) };- delete (orgNoName as Record<string, unknown>).name;- mockGetOrganizations.mockResolvedValue({- items: [orgWithName, orgNoName] as Organization[],- currentOrgId: "1",- });-- const { result } = renderHook(() => useOrganizations(), { wrapper });-- await waitFor(() => {- expect(result.current.isSuccess).toBe(true);- });-- const { organizations } = result.current.data!;- // undefined name is coerced to ""; "" sorts before "Beta"- expect(organizations[0].id).toBe("1");- expect(organizations[1].id).toBe("2");- expect(organizations[1].name).toBe("Beta");- });-- it("does not mutate the original array from the API", async () => {- const apiOrgs = [- createMinimalOrg("2", "Acme", false),- createMinimalOrg("1", "Personal", true),- ];- mockGetOrganizations.mockResolvedValue({- items: apiOrgs,- currentOrgId: "1",- });-- const { result } = renderHook(() => useOrganizations(), { wrapper });-- await waitFor(() => {- expect(result.current.isSuccess).toBe(true);- });-- // Hook sorts a copy ([...data]), so API order unchanged- expect(apiOrgs[0].id).toBe("2");- expect(apiOrgs[1].id).toBe("1");- // Returned data is sorted- expect(result.current.data!.organizations[0].id).toBe("1");- expect(result.current.data!.organizations[1].id).toBe("2");- });-});diff --git a/__tests__/hooks/use-auto-login.test.tsx b/__tests__/hooks/use-auto-login.test.tsxdeleted file mode 100644index 562cb1b31c..0000000000--- a/__tests__/hooks/use-auto-login.test.tsx+++ /dev/null@@ -1,73 +0,0 @@-import { renderHook, waitFor } from "@testing-library/react";-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";--const mockUseConfig = vi.fn();-const mockUseIsAuthed = vi.fn();-const mockGetLoginMethod = vi.fn();--vi.mock("#/hooks/query/use-config", () => ({- useConfig: () => mockUseConfig(),-}));--vi.mock("#/hooks/query/use-is-authed", () => ({- useIsAuthed: () => mockUseIsAuthed(),-}));--vi.mock("#/utils/local-storage", () => ({- LoginMethod: {- GITHUB: "github",- GITLAB: "gitlab",- BITBUCKET: "bitbucket",- BITBUCKET_DATA_CENTER: "bitbucket_data_center",- AZURE_DEVOPS: "azure_devops",- ENTERPRISE_SSO: "enterprise_sso",- },- getLoginMethod: () => mockGetLoginMethod(),-}));---vi.mock("#/hooks/use-is-on-intermediate-page", () => ({- useIsOnIntermediatePage: () => true,-}));--import { useAutoLogin } from "#/hooks/use-auto-login";--describe("useAutoLogin", () => {- const acceptTosUrl =- "https://ohpr-13306-497.staging.all-hands.dev/accept-tos?redirect_url=" +- encodeURIComponent(- "https://ohpr-13306-497.auth.staging.all-hands.dev/realms/allhands/protocol/openid-connect/auth?client_id=allhands&response_type=code",- );-- beforeEach(() => {- vi.stubGlobal("location", { href: acceptTosUrl });-- mockUseConfig.mockReturnValue({- data: {- app_mode: "saas",- auth_url: "ohpr-13306-497.auth.staging.all-hands.dev",- },- isLoading: false,- });-- mockUseIsAuthed.mockReturnValue({- data: false,- isLoading: false,- });-- mockGetLoginMethod.mockReturnValue("github");- });-- afterEach(() => {- vi.unstubAllGlobals();- vi.clearAllMocks();- });-- it("should not restart OAuth while the user is already on /accept-tos", async () => {- renderHook(() => useAutoLogin());-- await waitFor(() => {- expect(window.location.href).toBe(acceptTosUrl);- });- });-});diff --git a/__tests__/hooks/use-git-conversation-routing.test.ts b/__tests__/hooks/use-git-conversation-routing.test.tsdeleted file mode 100644index 6050bbfca8..0000000000--- a/__tests__/hooks/use-git-conversation-routing.test.ts+++ /dev/null@@ -1,255 +0,0 @@-import { renderHook, act } from "@testing-library/react";-import { describe, expect, it, vi, beforeEach } from "vitest";--const mockClaimMutate = vi.fn();-const mockDisconnectMutate = vi.fn();--vi.mock("#/hooks/query/use-git-organizations", () => ({- useUserGitOrganizations: vi.fn(),- useGitClaims: vi.fn(),-}));--vi.mock("#/hooks/mutation/use-claim-git-org", () => ({- useClaimGitOrg: () => ({ mutate: mockClaimMutate }),-}));--vi.mock("#/hooks/mutation/use-disconnect-git-org", () => ({- useDisconnectGitOrg: () => ({ mutate: mockDisconnectMutate }),-}));--import { useGitConversationRouting } from "#/hooks/organizations/use-git-conversation-routing";-import {- useUserGitOrganizations,- useGitClaims,-} from "#/hooks/query/use-git-organizations";--const mockUseUserGitOrganizations = vi.mocked(useUserGitOrganizations);-const mockUseGitClaims = vi.mocked(useGitClaims);--function setupMocks({- userOrgs = { provider: "github", organizations: ["OpenHands", "AcmeCo"] },- claims = [] as Array<{- id: string;- org_id: string;- provider: string;- git_organization: string;- claimed_by: string;- claimed_at: string;- }>,- isLoadingUserOrgs = false,- isLoadingClaims = false,-} = {}) {- mockUseUserGitOrganizations.mockReturnValue({- data: userOrgs,- isLoading: isLoadingUserOrgs,- } as ReturnType<typeof useUserGitOrganizations>);-- mockUseGitClaims.mockReturnValue({- data: claims,- isLoading: isLoadingClaims,- } as ReturnType<typeof useGitClaims>);-}--describe("useGitConversationRouting", () => {- beforeEach(() => {- vi.clearAllMocks();- });-- it("returns empty orgs when user git orgs is undefined", () => {- mockUseUserGitOrganizations.mockReturnValue({- data: undefined,- isLoading: true,- } as ReturnType<typeof useUserGitOrganizations>);- mockUseGitClaims.mockReturnValue({- data: undefined,- isLoading: true,- } as ReturnType<typeof useGitClaims>);-- const { result } = renderHook(() => useGitConversationRouting());-- expect(result.current.orgs).toEqual([]);- expect(result.current.isLoading).toBe(true);- });-- it("merges user git orgs with claims correctly", () => {- setupMocks({- claims: [- {- id: "claim-1",- org_id: "org-1",- provider: "github",- git_organization: "openhands",- claimed_by: "user-1",- claimed_at: "2026-01-01T00:00:00",- },- ],- });-- const { result } = renderHook(() => useGitConversationRouting());-- expect(result.current.orgs).toHaveLength(2);-- const claimedOrg = result.current.orgs.find(- (o) => o.name === "OpenHands",- );- expect(claimedOrg).toMatchObject({- id: "github:openhands",- claimId: "claim-1",- provider: "github",- status: "claimed",- });-- const unclaimedOrg = result.current.orgs.find(- (o) => o.name === "AcmeCo",- );- expect(unclaimedOrg).toMatchObject({- id: "github:acmeco",- claimId: null,- provider: "github",- status: "unclaimed",- });- });-- it("handles case-insensitive matching between user orgs and claims", () => {- setupMocks({- userOrgs: {- provider: "GitHub",- organizations: ["All-Hands-AI"],- },- claims: [- {- id: "claim-1",- org_id: "org-1",- provider: "github",- git_organization: "all-hands-ai",- claimed_by: "user-1",- claimed_at: "2026-01-01T00:00:00",- },- ],- });-- const { result } = renderHook(() => useGitConversationRouting());-- expect(result.current.orgs[0]).toMatchObject({- status: "claimed",- claimId: "claim-1",- name: "All-Hands-AI",- });- });-- it("returns unclaimed when no claims data is available", () => {- setupMocks({ claims: [] });-- const { result } = renderHook(() => useGitConversationRouting());-- expect(result.current.orgs).toHaveLength(2);- expect(result.current.orgs.every((o) => o.status === "unclaimed")).toBe(- true,- );- expect(result.current.orgs.every((o) => o.claimId === null)).toBe(true);- });-- it("sets pending claiming state when claimOrg is called", () => {- setupMocks();-- const { result } = renderHook(() => useGitConversationRouting());-- act(() => {- result.current.claimOrg("github:acmeco");- });-- expect(mockClaimMutate).toHaveBeenCalledWith(- { provider: "github", gitOrganization: "AcmeCo" },- expect.objectContaining({ onSettled: expect.any(Function) }),- );-- const org = result.current.orgs.find((o) => o.id === "github:acmeco");- expect(org?.status).toBe("claiming");- });-- it("sets pending disconnecting state when disconnectOrg is called", () => {- setupMocks({- claims: [- {- id: "claim-1",- org_id: "org-1",- provider: "github",- git_organization: "openhands",- claimed_by: "user-1",- claimed_at: "2026-01-01T00:00:00",- },- ],- });-- const { result } = renderHook(() => useGitConversationRouting());-- act(() => {- result.current.disconnectOrg("github:openhands");- });-- expect(mockDisconnectMutate).toHaveBeenCalledWith(- { claimId: "claim-1" },- expect.objectContaining({ onSettled: expect.any(Function) }),- );-- const org = result.current.orgs.find((o) => o.id === "github:openhands");- expect(org?.status).toBe("disconnecting");- });-- it("clears pending state on settle", () => {- setupMocks();-- mockClaimMutate.mockImplementation(- (- _args: unknown,- options: { onSettled?: () => void },- ) => {- options?.onSettled?.();- },- );-- const { result } = renderHook(() => useGitConversationRouting());-- act(() => {- result.current.claimOrg("github:acmeco");- });-- const org = result.current.orgs.find((o) => o.id === "github:acmeco");- expect(org?.status).toBe("unclaimed");- });-- it("does not claim an already claimed org", () => {- setupMocks({- claims: [- {- id: "claim-1",- org_id: "org-1",- provider: "github",- git_organization: "openhands",- claimed_by: "user-1",- claimed_at: "2026-01-01T00:00:00",- },- ],- });-- const { result } = renderHook(() => useGitConversationRouting());-- act(() => {- result.current.claimOrg("github:openhands");- });-- expect(mockClaimMutate).not.toHaveBeenCalled();- });-- it("does not disconnect an unclaimed org", () => {- setupMocks();-- const { result } = renderHook(() => useGitConversationRouting());-- act(() => {- result.current.disconnectOrg("github:acmeco");- });-- expect(mockDisconnectMutate).not.toHaveBeenCalled();- });-});diff --git a/__tests__/hooks/use-git-user.test.tsx b/__tests__/hooks/use-git-user.test.tsxindex 950e476c22..62fb3152b4 100644--- a/__tests__/hooks/use-git-user.test.tsx+++ b/__tests__/hooks/use-git-user.test.tsx@@ -3,7 +3,6 @@ import { renderHook, waitFor } from "@testing-library/react";import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import React from "react";import { useGitUser } from "#/hooks/query/use-git-user";-import { useLogout } from "#/hooks/mutation/use-logout";import UserService from "#/api/user-service/user-service.api";import * as useShouldShowUserFeaturesModule from "#/hooks/use-should-show-user-features";import * as useConfigModule from "#/hooks/query/use-config";@@ -11,40 +10,26 @@ import { AxiosError } from "axios";vi.mock("#/hooks/use-should-show-user-features");vi.mock("#/hooks/query/use-config");-vi.mock("#/hooks/mutation/use-logout");vi.mock("#/api/user-service/user-service.api");++const identifyMock = vi.fn();+vi.mock("posthog-js/react", () => ({usePostHog: vi.fn(() => ({- identify: vi.fn(),+ identify: identifyMock,})),}));describe("useGitUser", () => {- let mockLogout: ReturnType<typeof useLogout>;-beforeEach(() => {vi.clearAllMocks();- mockLogout = {- mutate: vi.fn(),- mutateAsync: vi.fn(),- data: undefined,- error: null,- isPending: false,- isSuccess: false,- isError: false,- isIdle: true,- reset: vi.fn(),- status: "idle",- } as unknown as ReturnType<typeof useLogout>;-vi.mocked(useShouldShowUserFeaturesModule.useShouldShowUserFeatures).mockReturnValue(true);vi.mocked(useConfigModule.useConfig).mockReturnValue({- data: { app_mode: "saas" },+ data: { app_mode: "oss" },isLoading: false,error: null,} as any);- vi.mocked(useLogout).mockReturnValue(mockLogout);});const createWrapper = () => {@@ -63,8 +48,7 @@ describe("useGitUser", () => {);};- it("should call logout when receiving a 401 error", async () => {- // Mock the user service to throw a 401 error+ it("keeps OSS git-user failures local when the backend returns 401", async () => {const mockError = new AxiosError("Unauthorized", "401", undefined, undefined, {status: 401,data: { message: "Unauthorized" },@@ -76,38 +60,35 @@ describe("useGitUser", () => {wrapper: createWrapper(),});- // Wait for the query to fail (status becomes 'error')await waitFor(() => {expect(result.current.status).toBe("error");});- // Wait for the useEffect to trigger logout- await waitFor(() => {- expect(mockLogout.mutate).toHaveBeenCalled();- });+ expect(identifyMock).not.toHaveBeenCalled();});- it("should not call logout for non-401 errors", async () => {- // Mock the user service to throw a 500 error- const mockError = new AxiosError("Server Error", "500", undefined, undefined, {- status: 500,- data: { message: "Internal Server Error" },- } as any);-- vi.mocked(UserService.getUser).mockRejectedValue(mockError);+ it("identifies the user when the git profile loads successfully", async () => {+ vi.mocked(UserService.getUser).mockResolvedValue({+ login: "octocat",+ company: "GitHub",+ name: "The Octocat",+ email: "[email protected]",+ } as never);const { result } = renderHook(() => useGitUser(), {wrapper: createWrapper(),});- // Wait for the query to fail (status becomes 'error')await waitFor(() => {- expect(result.current.status).toBe("error");+ expect(result.current.status).toBe("success");});- // Wait a bit to ensure logout is not called- await waitFor(() => {- expect(mockLogout.mutate).not.toHaveBeenCalled();+ expect(identifyMock).toHaveBeenCalledWith("octocat", {+ company: "GitHub",+ name: "The Octocat",+ email: "[email protected]",+ user: "octocat",+ mode: "oss",});});});diff --git a/__tests__/hooks/use-invitation.test.ts b/__tests__/hooks/use-invitation.test.tsdeleted file mode 100644index 9de4d47781..0000000000--- a/__tests__/hooks/use-invitation.test.ts+++ /dev/null@@ -1,170 +0,0 @@-import { act, renderHook } from "@testing-library/react";-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";--const INVITATION_TOKEN_KEY = "openhands_invitation_token";--// Mock setSearchParams function-const mockSetSearchParams = vi.fn();--// Default mock searchParams-let mockSearchParamsData: Record<string, string> = {};--// Mock react-router-vi.mock("react-router", () => ({- useSearchParams: () => [- {- get: (key: string) => mockSearchParamsData[key] || null,- has: (key: string) => key in mockSearchParamsData,- },- mockSetSearchParams,- ],-}));--// Import after mocking-import { useInvitation } from "#/hooks/use-invitation";--describe("useInvitation", () => {- beforeEach(() => {- // Clear localStorage before each test- localStorage.clear();- // Reset mock data- mockSearchParamsData = {};- mockSetSearchParams.mockClear();- });-- afterEach(() => {- vi.clearAllMocks();- });-- describe("initialization", () => {- it("should initialize with null token when localStorage is empty", () => {- // Arrange - localStorage is empty (cleared in beforeEach)-- // Act- const { result } = renderHook(() => useInvitation());-- // Assert- expect(result.current.invitationToken).toBeNull();- expect(result.current.hasInvitation).toBe(false);- });-- it("should initialize with token from localStorage if present", () => {- // Arrange- const storedToken = "inv-stored-token-12345";- localStorage.setItem(INVITATION_TOKEN_KEY, storedToken);-- // Act- const { result } = renderHook(() => useInvitation());-- // Assert- expect(result.current.invitationToken).toBe(storedToken);- expect(result.current.hasInvitation).toBe(true);- });- });-- describe("URL token capture", () => {- it("should capture invitation_token from URL and store in localStorage", () => {- // Arrange- const urlToken = "inv-url-token-67890";- mockSearchParamsData = { invitation_token: urlToken };-- // Act- renderHook(() => useInvitation());-- // Assert- expect(localStorage.getItem(INVITATION_TOKEN_KEY)).toBe(urlToken);- expect(mockSetSearchParams).toHaveBeenCalled();- });- });-- describe("completion cleanup", () => {- it("should clear localStorage when email_mismatch param is present", () => {- // Arrange- const storedToken = "inv-token-to-clear";- localStorage.setItem(INVITATION_TOKEN_KEY, storedToken);- mockSearchParamsData = { email_mismatch: "true" };-- // Act- const { result } = renderHook(() => useInvitation());-- // Assert- expect(localStorage.getItem(INVITATION_TOKEN_KEY)).toBeNull();- expect(mockSetSearchParams).toHaveBeenCalled();- });-- it("should clear localStorage when invitation_success param is present", () => {- // Arrange- const storedToken = "inv-token-to-clear";- localStorage.setItem(INVITATION_TOKEN_KEY, storedToken);- mockSearchParamsData = { invitation_success: "true" };-- // Act- renderHook(() => useInvitation());-- // Assert- expect(localStorage.getItem(INVITATION_TOKEN_KEY)).toBeNull();- });-- it("should clear localStorage when invitation_expired param is present", () => {- // Arrange- localStorage.setItem(INVITATION_TOKEN_KEY, "inv-token");- mockSearchParamsData = { invitation_expired: "true" };-- // Act- renderHook(() => useInvitation());-- // Assert- expect(localStorage.getItem(INVITATION_TOKEN_KEY)).toBeNull();- });- });-- describe("buildOAuthStateData", () => {- it("should include invitation_token in OAuth state when token is present", () => {- // Arrange- const token = "inv-oauth-token-12345";- localStorage.setItem(INVITATION_TOKEN_KEY, token);-- const { result } = renderHook(() => useInvitation());- const baseState = { redirect_url: "/dashboard" };-- // Act- const stateData = result.current.buildOAuthStateData(baseState);-- // Assert- expect(stateData.invitation_token).toBe(token);- expect(stateData.redirect_url).toBe("/dashboard");- });-- it("should not include invitation_token when no token is present", () => {- // Arrange - no token in localStorage-- const { result } = renderHook(() => useInvitation());- const baseState = { redirect_url: "/dashboard" };-- // Act- const stateData = result.current.buildOAuthStateData(baseState);-- // Assert- expect(stateData.invitation_token).toBeUndefined();- expect(stateData.redirect_url).toBe("/dashboard");- });- });-- describe("clearInvitation", () => {- it("should remove token from localStorage when called", () => {- // Arrange- localStorage.setItem(INVITATION_TOKEN_KEY, "inv-token-to-clear");- const { result } = renderHook(() => useInvitation());-- // Act- act(() => {- result.current.clearInvitation();- });-- // Assert- expect(localStorage.getItem(INVITATION_TOKEN_KEY)).toBeNull();- expect(result.current.invitationToken).toBeNull();- expect(result.current.hasInvitation).toBe(false);- });- });-});diff --git a/__tests__/hooks/use-is-on-intermediate-page.test.ts b/__tests__/hooks/use-is-on-intermediate-page.test.tsindex 2c9ecdca18..0b69b79cfa 100644--- a/__tests__/hooks/use-is-on-intermediate-page.test.ts+++ b/__tests__/hooks/use-is-on-intermediate-page.test.ts@@ -1,70 +1,22 @@import { renderHook } from "@testing-library/react";import { describe, expect, it, vi } from "vitest";-// Unmock the hook so we can test the real implementation-vi.unmock("#/hooks/use-is-on-intermediate-page");-const useLocationMock = vi.fn();-vi.mock("react-router", async () => {- const actual = await vi.importActual("react-router");- return {- ...actual,- useLocation: useLocationMock,- };-});--// Import after mock setup-const { useIsOnIntermediatePage } = await import(- "#/hooks/use-is-on-intermediate-page"-);+vi.mock("react-router", async () => ({+ ...(await vi.importActual("react-router")),+ useLocation: () => useLocationMock(),+}));describe("useIsOnIntermediatePage", () => {- describe("returns true for intermediate pages", () => {- it("should return true when on /accept-tos page", () => {- useLocationMock.mockReturnValue({ pathname: "/accept-tos" });- const { result } = renderHook(() => useIsOnIntermediatePage());- expect(result.current).toBe(true);- });-- it("should return true when on /onboarding page", () => {- useLocationMock.mockReturnValue({ pathname: "/onboarding" });- const { result } = renderHook(() => useIsOnIntermediatePage());- expect(result.current).toBe(true);- });-- it("should return true when on /information-request page", () => {- useLocationMock.mockReturnValue({ pathname: "/information-request" });- const { result } = renderHook(() => useIsOnIntermediatePage());- expect(result.current).toBe(true);- });- });-- describe("returns false for non-intermediate pages", () => {- it("should return false when on root page", () => {- useLocationMock.mockReturnValue({ pathname: "/" });- const { result } = renderHook(() => useIsOnIntermediatePage());- expect(result.current).toBe(false);- });-- it("should return false when on /settings page", () => {- useLocationMock.mockReturnValue({ pathname: "/settings" });- const { result } = renderHook(() => useIsOnIntermediatePage());- expect(result.current).toBe(false);- });- });+ it("returns false for OSS app routes", async () => {+ useLocationMock.mockReturnValue({ pathname: "/settings" });+ const { useIsOnIntermediatePage } = await import(+ "#/hooks/use-is-on-intermediate-page"+ );- describe("handles edge cases", () => {- it("should return false for paths containing intermediate page names", () => {- useLocationMock.mockReturnValue({ pathname: "/accept-tos-extra" });- const { result } = renderHook(() => useIsOnIntermediatePage());- expect(result.current).toBe(false);- });+ const { result } = renderHook(() => useIsOnIntermediatePage());- it("should return false for paths with intermediate page names as subpaths", () => {- useLocationMock.mockReturnValue({ pathname: "/settings/accept-tos" });- const { result } = renderHook(() => useIsOnIntermediatePage());- expect(result.current).toBe(false);- });+ expect(result.current).toBe(false);});});diff --git a/__tests__/hooks/use-org-type-and-access.test.tsx b/__tests__/hooks/use-org-type-and-access.test.tsxdeleted file mode 100644index 4d3d4c9ecc..0000000000--- a/__tests__/hooks/use-org-type-and-access.test.tsx+++ /dev/null@@ -1,134 +0,0 @@-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { renderHook, waitFor } from "@testing-library/react";-import { describe, it, expect, vi, beforeEach } from "vitest";-import { useOrgTypeAndAccess } from "#/hooks/use-org-type-and-access";--// Mock the dependencies-vi.mock("#/context/use-selected-organization", () => ({- useSelectedOrganizationId: vi.fn(),-}));--vi.mock("#/hooks/query/use-organizations", () => ({- useOrganizations: vi.fn(),-}));--// Import mocked modules-import { useSelectedOrganizationId } from "#/context/use-selected-organization";-import { useOrganizations } from "#/hooks/query/use-organizations";--const mockUseSelectedOrganizationId = vi.mocked(useSelectedOrganizationId);-const mockUseOrganizations = vi.mocked(useOrganizations);--const queryClient = new QueryClient();-const wrapper = ({ children }: { children: React.ReactNode }) => (- <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>-);--describe("useOrgTypeAndAccess", () => {- beforeEach(() => {- queryClient.clear();- vi.clearAllMocks();- });-- it("should return false for all booleans when no organization is selected", async () => {- mockUseSelectedOrganizationId.mockReturnValue({- organizationId: null,- setOrganizationId: vi.fn(),- });- mockUseOrganizations.mockReturnValue({- data: { organizations: [], currentOrgId: null },- } as unknown as ReturnType<typeof useOrganizations>);-- const { result } = renderHook(() => useOrgTypeAndAccess(), { wrapper });-- await waitFor(() => {- expect(result.current.selectedOrg).toBeUndefined();- expect(result.current.isPersonalOrg).toBe(false);- expect(result.current.isTeamOrg).toBe(false);- expect(result.current.canViewOrgRoutes).toBe(false);- expect(result.current.organizationId).toBeNull();- });- });-- it("should return isPersonalOrg=true and isTeamOrg=false for personal org", async () => {- const personalOrg = { id: "org-1", is_personal: true, name: "Personal" };- mockUseSelectedOrganizationId.mockReturnValue({- organizationId: "org-1",- setOrganizationId: vi.fn(),- });- mockUseOrganizations.mockReturnValue({- data: { organizations: [personalOrg], currentOrgId: "org-1" },- } as unknown as ReturnType<typeof useOrganizations>);-- const { result } = renderHook(() => useOrgTypeAndAccess(), { wrapper });-- await waitFor(() => {- expect(result.current.selectedOrg).toEqual(personalOrg);- expect(result.current.isPersonalOrg).toBe(true);- expect(result.current.isTeamOrg).toBe(false);- expect(result.current.canViewOrgRoutes).toBe(false);- expect(result.current.organizationId).toBe("org-1");- });- });-- it("should return isPersonalOrg=false and isTeamOrg=true for team org", async () => {- const teamOrg = { id: "org-2", is_personal: false, name: "Team" };- mockUseSelectedOrganizationId.mockReturnValue({- organizationId: "org-2",- setOrganizationId: vi.fn(),- });- mockUseOrganizations.mockReturnValue({- data: { organizations: [teamOrg], currentOrgId: "org-2" },- } as unknown as ReturnType<typeof useOrganizations>);-- const { result } = renderHook(() => useOrgTypeAndAccess(), { wrapper });-- await waitFor(() => {- expect(result.current.selectedOrg).toEqual(teamOrg);- expect(result.current.isPersonalOrg).toBe(false);- expect(result.current.isTeamOrg).toBe(true);- expect(result.current.canViewOrgRoutes).toBe(true);- expect(result.current.organizationId).toBe("org-2");- });- });-- it("should return canViewOrgRoutes=true only when isTeamOrg AND organizationId is truthy", async () => {- const teamOrg = { id: "org-3", is_personal: false, name: "Team" };- mockUseSelectedOrganizationId.mockReturnValue({- organizationId: "org-3",- setOrganizationId: vi.fn(),- });- mockUseOrganizations.mockReturnValue({- data: { organizations: [teamOrg], currentOrgId: "org-3" },- } as unknown as ReturnType<typeof useOrganizations>);-- const { result } = renderHook(() => useOrgTypeAndAccess(), { wrapper });-- await waitFor(() => {- expect(result.current.isTeamOrg).toBe(true);- expect(result.current.organizationId).toBe("org-3");- expect(result.current.canViewOrgRoutes).toBe(true);- });- });-- it("should treat undefined is_personal field as team org", async () => {- // Organization without is_personal field (undefined)- const orgWithoutPersonalField = { id: "org-4", name: "Unknown Type" };- mockUseSelectedOrganizationId.mockReturnValue({- organizationId: "org-4",- setOrganizationId: vi.fn(),- });- mockUseOrganizations.mockReturnValue({- data: { organizations: [orgWithoutPersonalField], currentOrgId: "org-4" },- } as unknown as ReturnType<typeof useOrganizations>);-- const { result } = renderHook(() => useOrgTypeAndAccess(), { wrapper });-- await waitFor(() => {- expect(result.current.selectedOrg).toEqual(orgWithoutPersonalField);- expect(result.current.isPersonalOrg).toBe(false);- expect(result.current.isTeamOrg).toBe(true);- expect(result.current.canViewOrgRoutes).toBe(true);- });- });-});diff --git a/__tests__/hooks/use-settings-nav-items.test.tsx b/__tests__/hooks/use-settings-nav-items.test.tsxindex 9e435189ca..dbea6996fa 100644--- a/__tests__/hooks/use-settings-nav-items.test.tsx+++ b/__tests__/hooks/use-settings-nav-items.test.tsx@@ -1,551 +1,73 @@-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { renderHook, waitFor } from "@testing-library/react";-import { describe, it, expect, vi, beforeEach } from "vitest";-import { SAAS_NAV_ITEMS, OSS_NAV_ITEMS } from "#/constants/settings-nav";-import OptionService from "#/api/option-service/option-service.api";-import {- useSettingsNavItems,- SettingsNavRenderedItem,-} from "#/hooks/use-settings-nav-items";-import { WebClientFeatureFlags } from "#/api/option-service/option.types";+import { renderHook } from "@testing-library/react";+import { beforeEach, describe, expect, it, vi } from "vitest";+import { OSS_NAV_ITEMS } from "#/constants/settings-nav";+import { useSettingsNavItems } from "#/hooks/use-settings-nav-items";+import { WebClientConfig } from "#/api/option-service/option.types";-// Helper to find an item by path in rendered items-const findItemByPath = (- items: SettingsNavRenderedItem[],- path: string,-): SettingsNavRenderedItem | undefined =>- items.find((item) => item.type === "item" && item.item.to === path);+const useConfigMock = vi.fn();-// Helper to get only nav items (excluding headers and dividers)-const getNavItems = (items: SettingsNavRenderedItem[]) =>- items.filter((item) => item.type === "item");--// Mock useOrgTypeAndAccess-const mockOrgTypeAndAccess = vi.hoisted(() => ({- isPersonalOrg: false,- isTeamOrg: false,- organizationId: null as string | null,- selectedOrg: null,- canViewOrgRoutes: false,-}));--vi.mock("#/hooks/use-org-type-and-access", () => ({- useOrgTypeAndAccess: () => mockOrgTypeAndAccess,-}));--// Mock useMe-const mockMe = vi.hoisted(() => ({- data: null as { role: string } | null | undefined,-}));--vi.mock("#/hooks/query/use-me", () => ({- useMe: () => mockMe,-}));--const queryClient = new QueryClient();-const wrapper = ({ children }: { children: React.ReactNode }) => (- <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>-);--const mockConfig = (- appMode: "saas" | "oss",- hideLlmSettings = false,- enableBilling = true,-) => {- vi.spyOn(OptionService, "getConfig").mockResolvedValue({- app_mode: appMode,- feature_flags: {- hide_llm_settings: hideLlmSettings,- enable_billing: enableBilling,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- },- } as Awaited<ReturnType<typeof OptionService.getConfig>>);-};--vi.mock("react-router", () => ({- useRevalidator: () => ({ revalidate: vi.fn() }),+vi.mock("#/hooks/query/use-config", () => ({+ useConfig: () => useConfigMock(),}));-const mockConfigWithFeatureFlags = (- appMode: "saas" | "oss",- featureFlags: Partial<WebClientFeatureFlags>,-) => {- vi.spyOn(OptionService, "getConfig").mockResolvedValue({- app_mode: appMode,- feature_flags: {- enable_billing: true, // Enable billing by default so it's not hidden- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- ...featureFlags,- },- } as Awaited<ReturnType<typeof OptionService.getConfig>>);-};+const createConfig = (+ feature_flags: Partial<WebClientConfig["feature_flags"]> = {},+): WebClientConfig => ({+ app_mode: "oss",+ posthog_client_key: null,+ feature_flags: {+ enable_billing: false,+ hide_llm_settings: false,+ enable_jira: false,+ enable_jira_dc: false,+ enable_linear: false,+ hide_users_page: true,+ hide_billing_page: true,+ hide_integrations_page: false,+ deployment_mode: "self_hosted",+ ...feature_flags,+ },+ providers_configured: [],+ maintenance_start_time: null,+ auth_url: null,+ recaptcha_site_key: null,+ faulty_models: [],+ error_message: null,+ updated_at: new Date().toISOString(),+ github_app_slug: null,+});describe("useSettingsNavItems", () => {beforeEach(() => {- queryClient.clear();- vi.restoreAllMocks();- // Reset mock state- mockOrgTypeAndAccess.isPersonalOrg = false;- mockOrgTypeAndAccess.isTeamOrg = false;- mockOrgTypeAndAccess.organizationId = null;- mockOrgTypeAndAccess.selectedOrg = null;- mockOrgTypeAndAccess.canViewOrgRoutes = false;- mockMe.data = null;+ vi.clearAllMocks();});- it("should return SAAS_NAV_ITEMS minus billing/org/org-members when userRole is 'member'", async () => {- mockConfig("saas");- mockMe.data = { role: "member" };- mockOrgTypeAndAccess.organizationId = "org-1";-- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });-- await waitFor(() => {- // Members should not see billing, org, or org-members routes- expect(findItemByPath(result.current, "/settings/billing")).toBeUndefined();- expect(findItemByPath(result.current, "/settings/org")).toBeUndefined();- expect(findItemByPath(result.current, "/settings/org-members")).toBeUndefined();- // Personal LLM/Condenser/Verification routes are hidden in SaaS;- // members see the org-defaults equivalents (read-only on the page itself).- expect(findItemByPath(result.current, "/settings")).toBeUndefined();- expect(- findItemByPath(result.current, "/settings/org-defaults"),- ).toBeDefined();- expect(findItemByPath(result.current, "/settings/user")).toBeDefined();- });- });+ it("returns the OSS settings items in order", () => {+ useConfigMock.mockReturnValue({ data: createConfig() });- it("should return OSS_NAV_ITEMS when app_mode is 'oss'", async () => {- mockConfig("oss");- mockMe.data = { role: "admin" };- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });+ const { result } = renderHook(() => useSettingsNavItems());- await waitFor(() => {- // OSS mode should return items matching OSS_NAV_ITEMS paths- const navItems = getNavItems(result.current);- const ossPaths = OSS_NAV_ITEMS.map((item) => item.to);- const resultPaths = navItems.map((item) =>- item.type === "item" ? item.item.to : null,- );- expect(resultPaths).toEqual(ossPaths);- });+ expect(result.current).toEqual(+ OSS_NAV_ITEMS.map((item) => ({ type: "item", item })),+ );});- it("should filter out '/settings' item when hide_llm_settings feature flag is enabled", async () => {- mockConfig("saas", true);- mockMe.data = { role: "admin" };- mockOrgTypeAndAccess.organizationId = "org-1";- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });-- await waitFor(() => {- expect(findItemByPath(result.current, "/settings")).toBeUndefined();- });- });-- describe("org-type and role-based filtering", () => {- it("should include org routes by default for team org admin", async () => {- mockConfig("saas");- mockOrgTypeAndAccess.isTeamOrg = true;- mockOrgTypeAndAccess.organizationId = "org-123";- mockMe.data = { role: "admin" };-- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });-- // Wait for config to load (check that any SAAS item is present)- await waitFor(() => {- expect(result.current.length).toBeGreaterThan(0);- expect(- findItemByPath(result.current, "/settings/user"),- ).toBeDefined();- });-- // Org routes should be included for team org admin- expect(- findItemByPath(result.current, "/settings/org"),- ).toBeDefined();- expect(- findItemByPath(result.current, "/settings/org-members"),- ).toBeDefined();- });-- it("should hide org routes when isPersonalOrg is true", async () => {- mockConfig("saas");- mockOrgTypeAndAccess.isPersonalOrg = true;- mockOrgTypeAndAccess.organizationId = "org-123";- mockMe.data = { role: "admin" };-- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });-- // Wait for config to load (check that any SAAS item is present)- await waitFor(() => {- expect(result.current.length).toBeGreaterThan(0);- expect(- findItemByPath(result.current, "/settings/user"),- ).toBeDefined();- });-- // Org routes should be filtered out for personal orgs- expect(- findItemByPath(result.current, "/settings/org"),- ).toBeUndefined();- expect(- findItemByPath(result.current, "/settings/org-members"),- ).toBeUndefined();- });-- it("should hide org routes when user role is member", async () => {- mockConfig("saas");- mockOrgTypeAndAccess.isTeamOrg = true;- mockOrgTypeAndAccess.organizationId = "org-123";- mockMe.data = { role: "member" };-- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });-- // Wait for config to load- await waitFor(() => {- expect(result.current.length).toBeGreaterThan(0);- expect(- findItemByPath(result.current, "/settings/user"),- ).toBeDefined();- });-- // Org routes should be hidden for members- expect(- findItemByPath(result.current, "/settings/org"),- ).toBeUndefined();- expect(- findItemByPath(result.current, "/settings/org-members"),- ).toBeUndefined();- });-- it("should hide org routes when no organization is selected", async () => {- mockConfig("saas");- mockOrgTypeAndAccess.isTeamOrg = false;- mockOrgTypeAndAccess.isPersonalOrg = false;- mockOrgTypeAndAccess.organizationId = null;- mockMe.data = { role: "admin" };-- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });-- // Wait for config to load- await waitFor(() => {- expect(result.current.length).toBeGreaterThan(0);- expect(- findItemByPath(result.current, "/settings/user"),- ).toBeDefined();- });-- // Org routes should be hidden when no org is selected- expect(- findItemByPath(result.current, "/settings/org"),- ).toBeUndefined();- expect(- findItemByPath(result.current, "/settings/org-members"),- ).toBeUndefined();- });-- it("should hide billing route when isTeamOrg is true", async () => {- mockConfig("saas");- mockOrgTypeAndAccess.isTeamOrg = true;- mockOrgTypeAndAccess.organizationId = "org-123";- mockMe.data = { role: "admin" };-- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });-- // Wait for config to load- await waitFor(() => {- expect(result.current.length).toBeGreaterThan(0);- expect(- findItemByPath(result.current, "/settings/user"),- ).toBeDefined();- });-- // Billing should be hidden for team orgs- expect(- findItemByPath(result.current, "/settings/billing"),- ).toBeUndefined();- });-- it("should show billing route for personal org", async () => {- mockConfig("saas");- mockOrgTypeAndAccess.isPersonalOrg = true;- mockOrgTypeAndAccess.isTeamOrg = false;- mockOrgTypeAndAccess.organizationId = "org-123";- mockMe.data = { role: "admin" };-- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });-- // Wait for config to load- await waitFor(() => {- expect(result.current.length).toBeGreaterThan(0);- expect(- findItemByPath(result.current, "/settings/user"),- ).toBeDefined();- });-- // Billing should be visible for personal orgs- expect(- findItemByPath(result.current, "/settings/billing"),- ).toBeDefined();- });- });-- describe("hide page feature flags", () => {- beforeEach(() => {- // Set up user as admin with org context so billing is accessible- mockMe.data = { role: "admin" };- mockOrgTypeAndAccess.isPersonalOrg = true; // Personal org shows billing- mockOrgTypeAndAccess.isTeamOrg = false;- mockOrgTypeAndAccess.organizationId = "org-1";- });-- it("should filter out '/settings/user' when hide_users_page is true", async () => {- mockConfigWithFeatureFlags("saas", { hide_users_page: true });- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });-- await waitFor(() => {- expect(- findItemByPath(result.current, "/settings/user"),- ).toBeUndefined();- // Other pages should still be present- expect(- findItemByPath(result.current, "/settings/integrations"),- ).toBeDefined();- expect(- findItemByPath(result.current, "/settings/billing"),- ).toBeDefined();- });- });-- it("should filter out '/settings/billing' when hide_billing_page is true", async () => {- mockConfigWithFeatureFlags("saas", { hide_billing_page: true });- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });-- await waitFor(() => {- expect(- findItemByPath(result.current, "/settings/billing"),- ).toBeUndefined();- // Other pages should still be present- expect(- findItemByPath(result.current, "/settings/user"),- ).toBeDefined();- expect(- findItemByPath(result.current, "/settings/integrations"),- ).toBeDefined();- });- });-- it("should filter out '/settings/integrations' when hide_integrations_page is true", async () => {- mockConfigWithFeatureFlags("saas", { hide_integrations_page: true });- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });-- await waitFor(() => {- expect(- findItemByPath(result.current, "/settings/integrations"),- ).toBeUndefined();- // Other pages should still be present- expect(- findItemByPath(result.current, "/settings/user"),- ).toBeDefined();- expect(- findItemByPath(result.current, "/settings/billing"),- ).toBeDefined();- });- });-- it("should filter out multiple pages when multiple flags are true", async () => {- mockConfigWithFeatureFlags("saas", {- hide_users_page: true,- hide_billing_page: true,+ it("filters hidden routes from the OSS settings items", () => {+ useConfigMock.mockReturnValue({+ data: createConfig({+ hide_llm_settings: true,hide_integrations_page: true,- });- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });-- await waitFor(() => {- expect(- findItemByPath(result.current, "/settings/user"),- ).toBeUndefined();- expect(- findItemByPath(result.current, "/settings/billing"),- ).toBeUndefined();- expect(- findItemByPath(result.current, "/settings/integrations"),- ).toBeUndefined();- // Personal LLM is hidden in SaaS; the org-defaults equivalent- // shows up instead (an org is selected in this test's setup).- expect(- findItemByPath(result.current, "/settings"),- ).toBeUndefined();- expect(- findItemByPath(result.current, "/settings/org-defaults"),- ).toBeDefined();- expect(- findItemByPath(result.current, "/settings/app"),- ).toBeDefined();- expect(- findItemByPath(result.current, "/settings/secrets"),- ).toBeDefined();- expect(- findItemByPath(result.current, "/settings/mcp"),- ).toBeDefined();- });+ }),});- it("should keep all pages visible when no hide flags are set", async () => {- mockConfigWithFeatureFlags("saas", {});- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });+ const { result } = renderHook(() => useSettingsNavItems());+ const paths = result.current+ .filter((item) => item.type === "item")+ .map((item) => (item.type === "item" ? item.item.to : null));- await waitFor(() => {- // All SAAS pages should be present- expect(- findItemByPath(result.current, "/settings/user"),- ).toBeDefined();- expect(- findItemByPath(result.current, "/settings/billing"),- ).toBeDefined();- expect(- findItemByPath(result.current, "/settings/integrations"),- ).toBeDefined();- // Personal LLM is hidden in SaaS; users see /settings/org-defaults instead.- expect(- findItemByPath(result.current, "/settings"),- ).toBeUndefined();- expect(- findItemByPath(result.current, "/settings/org-defaults"),- ).toBeDefined();- expect(- findItemByPath(result.current, "/settings/app"),- ).toBeDefined();- });- });-- it("should filter out '/settings/integrations' in OSS mode when hide_integrations_page is true", async () => {- mockConfigWithFeatureFlags("oss", { hide_integrations_page: true });- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });-- await waitFor(() => {- expect(- findItemByPath(result.current, "/settings/integrations"),- ).toBeUndefined();- // Other OSS pages should still be present- expect(- findItemByPath(result.current, "/settings"),- ).toBeDefined();- expect(- findItemByPath(result.current, "/settings/mcp"),- ).toBeDefined();- expect(- findItemByPath(result.current, "/settings/app"),- ).toBeDefined();- });- });-- it("hides personal LLM/Condenser/Verification when org-defaults versions are visible (team-org admin)", async () => {- mockConfig("saas");- mockOrgTypeAndAccess.isTeamOrg = true;- mockOrgTypeAndAccess.isPersonalOrg = false;- mockOrgTypeAndAccess.organizationId = "org-123";- mockMe.data = { role: "admin" };-- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });-- await waitFor(() => {- expect(- findItemByPath(result.current, "/settings/org-defaults"),- ).toBeDefined();- expect(- findItemByPath(result.current, "/settings/org-defaults/condenser"),- ).toBeDefined();- expect(- findItemByPath(result.current, "/settings/org-defaults/verification"),- ).toBeDefined();-- expect(findItemByPath(result.current, "/settings")).toBeUndefined();- expect(- findItemByPath(result.current, "/settings/condenser"),- ).toBeUndefined();- expect(- findItemByPath(result.current, "/settings/verification"),- ).toBeUndefined();- });- });-- it("hides personal LLM/Condenser/Verification for any user in a non-personal org (team-org member)", async () => {- mockConfig("saas");- mockOrgTypeAndAccess.isTeamOrg = true;- mockOrgTypeAndAccess.isPersonalOrg = false;- mockOrgTypeAndAccess.organizationId = "org-123";- mockMe.data = { role: "member" };-- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });-- await waitFor(() => {- expect(- findItemByPath(result.current, "/settings/user"),- ).toBeDefined();- expect(findItemByPath(result.current, "/settings")).toBeUndefined();- expect(- findItemByPath(result.current, "/settings/condenser"),- ).toBeUndefined();- expect(- findItemByPath(result.current, "/settings/verification"),- ).toBeUndefined();- });- });-- it("keeps personal LLM/Condenser/Verification visible in the personal workspace", async () => {- mockConfig("saas");- mockOrgTypeAndAccess.isTeamOrg = false;- mockOrgTypeAndAccess.isPersonalOrg = true;- mockOrgTypeAndAccess.organizationId = "org-personal";- mockMe.data = { role: "admin" };-- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });-- await waitFor(() => {- expect(findItemByPath(result.current, "/settings")).toBeDefined();- expect(- findItemByPath(result.current, "/settings/condenser"),- ).toBeDefined();- expect(- findItemByPath(result.current, "/settings/verification"),- ).toBeDefined();- });- });-- it("should filter out both LLM and integrations when both flags are true in OSS mode", async () => {- mockConfigWithFeatureFlags("oss", {- hide_llm_settings: true,- hide_integrations_page: true,- });- const { result } = renderHook(() => useSettingsNavItems(), { wrapper });-- await waitFor(() => {- expect(- findItemByPath(result.current, "/settings"),- ).toBeUndefined();- expect(- findItemByPath(result.current, "/settings/integrations"),- ).toBeUndefined();- // Other OSS pages should still be present- expect(- findItemByPath(result.current, "/settings/mcp"),- ).toBeDefined();- expect(- findItemByPath(result.current, "/settings/app"),- ).toBeDefined();- expect(- findItemByPath(result.current, "/settings/secrets"),- ).toBeDefined();- });- });+ expect(paths).not.toContain("/settings");+ expect(paths).not.toContain("/settings/integrations");+ expect(paths).toContain("/settings/mcp");+ expect(paths).toContain("/settings/secrets");});});diff --git a/__tests__/routes/_oh.test.tsx b/__tests__/routes/_oh.test.tsxdeleted file mode 100644index c12f278356..0000000000--- a/__tests__/routes/_oh.test.tsx+++ /dev/null@@ -1,296 +0,0 @@-import { afterEach, beforeAll, describe, expect, it, vi } from "vitest";-import { createRoutesStub } from "react-router";-import { screen, waitFor, within } from "@testing-library/react";-import {- createAxiosNotFoundErrorObject,- renderWithProviders,-} from "test-utils";-import userEvent from "@testing-library/user-event";-import MainApp from "#/routes/root-layout";-import i18n from "#/i18n";-import OptionService from "#/api/option-service/option-service.api";-import * as CaptureConsent from "#/utils/handle-capture-consent";-import SettingsService from "#/api/settings-service/settings-service.api";-import * as ToastHandlers from "#/utils/custom-toast-handlers";--describe("frontend/routes/_oh", () => {- const { DEFAULT_FEATURE_FLAGS, useIsAuthedMock, useConfigMock } = vi.hoisted(- () => {- const defaultFeatureFlags = {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- };-- return {- DEFAULT_FEATURE_FLAGS: defaultFeatureFlags,- useIsAuthedMock: vi.fn().mockReturnValue({- data: true,- isLoading: false,- isFetching: false,- isError: false,- }),- useConfigMock: vi.fn().mockReturnValue({- data: { app_mode: "oss", feature_flags: defaultFeatureFlags },- isLoading: false,- }),- };- },- );-- vi.mock("#/hooks/query/use-is-authed", () => ({- useIsAuthed: () => useIsAuthedMock(),- }));-- vi.mock("#/hooks/query/use-config", () => ({- useConfig: () => useConfigMock(),- }));-- const RouteStub = createRoutesStub([- { Component: MainApp, path: "/" },- { Component: () => <div data-testid="login-page" />, path: "/login" },- ]);-- const { userIsAuthenticatedMock, settingsAreUpToDateMock } = vi.hoisted(- () => ({- userIsAuthenticatedMock: vi.fn(),- settingsAreUpToDateMock: vi.fn(),- }),- );-- beforeAll(() => {- vi.mock("#/utils/user-is-authenticated", () => ({- userIsAuthenticated: userIsAuthenticatedMock.mockReturnValue(true),- }));-- vi.mock("#/services/settings", async (importOriginal) => ({- ...(await importOriginal<typeof import("#/services/settings")>()),- settingsAreUpToDate: settingsAreUpToDateMock,- }));- });-- afterEach(() => {- vi.clearAllMocks();- localStorage.clear();- });-- it("should render", async () => {- useIsAuthedMock.mockReturnValue({- data: true,- isLoading: false,- isFetching: false,- isError: false,- });- useConfigMock.mockReturnValue({- data: { app_mode: "oss", feature_flags: DEFAULT_FEATURE_FLAGS },- isLoading: false,- });-- renderWithProviders(<RouteStub />);- await screen.findByTestId("root-layout");- });-- it.skip("should render the AI config modal if settings are not up-to-date", async () => {- settingsAreUpToDateMock.mockReturnValue(false);- renderWithProviders(<RouteStub />);-- await screen.findByTestId("ai-config-modal");- });-- it("should not render the AI config modal if the settings are up-to-date", async () => {- settingsAreUpToDateMock.mockReturnValue(true);- useIsAuthedMock.mockReturnValue({- data: true,- isLoading: false,- isFetching: false,- isError: false,- });- useConfigMock.mockReturnValue({- data: { app_mode: "oss", feature_flags: DEFAULT_FEATURE_FLAGS },- isLoading: false,- });-- renderWithProviders(<RouteStub />);-- await waitFor(() => {- expect(screen.queryByTestId("ai-config-modal")).not.toBeInTheDocument();- });- });-- // FIXME: This test fails when it shouldn't be, please investigate- it.skip("should render and capture the user's consent if oss mode", async () => {- const user = userEvent.setup();- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- const handleCaptureConsentSpy = vi.spyOn(- CaptureConsent,- "handleCaptureConsent",- );-- // @ts-expect-error - partial mock for testing- getConfigSpy.mockResolvedValue({- app_mode: "oss",- posthog_client_key: "test-key",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- });-- // @ts-expect-error - We only care about the user_consents_to_analytics field- getSettingsSpy.mockResolvedValue({- user_consents_to_analytics: null,- });-- renderWithProviders(<RouteStub />);-- // The user has not consented to tracking- const consentForm = await screen.findByTestId("user-capture-consent-form");- expect(handleCaptureConsentSpy).not.toHaveBeenCalled();-- const submitButton = within(consentForm).getByRole("button", {- name: /confirm preferences/i,- });- await user.click(submitButton);-- // The user has now consented to tracking- expect(handleCaptureConsentSpy).toHaveBeenCalledWith(true);- expect(- screen.queryByTestId("user-capture-consent-form"),- ).not.toBeInTheDocument();- });-- it("should not render the user consent form if saas mode", async () => {- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- // @ts-expect-error - partial mock for testing- getConfigSpy.mockResolvedValue({- app_mode: "saas",- posthog_client_key: "test-key",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- });- useConfigMock.mockReturnValue({- data: { app_mode: "saas", feature_flags: DEFAULT_FEATURE_FLAGS },- isLoading: false,- });-- renderWithProviders(<RouteStub />);-- await waitFor(() => {- expect(- screen.queryByTestId("user-capture-consent-form"),- ).not.toBeInTheDocument();- });- });-- // TODO: Likely failing due to how tokens are now handled in context. Move to e2e tests- it.skip("should render a new project button if a token is set", async () => {- localStorage.setItem("token", "test-token");- const { rerender } = renderWithProviders(<RouteStub />);-- await screen.findByTestId("new-project-button");-- localStorage.removeItem("token");- rerender(<RouteStub />);-- await waitFor(() => {- expect(- screen.queryByTestId("new-project-button"),- ).not.toBeInTheDocument();- });- });-- // TODO: Move to e2e tests- it.skip("should update the i18n language when the language settings change", async () => {- const changeLanguageSpy = vi.spyOn(i18n, "changeLanguage");- const { rerender } = renderWithProviders(<RouteStub />);-- // The default language is English- expect(changeLanguageSpy).toHaveBeenCalledWith("en");-- localStorage.setItem("LANGUAGE", "es");-- rerender(<RouteStub />);- expect(changeLanguageSpy).toHaveBeenCalledWith("es");-- rerender(<RouteStub />);- // The language has not changed, so the spy should not have been called again- expect(changeLanguageSpy).toHaveBeenCalledTimes(2);- });-- // FIXME: logoutCleanup has been replaced with a hook- it.skip("should call logoutCleanup after a logout", async () => {- const user = userEvent.setup();- localStorage.setItem("ghToken", "test-token");-- // const logoutCleanupSpy = vi.spyOn(LogoutCleanup, "logoutCleanup");- renderWithProviders(<RouteStub />);-- const userActions = await screen.findByTestId("user-actions");- const userAvatar = within(userActions).getByTestId("user-avatar");- await user.click(userAvatar);-- const logout = within(userActions).getByRole("button", { name: /logout/i });- await user.click(logout);-- // expect(logoutCleanupSpy).toHaveBeenCalled();- expect(localStorage.getItem("ghToken")).toBeNull();- });-- it("should render a you're in toast if it is a new user and in saas mode", async () => {- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- const displaySuccessToastSpy = vi.spyOn(- ToastHandlers,- "displaySuccessToast",- );-- // @ts-expect-error - partial mock for testing- getConfigSpy.mockResolvedValue({- app_mode: "saas",- posthog_client_key: "test-key",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- });- useConfigMock.mockReturnValue({- data: { app_mode: "saas", feature_flags: DEFAULT_FEATURE_FLAGS },- isLoading: false,- });-- getSettingsSpy.mockRejectedValue(createAxiosNotFoundErrorObject());-- renderWithProviders(<RouteStub />);-- await waitFor(() => {- expect(displaySuccessToastSpy).toHaveBeenCalledWith("BILLING$YOURE_IN");- expect(displaySuccessToastSpy).toHaveBeenCalledOnce();- });- });-});diff --git a/__tests__/routes/accept-tos.test.tsx b/__tests__/routes/accept-tos.test.tsxdeleted file mode 100644index 2e1e48a1c7..0000000000--- a/__tests__/routes/accept-tos.test.tsx+++ /dev/null@@ -1,146 +0,0 @@-import { render, screen } from "@testing-library/react";-import { it, describe, expect, vi, beforeEach, afterEach } from "vitest";-import userEvent from "@testing-library/user-event";-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import AcceptTOS from "#/routes/accept-tos";-import * as CaptureConsent from "#/utils/handle-capture-consent";-import { openHands } from "#/api/open-hands-axios";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";--// Mock the react-router hooks-vi.mock("react-router", async (importOriginal) => ({- ...(await importOriginal<typeof import("react-router")>()),- useNavigate: () => vi.fn(),- useSearchParams: () => [- {- get: (param: string) => {- if (param === "redirect_url") {- return "/dashboard";- }- return null;- },- },- ],- useRevalidator: () => ({ revalidate: vi.fn() }),-}));--// Mock the axios instance-vi.mock("#/api/open-hands-axios", () => ({- openHands: {- post: vi.fn(),- },-}));--// Mock the toast handlers-vi.mock("#/utils/custom-toast-handlers", () => ({- displayErrorToast: vi.fn(),-}));--// Create a wrapper with QueryClientProvider-const createWrapper = () => {- const queryClient = new QueryClient({- defaultOptions: {- queries: {- retry: false,- },- },- });-- function Wrapper({ children }: { children: React.ReactNode }) {- return (- <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>- );- }-- return Wrapper;-};--describe("AcceptTOS", () => {- beforeEach(() => {- useSelectedOrganizationStore.setState({ organizationId: "test-org-id" });- vi.stubGlobal("location", { href: "" });- });-- afterEach(() => {- vi.unstubAllGlobals();- vi.resetAllMocks();- });-- it("should render a TOS checkbox that is unchecked by default", () => {- render(<AcceptTOS />, { wrapper: createWrapper() });-- const checkbox = screen.getByRole("checkbox");- const continueButton = screen.getByRole("button", { name: "TOS$CONTINUE" });-- expect(checkbox).not.toBeChecked();- expect(continueButton).toBeDisabled();- });-- it("should enable the continue button when the TOS checkbox is checked", async () => {- const user = userEvent.setup();- render(<AcceptTOS />, { wrapper: createWrapper() });-- const checkbox = screen.getByRole("checkbox");- const continueButton = screen.getByRole("button", { name: "TOS$CONTINUE" });-- expect(continueButton).toBeDisabled();-- await user.click(checkbox);-- expect(continueButton).not.toBeDisabled();- });-- it("should set user analytics consent to true when the user accepts TOS", async () => {- const handleCaptureConsentSpy = vi.spyOn(- CaptureConsent,- "handleCaptureConsent",- );-- // Mock the API response- vi.mocked(openHands.post).mockResolvedValue({- data: { redirect_url: "/dashboard" },- });-- const user = userEvent.setup();- render(<AcceptTOS />, { wrapper: createWrapper() });-- const checkbox = screen.getByRole("checkbox");- await user.click(checkbox);-- const continueButton = screen.getByRole("button", { name: "TOS$CONTINUE" });- await user.click(continueButton);-- // Wait for the mutation to complete- await new Promise(process.nextTick);-- expect(handleCaptureConsentSpy).toHaveBeenCalledWith(- expect.anything(),- true,- );- expect(openHands.post).toHaveBeenCalledWith("/api/accept_tos", {- redirect_url: "/dashboard",- });- });-- it("should handle external redirect URLs", async () => {- // Mock the API response with an external URL- const externalUrl = "https://example.com/callback";- vi.mocked(openHands.post).mockResolvedValue({- data: { redirect_url: externalUrl },- });-- const user = userEvent.setup();- render(<AcceptTOS />, { wrapper: createWrapper() });-- const checkbox = screen.getByRole("checkbox");- await user.click(checkbox);-- const continueButton = screen.getByRole("button", { name: "TOS$CONTINUE" });- await user.click(continueButton);-- // Wait for the mutation to complete- await new Promise(process.nextTick);-- expect(window.location.href).toBe(externalUrl);- });-});diff --git a/__tests__/routes/api-keys.test.tsx b/__tests__/routes/api-keys.test.tsxdeleted file mode 100644index f243654845..0000000000--- a/__tests__/routes/api-keys.test.tsx+++ /dev/null@@ -1,10 +0,0 @@-import { describe, expect, it } from "vitest";-import { clientLoader } from "#/routes/api-keys";--describe("clientLoader permission checks", () => {- it("should export a clientLoader for route protection", () => {- // This test verifies the clientLoader is exported (for consistency with other routes)- expect(clientLoader).toBeDefined();- expect(typeof clientLoader).toBe("function");- });-});diff --git a/__tests__/routes/app-settings.test.tsx b/__tests__/routes/app-settings.test.tsxindex a40d21d8e6..15e3588e79 100644--- a/__tests__/routes/app-settings.test.tsx+++ b/__tests__/routes/app-settings.test.tsx@@ -1,324 +1,102 @@-import { render, screen, waitFor } from "@testing-library/react";-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";import { QueryClient, QueryClientProvider } from "@tanstack/react-query";+import { render, screen, waitFor } from "@testing-library/react";import userEvent from "@testing-library/user-event";+import { beforeEach, describe, expect, it, vi } from "vitest";import AppSettingsScreen, { clientLoader } from "#/routes/app-settings";import SettingsService from "#/api/settings-service/settings-service.api";import { MOCK_DEFAULT_USER_SETTINGS } from "#/mocks/handlers";-import { AvailableLanguages } from "#/i18n";-import * as CaptureConsent from "#/utils/handle-capture-consent";-import * as ToastHandlers from "#/utils/custom-toast-handlers";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";--beforeEach(() => {- useSelectedOrganizationStore.setState({ organizationId: "test-org-id" });-});--const renderAppSettingsScreen = () =>- render(<AppSettingsScreen />, {+import { Settings } from "#/types/settings";++function buildSettings(overrides: Partial<Settings> = {}): Settings {+ return {+ ...MOCK_DEFAULT_USER_SETTINGS,+ ...overrides,+ agent_settings: {+ ...MOCK_DEFAULT_USER_SETTINGS.agent_settings,+ ...overrides.agent_settings,+ },+ conversation_settings: {+ ...MOCK_DEFAULT_USER_SETTINGS.conversation_settings,+ ...overrides.conversation_settings,+ },+ };+}++function renderAppSettingsScreen() {+ return render(<AppSettingsScreen />, {wrapper: ({ children }) => (- <QueryClientProvider client={new QueryClient()}>+ <QueryClientProvider+ client={new QueryClient({+ defaultOptions: { queries: { retry: false } },+ })}+ >{children}</QueryClientProvider>),});+}-describe("clientLoader permission checks", () => {- it("should export a clientLoader for route protection", () => {- // This test verifies the clientLoader is exported (for consistency with other routes)- expect(clientLoader).toBeDefined();- expect(typeof clientLoader).toBe("function");- });-});--describe("Content", () => {- it("should render the screen", () => {- renderAppSettingsScreen();- screen.getByTestId("app-settings-screen");+describe("AppSettingsScreen", () => {+ beforeEach(() => {+ vi.restoreAllMocks();});- it("should render the correct default values", async () => {- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- language: "no",- user_consents_to_analytics: true,- enable_sound_notifications: true,- });-- renderAppSettingsScreen();-- await waitFor(() => {- const language = screen.getByTestId("language-input");- const analytics = screen.getByTestId("enable-analytics-switch");- const sound = screen.getByTestId("enable-sound-notifications-switch");-- expect(language).toHaveValue("Norsk");- expect(analytics).toBeChecked();- expect(sound).toBeChecked();- });- });-- it("should render analytics toggle as enabled when server returns null (opt-in by default)", async () => {- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- user_consents_to_analytics: null,- });-- renderAppSettingsScreen();-- await waitFor(() => {- const analytics = screen.getByTestId("enable-analytics-switch");- expect(analytics).toBeChecked();- });- });-- it("should render the language options", async () => {- renderAppSettingsScreen();-- const language = await screen.findByTestId("language-input");- await userEvent.click(language);-- AvailableLanguages.forEach((lang) => {- const option = screen.getByText(lang.label);- expect(option).toBeInTheDocument();- });- });-});--describe("Form submission", () => {- afterEach(() => {- vi.clearAllMocks();- });-- it("should submit the form with the correct values", async () => {- const saveSettingsSpy = vi.spyOn(SettingsService, "saveSettings");- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue(MOCK_DEFAULT_USER_SETTINGS);-- renderAppSettingsScreen();-- const language = await screen.findByTestId("language-input");- const analytics = await screen.findByTestId("enable-analytics-switch");- const sound = await screen.findByTestId(- "enable-sound-notifications-switch",- );-- expect(language).toHaveValue("English");- expect(analytics).not.toBeChecked();- expect(sound).not.toBeChecked();-- // change language- await userEvent.click(language);- const norsk = screen.getByText("Norsk");- await userEvent.click(norsk);- expect(language).toHaveValue("Norsk");-- // toggle options- await userEvent.click(analytics);- expect(analytics).toBeChecked();- await userEvent.click(sound);- expect(sound).toBeChecked();-- // submit the form- const submit = await screen.findByTestId("submit-button");- await userEvent.click(submit);- expect(saveSettingsSpy).toHaveBeenCalledWith(- expect.objectContaining({- language: "no",- user_consents_to_analytics: true,- enable_sound_notifications: true,+ it("renders the OSS application settings form", async () => {+ vi.spyOn(SettingsService, "getSettings").mockResolvedValue(+ buildSettings({+ git_user_name: "octocat",+ git_user_email: "[email protected]",}),);- });-- it("should only enable the submit button when there are changes", async () => {- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue(MOCK_DEFAULT_USER_SETTINGS);-- renderAppSettingsScreen();-- const submit = await screen.findByTestId("submit-button");- expect(submit).toBeDisabled();-- // Language check- const language = await screen.findByTestId("language-input");- await userEvent.click(language);- const norsk = screen.getByText("Norsk");- await userEvent.click(norsk);- expect(submit).not.toBeDisabled();-- await userEvent.click(language);- const english = screen.getByText("English");- await userEvent.click(english);- expect(submit).toBeDisabled();-- // Analytics check- const analytics = await screen.findByTestId("enable-analytics-switch");- await userEvent.click(analytics);- expect(submit).not.toBeDisabled();-- await userEvent.click(analytics);- expect(submit).toBeDisabled();-- // Sound check- const sound = await screen.findByTestId(- "enable-sound-notifications-switch",- );- await userEvent.click(sound);- expect(submit).not.toBeDisabled();-- await userEvent.click(sound);- expect(submit).toBeDisabled();- });-- it("should call handleCaptureConsents with true when the analytics switch is toggled", async () => {- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue(MOCK_DEFAULT_USER_SETTINGS);-- const handleCaptureConsentsSpy = vi.spyOn(- CaptureConsent,- "handleCaptureConsent",- );renderAppSettingsScreen();- const analytics = await screen.findByTestId("enable-analytics-switch");- const submit = await screen.findByTestId("submit-button");-- await userEvent.click(analytics);- await userEvent.click(submit);-- await waitFor(() =>- expect(handleCaptureConsentsSpy).toHaveBeenCalledWith(- expect.anything(),- true,- ),+ const analyticsSwitch = await screen.findByTestId(+ "enable-analytics-switch",);- });-- it("should call handleCaptureConsents with false when the analytics switch is toggled", async () => {- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- user_consents_to_analytics: true,- });- const handleCaptureConsentsSpy = vi.spyOn(- CaptureConsent,- "handleCaptureConsent",- );-- renderAppSettingsScreen();-- const analytics = await screen.findByTestId("enable-analytics-switch");- const submit = await screen.findByTestId("submit-button");-- await userEvent.click(analytics);- await userEvent.click(submit);-- await waitFor(() =>- expect(handleCaptureConsentsSpy).toHaveBeenCalledWith(- expect.anything(),- false,- ),+ expect(analyticsSwitch).toBeInTheDocument();+ expect(screen.getByTestId("git-user-name-input")).toHaveValue("octocat");+ expect(screen.getByTestId("git-user-email-input")).toHaveValue(+ "[email protected]",);});- // flaky test- it.skip("should disable the button when submitting changes", async () => {- renderAppSettingsScreen();+ it("saves updated git author details in OSS mode", async () => {+ const saveSettingsSpy = vi+ .spyOn(SettingsService, "saveSettings")+ .mockResolvedValue(true);- const submit = await screen.findByTestId("submit-button");- expect(submit).toBeDisabled();-- const sound = await screen.findByTestId(- "enable-sound-notifications-switch",+ vi.spyOn(SettingsService, "getSettings").mockResolvedValue(+ buildSettings({+ git_user_name: "octocat",+ git_user_email: "[email protected]",+ }),);- await userEvent.click(sound);- expect(submit).not.toBeDisabled();-- // submit the form- await userEvent.click(submit);-- expect(submit).toHaveTextContent("Saving...");- expect(submit).toBeDisabled();-- await waitFor(() => expect(submit).toHaveTextContent("Save"));- });-- it("should disable the button after submitting changes", async () => {- const saveSettingsSpy = vi.spyOn(SettingsService, "saveSettings");- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue(MOCK_DEFAULT_USER_SETTINGS);renderAppSettingsScreen();- const submit = await screen.findByTestId("submit-button");- expect(submit).toBeDisabled();-- const sound = await screen.findByTestId(- "enable-sound-notifications-switch",- );- await userEvent.click(sound);- expect(submit).not.toBeDisabled();+ const user = userEvent.setup();+ const nameInput = await screen.findByTestId("git-user-name-input");- // submit the form- await userEvent.click(submit);- expect(saveSettingsSpy).toHaveBeenCalled();+ await user.clear(nameInput);+ await user.type(nameInput, "monalisa");+ await user.click(screen.getByTestId("submit-button"));- await waitFor(() => expect(submit).toBeDisabled());+ await waitFor(() => {+ expect(saveSettingsSpy).toHaveBeenCalledWith(+ expect.objectContaining({+ git_user_name: "monalisa",+ git_user_email: "[email protected]",+ }),+ );+ });});});-describe("Status toasts", () => {- it("should call displaySuccessToast when the settings are saved", async () => {- const saveSettingsSpy = vi.spyOn(SettingsService, "saveSettings");- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue(MOCK_DEFAULT_USER_SETTINGS);-- const displaySuccessToastSpy = vi.spyOn(- ToastHandlers,- "displaySuccessToast",- );-- renderAppSettingsScreen();-- // Toggle setting to change- const sound = await screen.findByTestId(- "enable-sound-notifications-switch",- );- await userEvent.click(sound);-- const submit = await screen.findByTestId("submit-button");- await userEvent.click(submit);-- expect(saveSettingsSpy).toHaveBeenCalled();- await waitFor(() => expect(displaySuccessToastSpy).toHaveBeenCalled());- });-- it("should call displayErrorToast when the settings fail to save", async () => {- const saveSettingsSpy = vi.spyOn(SettingsService, "saveSettings");- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue(MOCK_DEFAULT_USER_SETTINGS);-- const displayErrorToastSpy = vi.spyOn(ToastHandlers, "displayErrorToast");-- saveSettingsSpy.mockRejectedValue(new Error("Failed to save settings"));-- renderAppSettingsScreen();-- // Toggle setting to change- const sound = await screen.findByTestId(- "enable-sound-notifications-switch",- );- await userEvent.click(sound);-- const submit = await screen.findByTestId("submit-button");- await userEvent.click(submit);-- expect(saveSettingsSpy).toHaveBeenCalled();- expect(displayErrorToastSpy).toHaveBeenCalled();+describe("clientLoader permission checks", () => {+ it("exports a clientLoader", () => {+ expect(clientLoader).toBeDefined();+ expect(typeof clientLoader).toBe("function");});});diff --git a/__tests__/routes/billing.test.tsx b/__tests__/routes/billing.test.tsxdeleted file mode 100644index 090ccbd085..0000000000--- a/__tests__/routes/billing.test.tsx+++ /dev/null@@ -1,446 +0,0 @@-import { render, screen, waitFor } from "@testing-library/react";-import { createRoutesStub } from "react-router";-import { describe, expect, it, vi, beforeEach, afterEach } from "vitest";-import { QueryClientProvider } from "@tanstack/react-query";-import BillingSettingsScreen, { clientLoader } from "#/routes/billing";-import { PaymentForm } from "#/components/features/payment/payment-form";-import OptionService from "#/api/option-service/option-service.api";-import { OrganizationMember } from "#/types/org";-import * as orgStore from "#/stores/selected-organization-store";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { createMockWebClientConfig } from "#/mocks/settings-handlers";--// Mock the i18next hook-vi.mock("react-i18next", async () => {- const actual =- await vi.importActual<typeof import("react-i18next")>("react-i18next");- return {- ...actual,- useTranslation: () => ({- t: (key: string) => key,- i18n: {- changeLanguage: vi.fn(),- },- }),- };-});--// Mock toast handlers-const mockDisplaySuccessToast = vi.fn();-const mockDisplayErrorToast = vi.fn();-vi.mock("#/utils/custom-toast-handlers", () => ({- displaySuccessToast: (...args: unknown[]) => mockDisplaySuccessToast(...args),- displayErrorToast: (...args: unknown[]) => mockDisplayErrorToast(...args),-}));--// Mock useTracking hook-const mockTrackCreditsPurchased = vi.fn();-vi.mock("#/hooks/use-tracking", () => ({- useTracking: () => ({- trackCreditsPurchased: mockTrackCreditsPurchased,- }),-}));--// Mock useBalance hook-const mockUseBalance = vi.fn();-vi.mock("#/hooks/query/use-balance", () => ({- useBalance: () => mockUseBalance(),-}));--// Mock useCreateStripeCheckoutSession hook-vi.mock(- "#/hooks/mutation/stripe/use-create-stripe-checkout-session",- () => ({- useCreateStripeCheckoutSession: () => ({- mutate: vi.fn(),- isPending: false,- }),- }),-);--describe("Billing Route", () => {- const { mockQueryClient } = vi.hoisted(() => ({- mockQueryClient: (() => {- const { QueryClient } = require("@tanstack/react-query");- return new QueryClient({- defaultOptions: {- queries: { retry: false },- },- });- })(),- }));-- // Mock queryClient to use our test instance- vi.mock("#/query-client-config", () => ({- queryClient: mockQueryClient,- }));-- const createMockUser = (- overrides: Partial<OrganizationMember> = {},- ): OrganizationMember => ({- org_id: "org-1",- user_id: "user-1",- email: "[email protected]",- role: "member",- llm_api_key: "",- max_iterations: 100,- llm_model: "gpt-4",- llm_base_url: "",- status: "active",- ...overrides,- });-- const seedActiveUser = (user: Partial<OrganizationMember>) => {- orgStore.useSelectedOrganizationStore.setState({ organizationId: "org-1" });- vi.spyOn(organizationService, "getMe").mockResolvedValue(- createMockUser(user),- );- };-- const setupSaasMode = (featureFlags = {}) => {- vi.spyOn(OptionService, "getConfig").mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- ...featureFlags,- },- }),- );- };-- beforeEach(() => {- mockQueryClient.clear();- });-- afterEach(() => {- vi.clearAllMocks();- });-- describe("clientLoader cache key", () => {- it("should use the 'web-client-config' query key to read cached config", async () => {- // Arrange: pre-populate the cache under the canonical key- seedActiveUser({ role: "admin" });- const cachedConfig = {- app_mode: "saas" as const,- posthog_client_key: "test",- feature_flags: {- enable_billing: true,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- },- };- mockQueryClient.setQueryData(["web-client-config"], cachedConfig);-- const getConfigSpy = vi.spyOn(OptionService, "getConfig");-- // Act: invoke the clientLoader directly- const result = await clientLoader();-- // Assert: the loader should have found the cached config and NOT called getConfig- expect(getConfigSpy).not.toHaveBeenCalled();- expect(result).toBeNull(); // admin with billing enabled = no redirect- });- });-- describe("clientLoader permission checks", () => {- it("should redirect members to /settings/user when accessing billing directly", async () => {- // Arrange- setupSaasMode();- seedActiveUser({ role: "member" });-- const RouterStub = createRoutesStub([- {- Component: BillingSettingsScreen,- loader: clientLoader,- path: "/settings/billing",- },- {- Component: () => <div data-testid="user-settings-screen" />,- path: "/settings/user",- },- ]);-- // Act- render(<RouterStub initialEntries={["/settings/billing"]} />, {- wrapper: ({ children }) => (- <QueryClientProvider client={mockQueryClient}>- {children}- </QueryClientProvider>- ),- });-- // Assert - should be redirected to user settings- await waitFor(() => {- expect(screen.getByTestId("user-settings-screen")).toBeInTheDocument();- });- });-- it("should allow admins to access billing route", async () => {- // Arrange- setupSaasMode();- seedActiveUser({ role: "admin" });-- const RouterStub = createRoutesStub([- {- Component: BillingSettingsScreen,- loader: clientLoader,- path: "/settings/billing",- },- {- Component: () => <div data-testid="user-settings-screen" />,- path: "/settings/user",- },- ]);-- // Act- render(<RouterStub initialEntries={["/settings/billing"]} />, {- wrapper: ({ children }) => (- <QueryClientProvider client={mockQueryClient}>- {children}- </QueryClientProvider>- ),- });-- // Assert - should stay on billing page (component renders PaymentForm)- await waitFor(() => {- expect(- screen.queryByTestId("user-settings-screen"),- ).not.toBeInTheDocument();- });- });-- it("should allow owners to access billing route", async () => {- // Arrange- setupSaasMode();- seedActiveUser({ role: "owner" });-- const RouterStub = createRoutesStub([- {- Component: BillingSettingsScreen,- loader: clientLoader,- path: "/settings/billing",- },- {- Component: () => <div data-testid="user-settings-screen" />,- path: "/settings/user",- },- ]);-- // Act- render(<RouterStub initialEntries={["/settings/billing"]} />, {- wrapper: ({ children }) => (- <QueryClientProvider client={mockQueryClient}>- {children}- </QueryClientProvider>- ),- });-- // Assert - should stay on billing page- await waitFor(() => {- expect(- screen.queryByTestId("user-settings-screen"),- ).not.toBeInTheDocument();- });- });-- it("should redirect when user is undefined (no org selected)", async () => {- // Arrange: no org selected, so getActiveOrganizationUser returns undefined- setupSaasMode();- // Explicitly clear org store so getActiveOrganizationUser returns undefined- orgStore.useSelectedOrganizationStore.setState({ organizationId: null });-- const RouterStub = createRoutesStub([- {- Component: BillingSettingsScreen,- loader: clientLoader,- path: "/settings/billing",- },- {- Component: () => <div data-testid="user-settings-screen" />,- path: "/settings/user",- },- ]);-- // Act- render(<RouterStub initialEntries={["/settings/billing"]} />, {- wrapper: ({ children }) => (- <QueryClientProvider client={mockQueryClient}>- {children}- </QueryClientProvider>- ),- });-- // Assert - should be redirected to user settings- await waitFor(() => {- expect(screen.getByTestId("user-settings-screen")).toBeInTheDocument();- });- });-- it("should redirect all users when enable_billing is false", async () => {- // Arrange: enable_billing=false means billing is hidden for everyone- setupSaasMode({ enable_billing: false });- seedActiveUser({ role: "owner" }); // Even owners should be redirected-- const RouterStub = createRoutesStub([- {- Component: BillingSettingsScreen,- loader: clientLoader,- path: "/settings/billing",- },- {- Component: () => <div data-testid="user-settings-screen" />,- path: "/settings/user",- },- ]);-- // Act- render(<RouterStub initialEntries={["/settings/billing"]} />, {- wrapper: ({ children }) => (- <QueryClientProvider client={mockQueryClient}>- {children}- </QueryClientProvider>- ),- });-- // Assert - should be redirected to user settings- await waitFor(() => {- expect(screen.getByTestId("user-settings-screen")).toBeInTheDocument();- });- });- });-- describe("checkout success flow", () => {- beforeEach(() => {- mockUseBalance.mockReturnValue({- data: "150.00",- isLoading: false,- });- });-- it("should display success toast exactly once and track credits on checkout success", async () => {- const RouterStub = createRoutesStub([- {- Component: BillingSettingsScreen,- path: "/settings/billing",- },- ]);-- render(- <RouterStub- initialEntries={[- "/settings/billing?checkout=success&amount=25&session_id=sess_123",- ]}- />,- {- wrapper: ({ children }) => (- <QueryClientProvider client={mockQueryClient}>- {children}- </QueryClientProvider>- ),- },- );-- await waitFor(() => {- expect(mockDisplaySuccessToast).toHaveBeenCalledTimes(1);- });-- expect(mockTrackCreditsPurchased).toHaveBeenCalledTimes(1);- expect(mockTrackCreditsPurchased).toHaveBeenCalledWith({- amountUsd: 25,- stripeSessionId: "sess_123",- });- });-- it("should display error toast exactly once on checkout cancel", async () => {- const RouterStub = createRoutesStub([- {- Component: BillingSettingsScreen,- path: "/settings/billing",- },- ]);-- render(- <RouterStub- initialEntries={["/settings/billing?checkout=cancel"]}- />,- {- wrapper: ({ children }) => (- <QueryClientProvider client={mockQueryClient}>- {children}- </QueryClientProvider>- ),- },- );-- await waitFor(() => {- expect(mockDisplayErrorToast).toHaveBeenCalledTimes(1);- });-- expect(mockTrackCreditsPurchased).not.toHaveBeenCalled();- });- });-- describe("PaymentForm permission behavior", () => {- beforeEach(() => {- mockUseBalance.mockReturnValue({- data: "150.00",- isLoading: false,- });- });-- it("should disable input and button when isDisabled is true, but show balance", async () => {- // Arrange & Act- render(<PaymentForm isDisabled />, {- wrapper: ({ children }) => (- <QueryClientProvider client={mockQueryClient}>- {children}- </QueryClientProvider>- ),- });-- // Assert - balance is visible- const balance = screen.getByTestId("user-balance");- expect(balance).toBeInTheDocument();- expect(balance).toHaveTextContent("$150.00");-- // Assert - input is disabled- const topUpInput = screen.getByTestId("top-up-input");- expect(topUpInput).toBeDisabled();-- // Assert - button is disabled- const submitButton = screen.getByRole("button");- expect(submitButton).toBeDisabled();- });-- it("should enable input and button when isDisabled is false", async () => {- // Arrange & Act- render(<PaymentForm isDisabled={false} />, {- wrapper: ({ children }) => (- <QueryClientProvider client={mockQueryClient}>- {children}- </QueryClientProvider>- ),- });-- // Assert - input is enabled- const topUpInput = screen.getByTestId("top-up-input");- expect(topUpInput).not.toBeDisabled();-- // Assert - button starts disabled (no amount entered) but is NOT- // permanently disabled by the isDisabled prop- const submitButton = screen.getByRole("button");- // The button is disabled because no valid amount is entered, not because of isDisabled- expect(submitButton).toBeDisabled();- });- });-});diff --git a/__tests__/routes/device-verify.test.tsx b/__tests__/routes/device-verify.test.tsxindex 04f1f79ab8..2cce6c7e24 100644--- a/__tests__/routes/device-verify.test.tsx+++ b/__tests__/routes/device-verify.test.tsx@@ -5,21 +5,11 @@ import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import { createRoutesStub } from "react-router";import DeviceVerify from "#/routes/device-verify";-const { useIsAuthedMock, mockUseAppMode } = vi.hoisted(() => ({+const { useIsAuthedMock } = vi.hoisted(() => ({useIsAuthedMock: vi.fn(() => ({data: false as boolean | undefined,isLoading: false,})),- mockUseAppMode: vi.fn(() => ({- isOss: false,- isSaas: true,- isCloud: true,- isSelfHosted: false,- isEnterpriseSelfHosted: false,- isEnterpriseCloud: true,- appMode: "saas" as string | undefined,- deploymentMode: "cloud" as string | undefined,- })),}));vi.mock("#/hooks/query/use-is-authed", () => ({@@ -32,10 +22,6 @@ vi.mock("posthog-js/react", () => ({}),}));-vi.mock("#/hooks/use-app-mode", () => ({- useAppMode: () => mockUseAppMode(),-}));-const RouterStub = createRoutesStub([{Component: DeviceVerify,@@ -75,17 +61,6 @@ describe("DeviceVerify", () => {}),),);- // Reset useAppMode to SaaS Cloud (CTA enabled) by default- mockUseAppMode.mockReturnValue({- isOss: false,- isSaas: true,- isCloud: true,- isSelfHosted: false,- isEnterpriseSelfHosted: false,- isEnterpriseCloud: true,- appMode: "saas",- deploymentMode: "cloud",- });});afterEach(() => {@@ -253,73 +228,7 @@ describe("DeviceVerify", () => {});});- it("should include the LoginCTA component when in SaaS Cloud mode", async () => {- mockUseAppMode.mockReturnValue({- isOss: false,- isSaas: true,- isCloud: true,- isSelfHosted: false,- isEnterpriseSelfHosted: false,- isEnterpriseCloud: true,- appMode: "saas",- deploymentMode: "cloud",- });- useIsAuthedMock.mockReturnValue({- data: true,- isLoading: false,- });-- render(- <RouterStub initialEntries={["/device-verify?user_code=ABC-123"]} />,- {- wrapper: createWrapper(),- },- );-- await waitFor(() => {- expect(screen.getByTestId("login-cta")).toBeInTheDocument();- });- });-- it("should not include the LoginCTA component when in OSS mode", async () => {- mockUseAppMode.mockReturnValue({- isOss: true,- isSaas: false,- isCloud: false,- isSelfHosted: false,- isEnterpriseSelfHosted: false,- isEnterpriseCloud: false,- appMode: "oss",- deploymentMode: undefined,- });- useIsAuthedMock.mockReturnValue({- data: true,- isLoading: false,- });-- render(- <RouterStub initialEntries={["/device-verify?user_code=ABC-123"]} />,- {- wrapper: createWrapper(),- },- );-- await waitFor(() => {- expect(screen.queryByTestId("login-cta")).not.toBeInTheDocument();- });- });-- it("should not include the LoginCTA and be center-aligned when in SaaS Self-hosted mode", async () => {- mockUseAppMode.mockReturnValue({- isOss: false,- isSaas: true,- isCloud: false,- isSelfHosted: true,- isEnterpriseSelfHosted: true,- isEnterpriseCloud: false,- appMode: "saas",- deploymentMode: "self_hosted",- });+ it("keeps the device verification view OSS-only without login CTA chrome", async () => {useIsAuthedMock.mockReturnValue({data: true,isLoading: false,@@ -338,17 +247,9 @@ describe("DeviceVerify", () => {).toBeInTheDocument();});- // CTA should not be renderedexpect(screen.queryByTestId("login-cta")).not.toBeInTheDocument();-- // Container should use max-w-md (centered layout) instead of max-w-4xl- const container = document.querySelector(".max-w-md");- expect(container).toBeInTheDocument();+ expect(document.querySelector(".max-w-md")).toBeInTheDocument();expect(document.querySelector(".max-w-4xl")).not.toBeInTheDocument();-- // Authorization card should have mx-auto for centering- const authCard = container?.querySelector(".mx-auto");- expect(authCard).toBeInTheDocument();});it("should call window.close when cancel button is clicked", async () => {diff --git a/__tests__/routes/git-settings.test.tsx b/__tests__/routes/git-settings.test.tsxindex 860bdaf1d0..d79af44a1c 100644--- a/__tests__/routes/git-settings.test.tsx+++ b/__tests__/routes/git-settings.test.tsx@@ -1,664 +1,77 @@-import { render, screen, waitFor } from "@testing-library/react";-import { createRoutesStub } from "react-router";-import { beforeEach, describe, expect, it, vi } from "vitest";import { QueryClient, QueryClientProvider } from "@tanstack/react-query";+import { render, screen } from "@testing-library/react";import userEvent from "@testing-library/user-event";-import i18next from "i18next";-import { I18nextProvider } from "react-i18next";+import { beforeEach, describe, expect, it, vi } from "vitest";import GitSettingsScreen, { clientLoader } from "#/routes/git-settings";import SettingsService from "#/api/settings-service/settings-service.api";-import OptionService from "#/api/option-service/option-service.api";-import AuthService from "#/api/auth-service/auth-service.api";import { MOCK_DEFAULT_USER_SETTINGS } from "#/mocks/handlers";-import { WebClientConfig } from "#/api/option-service/option.types";-import * as ToastHandlers from "#/utils/custom-toast-handlers";-import { SecretsService } from "#/api/secrets-service";--const VALID_OSS_CONFIG: WebClientConfig = {- app_mode: "oss",- posthog_client_key: "456",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- providers_configured: [],- maintenance_start_time: null,- auth_url: null,- recaptcha_site_key: null,- faulty_models: [],- error_message: null,- updated_at: "2024-01-14T10:00:00Z",- github_app_slug: null,-};--const VALID_SAAS_CONFIG: WebClientConfig = {- app_mode: "saas",- posthog_client_key: "456",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- providers_configured: [],- maintenance_start_time: null,- auth_url: null,- recaptcha_site_key: null,- faulty_models: [],- error_message: null,- updated_at: "2024-01-14T10:00:00Z",- github_app_slug: null,-};--const queryClient = new QueryClient();+import { Settings } from "#/types/settings";-const GitSettingsRouterStub = createRoutesStub([- {- Component: GitSettingsScreen,- path: "/settings/integrations",- },-]);--const renderGitSettingsScreen = () => {- // Initialize i18next instance- i18next.init({- lng: "en",- resources: {- en: {- translation: {- GITHUB$TOKEN_HELP_TEXT: "Help text",- GITHUB$TOKEN_LABEL: "GitHub Token",- GITHUB$HOST_LABEL: "GitHub Host",- GITLAB$TOKEN_LABEL: "GitLab Token",- GITLAB$HOST_LABEL: "GitLab Host",- BITBUCKET$TOKEN_LABEL: "Bitbucket Token",- BITBUCKET$HOST_LABEL: "Bitbucket Host",- SETTINGS$GITLAB: "GitLab",- COMMON$STATUS: "Status",- STATUS$CONNECTED: "Connected",- SETTINGS$GITLAB_NOT_CONNECTED: "Not Connected",- SETTINGS$GITLAB_REINSTALL_WEBHOOK: "Reinstall Webhook",- SETTINGS$GITLAB_INSTALLING_WEBHOOK:- "Installing GitLab webhook, please wait a few minutes.",- SETTINGS$SAVING: "Saving...",- ERROR$GENERIC: "An error occurred",- },- },+function buildSettings(overrides: Partial<Settings> = {}): Settings {+ return {+ ...MOCK_DEFAULT_USER_SETTINGS,+ ...overrides,+ provider_tokens_set: {+ ...MOCK_DEFAULT_USER_SETTINGS.provider_tokens_set,+ ...overrides.provider_tokens_set,},- });-- const { rerender, ...rest } = render(- <GitSettingsRouterStub initialEntries={["/settings/integrations"]} />,- {- wrapper: ({ children }) => (- <I18nextProvider i18n={i18next}>- <QueryClientProvider client={queryClient}>- {children}- </QueryClientProvider>- </I18nextProvider>- ),+ agent_settings: {+ ...MOCK_DEFAULT_USER_SETTINGS.agent_settings,+ ...overrides.agent_settings,},- );-- const rerenderGitSettingsScreen = () =>- rerender(- <I18nextProvider i18n={i18next}>- <QueryClientProvider client={queryClient}>- <GitSettingsRouterStub initialEntries={["/settings/integrations"]} />- </QueryClientProvider>- </I18nextProvider>,- );-- return {- ...rest,- rerender: rerenderGitSettingsScreen,};-};--beforeEach(() => {- // Since we don't recreate the query client on every test, we need to- // reset the query client before each test to avoid state leaks- // between tests.- queryClient.invalidateQueries();-});--describe("Content", () => {- it("should render", async () => {- renderGitSettingsScreen();- await screen.findByTestId("git-settings-screen");- });-- it("should render the inputs if OSS mode", async () => {- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(VALID_OSS_CONFIG);-- const { rerender } = renderGitSettingsScreen();-- await screen.findByTestId("github-token-input");- await screen.findByTestId("github-token-help-anchor");-- await screen.findByTestId("gitlab-token-input");- await screen.findByTestId("gitlab-token-help-anchor");-- await screen.findByTestId("bitbucket-token-input");- await screen.findByTestId("bitbucket-token-help-anchor");-- await screen.findByTestId("azure-devops-token-input");- await screen.findByTestId("azure-devops-token-help-anchor");-- getConfigSpy.mockResolvedValue(VALID_SAAS_CONFIG);- queryClient.invalidateQueries();- rerender();-- await waitFor(() => {- expect(- screen.queryByTestId("github-token-input"),- ).not.toBeInTheDocument();- expect(- screen.queryByTestId("github-token-help-anchor"),- ).not.toBeInTheDocument();-- expect(- screen.queryByTestId("gitlab-token-input"),- ).not.toBeInTheDocument();- expect(- screen.queryByTestId("gitlab-token-help-anchor"),- ).not.toBeInTheDocument();-- expect(- screen.queryByTestId("bitbucket-token-input"),- ).not.toBeInTheDocument();- expect(- screen.queryByTestId("bitbucket-token-help-anchor"),- ).not.toBeInTheDocument();-- expect(- screen.queryByTestId("azure-devops-token-input"),- ).not.toBeInTheDocument();- expect(- screen.queryByTestId("azure-devops-token-help-anchor"),- ).not.toBeInTheDocument();- });- });-- it("should set '<hidden>' placeholder and indicator if the GitHub token is set", async () => {- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");-- getConfigSpy.mockResolvedValue(VALID_OSS_CONFIG);- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- });-- const { rerender } = renderGitSettingsScreen();-- await waitFor(() => {- const githubInput = screen.getByTestId("github-token-input");- expect(githubInput).toHaveProperty("placeholder", "");- expect(- screen.queryByTestId("gh-set-token-indicator"),- ).not.toBeInTheDocument();-- const gitlabInput = screen.getByTestId("gitlab-token-input");- expect(gitlabInput).toHaveProperty("placeholder", "");- expect(- screen.queryByTestId("gl-set-token-indicator"),- ).not.toBeInTheDocument();- });-- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- provider_tokens_set: {- github: null,- gitlab: null,- },- });- queryClient.invalidateQueries();-- rerender();+}- await waitFor(() => {- const githubInput = screen.getByTestId("github-token-input");- expect(githubInput).toHaveProperty("placeholder", "<hidden>");- expect(- screen.queryByTestId("gh-set-token-indicator"),- ).toBeInTheDocument();-- const gitlabInput = screen.getByTestId("gitlab-token-input");- expect(gitlabInput).toHaveProperty("placeholder", "<hidden>");- expect(- screen.queryByTestId("gl-set-token-indicator"),- ).toBeInTheDocument();- });-- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- provider_tokens_set: {- gitlab: null,- },- });- queryClient.invalidateQueries();-- rerender();-- await waitFor(() => {- const githubInput = screen.getByTestId("github-token-input");- expect(githubInput).toHaveProperty("placeholder", "");- expect(- screen.queryByTestId("gh-set-token-indicator"),- ).not.toBeInTheDocument();-- const gitlabInput = screen.getByTestId("gitlab-token-input");- expect(gitlabInput).toHaveProperty("placeholder", "<hidden>");- expect(- screen.queryByTestId("gl-set-token-indicator"),- ).toBeInTheDocument();- });- });-- it("should render the 'Configure GitHub Repositories' button if SaaS mode and github_app_slug exists", async () => {- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(VALID_OSS_CONFIG);-- const { rerender } = renderGitSettingsScreen();-- let button = screen.queryByTestId("configure-github-repositories-button");- expect(button).not.toBeInTheDocument();-- expect(screen.getByTestId("submit-button")).toBeInTheDocument();- expect(screen.getByTestId("disconnect-tokens-button")).toBeInTheDocument();-- getConfigSpy.mockResolvedValue(VALID_SAAS_CONFIG);- queryClient.invalidateQueries();- rerender();-- await waitFor(() => {- // wait until queries are resolved- expect(queryClient.isFetching()).toBe(0);- button = screen.queryByTestId("configure-github-repositories-button");- expect(button).not.toBeInTheDocument();- });-- getConfigSpy.mockResolvedValue({- ...VALID_SAAS_CONFIG,- github_app_slug: "test-slug",- });- queryClient.invalidateQueries();- rerender();-- await waitFor(() => {- button = screen.getByTestId("configure-github-repositories-button");- expect(button).toBeInTheDocument();- expect(screen.queryByTestId("submit-button")).not.toBeInTheDocument();- expect(- screen.queryByTestId("disconnect-tokens-button"),- ).not.toBeInTheDocument();- });- });-});--describe("Form submission", () => {- it("should save the GitHub token", async () => {- const saveProvidersSpy = vi.spyOn(SecretsService, "addGitProvider");- saveProvidersSpy.mockImplementation(() => Promise.resolve(true));- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(VALID_OSS_CONFIG);-- renderGitSettingsScreen();-- const githubInput = await screen.findByTestId("github-token-input");- const submit = await screen.findByTestId("submit-button");-- await userEvent.type(githubInput, "test-token");- await userEvent.click(submit);-- expect(saveProvidersSpy).toHaveBeenCalledWith({- github: { token: "test-token", host: "" },- gitlab: { token: "", host: "" },- bitbucket: { token: "", host: "" },- bitbucket_data_center: { token: "", host: "" },- azure_devops: { token: "", host: "" },- forgejo: { token: "", host: "" },- });- });-- it("should save GitLab tokens", async () => {- const saveProvidersSpy = vi.spyOn(SecretsService, "addGitProvider");- saveProvidersSpy.mockImplementation(() => Promise.resolve(true));- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(VALID_OSS_CONFIG);-- renderGitSettingsScreen();-- const gitlabInput = await screen.findByTestId("gitlab-token-input");- const submit = await screen.findByTestId("submit-button");-- await userEvent.type(gitlabInput, "test-token");- await userEvent.click(submit);-- expect(saveProvidersSpy).toHaveBeenCalledWith({- github: { token: "", host: "" },- gitlab: { token: "test-token", host: "" },- bitbucket: { token: "", host: "" },- bitbucket_data_center: { token: "", host: "" },- azure_devops: { token: "", host: "" },- forgejo: { token: "", host: "" },- });+function renderGitSettingsScreen() {+ return render(<GitSettingsScreen />, {+ wrapper: ({ children }) => (+ <QueryClientProvider+ client={new QueryClient({+ defaultOptions: { queries: { retry: false } },+ })}+ >+ {children}+ </QueryClientProvider>+ ),});+}- it("should save the Bitbucket token", async () => {- const saveProvidersSpy = vi.spyOn(SecretsService, "addGitProvider");- saveProvidersSpy.mockImplementation(() => Promise.resolve(true));- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(VALID_OSS_CONFIG);-- renderGitSettingsScreen();-- const bitbucketInput = await screen.findByTestId("bitbucket-token-input");- const submit = await screen.findByTestId("submit-button");-- await userEvent.type(bitbucketInput, "test-token");- await userEvent.click(submit);-- expect(saveProvidersSpy).toHaveBeenCalledWith({- github: { token: "", host: "" },- gitlab: { token: "", host: "" },- bitbucket: { token: "test-token", host: "" },- bitbucket_data_center: { token: "", host: "" },- azure_devops: { token: "", host: "" },- forgejo: { token: "", host: "" },- });+describe("GitSettingsScreen", () => {+ beforeEach(() => {+ vi.restoreAllMocks();});- it("should save the Azure DevOps token", async () => {- const saveProvidersSpy = vi.spyOn(SecretsService, "addGitProvider");- saveProvidersSpy.mockImplementation(() => Promise.resolve(true));- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(VALID_OSS_CONFIG);+ it("renders OSS git provider token inputs", async () => {+ vi.spyOn(SettingsService, "getSettings").mockResolvedValue(buildSettings());renderGitSettingsScreen();- const azureDevOpsInput = await screen.findByTestId(- "azure-devops-token-input",- );- const submit = await screen.findByTestId("submit-button");+ const githubTokenInput = await screen.findByTestId("github-token-input");- await userEvent.type(azureDevOpsInput, "test-token");- await userEvent.click(submit);-- expect(saveProvidersSpy).toHaveBeenCalledWith({- github: { token: "", host: "" },- gitlab: { token: "", host: "" },- bitbucket: { token: "", host: "" },- bitbucket_data_center: { token: "", host: "" },- azure_devops: { token: "test-token", host: "" },- forgejo: { token: "", host: "" },- });+ expect(githubTokenInput).toBeInTheDocument();+ expect(screen.getByTestId("gitlab-token-input")).toBeInTheDocument();+ expect(screen.getByTestId("submit-button")).toBeDisabled();});- it("should disable the button if there is no input", async () => {- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(VALID_OSS_CONFIG);+ it("enables saving after a provider token changes", async () => {+ vi.spyOn(SettingsService, "getSettings").mockResolvedValue(buildSettings());renderGitSettingsScreen();- const submit = await screen.findByTestId("submit-button");- expect(submit).toBeDisabled();-- const githubInput = await screen.findByTestId("github-token-input");- await userEvent.type(githubInput, "test-token");+ const user = userEvent.setup();+ const githubTokenInput = await screen.findByTestId("github-token-input");+ const submitButton = screen.getByTestId("submit-button");- expect(submit).not.toBeDisabled();+ expect(submitButton).toBeDisabled();- await userEvent.clear(githubInput);- expect(submit).toBeDisabled();-- const gitlabInput = await screen.findByTestId("gitlab-token-input");- await userEvent.type(gitlabInput, "test-token");-- expect(submit).not.toBeDisabled();-- await userEvent.clear(gitlabInput);- expect(submit).toBeDisabled();- });-- it("should enable a disconnect tokens button if there is at least one token set", async () => {- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");-- getConfigSpy.mockResolvedValue(VALID_OSS_CONFIG);- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- provider_tokens_set: {- github: null,- gitlab: null,- },- });-- renderGitSettingsScreen();- await screen.findByTestId("git-settings-screen");-- let disconnectButton = await screen.findByTestId(- "disconnect-tokens-button",- );- // When tokens are set (github and gitlab are not null), the button should be enabled- await waitFor(() => expect(disconnectButton).not.toBeDisabled());-- // Mock settings with no tokens set- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- provider_tokens_set: {},- });- queryClient.invalidateQueries();-- disconnectButton = await screen.findByTestId("disconnect-tokens-button");- // When no tokens are set, the button should be disabled- await waitFor(() => expect(disconnectButton).toBeDisabled());- });-- it("should call logout when pressing the disconnect tokens button", async () => {- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- const logoutSpy = vi.spyOn(AuthService, "logout");- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");-- getConfigSpy.mockResolvedValue(VALID_OSS_CONFIG);- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- provider_tokens_set: {- github: null,- gitlab: null,- },- });-- renderGitSettingsScreen();-- const disconnectButton = await screen.findByTestId(- "disconnect-tokens-button",- );- await waitFor(() => expect(disconnectButton).not.toBeDisabled());- await userEvent.click(disconnectButton);-- expect(logoutSpy).toHaveBeenCalled();- });-- // flaky test- it.skip("should disable the button when submitting changes", async () => {- const saveSettingsSpy = vi.spyOn(SecretsService, "addGitProvider");- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(VALID_OSS_CONFIG);-- renderGitSettingsScreen();-- const submit = await screen.findByTestId("submit-button");- expect(submit).toBeDisabled();-- const githubInput = await screen.findByTestId("github-token-input");- await userEvent.type(githubInput, "test-token");- expect(submit).not.toBeDisabled();-- // submit the form- await userEvent.click(submit);- expect(saveSettingsSpy).toHaveBeenCalled();-- expect(submit).toHaveTextContent("Saving...");- expect(submit).toBeDisabled();-- await waitFor(() => expect(submit).toHaveTextContent("Save"));- });-- it("should disable the button after submitting changes", async () => {- const saveProvidersSpy = vi.spyOn(SecretsService, "addGitProvider");- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(VALID_OSS_CONFIG);-- renderGitSettingsScreen();- await screen.findByTestId("git-settings-screen");-- const submit = await screen.findByTestId("submit-button");- expect(submit).toBeDisabled();-- const githubInput = await screen.findByTestId("github-token-input");- await userEvent.type(githubInput, "test-token");- expect(submit).not.toBeDisabled();-- // submit the form- await userEvent.click(submit);- expect(saveProvidersSpy).toHaveBeenCalled();- expect(submit).toBeDisabled();-- const gitlabInput = await screen.findByTestId("gitlab-token-input");- await userEvent.type(gitlabInput, "test-token");- expect(gitlabInput).toHaveValue("test-token");- expect(submit).not.toBeDisabled();-- // submit the form- await userEvent.click(submit);- expect(saveProvidersSpy).toHaveBeenCalled();-- await waitFor(() => expect(submit).toBeDisabled());- });-});--describe("Status toasts", () => {- it("should call displaySuccessToast when the settings are saved", async () => {- const saveProvidersSpy = vi.spyOn(SecretsService, "addGitProvider");- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue(MOCK_DEFAULT_USER_SETTINGS);-- const displaySuccessToastSpy = vi.spyOn(- ToastHandlers,- "displaySuccessToast",- );-- renderGitSettingsScreen();-- // Toggle setting to change- const githubInput = await screen.findByTestId("github-token-input");- await userEvent.type(githubInput, "test-token");-- const submit = await screen.findByTestId("submit-button");- await userEvent.click(submit);-- expect(saveProvidersSpy).toHaveBeenCalled();- await waitFor(() => expect(displaySuccessToastSpy).toHaveBeenCalled());- });-- it("should call displayErrorToast when the settings fail to save", async () => {- const saveProvidersSpy = vi.spyOn(SecretsService, "addGitProvider");- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- getSettingsSpy.mockResolvedValue(MOCK_DEFAULT_USER_SETTINGS);-- const displayErrorToastSpy = vi.spyOn(ToastHandlers, "displayErrorToast");-- saveProvidersSpy.mockRejectedValue(new Error("Failed to save settings"));-- renderGitSettingsScreen();-- // Toggle setting to change- const gitlabInput = await screen.findByTestId("gitlab-token-input");- await userEvent.type(gitlabInput, "test-token");-- const submit = await screen.findByTestId("submit-button");- await userEvent.click(submit);-- expect(saveProvidersSpy).toHaveBeenCalled();- expect(displayErrorToastSpy).toHaveBeenCalled();- });-});--describe("GitLab Webhook Manager Integration", () => {- it("should not render GitLab webhook manager in OSS mode", async () => {- // Arrange- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(VALID_OSS_CONFIG);-- // Act- renderGitSettingsScreen();- await screen.findByTestId("git-settings-screen");-- // Assert- await waitFor(() => {- expect(- screen.queryByText("GITLAB$WEBHOOK_MANAGER_TITLE"),- ).not.toBeInTheDocument();- });- });-- it("should not render GitLab webhook manager in SaaS mode without APP_SLUG", async () => {- // Arrange- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(VALID_SAAS_CONFIG);-- // Act- renderGitSettingsScreen();- await screen.findByTestId("git-settings-screen");-- // Assert- await waitFor(() => {- expect(- screen.queryByText("GITLAB$WEBHOOK_MANAGER_TITLE"),- ).not.toBeInTheDocument();- });- });-- it("should not render GitLab webhook manager when token is not set", async () => {- // Arrange- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");-- getConfigSpy.mockResolvedValue({- ...VALID_SAAS_CONFIG,- });- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- provider_tokens_set: {},- });-- // Act- renderGitSettingsScreen();- await screen.findByTestId("git-settings-screen");+ await user.type(githubTokenInput, "ghp_test_token");- // Assert- await waitFor(() => {- expect(- screen.queryByText("GITLAB$WEBHOOK_MANAGER_TITLE"),- ).not.toBeInTheDocument();- });+ expect(submitButton).toBeEnabled();});});describe("clientLoader permission checks", () => {- it("should export a clientLoader for route protection", () => {+ it("exports a clientLoader", () => {expect(clientLoader).toBeDefined();expect(typeof clientLoader).toBe("function");});diff --git a/__tests__/routes/home-screen.test.tsx b/__tests__/routes/home-screen.test.tsxdeleted file mode 100644index 0fbab8bec7..0000000000--- a/__tests__/routes/home-screen.test.tsx+++ /dev/null@@ -1,685 +0,0 @@-import { render, screen, waitFor, within } from "@testing-library/react";-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import { QueryClientProvider, QueryClient } from "@tanstack/react-query";-import userEvent from "@testing-library/user-event";-import { createRoutesStub } from "react-router";-import HomeScreen from "#/routes/home";-import { GitRepository } from "#/types/git";-import SettingsService from "#/api/settings-service/settings-service.api";-import GitService from "#/api/git-service/git-service.api";-import OptionService from "#/api/option-service/option-service.api";-import AuthService from "#/api/auth-service/auth-service.api";-import MainApp from "#/routes/root-layout";-import { MOCK_DEFAULT_USER_SETTINGS } from "#/mocks/handlers";--const { DEFAULT_FEATURE_FLAGS, useIsAuthedMock, useConfigMock, mockUseAppMode } = vi.hoisted(- () => {- const defaultFeatureFlags = {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- };-- return {- DEFAULT_FEATURE_FLAGS: defaultFeatureFlags,- useIsAuthedMock: vi.fn().mockReturnValue({- data: true,- isLoading: false,- isFetching: false,- isError: false,- }),- useConfigMock: vi.fn().mockReturnValue({- data: {- app_mode: "oss",- feature_flags: defaultFeatureFlags,- },- isLoading: false,- }),- mockUseAppMode: vi.fn().mockReturnValue({- isOss: true,- isSaas: false,- isCloud: false,- isSelfHosted: false,- isEnterpriseSelfHosted: false,- isEnterpriseCloud: false,- appMode: "oss",- deploymentMode: undefined,- }),- };- },-);--vi.mock("#/hooks/query/use-is-authed", () => ({- useIsAuthed: () => useIsAuthedMock(),-}));--vi.mock("#/hooks/query/use-config", () => ({- useConfig: () => useConfigMock(),-}));--vi.mock("#/hooks/use-app-mode", () => ({- useAppMode: () => mockUseAppMode() ?? {- isOss: true,- isSaas: false,- isCloud: false,- isSelfHosted: false,- isEnterpriseSelfHosted: false,- isEnterpriseCloud: false,- appMode: "oss",- deploymentMode: undefined,- },-}));--const RouterStub = createRoutesStub([- {- Component: MainApp,- path: "/",- children: [- {- Component: HomeScreen,- path: "/",- },- {- Component: () => <div data-testid="conversation-screen" />,- path: "/conversations/:conversationId",- },- {- Component: () => <div data-testid="settings-screen" />,- path: "/settings",- },- ],- },- {- Component: () => <div data-testid="login-page" />,- path: "/login",- },-]);--const selectRepository = async (repoName: string) => {- const repoConnector = screen.getByTestId("repo-connector");-- // First select the provider- const providerDropdown = await waitFor(() =>- screen.getByTestId("git-provider-dropdown"),- );- await userEvent.click(providerDropdown);- await userEvent.click(screen.getByText("GitHub"));-- // Then select the repository- const repoInput = within(repoConnector).getByTestId("git-repo-dropdown");- await userEvent.click(repoInput);-- // Wait for the options to be loaded and displayed- await waitFor(() => {- const dropdownMenu = screen.getByTestId("git-repo-dropdown-menu");- expect(within(dropdownMenu).getByText(repoName)).toBeInTheDocument();- });- const dropdownMenu = screen.getByTestId("git-repo-dropdown-menu");- await userEvent.click(within(dropdownMenu).getByText(repoName));-- // Wait for the branch to be auto-selected- await waitFor(() => {- const branchInput = screen.getByTestId("git-branch-dropdown-input");- expect(branchInput).toHaveValue("main");- });-};--const renderHomeScreen = () =>- render(<RouterStub />, {- wrapper: ({ children }) => (- <QueryClientProvider- client={- new QueryClient({- defaultOptions: { queries: { retry: false } },- })- }- >- {children}- </QueryClientProvider>- ),- });--const MOCK_RESPOSITORIES: GitRepository[] = [- {- id: "1",- full_name: "octocat/hello-world",- git_provider: "github",- is_public: true,- main_branch: "main",- },- {- id: "2",- full_name: "octocat/earth",- git_provider: "github",- is_public: true,- main_branch: "main",- },-];--describe("HomeScreen", () => {- beforeEach(() => {- vi.clearAllMocks();-- useIsAuthedMock.mockReturnValue({- data: true,- isLoading: false,- isFetching: false,- isError: false,- });- useConfigMock.mockReturnValue({- data: { app_mode: "oss", feature_flags: DEFAULT_FEATURE_FLAGS },- isLoading: false,- });-- // Mock config to avoid SaaS redirect logic- vi.spyOn(OptionService, "getConfig").mockResolvedValue({- app_mode: "oss",- posthog_client_key: "test-posthog-key",- providers_configured: ["github"],- auth_url: "https://auth.example.com",- feature_flags: DEFAULT_FEATURE_FLAGS,- maintenance_start_time: null,- recaptcha_site_key: null,- faulty_models: [],- error_message: null,- updated_at: "2024-01-14T10:00:00Z",- github_app_slug: null,- });-- vi.spyOn(AuthService, "authenticate").mockResolvedValue(true);-- vi.spyOn(SettingsService, "getSettings").mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- provider_tokens_set: {- github: "fake-token",- gitlab: "fake-token",- },- });-- vi.stubGlobal("localStorage", {- getItem: vi.fn(() => null),- setItem: vi.fn(),- removeItem: vi.fn(),- clear: vi.fn(),- });- });-- afterEach(() => {- vi.restoreAllMocks();- vi.unstubAllGlobals();- });-- it("should render", async () => {- renderHomeScreen();- await screen.findByTestId("home-screen");- });-- it("should render the repository connector and suggested tasks sections", async () => {- renderHomeScreen();-- await waitFor(() => {- screen.getByTestId("repo-connector");- screen.getByTestId("task-suggestions");- });- });-- it("should have responsive layout for mobile and desktop screens", async () => {- renderHomeScreen();-- const homeScreenNewConversationSection = screen.getByTestId(- "home-screen-new-conversation-section",- );- expect(homeScreenNewConversationSection).toHaveClass(- "flex",- "flex-col",- "md:flex-row",- );-- const homeScreenRecentConversationsSection = screen.getByTestId(- "home-screen-recent-conversations-section",- );- expect(homeScreenRecentConversationsSection).toHaveClass(- "flex",- "flex-col",- "md:flex-row",- );- });-- it("should filter the suggested tasks based on the selected repository", async () => {- const retrieveUserGitRepositoriesSpy = vi.spyOn(- GitService,- "retrieveUserGitRepositories",- );- retrieveUserGitRepositoriesSpy.mockResolvedValue({- items: MOCK_RESPOSITORIES,- next_page_id: null,- });-- // Mock the repository branches API call- vi.spyOn(GitService, "getRepositoryBranches").mockResolvedValue({- items: [- { name: "main", commit_sha: "123", protected: false },- { name: "develop", commit_sha: "456", protected: false },- ],- next_page_id: null,- });-- renderHomeScreen();-- const taskSuggestions = await screen.findByTestId("task-suggestions");-- // Initially, all tasks should be visible- await waitFor(() => {- within(taskSuggestions).getByText("octocat/hello-world");- within(taskSuggestions).getByText("octocat/earth");- });-- // Select a repository using the helper function- await selectRepository("octocat/hello-world");-- // After selecting a repository, only tasks related to that repository should be visible- await waitFor(() => {- within(taskSuggestions).getByText("octocat/hello-world");- expect(- within(taskSuggestions).queryByText("octocat/earth"),- ).not.toBeInTheDocument();- });- });-- it("should filter tasks when different repositories are selected", async () => {- const retrieveUserGitRepositoriesSpy = vi.spyOn(- GitService,- "retrieveUserGitRepositories",- );- retrieveUserGitRepositoriesSpy.mockResolvedValue({- items: MOCK_RESPOSITORIES,- next_page_id: null,- });-- // Mock the repository branches API call- vi.spyOn(GitService, "getRepositoryBranches").mockResolvedValue({- items: [- { name: "main", commit_sha: "123", protected: false },- { name: "develop", commit_sha: "456", protected: false },- ],- next_page_id: null,- });-- renderHomeScreen();-- const taskSuggestions = await screen.findByTestId("task-suggestions");-- // Initially, all tasks should be visible- await waitFor(() => {- within(taskSuggestions).getByText("octocat/hello-world");- within(taskSuggestions).getByText("octocat/earth");- });-- // Select the first repository- await selectRepository("octocat/hello-world");-- // After selecting first repository, only tasks related to that repository should be visible- await waitFor(() => {- within(taskSuggestions).getByText("octocat/hello-world");- expect(- within(taskSuggestions).queryByText("octocat/earth"),- ).not.toBeInTheDocument();- });-- // Now select the second repository- await selectRepository("octocat/earth");-- // After selecting second repository, only tasks related to that repository should be visible- await waitFor(() => {- within(taskSuggestions).getByText("octocat/earth");- expect(- within(taskSuggestions).queryByText("octocat/hello-world"),- ).not.toBeInTheDocument();- });- });-- describe("launch buttons", () => {- const setupLaunchButtons = async () => {- let headerLaunchButton = screen.getByTestId(- "launch-new-conversation-button",- );- let repoLaunchButton = await screen.findByTestId("repo-launch-button");- let tasksLaunchButtons =- await screen.findAllByTestId("task-launch-button");-- // Mock the repository branches API call- vi.spyOn(GitService, "getRepositoryBranches").mockResolvedValue({- items: [- { name: "main", commit_sha: "123", protected: false },- { name: "develop", commit_sha: "456", protected: false },- ],- next_page_id: null,- });-- // Select a repository to enable the repo launch button- await selectRepository("octocat/hello-world");-- // Wait for all buttons to be enabled- await waitFor(() => {- expect(headerLaunchButton).not.toBeDisabled();- expect(repoLaunchButton).not.toBeDisabled();- tasksLaunchButtons.forEach((button) => {- expect(button).not.toBeDisabled();- });- });-- headerLaunchButton = screen.getByTestId("launch-new-conversation-button");- repoLaunchButton = screen.getByTestId("repo-launch-button");- tasksLaunchButtons = await screen.findAllByTestId("task-launch-button");-- return {- headerLaunchButton,- repoLaunchButton,- tasksLaunchButtons,- };- };-- beforeEach(() => {- const retrieveUserGitRepositoriesSpy = vi.spyOn(- GitService,- "retrieveUserGitRepositories",- );- retrieveUserGitRepositoriesSpy.mockResolvedValue({- items: MOCK_RESPOSITORIES,- next_page_id: null,- });- });-- it("should disable the other launch buttons when the header launch button is clicked", async () => {- renderHomeScreen();- const { headerLaunchButton, repoLaunchButton } =- await setupLaunchButtons();-- const tasksLaunchButtonsAfter =- await screen.findAllByTestId("task-launch-button");-- // All other buttons should be disabled when the header button is clicked- await userEvent.click(headerLaunchButton);-- await waitFor(() => {- expect(headerLaunchButton).toBeDisabled();- expect(repoLaunchButton).toBeDisabled();- tasksLaunchButtonsAfter.forEach((button) => {- expect(button).toBeDisabled();- });- });- });-- it("should disable the other launch buttons when the repo launch button is clicked", async () => {- renderHomeScreen();- const { headerLaunchButton, repoLaunchButton } =- await setupLaunchButtons();-- const tasksLaunchButtonsAfter =- await screen.findAllByTestId("task-launch-button");-- // All other buttons should be disabled when the repo button is clicked- await userEvent.click(repoLaunchButton);-- await waitFor(() => {- expect(headerLaunchButton).toBeDisabled();- expect(repoLaunchButton).toBeDisabled();- tasksLaunchButtonsAfter.forEach((button) => {- expect(button).toBeDisabled();- });- });- });-- it("should disable the other launch buttons when any task launch button is clicked", async () => {- renderHomeScreen();- const { headerLaunchButton, repoLaunchButton, tasksLaunchButtons } =- await setupLaunchButtons();-- const tasksLaunchButtonsAfter =- await screen.findAllByTestId("task-launch-button");-- // All other buttons should be disabled when the task button is clicked- await userEvent.click(tasksLaunchButtons[0]);-- await waitFor(() => {- expect(headerLaunchButton).toBeDisabled();- expect(repoLaunchButton).toBeDisabled();- tasksLaunchButtonsAfter.forEach((button) => {- expect(button).toBeDisabled();- });- });- });- });-});---describe("New user welcome toast", () => {- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");-- beforeEach(() => {- vi.clearAllMocks();-- useIsAuthedMock.mockReturnValue({- data: true,- isLoading: false,- isFetching: false,- isError: false,- });- useConfigMock.mockReturnValue({- data: {- app_mode: "saas",- feature_flags: { ...DEFAULT_FEATURE_FLAGS, enable_billing: true },- },- isLoading: false,- });-- getConfigSpy.mockResolvedValue({- app_mode: "saas",- posthog_client_key: "test-posthog-key",- providers_configured: ["github"],- auth_url: "https://auth.example.com",- feature_flags: { ...DEFAULT_FEATURE_FLAGS, enable_billing: true },- maintenance_start_time: null,- recaptcha_site_key: null,- faulty_models: [],- error_message: null,- updated_at: "2024-01-14T10:00:00Z",- github_app_slug: null,- });-- vi.spyOn(AuthService, "authenticate").mockResolvedValue(true);-- getSettingsSpy.mockResolvedValue(MOCK_DEFAULT_USER_SETTINGS);-- vi.stubGlobal("localStorage", {- getItem: vi.fn(() => null),- setItem: vi.fn(),- removeItem: vi.fn(),- clear: vi.fn(),- });- });-- afterEach(() => {- vi.restoreAllMocks();- vi.unstubAllGlobals();- });-- it("should not show the setup payment modal (removed) in SaaS mode for new users", async () => {- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- is_new_user: true,- });-- renderHomeScreen();-- await screen.findByTestId("root-layout");-- // SetupPaymentModal was removed; verify it no longer renders- expect(- screen.queryByTestId("proceed-to-stripe-button"),- ).not.toBeInTheDocument();- });-});--describe("HomepageCTA visibility", () => {- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");-- beforeEach(() => {- vi.clearAllMocks();-- vi.spyOn(AuthService, "authenticate").mockResolvedValue(true);-- getSettingsSpy.mockResolvedValue(MOCK_DEFAULT_USER_SETTINGS);-- // Mock localStorage for CTA dismissal- vi.stubGlobal("localStorage", {- getItem: vi.fn(() => null),- setItem: vi.fn(),- removeItem: vi.fn(),- clear: vi.fn(),- });- });-- afterEach(() => {- vi.restoreAllMocks();- vi.unstubAllGlobals();- });-- it("should show HomepageCTA in SaaS Cloud mode when not dismissed", async () => {- useIsAuthedMock.mockReturnValue({- data: true,- isLoading: false,- isFetching: false,- isError: false,- });- useConfigMock.mockReturnValue({- data: { app_mode: "saas", feature_flags: { ...DEFAULT_FEATURE_FLAGS, deployment_mode: "cloud" } },- isLoading: false,- });- mockUseAppMode.mockReturnValue({- isOss: false,- isSaas: true,- isCloud: true,- isSelfHosted: false,- isEnterpriseSelfHosted: false,- isEnterpriseCloud: true,- appMode: "saas",- deploymentMode: "cloud",- });-- getConfigSpy.mockResolvedValue({- app_mode: "saas",- posthog_client_key: "test-posthog-key",- providers_configured: ["github"],- auth_url: "https://auth.example.com",- feature_flags: { ...DEFAULT_FEATURE_FLAGS, deployment_mode: "cloud" },- maintenance_start_time: null,- recaptcha_site_key: null,- faulty_models: [],- error_message: null,- updated_at: "2024-01-14T10:00:00Z",- github_app_slug: null,- });-- renderHomeScreen();-- await screen.findByTestId("home-screen");-- const ctaLink = await screen.findByTestId("homepage-cta-learn-more");- expect(ctaLink).toBeInTheDocument();- });-- it("should not show HomepageCTA in OSS mode", async () => {- useIsAuthedMock.mockReturnValue({- data: true,- isLoading: false,- isFetching: false,- isError: false,- });- useConfigMock.mockReturnValue({- data: { app_mode: "oss", feature_flags: DEFAULT_FEATURE_FLAGS },- isLoading: false,- });- mockUseAppMode.mockReturnValue({- isOss: true,- isSaas: false,- isCloud: false,- isSelfHosted: false,- isEnterpriseSelfHosted: false,- isEnterpriseCloud: false,- appMode: "oss",- deploymentMode: undefined,- });-- getConfigSpy.mockResolvedValue({- app_mode: "oss",- posthog_client_key: "test-posthog-key",- providers_configured: ["github"],- auth_url: "https://auth.example.com",- feature_flags: DEFAULT_FEATURE_FLAGS,- maintenance_start_time: null,- recaptcha_site_key: null,- faulty_models: [],- error_message: null,- updated_at: "2024-01-14T10:00:00Z",- github_app_slug: null,- });-- renderHomeScreen();-- await screen.findByTestId("home-screen");-- expect(screen.queryByTestId("homepage-cta-learn-more")).not.toBeInTheDocument();- });-- it("should not show HomepageCTA in SaaS Self-hosted mode", async () => {- useIsAuthedMock.mockReturnValue({- data: true,- isLoading: false,- isFetching: false,- isError: false,- });- useConfigMock.mockReturnValue({- data: { app_mode: "saas", feature_flags: { ...DEFAULT_FEATURE_FLAGS, deployment_mode: "self_hosted" } },- isLoading: false,- });- mockUseAppMode.mockReturnValue({- isOss: false,- isSaas: true,- isCloud: false,- isSelfHosted: true,- isEnterpriseSelfHosted: true,- isEnterpriseCloud: false,- appMode: "saas",- deploymentMode: "self_hosted",- });-- getConfigSpy.mockResolvedValue({- app_mode: "saas",- posthog_client_key: "test-posthog-key",- providers_configured: ["github"],- auth_url: "https://auth.example.com",- feature_flags: { ...DEFAULT_FEATURE_FLAGS, deployment_mode: "self_hosted" },- maintenance_start_time: null,- recaptcha_site_key: null,- faulty_models: [],- error_message: null,- updated_at: "2024-01-14T10:00:00Z",- github_app_slug: null,- });-- renderHomeScreen();-- await screen.findByTestId("home-screen");-- expect(screen.queryByTestId("homepage-cta-learn-more")).not.toBeInTheDocument();- });--});diff --git a/__tests__/routes/information-request.test.tsx b/__tests__/routes/information-request.test.tsxdeleted file mode 100644index c6b04e9396..0000000000--- a/__tests__/routes/information-request.test.tsx+++ /dev/null@@ -1,174 +0,0 @@-import { render, screen } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { describe, expect, it, vi, beforeEach } from "vitest";-import { MemoryRouter } from "react-router";-import InformationRequest from "#/routes/information-request";--// Mock useNavigate-const mockNavigate = vi.fn();-vi.mock("react-router", async () => {- const actual = await vi.importActual("react-router");- return {- ...actual,- useNavigate: () => mockNavigate,- };-});--// Mock useTracking to avoid QueryClient dependency-vi.mock("#/hooks/use-tracking", () => ({- useTracking: () => ({- trackEnterpriseLeadFormSubmitted: vi.fn(),- }),-}));--describe("InformationRequest", () => {- beforeEach(() => {- vi.clearAllMocks();- });-- const renderWithRouter = () => {- return render(- <MemoryRouter>- <InformationRequest />- </MemoryRouter>,- );- };-- it("should render the page", () => {- renderWithRouter();-- expect(screen.getByTestId("information-request-page")).toBeInTheDocument();- });-- it("should render the logo", () => {- renderWithRouter();-- const page = screen.getByTestId("information-request-page");- const logo = page.querySelector("svg");- expect(logo).toBeInTheDocument();- });-- it("should render the page title", () => {- renderWithRouter();-- expect(screen.getByText("ENTERPRISE$GET_OPENHANDS_TITLE")).toBeInTheDocument();- });-- it("should render the page subtitle", () => {- renderWithRouter();-- expect(screen.getByText("ENTERPRISE$GET_OPENHANDS_SUBTITLE")).toBeInTheDocument();- });-- it("should render SaaS card", () => {- renderWithRouter();-- expect(screen.getByText("ENTERPRISE$SAAS_TITLE")).toBeInTheDocument();- expect(screen.getByText("ENTERPRISE$SAAS_DESCRIPTION")).toBeInTheDocument();- });-- it("should render Self-hosted card", () => {- renderWithRouter();-- expect(screen.getByText("ENTERPRISE$SELF_HOSTED_TITLE")).toBeInTheDocument();- expect(screen.getByText("ENTERPRISE$SELF_HOSTED_CARD_DESCRIPTION")).toBeInTheDocument();- });-- it("should render SaaS features", () => {- renderWithRouter();-- expect(screen.getByText("ENTERPRISE$SAAS_FEATURE_NO_INFRASTRUCTURE")).toBeInTheDocument();- expect(screen.getByText("ENTERPRISE$SAAS_FEATURE_SSO")).toBeInTheDocument();- expect(screen.getByText("ENTERPRISE$SAAS_FEATURE_ACCESS_ANYWHERE")).toBeInTheDocument();- expect(screen.getByText("ENTERPRISE$SAAS_FEATURE_AUTO_UPDATES")).toBeInTheDocument();- });-- it("should render Self-hosted features", () => {- renderWithRouter();-- expect(screen.getByText("ENTERPRISE$SELF_HOSTED_FEATURE_ON_PREMISES")).toBeInTheDocument();- expect(screen.getByText("ENTERPRISE$SELF_HOSTED_FEATURE_DATA_CONTROL")).toBeInTheDocument();- expect(screen.getByText("ENTERPRISE$SELF_HOSTED_FEATURE_COMPLIANCE")).toBeInTheDocument();- expect(screen.getByText("ENTERPRISE$SELF_HOSTED_FEATURE_SUPPORT")).toBeInTheDocument();- });-- it("should render two Learn More buttons", () => {- renderWithRouter();-- const learnMoreButtons = screen.getAllByText("ENTERPRISE$LEARN_MORE");- expect(learnMoreButtons).toHaveLength(2);- });-- it("should render back button", () => {- renderWithRouter();-- expect(screen.getByText("COMMON$BACK")).toBeInTheDocument();- });-- it("should have back link pointing to /login", () => {- renderWithRouter();-- const backLink = screen.getByText("COMMON$BACK");- expect(backLink).toHaveAttribute("href", "/login");- });-- it("should show SaaS form when SaaS Learn More is clicked", async () => {- const user = userEvent.setup();- renderWithRouter();-- // Click the first Learn More button (SaaS)- const learnMoreButtons = screen.getAllByText("ENTERPRISE$LEARN_MORE");- await user.click(learnMoreButtons[0]);-- // Form should now be visible- expect(screen.getByTestId("information-request-form")).toBeInTheDocument();- expect(screen.getByText("ENTERPRISE$FORM_SAAS_TITLE")).toBeInTheDocument();- });-- it("should show Self-hosted form when Self-hosted Learn More is clicked", async () => {- const user = userEvent.setup();- renderWithRouter();-- // Click the second Learn More button (Self-hosted)- const learnMoreButtons = screen.getAllByText("ENTERPRISE$LEARN_MORE");- await user.click(learnMoreButtons[1]);-- // Form should now be visible- expect(screen.getByTestId("information-request-form")).toBeInTheDocument();- expect(screen.getByText("ENTERPRISE$FORM_SELF_HOSTED_TITLE")).toBeInTheDocument();- });-- it("should return to card selection when form back button is clicked", async () => {- const user = userEvent.setup();- renderWithRouter();-- // Click Learn More to show form- const learnMoreButtons = screen.getAllByText("ENTERPRISE$LEARN_MORE");- await user.click(learnMoreButtons[0]);-- // Verify form is visible- expect(screen.getByTestId("information-request-form")).toBeInTheDocument();-- // Click back button- const backButton = screen.getByRole("button", { name: "COMMON$BACK" });- await user.click(backButton);-- // Should return to card selection view- expect(screen.queryByTestId("information-request-form")).not.toBeInTheDocument();- expect(screen.getByText("ENTERPRISE$GET_OPENHANDS_TITLE")).toBeInTheDocument();- });-- it("should have accessible Learn More links with aria-label", () => {- renderWithRouter();-- const saasLink = screen.getByRole("link", {- name: "ENTERPRISE$LEARN_MORE ENTERPRISE$SAAS_TITLE",- });- const selfHostedLink = screen.getByRole("link", {- name: "ENTERPRISE$LEARN_MORE ENTERPRISE$SELF_HOSTED_TITLE",- });-- expect(saasLink).toBeInTheDocument();- expect(selfHostedLink).toBeInTheDocument();- });-});diff --git a/__tests__/routes/llm-settings.test.tsx b/__tests__/routes/llm-settings.test.tsxindex 130d2d2461..024539b283 100644--- a/__tests__/routes/llm-settings.test.tsx+++ b/__tests__/routes/llm-settings.test.tsx@@ -1,1980 +1,73 @@import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { render, screen, waitFor, within } from "@testing-library/react";-import userEvent from "@testing-library/user-event";+import { render, screen } from "@testing-library/react";+import { MemoryRouter } from "react-router";import { beforeEach, describe, expect, it, vi } from "vitest";--import { organizationService } from "#/api/organization-service/organization-service.api";-import SettingsService from "#/api/settings-service/settings-service.api";-import {- MOCK_DEFAULT_USER_SETTINGS,- resetTestHandlersMockSettings,-} from "#/mocks/handlers";import LlmSettingsScreen, { clientLoader } from "#/routes/llm-settings";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";-import { Organization, OrganizationMember } from "#/types/org";-import { Settings, SettingsValue } from "#/types/settings";--const mockUseSearchParams = vi.fn();-vi.mock("react-router", async () => {- const actual =- await vi.importActual<typeof import("react-router")>("react-router");- return {- ...actual,- useSearchParams: () => mockUseSearchParams(),- useRevalidator: () => ({ revalidate: vi.fn() }),- };-});--const mockUseConfig = vi.fn();-vi.mock("#/hooks/query/use-config", () => ({- useConfig: () => mockUseConfig(),-}));+import SettingsService from "#/api/settings-service/settings-service.api";+import { MOCK_DEFAULT_USER_SETTINGS } from "#/mocks/handlers";+import { Settings } from "#/types/settings";function buildSettings(overrides: Partial<Settings> = {}): Settings {return {...MOCK_DEFAULT_USER_SETTINGS,...overrides,- agent_settings: {- ...MOCK_DEFAULT_USER_SETTINGS.agent_settings,- ...overrides.agent_settings,- },agent_settings_schema:overrides.agent_settings_schema ??MOCK_DEFAULT_USER_SETTINGS.agent_settings_schema,+ agent_settings:+ overrides.agent_settings ?? MOCK_DEFAULT_USER_SETTINGS.agent_settings,};}-function buildOrganizationMember(- overrides: Partial<OrganizationMember> = {},-): OrganizationMember {- return {- org_id: "1",- user_id: "99",- email: "[email protected]",- role: "owner",- status: "active",- llm_api_key: "",- max_iterations: 20,- llm_model: "",- llm_base_url: "",- ...overrides,- };-}--function buildOrganization(- overrides: Partial<Organization> = {},-): Organization {- return {- id: overrides.id ?? "1",- name: overrides.name ?? "Example Org",- contact_name: overrides.contact_name ?? "Example Contact",- contact_email: overrides.contact_email ?? "[email protected]",- conversation_expiration: overrides.conversation_expiration ?? 30,- remote_runtime_resource_factor:- overrides.remote_runtime_resource_factor ?? 1,- billing_margin: overrides.billing_margin ?? 0,- enable_proactive_conversation_starters:- overrides.enable_proactive_conversation_starters ?? false,- sandbox_base_container_image:- overrides.sandbox_base_container_image ??- "ghcr.io/all-hands-ai/runtime:latest",- sandbox_runtime_container_image:- overrides.sandbox_runtime_container_image ??- "ghcr.io/all-hands-ai/runtime:latest",- org_version: overrides.org_version ?? 1,- search_api_key: overrides.search_api_key ?? null,- sandbox_api_key: overrides.sandbox_api_key ?? null,- max_budget_per_task: overrides.max_budget_per_task ?? 0,- enable_solvability_analysis: overrides.enable_solvability_analysis ?? false,- v1_enabled: overrides.v1_enabled ?? true,- credits: overrides.credits ?? 0,- is_personal: overrides.is_personal,- ...overrides,- };-}--function buildSettingsWithAdvancedToggle(- overrides: Partial<Settings> = {},-): Settings {- const schema = structuredClone(- overrides.agent_settings_schema ??- MOCK_DEFAULT_USER_SETTINGS.agent_settings_schema!,- );- const llmSection = schema.sections.find((section) => section.key === "llm");-- if (- llmSection &&- !llmSection.fields.some((field) => field.key === "llm.timeout")- ) {- llmSection.fields.push({- key: "llm.timeout",- label: "Timeout",- section: "llm",- section_label: "LLM",- value_type: "integer",- default: null,- choices: [],- depends_on: [],- prominence: "major",- secret: false,- required: false,- });- }-- return buildSettings({ ...overrides, agent_settings_schema: schema });-}--async function selectProvider(providerLabel: "OpenHands" | "OpenAI") {- const providerInput = screen.getByTestId("llm-provider-input");- await userEvent.click(providerInput);- await userEvent.click(await screen.findByText(providerLabel));- await waitFor(() => {- expect(providerInput).toHaveValue(providerLabel);- });- return providerInput;-}--async function selectModel(modelLabel: string) {- const modelInput = screen.getByTestId("llm-model-input");- await userEvent.click(modelInput);- await userEvent.click(await screen.findByText(modelLabel));- await waitFor(() => {- expect(modelInput).toHaveValue(modelLabel);- });- return modelInput;-}---function getPayloadAgentSettings(- payload: Record<string, unknown>,-): Record<string, unknown> {- return (payload.agent_settings_diff as Record<string, unknown>) ?? {};-}--function renderLlmSettingsScreen({- appMode = "oss",- organizationId = "1",- meData,- organizations,- scope = "personal",-}: {- appMode?: "oss" | "saas";- organizationId?: string;- meData?: OrganizationMember;- organizations?: Organization[];- scope?: "personal" | "org";-} = {}) {- const queryClient = new QueryClient({- defaultOptions: {- queries: { retry: false },- },- });-- useSelectedOrganizationStore.setState({ organizationId });- mockUseConfig.mockReturnValue({- data: { app_mode: appMode },- isLoading: false,- });-- if (appMode === "saas") {- queryClient.setQueryData(["user", "authenticated", appMode], true);- queryClient.setQueryData(- ["organizations", organizationId, "me"],- meData ?? buildOrganizationMember({ org_id: organizationId }),- );- queryClient.setQueryData(["organizations"], {- items: organizations ?? [- buildOrganization({ id: organizationId, is_personal: false }),- ],- currentOrgId: organizationId,- });- }-- return render(<LlmSettingsScreen scope={scope} />, {+function renderLlmSettingsScreen() {+ return render(<LlmSettingsScreen />, {wrapper: ({ children }) => (- <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>+ <MemoryRouter>+ <QueryClientProvider+ client={new QueryClient({+ defaultOptions: { queries: { retry: false } },+ })}+ >+ {children}+ </QueryClientProvider>+ </MemoryRouter>),});}-beforeEach(() => {- vi.restoreAllMocks();- resetTestHandlersMockSettings();- mockUseSearchParams.mockReturnValue([{ get: () => null }, vi.fn()]);- mockUseConfig.mockReturnValue({- data: { app_mode: "oss" },- isLoading: false,- });- useSelectedOrganizationStore.setState({ organizationId: "1" });-});-describe("LlmSettingsScreen", () => {- it("renders the schema-driven basic LLM form in OSS mode", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(buildSettings());-- renderLlmSettingsScreen({ appMode: "oss" });-- await screen.findByTestId("llm-settings-screen");- expect(screen.getByTestId("llm-settings-form-basic")).toBeInTheDocument();- expect(screen.getByTestId("llm-provider-input")).toBeInTheDocument();- expect(screen.getByTestId("llm-model-input")).toBeInTheDocument();- expect(screen.getByTestId("llm-api-key-input")).toBeInTheDocument();- expect(screen.getByTestId("save-button")).toBeInTheDocument();+ beforeEach(() => {+ vi.restoreAllMocks();});- it("opens advanced view when a custom advanced LLM base URL is already set", async () => {+ it("renders the OSS LLM settings form from the SDK schema fallback", async () => {vi.spyOn(SettingsService, "getSettings").mockResolvedValue(buildSettings({llm_model: "openai/gpt-4o",- llm_base_url: "https://custom.example/v1",- agent_settings: {- llm: {- model: "openai/gpt-4o",- base_url: "https://custom.example/v1",- },- },- }),- );-- renderLlmSettingsScreen({ appMode: "oss" });-- await screen.findByTestId("llm-settings-form-advanced");- expect(screen.getByTestId("llm-custom-model-input")).toBeInTheDocument();- expect(screen.getByTestId("base-url-input")).toBeInTheDocument();- });-- it("shows Advanced and All toggles in OSS mode for the default LLM route schema", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(buildSettings());-- renderLlmSettingsScreen({ appMode: "oss" });-- await screen.findByTestId("llm-settings-screen");- expect(- screen.getByTestId("sdk-section-advanced-toggle"),- ).toBeInTheDocument();- expect(screen.getByTestId("sdk-section-all-toggle")).toBeInTheDocument();- });-- it("keeps Advanced visible but hides All in SaaS mode for the default LLM route schema", async () => {- vi.spyOn(- organizationService,- "getOrganizationSettings",- ).mockResolvedValue(- buildSettings({+ llm_api_key_set: true,agent_settings: {+ ...MOCK_DEFAULT_USER_SETTINGS.agent_settings,llm: {model: "openai/gpt-4o",+ api_key: null,+ base_url: "",},},}),);- renderLlmSettingsScreen({ appMode: "saas", scope: "org" });+ renderLlmSettingsScreen();await screen.findByTestId("llm-settings-screen");- expect(- screen.getByTestId("sdk-section-advanced-toggle"),- ).toBeInTheDocument();- expect(- screen.queryByTestId("sdk-section-all-toggle"),- ).not.toBeInTheDocument();-- await userEvent.click(screen.getByTestId("sdk-section-advanced-toggle"));-- expect(screen.getByTestId("llm-settings-form-advanced")).toBeInTheDocument();- expect(screen.getByTestId("llm-custom-model-input")).toBeInTheDocument();- expect(screen.getByTestId("base-url-input")).toBeInTheDocument();- });- it("uses schema defaults for custom-rendered advanced fields", async () => {- const schema = structuredClone(- MOCK_DEFAULT_USER_SETTINGS.agent_settings_schema!,- );- const llmSection = schema.sections.find((section) => section.key === "llm");- const baseUrlField = llmSection?.fields.find(- (field) => field.key === "llm.base_url",- );-- if (!baseUrlField) {- throw new Error("Expected llm.base_url field in test schema");- }-- baseUrlField.default = "https://schema.default/v1";- llmSection?.fields.push({- key: "llm.timeout",- label: "Timeout",- section: "llm",- section_label: "LLM",- value_type: "integer",- default: 30,- choices: [],- depends_on: [],- prominence: "major",- secret: false,- required: false,- });-- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_base_url: "",- agent_settings: {- llm: {- model: "openai/gpt-4o",- },- },- agent_settings_schema: schema,- }),- );-- renderLlmSettingsScreen({ appMode: "oss" });-- await screen.findByTestId("llm-settings-form-basic");- await userEvent.click(screen.getByTestId("sdk-section-advanced-toggle"));-- expect(screen.getByTestId("base-url-input")).toHaveValue(- "https://schema.default/v1",- );- });-- it("does not render the agent field even when the schema includes it", async () => {- const schema = structuredClone(- MOCK_DEFAULT_USER_SETTINGS.agent_settings_schema!,- );-- schema.sections.push({- key: "general",- label: "General",- fields: [- {- key: "agent",- label: "Agent",- section: "general",- section_label: "General",- value_type: "string",- default: "CodeActAgent",- choices: [],- depends_on: [],- prominence: "major",- secret: false,- required: true,- },- ],- });-- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_model: "openai/gpt-4o",- llm_base_url: "https://custom.example/v1",- agent_settings_schema: schema,- agent_settings: {- agent: "BrowsingAgent",- llm: {- model: "openai/gpt-4o",- base_url: "https://custom.example/v1",- },- },- }),- );-- renderLlmSettingsScreen({ appMode: "oss" });-- await screen.findByTestId("llm-settings-form-advanced");-- expect(screen.queryByTestId("agent-input")).not.toBeInTheDocument();- });-- it("uses the docs.openhands.dev domain for the API key help link", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_model: "openai/gpt-4o",- agent_settings: {- llm: {- model: "openai/gpt-4o",- },- },- }),- );-- renderLlmSettingsScreen({ appMode: "oss" });-- await screen.findByTestId("llm-settings-screen");-- const helpLink = within(- screen.getByTestId("llm-settings-form-basic"),- ).getByTestId("llm-api-key-help-anchor");-- expect(helpLink.querySelector("a")).toHaveAttribute(- "href",- "https://docs.openhands.dev/usage/local-setup#getting-an-api-key",- );- });-- it("defaults to basic view on first visit when org settings use a bare OpenAI model with the default base URL", async () => {- const schema = structuredClone(- MOCK_DEFAULT_USER_SETTINGS.agent_settings_schema!,- );- const llmSection = schema.sections.find((section) => section.key === "llm");-- if (!llmSection) {- throw new Error("Expected llm section in test schema");- }-- llmSection.fields.push({- key: "llm.timeout",- label: "Timeout",- section: "llm",- section_label: "LLM",- value_type: "integer",- default: 30,- choices: [],- depends_on: [],- prominence: "minor",- secret: false,- required: false,- });-- schema.sections.push({- key: "general",- label: "General",- fields: [- {- key: "agent",- label: "Agent",- section: "general",- section_label: "General",- value_type: "string",- default: "CodeActAgent",- choices: [],- depends_on: [],- prominence: "major",- secret: false,- required: true,- },- ],- });-- vi.spyOn(- organizationService,- "getOrganizationSettings",- ).mockResolvedValue(- buildSettings({- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- agent_settings_schema: schema,- agent_settings: {- agent: "CodeActAgent",- llm: {- model: "gpt-4",- base_url: "https://api.openai.com",- },- },- }),- );-- renderLlmSettingsScreen({ appMode: "saas", scope: "org" });-- await screen.findByTestId("llm-settings-form-basic");- expect(- screen.queryByTestId("sdk-settings-llm.timeout"),- ).not.toBeInTheDocument();- expect(- screen.queryByTestId("llm-settings-form-advanced"),- ).not.toBeInTheDocument();- });-- it("defaults to basic view on first personal SaaS visit even when effective settings include inherited org-only LLM fields", async () => {- const schema = structuredClone(- MOCK_DEFAULT_USER_SETTINGS.agent_settings_schema!,- );- const llmSection = schema.sections.find((section) => section.key === "llm");-- if (!llmSection) {- throw new Error("Expected llm section in test schema");- }-- llmSection.fields.push({- key: "llm.timeout",- label: "Timeout",- section: "llm",- section_label: "LLM",- value_type: "integer",- default: 30,- choices: [],- depends_on: [],- prominence: "minor",- secret: false,- required: false,- });-- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- agent_settings_schema: schema,- agent_settings: {- agent: "CodeActAgent",- llm: {- model: "gpt-4",- base_url: "https://api.openai.com",- timeout: 60,- },- },- }),- );-- renderLlmSettingsScreen({ appMode: "saas" });-- await screen.findByTestId("llm-settings-form-basic");- expect(- screen.queryByTestId("sdk-settings-llm.timeout"),- ).not.toBeInTheDocument();- expect(- screen.queryByTestId("llm-settings-form-advanced"),- ).not.toBeInTheDocument();- });-- it("hides the API key input for OpenHands provider in SaaS mode", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(buildSettings());-- renderLlmSettingsScreen({ appMode: "saas" });-- await screen.findByTestId("llm-settings-screen");- expect(screen.queryByTestId("llm-api-key-input")).not.toBeInTheDocument();- expect(screen.getByTestId("openhands-api-key-help")).toBeInTheDocument();- });-- it("shows the API key input for non-OpenHands providers in SaaS mode", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_model: "openai/gpt-4o",- agent_settings: { llm: { model: "openai/gpt-4o" } },- }),- );-- renderLlmSettingsScreen({ appMode: "saas" });-- await screen.findByTestId("llm-settings-screen");+ expect(screen.getByTestId("llm-provider-input")).toBeInTheDocument();expect(screen.getByTestId("llm-api-key-input")).toBeInTheDocument();});+});- it("keeps personal settings editable for team members in SaaS mode", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(buildSettings());-- renderLlmSettingsScreen({- appMode: "saas",- meData: buildOrganizationMember({ role: "member" }),- });-- await screen.findByTestId("llm-settings-screen");- expect(screen.getByTestId("save-button")).toBeInTheDocument();- });-- describe("Contextual info messages", () => {- it("should show admin info message for admin user in team organization", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings(),- );-- renderLlmSettingsScreen({- appMode: "saas",- organizationId: "3",- meData: buildOrganizationMember({ org_id: "3", role: "admin" }),- organizations: [buildOrganization({ id: "3", is_personal: false })],- });-- expect(- await screen.findByTestId("llm-settings-info-message"),- ).toBeInTheDocument();- });-- it("should show member info message for member user in team organization", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings(),- );-- renderLlmSettingsScreen({- appMode: "saas",- organizationId: "2",- meData: buildOrganizationMember({ org_id: "2", role: "member" }),- organizations: [buildOrganization({ id: "2", is_personal: false })],- });-- expect(- await screen.findByTestId("llm-settings-info-message"),- ).toBeInTheDocument();- });-- it("shows the personal info message for personal workspace in SaaS mode", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings(),- );-- renderLlmSettingsScreen({- appMode: "saas",- organizationId: "1",- meData: buildOrganizationMember({ org_id: "1", role: "owner" }),- organizations: [buildOrganization({ id: "1", is_personal: true })],- });-- expect(- await screen.findByTestId("llm-settings-info-message"),- ).toBeInTheDocument();- });-- it("should not show info message in OSS mode", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings(),- );-- renderLlmSettingsScreen({ appMode: "oss" });-- await screen.findByTestId("llm-settings-screen");- expect(- screen.queryByTestId("llm-settings-info-message"),- ).not.toBeInTheDocument();- });- });-- it("submits basic form values through SDK setting keys", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_model: "openai/gpt-4o",- agent_settings: { llm: { model: "openai/gpt-4o" } },- }),- );- const saveSettingsSpy = vi- .spyOn(SettingsService, "saveSettings")- .mockResolvedValue(true);-- renderLlmSettingsScreen({ appMode: "oss" });-- const apiKeyInput = await screen.findByTestId("llm-api-key-input");- await userEvent.type(apiKeyInput, "test-api-key");- await userEvent.click(screen.getByTestId("save-button"));-- await waitFor(() => {- expect(saveSettingsSpy).toHaveBeenCalledWith(- expect.objectContaining({- agent_settings_diff: expect.objectContaining({- llm: expect.objectContaining({ api_key: "test-api-key" }),- }),- }),- );- });- });-- it("resets hidden advanced and all settings back to defaults when saving basic view", async () => {- const schema = structuredClone(- MOCK_DEFAULT_USER_SETTINGS.agent_settings_schema!,- );- const llmSection = schema.sections.find((section) => section.key === "llm");-- if (!llmSection) {- throw new Error("Expected llm section in test schema");- }-- const baseUrlField = llmSection.fields.find(- (field) => field.key === "llm.base_url",- );- if (!baseUrlField) {- throw new Error("Expected llm.base_url field in test schema");- }- baseUrlField.default = "https://schema.default/v1";-- llmSection.fields.push({- key: "llm.timeout",- label: "Timeout",- section: "llm",- section_label: "LLM",- value_type: "integer",- default: 30,- choices: [],- depends_on: [],- prominence: "minor",- secret: false,- required: false,- });-- schema.sections.push({- key: "general",- label: "General",- fields: [- {- key: "agent",- label: "Agent",- section: "general",- section_label: "General",- value_type: "string",- default: "CodeActAgent",- choices: [],- depends_on: [],- prominence: "major",- secret: false,- required: true,- },- ],- });-- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_model: "openai/gpt-4o",- llm_base_url: "https://custom.example/v1",- agent_settings_schema: schema,- agent_settings: {- agent: "BrowsingAgent",- llm: {- model: "openai/gpt-4o",- base_url: "https://custom.example/v1",- timeout: 90,- },- },- }),- );- const saveSettingsSpy = vi- .spyOn(SettingsService, "saveSettings")- .mockResolvedValue(true);-- renderLlmSettingsScreen({ appMode: "oss" });-- await screen.findByTestId("llm-settings-form-advanced");- await userEvent.click(screen.getByTestId("sdk-section-basic-toggle"));-- const apiKeyInput = await screen.findByTestId("llm-api-key-input");- await userEvent.type(apiKeyInput, "test-api-key");- await userEvent.click(screen.getByTestId("save-button"));-- await waitFor(() => {- expect(saveSettingsSpy).toHaveBeenCalledWith(- expect.objectContaining({- agent_settings_diff: expect.objectContaining({- llm: expect.objectContaining({- api_key: "test-api-key",- base_url: "https://schema.default/v1",- timeout: 30,- }),- }),- }),- );- });-- const payload = saveSettingsSpy.mock.calls[0]?.[0] as Record<- string,- unknown- >;- expect(getPayloadAgentSettings(payload)).not.toHaveProperty("agent");- });-- it("preserves existing MCP settings when saving the LLM page", async () => {- const schema = structuredClone(- MOCK_DEFAULT_USER_SETTINGS.agent_settings_schema!,- );- const existingMcpConfig = {- mcpServers: {- tavily: {- transport: "http",- url: "https://example.com/mcp",- },- },- };-- schema.sections.push({- key: "general",- label: "General",- fields: [- {- key: "agent",- label: "Agent",- section: "general",- section_label: "General",- value_type: "string",- default: "CodeActAgent",- choices: [],- depends_on: [],- prominence: "major",- secret: false,- required: true,- },- {- key: "mcp_config",- label: "MCP Config",- section: "general",- section_label: "General",- value_type: "object",- default: null,- choices: [],- depends_on: [],- prominence: "major",- secret: false,- required: false,- },- ],- });-- let persistedSettings = buildSettingsWithAdvancedToggle({- llm_model: "openai/gpt-4o",- agent_settings_schema: schema,- agent_settings: {- agent: "BrowsingAgent",- llm: {- model: "openai/gpt-4o",- },- mcp_config: existingMcpConfig,- },- });-- const getSettingsSpy = vi- .spyOn(SettingsService, "getSettings")- .mockImplementation(async () => structuredClone(persistedSettings));- const saveSettingsSpy = vi- .spyOn(SettingsService, "saveSettings")- .mockImplementation(async (payload) => {- const payloadAgentSettings = getPayloadAgentSettings(payload);-- const nextAgentSettings: NonNullable<Settings["agent_settings"]> = {- ...(persistedSettings.agent_settings ?? {}),- ...(payloadAgentSettings as Record<string, SettingsValue>),- llm: {- ...((persistedSettings.agent_settings?.llm as Record<- string,- SettingsValue- >) ?? {}),- ...((payloadAgentSettings.llm as Record<string, SettingsValue>) ?? {}),- },- };-- persistedSettings = buildSettingsWithAdvancedToggle({- ...persistedSettings,- agent_settings_schema: schema,- agent_settings: nextAgentSettings,- });-- return true;- });-- renderLlmSettingsScreen({ appMode: "oss" });-- await screen.findByTestId("llm-settings-form-basic");-- const apiKeyInput = await screen.findByTestId("llm-api-key-input");- await userEvent.type(apiKeyInput, "test-api-key");- await userEvent.click(screen.getByTestId("save-button"));-- await waitFor(() => {- expect(saveSettingsSpy).toHaveBeenCalledTimes(1);- });-- const payload = saveSettingsSpy.mock.calls[0]?.[0] as Record<- string,- unknown- >;- expect(getPayloadAgentSettings(payload)).not.toHaveProperty("mcp_config");-- await waitFor(() => {- expect(getSettingsSpy).toHaveBeenCalledTimes(2);- });-- expect(persistedSettings.agent_settings?.mcp_config).toEqual(- existingMcpConfig,- );- });-- it("does not include search API key updates when saving basic LLM settings", async () => {- let persistedSettings = buildSettingsWithAdvancedToggle({- llm_model: "openai/gpt-4o",- search_api_key: "tavily-key",- search_api_key_set: true,- agent_settings: {- llm: {- model: "openai/gpt-4o",- },- },- });-- const getSettingsSpy = vi- .spyOn(SettingsService, "getSettings")- .mockImplementation(async () => structuredClone(persistedSettings));- const saveSettingsSpy = vi- .spyOn(SettingsService, "saveSettings")- .mockImplementation(async (payload) => {- const nextAgentSettings = {- ...persistedSettings.agent_settings,- } as NonNullable<Settings["agent_settings"]>;-- const payloadAgentSettings = getPayloadAgentSettings(payload);- Object.assign(- nextAgentSettings,- payloadAgentSettings as Record<string, SettingsValue>,- );- nextAgentSettings.llm = {- ...((persistedSettings.agent_settings?.llm as Record<- string,- SettingsValue- >) ?? {}),- ...((payloadAgentSettings.llm as Record<string, SettingsValue>) ?? {}),- };-- persistedSettings = buildSettings({- ...persistedSettings,- agent_settings: nextAgentSettings,- });-- return true;- });-- renderLlmSettingsScreen({ appMode: "oss" });-- await screen.findByTestId("llm-settings-form-basic");-- const apiKeyInput = await screen.findByTestId("llm-api-key-input");- await userEvent.type(apiKeyInput, "test-api-key");- await userEvent.click(screen.getByTestId("save-button"));-- await waitFor(() => {- expect(saveSettingsSpy).toHaveBeenCalledWith(- expect.objectContaining({- agent_settings_diff: expect.objectContaining({- llm: expect.objectContaining({ api_key: "test-api-key" }),- }),- }),- );- });-- const payload = saveSettingsSpy.mock.calls[0]?.[0] as Record<- string,- unknown- >;- expect(payload).not.toHaveProperty("search_api_key");-- await waitFor(() => {- expect(getSettingsSpy).toHaveBeenCalledTimes(2);- });-- await waitFor(() => {- expect(screen.getByTestId("llm-settings-form-basic")).toBeInTheDocument();- expect(- screen.queryByTestId("llm-settings-form-advanced"),- ).not.toBeInTheDocument();- });- });-- it("keeps the basic view after save on SaaS personal settings when an inherited org search API key remains set on refetch", async () => {- let persistedSettings = buildSettingsWithAdvancedToggle({- llm_model: "openai/gpt-4o",- search_api_key_set: true,- agent_settings: {- llm: {- model: "openai/gpt-4o",- },- },- });-- const getSettingsSpy = vi- .spyOn(SettingsService, "getSettings")- .mockImplementation(async () => structuredClone(persistedSettings));- const saveSettingsSpy = vi- .spyOn(SettingsService, "saveSettings")- .mockImplementation(async (payload) => {- const nextAgentSettings = {- ...persistedSettings.agent_settings,- } as NonNullable<Settings["agent_settings"]>;-- const payloadAgentSettings = getPayloadAgentSettings(payload);- Object.assign(- nextAgentSettings,- payloadAgentSettings as Record<string, SettingsValue>,- );- nextAgentSettings.llm = {- ...((persistedSettings.agent_settings?.llm as Record<- string,- SettingsValue- >) ?? {}),- ...((payloadAgentSettings.llm as Record<string, SettingsValue>) ?? {}),- };-- persistedSettings = buildSettingsWithAdvancedToggle({- ...persistedSettings,- search_api_key: "",- search_api_key_set: true,- agent_settings: nextAgentSettings,- });-- return true;- });-- renderLlmSettingsScreen({ appMode: "saas" });-- await screen.findByTestId("llm-settings-form-basic");-- const apiKeyInput = await screen.findByTestId("llm-api-key-input");- await userEvent.type(apiKeyInput, "test-api-key");- await userEvent.click(screen.getByTestId("save-button"));-- await waitFor(() => {- expect(saveSettingsSpy).toHaveBeenCalledWith(- expect.objectContaining({- agent_settings_diff: expect.objectContaining({- llm: expect.objectContaining({ api_key: "test-api-key" }),- }),- }),- );- });-- const payload = saveSettingsSpy.mock.calls[0]?.[0] as Record<- string,- unknown- >;- expect(payload).not.toHaveProperty("search_api_key");-- await waitFor(() => {- expect(getSettingsSpy).toHaveBeenCalledTimes(2);- });-- await waitFor(() => {- expect(screen.getByTestId("llm-settings-form-basic")).toBeInTheDocument();- expect(- screen.queryByTestId("llm-settings-form-advanced"),- ).not.toBeInTheDocument();- });- });-- it("does not clear the hidden search API key on SaaS org settings when saving basic view", async () => {- let persistedSettings = buildSettingsWithAdvancedToggle({- llm_model: "openai/gpt-4o",- llm_base_url: "https://custom.example/v1",- search_api_key: "****1234",- agent_settings: {- llm: {- model: "openai/gpt-4o",- base_url: "https://custom.example/v1",- },- },- });-- const getOrganizationSettingsSpy = vi- .spyOn(organizationService, "getOrganizationSettings")- .mockImplementation(async () => structuredClone(persistedSettings));- const saveOrganizationSettingsSpy = vi- .spyOn(organizationService, "saveOrganizationSettings")- .mockImplementation(async ({ settings }) => {- const nextAgentSettings = {- ...persistedSettings.agent_settings,- } as NonNullable<Settings["agent_settings"]>;-- const agentSettingsDiff = settings.agent_settings_diff as- | Settings["agent_settings"]- | undefined;- if (agentSettingsDiff) {- Object.assign(nextAgentSettings, agentSettingsDiff);- }-- Object.entries(settings).forEach(([key, value]) => {- if (key.includes(".") || key === "agent" || key === "mcp_config") {- nextAgentSettings[key] = value as SettingsValue;- }- });-- persistedSettings = buildSettingsWithAdvancedToggle({- ...persistedSettings,- llm_base_url: "",- search_api_key: "****1234",- agent_settings: nextAgentSettings,- });-- return persistedSettings;- });-- renderLlmSettingsScreen({ appMode: "saas", scope: "org" });-- await screen.findByTestId("llm-settings-form-advanced");- await userEvent.click(screen.getByTestId("sdk-section-basic-toggle"));-- const apiKeyInput = await screen.findByTestId("llm-api-key-input");- await userEvent.type(apiKeyInput, "test-api-key");- await userEvent.click(screen.getByTestId("save-button"));-- await waitFor(() => {- expect(saveOrganizationSettingsSpy).toHaveBeenCalledWith(- expect.objectContaining({- settings: expect.objectContaining({- agent_settings_diff: expect.objectContaining({- llm: expect.objectContaining({- api_key: "test-api-key",- base_url: null,- }),- }),- }),- }),- );- });-- const payload = saveOrganizationSettingsSpy.mock.calls[0]?.at(0) as {- settings: Record<string, unknown>;- };- expect(payload.settings).not.toHaveProperty("search_api_key");-- await waitFor(() => {- expect(getOrganizationSettingsSpy).toHaveBeenCalledTimes(2);- });-- await waitFor(() => {- expect(screen.getByTestId("llm-settings-form-basic")).toBeInTheDocument();- expect(- screen.queryByTestId("llm-settings-form-advanced"),- ).not.toBeInTheDocument();- });- });-- it("keeps the basic view after save when a stale legacy base URL lingers on refetch", async () => {- let persistedSettings = buildSettingsWithAdvancedToggle({- llm_base_url: "https://stale.example/v1",- agent_settings: {- llm: {- base_url: "https://stale.example/v1",- },- },- });-- const getSettingsSpy = vi- .spyOn(SettingsService, "getSettings")- .mockImplementation(async () => structuredClone(persistedSettings));- const saveSettingsSpy = vi- .spyOn(SettingsService, "saveSettings")- .mockImplementation(async (payload) => {- const nextAgentSettings = {- ...persistedSettings.agent_settings,- } as NonNullable<Settings["agent_settings"]>;-- const payloadAgentSettings = getPayloadAgentSettings(payload);- Object.assign(- nextAgentSettings,- payloadAgentSettings as Record<string, SettingsValue>,- );- nextAgentSettings.llm = {- ...((persistedSettings.agent_settings?.llm as Record<- string,- SettingsValue- >) ?? {}),- ...((payloadAgentSettings.llm as Record<string, SettingsValue>) ?? {}),- };-- persistedSettings = buildSettingsWithAdvancedToggle({- ...persistedSettings,- agent_settings: nextAgentSettings,- });-- return true;- });-- renderLlmSettingsScreen({ appMode: "oss" });-- await screen.findByTestId("llm-settings-form-advanced");- await userEvent.click(screen.getByTestId("sdk-section-basic-toggle"));-- const apiKeyInput = await screen.findByTestId("llm-api-key-input");- await userEvent.type(apiKeyInput, "test-api-key");- await userEvent.click(screen.getByTestId("save-button"));-- await waitFor(() => {- expect(saveSettingsSpy).toHaveBeenCalledWith(- expect.objectContaining({- agent_settings_diff: expect.objectContaining({- llm: expect.objectContaining({- api_key: "test-api-key",- base_url: null,- }),- }),- }),- );- });-- await waitFor(() => {- expect(getSettingsSpy).toHaveBeenCalledTimes(2);- });-- await waitFor(() => {- expect(screen.getByTestId("llm-settings-form-basic")).toBeInTheDocument();- expect(- screen.queryByTestId("llm-settings-form-advanced"),- ).not.toBeInTheDocument();- });- });-- it("keeps the basic view after saving a basic model change when refetch includes a provider base URL", async () => {- let persistedSettings = buildSettingsWithAdvancedToggle();-- const getSettingsSpy = vi- .spyOn(SettingsService, "getSettings")- .mockImplementation(async () => structuredClone(persistedSettings));- const saveSettingsSpy = vi- .spyOn(SettingsService, "saveSettings")- .mockImplementation(async (payload) => {- const nextAgentSettings = {- ...persistedSettings.agent_settings,- } as NonNullable<Settings["agent_settings"]>;-- const payloadAgentSettings = getPayloadAgentSettings(payload);- Object.assign(- nextAgentSettings,- payloadAgentSettings as Record<string, SettingsValue>,- );- nextAgentSettings.llm = {- ...((persistedSettings.agent_settings?.llm as Record<- string,- SettingsValue- >) ?? {}),- ...((payloadAgentSettings.llm as Record<string, SettingsValue>) ?? {}),- };-- persistedSettings = buildSettingsWithAdvancedToggle({- ...persistedSettings,- llm_model: "openai/gpt-4o",- llm_base_url: "https://api.openai.com/v1",- agent_settings: {- llm: {- model: "openai/gpt-4o",- base_url: "https://api.openai.com/v1",- },- },- });-- return true;- });-- renderLlmSettingsScreen({ appMode: "oss" });-- await screen.findByTestId("llm-settings-form-basic");- await selectProvider("OpenAI");- await selectModel("gpt-4o");- await userEvent.type(- await screen.findByTestId("llm-api-key-input"),- "test-api-key",- );- await userEvent.click(screen.getByTestId("save-button"));-- await waitFor(() => {- expect(saveSettingsSpy).toHaveBeenCalledWith(- expect.objectContaining({- agent_settings_diff: expect.objectContaining({- llm: expect.objectContaining({- model: "openai/gpt-4o",- api_key: "test-api-key",- }),- }),- }),- );- });-- await waitFor(() => {- expect(getSettingsSpy).toHaveBeenCalledTimes(2);- });-- await waitFor(() => {- expect(screen.getByTestId("llm-settings-form-basic")).toBeInTheDocument();- expect(- screen.queryByTestId("llm-settings-form-advanced"),- ).not.toBeInTheDocument();- });- });-- it("does not render the search API key input in advanced LLM settings", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettingsWithAdvancedToggle(),- );-- renderLlmSettingsScreen({ appMode: "oss" });-- await screen.findByTestId("llm-settings-form-basic");- await userEvent.click(screen.getByTestId("sdk-section-advanced-toggle"));-- await waitFor(() => {- expect(- screen.getByTestId("llm-settings-form-advanced"),- ).toBeInTheDocument();- expect(- screen.queryByTestId("search-api-key-input"),- ).not.toBeInTheDocument();- });- });-- it("does not reveal all-only fields after save when refetch includes an MCP-owned search API key", async () => {- const schema = structuredClone(- MOCK_DEFAULT_USER_SETTINGS.agent_settings_schema!,- );- const llmSection = schema.sections.find((section) => section.key === "llm");-- if (!llmSection) {- throw new Error("Expected llm section in test schema");- }-- llmSection.fields.push({- key: "llm.timeout",- label: "Timeout",- section: "llm",- section_label: "LLM",- value_type: "integer",- default: 30,- choices: [],- depends_on: [],- prominence: "minor",- secret: false,- required: false,- });-- schema.sections.push({- key: "general",- label: "General",- fields: [- {- key: "agent",- label: "Agent",- section: "general",- section_label: "General",- value_type: "string",- default: "CodeActAgent",- choices: [],- depends_on: [],- prominence: "major",- secret: false,- required: true,- },- ],- });-- let persistedSettings = buildSettings({- agent_settings_schema: schema,- search_api_key: "",- search_api_key_set: false,- agent_settings: {- llm: {- model: "openhands/claude-opus-4-5-20251101",- },- },- });-- const getSettingsSpy = vi- .spyOn(SettingsService, "getSettings")- .mockImplementation(async () => structuredClone(persistedSettings));- vi.spyOn(SettingsService, "saveSettings").mockImplementation(- async (payload) => {- persistedSettings = buildSettings({- agent_settings_schema: schema,- search_api_key: "tavily-key",- search_api_key_set: true,- agent_settings: {- llm: {- model: "openhands/claude-opus-4-5-20251101",- },- },- });-- expect(payload).not.toHaveProperty("search_api_key");- return true;- },- );-- renderLlmSettingsScreen({ appMode: "oss" });-- await screen.findByTestId("llm-settings-form-basic");- await userEvent.click(screen.getByTestId("sdk-section-all-toggle"));- expect(screen.getByTestId("sdk-settings-llm.timeout")).toBeInTheDocument();-- const apiKeyInput = await screen.findByTestId("llm-api-key-input");- await userEvent.type(apiKeyInput, "test-api-key");- await userEvent.click(screen.getByTestId("save-button"));-- await waitFor(() => {- expect(getSettingsSpy).toHaveBeenCalledTimes(2);- });-- await waitFor(() => {- expect(- screen.queryByTestId("sdk-settings-llm.timeout"),- ).not.toBeInTheDocument();- });- });-- it("does not reveal all-only fields after save when refetch returns a litellm_proxy model with the managed proxy base URL", async () => {- const schema = structuredClone(- MOCK_DEFAULT_USER_SETTINGS.agent_settings_schema!,- );- const llmSection = schema.sections.find((section) => section.key === "llm");-- if (!llmSection) {- throw new Error("Expected llm section in test schema");- }-- llmSection.fields.push({- key: "llm.timeout",- label: "Timeout",- section: "llm",- section_label: "LLM",- value_type: "integer",- default: 30,- choices: [],- depends_on: [],- prominence: "minor",- secret: false,- required: false,- });-- let persistedSettings = buildSettings({- agent_settings_schema: schema,- agent_settings: {- llm: {- model: "openhands/claude-opus-4-5-20251101",- },- },- });-- const getSettingsSpy = vi- .spyOn(SettingsService, "getSettings")- .mockImplementation(async () => structuredClone(persistedSettings));- vi.spyOn(SettingsService, "saveSettings").mockImplementation(async () => {- persistedSettings = buildSettings({- agent_settings_schema: schema,- agent_settings: {- llm: {- model: "litellm_proxy/claude-opus-4-5-20251101",- base_url: "https://llm-proxy.app.all-hands.dev",- },- },- });-- return true;- });-- renderLlmSettingsScreen({ appMode: "oss" });-- await screen.findByTestId("llm-settings-form-basic");- expect(- screen.queryByTestId("sdk-settings-llm.timeout"),- ).not.toBeInTheDocument();-- await userEvent.type(- await screen.findByTestId("llm-api-key-input"),- "test-api-key",- );- await userEvent.click(screen.getByTestId("save-button"));-- await waitFor(() => {- expect(getSettingsSpy).toHaveBeenCalledTimes(2);- });-- await waitFor(() => {- expect(- screen.queryByTestId("sdk-settings-llm.timeout"),- ).not.toBeInTheDocument();- });- });-- it("submits advanced form values through SDK setting keys", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_model: "openai/gpt-4o",- agent_settings: {- llm: {- model: "openai/gpt-4o",- base_url: "https://custom.example/v1",- },- },- }),- );- const saveSettingsSpy = vi- .spyOn(SettingsService, "saveSettings")- .mockResolvedValue(true);-- renderLlmSettingsScreen({ appMode: "oss" });-- const baseUrlInput = await screen.findByTestId("base-url-input");- await userEvent.type(baseUrlInput, "/extra");-- await waitFor(() => {- expect(baseUrlInput).toHaveValue("https://custom.example/v1/extra");- expect(screen.getByTestId("save-button")).not.toBeDisabled();- });-- await userEvent.click(screen.getByTestId("save-button"));-- await waitFor(() => {- expect(saveSettingsSpy).toHaveBeenCalledWith(- expect.objectContaining({- agent_settings_diff: expect.objectContaining({- llm: expect.objectContaining({- base_url: "https://custom.example/v1/extra",- }),- }),- }),- );- });- });-- describe("API key visibility in Basic Settings", () => {- it("should hide API key input when SaaS mode is enabled and OpenHands provider is selected", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings(),- );-- renderLlmSettingsScreen({ appMode: "saas" });- await screen.findByTestId("llm-settings-screen");-- const basicForm = screen.getByTestId("llm-settings-form-basic");- const providerInput = within(basicForm).getByTestId("llm-provider-input");-- await waitFor(() => {- expect(providerInput).toHaveValue("OpenHands");- });-- expect(- within(basicForm).queryByTestId("llm-api-key-input"),- ).not.toBeInTheDocument();- expect(- within(basicForm).queryByTestId("llm-api-key-help-anchor"),- ).not.toBeInTheDocument();- });-- it("should show API key input when SaaS mode is enabled and non-OpenHands provider is selected", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_model: "openai/gpt-4o",- agent_settings: { llm: { model: "openai/gpt-4o" } },- }),- );-- renderLlmSettingsScreen({ appMode: "saas" });- await screen.findByTestId("llm-settings-screen");-- const basicForm = screen.getByTestId("llm-settings-form-basic");- const providerInput = within(basicForm).getByTestId("llm-provider-input");-- await waitFor(() => {- expect(providerInput).toHaveValue("OpenAI");- });-- expect(- within(basicForm).getByTestId("llm-api-key-input"),- ).toBeInTheDocument();- expect(- within(basicForm).getByTestId("llm-api-key-help-anchor"),- ).toBeInTheDocument();- });-- it("should show API key input when OSS mode is enabled and OpenHands provider is selected", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings(),- );-- renderLlmSettingsScreen({ appMode: "oss" });- await screen.findByTestId("llm-settings-screen");-- const basicForm = screen.getByTestId("llm-settings-form-basic");- const providerInput = within(basicForm).getByTestId("llm-provider-input");-- await waitFor(() => {- expect(providerInput).toHaveValue("OpenHands");- });-- expect(- within(basicForm).getByTestId("llm-api-key-input"),- ).toBeInTheDocument();- expect(- within(basicForm).getByTestId("llm-api-key-help-anchor"),- ).toBeInTheDocument();- });-- it("should show API key input when OSS mode is enabled and non-OpenHands provider is selected", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_model: "openai/gpt-4o",- agent_settings: { llm: { model: "openai/gpt-4o" } },- }),- );-- renderLlmSettingsScreen({ appMode: "oss" });- await screen.findByTestId("llm-settings-screen");-- const basicForm = screen.getByTestId("llm-settings-form-basic");- const providerInput = within(basicForm).getByTestId("llm-provider-input");-- await waitFor(() => {- expect(providerInput).toHaveValue("OpenAI");- });-- expect(- within(basicForm).getByTestId("llm-api-key-input"),- ).toBeInTheDocument();- expect(- within(basicForm).getByTestId("llm-api-key-help-anchor"),- ).toBeInTheDocument();- });-- it("should hide API key input when switching from non-OpenHands to OpenHands provider in SaaS mode", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_model: "openai/gpt-4o",- agent_settings: { llm: { model: "openai/gpt-4o" } },- }),- );-- renderLlmSettingsScreen({ appMode: "saas" });- await screen.findByTestId("llm-settings-screen");-- const basicForm = screen.getByTestId("llm-settings-form-basic");- await waitFor(() => {- expect(- within(basicForm).getByTestId("llm-api-key-input"),- ).toBeInTheDocument();- });-- await selectProvider("OpenHands");-- expect(- within(basicForm).queryByTestId("llm-api-key-input"),- ).not.toBeInTheDocument();- expect(- within(basicForm).queryByTestId("llm-api-key-help-anchor"),- ).not.toBeInTheDocument();- });-- it("should show API key input when switching from OpenHands to non-OpenHands provider in SaaS mode", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings(),- );-- renderLlmSettingsScreen({ appMode: "saas" });- await screen.findByTestId("llm-settings-screen");-- const basicForm = screen.getByTestId("llm-settings-form-basic");- expect(- within(basicForm).queryByTestId("llm-api-key-input"),- ).not.toBeInTheDocument();-- await selectProvider("OpenAI");-- expect(- within(basicForm).getByTestId("llm-api-key-input"),- ).toBeInTheDocument();- expect(- within(basicForm).getByTestId("llm-api-key-help-anchor"),- ).toBeInTheDocument();- });- });-- describe("Role-based permissions", () => {- describe("Member role (personal overrides allowed)", () => {- it("should keep all input fields enabled in basic view", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_model: "openai/gpt-4o",- agent_settings: { llm: { model: "openai/gpt-4o" } },- }),- );-- renderLlmSettingsScreen({- appMode: "saas",- organizationId: "2",- meData: buildOrganizationMember({ org_id: "2", role: "member" }),- });-- await screen.findByTestId("llm-settings-screen");- const basicForm = screen.getByTestId("llm-settings-form-basic");- const providerInput =- within(basicForm).getByTestId("llm-provider-input");- const modelInput = within(basicForm).getByTestId("llm-model-input");- const apiKeyInput = within(basicForm).getByTestId("llm-api-key-input");-- await waitFor(() => {- expect(providerInput).toBeEnabled();- expect(modelInput).toBeEnabled();- expect(apiKeyInput).toBeEnabled();- });- });-- it("should render the submit button", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings(),- );-- renderLlmSettingsScreen({- appMode: "saas",- organizationId: "2",- meData: buildOrganizationMember({ org_id: "2", role: "member" }),- });-- await screen.findByTestId("llm-settings-screen");- expect(screen.getByTestId("save-button")).toBeInTheDocument();- });-- it("should keep the advanced/basic toggle enabled for members", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettingsWithAdvancedToggle(),- );-- renderLlmSettingsScreen({- appMode: "saas",- organizationId: "2",- meData: buildOrganizationMember({ org_id: "2", role: "member" }),- });-- await screen.findByTestId("llm-settings-screen");- const basicToggle = screen.getByTestId("sdk-section-basic-toggle");- const advancedToggle = screen.getByTestId(- "sdk-section-advanced-toggle",- );-- expect(basicToggle).toBeEnabled();- expect(advancedToggle).toBeEnabled();- expect(- screen.getByTestId("llm-settings-form-basic"),- ).toBeInTheDocument();- });- });-- describe("Owner role (full access)", () => {- it("should enable all input fields in basic view", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_model: "openai/gpt-4o",- agent_settings: { llm: { model: "openai/gpt-4o" } },- }),- );-- renderLlmSettingsScreen({- appMode: "saas",- organizationId: "1",- meData: buildOrganizationMember({ org_id: "1", role: "owner" }),- });-- await screen.findByTestId("llm-settings-screen");- const basicForm = screen.getByTestId("llm-settings-form-basic");- const providerInput =- within(basicForm).getByTestId("llm-provider-input");- const modelInput = within(basicForm).getByTestId("llm-model-input");- const apiKeyInput = within(basicForm).getByTestId("llm-api-key-input");-- await waitFor(() => {- expect(providerInput).not.toBeDisabled();- expect(modelInput).not.toBeDisabled();- expect(apiKeyInput).not.toBeDisabled();- });- });-- it("should enable all input fields in advanced view", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettingsWithAdvancedToggle({- llm_model: "openai/gpt-4o",- agent_settings: { llm: { model: "openai/gpt-4o" } },- }),- );-- renderLlmSettingsScreen({- appMode: "saas",- organizationId: "1",- meData: buildOrganizationMember({ org_id: "1", role: "owner" }),- });-- await screen.findByTestId("llm-settings-screen");- await userEvent.click(- screen.getByTestId("sdk-section-advanced-toggle"),- );-- const advancedForm = screen.getByTestId("llm-settings-form-advanced");- const customModelInput = within(advancedForm).getByTestId(- "llm-custom-model-input",- );- const baseUrlInput = within(advancedForm).getByTestId("base-url-input");- const apiKeyInput =- within(advancedForm).getByTestId("llm-api-key-input");-- await waitFor(() => {- expect(customModelInput).not.toBeDisabled();- expect(baseUrlInput).not.toBeDisabled();- expect(apiKeyInput).not.toBeDisabled();- });- });-- it("should enable submit button when form is dirty", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_model: "openai/gpt-4o",- agent_settings: { llm: { model: "openai/gpt-4o" } },- }),- );-- renderLlmSettingsScreen({- appMode: "saas",- organizationId: "1",- meData: buildOrganizationMember({ org_id: "1", role: "owner" }),- });-- await screen.findByTestId("llm-settings-screen");- const submitButton = screen.getByTestId("save-button");- expect(submitButton).toBeDisabled();-- await userEvent.type(- screen.getByTestId("llm-api-key-input"),- "test-api-key",- );-- await waitFor(() => {- expect(submitButton).not.toBeDisabled();- });- });-- it("should allow submitting form changes", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_model: "openai/gpt-4o",- agent_settings: { llm: { model: "openai/gpt-4o" } },- }),- );- const saveSettingsSpy = vi- .spyOn(SettingsService, "saveSettings")- .mockResolvedValue(true);-- renderLlmSettingsScreen({- appMode: "saas",- organizationId: "1",- meData: buildOrganizationMember({ org_id: "1", role: "owner" }),- });-- await screen.findByTestId("llm-settings-screen");- await userEvent.type(- screen.getByTestId("llm-api-key-input"),- "test-api-key",- );- await userEvent.click(screen.getByTestId("save-button"));-- await waitFor(() => {- expect(saveSettingsSpy).toHaveBeenCalled();- });- });- });-- describe("Admin role (full access)", () => {- it("should enable all input fields in basic view", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_model: "openai/gpt-4o",- agent_settings: { llm: { model: "openai/gpt-4o" } },- }),- );-- renderLlmSettingsScreen({- appMode: "saas",- organizationId: "3",- meData: buildOrganizationMember({ org_id: "3", role: "admin" }),- });-- await screen.findByTestId("llm-settings-screen");- const basicForm = screen.getByTestId("llm-settings-form-basic");- const providerInput =- within(basicForm).getByTestId("llm-provider-input");- const modelInput = within(basicForm).getByTestId("llm-model-input");- const apiKeyInput = within(basicForm).getByTestId("llm-api-key-input");-- await waitFor(() => {- expect(providerInput).not.toBeDisabled();- expect(modelInput).not.toBeDisabled();- expect(apiKeyInput).not.toBeDisabled();- });- });-- it("should enable all input fields in advanced view", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettingsWithAdvancedToggle({- llm_model: "openai/gpt-4o",- agent_settings: { llm: { model: "openai/gpt-4o" } },- }),- );-- renderLlmSettingsScreen({- appMode: "saas",- organizationId: "3",- meData: buildOrganizationMember({ org_id: "3", role: "admin" }),- });-- await screen.findByTestId("llm-settings-screen");- await userEvent.click(- screen.getByTestId("sdk-section-advanced-toggle"),- );-- const advancedForm = screen.getByTestId("llm-settings-form-advanced");- const customModelInput = within(advancedForm).getByTestId(- "llm-custom-model-input",- );- const baseUrlInput = within(advancedForm).getByTestId("base-url-input");- const apiKeyInput =- within(advancedForm).getByTestId("llm-api-key-input");-- await waitFor(() => {- expect(customModelInput).not.toBeDisabled();- expect(baseUrlInput).not.toBeDisabled();- expect(apiKeyInput).not.toBeDisabled();- });- });-- it("should enable submit button when form is dirty", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_model: "openai/gpt-4o",- agent_settings: { llm: { model: "openai/gpt-4o" } },- }),- );-- renderLlmSettingsScreen({- appMode: "saas",- organizationId: "3",- meData: buildOrganizationMember({ org_id: "3", role: "admin" }),- });-- await screen.findByTestId("llm-settings-screen");- const submitButton = screen.getByTestId("save-button");- expect(submitButton).toBeDisabled();-- await userEvent.type(- screen.getByTestId("llm-api-key-input"),- "test-api-key",- );-- await waitFor(() => {- expect(submitButton).not.toBeDisabled();- });- });-- it("should allow submitting form changes", async () => {- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- buildSettings({- llm_model: "openai/gpt-4o",- agent_settings: { llm: { model: "openai/gpt-4o" } },- }),- );- const saveSettingsSpy = vi- .spyOn(SettingsService, "saveSettings")- .mockResolvedValue(true);-- renderLlmSettingsScreen({- appMode: "saas",- organizationId: "3",- meData: buildOrganizationMember({ org_id: "3", role: "admin" }),- });-- await screen.findByTestId("llm-settings-screen");- await userEvent.type(- screen.getByTestId("llm-api-key-input"),- "test-api-key",- );- await userEvent.click(screen.getByTestId("save-button"));-- await waitFor(() => {- expect(saveSettingsSpy).toHaveBeenCalled();- });- });- });-- describe("clientLoader permission checks", () => {- it("should export a clientLoader for route protection", () => {- expect(clientLoader).toBeTypeOf("function");- });- });+describe("clientLoader permission checks", () => {+ it("exports a clientLoader", () => {+ expect(clientLoader).toBeDefined();+ expect(typeof clientLoader).toBe("function");});});diff --git a/__tests__/routes/login.test.tsx b/__tests__/routes/login.test.tsxdeleted file mode 100644index 5d7a9f27d0..0000000000--- a/__tests__/routes/login.test.tsx+++ /dev/null@@ -1,718 +0,0 @@-import { render, screen, waitFor } from "@testing-library/react";-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import userEvent from "@testing-library/user-event";-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { createRoutesStub, useSearchParams } from "react-router";-import LoginPage from "#/routes/login";-import OptionService from "#/api/option-service/option-service.api";-import AuthService from "#/api/auth-service/auth-service.api";--const { useEmailVerificationMock, resendEmailVerificationMock } = vi.hoisted(- () => ({- useEmailVerificationMock: vi.fn(() => ({- emailVerified: false,- hasDuplicatedEmail: false,- emailVerificationModalOpen: false,- setEmailVerificationModalOpen: vi.fn(),- userId: null as string | null,- resendEmailVerification: vi.fn(),- })),- resendEmailVerificationMock: vi.fn(),- }),-);--vi.mock("#/hooks/use-github-auth-url", () => ({- useGitHubAuthUrl: () => "https://github.com/login/oauth/authorize",-}));--vi.mock("#/hooks/use-email-verification", () => ({- useEmailVerification: () => useEmailVerificationMock(),-}));--const { useAuthUrlMock } = vi.hoisted(() => ({- useAuthUrlMock: vi.fn(- (config: { identityProvider: string; appMode: string | null }) => {- const urls: Record<string, string> = {- gitlab: "https://gitlab.com/oauth/authorize",- bitbucket: "https://bitbucket.org/site/oauth2/authorize",- };- if (config.appMode === "saas") {- return (- urls[config.identityProvider] || "https://gitlab.com/oauth/authorize"- );- }- return null;- },- ),-}));--vi.mock("#/hooks/use-auth-url", () => ({- useAuthUrl: (config: { identityProvider: string; appMode: string | null }) =>- useAuthUrlMock(config),-}));--vi.mock("#/hooks/use-tracking", () => ({- useTracking: () => ({- trackLoginButtonClick: vi.fn(),- }),-}));--const { useInvitationMock, buildOAuthStateDataMock } = vi.hoisted(() => ({- useInvitationMock: vi.fn(() => ({- invitationToken: null as string | null,- hasInvitation: false,- buildOAuthStateData: (baseState: Record<string, string>) => baseState,- clearInvitation: vi.fn(),- })),- buildOAuthStateDataMock: vi.fn(- (baseState: Record<string, string>) => baseState,- ),-}));--vi.mock("#/hooks/use-invitation", () => ({- useInvitation: () => useInvitationMock(),-}));--// Mock useAppMode hook - enable CTA by default (SaaS Cloud mode)-vi.mock("#/hooks/use-app-mode", () => ({- useAppMode: () => ({- isOss: false,- isSaas: true,- isCloud: true,- isSelfHosted: false,- isEnterpriseSelfHosted: false,- isEnterpriseCloud: true,- appMode: "saas",- deploymentMode: "cloud",- }),-}));--const RouterStub = createRoutesStub([- {- Component: LoginPage,- path: "/login",- },-]);--function DestinationStub() {- const [params] = useSearchParams();- const loginMethod = params.get("login_method");- return (- <div data-testid="destination-page">- {loginMethod && (- <span data-testid="login-method-param">{loginMethod}</span>- )}- </div>- );-}--const RouterStubWithDestination = createRoutesStub([- {- Component: LoginPage,- path: "/login",- },- {- Component: DestinationStub,- path: "/settings",- },-]);--const createWrapper = () => {- const queryClient = new QueryClient({- defaultOptions: {- queries: {- retry: false,- },- },- });-- function Wrapper({ children }: { children: React.ReactNode }) {- return (- <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>- );- }-- return Wrapper;-};--describe("LoginPage", () => {- beforeEach(() => {- vi.clearAllMocks();- vi.stubGlobal("location", { href: "" });-- // @ts-expect-error - partial mock for testing- vi.spyOn(OptionService, "getConfig").mockResolvedValue({- app_mode: "saas",- posthog_client_key: "test-posthog-key",- providers_configured: ["github", "gitlab", "bitbucket"],- auth_url: "https://auth.example.com",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- });-- vi.spyOn(AuthService, "authenticate").mockRejectedValue({- response: { status: 401 },- isAxiosError: true,- });- });-- afterEach(() => {- vi.restoreAllMocks();- vi.unstubAllGlobals();- });-- describe("Rendering", () => {- it("should render login page with heading", async () => {- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(() => {- expect(screen.getByTestId("login-page")).toBeInTheDocument();- });-- expect(screen.getByText("AUTH$LETS_GET_STARTED")).toBeInTheDocument();- });-- it("should display all configured provider buttons", async () => {- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(() => {- expect(screen.getByTestId("login-content")).toBeInTheDocument();- });-- await waitFor(() => {- expect(- screen.getByRole("button", { name: "GITHUB$CONNECT_TO_GITHUB" }),- ).toBeInTheDocument();- expect(- screen.getByRole("button", { name: "GITLAB$CONNECT_TO_GITLAB" }),- ).toBeInTheDocument();- expect(- screen.getByRole("button", {- name: /BITBUCKET\$CONNECT_TO_BITBUCKET/i,- }),- ).toBeInTheDocument();- });- });-- it("should only display configured providers", async () => {- // @ts-expect-error - partial mock for testing- vi.spyOn(OptionService, "getConfig").mockResolvedValue({- app_mode: "saas",- posthog_client_key: "test-posthog-key",- providers_configured: ["github"],- auth_url: "https://auth.example.com",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- });-- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(() => {- expect(- screen.getByRole("button", { name: "GITHUB$CONNECT_TO_GITHUB" }),- ).toBeInTheDocument();- });-- expect(- screen.queryByRole("button", { name: "GITLAB$CONNECT_TO_GITLAB" }),- ).not.toBeInTheDocument();- expect(- screen.queryByRole("button", {- name: "BITBUCKET$CONNECT_TO_BITBUCKET",- }),- ).not.toBeInTheDocument();- });-- it("should display message when no providers are configured", async () => {- // @ts-expect-error - partial mock for testing- vi.spyOn(OptionService, "getConfig").mockResolvedValue({- app_mode: "saas",- posthog_client_key: "test-posthog-key",- providers_configured: [],- auth_url: "https://auth.example.com",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- });-- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(() => {- expect(- screen.getByText("AUTH$NO_PROVIDERS_CONFIGURED"),- ).toBeInTheDocument();- });- });- });-- describe("OAuth Flow", () => {- it("should redirect to GitHub auth URL when GitHub button is clicked", async () => {- const user = userEvent.setup();- const mockUrl = "https://github.com/login/oauth/authorize";-- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(() => {- expect(- screen.getByRole("button", { name: "GITHUB$CONNECT_TO_GITHUB" }),- ).toBeInTheDocument();- });-- const githubButton = screen.getByRole("button", {- name: "GITHUB$CONNECT_TO_GITHUB",- });- await user.click(githubButton);-- // URL includes state parameter added by handleAuthRedirect- expect(window.location.href).toContain(mockUrl);- });-- it("should redirect to GitLab auth URL when GitLab button is clicked", async () => {- const user = userEvent.setup();-- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(() => {- expect(- screen.getByRole("button", { name: "GITLAB$CONNECT_TO_GITLAB" }),- ).toBeInTheDocument();- });-- const gitlabButton = screen.getByRole("button", {- name: "GITLAB$CONNECT_TO_GITLAB",- });- await user.click(gitlabButton);-- // URL includes state parameter added by handleAuthRedirect- expect(window.location.href).toContain(- "https://gitlab.com/oauth/authorize",- );- });-- it("should redirect to Bitbucket auth URL when Bitbucket button is clicked", async () => {- const user = userEvent.setup();-- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(() => {- expect(screen.getByTestId("login-content")).toBeInTheDocument();- });-- await waitFor(() => {- expect(- screen.getByRole("button", {- name: /BITBUCKET\$CONNECT_TO_BITBUCKET/i,- }),- ).toBeInTheDocument();- });-- const bitbucketButton = screen.getByRole("button", {- name: /BITBUCKET\$CONNECT_TO_BITBUCKET/i,- });- await user.click(bitbucketButton);-- // URL includes state parameter added by handleAuthRedirect- expect(window.location.href).toContain(- "https://bitbucket.org/site/oauth2/authorize",- );- });- });-- describe("Redirects", () => {- it("should redirect authenticated users to home", async () => {- vi.spyOn(AuthService, "authenticate").mockResolvedValue(true);-- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(- () => {- expect(screen.queryByTestId("login-page")).not.toBeInTheDocument();- },- { timeout: 2000 },- );- });-- it("should redirect authenticated users to returnTo destination", async () => {- vi.spyOn(AuthService, "authenticate").mockResolvedValue(true);-- render(<RouterStub initialEntries={["/login?returnTo=/settings"]} />, {- wrapper: createWrapper(),- });-- await waitFor(- () => {- expect(screen.queryByTestId("login-page")).not.toBeInTheDocument();- },- { timeout: 2000 },- );- });-- it("should preserve login_method param when redirecting authenticated users", async () => {- // Arrange- vi.spyOn(AuthService, "authenticate").mockResolvedValue(true);-- // Act- render(- <RouterStubWithDestination- initialEntries={["/login?returnTo=/settings&login_method=github"]}- />,- { wrapper: createWrapper() },- );-- // Assert- await waitFor(- () => {- expect(screen.getByTestId("destination-page")).toBeInTheDocument();- expect(screen.getByTestId("login-method-param")).toHaveTextContent(- "github",- );- },- { timeout: 2000 },- );- });-- it("should redirect OSS mode users to home", async () => {- // @ts-expect-error - partial mock for testing- vi.spyOn(OptionService, "getConfig").mockResolvedValue({- app_mode: "oss",- posthog_client_key: "test-posthog-key",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- });-- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(- () => {- expect(screen.queryByTestId("login-page")).not.toBeInTheDocument();- },- { timeout: 2000 },- );- });- });-- describe("Email Verification", () => {- it("should display email verified message when emailVerified is true", async () => {- useEmailVerificationMock.mockReturnValue({- emailVerified: true,- hasDuplicatedEmail: false,- emailVerificationModalOpen: false,- setEmailVerificationModalOpen: vi.fn(),- userId: null,- resendEmailVerification: resendEmailVerificationMock,- });-- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(() => {- expect(- screen.getByText("AUTH$EMAIL_VERIFIED_PLEASE_LOGIN"),- ).toBeInTheDocument();- });- });-- it("should display duplicate email error when hasDuplicatedEmail is true", async () => {- useEmailVerificationMock.mockReturnValue({- emailVerified: false,- hasDuplicatedEmail: true,- emailVerificationModalOpen: false,- setEmailVerificationModalOpen: vi.fn(),- userId: null,- resendEmailVerification: resendEmailVerificationMock,- });-- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(() => {- expect(- screen.getByText("AUTH$DUPLICATE_EMAIL_ERROR"),- ).toBeInTheDocument();- });- });-- it("should pass userId to EmailVerificationModal when userId is provided", async () => {- const user = userEvent.setup();- const testUserId = "test-user-id-123";- const setEmailVerificationModalOpen = vi.fn();-- useEmailVerificationMock.mockReturnValue({- emailVerified: false,- hasDuplicatedEmail: false,- emailVerificationModalOpen: true,- setEmailVerificationModalOpen,- userId: testUserId,- resendEmailVerification: resendEmailVerificationMock,- });-- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(() => {- expect(- screen.getByText("AUTH$PLEASE_CHECK_EMAIL_TO_VERIFY"),- ).toBeInTheDocument();- });-- const resendButton = screen.getByRole("button", {- name: /SETTINGS\$RESEND_VERIFICATION/i,- });- await user.click(resendButton);-- expect(resendEmailVerificationMock).toHaveBeenCalledWith({- userId: testUserId,- isAuthFlow: true,- });- });- });-- describe("Loading States", () => {- it("should show loading spinner while checking auth", async () => {- vi.spyOn(AuthService, "authenticate").mockImplementation(- () => new Promise(() => {}),- );-- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(() => {- const spinner = document.querySelector(".animate-spin");- expect(spinner).toBeInTheDocument();- });- });-- it("should show loading spinner while loading config", async () => {- vi.spyOn(OptionService, "getConfig").mockImplementation(- () => new Promise(() => {}),- );-- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(() => {- const spinner = document.querySelector(".animate-spin");- expect(spinner).toBeInTheDocument();- });- });- });-- describe("Terms and Privacy", () => {- it("should display Terms and Privacy notice", async () => {- useEmailVerificationMock.mockReturnValue({- emailVerified: false,- hasDuplicatedEmail: false,- emailVerificationModalOpen: false,- setEmailVerificationModalOpen: vi.fn(),- userId: null as string | null,- resendEmailVerification: resendEmailVerificationMock,- });-- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(() => {- expect(- screen.getByTestId("terms-and-privacy-notice"),- ).toBeInTheDocument();- });- });- });-- describe("Invitation Flow", () => {- it("should display invitation pending message when hasInvitation is true", async () => {- useInvitationMock.mockReturnValue({- invitationToken: "inv-test-token-12345",- hasInvitation: true,- buildOAuthStateData: buildOAuthStateDataMock,- clearInvitation: vi.fn(),- });-- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(() => {- expect(screen.getByText("AUTH$INVITATION_PENDING")).toBeInTheDocument();- });- });-- it("should not display invitation pending message when hasInvitation is false", async () => {- useInvitationMock.mockReturnValue({- invitationToken: null,- hasInvitation: false,- buildOAuthStateData: buildOAuthStateDataMock,- clearInvitation: vi.fn(),- });-- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(() => {- expect(screen.getByTestId("login-content")).toBeInTheDocument();- });-- expect(- screen.queryByText("AUTH$INVITATION_PENDING"),- ).not.toBeInTheDocument();- });-- it("should pass buildOAuthStateData to LoginContent for OAuth state encoding", async () => {- const user = userEvent.setup();- const mockBuildOAuthStateData = vi.fn(- (baseState: Record<string, string>) => ({- ...baseState,- invitation_token: "inv-test-token-12345",- }),- );-- useInvitationMock.mockReturnValue({- invitationToken: "inv-test-token-12345",- hasInvitation: true,- buildOAuthStateData: mockBuildOAuthStateData,- clearInvitation: vi.fn(),- });-- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(() => {- expect(- screen.getByRole("button", { name: "GITHUB$CONNECT_TO_GITHUB" }),- ).toBeInTheDocument();- });-- const githubButton = screen.getByRole("button", {- name: "GITHUB$CONNECT_TO_GITHUB",- });- await user.click(githubButton);-- // buildOAuthStateData should have been called during the OAuth redirect- expect(mockBuildOAuthStateData).toHaveBeenCalled();- });-- it("should include invitation token in OAuth state when invitation is present", async () => {- const user = userEvent.setup();- const mockBuildOAuthStateData = vi.fn(- (baseState: Record<string, string>) => ({- ...baseState,- invitation_token: "inv-test-token-12345",- }),- );-- useInvitationMock.mockReturnValue({- invitationToken: "inv-test-token-12345",- hasInvitation: true,- buildOAuthStateData: mockBuildOAuthStateData,- clearInvitation: vi.fn(),- });-- render(<RouterStub initialEntries={["/login"]} />, {- wrapper: createWrapper(),- });-- await waitFor(() => {- expect(- screen.getByRole("button", { name: "GITHUB$CONNECT_TO_GITHUB" }),- ).toBeInTheDocument();- });-- const githubButton = screen.getByRole("button", {- name: "GITHUB$CONNECT_TO_GITHUB",- });- await user.click(githubButton);-- // Verify the redirect URL contains the state with invitation token- await waitFor(() => {- expect(window.location.href).toContain("state=");- });-- // Decode and verify the state contains invitation_token- const url = new URL(window.location.href);- const state = url.searchParams.get("state");- if (state) {- const decodedState = JSON.parse(atob(state));- expect(decodedState.invitation_token).toBe("inv-test-token-12345");- }- });-- it("should handle login with invitation_token URL parameter", async () => {- useInvitationMock.mockReturnValue({- invitationToken: "inv-url-token-67890",- hasInvitation: true,- buildOAuthStateData: buildOAuthStateDataMock,- clearInvitation: vi.fn(),- });-- render(- <RouterStub- initialEntries={["/login?invitation_token=inv-url-token-67890"]}- />,- {- wrapper: createWrapper(),- },- );-- await waitFor(() => {- expect(screen.getByText("AUTH$INVITATION_PENDING")).toBeInTheDocument();- });- });- });-});diff --git a/__tests__/routes/manage-org.test.tsx b/__tests__/routes/manage-org.test.tsxdeleted file mode 100644index a72d963a3e..0000000000--- a/__tests__/routes/manage-org.test.tsx+++ /dev/null@@ -1,650 +0,0 @@-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { render, screen, waitFor, within } from "@testing-library/react";-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import userEvent from "@testing-library/user-event";-import { createRoutesStub } from "react-router";-import { selectOrganization } from "test-utils";-import ManageOrg from "#/routes/manage-org";-import { organizationService } from "#/api/organization-service/organization-service.api";-import SettingsScreen, { clientLoader } from "#/routes/settings";-import {- resetOrgMockData,- MOCK_TEAM_ORG_ACME,- INITIAL_MOCK_ORGS,-} from "#/mocks/org-handlers";-import OptionService from "#/api/option-service/option-service.api";-import BillingService from "#/api/billing-service/billing-service.api";-import { OrganizationMember } from "#/types/org";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";-import { createMockWebClientConfig } from "#/mocks/settings-handlers";--const mockQueryClient = vi.hoisted(() => {- const { QueryClient } = require("@tanstack/react-query");- return new QueryClient();-});--vi.mock("#/query-client-config", () => ({- queryClient: mockQueryClient,-}));--function ManageOrgWithPortalRoot() {- return (- <div>- <ManageOrg />- <div data-testid="portal-root" id="portal-root" />- </div>- );-}--const RouteStub = createRoutesStub([- {- Component: () => <div data-testid="home-screen" />,- path: "/",- },- {- // @ts-expect-error - type mismatch- loader: clientLoader,- Component: SettingsScreen,- path: "/settings",- HydrateFallback: () => <div>Loading...</div>,- children: [- {- Component: ManageOrgWithPortalRoot,- path: "/settings/org",- },- ],- },-]);--let queryClient: QueryClient;--const renderManageOrg = () =>- render(<RouteStub initialEntries={["/settings/org"]} />, {- wrapper: ({ children }) => (- <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>- ),- });--const { navigateMock } = vi.hoisted(() => ({- navigateMock: vi.fn(),-}));--vi.mock("react-i18next", async () => {- const actual =- await vi.importActual<typeof import("react-i18next")>("react-i18next");- return {- ...actual,- useTranslation: () => ({- t: (key: string) => {- const translations: Record<string, string> = {- ORG$SELECT_ORGANIZATION_PLACEHOLDER: "Please select an organization",- ORG$PERSONAL_WORKSPACE: "Personal Workspace",- };- return translations[key] || key;- },- i18n: {- changeLanguage: vi.fn(),- },- }),- };-});--vi.mock("react-router", async () => ({- ...(await vi.importActual("react-router")),- useNavigate: () => navigateMock,-}));--vi.mock("#/hooks/query/use-is-authed", () => ({- useIsAuthed: () => ({ data: true }),-}));--describe("Manage Org Route", () => {- const getMeSpy = vi.spyOn(organizationService, "getMe");-- // Test data constants- const TEST_USERS: Record<"OWNER" | "ADMIN", OrganizationMember> = {- OWNER: {- org_id: "1",- user_id: "1",- email: "[email protected]",- role: "owner",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- },- ADMIN: {- org_id: "1",- user_id: "1",- email: "[email protected]",- role: "admin",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- },- };-- // Helper function to set up user mock- const setupUserMock = (userData: {- org_id: string;- user_id: string;- email: string;- role: "owner" | "admin" | "member";- llm_api_key: string;- max_iterations: number;- llm_model: string;- llm_base_url: string;- status: "active" | "invited" | "inactive";- }) => {- getMeSpy.mockResolvedValue(userData);- };-- beforeEach(() => {- // Set Zustand store to a team org so clientLoader's org route protection allows access- useSelectedOrganizationStore.setState({- organizationId: MOCK_TEAM_ORG_ACME.id,- });- // Seed organizations into the module-level queryClient used by clientLoader- mockQueryClient.setQueryData(["organizations"], {- items: [MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });-- queryClient = new QueryClient();- // Pre-seed organizations so org selector renders immediately (avoids flaky race with API fetch)- queryClient.setQueryData(["organizations"], {- items: INITIAL_MOCK_ORGS,- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });-- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- enable_billing: true, // Enable billing by default so billing UI is shown- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );-- // Set default mock for user (owner role has all permissions)- setupUserMock(TEST_USERS.OWNER);- });-- afterEach(() => {- vi.clearAllMocks();- // Reset organization mock data to ensure clean state between tests- resetOrgMockData();- // Reset Zustand store to ensure clean state between tests- useSelectedOrganizationStore.setState({ organizationId: null });- // Clear module-level queryClient used by clientLoader- mockQueryClient.clear();- // Clear test queryClient- queryClient?.clear();- });-- it("should render the available credits", async () => {- renderManageOrg();- await screen.findByTestId("manage-org-screen");-- await selectOrganization({ orgIndex: 0 });-- await waitFor(() => {- const credits = screen.getByTestId("available-credits");- expect(credits).toHaveTextContent("100");- });- });-- it("should render account details", async () => {- renderManageOrg();- await screen.findByTestId("manage-org-screen");-- await selectOrganization({ orgIndex: 0 });-- await waitFor(() => {- const orgName = screen.getByTestId("org-name");- expect(orgName).toHaveTextContent("Personal Workspace");- });- });-- it("should be able to add credits", async () => {- const createCheckoutSessionSpy = vi.spyOn(- BillingService,- "createCheckoutSession",- );-- renderManageOrg();- await screen.findByTestId("manage-org-screen");-- await selectOrganization({ orgIndex: 0 }); // user is owner in org 1-- expect(screen.queryByTestId("add-credits-form")).not.toBeInTheDocument();- // Simulate adding credits β wait for permissions-dependent button- const addCreditsButton = await waitFor(() => screen.getByText(/add/i));- await userEvent.click(addCreditsButton);-- const addCreditsForm = screen.getByTestId("add-credits-form");- expect(addCreditsForm).toBeInTheDocument();-- const amountInput = within(addCreditsForm).getByTestId("amount-input");- const nextButton = within(addCreditsForm).getByRole("button", {- name: /next/i,- });-- await userEvent.type(amountInput, "1000");- await userEvent.click(nextButton);-- // expect redirect to payment page- expect(createCheckoutSessionSpy).toHaveBeenCalledWith(1000);-- await waitFor(() =>- expect(screen.queryByTestId("add-credits-form")).not.toBeInTheDocument(),- );- });-- it("should close the modal when clicking cancel", async () => {- const createCheckoutSessionSpy = vi.spyOn(- BillingService,- "createCheckoutSession",- );- renderManageOrg();- await screen.findByTestId("manage-org-screen");-- await selectOrganization({ orgIndex: 0 }); // user is owner in org 1-- expect(screen.queryByTestId("add-credits-form")).not.toBeInTheDocument();- // Simulate adding credits β wait for permissions-dependent button- const addCreditsButton = await waitFor(() => screen.getByText(/add/i));- await userEvent.click(addCreditsButton);-- const addCreditsForm = screen.getByTestId("add-credits-form");- expect(addCreditsForm).toBeInTheDocument();-- const cancelButton = within(addCreditsForm).getByRole("button", {- name: /close/i,- });-- await userEvent.click(cancelButton);-- expect(screen.queryByTestId("add-credits-form")).not.toBeInTheDocument();- expect(createCheckoutSessionSpy).not.toHaveBeenCalled();- });-- it("should show add credits option for ADMIN role", async () => {- renderManageOrg();- await screen.findByTestId("manage-org-screen");-- await selectOrganization({ orgIndex: 3 }); // user is admin in org 4 (All Hands AI)-- // Verify credits are shown- await waitFor(() => {- const credits = screen.getByTestId("available-credits");- expect(credits).toBeInTheDocument();- });-- // Verify add credits button is present (admins can add credits)- const addButton = screen.getByText(/add/i);- expect(addButton).toBeInTheDocument();- });-- describe("actions", () => {- it("should be able to update the organization name", async () => {- const updateOrgNameSpy = vi.spyOn(- organizationService,- "updateOrganization",- );- const getConfigSpy = vi.spyOn(OptionService, "getConfig");-- getConfigSpy.mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas", // required to enable getMe- }),- );-- renderManageOrg();- await screen.findByTestId("manage-org-screen");-- await selectOrganization({ orgIndex: 0 });-- const orgName = screen.getByTestId("org-name");- await waitFor(() =>- expect(orgName).toHaveTextContent("Personal Workspace"),- );-- expect(- screen.queryByTestId("update-org-name-form"),- ).not.toBeInTheDocument();-- const changeOrgNameButton = within(orgName).getByRole("button", {- name: /change/i,- });- await userEvent.click(changeOrgNameButton);-- const orgNameForm = screen.getByTestId("update-org-name-form");- const orgNameInput = within(orgNameForm).getByRole("textbox");- const saveButton = within(orgNameForm).getByRole("button", {- name: /save/i,- });-- await userEvent.type(orgNameInput, "New Org Name");- await userEvent.click(saveButton);-- expect(updateOrgNameSpy).toHaveBeenCalledWith({- orgId: "1",- name: "New Org Name",- });-- await waitFor(() => {- expect(- screen.queryByTestId("update-org-name-form"),- ).not.toBeInTheDocument();- expect(orgName).toHaveTextContent("New Org Name");- });- });-- it("should NOT allow roles other than owners to change org name", async () => {- // Set admin role before rendering- setupUserMock(TEST_USERS.ADMIN);-- renderManageOrg();- await screen.findByTestId("manage-org-screen");-- await selectOrganization({ orgIndex: 3 }); // user is admin in org 4 (All Hands AI)-- const orgName = screen.getByTestId("org-name");- const changeOrgNameButton = within(orgName).queryByRole("button", {- name: /change/i,- });- expect(changeOrgNameButton).not.toBeInTheDocument();- });-- it("should NOT allow roles other than owners to delete an organization", async () => {- setupUserMock(TEST_USERS.ADMIN);-- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas", // required to enable getMe- }),- );-- renderManageOrg();- await screen.findByTestId("manage-org-screen");-- await selectOrganization({ orgIndex: 3 }); // user is admin in org 4 (All Hands AI)-- const deleteOrgButton = screen.queryByRole("button", {- name: /ORG\$DELETE_ORGANIZATION/i,- });- expect(deleteOrgButton).not.toBeInTheDocument();- });-- it("should be able to delete an organization", async () => {- const deleteOrgSpy = vi.spyOn(organizationService, "deleteOrganization");-- renderManageOrg();- await screen.findByTestId("manage-org-screen");-- await selectOrganization({ orgIndex: 0 });-- expect(- screen.queryByTestId("delete-org-confirmation"),- ).not.toBeInTheDocument();-- const deleteOrgButton = await waitFor(() =>- screen.getByRole("button", {- name: /ORG\$DELETE_ORGANIZATION/i,- }),- );- await userEvent.click(deleteOrgButton);-- const deleteConfirmation = screen.getByTestId("delete-org-confirmation");- const confirmButton = within(deleteConfirmation).getByRole("button", {- name: /BUTTON\$CONFIRM/i,- });-- await userEvent.click(confirmButton);-- expect(deleteOrgSpy).toHaveBeenCalledWith({ orgId: "1" });- expect(- screen.queryByTestId("delete-org-confirmation"),- ).not.toBeInTheDocument();-- // expect to have navigated to home screen- await screen.findByTestId("home-screen");- });-- it.todo("should be able to update the organization billing info");- });-- describe("Role-based delete organization permission behavior", () => {- it("should show delete organization button when user has canDeleteOrganization permission (Owner role)", async () => {- setupUserMock(TEST_USERS.OWNER);-- renderManageOrg();- await screen.findByTestId("manage-org-screen");-- await selectOrganization({ orgIndex: 0 });-- const deleteButton = await screen.findByRole("button", {- name: /ORG\$DELETE_ORGANIZATION/i,- });-- expect(deleteButton).toBeInTheDocument();- expect(deleteButton).not.toBeDisabled();- });-- it("should not show delete organization button when user lacks canDeleteOrganization permission ('Admin' role)", async () => {- setupUserMock({- org_id: "1",- user_id: "1",- email: "[email protected]",- role: "admin",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- });-- renderManageOrg();- await screen.findByTestId("manage-org-screen");-- await selectOrganization({ orgIndex: 0 });-- const deleteButton = screen.queryByRole("button", {- name: /ORG\$DELETE_ORGANIZATION/i,- });-- expect(deleteButton).not.toBeInTheDocument();- });-- it("should not show delete organization button when user lacks canDeleteOrganization permission ('Member' role)", async () => {- setupUserMock({- org_id: "1",- user_id: "1",- email: "[email protected]",- role: "member",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- });-- // Members lack view_billing permission, so the clientLoader redirects away from /settings/org- renderManageOrg();-- // The manage-org screen should NOT be accessible β clientLoader redirects- await waitFor(() => {- expect(- screen.queryByTestId("manage-org-screen"),- ).not.toBeInTheDocument();- });- });-- it("should open delete confirmation modal when delete button is clicked (with permission)", async () => {- setupUserMock(TEST_USERS.OWNER);-- renderManageOrg();- await screen.findByTestId("manage-org-screen");-- await selectOrganization({ orgIndex: 0 });-- expect(- screen.queryByTestId("delete-org-confirmation"),- ).not.toBeInTheDocument();-- const deleteButton = await screen.findByRole("button", {- name: /ORG\$DELETE_ORGANIZATION/i,- });- await userEvent.click(deleteButton);-- expect(screen.getByTestId("delete-org-confirmation")).toBeInTheDocument();- });- });-- describe("enable_billing feature flag", () => {- it("should show credits section when enable_billing is true", async () => {- // Arrange- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- enable_billing: true,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );-- // Act- renderManageOrg();- await screen.findByTestId("manage-org-screen");- await selectOrganization({ orgIndex: 0 });-- // Assert- await waitFor(() => {- expect(screen.getByTestId("available-credits")).toBeInTheDocument();- });-- getConfigSpy.mockRestore();- });-- it("should show organization name section when enable_billing is true", async () => {- // Arrange- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- enable_billing: true,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );-- // Act- renderManageOrg();- await screen.findByTestId("manage-org-screen");- await selectOrganization({ orgIndex: 0 });-- // Assert- await waitFor(() => {- expect(screen.getByTestId("org-name")).toBeInTheDocument();- });-- getConfigSpy.mockRestore();- });-- it("should show Add Credits button when enable_billing is true", async () => {- // Arrange- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- enable_billing: true,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );-- // Act- renderManageOrg();- await screen.findByTestId("manage-org-screen");- await selectOrganization({ orgIndex: 0 });-- // Assert- await waitFor(() => {- const addButton = screen.getByText(/add/i);- expect(addButton).toBeInTheDocument();- });-- getConfigSpy.mockRestore();- });-- it("should hide all billing-related elements when enable_billing is false", async () => {- // Arrange- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );-- // Act- renderManageOrg();- await screen.findByTestId("manage-org-screen");- await selectOrganization({ orgIndex: 0 });-- // Assert- await waitFor(() => {- expect(- screen.queryByTestId("available-credits"),- ).not.toBeInTheDocument();- expect(screen.queryByText(/add/i)).not.toBeInTheDocument();- });-- getConfigSpy.mockRestore();- });- });-});diff --git a/__tests__/routes/manage-organization-members.test.tsx b/__tests__/routes/manage-organization-members.test.tsxdeleted file mode 100644index b37616eefc..0000000000--- a/__tests__/routes/manage-organization-members.test.tsx+++ /dev/null@@ -1,1041 +0,0 @@-import { describe, expect, it, vi, test, beforeEach, afterEach } from "vitest";-import { render, screen, within, waitFor } from "@testing-library/react";-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import userEvent from "@testing-library/user-event";-import { createRoutesStub } from "react-router";-import { selectOrganization } from "test-utils";-import { organizationService } from "#/api/organization-service/organization-service.api";-import ManageOrganizationMembers from "#/routes/manage-organization-members";-import SettingsScreen, {- clientLoader as settingsClientLoader,-} from "#/routes/settings";-import {- ORGS_AND_MEMBERS,- resetOrgMockData,- resetOrgsAndMembersMockData,- MOCK_TEAM_ORG_ACME,- INITIAL_MOCK_ORGS,-} from "#/mocks/org-handlers";-import OptionService from "#/api/option-service/option-service.api";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";-import { createMockWebClientConfig } from "#/mocks/settings-handlers";--const mockQueryClient = vi.hoisted(() => {- const { QueryClient } = require("@tanstack/react-query");- return new QueryClient();-});--vi.mock("#/query-client-config", () => ({- queryClient: mockQueryClient,-}));--vi.mock("react-i18next", async () => {- const actual =- await vi.importActual<typeof import("react-i18next")>("react-i18next");- return {- ...actual,- useTranslation: () => ({- t: (key: string) => {- const translations: Record<string, string> = {- ORG$SELECT_ORGANIZATION_PLACEHOLDER: "Please select an organization",- ORG$PERSONAL_WORKSPACE: "Personal Workspace",- };- return translations[key] || key;- },- i18n: {- changeLanguage: vi.fn(),- },- }),- };-});--vi.mock("#/hooks/query/use-is-authed", () => ({- useIsAuthed: () => ({ data: true }),-}));--function ManageOrganizationMembersWithPortalRoot() {- return (- <div>- <ManageOrganizationMembers />- <div data-testid="portal-root" id="portal-root" />- </div>- );-}--const RouteStub = createRoutesStub([- {- // @ts-expect-error - ignoreing error for test stub- loader: settingsClientLoader,- Component: SettingsScreen,- path: "/settings",- HydrateFallback: () => <div>Loading...</div>,- children: [- {- Component: ManageOrganizationMembersWithPortalRoot,- path: "/settings/org-members",- handle: { hideTitle: true },- },- {- Component: () => <div data-testid="user-settings" />,- path: "/settings/member",- },- ],- },-]);--let queryClient: QueryClient;--describe("Manage Organization Members Route", () => {- const getMeSpy = vi.spyOn(organizationService, "getMe");-- beforeEach(() => {- // Set Zustand store to a team org so clientLoader allows access to /settings/org-members- useSelectedOrganizationStore.setState({- organizationId: MOCK_TEAM_ORG_ACME.id,- });- // Seed organizations into the module-level queryClient used by clientLoader- mockQueryClient.setQueryData(["organizations"], {- items: [MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });-- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- enable_billing: true,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );-- queryClient = new QueryClient();-- // Pre-seed organizations so org selector renders immediately (avoids flaky race with API fetch)- queryClient.setQueryData(["organizations"], {- items: INITIAL_MOCK_ORGS,- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });-- // Set default mock for user (admin role has invite permission)- getMeSpy.mockResolvedValue({- org_id: "1",- user_id: "1",- email: "[email protected]",- role: "admin",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- });- });-- afterEach(() => {- vi.restoreAllMocks();- // Reset organization mock data to ensure clean state between tests- resetOrgMockData();- // Reset ORGS_AND_MEMBERS to initial state- resetOrgsAndMembersMockData();- // Clear queryClient cache to ensure fresh data for next test- queryClient.clear();- // Reset Zustand store and module-level queryClient- useSelectedOrganizationStore.setState({ organizationId: null });- mockQueryClient.clear();- });-- const renderManageOrganizationMembers = () =>- render(<RouteStub initialEntries={["/settings/org-members"]} />, {- wrapper: ({ children }) => (- <QueryClientProvider client={queryClient}>- {children}- </QueryClientProvider>- ),- });-- // Helper function to find a member by email- const findMemberByEmail = async (email: string) => {- const memberListItems = await screen.findAllByTestId("member-item");- const member = memberListItems.find((item) =>- within(item).queryByText(email),- );- if (!member) {- throw new Error(`Could not find member with email: ${email}`);- }- return member;- };-- // Helper function to open role dropdown for a member- const openRoleDropdown = async (- memberElement: HTMLElement,- roleText: string,- ) => {- // Find the role text that's clickable (has cursor-pointer class or is the main role display)- // Use a more specific query to avoid matching dropdown options- const roleElement = within(memberElement).getByText(- new RegExp(`^${roleText}$`, "i"),- );- await userEvent.click(roleElement);- return within(memberElement).getByTestId(- "organization-member-role-context-menu",- );- };-- // Helper function to change member role- const changeMemberRole = async (- memberElement: HTMLElement,- currentRole: string,- newRole: string,- ) => {- const dropdown = await openRoleDropdown(memberElement, currentRole);- const roleOption = within(dropdown).getByText(new RegExp(newRole, "i"));- await userEvent.click(roleOption);-- // If role is changing, confirm the modal- if (currentRole.toLowerCase() !== newRole.toLowerCase()) {- const confirmButton = await screen.findByTestId("confirm-button");- await userEvent.click(confirmButton);- }- };-- // Helper function to verify dropdown is not visible- const expectDropdownNotVisible = (memberElement: HTMLElement) => {- expect(- within(memberElement).queryByTestId(- "organization-member-role-context-menu",- ),- ).not.toBeInTheDocument();- };-- // Helper function to setup test with user and organization- const setupTestWithUserAndOrg = async (- userData: {- org_id: string;- user_id: string;- email: string;- role: "owner" | "admin" | "member";- llm_api_key: string;- max_iterations: number;- llm_model: string;- llm_base_url: string;- status: "active" | "invited" | "inactive";- },- orgIndex: number,- ) => {- getMeSpy.mockResolvedValue(userData);- renderManageOrganizationMembers();- await screen.findByTestId("manage-organization-members-settings");- await selectOrganization({ orgIndex });- // Wait for member list to be rendered (async data loaded)- await screen.findAllByTestId("member-item");- };-- // Helper function to create updateMember spy- const createUpdateMemberRoleSpy = () =>- vi.spyOn(organizationService, "updateMember");-- // Helper function to verify role change is not permitted- const verifyRoleChangeNotPermitted = async (- userData: {- org_id: string;- user_id: string;- email: string;- role: "owner" | "admin" | "member";- llm_api_key: string;- max_iterations: number;- llm_model: string;- llm_base_url: string;- status: "active" | "invited" | "inactive";- },- orgIndex: number,- targetMemberIndex: number,- expectedRoleText: string,- ) => {- await setupTestWithUserAndOrg(userData, orgIndex);-- const memberListItems = await screen.findAllByTestId("member-item");- const targetMember = memberListItems[targetMemberIndex];- const roleText = within(targetMember).getByText(- new RegExp(`^${expectedRoleText}$`, "i"),- );- expect(roleText).toBeInTheDocument();- await userEvent.click(roleText);-- // Verify that the dropdown does not open- expectDropdownNotVisible(targetMember);- };-- // Helper function to setup invite test (render and select organization)- const setupInviteTest = async (orgIndex: number = 0) => {- renderManageOrganizationMembers();- await screen.findByTestId("manage-organization-members-settings");- await selectOrganization({ orgIndex });- };-- // Helper function to setup test with organization (waits for settings screen)- const setupTestWithOrg = async (orgIndex: number = 0) => {- renderManageOrganizationMembers();- await screen.findByTestId("manage-organization-members-settings");- await selectOrganization({ orgIndex });- };-- // Helper function to find invite button- const findInviteButton = () =>- screen.findByRole("button", {- name: /ORG\$INVITE_ORG_MEMBERS/i,- });-- // Helper function to verify all three role options are present in dropdown- const expectAllRoleOptionsPresent = (dropdown: HTMLElement) => {- expect(within(dropdown).getByText(/owner/i)).toBeInTheDocument();- expect(within(dropdown).getByText(/admin/i)).toBeInTheDocument();- expect(within(dropdown).getByText(/member/i)).toBeInTheDocument();- };-- // Helper function to close dropdown by clicking outside- const closeDropdown = async () => {- await userEvent.click(document.body);- };-- // Helper function to verify owner option is not present in dropdown- const expectOwnerOptionNotPresent = (dropdown: HTMLElement) => {- expect(within(dropdown).queryByText(/owner/i)).not.toBeInTheDocument();- };-- it("should render", async () => {- renderManageOrganizationMembers();- await screen.findByTestId("manage-organization-members-settings");- });-- it("should navigate away from the page if not saas", async () => {- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- // @ts-expect-error - partial mock for testing- getConfigSpy.mockResolvedValue({- app_mode: "oss",- });-- renderManageOrganizationMembers();- expect(- screen.queryByTestId("manage-organization-members-settings"),- ).not.toBeInTheDocument();- });-- it("should allow the user to select an organization", async () => {- const getOrganizationMembersSpy = vi.spyOn(- organizationService,- "getOrganizationMembers",- );-- renderManageOrganizationMembers();- await screen.findByTestId("manage-organization-members-settings");-- // First org is auto-selected, so members are fetched for org "1"- await selectOrganization({ orgIndex: 1 }); // Acme Corp- expect(getOrganizationMembersSpy).toHaveBeenLastCalledWith({- orgId: "2",- page: 1,- limit: 10,- email: undefined,- });- });-- it("should render the list of organization members", async () => {- await setupTestWithOrg(0);- const members = ORGS_AND_MEMBERS["1"];-- // Wait for org "1" member to appear (ensures org switch is complete)- // This is needed because placeholderData: keepPreviousData shows stale data during transitions- await screen.findByText(members[0].email);-- const memberListItems = await screen.findAllByTestId("member-item");- expect(memberListItems).toHaveLength(members.length);-- members.forEach((member) => {- expect(screen.getByText(member.email)).toBeInTheDocument();- expect(screen.getByText(member.role)).toBeInTheDocument();- });- });-- test("an admin should be able to change the role of a organization member", async () => {- await setupTestWithUserAndOrg(- {- org_id: "1",- user_id: "1",- email: "[email protected]",- role: "admin",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- },- 1, // Acme Corp (org "2") - has owner, admin, user- );-- const updateMemberRoleSpy = createUpdateMemberRoleSpy();-- const memberListItems = await screen.findAllByTestId("member-item");- const userRoleMember = memberListItems[2]; // third member is "user" (charlie)-- let userCombobox = within(userRoleMember).getByText(/^Member$/i);- expect(userCombobox).toBeInTheDocument();-- // Change role from user to admin- await changeMemberRole(userRoleMember, "member", "admin");-- expect(updateMemberRoleSpy).toHaveBeenCalledExactlyOnceWith({- userId: "3", // charlie's id- orgId: "2",- role: "admin",- });- expectDropdownNotVisible(userRoleMember);-- // Verify the role has been updated in the UI- userCombobox = within(userRoleMember).getByText(/^Admin$/i);- expect(userCombobox).toBeInTheDocument();-- // Revert the role back to user- await changeMemberRole(userRoleMember, "admin", "member");-- expect(updateMemberRoleSpy).toHaveBeenNthCalledWith(2, {- userId: "3",- orgId: "2",- role: "member",- });-- // Verify the role has been reverted in the UI- userCombobox = within(userRoleMember).getByText(/^Member$/i);- expect(userCombobox).toBeInTheDocument();- });-- it("should not allow an admin to change the owner's role", async () => {- // User is bob (admin, user_id: "2") trying to edit alice (owner, user_id: "1")- // Admins don't have change_user_role:owner permission, so dropdown shouldn't show-- // Reset mock data to ensure clean state- resetOrgsAndMembersMockData();-- // Pre-seed the /me query data to avoid stale cache issues- const userData = {- org_id: "2",- user_id: "2", // bob (admin) - different from alice- email: "[email protected]",- role: "admin" as const,- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active" as const,- };-- getMeSpy.mockResolvedValue(userData);- queryClient.setQueryData(["organizations", "2", "me"], userData);-- renderManageOrganizationMembers();- await screen.findByTestId("manage-organization-members-settings");- await selectOrganization({ orgIndex: 1 }); // Acme Corp (org "2")-- // Wait for member list to load- const memberListItems = await screen.findAllByTestId("member-item");-- // First member is alice (owner)- const targetMember = memberListItems[0];- const roleText = within(targetMember).getByText(/^owner$/i);- expect(roleText).toBeInTheDocument();- await userEvent.click(roleText);-- // Verify that the dropdown does not open (admin can't edit owner)- expectDropdownNotVisible(targetMember);- });-- it("should allow an admin to change another admin's role", async () => {- // Mock members to include two admins so we can test admin editing another admin- const getOrganizationMembersSpy = vi.spyOn(- organizationService,- "getOrganizationMembers",- );- const getOrganizationMembersCountSpy = vi.spyOn(- organizationService,- "getOrganizationMembersCount",- );-- const twoAdminsMembers = [- {- org_id: "2",- user_id: "1",- email: "[email protected]",- role: "admin" as const,- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active" as const,- },- {- org_id: "2",- user_id: "2",- email: "[email protected]",- role: "admin" as const,- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active" as const,- },- ];-- getOrganizationMembersSpy.mockResolvedValue({- items: twoAdminsMembers,- current_page: 1,- per_page: 10,- });- getOrganizationMembersCountSpy.mockResolvedValue(2);-- // Current user is admin1 (user_id: "1")- getMeSpy.mockResolvedValue({- org_id: "2",- user_id: "1",- email: "[email protected]",- role: "admin",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- });-- const updateMemberRoleSpy = createUpdateMemberRoleSpy();-- renderManageOrganizationMembers();- await screen.findByTestId("manage-organization-members-settings");- await selectOrganization({ orgIndex: 1 }); // Acme Corp-- // Find admin2 and change their role to member- const admin2Member = await findMemberByEmail("[email protected]");- await changeMemberRole(admin2Member, "admin", "member");-- expect(updateMemberRoleSpy).toHaveBeenCalledExactlyOnceWith({- userId: "2",- orgId: "2",- role: "member",- });-- // Restore spies to prevent interference with subsequent tests- getOrganizationMembersSpy.mockRestore();- getOrganizationMembersCountSpy.mockRestore();- });-- it("should not allow a user to change their own role", async () => {- // Mock the /me endpoint to return a user ID that matches one of the members- await verifyRoleChangeNotPermitted(- {- org_id: "1",- user_id: "1", // Same as first member from org 1- email: "[email protected]",- role: "owner",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- },- 0,- 0, // First member (user_id: "1")- "Owner",- );- });-- it("should show a remove option in the role dropdown and remove the user from the list", async () => {- const removeMemberSpy = vi.spyOn(organizationService, "removeMember");-- await setupTestWithOrg(1); // Acme Corp (org "2") - has owner, admin, user-- // Get initial member count- const memberListItems = await screen.findAllByTestId("member-item");- const initialMemberCount = memberListItems.length;-- const userRoleMember = memberListItems[2]; // third member is "user"- const userEmail = within(userRoleMember).getByText("[email protected]");- expect(userEmail).toBeInTheDocument();-- const userCombobox = within(userRoleMember).getByText(/^Member$/i);- await userEvent.click(userCombobox);-- const dropdown = within(userRoleMember).getByTestId(- "organization-member-role-context-menu",- );-- // Check that remove option exists- const removeOption = within(dropdown).getByTestId("remove-option");- expect(removeOption).toBeInTheDocument();-- await userEvent.click(removeOption);-- // Wait for confirmation modal to appear and click confirm- const confirmButton = await screen.findByTestId("confirm-button");- await userEvent.click(confirmButton);-- expect(removeMemberSpy).toHaveBeenCalledExactlyOnceWith({- orgId: "2",- userId: "3",- });-- // Verify the user is no longer in the list- await waitFor(() => {- const updatedMemberListItems = screen.getAllByTestId("member-item");- expect(updatedMemberListItems).toHaveLength(initialMemberCount - 1);- });-- // Verify the specific user email is no longer present- expect(screen.queryByText("[email protected]")).not.toBeInTheDocument();- });--- describe("Inviting Organization Members", () => {- it("should render an invite organization member button", async () => {- await setupInviteTest();-- const inviteButton = await findInviteButton();- expect(inviteButton).toBeInTheDocument();- });-- it("should render a modal when the invite button is clicked", async () => {- await setupInviteTest();-- expect(screen.queryByTestId("invite-modal")).not.toBeInTheDocument();- const inviteButton = await findInviteButton();- await userEvent.click(inviteButton);-- const portalRoot = screen.getByTestId("portal-root");- expect(- within(portalRoot).getByTestId("invite-modal"),- ).toBeInTheDocument();- });-- it("should close the modal when the close button is clicked", async () => {- await setupInviteTest();-- const inviteButton = await findInviteButton();- await userEvent.click(inviteButton);-- const modal = screen.getByTestId("invite-modal");- const closeButton = within(modal).getByText("BUTTON$CLOSE");- await userEvent.click(closeButton);-- expect(screen.queryByTestId("invite-modal")).not.toBeInTheDocument();- });-- it("should render a list item in an invited state when a the user is is invited", async () => {- const getOrganizationMembersSpy = vi.spyOn(- organizationService,- "getOrganizationMembers",- );- const getOrganizationMembersCountSpy = vi.spyOn(- organizationService,- "getOrganizationMembersCount",- );-- getOrganizationMembersSpy.mockResolvedValue({- items: [- {- org_id: "1",- user_id: "4",- email: "[email protected]",- role: "member",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "invited",- },- ],- current_page: 1,- per_page: 10,- });- getOrganizationMembersCountSpy.mockResolvedValue(1);-- await setupInviteTest();-- const members = await screen.findAllByTestId("member-item");- expect(members).toHaveLength(1);-- const invitedMember = members[0];- expect(invitedMember).toBeInTheDocument();-- // should have an "invited" badge- const invitedBadge = within(invitedMember).getByText(/invited/i);- expect(invitedBadge).toBeInTheDocument();-- // should not have a role combobox- await userEvent.click(within(invitedMember).getByText(/^Member$/i));- expect(- within(invitedMember).queryByTestId(- "organization-member-role-context-menu",- ),- ).not.toBeInTheDocument();- });- });-- describe("Role-based invite permission behavior", () => {- it.each([- { role: "owner" as const, roleName: "Owner" },- { role: "admin" as const, roleName: "Admin" },- ])(- "should show invite button when user has canInviteUsers permission ($roleName role)",- async ({ role }) => {- getMeSpy.mockResolvedValue({- org_id: "1",- user_id: "1",- email: "[email protected]",- role,- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- });-- await setupTestWithOrg(0);-- const inviteButton = await findInviteButton();-- expect(inviteButton).toBeInTheDocument();- expect(inviteButton).not.toBeDisabled();- },- );-- it("should not show invite button when user lacks canInviteUsers permission (User role)", async () => {- const userData = {- org_id: "1",- user_id: "1",- email: "[email protected]",- role: "member" as const,- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active" as const,- };-- // Set mock and remove cached query before rendering- getMeSpy.mockResolvedValue(userData);- // Remove any cached "me" queries so fresh data is fetched- queryClient.removeQueries({ queryKey: ["organizations"] });-- await setupTestWithOrg(0);-- // Directly set the query data to force component re-render with user role- // This ensures the component uses the user role data instead of cached admin data- queryClient.setQueryData(["organizations", "1", "me"], userData);-- // Wait for the component to update with the new query data- await waitFor(- () => {- const inviteButton = screen.queryByRole("button", {- name: /ORG\$INVITE_ORG_MEMBERS/i,- });- expect(inviteButton).not.toBeInTheDocument();- },- { timeout: 3000 },- );- });- });-- describe("Role-based role change permission behavior", () => {- it("should not allow an owner to change their own role", async () => {- // Acme Corp (org "2") - alice is owner, can't change her own role-- // Reset mock data to ensure clean state- resetOrgsAndMembersMockData();-- // Pre-seed the /me query data to avoid stale cache issues- const userData = {- org_id: "2",- user_id: "1", // alice (owner) - same as first member- email: "[email protected]",- role: "owner" as const,- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active" as const,- };-- getMeSpy.mockResolvedValue(userData);- queryClient.setQueryData(["organizations", "2", "me"], userData);-- renderManageOrganizationMembers();- await screen.findByTestId("manage-organization-members-settings");- await selectOrganization({ orgIndex: 1 }); // Acme Corp (org "2")-- // Wait for member list to load- const memberListItems = await screen.findAllByTestId("member-item");-- // First member is alice (owner) - same as current user- const targetMember = memberListItems[0];- const roleText = within(targetMember).getByText(/^owner$/i);- expect(roleText).toBeInTheDocument();- await userEvent.click(roleText);-- // Verify that the dropdown does not open (can't edit own role)- expectDropdownNotVisible(targetMember);- });-- it("should allow an owner to change another owner's role", async () => {- // Mock members to include two owners so we can test owner editing another owner- const getOrganizationMembersSpy = vi.spyOn(- organizationService,- "getOrganizationMembers",- );- const getOrganizationMembersCountSpy = vi.spyOn(- organizationService,- "getOrganizationMembersCount",- );-- const twoOwnersMembers = [- {- org_id: "2",- user_id: "1",- email: "[email protected]",- role: "owner" as const,- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active" as const,- },- {- org_id: "2",- user_id: "2",- email: "[email protected]",- role: "owner" as const,- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active" as const,- },- ];-- getOrganizationMembersSpy.mockResolvedValue({- items: twoOwnersMembers,- current_page: 1,- per_page: 10,- });- getOrganizationMembersCountSpy.mockResolvedValue(2);-- // Current user is owner1 (user_id: "1")- getMeSpy.mockResolvedValue({- org_id: "2",- user_id: "1",- email: "[email protected]",- role: "owner",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- });-- const updateMemberRoleSpy = createUpdateMemberRoleSpy();-- renderManageOrganizationMembers();- await screen.findByTestId("manage-organization-members-settings");- await selectOrganization({ orgIndex: 1 }); // Acme Corp-- // Find owner2 and change their role to admin- const owner2Member = await findMemberByEmail("[email protected]");- await changeMemberRole(owner2Member, "owner", "admin");-- expect(updateMemberRoleSpy).toHaveBeenCalledExactlyOnceWith({- userId: "2",- orgId: "2",- role: "admin",- });-- // Restore spies to prevent interference with subsequent tests- getOrganizationMembersSpy.mockRestore();- getOrganizationMembersCountSpy.mockRestore();- });-- it("Owner should see all three role options (owner, admin, user) in dropdown regardless of target member's role", async () => {- await setupTestWithUserAndOrg(- {- org_id: "1",- user_id: "1", // First member is owner in org 1- email: "[email protected]",- role: "owner",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- },- 1, // Acme Corp (org "2")- );-- const memberListItems = await screen.findAllByTestId("member-item");-- // Test with admin member- const adminMember = memberListItems[1]; // Second member is admin (user_id: "2")- const adminDropdown = await openRoleDropdown(adminMember, "admin");-- // Verify all three role options are present for admin member- expectAllRoleOptionsPresent(adminDropdown);-- // Close dropdown by clicking outside- await closeDropdown();-- // Test with user member- const userMember = await findMemberByEmail("[email protected]");- const userDropdown = await openRoleDropdown(userMember, "member");-- // Verify all three role options are present for user member- expectAllRoleOptionsPresent(userDropdown);- });-- it("Admin should not see owner option in role dropdown for any member", async () => {- await setupTestWithUserAndOrg(- {- org_id: "3",- user_id: "7", // Ray is admin in org 3- email: "[email protected]",- role: "admin",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- },- 3, // All Hands AI (org "4")- );-- const memberListItems = await screen.findAllByTestId("member-item");-- // Check user member dropdown- const userMember = memberListItems[2]; // user member- const userDropdown = await openRoleDropdown(userMember, "member");- expectOwnerOptionNotPresent(userDropdown);- await closeDropdown();-- // Check another user member dropdown (stephan is at index 3)- if (memberListItems.length > 3) {- const anotherUserMember = memberListItems[3]; // [email protected]- const anotherUserDropdown = await openRoleDropdown(- anotherUserMember,- "member",- );- expectOwnerOptionNotPresent(anotherUserDropdown);- }- });-- it("Owner should be able to change any member's role to owner", async () => {- await setupTestWithUserAndOrg(- {- org_id: "1",- user_id: "1", // First member is owner in org 1- email: "[email protected]",- role: "owner",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- },- 1, // Acme Corp (org "2")- );-- const updateMemberRoleSpy = createUpdateMemberRoleSpy();-- const memberListItems = await screen.findAllByTestId("member-item");-- // Test changing admin to owner- const adminMember = memberListItems[1]; // Second member is admin (user_id: "2")- await changeMemberRole(adminMember, "admin", "owner");-- expect(updateMemberRoleSpy).toHaveBeenNthCalledWith(1, {- userId: "2",- orgId: "2",- role: "owner",- });-- // Test changing user to owner- const userMember = await findMemberByEmail("[email protected]");- await changeMemberRole(userMember, "member", "owner");-- expect(updateMemberRoleSpy).toHaveBeenNthCalledWith(2, {- userId: "3",- orgId: "2",- role: "owner",- });- });-- it("Admin should be able to change member's role to admin", async () => {- await setupTestWithUserAndOrg(- {- org_id: "4",- user_id: "7", // Ray is admin in org 4- email: "[email protected]",- role: "admin" as const,- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active" as const,- },- 3, // All Hands AI (org "4")- );-- const updateMemberRoleSpy = createUpdateMemberRoleSpy();-- const member = await findMemberByEmail("[email protected]");-- await changeMemberRole(member, "member", "admin");-- expect(updateMemberRoleSpy).toHaveBeenCalledExactlyOnceWith({- userId: "9",- orgId: "4",- role: "admin" as const,- });- });-- it("should not show confirmation modal or call API when selecting the same role", async () => {- await setupTestWithUserAndOrg(- {- org_id: "1",- user_id: "1", // First member is owner in org 1- email: "[email protected]",- role: "owner" as const,- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active" as const,- },- 1, // Acme Corp (org "2")- );-- const updateMemberRoleSpy = createUpdateMemberRoleSpy();-- const member = await findMemberByEmail("[email protected]");-- // Open dropdown and select the same role (admin -> admin)- const dropdown = await openRoleDropdown(member, "admin");- const roleOption = within(dropdown).getByText(/admin/i);- await userEvent.click(roleOption);-- // Verify no confirmation modal appears- expect(screen.queryByTestId("confirm-button")).not.toBeInTheDocument();-- // Verify no API call was made- expect(updateMemberRoleSpy).not.toHaveBeenCalled();- });- });-});diff --git a/__tests__/routes/mcp-settings.test.tsx b/__tests__/routes/mcp-settings.test.tsxindex 907315ec8a..5cd657a782 100644--- a/__tests__/routes/mcp-settings.test.tsx+++ b/__tests__/routes/mcp-settings.test.tsx@@ -1,14 +1,9 @@import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { render, screen, waitFor } from "@testing-library/react";-import userEvent from "@testing-library/user-event";+import { render, screen } from "@testing-library/react";import { beforeEach, describe, expect, it, vi } from "vitest";-import SettingsService from "#/api/settings-service/settings-service.api";-import {- MOCK_DEFAULT_USER_SETTINGS,- resetTestHandlersMockSettings,-} from "#/mocks/handlers";import MCPSettingsScreen, { clientLoader } from "#/routes/mcp-settings";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";+import SettingsService from "#/api/settings-service/settings-service.api";+import { MOCK_DEFAULT_USER_SETTINGS } from "#/mocks/handlers";import { Settings } from "#/types/settings";function buildSettings(overrides: Partial<Settings> = {}): Settings {@@ -19,167 +14,43 @@ function buildSettings(overrides: Partial<Settings> = {}): Settings {...MOCK_DEFAULT_USER_SETTINGS.agent_settings,...overrides.agent_settings,},+ mcp_config: overrides.mcp_config ?? MOCK_DEFAULT_USER_SETTINGS.mcp_config,};}-function deepMerge(- base: Record<string, unknown>,- patch: Record<string, unknown>,-): Record<string, unknown> {- const result = { ...base };-- for (const [key, value] of Object.entries(patch)) {- if (- value != null &&- typeof value === "object" &&- !Array.isArray(value) &&- result[key] != null &&- typeof result[key] === "object" &&- !Array.isArray(result[key])- ) {- result[key] = deepMerge(- result[key] as Record<string, unknown>,- value as Record<string, unknown>,- );- } else {- result[key] = value;- }- }-- return result;-}-function renderMcpSettingsScreen() {- const queryClient = new QueryClient({- defaultOptions: {- queries: { retry: false },- },- });-- useSelectedOrganizationStore.setState({ organizationId: "1" });-return render(<MCPSettingsScreen />, {wrapper: ({ children }) => (- <QueryClientProvider client={queryClient}>{children}</QueryClientProvider>+ <QueryClientProvider+ client={new QueryClient({+ defaultOptions: { queries: { retry: false } },+ })}+ >+ {children}+ </QueryClientProvider>),});}-beforeEach(() => {- vi.restoreAllMocks();- resetTestHandlersMockSettings();- useSelectedOrganizationStore.setState({ organizationId: "1" });-});-describe("MCPSettingsScreen", () => {- it("renders and saves the built-in Tavily search settings on the MCP page", async () => {- let persistedSettings = buildSettings({- search_api_key: "tavily-key",- search_api_key_set: true,- });-- vi.spyOn(SettingsService, "getSettings").mockImplementation(async () =>- structuredClone(persistedSettings),- );- const saveSettingsSpy = vi- .spyOn(SettingsService, "saveSettings")- .mockImplementation(async (payload) => {- persistedSettings = buildSettings(- deepMerge(- structuredClone(persistedSettings) as Record<string, unknown>,- payload as Record<string, unknown>,- ) as Partial<Settings>,- );- return true;- });-- renderMcpSettingsScreen();-- expect(- await screen.findByTestId("mcp-search-settings-section"),- ).toBeInTheDocument();- const searchApiKeyInput = await screen.findByTestId("search-api-key-input");- expect(searchApiKeyInput).toHaveValue("tavily-key");-- await userEvent.clear(searchApiKeyInput);- await userEvent.type(searchApiKeyInput, "updated-tavily-key");- await userEvent.click(screen.getByTestId("save-search-api-key-button"));-- await waitFor(() => {- expect(saveSettingsSpy).toHaveBeenCalledWith({- search_api_key: "updated-tavily-key",- });- });-- await waitFor(() => {- expect(screen.getByTestId("search-api-key-input")).toHaveValue(- "updated-tavily-key",- );- });+ beforeEach(() => {+ vi.restoreAllMocks();});- it("removes a newly added MCP server after the delete flow completes", async () => {- let persistedSettings = buildSettings();-- vi.spyOn(SettingsService, "getSettings").mockImplementation(async () =>- structuredClone(persistedSettings),- );- vi.spyOn(SettingsService, "saveSettings").mockImplementation(- async (payload) => {- const nextSettings = structuredClone(persistedSettings) as Record<- string,- unknown- >;- const agentSettingsPatch = (payload as Record<string, unknown>)- .agent_settings_diff as Record<string, unknown> | undefined;-- if (agentSettingsPatch) {- nextSettings.agent_settings = deepMerge(- (nextSettings.agent_settings ?? {}) as Record<string, unknown>,- agentSettingsPatch,- );- }-- for (const [key, value] of Object.entries(payload as Record<string, unknown>)) {- if (key === "agent_settings_diff") {- continue;- }- nextSettings[key] = value;- }-- persistedSettings = buildSettings(nextSettings as Partial<Settings>);- return true;- },- );+ it("renders the OSS MCP settings list and search API key section", async () => {+ vi.spyOn(SettingsService, "getSettings").mockResolvedValue(buildSettings());renderMcpSettingsScreen();- await screen.findByText("SETTINGS$MCP_NO_SERVERS");-- await userEvent.click(- screen.getByRole("button", { name: "SETTINGS$MCP_ADD_SERVER" }),- );- await userEvent.type(- await screen.findByTestId("url-input"),- "https://mcp.example.com/sse",- );- await userEvent.click(screen.getByTestId("submit-button"));-- await waitFor(() => {- expect(screen.getAllByTestId("mcp-server-item")).toHaveLength(1);- });-- await userEvent.click(screen.getByTestId("delete-mcp-server-button"));- await userEvent.click(await screen.findByTestId("confirm-button"));+ await screen.findByTestId("mcp-search-settings-section");- await waitFor(() => {- expect(screen.queryAllByTestId("mcp-server-item")).toHaveLength(0);- });+ expect(screen.getByTestId("search-api-key-input")).toBeInTheDocument();+ expect(screen.getByTestId("save-search-api-key-button")).toBeDisabled();});});describe("clientLoader permission checks", () => {- it("should export a clientLoader for route protection", () => {+ it("exports a clientLoader", () => {expect(clientLoader).toBeDefined();expect(typeof clientLoader).toBe("function");});diff --git a/__tests__/routes/org-default-condenser-settings.test.ts b/__tests__/routes/org-default-condenser-settings.test.tsdeleted file mode 100644index c892fe3517..0000000000--- a/__tests__/routes/org-default-condenser-settings.test.ts+++ /dev/null@@ -1,98 +0,0 @@-import { describe, expect, it, vi, beforeEach } from "vitest";-import { redirect } from "react-router";--/**- * Regression test: when getActiveOrganizationUser() returns undefined on- * /settings/org-defaults/condenser, the loader must redirect to a safe- * terminal page (e.g. /settings/user) β NOT to /settings/condenser,- * which unconditionally bounces back in SaaS mode and creates an- * infinite redirect loop that crashes the browser tab.- */--vi.mock("react-router", () => ({- redirect: vi.fn((path: string) => ({ _tag: "redirect", path })),-}));--vi.mock("#/utils/org/permission-checks", () => ({- getActiveOrganizationUser: vi.fn(),-}));--vi.mock("#/api/option-service/option-service.api", () => ({- default: {- getConfig: vi.fn().mockResolvedValue({- app_mode: "saas",- feature_flags: {- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- hide_llm_settings: false,- },- }),- },-}));--vi.mock("#/api/organization-service/organization-service.api", () => ({- organizationService: {- getOrganizations: vi.fn().mockResolvedValue({- items: [{ id: "org-1", name: "Team Org", is_personal: false }],- currentOrgId: "org-1",- }),- },-}));--vi.mock("#/stores/selected-organization-store", () => ({- getSelectedOrganizationIdFromStore: vi.fn(() => "org-1"),-}));--vi.mock("#/query-client-config", () => ({- queryClient: {- getQueryData: vi.fn(() => ({- app_mode: "saas",- feature_flags: {- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- hide_llm_settings: false,- },- })),- setQueryData: vi.fn(),- fetchQuery: vi.fn(({ queryKey }: { queryKey: unknown[] }) => {- if (queryKey[0] === "organizations") {- return Promise.resolve({- items: [{ id: "org-1", name: "Team Org", is_personal: false }],- currentOrgId: "org-1",- });- }- return Promise.resolve({- app_mode: "saas",- feature_flags: {- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- hide_llm_settings: false,- },- });- }),- },-}));--import { getActiveOrganizationUser } from "#/utils/org/permission-checks";-import { clientLoader } from "#/routes/org-default-condenser-settings";--beforeEach(() => {- vi.clearAllMocks();-});--describe("org-defaults/condenser clientLoader", () => {- it("redirects to a safe terminal page when user is undefined", async () => {- vi.mocked(getActiveOrganizationUser).mockResolvedValue(undefined);-- await clientLoader({- request: new Request(- "http://localhost/settings/org-defaults/condenser",- ),- });-- expect(redirect).toHaveBeenCalledWith("/settings/user");- });-});diff --git a/__tests__/routes/root-layout.test.tsx b/__tests__/routes/root-layout.test.tsxindex ba7327d0c4..753c71f6af 100644--- a/__tests__/routes/root-layout.test.tsx+++ b/__tests__/routes/root-layout.test.tsx@@ -1,556 +1,115 @@-import { render, screen, waitFor } from "@testing-library/react";-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import { createRoutesStub, useSearchParams } from "react-router";+import { render, screen } from "@testing-library/react";+import { beforeEach, describe, expect, it, vi } from "vitest";+import { createRoutesStub } from "react-router";import MainApp from "#/routes/root-layout";-import OptionService from "#/api/option-service/option-service.api";-import AuthService from "#/api/auth-service/auth-service.api";-import SettingsService from "#/api/settings-service/settings-service.api";-import { MOCK_DEFAULT_USER_SETTINGS } from "#/mocks/handlers";-vi.mock("#/hooks/use-github-auth-url", () => ({- useGitHubAuthUrl: () => "https://github.com/oauth/authorize",-}));--vi.mock("#/hooks/use-is-on-tos-page", () => ({- useIsOnTosPage: () => false,-}));+const useConfigMock = vi.fn();+const useSettingsMock = vi.fn();+const migrateUserConsentMock = vi.fn();-vi.mock("#/hooks/use-auto-login", () => ({- useAutoLogin: () => {},+vi.mock("#/hooks/query/use-config", () => ({+ useConfig: () => useConfigMock(),}));-vi.mock("#/hooks/use-auth-callback", () => ({- useAuthCallback: () => {},+vi.mock("#/hooks/query/use-settings", () => ({+ useSettings: () => useSettingsMock(),}));vi.mock("#/hooks/use-migrate-user-consent", () => ({useMigrateUserConsent: () => ({- migrateUserConsent: vi.fn(),+ migrateUserConsent: migrateUserConsentMock,}),}));-vi.mock("#/hooks/use-reo-tracking", () => ({- useReoTracking: () => {},-}));-vi.mock("#/hooks/use-sync-posthog-consent", () => ({useSyncPostHogConsent: () => {},}));-vi.mock("#/utils/custom-toast-handlers", () => ({- displaySuccessToast: vi.fn(),+vi.mock("#/hooks/use-app-title", () => ({+ useAppTitle: () => "OpenHands",}));-vi.mock("#/hooks/use-invitation", () => ({- useInvitation: () => ({- invitationToken: null,- hasInvitation: false,- buildOAuthStateData: (baseState: Record<string, string>) => baseState,- clearInvitation: vi.fn(),- }),+vi.mock("#/components/features/sidebar/sidebar", () => ({+ Sidebar: () => <div data-testid="sidebar" />,}));-function LoginStub() {- const [searchParams] = useSearchParams();- const emailVerificationRequired =- searchParams.get("email_verification_required") === "true";- const emailVerified = searchParams.get("email_verified") === "true";- const emailVerificationText = "AUTH$PLEASE_CHECK_EMAIL_TO_VERIFY";- const returnTo = searchParams.get("returnTo");+vi.mock("#/components/features/analytics/analytics-consent-form-modal", () => ({+ AnalyticsConsentFormModal: () => <div data-testid="analytics-consent-modal" />,+}));- return (- <div data-testid="login-page">- <div data-testid="login-content">- {emailVerified && <div data-testid="email-verified-message" />}- {emailVerificationRequired && (- <div data-testid="email-verification-modal">- {emailVerificationText}- </div>- )}- {returnTo && <div data-testid="return-to-param">{returnTo}</div>}- </div>- </div>- );-}+vi.mock("#/components/features/alerts/alert-banner", () => ({+ AlertBanner: () => <div data-testid="alert-banner" />,+}));++vi.mock("#/i18n", () => ({+ default: {+ changeLanguage: vi.fn(),+ },+}));const RouterStub = createRoutesStub([{- Component: MainApp,path: "/",- children: [- {- Component: () => <div data-testid="outlet-content" />,- path: "/",- },- ],- },- {- Component: LoginStub,- path: "/login",- },-]);-const RouterStubWithLogin = createRoutesStub([- {Component: MainApp,- path: "/",children: [{- Component: () => <div data-testid="outlet-content" />,path: "/",- },- {- Component: () => <div data-testid="settings-page" />,- path: "/settings",- },- ],- },- {- Component: () => <div data-testid="login-page" />,- path: "/login",- },-]);--const RouterStubWithDeviceVerify = createRoutesStub([- {- Component: MainApp,- path: "/",- children: [- {Component: () => <div data-testid="outlet-content" />,- path: "/",- },- {- Component: () => <div data-testid="device-verify-page" />,- path: "/oauth/device/verify",},],},- {- Component: LoginStub,- path: "/login",- },]);-const renderMainApp = (initialEntries: string[] = ["/"]) =>- render(<RouterStub initialEntries={initialEntries} />, {- wrapper: ({ children }) => (- <QueryClientProvider- client={- new QueryClient({- defaultOptions: { queries: { retry: false } },- })- }- >- {children}- </QueryClientProvider>- ),- });--const renderWithLoginStub = (- RouterStubComponent: ReturnType<typeof createRoutesStub>,- initialEntries: string[] = ["/"],-) =>- render(<RouterStubComponent initialEntries={initialEntries} />, {- wrapper: ({ children }) => (- <QueryClientProvider- client={- new QueryClient({- defaultOptions: { queries: { retry: false } },- })- }- >- {children}- </QueryClientProvider>- ),- });--describe("MainApp", () => {+describe("root layout", () => {beforeEach(() => {vi.clearAllMocks();-- // @ts-expect-error - partial mock for testing- vi.spyOn(OptionService, "getConfig").mockResolvedValue({- app_mode: "saas",- posthog_client_key: "test-posthog-key",- providers_configured: ["github"],- auth_url: "https://auth.example.com",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,+ useConfigMock.mockReturnValue({+ isLoading: false,+ data: {+ maintenance_start_time: null,+ faulty_models: [],+ error_message: null,+ updated_at: new Date().toISOString(),},});-- vi.spyOn(AuthService, "authenticate").mockResolvedValue(true);-- vi.spyOn(SettingsService, "getSettings").mockResolvedValue(- MOCK_DEFAULT_USER_SETTINGS,- );-- vi.stubGlobal("localStorage", {- getItem: vi.fn(() => null),- setItem: vi.fn(),- removeItem: vi.fn(),- clear: vi.fn(),- });- });-- afterEach(() => {- vi.restoreAllMocks();- vi.unstubAllGlobals();- });-- describe("Email Verification", () => {- it("should redirect to login when email_verification_required=true is in query params", async () => {- const axiosError = {- response: { status: 401 },- isAxiosError: true,- };- vi.spyOn(AuthService, "authenticate").mockRejectedValue(axiosError);-- renderMainApp(["/?email_verification_required=true"]);-- await waitFor(- () => {- expect(screen.getByTestId("login-page")).toBeInTheDocument();- },- { timeout: 2000 },- );- });-- it("should redirect to login when email_verified=true is in query params", async () => {- const axiosError = {- response: { status: 401 },- isAxiosError: true,- };- vi.spyOn(AuthService, "authenticate").mockRejectedValue(axiosError);-- renderMainApp(["/?email_verified=true"]);-- await waitFor(- () => {- expect(screen.getByTestId("login-page")).toBeInTheDocument();- },- { timeout: 2000 },- );- });-- it("should redirect to login when email_verification_required and email_verified params are in query params together", async () => {- const axiosError = {- response: { status: 401 },- isAxiosError: true,- };- vi.spyOn(AuthService, "authenticate").mockRejectedValue(axiosError);-- renderMainApp(["/?email_verification_required=true&email_verified=true"]);-- await waitFor(- () => {- expect(screen.getByTestId("login-page")).toBeInTheDocument();- },- { timeout: 2000 },- );- });-- it("should redirect to login when email_verification_required=true is in query params", async () => {- const axiosError = {- response: { status: 401 },- isAxiosError: true,- };- vi.spyOn(AuthService, "authenticate").mockRejectedValue(axiosError);-- renderMainApp(["/?email_verification_required=true"]);-- await waitFor(- () => {- expect(screen.getByTestId("login-page")).toBeInTheDocument();- },- { timeout: 2000 },- );- });-- it("should not display EmailVerificationModal when email_verification_required is not in query params", async () => {- const axiosError = {- response: { status: 401 },- isAxiosError: true,- };- vi.spyOn(AuthService, "authenticate").mockRejectedValue(axiosError);-- renderMainApp(["/"]);-- // User will be redirected to login, but modal should not show without query param- await waitFor(- () => {- expect(screen.getByTestId("login-page")).toBeInTheDocument();- expect(- screen.queryByTestId("email-verification-modal"),- ).not.toBeInTheDocument();- },- { timeout: 2000 },- );- });-- it("should not display email verified message when email_verified is not in query params", async () => {- const axiosError = {- response: { status: 401 },- isAxiosError: true,- };- vi.spyOn(AuthService, "authenticate").mockRejectedValue(axiosError);-- renderMainApp(["/login"]);-- await waitFor(- () => {- expect(screen.getByTestId("login-page")).toBeInTheDocument();- expect(- screen.queryByTestId("email-verified-message"),- ).not.toBeInTheDocument();- },- { timeout: 2000 },- );- });- });-- describe("Unauthenticated redirect", () => {- beforeEach(() => {- vi.spyOn(AuthService, "authenticate").mockRejectedValue({- response: { status: 401 },- isAxiosError: true,- });- });-- it("should redirect unauthenticated SaaS users to /login", async () => {- renderWithLoginStub(RouterStubWithLogin, ["/"]);-- await waitFor(- () => {- expect(screen.getByTestId("login-page")).toBeInTheDocument();- },- { timeout: 2000 },- );- });-- it("should redirect to /login with returnTo parameter when on a specific page", async () => {- renderWithLoginStub(RouterStubWithLogin, ["/settings"]);-- await waitFor(- () => {- expect(screen.getByTestId("login-page")).toBeInTheDocument();- },- { timeout: 2000 },- );- });-- it("should preserve query parameters in returnTo when redirecting to login", async () => {- renderWithLoginStub(RouterStubWithDeviceVerify, [- "/oauth/device/verify?user_code=F9XN6BKU",- ]);-- await waitFor(- () => {- expect(screen.getByTestId("login-page")).toBeInTheDocument();- const returnToElement = screen.getByTestId("return-to-param");- expect(returnToElement).toBeInTheDocument();- expect(returnToElement.textContent).toBe(- "/oauth/device/verify?user_code=F9XN6BKU",- );- },- { timeout: 2000 },- );- });- });-- describe("Re-authentication with stored login method", () => {- it("should show ReauthModal instead of redirecting to /login when login method exists", async () => {- // Arrange - user is unauthenticated but has a stored login method- vi.spyOn(AuthService, "authenticate").mockRejectedValue({- response: { status: 401 },- isAxiosError: true,- });-- vi.stubGlobal("localStorage", {- getItem: vi.fn((key: string) => {- if (key === "openhands_login_method") {- return "github";- }- return null;- }),- setItem: vi.fn(),- removeItem: vi.fn(),- clear: vi.fn(),- });-- // Act- renderWithLoginStub(RouterStubWithLogin, ["/"]);-- // Assert - should show ReauthModal (with "Logging back in" text), not redirect to /login- await waitFor(- () => {- expect(screen.getByText("AUTH$LOGGING_BACK_IN")).toBeInTheDocument();- },- { timeout: 2000 },- );-- // Login page should NOT be shown when login method exists- expect(screen.queryByTestId("login-page")).not.toBeInTheDocument();- });-- it("should redirect to /login when no login method is stored", async () => {- // Arrange - user is unauthenticated and has no stored login method- vi.spyOn(AuthService, "authenticate").mockRejectedValue({- response: { status: 401 },- isAxiosError: true,- });-- vi.stubGlobal("localStorage", {- getItem: vi.fn(() => null),- setItem: vi.fn(),- removeItem: vi.fn(),- clear: vi.fn(),- });-- // Act- renderWithLoginStub(RouterStubWithLogin, ["/"]);-- // Assert - should redirect to /login- await waitFor(- () => {- expect(screen.getByTestId("login-page")).toBeInTheDocument();- },- { timeout: 2000 },- );+ useSettingsMock.mockReturnValue({+ data: {+ language: "en",+ user_consents_to_analytics: true,+ },});});- describe("Loading states", () => {- it("should show loading spinner while config is loading without redirecting", async () => {- // Arrange - config never resolves (loading state)- vi.spyOn(OptionService, "getConfig").mockImplementation(- () => new Promise(() => {}),- );-- vi.stubGlobal("localStorage", {- getItem: vi.fn((key: string) => {- if (key === "openhands_login_method") {- return "github";- }- return null;- }),- setItem: vi.fn(),- removeItem: vi.fn(),- clear: vi.fn(),- });+ it("shows a loading spinner while config is loading", () => {+ useConfigMock.mockReturnValue({ isLoading: true, data: null });- // Act- renderWithLoginStub(RouterStubWithLogin, ["/"]);-- // Assert - should show loading spinner- await waitFor(() => {- expect(screen.getByTestId("loading-spinner")).toBeInTheDocument();- });-- // Should NOT redirect to login while loading- expect(screen.queryByTestId("login-page")).not.toBeInTheDocument();- });-- it("should show loading spinner while auth is loading without redirecting", async () => {- // Arrange - auth never resolves (loading state)- vi.spyOn(AuthService, "authenticate").mockImplementation(- () => new Promise(() => {}),- );-- vi.stubGlobal("localStorage", {- getItem: vi.fn((key: string) => {- if (key === "openhands_login_method") {- return "github";- }- return null;- }),- setItem: vi.fn(),- removeItem: vi.fn(),- clear: vi.fn(),- });-- // Act- renderWithLoginStub(RouterStubWithLogin, ["/"]);-- // Assert - should show loading spinner- await waitFor(() => {- expect(screen.getByTestId("loading-spinner")).toBeInTheDocument();- });+ render(+ <QueryClientProvider client={new QueryClient()}>+ <RouterStub initialEntries={["/"]} />+ </QueryClientProvider>,+ );- // Should NOT redirect to login while loading- expect(screen.queryByTestId("login-page")).not.toBeInTheDocument();- });+ expect(screen.getByTestId("loading-spinner")).toBeInTheDocument();});- describe("Invitation URL Parameters", () => {- beforeEach(() => {- vi.spyOn(AuthService, "authenticate").mockRejectedValue({- response: { status: 401 },- isAxiosError: true,- });- });-- it("should redirect to login when email_mismatch=true is in query params", async () => {- renderMainApp(["/?email_mismatch=true"]);-- await waitFor(- () => {- expect(screen.getByTestId("login-page")).toBeInTheDocument();- },- { timeout: 2000 },- );- });-- it("should redirect to login when invitation_success=true is in query params", async () => {- renderMainApp(["/?invitation_success=true"]);-- await waitFor(- () => {- expect(screen.getByTestId("login-page")).toBeInTheDocument();- },- { timeout: 2000 },- );- });-- it("should redirect to login when invitation_expired=true is in query params", async () => {- renderMainApp(["/?invitation_expired=true"]);-- await waitFor(- () => {- expect(screen.getByTestId("login-page")).toBeInTheDocument();- },- { timeout: 2000 },- );- });-- it("should redirect to login when invitation_invalid=true is in query params", async () => {- renderMainApp(["/?invitation_invalid=true"]);-- await waitFor(- () => {- expect(screen.getByTestId("login-page")).toBeInTheDocument();- },- { timeout: 2000 },- );+ it("renders the OSS layout and analytics modal when consent is missing", () => {+ useSettingsMock.mockReturnValue({+ data: {+ language: "en",+ user_consents_to_analytics: null,+ },});- it("should redirect to login when already_member=true is in query params", async () => {- renderMainApp(["/?already_member=true"]);+ render(+ <QueryClientProvider client={new QueryClient()}>+ <RouterStub initialEntries={["/"]} />+ </QueryClientProvider>,+ );- await waitFor(- () => {- expect(screen.getByTestId("login-page")).toBeInTheDocument();- },- { timeout: 2000 },- );- });+ expect(screen.getByTestId("sidebar")).toBeInTheDocument();+ expect(screen.getByTestId("outlet-content")).toBeInTheDocument();+ expect(screen.getByTestId("analytics-consent-modal")).toBeInTheDocument();+ expect(migrateUserConsentMock).toHaveBeenCalled();});});diff --git a/__tests__/routes/secrets-settings.test.tsx b/__tests__/routes/secrets-settings.test.tsxindex a47c2ca847..20f51fbeaf 100644--- a/__tests__/routes/secrets-settings.test.tsx+++ b/__tests__/routes/secrets-settings.test.tsx@@ -1,686 +1,55 @@-import { render, screen, waitFor, within } from "@testing-library/react";-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";import { QueryClient, QueryClientProvider } from "@tanstack/react-query";-import userEvent from "@testing-library/user-event";-import { createRoutesStub, Outlet } from "react-router";+import { render, screen } from "@testing-library/react";+import { beforeEach, describe, expect, it, vi } from "vitest";import SecretsSettingsScreen, { clientLoader } from "#/routes/secrets-settings";import { SecretsService } from "#/api/secrets-service";-import {- CustomSecretPage,- CustomSecretWithoutValue,-} from "#/api/secrets-service.types";-import SettingsService from "#/api/settings-service/settings-service.api";-import OptionService from "#/api/option-service/option-service.api";-import { MOCK_DEFAULT_USER_SETTINGS } from "#/mocks/handlers";-import { OrganizationMember } from "#/types/org";-import * as orgStore from "#/stores/selected-organization-store";-import { organizationService } from "#/api/organization-service/organization-service.api";-const MOCK_SECRETS: CustomSecretWithoutValue[] = [- {- name: "My_Secret_1",- description: "My first secret",- },- {- name: "My_Secret_2",- description: "My second secret",- },-];--const createMockSecretsPage = (- secrets: CustomSecretWithoutValue[],-): CustomSecretPage => ({- items: secrets,- next_page_id: null,-});--const renderSecretsSettings = () => {- const RouterStub = createRoutesStub([- {- Component: () => <Outlet />,- path: "/settings",- children: [- {- Component: SecretsSettingsScreen,- path: "/settings/secrets",- },- {- Component: () => <div data-testid="git-settings-screen" />,- path: "/settings/integrations",- },- ],- },- ]);-- return render(<RouterStub initialEntries={["/settings/secrets"]} />, {+function renderSecretsSettingsScreen() {+ return render(<SecretsSettingsScreen />, {wrapper: ({ children }) => (<QueryClientProvider- client={- new QueryClient({- defaultOptions: { queries: { retry: false } },- })- }+ client={new QueryClient({+ defaultOptions: { queries: { retry: false } },+ })}>{children}</QueryClientProvider>),});-};+}-beforeEach(() => {- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- // @ts-expect-error - only return the config we need- getConfigSpy.mockResolvedValue({- app_mode: "oss",+describe("SecretsSettingsScreen", () => {+ beforeEach(() => {+ vi.restoreAllMocks();});-});-afterEach(() => {- vi.restoreAllMocks();-});+ it("renders the OSS secrets list for local secrets management", async () => {+ vi.spyOn(SecretsService, "searchSecrets")+ .mockResolvedValueOnce({+ items: [+ {+ name: "MY_SECRET",+ description: "Demo secret",+ },+ ],+ next_page_id: null,+ })+ .mockResolvedValue({+ items: [],+ next_page_id: null,+ });-describe("clientLoader permission checks", () => {- const createMockUser = (- overrides: Partial<OrganizationMember> = {},- ): OrganizationMember => ({- org_id: "org-1",- user_id: "user-1",- email: "[email protected]",- role: "member",- llm_api_key: "",- max_iterations: 100,- llm_model: "gpt-4",- llm_base_url: "",- status: "active",- ...overrides,- });+ renderSecretsSettingsScreen();- const seedActiveUser = (user: Partial<OrganizationMember>) => {- orgStore.useSelectedOrganizationStore.setState({ organizationId: "org-1" });- vi.spyOn(organizationService, "getMe").mockResolvedValue(- createMockUser(user),- );- };-- it("should export a clientLoader for route protection", () => {- // This test verifies the clientLoader is exported (for consistency with other routes)- expect(clientLoader).toBeDefined();- expect(typeof clientLoader).toBe("function");- });-- it("should allow members to access secrets settings (all roles have manage_secrets)", async () => {- // Arrange- seedActiveUser({ role: "member" });-- const RouterStub = createRoutesStub([- {- Component: SecretsSettingsScreen,- loader: clientLoader,- path: "/settings/secrets",- },- {- Component: () => <div data-testid="user-settings-screen" />,- path: "/settings/user",- },- ]);-- // Act- render(<RouterStub initialEntries={["/settings/secrets"]} />, {- wrapper: ({ children }) => (- <QueryClientProvider- client={- new QueryClient({- defaultOptions: { queries: { retry: false } },- })- }- >- {children}- </QueryClientProvider>- ),- });-- // Assert - should stay on secrets settings page (not redirected)- await waitFor(() => {- expect(screen.getByTestId("secrets-settings-screen")).toBeInTheDocument();- });- expect(screen.queryByTestId("user-settings-screen")).not.toBeInTheDocument();+ await screen.findByTestId("secrets-settings-screen");+ expect(await screen.findByText("MY_SECRET")).toBeInTheDocument();+ expect(screen.getByTestId("add-secret-button")).toBeInTheDocument();});});-describe("Content", () => {- it("should render the secrets settings screen", () => {- renderSecretsSettings();- screen.getByTestId("secrets-settings-screen");- });-- it("should NOT render a button to connect with git if they havent already in oss", async () => {- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- const getSettingsSpy = vi.spyOn(SettingsService, "getSettings");- const searchSecretsSpy = vi.spyOn(SecretsService, "searchSecrets");- // @ts-expect-error - only return the config we need- getConfigSpy.mockResolvedValue({- app_mode: "oss",- });- getSettingsSpy.mockResolvedValue({- ...MOCK_DEFAULT_USER_SETTINGS,- provider_tokens_set: {},- });-- renderSecretsSettings();-- expect(getConfigSpy).toHaveBeenCalled();- await waitFor(() => expect(searchSecretsSpy).toHaveBeenCalled());- expect(screen.queryByTestId("connect-git-button")).not.toBeInTheDocument();- });-- it("should render add secret button in saas mode", async () => {- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- const searchSecretsSpy = vi.spyOn(SecretsService, "searchSecrets");- // @ts-expect-error - only return the config we need- getConfigSpy.mockResolvedValue({- app_mode: "saas",- });-- renderSecretsSettings();-- // In SAAS mode, searchSecrets is called and add secret button should be available- await waitFor(() => expect(searchSecretsSpy).toHaveBeenCalled());- const button = await screen.findByTestId("add-secret-button");- expect(button).toBeInTheDocument();- expect(screen.queryByTestId("connect-git-button")).not.toBeInTheDocument();- });-- it("should render an empty table when there are no existing secrets", async () => {- const searchSecretsSpy = vi.spyOn(SecretsService, "searchSecrets");- searchSecretsSpy.mockResolvedValue(createMockSecretsPage([]));- renderSecretsSettings();-- // Should show the add secret button- await screen.findByTestId("add-secret-button");-- // Wait for loading to complete and table headers to appear- await waitFor(() => {- expect(screen.getByText("SETTINGS$NAME")).toBeInTheDocument();- });-- // Should show an empty table with headers but no secret items- expect(screen.queryAllByTestId("secret-item")).toHaveLength(0);-- // Should still show the table headers- expect(screen.getByText("SECRETS$DESCRIPTION")).toBeInTheDocument();- expect(screen.getByText("SETTINGS$ACTIONS")).toBeInTheDocument();- });-- it("should render existing secrets", async () => {- const searchSecretsSpy = vi.spyOn(SecretsService, "searchSecrets");- searchSecretsSpy.mockResolvedValue(createMockSecretsPage(MOCK_SECRETS));- renderSecretsSettings();-- const secrets = await screen.findAllByTestId("secret-item");- expect(secrets).toHaveLength(2);- });-});--describe("Secret actions", () => {- it("should create a new secret", async () => {- const createSecretSpy = vi.spyOn(SecretsService, "createSecret");- const searchSecretsSpy = vi.spyOn(SecretsService, "searchSecrets");- createSecretSpy.mockResolvedValue(true);- renderSecretsSettings();-- // render form & hide items- expect(screen.queryByTestId("add-secret-form")).not.toBeInTheDocument();- const button = await screen.findByTestId("add-secret-button");- await userEvent.click(button);-- const secretForm = screen.getByTestId("add-secret-form");- const secrets = screen.queryAllByTestId("secret-item");-- expect(screen.queryByTestId("add-secret-button")).not.toBeInTheDocument();- expect(secretForm).toBeInTheDocument();- expect(secrets).toHaveLength(0);-- // enter details- const nameInput = within(secretForm).getByTestId("name-input");- const valueInput = within(secretForm).getByTestId("value-input");- const descriptionInput =- within(secretForm).getByTestId("description-input");-- const submitButton = within(secretForm).getByTestId("submit-button");-- vi.clearAllMocks(); // reset mocks to check for upcoming calls-- await userEvent.type(nameInput, "My_Custom_Secret");- await userEvent.type(valueInput, "my-custom-secret-value");- await userEvent.type(descriptionInput, "My custom secret description");-- await userEvent.click(submitButton);-- // make POST request- expect(createSecretSpy).toHaveBeenCalledWith(- "My_Custom_Secret",- "my-custom-secret-value",- "My custom secret description",- );-- // hide form & render items- expect(screen.queryByTestId("add-secret-form")).not.toBeInTheDocument();- expect(searchSecretsSpy).toHaveBeenCalled();- });-- it("should edit a secret", async () => {- const searchSecretsSpy = vi.spyOn(SecretsService, "searchSecrets");- const updateSecretSpy = vi.spyOn(SecretsService, "updateSecret");- searchSecretsSpy.mockResolvedValue(createMockSecretsPage(MOCK_SECRETS));- updateSecretSpy.mockResolvedValue(true);- renderSecretsSettings();-- // render edit button within a secret list item- const secrets = await screen.findAllByTestId("secret-item");- const firstSecret = within(secrets[0]);- const editButton = firstSecret.getByTestId("edit-secret-button");-- await userEvent.click(editButton);-- // render edit form- const editForm = screen.getByTestId("edit-secret-form");-- expect(screen.queryByTestId("add-secret-button")).not.toBeInTheDocument();- expect(editForm).toBeInTheDocument();- expect(screen.queryAllByTestId("secret-item")).toHaveLength(0);-- // enter details- const nameInput = within(editForm).getByTestId("name-input");- const descriptionInput = within(editForm).getByTestId("description-input");- const submitButton = within(editForm).getByTestId("submit-button");-- // should not show value input- const valueInput = within(editForm).queryByTestId("value-input");- expect(valueInput).not.toBeInTheDocument();-- expect(nameInput).toHaveValue("My_Secret_1");- expect(descriptionInput).toHaveValue("My first secret");-- await userEvent.clear(nameInput);- await userEvent.type(nameInput, "My_Edited_Secret");-- await userEvent.clear(descriptionInput);- await userEvent.type(descriptionInput, "My edited secret description");-- // Mock updated response for after edit- const updatedSecrets = [- { name: "My_Edited_Secret", description: "My edited secret description" },- MOCK_SECRETS[1],- ];- searchSecretsSpy.mockResolvedValue(createMockSecretsPage(updatedSecrets));-- await userEvent.click(submitButton);-- // make POST request- expect(updateSecretSpy).toHaveBeenCalledWith(- "My_Secret_1",- "My_Edited_Secret",- "My edited secret description",- );-- // hide form and show updated list- await waitFor(() => {- expect(screen.queryByTestId("edit-secret-form")).not.toBeInTheDocument();- });-- // Wait for updated data after query invalidation- const secretsAfterEdit = await screen.findAllByTestId("secret-item");- expect(secretsAfterEdit).toHaveLength(2);- expect(secretsAfterEdit[0]).toHaveTextContent(/my_edited_secret/i);- });-- it("should be able to cancel the create or edit form", async () => {- const searchSecretsSpy = vi.spyOn(SecretsService, "searchSecrets");- searchSecretsSpy.mockResolvedValue(createMockSecretsPage(MOCK_SECRETS));- renderSecretsSettings();-- // render form & hide items- expect(screen.queryByTestId("add-secret-form")).not.toBeInTheDocument();- const button = await screen.findByTestId("add-secret-button");- await userEvent.click(button);- const secretForm = screen.getByTestId("add-secret-form");- expect(secretForm).toBeInTheDocument();-- // cancel button- const cancelButton = within(secretForm).getByTestId("cancel-button");- await userEvent.click(cancelButton);- expect(screen.queryByTestId("add-secret-form")).not.toBeInTheDocument();- expect(screen.queryByTestId("add-secret-button")).toBeInTheDocument();-- // render edit button within a secret list item- const secrets = await screen.findAllByTestId("secret-item");- const firstSecret = within(secrets[0]);- const editButton = firstSecret.getByTestId("edit-secret-button");- await userEvent.click(editButton);-- // render edit form- const editForm = screen.getByTestId("edit-secret-form");- expect(editForm).toBeInTheDocument();- expect(screen.queryAllByTestId("secret-item")).toHaveLength(0);-- // cancel button- const cancelEditButton = within(editForm).getByTestId("cancel-button");- await userEvent.click(cancelEditButton);- expect(screen.queryByTestId("edit-secret-form")).not.toBeInTheDocument();- expect(screen.queryAllByTestId("secret-item")).toHaveLength(2);- });-- it("should undo the optimistic update if the request fails", async () => {- const searchSecretsSpy = vi.spyOn(SecretsService, "searchSecrets");- const updateSecretSpy = vi.spyOn(SecretsService, "updateSecret");- searchSecretsSpy.mockResolvedValue(createMockSecretsPage(MOCK_SECRETS));- updateSecretSpy.mockRejectedValue(new Error("Failed to update secret"));- renderSecretsSettings();-- // render edit button within a secret list item- const secrets = await screen.findAllByTestId("secret-item");- const firstSecret = within(secrets[0]);- const editButton = firstSecret.getByTestId("edit-secret-button");-- await userEvent.click(editButton);-- // render edit form- const editForm = screen.getByTestId("edit-secret-form");-- expect(editForm).toBeInTheDocument();- expect(screen.queryAllByTestId("secret-item")).toHaveLength(0);-- // enter details- const nameInput = within(editForm).getByTestId("name-input");- const submitButton = within(editForm).getByTestId("submit-button");-- // should not show value input- const valueInput = within(editForm).queryByTestId("value-input");- expect(valueInput).not.toBeInTheDocument();-- await userEvent.clear(nameInput);- await userEvent.type(nameInput, "My_Edited_Secret");- await userEvent.click(submitButton);-- // make POST request- expect(updateSecretSpy).toHaveBeenCalledWith(- "My_Secret_1",- "My_Edited_Secret",- "My first secret",- );-- // hide form- expect(screen.queryByTestId("edit-secret-form")).not.toBeInTheDocument();-- // no optimistic update- const updatedSecrets = await screen.findAllByTestId("secret-item");- expect(updatedSecrets).toHaveLength(2);- expect(updatedSecrets[0]).not.toHaveTextContent(/my edited secret/i);- });-- it("should remove the secret from the list after deletion", async () => {- const searchSecretsSpy = vi.spyOn(SecretsService, "searchSecrets");- const deleteSecretSpy = vi.spyOn(SecretsService, "deleteSecret");- searchSecretsSpy.mockResolvedValue(createMockSecretsPage(MOCK_SECRETS));- deleteSecretSpy.mockResolvedValue(true);- renderSecretsSettings();-- // render delete button within a secret list item- const secrets = await screen.findAllByTestId("secret-item");- const secondSecret = within(secrets[1]);- const deleteButton = secondSecret.getByTestId("delete-secret-button");- await userEvent.click(deleteButton);-- // confirmation modal- const confirmationModal = screen.getByTestId("confirmation-modal");- const confirmButton =- within(confirmationModal).getByTestId("confirm-button");-- // Mock updated response after deletion- searchSecretsSpy.mockResolvedValue(- createMockSecretsPage([MOCK_SECRETS[0]]),- );-- await userEvent.click(confirmButton);-- // make DELETE request- expect(deleteSecretSpy).toHaveBeenCalledWith("My_Secret_2");- expect(screen.queryByTestId("confirmation-modal")).not.toBeInTheDocument();-- // Wait for updated list after query invalidation- await waitFor(() => {- expect(screen.queryAllByTestId("secret-item")).toHaveLength(1);- });- expect(screen.queryByText("My_Secret_2")).not.toBeInTheDocument();- });-- it("should be able to cancel the delete confirmation modal", async () => {- const searchSecretsSpy = vi.spyOn(SecretsService, "searchSecrets");- const deleteSecretSpy = vi.spyOn(SecretsService, "deleteSecret");- searchSecretsSpy.mockResolvedValue(createMockSecretsPage(MOCK_SECRETS));- deleteSecretSpy.mockResolvedValue(true);- renderSecretsSettings();-- // render delete button within a secret list item- const secrets = await screen.findAllByTestId("secret-item");- const secondSecret = within(secrets[1]);- const deleteButton = secondSecret.getByTestId("delete-secret-button");- await userEvent.click(deleteButton);-- // confirmation modal- const confirmationModal = screen.getByTestId("confirmation-modal");- const cancelButton = within(confirmationModal).getByTestId("cancel-button");- await userEvent.click(cancelButton);-- // no DELETE request- expect(deleteSecretSpy).not.toHaveBeenCalled();- expect(screen.queryByTestId("confirmation-modal")).not.toBeInTheDocument();- expect(screen.queryAllByTestId("secret-item")).toHaveLength(2);- });-- it("should revert the optimistic update if the request fails", async () => {- const searchSecretsSpy = vi.spyOn(SecretsService, "searchSecrets");- const deleteSecretSpy = vi.spyOn(SecretsService, "deleteSecret");- searchSecretsSpy.mockResolvedValue(createMockSecretsPage(MOCK_SECRETS));- deleteSecretSpy.mockRejectedValue(new Error("Failed to delete secret"));- renderSecretsSettings();-- // render delete button within a secret list item- const secrets = await screen.findAllByTestId("secret-item");- const secondSecret = within(secrets[1]);- const deleteButton = secondSecret.getByTestId("delete-secret-button");- await userEvent.click(deleteButton);-- // confirmation modal- const confirmationModal = screen.getByTestId("confirmation-modal");- const confirmButton =- within(confirmationModal).getByTestId("confirm-button");- await userEvent.click(confirmButton);-- // make DELETE request- expect(deleteSecretSpy).toHaveBeenCalledWith("My_Secret_2");- expect(screen.queryByTestId("confirmation-modal")).not.toBeInTheDocument();-- // optimistic update- expect(screen.queryAllByTestId("secret-item")).toHaveLength(2);- expect(screen.queryByText("My_Secret_2")).toBeInTheDocument();- });-- it("should hide the table and add button when in form view", async () => {- const searchSecretsSpy = vi.spyOn(SecretsService, "searchSecrets");- searchSecretsSpy.mockResolvedValue(createMockSecretsPage([]));- renderSecretsSettings();-- // Initially should show the add button and wait for table to load- const button = await screen.findByTestId("add-secret-button");- await waitFor(() => {- expect(screen.getByText("SETTINGS$NAME")).toBeInTheDocument(); // table header- });-- await userEvent.click(button);-- // When in form view, should hide the add button and table- const secretForm = screen.getByTestId("add-secret-form");- expect(secretForm).toBeInTheDocument();- expect(screen.queryByTestId("add-secret-button")).not.toBeInTheDocument();- expect(screen.queryByText("SETTINGS$NAME")).not.toBeInTheDocument(); // table header should be hidden- });-- it("should not allow spaces in secret names", async () => {- const createSecretSpy = vi.spyOn(SecretsService, "createSecret");- renderSecretsSettings();-- // render form & hide items- expect(screen.queryByTestId("add-secret-form")).not.toBeInTheDocument();- const button = await screen.findByTestId("add-secret-button");- await userEvent.click(button);-- const secretForm = screen.getByTestId("add-secret-form");- expect(secretForm).toBeInTheDocument();-- // enter details- const nameInput = within(secretForm).getByTestId("name-input");- const valueInput = within(secretForm).getByTestId("value-input");- const submitButton = within(secretForm).getByTestId("submit-button");-- await userEvent.type(nameInput, "My Custom Secret With Spaces");- await userEvent.type(valueInput, "my-custom-secret-value");- await userEvent.click(submitButton);-- // make POST request- expect(createSecretSpy).not.toHaveBeenCalled();-- await userEvent.clear(nameInput);- await userEvent.type(nameInput, "MyCustomSecret");- await userEvent.click(submitButton);-- expect(createSecretSpy).toHaveBeenCalledWith(- "MyCustomSecret",- "my-custom-secret-value",- undefined,- );- });-- it("should not allow existing secret names", async () => {- const createSecretSpy = vi.spyOn(SecretsService, "createSecret");- const searchSecretsSpy = vi.spyOn(SecretsService, "searchSecrets");- searchSecretsSpy.mockResolvedValue(createMockSecretsPage(MOCK_SECRETS.slice(0, 1)));- renderSecretsSettings();-- // render form & hide items- expect(screen.queryByTestId("add-secret-form")).not.toBeInTheDocument();- const button = await screen.findByTestId("add-secret-button");- await userEvent.click(button);-- const secretForm = screen.getByTestId("add-secret-form");- expect(secretForm).toBeInTheDocument();-- // enter details- const nameInput = within(secretForm).getByTestId("name-input");- const valueInput = within(secretForm).getByTestId("value-input");- const submitButton = within(secretForm).getByTestId("submit-button");-- await userEvent.type(nameInput, "My_Secret_1");- await userEvent.type(valueInput, "my-custom-secret-value");- await userEvent.click(submitButton);-- // make POST request- expect(createSecretSpy).not.toHaveBeenCalled();- expect(- screen.queryByText("SECRETS$SECRET_ALREADY_EXISTS"),- ).toBeInTheDocument();-- await userEvent.clear(nameInput);- await userEvent.type(nameInput, "My_Custom_Secret");-- await userEvent.clear(valueInput);- await userEvent.type(valueInput, "my-custom-secret-value");-- await userEvent.click(submitButton);-- expect(createSecretSpy).toHaveBeenCalledWith(- "My_Custom_Secret",- "my-custom-secret-value",- undefined,- );- expect(- screen.queryByText("SECRETS$SECRET_VALUE_REQUIRED"),- ).not.toBeInTheDocument();- });-- it("should not submit whitespace secret names or values", async () => {- const createSecretSpy = vi.spyOn(SecretsService, "createSecret");- const searchSecretsSpy = vi.spyOn(SecretsService, "searchSecrets");- searchSecretsSpy.mockResolvedValue(createMockSecretsPage([]));- renderSecretsSettings();-- // render form & hide items- expect(screen.queryByTestId("add-secret-form")).not.toBeInTheDocument();- const button = await screen.findByTestId("add-secret-button");- await userEvent.click(button);-- const secretForm = screen.getByTestId("add-secret-form");- expect(secretForm).toBeInTheDocument();-- // enter details- const nameInput = within(secretForm).getByTestId("name-input");- const valueInput = within(secretForm).getByTestId("value-input");- const submitButton = within(secretForm).getByTestId("submit-button");-- await userEvent.type(nameInput, " ");- await userEvent.type(valueInput, "my-custom-secret-value");- await userEvent.click(submitButton);-- // make POST request- expect(createSecretSpy).not.toHaveBeenCalled();-- await userEvent.clear(nameInput);- await userEvent.type(nameInput, "My_Custom_Secret");-- await userEvent.clear(valueInput);- await userEvent.type(valueInput, " ");-- await userEvent.click(submitButton);-- expect(createSecretSpy).not.toHaveBeenCalled();- await waitFor(() => {- expect(- screen.queryByText("SECRETS$SECRET_VALUE_REQUIRED"),- ).toBeInTheDocument();- });- });-- it("should not reset ipout values on an invalid submit", async () => {- const searchSecretsSpy = vi.spyOn(SecretsService, "searchSecrets");- const createSecretSpy = vi.spyOn(SecretsService, "createSecret");- searchSecretsSpy.mockResolvedValue(createMockSecretsPage(MOCK_SECRETS));-- renderSecretsSettings();-- // render form & hide items- expect(screen.queryByTestId("add-secret-form")).not.toBeInTheDocument();- const button = await screen.findByTestId("add-secret-button");- await userEvent.click(button);-- const secretForm = screen.getByTestId("add-secret-form");- expect(secretForm).toBeInTheDocument();-- // enter details- const nameInput = within(secretForm).getByTestId("name-input");- const valueInput = within(secretForm).getByTestId("value-input");- const submitButton = within(secretForm).getByTestId("submit-button");-- await userEvent.type(nameInput, MOCK_SECRETS[0].name);- await userEvent.type(valueInput, "my-custom-secret-value");- await userEvent.click(submitButton);-- // make POST request- expect(createSecretSpy).not.toHaveBeenCalled();- expect(- screen.queryByText("SECRETS$SECRET_ALREADY_EXISTS"),- ).toBeInTheDocument();-- expect(nameInput).toHaveValue(MOCK_SECRETS[0].name);- expect(valueInput).toHaveValue("my-custom-secret-value");+describe("clientLoader permission checks", () => {+ it("exports a clientLoader", () => {+ expect(clientLoader).toBeDefined();+ expect(typeof clientLoader).toBe("function");});});diff --git a/__tests__/routes/settings-with-payment.test.tsx b/__tests__/routes/settings-with-payment.test.tsxdeleted file mode 100644index 1a682c96b7..0000000000--- a/__tests__/routes/settings-with-payment.test.tsx+++ /dev/null@@ -1,263 +0,0 @@-import { render, screen, within } from "@testing-library/react";-import userEvent from "@testing-library/user-event";-import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";-import { createRoutesStub } from "react-router";-import SettingsScreen from "#/routes/settings";-import { PaymentForm } from "#/components/features/payment/payment-form";-import { QueryClient, QueryClientProvider } from "@tanstack/react-query";--let queryClient: QueryClient;--// Mock the useSettings hook-vi.mock("#/hooks/query/use-settings", async () => {- const actual = await vi.importActual<typeof import("#/hooks/query/use-settings")>(- "#/hooks/query/use-settings"- );- return {- ...actual,- useSettings: vi.fn().mockReturnValue({- data: { EMAIL_VERIFIED: true },- isLoading: false,- }),- };-});--// Mock the i18next hook-vi.mock("react-i18next", async () => {- const actual =- await vi.importActual<typeof import("react-i18next")>("react-i18next");- return {- ...actual,- useTranslation: () => ({- t: (key: string) => {- const translations: Record<string, string> = {- SETTINGS$NAV_INTEGRATIONS: "Integrations",- SETTINGS$NAV_APPLICATION: "Application",- SETTINGS$NAV_CREDITS: "Credits",- SETTINGS$NAV_BILLING: "Billing",- SETTINGS$NAV_API_KEYS: "API Keys",- SETTINGS$NAV_LLM: "LLM",- SETTINGS$NAV_USER: "User",- SETTINGS$NAV_SECRETS: "Secrets",- SETTINGS$NAV_MCP: "MCP",- SETTINGS$TITLE: "Settings",- };- return translations[key] || key;- },- i18n: {- changeLanguage: vi.fn(),- },- }),- };-});--// Mock useConfig hook-const { mockUseConfig, mockUseMe, mockUsePermission } = vi.hoisted(() => ({- mockUseConfig: vi.fn(),- mockUseMe: vi.fn(),- mockUsePermission: vi.fn(),-}));--vi.mock("#/hooks/query/use-config", () => ({- useConfig: mockUseConfig,-}));--vi.mock("#/hooks/query/use-me", () => ({- useMe: mockUseMe,-}));--vi.mock("#/hooks/organizations/use-permissions", () => ({- usePermission: () => ({- hasPermission: mockUsePermission,- }),-}));--describe("Settings Billing", () => {- beforeEach(() => {- queryClient = new QueryClient({- defaultOptions: { queries: { retry: false } },- });-- // Set default config to OSS mode with lowercase keys- mockUseConfig.mockReturnValue({- data: {- app_mode: "oss",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- },- isLoading: false,- });-- mockUseMe.mockReturnValue({- data: { role: "admin" },- isLoading: false,- });-- mockUsePermission.mockReturnValue(false); // default: no billing access- });-- const RoutesStub = createRoutesStub([- {- Component: SettingsScreen,- path: "/settings",- children: [- {- Component: () => <PaymentForm />,- path: "/settings/billing",- },- {- Component: () => <div data-testid="git-settings-screen" />,- path: "/settings/integrations",- },- {- Component: () => <div data-testid="user-settings-screen" />,- path: "/settings/user",- },- ],- },- ]);-- const renderSettingsScreen = () =>- render(<RoutesStub initialEntries={["/settings"]} />, {- wrapper: ({ children }) => (- <QueryClientProvider client={queryClient}>- {children}- </QueryClientProvider>- ),- });-- afterEach(() => vi.clearAllMocks());-- it("should not render the billing tab if OSS mode", async () => {- mockUseConfig.mockReturnValue({- data: {- app_mode: "oss",- feature_flags: {- enable_billing: true,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- },- },- isLoading: false,- });-- mockUseMe.mockReturnValue({- data: { role: "admin" },- isLoading: false,- });-- mockUsePermission.mockReturnValue(true);-- renderSettingsScreen();-- const navbar = await screen.findByTestId("settings-navbar");- const credits = within(navbar).queryByText("Billing");- expect(credits).not.toBeInTheDocument();- });-- it("should render the billing tab if: SaaS mode, billing enabled, admin user", async () => {- mockUseConfig.mockReturnValue({- data: {- app_mode: "saas",- feature_flags: {- enable_billing: true,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- },- isLoading: false,- });-- mockUseMe.mockReturnValue({- data: { role: "admin" },- isLoading: false,- });-- mockUsePermission.mockReturnValue(true);-- renderSettingsScreen();-- const navbar = await screen.findByTestId("settings-navbar");- expect(within(navbar).getByText("Billing")).toBeInTheDocument();- });-- it("should NOT render the billing tab if: SaaS mode, billing is enabled, and member user", async () => {- mockUseConfig.mockReturnValue({- data: {- app_mode: "saas",- feature_flags: {- enable_billing: true,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- },- isLoading: false,- });-- mockUseMe.mockReturnValue({- data: { role: "member" },- isLoading: false,- });-- mockUsePermission.mockReturnValue(false);-- renderSettingsScreen();-- const navbar = await screen.findByTestId("settings-navbar");- expect(within(navbar).queryByText("Billing")).not.toBeInTheDocument();- });-- it("should render the billing settings if clicking the billing item", async () => {- const user = userEvent.setup();- // When enable_billing is true, the billing nav item is shown- mockUseConfig.mockReturnValue({- data: {- app_mode: "saas",- feature_flags: {- enable_billing: true,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- },- },- isLoading: false,- });-- mockUseMe.mockReturnValue({- data: { role: "admin" },- isLoading: false,- });-- mockUsePermission.mockReturnValue(true);-- renderSettingsScreen();-- const navbar = await screen.findByTestId("settings-navbar");- const credits = within(navbar).getByText("Billing");- await user.click(credits);-- const billingSection = await screen.findByTestId("billing-settings");- expect(billingSection).toBeInTheDocument();- });-});diff --git a/__tests__/routes/settings.test.tsx b/__tests__/routes/settings.test.tsxindex 1eb14c6793..f433ec886f 100644--- a/__tests__/routes/settings.test.tsx+++ b/__tests__/routes/settings.test.tsx@@ -1,1205 +1,96 @@-import { render, screen, waitFor, within } from "@testing-library/react";+import { QueryClient, QueryClientProvider } from "@tanstack/react-query";+import { render, screen } from "@testing-library/react";+import { beforeEach, describe, expect, it, vi } from "vitest";import { createRoutesStub } from "react-router";-import { describe, expect, it, vi, beforeEach, afterEach } from "vitest";-import { QueryClientProvider } from "@tanstack/react-query";import SettingsScreen, { clientLoader } from "#/routes/settings";-import { getFirstAvailablePath } from "#/utils/settings-utils";import OptionService from "#/api/option-service/option-service.api";-import { OrganizationMember } from "#/types/org";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { MOCK_PERSONAL_ORG, MOCK_TEAM_ORG_ACME } from "#/mocks/org-handlers";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";-import { WebClientFeatureFlags } from "#/api/option-service/option.types";-import { createMockWebClientConfig } from "#/mocks/settings-handlers";--// Module-level mocks using vi.hoisted-const { handleLogoutMock, mockQueryClient } = vi.hoisted(() => ({- handleLogoutMock: vi.fn(),- mockQueryClient: (() => {- const { QueryClient } = require("@tanstack/react-query");- return new QueryClient();- })(),-}));--vi.mock("#/hooks/use-app-logout", () => ({- useAppLogout: vi.fn().mockReturnValue({ handleLogout: handleLogoutMock }),-}));+import { getFirstAvailablePath } from "#/utils/settings-utils";+import { OSS_NAV_ITEMS } from "#/constants/settings-nav";-vi.mock("#/query-client-config", () => ({- queryClient: mockQueryClient,+vi.mock("#/hooks/use-settings-nav-items", () => ({+ useSettingsNavItems: () => [+ { type: "item", item: OSS_NAV_ITEMS[0] },+ { type: "item", item: OSS_NAV_ITEMS[6] },+ ],}));-// Mock the i18next hook-vi.mock("react-i18next", async () => {- const actual =- await vi.importActual<typeof import("react-i18next")>("react-i18next");- return {- ...actual,- useTranslation: () => ({- t: (key: string) => {- const translations: Record<string, string> = {- SETTINGS$NAV_INTEGRATIONS: "Integrations",- SETTINGS$NAV_APPLICATION: "Application",- SETTINGS$NAV_CREDITS: "Credits",- SETTINGS$NAV_API_KEYS: "API Keys",- SETTINGS$NAV_LLM: "LLM",- SETTINGS$NAV_SECRETS: "Secrets",- SETTINGS$NAV_MCP: "MCP",- SETTINGS$NAV_USER: "User",- SETTINGS$NAV_BILLING: "Billing",- SETTINGS$TITLE: "Settings",- COMMON$LANGUAGE_MODEL_LLM: "LLM",- SETTINGS$ORG_WIDE_SETTING_BADGE:- "This setting affects the whole organization",- SETTINGS$ORG_MANAGED_BY_ADMIN_BADGE:- "This setting is managed by your organization administrator",- };- return translations[key] || key;- },- i18n: {- changeLanguage: vi.fn(),- },- }),- };-});--describe("Settings Screen", () => {- const createMockUser = (- overrides: Partial<OrganizationMember> = {},- ): OrganizationMember => ({- org_id: "org-1",- user_id: "user-1",- email: "[email protected]",- role: "member",- llm_api_key: "",- max_iterations: 100,- llm_model: "gpt-4",- llm_base_url: "",- status: "active",- ...overrides,- });-- const seedActiveUser = (user: Partial<OrganizationMember>) => {- useSelectedOrganizationStore.setState({ organizationId: "org-1" });- vi.spyOn(organizationService, "getMe").mockResolvedValue(- createMockUser(user),- );- };-- const RouterStub = createRoutesStub([- {- Component: SettingsScreen,- // @ts-expect-error - custom loader- loader: clientLoader,- path: "/settings",- children: [- {- Component: () => <div data-testid="llm-settings-screen" />,- path: "/settings",- },- {- Component: () => <div data-testid="user-settings-screen" />,- path: "/settings/user",- },- {- Component: () => <div data-testid="git-settings-screen" />,- path: "/settings/integrations",- },- {- Component: () => <div data-testid="application-settings-screen" />,- path: "/settings/app",- },- {- Component: () => <div data-testid="billing-settings-screen" />,- path: "/settings/billing",- },- {- Component: () => <div data-testid="api-keys-settings-screen" />,- path: "/settings/api-keys",- },- {- Component: () => <div data-testid="org-members-settings-screen" />,- path: "/settings/org-members",- handle: { hideTitle: true },- },- {- Component: () => <div data-testid="organization-settings-screen" />,- path: "/settings/org",- },- {- Component: () => <div data-testid="condenser-settings-screen" />,- path: "/settings/condenser",- },- {- Component: () => <div data-testid="verification-settings-screen" />,- path: "/settings/verification",- },- {- Component: () => (- <div data-testid="org-default-llm-settings-screen" />- ),- path: "/settings/org-defaults",- },- {- Component: () => (- <div data-testid="org-default-condenser-settings-screen" />- ),- path: "/settings/org-defaults/condenser",- },- {- Component: () => (- <div data-testid="org-default-verification-settings-screen" />- ),- path: "/settings/org-defaults/verification",- },- ],- },- ]);-- const renderSettingsScreen = (path = "/settings") =>- render(<RouterStub initialEntries={[path]} />, {- wrapper: ({ children }) => (- <QueryClientProvider client={mockQueryClient}>- {children}- </QueryClientProvider>- ),- });-- it("should render the navbar", async () => {- const sectionsToInclude = ["llm", "integrations", "application", "secrets"];- const sectionsToExclude = ["api keys", "credits", "billing"];- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- // @ts-expect-error - only return app mode- getConfigSpy.mockResolvedValue({- app_mode: "oss",- });-- // Clear any existing query data- mockQueryClient.clear();-- renderSettingsScreen();-- const navbar = await screen.findByTestId("settings-navbar");- sectionsToInclude.forEach((section) => {- const sectionElements = within(navbar).getAllByText(section, {- exact: false, // case insensitive- });- expect(sectionElements.length).toBeGreaterThan(0);- });- sectionsToExclude.forEach((section) => {- const sectionElement = within(navbar).queryByText(section, {- exact: false, // case insensitive- });- expect(sectionElement).not.toBeInTheDocument();- });-- getConfigSpy.mockRestore();- });-- it("should render the saas navbar", async () => {- const saasConfig = {- app_mode: "saas",- feature_flags: {- enable_billing: true,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- },- };-- // Clear any existing query data and set the config- mockQueryClient.clear();- mockQueryClient.setQueryData(["web-client-config"], saasConfig);- seedActiveUser({ role: "admin" });-- const sectionsToInclude = [- "llm", // LLM settings are now always shown in SaaS mode- "user",- "integrations",- "application",- "billing", // The nav item shows "Billing" text and routes to /billing- "secrets",- "api keys",- ];- const sectionsToExclude: string[] = []; // No sections are excluded in SaaS mode now-- renderSettingsScreen();-- const navbar = await screen.findByTestId("settings-navbar");- await waitFor(() => {- expect(within(navbar).getByText("Billing")).toBeInTheDocument();- });- sectionsToInclude.forEach((section) => {- const sectionElements = within(navbar).getAllByText(section, {- exact: false, // case insensitive- });- expect(sectionElements.length).toBeGreaterThan(0);- });- sectionsToExclude.forEach((section) => {- const sectionElement = within(navbar).queryByText(section, {- exact: false, // case insensitive- });- expect(sectionElement).not.toBeInTheDocument();- });- });-- it("should not be able to access saas-only routes in oss mode", async () => {- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- // @ts-expect-error - only return app mode- getConfigSpy.mockResolvedValue({- app_mode: "oss",- });-- // Clear any existing query data- mockQueryClient.clear();-- // In OSS mode, accessing restricted routes should redirect to /settings- // Since createRoutesStub doesn't handle clientLoader redirects properly,- // we test that the correct navbar is shown (OSS navbar) and that- // the restricted route components are not rendered when accessing /settings- renderSettingsScreen("/settings");-- // Verify we're in OSS mode by checking the navbar- const navbar = await screen.findByTestId("settings-navbar");- expect(within(navbar).getByText("LLM")).toBeInTheDocument();- expect(- within(navbar).queryByText("credits", { exact: false }),- ).not.toBeInTheDocument();-- // Verify the LLM settings screen is shown- expect(screen.getByTestId("llm-settings-screen")).toBeInTheDocument();- expect(- screen.queryByTestId("billing-settings-screen"),- ).not.toBeInTheDocument();- expect(- screen.queryByTestId("api-keys-settings-screen"),- ).not.toBeInTheDocument();-- getConfigSpy.mockRestore();- });-- it.todo("should not be able to access oss-only routes in saas mode");-- describe("Personal org vs team org visibility", () => {- it("should not show Organization and Organization Members settings items when personal org is selected", async () => {- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_PERSONAL_ORG],- currentOrgId: MOCK_PERSONAL_ORG.id,- });- vi.spyOn(organizationService, "getMe").mockResolvedValue({- org_id: "1",- user_id: "99",- email: "[email protected]",- role: "admin",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- });-- renderSettingsScreen();-- const navbar = await screen.findByTestId("settings-navbar");-- // Organization and Organization Members should NOT be visible for personal org- expect(- within(navbar).queryByText("Organization Members"),- ).not.toBeInTheDocument();- expect(- within(navbar).queryByText("Organization"),- ).not.toBeInTheDocument();- });-- it("should not show Billing settings item when team org is selected", async () => {- // Set up SaaS mode (which has Billing in nav items)- mockQueryClient.clear();- mockQueryClient.setQueryData(["web-client-config"], { app_mode: "saas" });- // Pre-select the team org in the query client and Zustand store- mockQueryClient.setQueryData(["organizations"], {- items: [MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });- useSelectedOrganizationStore.setState({ organizationId: "2" });-- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });- vi.spyOn(organizationService, "getMe").mockResolvedValue({- org_id: "2",- user_id: "99",- email: "[email protected]",- role: "admin",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- });-- renderSettingsScreen();-- const navbar = await screen.findByTestId("settings-navbar");-- // Wait for orgs to load, then verify Billing is hidden for team orgs- await waitFor(() => {- expect(- within(navbar).queryByText("Billing", { exact: false }),- ).not.toBeInTheDocument();- });- });-- it("should not allow direct URL access to /settings/org when personal org is selected", async () => {- // Set up orgs in query client so clientLoader can access them- mockQueryClient.setQueryData(["organizations"], {- items: [MOCK_PERSONAL_ORG],- currentOrgId: MOCK_PERSONAL_ORG.id,- });- // Use Zustand store instead of query client for selected org ID- // This is the correct pattern - the query client key ["selected_organization"] is never set in production- useSelectedOrganizationStore.setState({ organizationId: "1" });-- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_PERSONAL_ORG],- currentOrgId: MOCK_PERSONAL_ORG.id,- });- vi.spyOn(organizationService, "getMe").mockResolvedValue({- org_id: "1",- user_id: "99",- email: "[email protected]",- role: "admin",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- });-- renderSettingsScreen("/settings/org");-- // Should redirect away from org settings for personal org- await waitFor(() => {- expect(- screen.queryByTestId("organization-settings-screen"),- ).not.toBeInTheDocument();- });- });-- it("should not allow direct URL access to /settings/org-members when personal org is selected", async () => {- // Set up config and organizations in query client so clientLoader can access them- mockQueryClient.setQueryData(["web-client-config"], { app_mode: "saas" });- mockQueryClient.setQueryData(["organizations"], {- items: [MOCK_PERSONAL_ORG],- currentOrgId: MOCK_PERSONAL_ORG.id,- });- // Use Zustand store for selected org ID- useSelectedOrganizationStore.setState({ organizationId: "1" });-- // Mock getMe so getActiveOrganizationUser returns admin- vi.spyOn(organizationService, "getMe").mockResolvedValue(- createMockUser({ role: "admin", org_id: "1" }),- );-- // Act: Call clientLoader directly with the REAL route path (as defined in routes.ts)- const request = new Request("http://localhost/settings/org-members");- // @ts-expect-error - test only needs request and params, not full loader args- const result = await clientLoader({ request, params: {} });-- // Assert: Should redirect away from org-members settings for personal org- expect(result).not.toBeNull();- expect(result).toBeInstanceOf(Response);- const response = result as Response;- expect(response.status).toBe(302);- expect(response.headers.get("Location")).toBe("/settings");- });-- it("should not allow direct URL access to /settings/billing when team org is selected", async () => {- // Set up orgs in query client so clientLoader can access them- mockQueryClient.setQueryData(["organizations"], {- items: [MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });- // Use Zustand store instead of query client for selected org ID- useSelectedOrganizationStore.setState({ organizationId: "2" });-- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });- vi.spyOn(organizationService, "getMe").mockResolvedValue({- org_id: "1",- user_id: "99",- email: "[email protected]",- role: "admin",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- });-- renderSettingsScreen("/settings/billing");-- // Should redirect away from billing settings for team org- await waitFor(() => {- expect(- screen.queryByTestId("billing-settings-screen"),- ).not.toBeInTheDocument();- });- });- });-- describe("enable_billing feature flag", () => {- it("should show billing navigation item when enable_billing is true", async () => {- // Arrange- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- enable_billing: true, // When enable_billing is true, billing nav is shown- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );-- mockQueryClient.clear();- // Set up personal org (billing is only shown for personal orgs, not team orgs)- mockQueryClient.setQueryData(["organizations"], {- items: [MOCK_PERSONAL_ORG],- currentOrgId: MOCK_PERSONAL_ORG.id,- });- useSelectedOrganizationStore.setState({ organizationId: "1" });-- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [MOCK_PERSONAL_ORG],- currentOrgId: MOCK_PERSONAL_ORG.id,- });- vi.spyOn(organizationService, "getMe").mockResolvedValue({- org_id: "1",- user_id: "99",- email: "[email protected]",- role: "admin",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- });-- // Act- renderSettingsScreen();-- // Assert- const navbar = await screen.findByTestId("settings-navbar");- await waitFor(() => {- expect(within(navbar).getByText("Billing")).toBeInTheDocument();- });-- getConfigSpy.mockRestore();- });-- it("should hide billing navigation item when enable_billing is false", async () => {- // Arrange- const getConfigSpy = vi.spyOn(OptionService, "getConfig");- getConfigSpy.mockResolvedValue(- createMockWebClientConfig({- app_mode: "saas",- feature_flags: {- enable_billing: false, // When enable_billing is false, billing nav is hidden- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- }),- );-- mockQueryClient.clear();-- // Act- renderSettingsScreen();-- // Assert- const navbar = await screen.findByTestId("settings-navbar");- expect(within(navbar).queryByText("Billing")).not.toBeInTheDocument();-- getConfigSpy.mockRestore();- });- });-- describe("clientLoader reads org ID from Zustand store", () => {- beforeEach(() => {- mockQueryClient.clear();- useSelectedOrganizationStore.setState({ organizationId: null });- });-- afterEach(() => {- vi.restoreAllMocks();- });-- it("should redirect away from /settings/org when personal org is selected in Zustand store", async () => {- // Arrange: Set up config and organizations in query client- mockQueryClient.setQueryData(["web-client-config"], { app_mode: "saas" });- mockQueryClient.setQueryData(["organizations"], {- items: [MOCK_PERSONAL_ORG],- currentOrgId: MOCK_PERSONAL_ORG.id,- });-- // Set org ID ONLY in Zustand store (not in query client)- // This tests that clientLoader reads from the correct source- useSelectedOrganizationStore.setState({ organizationId: "1" });-- // Mock getMe so getActiveOrganizationUser returns admin- vi.spyOn(organizationService, "getMe").mockResolvedValue(- createMockUser({ role: "admin", org_id: "1" }),- );-- // Act: Call clientLoader directly- const request = new Request("http://localhost/settings/org");- // @ts-expect-error - test only needs request and params, not full loader args- const result = await clientLoader({ request, params: {} });-- // Assert: Should redirect away from org settings for personal org- expect(result).not.toBeNull();- // In React Router, redirect returns a Response object- expect(result).toBeInstanceOf(Response);- const response = result as Response;- expect(response.status).toBe(302);- expect(response.headers.get("Location")).toBe("/settings");- });-- it("should redirect away from /settings/billing when team org is selected in Zustand store", async () => {- // Arrange: Set up config and organizations in query client- mockQueryClient.setQueryData(["web-client-config"], { app_mode: "saas" });- mockQueryClient.setQueryData(["organizations"], {- items: [MOCK_TEAM_ORG_ACME],- currentOrgId: MOCK_TEAM_ORG_ACME.id,- });-- // Set org ID ONLY in Zustand store (not in query client)- useSelectedOrganizationStore.setState({ organizationId: "2" });-- // Mock getMe so getActiveOrganizationUser returns admin- vi.spyOn(organizationService, "getMe").mockResolvedValue(- createMockUser({ role: "admin", org_id: "2" }),- );-- // Act: Call clientLoader directly- const request = new Request("http://localhost/settings/billing");- // @ts-expect-error - test only needs request and params, not full loader args- const result = await clientLoader({ request, params: {} });-- // Assert: Should redirect away from billing settings for team org- expect(result).not.toBeNull();- expect(result).toBeInstanceOf(Response);- const response = result as Response;- expect(response.status).toBe(302);- expect(response.headers.get("Location")).toBe("/settings/user");- });- });-- describe("hide page feature flags", () => {- beforeEach(() => {- // Set up as personal org admin so billing is accessible- mockQueryClient.setQueryData(["organizations"], {- items: [MOCK_PERSONAL_ORG],- currentOrgId: MOCK_PERSONAL_ORG.id,- });- useSelectedOrganizationStore.setState({ organizationId: "1" });- vi.spyOn(organizationService, "getMe").mockResolvedValue({- org_id: "1",- user_id: "99",- email: "[email protected]",- role: "admin",- llm_api_key: "**********",- max_iterations: 20,- llm_model: "gpt-4",- llm_base_url: "https://api.openai.com",- status: "active",- });- });-- it("should hide users page in navbar when hide_users_page is true", async () => {- const saasConfig = {- app_mode: "saas",- feature_flags: {- enable_billing: true, // Enable billing so it's not hidden by isBillingHidden- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: true,- hide_billing_page: false,- hide_integrations_page: false,- },- };-- mockQueryClient.clear();- mockQueryClient.setQueryData(["web-client-config"], saasConfig);- // Set up personal org so billing is visible- mockQueryClient.setQueryData(["organizations"], {- items: [MOCK_PERSONAL_ORG],- currentOrgId: MOCK_PERSONAL_ORG.id,- });- useSelectedOrganizationStore.setState({ organizationId: "1" });- // Pre-populate user data in cache so useMe() returns admin role immediately- mockQueryClient.setQueryData(- ["organizations", "1", "me"],- createMockUser({ role: "admin", org_id: "1" }),- );-- renderSettingsScreen();-- const navbar = await screen.findByTestId("settings-navbar");- expect(- within(navbar).queryByText("User", { exact: false }),- ).not.toBeInTheDocument();- // Other pages should still be visible- expect(- within(navbar).getByText("Integrations", { exact: false }),- ).toBeInTheDocument();- expect(- within(navbar).getByText("Billing", { exact: false }),- ).toBeInTheDocument();- });-- it("should hide billing page in navbar when hide_billing_page is true", async () => {- const saasConfig = {- app_mode: "saas",- feature_flags: {- enable_billing: true,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: true,- hide_integrations_page: false,- },- };-- mockQueryClient.clear();- mockQueryClient.setQueryData(["web-client-config"], saasConfig);- mockQueryClient.setQueryData(["organizations"], {- items: [MOCK_PERSONAL_ORG],- currentOrgId: MOCK_PERSONAL_ORG.id,- });- useSelectedOrganizationStore.setState({ organizationId: "1" });-- renderSettingsScreen();-- const navbar = await screen.findByTestId("settings-navbar");- expect(- within(navbar).queryByText("Billing", { exact: false }),- ).not.toBeInTheDocument();- // Other pages should still be visible- expect(- within(navbar).getByText("User", { exact: false }),- ).toBeInTheDocument();- expect(- within(navbar).getByText("Integrations", { exact: false }),- ).toBeInTheDocument();- });-- it("should hide integrations page in navbar when hide_integrations_page is true", async () => {- const saasConfig = {- app_mode: "saas",- feature_flags: {- enable_billing: true,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: true,- },- };-- mockQueryClient.clear();- mockQueryClient.setQueryData(["web-client-config"], saasConfig);- mockQueryClient.setQueryData(["organizations"], {- items: [MOCK_PERSONAL_ORG],- currentOrgId: MOCK_PERSONAL_ORG.id,- });- useSelectedOrganizationStore.setState({ organizationId: "1" });- // Pre-populate user data in cache so useMe() returns admin role immediately- mockQueryClient.setQueryData(- ["organizations", "1", "me"],- createMockUser({ role: "admin", org_id: "1" }),- );-- renderSettingsScreen();-- const navbar = await screen.findByTestId("settings-navbar");- expect(- within(navbar).queryByText("Integrations", { exact: false }),- ).not.toBeInTheDocument();- // Other pages should still be visible- expect(- within(navbar).getByText("User", { exact: false }),- ).toBeInTheDocument();- expect(- within(navbar).getByText("Billing", { exact: false }),- ).toBeInTheDocument();- });-- it("should hide multiple pages when multiple flags are true", async () => {- const saasConfig = {- app_mode: "saas",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: true,- hide_billing_page: true,- hide_integrations_page: true,- },- };-- mockQueryClient.clear();- mockQueryClient.setQueryData(["web-client-config"], saasConfig);-- renderSettingsScreen();-- const navbar = await screen.findByTestId("settings-navbar");- expect(- within(navbar).queryByText("User", { exact: false }),- ).not.toBeInTheDocument();- expect(- within(navbar).queryByText("Billing", { exact: false }),- ).not.toBeInTheDocument();- expect(- within(navbar).queryByText("Integrations", { exact: false }),- ).not.toBeInTheDocument();- // Other pages should still be visible- expect(- within(navbar).getByText("Application", { exact: false }),- ).toBeInTheDocument();- expect(- within(navbar).getByText("LLM", { exact: false }),- ).toBeInTheDocument();- });-- it("should hide integrations page in OSS mode when hide_integrations_page is true", async () => {- const ossConfig = {- app_mode: "oss",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: true,- },- };-- mockQueryClient.clear();- mockQueryClient.setQueryData(["web-client-config"], ossConfig);-- renderSettingsScreen();-- const navbar = await screen.findByTestId("settings-navbar");- expect(- within(navbar).queryByText("Integrations", { exact: false }),- ).not.toBeInTheDocument();- // Other OSS pages should still be visible- expect(- within(navbar).getByText("LLM", { exact: false }),- ).toBeInTheDocument();- expect(- within(navbar).getByText("Application", { exact: false }),- ).toBeInTheDocument();- });- });-- describe("OrgWideSettingsBadge display", () => {- const seedSaasOrgContext = (- org: typeof MOCK_TEAM_ORG_ACME | typeof MOCK_PERSONAL_ORG,- user: Partial<OrganizationMember>,- ) => {- mockQueryClient.clear();- mockQueryClient.setQueryData(["web-client-config"], {- app_mode: "saas",- });- mockQueryClient.setQueryData(["organizations"], {- items: [org],- currentOrgId: org.id,- });- useSelectedOrganizationStore.setState({ organizationId: org.id });- vi.spyOn(organizationService, "getOrganizations").mockResolvedValue({- items: [org],- currentOrgId: org.id,- });- vi.spyOn(organizationService, "getMe").mockResolvedValue(- createMockUser({ ...user, org_id: org.id }),- );- };-- beforeEach(() => {- mockQueryClient.clear();- });-- afterEach(() => {- vi.restoreAllMocks();- });-- it.each([- "/settings/org-defaults",- "/settings/org-defaults/condenser",- "/settings/org-defaults/verification",- ])(- "renders the org-wide settings badge beside the title on %s for an admin in a team org in SaaS mode",- async (path) => {- seedSaasOrgContext(MOCK_TEAM_ORG_ACME, { role: "admin" });-- renderSettingsScreen(path);-- const badge = await screen.findByTestId("org-wide-settings-badge");- expect(badge).toBeInTheDocument();- expect(badge).toHaveTextContent(- "This setting affects the whole organization",- );- },- );-- it.each([- "/settings/org-defaults",- "/settings/org-defaults/condenser",- "/settings/org-defaults/verification",- ])(- "renders the managed-by-admin badge on %s for a member of a team org (read-only view)",- async (path) => {- seedSaasOrgContext(MOCK_TEAM_ORG_ACME, { role: "member" });-- renderSettingsScreen(path);-- const badge = await screen.findByTestId("org-wide-settings-badge");- await waitFor(() => {- expect(badge).toHaveTextContent(- "This setting is managed by your organization administrator",- );- });- },- );-- it("does not render the badge on /settings/org-defaults when the selected organization is a personal org", async () => {- seedSaasOrgContext(MOCK_PERSONAL_ORG, { role: "admin" });-- renderSettingsScreen("/settings/org-defaults");-- await screen.findByTestId("org-default-llm-settings-screen");- expect(- screen.queryByTestId("org-wide-settings-badge"),- ).not.toBeInTheDocument();- });-- it.each(["/settings/condenser", "/settings/verification"])(- "does not render the badge on %s (personal-workspace-only route)",- async (path) => {- seedSaasOrgContext(MOCK_TEAM_ORG_ACME, { role: "admin" });-- renderSettingsScreen(path);-- await screen.findByTestId(- path === "/settings/condenser"- ? "condenser-settings-screen"- : "verification-settings-screen",- );- expect(- screen.queryByTestId("org-wide-settings-badge"),- ).not.toBeInTheDocument();- },- );- });-});--describe("getFirstAvailablePath", () => {- const baseFeatureFlags: WebClientFeatureFlags = {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- };-- describe("SaaS mode", () => {- it("should return /settings/user when no pages are hidden", () => {- const result = getFirstAvailablePath(true, baseFeatureFlags);- expect(result).toBe("/settings/user");- });-- it("should return /settings/integrations when users page is hidden", () => {- const flags = { ...baseFeatureFlags, hide_users_page: true };- const result = getFirstAvailablePath(true, flags);- expect(result).toBe("/settings/integrations");- });-- it("should return /settings/app when users and integrations are hidden", () => {- const flags = {- ...baseFeatureFlags,- hide_users_page: true,- hide_integrations_page: true,- };- const result = getFirstAvailablePath(true, flags);- expect(result).toBe("/settings/app");- });-- it("should return /settings/app when users, integrations, and LLM settings are hidden", () => {- const flags = {- ...baseFeatureFlags,- hide_users_page: true,- hide_integrations_page: true,- hide_llm_settings: true,- };- const result = getFirstAvailablePath(true, flags);- expect(result).toBe("/settings/app");- });-- it("should return /settings/app when users, integrations, LLM, and billing are hidden", () => {- const flags = {- ...baseFeatureFlags,- hide_users_page: true,- hide_integrations_page: true,- hide_llm_settings: true,- hide_billing_page: true,- };- // /settings/app is never hidden, so it should return that- const result = getFirstAvailablePath(true, flags);- expect(result).toBe("/settings/app");- });-- it("should handle undefined feature flags", () => {- const result = getFirstAvailablePath(true, undefined);- expect(result).toBe("/settings/user");- });- });-- describe("OSS mode", () => {- it("should return /settings when no pages are hidden", () => {- const result = getFirstAvailablePath(false, baseFeatureFlags);- expect(result).toBe("/settings");- });-- it("should return /settings/mcp when LLM settings is hidden", () => {- const flags = { ...baseFeatureFlags, hide_llm_settings: true };- const result = getFirstAvailablePath(false, flags);- expect(result).toBe("/settings/mcp");- });-- it("should return /settings/mcp when LLM settings and integrations are hidden", () => {- const flags = {- ...baseFeatureFlags,- hide_llm_settings: true,- hide_integrations_page: true,- };- const result = getFirstAvailablePath(false, flags);- expect(result).toBe("/settings/mcp");- });-- it("should handle undefined feature flags", () => {- const result = getFirstAvailablePath(false, undefined);- expect(result).toBe("/settings");- });- });-});--describe("clientLoader redirect behavior", () => {- const createMockRequest = (pathname: string) => ({- request: new Request(`http://localhost${pathname}`),- });-+describe("settings route", () => {beforeEach(() => {- mockQueryClient.clear();+ vi.restoreAllMocks();});- it("should redirect from /settings/user to first available page when hide_users_page is true", async () => {- const config = {- app_mode: "saas",- feature_flags: {+ it("prefers OSS fallback routes only", () => {+ expect(+ getFirstAvailablePath({enable_billing: false,- hide_llm_settings: false,+ hide_llm_settings: true,enable_jira: false,enable_jira_dc: false,enable_linear: false,hide_users_page: true,- hide_billing_page: false,- hide_integrations_page: false,- },- };- mockQueryClient.setQueryData(["web-client-config"], config);-- const result = await clientLoader(- createMockRequest("/settings/user") as any,- );-- expect(result).toBeDefined();- expect(result?.status).toBe(302);- expect(result?.headers.get("Location")).toBe("/settings/integrations");- });-- it("should redirect from /settings/billing to first available page when hide_billing_page is true", async () => {- const config = {- app_mode: "saas",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,hide_billing_page: true,hide_integrations_page: false,- },- };- mockQueryClient.setQueryData(["web-client-config"], config);-- const result = await clientLoader(- createMockRequest("/settings/billing") as any,- );-- expect(result).toBeDefined();- expect(result?.status).toBe(302);- expect(result?.headers.get("Location")).toBe("/settings/user");- });-- it("should redirect from /settings/integrations to first available page when hide_integrations_page is true", async () => {- const config = {- app_mode: "saas",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: true,- },- };- mockQueryClient.setQueryData(["web-client-config"], config);-- const result = await clientLoader(- createMockRequest("/settings/integrations") as any,- );-- expect(result).toBeDefined();- expect(result?.status).toBe(302);- expect(result?.headers.get("Location")).toBe("/settings/user");- });-- it("should redirect from /settings to /settings/app when LLM, users, and integrations are all hidden", async () => {- const config = {- app_mode: "saas",- feature_flags: {- enable_billing: false,- hide_llm_settings: true,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: true,- hide_billing_page: false,- hide_integrations_page: true,- },- };- mockQueryClient.setQueryData(["web-client-config"], config);-- const result = await clientLoader(createMockRequest("/settings") as any);-- expect(result).toBeDefined();- expect(result?.status).toBe(302);- expect(result?.headers.get("Location")).toBe("/settings/app");+ deployment_mode: "self_hosted",+ }),+ ).toBe("/settings/mcp");});- it("should redirect from /settings to /settings/mcp in OSS mode when LLM settings is hidden", async () => {- const config = {+ it("redirects hidden OSS settings pages to the first available route", async () => {+ vi.spyOn(OptionService, "getConfig").mockResolvedValue({app_mode: "oss",+ posthog_client_key: null,feature_flags: {enable_billing: false,hide_llm_settings: true,enable_jira: false,enable_jira_dc: false,enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- },- };- mockQueryClient.setQueryData(["web-client-config"], config);-- const result = await clientLoader(createMockRequest("/settings") as any);-- expect(result).toBeDefined();- expect(result?.status).toBe(302);- expect(result?.headers.get("Location")).toBe("/settings/mcp");- });-- it("should not redirect when accessing a non-hidden page", async () => {- const config = {- app_mode: "saas",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,hide_users_page: true,hide_billing_page: true,- hide_integrations_page: true,+ hide_integrations_page: false,+ deployment_mode: "self_hosted",},- };- mockQueryClient.setQueryData(["web-client-config"], config);-- // /settings/app is never hidden- const result = await clientLoader(- createMockRequest("/settings/app") as any,- );-- expect(result).toBeNull();- });-- it("should redirect from /settings/integrations in OSS mode when hide_integrations_page is true", async () => {- const config = {- app_mode: "oss",- feature_flags: {- enable_billing: false,- hide_llm_settings: false,- enable_jira: false,- enable_jira_dc: false,- enable_linear: false,- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: true,+ providers_configured: [],+ maintenance_start_time: null,+ auth_url: null,+ recaptcha_site_key: null,+ faulty_models: [],+ error_message: null,+ updated_at: new Date().toISOString(),+ github_app_slug: null,+ });++ const response = (await clientLoader({+ request: new Request("http://localhost/settings"),+ params: {},+ context: {},+ } as never)) as Response;++ expect(response.status).toBe(302);+ expect(response.headers.get("Location")).toBe("/settings/mcp");+ });++ it("renders the current OSS section title", () => {+ const RouterStub = createRoutesStub([+ {+ path: "/settings",+ Component: SettingsScreen,+ children: [+ {+ path: "/settings/app",+ Component: () => <div data-testid="app-settings-screen" />,+ },+ ],},- };- mockQueryClient.setQueryData(["web-client-config"], config);+ ]);- const result = await clientLoader(- createMockRequest("/settings/integrations") as any,+ render(+ <QueryClientProvider client={new QueryClient()}>+ <RouterStub initialEntries={["/settings/app"]} />+ </QueryClientProvider>,);- expect(result).toBeDefined();- expect(result?.status).toBe(302);- // In OSS mode, first available is /settings (LLM)- expect(result?.headers.get("Location")).toBe("/settings");+ expect(screen.getAllByText("SETTINGS$NAV_APPLICATION").length).toBeGreaterThan(0);+ expect(screen.getByTestId("app-settings-screen")).toBeInTheDocument();});});diff --git a/__tests__/stores/selected-organization-store.test.ts b/__tests__/stores/selected-organization-store.test.tsdeleted file mode 100644index d3abd6d975..0000000000--- a/__tests__/stores/selected-organization-store.test.ts+++ /dev/null@@ -1,51 +0,0 @@-import { act, renderHook } from "@testing-library/react";-import { describe, expect, it } from "vitest";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";--describe("useSelectedOrganizationStore", () => {- it("should have null as initial organizationId", () => {- const { result } = renderHook(() => useSelectedOrganizationStore());- expect(result.current.organizationId).toBeNull();- });-- it("should update organizationId when setOrganizationId is called", () => {- const { result } = renderHook(() => useSelectedOrganizationStore());-- act(() => {- result.current.setOrganizationId("org-123");- });-- expect(result.current.organizationId).toBe("org-123");- });-- it("should allow setting organizationId to null", () => {- const { result } = renderHook(() => useSelectedOrganizationStore());-- act(() => {- result.current.setOrganizationId("org-123");- });-- expect(result.current.organizationId).toBe("org-123");-- act(() => {- result.current.setOrganizationId(null);- });-- expect(result.current.organizationId).toBeNull();- });-- it("should share state across multiple hook instances", () => {- const { result: result1 } = renderHook(() =>- useSelectedOrganizationStore(),- );- const { result: result2 } = renderHook(() =>- useSelectedOrganizationStore(),- );-- act(() => {- result1.current.setOrganizationId("shared-organization");- });-- expect(result2.current.organizationId).toBe("shared-organization");- });-});diff --git a/__tests__/utils/check-hardcoded-strings.test.tsx b/__tests__/utils/check-hardcoded-strings.test.tsxdeleted file mode 100644index 7c0a4e592d..0000000000--- a/__tests__/utils/check-hardcoded-strings.test.tsx+++ /dev/null@@ -1,85 +0,0 @@-import { render, screen } from "@testing-library/react";-import { test, expect, describe, vi, beforeEach } from "vitest";-import { MemoryRouter } from "react-router";-import { InteractiveChatBox } from "#/components/features/chat/interactive-chat-box";-import { renderWithProviders } from "../../test-utils";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";--beforeEach(() => {- useSelectedOrganizationStore.setState({ organizationId: "test-org-id" });-});--// Mock the translation function-vi.mock("react-i18next", async () => {- const actual = await vi.importActual("react-i18next");- return {- ...actual,- useTranslation: () => ({- t: (key: string) => {- // Return a mock translation for the test- const translations: Record<string, string> = {- CHAT$PLACEHOLDER: "What do you want to build?",- };- return translations[key] || key;- },- }),- };-});--// Mock the useActiveConversation hook-vi.mock("#/hooks/query/use-active-conversation", () => ({- useActiveConversation: () => ({- data: null,- }),-}));--// Mock React Router hooks-vi.mock("react-router", async (importOriginal) => ({- ...(await importOriginal<typeof import("react-router")>()),- useNavigate: () => vi.fn(),- useParams: () => ({ conversationId: "test-conversation-id" }),- useRevalidator: () => ({ revalidate: vi.fn() }),-}));--// Mock other hooks that might be used by the component-vi.mock("#/hooks/use-user-providers", () => ({- useUserProviders: () => ({- providers: [],- }),-}));--vi.mock("#/hooks/use-conversation-name-context-menu", () => ({- useConversationNameContextMenu: () => ({- isOpen: false,- contextMenuRef: { current: null },- handleContextMenu: vi.fn(),- handleClose: vi.fn(),- handleRename: vi.fn(),- handleDelete: vi.fn(),- }),-}));--describe("Check for hardcoded English strings", () => {- test("InteractiveChatBox should not have hardcoded English strings", () => {- const { container } = renderWithProviders(- <MemoryRouter>- <InteractiveChatBox onSubmit={() => {}} />- </MemoryRouter>,- );-- // Get all text content- const text = container.textContent;-- // List of English strings that should be translated- const hardcodedStrings = [- "What do you want to build?",- "Launch from Scratch",- "Read this",- ];-- // Check each string- hardcodedStrings.forEach((str) => {- expect(text).not.toContain(str);- });- });-});diff --git a/__tests__/utils/permission-checks.test.ts b/__tests__/utils/permission-checks.test.tsdeleted file mode 100644index e9b969da49..0000000000--- a/__tests__/utils/permission-checks.test.ts+++ /dev/null@@ -1,226 +0,0 @@-import { describe, expect, it, vi, beforeEach } from "vitest";-import { PermissionKey } from "#/utils/org/permissions";-import { OrganizationMember, OrganizationsQueryData } from "#/types/org";-import {- getAvailableRolesAUserCanAssign,- getActiveOrganizationUser,-} from "#/utils/org/permission-checks";-import { getSelectedOrganizationIdFromStore } from "#/stores/selected-organization-store";-import { queryClient } from "#/query-client-config";--// Mock dependencies-vi.mock("#/api/organization-service/organization-service.api", () => ({- organizationService: {- getMe: vi.fn(),- getOrganizations: vi.fn(),- },-}));--vi.mock("#/stores/selected-organization-store", () => ({- getSelectedOrganizationIdFromStore: vi.fn(),-}));--vi.mock("#/query-client-config", () => ({- queryClient: {- getQueryData: vi.fn(),- fetchQuery: vi.fn(),- setQueryData: vi.fn(),- },-}));--// Test fixtures-const mockUser: OrganizationMember = {- org_id: "org-1",- user_id: "user-1",- email: "[email protected]",- role: "admin",- llm_api_key: "",- max_iterations: 100,- llm_model: "gpt-4",- llm_base_url: "",- status: "active",-};--const mockOrganizationsData: OrganizationsQueryData = {- items: [- { id: "org-1", name: "Org 1" },- { id: "org-2", name: "Org 2" },- ] as OrganizationsQueryData["items"],- currentOrgId: "org-1",-};--describe("getAvailableRolesAUserCanAssign", () => {- it("returns empty array if user has no permissions", () => {- const result = getAvailableRolesAUserCanAssign([]);- expect(result).toEqual([]);- });-- it("returns only roles the user has permission for", () => {- const userPermissions: PermissionKey[] = [- "change_user_role:member",- "change_user_role:admin",- ];- const result = getAvailableRolesAUserCanAssign(userPermissions);- expect(result.sort()).toEqual(["admin", "member"].sort());- });-- it("returns all roles if user has all permissions", () => {- const allPermissions: PermissionKey[] = [- "change_user_role:member",- "change_user_role:admin",- "change_user_role:owner",- ];- const result = getAvailableRolesAUserCanAssign(allPermissions);- expect(result.sort()).toEqual(["member", "admin", "owner"].sort());- });-});--describe("getActiveOrganizationUser", () => {- beforeEach(() => {- vi.clearAllMocks();- });-- describe("when orgId exists in store", () => {- it("should fetch user directly using stored orgId", async () => {- // Arrange- vi.mocked(getSelectedOrganizationIdFromStore).mockReturnValue("org-1");- vi.mocked(queryClient.fetchQuery).mockResolvedValue(mockUser);-- // Act- const result = await getActiveOrganizationUser();-- // Assert- expect(result).toEqual(mockUser);- expect(queryClient.getQueryData).not.toHaveBeenCalled();- expect(queryClient.fetchQuery).toHaveBeenCalledWith(- expect.objectContaining({- queryKey: ["organizations", "org-1", "me"],- }),- );- });-- it("should return undefined when user fetch fails", async () => {- // Arrange- vi.mocked(getSelectedOrganizationIdFromStore).mockReturnValue("org-1");- vi.mocked(queryClient.fetchQuery).mockRejectedValue(- new Error("Network error"),- );-- // Act- const result = await getActiveOrganizationUser();-- // Assert- expect(result).toBeUndefined();- });- });-- describe("when orgId is null in store (page refresh scenario)", () => {- beforeEach(() => {- vi.mocked(getSelectedOrganizationIdFromStore).mockReturnValue(null);- });-- it("should use currentOrgId from cached organizations data", async () => {- // Arrange- vi.mocked(queryClient.getQueryData).mockReturnValue(- mockOrganizationsData,- );- vi.mocked(queryClient.fetchQuery).mockResolvedValue(mockUser);-- // Act- const result = await getActiveOrganizationUser();-- // Assert- expect(result).toEqual(mockUser);- expect(queryClient.getQueryData).toHaveBeenCalledWith(["organizations"]);- expect(queryClient.fetchQuery).toHaveBeenCalledWith(- expect.objectContaining({- queryKey: ["organizations", "org-1", "me"],- }),- );- });-- it("should fallback to first org when currentOrgId is null", async () => {- // Arrange- const dataWithoutCurrentOrg: OrganizationsQueryData = {- items: [- { id: "first-org" },- { id: "second-org" },- ] as OrganizationsQueryData["items"],- currentOrgId: null,- };- vi.mocked(queryClient.getQueryData).mockReturnValue(- dataWithoutCurrentOrg,- );- vi.mocked(queryClient.fetchQuery).mockResolvedValue(mockUser);-- // Act- const result = await getActiveOrganizationUser();-- // Assert- expect(result).toEqual(mockUser);- expect(queryClient.fetchQuery).toHaveBeenCalledWith(- expect.objectContaining({- queryKey: ["organizations", "first-org", "me"],- }),- );- });-- it("should fetch organizations when not in cache", async () => {- // Arrange- vi.mocked(queryClient.getQueryData).mockReturnValue(undefined);- vi.mocked(queryClient.fetchQuery)- .mockResolvedValueOnce(mockOrganizationsData) // First call: fetch organizations- .mockResolvedValueOnce(mockUser); // Second call: fetch user-- // Act- const result = await getActiveOrganizationUser();-- // Assert- expect(result).toEqual(mockUser);- expect(queryClient.fetchQuery).toHaveBeenCalledTimes(2);- expect(queryClient.fetchQuery).toHaveBeenNthCalledWith(- 1,- expect.objectContaining({- queryKey: ["organizations"],- }),- );- expect(queryClient.fetchQuery).toHaveBeenNthCalledWith(- 2,- expect.objectContaining({- queryKey: ["organizations", "org-1", "me"],- }),- );- });-- it("should return undefined when fetching organizations fails", async () => {- // Arrange- vi.mocked(queryClient.getQueryData).mockReturnValue(undefined);- vi.mocked(queryClient.fetchQuery).mockRejectedValue(- new Error("Failed to fetch organizations"),- );-- // Act- const result = await getActiveOrganizationUser();-- // Assert- expect(result).toBeUndefined();- });-- it("should return undefined when no organizations exist", async () => {- // Arrange- const emptyData: OrganizationsQueryData = {- items: [],- currentOrgId: null,- };- vi.mocked(queryClient.getQueryData).mockReturnValue(emptyData);-- // Act- const result = await getActiveOrganizationUser();-- // Assert- expect(result).toBeUndefined();- // Should not attempt to fetch user since there's no orgId- expect(queryClient.fetchQuery).not.toHaveBeenCalled();- });- });-});diff --git a/__tests__/utils/permission-guard.test.ts b/__tests__/utils/permission-guard.test.tsdeleted file mode 100644index 3409437188..0000000000--- a/__tests__/utils/permission-guard.test.ts+++ /dev/null@@ -1,173 +0,0 @@-import { describe, expect, it, vi, beforeEach, afterEach } from "vitest";-import { redirect } from "react-router";--// Mock dependencies before importing the module under test-vi.mock("react-router", () => ({- redirect: vi.fn((path: string) => ({ type: "redirect", path })),-}));--vi.mock("#/utils/org/permission-checks", () => ({- getActiveOrganizationUser: vi.fn(),-}));--vi.mock("#/api/option-service/option-service.api", () => ({- default: {- getConfig: vi.fn().mockResolvedValue({- app_mode: "saas",- feature_flags: {- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- hide_llm_settings: false,- },- }),- },-}));--const mockConfig = {- app_mode: "saas",- feature_flags: {- hide_users_page: false,- hide_billing_page: false,- hide_integrations_page: false,- hide_llm_settings: false,- },-};--vi.mock("#/query-client-config", () => ({- queryClient: {- getQueryData: vi.fn(() => mockConfig),- setQueryData: vi.fn(),- fetchQuery: vi.fn(() => Promise.resolve(mockConfig)),- },-}));--// Import after mocks are set up-import { createPermissionGuard } from "#/utils/org/permission-guard";-import { getActiveOrganizationUser } from "#/utils/org/permission-checks";--// Helper to create a mock request-const createMockRequest = (pathname: string = "/settings/billing") => ({- request: new Request(`http://localhost${pathname}`),-});--describe("createPermissionGuard", () => {- beforeEach(() => {- vi.clearAllMocks();- });-- afterEach(() => {- vi.resetAllMocks();- });-- describe("permission checking", () => {- it("should redirect when user lacks required permission", async () => {- // Arrange: member lacks view_billing permission- vi.mocked(getActiveOrganizationUser).mockResolvedValue({- org_id: "org-1",- user_id: "user-1",- email: "[email protected]",- role: "member",- llm_api_key: "",- max_iterations: 100,- llm_model: "gpt-4",- llm_base_url: "",- status: "active",- });-- // Act- const guard = createPermissionGuard("view_billing");- await guard(createMockRequest("/settings/billing"));-- // Assert: should redirect to first available path (/settings/user in SaaS mode)- expect(redirect).toHaveBeenCalledWith("/settings/user");- });-- it("should allow access when user has required permission", async () => {- // Arrange: admin has view_billing permission- vi.mocked(getActiveOrganizationUser).mockResolvedValue({- org_id: "org-1",- user_id: "user-1",- email: "[email protected]",- role: "admin",- llm_api_key: "",- max_iterations: 100,- llm_model: "gpt-4",- llm_base_url: "",- status: "active",- });-- // Act- const guard = createPermissionGuard("view_billing");- const result = await guard(createMockRequest("/settings/billing"));-- // Assert: should not redirect, return null- expect(redirect).not.toHaveBeenCalled();- expect(result).toBeNull();- });-- it("should redirect when user is undefined (no org selected)", async () => {- // Arrange: no user (e.g., no organization selected)- vi.mocked(getActiveOrganizationUser).mockResolvedValue(undefined);-- // Act- const guard = createPermissionGuard("view_billing");- await guard(createMockRequest("/settings/billing"));-- // Assert: should redirect to first available path- expect(redirect).toHaveBeenCalledWith("/settings/user");- });-- it("should redirect when user is undefined even for member-level permissions", async () => {- // Arrange: no user β manage_secrets is a member-level permission,- // but undefined user should NOT get member access- vi.mocked(getActiveOrganizationUser).mockResolvedValue(undefined);-- // Act- const guard = createPermissionGuard("manage_secrets");- await guard(createMockRequest("/settings/secrets"));-- // Assert: should redirect, not silently grant member-level access- expect(redirect).toHaveBeenCalledWith("/settings/user");- });- });-- describe("custom redirect path", () => {- it("should redirect to custom path when specified", async () => {- // Arrange: member lacks permission- vi.mocked(getActiveOrganizationUser).mockResolvedValue({- org_id: "org-1",- user_id: "user-1",- email: "[email protected]",- role: "member",- llm_api_key: "",- max_iterations: 100,- llm_model: "gpt-4",- llm_base_url: "",- status: "active",- });-- // Act- const guard = createPermissionGuard("view_billing", "/custom/redirect");- await guard(createMockRequest("/settings/billing"));-- // Assert: should redirect to custom path- expect(redirect).toHaveBeenCalledWith("/custom/redirect");- });- });-- describe("infinite loop prevention", () => {- it("should return null instead of redirecting when fallback path equals current path", async () => {- // Arrange: no user- vi.mocked(getActiveOrganizationUser).mockResolvedValue(undefined);-- // Act: access /settings/user when fallback would also be /settings/user- const guard = createPermissionGuard("view_billing");- const result = await guard(createMockRequest("/settings/user"));-- // Assert: should NOT redirect to avoid infinite loop- expect(redirect).not.toHaveBeenCalled();- expect(result).toBeNull();- });- });-});diff --git a/__tests__/utils/personal-workspace-guard.test.ts b/__tests__/utils/personal-workspace-guard.test.tsdeleted file mode 100644index 1c1d3e035e..0000000000--- a/__tests__/utils/personal-workspace-guard.test.ts+++ /dev/null@@ -1,88 +0,0 @@-import { describe, expect, it, vi, beforeEach } from "vitest";--vi.mock("react-router", () => ({- redirect: vi.fn((path: string) => ({ type: "redirect", path })),-}));--const mockConfig = {- app_mode: "saas" as "saas" | "oss",- feature_flags: {},-};--vi.mock("#/api/option-service/option-service.api", () => ({- default: { getConfig: vi.fn(async () => mockConfig) },-}));--const mockOrganizations = {- items: [- { id: "personal-org", name: "Personal", is_personal: true },- { id: "team-org", name: "Acme", is_personal: false },- ],- currentOrgId: "team-org" as string | null,-};--vi.mock("#/api/organization-service/organization-service.api", () => ({- organizationService: {- getOrganizations: vi.fn(async () => mockOrganizations),- },-}));--let storeOrgId: string | null = null;-vi.mock("#/stores/selected-organization-store", () => ({- getSelectedOrganizationIdFromStore: () => storeOrgId,-}));--vi.mock("#/query-client-config", () => ({- queryClient: {- fetchQuery: vi.fn(async (opts: { queryFn: () => Promise<unknown> }) =>- opts.queryFn(),- ),- },-}));--import { redirect } from "react-router";-import { requireOrgDefaultsRedirect as requirePersonalWorkspaceLoader } from "#/utils/org/saas-redirect-to-org-defaults-guard";--const createRequest = (pathname: string) => ({- request: new Request(`http://localhost${pathname}`),-});--describe("requirePersonalWorkspaceLoader", () => {- beforeEach(() => {- vi.clearAllMocks();- mockConfig.app_mode = "saas";- mockOrganizations.currentOrgId = "team-org";- storeOrgId = null;- });-- it("redirects to the org-defaults equivalent when the active org is a team workspace", async () => {- storeOrgId = "team-org";- const guard = requirePersonalWorkspaceLoader("/settings/org-defaults");-- const result = await guard(createRequest("/settings"));-- expect(redirect).toHaveBeenCalledWith("/settings/org-defaults");- expect(result).toEqual({ type: "redirect", path: "/settings/org-defaults" });- });-- it("redirects to the org-defaults equivalent even when the active org is the personal workspace", async () => {- storeOrgId = "personal-org";- const guard = requirePersonalWorkspaceLoader("/settings/org-defaults");-- const result = await guard(createRequest("/settings"));-- expect(redirect).toHaveBeenCalledWith("/settings/org-defaults");- expect(result).toEqual({ type: "redirect", path: "/settings/org-defaults" });- });-- it("skips the guard entirely in OSS mode", async () => {- mockConfig.app_mode = "oss";- storeOrgId = "team-org";- const guard = requirePersonalWorkspaceLoader("/settings/org-defaults");-- const result = await guard(createRequest("/settings"));-- expect(result).toBeNull();- expect(redirect).not.toHaveBeenCalled();- });-});diff --git a/__tests__/utils/should-start-mock-worker.test.ts b/__tests__/utils/should-start-mock-worker.test.tsnew file mode 100644index 0000000000..ac005e41ed--- /dev/null+++ b/__tests__/utils/should-start-mock-worker.test.ts@@ -0,0 +1,17 @@+import { describe, expect, it } from "vitest";+import { shouldStartMockWorker } from "#/mocks/should-start-mock-worker";++describe("shouldStartMockWorker", () => {+ it("starts the worker whenever mock API mode is enabled in the browser", () => {+ expect(shouldStartMockWorker({ mockApi: "true", hasWindow: true })).toBe(true);+ });++ it("does not start the worker when mock API mode is disabled", () => {+ expect(shouldStartMockWorker({ mockApi: "false", hasWindow: true })).toBe(false);+ expect(shouldStartMockWorker({ mockApi: undefined, hasWindow: true })).toBe(false);+ });++ it("does not start the worker during server-side rendering", () => {+ expect(shouldStartMockWorker({ mockApi: "true", hasWindow: false })).toBe(false);+ });+});diff --git a/package.json b/package.jsonindex e35b0fe883..59d748bbc3 100644--- a/package.json+++ b/package.json@@ -54,6 +54,7 @@"dev:mock": "npm run make-i18n && cross-env VITE_MOCK_API=true VITE_MOCK_SAAS=false react-router dev","dev:mock:saas": "npm run make-i18n && cross-env VITE_MOCK_API=true VITE_MOCK_SAAS=true react-router dev","build": "npm run make-i18n && react-router build",+ "build:mock": "npm run make-i18n && cross-env VITE_MOCK_API=true VITE_MOCK_SAAS=false react-router build","start": "npx sirv-cli build/ --single","test": "vitest run","test:e2e": "playwright test",diff --git a/src/api/auth-service/auth-service.api.ts b/src/api/auth-service/auth-service.api.tsdeleted file mode 100644index 123ef6a8fe..0000000000--- a/src/api/auth-service/auth-service.api.ts+++ /dev/null@@ -1,52 +0,0 @@-import { openHands } from "../open-hands-axios";-import { AuthenticateResponse, GitHubAccessTokenResponse } from "./auth.types";-import { WebClientConfig } from "../option-service/option.types";--/**- * Authentication service for handling all authentication-related API calls- */-class AuthService {- /**- * Authenticate with GitHub token- * @param appMode The application mode (saas or oss)- * @returns Response with authentication status and user info if successful- */- static async authenticate(- appMode: WebClientConfig["app_mode"],- ): Promise<boolean> {- if (appMode === "oss") return true;-- // Just make the request, if it succeeds (no exception thrown), return true- await openHands.post<AuthenticateResponse>("/api/authenticate");- return true;- }-- /**- * Get GitHub access token from Keycloak callback- * @param code Code provided by GitHub- * @returns GitHub access token- */- static async getGitHubAccessToken(- code: string,- ): Promise<GitHubAccessTokenResponse> {- const { data } = await openHands.post<GitHubAccessTokenResponse>(- "/api/keycloak/callback",- {- code,- },- );- return data;- }-- /**- * Logout user from the application- * @param appMode The application mode (saas or oss)- */- static async logout(appMode: WebClientConfig["app_mode"]): Promise<void> {- const endpoint =- appMode === "saas" ? "/api/logout" : "/api/unset-provider-tokens";- await openHands.post(endpoint);- }-}--export default AuthService;diff --git a/src/api/auth-service/auth.types.ts b/src/api/auth-service/auth.types.tsdeleted file mode 100644index d69bcb708e..0000000000--- a/src/api/auth-service/auth.types.ts+++ /dev/null@@ -1,8 +0,0 @@-export interface AuthenticateResponse {- message?: string;- error?: string;-}--export interface GitHubAccessTokenResponse {- access_token: string;-}diff --git a/src/api/billing-service/billing-service.api.ts b/src/api/billing-service/billing-service.api.tsdeleted file mode 100644index 7bc4fe63a7..0000000000--- a/src/api/billing-service/billing-service.api.ts+++ /dev/null@@ -1,45 +0,0 @@-import { openHands } from "../open-hands-axios";--/**- * Billing Service API - Handles all billing-related API endpoints- */-class BillingService {- /**- * Create a Stripe checkout session for credit purchase- * @param amount The amount to charge in dollars- * @returns The redirect URL for the checkout session- */- static async createCheckoutSession(amount: number): Promise<string> {- const { data } = await openHands.post(- "/api/billing/create-checkout-session",- {- amount,- },- );- return data.redirect_url;- }-- /**- * Create a customer setup session for payment method management- * @returns The redirect URL for the customer setup session- */- static async createBillingSessionResponse(): Promise<string> {- const { data } = await openHands.post(- "/api/billing/create-customer-setup-session",- );- return data.redirect_url;- }-- /**- * Get the user's current credit balance- * @returns The user's credit balance as a string- */- static async getBalance(): Promise<string> {- const { data } = await openHands.get<{ credits: string }>(- "/api/billing/credits",- );- return data.credits;- }-}--export default BillingService;diff --git a/src/api/email-service/email-service.api.ts b/src/api/email-service/email-service.api.tsdeleted file mode 100644index d87b3c392f..0000000000--- a/src/api/email-service/email-service.api.ts+++ /dev/null@@ -1,35 +0,0 @@-import { openHands } from "../open-hands-axios";-import {- ResendEmailVerificationParams,- ResendEmailVerificationResponse,-} from "./email.types";--/**- * Email Service API - Handles all email-related API endpoints- */-export const emailService = {- /**- * Resend email verification to the user's registered email address- * @param userId - Optional user ID to send verification email for- * @param isAuthFlow - Whether this is part of the authentication flow- * @returns The response message indicating the email was sent- */- resendEmailVerification: async ({- userId,- isAuthFlow,- }: ResendEmailVerificationParams): Promise<ResendEmailVerificationResponse> => {- const body: { user_id?: string; is_auth_flow?: boolean } = {};- if (userId) {- body.user_id = userId;- }- if (isAuthFlow !== undefined) {- body.is_auth_flow = isAuthFlow;- }- const { data } = await openHands.put<ResendEmailVerificationResponse>(- "/api/email/resend",- body,- { withCredentials: true },- );- return data;- },-};diff --git a/src/api/email-service/email.types.ts b/src/api/email-service/email.types.tsdeleted file mode 100644index e56dbb5ff4..0000000000--- a/src/api/email-service/email.types.ts+++ /dev/null@@ -1,8 +0,0 @@-export interface ResendEmailVerificationParams {- userId?: string | null;- isAuthFlow?: boolean;-}--export interface ResendEmailVerificationResponse {- message: string;-}diff --git a/src/api/integration-service/integration-service.api.ts b/src/api/integration-service/integration-service.api.tsdeleted file mode 100644index 38e97ffaf8..0000000000--- a/src/api/integration-service/integration-service.api.ts+++ /dev/null@@ -1,38 +0,0 @@-import { openHands } from "../open-hands-axios";-import {- GitLabResourcesResponse,- ReinstallWebhookRequest,- ResourceIdentifier,- ResourceInstallationResult,-} from "./integration-service.types";--export const integrationService = {- /**- * Get all GitLab projects and groups where the user has admin access- * @returns Promise with list of resources and their webhook status- */- getGitLabResources: async (): Promise<GitLabResourcesResponse> => {- const { data } = await openHands.get<GitLabResourcesResponse>(- "/integration/gitlab/resources",- );- return data;- },-- /**- * Reinstall webhook on a specific GitLab resource- * @param resource - Resource to reinstall webhook on- * @returns Promise with installation result- */- reinstallGitLabWebhook: async ({- resource,- }: {- resource: ResourceIdentifier;- }): Promise<ResourceInstallationResult> => {- const requestBody: ReinstallWebhookRequest = { resource };- const { data } = await openHands.post<ResourceInstallationResult>(- "/integration/gitlab/reinstall-webhook",- requestBody,- );- return data;- },-};diff --git a/src/api/integration-service/integration-service.types.ts b/src/api/integration-service/integration-service.types.tsdeleted file mode 100644index 7d8c6ffde0..0000000000--- a/src/api/integration-service/integration-service.types.ts+++ /dev/null@@ -1,29 +0,0 @@-export interface GitLabResource {- id: string;- name: string;- full_path: string;- type: "project" | "group";- webhook_installed: boolean;- webhook_uuid: string | null;- last_synced: string | null;-}--export interface GitLabResourcesResponse {- resources: GitLabResource[];-}--export interface ResourceIdentifier {- type: "project" | "group";- id: string;-}--export interface ReinstallWebhookRequest {- resource: ResourceIdentifier;-}--export interface ResourceInstallationResult {- resource_id: string;- resource_type: string;- success: boolean;- error: string | null;-}diff --git a/src/api/option-service/option-service.api.ts b/src/api/option-service/option-service.api.tsindex f381c84753..567a402dd4 100644--- a/src/api/option-service/option-service.api.ts+++ b/src/api/option-service/option-service.api.ts@@ -44,7 +44,7 @@ class OptionService {enable_linear: false,hide_users_page: true,hide_billing_page: true,- hide_integrations_page: true,+ hide_integrations_page: false,deployment_mode: "self_hosted",},providers_configured: [],diff --git a/src/api/organization-service/organization-service.api.ts b/src/api/organization-service/organization-service.api.tsdeleted file mode 100644index fe92233a4c..0000000000--- a/src/api/organization-service/organization-service.api.ts+++ /dev/null@@ -1,227 +0,0 @@-import {- GitOrgClaim,- Organization,- OrganizationMember,- OrganizationMembersPage,- UpdateOrganizationMemberParams,-} from "#/types/org";-import { Settings } from "#/types/settings";-import { openHands } from "../open-hands-axios";--type OrganizationSettingsResponse = Pick<- Settings,- | "agent_settings"- | "conversation_settings"- | "search_api_key"- | "llm_api_key_set"->;--export const organizationService = {- getMe: async ({ orgId }: { orgId: string }) => {- const { data } = await openHands.get<OrganizationMember>(- `/api/organizations/${orgId}/me`,- );-- return data;- },-- getOrganizations: async () => {- const { data } = await openHands.get<{- items: Organization[];- current_org_id: string | null;- }>("/api/organizations");- return {- items: data?.items || [],- currentOrgId: data?.current_org_id || null,- };- },-- updateOrganization: async ({- orgId,- name,- }: {- orgId: string;- name: string;- }) => {- const { data } = await openHands.patch<Organization>(- `/api/organizations/${orgId}`,- { name },- );- return data;- },-- deleteOrganization: async ({ orgId }: { orgId: string }) => {- await openHands.delete(`/api/organizations/${orgId}`);- },-- getOrganizationMembers: async ({- orgId,- page = 1,- limit = 10,- email,- }: {- orgId: string;- page?: number;- limit?: number;- email?: string;- }) => {- const params = new URLSearchParams();-- // Calculate offset from page number (page_id is offset-based)- const offset = (page - 1) * limit;- params.set("page_id", String(offset));- params.set("limit", String(limit));-- if (email) {- params.set("email", email);- }-- const { data } = await openHands.get<OrganizationMembersPage>(- `/api/organizations/${orgId}/members?${params.toString()}`,- );-- return data;- },-- getOrganizationMembersCount: async ({- orgId,- email,- }: {- orgId: string;- email?: string;- }) => {- const params = new URLSearchParams();-- if (email) {- params.set("email", email);- }-- const { data } = await openHands.get<number>(- `/api/organizations/${orgId}/members/count?${params.toString()}`,- );-- return data;- },-- getOrganizationPaymentInfo: async ({ orgId }: { orgId: string }) => {- const { data } = await openHands.get<{- cardNumber: string;- }>(`/api/organizations/${orgId}/payment`);- return data;- },-- updateMember: async ({- orgId,- userId,- ...updateData- }: {- orgId: string;- userId: string;- } & UpdateOrganizationMemberParams) => {- const { data } = await openHands.patch(- `/api/organizations/${orgId}/members/${userId}`,- updateData,- );-- return data;- },-- removeMember: async ({- orgId,- userId,- }: {- orgId: string;- userId: string;- }) => {- await openHands.delete(`/api/organizations/${orgId}/members/${userId}`);- },-- inviteMembers: async ({- orgId,- emails,- }: {- orgId: string;- emails: string[];- }) => {- const { data } = await openHands.post<OrganizationMember[]>(- `/api/organizations/${orgId}/members/invite`,- {- emails,- },- );-- return data;- },-- switchOrganization: async ({ orgId }: { orgId: string }) => {- const { data } = await openHands.post<Organization>(- `/api/organizations/${orgId}/switch`,- );- return data;- },-- acceptInvitation: async ({ token }: { token: string }) => {- const { data } = await openHands.post<{- success: boolean;- org_id: string;- org_name: string;- role: string;- }>("/api/organizations/members/invite/accept", { token });-- return data;- },-- getOrganizationSettings: async ({ orgId }: { orgId: string }) => {- const { data } = await openHands.get<OrganizationSettingsResponse>(- `/api/organizations/${orgId}/settings`,- );- return data;- },-- saveOrganizationSettings: async ({- orgId,- settings,- }: {- orgId: string;- settings: Partial<Settings> & Record<string, unknown>;- }) => {- const { data } = await openHands.patch<OrganizationSettingsResponse>(- `/api/organizations/${orgId}/settings`,- settings,- );- return data;- },-- getGitClaims: async ({ orgId }: { orgId: string }) => {- const { data } = await openHands.get<GitOrgClaim[]>(- `/api/organizations/${orgId}/git-claims`,- );- return data;- },-- claimGitOrg: async ({- orgId,- provider,- gitOrganization,- }: {- orgId: string;- provider: string;- gitOrganization: string;- }) => {- const { data } = await openHands.post<GitOrgClaim>(- `/api/organizations/${orgId}/git-claims`,- { provider, git_organization: gitOrganization },- );- return data;- },-- disconnectGitOrg: async ({- orgId,- claimId,- }: {- orgId: string;- claimId: string;- }) => {- await openHands.delete(`/api/organizations/${orgId}/git-claims/${claimId}`);- },-};diff --git a/src/components/features/auth/login-content.tsx b/src/components/features/auth/login-content.tsxdeleted file mode 100644index 73d0859751..0000000000--- a/src/components/features/auth/login-content.tsx+++ /dev/null@@ -1,313 +0,0 @@-import { useTranslation } from "react-i18next";-import { FaUserShield } from "react-icons/fa";-import { I18nKey } from "#/i18n/declaration";-import OpenHandsLogoWhite from "#/assets/branding/openhands-logo-white.svg?react";-import GitHubLogo from "#/assets/branding/github-logo.svg?react";-import GitLabLogo from "#/assets/branding/gitlab-logo.svg?react";-import BitbucketLogo from "#/assets/branding/bitbucket-logo.svg?react";-import { useAuthUrl } from "#/hooks/use-auth-url";-import { WebClientConfig } from "#/api/option-service/option.types";-import { Provider } from "#/types/settings";-import { useTracking } from "#/hooks/use-tracking";-import { TermsAndPrivacyNotice } from "#/components/shared/terms-and-privacy-notice";-import { useRecaptcha } from "#/hooks/use-recaptcha";-import { useConfig } from "#/hooks/query/use-config";-import { displayErrorToast } from "#/utils/custom-toast-handlers";-import { cn } from "#/utils/utils";-import { LoginCTA } from "./login-cta";-import { useAppMode } from "#/hooks/use-app-mode";--export interface LoginContentProps {- githubAuthUrl: string | null;- appMode?: WebClientConfig["app_mode"] | null;- authUrl?: WebClientConfig["auth_url"];- providersConfigured?: Provider[];- emailVerified?: boolean;- hasDuplicatedEmail?: boolean;- recaptchaBlocked?: boolean;- hasInvitation?: boolean;- buildOAuthStateData?: (- baseStateData: Record<string, string>,- ) => Record<string, string>;-}--export function LoginContent({- githubAuthUrl,- appMode,- authUrl,- providersConfigured,- emailVerified = false,- hasDuplicatedEmail = false,- recaptchaBlocked = false,- hasInvitation = false,- buildOAuthStateData,-}: LoginContentProps) {- const { t } = useTranslation();- const { trackLoginButtonClick } = useTracking();- const { data: config } = useConfig();- const { isEnterpriseCloud } = useAppMode();-- // reCAPTCHA - only need token generation, verification happens at backend callback- const { isReady: recaptchaReady, executeRecaptcha } = useRecaptcha({- siteKey: config?.recaptcha_site_key ?? undefined,- });-- const gitlabAuthUrl = useAuthUrl({- appMode: appMode || null,- identityProvider: "gitlab",- authUrl,- });-- const bitbucketAuthUrl = useAuthUrl({- appMode: appMode || null,- identityProvider: "bitbucket",- authUrl,- });-- const bitbucketDataCenterAuthUrl = useAuthUrl({- appMode: appMode || null,- identityProvider: "bitbucket_data_center",- authUrl,- });-- const enterpriseSsoAuthUrl = useAuthUrl({- appMode: appMode || null,- identityProvider: "enterprise_sso",- authUrl,- });-- const handleAuthRedirect = async (- redirectUrl: string,- provider: Provider,- ) => {- trackLoginButtonClick({ provider });-- const url = new URL(redirectUrl);- const currentState =- url.searchParams.get("state") || window.location.origin;-- // Build base state data- let stateData: Record<string, string> = {- redirect_url: currentState,- };-- // Add invitation token if present- if (buildOAuthStateData) {- stateData = buildOAuthStateData(stateData);- }-- // If reCAPTCHA is configured, add token to state- if (config?.recaptcha_site_key && recaptchaReady) {- try {- const token = await executeRecaptcha("LOGIN");- if (token) {- stateData.recaptcha_token = token;- }- } catch (err) {- displayErrorToast(t(I18nKey.AUTH$RECAPTCHA_BLOCKED));- return;- }- }-- // Encode state and redirect- url.searchParams.set("state", btoa(JSON.stringify(stateData)));- window.location.href = url.toString();- };-- const handleGitHubAuth = () => {- if (githubAuthUrl) {- handleAuthRedirect(githubAuthUrl, "github");- }- };-- const handleGitLabAuth = () => {- if (gitlabAuthUrl) {- handleAuthRedirect(gitlabAuthUrl, "gitlab");- }- };-- const handleBitbucketAuth = () => {- if (bitbucketAuthUrl) {- handleAuthRedirect(bitbucketAuthUrl, "bitbucket");- }- };-- const handleBitbucketDataCenterAuth = () => {- if (bitbucketDataCenterAuthUrl) {- handleAuthRedirect(bitbucketDataCenterAuthUrl, "bitbucket_data_center");- }- };-- const handleEnterpriseSsoAuth = () => {- if (enterpriseSsoAuthUrl) {- handleAuthRedirect(enterpriseSsoAuthUrl, "enterprise_sso");- }- };-- const showGithub =- providersConfigured &&- providersConfigured.length > 0 &&- providersConfigured.includes("github");- const showGitlab =- providersConfigured &&- providersConfigured.length > 0 &&- providersConfigured.includes("gitlab");- const showBitbucket =- providersConfigured &&- providersConfigured.length > 0 &&- providersConfigured.includes("bitbucket");- const showBitbucketDataCenter =- providersConfigured &&- providersConfigured.length > 0 &&- providersConfigured.includes("bitbucket_data_center");- const showEnterpriseSso =- providersConfigured &&- providersConfigured.length > 0 &&- providersConfigured.includes("enterprise_sso");-- const noProvidersConfigured =- !providersConfigured || providersConfigured.length === 0;-- const buttonBaseClasses =- "w-[301.5px] h-10 rounded p-2 flex items-center justify-center cursor-pointer transition-opacity hover:opacity-90 disabled:opacity-50 disabled:cursor-not-allowed";- const buttonLabelClasses = "text-sm font-medium leading-5 px-1";-- const shouldShownHelperText =- emailVerified ||- hasDuplicatedEmail ||- recaptchaBlocked ||- hasInvitation ||- showBitbucket;-- return (- <div- className={cn(- "flex flex-col md:flex-row items-center md:items-stretch gap-6 h-full",- )}- >- <div- className={cn("flex flex-col items-center w-full gap-12.5")}- data-testid="login-content"- >- <div>- <OpenHandsLogoWhite width={106} height={72} />- </div>-- <h1 className="text-[39px] leading-5 font-medium text-white text-center">- {t(I18nKey.AUTH$LETS_GET_STARTED)}- </h1>-- {shouldShownHelperText && (- <div className="flex flex-col items-center gap-3">- {emailVerified && (- <p className="text-sm text-muted-foreground text-center">- {t(I18nKey.AUTH$EMAIL_VERIFIED_PLEASE_LOGIN)}- </p>- )}- {hasDuplicatedEmail && (- <p className="text-sm text-danger text-center">- {t(I18nKey.AUTH$DUPLICATE_EMAIL_ERROR)}- </p>- )}- {recaptchaBlocked && (- <p className="text-sm text-danger text-center max-w-125">- {t(I18nKey.AUTH$RECAPTCHA_BLOCKED)}- </p>- )}- {hasInvitation && (- <p className="text-sm text-muted-foreground text-center">- {t(I18nKey.AUTH$INVITATION_PENDING)}- </p>- )}- {showBitbucket && (- <p className="text-sm text-white text-center max-w-125">- {t(I18nKey.AUTH$BITBUCKET_SIGNUP_DISABLED)}- </p>- )}- </div>- )}-- <div className="flex flex-col items-center gap-3">- {noProvidersConfigured ? (- <div className="text-center p-4 text-muted-foreground">- {t(I18nKey.AUTH$NO_PROVIDERS_CONFIGURED)}- </div>- ) : (- <>- {showGithub && (- <button- type="button"- onClick={handleGitHubAuth}- className={`${buttonBaseClasses} bg-[#9E28B0] text-white`}- >- <GitHubLogo width={14} height={14} className="shrink-0" />- <span className={buttonLabelClasses}>- {t(I18nKey.GITHUB$CONNECT_TO_GITHUB)}- </span>- </button>- )}-- {showGitlab && (- <button- type="button"- onClick={handleGitLabAuth}- className={`${buttonBaseClasses} bg-[#FC6B0E] text-white`}- >- <GitLabLogo width={14} height={14} className="shrink-0" />- <span className={buttonLabelClasses}>- {t(I18nKey.GITLAB$CONNECT_TO_GITLAB)}- </span>- </button>- )}-- {showBitbucket && (- <button- type="button"- onClick={handleBitbucketAuth}- className={`${buttonBaseClasses} bg-[#2684FF] text-white`}- >- <BitbucketLogo width={14} height={14} className="shrink-0" />- <span className={buttonLabelClasses}>- {t(I18nKey.BITBUCKET$CONNECT_TO_BITBUCKET)}- </span>- </button>- )}-- {showBitbucketDataCenter && (- <button- type="button"- onClick={handleBitbucketDataCenterAuth}- className={`${buttonBaseClasses} bg-[#2684FF] text-white`}- >- <BitbucketLogo width={14} height={14} className="shrink-0" />- <span className={buttonLabelClasses}>- {t(- I18nKey.BITBUCKET_DATA_CENTER$CONNECT_TO_BITBUCKET_DATA_CENTER,- )}- </span>- </button>- )}-- {showEnterpriseSso && (- <button- type="button"- onClick={handleEnterpriseSsoAuth}- className={`${buttonBaseClasses} bg-[#374151] text-white`}- >- <FaUserShield size={14} className="shrink-0" />- <span className={buttonLabelClasses}>- {t(I18nKey.ENTERPRISE_SSO$CONNECT_TO_ENTERPRISE_SSO)}- </span>- </button>- )}- </>- )}- </div>-- <TermsAndPrivacyNotice className="max-w-[320px] text-[#A3A3A3]" />- </div>-- {isEnterpriseCloud && <LoginCTA />}- </div>- );-}diff --git a/src/components/features/auth/login-cta.tsx b/src/components/features/auth/login-cta.tsxdeleted file mode 100644index dd2d71b293..0000000000--- a/src/components/features/auth/login-cta.tsx+++ /dev/null@@ -1,96 +0,0 @@-import { useTranslation } from "react-i18next";-import { Link } from "react-router";-import { Card } from "#/ui/card";-import { CardTitle } from "#/ui/card-title";-import { Typography } from "#/ui/typography";-import { I18nKey } from "#/i18n/declaration";-import { cn } from "#/utils/utils";-import StackedIcon from "#/icons/stacked.svg?react";-import { useTracking } from "#/hooks/use-tracking";--type LoginCTAProps = {- className?: string;- source?: "login_page" | "device_verify";-};--const ENTERPRISE_URL = "https://openhands.dev/enterprise";-const INFORMATION_REQUEST_PATH = "/information-request";--export function LoginCTA({- className,- source = "login_page",-}: LoginCTAProps = {}) {- const { t } = useTranslation();- const { trackSaasSelfhostedInquiry } = useTracking();- const isDeviceVerifySource = source === "device_verify";- const learnMoreButtonClassName = cn(- "inline-flex items-center justify-center",- "h-10 px-4 rounded",- "bg-[#050505] border border-[#242424]",- "text-white hover:bg-white hover:text-black",- "font-semibold text-sm",- "transition-colors",- );-- const handleLearnMoreClick = () => {- trackSaasSelfhostedInquiry({ location: source });- };-- return (- <Card- testId="login-cta"- theme="dark"- className={cn(- "w-full max-w-80 h-auto flex-col",- "cta-card-gradient",- className,- )}- >- <div className={cn("flex h-full flex-col gap-[11px] p-6")}>- <div className={cn("size-10")}>- <StackedIcon width={40} height={40} />- </div>-- <CardTitle>{t(I18nKey.CTA$ENTERPRISE)}</CardTitle>-- <Typography.Text className="text-[#8C8C8C] font-inter font-normal text-sm leading-5">- {t(I18nKey.CTA$ENTERPRISE_DEPLOY)}- </Typography.Text>-- <ul- className={cn(- "text-[#8C8C8C] font-inter font-normal text-sm leading-5 list-disc list-inside flex flex-col gap-1",- )}- >- <li>{t(I18nKey.CTA$FEATURE_ON_PREMISES)}</li>- <li>{t(I18nKey.CTA$FEATURE_DATA_CONTROL)}</li>- <li>{t(I18nKey.CTA$FEATURE_COMPLIANCE)}</li>- <li>{t(I18nKey.CTA$FEATURE_SUPPORT)}</li>- </ul>-- <div className={cn("mt-auto h-10 flex justify-start")}>- {/* Use <a> for external destination; react-router <Link> is only for internal app routes. */}- {isDeviceVerifySource ? (- <a- href={ENTERPRISE_URL}- target="_blank"- rel="noopener noreferrer"- onClick={handleLearnMoreClick}- className={learnMoreButtonClassName}- >- {t(I18nKey.CTA$LEARN_MORE)}- </a>- ) : (- <Link- to={INFORMATION_REQUEST_PATH}- onClick={handleLearnMoreClick}- className={learnMoreButtonClassName}- >- {t(I18nKey.CTA$LEARN_MORE)}- </Link>- )}- </div>- </div>- </Card>- );-}diff --git a/src/components/features/context-menu/context-menu-cta.tsx b/src/components/features/context-menu/context-menu-cta.tsxdeleted file mode 100644index 4117135326..0000000000--- a/src/components/features/context-menu/context-menu-cta.tsx+++ /dev/null@@ -1,65 +0,0 @@-import { useTranslation } from "react-i18next";-import { cn } from "#/utils/utils";-import { Card } from "#/ui/card";-import { CardTitle } from "#/ui/card-title";-import { Typography } from "#/ui/typography";-import { I18nKey } from "#/i18n/declaration";-import StackedIcon from "#/icons/stacked.svg?react";-import { useTracking } from "#/hooks/use-tracking";--export function ContextMenuCTA() {- const { t } = useTranslation();- const { trackSaasSelfhostedInquiry } = useTracking();-- const handleLearnMoreClick = () => {- trackSaasSelfhostedInquiry({ location: "context_menu" });- };-- return (- <Card- testId="context-menu-cta"- theme="dark"- className={cn(- "w-[286px] min-h-[200px] rounded-[6px]",- "flex-col justify-end",- "cta-card-gradient",- )}- >- <div- data-testid="context-menu-cta-content"- className={cn("flex flex-col gap-[11px] p-[25px]")}- >- <StackedIcon width={40} height={40} />-- <CardTitle>{t(I18nKey.CTA$ENTERPRISE_TITLE)}</CardTitle>-- <Typography.Text- className={cn(- "text-[#8C8C8C] font-inter font-normal",- "text-[14px] leading-[20px]",- )}- >- {t(I18nKey.CTA$ENTERPRISE_DESCRIPTION)}- </Typography.Text>-- <div className="flex mt-auto">- <a- href="https://openhands.dev/enterprise/"- target="_blank"- rel="noopener noreferrer"- onClick={handleLearnMoreClick}- className={cn(- "inline-flex items-center justify-center",- "h-[40px] px-4 rounded-[4px]",- "bg-[#050505] border border-[#242424]",- "text-white hover:bg-white hover:text-black",- "font-semibold text-sm",- )}- >- {t(I18nKey.CTA$LEARN_MORE)}- </a>- </div>- </div>- </Card>- );-}diff --git a/src/components/features/guards/email-verification-guard.tsx b/src/components/features/guards/email-verification-guard.tsxdeleted file mode 100644index 3fbb774842..0000000000--- a/src/components/features/guards/email-verification-guard.tsx+++ /dev/null@@ -1,32 +0,0 @@-import React from "react";-import { useLocation, useNavigate } from "react-router";-import { useSettings } from "#/hooks/query/use-settings";--/**- * A component that restricts access to routes based on email verification status.- * If EMAIL_VERIFIED is false, only allows access to the /settings/user page.- */-export function EmailVerificationGuard({- children,-}: {- children: React.ReactNode;-}) {- const { data: settings, isLoading } = useSettings();- const navigate = useNavigate();- const { pathname } = useLocation();-- React.useEffect(() => {- // If settings are still loading, don't do anything yet- if (isLoading) return;-- // If EMAIL_VERIFIED is explicitly false (not undefined or null)- if (settings?.email_verified === false) {- // Allow access to /settings/user but redirect from any other page- if (pathname !== "/settings/user") {- navigate("/settings/user", { replace: true });- }- }- }, [settings?.email_verified, pathname, navigate, isLoading]);-- return children;-}diff --git a/src/components/features/invitations/invitation-accept-modal.tsx b/src/components/features/invitations/invitation-accept-modal.tsxdeleted file mode 100644index d0e17dad06..0000000000--- a/src/components/features/invitations/invitation-accept-modal.tsx+++ /dev/null@@ -1,118 +0,0 @@-import { AxiosError } from "axios";-import { useTranslation } from "react-i18next";-import { I18nKey } from "#/i18n/declaration";-import { ModalBackdrop } from "#/components/shared/modals/modal-backdrop";-import { BrandButton } from "#/components/features/settings/brand-button";-import { LoadingSpinner } from "#/components/shared/loading-spinner";-import {- useAcceptInvitation,- getInvitationErrorCode,-} from "#/hooks/mutation/use-accept-invitation";-import {- displayErrorToast,- displaySuccessToast,-} from "#/utils/custom-toast-handlers";--interface InvitationAcceptModalProps {- token: string;- onClose: () => void;- onSuccess: (payload: {- orgId: string;- orgName: string;- isPersonal: boolean;- }) => void;-}--export function InvitationAcceptModal({- token,- onClose,- onSuccess,-}: InvitationAcceptModalProps) {- const { t } = useTranslation();- const { mutate: acceptInvitation, isPending } = useAcceptInvitation();-- const getErrorMessage = (errorCode: string | null): string => {- switch (errorCode) {- case "invitation_expired":- return t(I18nKey.ORG$INVITATION_EXPIRED);- case "invitation_invalid":- return t(I18nKey.ORG$INVITATION_INVALID);- case "already_member":- return t(I18nKey.ORG$ALREADY_MEMBER);- case "email_mismatch":- return t(I18nKey.ORG$INVITATION_EMAIL_MISMATCH);- default:- return t(I18nKey.ORG$INVITATION_ACCEPT_ERROR);- }- };-- const handleAccept = () => {- acceptInvitation(- { token },- {- onSuccess: (data) => {- displaySuccessToast(- t(I18nKey.ORG$INVITATION_ACCEPTED_SUCCESS, {- orgName: data.org_name,- }),- );- onSuccess({- orgId: data.org_id,- orgName: data.org_name,- isPersonal: false,- });- },- onError: (error) => {- const errorCode = getInvitationErrorCode(- error as AxiosError<{ detail: string }>,- );- displayErrorToast(getErrorMessage(errorCode));- onClose();- },- },- );- };-- return (- <ModalBackdrop onClose={onClose} aria-label="Accept invitation">- <div- data-testid="invitation-accept-modal"- className="bg-base-secondary p-6 rounded-xl flex flex-col gap-4 border border-tertiary"- style={{ width: "500px" }}- >- <h3 className="text-xl font-bold">- {t(I18nKey.ORG$INVITATION_ACCEPT_TITLE)}- </h3>- <p className="text-sm text-gray-300">- {t(I18nKey.ORG$INVITATION_ACCEPT_DESCRIPTION)}- </p>- <div className="w-full flex gap-2 mt-2">- <BrandButton- testId="accept-invitation-button"- type="button"- variant="primary"- className="grow flex items-center justify-center"- onClick={handleAccept}- isDisabled={isPending}- >- {isPending ? (- <LoadingSpinner size="small" />- ) : (- t(I18nKey.BUTTON$CONFIRM)- )}- </BrandButton>- <BrandButton- testId="cancel-invitation-button"- type="button"- variant="secondary"- className="grow"- onClick={onClose}- isDisabled={isPending}- >- {t(I18nKey.BUTTON$CANCEL)}- </BrandButton>- </div>- </div>- </ModalBackdrop>- );-}diff --git a/src/components/features/onboarding/enterprise-card.tsx b/src/components/features/onboarding/enterprise-card.tsxdeleted file mode 100644index e4dce5fa85..0000000000--- a/src/components/features/onboarding/enterprise-card.tsx+++ /dev/null@@ -1,54 +0,0 @@-import { Link } from "react-router";-import { Card } from "#/ui/card";-import { Typography } from "#/ui/typography";-import { cn } from "#/utils/utils";-import { FeatureList } from "./feature-list";--interface EnterpriseCardProps {- icon: React.ReactNode;- title: string;- description: string;- features: string[];- onLearnMore: () => void;- learnMoreLabel: string;-}--export function EnterpriseCard({- icon,- title,- description,- features,- onLearnMore,- learnMoreLabel,-}: EnterpriseCardProps) {- return (- <Card- theme="dark"- hover="elevated"- className={cn(- "w-full md:w-[438px] md:min-h-[371.5px] flex-col p-6 gap-4",- )}- >- <div className={cn("w-10 h-10")}>{icon}</div>- <Typography.H3 className={cn("text-lg font-semibold text-white")}>- {title}- </Typography.H3>- <Typography.Text className={cn("text-[#8C8C8C]")}>- {description}- </Typography.Text>- <FeatureList features={features} />- <Link- to="/information-request"- onClick={onLearnMore}- aria-label={`${learnMoreLabel} ${title}`}- className={cn(- "mt-2 w-fit px-6 py-2.5 text-sm rounded-sm",- "bg-[#050505] text-white border border-[#242424]",- "hover:bg-white hover:text-black transition-colors",- )}- >- {learnMoreLabel}- </Link>- </Card>- );-}diff --git a/src/components/features/onboarding/feature-list.tsx b/src/components/features/onboarding/feature-list.tsxdeleted file mode 100644index 3327fe7efc..0000000000--- a/src/components/features/onboarding/feature-list.tsx+++ /dev/null@@ -1,20 +0,0 @@-import { Typography } from "#/ui/typography";--interface FeatureListProps {- features: string[];-}--export function FeatureList({ features }: FeatureListProps) {- return (- <ul className="flex flex-col gap-1">- {features.map((feature, index) => (- <li key={`feature-${index}`} className="flex items-center gap-2">- <Typography.Text className="text-[#8C8C8C]">β’</Typography.Text>- <Typography.Text className="text-[#8C8C8C]">- {feature}- </Typography.Text>- </li>- ))}- </ul>- );-}diff --git a/src/components/features/onboarding/form-input.tsx b/src/components/features/onboarding/form-input.tsxdeleted file mode 100644index a21bc6b629..0000000000--- a/src/components/features/onboarding/form-input.tsx+++ /dev/null@@ -1,78 +0,0 @@-import { isValidEmail } from "#/utils/input-validation";-import { cn } from "#/utils/utils";--// Email validation pattern - must match EMAIL_REGEX in input-validation.ts-const EMAIL_PATTERN = "[a-zA-Z0-9._%+\\-]+@[a-zA-Z0-9.\\-]+\\.[a-zA-Z]{2,}";--interface FormInputProps {- id: string;- label: string;- value: string;- onChange: (value: string) => void;- placeholder?: string;- type?: "text" | "email";- rows?: number;- required?: boolean;- showError?: boolean;-}--export function FormInput({- id,- label,- value,- onChange,- placeholder,- type = "text",- rows,- required = false,- showError = false,-}: FormInputProps) {- const inputId = `form-input-${id}`;- const isEmailInvalid =- type === "email" && !!value.trim() && !isValidEmail(value.trim());- const hasError = showError && ((required && !value.trim()) || isEmailInvalid);- const baseClassName = cn(- "w-full min-h-10 rounded border border-[#242424] px-3 py-2 text-sm leading-5 text-white placeholder:text-[#8C8C8C] placeholder:leading-5 focus:outline-none transition-colors focus:border-white",- );-- return (- <div className="flex flex-col gap-1.5 w-full">- <label- htmlFor={inputId}- className="text-sm font-medium leading-5 text-[#FAFAFA] cursor-pointer"- >- {label}- </label>- {rows ? (- <textarea- id={inputId}- data-testid={inputId}- value={value}- onChange={(e) => onChange(e.target.value)}- placeholder={placeholder}- rows={rows}- required={required}- aria-required={required}- aria-invalid={hasError}- aria-label={label}- className={cn(baseClassName, "h-auto resize-none bg-transparent")}- />- ) : (- <input- id={inputId}- data-testid={inputId}- type={type}- value={value}- onChange={(e) => onChange(e.target.value)}- placeholder={placeholder}- pattern={type === "email" ? EMAIL_PATTERN : undefined}- required={required}- aria-required={required}- aria-invalid={hasError}- aria-label={label}- className={cn(baseClassName, "bg-[#1F1F1F66]")}- />- )}- </div>- );-}diff --git a/src/components/features/onboarding/information-request-form.tsx b/src/components/features/onboarding/information-request-form.tsxdeleted file mode 100644index b7f46164e0..0000000000--- a/src/components/features/onboarding/information-request-form.tsx+++ /dev/null@@ -1,230 +0,0 @@-import { useState } from "react";-import { useTranslation } from "react-i18next";-import { useNavigate } from "react-router";-import { I18nKey } from "#/i18n/declaration";-import { useTracking } from "#/hooks/use-tracking";-import { Card } from "#/ui/card";-import { Typography } from "#/ui/typography";-import {- clearEnterpriseFormData,- EnterpriseFormData,-} from "#/utils/local-storage";-import { cn } from "#/utils/utils";-import { FormInput } from "./form-input";-import OpenHandsLogoWhite from "#/assets/branding/openhands-logo-white.svg?react";-import CloudIcon from "#/icons/cloud-minimal.svg?react";-import StackedIcon from "#/icons/stacked.svg?react";--export type RequestType = "saas" | "self-hosted";--interface InformationRequestFormProps {- requestType: RequestType;- formData: EnterpriseFormData;- onFormDataChange: (data: EnterpriseFormData) => void;- onBack: () => void;-}--export function InformationRequestForm({- requestType,- formData,- onFormDataChange,- onBack,-}: InformationRequestFormProps) {- const { t } = useTranslation();- const navigate = useNavigate();- const { trackEnterpriseLeadFormSubmitted } = useTracking();- const [hasAttemptedSubmit, setHasAttemptedSubmit] = useState(false);- const [isSubmitting, setIsSubmitting] = useState(false);-- const handleSubmit = (e: React.FormEvent<HTMLFormElement>) => {- e.preventDefault();- if (isSubmitting) return;- setHasAttemptedSubmit(true);-- // Use native form validation to show browser error popups- const form = e.currentTarget;- if (!form.checkValidity()) {- form.reportValidity();- return;- }-- setIsSubmitting(true);-- trackEnterpriseLeadFormSubmitted({- requestType,- name: formData.name.trim(),- company: formData.company.trim(),- email: formData.email.trim(),- message: formData.message.trim(),- });-- // Clear form data from localStorage and reset form state- clearEnterpriseFormData(requestType);- onFormDataChange({ name: "", company: "", email: "", message: "" });-- // Navigate to login page with state to show confirmation modal- navigate("/login", { state: { showRequestSubmittedModal: true } });- };-- const isSaas = requestType === "saas";-- const title = isSaas- ? t(I18nKey.ENTERPRISE$FORM_SAAS_TITLE)- : t(I18nKey.ENTERPRISE$FORM_SELF_HOSTED_TITLE);-- const subtitle = isSaas- ? t(I18nKey.ENTERPRISE$FORM_SAAS_SUBTITLE)- : t(I18nKey.ENTERPRISE$FORM_SELF_HOSTED_SUBTITLE);-- const cardTitle = isSaas- ? t(I18nKey.ENTERPRISE$SAAS_TITLE)- : t(I18nKey.ENTERPRISE$SELF_HOSTED_TITLE);-- const cardDescription = isSaas- ? t(I18nKey.ENTERPRISE$SAAS_DESCRIPTION)- : t(I18nKey.ENTERPRISE$SELF_HOSTED_DESCRIPTION);-- const messagePlaceholder = isSaas- ? t(I18nKey.ENTERPRISE$FORM_MESSAGE_SAAS_PLACEHOLDER)- : t(I18nKey.ENTERPRISE$FORM_MESSAGE_SELF_HOSTED_PLACEHOLDER);-- return (- <div- data-testid="information-request-form"- className={cn("w-full max-w-[896px] flex flex-col items-center gap-8")}- >- {/* Header */}- <div className={cn("w-full flex flex-col items-center gap-4")}>- <OpenHandsLogoWhite width={56} height={56} />- <div className={cn("text-center flex flex-col gap-2")}>- <Typography.H1 className={cn("text-2xl font-semibold")}>- {title}- </Typography.H1>- <Typography.Text className={cn("text-[#8C8C8C] leading-5")}>- {subtitle}- </Typography.Text>- </div>- </div>-- {/* Content: Form + Card */}- <div className={cn("w-full flex flex-col md:flex-row gap-8")}>- {/* Form */}- <form- onSubmit={handleSubmit}- className={cn("flex-1 flex flex-col gap-4 w-full md:max-w-[544px]")}- >- <FormInput- id="name"- label={t(I18nKey.ENTERPRISE$FORM_NAME_LABEL)}- value={formData.name}- placeholder={t(I18nKey.ENTERPRISE$FORM_NAME_PLACEHOLDER)}- required- showError={hasAttemptedSubmit}- onChange={(value) => onFormDataChange({ ...formData, name: value })}- />-- <FormInput- id="company"- label={t(I18nKey.ENTERPRISE$FORM_COMPANY_LABEL)}- value={formData.company}- placeholder={t(I18nKey.ENTERPRISE$FORM_COMPANY_PLACEHOLDER)}- required- showError={hasAttemptedSubmit}- onChange={(value) =>- onFormDataChange({ ...formData, company: value })- }- />-- <FormInput- id="email"- label={t(I18nKey.ENTERPRISE$FORM_EMAIL_LABEL)}- type="email"- value={formData.email}- placeholder={t(I18nKey.ENTERPRISE$FORM_EMAIL_PLACEHOLDER)}- required- showError={hasAttemptedSubmit}- onChange={(value) =>- onFormDataChange({ ...formData, email: value })- }- />-- <FormInput- id="message"- label={t(I18nKey.ENTERPRISE$FORM_MESSAGE_LABEL)}- value={formData.message}- placeholder={messagePlaceholder}- rows={4}- required- showError={hasAttemptedSubmit}- onChange={(value) =>- onFormDataChange({ ...formData, message: value })- }- />-- {/* Buttons */}- <div- className={cn("flex gap-4 mt-4")}- role="group"- aria-label="Form actions"- >- <button- type="button"- onClick={onBack}- aria-label={t(I18nKey.COMMON$BACK)}- className={cn(- "flex-1 px-6 py-2.5 text-sm text-center rounded",- "bg-transparent text-white border border-[#242424]",- "hover:bg-white hover:text-black transition-colors cursor-pointer",- )}- >- {t(I18nKey.COMMON$BACK)}- </button>- <button- type="submit"- disabled={isSubmitting}- aria-label={t(I18nKey.ENTERPRISE$FORM_SUBMIT)}- className={cn(- "flex-1 px-6 py-2.5 text-sm rounded",- "bg-white text-black border border-white",- "hover:bg-gray-100 transition-colors cursor-pointer",- "disabled:opacity-50 disabled:cursor-not-allowed",- )}- >- {isSubmitting- ? t(I18nKey.ENTERPRISE$FORM_SUBMITTING)- : t(I18nKey.ENTERPRISE$FORM_SUBMIT)}- </button>- </div>- </form>-- {/* CTA Card */}- <Card- theme="dark"- gradient="standard"- className={cn("w-full md:w-80 flex-col p-6 gap-4")}- >- <div className={cn("w-10 h-10")}>- {isSaas ? (- <CloudIcon className={cn("w-10 h-10 text-[#8C8C8C]")} />- ) : (- <StackedIcon className={cn("w-10 h-10")} />- )}- </div>- <Typography.H3- className={cn("text-xl font-semibold leading-7 text-[#FAFAFA]")}- >- {cardTitle}- </Typography.H3>- <Typography.Text- className={cn(- "relative top-[0.5px] font-inter text-[#8C8C8C]",- "font-400 text-14px leading-[22.75px] tracking-[0px]",- )}- >- {cardDescription}- </Typography.Text>- </Card>- </div>- </div>- );-}diff --git a/src/components/features/onboarding/request-submitted-modal.tsx b/src/components/features/onboarding/request-submitted-modal.tsxdeleted file mode 100644index e9fbd99c76..0000000000--- a/src/components/features/onboarding/request-submitted-modal.tsx+++ /dev/null@@ -1,72 +0,0 @@-import { useTranslation } from "react-i18next";-import { I18nKey } from "#/i18n/declaration";-import { ModalBackdrop } from "#/components/shared/modals/modal-backdrop";-import { Typography } from "#/ui/typography";-import { cn } from "#/utils/utils";-import CloseIcon from "#/icons/modal-close.svg?react";--interface RequestSubmittedModalProps {- onClose: () => void;-}--export function RequestSubmittedModal({ onClose }: RequestSubmittedModalProps) {- const { t } = useTranslation();-- return (- <ModalBackdrop- onClose={onClose}- aria-label={t(I18nKey.ENTERPRISE$REQUEST_SUBMITTED_TITLE)}- >- <div- data-testid="request-submitted-modal"- className={cn(- "w-[448px] bg-black rounded-md shadow-lg",- "border border-[#242424] border-t-[#242424]",- )}- >- {/* Header with close button */}- <div className={cn("relative p-6 pb-0")}>- <button- type="button"- onClick={onClose}- aria-label={t(I18nKey.MODAL$CLOSE_BUTTON_LABEL)}- className={cn(- "absolute top-[17px] right-[17px] w-4 h-4",- "flex items-center justify-center rounded-sm cursor-pointer",- "opacity-70 hover:opacity-100 transition-opacity",- )}- >- <CloseIcon className={cn("w-4 h-4")} />- </button>-- {/* Title and description */}- <div className={cn("flex flex-col gap-1.5 pr-8")}>- <Typography.H2- className={cn("text-lg leading-[18px] tracking-[-0.45px]")}- >- {t(I18nKey.ENTERPRISE$REQUEST_SUBMITTED_TITLE)}- </Typography.H2>- <Typography.Text className={cn("text-[#8C8C8C] leading-5")}>- {t(I18nKey.ENTERPRISE$REQUEST_SUBMITTED_DESCRIPTION)}- </Typography.Text>- </div>- </div>-- {/* Footer with Done button */}- <div className={cn("p-6 pt-4 flex justify-end")}>- <button- type="button"- onClick={onClose}- aria-label={t(I18nKey.ENTERPRISE$DONE_BUTTON)}- className={cn(- "px-4 py-2 text-sm font-medium rounded cursor-pointer",- "bg-white text-black hover:bg-gray-100 transition-colors",- )}- >- {t(I18nKey.ENTERPRISE$DONE_BUTTON)}- </button>- </div>- </div>- </ModalBackdrop>- );-}diff --git a/src/components/features/onboarding/step-content.tsx b/src/components/features/onboarding/step-content.tsxdeleted file mode 100644index acc6e20e4f..0000000000--- a/src/components/features/onboarding/step-content.tsx+++ /dev/null@@ -1,56 +0,0 @@-import { StepOption } from "./step-option";-import { FormInput } from "./form-input";--export interface Option {- id: string;- label: string;-}--export interface InputField {- id: string;- label: string;-}--interface StepContentProps {- options?: Option[];- inputFields?: InputField[];- selectedOptionIds: string[];- inputValues?: Record<string, string>;- onSelectOption: (optionId: string) => void;- onInputChange?: (fieldId: string, value: string) => void;-}--export function StepContent({- options,- inputFields,- selectedOptionIds,- inputValues = {},- onSelectOption,- onInputChange,-}: StepContentProps) {- return (- <div- data-testid="step-content"- className="flex flex-col mt-8 mb-8 gap-[12px] w-full"- >- {options?.map((option) => (- <StepOption- key={option.id}- id={option.id}- label={option.label}- selected={selectedOptionIds.includes(option.id)}- onClick={() => onSelectOption(option.id)}- />- ))}- {inputFields?.map((field) => (- <FormInput- key={field.id}- id={field.id}- label={field.label}- value={inputValues[field.id] || ""}- onChange={(value) => onInputChange?.(field.id, value)}- />- ))}- </div>- );-}diff --git a/src/components/features/onboarding/step-header.tsx b/src/components/features/onboarding/step-header.tsxdeleted file mode 100644index a0aa4044b2..0000000000--- a/src/components/features/onboarding/step-header.tsx+++ /dev/null@@ -1,42 +0,0 @@-import { Typography } from "#/ui/typography";-import { cn } from "#/utils/utils";--interface StepHeaderProps {- title: string;- subtitle?: string;- currentStep: number;- totalSteps: number;-}--function StepHeader({- title,- subtitle,- currentStep,- totalSteps,-}: StepHeaderProps) {- return (- <div data-testid="step-header" className="flex flex-col items-center gap-2">- <div className="flex justify-center gap-2 mb-2">- {Array.from({ length: totalSteps }).map((_, index) => (- <div- key={index}- className={cn(- "w-[6px] h-[4px] rounded-full transition-colors",- index < currentStep ? "bg-white" : "bg-neutral-600",- )}- />- ))}- </div>- <Typography.Text className="text-2xl font-semibold text-content text-center">- {title}- </Typography.Text>- {subtitle && (- <Typography.Text className="text-sm text-neutral-400 text-center">- {subtitle}- </Typography.Text>- )}- </div>- );-}--export default StepHeader;diff --git a/src/components/features/onboarding/step-option.tsx b/src/components/features/onboarding/step-option.tsxdeleted file mode 100644index 3b5648b5c6..0000000000--- a/src/components/features/onboarding/step-option.tsx+++ /dev/null@@ -1,30 +0,0 @@-import { cn } from "#/utils/utils";-import { Typography } from "#/ui/typography";--interface StepOptionProps {- id: string;- label: string;- selected: boolean;- onClick: () => void;-}--export function StepOption({ id, label, selected, onClick }: StepOptionProps) {- return (- <button- data-testid={`step-option-${id}`}- type="button"- tabIndex={0}- onClick={onClick}- className={cn(- "min-h-10 w-full rounded-md border text-left px-4 py-2.5 transition-colors text-white cursor-pointer",- selected- ? "border-white bg-[#3a3a3a]"- : "border-[#3a3a3a] hover:bg-[#3a3a3a]",- )}- >- <Typography.Text className="text-sm font-medium text-content">- {label}- </Typography.Text>- </button>- );-}diff --git a/src/components/features/org/add-credits-modal.tsx b/src/components/features/org/add-credits-modal.tsxdeleted file mode 100644index 78ef6519b2..0000000000--- a/src/components/features/org/add-credits-modal.tsx+++ /dev/null@@ -1,103 +0,0 @@-import React from "react";-import { useTranslation } from "react-i18next";-import { useCreateStripeCheckoutSession } from "#/hooks/mutation/stripe/use-create-stripe-checkout-session";-import { ModalBackdrop } from "#/components/shared/modals/modal-backdrop";-import { ModalButtonGroup } from "#/components/shared/modals/modal-button-group";-import { SettingsInput } from "#/components/features/settings/settings-input";-import { I18nKey } from "#/i18n/declaration";-import { amountIsValid } from "#/utils/amount-is-valid";--interface AddCreditsModalProps {- onClose: () => void;-}--export function AddCreditsModal({ onClose }: AddCreditsModalProps) {- const { t } = useTranslation();- const { mutate: addBalance } = useCreateStripeCheckoutSession();-- const [inputValue, setInputValue] = React.useState("");- const [errorMessage, setErrorMessage] = React.useState<string | null>(null);-- const getErrorMessage = (value: string): string | null => {- if (!value.trim()) return null;-- const numValue = parseInt(value, 10);- if (Number.isNaN(numValue)) {- return t(I18nKey.PAYMENT$ERROR_INVALID_NUMBER);- }- if (numValue < 0) {- return t(I18nKey.PAYMENT$ERROR_NEGATIVE_AMOUNT);- }- if (numValue < 10) {- return t(I18nKey.PAYMENT$ERROR_MINIMUM_AMOUNT);- }- if (numValue > 25000) {- return t(I18nKey.PAYMENT$ERROR_MAXIMUM_AMOUNT);- }- if (numValue !== parseFloat(value)) {- return t(I18nKey.PAYMENT$ERROR_MUST_BE_WHOLE_NUMBER);- }- return null;- };-- const formAction = (formData: FormData) => {- const amount = formData.get("amount")?.toString();-- if (amount?.trim()) {- if (!amountIsValid(amount)) {- const error = getErrorMessage(amount);- setErrorMessage(error || "Invalid amount");- return;- }-- const intValue = parseInt(amount, 10);-- addBalance({ amount: intValue }, { onSuccess: onClose });-- setErrorMessage(null);- }- };-- const handleAmountInputChange = (value: string) => {- setInputValue(value);- setErrorMessage(null);- };-- return (- <ModalBackdrop onClose={onClose}>- <form- data-testid="add-credits-form"- action={formAction}- noValidate- className="w-sm rounded-xl bg-base-secondary flex flex-col p-6 gap-4 border border-tertiary"- >- <h3 className="text-xl font-bold">{t(I18nKey.ORG$ADD_CREDITS)}</h3>- <div className="flex flex-col gap-2">- <SettingsInput- testId="amount-input"- name="amount"- label={t(I18nKey.PAYMENT$SPECIFY_AMOUNT_USD)}- type="number"- min={10}- max={25000}- step={1}- value={inputValue}- onChange={(value) => handleAmountInputChange(value)}- className="w-full"- />- {errorMessage && (- <p className="text-red-500 text-sm mt-1" data-testid="amount-error">- {errorMessage}- </p>- )}- </div>-- <ModalButtonGroup- primaryText={t(I18nKey.ORG$NEXT)}- onSecondaryClick={onClose}- primaryType="submit"- />- </form>- </ModalBackdrop>- );-}diff --git a/src/components/features/org/change-org-name-modal.tsx b/src/components/features/org/change-org-name-modal.tsxdeleted file mode 100644index 56adb4e6c9..0000000000--- a/src/components/features/org/change-org-name-modal.tsx+++ /dev/null@@ -1,45 +0,0 @@-import { useState } from "react";-import { useTranslation } from "react-i18next";-import { OrgModal } from "#/components/shared/modals/org-modal";-import { I18nKey } from "#/i18n/declaration";-import { useUpdateOrganization } from "#/hooks/mutation/use-update-organization";--interface ChangeOrgNameModalProps {- onClose: () => void;-}--export function ChangeOrgNameModal({ onClose }: ChangeOrgNameModalProps) {- const { t } = useTranslation();- const { mutate: updateOrganization, isPending } = useUpdateOrganization();- const [orgName, setOrgName] = useState<string>("");-- const handleSubmit = () => {- if (orgName?.trim()) {- updateOrganization(orgName, {- onSuccess: () => {- onClose();- },- });- }- };-- return (- <OrgModal- testId="update-org-name-form"- title={t(I18nKey.ORG$CHANGE_ORG_NAME)}- description={t(I18nKey.ORG$MODIFY_ORG_NAME_DESCRIPTION)}- primaryButtonText={t(I18nKey.BUTTON$SAVE)}- onPrimaryClick={handleSubmit}- onClose={onClose}- isLoading={isPending}- >- <input- data-testid="org-name"- value={orgName}- placeholder={t(I18nKey.ORG$ENTER_NEW_ORGANIZATION_NAME)}- onChange={(e) => setOrgName(e.target.value)}- className="bg-tertiary border border-[#717888] h-10 w-full rounded-sm p-2 placeholder:italic placeholder:text-tertiary-alt"- />- </OrgModal>- );-}diff --git a/src/components/features/org/claim-button.tsx b/src/components/features/org/claim-button.tsxdeleted file mode 100644index 1d345850ca..0000000000--- a/src/components/features/org/claim-button.tsx+++ /dev/null@@ -1,84 +0,0 @@-import React from "react";-import { useTranslation } from "react-i18next";-import { I18nKey } from "#/i18n/declaration";-import { cn } from "#/utils/utils";-import type { GitOrg } from "#/types/org";--type ButtonState =- | "claiming"- | "disconnecting"- | "disconnect"- | "claimed"- | "unclaimed";--const BUTTON_STYLES: Record<ButtonState, string> = {- claiming:- "bg-[#050505] border border-[#242424] text-[#fafafa] opacity-50 cursor-not-allowed flex items-center justify-center",- disconnecting:- "bg-[#050505] border border-[#242424] text-[#fafafa] opacity-50 cursor-not-allowed",- disconnect:- "bg-[rgba(244,63,94,0.15)] border border-[rgba(244,63,94,0.6)] text-[#fda4af] font-medium cursor-pointer",- claimed:- "bg-[rgba(16,185,129,0.2)] border border-[rgba(16,185,129,0.6)] text-[#6ee7b7] font-medium cursor-pointer flex items-center justify-center",- unclaimed:- "bg-[#050505] border border-[#242424] text-[#fafafa] cursor-pointer flex items-center justify-center",-};--const BUTTON_HOVER_STYLES: Partial<Record<ButtonState, string>> = {- unclaimed: "bg-[rgba(31,31,31,0.6)]",-};--const BUTTON_LABELS: Record<ButtonState, I18nKey> = {- claiming: I18nKey.ORG$CLAIM,- disconnecting: I18nKey.ORG$DISCONNECT,- disconnect: I18nKey.ORG$DISCONNECT,- claimed: I18nKey.ORG$CLAIMED,- unclaimed: I18nKey.ORG$CLAIM,-};--export function getButtonState(- status: GitOrg["status"],- isHovered: boolean,-): ButtonState {- if (status === "claiming" || status === "disconnecting") return status;- if (status === "claimed" && isHovered) return "disconnect";- return status;-}--interface ClaimButtonProps {- org: GitOrg;- onClaim: (id: string) => void;- onDisconnect: (id: string) => void;-}--export function ClaimButton({ org, onClaim, onDisconnect }: ClaimButtonProps) {- const { t } = useTranslation();- const [isHovered, setIsHovered] = React.useState(false);-- const buttonState = getButtonState(org.status, isHovered);- const isDisabled =- org.status === "claiming" || org.status === "disconnecting";-- const handleClick = () => {- if (org.status === "unclaimed") onClaim(org.id);- if (org.status === "claimed") onDisconnect(org.id);- };-- return (- <button- type="button"- data-testid={`claim-button-${org.id}`}- onClick={handleClick}- onMouseEnter={() => setIsHovered(true)}- onMouseLeave={() => setIsHovered(false)}- disabled={isDisabled}- className={cn(- "h-[28px] rounded px-[13px] text-xs leading-4 text-center whitespace-nowrap transition-colors",- BUTTON_STYLES[buttonState],- isHovered && BUTTON_HOVER_STYLES[buttonState],- )}- >- {t(BUTTON_LABELS[buttonState])}- </button>- );-}diff --git a/src/components/features/org/confirm-remove-member-modal.tsx b/src/components/features/org/confirm-remove-member-modal.tsxdeleted file mode 100644index bfda8c7d32..0000000000--- a/src/components/features/org/confirm-remove-member-modal.tsx+++ /dev/null@@ -1,42 +0,0 @@-import { Trans, useTranslation } from "react-i18next";-import { OrgModal } from "#/components/shared/modals/org-modal";-import { I18nKey } from "#/i18n/declaration";--interface ConfirmRemoveMemberModalProps {- onConfirm: () => void;- onCancel: () => void;- memberEmail: string;- isLoading?: boolean;-}--export function ConfirmRemoveMemberModal({- onConfirm,- onCancel,- memberEmail,- isLoading = false,-}: ConfirmRemoveMemberModalProps) {- const { t } = useTranslation();-- const confirmationMessage = (- <Trans- i18nKey={I18nKey.ORG$REMOVE_MEMBER_WARNING}- values={{ email: memberEmail }}- components={{ email: <span className="text-white" /> }}- />- );-- return (- <OrgModal- title={t(I18nKey.ORG$CONFIRM_REMOVE_MEMBER)}- description={confirmationMessage}- primaryButtonText={t(I18nKey.BUTTON$CONFIRM)}- secondaryButtonText={t(I18nKey.BUTTON$CANCEL)}- onPrimaryClick={onConfirm}- onClose={onCancel}- isLoading={isLoading}- primaryButtonTestId="confirm-button"- secondaryButtonTestId="cancel-button"- fullWidthButtons- />- );-}diff --git a/src/components/features/org/confirm-update-role-modal.tsx b/src/components/features/org/confirm-update-role-modal.tsxdeleted file mode 100644index f0b84affad..0000000000--- a/src/components/features/org/confirm-update-role-modal.tsx+++ /dev/null@@ -1,47 +0,0 @@-import { Trans, useTranslation } from "react-i18next";-import { OrgModal } from "#/components/shared/modals/org-modal";-import { I18nKey } from "#/i18n/declaration";-import { OrganizationUserRole } from "#/types/org";--interface ConfirmUpdateRoleModalProps {- onConfirm: () => void;- onCancel: () => void;- memberEmail: string;- newRole: OrganizationUserRole;- isLoading?: boolean;-}--export function ConfirmUpdateRoleModal({- onConfirm,- onCancel,- memberEmail,- newRole,- isLoading = false,-}: ConfirmUpdateRoleModalProps) {- const { t } = useTranslation();-- const confirmationMessage = (- <Trans- i18nKey={I18nKey.ORG$UPDATE_ROLE_WARNING}- values={{ email: memberEmail, role: newRole }}- components={{- email: <span className="text-white" />,- role: <span className="text-white capitalize" />,- }}- />- );-- return (- <OrgModal- title={t(I18nKey.ORG$CONFIRM_UPDATE_ROLE)}- description={confirmationMessage}- primaryButtonText={t(I18nKey.BUTTON$CONFIRM)}- onPrimaryClick={onConfirm}- onClose={onCancel}- isLoading={isLoading}- primaryButtonTestId="confirm-button"- secondaryButtonTestId="cancel-button"- fullWidthButtons- />- );-}diff --git a/src/components/features/org/delete-org-confirmation-modal.tsx b/src/components/features/org/delete-org-confirmation-modal.tsxdeleted file mode 100644index 164355e6d2..0000000000--- a/src/components/features/org/delete-org-confirmation-modal.tsx+++ /dev/null@@ -1,52 +0,0 @@-import { Trans, useTranslation } from "react-i18next";-import { OrgModal } from "#/components/shared/modals/org-modal";-import { I18nKey } from "#/i18n/declaration";-import { useDeleteOrganization } from "#/hooks/mutation/use-delete-organization";-import { useOrganization } from "#/hooks/query/use-organization";-import { displayErrorToast } from "#/utils/custom-toast-handlers";--interface DeleteOrgConfirmationModalProps {- onClose: () => void;-}--export function DeleteOrgConfirmationModal({- onClose,-}: DeleteOrgConfirmationModalProps) {- const { t } = useTranslation();- const { mutate: deleteOrganization, isPending } = useDeleteOrganization();- const { data: organization } = useOrganization();-- const handleConfirm = () => {- deleteOrganization(undefined, {- onSuccess: onClose,- onError: () => {- displayErrorToast(t(I18nKey.ORG$DELETE_ORGANIZATION_ERROR));- },- });- };-- const confirmationMessage = organization?.name ? (- <Trans- i18nKey={I18nKey.ORG$DELETE_ORGANIZATION_WARNING_WITH_NAME}- values={{ name: organization.name }}- components={{ name: <span className="text-white" /> }}- />- ) : (- t(I18nKey.ORG$DELETE_ORGANIZATION_WARNING)- );-- return (- <OrgModal- testId="delete-org-confirmation"- title={t(I18nKey.ORG$DELETE_ORGANIZATION)}- description={confirmationMessage}- primaryButtonText={t(I18nKey.BUTTON$CONFIRM)}- onPrimaryClick={handleConfirm}- onClose={onClose}- isLoading={isPending}- secondaryButtonTestId="cancel-button"- ariaLabel={t(I18nKey.ORG$DELETE_ORGANIZATION)}- fullWidthButtons- />- );-}diff --git a/src/components/features/org/git-conversation-routing.tsx b/src/components/features/org/git-conversation-routing.tsxdeleted file mode 100644index 38e897a282..0000000000--- a/src/components/features/org/git-conversation-routing.tsx+++ /dev/null@@ -1,53 +0,0 @@-import { useTranslation } from "react-i18next";-import { I18nKey } from "#/i18n/declaration";-import { Text, Paragraph } from "#/ui/typography";-import { useGitConversationRouting } from "#/hooks/organizations/use-git-conversation-routing";-import { LoadingSpinner } from "#/components/shared/loading-spinner";-import { GitOrgRow } from "./git-org-row";--export function GitConversationRouting() {- const { t } = useTranslation();- const { orgs, claimOrg, disconnectOrg, isLoading } =- useGitConversationRouting();-- return (- <div- data-testid="git-conversation-routing"- className="flex flex-col gap-3 w-full"- >- <Text className="text-[#fafafa] text-sm font-semibold leading-5">- {t(I18nKey.ORG$GIT_CONVERSATION_ROUTING)}- </Text>-- <Paragraph className="text-[#8c8c8c] text-sm font-normal leading-5">- {t(I18nKey.ORG$GIT_CONVERSATION_ROUTING_DESCRIPTION)}- </Paragraph>-- {isLoading && (- <div className="flex justify-center py-4">- <LoadingSpinner size="small" />- </div>- )}-- {!isLoading && orgs.length > 0 && (- <div className="border border-[#242424] rounded-[6px] overflow-hidden">- {orgs.map((org, index) => (- <GitOrgRow- key={org.id}- org={org}- isLast={index === orgs.length - 1}- onClaim={claimOrg}- onDisconnect={disconnectOrg}- />- ))}- </div>- )}-- {!isLoading && orgs.length === 0 && (- <Paragraph className="text-center py-4 text-[#8c8c8c] text-sm">- {t(I18nKey.ORG$NO_GIT_ORGANIZATIONS)}- </Paragraph>- )}- </div>- );-}diff --git a/src/components/features/org/git-org-row.tsx b/src/components/features/org/git-org-row.tsxdeleted file mode 100644index 50ba11e1be..0000000000--- a/src/components/features/org/git-org-row.tsx+++ /dev/null@@ -1,34 +0,0 @@-import { cn } from "#/utils/utils";-import { Text } from "#/ui/typography";-import type { GitOrg } from "#/types/org";-import { ClaimButton } from "./claim-button";--interface GitOrgRowProps {- org: GitOrg;- isLast: boolean;- onClaim: (id: string) => void;- onDisconnect: (id: string) => void;-}--export function GitOrgRow({- org,- isLast,- onClaim,- onDisconnect,-}: GitOrgRowProps) {- return (- <div- data-testid={`org-row-${org.id}`}- className={cn(- "flex items-center justify-between px-3 h-[53px]",- !isLast && "border-b border-[#242424]",- )}- >- <span className="text-sm font-normal leading-5">- <Text className="text-[#8c8c8c]">{org.provider}/</Text>- <Text className="text-[#fafafa]">{org.name}</Text>- </span>- <ClaimButton org={org} onClaim={onClaim} onDisconnect={onDisconnect} />- </div>- );-}diff --git a/src/components/features/org/invite-organization-member-modal.tsx b/src/components/features/org/invite-organization-member-modal.tsxdeleted file mode 100644index 37ce1338cc..0000000000--- a/src/components/features/org/invite-organization-member-modal.tsx+++ /dev/null@@ -1,68 +0,0 @@-import React from "react";-import { useTranslation } from "react-i18next";-import { OrgModal } from "#/components/shared/modals/org-modal";-import { useInviteMembersBatch } from "#/hooks/mutation/use-invite-members-batch";-import { BadgeInput } from "#/components/shared/inputs/badge-input";-import { I18nKey } from "#/i18n/declaration";-import { displayErrorToast } from "#/utils/custom-toast-handlers";-import { areAllEmailsValid, hasDuplicates } from "#/utils/input-validation";--interface InviteOrganizationMemberModalProps {- onClose: (event?: React.MouseEvent<HTMLButtonElement>) => void;-}--export function InviteOrganizationMemberModal({- onClose,-}: InviteOrganizationMemberModalProps) {- const { t } = useTranslation();- const { mutate: inviteMembers, isPending } = useInviteMembersBatch();- const [emails, setEmails] = React.useState<string[]>([]);-- const handleEmailsChange = (newEmails: string[]) => {- const trimmedEmails = newEmails.map((email) => email.trim());- setEmails(trimmedEmails);- };-- const handleSubmit = () => {- if (emails.length === 0) {- displayErrorToast(t(I18nKey.ORG$NO_EMAILS_ADDED_HINT));- return;- }-- if (!areAllEmailsValid(emails)) {- displayErrorToast(t(I18nKey.SETTINGS$INVALID_EMAIL_FORMAT));- return;- }-- if (hasDuplicates(emails)) {- displayErrorToast(t(I18nKey.ORG$DUPLICATE_EMAILS_ERROR));- return;- }-- inviteMembers(- { emails },- {- onSuccess: () => onClose(),- },- );- };-- return (- <OrgModal- testId="invite-modal"- title={t(I18nKey.ORG$INVITE_ORG_MEMBERS)}- description={t(I18nKey.ORG$INVITE_USERS_DESCRIPTION)}- primaryButtonText={t(I18nKey.BUTTON$ADD)}- onPrimaryClick={handleSubmit}- onClose={onClose}- isLoading={isPending}- >- <BadgeInput- name="emails-badge-input"- value={emails}- placeholder={t(I18nKey.COMMON$TYPE_EMAIL_AND_PRESS_SPACE)}- onChange={handleEmailsChange}- />- </OrgModal>- );-}diff --git a/src/components/features/org/org-selector.tsx b/src/components/features/org/org-selector.tsxdeleted file mode 100644index 8f22c54985..0000000000--- a/src/components/features/org/org-selector.tsx+++ /dev/null@@ -1,67 +0,0 @@-import React from "react";-import { useTranslation } from "react-i18next";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";-import { useSwitchOrganization } from "#/hooks/mutation/use-switch-organization";-import { useOrganizations } from "#/hooks/query/use-organizations";-import { useShouldHideOrgSelector } from "#/hooks/use-should-hide-org-selector";-import { I18nKey } from "#/i18n/declaration";-import { Organization } from "#/types/org";-import { Dropdown } from "#/ui/dropdown/dropdown";--export function OrgSelector() {- const { t } = useTranslation();- const { organizationId } = useSelectedOrganizationId();- const { data, isLoading } = useOrganizations();- const organizations = data?.organizations;- const { mutate: switchOrganization, isPending: isSwitching } =- useSwitchOrganization();- const shouldHideSelector = useShouldHideOrgSelector();-- const getOrgDisplayName = React.useCallback(- (org: Organization) =>- org.is_personal ? t(I18nKey.ORG$PERSONAL_WORKSPACE) : org.name,- [t],- );-- const selectedOrg = React.useMemo(() => {- if (organizationId) {- return organizations?.find((org) => org.id === organizationId);- }-- return organizations?.[0];- }, [organizationId, organizations]);-- if (shouldHideSelector) {- return null;- }-- return (- <Dropdown- testId="org-selector"- key={`${selectedOrg?.id}-${selectedOrg?.name}`}- defaultValue={{- label: selectedOrg ? getOrgDisplayName(selectedOrg) : "",- value: selectedOrg?.id || "",- }}- onChange={(item) => {- if (item && item.value !== organizationId) {- const org = organizations?.find((o) => o.id === item.value);- switchOrganization({- orgId: item.value,- orgName: item.label,- isPersonal: org?.is_personal ?? false,- });- }- }}- placeholder={t(I18nKey.ORG$SELECT_ORGANIZATION_PLACEHOLDER)}- loading={isLoading || isSwitching}- options={- organizations?.map((org) => ({- value: org.id,- label: getOrgDisplayName(org),- })) || []- }- className="bg-[#1F1F1F66] border-[#242424]"- />- );-}diff --git a/src/components/features/org/organization-member-list-item.tsx b/src/components/features/org/organization-member-list-item.tsxdeleted file mode 100644index fdff1f43bc..0000000000--- a/src/components/features/org/organization-member-list-item.tsx+++ /dev/null@@ -1,85 +0,0 @@-import React from "react";-import { useTranslation } from "react-i18next";-import { ChevronDown } from "lucide-react";-import { OrganizationMember, OrganizationUserRole } from "#/types/org";-import { cn } from "#/utils/utils";-import { I18nKey } from "#/i18n/declaration";-import { OrganizationMemberRoleContextMenu } from "./organization-member-role-context-menu";--interface OrganizationMemberListItemProps {- email: OrganizationMember["email"];- role: OrganizationMember["role"];- status: OrganizationMember["status"];- hasPermissionToChangeRole: boolean;- availableRolesToChangeTo: OrganizationUserRole[];-- onRoleChange: (role: OrganizationUserRole) => void;- onRemove?: () => void;-}--export function OrganizationMemberListItem({- email,- role,- status,- hasPermissionToChangeRole,- availableRolesToChangeTo,- onRoleChange,- onRemove,-}: OrganizationMemberListItemProps) {- const { t } = useTranslation();- const [contextMenuOpen, setContextMenuOpen] = React.useState(false);-- const roleSelectionIsPermitted =- status !== "invited" && hasPermissionToChangeRole;-- const handleRoleClick = (event: React.MouseEvent<HTMLSpanElement>) => {- if (roleSelectionIsPermitted) {- event.preventDefault();- event.stopPropagation();- setContextMenuOpen(true);- }- };-- return (- <div className="flex items-center justify-between py-4">- <div className="flex items-center gap-2">- <span- className={cn(- "text-sm font-semibold leading-6",- status === "invited" && "text-gray-400",- )}- >- {email}- </span>-- {status === "invited" && (- <span className="text-xs text-tertiary-light border border-tertiary px-2 py-1 rounded-lg">- {t(I18nKey.ORG$STATUS_INVITED)}- </span>- )}- </div>-- <div className="relative">- <span- onClick={handleRoleClick}- className={cn(- "text-xs font-normal leading-4 text-org-text flex items-center gap-1 capitalize",- roleSelectionIsPermitted ? "cursor-pointer" : "cursor-not-allowed",- )}- >- {role}- {hasPermissionToChangeRole && <ChevronDown size={14} />}- </span>-- {roleSelectionIsPermitted && contextMenuOpen && (- <OrganizationMemberRoleContextMenu- onClose={() => setContextMenuOpen(false)}- onRoleChange={onRoleChange}- onRemove={onRemove}- availableRolesToChangeTo={availableRolesToChangeTo}- />- )}- </div>- </div>- );-}diff --git a/src/components/features/org/organization-member-role-context-menu.tsx b/src/components/features/org/organization-member-role-context-menu.tsxdeleted file mode 100644index 84278035e6..0000000000--- a/src/components/features/org/organization-member-role-context-menu.tsx+++ /dev/null@@ -1,123 +0,0 @@-import React from "react";-import { useTranslation } from "react-i18next";-import { I18nKey } from "#/i18n/declaration";-import { ContextMenu } from "#/ui/context-menu";-import { ContextMenuListItem } from "../context-menu/context-menu-list-item";-import { ContextMenuIconText } from "#/ui/context-menu-icon-text";-import { useClickOutsideElement } from "#/hooks/use-click-outside-element";-import { OrganizationUserRole } from "#/types/org";-import { cn } from "#/utils/utils";-import UserIcon from "#/icons/user.svg?react";-import DeleteIcon from "#/icons/u-delete.svg?react";-import AdminIcon from "#/icons/admin.svg?react";--const contextMenuListItemClassName = cn(- "cursor-pointer p-0 h-auto hover:bg-transparent",-);--interface OrganizationMemberRoleContextMenuProps {- onClose: () => void;- onRoleChange: (role: OrganizationUserRole) => void;- onRemove?: () => void;- availableRolesToChangeTo: OrganizationUserRole[];-}--export function OrganizationMemberRoleContextMenu({- onClose,- onRoleChange,- onRemove,- availableRolesToChangeTo,-}: OrganizationMemberRoleContextMenuProps) {- const { t } = useTranslation();- const menuRef = useClickOutsideElement<HTMLUListElement>(onClose);-- const handleRoleChangeClick = (- event: React.MouseEvent<HTMLButtonElement>,- role: OrganizationUserRole,- ) => {- event.preventDefault();- event.stopPropagation();- onRoleChange(role);- onClose();- };-- const handleRemoveClick = (event: React.MouseEvent<HTMLButtonElement>) => {- event.preventDefault();- event.stopPropagation();- onRemove?.();- onClose();- };-- return (- <ContextMenu- ref={menuRef}- testId="organization-member-role-context-menu"- position="bottom"- alignment="right"- className="min-h-fit mb-2 min-w-[195px] max-w-[195px] gap-0"- >- {availableRolesToChangeTo.includes("owner") && (- <ContextMenuListItem- testId="owner-option"- onClick={(event) => handleRoleChangeClick(event, "owner")}- className={contextMenuListItemClassName}- >- <ContextMenuIconText- icon={- <AdminIcon- width={16}- height={16}- className="text-white pl-[2px]"- />- }- text={t(I18nKey.ORG$ROLE_OWNER)}- className="capitalize"- />- </ContextMenuListItem>- )}- {availableRolesToChangeTo.includes("admin") && (- <ContextMenuListItem- testId="admin-option"- onClick={(event) => handleRoleChangeClick(event, "admin")}- className={contextMenuListItemClassName}- >- <ContextMenuIconText- icon={- <AdminIcon- width={16}- height={16}- className="text-white pl-[2px]"- />- }- text={t(I18nKey.ORG$ROLE_ADMIN)}- className="capitalize"- />- </ContextMenuListItem>- )}- {availableRolesToChangeTo.includes("member") && (- <ContextMenuListItem- testId="member-option"- onClick={(event) => handleRoleChangeClick(event, "member")}- className={contextMenuListItemClassName}- >- <ContextMenuIconText- icon={<UserIcon width={16} height={16} className="text-white" />}- text={t(I18nKey.ORG$ROLE_MEMBER)}- className="capitalize"- />- </ContextMenuListItem>- )}- <ContextMenuListItem- testId="remove-option"- onClick={handleRemoveClick}- className={contextMenuListItemClassName}- >- <ContextMenuIconText- icon={<DeleteIcon width={16} height={16} className="text-red-500" />}- text={t(I18nKey.ORG$REMOVE)}- className="text-red-500 capitalize"- />- </ContextMenuListItem>- </ContextMenu>- );-}diff --git a/src/components/features/payment/payment-form.tsx b/src/components/features/payment/payment-form.tsxdeleted file mode 100644index 0ac9ede2d6..0000000000--- a/src/components/features/payment/payment-form.tsx+++ /dev/null@@ -1,89 +0,0 @@-import React from "react";-import { useTranslation } from "react-i18next";-import { useCreateStripeCheckoutSession } from "#/hooks/mutation/stripe/use-create-stripe-checkout-session";-import { useBalance } from "#/hooks/query/use-balance";-import { cn } from "#/utils/utils";-import MoneyIcon from "#/icons/money.svg?react";-import { SettingsInput } from "../settings/settings-input";-import { BrandButton } from "../settings/brand-button";-import { LoadingSpinner } from "#/components/shared/loading-spinner";-import { amountIsValid } from "#/utils/amount-is-valid";-import { I18nKey } from "#/i18n/declaration";-import { PoweredByStripeTag } from "./powered-by-stripe-tag";--export function PaymentForm({ isDisabled }: { isDisabled?: boolean }) {- const { t } = useTranslation();- const { data: balance, isLoading } = useBalance();- const { mutate: addBalance, isPending } = useCreateStripeCheckoutSession();-- const [buttonIsDisabled, setButtonIsDisabled] = React.useState(true);-- const billingFormAction = async (formData: FormData) => {- const amount = formData.get("top-up-input")?.toString();-- if (amount?.trim()) {- if (!amountIsValid(amount)) return;-- const intValue = parseInt(amount, 10);- addBalance({ amount: intValue });- }-- setButtonIsDisabled(true);- };-- const handleTopUpInputChange = (value: string) => {- setButtonIsDisabled(!amountIsValid(value));- };-- return (- <form- action={billingFormAction}- data-testid="billing-settings"- className="flex flex-col gap-6"- >- <div- className={cn(- "flex items-center justify-between w-[680px] bg-[#7F7445] rounded-sm px-3 py-2",- "text-[28px] leading-8 -tracking-[0.02em] font-bold",- )}- >- <div className="flex items-center gap-2">- <MoneyIcon width={22} height={14} />- <span>{t(I18nKey.PAYMENT$MANAGE_CREDITS)}</span>- </div>- {!isLoading && (- <span data-testid="user-balance">${Number(balance).toFixed(2)}</span>- )}- {isLoading && <LoadingSpinner size="small" />}- </div>-- <div className="flex flex-col gap-3">- <SettingsInput- testId="top-up-input"- name="top-up-input"- onChange={handleTopUpInputChange}- type="number"- label={t(I18nKey.PAYMENT$ADD_FUNDS)}- placeholder={t(I18nKey.PAYMENT$SPECIFY_AMOUNT_USD)}- className="w-[680px]"- min={10}- max={25000}- step={1}- isDisabled={isDisabled}- />-- <div className="flex items-center w-[680px] gap-2">- <BrandButton- variant="primary"- type="submit"- isDisabled={isPending || buttonIsDisabled || isDisabled}- >- {t(I18nKey.PAYMENT$ADD_CREDIT)}- </BrandButton>- {isPending && <LoadingSpinner size="small" />}- <PoweredByStripeTag />- </div>- </div>- </form>- );-}diff --git a/src/components/features/payment/powered-by-stripe-tag.tsx b/src/components/features/payment/powered-by-stripe-tag.tsxdeleted file mode 100644index ac86903b41..0000000000--- a/src/components/features/payment/powered-by-stripe-tag.tsx+++ /dev/null@@ -1,16 +0,0 @@-import { useTranslation } from "react-i18next";-import { I18nKey } from "#/i18n/declaration";-import stripeLogo from "#/assets/stripe.svg";--export function PoweredByStripeTag() {- const { t } = useTranslation();-- return (- <div className="flex flex-row items-center">- <span className="text-medium font-semi-bold">- {t(I18nKey.BILLING$POWERED_BY)}- </span>- <img src={stripeLogo} alt="Stripe" className="h-8" />- </div>- );-}diff --git a/src/components/features/payment/setup-payment-modal.tsx b/src/components/features/payment/setup-payment-modal.tsxdeleted file mode 100644index a6513840b3..0000000000--- a/src/components/features/payment/setup-payment-modal.tsx+++ /dev/null@@ -1,41 +0,0 @@-import { Trans, useTranslation } from "react-i18next";-import { I18nKey } from "#/i18n/declaration";-import OpenHandsLogo from "#/assets/branding/openhands-logo.svg?react";-import { ModalBackdrop } from "#/components/shared/modals/modal-backdrop";-import { ModalBody } from "#/components/shared/modals/modal-body";-import { BrandButton } from "../settings/brand-button";-import { useCreateBillingSession } from "#/hooks/mutation/use-create-billing-session";--export function SetupPaymentModal() {- const { t } = useTranslation();- const { mutate, isPending } = useCreateBillingSession();-- return (- <ModalBackdrop>- <ModalBody className="border border-tertiary">- <OpenHandsLogo width={68} height={46} />- <div className="flex flex-col gap-2 w-full items-center text-center">- <h1 className="text-2xl font-bold">- {t(I18nKey.BILLING$YOUVE_GOT_50)}- </h1>- <p>- <Trans- i18nKey="BILLING$CLAIM_YOUR_50"- components={{ b: <strong /> }}- />- </p>- </div>- <BrandButton- testId="proceed-to-stripe-button"- type="submit"- variant="primary"- className="w-full"- isDisabled={isPending}- onClick={() => mutate()}- >- {t(I18nKey.BILLING$PROCEED_TO_STRIPE)}- </BrandButton>- </ModalBody>- </ModalBackdrop>- );-}diff --git a/src/components/features/settings/api-keys-manager.tsx b/src/components/features/settings/api-keys-manager.tsxdeleted file mode 100644index 94128b6e6d..0000000000--- a/src/components/features/settings/api-keys-manager.tsx+++ /dev/null@@ -1,351 +0,0 @@-import React, { useState } from "react";-import { useTranslation, Trans } from "react-i18next";-import { useNavigate } from "react-router";-import { FaTrash, FaEye, FaEyeSlash, FaCopy } from "react-icons/fa6";-import { I18nKey } from "#/i18n/declaration";-import { BrandButton } from "#/components/features/settings/brand-button";-import { LoadingSpinner } from "#/components/shared/loading-spinner";-import { ApiKey, CreateApiKeyResponse } from "#/api/api-keys";-import {- displayErrorToast,- displaySuccessToast,-} from "#/utils/custom-toast-handlers";-import { mutateWithToast } from "#/utils/mutate-with-toast";-import { CreateApiKeyModal } from "./create-api-key-modal";-import { DeleteApiKeyModal } from "./delete-api-key-modal";-import { NewApiKeyModal } from "./new-api-key-modal";-import { useApiKeys } from "#/hooks/query/use-api-keys";-import { useLlmApiKey } from "#/hooks/query/use-llm-api-key";-import { useRefreshLlmApiKey } from "#/hooks/mutation/use-refresh-llm-api-key";--interface LlmApiKeyManagerProps {- llmApiKey: { key: string | null } | undefined;- isLoadingLlmKey: boolean;- isPaymentRequired: boolean;- refreshLlmApiKey: ReturnType<typeof useRefreshLlmApiKey>;-}--function LlmApiKeyPaywall() {- const { t } = useTranslation();- const navigate = useNavigate();-- return (- <div className="border-b border-gray-200 pb-6 mb-6 flex flex-col gap-6">- <h3 className="text-xl font-medium text-white">- {t(I18nKey.SETTINGS$LLM_API_KEY)}- </h3>- <div className="bg-base-tertiary rounded-md p-4 flex flex-col gap-4">- <p className="text-sm text-gray-300">- {t(I18nKey.SETTINGS$LLM_API_KEY_PAYWALL_MESSAGE)}- </p>- <div>- <BrandButton- type="button"- variant="primary"- onClick={() => navigate("/settings/billing")}- >- {t(I18nKey.SETTINGS$LLM_API_KEY_BUY_NOW)}- </BrandButton>- </div>- </div>- </div>- );-}--function LlmApiKeyManager({- llmApiKey,- isLoadingLlmKey,- isPaymentRequired,- refreshLlmApiKey,-}: LlmApiKeyManagerProps) {- const { t } = useTranslation();- const [showLlmApiKey, setShowLlmApiKey] = useState(false);-- const handleRefreshLlmApiKey = async () => {- await mutateWithToast(refreshLlmApiKey, undefined, {- success: t(I18nKey.SETTINGS$API_KEY_REFRESHED),- error: t(I18nKey.ERROR$GENERIC),- });- };-- // Show paywall if payment is required- if (isPaymentRequired) {- return <LlmApiKeyPaywall />;- }-- if (isLoadingLlmKey || !llmApiKey) {- return null;- }-- return (- <div className="border-b border-gray-200 pb-6 mb-6 flex flex-col gap-6">- <h3 className="text-xl font-medium text-white">- {t(I18nKey.SETTINGS$LLM_API_KEY)}- </h3>- <div className="flex items-center justify-between">- <BrandButton- type="button"- variant="primary"- onClick={handleRefreshLlmApiKey}- isDisabled={refreshLlmApiKey.isPending}- >- {refreshLlmApiKey.isPending ? (- <LoadingSpinner size="small" />- ) : (- t(I18nKey.SETTINGS$REFRESH_LLM_API_KEY)- )}- </BrandButton>- </div>- <div>- <p className="text-sm text-gray-300 mb-2">- {t(I18nKey.SETTINGS$LLM_API_KEY_DESCRIPTION)}- </p>- <div className="flex items-center gap-2">- <div className="flex-1 bg-base-tertiary rounded-md py-2 flex items-center">- <div className="flex-1">- {llmApiKey.key ? (- <div className="flex items-center">- {showLlmApiKey ? (- <span className="text-white font-mono">- {llmApiKey.key}- </span>- ) : (- <span className="text-white">{"β’".repeat(20)}</span>- )}- </div>- ) : (- <span className="text-white">- {t(I18nKey.API$NO_KEY_AVAILABLE)}- </span>- )}- </div>- <div className="flex items-center">- {llmApiKey.key && (- <button- type="button"- className="text-white hover:text-gray-300 mr-2 cursor-pointer"- aria-label={showLlmApiKey ? "Hide API key" : "Show API key"}- title={showLlmApiKey ? "Hide API key" : "Show API key"}- onClick={() => setShowLlmApiKey(!showLlmApiKey)}- >- {showLlmApiKey ? (- <FaEyeSlash size={20} />- ) : (- <FaEye size={20} />- )}- </button>- )}- <button- type="button"- className="text-white hover:text-gray-300 mr-2 cursor-pointer"- aria-label="Copy API key"- title="Copy API key"- onClick={() => {- if (llmApiKey.key) {- navigator.clipboard.writeText(llmApiKey.key);- displaySuccessToast(t(I18nKey.SETTINGS$API_KEY_COPIED));- }- }}- >- <FaCopy size={20} />- </button>- </div>- </div>- </div>- </div>- </div>- );-}--interface ApiKeysTableProps {- apiKeys: ApiKey[];- isLoading: boolean;- onDeleteKey: (key: ApiKey) => void;-}--function ApiKeysTable({ apiKeys, isLoading, onDeleteKey }: ApiKeysTableProps) {- const { t } = useTranslation();-- const formatDate = (dateString: string | null) => {- if (!dateString) return "Never";- return new Date(dateString).toLocaleString();- };-- if (isLoading) {- return (- <div className="flex justify-center p-4">- <LoadingSpinner size="large" />- </div>- );- }-- if (!Array.isArray(apiKeys) || apiKeys.length === 0) {- return null;- }-- return (- <div className="border border-tertiary rounded-md overflow-hidden">- <table className="w-full">- <thead className="bg-base-tertiary">- <tr>- <th className="text-left p-3 text-sm font-medium">- {t(I18nKey.SETTINGS$NAME)}- </th>- <th className="text-left p-3 text-sm font-medium">- {t(I18nKey.SETTINGS$CREATED_AT)}- </th>- <th className="text-left p-3 text-sm font-medium">- {t(I18nKey.SETTINGS$LAST_USED)}- </th>- <th className="text-right p-3 text-sm font-medium">- {t(I18nKey.SETTINGS$ACTIONS)}- </th>- </tr>- </thead>- <tbody>- {apiKeys.map((key) => (- <tr key={key.id} className="border-t border-tertiary">- <td- className="p-3 text-sm truncate max-w-[160px]"- title={key.name}- >- {key.name}- </td>- <td className="p-3 text-sm">{formatDate(key.created_at)}</td>- <td className="p-3 text-sm">{formatDate(key.last_used_at)}</td>- <td className="p-3 text-right">- <button- type="button"- onClick={() => onDeleteKey(key)}- aria-label={`Delete ${key.name}`}- className="cursor-pointer"- >- <FaTrash size={16} />- </button>- </td>- </tr>- ))}- </tbody>- </table>- </div>- );-}--export function ApiKeysManager() {- const { t } = useTranslation();- const { data: apiKeys = [], isLoading, error } = useApiKeys();- const {- data: llmApiKey,- isLoading: isLoadingLlmKey,- isPaymentRequired,- } = useLlmApiKey();- const refreshLlmApiKey = useRefreshLlmApiKey();- const [createModalOpen, setCreateModalOpen] = useState(false);- const [deleteModalOpen, setDeleteModalOpen] = useState(false);- const [keyToDelete, setKeyToDelete] = useState<ApiKey | null>(null);- const [newlyCreatedKey, setNewlyCreatedKey] =- useState<CreateApiKeyResponse | null>(null);- const [showNewKeyModal, setShowNewKeyModal] = useState(false);-- // Display error toast if the query fails (but not for payment required)- if (error && !isPaymentRequired) {- displayErrorToast(t(I18nKey.ERROR$GENERIC));- }-- const handleKeyCreated = (newKey: CreateApiKeyResponse) => {- setNewlyCreatedKey(newKey);- setCreateModalOpen(false);- setShowNewKeyModal(true);- };-- const handleCloseCreateModal = () => {- setCreateModalOpen(false);- };-- const handleCloseDeleteModal = () => {- setDeleteModalOpen(false);- setKeyToDelete(null);- };-- const handleCloseNewKeyModal = () => {- setShowNewKeyModal(false);- setNewlyCreatedKey(null);- };-- const handleDeleteKey = (key: ApiKey) => {- setKeyToDelete(key);- setDeleteModalOpen(true);- };-- return (- <>- <div className="flex flex-col gap-6">- <LlmApiKeyManager- llmApiKey={llmApiKey}- isLoadingLlmKey={isLoadingLlmKey}- isPaymentRequired={isPaymentRequired}- refreshLlmApiKey={refreshLlmApiKey}- />-- <h3 className="text-xl font-medium text-white">- {t(I18nKey.SETTINGS$OPENHANDS_API_KEYS)}- </h3>-- <div className="flex items-center justify-between">- <BrandButton- type="button"- variant="primary"- onClick={() => setCreateModalOpen(true)}- >- {t(I18nKey.SETTINGS$CREATE_API_KEY)}- </BrandButton>- </div>-- <p className="text-sm text-gray-300">- <Trans- i18nKey={I18nKey.SETTINGS$API_KEYS_DESCRIPTION}- components={{- a: (- <a- href="https://docs.all-hands.dev/usage/cloud/cloud-api"- target="_blank"- rel="noopener noreferrer"- className="text-blue-400 hover:underline"- >- API documentation- </a>- ),- }}- />- </p>-- <ApiKeysTable- apiKeys={apiKeys}- isLoading={isLoading}- onDeleteKey={handleDeleteKey}- />- </div>-- {/* Create API Key Modal */}- <CreateApiKeyModal- isOpen={createModalOpen}- onClose={handleCloseCreateModal}- onKeyCreated={handleKeyCreated}- />-- {/* Delete API Key Modal */}- <DeleteApiKeyModal- isOpen={deleteModalOpen}- keyToDelete={keyToDelete}- onClose={handleCloseDeleteModal}- />-- {/* Show New API Key Modal */}- <NewApiKeyModal- isOpen={showNewKeyModal}- newlyCreatedKey={newlyCreatedKey}- onClose={handleCloseNewKeyModal}- />- </>- );-}diff --git a/src/components/features/settings/create-api-key-modal.tsx b/src/components/features/settings/create-api-key-modal.tsxdeleted file mode 100644index b933314aea..0000000000--- a/src/components/features/settings/create-api-key-modal.tsx+++ /dev/null@@ -1,100 +0,0 @@-import React, { useState } from "react";-import { useTranslation } from "react-i18next";-import { I18nKey } from "#/i18n/declaration";-import { BrandButton } from "#/components/features/settings/brand-button";-import { SettingsInput } from "#/components/features/settings/settings-input";-import { LoadingSpinner } from "#/components/shared/loading-spinner";-import { CreateApiKeyResponse } from "#/api/api-keys";-import { displayErrorToast } from "#/utils/custom-toast-handlers";-import { mutateWithToast } from "#/utils/mutate-with-toast";-import { ApiKeyModalBase } from "./api-key-modal-base";-import { useCreateApiKey } from "#/hooks/mutation/use-create-api-key";--interface CreateApiKeyModalProps {- isOpen: boolean;- onClose: () => void;- onKeyCreated: (newKey: CreateApiKeyResponse) => void;-}--export function CreateApiKeyModal({- isOpen,- onClose,- onKeyCreated,-}: CreateApiKeyModalProps) {- const { t } = useTranslation();- const [newKeyName, setNewKeyName] = useState("");-- const createApiKeyMutation = useCreateApiKey();-- const handleCreateKey = async () => {- if (!newKeyName.trim()) {- displayErrorToast(t(I18nKey.ERROR$REQUIRED_FIELD));- return;- }-- const newKey = await mutateWithToast(createApiKeyMutation, newKeyName, {- success: t(I18nKey.SETTINGS$API_KEY_CREATED),- error: t(I18nKey.ERROR$GENERIC),- }).catch(() => null);-- if (newKey) {- onKeyCreated(newKey);- setNewKeyName("");- }- };-- const handleCancel = () => {- setNewKeyName("");- onClose();- };-- const modalFooter = (- <>- <BrandButton- type="button"- variant="primary"- className="grow"- onClick={handleCreateKey}- isDisabled={createApiKeyMutation.isPending || !newKeyName.trim()}- >- {createApiKeyMutation.isPending ? (- <LoadingSpinner size="small" />- ) : (- t(I18nKey.BUTTON$CREATE)- )}- </BrandButton>- <BrandButton- type="button"- variant="secondary"- className="grow"- onClick={handleCancel}- isDisabled={createApiKeyMutation.isPending}- >- {t(I18nKey.BUTTON$CANCEL)}- </BrandButton>- </>- );-- return (- <ApiKeyModalBase- isOpen={isOpen}- title={t(I18nKey.SETTINGS$CREATE_API_KEY)}- footer={modalFooter}- >- <div data-testid="create-api-key-modal">- <p className="text-sm text-gray-300">- {t(I18nKey.SETTINGS$CREATE_API_KEY_DESCRIPTION)}- </p>- <SettingsInput- testId="api-key-name-input"- label={t(I18nKey.SETTINGS$NAME)}- placeholder={t(I18nKey.SETTINGS$API_KEY_NAME_PLACEHOLDER)}- value={newKeyName}- onChange={(value) => setNewKeyName(value)}- className="w-full mt-4"- type="text"- />- </div>- </ApiKeyModalBase>- );-}diff --git a/src/components/features/settings/delete-api-key-modal.tsx b/src/components/features/settings/delete-api-key-modal.tsxdeleted file mode 100644index ee716f9e7c..0000000000--- a/src/components/features/settings/delete-api-key-modal.tsx+++ /dev/null@@ -1,82 +0,0 @@-import React from "react";-import { useTranslation } from "react-i18next";-import { I18nKey } from "#/i18n/declaration";-import { BrandButton } from "#/components/features/settings/brand-button";-import { LoadingSpinner } from "#/components/shared/loading-spinner";-import { ApiKey } from "#/api/api-keys";-import { mutateWithToast } from "#/utils/mutate-with-toast";-import { ApiKeyModalBase } from "./api-key-modal-base";-import { useDeleteApiKey } from "#/hooks/mutation/use-delete-api-key";--interface DeleteApiKeyModalProps {- isOpen: boolean;- keyToDelete: ApiKey | null;- onClose: () => void;-}--export function DeleteApiKeyModal({- isOpen,- keyToDelete,- onClose,-}: DeleteApiKeyModalProps) {- const { t } = useTranslation();- const deleteApiKeyMutation = useDeleteApiKey();-- const handleDeleteKey = async () => {- if (!keyToDelete) return;-- const result = await mutateWithToast(deleteApiKeyMutation, keyToDelete.id, {- success: t(I18nKey.SETTINGS$API_KEY_DELETED),- error: t(I18nKey.ERROR$GENERIC),- }).catch(() => null);-- if (result !== null) {- onClose();- }- };-- if (!keyToDelete) return null;-- const modalFooter = (- <>- <BrandButton- type="button"- variant="danger"- className="grow"- onClick={handleDeleteKey}- isDisabled={deleteApiKeyMutation.isPending}- >- {deleteApiKeyMutation.isPending ? (- <LoadingSpinner size="small" />- ) : (- t(I18nKey.BUTTON$DELETE)- )}- </BrandButton>- <BrandButton- type="button"- variant="secondary"- className="grow"- onClick={onClose}- isDisabled={deleteApiKeyMutation.isPending}- >- {t(I18nKey.BUTTON$CANCEL)}- </BrandButton>- </>- );-- return (- <ApiKeyModalBase- isOpen={isOpen && !!keyToDelete}- title={t(I18nKey.SETTINGS$DELETE_API_KEY)}- footer={modalFooter}- >- <div data-testid="delete-api-key-modal">- <p className="text-sm break-all">- {t(I18nKey.SETTINGS$DELETE_API_KEY_CONFIRMATION, {- name: keyToDelete.name,- })}- </p>- </div>- </ApiKeyModalBase>- );-}diff --git a/src/components/features/settings/git-settings/gitlab-webhook-manager-state.tsx b/src/components/features/settings/git-settings/gitlab-webhook-manager-state.tsxdeleted file mode 100644index 1ea105769e..0000000000--- a/src/components/features/settings/git-settings/gitlab-webhook-manager-state.tsx+++ /dev/null@@ -1,31 +0,0 @@-import { useTranslation } from "react-i18next";-import { I18nKey } from "#/i18n/declaration";-import { cn } from "#/utils/utils";-import { Typography } from "#/ui/typography";--interface GitLabWebhookManagerStateProps {- className?: string;- titleKey: I18nKey;- messageKey: I18nKey;- messageColor?: string;-}--export function GitLabWebhookManagerState({- className,- titleKey,- messageKey,- messageColor = "text-gray-400",-}: GitLabWebhookManagerStateProps) {- const { t } = useTranslation();-- return (- <div className={cn("flex flex-col gap-4", className)}>- <Typography.H3 className="text-lg font-medium text-white">- {t(titleKey)}- </Typography.H3>- <Typography.Text className={cn("text-sm", messageColor)}>- {t(messageKey)}- </Typography.Text>- </div>- );-}diff --git a/src/components/features/settings/git-settings/gitlab-webhook-manager.tsx b/src/components/features/settings/git-settings/gitlab-webhook-manager.tsxdeleted file mode 100644index 38749645a8..0000000000--- a/src/components/features/settings/git-settings/gitlab-webhook-manager.tsx+++ /dev/null@@ -1,199 +0,0 @@-import React, { useState } from "react";-import { useTranslation } from "react-i18next";-import { I18nKey } from "#/i18n/declaration";-import { useGitLabResources } from "#/hooks/query/use-gitlab-resources-list";-import { useReinstallGitLabWebhook } from "#/hooks/mutation/use-reinstall-gitlab-webhook";-import { BrandButton } from "#/components/features/settings/brand-button";-import type { GitLabResource } from "#/api/integration-service/integration-service.types";-import { cn } from "#/utils/utils";-import { Typography } from "#/ui/typography";-import { WebhookStatusBadge } from "./webhook-status-badge";-import { GitLabWebhookManagerState } from "./gitlab-webhook-manager-state";--interface GitLabWebhookManagerProps {- className?: string;-}--export function GitLabWebhookManager({ className }: GitLabWebhookManagerProps) {- const { t } = useTranslation();- const [installingResource, setInstallingResource] = useState<string | null>(- null,- );- const [installationResults, setInstallationResults] = useState<- Map<string, { success: boolean; error: string | null }>- >(new Map());-- const { data, isLoading, isError } = useGitLabResources(true);- const reinstallMutation = useReinstallGitLabWebhook();-- const resources = data?.resources || [];-- const handleReinstall = async (resource: GitLabResource) => {- const key = `${resource.type}:${resource.id}`;- setInstallingResource(key);-- // Clear previous result for this resource- const newResults = new Map(installationResults);- newResults.delete(key);- setInstallationResults(newResults);-- try {- const result = await reinstallMutation.mutateAsync({- type: resource.type,- id: resource.id,- });-- // Store result for display- const resultsMap = new Map(installationResults);- resultsMap.set(key, {- success: result.success,- error: result.error,- });- setInstallationResults(resultsMap);- } catch (error: unknown) {- // Store error result- const resultsMap = new Map(installationResults);- const errorMessage =- error instanceof Error- ? error.message- : t(I18nKey.GITLAB$WEBHOOK_REINSTALL_FAILED);- resultsMap.set(key, {- success: false,- error: errorMessage,- });- setInstallationResults(resultsMap);- } finally {- setInstallingResource(null);- }- };-- const getResourceKey = (resource: GitLabResource) =>- `${resource.type}:${resource.id}`;-- if (isLoading) {- return (- <GitLabWebhookManagerState- className={className}- titleKey={I18nKey.GITLAB$WEBHOOK_MANAGER_TITLE}- messageKey={I18nKey.GITLAB$WEBHOOK_MANAGER_LOADING}- />- );- }-- if (isError) {- return (- <GitLabWebhookManagerState- className={className}- titleKey={I18nKey.GITLAB$WEBHOOK_MANAGER_TITLE}- messageKey={I18nKey.GITLAB$WEBHOOK_MANAGER_ERROR}- messageColor="text-red-400"- />- );- }-- if (resources.length === 0) {- return (- <GitLabWebhookManagerState- className={className}- titleKey={I18nKey.GITLAB$WEBHOOK_MANAGER_TITLE}- messageKey={I18nKey.GITLAB$WEBHOOK_MANAGER_NO_RESOURCES}- />- );- }-- return (- <div className={cn("flex flex-col gap-4", className)}>- <div className="flex items-center justify-between">- <Typography.H3 className="text-lg font-medium text-white">- {t(I18nKey.GITLAB$WEBHOOK_MANAGER_TITLE)}- </Typography.H3>- </div>-- <Typography.Text className="text-sm text-gray-400">- {t(I18nKey.GITLAB$WEBHOOK_MANAGER_DESCRIPTION)}- </Typography.Text>-- <div className="border border-neutral-700 rounded-lg overflow-hidden">- <table className="w-full">- <thead className="bg-neutral-800">- <tr>- <th className="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">- {t(I18nKey.GITLAB$WEBHOOK_COLUMN_RESOURCE)}- </th>- <th className="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">- {t(I18nKey.GITLAB$WEBHOOK_COLUMN_TYPE)}- </th>- <th className="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">- {t(I18nKey.GITLAB$WEBHOOK_COLUMN_STATUS)}- </th>- <th className="px-4 py-3 text-left text-xs font-medium text-gray-400 uppercase tracking-wider">- {t(I18nKey.GITLAB$WEBHOOK_COLUMN_ACTION)}- </th>- </tr>- </thead>- <tbody className="divide-y divide-neutral-700">- {resources.map((resource) => {- const key = getResourceKey(resource);- const result = installationResults.get(key);- const isInstalling = installingResource === key;-- return (- <tr- key={key}- className="hover:bg-neutral-800/50 transition-colors"- >- <td className="px-4 py-3">- <div className="flex flex-col">- <Typography.Text className="text-sm font-medium text-white">- {resource.name}- </Typography.Text>- <Typography.Text className="text-xs text-gray-400">- {resource.full_path}- </Typography.Text>- </div>- </td>- <td className="px-4 py-3">- <Typography.Text className="text-sm text-gray-300 capitalize">- {resource.type}- </Typography.Text>- </td>- <td className="px-4 py-3">- <div className="flex flex-col gap-1">- <WebhookStatusBadge- webhookInstalled={resource.webhook_installed}- installationResult={result}- />- {result?.error && (- <Typography.Text className="text-xs text-red-400">- {result.error}- </Typography.Text>- )}- </div>- </td>- <td className="px-4 py-3">- <BrandButton- type="button"- variant="primary"- onClick={() => handleReinstall(resource)}- isDisabled={- installingResource !== null ||- resource.webhook_installed ||- result?.success === true- }- className="cursor-pointer"- testId={`reinstall-webhook-button-${key}`}- >- {isInstalling- ? t(I18nKey.GITLAB$WEBHOOK_REINSTALLING)- : t(I18nKey.GITLAB$WEBHOOK_REINSTALL)}- </BrandButton>- </td>- </tr>- );- })}- </tbody>- </table>- </div>- </div>- );-}diff --git a/src/components/features/settings/sdk-settings/sdk-section-page.tsx b/src/components/features/settings/sdk-settings/sdk-section-page.tsxindex 0d9584759d..46785b76b9 100644--- a/src/components/features/settings/sdk-settings/sdk-section-page.tsx+++ b/src/components/features/settings/sdk-settings/sdk-section-page.tsx@@ -4,13 +4,10 @@ import { useTranslation } from "react-i18next";import { BrandButton } from "#/components/features/settings/brand-button";import { LlmSettingsInputsSkeleton } from "#/components/features/settings/llm-settings/llm-settings-inputs-skeleton";import { useSaveSettings } from "#/hooks/mutation/use-save-settings";-import { usePermission } from "#/hooks/organizations/use-permissions";import {useAgentSettingsSchema,useConversationSettingsSchema,} from "#/hooks/query/use-agent-settings-schema";-import { useConfig } from "#/hooks/query/use-config";-import { useMe } from "#/hooks/query/use-me";import { useSettings } from "#/hooks/query/use-settings";import { I18nKey } from "#/i18n/declaration";import { Typography } from "#/ui/typography";@@ -166,13 +163,7 @@ export function SdkSectionPage({: agentSchemaQuery;const schema = activeSchemaQuery.data;const isSchemaLoading = activeSchemaQuery.isLoading;- const { data: config } = useConfig();- const { data: me } = useMe();- const { hasPermission } = usePermission(me?.role ?? "member");-- const isOssMode = config?.app_mode === "oss";- const isReadOnly =- scope === "org" && !isOssMode ? !hasPermission("edit_llm_settings") : false;+ const isReadOnly = false;const [view, setView] = React.useState<SettingsView>("basic");const [values, setValues] = React.useState<SettingsFormValues>({});diff --git a/src/components/features/settings/secrets-settings/secret-form.tsx b/src/components/features/settings/secrets-settings/secret-form.tsxindex 047341b80e..351ce27026 100644--- a/src/components/features/settings/secrets-settings/secret-form.tsx+++ b/src/components/features/settings/secrets-settings/secret-form.tsx@@ -9,7 +9,6 @@ import { cn } from "#/utils/utils";import { BrandButton } from "../brand-button";import { useSearchSecrets } from "#/hooks/query/use-get-secrets";import { OptionalTag } from "../optional-tag";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";interface SecretFormProps {mode: "add" | "edit";@@ -24,7 +23,6 @@ export function SecretForm({}: SecretFormProps) {const queryClient = useQueryClient();const { t } = useTranslation();- const { organizationId } = useSelectedOrganizationId();const { data: secrets } = useSearchSecrets();const { mutate: createSecret } = useCreateSecret();@@ -41,12 +39,11 @@ export function SecretForm({"";const invalidateSecrets = () => {- // Invalidate both the new infinite query and the legacy query for compatibilityqueryClient.invalidateQueries({queryKey: ["secrets-search"],});queryClient.invalidateQueries({- queryKey: ["secrets", organizationId],+ queryKey: ["secrets"],});};@@ -127,7 +124,7 @@ export function SecretForm({requireddefaultValue={mode === "edit" && selectedSecret ? selectedSecret : ""}placeholder={t("SECRETS$API_KEY_EXAMPLE")}- pattern="^\S*$"+ pattern="^\\S*$"/>{error && <p className="text-red-500 text-sm">{error}</p>}diff --git a/src/components/features/settings/settings-navigation.tsx b/src/components/features/settings/settings-navigation.tsxindex 3331f730dc..7256ac6e70 100644--- a/src/components/features/settings/settings-navigation.tsx+++ b/src/components/features/settings/settings-navigation.tsx@@ -4,9 +4,7 @@ import { Typography } from "#/ui/typography";import { I18nKey } from "#/i18n/declaration";import SettingsIcon from "#/icons/settings-gear.svg?react";import CloseIcon from "#/icons/close.svg?react";-import { OrgSelector } from "../org/org-selector";import { SettingsNavRenderedItem } from "#/hooks/use-settings-nav-items";-import { useShouldHideOrgSelector } from "#/hooks/use-should-hide-org-selector";import { SettingsNavHeader } from "./settings-nav-header";import { SettingsNavDivider } from "./settings-nav-divider";import { SettingsNavLink } from "./settings-nav-link";@@ -23,26 +21,21 @@ export function SettingsNavigation({navigationItems,}: SettingsNavigationProps) {const { t } = useTranslation();- const shouldHideSelector = useShouldHideOrgSelector();return (<>- {/* Mobile backdrop */}{isMobileMenuOpen && (<divclassName="fixed inset-0 bg-black bg-opacity-50 z-40 md:hidden"onClick={onCloseMobileMenu}/>)}- {/* Navigation sidebar */}<navdata-testid="settings-navbar"className={cn("flex flex-col gap-6 transition-transform duration-300 ease-in-out",- // Mobile: full screen overlay with dark background matching desktop"fixed inset-0 z-50 w-full bg-[#050505] p-4 transform md:transform-none",isMobileMenuOpen ? "translate-x-0" : "-translate-x-full",- // Desktop: static sidebar"md:relative md:translate-x-0 md:w-64 md:p-0 md:bg-transparent",)}>@@ -51,7 +44,6 @@ export function SettingsNavigation({<SettingsIcon width={16} height={16} /><Typography.H2>{t(I18nKey.SETTINGS$TITLE)}</Typography.H2></div>- {/* Close button - only visible on mobile */}<buttontype="button"onClick={onCloseMobileMenu}@@ -62,8 +54,6 @@ export function SettingsNavigation({</button></div>- {!shouldHideSelector && <OrgSelector />}-<div className="flex flex-col gap-2">{navigationItems.map((renderedItem, index) => {if (renderedItem.type === "header") {diff --git a/src/components/features/sidebar/user-actions.tsx b/src/components/features/sidebar/user-actions.tsxindex 6fc5623fa1..fea17bf628 100644--- a/src/components/features/sidebar/user-actions.tsx+++ b/src/components/features/sidebar/user-actions.tsx@@ -1,9 +1,6 @@import React from "react";-import ReactDOM from "react-dom";import { UserAvatar } from "./user-avatar";-import { useMe } from "#/hooks/query/use-me";import { UserContextMenu } from "../user/user-context-menu";-import { InviteOrganizationMemberModal } from "../org/invite-organization-member-modal";import { cn } from "#/utils/utils";interface UserActionsProps {@@ -12,18 +9,11 @@ interface UserActionsProps {}export function UserActions({ user, isLoading }: UserActionsProps) {- const { data: me } = useMe();const [accountContextMenuIsVisible, setAccountContextMenuIsVisible] =React.useState(false);- // Counter that increments each time the menu hides, used as a React key- // to force UserContextMenu to remount with fresh state (resets dropdown- // open/close, search text, and scroll position in the org selector).const [menuResetCount, setMenuResetCount] = React.useState(0);- const [inviteMemberModalIsOpen, setInviteMemberModalIsOpen] =- React.useState(false);const hideTimeoutRef = React.useRef<number | null>(null);- // Clean up timeout on unmountReact.useEffect(() => () => {if (hideTimeoutRef.current) {@@ -34,7 +24,6 @@ export function UserActions({ user, isLoading }: UserActionsProps) {);const showAccountMenu = () => {- // Cancel any pending hide to allow diagonal mouse movement to menuif (hideTimeoutRef.current) {clearTimeout(hideTimeoutRef.current);hideTimeoutRef.current = null;@@ -43,7 +32,6 @@ export function UserActions({ user, isLoading }: UserActionsProps) {};const hideAccountMenu = () => {- // Delay hiding to allow diagonal mouse movement to menuhideTimeoutRef.current = window.setTimeout(() => {setAccountContextMenuIsVisible(false);setMenuResetCount((c) => c + 1);@@ -61,42 +49,23 @@ export function UserActions({ user, isLoading }: UserActionsProps) {}};- const openInviteMemberModal = () => {- setInviteMemberModalIsOpen(true);- };-return (- <>+ <div+ data-testid="user-actions"+ className="relative cursor-pointer group"+ onMouseEnter={showAccountMenu}+ onMouseLeave={hideAccountMenu}+ >+ <UserAvatar avatarUrl={user?.avatar_url} isLoading={isLoading} />+<div- data-testid="user-actions"- className="relative cursor-pointer group"- onMouseEnter={showAccountMenu}- onMouseLeave={hideAccountMenu}+ className={cn(+ "opacity-0 pointer-events-none group-hover:opacity-100 group-hover:pointer-events-auto",+ accountContextMenuIsVisible && "opacity-100 pointer-events-auto",+ )}>- <UserAvatar avatarUrl={user?.avatar_url} isLoading={isLoading} />-- <div- className={cn(- "opacity-0 pointer-events-none group-hover:opacity-100 group-hover:pointer-events-auto",- accountContextMenuIsVisible && "opacity-100 pointer-events-auto",- )}- >- <UserContextMenu- key={menuResetCount}- type={me?.role ?? "member"}- onClose={closeAccountMenu}- onOpenInviteModal={openInviteMemberModal}- />- </div>+ <UserContextMenu key={menuResetCount} onClose={closeAccountMenu} /></div>-- {inviteMemberModalIsOpen &&- ReactDOM.createPortal(- <InviteOrganizationMemberModal- onClose={() => setInviteMemberModalIsOpen(false)}- />,- document.getElementById("portal-root") || document.body,- )}- </>+ </div>);}diff --git a/src/components/features/user/user-context-menu.tsx b/src/components/features/user/user-context-menu.tsxindex 89e85c624b..e67ac85e5a 100644--- a/src/components/features/user/user-context-menu.tsx+++ b/src/components/features/user/user-context-menu.tsx@@ -1,75 +1,25 @@import React from "react";import { useTranslation } from "react-i18next";-import { IoLogOutOutline, IoPersonAddOutline } from "react-icons/io5";-import { useLogout } from "#/hooks/mutation/use-logout";-import { OrganizationUserRole } from "#/types/org";-import { useOrgTypeAndAccess } from "#/hooks/use-org-type-and-access";import { cn } from "#/utils/utils";-import { OrgSelector } from "../org/org-selector";-import { I18nKey } from "#/i18n/declaration";import { useSettingsNavItems } from "#/hooks/use-settings-nav-items";import DocumentIcon from "#/icons/document.svg?react";-import { ContextMenuListItem } from "../context-menu/context-menu-list-item";import { ContextMenuContainer } from "../context-menu/context-menu-container";-import { ContextMenuCTA } from "../context-menu/context-menu-cta";import { ContextMenuNavLink } from "../context-menu/context-menu-nav-link";-import { useShouldHideOrgSelector } from "#/hooks/use-should-hide-org-selector";-import { useBreakpoint } from "#/hooks/use-breakpoint";import { SettingsNavHeader } from "../settings/settings-nav-header";import { SettingsNavDivider } from "../settings/settings-nav-divider";-import { useAppMode } from "#/hooks/use-app-mode";+import { I18nKey } from "#/i18n/declaration";-// Shared className for context menu list items in the user context menuconst contextMenuListItemClassName = cn("flex items-center gap-2 p-2 h-auto hover:bg-white/10 hover:text-white rounded text-xs",);interface UserContextMenuProps {- type: OrganizationUserRole;onClose: () => void;- onOpenInviteModal: () => void;}-export function UserContextMenu({- type,- onClose,- onOpenInviteModal,-}: UserContextMenuProps) {+export function UserContextMenu({ onClose }: UserContextMenuProps) {const { t } = useTranslation();- const { mutate: logout } = useLogout();- const { isPersonalOrg } = useOrgTypeAndAccess();const settingsNavItems = useSettingsNavItems();- const shouldHideSelector = useShouldHideOrgSelector();- const isMobile = useBreakpoint(768);- const { isSaas, isEnterpriseCloud } = useAppMode();-- // Keep all nav items including headers and dividers for proper section grouping- const navItems = settingsNavItems;-- const isMember = type === "member";-- // Check if the ORG SETTINGS header exists in nav items- const hasOrgHeader = navItems.some(- (item) =>- item.type === "header" &&- item.text === I18nKey.SETTINGS$ORG_SETTINGS_HEADER,- );-- // Show invite button for admin/owner in team orgs- const showInviteButton = !isMember && !isPersonalOrg;-- // CTA only renders in SaaS Cloud desktop mode- const isCTAEnabled = isEnterpriseCloud && !isMobile;-- const handleLogout = () => {- logout();- onClose();- };-- const handleInviteMemberClick = () => {- onOpenInviteModal();- onClose();- };return (<ContextMenuContainer testId="user-context-menu" onClose={onClose}>@@ -78,67 +28,35 @@ export function UserContextMenu({{t(I18nKey.ORG$ACCOUNT)}</h3>- <div className="flex flex-col items-start gap-0">- {!shouldHideSelector && (- <div className="w-full relative mb-2">- <OrgSelector />- </div>- )}-- <div className="flex flex-col items-start gap-0 w-full">- {/* Show Invite button at top if no ORG SETTINGS header exists */}- {showInviteButton && !hasOrgHeader && (- <ContextMenuListItem- onClick={handleInviteMemberClick}- className={contextMenuListItemClassName}- >- <IoPersonAddOutline className="text-white" size={16} />- {t(I18nKey.ORG$INVITE_ORG_MEMBERS)}- </ContextMenuListItem>- )}-- {navItems.map((renderedItem, index) => {- if (renderedItem.type === "header") {- const isOrgHeader =- renderedItem.text === I18nKey.SETTINGS$ORG_SETTINGS_HEADER;- return (- <React.Fragment key={`header-${renderedItem.text}`}>- <SettingsNavHeader- text={renderedItem.text}- className="px-2 pt-2 pb-1"- />- {/* Add Invite Organization Members right after ORG SETTINGS header */}- {isOrgHeader && showInviteButton && (- <ContextMenuListItem- onClick={handleInviteMemberClick}- className={contextMenuListItemClassName}- >- <IoPersonAddOutline className="text-white" size={16} />- {t(I18nKey.ORG$INVITE_ORG_MEMBERS)}- </ContextMenuListItem>- )}- </React.Fragment>- );- }-- if (renderedItem.type === "divider") {- return (- <SettingsNavDivider- key={`divider-${index}`}- className="my-1.5"- />- );- }+ <div className="flex flex-col items-start gap-0 w-full">+ {settingsNavItems.map((renderedItem, index) => {+ if (renderedItem.type === "header") {+ return (+ <SettingsNavHeader+ key={`header-${renderedItem.text}`}+ text={renderedItem.text}+ className="px-2 pt-2 pb-1"+ />+ );+ }+ if (renderedItem.type === "divider") {return (- <ContextMenuNavLink- key={renderedItem.item.to}- item={renderedItem.item}- onClick={onClose}+ <SettingsNavDivider+ key={`divider-${index}`}+ className="my-1.5"/>);- })}- </div>+ }++ return (+ <ContextMenuNavLink+ key={renderedItem.item.to}+ item={renderedItem.item}+ onClick={onClose}+ />+ );+ })}<SettingsNavDivider className="my-1.5" />@@ -147,26 +65,13 @@ export function UserContextMenu({target="_blank"rel="noopener noreferrer"onClick={onClose}- className="flex items-center gap-2 p-2 cursor-pointer hover:bg-white/10 hover:text-white rounded w-full text-xs"+ className={contextMenuListItemClassName}><DocumentIcon className="text-white" width={16} height={16} />{t(I18nKey.SIDEBAR$DOCS)}</a>-- {/* Only show logout in saas mode - oss mode has no session to invalidate */}- {isSaas && (- <ContextMenuListItem- onClick={handleLogout}- className={contextMenuListItemClassName}- >- <IoLogOutOutline className="text-white" size={16} />- {t(I18nKey.ACCOUNT_SETTINGS$LOGOUT)}- </ContextMenuListItem>- )}</div></div>-- {isCTAEnabled && <ContextMenuCTA />}</ContextMenuContainer>);}diff --git a/src/components/features/waitlist/email-verification-modal.tsx b/src/components/features/waitlist/email-verification-modal.tsxdeleted file mode 100644index 751a0fa106..0000000000--- a/src/components/features/waitlist/email-verification-modal.tsx+++ /dev/null@@ -1,70 +0,0 @@-import { useTranslation } from "react-i18next";-import { I18nKey } from "#/i18n/declaration";-import OpenHandsLogo from "#/assets/branding/openhands-logo.svg?react";-import { ModalBackdrop } from "#/components/shared/modals/modal-backdrop";-import { ModalBody } from "#/components/shared/modals/modal-body";-import { TermsAndPrivacyNotice } from "#/components/shared/terms-and-privacy-notice";-import { BrandButton } from "../settings/brand-button";-import { useEmailVerification } from "#/hooks/use-email-verification";--interface EmailVerificationModalProps {- onClose: () => void;- userId?: string | null;- wasRateLimited?: boolean;-}--export function EmailVerificationModal({- onClose,- userId,- wasRateLimited = false,-}: EmailVerificationModalProps) {- const { t } = useTranslation();- const {- resendEmailVerification,- isResendingVerification: isResending,- isCooldownActive,- formattedCooldownTime,- } = useEmailVerification();-- let resendButtonLabel: string;- if (isResending) {- resendButtonLabel = t(I18nKey.SETTINGS$SENDING);- } else if (isCooldownActive) {- resendButtonLabel = `${t(I18nKey.SETTINGS$RESEND_VERIFICATION)} (${formattedCooldownTime})`;- } else {- resendButtonLabel = t(I18nKey.SETTINGS$RESEND_VERIFICATION);- }-- // Show different message when rate limited - user should check their inbox- // for the verification email sent earlier- const headerMessage = wasRateLimited- ? t(I18nKey.AUTH$CHECK_INBOX_FOR_VERIFICATION_EMAIL)- : t(I18nKey.AUTH$PLEASE_CHECK_EMAIL_TO_VERIFY);-- return (- <ModalBackdrop onClose={onClose}>- <ModalBody className="border border-tertiary">- <OpenHandsLogo width={68} height={46} />- <div className="flex flex-col gap-2 w-full items-center text-center">- <h1 className="text-2xl font-bold">{headerMessage}</h1>- </div>-- <div className="flex flex-col gap-3 w-full mt-4">- <BrandButton- type="button"- variant="primary"- onClick={() =>- resendEmailVerification({ userId, isAuthFlow: true })- }- isDisabled={isResending || isCooldownActive}- className="w-full font-semibold"- >- {resendButtonLabel}- </BrandButton>- </div>-- <TermsAndPrivacyNotice />- </ModalBody>- </ModalBackdrop>- );-}diff --git a/src/components/features/waitlist/reauth-modal.tsx b/src/components/features/waitlist/reauth-modal.tsxdeleted file mode 100644index 8da9935865..0000000000--- a/src/components/features/waitlist/reauth-modal.tsx+++ /dev/null@@ -1,23 +0,0 @@-import React from "react";-import { useTranslation } from "react-i18next";-import { ModalBackdrop } from "#/components/shared/modals/modal-backdrop";-import { ModalBody } from "#/components/shared/modals/modal-body";-import { I18nKey } from "#/i18n/declaration";-import OpenHandsLogo from "#/assets/branding/openhands-logo.svg?react";--export function ReauthModal() {- const { t } = useTranslation();-- return (- <ModalBackdrop>- <ModalBody className="border border-tertiary">- <OpenHandsLogo width={68} height={46} />- <div className="flex flex-col gap-2 w-full items-center text-center">- <h1 className="text-2xl font-bold">- {t(I18nKey.AUTH$LOGGING_BACK_IN)}- </h1>- </div>- </ModalBody>- </ModalBackdrop>- );-}diff --git a/src/components/features/waitlist/tos-checkbox.tsx b/src/components/features/waitlist/tos-checkbox.tsxdeleted file mode 100644index b2fdafcbc7..0000000000--- a/src/components/features/waitlist/tos-checkbox.tsx+++ /dev/null@@ -1,26 +0,0 @@-import { useTranslation } from "react-i18next";-import { I18nKey } from "#/i18n/declaration";--interface TOSCheckboxProps {- onChange: () => void;-}--export function TOSCheckbox({ onChange }: TOSCheckboxProps) {- const { t } = useTranslation();- return (- <label className="flex items-center gap-2">- <input type="checkbox" onChange={onChange} />- <span>- {t(I18nKey.TOS$ACCEPT)}{" "}- <a- href="https://www.all-hands.dev/tos"- target="_blank"- rel="noopener noreferrer"- className="underline underline-offset-2 text-blue-500 hover:text-blue-700"- >- {t(I18nKey.TOS$TERMS)}- </a>- </span>- </label>- );-}diff --git a/src/constants/settings-nav.tsx b/src/constants/settings-nav.tsxindex e2f34d1b8c..6047b42ac6 100644--- a/src/constants/settings-nav.tsx+++ b/src/constants/settings-nav.tsx@@ -1,5 +1,3 @@-import { FiUsers, FiBriefcase } from "react-icons/fi";-import CreditCardIcon from "#/icons/credit-card.svg?react";import KeyIcon from "#/icons/key.svg?react";import LightbulbIcon from "#/icons/lightbulb.svg?react";import LockIcon from "#/icons/lock.svg?react";@@ -8,121 +6,13 @@ import ServerProcessIcon from "#/icons/server-process.svg?react";import SettingsGearIcon from "#/icons/settings-gear.svg?react";import CircuitIcon from "#/icons/u-circuit.svg?react";import PuzzlePieceIcon from "#/icons/u-puzzle-piece.svg?react";-import UserIcon from "#/icons/user.svg?react";--export type SettingsNavSection =- | "org"- | "personal"- | "user"- | "billing"- | "other";export interface SettingsNavItem {icon: React.ReactElement;to: string;text: string;- section?: SettingsNavSection;}-export const SAAS_NAV_ITEMS: SettingsNavItem[] = [- {- icon: <FiBriefcase size={22} />,- to: "/settings/org",- text: "SETTINGS$NAV_ORGANIZATION",- section: "org",- },- {- icon: <FiUsers size={22} />,- to: "/settings/org-members",- text: "SETTINGS$NAV_ORG_MEMBERS",- section: "org",- },- {- icon: <CircuitIcon width={22} height={22} />,- to: "/settings/org-defaults",- text: "COMMON$LANGUAGE_MODEL_LLM",- section: "org",- },- {- icon: <MemoryIcon width={22} height={22} />,- to: "/settings/org-defaults/condenser",- text: "SETTINGS$NAV_CONDENSER",- section: "org",- },- {- icon: <LockIcon width={22} height={22} />,- to: "/settings/org-defaults/verification",- text: "SETTINGS$NAV_VERIFICATION",- section: "org",- },- {- icon: <CircuitIcon width={22} height={22} />,- to: "/settings",- text: "COMMON$LANGUAGE_MODEL_LLM",- section: "personal",- },- {- icon: <MemoryIcon width={22} height={22} />,- to: "/settings/condenser",- text: "SETTINGS$NAV_CONDENSER",- section: "personal",- },- {- icon: <LockIcon width={22} height={22} />,- to: "/settings/verification",- text: "SETTINGS$NAV_VERIFICATION",- section: "personal",- },- {- icon: <KeyIcon width={22} height={22} />,- to: "/settings/api-keys",- text: "SETTINGS$NAV_API_KEYS",- section: "personal",- },- {- icon: <KeyIcon width={22} height={22} />,- to: "/settings/secrets",- text: "SETTINGS$NAV_SECRETS",- section: "personal",- },- {- icon: <ServerProcessIcon width={22} height={22} />,- to: "/settings/mcp",- text: "SETTINGS$NAV_MCP",- section: "personal",- },- {- icon: <UserIcon width={22} height={22} />,- to: "/settings/user",- text: "SETTINGS$NAV_USER",- section: "user",- },- {- icon: <SettingsGearIcon width={22} height={22} />,- to: "/settings/app",- text: "SETTINGS$NAV_APPLICATION",- section: "user",- },- {- icon: <CreditCardIcon width={22} height={22} />,- to: "/settings/billing",- text: "SETTINGS$NAV_BILLING",- section: "billing",- },- {- icon: <PuzzlePieceIcon width={22} height={22} />,- to: "/settings/integrations",- text: "SETTINGS$NAV_INTEGRATIONS",- section: "other",- },- {- icon: <LightbulbIcon width={22} height={22} />,- to: "/settings/skills",- text: "SETTINGS$NAV_SKILLS",- section: "other",- },-];-export const OSS_NAV_ITEMS: SettingsNavItem[] = [{icon: <CircuitIcon width={22} height={22} />,diff --git a/src/context/use-selected-organization.ts b/src/context/use-selected-organization.tsdeleted file mode 100644index 28c58ec4c4..0000000000--- a/src/context/use-selected-organization.ts+++ /dev/null@@ -1,28 +0,0 @@-import { useRevalidator } from "react-router";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";--interface SetOrganizationIdOptions {- /** Skip route revalidation. Useful for initial auto-selection to avoid duplicate API calls. */- skipRevalidation?: boolean;-}--export const useSelectedOrganizationId = () => {- const revalidator = useRevalidator();- const { organizationId, setOrganizationId: setOrganizationIdStore } =- useSelectedOrganizationStore();-- const setOrganizationId = (- newOrganizationId: string | null,- options?: SetOrganizationIdOptions,- ) => {- setOrganizationIdStore(newOrganizationId);- // Revalidate route to ensure the latest orgId is used.- // This is useful for redirecting the user away from admin-only org pages.- // Skip revalidation for initial auto-selection to avoid duplicate API calls.- if (!options?.skipRevalidation) {- revalidator.revalidate();- }- };-- return { organizationId, setOrganizationId };-};diff --git a/src/entry.client.tsx b/src/entry.client.tsxindex 84bf00f817..f8e8e9f808 100644--- a/src/entry.client.tsx+++ b/src/entry.client.tsx@@ -12,12 +12,10 @@ import "./i18n";import { QueryClientProvider } from "@tanstack/react-query";import { queryClient } from "./query-client-config";import { PostHogWrapper } from "./components/providers/posthog-wrapper";+import { shouldStartMockWorker } from "./mocks/should-start-mock-worker";async function prepareApp() {- if (- process.env.NODE_ENV === "development" &&- import.meta.env.VITE_MOCK_API === "true"- ) {+ if (shouldStartMockWorker()) {const { worker } = await import("./mocks/browser");await worker.start({diff --git a/src/hooks/mutation/stripe/use-create-stripe-checkout-session.ts b/src/hooks/mutation/stripe/use-create-stripe-checkout-session.tsdeleted file mode 100644index 59ddcb0c4b..0000000000--- a/src/hooks/mutation/stripe/use-create-stripe-checkout-session.ts+++ /dev/null@@ -1,12 +0,0 @@-import { useMutation } from "@tanstack/react-query";-import BillingService from "#/api/billing-service/billing-service.api";--export const useCreateStripeCheckoutSession = () =>- useMutation({- mutationFn: async (variables: { amount: number }) => {- const redirectUrl = await BillingService.createCheckoutSession(- variables.amount,- );- window.location.href = redirectUrl;- },- });diff --git a/src/hooks/mutation/use-accept-invitation.ts b/src/hooks/mutation/use-accept-invitation.tsdeleted file mode 100644index 886073d760..0000000000--- a/src/hooks/mutation/use-accept-invitation.ts+++ /dev/null@@ -1,36 +0,0 @@-import { useMutation, useQueryClient } from "@tanstack/react-query";-import { AxiosError } from "axios";-import { organizationService } from "#/api/organization-service/organization-service.api";--interface AcceptInvitationError {- detail: string;-}--export const useAcceptInvitation = () => {- const queryClient = useQueryClient();-- return useMutation({- mutationFn: ({ token }: { token: string }) =>- organizationService.acceptInvitation({ token }),- onSuccess: () => {- // Invalidate organizations query to refresh the list- queryClient.invalidateQueries({ queryKey: ["organizations"] });- },- // Note: Error handling is done in the component to allow for custom messages- // based on the error code- });-};--/**- * Extract the error code from an invitation acceptance error.- * @param error The Axios error from the accept invitation mutation- * @returns The error code string (e.g., 'invitation_expired', 'already_member')- */-export const getInvitationErrorCode = (- error: AxiosError<AcceptInvitationError>,-): string | null => {- if (error.response?.data?.detail) {- return error.response.data.detail;- }- return null;-};diff --git a/src/hooks/mutation/use-add-git-providers.ts b/src/hooks/mutation/use-add-git-providers.tsindex 782020f7d8..b902ffc73f 100644--- a/src/hooks/mutation/use-add-git-providers.ts+++ b/src/hooks/mutation/use-add-git-providers.ts@@ -2,12 +2,10 @@ import { useMutation, useQueryClient } from "@tanstack/react-query";import { SecretsService } from "#/api/secrets-service";import { Provider, ProviderToken } from "#/types/settings";import { useTracking } from "#/hooks/use-tracking";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";export const useAddGitProviders = () => {const queryClient = useQueryClient();const { trackGitProviderConnected } = useTracking();- const { organizationId } = useSelectedOrganizationId();return useMutation({mutationFn: ({@@ -16,7 +14,6 @@ export const useAddGitProviders = () => {providers: Record<Provider, ProviderToken>;}) => SecretsService.addGitProvider(providers),onSuccess: async (_, { providers }) => {- // Track which providers were connected (filter out empty tokens)const connectedProviders = Object.entries(providers).filter(([, value]) => value.token && value.token.trim() !== "").map(([key]) => key);@@ -28,7 +25,7 @@ export const useAddGitProviders = () => {}await queryClient.invalidateQueries({- queryKey: ["settings", "personal", organizationId],+ queryKey: ["settings", "personal"],});},meta: {diff --git a/src/hooks/mutation/use-add-mcp-server.ts b/src/hooks/mutation/use-add-mcp-server.tsindex aaa76ad651..60d34ca1f9 100644--- a/src/hooks/mutation/use-add-mcp-server.ts+++ b/src/hooks/mutation/use-add-mcp-server.ts@@ -8,7 +8,6 @@ import {MCPStdioServer,} from "#/types/settings";import { parseMcpConfig, toSdkMcpConfig } from "#/utils/mcp-config";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";type MCPServerType = "sse" | "stdio" | "shttp";@@ -26,7 +25,6 @@ interface MCPServerConfig {export function useAddMcpServer() {const queryClient = useQueryClient();const { data: settings } = useSettings();- const { organizationId } = useSelectedOrganizationId();return useMutation({mutationFn: async (server: MCPServerConfig): Promise<void> => {@@ -69,7 +67,7 @@ export function useAddMcpServer() {},onSuccess: () => {queryClient.invalidateQueries({- queryKey: ["settings", "personal", organizationId],+ queryKey: ["settings", "personal"],});},});diff --git a/src/hooks/mutation/use-claim-git-org.ts b/src/hooks/mutation/use-claim-git-org.tsdeleted file mode 100644index 09342d7055..0000000000--- a/src/hooks/mutation/use-claim-git-org.ts+++ /dev/null@@ -1,45 +0,0 @@-import { useMutation, useQueryClient } from "@tanstack/react-query";-import { useTranslation } from "react-i18next";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";-import { I18nKey } from "#/i18n/declaration";-import { gitClaimsQueryKey } from "#/hooks/query/use-git-organizations";-import {- displayErrorToast,- displaySuccessToast,-} from "#/utils/custom-toast-handlers";-import { retrieveAxiosErrorMessage } from "#/utils/retrieve-axios-error-message";--export const useClaimGitOrg = () => {- const queryClient = useQueryClient();- const { organizationId } = useSelectedOrganizationId();- const { t } = useTranslation();-- return useMutation({- mutationFn: ({- provider,- gitOrganization,- }: {- provider: string;- gitOrganization: string;- }) => {- if (!organizationId) throw new Error("Organization ID is required");- return organizationService.claimGitOrg({- orgId: organizationId,- provider,- gitOrganization,- });- },- onSuccess: () => {- displaySuccessToast(t(I18nKey.ORG$CLAIM_SUCCESS));- queryClient.invalidateQueries({- queryKey: gitClaimsQueryKey(organizationId),- });- },- onError: (error) => {- const errorMessage = retrieveAxiosErrorMessage(error);- displayErrorToast(errorMessage || t(I18nKey.ORG$CLAIM_ERROR));- },- meta: { disableToast: true },- });-};diff --git a/src/hooks/mutation/use-create-api-key.ts b/src/hooks/mutation/use-create-api-key.tsdeleted file mode 100644index 4ab31b53df..0000000000--- a/src/hooks/mutation/use-create-api-key.ts+++ /dev/null@@ -1,20 +0,0 @@-import { useMutation, useQueryClient } from "@tanstack/react-query";-import ApiKeysClient, { CreateApiKeyResponse } from "#/api/api-keys";-import { API_KEYS_QUERY_KEY } from "#/hooks/query/use-api-keys";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";--export function useCreateApiKey() {- const queryClient = useQueryClient();- const { organizationId } = useSelectedOrganizationId();-- return useMutation({- mutationFn: async (name: string): Promise<CreateApiKeyResponse> =>- ApiKeysClient.createApiKey(name),- onSuccess: () => {- // Invalidate the API keys query to trigger a refetch- queryClient.invalidateQueries({- queryKey: [API_KEYS_QUERY_KEY, organizationId],- });- },- });-}diff --git a/src/hooks/mutation/use-create-billing-session.ts b/src/hooks/mutation/use-create-billing-session.tsdeleted file mode 100644index f8f0716cb2..0000000000--- a/src/hooks/mutation/use-create-billing-session.ts+++ /dev/null@@ -1,19 +0,0 @@-import { useMutation } from "@tanstack/react-query";-import { useTranslation } from "react-i18next";-import { I18nKey } from "#/i18n/declaration";-import BillingService from "#/api/billing-service/billing-service.api";-import { displayErrorToast } from "#/utils/custom-toast-handlers";--export const useCreateBillingSession = () => {- const { t } = useTranslation();-- return useMutation({- mutationFn: BillingService.createBillingSessionResponse,- onSuccess: (data) => {- window.location.href = data;- },- onError: () => {- displayErrorToast(t(I18nKey.BILLING$ERROR_WHILE_CREATING_SESSION));- },- });-};diff --git a/src/hooks/mutation/use-delete-api-key.ts b/src/hooks/mutation/use-delete-api-key.tsdeleted file mode 100644index 9932343ce6..0000000000--- a/src/hooks/mutation/use-delete-api-key.ts+++ /dev/null@@ -1,21 +0,0 @@-import { useMutation, useQueryClient } from "@tanstack/react-query";-import ApiKeysClient from "#/api/api-keys";-import { API_KEYS_QUERY_KEY } from "#/hooks/query/use-api-keys";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";--export function useDeleteApiKey() {- const queryClient = useQueryClient();- const { organizationId } = useSelectedOrganizationId();-- return useMutation({- mutationFn: async (id: string): Promise<void> => {- await ApiKeysClient.deleteApiKey(id);- },- onSuccess: () => {- // Invalidate the API keys query to trigger a refetch- queryClient.invalidateQueries({- queryKey: [API_KEYS_QUERY_KEY, organizationId],- });- },- });-}diff --git a/src/hooks/mutation/use-delete-mcp-server.ts b/src/hooks/mutation/use-delete-mcp-server.tsindex 478fed462a..337ad3669e 100644--- a/src/hooks/mutation/use-delete-mcp-server.ts+++ b/src/hooks/mutation/use-delete-mcp-server.ts@@ -3,12 +3,10 @@ import { useSettings } from "#/hooks/query/use-settings";import SettingsService from "#/api/settings-service/settings-service.api";import { MCPConfig } from "#/types/settings";import { parseMcpConfig, toSdkMcpConfig } from "#/utils/mcp-config";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";export function useDeleteMcpServer() {const queryClient = useQueryClient();const { data: settings } = useSettings();- const { organizationId } = useSelectedOrganizationId();return useMutation({mutationFn: async (serverId: string): Promise<void> => {@@ -38,7 +36,7 @@ export function useDeleteMcpServer() {},onSuccess: () => {queryClient.invalidateQueries({- queryKey: ["settings", "personal", organizationId],+ queryKey: ["settings", "personal"],});},});diff --git a/src/hooks/mutation/use-delete-organization.ts b/src/hooks/mutation/use-delete-organization.tsdeleted file mode 100644index e8d41da277..0000000000--- a/src/hooks/mutation/use-delete-organization.ts+++ /dev/null@@ -1,36 +0,0 @@-import { useMutation, useQueryClient } from "@tanstack/react-query";-import { useNavigate } from "react-router";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";--export const useDeleteOrganization = () => {- const queryClient = useQueryClient();- const navigate = useNavigate();- const { organizationId, setOrganizationId } = useSelectedOrganizationId();-- return useMutation({- mutationFn: () => {- if (!organizationId) throw new Error("Organization ID is required");- return organizationService.deleteOrganization({ orgId: organizationId });- },- onSuccess: () => {- // Remove stale cache BEFORE clearing the selected organization.- // This prevents useAutoSelectOrganization from using the old currentOrgId- // when it runs during the re-render triggered by setOrganizationId(null).- // Using removeQueries (not invalidateQueries) ensures stale data is gone immediately.- queryClient.removeQueries({- queryKey: ["organizations"],- exact: true,- });- queryClient.removeQueries({- queryKey: ["organizations", organizationId],- });-- // Now clear the selected organization - useAutoSelectOrganization will- // wait for fresh data since the cache is empty- setOrganizationId(null);-- navigate("/");- },- });-};diff --git a/src/hooks/mutation/use-disconnect-git-org.ts b/src/hooks/mutation/use-disconnect-git-org.tsdeleted file mode 100644index 0c84126bb9..0000000000--- a/src/hooks/mutation/use-disconnect-git-org.ts+++ /dev/null@@ -1,38 +0,0 @@-import { useMutation, useQueryClient } from "@tanstack/react-query";-import { useTranslation } from "react-i18next";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";-import { I18nKey } from "#/i18n/declaration";-import { gitClaimsQueryKey } from "#/hooks/query/use-git-organizations";-import {- displayErrorToast,- displaySuccessToast,-} from "#/utils/custom-toast-handlers";-import { retrieveAxiosErrorMessage } from "#/utils/retrieve-axios-error-message";--export const useDisconnectGitOrg = () => {- const queryClient = useQueryClient();- const { organizationId } = useSelectedOrganizationId();- const { t } = useTranslation();-- return useMutation({- mutationFn: ({ claimId }: { claimId: string }) => {- if (!organizationId) throw new Error("Organization ID is required");- return organizationService.disconnectGitOrg({- orgId: organizationId,- claimId,- });- },- onSuccess: () => {- displaySuccessToast(t(I18nKey.ORG$DISCONNECT_SUCCESS));- queryClient.invalidateQueries({- queryKey: gitClaimsQueryKey(organizationId),- });- },- onError: (error) => {- const errorMessage = retrieveAxiosErrorMessage(error);- displayErrorToast(errorMessage || t(I18nKey.ORG$DISCONNECT_ERROR));- },- meta: { disableToast: true },- });-};diff --git a/src/hooks/mutation/use-invite-members-batch.ts b/src/hooks/mutation/use-invite-members-batch.tsdeleted file mode 100644index d82287da2c..0000000000--- a/src/hooks/mutation/use-invite-members-batch.ts+++ /dev/null@@ -1,38 +0,0 @@-import { useMutation, useQueryClient } from "@tanstack/react-query";-import { useTranslation } from "react-i18next";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";-import { I18nKey } from "#/i18n/declaration";-import {- displayErrorToast,- displaySuccessToast,-} from "#/utils/custom-toast-handlers";-import { retrieveAxiosErrorMessage } from "#/utils/retrieve-axios-error-message";--export const useInviteMembersBatch = () => {- const queryClient = useQueryClient();- const { organizationId } = useSelectedOrganizationId();- const { t } = useTranslation();-- return useMutation({- mutationFn: ({ emails }: { emails: string[] }) => {- if (!organizationId) {- throw new Error("Organization ID is required");- }- return organizationService.inviteMembers({- orgId: organizationId,- emails,- });- },- onSuccess: () => {- displaySuccessToast(t(I18nKey.ORG$INVITE_MEMBERS_SUCCESS));- queryClient.invalidateQueries({- queryKey: ["organizations", "members", organizationId],- });- },- onError: (error) => {- const errorMessage = retrieveAxiosErrorMessage(error);- displayErrorToast(errorMessage || t(I18nKey.ORG$INVITE_MEMBERS_ERROR));- },- });-};diff --git a/src/hooks/mutation/use-logout.ts b/src/hooks/mutation/use-logout.tsindex c0bc31f5a9..356f9014bc 100644--- a/src/hooks/mutation/use-logout.ts+++ b/src/hooks/mutation/use-logout.ts@@ -1,30 +1,21 @@import { useMutation, useQueryClient } from "@tanstack/react-query";import { usePostHog } from "posthog-js/react";-import AuthService from "#/api/auth-service/auth-service.api";-import { useConfig } from "../query/use-config";-import { clearLoginData } from "#/utils/local-storage";+import { openHands } from "#/api/open-hands-axios";export const useLogout = () => {const posthog = usePostHog();const queryClient = useQueryClient();- const { data: config } = useConfig();return useMutation({- mutationFn: () => AuthService.logout(config?.app_mode ?? "oss"),+ mutationFn: async () => {+ await openHands.post("/api/unset-provider-tokens");+ },onSuccess: async () => {queryClient.removeQueries({ queryKey: ["tasks"] });queryClient.removeQueries({ queryKey: ["settings"] });queryClient.removeQueries({ queryKey: ["user"] });queryClient.removeQueries({ queryKey: ["secrets"] });-- // Clear login method and last page from local storage- if (config?.app_mode === "saas") {- clearLoginData();- }-posthog.reset();-- // Refresh the page after all logout logic is completedwindow.location.reload();},});diff --git a/src/hooks/mutation/use-reinstall-gitlab-webhook.ts b/src/hooks/mutation/use-reinstall-gitlab-webhook.tsdeleted file mode 100644index af0f2b9afd..0000000000--- a/src/hooks/mutation/use-reinstall-gitlab-webhook.ts+++ /dev/null@@ -1,47 +0,0 @@-import { useMutation, useQueryClient } from "@tanstack/react-query";-import { useTranslation } from "react-i18next";-import { integrationService } from "#/api/integration-service/integration-service.api";-import type {- ResourceIdentifier,- ResourceInstallationResult,-} from "#/api/integration-service/integration-service.types";-import { I18nKey } from "#/i18n/declaration";-import {- displayErrorToast,- displaySuccessToast,-} from "#/utils/custom-toast-handlers";--/**- * Hook to reinstall webhook on a specific resource- */-export function useReinstallGitLabWebhook() {- const queryClient = useQueryClient();- const { t } = useTranslation();-- return useMutation<- ResourceInstallationResult,- Error,- ResourceIdentifier,- unknown- >({- mutationFn: (resource: ResourceIdentifier) =>- integrationService.reinstallGitLabWebhook({ resource }),- onSuccess: (data) => {- // Invalidate and refetch the resources list- queryClient.invalidateQueries({ queryKey: ["gitlab-resources"] });-- if (data.success) {- displaySuccessToast(t(I18nKey.GITLAB$WEBHOOK_REINSTALL_SUCCESS));- } else if (data.error) {- displayErrorToast(data.error);- } else {- displayErrorToast(t(I18nKey.GITLAB$WEBHOOK_REINSTALL_FAILED));- }- },- onError: (error) => {- const errorMessage =- error?.message || t(I18nKey.GITLAB$WEBHOOK_REINSTALL_FAILED);- displayErrorToast(errorMessage);- },- });-}diff --git a/src/hooks/mutation/use-remove-member.ts b/src/hooks/mutation/use-remove-member.tsdeleted file mode 100644index 583fe5a415..0000000000--- a/src/hooks/mutation/use-remove-member.ts+++ /dev/null@@ -1,38 +0,0 @@-import { useMutation, useQueryClient } from "@tanstack/react-query";-import { useTranslation } from "react-i18next";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";-import { I18nKey } from "#/i18n/declaration";-import {- displayErrorToast,- displaySuccessToast,-} from "#/utils/custom-toast-handlers";-import { retrieveAxiosErrorMessage } from "#/utils/retrieve-axios-error-message";--export const useRemoveMember = () => {- const queryClient = useQueryClient();- const { organizationId } = useSelectedOrganizationId();- const { t } = useTranslation();-- return useMutation({- mutationFn: ({ userId }: { userId: string }) => {- if (!organizationId) {- throw new Error("Organization ID is required");- }- return organizationService.removeMember({- orgId: organizationId,- userId,- });- },- onSuccess: () => {- displaySuccessToast(t(I18nKey.ORG$REMOVE_MEMBER_SUCCESS));- queryClient.invalidateQueries({- queryKey: ["organizations", "members", organizationId],- });- },- onError: (error) => {- const errorMessage = retrieveAxiosErrorMessage(error);- displayErrorToast(errorMessage || t(I18nKey.ORG$REMOVE_MEMBER_ERROR));- },- });-};diff --git a/src/hooks/mutation/use-resend-email-verification.ts b/src/hooks/mutation/use-resend-email-verification.tsdeleted file mode 100644index 2a8b8c4bb1..0000000000--- a/src/hooks/mutation/use-resend-email-verification.ts+++ /dev/null@@ -1,49 +0,0 @@-import { useMutation } from "@tanstack/react-query";-import { AxiosError } from "axios";-import { useTranslation } from "react-i18next";-import { I18nKey } from "#/i18n/declaration";-import { emailService } from "#/api/email-service/email-service.api";-import {- displaySuccessToast,- displayErrorToast,-} from "#/utils/custom-toast-handlers";-import { retrieveAxiosErrorMessage } from "#/utils/retrieve-axios-error-message";-import { ResendEmailVerificationParams } from "#/api/email-service/email.types";--interface UseResendEmailVerificationOptions {- onSuccess?: () => void;-}--export const useResendEmailVerification = (- options?: UseResendEmailVerificationOptions,-) => {- const { t } = useTranslation();-- return useMutation({- mutationFn: (params: ResendEmailVerificationParams) =>- emailService.resendEmailVerification(params),- onSuccess: () => {- displaySuccessToast(t(I18nKey.SETTINGS$VERIFICATION_EMAIL_SENT));- options?.onSuccess?.();- },- onError: (error: AxiosError) => {- // Check if it's a rate limit error (429)- if (error.response?.status === 429) {- // FastAPI returns errors in { detail: "..." } format- const errorData = error.response.data as- | { detail?: string }- | undefined;-- const rateLimitMessage =- errorData?.detail ||- retrieveAxiosErrorMessage(error) ||- t(I18nKey.SETTINGS$FAILED_TO_RESEND_VERIFICATION);-- displayErrorToast(rateLimitMessage);- } else {- // For other errors, show the generic error message- displayErrorToast(t(I18nKey.SETTINGS$FAILED_TO_RESEND_VERIFICATION));- }- },- });-};diff --git a/src/hooks/mutation/use-save-settings.ts b/src/hooks/mutation/use-save-settings.tsindex 2f0060d488..8f398eee5e 100644--- a/src/hooks/mutation/use-save-settings.ts+++ b/src/hooks/mutation/use-save-settings.ts@@ -1,7 +1,5 @@import { useMutation, useQueryClient } from "@tanstack/react-query";import { usePostHog } from "posthog-js/react";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";-import { organizationService } from "#/api/organization-service/organization-service.api";import SettingsService from "#/api/settings-service/settings-service.api";import {MCPConfig,@@ -13,11 +11,7 @@ import { useSettings } from "../query/use-settings";type SettingsUpdate = Partial<Settings> & Record<string, unknown>;-const saveSettingsMutationFn = async (- scope: SettingsScope,- settings: SettingsUpdate,- organizationId?: string | null,-) => {+const saveSettingsMutationFn = async (settings: SettingsUpdate) => {const settingsToSave: SettingsUpdate = { ...settings };delete settingsToSave.agent_settings_schema;delete settingsToSave.conversation_settings_schema;@@ -61,18 +55,6 @@ const saveSettingsMutationFn = async (settingsToSave.git_user_email = settingsToSave.git_user_email.trim();}- if (scope === "org") {- if (!organizationId) {- throw new Error("Organization ID is required for org settings saves");- }-- await organizationService.saveOrganizationSettings({- orgId: organizationId,- settings: settingsToSave,- });- return;- }-await SettingsService.saveSettings(settingsToSave);};@@ -80,7 +62,6 @@ export const useSaveSettings = (scope: SettingsScope = "personal") => {const posthog = usePostHog();const queryClient = useQueryClient();const { data: currentSettings } = useSettings(scope);- const { organizationId } = useSelectedOrganizationId();return useMutation({mutationFn: async (settings: SettingsUpdate) => {@@ -97,17 +78,12 @@ export const useSaveSettings = (scope: SettingsScope = "personal") => {});}- await saveSettingsMutationFn(scope, settings, organizationId);+ await saveSettingsMutationFn(settings);},onSuccess: async () => {await queryClient.invalidateQueries({- queryKey: ["settings", scope, organizationId],+ queryKey: ["settings", scope],});- if (scope === "org") {- await queryClient.invalidateQueries({- queryKey: ["settings", "personal", organizationId],- });- }},meta: {disableToast: true,diff --git a/src/hooks/mutation/use-switch-organization.ts b/src/hooks/mutation/use-switch-organization.tsdeleted file mode 100644index 170511e8bc..0000000000--- a/src/hooks/mutation/use-switch-organization.ts+++ /dev/null@@ -1,51 +0,0 @@-import { useMutation, useQueryClient } from "@tanstack/react-query";-import { useTranslation } from "react-i18next";-import { useMatch, useNavigate } from "react-router";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";-import { I18nKey } from "#/i18n/declaration";-import { displaySuccessToast } from "#/utils/custom-toast-handlers";-import { setSelectedOrg } from "#/utils/local-storage";--export const useSwitchOrganization = () => {- const { t } = useTranslation();- const queryClient = useQueryClient();- const { setOrganizationId } = useSelectedOrganizationId();- const navigate = useNavigate();- const conversationMatch = useMatch("/conversations/:conversationId");-- return useMutation({- mutationFn: ({- orgId,- }: {- orgId: string;- orgName: string;- isPersonal: boolean;- }) => organizationService.switchOrganization({ orgId }),- onSuccess: (_, { orgId, orgName, isPersonal }) => {- const message = isPersonal- ? t(I18nKey.ORG$SWITCHED_TO_PERSONAL_WORKSPACE)- : t(I18nKey.ORG$SWITCHED_TO_ORGANIZATION, { name: orgName });- displaySuccessToast(message);- // Invalidate the target org's /me query to ensure fresh data on every switch- queryClient.invalidateQueries({- queryKey: ["organizations", orgId, "me"],- });- // Update local state - this triggers automatic refetch for all org-scoped queries- // since their query keys include organizationId (e.g., ["settings", orgId], ["secrets", orgId])- setOrganizationId(orgId);- // Broadcast org change to other apps (e.g. Automations) via localStorage- setSelectedOrg(orgId);- // Invalidate conversations to fetch data for the new org context- queryClient.invalidateQueries({ queryKey: ["user", "conversations"] });- // Remove all individual conversation queries to clear any stale/null data- // from the previous org context- queryClient.removeQueries({ queryKey: ["user", "conversation"] });-- // Redirect to home if on a conversation page since org context has changed- if (conversationMatch) {- navigate("/");- }- },- });-};diff --git a/src/hooks/mutation/use-update-mcp-server.ts b/src/hooks/mutation/use-update-mcp-server.tsindex 15b0bb1406..46d71e2b70 100644--- a/src/hooks/mutation/use-update-mcp-server.ts+++ b/src/hooks/mutation/use-update-mcp-server.ts@@ -8,7 +8,6 @@ import {MCPStdioServer,} from "#/types/settings";import { parseMcpConfig, toSdkMcpConfig } from "#/utils/mcp-config";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";type MCPServerType = "sse" | "stdio" | "shttp";@@ -26,7 +25,6 @@ interface MCPServerConfig {export function useUpdateMcpServer() {const queryClient = useQueryClient();const { data: settings } = useSettings();- const { organizationId } = useSelectedOrganizationId();return useMutation({mutationFn: async ({@@ -77,7 +75,7 @@ export function useUpdateMcpServer() {},onSuccess: () => {queryClient.invalidateQueries({- queryKey: ["settings", "personal", organizationId],+ queryKey: ["settings", "personal"],});},});diff --git a/src/hooks/mutation/use-update-member-role.ts b/src/hooks/mutation/use-update-member-role.tsdeleted file mode 100644index cb398c6246..0000000000--- a/src/hooks/mutation/use-update-member-role.ts+++ /dev/null@@ -1,46 +0,0 @@-import { useMutation, useQueryClient } from "@tanstack/react-query";-import { useTranslation } from "react-i18next";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { OrganizationUserRole } from "#/types/org";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";-import { I18nKey } from "#/i18n/declaration";-import {- displayErrorToast,- displaySuccessToast,-} from "#/utils/custom-toast-handlers";-import { retrieveAxiosErrorMessage } from "#/utils/retrieve-axios-error-message";--export const useUpdateMemberRole = () => {- const queryClient = useQueryClient();- const { organizationId } = useSelectedOrganizationId();- const { t } = useTranslation();-- return useMutation({- mutationFn: async ({- userId,- role,- }: {- userId: string;- role: OrganizationUserRole;- }) => {- if (!organizationId) {- throw new Error("Organization ID is required to update member role");- }- return organizationService.updateMember({- orgId: organizationId,- userId,- role,- });- },- onSuccess: () => {- displaySuccessToast(t(I18nKey.ORG$UPDATE_ROLE_SUCCESS));- queryClient.invalidateQueries({- queryKey: ["organizations", "members", organizationId],- });- },- onError: (error) => {- const errorMessage = retrieveAxiosErrorMessage(error);- displayErrorToast(errorMessage || t(I18nKey.ORG$UPDATE_ROLE_ERROR));- },- });-};diff --git a/src/hooks/mutation/use-update-organization.ts b/src/hooks/mutation/use-update-organization.tsdeleted file mode 100644index a55500663b..0000000000--- a/src/hooks/mutation/use-update-organization.ts+++ /dev/null@@ -1,23 +0,0 @@-import { useMutation, useQueryClient } from "@tanstack/react-query";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";--export const useUpdateOrganization = () => {- const queryClient = useQueryClient();- const { organizationId } = useSelectedOrganizationId();-- return useMutation({- mutationFn: (name: string) => {- if (!organizationId) throw new Error("Organization ID is required");- return organizationService.updateOrganization({- orgId: organizationId,- name,- });- },- onSuccess: () => {- queryClient.invalidateQueries({- queryKey: ["organizations"],- });- },- });-};diff --git a/src/hooks/organizations/use-git-conversation-routing.ts b/src/hooks/organizations/use-git-conversation-routing.tsdeleted file mode 100644index c684e44b49..0000000000--- a/src/hooks/organizations/use-git-conversation-routing.ts+++ /dev/null@@ -1,113 +0,0 @@-import React from "react";-import {- useUserGitOrganizations,- useGitClaims,-} from "#/hooks/query/use-git-organizations";-import { useClaimGitOrg } from "#/hooks/mutation/use-claim-git-org";-import { useDisconnectGitOrg } from "#/hooks/mutation/use-disconnect-git-org";-import type { GitOrg } from "#/types/org";--function buildOrgId(provider: string, name: string): string {- return `${provider.toLowerCase()}:${name.toLowerCase()}`;-}--export function useGitConversationRouting() {- const { data: userGitOrgs, isLoading: isLoadingUserOrgs } =- useUserGitOrganizations();- const { data: claims, isLoading: isLoadingClaims } = useGitClaims();- const { mutate: claimGitOrg } = useClaimGitOrg();- const { mutate: disconnectGitOrg } = useDisconnectGitOrg();-- const [pendingClaims, setPendingClaims] = React.useState<Set<string>>(- new Set(),- );- const [pendingDisconnects, setPendingDisconnects] = React.useState<- Set<string>- >(new Set());-- const orgs = React.useMemo<GitOrg[]>(() => {- if (!userGitOrgs) return [];-- const claimMap = new Map(- (claims ?? []).map((c) => [- buildOrgId(c.provider, c.git_organization),- c,- ]),- );-- return userGitOrgs.organizations.map((name) => {- const id = buildOrgId(userGitOrgs.provider, name);- const claim = claimMap.get(id);-- let status: GitOrg["status"] = "unclaimed";- if (pendingClaims.has(id)) {- status = "claiming";- } else if (pendingDisconnects.has(id)) {- status = "disconnecting";- } else if (claim) {- status = "claimed";- }-- return {- id,- claimId: claim?.id ?? null,- provider: userGitOrgs.provider,- name,- status,- };- });- }, [userGitOrgs, claims, pendingClaims, pendingDisconnects]);-- const orgsRef = React.useRef(orgs);- orgsRef.current = orgs;-- const claimOrg = React.useCallback(- (id: string) => {- const org = orgsRef.current.find((o) => o.id === id);- if (!org || org.status !== "unclaimed") return;-- setPendingClaims((prev) => new Set(prev).add(id));-- claimGitOrg(- { provider: org.provider, gitOrganization: org.name },- {- onSettled: () => {- setPendingClaims((prev) => {- const next = new Set(prev);- next.delete(id);- return next;- });- },- },- );- },- [claimGitOrg],- );-- const disconnectOrg = React.useCallback(- (id: string) => {- const org = orgsRef.current.find((o) => o.id === id);- if (!org || org.status !== "claimed" || !org.claimId) return;-- setPendingDisconnects((prev) => new Set(prev).add(id));-- disconnectGitOrg(- { claimId: org.claimId },- {- onSettled: () => {- setPendingDisconnects((prev) => {- const next = new Set(prev);- next.delete(id);- return next;- });- },- },- );- },- [disconnectGitOrg],- );-- const isLoading = isLoadingUserOrgs || isLoadingClaims;-- return { orgs, claimOrg, disconnectOrg, isLoading };-}diff --git a/src/hooks/query/use-api-keys.ts b/src/hooks/query/use-api-keys.tsdeleted file mode 100644index 2ff496253f..0000000000--- a/src/hooks/query/use-api-keys.ts+++ /dev/null@@ -1,22 +0,0 @@-import { useQuery } from "@tanstack/react-query";-import ApiKeysClient from "#/api/api-keys";-import { useConfig } from "./use-config";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";--export const API_KEYS_QUERY_KEY = "api-keys";--export function useApiKeys() {- const { data: config } = useConfig();- const { organizationId } = useSelectedOrganizationId();-- return useQuery({- queryKey: [API_KEYS_QUERY_KEY, organizationId],- enabled: config?.app_mode === "saas" && !!organizationId,- queryFn: async () => {- const keys = await ApiKeysClient.getApiKeys();- return Array.isArray(keys) ? keys : [];- },- staleTime: 1000 * 60 * 5, // 5 minutes- gcTime: 1000 * 60 * 15, // 15 minutes- });-}diff --git a/src/hooks/query/use-balance.ts b/src/hooks/query/use-balance.tsdeleted file mode 100644index fd90b9cba6..0000000000--- a/src/hooks/query/use-balance.ts+++ /dev/null@@ -1,18 +0,0 @@-import { useQuery } from "@tanstack/react-query";-import { useConfig } from "./use-config";-import BillingService from "#/api/billing-service/billing-service.api";-import { useIsOnTosPage } from "#/hooks/use-is-on-tos-page";--export const useBalance = () => {- const { data: config } = useConfig();- const isOnTosPage = useIsOnTosPage();-- return useQuery({- queryKey: ["user", "balance"],- queryFn: BillingService.getBalance,- enabled:- !isOnTosPage &&- config?.app_mode === "saas" &&- config?.feature_flags?.enable_billing,- });-};diff --git a/src/hooks/query/use-get-secrets.ts b/src/hooks/query/use-get-secrets.tsindex cee52e915a..87ff93a7cd 100644--- a/src/hooks/query/use-get-secrets.ts+++ b/src/hooks/query/use-get-secrets.ts@@ -4,27 +4,13 @@ import {InfiniteData,} from "@tanstack/react-query";import { SecretsService } from "#/api/secrets-service";-import { useConfig } from "./use-config";-import { useIsAuthed } from "#/hooks/query/use-is-authed";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";import { CustomSecretPage } from "#/api/secrets-service.types";-/**- * @deprecated Use useSearchSecrets instead for paginated access- */-export const useGetSecrets = () => {- const { data: config } = useConfig();- const { data: isAuthed } = useIsAuthed();- const { organizationId } = useSelectedOrganizationId();-- const isOss = config?.app_mode === "oss";-- return useQuery({- queryKey: ["secrets", organizationId],+export const useGetSecrets = () =>+ useQuery({+ queryKey: ["secrets"],queryFn: SecretsService.getSecrets,- enabled: isOss || (isAuthed && !!organizationId),});-};interface UseSearchSecretsOptions {nameContains?: string;@@ -32,26 +18,17 @@ interface UseSearchSecretsOptions {enabled?: boolean;}-/**- * Hook for searching/listing secrets with infinite scroll pagination support.- */export const useSearchSecrets = (options: UseSearchSecretsOptions = {}) => {const { nameContains, pageSize = 30, enabled = true } = options;- const { data: config } = useConfig();- const { data: isAuthed } = useIsAuthed();- const { organizationId } = useSelectedOrganizationId();-- const isOss = config?.app_mode === "oss";- const isEnabled = enabled && (isOss || (isAuthed && !!organizationId));const query = useInfiniteQuery<CustomSecretPage,Error,InfiniteData<CustomSecretPage>,- [string, string | null, string | undefined, number],+ [string, string | undefined, number],string | null>({- queryKey: ["secrets-search", organizationId, nameContains, pageSize],+ queryKey: ["secrets-search", nameContains, pageSize],queryFn: async ({ pageParam }) =>SecretsService.searchSecrets({name__contains: nameContains,@@ -60,9 +37,9 @@ export const useSearchSecrets = (options: UseSearchSecretsOptions = {}) => {}),getNextPageParam: (lastPage) => lastPage.next_page_id,initialPageParam: null,- enabled: isEnabled,- staleTime: 1000 * 60 * 5, // 5 minutes- gcTime: 1000 * 60 * 15, // 15 minutes+ enabled,+ staleTime: 1000 * 60 * 5,+ gcTime: 1000 * 60 * 15,});const onLoadMore = () => {@@ -71,7 +48,6 @@ export const useSearchSecrets = (options: UseSearchSecretsOptions = {}) => {}};- // Flatten all pages into a single array of secretsconst secrets = query.data?.pages?.flatMap((page) => page.items) ?? [];return {diff --git a/src/hooks/query/use-git-organizations.ts b/src/hooks/query/use-git-organizations.tsdeleted file mode 100644index ca2475224a..0000000000--- a/src/hooks/query/use-git-organizations.ts+++ /dev/null@@ -1,26 +0,0 @@-import { useQuery } from "@tanstack/react-query";-import { organizationService } from "#/api/organization-service/organization-service.api";-import UserService from "#/api/user-service/user-service.api";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";--export const gitClaimsQueryKey = (organizationId: string | null) =>- ["organizations", organizationId, "git-claims"] as const;--export const useUserGitOrganizations = () =>- useQuery({- queryKey: ["user", "git-organizations"],- queryFn: () => UserService.getGitOrganizations(),- staleTime: 1000 * 60 * 5,- meta: { disableToast: true },- });--export const useGitClaims = () => {- const { organizationId } = useSelectedOrganizationId();-- return useQuery({- queryKey: gitClaimsQueryKey(organizationId),- queryFn: () => organizationService.getGitClaims({ orgId: organizationId! }),- enabled: !!organizationId,- staleTime: 1000 * 30,- });-};diff --git a/src/hooks/query/use-git-user.ts b/src/hooks/query/use-git-user.tsindex a239b2d18a..2ff523c1a5 100644--- a/src/hooks/query/use-git-user.ts+++ b/src/hooks/query/use-git-user.ts@@ -4,14 +4,10 @@ import { usePostHog } from "posthog-js/react";import { useConfig } from "./use-config";import UserService from "#/api/user-service/user-service.api";import { useShouldShowUserFeatures } from "#/hooks/use-should-show-user-features";-import { useLogout } from "../mutation/use-logout";export const useGitUser = () => {const posthog = usePostHog();const { data: config } = useConfig();- const logout = useLogout();-- // Use the shared hook to determine if we should fetch user dataconst shouldFetchUser = useShouldShowUserFeatures();const user = useQuery({@@ -19,8 +15,8 @@ export const useGitUser = () => {queryFn: UserService.getUser,enabled: shouldFetchUser,retry: false,- staleTime: 1000 * 60 * 5, // 5 minutes- gcTime: 1000 * 60 * 15, // 15 minutes+ staleTime: 1000 * 60 * 5,+ gcTime: 1000 * 60 * 15,});React.useEffect(() => {@@ -33,16 +29,7 @@ export const useGitUser = () => {mode: config?.app_mode || "oss",});}- }, [user.data]);-- // In saas mode, a 401 means that the integration tokens need to be- // refreshed. Since this happens at login, we log out.- // In oss mode, skip auto-logout since there's no token refresh mechanism- React.useEffect(() => {- if (user?.error?.response?.status === 401 && config?.app_mode === "saas") {- logout.mutate();- }- }, [user.status, config?.app_mode]);+ }, [config?.app_mode, posthog, user.data]);return user;};diff --git a/src/hooks/query/use-gitlab-resources-list.ts b/src/hooks/query/use-gitlab-resources-list.tsdeleted file mode 100644index 7e529bdae7..0000000000--- a/src/hooks/query/use-gitlab-resources-list.ts+++ /dev/null@@ -1,16 +0,0 @@-import { useQuery } from "@tanstack/react-query";-import { integrationService } from "#/api/integration-service/integration-service.api";-import type { GitLabResourcesResponse } from "#/api/integration-service/integration-service.types";--/**- * Hook to fetch GitLab resources with webhook status- */-export function useGitLabResources(enabled: boolean = true) {- return useQuery<GitLabResourcesResponse>({- queryKey: ["gitlab-resources"],- queryFn: () => integrationService.getGitLabResources(),- enabled,- staleTime: 1000 * 60 * 2, // 2 minutes- gcTime: 1000 * 60 * 10, // 10 minutes- });-}diff --git a/src/hooks/query/use-is-authed.ts b/src/hooks/query/use-is-authed.tsindex 81a38a7c1c..70efde24b4 100644--- a/src/hooks/query/use-is-authed.ts+++ b/src/hooks/query/use-is-authed.ts@@ -1,40 +1,13 @@import { useQuery } from "@tanstack/react-query";-import axios, { AxiosError } from "axios";-import AuthService from "#/api/auth-service/auth-service.api";-import { useConfig } from "./use-config";-import { useIsOnIntermediatePage } from "#/hooks/use-is-on-intermediate-page";-export const useIsAuthed = () => {- const { data: config } = useConfig();- const isOnIntermediatePage = useIsOnIntermediatePage();-- const appMode = config?.app_mode;-- return useQuery({- queryKey: ["user", "authenticated", appMode],- queryFn: async () => {- try {- // If in OSS mode or authentication succeeds, return true- await AuthService.authenticate(appMode!);- return true;- } catch (error) {- // If it's a 401 error, return false (not authenticated)- if (axios.isAxiosError(error)) {- const axiosError = error as AxiosError;- if (axiosError.response?.status === 401) {- return false;- }- }- // For any other error, throw it to put the query in error state- throw error;- }- },- enabled: !!appMode && !isOnIntermediatePage,- staleTime: 1000 * 60 * 5, // 5 minutes- gcTime: 1000 * 60 * 15, // 15 minutes+export const useIsAuthed = () =>+ useQuery({+ queryKey: ["user", "authenticated"],+ queryFn: async () => true,+ staleTime: 1000 * 60 * 5,+ gcTime: 1000 * 60 * 15,retry: false,meta: {disableToast: true,},});-};diff --git a/src/hooks/query/use-me.ts b/src/hooks/query/use-me.tsdeleted file mode 100644index 137bb151ec..0000000000--- a/src/hooks/query/use-me.ts+++ /dev/null@@ -1,18 +0,0 @@-import { useQuery } from "@tanstack/react-query";-import { useConfig } from "./use-config";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";--export const useMe = () => {- const { data: config } = useConfig();- const { organizationId } = useSelectedOrganizationId();-- const isSaas = config?.app_mode === "saas";-- return useQuery({- queryKey: ["organizations", organizationId, "me"],- queryFn: () => organizationService.getMe({ orgId: organizationId! }),- staleTime: 1000 * 60 * 5, // 5 minutes- enabled: isSaas && !!organizationId,- });-};diff --git a/src/hooks/query/use-organization-members-count.ts b/src/hooks/query/use-organization-members-count.tsdeleted file mode 100644index 9917f390fe..0000000000--- a/src/hooks/query/use-organization-members-count.ts+++ /dev/null@@ -1,24 +0,0 @@-import { keepPreviousData, useQuery } from "@tanstack/react-query";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";--interface UseOrganizationMembersCountParams {- email?: string;-}--export const useOrganizationMembersCount = ({- email,-}: UseOrganizationMembersCountParams = {}) => {- const { organizationId } = useSelectedOrganizationId();-- return useQuery({- queryKey: ["organizations", "members", "count", organizationId, email],- queryFn: () =>- organizationService.getOrganizationMembersCount({- orgId: organizationId!,- email: email || undefined,- }),- enabled: !!organizationId,- placeholderData: keepPreviousData,- });-};diff --git a/src/hooks/query/use-organization-members.ts b/src/hooks/query/use-organization-members.tsdeleted file mode 100644index 559f8598e2..0000000000--- a/src/hooks/query/use-organization-members.ts+++ /dev/null@@ -1,30 +0,0 @@-import { keepPreviousData, useQuery } from "@tanstack/react-query";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";--interface UseOrganizationMembersParams {- page?: number;- limit?: number;- email?: string;-}--export const useOrganizationMembers = ({- page = 1,- limit = 10,- email,-}: UseOrganizationMembersParams = {}) => {- const { organizationId } = useSelectedOrganizationId();-- return useQuery({- queryKey: ["organizations", "members", organizationId, page, limit, email],- queryFn: () =>- organizationService.getOrganizationMembers({- orgId: organizationId!,- page,- limit,- email: email || undefined,- }),- enabled: !!organizationId,- placeholderData: keepPreviousData,- });-};diff --git a/src/hooks/query/use-organization-payment-info.tsx b/src/hooks/query/use-organization-payment-info.tsxdeleted file mode 100644index 736673704d..0000000000--- a/src/hooks/query/use-organization-payment-info.tsx+++ /dev/null@@ -1,16 +0,0 @@-import { useQuery } from "@tanstack/react-query";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";--export const useOrganizationPaymentInfo = () => {- const { organizationId } = useSelectedOrganizationId();-- return useQuery({- queryKey: ["organizations", organizationId, "payment"],- queryFn: () =>- organizationService.getOrganizationPaymentInfo({- orgId: organizationId!,- }),- enabled: !!organizationId,- });-};diff --git a/src/hooks/query/use-organization.ts b/src/hooks/query/use-organization.tsdeleted file mode 100644index 522a79adb9..0000000000--- a/src/hooks/query/use-organization.ts+++ /dev/null@@ -1,21 +0,0 @@-import { useMemo } from "react";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";-import { useOrganizations } from "#/hooks/query/use-organizations";--export const useOrganization = () => {- const { organizationId } = useSelectedOrganizationId();- const organizationsQuery = useOrganizations();-- const organization = useMemo(- () =>- organizationsQuery.data?.organizations.find(- (candidate) => candidate.id === organizationId,- ),- [organizationId, organizationsQuery.data?.organizations],- );-- return {- ...organizationsQuery,- data: organization,- };-};diff --git a/src/hooks/query/use-organizations.ts b/src/hooks/query/use-organizations.tsdeleted file mode 100644index 33d2b82e1f..0000000000--- a/src/hooks/query/use-organizations.ts+++ /dev/null@@ -1,32 +0,0 @@-import { useQuery } from "@tanstack/react-query";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { useIsAuthed } from "./use-is-authed";-import { useConfig } from "./use-config";--export const useOrganizations = () => {- const { data: userIsAuthenticated } = useIsAuthed();- const { data: config } = useConfig();-- // Organizations are a SaaS-only feature - disable in OSS mode- const isOssMode = config?.app_mode === "oss";-- return useQuery({- queryKey: ["organizations"],- queryFn: organizationService.getOrganizations,- staleTime: 1000 * 60 * 5, // 5 minutes- enabled: !!userIsAuthenticated && !isOssMode,- select: (data) => ({- // Sort organizations with personal workspace first, then alphabetically by name- organizations: [...data.items].sort((a, b) => {- const aIsPersonal = a.is_personal ?? false;- const bIsPersonal = b.is_personal ?? false;- if (aIsPersonal && !bIsPersonal) return -1;- if (!aIsPersonal && bIsPersonal) return 1;- return (a.name ?? "").localeCompare(b.name ?? "", undefined, {- sensitivity: "base",- });- }),- currentOrgId: data.currentOrgId,- }),- });-};diff --git a/src/hooks/query/use-settings.ts b/src/hooks/query/use-settings.tsindex c471a506df..f495dcdccd 100644--- a/src/hooks/query/use-settings.ts+++ b/src/hooks/query/use-settings.ts@@ -1,13 +1,8 @@import { useQuery } from "@tanstack/react-query";import axios from "axios";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";-import { useIsOnIntermediatePage } from "#/hooks/use-is-on-intermediate-page";import { DEFAULT_SETTINGS } from "#/services/settings";import { Settings, SettingsScope, SettingsValue } from "#/types/settings";-import { organizationService } from "#/api/organization-service/organization-service.api";import SettingsService from "#/api/settings-service/settings-service.api";-import { useIsAuthed } from "./use-is-authed";-import { useConfig } from "./use-config";import {pickFirstBoolean,pickFirstNumber,@@ -30,8 +25,6 @@ export const getErrorStatus = (error: unknown): number | undefined => {return undefined;};--/** Look up a value in a nested object by dotted key path. */const lookupNested = (obj: Record<string, unknown>, key: string): unknown => {const parts = key.split(".");let current: unknown = obj;@@ -125,49 +118,26 @@ const normalizeSettingsResponse = (settings: Partial<Settings>): Settings => {};export const getSettingsQueryFn = async (- scope: SettingsScope = "personal",- organizationId?: string | null,+ _scope: SettingsScope = "personal",): Promise<Settings> => {- const settings =- scope === "org"- ? await organizationService.getOrganizationSettings({- orgId: organizationId!,- })- : await SettingsService.getSettings();-+ const settings = await SettingsService.getSettings();return normalizeSettingsResponse(settings);};export const useSettings = (scope: SettingsScope = "personal") => {- const isOnIntermediatePage = useIsOnIntermediatePage();- const { data: userIsAuthenticated } = useIsAuthed();- const { organizationId } = useSelectedOrganizationId();- const { data: config } = useConfig();-- const isOss = config?.app_mode === "oss";-const query = useQuery({- queryKey: ["settings", scope, organizationId],- queryFn: () => getSettingsQueryFn(scope, organizationId),+ queryKey: ["settings", scope],+ queryFn: () => getSettingsQueryFn(scope),retry: (_, error) => getErrorStatus(error) !== 404,refetchOnWindowFocus: false,staleTime: 1000 * 60 * 5,gcTime: 1000 * 60 * 15,- enabled:- !isOnIntermediatePage &&- !!userIsAuthenticated &&- (isOss || !!organizationId),meta: {disableToast: true,},});- // We want to return the defaults if the settings aren't found so the user can still see the- // options to make their initial save. We don't set the defaults in `initialData` above because- // that would prepopulate the data to the cache and mess with expectations. Read more:- // https://tanstack.com/query/latest/docs/framework/react/guides/initial-query-data#using-initialdata-to-prepopulate-a-queryif (getErrorStatus(query.error) === 404) {- // Create a new object with only the properties we need, avoiding rest destructuringreturn {data: DEFAULT_SETTINGS,error: query.error,diff --git a/src/hooks/use-app-title.test.tsx b/src/hooks/use-app-title.test.tsxindex 012079af98..5751b7d6ec 100644--- a/src/hooks/use-app-title.test.tsx+++ b/src/hooks/use-app-title.test.tsx@@ -2,7 +2,6 @@ import { renderHook, waitFor } from "@testing-library/react";import { beforeEach, describe, expect, it, vi } from "vitest";import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import { useParams } from "react-router";-import OptionService from "#/api/option-service/option-service.api";import { useUserConversation } from "./query/use-user-conversation";import { useAppTitle } from "./use-app-title";@@ -25,7 +24,6 @@ vi.mock("react-router", async () => {});describe("useAppTitle", () => {- const getConfigSpy = vi.spyOn(OptionService, "getConfig");const mockUseUserConversation = vi.mocked(useUserConversation);const mockUseParams = vi.mocked(useParams);@@ -35,31 +33,13 @@ describe("useAppTitle", () => {mockUseParams.mockReturnValue({});});- it("should return 'OpenHands' if is OSS and NOT in /conversations", async () => {- // @ts-expect-error - only returning partial config for test- getConfigSpy.mockResolvedValue({- app_mode: "oss",- });-+ it("returns the OSS app title outside conversations", async () => {const { result } = renderAppTitleHook();await waitFor(() => expect(result.current).toBe("OpenHands"));});- it("should return 'OpenHands Cloud' if is SaaS and NOT in /conversations", async () => {- // @ts-expect-error - only returning partial config for test- getConfigSpy.mockResolvedValue({- app_mode: "saas",- });-- const { result } = renderAppTitleHook();-- await waitFor(() => expect(result.current).toBe("OpenHands Cloud"));- });-- it("should return '{some title} | OpenHands' if is OSS and in /conversations", async () => {- // @ts-expect-error - only returning partial config for test- getConfigSpy.mockResolvedValue({ app_mode: "oss" });+ it("returns the conversation title with the OSS app name", async () => {mockUseParams.mockReturnValue({ conversationId: "123" });mockUseUserConversation.mockReturnValue({// @ts-expect-error - only returning partial config for test@@ -73,27 +53,7 @@ describe("useAppTitle", () => {);});- it("should return '{some title} | OpenHands Cloud' if is SaaS and in /conversations", async () => {- // @ts-expect-error - only returning partial config for test- getConfigSpy.mockResolvedValue({ app_mode: "saas" });- mockUseParams.mockReturnValue({ conversationId: "456" });- mockUseUserConversation.mockReturnValue({- // @ts-expect-error - only returning partial config for test- data: { title: "Another Conversation Title" },- });-- const { result } = renderAppTitleHook();-- await waitFor(() =>- expect(result.current).toBe(- "Another Conversation Title | OpenHands Cloud",- ),- );- });-- it("should return app name while conversation is loading", async () => {- // @ts-expect-error - only returning partial config for test- getConfigSpy.mockResolvedValue({ app_mode: "oss" });+ it("returns the app name while conversation data is loading", async () => {mockUseParams.mockReturnValue({ conversationId: "123" });// @ts-expect-error - only returning partial config for testmockUseUserConversation.mockReturnValue({ data: undefined });diff --git a/src/hooks/use-app-title.ts b/src/hooks/use-app-title.tsindex 6fe5a6740d..37b2b03548 100644--- a/src/hooks/use-app-title.ts+++ b/src/hooks/use-app-title.ts@@ -1,26 +1,16 @@import { useParams } from "react-router";-import { useConfig } from "#/hooks/query/use-config";import { useUserConversation } from "#/hooks/query/use-user-conversation";-const APP_TITLE_OSS = "OpenHands";-const APP_TITLE_SAAS = "OpenHands Cloud";+const APP_TITLE = "OpenHands";-/**- * Hook that returns the appropriate document title based on app_mode and current route.- * - For conversation pages: "Conversation Title | OpenHands" or "Conversation Title | OpenHands Cloud"- * - For other pages: "OpenHands" or "OpenHands Cloud"- */export const useAppTitle = () => {- const { data: config } = useConfig();const { conversationId } = useParams<{ conversationId: string }>();const { data: conversation } = useUserConversation(conversationId ?? null);-- const appTitle = config?.app_mode === "oss" ? APP_TITLE_OSS : APP_TITLE_SAAS;const conversationTitle = conversation?.title;if (conversationId && conversationTitle) {- return `${conversationTitle} | ${appTitle}`;+ return `${conversationTitle} | ${APP_TITLE}`;}- return appTitle;+ return APP_TITLE;};diff --git a/src/hooks/use-auth-callback.ts b/src/hooks/use-auth-callback.tsdeleted file mode 100644index 8e3b647ed9..0000000000--- a/src/hooks/use-auth-callback.ts+++ /dev/null@@ -1,68 +0,0 @@-import { useEffect } from "react";-import { useLocation, useNavigate } from "react-router";-import { useIsAuthed } from "./query/use-is-authed";-import { LoginMethod, setLoginMethod } from "#/utils/local-storage";-import { useConfig } from "./query/use-config";--/**- * Hook to handle authentication callback and set login method after successful authentication- */-export const useAuthCallback = () => {- const location = useLocation();- const { data: isAuthed, isLoading: isAuthLoading } = useIsAuthed();- const { data: config } = useConfig();- const navigate = useNavigate();-- useEffect(() => {- // Only run in SAAS mode- if (config?.app_mode !== "saas") {- return;- }-- // Wait for auth to load- if (isAuthLoading) {- return;- }-- // Only process callback if authentication was successful- if (!isAuthed) {- return;- }-- // Check if we have a login_method query parameter- const searchParams = new URLSearchParams(location.search);- const loginMethod = searchParams.get("login_method");- const returnTo = searchParams.get("returnTo");-- // Set the login method if it's valid- if (Object.values(LoginMethod).includes(loginMethod as LoginMethod)) {- setLoginMethod(loginMethod as LoginMethod);-- // Clean up the URL by removing auth-related parameters- searchParams.delete("login_method");- searchParams.delete("returnTo");-- // Determine where to navigate after authentication- let destination = "/";- if (returnTo && returnTo !== "/login") {- destination = returnTo;- } else if (location.pathname !== "/login" && location.pathname !== "/") {- destination = location.pathname;- }-- const remainingParams = searchParams.toString();- const finalUrl = remainingParams- ? `${destination}?${remainingParams}`- : destination;-- navigate(finalUrl, { replace: true });- }- }, [- isAuthed,- isAuthLoading,- location.search,- location.pathname,- config?.app_mode,- navigate,- ]);-};diff --git a/src/hooks/use-auto-login.ts b/src/hooks/use-auto-login.tsdeleted file mode 100644index b0d1e411d3..0000000000--- a/src/hooks/use-auto-login.ts+++ /dev/null@@ -1,113 +0,0 @@-import { useEffect } from "react";-import { useConfig } from "./query/use-config";-import { useIsAuthed } from "./query/use-is-authed";-import { getLoginMethod, LoginMethod } from "#/utils/local-storage";-import { useAuthUrl } from "./use-auth-url";-import { useIsOnIntermediatePage } from "./use-is-on-intermediate-page";--/**- * Hook to automatically log in the user if they have a login method stored in local storage- * Only works in SAAS mode and when the user is not already logged in- */-export const useAutoLogin = () => {- const { data: config, isLoading: isConfigLoading } = useConfig();- const { data: isAuthed, isLoading: isAuthLoading } = useIsAuthed();- const isOnIntermediatePage = useIsOnIntermediatePage();-- // Get the stored login method- const loginMethod = getLoginMethod();-- // Get the auth URLs for all providers- const githubAuthUrl = useAuthUrl({- appMode: config?.app_mode || null,- identityProvider: "github",- authUrl: config?.auth_url,- });-- const gitlabAuthUrl = useAuthUrl({- appMode: config?.app_mode || null,- identityProvider: "gitlab",- authUrl: config?.auth_url,- });-- const bitbucketAuthUrl = useAuthUrl({- appMode: config?.app_mode || null,- identityProvider: "bitbucket",- authUrl: config?.auth_url,- });-- const bitbucketDataCenterUrl = useAuthUrl({- appMode: config?.app_mode || null,- identityProvider: "bitbucket_data_center",- authUrl: config?.auth_url,- });-- const enterpriseSsoUrl = useAuthUrl({- appMode: config?.app_mode || null,- identityProvider: "enterprise_sso",- authUrl: config?.auth_url,- });-- useEffect(() => {- // Only auto-login in SAAS mode- if (config?.app_mode !== "saas") {- return;- }-- // Wait for auth and config to load- if (isConfigLoading || isAuthLoading) {- return;- }-- // Don't auto-login from intermediate steps in the auth flow- if (isOnIntermediatePage) {- return;- }-- // Don't auto-login if already authenticated- if (isAuthed) {- return;- }-- // Don't auto-login if no login method is stored- if (!loginMethod) {- return;- }-- // Get the appropriate auth URL based on the stored login method- let authUrl: string | null = null;- if (loginMethod === LoginMethod.GITHUB) {- authUrl = githubAuthUrl;- } else if (loginMethod === LoginMethod.GITLAB) {- authUrl = gitlabAuthUrl;- } else if (loginMethod === LoginMethod.BITBUCKET) {- authUrl = bitbucketAuthUrl;- } else if (loginMethod === LoginMethod.BITBUCKET_DATA_CENTER) {- authUrl = bitbucketDataCenterUrl;- } else if (loginMethod === LoginMethod.ENTERPRISE_SSO) {- authUrl = enterpriseSsoUrl;- }-- // If we have an auth URL, redirect to it- if (authUrl) {- // Add the login method as a query parameter- const url = new URL(authUrl);- url.searchParams.append("login_method", loginMethod);-- // After successful login, the user will be redirected back and can navigate to the last page- window.location.href = url.toString();- }- }, [- config?.app_mode,- isAuthed,- isConfigLoading,- isAuthLoading,- isOnIntermediatePage,- loginMethod,- githubAuthUrl,- gitlabAuthUrl,- bitbucketAuthUrl,- bitbucketDataCenterUrl,- enterpriseSsoUrl,- ]);-};diff --git a/src/hooks/use-auto-select-organization.ts b/src/hooks/use-auto-select-organization.tsdeleted file mode 100644index 3fe867aae7..0000000000--- a/src/hooks/use-auto-select-organization.ts+++ /dev/null@@ -1,36 +0,0 @@-import React from "react";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";-import { useOrganizations } from "#/hooks/query/use-organizations";-import { setSelectedOrg } from "#/utils/local-storage";--/**- * Hook that automatically selects an organization when:- * - No organization is currently selected in the frontend store- * - Organizations data is available- *- * Selection priority:- * 1. Backend's current_org_id (user's last selected organization, persisted server-side)- * 2. First organization in the list (fallback for new users)- *- * This hook should be called from a component that always renders (e.g., root layout)- * to ensure organization selection happens even when the OrgSelector component is hidden.- */-export function useAutoSelectOrganization() {- const { organizationId, setOrganizationId } = useSelectedOrganizationId();- const { data } = useOrganizations();- const organizations = data?.organizations;- const currentOrgId = data?.currentOrgId;-- React.useEffect(() => {- if (!organizationId && organizations && organizations.length > 0) {- // Prefer backend's current_org_id (last selected org), fall back to first org- const initialOrgId = currentOrgId ?? organizations[0].id;- // Skip revalidation for initial auto-selection to avoid duplicate API calls.- // Revalidation is only needed when user explicitly switches organizations- // to redirect away from admin-only pages they may no longer have access to.- setOrganizationId(initialOrgId, { skipRevalidation: true });- // Broadcast org selection to other apps (e.g. Automations) via localStorage- setSelectedOrg(initialOrgId);- }- }, [organizationId, organizations, currentOrgId, setOrganizationId]);-}diff --git a/src/hooks/use-email-verification.ts b/src/hooks/use-email-verification.tsdeleted file mode 100644index f9cf4fe29c..0000000000--- a/src/hooks/use-email-verification.ts+++ /dev/null@@ -1,156 +0,0 @@-import React from "react";-import { useSearchParams } from "react-router";-import { useResendEmailVerification } from "#/hooks/mutation/use-resend-email-verification";--/**- * Hook to handle email verification logic from URL query parameters.- * Manages the email verification modal state and email verified state- * based on query parameters in the URL.- * Also provides functionality to resend email verification.- *- * @returns An object containing:- * - emailVerificationModalOpen: boolean state for modal visibility- * - setEmailVerificationModalOpen: function to control modal visibility- * - emailVerified: boolean state for email verification status- * - setEmailVerified: function to control email verification status- * - hasDuplicatedEmail: boolean state for duplicate email error status- * - recaptchaBlocked: boolean state for reCAPTCHA blocked error status- * - userId: string | null for the user ID from the redirect URL- * - resendEmailVerification: function to resend verification email- * - isResendingVerification: boolean indicating if resend is in progress- * - isCooldownActive: boolean indicating if cooldown is currently active- * - cooldownRemaining: number of milliseconds remaining in cooldown- * - formattedCooldownTime: string formatted as "M:SS" for display- * - wasRateLimited: boolean indicating if the user was rate limited during OAuth flow- */-export function useEmailVerification() {- const [searchParams, setSearchParams] = useSearchParams();- const [emailVerificationModalOpen, setEmailVerificationModalOpen] =- React.useState(false);- const [emailVerified, setEmailVerified] = React.useState(false);- const [hasDuplicatedEmail, setHasDuplicatedEmail] = React.useState(false);- const [recaptchaBlocked, setRecaptchaBlocked] = React.useState(false);- const [wasRateLimited, setWasRateLimited] = React.useState(false);- const [userId, setUserId] = React.useState<string | null>(null);- const [lastSentTimestamp, setLastSentTimestamp] = React.useState<- number | null- >(null);- const [cooldownRemaining, setCooldownRemaining] = React.useState<number>(0);-- const COOLDOWN_DURATION_MS = 30 * 1000; // 30 seconds-- const formatCooldownTime = (ms: number): string => {- const seconds = Math.ceil(ms / 1000);- const minutes = Math.floor(seconds / 60);- const remainingSeconds = seconds % 60;- return `${minutes}:${remainingSeconds.toString().padStart(2, "0")}`;- };-- const resendEmailVerificationMutation = useResendEmailVerification({- onSuccess: () => {- setLastSentTimestamp(Date.now());- },- });-- // Check for email verification and reCAPTCHA query parameters- React.useEffect(() => {- const emailVerificationRequired = searchParams.get(- "email_verification_required",- );- const emailVerifiedParam = searchParams.get("email_verified");- const duplicatedEmailParam = searchParams.get("duplicated_email");- const recaptchaBlockedParam = searchParams.get("recaptcha_blocked");- const userIdParam = searchParams.get("user_id");- let shouldUpdate = false;-- if (emailVerificationRequired === "true") {- setEmailVerificationModalOpen(true);- searchParams.delete("email_verification_required");- shouldUpdate = true;- }-- if (emailVerifiedParam === "true") {- setEmailVerified(true);- searchParams.delete("email_verified");- shouldUpdate = true;- }-- if (duplicatedEmailParam === "true") {- setHasDuplicatedEmail(true);- searchParams.delete("duplicated_email");- shouldUpdate = true;- }-- if (recaptchaBlockedParam === "true") {- setRecaptchaBlocked(true);- searchParams.delete("recaptcha_blocked");- shouldUpdate = true;- }-- const rateLimitedParam = searchParams.get("rate_limited");- if (rateLimitedParam === "true") {- setWasRateLimited(true);- searchParams.delete("rate_limited");- shouldUpdate = true;- }-- if (userIdParam) {- setUserId(userIdParam);- searchParams.delete("user_id");- shouldUpdate = true;- }-- // Clean up the URL by removing parameters if any were found- if (shouldUpdate) {- setSearchParams(searchParams, { replace: true });- }- }, [searchParams, setSearchParams]);-- // Update cooldown remaining time- React.useEffect(() => {- if (lastSentTimestamp === null) {- setCooldownRemaining(0);- return undefined;- }-- let timeoutId: NodeJS.Timeout | null = null;-- const updateCooldown = () => {- const elapsed = Date.now() - lastSentTimestamp!;- const remaining = Math.max(0, COOLDOWN_DURATION_MS - elapsed);- setCooldownRemaining(remaining);-- if (remaining > 0) {- // Update every second while cooldown is active- timeoutId = setTimeout(updateCooldown, 1000);- }- };-- updateCooldown();-- return () => {- if (timeoutId) {- clearTimeout(timeoutId);- }- };- }, [lastSentTimestamp, COOLDOWN_DURATION_MS]);-- const isCooldownActive = cooldownRemaining > 0;- const formattedCooldownTime = formatCooldownTime(cooldownRemaining);-- return {- emailVerificationModalOpen,- setEmailVerificationModalOpen,- emailVerified,- setEmailVerified,- hasDuplicatedEmail,- recaptchaBlocked,- wasRateLimited,- userId,- resendEmailVerification: resendEmailVerificationMutation.mutate,- isResendingVerification: resendEmailVerificationMutation.isPending,- isCooldownActive,- cooldownRemaining,- formattedCooldownTime,- };-}diff --git a/src/hooks/use-invitation.ts b/src/hooks/use-invitation.tsdeleted file mode 100644index 14719ae7bb..0000000000--- a/src/hooks/use-invitation.ts+++ /dev/null@@ -1,119 +0,0 @@-import React from "react";-import { useSearchParams } from "react-router";--const INVITATION_TOKEN_KEY = "openhands_invitation_token";--interface UseInvitationReturn {- /** The invitation token, if present */- invitationToken: string | null;- /** Whether there is an active invitation */- hasInvitation: boolean;- /** Clear the stored invitation token */- clearInvitation: () => void;- /** Build OAuth state data including invitation token if present */- buildOAuthStateData: (- baseStateData: Record<string, string>,- ) => Record<string, string>;-}--/**- * Hook to manage organization invitation tokens during the login flow.- *- * This hook:- * 1. Reads invitation_token from URL query params on mount- * 2. Persists the token in localStorage (survives page refresh and works across tabs)- * 3. Provides the token for inclusion in OAuth state- * 4. Provides cleanup method after successful authentication- *- * The invitation token flow:- * 1. User clicks invitation link β /api/invitations/accept?token=xxx- * 2. Backend redirects to /login?invitation_token=xxx- * 3. This hook captures token and stores in localStorage- * 4. When user clicks login button, token is included in OAuth state- * 5. After auth callback processes invitation, frontend clears the token- *- * Note: localStorage is used instead of sessionStorage to support scenarios where- * the user opens the email verification link in a new tab/browser window.- */-export function useInvitation(): UseInvitationReturn {- const [searchParams, setSearchParams] = useSearchParams();- const [invitationToken, setInvitationToken] = React.useState<string | null>(- () => {- // Initialize from localStorage (persists across tabs and page refreshes)- if (typeof window !== "undefined") {- return localStorage.getItem(INVITATION_TOKEN_KEY);- }- return null;- },- );-- // Capture invitation token from URL and persist to localStorage- // This only runs on the login page where the hook is used- React.useEffect(() => {- const tokenFromUrl = searchParams.get("invitation_token");-- if (tokenFromUrl) {- // Store in localStorage for persistence across tabs and refreshes- localStorage.setItem(INVITATION_TOKEN_KEY, tokenFromUrl);- setInvitationToken(tokenFromUrl);-- // Remove token from URL to clean up (prevents token exposure in browser history)- const newSearchParams = new URLSearchParams(searchParams);- newSearchParams.delete("invitation_token");- setSearchParams(newSearchParams, { replace: true });- }- }, [searchParams, setSearchParams]);-- // Clear invitation token when invitation flow completes (success or failure)- // These query params are set by the backend after processing the invitation- React.useEffect(() => {- const invitationCompleted =- searchParams.has("invitation_success") ||- searchParams.has("invitation_expired") ||- searchParams.has("invitation_invalid") ||- searchParams.has("invitation_error") ||- searchParams.has("already_member") ||- searchParams.has("email_mismatch");-- if (invitationCompleted) {- localStorage.removeItem(INVITATION_TOKEN_KEY);- setInvitationToken(null);-- // Remove invitation params from URL to clean up- const newSearchParams = new URLSearchParams(searchParams);- newSearchParams.delete("invitation_success");- newSearchParams.delete("invitation_expired");- newSearchParams.delete("invitation_invalid");- newSearchParams.delete("invitation_error");- newSearchParams.delete("already_member");- newSearchParams.delete("email_mismatch");- setSearchParams(newSearchParams, { replace: true });- }- }, [searchParams, setSearchParams]);-- const clearInvitation = React.useCallback(() => {- localStorage.removeItem(INVITATION_TOKEN_KEY);- setInvitationToken(null);- }, []);-- const buildOAuthStateData = React.useCallback(- (baseStateData: Record<string, string>): Record<string, string> => {- const stateData = { ...baseStateData };-- // Include invitation token in state if present- if (invitationToken) {- stateData.invitation_token = invitationToken;- }-- return stateData;- },- [invitationToken],- );-- return {- invitationToken,- hasInvitation: invitationToken !== null,- clearInvitation,- buildOAuthStateData,- };-}diff --git a/src/hooks/use-is-on-intermediate-page.ts b/src/hooks/use-is-on-intermediate-page.tsindex dbe6ed6025..a51731bf2f 100644--- a/src/hooks/use-is-on-intermediate-page.ts+++ b/src/hooks/use-is-on-intermediate-page.ts@@ -1,10 +1,6 @@import { useLocation } from "react-router";-const INTERMEDIATE_PAGE_PATHS = [- "/accept-tos",- "/onboarding",- "/information-request",-];+const INTERMEDIATE_PAGE_PATHS: string[] = [];/*** Checks if the current page is an intermediate page.diff --git a/src/hooks/use-org-type-and-access.ts b/src/hooks/use-org-type-and-access.tsdeleted file mode 100644index 5f49b9220c..0000000000--- a/src/hooks/use-org-type-and-access.ts+++ /dev/null@@ -1,22 +0,0 @@-import { useSelectedOrganizationId } from "#/context/use-selected-organization";-import { useOrganizations } from "#/hooks/query/use-organizations";--export const useOrgTypeAndAccess = () => {- const { organizationId } = useSelectedOrganizationId();- const { data } = useOrganizations();- const organizations = data?.organizations;-- const selectedOrg = organizations?.find((org) => org.id === organizationId);- const isPersonalOrg = selectedOrg?.is_personal === true;- // Team org = any org that is not explicitly marked as personal (includes undefined)- const isTeamOrg = !!selectedOrg && !selectedOrg.is_personal;- const canViewOrgRoutes = isTeamOrg && !!organizationId;-- return {- selectedOrg,- isPersonalOrg,- isTeamOrg,- canViewOrgRoutes,- organizationId,- };-};diff --git a/src/hooks/use-recaptcha.ts b/src/hooks/use-recaptcha.tsdeleted file mode 100644index a2dd82e892..0000000000--- a/src/hooks/use-recaptcha.ts+++ /dev/null@@ -1,76 +0,0 @@-import { useEffect, useState, useCallback } from "react";-import { useTranslation } from "react-i18next";-import { I18nKey } from "#/i18n/declaration";-import { displayErrorToast } from "#/utils/custom-toast-handlers";--const RECAPTCHA_SCRIPT_URL = "https://www.google.com/recaptcha/enterprise.js";--interface UseRecaptchaOptions {- siteKey?: string;-}--export interface UseRecaptchaReturn {- isReady: boolean;- isLoading: boolean;- error: Error | null;- executeRecaptcha: (action: string) => Promise<string | null>;-}--export function useRecaptcha({- siteKey,-}: UseRecaptchaOptions): UseRecaptchaReturn {- const { t } = useTranslation();- const [isReady, setIsReady] = useState(false);- const [isLoading, setIsLoading] = useState(false);- const [error, setError] = useState<Error | null>(null);-- useEffect(() => {- if (!siteKey) return;-- // Check if script is already loaded- if (window.grecaptcha?.enterprise) {- window.grecaptcha.enterprise.ready(() => setIsReady(true));- return;- }-- setIsLoading(true);-- const script = document.createElement("script");- script.src = `${RECAPTCHA_SCRIPT_URL}?render=${siteKey}`;- script.async = true;- script.defer = true;-- script.onload = () => {- window.grecaptcha?.enterprise.ready(() => {- setIsReady(true);- setIsLoading(false);- });- };-- script.onerror = () => {- setError(new Error("Failed to load reCAPTCHA script"));- setIsLoading(false);- };-- document.head.appendChild(script);- }, [siteKey]);-- const executeRecaptcha = useCallback(- async (action: string): Promise<string | null> => {- if (!siteKey || !isReady || !window.grecaptcha?.enterprise) return null;-- try {- const token = await window.grecaptcha.enterprise.execute(siteKey, {- action,- });- return token;- } catch (err) {- displayErrorToast(t(I18nKey.AUTH$RECAPTCHA_BLOCKED));- return null;- }- },- [siteKey, isReady, t],- );-- return { isReady, isLoading, error, executeRecaptcha };-}diff --git a/src/hooks/use-reo-tracking.ts b/src/hooks/use-reo-tracking.tsdeleted file mode 100644index 199c1e16c2..0000000000--- a/src/hooks/use-reo-tracking.ts+++ /dev/null@@ -1,135 +0,0 @@-import React from "react";-import { useConfig } from "./query/use-config";-import { useGitUser } from "./query/use-git-user";-import { getLoginMethod, LoginMethod } from "#/utils/local-storage";-import reoService, { ReoIdentity } from "#/utils/reo";-import { isProductionDomain } from "#/utils/utils";--/**- * Maps login method to Reo identity type- */-const mapLoginMethodToReoType = (method: LoginMethod): ReoIdentity["type"] => {- // Reo is not supporting gitlab and bitbucket.- switch (method) {- case LoginMethod.GITHUB:- return "github";- case LoginMethod.ENTERPRISE_SSO:- return "email";- default:- return "email";- }-};--/**- * Creates email identity object if email is available- */-const buildEmailIdentity = (- email?: string | null,-): ReoIdentity["other_identities"] => {- if (!email) {- return undefined;- }-- return [- {- username: email,- type: "email",- },- ];-};--/**- * Parses full name into firstname and lastname- * Handles cases where name might be empty or only have one part- */-const parseNameFields = (- fullName?: string | null,-): { firstname?: string; lastname?: string } => {- if (!fullName) {- return {};- }-- const [firstname, ...rest] = fullName.split(" ");- if (!firstname) {- return {};- }-- return {- firstname,- lastname: rest.length > 0 ? rest.join(" ") : undefined,- };-};--/**- * Builds complete Reo identity from user data and login method- */-const buildReoIdentity = (- user: {- login: string;- email?: string | null;- name?: string | null;- company?: string | null;- },- loginMethod: LoginMethod,-): ReoIdentity => {- const { firstname, lastname } = parseNameFields(user.name);-- return {- username: user.login,- type: mapLoginMethodToReoType(loginMethod),- other_identities: buildEmailIdentity(user.email),- firstname,- lastname,- company: user.company || undefined,- };-};--/**- * Hook to handle Reo.dev tracking integration- * Only active in SaaS mode- */-export const useReoTracking = () => {- const { data: config } = useConfig();- const { data: user } = useGitUser();- const [hasIdentified, setHasIdentified] = React.useState(false);-- // Initialize Reo.dev when in SaaS mode and on the correct domain- React.useEffect(() => {- const initReo = async () => {- if (- config?.app_mode === "saas" &&- isProductionDomain() &&- !reoService.isInitialized()- ) {- await reoService.init();- }- };-- initReo();- }, [config?.app_mode]);-- // Identify user when user data is available and we're in SaaS mode on correct domain- React.useEffect(() => {- if (- config?.app_mode !== "saas" ||- !isProductionDomain() ||- !user ||- hasIdentified ||- !reoService.isInitialized()- ) {- return;- }-- const loginMethod = getLoginMethod();- if (!loginMethod) {- return;- }-- // Build identity payload from user data- const identity = buildReoIdentity(user, loginMethod);-- // Identify user in Reo- reoService.identify(identity);- setHasIdentified(true);- }, [config?.app_mode, user, hasIdentified]);-};diff --git a/src/hooks/use-settings-nav-items.ts b/src/hooks/use-settings-nav-items.tsindex 19737f6749..69bf42c3de 100644--- a/src/hooks/use-settings-nav-items.ts+++ b/src/hooks/use-settings-nav-items.ts@@ -1,136 +1,18 @@import { useConfig } from "#/hooks/query/use-config";-import {- SAAS_NAV_ITEMS,- OSS_NAV_ITEMS,- SettingsNavItem,- SettingsNavSection,-} from "#/constants/settings-nav";-import { OrganizationUserRole } from "#/types/org";-import { isBillingHidden } from "#/utils/org/billing-visibility";+import { OSS_NAV_ITEMS, SettingsNavItem } from "#/constants/settings-nav";import { isSettingsPageHidden } from "#/utils/settings-utils";-import { useMe } from "./query/use-me";-import { usePermission } from "./organizations/use-permissions";-import { useOrgTypeAndAccess } from "./use-org-type-and-access";import { I18nKey } from "#/i18n/declaration";-// Rendered navigation item typesexport type SettingsNavRenderedItem =| { type: "item"; item: SettingsNavItem }| { type: "header"; text: I18nKey }| { type: "divider" };-// Section header text mapping-const SECTION_HEADERS: Partial<Record<SettingsNavSection, I18nKey>> = {- org: I18nKey.SETTINGS$ORG_SETTINGS_HEADER,- personal: I18nKey.SETTINGS$PERSONAL_SETTINGS_HEADER,-};--/**- * Build Settings navigation items based on:- * - app mode (saas / oss)- * - feature flags- * - active user's role- * - org type (personal vs team)- * @returns Settings Nav Rendered Items (items, headers, dividers)- */export function useSettingsNavItems(): SettingsNavRenderedItem[] {const { data: config } = useConfig();- const { data: user } = useMe();- const userRole: OrganizationUserRole = user?.role ?? "member";- const { hasPermission } = usePermission(userRole);- const { isPersonalOrg, isTeamOrg, organizationId } = useOrgTypeAndAccess();-- const shouldHideBilling = isBillingHidden(- config,- hasPermission("view_billing"),- );- const isSaasMode = config?.app_mode === "saas";const featureFlags = config?.feature_flags;- const isAdminOrOwner = userRole === "admin" || userRole === "owner";-- let items = isSaasMode ? [...SAAS_NAV_ITEMS] : [...OSS_NAV_ITEMS];-- // First apply feature flag-based hiding- items = items.filter((item) => !isSettingsPageHidden(item.to, featureFlags));-- // Hide billing when billing is not accessible OR when in team org- if (shouldHideBilling || isTeamOrg) {- items = items.filter((item) => item.to !== "/settings/billing");- }-- // Hide org routes for personal orgs, missing permissions, or no org selected- if (!hasPermission("view_billing") || !organizationId || isPersonalOrg) {- items = items.filter((item) => item.to !== "/settings/org");- }-- if (- !hasPermission("invite_user_to_organization") ||- !organizationId ||- isPersonalOrg- ) {- items = items.filter((item) => item.to !== "/settings/org-members");- }-- if (!organizationId) {- items = items.filter(- (item) => !item.to.startsWith("/settings/org-defaults"),- );- }-- const PERSONAL_LLM_PATHS = new Set([- "/settings",- "/settings/condenser",- "/settings/verification",- ]);- if (isSaasMode) {- items = items.filter((item) => !PERSONAL_LLM_PATHS.has(item.to));- }-- // For OSS mode or non-SaaS, return flat list without sections- if (!isSaasMode) {- return items.map((item) => ({ type: "item", item }));- }-- // Build rendered items with headers and dividers for SaaS mode- const renderedItems: SettingsNavRenderedItem[] = [];- let currentSection: SettingsNavSection | undefined;- let isFirstSection = true;-- // Determine if we should show section headers (only for admins/owners in team orgs)- const showSectionHeaders = isTeamOrg && isAdminOrOwner;-- for (const item of items) {- const itemSection = item.section;-- // Check if we're entering a new section- if (itemSection && itemSection !== currentSection) {- // For personal orgs or members, treat "org" and "personal" sections as one group- // (LLM is the only org item visible and should flow with personal items)- const isOrgToPersonalWithoutHeaders =- (isPersonalOrg || !isAdminOrOwner) &&- currentSection === "org" &&- itemSection === "personal";-- // Add divider between sections (but not before the first section,- // and not between org->personal when section headers aren't shown)- if (!isFirstSection && !isOrgToPersonalWithoutHeaders) {- renderedItems.push({ type: "divider" });- }-- // Add section header for org and personal sections (admins/owners only)- if (showSectionHeaders && SECTION_HEADERS[itemSection]) {- renderedItems.push({- type: "header",- text: SECTION_HEADERS[itemSection]!,- });- }-- currentSection = itemSection;- isFirstSection = false;- }-- renderedItems.push({ type: "item", item });- }- return renderedItems;+ return OSS_NAV_ITEMS.filter(+ (item) => !isSettingsPageHidden(item.to, featureFlags),+ ).map((item) => ({ type: "item", item }));}diff --git a/src/hooks/use-should-hide-org-selector.ts b/src/hooks/use-should-hide-org-selector.tsdeleted file mode 100644index 27a5c6009c..0000000000--- a/src/hooks/use-should-hide-org-selector.ts+++ /dev/null@@ -1,16 +0,0 @@-import { useOrganizations } from "#/hooks/query/use-organizations";-import { useConfig } from "#/hooks/query/use-config";--export function useShouldHideOrgSelector() {- const { data: config } = useConfig();- const { data } = useOrganizations();- const organizations = data?.organizations;-- // Always hide in OSS mode - organizations are a SaaS feature- if (config?.app_mode === "oss") {- return true;- }-- // In SaaS mode, hide if user only has one personal org- return organizations?.length === 1 && organizations[0]?.is_personal === true;-}diff --git a/src/hooks/use-should-show-user-features.ts b/src/hooks/use-should-show-user-features.tsindex 7c04205f68..a8c00bb57f 100644--- a/src/hooks/use-should-show-user-features.ts+++ b/src/hooks/use-should-show-user-features.ts@@ -1,28 +1,13 @@import React from "react";-import { useConfig } from "./query/use-config";import { useIsAuthed } from "./query/use-is-authed";import { useUserProviders } from "./use-user-providers";-/**- * Hook to determine if user-related features should be shown or enabled- * based on authentication status and provider configuration.- *- * @returns boolean indicating if user features should be shown- */export const useShouldShowUserFeatures = (): boolean => {- const { data: config } = useConfig();const { data: isAuthed } = useIsAuthed();const { providers } = useUserProviders();return React.useMemo(() => {- if (!config?.app_mode || !isAuthed) return false;-- // In OSS mode, only show user features if Git providers are configured- if (config.app_mode === "oss") {- return providers.length > 0;- }-- // In non-OSS modes (saas), always show user features when authenticated- return true;- }, [config?.app_mode, isAuthed, providers.length]);+ if (!isAuthed) return false;+ return providers.length > 0;+ }, [isAuthed, providers.length]);};diff --git a/src/mocks/should-start-mock-worker.ts b/src/mocks/should-start-mock-worker.tsnew file mode 100644index 0000000000..f209bbac16--- /dev/null+++ b/src/mocks/should-start-mock-worker.ts@@ -0,0 +1,9 @@+export function shouldStartMockWorker({+ mockApi = import.meta.env.VITE_MOCK_API,+ hasWindow = typeof window !== "undefined",+}: {+ mockApi?: string;+ hasWindow?: boolean;+} = {}): boolean {+ return hasWindow && mockApi === "true";+}diff --git a/src/root.tsx b/src/root.tsxindex 7273cbb7bd..9b9a4a47f3 100644--- a/src/root.tsx+++ b/src/root.tsx@@ -17,7 +17,6 @@ import {isAgentServerUnavailableError,} from "#/api/agent-server-compatibility";import { useConfig } from "#/hooks/query/use-config";-import { useInvitation } from "#/hooks/use-invitation";export function Layout({ children }: { children: React.ReactNode }) {return (@@ -115,10 +114,6 @@ export const meta: MetaFunction = () => [export default function App() {const config = useConfig({ enabled: true });- // Handle invitation token cleanup when invitation flow completes- // This runs on all pages to catch redirects from auth callback- useInvitation();-if (isAgentServerUnavailableError(config.error)) {return <MissingAgentServerNotice error={config.error} />;}diff --git a/src/routes.ts b/src/routes.tsindex a006d15fc9..7945125888 100644--- a/src/routes.ts+++ b/src/routes.ts@@ -6,41 +6,22 @@ import {} from "@react-router/dev/routes";export default [- route("login", "routes/login.tsx"),- route("onboarding", "routes/onboarding-form.tsx"),- route("information-request", "routes/information-request.tsx"),layout("routes/root-layout.tsx", [index("routes/home.tsx"),- route("accept-tos", "routes/accept-tos.tsx"),route("launch", "routes/launch.tsx"),route("settings", "routes/settings.tsx", [index("routes/llm-settings.tsx"),route("condenser", "routes/condenser-settings.tsx"),route("verification", "routes/verification-settings.tsx"),- route("org-defaults", "routes/org-default-llm-settings.tsx"),- route(- "org-defaults/condenser",- "routes/org-default-condenser-settings.tsx",- ),- route(- "org-defaults/verification",- "routes/org-default-verification-settings.tsx",- ),route("mcp", "routes/mcp-settings.tsx"),route("skills", "routes/skills-settings.tsx"),- route("user", "routes/user-settings.tsx"),route("integrations", "routes/git-settings.tsx"),route("app", "routes/app-settings.tsx"),- route("billing", "routes/billing.tsx"),route("secrets", "routes/secrets-settings.tsx"),- route("api-keys", "routes/api-keys.tsx"),- route("org-members", "routes/manage-organization-members.tsx"),- route("org", "routes/manage-org.tsx"),]),route("conversations/:conversationId", "routes/conversation.tsx"),route("oauth/device/verify", "routes/device-verify.tsx"),]),- // Shared routes that don't require authenticationroute("shared/conversations/:conversationId","routes/shared-conversation.tsx",diff --git a/src/routes/accept-tos.tsx b/src/routes/accept-tos.tsxdeleted file mode 100644index a3732273e3..0000000000--- a/src/routes/accept-tos.tsx+++ /dev/null@@ -1,56 +0,0 @@-import React from "react";-import { useTranslation } from "react-i18next";-import { useSearchParams } from "react-router";-import { I18nKey } from "#/i18n/declaration";-import OpenHandsLogo from "#/assets/branding/openhands-logo.svg?react";-import { TOSCheckbox } from "#/components/features/waitlist/tos-checkbox";-import { BrandButton } from "#/components/features/settings/brand-button";-import { ModalBackdrop } from "#/components/shared/modals/modal-backdrop";-import { useAcceptTos } from "#/hooks/mutation/use-accept-tos";--export default function AcceptTOS() {- const { t } = useTranslation();- const [searchParams] = useSearchParams();- const [isTosAccepted, setIsTosAccepted] = React.useState(false);-- // Get the redirect URL from the query parameters- const redirectUrl = searchParams.get("redirect_url") || "/";-- // Use mutation for accepting TOS- const { mutate: acceptTOS, isPending: isSubmitting } = useAcceptTos();-- const handleAcceptTOS = () => {- if (isTosAccepted && !isSubmitting) {- acceptTOS({ redirectUrl });- }- };-- return (- <ModalBackdrop>- <div className="border border-tertiary p-8 rounded-lg max-w-md w-full flex flex-col gap-6 items-center bg-base-secondary">- <OpenHandsLogo width={68} height={46} />-- <div className="flex flex-col gap-2 w-full items-center text-center">- <h1 className="text-2xl font-bold">- {t(I18nKey.TOS$ACCEPT_TERMS_OF_SERVICE)}- </h1>- <p className="text-sm text-gray-500">- {t(I18nKey.TOS$ACCEPT_TERMS_DESCRIPTION)}- </p>- </div>-- <TOSCheckbox onChange={() => setIsTosAccepted((prev) => !prev)} />-- <BrandButton- isDisabled={!isTosAccepted || isSubmitting}- type="button"- variant="primary"- onClick={handleAcceptTOS}- className="w-full font-semibold"- >- {isSubmitting ? t(I18nKey.HOME$LOADING) : t(I18nKey.TOS$CONTINUE)}- </BrandButton>- </div>- </ModalBackdrop>- );-}diff --git a/src/routes/api-keys.tsx b/src/routes/api-keys.tsxdeleted file mode 100644index 2bae9a4a9f..0000000000--- a/src/routes/api-keys.tsx+++ /dev/null@@ -1,15 +0,0 @@-import React from "react";-import { ApiKeysManager } from "#/components/features/settings/api-keys-manager";-import { createPermissionGuard } from "#/utils/org/permission-guard";--export const clientLoader = createPermissionGuard("manage_api_keys");--function ApiKeysScreen() {- return (- <div className="flex flex-col grow overflow-auto">- <ApiKeysManager />- </div>- );-}--export default ApiKeysScreen;diff --git a/src/routes/billing.tsx b/src/routes/billing.tsxdeleted file mode 100644index c4ad23c08c..0000000000--- a/src/routes/billing.tsx+++ /dev/null@@ -1,92 +0,0 @@-import { redirect, useSearchParams } from "react-router";-import React from "react";-import { useTranslation } from "react-i18next";-import { PaymentForm } from "#/components/features/payment/payment-form";-import {- displayErrorToast,- displaySuccessToast,-} from "#/utils/custom-toast-handlers";-import { I18nKey } from "#/i18n/declaration";-import { useTracking } from "#/hooks/use-tracking";-import { useMe } from "#/hooks/query/use-me";-import { usePermission } from "#/hooks/organizations/use-permissions";-import { getActiveOrganizationUser } from "#/utils/org/permission-checks";-import { rolePermissions } from "#/utils/org/permissions";-import { isBillingHidden } from "#/utils/org/billing-visibility";-import { queryClient } from "#/query-client-config";-import OptionService from "#/api/option-service/option-service.api";-import { WebClientConfig } from "#/api/option-service/option.types";-import { QUERY_KEYS, CONFIG_CACHE_OPTIONS } from "#/hooks/query/query-keys";-import { getFirstAvailablePath } from "#/utils/settings-utils";--export const clientLoader = async () => {- const config = await queryClient.fetchQuery<WebClientConfig>({- queryKey: QUERY_KEYS.WEB_CLIENT_CONFIG,- queryFn: OptionService.getConfig,- ...CONFIG_CACHE_OPTIONS,- });-- const isSaas = config?.app_mode === "saas";- const featureFlags = config?.feature_flags;-- const getFallbackPath = () =>- getFirstAvailablePath(isSaas, featureFlags) ?? "/settings";-- const user = await getActiveOrganizationUser();-- if (!user) {- return redirect(getFallbackPath());- }-- const userRole = user.role ?? "member";-- if (- isBillingHidden(config, rolePermissions[userRole].includes("view_billing"))- ) {- return redirect(getFallbackPath());- }-- return null;-};--function BillingSettingsScreen() {- const { t } = useTranslation();- const [searchParams, setSearchParams] = useSearchParams();- const { trackCreditsPurchased } = useTracking();- const { data: me } = useMe();- const { hasPermission } = usePermission(me?.role ?? "member");- const canAddCredits = !!me && hasPermission("add_credits");- const checkoutStatus = searchParams.get("checkout");- const amount = searchParams.get("amount");- const sessionId = searchParams.get("session_id");-- React.useEffect(() => {- if (checkoutStatus === "success") {- // Track credits purchased if we have the necessary data- if (amount && sessionId) {- trackCreditsPurchased({- amountUsd: parseFloat(amount),- stripeSessionId: sessionId,- });- }-- displaySuccessToast(t(I18nKey.PAYMENT$SUCCESS));-- setSearchParams({});- } else if (checkoutStatus === "cancel") {- displayErrorToast(t(I18nKey.PAYMENT$CANCELLED));- setSearchParams({});- }- }, [- checkoutStatus,- amount,- sessionId,- setSearchParams,- t,- trackCreditsPurchased,- ]);-- return <PaymentForm isDisabled={!canAddCredits} />;-}--export default BillingSettingsScreen;diff --git a/src/routes/condenser-settings.tsx b/src/routes/condenser-settings.tsxindex 8222b18f5c..ad0b3be6c8 100644--- a/src/routes/condenser-settings.tsx+++ b/src/routes/condenser-settings.tsx@@ -1,6 +1,5 @@import { SdkSectionPage } from "#/components/features/settings/sdk-settings/sdk-section-page";import { createPermissionGuard } from "#/utils/org/permission-guard";-import { requireOrgDefaultsRedirect } from "#/utils/org/saas-redirect-to-org-defaults-guard";function CondenserSettingsScreen() {return (@@ -11,15 +10,6 @@ function CondenserSettingsScreen() {);}-const orgDefaultsRedirectGuard = requireOrgDefaultsRedirect(- "/settings/org-defaults/condenser",-);-const condenserPermissionGuard = createPermissionGuard("view_llm_settings");--export const clientLoader = async (args: { request: Request }) => {- const blocked = await orgDefaultsRedirectGuard(args);- if (blocked) return blocked;- return condenserPermissionGuard(args);-};+export const clientLoader = createPermissionGuard("view_llm_settings");export default CondenserSettingsScreen;diff --git a/src/routes/device-verify.tsx b/src/routes/device-verify.tsxindex 17b9eeb0b1..84210739cf 100644--- a/src/routes/device-verify.tsx+++ b/src/routes/device-verify.tsx@@ -2,10 +2,8 @@ import React, { useState } from "react";import { useSearchParams } from "react-router";import { useTranslation } from "react-i18next";import { useIsAuthed } from "#/hooks/query/use-is-authed";-import { LoginCTA } from "#/components/features/auth/login-cta";import { I18nKey } from "#/i18n/declaration";import { H1 } from "#/ui/typography";-import { useAppMode } from "#/hooks/use-app-mode";export default function DeviceVerify() {const { t } = useTranslation();@@ -16,27 +14,23 @@ export default function DeviceVerify() {messageKey: I18nKey;} | null>(null);const [isProcessing, setIsProcessing] = useState(false);- const { isEnterpriseCloud } = useAppMode();- // Get user_code from URL parametersconst userCode = searchParams.get("user_code");const processDeviceVerification = async (code: string) => {try {setIsProcessing(true);- // Call the backend API endpoint to process device verificationconst response = await fetch("/oauth/device/verify-authenticated", {method: "POST",headers: {"Content-Type": "application/x-www-form-urlencoded",},body: `user_code=${encodeURIComponent(code)}`,- credentials: "include", // Include cookies for authentication+ credentials: "include",});if (response.ok) {- // Show success messagesetVerificationResult({success: true,messageKey: I18nKey.DEVICE$SUCCESS_MESSAGE,@@ -47,7 +41,7 @@ export default function DeviceVerify() {messageKey: I18nKey.DEVICE$ERROR_FAILED,});}- } catch (error) {+ } catch {setVerificationResult({success: false,messageKey: I18nKey.DEVICE$ERROR_OCCURRED,@@ -57,8 +51,6 @@ export default function DeviceVerify() {}};- // Remove automatic verification - require explicit user consent-const handleManualSubmit = (event: React.FormEvent<HTMLFormElement>) => {event.preventDefault();const formData = new FormData(event.currentTarget);@@ -68,7 +60,6 @@ export default function DeviceVerify() {}};- // Show verification result if we have oneif (verificationResult) {return (<div className="min-h-screen flex items-center justify-center bg-background">@@ -130,7 +121,6 @@ export default function DeviceVerify() {);}- // Show processing stateif (isProcessing) {return (<div className="min-h-screen flex items-center justify-center bg-background">@@ -146,17 +136,11 @@ export default function DeviceVerify() {);}- // Show device authorization confirmation if user is authenticated and code is providedif (isAuthed && userCode) {return (<div className="min-h-screen flex items-center justify-center bg-background p-4">- <div- className={`flex flex-col lg:flex-row items-center lg:items-stretch gap-6 w-full ${isEnterpriseCloud ? "max-w-4xl" : "max-w-md"}`}- >- {/* Device Authorization Card */}- <div- className={`flex-1 min-w-0 max-w-md w-full mx-auto p-6 bg-card rounded-2xl shadow-lg border border-[#242424] ${isEnterpriseCloud ? "lg:mx-0 lg:self-stretch" : ""}`}- >+ <div className="flex flex-col items-center gap-6 w-full max-w-md">+ <div className="flex-1 min-w-0 max-w-md w-full mx-auto p-6 bg-card rounded-2xl shadow-lg border border-[#242424]"><H1 className="text-2xl mb-4 text-center">{t(I18nKey.DEVICE$AUTHORIZATION_REQUEST)}</H1>@@ -196,17 +180,11 @@ export default function DeviceVerify() {</button></div></div>-- {/* Login CTA */}- {isEnterpriseCloud && (- <LoginCTA source="device_verify" className="lg:self-stretch" />- )}</div></div>);}- // Show manual code entry form if no code in URL but user is authenticatedif (isAuthed && !userCode) {return (<div className="min-h-screen flex items-center justify-center bg-background">@@ -246,7 +224,6 @@ export default function DeviceVerify() {);}- // Show loading state while checking authenticationif (isAuthLoading) {return (<div className="min-h-screen flex items-center justify-center bg-background">@@ -260,7 +237,6 @@ export default function DeviceVerify() {);}- // Show authentication required message (this will trigger the auth modal via root layout)return (<div className="min-h-screen flex items-center justify-center bg-background"><div className="max-w-md w-full mx-auto p-6 bg-card rounded-lg shadow-lg text-center">diff --git a/src/routes/git-settings.tsx b/src/routes/git-settings.tsxindex 7061dbe303..0389bfc5e0 100644--- a/src/routes/git-settings.tsx+++ b/src/routes/git-settings.tsx@@ -7,14 +7,10 @@ import { BrandButton } from "#/components/features/settings/brand-button";import { useLogout } from "#/hooks/mutation/use-logout";import { GitHubTokenInput } from "#/components/features/settings/git-settings/github-token-input";import { GitLabTokenInput } from "#/components/features/settings/git-settings/gitlab-token-input";-import { GitLabWebhookManager } from "#/components/features/settings/git-settings/gitlab-webhook-manager";import { BitbucketTokenInput } from "#/components/features/settings/git-settings/bitbucket-token-input";import { BitbucketDCTokenInput } from "#/components/features/settings/git-settings/bitbucket-dc-token-help-input";import { AzureDevOpsTokenInput } from "#/components/features/settings/git-settings/azure-devops-token-input";import { ForgejoTokenInput } from "#/components/features/settings/git-settings/forgejo-token-input";-import { ConfigureGitHubRepositoriesAnchor } from "#/components/features/settings/git-settings/configure-github-repositories-anchor";-import { InstallSlackAppAnchor } from "#/components/features/settings/git-settings/install-slack-app-anchor";-import DebugStackframeDot from "#/icons/debug-stackframe-dot.svg?react";import { I18nKey } from "#/i18n/declaration";import {displayErrorToast,@@ -25,7 +21,6 @@ import { GitSettingInputsSkeleton } from "#/components/features/settings/git-setimport { useAddGitProviders } from "#/hooks/mutation/use-add-git-providers";import { useUserProviders } from "#/hooks/use-user-providers";import { ProjectManagementIntegration } from "#/components/features/settings/project-management/project-management-integration";-import { Typography } from "#/ui/typography";export const clientLoader = createPermissionGuard("manage_integrations");@@ -37,7 +32,6 @@ function GitSettingsScreen() {const { data: settings, isLoading } = useSettings();const { providers } = useUserProviders();-const { data: config } = useConfig();const [githubTokenInputHasValue, setGithubTokenInputHasValue] =@@ -74,7 +68,6 @@ function GitSettingsScreen() {const existingAzureDevOpsHost = settings?.provider_tokens_set.azure_devops;const existingForgejoHost = settings?.provider_tokens_set.forgejo;- const isSaas = config?.app_mode === "saas";const isGitHubTokenSet = providers.includes("github");const isGitLabTokenSet = providers.includes("gitlab");const isBitbucketTokenSet = providers.includes("bitbucket");@@ -128,7 +121,6 @@ function GitSettingsScreen() {formData.get("forgejo-host-input")?.toString() || "").trim();- // Create providers object with all tokensconst providerTokens: Record<string, { token: string; host: string }> = {github: { token: githubToken, host: githubHost },gitlab: { token: gitlabToken, host: gitlabHost },@@ -181,8 +173,7 @@ function GitSettingsScreen() {!bitbucketDCHostInputHasValue &&!azureDevOpsHostInputHasValue &&!forgejoHostInputHasValue;- const shouldRenderExternalConfigureButtons =- isSaas && config?.github_app_slug;+const shouldRenderProjectManagementIntegrations =config?.feature_flags?.enable_jira ||config?.feature_flags?.enable_jira_dc ||@@ -195,186 +186,115 @@ function GitSettingsScreen() {className="flex flex-col h-full justify-between">{!isLoading && (- <div className="flex flex-col">- {shouldRenderExternalConfigureButtons && !isLoading && (- <>- <div className="pb-1 flex flex-col">- <h3 className="text-xl font-medium text-white">- {t(I18nKey.SETTINGS$GITHUB)}- </h3>- <ConfigureGitHubRepositoriesAnchor- slug={config.github_app_slug!}- />- </div>- <div className="w-1/2 border-b border-gray-200" />- </>- )}-- {shouldRenderExternalConfigureButtons && !isLoading && (- <>- <div className="mt-6 flex flex-col gap-4 pb-8">- <Typography.H3 className="text-xl">- {t(I18nKey.SETTINGS$GITLAB)}- </Typography.H3>- <div className="flex items-center">- <DebugStackframeDot- className="w-6 h-6 shrink-0"- color={isGitLabTokenSet ? "#BCFF8C" : "#FF684E"}- />- <Typography.Text- className="text-sm text-gray-400"- testId="gitlab-status-text"- >- {t(I18nKey.COMMON$STATUS)}:{" "}- {isGitLabTokenSet- ? t(I18nKey.STATUS$CONNECTED)- : t(I18nKey.SETTINGS$GITLAB_NOT_CONNECTED)}- </Typography.Text>- </div>- {isGitLabTokenSet && <GitLabWebhookManager />}- </div>- <div className="w-1/2 border-b border-gray-200" />- </>- )}-- {shouldRenderExternalConfigureButtons && !isLoading && (- <>- <div className="pb-1 mt-6 flex flex-col">- <h3 className="text-xl font-medium text-white">- {t(I18nKey.SETTINGS$SLACK)}- </h3>- <InstallSlackAppAnchor />- </div>- <div className="w-1/2 border-b border-gray-200" />- </>- )}-- {shouldRenderProjectManagementIntegrations && !isLoading && (+ <div className="flex flex-col gap-4">+ {shouldRenderProjectManagementIntegrations && (<div className="mt-6"><ProjectManagementIntegration /></div>)}- <div className="flex flex-col gap-4">- {!isSaas && (- <GitHubTokenInput- name="github-token-input"- isGitHubTokenSet={isGitHubTokenSet}- onChange={(value) => {- setGithubTokenInputHasValue(!!value);- }}- onGitHubHostChange={(value) => {- setGithubHostInputHasValue(!!value);- }}- githubHostSet={existingGithubHost}- />- )}+ <GitHubTokenInput+ name="github-token-input"+ isGitHubTokenSet={isGitHubTokenSet}+ onChange={(value) => {+ setGithubTokenInputHasValue(!!value);+ }}+ onGitHubHostChange={(value) => {+ setGithubHostInputHasValue(!!value);+ }}+ githubHostSet={existingGithubHost}+ />- {!isSaas && (- <GitLabTokenInput- name="gitlab-token-input"- isGitLabTokenSet={isGitLabTokenSet}- onChange={(value) => {- setGitlabTokenInputHasValue(!!value);- }}- onGitLabHostChange={(value) => {- setGitlabHostInputHasValue(!!value);- }}- gitlabHostSet={existingGitlabHost}- />- )}+ <GitLabTokenInput+ name="gitlab-token-input"+ isGitLabTokenSet={isGitLabTokenSet}+ onChange={(value) => {+ setGitlabTokenInputHasValue(!!value);+ }}+ onGitLabHostChange={(value) => {+ setGitlabHostInputHasValue(!!value);+ }}+ gitlabHostSet={existingGitlabHost}+ />- {!isSaas && (- <BitbucketTokenInput- name="bitbucket-token-input"- isBitbucketTokenSet={isBitbucketTokenSet}- onChange={(value) => {- setBitbucketTokenInputHasValue(!!value);- }}- onBitbucketHostChange={(value) => {- setBitbucketHostInputHasValue(!!value);- }}- bitbucketHostSet={existingBitbucketHost}- />- )}+ <BitbucketTokenInput+ name="bitbucket-token-input"+ isBitbucketTokenSet={isBitbucketTokenSet}+ onChange={(value) => {+ setBitbucketTokenInputHasValue(!!value);+ }}+ onBitbucketHostChange={(value) => {+ setBitbucketHostInputHasValue(!!value);+ }}+ bitbucketHostSet={existingBitbucketHost}+ />- {!isSaas && (- <BitbucketDCTokenInput- name="bitbucket-dc-token-input"- isBitbucketDCTokenSet={isBitbucketDCTokenSet}- onChange={(value) => {- setBitbucketDCTokenInputHasValue(!!value);- }}- onBitbucketDCHostChange={(value) => {- setBitbucketDCHostInputHasValue(!!value);- }}- bitbucketDCHostSet={existingBitbucketDCHost}- />- )}+ <BitbucketDCTokenInput+ name="bitbucket-dc-token-input"+ isBitbucketDCTokenSet={isBitbucketDCTokenSet}+ onChange={(value) => {+ setBitbucketDCTokenInputHasValue(!!value);+ }}+ onBitbucketDCHostChange={(value) => {+ setBitbucketDCHostInputHasValue(!!value);+ }}+ bitbucketDCHostSet={existingBitbucketDCHost}+ />- {!isSaas && (- <AzureDevOpsTokenInput- name="azure-devops-token-input"- isAzureDevOpsTokenSet={isAzureDevOpsTokenSet}- onChange={(value) => {- setAzureDevOpsTokenInputHasValue(!!value);- }}- onAzureDevOpsHostChange={(value) => {- setAzureDevOpsHostInputHasValue(!!value);- }}- azureDevOpsHostSet={existingAzureDevOpsHost}- />- )}+ <AzureDevOpsTokenInput+ name="azure-devops-token-input"+ isAzureDevOpsTokenSet={isAzureDevOpsTokenSet}+ onChange={(value) => {+ setAzureDevOpsTokenInputHasValue(!!value);+ }}+ onAzureDevOpsHostChange={(value) => {+ setAzureDevOpsHostInputHasValue(!!value);+ }}+ azureDevOpsHostSet={existingAzureDevOpsHost}+ />- {!isSaas && (- <ForgejoTokenInput- name="forgejo-token-input"- isForgejoTokenSet={isForgejoTokenSet}- onChange={(value) => {- setForgejoTokenInputHasValue(!!value);- }}- onForgejoHostChange={(value) => {- setForgejoHostInputHasValue(!!value);- }}- forgejoHostSet={existingForgejoHost}- />- )}- </div>+ <ForgejoTokenInput+ name="forgejo-token-input"+ isForgejoTokenSet={isForgejoTokenSet}+ onChange={(value) => {+ setForgejoTokenInputHasValue(!!value);+ }}+ onForgejoHostChange={(value) => {+ setForgejoHostInputHasValue(!!value);+ }}+ forgejoHostSet={existingForgejoHost}+ /></div>)}{isLoading && <GitSettingInputsSkeleton />}<div className="flex gap-6 p-6 justify-end">- {!shouldRenderExternalConfigureButtons && (- <>- <BrandButton- testId="disconnect-tokens-button"- name="disconnect-tokens-button"- type="submit"- variant="secondary"- isDisabled={- !isGitHubTokenSet &&- !isGitLabTokenSet &&- !isBitbucketTokenSet &&- !isBitbucketDCTokenSet &&- !isAzureDevOpsTokenSet &&- !isForgejoTokenSet- }- >- {t(I18nKey.GIT$DISCONNECT_TOKENS)}- </BrandButton>- <BrandButton- testId="submit-button"- type="submit"- variant="primary"- isDisabled={isPending || formIsClean}- >- {!isPending && t("SETTINGS$SAVE_CHANGES")}- {isPending && t("SETTINGS$SAVING")}- </BrandButton>- </>- )}+ <BrandButton+ testId="disconnect-tokens-button"+ name="disconnect-tokens-button"+ type="submit"+ variant="secondary"+ isDisabled={+ !isGitHubTokenSet &&+ !isGitLabTokenSet &&+ !isBitbucketTokenSet &&+ !isBitbucketDCTokenSet &&+ !isAzureDevOpsTokenSet &&+ !isForgejoTokenSet+ }+ >+ {t(I18nKey.GIT$DISCONNECT_TOKENS)}+ </BrandButton>+ <BrandButton+ testId="submit-button"+ type="submit"+ variant="primary"+ isDisabled={isPending || formIsClean}+ >+ {!isPending && t("SETTINGS$SAVE_CHANGES")}+ {isPending && t("SETTINGS$SAVING")}+ </BrandButton></div></form>);diff --git a/src/routes/information-request.tsx b/src/routes/information-request.tsxdeleted file mode 100644index c3c6911f06..0000000000--- a/src/routes/information-request.tsx+++ /dev/null@@ -1,173 +0,0 @@-import { useState, useEffect, useCallback } from "react";-import { useTranslation } from "react-i18next";-import { Link } from "react-router";-import { I18nKey } from "#/i18n/declaration";-import { Typography } from "#/ui/typography";-import {- InformationRequestForm,- RequestType,-} from "#/components/features/onboarding/information-request-form";-import { EnterpriseCard } from "#/components/features/onboarding/enterprise-card";-import OpenHandsLogoWhite from "#/assets/branding/openhands-logo-white.svg?react";-import CloudIcon from "#/icons/cloud-minimal.svg?react";-import StackedIcon from "#/icons/stacked.svg?react";-import {- EnterpriseFormData,- getEnterpriseFormData,- saveEnterpriseFormData,-} from "#/utils/local-storage";-import { cn } from "#/utils/utils";--const DEFAULT_FORM_DATA: EnterpriseFormData = {- name: "",- company: "",- email: "",- message: "",-};--export default function InformationRequest() {- const { t } = useTranslation();- const [selectedRequestType, setSelectedRequestType] =- useState<RequestType | null>(null);- const [saasFormData, setSaasFormData] =- useState<EnterpriseFormData>(DEFAULT_FORM_DATA);- const [selfHostedFormData, setSelfHostedFormData] =- useState<EnterpriseFormData>(DEFAULT_FORM_DATA);-- // Load saved form data from localStorage on mount- useEffect(() => {- const savedSaasData = getEnterpriseFormData("saas");- if (savedSaasData) {- setSaasFormData(savedSaasData);- }-- const savedSelfHostedData = getEnterpriseFormData("self-hosted");- if (savedSelfHostedData) {- setSelfHostedFormData(savedSelfHostedData);- }- }, []);-- const handleLearnMore = (type: RequestType) => {- setSelectedRequestType(type);- };-- const handleFormBack = () => {- setSelectedRequestType(null);- };-- const handleFormDataChange = useCallback(- (data: EnterpriseFormData) => {- if (selectedRequestType === "saas") {- setSaasFormData(data);- saveEnterpriseFormData("saas", data);- } else if (selectedRequestType === "self-hosted") {- setSelfHostedFormData(data);- saveEnterpriseFormData("self-hosted", data);- }- },- [selectedRequestType],- );-- const currentFormData =- selectedRequestType === "saas" ? saasFormData : selfHostedFormData;-- const saasFeatures = [- t(I18nKey.ENTERPRISE$SAAS_FEATURE_NO_INFRASTRUCTURE),- t(I18nKey.ENTERPRISE$SAAS_FEATURE_SSO),- t(I18nKey.ENTERPRISE$SAAS_FEATURE_ACCESS_ANYWHERE),- t(I18nKey.ENTERPRISE$SAAS_FEATURE_AUTO_UPDATES),- ];-- const selfHostedFeatures = [- t(I18nKey.ENTERPRISE$SELF_HOSTED_FEATURE_ON_PREMISES),- t(I18nKey.ENTERPRISE$SELF_HOSTED_FEATURE_DATA_CONTROL),- t(I18nKey.ENTERPRISE$SELF_HOSTED_FEATURE_COMPLIANCE),- t(I18nKey.ENTERPRISE$SELF_HOSTED_FEATURE_SUPPORT),- ];-- // Show form if a request type is selected- if (selectedRequestType) {- return (- <main- data-testid="information-request-page"- className={cn(- "min-h-screen flex items-center justify-center bg-base p-4",- )}- >- <div- className={cn(- "w-full max-w-4xl flex flex-col items-center gap-8 p-6",- )}- >- <InformationRequestForm- requestType={selectedRequestType}- formData={currentFormData}- onFormDataChange={handleFormDataChange}- onBack={handleFormBack}- />- </div>- </main>- );- }-- return (- <main- data-testid="information-request-page"- className={cn(- "min-h-screen flex items-center justify-center bg-base p-4",- )}- >- <div- className={cn(- "w-full max-w-4xl flex flex-col items-center gap-[16px] p-6",- )}- >- {/* Logo */}- <OpenHandsLogoWhite width={56} height={56} />-- {/* Header */}- <div className={cn("text-center flex flex-col gap-3")}>- <Typography.H1 className={cn("text-2xl font-bold")}>- {t(I18nKey.ENTERPRISE$GET_OPENHANDS_TITLE)}- </Typography.H1>- <Typography.Text className={cn("text-[#8C8C8C] max-w-lg")}>- {t(I18nKey.ENTERPRISE$GET_OPENHANDS_SUBTITLE)}- </Typography.Text>- </div>-- {/* Cards */}- <div className={cn("w-full flex flex-col md:flex-row gap-4")}>- <EnterpriseCard- icon={<CloudIcon className={cn("w-10 h-10 text-[#8C8C8C]")} />}- title={t(I18nKey.ENTERPRISE$SAAS_TITLE)}- description={t(I18nKey.ENTERPRISE$SAAS_DESCRIPTION)}- features={saasFeatures}- onLearnMore={() => handleLearnMore("saas")}- learnMoreLabel={t(I18nKey.ENTERPRISE$LEARN_MORE)}- />- <EnterpriseCard- icon={<StackedIcon className={cn("w-10 h-10")} />}- title={t(I18nKey.ENTERPRISE$SELF_HOSTED_TITLE)}- description={t(I18nKey.ENTERPRISE$SELF_HOSTED_CARD_DESCRIPTION)}- features={selfHostedFeatures}- onLearnMore={() => handleLearnMore("self-hosted")}- learnMoreLabel={t(I18nKey.ENTERPRISE$LEARN_MORE)}- />- </div>-- {/* Back Link */}- <Link- to="/login"- aria-label={t(I18nKey.COMMON$BACK)}- className={cn(- "px-6 py-2.5 text-sm rounded-sm",- "bg-[#050505] text-white border border-[#242424]",- "hover:bg-white hover:text-black transition-colors",- )}- >- {t(I18nKey.COMMON$BACK)}- </Link>- </div>- </main>- );-}diff --git a/src/routes/llm-settings.tsx b/src/routes/llm-settings.tsxindex 960bb7a3e3..cd76c1e1a1 100644--- a/src/routes/llm-settings.tsx+++ b/src/routes/llm-settings.tsx@@ -3,7 +3,6 @@ import { useSearchParams } from "react-router";import { useTranslation } from "react-i18next";import { ModelSelector } from "#/components/shared/modals/settings/model-selector";import { createPermissionGuard } from "#/utils/org/permission-guard";-import { requireOrgDefaultsRedirect } from "#/utils/org/saas-redirect-to-org-defaults-guard";import { useAgentSettingsSchema } from "#/hooks/query/use-agent-settings-schema";import { useSettings } from "#/hooks/query/use-settings";import { SettingsInput } from "#/components/features/settings/settings-input";@@ -398,15 +397,6 @@ export function LlmSettingsScreen({);}-const orgDefaultsRedirectGuard = requireOrgDefaultsRedirect(- "/settings/org-defaults",-);-const llmPermissionGuard = createPermissionGuard("view_llm_settings");--export const clientLoader = async (args: { request: Request }) => {- const blocked = await orgDefaultsRedirectGuard(args);- if (blocked) return blocked;- return llmPermissionGuard(args);-};+export const clientLoader = createPermissionGuard("view_llm_settings");export default LlmSettingsScreen;diff --git a/src/routes/login.tsx b/src/routes/login.tsxdeleted file mode 100644index 2227c09eb0..0000000000--- a/src/routes/login.tsx+++ /dev/null@@ -1,119 +0,0 @@-import React from "react";-import { useNavigate, useSearchParams, useLocation } from "react-router";-import { useIsAuthed } from "#/hooks/query/use-is-authed";-import { useConfig } from "#/hooks/query/use-config";-import { useGitHubAuthUrl } from "#/hooks/use-github-auth-url";-import { useEmailVerification } from "#/hooks/use-email-verification";-import { useInvitation } from "#/hooks/use-invitation";-import { LoginContent } from "#/components/features/auth/login-content";-import { EmailVerificationModal } from "#/components/features/waitlist/email-verification-modal";-import { RequestSubmittedModal } from "#/components/features/onboarding/request-submitted-modal";--interface LocationState {- showRequestSubmittedModal?: boolean;-}--export default function LoginPage() {- const navigate = useNavigate();- const location = useLocation();- const [searchParams] = useSearchParams();- const returnTo = searchParams.get("returnTo") || "/";- const locationState = location.state as LocationState | null;-- const config = useConfig();- const { data: isAuthed, isLoading: isAuthLoading } = useIsAuthed();- const {- emailVerified,- hasDuplicatedEmail,- recaptchaBlocked,- wasRateLimited,- emailVerificationModalOpen,- setEmailVerificationModalOpen,- userId,- } = useEmailVerification();-- const { hasInvitation, buildOAuthStateData } = useInvitation();-- const gitHubAuthUrl = useGitHubAuthUrl({- appMode: config.data?.app_mode || null,- authUrl: config.data?.auth_url,- });-- const [showRequestModal, setShowRequestModal] = React.useState(- () => locationState?.showRequestSubmittedModal ?? false,- );-- const handleRequestModalClose = () => {- setShowRequestModal(false);- navigate(location.pathname, { replace: true, state: {} });- };-- // Redirect OSS mode users to home- React.useEffect(() => {- if (!config.isLoading && config.data?.app_mode === "oss") {- navigate("/", { replace: true });- }- }, [config.isLoading, config.data?.app_mode, navigate]);-- // Redirect authenticated users away from login page- // Preserve login_method param so useAuthCallback can store it for auto-login- React.useEffect(() => {- if (!isAuthLoading && isAuthed) {- const loginMethod = searchParams.get("login_method");- let destination = returnTo;- if (loginMethod) {- const separator = returnTo.includes("?") ? "&" : "?";- destination = `${returnTo}${separator}login_method=${encodeURIComponent(loginMethod)}`;- }- navigate(destination, { replace: true });- }- }, [isAuthed, isAuthLoading, navigate, returnTo, searchParams]);-- if (isAuthLoading || config.isLoading) {- return (- <div className="min-h-screen flex items-center justify-center bg-base">- <div className="animate-spin rounded-full h-8 w-8 border-b-2 border-white" />- </div>- );- }-- // Don't render login content if user is authenticated or in OSS mode- if (isAuthed || config.data?.app_mode === "oss") {- return null;- }-- return (- <>- <main- className="min-h-screen flex items-center justify-center bg-base p-4"- data-testid="login-page"- >- <LoginContent- githubAuthUrl={gitHubAuthUrl}- appMode={config.data?.app_mode}- authUrl={config.data?.auth_url}- providersConfigured={config.data?.providers_configured}- emailVerified={emailVerified}- hasDuplicatedEmail={hasDuplicatedEmail}- recaptchaBlocked={recaptchaBlocked}- hasInvitation={hasInvitation}- buildOAuthStateData={buildOAuthStateData}- />- </main>-- {emailVerificationModalOpen && (- <EmailVerificationModal- onClose={() => {- setEmailVerificationModalOpen(false);- }}- userId={userId}- wasRateLimited={wasRateLimited}- />- )}-- {showRequestModal && (- <RequestSubmittedModal onClose={handleRequestModalClose} />- )}- </>- );-}diff --git a/src/routes/manage-org.tsx b/src/routes/manage-org.tsxdeleted file mode 100644index fb42393c1f..0000000000--- a/src/routes/manage-org.tsx+++ /dev/null@@ -1,124 +0,0 @@-import React from "react";-import { useTranslation } from "react-i18next";-import { useOrganization } from "#/hooks/query/use-organization";-import { useMe } from "#/hooks/query/use-me";-import { useConfig } from "#/hooks/query/use-config";-import { I18nKey } from "#/i18n/declaration";-import { CreditsChip } from "#/ui/credits-chip";-import { InteractiveChip } from "#/ui/interactive-chip";-import { usePermission } from "#/hooks/organizations/use-permissions";-import { createPermissionGuard } from "#/utils/org/permission-guard";-import { isBillingHidden } from "#/utils/org/billing-visibility";-import { DeleteOrgConfirmationModal } from "#/components/features/org/delete-org-confirmation-modal";-import { GitConversationRouting } from "#/components/features/org/git-conversation-routing";-import { ChangeOrgNameModal } from "#/components/features/org/change-org-name-modal";-import { AddCreditsModal } from "#/components/features/org/add-credits-modal";-import { useBalance } from "#/hooks/query/use-balance";-import { cn } from "#/utils/utils";--export const clientLoader = createPermissionGuard("view_billing");--function ManageOrg() {- const { t } = useTranslation();- const { data: me } = useMe();- const { data: organization } = useOrganization();- const { data: balance } = useBalance();- const { data: config } = useConfig();-- const role = me?.role ?? "member";- const { hasPermission } = usePermission(role);-- const [addCreditsFormVisible, setAddCreditsFormVisible] =- React.useState(false);- const [changeOrgNameFormVisible, setChangeOrgNameFormVisible] =- React.useState(false);- const [deleteOrgConfirmationVisible, setDeleteOrgConfirmationVisible] =- React.useState(false);-- const canChangeOrgName = !!me && hasPermission("change_organization_name");- const canDeleteOrg = !!me && hasPermission("delete_organization");- const canAddCredits = !!me && hasPermission("add_credits");- const canManageOrgClaims = !!me && hasPermission("manage_org_claims");- const shouldHideBilling = isBillingHidden(- config,- hasPermission("view_billing"),- );-- return (- <div- data-testid="manage-org-screen"- className="flex flex-col items-start gap-6"- >- {changeOrgNameFormVisible && (- <ChangeOrgNameModal- onClose={() => setChangeOrgNameFormVisible(false)}- />- )}- {deleteOrgConfirmationVisible && (- <DeleteOrgConfirmationModal- onClose={() => setDeleteOrgConfirmationVisible(false)}- />- )}-- {!shouldHideBilling && (- <div className="flex flex-col gap-2">- <span className="text-white text-xs font-semibold">- {t(I18nKey.ORG$CREDITS)}- </span>- <div className="flex items-center gap-2">- <CreditsChip testId="available-credits">- ${Number(balance ?? 0).toFixed(2)}- </CreditsChip>- {canAddCredits && (- <InteractiveChip onClick={() => setAddCreditsFormVisible(true)}>- {t(I18nKey.ORG$ADD)}- </InteractiveChip>- )}- </div>- </div>- )}-- {addCreditsFormVisible && !shouldHideBilling && (- <AddCreditsModal onClose={() => setAddCreditsFormVisible(false)} />- )}-- <div data-testid="org-name" className="flex flex-col gap-2 w-sm">- <span className="text-white text-xs font-semibold">- {t(I18nKey.ORG$ORGANIZATION_NAME)}- </span>-- <div- className={cn(- "text-sm p-3 bg-modal-input rounded",- "flex items-center justify-between",- )}- >- <span className="text-white">{organization?.name}</span>- {canChangeOrgName && (- <button- type="button"- onClick={() => setChangeOrgNameFormVisible(true)}- className="text-sm text-org-text font-normal leading-5 hover:text-white transition-colors cursor-pointer"- >- {t(I18nKey.ORG$CHANGE)}- </button>- )}- </div>- </div>-- {canDeleteOrg && (- <button- type="button"- onClick={() => setDeleteOrgConfirmationVisible(true)}- className="text-xs text-[#FF3B30] cursor-pointer font-semibold hover:underline"- >- {t(I18nKey.ORG$DELETE_ORGANIZATION)}- </button>- )}-- {canManageOrgClaims && <GitConversationRouting />}- </div>- );-}--export default ManageOrg;diff --git a/src/routes/manage-organization-members.tsx b/src/routes/manage-organization-members.tsxdeleted file mode 100644index 1561c289ba..0000000000--- a/src/routes/manage-organization-members.tsx+++ /dev/null@@ -1,269 +0,0 @@-import React from "react";-import ReactDOM from "react-dom";-import { useTranslation } from "react-i18next";-import { LoaderCircle, Plus, Search } from "lucide-react";-import { InviteOrganizationMemberModal } from "#/components/features/org/invite-organization-member-modal";-import { ConfirmRemoveMemberModal } from "#/components/features/org/confirm-remove-member-modal";-import { ConfirmUpdateRoleModal } from "#/components/features/org/confirm-update-role-modal";-import { useOrganizationMembers } from "#/hooks/query/use-organization-members";-import { useOrganizationMembersCount } from "#/hooks/query/use-organization-members-count";-import { OrganizationMember, OrganizationUserRole } from "#/types/org";-import { OrganizationMemberListItem } from "#/components/features/org/organization-member-list-item";-import { useUpdateMemberRole } from "#/hooks/mutation/use-update-member-role";-import { useRemoveMember } from "#/hooks/mutation/use-remove-member";-import { useMe } from "#/hooks/query/use-me";-import { BrandButton } from "#/components/features/settings/brand-button";-import { rolePermissions } from "#/utils/org/permissions";-import { I18nKey } from "#/i18n/declaration";-import { usePermission } from "#/hooks/organizations/use-permissions";-import { getAvailableRolesAUserCanAssign } from "#/utils/org/permission-checks";-import { createPermissionGuard } from "#/utils/org/permission-guard";-import { Typography } from "#/ui/typography";-import { Pagination } from "#/ui/pagination";-import { useDebounce } from "#/hooks/use-debounce";--export const clientLoader = createPermissionGuard(- "invite_user_to_organization",-);--export const handle = { hideTitle: true };--function ManageOrganizationMembers() {- const { t } = useTranslation();-- // Pagination and filtering state- const [page, setPage] = React.useState(1);- const [emailFilter, setEmailFilter] = React.useState("");- const debouncedEmailFilter = useDebounce(emailFilter, 300);-- // Reset to page 1 when filter changes- React.useEffect(() => {- setPage(1);- }, [debouncedEmailFilter]);-- const limit = 10;-- const {- data: membersData,- isLoading,- isFetching,- error: membersError,- } = useOrganizationMembers({- page,- limit,- email: debouncedEmailFilter,- });-- const { data: totalCount, error: countError } = useOrganizationMembersCount({- email: debouncedEmailFilter,- });-- const hasError = membersError || countError;-- const { data: user } = useMe();- const { mutate: updateMemberRole, isPending: isUpdatingRole } =- useUpdateMemberRole();- const { mutate: removeMember, isPending: isRemovingMember } =- useRemoveMember();- const [inviteModalOpen, setInviteModalOpen] = React.useState(false);- const [memberToRemove, setMemberToRemove] =- React.useState<OrganizationMember | null>(null);- const [memberToUpdateRole, setMemberToUpdateRole] = React.useState<{- member: OrganizationMember;- newRole: OrganizationUserRole;- } | null>(null);-- const currentUserRole = user?.role ?? "member";-- const { hasPermission } = usePermission(currentUserRole);- const hasPermissionToInvite = hasPermission("invite_user_to_organization");-- // Calculate total pages- const totalPages =- totalCount !== undefined ? Math.ceil(totalCount / limit) : 0;-- const handleRoleSelectionClick = (- member: OrganizationMember,- role: OrganizationUserRole,- ) => {- // Don't show modal if the role is the same- if (member.role === role) {- return;- }- setMemberToUpdateRole({ member, newRole: role });- };-- const handleConfirmUpdateRole = () => {- if (memberToUpdateRole) {- updateMemberRole(- {- userId: memberToUpdateRole.member.user_id,- role: memberToUpdateRole.newRole,- },- { onSettled: () => setMemberToUpdateRole(null) },- );- }- };-- const handleRemoveMember = (member: OrganizationMember) => {- setMemberToRemove(member);- };-- const handleConfirmRemoveMember = () => {- if (memberToRemove) {- removeMember(- { userId: memberToRemove.user_id },- { onSettled: () => setMemberToRemove(null) },- );- }- };-- const availableRolesToChangeTo = getAvailableRolesAUserCanAssign(- rolePermissions[currentUserRole],- );-- const canAssignUserRole = (member: OrganizationMember) =>- user != null &&- user?.user_id !== member.user_id &&- hasPermission(`change_user_role:${member.role}`);-- return (- <div- data-testid="manage-organization-members-settings"- className="flex flex-col gap-2 h-full"- >- <div className="flex items-center justify-between pb-6">- <Typography.H2>{t(I18nKey.ORG$ORGANIZATION_MEMBERS)}</Typography.H2>- {hasPermissionToInvite && (- <BrandButton- type="button"- variant="primary"- onClick={() => setInviteModalOpen(true)}- startContent={<Plus size={14} />}- >- {t(I18nKey.ORG$INVITE_ORG_MEMBERS)}- </BrandButton>- )}- </div>-- {/* Email Search Input */}- <div className="rounded-sm w-80 h-10 p-2 bg-tertiary border border-[#717888] flex items-center gap-2 mb-4">- <Search size={16} className="text-tertiary-alt" />- <input- data-testid="email-filter-input"- type="text"- value={emailFilter}- placeholder={t(I18nKey.ORG$SEARCH_BY_EMAIL)}- onChange={(e) => setEmailFilter(e.target.value)}- className="w-full leading-4 font-normal bg-transparent placeholder:italic placeholder:text-tertiary-alt outline-none"- />- {isFetching && debouncedEmailFilter && (- <LoaderCircle- size={16}- className="text-tertiary-alt animate-spin"- data-testid="search-loading-indicator"- />- )}- </div>-- {inviteModalOpen &&- ReactDOM.createPortal(- <InviteOrganizationMemberModal- onClose={() => setInviteModalOpen(false)}- />,- document.getElementById("portal-root") || document.body,- )}-- <div className="rounded-xl border border-org-border bg-org-background table-box-shadow flex-1 overflow-y-auto custom-scrollbar">- <div className="flex items-center justify-between pl-6 pr-6 text-[11px] text-white font-medium leading-4 border-b border-org-divider w-full h-9">- <span>{t(I18nKey.ORG$ALL_ORGANIZATION_MEMBERS)}</span>- {totalCount !== undefined && (- <span className="text-tertiary-alt">- {totalCount} {totalCount === 1 ? "member" : "members"}- </span>- )}- </div>-- {isLoading && (- <div className="flex items-center justify-center p-8 text-tertiary-alt">- Loading...- </div>- )}-- {!isLoading && hasError && (- <div className="flex items-center justify-center p-8 text-tertiary-alt">- {t(I18nKey.ORG$FAILED_TO_LOAD_MEMBERS)}- </div>- )}-- {!isLoading &&- !hasError &&- membersData?.items &&- membersData.items.length > 0 && (- <ul>- {membersData.items.map((member) => (- <li- key={member.user_id}- data-testid="member-item"- className="border-b border-org-divider last:border-none px-6"- >- <OrganizationMemberListItem- email={member.email}- role={member.role}- status={member.status}- hasPermissionToChangeRole={canAssignUserRole(member)}- availableRolesToChangeTo={availableRolesToChangeTo}- onRoleChange={(role) =>- handleRoleSelectionClick(member, role)- }- onRemove={() => handleRemoveMember(member)}- />- </li>- ))}- </ul>- )}-- {!isLoading &&- !hasError &&- (!membersData?.items || membersData.items.length === 0) && (- <div className="flex items-center justify-center p-8 text-tertiary-alt">- {debouncedEmailFilter- ? t(I18nKey.ORG$NO_MEMBERS_MATCHING_FILTER)- : t(I18nKey.ORG$NO_MEMBERS_FOUND)}- </div>- )}- </div>-- {/* Pagination */}- {totalPages > 1 && (- <Pagination- currentPage={page}- totalPages={totalPages}- onPageChange={setPage}- className="py-4"- />- )}-- {memberToRemove && (- <ConfirmRemoveMemberModal- memberEmail={memberToRemove.email}- onConfirm={handleConfirmRemoveMember}- onCancel={() => setMemberToRemove(null)}- isLoading={isRemovingMember}- />- )}-- {memberToUpdateRole && (- <ConfirmUpdateRoleModal- memberEmail={memberToUpdateRole.member.email}- newRole={memberToUpdateRole.newRole}- onConfirm={handleConfirmUpdateRole}- onCancel={() => setMemberToUpdateRole(null)}- isLoading={isUpdatingRole}- />- )}- </div>- );-}--export default ManageOrganizationMembers;diff --git a/src/routes/onboarding-form.tsx b/src/routes/onboarding-form.tsxdeleted file mode 100644index 9799253056..0000000000--- a/src/routes/onboarding-form.tsx+++ /dev/null@@ -1,271 +0,0 @@-import React from "react";-import { useTranslation } from "react-i18next";-import { useNavigate, redirect, useLoaderData } from "react-router";-import StepHeader from "#/components/features/onboarding/step-header";-import { StepContent } from "#/components/features/onboarding/step-content";-import { BrandButton } from "#/components/features/settings/brand-button";-import { I18nKey } from "#/i18n/declaration";-import OpenHandsLogoWhite from "#/assets/branding/openhands-logo-white.svg?react";-import { useSubmitOnboarding } from "#/hooks/mutation/use-submit-onboarding";-import { useTracking } from "#/hooks/use-tracking";-import { cn } from "#/utils/utils";-import { useMe } from "#/hooks/query/use-me";-import {- ONBOARDING_FORM,- OnboardingQuestion,- OnboardingAppMode,-} from "#/constants/onboarding";-import {- DeploymentMode,- WebClientConfig,-} from "#/api/option-service/option.types";-import { queryClient } from "#/query-client-config";-import OptionService from "#/api/option-service/option-service.api";--export const clientLoader = async () => {- let config = queryClient.getQueryData<WebClientConfig>(["web-client-config"]);- if (!config) {- config = await OptionService.getConfig();- queryClient.setQueryData<WebClientConfig>(["web-client-config"], config);- }-- // Only allow access to onboarding for SaaS mode (cloud or self-hosted)- // OSS users should never reach /onboarding- if (config?.app_mode !== "saas") {- return redirect("/");- }-- return { config };-};--type OnboardingAnswers = Record<string, string | string[]>;--function getOnboardingAppMode(- deploymentMode: DeploymentMode | undefined,-): OnboardingAppMode {- if (deploymentMode === "self_hosted") return "self-hosted";- if (deploymentMode === "cloud") return "cloud";- return "oss";-}--function getAnswerAsArray(answers: OnboardingAnswers, key: string): string[] {- const value = answers[key];- if (!value) return [];- return Array.isArray(value) ? value : [value];-}--function getTranslatedOptions(- step: OnboardingQuestion,- t: (key: I18nKey) => string,-) {- if (step.type === "input") return undefined;- return step.answerOptions.map((option) => ({- id: option.id,- label: t(option.key),- }));-}--function getTranslatedInputFields(- step: OnboardingQuestion,- t: (key: I18nKey) => string,-) {- if (step.type !== "input") return undefined;- return step.inputOptions.map((field) => ({- id: field.id,- label: t(field.key),- }));-}--function OnboardingForm() {- const { t } = useTranslation();- const navigate = useNavigate();- const loaderData = useLoaderData<typeof clientLoader>();- const config = loaderData?.config;- const { data: me } = useMe();- const { mutate: submitOnboarding } = useSubmitOnboarding();- const { trackOnboardingCompleted } = useTracking();-- const onboardingAppMode: OnboardingAppMode = getOnboardingAppMode(- config?.feature_flags?.deployment_mode,- );-- const steps = React.useMemo(- () =>- ONBOARDING_FORM.filter((step) =>- step.app_mode.includes(onboardingAppMode),- ),- [onboardingAppMode],- );-- const [currentStepIndex, setCurrentStepIndex] = React.useState(0);- const [answers, setAnswers] = React.useState<OnboardingAnswers>({});-- const currentStep = steps[currentStepIndex];- const isLastStep = currentStepIndex === steps.length - 1;- const isFirstStep = currentStepIndex === 0;-- const currentSelections = React.useMemo(- () => (currentStep ? getAnswerAsArray(answers, currentStep.id) : []),- [answers, currentStep],- );-- const isStepComplete = React.useMemo(() => {- if (!currentStep) return false;-- if (currentStep.type === "input") {- return currentStep.inputOptions.every((field) => {- const value = answers[field.id];- return typeof value === "string" && value.trim() !== "";- });- }- return currentSelections.length > 0;- }, [currentStep, answers, currentSelections]);-- const inputValues = React.useMemo(() => {- const result: Record<string, string> = {};- for (const [key, value] of Object.entries(answers)) {- if (typeof value === "string") {- result[key] = value;- }- }- return result;- }, [answers]);-- const handleSelectOption = (optionId: string) => {- if (!currentStep) return;-- if (currentStep.type === "multi") {- setAnswers((prev) => {- const currentArray = getAnswerAsArray(prev, currentStep.id);-- if (currentArray.includes(optionId)) {- return {- ...prev,- [currentStep.id]: currentArray.filter((id) => id !== optionId),- };- }- return {- ...prev,- [currentStep.id]: [...currentArray, optionId],- };- });- } else {- setAnswers((prev) => ({- ...prev,- [currentStep.id]: optionId,- }));- }- };-- const handleInputChange = (fieldId: string, value: string) => {- setAnswers((prev) => ({- ...prev,- [fieldId]: value,- }));- };-- const handleNext = () => {- if (isLastStep) {- submitOnboarding({ selections: answers });-- // Track onboarding completion based on deployment mode:- // - Cloud mode: track ALL users- // - Self-hosted mode: track only org owners (SuperAdmin)- const deploymentMode = config?.feature_flags?.deployment_mode;- const isOwner = me?.role === "owner";- const shouldTrack =- deploymentMode === "cloud" ||- (deploymentMode === "self_hosted" && isOwner);-- if (shouldTrack) {- trackOnboardingCompleted({- role: typeof answers.role === "string" ? answers.role : undefined,- orgSize:- typeof answers.org_size === "string" ? answers.org_size : undefined,- useCase: Array.isArray(answers.use_case)- ? answers.use_case- : undefined,- });- }- } else {- setCurrentStepIndex((prev) => prev + 1);- }- };-- const handleBack = () => {- if (isFirstStep) {- navigate(-1);- } else {- setCurrentStepIndex((prev) => prev - 1);- }- };-- if (!currentStep) {- return null;- }-- const translatedOptions = getTranslatedOptions(currentStep, t);- const translatedInputFields = getTranslatedInputFields(currentStep, t);-- return (- <div className="min-h-screen flex items-center justify-center bg-base">- <div- data-testid="onboarding-form"- className="w-[500px] max-w-[calc(100vw-2rem)] mx-auto p-4 sm:p-6 flex flex-col justify-center overflow-hidden"- >- <div className="flex flex-col items-center mb-4">- <OpenHandsLogoWhite width={55} height={55} />- </div>- <StepHeader- title={t(currentStep.questionKey)}- subtitle={- currentStep.subtitleKey ? t(currentStep.subtitleKey) : undefined- }- currentStep={currentStepIndex + 1}- totalSteps={steps.length}- />- <StepContent- options={translatedOptions}- inputFields={translatedInputFields}- selectedOptionIds={currentSelections}- inputValues={inputValues}- onSelectOption={handleSelectOption}- onInputChange={handleInputChange}- />- <div- data-testid="step-actions"- className="flex justify-end items-center gap-3"- >- {!isFirstStep && (- <BrandButton- type="button"- variant="secondary"- onClick={handleBack}- className="flex-1 px-4 sm:px-6 py-2.5 bg-[050505] text-white border hover:bg-white border-[#242424] hover:text-black"- >- {t(I18nKey.ONBOARDING$BACK_BUTTON)}- </BrandButton>- )}- <BrandButton- type="button"- variant="primary"- onClick={handleNext}- isDisabled={!isStepComplete}- className={cn(- "px-4 sm:px-6 py-2.5 bg-white text-black hover:bg-white/90",- isFirstStep ? "w-1/2" : "flex-1",- )}- >- {t(- isLastStep- ? I18nKey.ONBOARDING$FINISH_BUTTON- : I18nKey.ONBOARDING$NEXT_BUTTON,- )}- </BrandButton>- </div>- </div>- </div>- );-}--export default OnboardingForm;diff --git a/src/routes/org-default-condenser-settings.tsx b/src/routes/org-default-condenser-settings.tsxdeleted file mode 100644index cba3222e0b..0000000000--- a/src/routes/org-default-condenser-settings.tsx+++ /dev/null@@ -1,20 +0,0 @@-import { SdkSectionPage } from "#/components/features/settings/sdk-settings/sdk-section-page";-import { OrgDefaultsBanner } from "#/components/features/settings/org-defaults-banner";-import { createPermissionGuard } from "#/utils/org/permission-guard";--const renderOrgDefaultsBanner = () => <OrgDefaultsBanner />;--function OrgDefaultCondenserSettingsScreen() {- return (- <SdkSectionPage- scope="org"- sectionKeys={["condenser"]}- header={renderOrgDefaultsBanner}- testId="org-default-condenser-settings-screen"- />- );-}--export const clientLoader = createPermissionGuard("view_llm_settings");--export default OrgDefaultCondenserSettingsScreen;diff --git a/src/routes/org-default-llm-settings.tsx b/src/routes/org-default-llm-settings.tsxdeleted file mode 100644index a040922b64..0000000000--- a/src/routes/org-default-llm-settings.tsx+++ /dev/null@@ -1,10 +0,0 @@-import { createPermissionGuard } from "#/utils/org/permission-guard";-import { LlmSettingsScreen } from "./llm-settings";--export const clientLoader = createPermissionGuard("view_llm_settings");--function OrgDefaultLlmSettingsScreen() {- return <LlmSettingsScreen scope="org" />;-}--export default OrgDefaultLlmSettingsScreen;diff --git a/src/routes/org-default-verification-settings.tsx b/src/routes/org-default-verification-settings.tsxdeleted file mode 100644index b7a4254e24..0000000000--- a/src/routes/org-default-verification-settings.tsx+++ /dev/null@@ -1,19 +0,0 @@-import { OrgDefaultsBanner } from "#/components/features/settings/org-defaults-banner";-import { createPermissionGuard } from "#/utils/org/permission-guard";-import { VerificationSettingsScreen } from "./verification-settings";--const renderOrgDefaultsBanner = () => <OrgDefaultsBanner />;--function OrgDefaultVerificationSettingsScreen() {- return (- <VerificationSettingsScreen- scope="org"- renderTopContent={renderOrgDefaultsBanner}- testId="org-default-verification-settings-screen"- />- );-}--export const clientLoader = createPermissionGuard("view_llm_settings");--export default OrgDefaultVerificationSettingsScreen;diff --git a/src/routes/root-layout.tsx b/src/routes/root-layout.tsxindex 636ae85c11..5fa12253bf 100644--- a/src/routes/root-layout.tsx+++ b/src/routes/root-layout.tsx@@ -3,36 +3,21 @@ import {useRouteError,isRouteErrorResponse,Outlet,- useNavigate,useLocation,- useSearchParams,} from "react-router";import { useTranslation } from "react-i18next";import { I18nKey } from "#/i18n/declaration";import i18n from "#/i18n";-import { useIsAuthed } from "#/hooks/query/use-is-authed";import { useConfig } from "#/hooks/query/use-config";import { Sidebar } from "#/components/features/sidebar/sidebar";-import { ReauthModal } from "#/components/features/waitlist/reauth-modal";import { AnalyticsConsentFormModal } from "#/components/features/analytics/analytics-consent-form-modal";import { useSettings } from "#/hooks/query/use-settings";import { useMigrateUserConsent } from "#/hooks/use-migrate-user-consent";-import { displaySuccessToast } from "#/utils/custom-toast-handlers";-import { useIsOnIntermediatePage } from "#/hooks/use-is-on-intermediate-page";-import { useAutoLogin } from "#/hooks/use-auto-login";-import { useAuthCallback } from "#/hooks/use-auth-callback";-import { useReoTracking } from "#/hooks/use-reo-tracking";import { useSyncPostHogConsent } from "#/hooks/use-sync-posthog-consent";-import { useAutoSelectOrganization } from "#/hooks/use-auto-select-organization";-import { LOCAL_STORAGE_KEYS } from "#/utils/local-storage";-import { EmailVerificationGuard } from "#/components/features/guards/email-verification-guard";import { AlertBanner } from "#/components/features/alerts/alert-banner";import { cn } from "#/utils/utils";import { LoadingSpinner } from "#/components/shared/loading-spinner";import { useAppTitle } from "#/hooks/use-app-title";-import { useInvitation } from "#/hooks/use-invitation";-import { InvitationAcceptModal } from "#/components/features/invitations/invitation-accept-modal";-import { useSwitchOrganization } from "#/hooks/mutation/use-switch-organization";export function ErrorBoundary() {const error = useRouteError();@@ -69,172 +54,34 @@ export function ErrorBoundary() {export default function MainApp() {const appTitle = useAppTitle();- const navigate = useNavigate();const { pathname } = useLocation();- const [searchParams] = useSearchParams();- const isOnIntermediatePage = useIsOnIntermediatePage();const { data: settings } = useSettings();const { migrateUserConsent } = useMigrateUserConsent();- const { t } = useTranslation();-const config = useConfig();- const {- data: isAuthed,- isFetching: isFetchingAuth,- isLoading: isAuthLoading,- isError: isAuthError,- } = useIsAuthed();const [consentFormIsOpen, setConsentFormIsOpen] = React.useState(false);- // Invitation acceptance modal state- const { invitationToken, clearInvitation } = useInvitation();- const { mutate: switchOrganization } = useSwitchOrganization();- const [showInvitationModal, setShowInvitationModal] = React.useState(false);-- // Auto-login if login method is stored in local storage- useAutoLogin();-- // Handle authentication callback and set login method after successful authentication- useAuthCallback();-- // Initialize Reo.dev tracking in SaaS mode- useReoTracking();-- // Sync PostHog opt-in/out state with backend setting on mountuseSyncPostHogConsent();- // Auto-select the first organization when none is selected- useAutoSelectOrganization();-React.useEffect(() => {- // Don't change language when on intermediate pages (TOS, profile questions)- if (!isOnIntermediatePage && settings?.language) {+ if (settings?.language) {i18n.changeLanguage(settings.language);}- }, [settings?.language, isOnIntermediatePage]);-- React.useEffect(() => {- // Don't show consent form when on intermediate pages- if (!isOnIntermediatePage) {- const consentFormModalIsOpen =- settings?.user_consents_to_analytics === null;-- setConsentFormIsOpen(consentFormModalIsOpen);- }- }, [settings, isOnIntermediatePage]);+ }, [settings?.language]);React.useEffect(() => {- // Don't migrate user consent when on intermediate pages- if (!isOnIntermediatePage) {- // Migrate user consent to the server if it was previously stored in localStorage- migrateUserConsent({- handleAnalyticsWasPresentInLocalStorage: () => {- setConsentFormIsOpen(false);- },- });- }- }, [isOnIntermediatePage]);-- React.useEffect(() => {- if (settings?.is_new_user && config.data?.app_mode === "saas") {- displaySuccessToast(t(I18nKey.BILLING$YOURE_IN));- }- }, [settings?.is_new_user, config.data?.app_mode]);+ setConsentFormIsOpen(settings?.user_consents_to_analytics === null);+ }, [settings?.user_consents_to_analytics]);- // Show invitation modal when authenticated and has invitation tokenReact.useEffect(() => {- if (isAuthed && invitationToken && !isOnIntermediatePage) {- setShowInvitationModal(true);- }- }, [isAuthed, invitationToken, isOnIntermediatePage]);-- const handleInvitationClose = React.useCallback(() => {- setShowInvitationModal(false);- clearInvitation();- }, [clearInvitation]);-- const handleInvitationSuccess = React.useCallback(- (payload: { orgId: string; orgName: string; isPersonal: boolean }) => {- setShowInvitationModal(false);- clearInvitation();- // Switch to the newly joined organization- switchOrganization(payload);- },- [clearInvitation, switchOrganization],- );-- // Function to check if login method exists in local storage- const checkLoginMethodExists = React.useCallback(() => {- // Only check localStorage if we're in a browser environment- if (typeof window !== "undefined" && window.localStorage) {- return localStorage.getItem(LOCAL_STORAGE_KEYS.LOGIN_METHOD) !== null;- }- return false;- }, []);-- // State to track if login method exists- const [loginMethodExists, setLoginMethodExists] = React.useState(- checkLoginMethodExists(),- );-- // Listen for storage events to update loginMethodExists when logout happens- React.useEffect(() => {- const handleStorageChange = (event: StorageEvent) => {- if (event.key === LOCAL_STORAGE_KEYS.LOGIN_METHOD) {- setLoginMethodExists(checkLoginMethodExists());- }- };-- // Also check on window focus, as logout might happen in another tab- const handleWindowFocus = () => {- setLoginMethodExists(checkLoginMethodExists());- };-- window.addEventListener("storage", handleStorageChange);- window.addEventListener("focus", handleWindowFocus);-- return () => {- window.removeEventListener("storage", handleStorageChange);- window.removeEventListener("focus", handleWindowFocus);- };- }, [checkLoginMethodExists]);-- // Check login method status when auth status changes- React.useEffect(() => {- // When auth status changes (especially on logout), recheck login method- setLoginMethodExists(checkLoginMethodExists());- }, [isAuthed, checkLoginMethodExists]);-- // Show loading spinner while config or auth is loading- const isLoading = config.isLoading || isAuthLoading;-- // Only decide to redirect AFTER loading completes- const shouldRedirectToLogin =- !isLoading &&- !isAuthed &&- !isAuthError &&- !isOnIntermediatePage &&- config.data?.app_mode === "saas" &&- !loginMethodExists;-- React.useEffect(() => {- if (shouldRedirectToLogin) {- // Include search params in returnTo to preserve query string (e.g., user_code for device OAuth)- const searchString = searchParams.toString();- let fullPath = "";- if (pathname !== "/") {- fullPath = searchString ? `${pathname}?${searchString}` : pathname;- }- const loginUrl = fullPath- ? `/login?returnTo=${encodeURIComponent(fullPath)}`- : "/login";- navigate(loginUrl, { replace: true });- }- }, [shouldRedirectToLogin, pathname, searchParams, navigate]);-- // Show loading spinner while loading OR when about to redirect- if (isLoading || shouldRedirectToLogin) {+ migrateUserConsent({+ handleAnalyticsWasPresentInLocalStorage: () => {+ setConsentFormIsOpen(false);+ },+ });+ }, [migrateUserConsent]);++ if (config.isLoading) {return (<div className="min-h-screen flex items-center justify-center bg-base"><LoadingSpinner size="large" />@@ -242,14 +89,6 @@ export default function MainApp() {);}- const renderReAuthModal =- !isAuthed &&- !isAuthError &&- !isFetchingAuth &&- !isOnIntermediatePage &&- config.data?.app_mode === "saas" &&- loginMethodExists;-return (<divdata-testid="root-layout"@@ -278,27 +117,17 @@ export default function MainApp() {id="root-outlet"className="flex-1 relative overflow-auto custom-scrollbar">- <EmailVerificationGuard>- <Outlet />- </EmailVerificationGuard>+ <Outlet /></div></div>- {renderReAuthModal && <ReauthModal />}- {config.data?.app_mode === "oss" && consentFormIsOpen && (+ {consentFormIsOpen && (<AnalyticsConsentFormModalonClose={() => {setConsentFormIsOpen(false);}}/>)}- {showInvitationModal && invitationToken && (- <InvitationAcceptModal- token={invitationToken}- onClose={handleInvitationClose}- onSuccess={handleInvitationSuccess}- />- )}</div>);}diff --git a/src/routes/secrets-settings.tsx b/src/routes/secrets-settings.tsxindex 82aa0a4960..e9490ca64c 100644--- a/src/routes/secrets-settings.tsx+++ b/src/routes/secrets-settings.tsx@@ -12,7 +12,6 @@ import { BrandButton } from "#/components/features/settings/brand-button";import { ConfirmationModal } from "#/components/shared/modals/confirmation-modal";import { I18nKey } from "#/i18n/declaration";import { createPermissionGuard } from "#/utils/org/permission-guard";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";import { LoadingSpinner } from "#/components/shared/loading-spinner";export const clientLoader = createPermissionGuard("manage_secrets");@@ -20,7 +19,6 @@ export const clientLoader = createPermissionGuard("manage_secrets");function SecretsSettingsScreen() {const queryClient = useQueryClient();const { t } = useTranslation();- const { organizationId } = useSelectedOrganizationId();const tableContainerRef = useRef<HTMLDivElement>(null);const {@@ -42,7 +40,6 @@ function SecretsSettingsScreen() {const [confirmationModalIsVisible, setConfirmationModalIsVisible] =React.useState(false);- // Handle scroll for infinite loadingconst handleScroll = useCallback((e: React.UIEvent<HTMLDivElement>) => {const target = e.currentTarget;@@ -57,12 +54,11 @@ function SecretsSettingsScreen() {);const invalidateSecrets = () => {- // Invalidate both the new infinite query and the legacy query for compatibilityqueryClient.invalidateQueries({queryKey: ["secrets-search"],});queryClient.invalidateQueries({- queryKey: ["secrets", organizationId],+ queryKey: ["secrets"],});};@@ -145,7 +141,6 @@ function SecretsSettingsScreen() {</tbody></table>- {/* Loading indicator for infinite scroll */}{isFetchingNextPage && (<div className="flex justify-center p-4"><LoadingSpinner size="small" />diff --git a/src/routes/settings.tsx b/src/routes/settings.tsxindex 0f5a21648a..0bd43aa491 100644--- a/src/routes/settings.tsx+++ b/src/routes/settings.tsx@@ -7,121 +7,32 @@ import { queryClient } from "#/query-client-config";import { SettingsLayout } from "#/components/features/settings";import { WebClientConfig } from "#/api/option-service/option.types";import { QUERY_KEYS, CONFIG_CACHE_OPTIONS } from "#/hooks/query/query-keys";-import { Organization } from "#/types/org";import { Typography } from "#/ui/typography";import { useSettingsNavItems } from "#/hooks/use-settings-nav-items";-import { getActiveOrganizationUser } from "#/utils/org/permission-checks";-import { getSelectedOrganizationIdFromStore } from "#/stores/selected-organization-store";-import { rolePermissions } from "#/utils/org/permissions";-import { isBillingHidden } from "#/utils/org/billing-visibility";import {isSettingsPageHidden,getFirstAvailablePath,} from "#/utils/settings-utils";-import { useOrgTypeAndAccess } from "#/hooks/use-org-type-and-access";-import { useConfig } from "#/hooks/query/use-config";-import { useMe } from "#/hooks/query/use-me";-import { OrgWideSettingsBadge } from "#/components/features/settings/org-wide-settings-badge";--const SAAS_ONLY_PATHS = [- "/settings/user",- "/settings/billing",- "/settings/credits",- "/settings/api-keys",- "/settings/team",- "/settings/org",-];--const ORG_WIDE_BADGE_PATHS = new Set<string>([- "/settings/org-defaults",- "/settings/org-defaults/condenser",- "/settings/org-defaults/verification",-]);export const clientLoader = async ({ request }: Route.ClientLoaderArgs) => {const url = new URL(request.url);const { pathname } = url;- // Step 1: Get config first (needed for all checks, no user data required)const config = await queryClient.fetchQuery<WebClientConfig>({queryKey: QUERY_KEYS.WEB_CLIENT_CONFIG,queryFn: OptionService.getConfig,...CONFIG_CACHE_OPTIONS,});- const isSaas = config?.app_mode === "saas";const featureFlags = config?.feature_flags;- // Step 2: Check SAAS_ONLY_PATHS for OSS mode (no user data required)- if (!isSaas && SAAS_ONLY_PATHS.includes(pathname)) {- return redirect("/settings");- }-- // Step 3: Check feature flag-based hiding and redirect IMMEDIATELY (no user data required)- // This handles hide_llm_settings, hide_users_page, hide_billing_page, hide_integrations_pageif (isSettingsPageHidden(pathname, featureFlags)) {- const fallbackPath = getFirstAvailablePath(isSaas, featureFlags);+ const fallbackPath = getFirstAvailablePath(featureFlags);if (fallbackPath && fallbackPath !== pathname) {return redirect(fallbackPath);}}- // Step 4: For routes that need permission checks, get user data- // Only fetch user data for billing and org routes that need permission validation- if (- pathname === "/settings/billing" ||- pathname === "/settings/org" ||- pathname === "/settings/org-members"- ) {- const user = await getActiveOrganizationUser();-- // Org-type detection for route protection- const orgId = getSelectedOrganizationIdFromStore();- const organizationsData = queryClient.getQueryData<{- items: Organization[];- currentOrgId: string | null;- }>(["organizations"]);- const selectedOrg = organizationsData?.items?.find(- (org) => org.id === orgId,- );- const isPersonalOrg = selectedOrg?.is_personal === true;- const isTeamOrg = !!selectedOrg && !selectedOrg.is_personal;-- // Billing route protection- if (pathname === "/settings/billing") {- if (- !user ||- isBillingHidden(- config,- rolePermissions[user.role ?? "member"].includes("view_billing"),- ) ||- isTeamOrg- ) {- if (isSaas) {- const fallbackPath = getFirstAvailablePath(isSaas, featureFlags);- return redirect(fallbackPath ?? "/settings");- }- }- }-- // Org route protection: redirect if user lacks required permissions or personal org- if (pathname === "/settings/org" || pathname === "/settings/org-members") {- const role = user?.role ?? "member";- const requiredPermission =- pathname === "/settings/org"- ? "view_billing"- : "invite_user_to_organization";-- if (- !user ||- !rolePermissions[role].includes(requiredPermission) ||- isPersonalOrg- ) {- return redirect("/settings");- }- }- }-return null;};@@ -130,28 +41,14 @@ function SettingsScreen() {const location = useLocation();const matches = useMatches();const navItems = useSettingsNavItems();- const { data: config } = useConfig();- const { isTeamOrg } = useOrgTypeAndAccess();- const { data: me } = useMe();-- // Determine if we should show the org-wide settings badge- const isOrgWideBadgePath = ORG_WIDE_BADGE_PATHS.has(location.pathname);- const isSaasMode = config?.app_mode === "saas";- const shouldShowOrgWideBadge = isOrgWideBadgePath && isTeamOrg && isSaasMode;- // Members see a read-only message; Admins/Owners see the org-wide notice.- const orgWideBadgeVariant =- me?.role === "member" ? "managed-by-admin" : "org-wide";- // Current section title for the main content areaconst currentSectionTitle = useMemo(() => {- // Find the current item from rendered itemsconst currentRenderedItem = navItems.find((item) => item.type === "item" && item.item.to === location.pathname,);if (currentRenderedItem && currentRenderedItem.type === "item") {return currentRenderedItem.item.text;}- // Default to the first available navigation item if current page is not foundconst firstItem = navItems.find((item) => item.type === "item");return firstItem && firstItem.type === "item"? firstItem.item.text@@ -166,14 +63,7 @@ function SettingsScreen() {<main data-testid="settings-screen" className="h-full"><SettingsLayout navigationItems={navItems}><div className="flex flex-col gap-6 h-full">- {!shouldHideTitle && (- <div className="flex items-center gap-3 flex-wrap">- <Typography.H2>{t(currentSectionTitle)}</Typography.H2>- {shouldShowOrgWideBadge && (- <OrgWideSettingsBadge variant={orgWideBadgeVariant} />- )}- </div>- )}+ {!shouldHideTitle && <Typography.H2>{t(currentSectionTitle)}</Typography.H2>}<div className="flex-1 overflow-auto custom-scrollbar-always"><Outlet /></div>diff --git a/src/routes/user-settings.tsx b/src/routes/user-settings.tsxdeleted file mode 100644index 6fd4372ecf..0000000000--- a/src/routes/user-settings.tsx+++ /dev/null@@ -1,227 +0,0 @@-import React, { useState, useEffect, useRef } from "react";-import { useTranslation } from "react-i18next";-import { useQueryClient } from "@tanstack/react-query";-import { useSettings } from "#/hooks/query/use-settings";-import { openHands } from "#/api/open-hands-axios";-import { displaySuccessToast } from "#/utils/custom-toast-handlers";-import { useEmailVerification } from "#/hooks/use-email-verification";-import { useSelectedOrganizationId } from "#/context/use-selected-organization";--// Email validation regex pattern-const EMAIL_REGEX = /^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/;--function EmailInputSection({- email,- onEmailChange,- onSaveEmail,- onResendVerification,- isSaving,- isResendingVerification,- isEmailChanged,- emailVerified,- isEmailValid,- children,-}: {- email: string;- onEmailChange: (e: React.ChangeEvent<HTMLInputElement>) => void;- onSaveEmail: () => void;- onResendVerification: () => void;- isSaving: boolean;- isResendingVerification: boolean;- isEmailChanged: boolean;- emailVerified?: boolean;- isEmailValid: boolean;- children: React.ReactNode;-}) {- const { t } = useTranslation();- return (- <div className="flex flex-col gap-4">- <div className="flex flex-col gap-2">- <label className="text-sm">{t("SETTINGS$USER_EMAIL")}</label>- <div className="flex items-center gap-3">- <input- type="email"- value={email}- onChange={onEmailChange}- className={`text-base text-white p-2 bg-base-tertiary rounded-sm border ${- isEmailChanged && !isEmailValid- ? "border-red-500"- : "border-tertiary"- } flex-grow`}- placeholder={t("SETTINGS$USER_EMAIL_LOADING")}- data-testid="email-input"- />- </div>-- {isEmailChanged && !isEmailValid && (- <div- className="text-red-500 text-sm mt-1"- data-testid="email-validation-error"- >- {t("SETTINGS$INVALID_EMAIL_FORMAT")}- </div>- )}-- <div className="flex items-center gap-3 mt-2">- <button- type="button"- onClick={onSaveEmail}- disabled={!isEmailChanged || isSaving || !isEmailValid}- className="px-4 py-2 rounded-sm bg-primary text-white hover:opacity-80 disabled:opacity-30 disabled:cursor-not-allowed disabled:text-[#0D0F11]"- data-testid="save-email-button"- >- {isSaving ? t("SETTINGS$SAVING") : t("SETTINGS$SAVE")}- </button>-- {emailVerified === false && (- <button- type="button"- onClick={onResendVerification}- disabled={isResendingVerification}- className="px-4 py-2 rounded-sm bg-primary text-white hover:opacity-80 disabled:opacity-30 disabled:cursor-not-allowed disabled:text-[#0D0F11]"- data-testid="resend-verification-button"- >- {isResendingVerification- ? t("SETTINGS$SENDING")- : t("SETTINGS$RESEND_VERIFICATION")}- </button>- )}- </div>-- {children}- </div>- </div>- );-}--function VerificationAlert() {- const { t } = useTranslation();- return (- <div- className="bg-red-100 border border-red-400 text-red-700 px-4 py-3 rounded-sm mt-4"- role="alert"- >- <p className="font-bold">{t("SETTINGS$EMAIL_VERIFICATION_REQUIRED")}</p>- <p className="text-sm">- {t("SETTINGS$EMAIL_VERIFICATION_RESTRICTION_MESSAGE")}- </p>- </div>- );-}--// These components have been replaced with toast notifications--function UserSettingsScreen() {- const { t } = useTranslation();- const { data: settings, isLoading, refetch } = useSettings();- const { organizationId } = useSelectedOrganizationId();- const [email, setEmail] = useState("");- const [originalEmail, setOriginalEmail] = useState("");- const [isSaving, setIsSaving] = useState(false);- const [isEmailValid, setIsEmailValid] = useState(true);- const queryClient = useQueryClient();- const pollingIntervalRef = useRef<number | null>(null);- const prevVerificationStatusRef = useRef<boolean | undefined>(undefined);- const { resendEmailVerification, isResendingVerification } =- useEmailVerification();-- useEffect(() => {- if (settings?.email) {- setEmail(settings.email);- setOriginalEmail(settings.email);- setIsEmailValid(EMAIL_REGEX.test(settings.email));- }- }, [settings?.email]);-- useEffect(() => {- if (pollingIntervalRef.current) {- window.clearInterval(pollingIntervalRef.current);- pollingIntervalRef.current = null;- }-- if (- prevVerificationStatusRef.current === false &&- settings?.email_verified === true- ) {- // Display toast notification instead of setting state- displaySuccessToast(t("SETTINGS$EMAIL_VERIFIED_SUCCESSFULLY"));- setTimeout(() => {- queryClient.invalidateQueries({- queryKey: ["settings", organizationId],- });- }, 2000);- }-- prevVerificationStatusRef.current = settings?.email_verified;-- if (settings?.email_verified === false) {- pollingIntervalRef.current = window.setInterval(() => {- refetch();- }, 5000);- }-- return () => {- if (pollingIntervalRef.current) {- window.clearInterval(pollingIntervalRef.current);- pollingIntervalRef.current = null;- }- };- }, [settings?.email_verified, refetch, queryClient, t, organizationId]);-- const handleEmailChange = (e: React.ChangeEvent<HTMLInputElement>) => {- const newEmail = e.target.value;- setEmail(newEmail);- setIsEmailValid(EMAIL_REGEX.test(newEmail));- };-- const handleSaveEmail = async () => {- if (email === originalEmail || !isEmailValid) return;- try {- setIsSaving(true);- await openHands.post("/api/email", { email }, { withCredentials: true });- setOriginalEmail(email);- // Display toast notification instead of setting state- displaySuccessToast(t("SETTINGS$EMAIL_SAVED_SUCCESSFULLY"));- queryClient.invalidateQueries({- queryKey: ["settings", organizationId],- });- } catch (error) {- // eslint-disable-next-line no-console- console.error(t("SETTINGS$FAILED_TO_SAVE_EMAIL"), error);- } finally {- setIsSaving(false);- }- };-- const handleResendVerification = () => {- resendEmailVerification({});- };-- const isEmailChanged = email !== originalEmail;-- return (- <div data-testid="user-settings-screen" className="flex flex-col h-full">- <div className="flex flex-col gap-6">- {isLoading ? (- <div className="animate-pulse h-8 w-64 bg-tertiary rounded-sm" />- ) : (- <EmailInputSection- email={email}- onEmailChange={handleEmailChange}- onSaveEmail={handleSaveEmail}- onResendVerification={handleResendVerification}- isSaving={isSaving}- isResendingVerification={isResendingVerification}- isEmailChanged={isEmailChanged}- emailVerified={settings?.email_verified}- isEmailValid={isEmailValid}- >- {settings?.email_verified === false && <VerificationAlert />}- </EmailInputSection>- )}- </div>- </div>- );-}--export default UserSettingsScreen;diff --git a/src/routes/verification-settings.tsx b/src/routes/verification-settings.tsxindex 2e40acee8e..bad5e104b8 100644--- a/src/routes/verification-settings.tsx+++ b/src/routes/verification-settings.tsx@@ -11,7 +11,6 @@ import { I18nKey } from "#/i18n/declaration";import { DEFAULT_SETTINGS } from "#/services/settings";import { SettingsScope } from "#/types/settings";import { createPermissionGuard } from "#/utils/org/permission-guard";-import { requireOrgDefaultsRedirect } from "#/utils/org/saas-redirect-to-org-defaults-guard";const VERIFICATION_SCHEMA_EXCLUDE_KEYS = new Set(["confirmation_mode",@@ -189,15 +188,6 @@ export function VerificationSettingsScreen({);}-const orgDefaultsRedirectGuard = requireOrgDefaultsRedirect(- "/settings/org-defaults/verification",-);-const verificationPermissionGuard = createPermissionGuard("view_llm_settings");--export const clientLoader = async (args: { request: Request }) => {- const blocked = await orgDefaultsRedirectGuard(args);- if (blocked) return blocked;- return verificationPermissionGuard(args);-};+export const clientLoader = createPermissionGuard("view_llm_settings");export default VerificationSettingsScreen;diff --git a/src/stores/selected-organization-store.ts b/src/stores/selected-organization-store.tsdeleted file mode 100644index 54f1a5a756..0000000000--- a/src/stores/selected-organization-store.ts+++ /dev/null@@ -1,30 +0,0 @@-import { create } from "zustand";-import { devtools } from "zustand/middleware";--interface SelectedOrganizationState {- organizationId: string | null;-}--interface SelectedOrganizationActions {- setOrganizationId: (orgId: string | null) => void;-}--type SelectedOrganizationStore = SelectedOrganizationState &- SelectedOrganizationActions;--const initialState: SelectedOrganizationState = {- organizationId: null,-};--export const useSelectedOrganizationStore = create<SelectedOrganizationStore>()(- devtools(- (set) => ({- ...initialState,- setOrganizationId: (organizationId) => set({ organizationId }),- }),- { name: "SelectedOrganizationStore" },- ),-);--export const getSelectedOrganizationIdFromStore = (): string | null =>- useSelectedOrganizationStore.getState().organizationId;diff --git a/src/utils/org/permission-checks.ts b/src/utils/org/permission-checks.tsdeleted file mode 100644index 4b439af6d8..0000000000--- a/src/utils/org/permission-checks.ts+++ /dev/null@@ -1,87 +0,0 @@-import { organizationService } from "#/api/organization-service/organization-service.api";-import { getSelectedOrganizationIdFromStore } from "#/stores/selected-organization-store";-import {- OrganizationMember,- OrganizationsQueryData,- OrganizationUserRole,-} from "#/types/org";-import { PermissionKey } from "./permissions";-import { queryClient } from "#/query-client-config";--/**- * Get the active organization user.- * Uses React Query's fetchQuery to leverage request deduplication,- * preventing duplicate API calls when multiple consumers request the same data.- *- * On page refresh, the Zustand store resets and orgId becomes null.- * In this case, we retrieve the organization from the query cache or fetch it- * from the backend to ensure permission checks work correctly.- *- * @returns OrganizationMember- */-export const getActiveOrganizationUser = async (): Promise<- OrganizationMember | undefined-> => {- let orgId = getSelectedOrganizationIdFromStore();-- // If no orgId in store (e.g., after page refresh), try to get it from query cache or fetch- if (!orgId) {- // Check if organizations data is already in the cache- let organizationsData = queryClient.getQueryData<OrganizationsQueryData>([- "organizations",- ]);-- // If not in cache, fetch it- if (!organizationsData) {- try {- organizationsData = await queryClient.fetchQuery({- queryKey: ["organizations"],- queryFn: organizationService.getOrganizations,- staleTime: 1000 * 60 * 5, // 5 minutes - matches useOrganizations hook- });- } catch {- return undefined;- }- }-- // Use currentOrgId from backend (user's last selected org) or first org as fallback- orgId =- organizationsData?.currentOrgId ??- organizationsData?.items?.[0]?.id ??- null;- }-- if (!orgId) return undefined;-- try {- const user = await queryClient.fetchQuery({- queryKey: ["organizations", orgId, "me"],- queryFn: () => organizationService.getMe({ orgId }),- staleTime: 1000 * 60 * 5, // 5 minutes - matches useMe hook- });- return user;- } catch {- return undefined;- }-};--/**- * Get a list of roles that a user has permission to assign to other users- * @param userPermissions all permission for active user- * @returns an array of roles (strings) the user can change other users to- */-export const getAvailableRolesAUserCanAssign = (- userPermissions: PermissionKey[],-): OrganizationUserRole[] => {- const availableRoles: OrganizationUserRole[] = [];- if (userPermissions.includes("change_user_role:member")) {- availableRoles.push("member");- }- if (userPermissions.includes("change_user_role:admin")) {- availableRoles.push("admin");- }- if (userPermissions.includes("change_user_role:owner")) {- availableRoles.push("owner");- }- return availableRoles;-};diff --git a/src/utils/org/permission-guard.ts b/src/utils/org/permission-guard.tsindex 4a5e44fdfb..21f529dc72 100644--- a/src/utils/org/permission-guard.ts+++ b/src/utils/org/permission-guard.ts@@ -1,85 +1,6 @@-import { redirect } from "react-router";-import { queryClient } from "#/query-client-config";-import OptionService from "#/api/option-service/option-service.api";-import { WebClientConfig } from "#/api/option-service/option.types";-import { QUERY_KEYS, CONFIG_CACHE_OPTIONS } from "#/hooks/query/query-keys";-import { getFirstAvailablePath } from "#/utils/settings-utils";-import { getActiveOrganizationUser } from "./permission-checks";-import { PermissionKey, rolePermissions } from "./permissions";+import { PermissionKey } from "./permissions";-/**- * Helper to get config, using fetchQuery for automatic caching and deduplication.- * Uses the shared query key from QUERY_KEYS to ensure consistency across the app.- */-async function getConfig(): Promise<WebClientConfig | undefined> {- return queryClient.fetchQuery({- queryKey: QUERY_KEYS.WEB_CLIENT_CONFIG,- queryFn: OptionService.getConfig,- ...CONFIG_CACHE_OPTIONS,- });-}--/**- * Gets the appropriate fallback path for permission denied scenarios.- * Respects feature flags to avoid redirecting to hidden pages.- */-async function getPermissionDeniedFallback(): Promise<string> {- const config = await getConfig();-- const isSaas = config?.app_mode === "saas";- const featureFlags = config?.feature_flags;-- // Get first available path that respects feature flags- const fallbackPath = getFirstAvailablePath(isSaas, featureFlags);- return fallbackPath ?? "/settings";-}--/**- * Creates a clientLoader guard that checks if the user has the required permission.- * Redirects to the first available settings page if permission is denied.- *- * In OSS mode, permission checks are bypassed since there are no user roles.- *- * @param requiredPermission - The permission key to check- * @param customRedirectPath - Optional custom path to redirect to (will still respect feature flags if not provided)- * @returns A clientLoader function that can be exported from route files- */export const createPermissionGuard =- (requiredPermission: PermissionKey, customRedirectPath?: string) =>- async ({ request }: { request: Request }) => {- // Get config to check app_mode- const config = await getConfig();-- // In OSS mode, skip permission checks - all settings are accessible- if (config?.app_mode === "oss") {- return null;- }-- const user = await getActiveOrganizationUser();-- const url = new URL(request.url);- const currentPath = url.pathname;-- // Helper to get redirect response, avoiding infinite loops- const getRedirectResponse = async () => {- const redirectPath =- customRedirectPath ?? (await getPermissionDeniedFallback());- // Don't redirect to the same path to avoid infinite loops- if (redirectPath === currentPath) {- return null;- }- return redirect(redirectPath);- };-- if (!user) {- return getRedirectResponse();- }-- const userRole = user.role ?? "member";-- if (!rolePermissions[userRole].includes(requiredPermission)) {- return getRedirectResponse();- }-- return null;- };+ (_requiredPermission: PermissionKey, _customRedirectPath?: string) =>+ async () =>+ null;diff --git a/src/utils/org/saas-redirect-to-org-defaults-guard.ts b/src/utils/org/saas-redirect-to-org-defaults-guard.tsdeleted file mode 100644index f056b9bbae..0000000000--- a/src/utils/org/saas-redirect-to-org-defaults-guard.ts+++ /dev/null@@ -1,58 +0,0 @@-import { redirect } from "react-router";-import { queryClient } from "#/query-client-config";-import OptionService from "#/api/option-service/option-service.api";-import { organizationService } from "#/api/organization-service/organization-service.api";-import { CONFIG_CACHE_OPTIONS, QUERY_KEYS } from "#/hooks/query/query-keys";-import { getSelectedOrganizationIdFromStore } from "#/stores/selected-organization-store";-import { OrganizationsQueryData } from "#/types/org";--const FALLBACK_REDIRECT_PATH = "/settings/user";--const fetchConfig = () =>- queryClient.fetchQuery({- queryKey: QUERY_KEYS.WEB_CLIENT_CONFIG,- queryFn: OptionService.getConfig,- ...CONFIG_CACHE_OPTIONS,- });--const fetchOrganizations = () =>- queryClient.fetchQuery<OrganizationsQueryData>({- queryKey: ["organizations"],- queryFn: organizationService.getOrganizations,- staleTime: 1000 * 60 * 5,- });--// Fails open (returns null, allowing access) when org context cannot be-// resolved β config fetch, org fetch, or active-org lookup. Backend permission-// checks remain authoritative, so an outage degrades to "show the page" rather-// than locking every user out of LLM settings.-export const requireOrgDefaultsRedirect =- (redirectPath: string = FALLBACK_REDIRECT_PATH) =>- async ({ request }: { request: Request }) => {- const config = await fetchConfig();-- if (config?.app_mode !== "saas") return null;-- let organizationsData: OrganizationsQueryData | undefined;- try {- organizationsData = await fetchOrganizations();- } catch {- return null;- }-- const orgId =- getSelectedOrganizationIdFromStore() ??- organizationsData?.currentOrgId ??- organizationsData?.items?.[0]?.id ??- null;-- if (!orgId) return null;-- const activeOrg = organizationsData?.items.find((o) => o.id === orgId);- if (!activeOrg) return null;-- const currentPath = new URL(request.url).pathname;- if (currentPath === redirectPath) return null;-- return redirect(redirectPath);- };diff --git a/src/utils/settings-utils.ts b/src/utils/settings-utils.tsindex 4346a90986..8fc76e4a81 100644--- a/src/utils/settings-utils.ts+++ b/src/utils/settings-utils.ts@@ -15,12 +15,6 @@ const extractBasicFormData = (formData: FormData) => {};};-/**- * Parses and validates a max budget per task value.- * Ensures the value is at least 1 dollar.- * @param value - The string value to parse- * @returns The parsed number if valid (>= 1), null otherwise- */export const parseMaxBudgetPerTask = (value: string): number | null => {if (!value) {return null;@@ -55,50 +49,21 @@ export const extractSettings = (};};-/**- * Checks if a settings page should be hidden based on feature flags.- * Used by both the route loader and navigation hook to keep logic in sync.- */export function isSettingsPageHidden(path: string,featureFlags: WebClientFeatureFlags | undefined,): boolean {- if (- featureFlags?.hide_llm_settings &&- (path === "/settings" || path.startsWith("/settings/org-defaults"))- )- return true;- if (featureFlags?.hide_users_page && path === "/settings/user") return true;- if (featureFlags?.hide_billing_page && path === "/settings/billing")- return true;- if (featureFlags?.hide_integrations_page && path === "/settings/integrations")+ if (featureFlags?.hide_llm_settings && path === "/settings") return true;+ if (featureFlags?.hide_integrations_page && path === "/settings/integrations") {return true;+ }return false;}-/**- * Find the first available settings page that is not hidden.- * Returns null if no page is available (shouldn't happen in practice).- */export function getFirstAvailablePath(- isSaas: boolean,featureFlags: WebClientFeatureFlags | undefined,): string | null {- const saasFallbackOrder = [- { path: "/settings/user", hidden: !!featureFlags?.hide_users_page },- {- path: "/settings/integrations",- hidden: !!featureFlags?.hide_integrations_page,- },- { path: "/settings/app", hidden: false },- { path: "/settings", hidden: !!featureFlags?.hide_llm_settings },- { path: "/settings/billing", hidden: !!featureFlags?.hide_billing_page },- { path: "/settings/secrets", hidden: false },- { path: "/settings/api-keys", hidden: false },- { path: "/settings/mcp", hidden: false },- ];-- const ossFallbackOrder = [+ const fallbackOrder = [{ path: "/settings", hidden: !!featureFlags?.hide_llm_settings },{ path: "/settings/mcp", hidden: false },{@@ -109,8 +74,6 @@ export function getFirstAvailablePath({ path: "/settings/secrets", hidden: false },];- const fallbackOrder = isSaas ? saasFallbackOrder : ossFallbackOrder;const firstAvailable = fallbackOrder.find((item) => !item.hidden);-return firstAvailable?.path ?? null;}diff --git a/test-utils.tsx b/test-utils.tsxindex d47a86a372..d00af4f01c 100644--- a/test-utils.tsx+++ b/test-utils.tsx@@ -1,18 +1,10 @@import React, { PropsWithChildren } from "react";-import {- act,- RenderOptions,- render,- screen,- waitFor,-} from "@testing-library/react";+import { RenderOptions, render } from "@testing-library/react";import { QueryClient, QueryClientProvider } from "@tanstack/react-query";import { I18nextProvider, initReactI18next } from "react-i18next";import i18n from "i18next";-import { expect, vi } from "vitest";+import { vi } from "vitest";import { AxiosError } from "axios";-import { INITIAL_MOCK_ORGS } from "#/mocks/org-handlers";-import { useSelectedOrganizationStore } from "#/stores/selected-organization-store";import {ActionEvent,MessageEvent,@@ -98,47 +90,6 @@ export const createAxiosNotFoundErrorObject = () =>},);-export const selectOrganization = async ({- orgIndex,-}: {- orgIndex: number;-}) => {- const targetOrg = INITIAL_MOCK_ORGS[orgIndex];- if (!targetOrg) {- expect.fail(`No organization found at index ${orgIndex}`);- }-- // Wait for the settings navbar to render (which contains the org selector)- await screen.findByTestId("settings-navbar");-- // Wait for orgs to load and org selector to be present- const organizationSelect = await screen.findByTestId("org-selector");- expect(organizationSelect).toBeInTheDocument();-- // Wait until the dropdown trigger is not disabled (orgs have loaded)- const trigger = await screen.findByTestId("dropdown-trigger");- await waitFor(() => {- expect(trigger).not.toBeDisabled();- });-- // Set the organization ID directly in the Zustand store- // This is more reliable than UI interaction in router stub tests- // Use act() to ensure React processes the state update- act(() => {- useSelectedOrganizationStore.setState({ organizationId: targetOrg.id });- });-- // Get the combobox input and wait for it to reflect the selection- // For personal orgs, the display name is "Personal Workspace" (from i18n)- const expectedDisplayName = targetOrg.is_personal- ? "Personal Workspace"- : targetOrg.name;- const combobox = screen.getByRole("combobox");- await waitFor(() => {- expect(combobox).toHaveValue(expectedDisplayName);- });-};-export const createAxiosError = (status: number,statusText: string,diff --git a/tsconfig.json b/tsconfig.jsonindex 06d15c3312..84d43b34a4 100644--- a/tsconfig.json+++ b/tsconfig.json@@ -8,7 +8,6 @@"**/.client/**/*.tsx",".react-router/types/**/*",],- "exclude": ["vendor/openhands-typescript-client"],"compilerOptions": {"lib": ["dom",diff --git a/vendor/openhands-typescript-client/.agent/skills/frontend.md b/vendor/openhands-typescript-client/.agent/skills/frontend.mddeleted file mode 100644index 46889ae869..0000000000--- a/vendor/openhands-typescript-client/.agent/skills/frontend.md+++ /dev/null@@ -1,548 +0,0 @@-# Skill: React Chat Frontend with OpenHands TypeScript Client--Build a React chat frontend that connects to an OpenHands agent server, sends messages, and displays a live conversation including all event types.--## Basic structure-You will probably want the following features:-* A settings modal/page where the user can set:- * host and password for agent-server- * LLM model and key-* a chat input-* the ability to display both messages and events from the agent- * events typically come in action/observation pairs. it's usually best to only show one UI element per pair, depending on status- * events can contain a lot of information. good to make the display collapsed by default, with a small summary, but expandable to see full details- * condensation events should get displayed like other events-* a list of conversations the user can navigate between- * there are APIs for automatically setting a conversation title after the first user message is sent, use them--## Packages--```bash-npm install @openhands/typescript-client-# or from local repo:-npm install /path/to/typescript-client-```--Peer deps: `react`, `react-dom` (18+). No extra WebSocket library needed in browsers.-------## 1. Core Concepts--- **`Conversation`** β creates/resumes a conversation on the agent server-- **`Agent`** β LLM config (model + api_key)-- **`Workspace`** β points at the agent server host-- **`WebSocketCallbackClient`** β streams events in real-time via WS-- Events arrive with a `kind` discriminator field; render each kind differently--The agent server WebSocket endpoint is:-```-ws[s]://<host>/sockets/events/<conversationId>[?session_api_key=<key>]-```-------## 2. Minimal Hook: `useAgentConversation`--```tsx-import { useEffect, useRef, useState, useCallback } from 'react';-import {- Conversation,- Agent,- Workspace,- ConversationExecutionStatus,-} from '@openhands/typescript-client';-import type { Event } from '@openhands/typescript-client';--interface UseAgentConversationOptions {- serverUrl: string; // e.g. "http://localhost:8000"- model: string; // e.g. "claude-sonnet-4-6"- apiKey: string; // LLM API key- sessionKey?: string; // Agent server session key (if secured)-}--export function useAgentConversation({- serverUrl,- model,- apiKey,- sessionKey,-}: UseAgentConversationOptions) {- const [events, setEvents] = useState<Event[]>([]);- const [status, setStatus] = useState<ConversationExecutionStatus | null>(null);- const [conversationId, setConversationId] = useState<string | null>(null);- const convRef = useRef<Conversation | null>(null);-- // Append incoming events (WebSocket + initial load)- const onEvent = useCallback((event: Event) => {- setEvents(prev => [...prev, event]);- }, []);-- const start = useCallback(async (initialMessage: string) => {- const agent = new Agent({ llm: { model, api_key: apiKey } });- const workspace = new Workspace({- host: serverUrl,- workingDir: '/workspace',- apiKey: sessionKey,- });-- const conv = new Conversation(agent, workspace, { callback: onEvent });- convRef.current = conv;-- await conv.start({ initialMessage });- setConversationId(conv.id);-- // Stream events live- await conv.startWebSocketClient();-- // Kick the agent- await conv.run();-- setStatus(await conv.state.getAgentStatus());- }, [serverUrl, model, apiKey, sessionKey, onEvent]);-- const sendMessage = useCallback(async (text: string) => {- const conv = convRef.current;- if (!conv) return;- await conv.sendMessage(text);- await conv.run();- }, []);-- const pause = useCallback(async () => {- await convRef.current?.pause();- }, []);-- // Poll status while running- useEffect(() => {- if (status !== ConversationExecutionStatus.RUNNING) return;- const t = setInterval(async () => {- const s = await convRef.current?.state.getAgentStatus();- if (s) setStatus(s);- }, 1500);- return () => clearInterval(t);- }, [status]);-- // Cleanup- useEffect(() => {- return () => { convRef.current?.stopWebSocketClient(); };- }, []);-- return { events, status, conversationId, start, sendMessage, pause };-}-```-------## 3. Event Renderer--Handle every `kind` the server can emit. The `kind` field is the discriminator.--```tsx-import type { Event } from '@openhands/typescript-client';--interface EventBubbleProps { event: Event }--export function EventBubble({ event }: EventBubbleProps) {- switch (event.kind) {-- // ββ Visible chat messages βββββββββββββββββββββββββββββββββββββββββββββ- case 'MessageEvent': {- const msg = (event as any).llm_message;- const role: string = msg?.role ?? (event as any).source ?? 'unknown';- const text = extractText(msg?.content);- const isUser = role === 'user';- return (- <div className={`chat-bubble ${isUser ? 'user' : 'agent'}`}>- <span className="role">{isUser ? 'You' : 'Agent'}</span>- <p>{text}</p>- </div>- );- }-- // ββ Tool call the agent is making βββββββββββββββββββββββββββββββββββββ- case 'ActionEvent': {- const e = event as any;- return (- <details className="event-action">- <summary>- Tool call: <code>{e.tool_name}</code>- </summary>- <pre>{JSON.stringify(e.action, null, 2)}</pre>- {e.thought && <blockquote>{extractThought(e.thought)}</blockquote>}- </details>- );- }-- // ββ Result of a tool call βββββββββββββββββββββββββββββββββββββββββββββ- case 'ObservationEvent': {- const e = event as any;- const content =- typeof e.observation === 'string'- ? e.observation- : JSON.stringify(e.observation, null, 2);- return (- <details className="event-observation">- <summary>Result: <code>{e.tool_name}</code></summary>- <pre>{content}</pre>- </details>- );- }-- // ββ Scaffold error (sent to LLM) ββββββββββββββββββββββββββββββββββββββ- case 'AgentErrorEvent': {- const e = event as any;- return (- <div className="event-error agent-error">- <strong>Agent error ({e.tool_name}):</strong> {e.error}- </div>- );- }-- // ββ Conversation-level failure (NOT sent to LLM) ββββββββββββββββββββββ- case 'ConversationErrorEvent': {- const e = event as any;- return (- <div className="event-error conversation-error">- <strong>Error [{e.code}]:</strong> {e.detail}- </div>- );- }-- // ββ User/hook rejection βββββββββββββββββββββββββββββββββββββββββββββββ- case 'UserRejectObservation': {- const e = event as any;- return (- <div className="event-reject">- Action <code>{e.tool_name}</code> rejected by {e.rejection_source}:- {' '}{e.rejection_reason}- </div>- );- }-- // ββ Execution paused ββββββββββββββββββββββββββββββββββββββββββββββββββ- case 'PauseEvent':- return <div className="event-status">Agent paused</div>;-- // ββ Condensation (history compacted) βββββββββββββββββββββββββββββββββ- case 'Condensation': {- const e = event as any;- return (- <div className="event-condensation">- Context condensed ({e.forgotten_event_ids?.length ?? 0} events removed)- {e.summary && <p>{e.summary}</p>}- </div>- );- }-- case 'CondensationSummaryEvent': {- const e = event as any;- return (- <div className="event-condensation summary">- <em>Summary:</em> {e.summary}- </div>- );- }-- // ββ State change (use for status badge) βββββββββββββββββββββββββββββββ- case 'ConversationStateUpdateEvent': {- const e = event as any;- if (e.key === 'execution_status') {- return <div className="event-status">Status β {String(e.value)}</div>;- }- return null; // skip noisy state updates- }-- // ββ System prompt (usually hide in UI) ββββββββββββββββββββββββββββββββ- case 'SystemPromptEvent':- return null;-- // ββ Token IDs (VLLM internal, usually hide) βββββββββββββββββββββββββββ- case 'TokenEvent':- return null;-- // ββ Unknown / future events βββββββββββββββββββββββββββββββββββββββββββ- default:- return (- <details className="event-unknown">- <summary>Event: {event.kind}</summary>- <pre>{JSON.stringify(event, null, 2)}</pre>- </details>- );- }-}--// Helpers-function extractText(content: unknown): string {- if (!content) return '';- if (typeof content === 'string') return content;- if (Array.isArray(content)) {- return content- .filter((c: any) => c.type === 'text')- .map((c: any) => c.text ?? '')- .join('\n');- }- return JSON.stringify(content);-}--function extractThought(thought: unknown): string {- if (!thought) return '';- if (typeof thought === 'string') return thought;- if (Array.isArray(thought)) {- return (thought as any[])- .filter(t => t.type === 'text')- .map(t => t.text ?? '')- .join('\n');- }- return '';-}-```-------## 4. Chat Shell Component--```tsx-import { useState, useRef, useEffect } from 'react';-import { useAgentConversation } from './useAgentConversation';-import { EventBubble } from './EventBubble';--export function ChatApp() {- const [input, setInput] = useState('');- const [started, setStarted] = useState(false);- const scrollRef = useRef<HTMLDivElement>(null);-- const { events, status, start, sendMessage, pause } = useAgentConversation({- serverUrl: 'http://localhost:8000',- model: 'claude-sonnet-4-6',- apiKey: process.env.REACT_APP_API_KEY ?? '',- });-- // Auto-scroll to bottom- useEffect(() => {- scrollRef.current?.scrollIntoView({ behavior: 'smooth' });- }, [events]);-- const handleSend = async () => {- const text = input.trim();- if (!text) return;- setInput('');- if (!started) {- setStarted(true);- await start(text);- } else {- await sendMessage(text);- }- };-- return (- <div className="chat-app">- <header>- <h1>OpenHands Chat</h1>- <span className={`status-badge status-${status ?? 'idle'}`}>- {status ?? 'idle'}- </span>- {status === 'running' && (- <button onClick={pause}>Pause</button>- )}- </header>-- <div className="event-list">- {events.map((evt, i) => (- <EventBubble key={evt.id ?? i} event={evt} />- ))}- <div ref={scrollRef} />- </div>-- <div className="input-row">- <textarea- value={input}- onChange={e => setInput(e.target.value)}- onKeyDown={e => {- if (e.key === 'Enter' && !e.shiftKey) { e.preventDefault(); handleSend(); }- }}- placeholder="Message the agentβ¦"- rows={2}- />- <button onClick={handleSend} disabled={!input.trim() || status === 'running'}>- Send- </button>- </div>- </div>- );-}-```-------## 5. Event Types Reference--All events share `id`, `kind`, `timestamp`, `source` (`'agent' | 'user' | 'environment'`).--| `kind` | Source | When shown | Key fields |-|---|---|---|---|-| `MessageEvent` | agent/user | Always β main chat bubbles | `llm_message.role`, `llm_message.content[]` |-| `ActionEvent` | agent | Collapsible tool-call block | `tool_name`, `action`, `thought`, `tool_call_id` |-| `ObservationEvent` | environment | Collapsible result block | `tool_name`, `observation`, `action_id` |-| `AgentErrorEvent` | agent | Inline error β sent to LLM | `tool_name`, `tool_call_id`, `error` |-| `ConversationErrorEvent` | environment | Fatal error banner | `code`, `detail` |-| `UserRejectObservation` | environment | Rejection notice | `tool_name`, `tool_call_id`, `rejection_reason`, `rejection_source` (`'user'\|'hook'`) |-| `PauseEvent` | user | Status line | β |-| `ConversationStateUpdateEvent` | environment | Status badge update | `key`, `value` |-| `Condensation` | environment | "History compacted" notice | `forgotten_event_ids[]`, `summary?`, `llm_response_id` |-| `CondensationSummaryEvent` | environment | Summary block | `summary` |-| `CondensationRequest` | environment | (hide) | β |-| `SystemPromptEvent` | agent | (hide) | `system_prompt`, `tools[]` |-| `TokenEvent` | agent | (hide β VLLM only) | `prompt_token_ids[]`, `response_token_ids[]` |-| `LLMCompletionLogEvent` | environment | Debug only | `filename`, `log_data`, `model_name` |-------## 6. Loading Existing Conversations--```tsx-// Resume an existing conversation by ID (e.g. from a list page)-const conv = new Conversation(agent, workspace, {- conversationId: existingId,- callback: onEvent,-});-await conv.start(); // connects without sending initial message--// Fetch historical events-const history = await conv.state.events.getEvents();-setEvents(history);--await conv.startWebSocketClient(); // subscribe to future events-```-------## 7. Type Definitions Location--TypeScript event interfaces live in:-```-typescript-client/src/events/types.ts-```--Exported from the package as named types with `Typed` prefix aliases to avoid collisions:-```ts-import type {- TypedMessageEvent,- TypedActionEvent,- TypedObservationEvent,- ConversationErrorEvent,- CondensationEvent,- UserRejectObservation,- TypedConversationEvent,-} from '@openhands/typescript-client';-```--Type guards: `isMessageEvent`, `isActionEvent`, `isObservationEvent`, `isAgentErrorEvent`,-`isObservationLike`, `isConversationErrorEvent`, `isCondensationEvent`.-------## 8. Configuring Agent Tools--Tools are passed on the `agent` object when creating a conversation. **Tool names are lowercase snake_case** β the swagger doc examples show PascalCase names like `BashTool` which do NOT work.--```ts-const agent = new Agent({- llm: { model, api_key: apiKey },- tools: [- { name: 'terminal' }, // bash / shell execution- { name: 'file_editor' }, // read, write, patch files- { name: 'browser_tool_set'}, // web browsing (requires Chromium)- { name: 'task_tracker' }, // optional: task list management- ],-});-```--**Confirmed registered tool names** (from `openhands-tools`):--| Name | Class | Description |-|---|---|---|-| `terminal` | `TerminalTool` | Bash/shell execution |-| `file_editor` | `FileEditorTool` | File read/write/patch |-| `browser_tool_set` | `BrowserToolSet` | Web browsing (navigate, click, type, screenshot) |-| `task_tracker` | `TaskTrackerTool` | Task list management |-| `glob` | `GlobTool` | File pattern matching |-| `grep` | `GrepTool` | Content search |-| `apply_patch` | `ApplyPatchTool` | Apply unified diffs |--**`browser_tool_set` requires Chromium:**-```bash-uvx playwright install chromium --with-deps-```--If you get `"ToolDefinition 'X' is not registered"` β the name is wrong. Check the actual `.name` class attribute in `openhands-tools/openhands/tools/*/definition.py` or test via the API.-------## 9. Listing Conversations--Use `ConversationManager` to fetch the conversation list:--```ts-import { ConversationManager } from '@openhands/typescript-client';-import type { ConversationInfo } from '@openhands/typescript-client';--const manager = new ConversationManager({- host: 'http://localhost:8000',- apiKey: sessionKey || undefined, // X-Session-API-Key header-});-const conversations: ConversationInfo[] = await manager.getAllConversations();-manager.close();-```--`ConversationInfo` has: `id`, `title`, `execution_status`, `created_at`, `updated_at`, `agent`.-------## 10. Vite Configuration--When using the local package (`file:../typescript-client`) with Vite, exclude it from pre-bundling to avoid esbuild choking on the conditional `require('ws')` in the WebSocket client:--```ts-// vite.config.ts-export default defineConfig({- plugins: [react()],- optimizeDeps: {- exclude: ['@openhands/typescript-client'],- },- server: {- allowedHosts: true, // allow any hostname (reverse proxy, tunnels, etc.)- },-});-```--And in `package.json`, bind to all interfaces by default:-```json-"dev": "vite --host"-```-------## 11. Authentication--The agent server uses the `X-Session-API-Key` HTTP header. Set via `OH_SESSION_API_KEYS_0` env var on the server. Pass it as `apiKey` in `Workspace` and `ConversationManager`:--```ts-new Workspace({ host, workingDir: '/workspace', apiKey: sessionKey });-new ConversationManager({ host, apiKey: sessionKey });-```--For WebSocket connections the key goes as a query param: `?session_api_key=<key>` (the client handles this automatically).--With no `OH_SESSION_API_KEYS_0` set, auth is disabled β omit `apiKey` entirely.-------## 12. Notes--- The agent server runs on port 8000 by default (`agent-server --host 0.0.0.0 --port 8000`)-- `llm_message.content` is always an array of `{type:'text', text:string}` objects-- `ActionEvent.thought` is also an array of text content objects (iterate to get text)-- `ConversationStateUpdateEvent` with `key='full_state'` carries the entire state snapshot-- `ConversationStateUpdateEvent` with `key='execution_status'` is the most useful for live status-- Track status from WS events (key `execution_status`) rather than polling β avoids extra HTTP calls-- Deduplicate events by `id` when merging history + live WS stream to avoid duplicates-- When resuming an existing conversation, load history with `conv.state.events.getEvents()` BEFORE calling `startWebSocketClient()` for a consistent snapshotdiff --git a/vendor/openhands-typescript-client/.github/dependabot.yml b/vendor/openhands-typescript-client/.github/dependabot.ymldeleted file mode 100644index 71dda01fdd..0000000000--- a/vendor/openhands-typescript-client/.github/dependabot.yml+++ /dev/null@@ -1,31 +0,0 @@-version: 2-updates:- - package-ecosystem: "npm"- directory: "/"- schedule:- interval: "weekly"- day: "monday"- time: "09:00"- open-pull-requests-limit: 10- reviewers:- - "All-Hands-AI/core-team"- assignees:- - "All-Hands-AI/core-team"- commit-message:- prefix: "deps"- include: "scope"- groups:- typescript:- patterns:- - "typescript"- - "@typescript-eslint/*"- testing:- patterns:- - "jest"- - "@types/jest"- - "@jest/*"- linting:- patterns:- - "eslint"- - "prettier"- - "@typescript-eslint/*"\ No newline at end of filediff --git a/vendor/openhands-typescript-client/.github/workflows/ci.yml b/vendor/openhands-typescript-client/.github/workflows/ci.ymldeleted file mode 100644index bfe674ffba..0000000000--- a/vendor/openhands-typescript-client/.github/workflows/ci.yml+++ /dev/null@@ -1,89 +0,0 @@-name: CI--on:- push:- branches: [ main, develop ]- pull_request:- branches: [ main, develop ]--jobs:- test:- runs-on: ubuntu-latest-- strategy:- matrix:- node-version: [20.x, 22.x]-- steps:- - name: Checkout code- uses: actions/checkout@v4-- - name: Use Node.js ${{ matrix.node-version }}- uses: actions/setup-node@v4- with:- node-version: ${{ matrix.node-version }}- cache: 'npm'-- - name: Install dependencies- run: npm ci-- - name: Run linter- run: npm run lint-- - name: Run type check- run: npm run build-- - name: Run tests- run: npm run test:coverage-- - name: Check formatting- run: npm run format:check-- build:- runs-on: ubuntu-latest- needs: test-- steps:- - name: Checkout code- uses: actions/checkout@v4-- - name: Use Node.js 20.x- uses: actions/setup-node@v4- with:- node-version: 20.x- cache: 'npm'-- - name: Install dependencies- run: npm ci-- - name: Build package- run: npm run build-- - name: Upload build artifacts- uses: actions/upload-artifact@v4- with:- name: dist- path: dist/- retention-days: 7-- security:- runs-on: ubuntu-latest-- steps:- - name: Checkout code- uses: actions/checkout@v4-- - name: Use Node.js 20.x- uses: actions/setup-node@v4- with:- node-version: 20.x- cache: 'npm'-- - name: Install dependencies- run: npm ci-- - name: Run security audit- run: npm audit --audit-level=moderate-- - name: Check for vulnerabilities- run: npm audit --audit-level=high --production\ No newline at end of filediff --git a/vendor/openhands-typescript-client/.github/workflows/integration-tests.yml b/vendor/openhands-typescript-client/.github/workflows/integration-tests.ymldeleted file mode 100644index 1525f8fa48..0000000000--- a/vendor/openhands-typescript-client/.github/workflows/integration-tests.yml+++ /dev/null@@ -1,208 +0,0 @@-name: Integration Tests--on:- push:- branches: [main, develop]- pull_request:- branches: [main, develop]- workflow_dispatch:- inputs:- llm_model:- description: 'LLM model to use for tests'- required: false- default: 'anthropic/claude-sonnet-4-5-20250929'--env:- AGENT_SERVER_PORT: 8010- HOST_WORKSPACE_DIR: /tmp/agent-workspace- AGENT_WORKSPACE_DIR: /workspace- AGENT_SERVER_IMAGE: ghcr.io/openhands/agent-server:7c37803-python # software-agent-sdk v1.18.1--jobs:- integration-test:- runs-on: ubuntu-latest- timeout-minutes: 30-- steps:- - name: Checkout code- uses: actions/checkout@v4-- - name: Use Node.js 20.x- uses: actions/setup-node@v4- with:- node-version: 20.x- cache: 'npm'-- - name: Install dependencies- run: npm ci-- - name: Build package- run: npm run build-- - name: Create workspace directory- run: |- mkdir -p ${{ env.HOST_WORKSPACE_DIR }}- chmod 777 ${{ env.HOST_WORKSPACE_DIR }}-- - name: Pull agent-server Docker image- run: |- docker pull ${{ env.AGENT_SERVER_IMAGE }}- docker images-- - name: Start agent-server container- run: |- docker run -d \- --name agent-server \- -p ${{ env.AGENT_SERVER_PORT }}:8000 \- -v ${{ env.HOST_WORKSPACE_DIR }}:${{ env.AGENT_WORKSPACE_DIR }} \- -e LOG_JSON=true \- ${{ env.AGENT_SERVER_IMAGE }}-- # Wait for container to start- sleep 5-- # Check container is running- docker ps- docker logs agent-server-- - name: Wait for agent-server to be ready- run: |- echo "Waiting for agent-server to be ready..."- max_retries=30- retry_count=0- while [ $retry_count -lt $max_retries ]; do- if curl -s http://localhost:${{ env.AGENT_SERVER_PORT }}/health > /dev/null 2>&1; then- echo "Agent server is ready!"- break- fi- echo "Retry $((retry_count + 1))/$max_retries..."- sleep 2- retry_count=$((retry_count + 1))- done-- if [ $retry_count -eq $max_retries ]; then- echo "Agent server failed to start"- docker logs agent-server- exit 1- fi-- # Show server info- curl http://localhost:${{ env.AGENT_SERVER_PORT }}/server_info-- - name: Run deterministic integration tests- env:- AGENT_SERVER_URL: http://localhost:${{ env.AGENT_SERVER_PORT }}- HOST_WORKSPACE_DIR: ${{ env.HOST_WORKSPACE_DIR }}- AGENT_WORKSPACE_DIR: ${{ env.AGENT_WORKSPACE_DIR }}- LLM_API_KEY: ${{ secrets.LLM_API_KEY }}- LLM_MODEL: ${{ github.event.inputs.llm_model || secrets.LLM_MODEL || 'anthropic/claude-sonnet-4-5-20250929' }}- LLM_BASE_URL: ${{ secrets.LLM_BASE_URL }}- TEST_TIMEOUT: 180000- run: npm run test:integration:deterministic-- - name: Run LLM-backed integration tests- env:- AGENT_SERVER_URL: http://localhost:${{ env.AGENT_SERVER_PORT }}- HOST_WORKSPACE_DIR: ${{ env.HOST_WORKSPACE_DIR }}- AGENT_WORKSPACE_DIR: ${{ env.AGENT_WORKSPACE_DIR }}- LLM_API_KEY: ${{ secrets.LLM_API_KEY }}- LLM_MODEL: ${{ github.event.inputs.llm_model || secrets.LLM_MODEL || 'anthropic/claude-sonnet-4-5-20250929' }}- LLM_BASE_URL: ${{ secrets.LLM_BASE_URL }}- TEST_TIMEOUT: 180000- run: |- if [ -z "$LLM_API_KEY" ]; then- echo "β οΈ LLM_API_KEY secret not set - skipping LLM-backed integration tests"- exit 0- fi-- npm run test:integration:llm-- - name: Upload test results- if: always()- uses: actions/upload-artifact@v4- with:- name: integration-test-results- path: |- coverage/- junit.xml- retention-days: 7- if-no-files-found: ignore-- - name: Show container logs on failure- if: failure()- run: |- echo "=== Agent Server Logs ==="- docker logs agent-server- echo ""- echo "=== Workspace Contents ==="- ls -la ${{ env.HOST_WORKSPACE_DIR }} || true-- - name: Cleanup- if: always()- run: |- docker stop agent-server || true- docker rm agent-server || true- rm -rf ${{ env.HOST_WORKSPACE_DIR }} || true-- # Separate job for quick smoke test without LLM- smoke-test:- runs-on: ubuntu-latest- timeout-minutes: 10-- steps:- - name: Checkout code- uses: actions/checkout@v4-- - name: Use Node.js 20.x- uses: actions/setup-node@v4- with:- node-version: 20.x- cache: 'npm'-- - name: Install dependencies- run: npm ci-- - name: Build package- run: npm run build-- - name: Create workspace directory- run: |- mkdir -p /tmp/agent-workspace- chmod 777 /tmp/agent-workspace-- - name: Pull and start agent-server- run: |- docker pull ${{ env.AGENT_SERVER_IMAGE }}- docker run -d \- --name agent-server \- -p 8010:8000 \- -v /tmp/agent-workspace:/workspace \- ${{ env.AGENT_SERVER_IMAGE }}-- # Wait for server- sleep 10-- - name: Smoke test - server health- run: |- # Test server is responding- curl -f http://localhost:8010/alive- curl -f http://localhost:8010/health- curl http://localhost:8010/server_info-- - name: Smoke test - workspace command execution- env:- AGENT_SERVER_URL: http://localhost:8010- HOST_WORKSPACE_DIR: /tmp/agent-workspace- AGENT_WORKSPACE_DIR: /workspace- LLM_API_KEY: dummy-key-for-smoke-test- LLM_MODEL: dummy/model- run: |- # Just check that the TypeScript client can connect- # This doesn't need a real LLM key- npm run test -- --testPathPatterns="index.test.ts" --passWithNoTests-- - name: Cleanup- if: always()- run: |- docker stop agent-server || true- docker rm agent-server || truediff --git a/vendor/openhands-typescript-client/.github/workflows/pr-review-by-openhands.yml b/vendor/openhands-typescript-client/.github/workflows/pr-review-by-openhands.ymldeleted file mode 100644index bb6bfc05bb..0000000000--- a/vendor/openhands-typescript-client/.github/workflows/pr-review-by-openhands.yml+++ /dev/null@@ -1,34 +0,0 @@-name: PR Review by OpenHands--on:- pull_request_target:- types: [opened, ready_for_review, labeled, review_requested]--permissions:- contents: read- pull-requests: write- issues: write--jobs:- pr-review:- if: |- (github.event.action == 'opened' && github.event.pull_request.draft == false && github.event.pull_request.author_association != 'FIRST_TIME_CONTRIBUTOR' && github.event.pull_request.author_association != 'NONE') ||- (github.event.action == 'ready_for_review' && github.event.pull_request.author_association != 'FIRST_TIME_CONTRIBUTOR' && github.event.pull_request.author_association != 'NONE') ||- github.event.label.name == 'review-this' ||- github.event.requested_reviewer.login == 'openhands-agent' ||- github.event.requested_reviewer.login == 'all-hands-bot'- concurrency:- group: pr-review-${{ github.event.pull_request.number }}- cancel-in-progress: true- runs-on: ubuntu-24.04-- steps:- - name: Run PR Review- uses: OpenHands/extensions/plugins/pr-review@main- with:- llm-model: ${{ secrets.LLM_MODEL || 'anthropic/claude-sonnet-4-5-20250929' }}- llm-base-url: ${{ secrets.LLM_BASE_URL || '' }}- use-sub-agents: 'true'- llm-api-key: ${{ secrets.LLM_API_KEY }}- github-token: ${{ secrets.GITHUB_TOKEN }}- lmnr-api-key: ${{ secrets.LMNR_SKILLS_API_KEY }}diff --git a/vendor/openhands-typescript-client/.github/workflows/pr-review-evaluation.yml b/vendor/openhands-typescript-client/.github/workflows/pr-review-evaluation.ymldeleted file mode 100644index ad86b05cd8..0000000000--- a/vendor/openhands-typescript-client/.github/workflows/pr-review-evaluation.yml+++ /dev/null@@ -1,74 +0,0 @@-name: PR Review Evaluation--on:- pull_request_target:- types: [closed]--permissions:- contents: read- pull-requests: read--jobs:- evaluate:- runs-on: ubuntu-24.04- env:- PR_NUMBER: ${{ github.event.pull_request.number }}- REPO_NAME: ${{ github.repository }}- PR_MERGED: ${{ github.event.pull_request.merged }}-- steps:- - name: Download review trace artifact- id: download-trace- uses: dawidd6/action-download-artifact@v6- continue-on-error: true- with:- workflow: pr-review-by-openhands.yml- name: pr-review-trace-${{ github.event.pull_request.number }}- path: trace-info- search_artifacts: true- if_no_artifact_found: warn-- - name: Check if trace file exists- id: check-trace- run: |- if [ -f "trace-info/laminar_trace_info.json" ]; then- echo "trace_exists=true" >> "$GITHUB_OUTPUT"- echo "Found trace file for PR #$PR_NUMBER"- else- echo "trace_exists=false" >> "$GITHUB_OUTPUT"- echo "No trace file found for PR #$PR_NUMBER - skipping evaluation"- fi-- - name: Checkout extensions repository- if: steps.check-trace.outputs.trace_exists == 'true'- uses: actions/checkout@v5- with:- repository: OpenHands/extensions- path: extensions-- - name: Set up Python- if: steps.check-trace.outputs.trace_exists == 'true'- uses: actions/setup-python@v6- with:- python-version: '3.12'-- - name: Install dependencies- if: steps.check-trace.outputs.trace_exists == 'true'- run: pip install lmnr-- - name: Run evaluation- if: steps.check-trace.outputs.trace_exists == 'true'- env:- LMNR_PROJECT_API_KEY: ${{ secrets.LMNR_SKILLS_API_KEY }}- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}- run: |- python extensions/plugins/pr-review/scripts/evaluate_review.py \- --trace-file trace-info/laminar_trace_info.json-- - name: Upload evaluation logs- if: always() && steps.check-trace.outputs.trace_exists == 'true'- uses: actions/upload-artifact@v5- with:- name: pr-review-evaluation-${{ github.event.pull_request.number }}- path: '*.log'- retention-days: 30diff --git a/vendor/openhands-typescript-client/.github/workflows/publish-github-packages.yml b/vendor/openhands-typescript-client/.github/workflows/publish-github-packages.ymldeleted file mode 100644index 93d79ee6b0..0000000000--- a/vendor/openhands-typescript-client/.github/workflows/publish-github-packages.yml+++ /dev/null@@ -1,97 +0,0 @@-name: Publish to GitHub Packages--on:- push:- tags:- - 'v*'- workflow_dispatch:- inputs:- version:- description: 'Version to publish (without v prefix)'- required: true- type: string--permissions:- contents: read- packages: write--jobs:- publish:- runs-on: ubuntu-latest-- steps:- - name: Checkout code- uses: actions/checkout@v4-- - name: Setup Node.js- uses: actions/setup-node@v4- with:- node-version: 20.x- cache: 'npm'- registry-url: 'https://npm.pkg.github.com'- scope: '@openhands'-- - name: Install dependencies- run: npm ci-- - name: Run tests- run: npm test-- - name: Build package- run: npm run build-- - name: Extract version from tag or input- id: version- run: |- if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then- echo "VERSION=${{ github.event.inputs.version }}" >> $GITHUB_OUTPUT- else- echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT- fi-- - name: Update package version- run: npm version ${{ steps.version.outputs.VERSION }} --no-git-tag-version-- - name: Publish to GitHub Packages- run: npm publish --access public- env:- NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}-- - name: Create GitHub Release (for tag pushes only)- if: github.event_name == 'push'- uses: softprops/action-gh-release@v1- with:- tag_name: ${{ github.ref_name }}- name: Release ${{ github.ref_name }}- draft: false- prerelease: false- generate_release_notes: true- body: |- ## Installation from GitHub Packages-- ```bash- npm install @openhands/typescript-client@${{ steps.version.outputs.VERSION }} --registry=https://npm.pkg.github.com- ```-- Or add to your `.npmrc`:- ```- @openhands:registry=https://npm.pkg.github.com- ```-- Then install normally:- ```bash- npm install @openhands/typescript-client@${{ steps.version.outputs.VERSION }}- ```-- ## Usage-- ```typescript- import { RemoteConversation } from '@openhands/typescript-client';-- const conversation = new RemoteConversation({- baseUrl: 'http://localhost:8000',- apiKey: 'your-api-key'- });-- await conversation.start();- ```\ No newline at end of filediff --git a/vendor/openhands-typescript-client/.github/workflows/release.yml b/vendor/openhands-typescript-client/.github/workflows/release.ymldeleted file mode 100644index 0a6a717afd..0000000000--- a/vendor/openhands-typescript-client/.github/workflows/release.yml+++ /dev/null@@ -1,85 +0,0 @@-name: Release--on:- push:- tags:- - 'v*'--permissions:- contents: write- packages: write--jobs:- release:- runs-on: ubuntu-latest-- steps:- - name: Checkout code- uses: actions/checkout@v4-- - name: Setup Node.js for GitHub Packages- uses: actions/setup-node@v4- with:- node-version: 20.x- cache: 'npm'- registry-url: 'https://npm.pkg.github.com'- scope: '@openhands'-- - name: Install dependencies- run: npm ci-- - name: Run tests- run: npm test-- - name: Build package- run: npm run build-- - name: Extract version from tag- id: version- run: echo "VERSION=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT-- - name: Update package version- run: npm version ${{ steps.version.outputs.VERSION }} --no-git-tag-version-- - name: Publish to GitHub Packages- run: npm publish --access public- env:- NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}-- - name: Create GitHub Release- uses: softprops/action-gh-release@v1- with:- tag_name: ${{ github.ref_name }}- name: Release ${{ github.ref_name }}- draft: false- prerelease: false- generate_release_notes: true- body: |- ## Installation from GitHub Packages-- ### Option 1: Configure .npmrc (Recommended)- Add to your `.npmrc` file:- ```- @openhands:registry=https://npm.pkg.github.com- ```-- Then install:- ```bash- npm install @openhands/typescript-client@${{ steps.version.outputs.VERSION }}- ```-- ### Option 2: Direct install with registry flag- ```bash- npm install @openhands/typescript-client@${{ steps.version.outputs.VERSION }} --registry=https://npm.pkg.github.com- ```-- ## Usage-- ```typescript- import { RemoteConversation } from '@openhands/typescript-client';-- const conversation = new RemoteConversation({- baseUrl: 'http://localhost:8000',- apiKey: 'your-api-key'- });- ```\ No newline at end of filediff --git a/vendor/openhands-typescript-client/.gitignore b/vendor/openhands-typescript-client/.gitignoredeleted file mode 100644index cf3977dbe8..0000000000--- a/vendor/openhands-typescript-client/.gitignore+++ /dev/null@@ -1,95 +0,0 @@-.envrc--# Dependencies-node_modules/-npm-debug.log*-yarn-debug.log*-yarn-error.log*--# Build outputs-dist/-build/-*.tsbuildinfo--# Environment variables-.env-.env.local-.env.development.local-.env.test.local-.env.production.local--# IDE files-.vscode/-.idea/-*.swp-*.swo-*~--# OS generated files-.DS_Store-.DS_Store?-._*-.Spotlight-V100-.Trashes-ehthumbs.db-Thumbs.db--# Logs-logs/-*.log--# Coverage directory used by tools like istanbul-coverage/-*.lcov--# nyc test coverage-.nyc_output--# Dependency directories-jspm_packages/--# Optional npm cache directory-.npm--# Optional eslint cache-.eslintcache--# Microbundle cache-.rpt2_cache/-.rts2_cache_cjs/-.rts2_cache_es/-.rts2_cache_umd/--# Optional REPL history-.node_repl_history--# Output of 'npm pack'-*.tgz--# Yarn Integrity file-.yarn-integrity--# parcel-bundler cache (https://parceljs.org/)-.cache-.parcel-cache--# next.js build output-.next--# nuxt.js build output-.nuxt--# vuepress build output-.vuepress/dist--# Serverless directories-.serverless--# FuseBox cache-.fusebox/--# DynamoDB Local files-.dynamodb/--# TernJS port file-.tern-portdiff --git a/vendor/openhands-typescript-client/.npmrc b/vendor/openhands-typescript-client/.npmrcdeleted file mode 100644index d331ec7627..0000000000--- a/vendor/openhands-typescript-client/.npmrc+++ /dev/null@@ -1 +0,0 @@-@openhands:registry=https://npm.pkg.github.com\ No newline at end of filediff --git a/vendor/openhands-typescript-client/.prettierrc b/vendor/openhands-typescript-client/.prettierrcdeleted file mode 100644index a813c658a7..0000000000--- a/vendor/openhands-typescript-client/.prettierrc+++ /dev/null@@ -1,8 +0,0 @@-{- "semi": true,- "trailingComma": "es5",- "singleQuote": true,- "printWidth": 100,- "tabWidth": 2,- "useTabs": false-}\ No newline at end of filediff --git a/vendor/openhands-typescript-client/AGENTS.md b/vendor/openhands-typescript-client/AGENTS.mddeleted file mode 100644index ca11ab35bd..0000000000--- a/vendor/openhands-typescript-client/AGENTS.md+++ /dev/null@@ -1,357 +0,0 @@-# Agent Server TypeScript Client--## General Purpose--This repository contains a TypeScript client library for the OpenHands Agent Server. It provides a complete, type-safe interface for interacting with the OpenHands Agent Server API, enabling developers to build applications that can create and manage AI agent conversations, workspaces, and real-time event streams.--The client is designed to mirror the structure and functionality of the Python SDK (`software-agent-sdk`) while providing idiomatic TypeScript/JavaScript APIs with full type safety and modern development tooling.--## Key Features--- **Complete API Coverage**: Implements all endpoints from the OpenHands Agent Server OpenAPI specification-- **Type Safety**: Full TypeScript support with comprehensive interfaces and type definitions-- **Real-time Events**: WebSocket client for streaming conversation events and agent status updates-- **Workspace Management**: File operations, uploads, downloads, and workspace state management-- **Conversation Lifecycle**: Create, start, stop, and manage AI agent conversations-- **Error Handling**: Robust error handling with custom exception classes and retry logic-- **Modern Tooling**: ESLint, Prettier, Jest testing framework, and GitHub Actions CI/CD--## Browser Compatibility Requirement--**All code in this library must be browser-compatible.** This is a hard constraint β the SDK is designed to run in browser environments and must never depend on Node.js-specific APIs.--**Do NOT use:**--- `fs`, `fs/promises`, or any filesystem APIs-- `child_process`, `spawn`, `exec`, or any process execution APIs-- `path` (Node.js module β use string manipulation or URL APIs instead)-- `os`, `net`, `http`, `https`, `stream`, `buffer` (Node.js built-in), `crypto` (Node.js built-in), or any other Node.js built-in modules-- Any npm package that depends on Node.js built-in modules--**DO use:**--- `fetch` for HTTP requests-- `WebSocket` for real-time communication-- Web-standard APIs (`URL`, `Blob`, `File`, `FormData`, `TextEncoder`/`TextDecoder`, etc.)-- Browser-compatible npm packages only--This applies to all source code under `src/`. Test files (`src/__tests__/`) are an exception since they run in Node.js via Jest.--## Source Material--This TypeScript client is based on the following source materials:--### 1. OpenAPI Specification--- **Source**: [OpenHands Docs - Agent SDK OpenAPI](https://github.com/OpenHands/docs/blob/main/openapi/agent-sdk.json)-- **Purpose**: Defines the complete REST API specification for the OpenHands Agent Server-- **Usage**: Used to generate TypeScript interfaces, API client methods, and ensure complete endpoint coverage--### 2. Python SDK Reference Implementation--- **Source**: [OpenHands Software Agent SDK](https://github.com/OpenHands/software-agent-sdk)-- **Key Components**:- - `RemoteConversation` class - Main conversation management- - `RemoteWorkspace` class - Workspace file operations- - `RemoteState` class - Agent state and configuration management-- **Purpose**: Provides the architectural blueprint and API design patterns-- **Usage**: Ensures consistent class names, method signatures, and behavior across language implementations--### 3. Agent Server Implementation--- **Source**: Located within the `software-agent-sdk` repository as `agent-server`-- **Purpose**: The actual server implementation that this client communicates with-- **Usage**: Reference for understanding expected request/response formats and WebSocket event structures--## Architecture Alignment--The TypeScript client maintains architectural consistency with the Python SDK:--```typescript-// TypeScript Client (this repo)-const conversation = new RemoteConversation(config);-await conversation.start();-await conversation.workspace.write_file('/path/file.txt', 'content');-const state = conversation.state;-```--```python-# Python SDK (reference implementation)-conversation = RemoteConversation(config)-await conversation.start()-await conversation.workspace.write_file('/path/file.txt', 'content')-state = conversation.state-```--### Workspace Architecture--The workspace module follows the Python SDK's architecture with a common interface and multiple implementations:--```-src/workspace/-βββ base.ts # IWorkspace interface defining the contract-βββ remote-workspace.ts # RemoteWorkspace - connects to remote agent server-βββ local-workspace.ts # LocalWorkspace - stub (throws errors, directs to RemoteWorkspace)-βββ workspace.ts # Factory functions and Workspace class (backwards compatible)-```--**IWorkspace Interface**: Defines the common contract for all workspace implementations:--- `executeCommand()` - Execute bash commands-- `fileUpload()` / `fileDownload()` - File operations-- `gitChanges()` / `gitDiff()` - Git operations-- `close()` - Cleanup resources--**RemoteWorkspace**: Fully implemented class that connects to a remote OpenHands agent server via HTTP API.--**LocalWorkspace**: Stub implementation that throws descriptive errors directing users to RemoteWorkspace.--**Factory Functions**:--- `createWorkspace({ type, options })` - Explicit type selection-- `createWorkspaceAuto(options)` - Auto-detect based on presence of `host` option---**Ergonomic API note**: Keep `Workspace`/`RemoteWorkspace` as the main user-facing entry point for remote execution. Lower-level bash endpoint access should hang off `workspace.bash`, while direct endpoint-specific clients belong in the secondary `@openhands/typescript-client/clients` entrypoint instead of the root SDK surface.--### LLM Architecture--The LLM module provides a unified interface for interacting with Large Language Models:--```-src/llm/-βββ base.ts # ILLM interface and message types-βββ openrouter-llm.ts # OpenRouterLLM - implementation using @openrouter/sdk-βββ llm.ts # Factory functions and LLM class-βββ index.ts # Module exports-```--**ILLM Interface**: Defines the common contract for all LLM implementations:--- `chatCompletion()` - Send a chat completion request-- `chatCompletionStream()` - Stream a chat completion response-- `generate()` - Simple helper for single-turn generation-- `close()` - Cleanup resources--**OpenRouterLLM**: Implementation using the official `@openrouter/sdk` package, providing access to 300+ models.--**Usage Example**:--```typescript-import { createOpenRouterLLM } from '@openhands/typescript-client';--const llm = createOpenRouterLLM({- apiKey: 'your-openrouter-api-key',- defaultModel: 'anthropic/claude-3.5-sonnet',-});--// Simple generation-const response = await llm.generate('Hello, how are you?');--// Full chat completion-const completion = await llm.chatCompletion({- messages: [{ role: 'user', content: 'Explain quantum computing' }],- temperature: 0.7,- maxTokens: 1000,-});--// Streaming-for await (const chunk of llm.chatCompletionStream({ messages })) {- process.stdout.write(chunk.choices[0]?.delta?.content || '');-}-```--### Conversation Architecture--The conversation module follows the same pattern as workspaces:--```-src/conversation/-βββ base.ts # IConversation interface defining the contract-βββ remote-conversation.ts # RemoteConversation - connects to remote agent server-βββ local-conversation.ts # LocalConversation - local agent execution with LLM-βββ conversation.ts # Factory functions and Conversation class (backwards compatible)-βββ remote-state.ts # State management for remote conversations-βββ conversation-manager.ts # Manager for multiple conversations-```--**IConversation Interface**: Defines the common contract for all conversation implementations:--- `start()` - Initialize or resume a conversation-- `sendMessage()` - Send a message to the agent-- `run()` / `pause()` - Control agent execution-- `generateTitle()` - Generate a title using LLM-- `close()` - Cleanup resources--**RemoteConversation**: Fully implemented class that connects to a remote OpenHands agent server via HTTP/WebSocket.--**LocalConversation**: Fully implemented class for local agent execution:--- Integrates with ILLM interface for LLM communication-- Implements agent loop with tool calling support-- Built-in tools: `execute_command`, `read_file`, `write_file`, `finish`-- Maintains message history for multi-turn conversations-- Supports pause/resume functionality-- Event emission with callback support--**Local Conversation Example**:--```typescript-import { LocalWorkspace, LocalConversation, OpenRouterLLM } from '@openhands/typescript-client';--// Create components-const workspace = new LocalWorkspace({ workingDir: '/path/to/project' });-const llm = new OpenRouterLLM({- apiKey: 'your-key',- defaultModel: 'anthropic/claude-3.5-sonnet',-});--// Create and run conversation-const conversation = new LocalConversation({ kind: 'local-agent' }, workspace, {- llm,- maxIterations: 50,-});--await conversation.start({ initialMessage: 'List all TypeScript files' });-await conversation.run();-await conversation.close();-```--**Factory Functions**:--**Ergonomic API note**: Keep `ConversationManager` as the main server-scoped entry point. Server/LLM/settings/skills/tools/VSCode/desktop operations should be reachable through manager namespaces such as `manager.server`, `manager.llm`, and `manager.desktop`; ACP-specific operations should be reachable via `manager.acp`.---- `createConversation({ type, agent, workspace, options })` - Explicit type selection-- `createConversationAuto(agent, workspace, options)` - Auto-detect based on workspace type--### Hooks Architecture--The hooks module provides type-safe interfaces for the agent-server's hook system. Hooks are event-driven shell scripts that execute at specific lifecycle events during agent execution, enabling deterministic control over agent behavior.--```-src/hooks/-βββ types.ts # Enums (HookEventType, HookType, HookDecision) and interfaces (HookEvent, HookResult)-βββ config.ts # HookConfig interface and pure functions (matching, normalization, merging)-βββ index.ts # Module exports-```--**Key Design Decisions:**--- **Browser-compatible**: No file I/O or subprocess execution β hooks execute server-side-- **Pure functions**: Config parsing, matching, and merging are all pure functions operating on plain data-- **Type-safe**: Full TypeScript interfaces matching the Python SDK's Pydantic models-- **Server-side execution**: Hook commands run on the agent-server; the client only sends configuration and receives `HookExecutionEvent` via WebSocket--**Integration Points:**--- `CreateConversationRequest.hook_config` - Send hooks when creating a conversation-- `RemoteConversation.loadHooks()` - Load hooks from server's `.openhands/hooks.json`-- `RemoteConversation.getHookConfig()` - Get hooks from current conversation info-- `HookExecutionEvent` - Received via WebSocket when hooks execute server-side--**Event Types:** `HookExecutionEvent` is emitted by the server for each hook execution, providing observability into hook results (success, blocked, stdout, stderr, etc.)--## Development Workflow--1. **API Changes**: When the OpenAPI specification is updated, corresponding TypeScript interfaces and client methods should be updated-2. **Feature Parity**: New features added to the Python SDK should be implemented in this TypeScript client-3. **Testing**: All functionality should be tested against a running OpenHands Agent Server instance-4. **Documentation**: API changes should be reflected in the README.md and example code--## Testing--### Unit Tests--Unit tests are located in `src/__tests__/` and test basic functionality without requiring external services:--```bash-npm test # Run unit tests-npm run test:coverage # Run with coverage report-```--### Integration Tests--Integration tests are in `src/__tests__/integration/` and require a running agent-server in Docker:--```bash-# Set up environment-export LLM_API_KEY="your-api-key"-export LLM_MODEL="anthropic/claude-sonnet-4-5-20250929"--# Start agent-server in Docker (software-agent-sdk v1.18.1)-docker run -d --name agent-server -p 8010:8000 \- -v /tmp/agent-workspace:/workspace \- ghcr.io/openhands/agent-server:7c37803-python--# Run integration tests-npm run test:integration-```--Integration tests cover:--- **workspace.integration.test.ts**: Command execution, file upload/download-- **conversation.integration.test.ts**: Conversation lifecycle, messaging, agent execution-- **websocket.integration.test.ts**: Real-time event streaming-- **http-client.integration.test.ts**: HTTP client functionality-- **e2e.integration.test.ts**: End-to-end agent workflows--### CI/CD--The GitHub Action workflow `integration-tests.yml` automatically:--1. Starts an agent-server container with a mounted workspace-2. Runs all integration tests against the real server-3. Reports results and logs on failure--Required GitHub secrets:--- `LLM_API_KEY`: API key for the LLM provider-- `LLM_MODEL` (optional): Override the default model--### CI Image Version--- The integration workflow pins `ghcr.io/openhands/agent-server:7c37803-python`, which corresponds to the `software-agent-sdk` release `v1.18.1`.-- Keep the TypeScript client tests strict against that released server image rather than adding compatibility fallbacks for older prerelease builds.--## Agent Behavior Guidelines--**IMPORTANT**: The agent should NEVER start the server or browse to view the app unless the user explicitly asks for it. This includes:--- Running development servers (e.g., `npm run dev`, `npm start`)-- Opening browsers or navigating to application URLs-- Starting any web servers or applications automatically-- Viewing the running application in a browser--The agent should focus on code development, testing, and documentation tasks. Only when the user specifically requests to run or view the application should the agent start servers or open browsers.--## Related Repositories--- **[OpenHands/OpenHands](https://github.com/OpenHands/OpenHands)**: Core OpenHands application-- **[OpenHands/software-agent-sdk](https://github.com/OpenHands/software-agent-sdk)**: Python SDK and Agent Server-- **[OpenHands/docs](https://github.com/OpenHands/docs)**: Documentation and OpenAPI specifications--## Usage Context--This client is intended for developers who want to:--- Build web applications that interact with OpenHands agents-- Create Node.js services that manage agent conversations-- Integrate OpenHands capabilities into existing TypeScript/JavaScript applications-- Develop custom frontends for the OpenHands Agent Server--The client abstracts away the complexity of HTTP requests, WebSocket management, and API authentication, providing a clean, type-safe interface for all OpenHands Agent Server functionality.--## Example Application--The `example/` directory contains a React application built with Vite that demonstrates how to integrate the TypeScript SDK into a modern web application. This example serves as both a reference implementation and a verification tool to ensure the SDK works correctly in browser environments.--The example application showcases:--- Proper SDK integration with ES module compatibility-- TypeScript configuration for client-side development-- Build processes that compile the SDK before running the application-- Import verification of all major SDK classes and enums-- Modern React development patterns with Vite tooling--This provides developers with a working template for building their own applications using the OpenHands Agent Server TypeScript Client.diff --git a/vendor/openhands-typescript-client/PUBLISHING.md b/vendor/openhands-typescript-client/PUBLISHING.mddeleted file mode 100644index 37be6b5dd9..0000000000--- a/vendor/openhands-typescript-client/PUBLISHING.md+++ /dev/null@@ -1,105 +0,0 @@-# Publishing Guide--This document explains how to publish the OpenHands TypeScript Client to GitHub Packages.--## Overview--The package is published exclusively to **GitHub Packages** for GitHub-native integration.--## Automated Publishing (Recommended)--### Prerequisites--- **GitHub Token**: Automatically provided by GitHub Actions as `GITHUB_TOKEN`--### Publishing Process--1. **Create and push a version tag**:- ```bash- git tag v1.0.0- git push origin v1.0.0- ```--2. **The GitHub Action will automatically**:- - Run tests- - Build the package- - Update package.json version- - Publish to GitHub Packages- - Create a GitHub release with installation instructions--## Manual Publishing--### Setup--1. **Configure npm for GitHub Packages**:- ```bash- npm login --registry=https://npm.pkg.github.com- # Username: your-github-username- # Password: your-github-token- ```--### Publishing Steps--1. **Update version**:- ```bash- npm version patch # or minor, major- ```--2. **Build the package**:- ```bash- npm run build- ```--3. **Run tests**:- ```bash- npm test- ```--4. **Publish to GitHub Packages**:- ```bash- npm publish --registry=https://npm.pkg.github.com --access public- ```--## Installation Instructions for Users--### From GitHub Packages--#### Option 1: Configure .npmrc (Recommended)-Add to your `.npmrc` file:-```-@openhands:registry=https://npm.pkg.github.com-```--Then install:-```bash-npm install @openhands/typescript-client-```--#### Option 2: Direct install with registry flag-```bash-npm install @openhands/typescript-client --registry=https://npm.pkg.github.com-```--## Troubleshooting--### Authentication Issues--- **GitHub Packages**: Ensure the `GITHUB_TOKEN` has `packages:write` permission--### Version Conflicts--If you encounter version conflicts, ensure:-- The version in `package.json` matches the git tag-- The version doesn't already exist in the registry--### Build Failures--Common issues:-- TypeScript compilation errors: Fix in source code-- Test failures: Ensure all tests pass before publishing-- Missing dependencies: Run `npm ci` to install exact versions--## Workflow Files--- `.github/workflows/release.yml`: Main release workflow (GitHub Packages)-- `.github/workflows/publish-github-packages.yml`: GitHub Packages only workflow with manual trigger\ No newline at end of filediff --git a/vendor/openhands-typescript-client/README.md b/vendor/openhands-typescript-client/README.mddeleted file mode 100644index 034eb346a9..0000000000--- a/vendor/openhands-typescript-client/README.md+++ /dev/null@@ -1,449 +0,0 @@-# OpenHands Agent Server TypeScript Client--> β οΈ **ALPHA SOFTWARE WARNING** β οΈ->-> This TypeScript SDK is currently in **alpha** and is **not stable**. The API may change significantly between versions without notice. This software is intended for early testing and development purposes only.->-> - Breaking changes may occur in any release-> - Features may be incomplete or contain bugs-> - Documentation may be outdated or incomplete-> - Not recommended for production use->-> Please use with caution and expect frequent updates.--A TypeScript client library for the OpenHands Agent Server API. Mirrors the structure and functionality of the Python [OpenHands Software Agent SDK](https://github.com/OpenHands/software-agent-sdk),-but only supports remote conversations.--## β¨ Browser Compatible--This client is **fully browser-compatible** and works without Node.js dependencies. File operations use browser-native APIs like `Blob`, `File`, and `FormData` instead of file system operations. Perfect for web applications, React apps, and other browser-based projects.--## Installation--This package is published to GitHub Packages. You have two installation options:--### Option 1: Configure .npmrc (Recommended)--Add this to your `.npmrc` file:--```-@openhands:registry=https://npm.pkg.github.com-```--Then install normally:--```bash-npm install @openhands/typescript-client-```--### Option 2: Direct install with registry flag--```bash-npm install @openhands/typescript-client --registry=https://npm.pkg.github.com-```--## Quick Start--### Start an AgentServer--You'll need an AgentServer running somewhere for the client to connect to. You can run one in docker:--```bash-docker run -p 8000:8000 -p 8001:8001 \- -e OH_ENABLE_VNC=false \- -e SESSION_API_KEY="$SESSION_API_KEY" \- -e OH_ALLOW_CORS_ORIGINS='["*"]' \- ghcr.io/all-hands-ai/agent-server:78938ee-python-```--### Creating a Conversation--```typescript-import { Conversation, Agent, Workspace } from '@openhands/typescript-client';--const agent = new Agent({- llm: {- model: 'gpt-4',- api_key: 'your-openai-api-key',- },-});--// Create a remote workspace-const workspace = new Workspace({- host: 'http://localhost:3000',- workingDir: '/tmp',- apiKey: 'your-session-api-key',-});--const conversation = new Conversation(agent, workspace, {- callback: (event) => {- console.log('Received event:', event);- },-});--// Start the conversation with an initial message-await conversation.start({- initialMessage: 'Hello, can you help me write some code?',-});--// Start WebSocket for real-time events-await conversation.startWebSocketClient();--// Send a message and run the agent-await conversation.sendMessage('Create a simple Python script that prints "Hello World"');-await conversation.run();-```--### Loading an Existing Conversation--```typescript-// Create a remote workspace for the existing conversation-const workspace = new Workspace({- host: 'http://localhost:3000',- workingDir: '/tmp',- apiKey: 'your-session-api-key',-});--const conversation = new Conversation(agent, workspace, {- conversationId: 'conversation-id-here',-});--// Connect to the existing conversation-await conversation.start();-```--### Using the Workspace--```typescript-// Execute commands-const result = await conversation.workspace.executeCommand('ls -la');-console.log('Command output:', result.stdout);-console.log('Exit code:', result.exit_code);--// Access lower-level bash APIs from the workspace-const bashCommand = await conversation.workspace.bash.startCommand('ls -la');-const bashEvents = await conversation.workspace.bash.searchEvents({- command_id__eq: bashCommand.id,- limit: 20,-});--// Upload a file-const uploadResult = await conversation.workspace.fileUpload(- './local-file.txt',- '/remote/path/file.txt'-);--// Download a file-const downloadResult = await conversation.workspace.fileDownload(- '/remote/path/file.txt',- './downloaded-file.txt'-);-```--### Server-wide Operations--```typescript-import { ConversationManager } from '@openhands/typescript-client';--const manager = new ConversationManager({- host: 'http://localhost:3000',- apiKey: 'your-session-api-key',-});--const serverInfo = await manager.server.getServerInfo();-const providers = await manager.llm.getProviders();-const tools = await manager.tools.listTools();-const acpCount = await manager.acp.countConversations();-```--If you need the lower-level endpoint-specific clients directly, import them from the secondary entrypoint:--```typescript-import { ServerClient, BashClient } from '@openhands/typescript-client/clients';-```--### Working with Events--```typescript-// Access the events list-const events = await conversation.state.events.getEvents();-console.log(`Total events: ${events.length}`);--// Iterate through events-for await (const event of conversation.state.events) {- console.log(`Event: ${event.kind} at ${event.timestamp}`);-}-```--### Managing Conversation State--```typescript-// Get conversation status-const status = await conversation.state.getAgentStatus();-console.log('Agent status:', status);--// Get conversation stats-const stats = await conversation.conversationStats();-console.log('Total events:', stats.total_events);--// Set confirmation policy-await conversation.setConfirmationPolicy({ type: 'always' });--// Update secrets-await conversation.updateSecrets({- API_KEY: 'secret-value',- DATABASE_URL: () => process.env.DATABASE_URL || 'default-url',-});-```--## API Reference--### Conversation--Factory function that creates conversations with OpenHands agents.--#### Constructor--- `new Conversation(agent, workspace, options?)` - Create a new conversation instance--#### Instance Methods--- `start(options?)` - Start the conversation (creates new or connects to existing)--- `sendMessage(message)` - Send a message to the agent-- `run()` - Start agent execution-- `pause()` - Pause agent execution-- `setConfirmationPolicy(policy)` - Set confirmation policy-- `sendConfirmationResponse(accept, reason?)` - Respond to confirmation requests-- `generateTitle(maxLength?, llm?)` - Generate a title for the conversation-- `updateSecrets(secrets)` - Update conversation secrets-- `startWebSocketClient()` - Start real-time event streaming-- `stopWebSocketClient()` - Stop real-time event streaming-- `conversationStats()` - Get conversation statistics-- `close()` - Clean up resources--#### Properties--- `id` - Conversation ID-- `state` - RemoteState instance for accessing conversation state-- `workspace` - RemoteWorkspace instance for command execution and file operations--### RemoteWorkspace--Handles remote command execution and file operations.--#### Methods--- `executeCommand(command, cwd?, timeout?)` - Execute a bash command-- `fileUpload(sourcePath, destinationPath)` - Upload a file-- `fileDownload(sourcePath, destinationPath)` - Download a file-- `gitChanges(path)` - Get git changes for a path-- `gitDiff(path)` - Get git diff for a path-- `close()` - Clean up resources--### RemoteState--Manages conversation state and provides access to events.--#### Properties--- `id` - Conversation ID-- `events` - RemoteEventsList instance--#### Methods--- `getAgentStatus()` - Get current agent execution status-- `getConfirmationPolicy()` - Get current confirmation policy-- `getActivatedKnowledgeSkills()` - Get activated knowledge skills-- `getAgent()` - Get agent configuration-- `getWorkspace()` - Get workspace configuration-- `getPersistenceDir()` - Get persistence directory-- `modelDump()` - Get state as plain object-- `modelDumpJson()` - Get state as JSON string--### RemoteEventsList--Manages conversation events with caching and synchronization.--#### Methods--- `addEvent(event)` - Add an event to the cache-- `length()` - Get number of cached events-- `getEvent(index)` - Get event by index-- `getEvents(start?, end?)` - Get events slice-- `createDefaultCallback()` - Create a default event callback--### WebSocketCallbackClient--Handles real-time event streaming via WebSocket.--#### Methods--- `start()` - Start WebSocket connection-- `stop()` - Stop WebSocket connection--## Types--The library includes comprehensive TypeScript type definitions:--- `ConversationID` - Conversation identifier type-- `Event` - Base event interface-- `Message` - Message interface with content-- `AgentBase` - Agent configuration interface-- `CommandResult` - Command execution result-- `FileOperationResult` - File operation result-- `ConversationStats` - Conversation statistics-- `AgentExecutionStatus` - Agent status enum-- And many more...--## Error Handling--The client includes proper error handling with custom error types:--```typescript-import { HttpError } from '@openhands/typescript-client';--try {- await conversation.sendMessage('Hello');-} catch (error) {- if (error instanceof HttpError) {- console.error(`HTTP Error ${error.status}: ${error.statusText}`);- console.error('Response:', error.response);- } else {- console.error('Unexpected error:', error);- }-}-```--## Development--### Building--```bash-npm run build-```--### Development Mode--```bash-npm run dev-```--### Linting--```bash-npm run lint-```--### Formatting--```bash-npm run format-```--## Testing--### Unit Tests--Run unit tests (no external dependencies required):--```bash-npm test-```--### Integration Tests--Integration tests require a running agent-server in Docker with a mounted workspace. These tests verify the full functionality against a real server.--#### Prerequisites--1. Docker installed and running-2. LLM API key (e.g., Anthropic or OpenAI)--#### Running Integration Tests Locally--1. Create a workspace directory:-- ```bash- mkdir -p /tmp/agent-workspace- chmod 777 /tmp/agent-workspace- ```--2. Start the agent-server container (software-agent-sdk v1.18.1):-- ```bash- docker run -d \- --name agent-server \- -p 8010:8000 \- -v /tmp/agent-workspace:/workspace \- ghcr.io/openhands/agent-server:7c37803-python- ```--3. Wait for the server to be ready:-- ```bash- # Check server health- curl http://localhost:8010/health- ```--4. Run integration tests:-- ```bash- export LLM_API_KEY="your-api-key"- export LLM_MODEL="anthropic/claude-sonnet-4-5-20250929"- npm run test:integration- ```--5. Cleanup:- ```bash- docker stop agent-server && docker rm agent-server- ```--#### Environment Variables--| Variable | Required | Default | Description |-| --------------------- | -------- | ----------------------- | ------------------------------------------------------------- |-| `LLM_API_KEY` | Yes | - | API key for the LLM provider |-| `LLM_MODEL` | Yes | - | LLM model name (e.g., `anthropic/claude-sonnet-4-5-20250929`) |-| `LLM_BASE_URL` | No | - | Custom base URL for LLM API |-| `AGENT_SERVER_URL` | No | `http://localhost:8010` | URL of the agent server |-| `HOST_WORKSPACE_DIR` | No | `/tmp/agent-workspace` | Path to workspace on host |-| `AGENT_WORKSPACE_DIR` | No | `/workspace` | Path to workspace inside container |-| `TEST_TIMEOUT` | No | `120000` | Test timeout in milliseconds |--#### Integration Test Coverage--The integration tests cover:--- **Workspace Operations**: Command execution, file upload/download, round-trip operations-- **Conversation Lifecycle**: Creation, message sending, running agents, pausing-- **Event Streaming**: WebSocket connections, event callbacks, different event types-- **HTTP Client**: Health checks, GET/POST requests, error handling-- **End-to-End Tasks**: File creation/modification/deletion via agent, multi-step tasks--#### CI/CD--Integration tests run automatically in GitHub Actions when:--- Pushing to `main` or `develop` branches-- Opening pull requests to these branches-- Manually triggering the workflow--The workflow requires the following secrets:--- `LLM_API_KEY`: API key for the LLM provider-- `LLM_MODEL` (optional): Override the default model--### Running All Tests--```bash-npm run test:all-```--## License--MIT--## Contributing--Contributions are welcome! Please feel free to submit a Pull Request.diff --git a/vendor/openhands-typescript-client/VIBE.md b/vendor/openhands-typescript-client/VIBE.mddeleted file mode 100644index 8b1ee92588..0000000000--- a/vendor/openhands-typescript-client/VIBE.md+++ /dev/null@@ -1,23 +0,0 @@-# Vibecoding with the OpenHands typescript-client--This client is great for vibecoding small custom frontends that drive agents. Below are some instructions-you can pass to an agent to bootstrap a new repo.--> You are working with @openhands/typescript-client to build a custom frontend for working with-> agents that can write and run code. Clone github.com/openhands/typescript-client and investigate the API.->-> To start this frontend, create a basic React application. On the homepage should be a "settings" button, which-> opens a modal. These four fields should be settable:-> * AgentServer URL-> * AgentServer API Key-> * LLM model-> * LLM key-> In the modal, show whether the AgentServer is connected by trying to access http://174.138.76.92:8000/api/conversations/count, and make sure it responds 2xx->-> Store all this in localStorage. If no settings are found on page load, open the modal by default->-> If the settings are found and working, start a new conversation using the typescript-client. Show a message box on the homepage which allows sending messages-> to the agent, and show the most recent message back from the agent below that->-> Set up GitHub actions to build, test, and lint all this-diff --git a/vendor/openhands-typescript-client/babel.config.cjs b/vendor/openhands-typescript-client/babel.config.cjsdeleted file mode 100644index 52eca3a599..0000000000--- a/vendor/openhands-typescript-client/babel.config.cjs+++ /dev/null@@ -1,5 +0,0 @@-module.exports = {- presets: [- ['@babel/preset-env', { targets: { node: 'current' } }]- ]-};diff --git a/vendor/openhands-typescript-client/eslint.config.mjs b/vendor/openhands-typescript-client/eslint.config.mjsdeleted file mode 100644index 16612aacf0..0000000000--- a/vendor/openhands-typescript-client/eslint.config.mjs+++ /dev/null@@ -1,30 +0,0 @@-import eslint from '@eslint/js';-import tseslint from 'typescript-eslint';-import globals from 'globals';--export default tseslint.config(- eslint.configs.recommended,- ...tseslint.configs.recommended,- {- languageOptions: {- ecmaVersion: 2020,- sourceType: 'module',- globals: {- ...globals.node,- ...globals.es2020,- },- },- rules: {- '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],- '@typescript-eslint/no-explicit-any': 'warn',- '@typescript-eslint/explicit-function-return-type': 'off',- '@typescript-eslint/explicit-module-boundary-types': 'off',- '@typescript-eslint/no-non-null-assertion': 'warn',- 'prefer-const': 'error',- 'no-var': 'error',- },- },- {- ignores: ['dist/**', 'node_modules/**', 'coverage/**', 'example/**'],- }-);diff --git a/vendor/openhands-typescript-client/example/README.md b/vendor/openhands-typescript-client/example/README.mddeleted file mode 100644index 7c95535af6..0000000000--- a/vendor/openhands-typescript-client/example/README.md+++ /dev/null@@ -1,94 +0,0 @@-# OpenHands SDK React Example--This is a basic React application built with Vite that demonstrates successful integration with the OpenHands Agent Server TypeScript Client SDK.--## Features--- β **Local SDK Integration**: Uses a locally built version of the SDK via file dependency-- β **Automatic Build**: Builds the SDK before starting the app-- β **TypeScript Support**: Full TypeScript integration with type safety-- β **Import Verification**: Displays all imported SDK classes and enums-- β **Real-time Status**: Shows SDK import status and available functionality--## What's Demonstrated--The app successfully imports and displays:--### Main Classes-- `RemoteConversation` - Main conversation management class-- `RemoteWorkspace` - Workspace file operations class-- `HttpClient` - HTTP client for API communication-- `AgentExecutionStatus` - Enum for agent execution states-- `EventSortOrder` - Enum for event sorting options--### Enum Values-- **AgentExecutionStatus**: IDLE, RUNNING, PAUSED, FINISHED, ERROR-- **EventSortOrder**: TIMESTAMP, REVERSE_TIMESTAMP--## Getting Started--### Prerequisites-- Node.js (v18 or higher)-- npm--### Installation & Running--1. **Install dependencies**:- ```bash- npm install- ```--2. **Start development server**:- ```bash- npm run dev- ```- This will:- - Build the SDK from `../agent-server-typescript-client`- - Start the Vite dev server on port 12000- - Open the app at `http://localhost:12000`--3. **Build for production**:- ```bash- npm run build- ```--## Project Structure--```-example/-βββ src/-β βββ App.tsx # Main React component with SDK integration-β βββ App.css # Styling-β βββ main.tsx # React entry point-β βββ index.css # Global styles-βββ package.json # Dependencies and scripts-βββ vite.config.ts # Vite configuration-βββ tsconfig.json # TypeScript configuration-βββ index.html # HTML template-```--## Key Configuration--### package.json-- **Local SDK Dependency**: `"@openhands/agent-server-typescript-client": "file:../agent-server-typescript-client"`-- **Build Script**: `"build:sdk": "cd ../agent-server-typescript-client && npm run build"`-- **Dev Script**: Builds SDK before starting Vite--### vite.config.ts-- Configured for React with TypeScript-- CORS enabled for development-- Host configuration for external access--## SDK Integration Details--The app demonstrates that the TypeScript SDK is properly:-1. **Built as ES Modules** - Compatible with Vite's module system-2. **Type-safe** - Full TypeScript support with proper type definitions-3. **Functional** - All main classes and enums are importable and usable-4. **Up-to-date** - Uses the latest local build of the SDK--## Notes--- The SDK includes some Node.js-specific functionality (fs, path modules) that are externalized for browser compatibility-- This is expected behavior and doesn't affect the core SDK functionality in browser environments-- The app serves as a "Hello World" example to verify SDK integration works correctly\ No newline at end of filediff --git a/vendor/openhands-typescript-client/example/index.html b/vendor/openhands-typescript-client/example/index.htmldeleted file mode 100644index 9cdbef356a..0000000000--- a/vendor/openhands-typescript-client/example/index.html+++ /dev/null@@ -1,13 +0,0 @@-<!doctype html>-<html lang="en">- <head>- <meta charset="UTF-8" />- <link rel="icon" type="image/svg+xml" href="/vite.svg" />- <meta name="viewport" content="width=device-width, initial-scale=1.0" />- <title>OpenHands SDK Example</title>- </head>- <body>- <div id="root"></div>- <script type="module" src="/src/main.tsx"></script>- </body>-</html>\ No newline at end of filediff --git a/vendor/openhands-typescript-client/example/package-lock.json b/vendor/openhands-typescript-client/example/package-lock.jsondeleted file mode 100644index 54120fa066..0000000000--- a/vendor/openhands-typescript-client/example/package-lock.json+++ /dev/null@@ -1,4750 +0,0 @@-{- "name": "openhands-sdk-example",- "version": "0.0.0",- "lockfileVersion": 3,- "requires": true,- "packages": {- "": {- "name": "openhands-sdk-example",- "version": "0.0.0",- "dependencies": {- "@openhands/agent-server-typescript-client": "file:../",- "react": "^18.2.0",- "react-dom": "^18.2.0"- },- "devDependencies": {- "@types/react": "^18.2.66",- "@types/react-dom": "^18.2.22",- "@typescript-eslint/eslint-plugin": "^7.2.0",- "@typescript-eslint/parser": "^7.2.0",- "@vitejs/plugin-react": "^4.2.1",- "autoprefixer": "^10.4.21",- "eslint": "^8.57.0",- "eslint-plugin-react-hooks": "^4.6.0",- "eslint-plugin-react-refresh": "^0.4.6",- "postcss": "^8.5.6",- "tailwindcss": "^3.4.18",- "typescript": "^5.2.2",- "vite": "^5.2.0"- }- },- "..": {- "name": "@openhands/agent-server-typescript-client",- "version": "0.1.0",- "license": "MIT",- "dependencies": {- "uuid": "^9.0.1",- "ws": "^8.14.2"- },- "devDependencies": {- "@types/jest": "^29.0.0",- "@types/node": "^20.0.0",- "@types/uuid": "^9.0.6",- "@types/ws": "^8.5.8",- "@typescript-eslint/eslint-plugin": "^6.21.0",- "@typescript-eslint/parser": "^6.21.0",- "eslint": "^8.0.0",- "jest": "^29.0.0",- "prettier": "^3.0.0",- "ts-jest": "^29.0.0",- "typescript": "^5.0.0"- }- },- "node_modules/@alloc/quick-lru": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/@alloc/quick-lru/-/quick-lru-5.2.0.tgz",- "integrity": "sha512-UrcABB+4bUrFABwbluTIBErXwvbsU/V7TZWfmbgJfbkwiBuziS9gxdODUyuiecfdGQ85jglMW6juS3+z5TsKLw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/@babel/code-frame": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.27.1.tgz",- "integrity": "sha512-cjQ7ZlQ0Mv3b47hABuTevyTuYN4i+loJKGeV9flcCgIK37cCXRh+L1bd3iBHlynerhQ7BhCkn2BPbQUL+rGqFg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-validator-identifier": "^7.27.1",- "js-tokens": "^4.0.0",- "picocolors": "^1.1.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/compat-data": {- "version": "7.28.5",- "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.5.tgz",- "integrity": "sha512-6uFXyCayocRbqhZOB+6XcuZbkMNimwfVGFji8CTZnCzOHVGvDqzvitu1re2AU5LROliz7eQPhB8CpAMvnx9EjA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/core": {- "version": "7.28.5",- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.5.tgz",- "integrity": "sha512-e7jT4DxYvIDLk1ZHmU/m/mB19rex9sv0c2ftBtjSBv+kVM/902eh0fINUzD7UwLLNR+jU585GxUJ8/EBfAM5fw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.27.1",- "@babel/generator": "^7.28.5",- "@babel/helper-compilation-targets": "^7.27.2",- "@babel/helper-module-transforms": "^7.28.3",- "@babel/helpers": "^7.28.4",- "@babel/parser": "^7.28.5",- "@babel/template": "^7.27.2",- "@babel/traverse": "^7.28.5",- "@babel/types": "^7.28.5",- "@jridgewell/remapping": "^2.3.5",- "convert-source-map": "^2.0.0",- "debug": "^4.1.0",- "gensync": "^1.0.0-beta.2",- "json5": "^2.2.3",- "semver": "^6.3.1"- },- "engines": {- "node": ">=6.9.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/babel"- }- },- "node_modules/@babel/core/node_modules/semver": {- "version": "6.3.1",- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",- "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- }- },- "node_modules/@babel/generator": {- "version": "7.28.5",- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.5.tgz",- "integrity": "sha512-3EwLFhZ38J4VyIP6WNtt2kUdW9dokXA9Cr4IVIFHuCpZ3H8/YFOl5JjZHisrn1fATPBmKKqXzDFvh9fUwHz6CQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.28.5",- "@babel/types": "^7.28.5",- "@jridgewell/gen-mapping": "^0.3.12",- "@jridgewell/trace-mapping": "^0.3.28",- "jsesc": "^3.0.2"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-compilation-targets": {- "version": "7.27.2",- "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.27.2.tgz",- "integrity": "sha512-2+1thGUUWWjLTYTHZWK1n8Yga0ijBz1XAhUXcKy81rd5g6yh7hGqMp45v7cadSbEHc9G3OTv45SyneRN3ps4DQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/compat-data": "^7.27.2",- "@babel/helper-validator-option": "^7.27.1",- "browserslist": "^4.24.0",- "lru-cache": "^5.1.1",- "semver": "^6.3.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-compilation-targets/node_modules/semver": {- "version": "6.3.1",- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",- "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- }- },- "node_modules/@babel/helper-globals": {- "version": "7.28.0",- "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",- "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-module-imports": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.27.1.tgz",- "integrity": "sha512-0gSFWUPNXNopqtIPQvlD5WgXYI5GY2kP2cCvoT8kczjbfcfuIljTbcWrulD1CIPIX2gt1wghbDy08yE1p+/r3w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/traverse": "^7.27.1",- "@babel/types": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-module-transforms": {- "version": "7.28.3",- "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.3.tgz",- "integrity": "sha512-gytXUbs8k2sXS9PnQptz5o0QnpLL51SwASIORY6XaBKF88nsOT0Zw9szLqlSGQDP/4TljBAD5y98p2U1fqkdsw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-module-imports": "^7.27.1",- "@babel/helper-validator-identifier": "^7.27.1",- "@babel/traverse": "^7.28.3"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/helper-plugin-utils": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.27.1.tgz",- "integrity": "sha512-1gn1Up5YXka3YYAHGKpbideQ5Yjf1tDa9qYcgysz+cNCXukyLl6DjPXhD3VRwSb8c0J9tA4b2+rHEZtc6R0tlw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-string-parser": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",- "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-validator-identifier": {- "version": "7.28.5",- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",- "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-validator-option": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",- "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helpers": {- "version": "7.28.4",- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.4.tgz",- "integrity": "sha512-HFN59MmQXGHVyYadKLVumYsA9dBFun/ldYxipEjzA4196jpLZd8UjEEBLkbEkvfYreDqJhZxYAWFPtrfhNpj4w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/template": "^7.27.2",- "@babel/types": "^7.28.4"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/parser": {- "version": "7.28.5",- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.5.tgz",- "integrity": "sha512-KKBU1VGYR7ORr3At5HAtUQ+TV3SzRCXmA/8OdDZiLDBIZxVyzXuztPjfLd3BV1PRAQGCMWWSHYhL0F8d5uHBDQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.28.5"- },- "bin": {- "parser": "bin/babel-parser.js"- },- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@babel/plugin-transform-react-jsx-self": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz",- "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-react-jsx-source": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz",- "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/template": {- "version": "7.27.2",- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.27.2.tgz",- "integrity": "sha512-LPDZ85aEJyYSd18/DkjNh4/y1ntkE5KwUHWTiqgRxruuZL2F1yuHligVHLvcHY2vMHXttKFpJn6LwfI7cw7ODw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.27.1",- "@babel/parser": "^7.27.2",- "@babel/types": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/traverse": {- "version": "7.28.5",- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.5.tgz",- "integrity": "sha512-TCCj4t55U90khlYkVV/0TfkJkAkUg3jZFA3Neb7unZT8CPok7iiRfaX0F+WnqWqt7OxhOn0uBKXCw4lbL8W0aQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.27.1",- "@babel/generator": "^7.28.5",- "@babel/helper-globals": "^7.28.0",- "@babel/parser": "^7.28.5",- "@babel/template": "^7.27.2",- "@babel/types": "^7.28.5",- "debug": "^4.3.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/types": {- "version": "7.28.5",- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.5.tgz",- "integrity": "sha512-qQ5m48eI/MFLQ5PxQj4PFaprjyCTLI37ElWMmNs0K8Lk3dVeOdNpB3ks8jc7yM5CDmVC73eMVk/trk3fgmrUpA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-string-parser": "^7.27.1",- "@babel/helper-validator-identifier": "^7.28.5"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@esbuild/aix-ppc64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",- "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "aix"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/android-arm": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",- "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/android-arm64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",- "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/android-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",- "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/darwin-arm64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",- "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/darwin-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",- "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/freebsd-arm64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",- "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/freebsd-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",- "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-arm": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",- "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-arm64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",- "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-ia32": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",- "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-loong64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",- "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-mips64el": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",- "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",- "cpu": [- "mips64el"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-ppc64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",- "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-riscv64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",- "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-s390x": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",- "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",- "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/netbsd-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",- "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "netbsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/openbsd-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",- "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/sunos-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",- "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "sunos"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/win32-arm64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",- "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/win32-ia32": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",- "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/win32-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",- "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@eslint-community/eslint-utils": {- "version": "4.9.0",- "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.0.tgz",- "integrity": "sha512-ayVFHdtZ+hsq1t2Dy24wCmGXGe4q9Gu3smhLYALJrr473ZH27MsnSL+LKUlimp4BWJqMDMLmPpx/Q9R3OAlL4g==",- "dev": true,- "license": "MIT",- "dependencies": {- "eslint-visitor-keys": "^3.4.3"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- },- "peerDependencies": {- "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"- }- },- "node_modules/@eslint-community/regexpp": {- "version": "4.12.2",- "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",- "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^12.0.0 || ^14.0.0 || >=16.0.0"- }- },- "node_modules/@eslint/eslintrc": {- "version": "2.1.4",- "resolved": "https://registry.npmjs.org/@eslint/eslintrc/-/eslintrc-2.1.4.tgz",- "integrity": "sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "ajv": "^6.12.4",- "debug": "^4.3.2",- "espree": "^9.6.0",- "globals": "^13.19.0",- "ignore": "^5.2.0",- "import-fresh": "^3.2.1",- "js-yaml": "^4.1.0",- "minimatch": "^3.1.2",- "strip-json-comments": "^3.1.1"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/@eslint/eslintrc/node_modules/brace-expansion": {- "version": "1.1.12",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",- "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",- "dev": true,- "license": "MIT",- "dependencies": {- "balanced-match": "^1.0.0",- "concat-map": "0.0.1"- }- },- "node_modules/@eslint/eslintrc/node_modules/minimatch": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",- "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",- "dev": true,- "license": "ISC",- "dependencies": {- "brace-expansion": "^1.1.7"- },- "engines": {- "node": "*"- }- },- "node_modules/@eslint/js": {- "version": "8.57.1",- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.57.1.tgz",- "integrity": "sha512-d9zaMRSTIKDLhctzH12MtXvJKSSUhaHcjV+2Z+GK+EEY7XKpP5yR4x+N3TAcHTcu963nIr+TMcCb4DBCYX1z6Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- }- },- "node_modules/@humanwhocodes/config-array": {- "version": "0.13.0",- "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.13.0.tgz",- "integrity": "sha512-DZLEEqFWQFiyK6h5YIeynKx7JlvCYWL0cImfSRXZ9l4Sg2efkFGTuFf6vzXjK1cq6IYkU+Eg/JizXw+TD2vRNw==",- "deprecated": "Use @eslint/config-array instead",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@humanwhocodes/object-schema": "^2.0.3",- "debug": "^4.3.1",- "minimatch": "^3.0.5"- },- "engines": {- "node": ">=10.10.0"- }- },- "node_modules/@humanwhocodes/config-array/node_modules/brace-expansion": {- "version": "1.1.12",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",- "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",- "dev": true,- "license": "MIT",- "dependencies": {- "balanced-match": "^1.0.0",- "concat-map": "0.0.1"- }- },- "node_modules/@humanwhocodes/config-array/node_modules/minimatch": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",- "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",- "dev": true,- "license": "ISC",- "dependencies": {- "brace-expansion": "^1.1.7"- },- "engines": {- "node": "*"- }- },- "node_modules/@humanwhocodes/module-importer": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",- "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=12.22"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/nzakas"- }- },- "node_modules/@humanwhocodes/object-schema": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz",- "integrity": "sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA==",- "deprecated": "Use @eslint/object-schema instead",- "dev": true,- "license": "BSD-3-Clause"- },- "node_modules/@isaacs/cliui": {- "version": "8.0.2",- "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",- "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==",- "dev": true,- "license": "ISC",- "dependencies": {- "string-width": "^5.1.2",- "string-width-cjs": "npm:string-width@^4.2.0",- "strip-ansi": "^7.0.1",- "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",- "wrap-ansi": "^8.1.0",- "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"- },- "engines": {- "node": ">=12"- }- },- "node_modules/@isaacs/cliui/node_modules/ansi-regex": {- "version": "6.2.2",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",- "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-regex?sponsor=1"- }- },- "node_modules/@isaacs/cliui/node_modules/strip-ansi": {- "version": "7.1.2",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz",- "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^6.0.1"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/strip-ansi?sponsor=1"- }- },- "node_modules/@jridgewell/gen-mapping": {- "version": "0.3.13",- "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",- "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/sourcemap-codec": "^1.5.0",- "@jridgewell/trace-mapping": "^0.3.24"- }- },- "node_modules/@jridgewell/remapping": {- "version": "2.3.5",- "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",- "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/gen-mapping": "^0.3.5",- "@jridgewell/trace-mapping": "^0.3.24"- }- },- "node_modules/@jridgewell/resolve-uri": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",- "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@jridgewell/sourcemap-codec": {- "version": "1.5.5",- "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",- "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",- "dev": true,- "license": "MIT"- },- "node_modules/@jridgewell/trace-mapping": {- "version": "0.3.31",- "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",- "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/resolve-uri": "^3.1.0",- "@jridgewell/sourcemap-codec": "^1.4.14"- }- },- "node_modules/@nodelib/fs.scandir": {- "version": "2.1.5",- "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",- "integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@nodelib/fs.stat": "2.0.5",- "run-parallel": "^1.1.9"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/@nodelib/fs.stat": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",- "integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 8"- }- },- "node_modules/@nodelib/fs.walk": {- "version": "1.2.8",- "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",- "integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@nodelib/fs.scandir": "2.1.5",- "fastq": "^1.6.0"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/@openhands/agent-server-typescript-client": {- "resolved": "..",- "link": true- },- "node_modules/@pkgjs/parseargs": {- "version": "0.11.0",- "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",- "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==",- "dev": true,- "license": "MIT",- "optional": true,- "engines": {- "node": ">=14"- }- },- "node_modules/@rolldown/pluginutils": {- "version": "1.0.0-beta.27",- "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",- "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==",- "dev": true,- "license": "MIT"- },- "node_modules/@rollup/rollup-android-arm-eabi": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.52.5.tgz",- "integrity": "sha512-8c1vW4ocv3UOMp9K+gToY5zL2XiiVw3k7f1ksf4yO1FlDFQ1C2u72iACFnSOceJFsWskc2WZNqeRhFRPzv+wtQ==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@rollup/rollup-android-arm64": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.52.5.tgz",- "integrity": "sha512-mQGfsIEFcu21mvqkEKKu2dYmtuSZOBMmAl5CFlPGLY94Vlcm+zWApK7F/eocsNzp8tKmbeBP8yXyAbx0XHsFNA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@rollup/rollup-darwin-arm64": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.52.5.tgz",- "integrity": "sha512-takF3CR71mCAGA+v794QUZ0b6ZSrgJkArC+gUiG6LB6TQty9T0Mqh3m2ImRBOxS2IeYBo4lKWIieSvnEk2OQWA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@rollup/rollup-darwin-x64": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.52.5.tgz",- "integrity": "sha512-W901Pla8Ya95WpxDn//VF9K9u2JbocwV/v75TE0YIHNTbhqUTv9w4VuQ9MaWlNOkkEfFwkdNhXgcLqPSmHy0fA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@rollup/rollup-freebsd-arm64": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.52.5.tgz",- "integrity": "sha512-QofO7i7JycsYOWxe0GFqhLmF6l1TqBswJMvICnRUjqCx8b47MTo46W8AoeQwiokAx3zVryVnxtBMcGcnX12LvA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ]- },- "node_modules/@rollup/rollup-freebsd-x64": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.52.5.tgz",- "integrity": "sha512-jr21b/99ew8ujZubPo9skbrItHEIE50WdV86cdSoRkKtmWa+DDr6fu2c/xyRT0F/WazZpam6kk7IHBerSL7LDQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ]- },- "node_modules/@rollup/rollup-linux-arm-gnueabihf": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.52.5.tgz",- "integrity": "sha512-PsNAbcyv9CcecAUagQefwX8fQn9LQ4nZkpDboBOttmyffnInRy8R8dSg6hxxl2Re5QhHBf6FYIDhIj5v982ATQ==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm-musleabihf": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.52.5.tgz",- "integrity": "sha512-Fw4tysRutyQc/wwkmcyoqFtJhh0u31K+Q6jYjeicsGJJ7bbEq8LwPWV/w0cnzOqR2m694/Af6hpFayLJZkG2VQ==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm64-gnu": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.52.5.tgz",- "integrity": "sha512-a+3wVnAYdQClOTlyapKmyI6BLPAFYs0JM8HRpgYZQO02rMR09ZcV9LbQB+NL6sljzG38869YqThrRnfPMCDtZg==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm64-musl": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.52.5.tgz",- "integrity": "sha512-AvttBOMwO9Pcuuf7m9PkC1PUIKsfaAJ4AYhy944qeTJgQOqJYJ9oVl2nYgY7Rk0mkbsuOpCAYSs6wLYB2Xiw0Q==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-loong64-gnu": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.52.5.tgz",- "integrity": "sha512-DkDk8pmXQV2wVrF6oq5tONK6UHLz/XcEVow4JTTerdeV1uqPeHxwcg7aFsfnSm9L+OO8WJsWotKM2JJPMWrQtA==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-ppc64-gnu": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.52.5.tgz",- "integrity": "sha512-W/b9ZN/U9+hPQVvlGwjzi+Wy4xdoH2I8EjaCkMvzpI7wJUs8sWJ03Rq96jRnHkSrcHTpQe8h5Tg3ZzUPGauvAw==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-riscv64-gnu": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.52.5.tgz",- "integrity": "sha512-sjQLr9BW7R/ZiXnQiWPkErNfLMkkWIoCz7YMn27HldKsADEKa5WYdobaa1hmN6slu9oWQbB6/jFpJ+P2IkVrmw==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-riscv64-musl": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.52.5.tgz",- "integrity": "sha512-hq3jU/kGyjXWTvAh2awn8oHroCbrPm8JqM7RUpKjalIRWWXE01CQOf/tUNWNHjmbMHg/hmNCwc/Pz3k1T/j/Lg==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-s390x-gnu": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.52.5.tgz",- "integrity": "sha512-gn8kHOrku8D4NGHMK1Y7NA7INQTRdVOntt1OCYypZPRt6skGbddska44K8iocdpxHTMMNui5oH4elPH4QOLrFQ==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-x64-gnu": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.52.5.tgz",- "integrity": "sha512-hXGLYpdhiNElzN770+H2nlx+jRog8TyynpTVzdlc6bndktjKWyZyiCsuDAlpd+j+W+WNqfcyAWz9HxxIGfZm1Q==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-x64-musl": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.52.5.tgz",- "integrity": "sha512-arCGIcuNKjBoKAXD+y7XomR9gY6Mw7HnFBv5Rw7wQRvwYLR7gBAgV7Mb2QTyjXfTveBNFAtPt46/36vV9STLNg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-openharmony-arm64": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.52.5.tgz",- "integrity": "sha512-QoFqB6+/9Rly/RiPjaomPLmR/13cgkIGfA40LHly9zcH1S0bN2HVFYk3a1eAyHQyjs3ZJYlXvIGtcCs5tko9Cw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openharmony"- ]- },- "node_modules/@rollup/rollup-win32-arm64-msvc": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.52.5.tgz",- "integrity": "sha512-w0cDWVR6MlTstla1cIfOGyl8+qb93FlAVutcor14Gf5Md5ap5ySfQ7R9S/NjNaMLSFdUnKGEasmVnu3lCMqB7w==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-ia32-msvc": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.52.5.tgz",- "integrity": "sha512-Aufdpzp7DpOTULJCuvzqcItSGDH73pF3ko/f+ckJhxQyHtp67rHw3HMNxoIdDMUITJESNE6a8uh4Lo4SLouOUg==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-x64-gnu": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.52.5.tgz",- "integrity": "sha512-UGBUGPFp1vkj6p8wCRraqNhqwX/4kNQPS57BCFc8wYh0g94iVIW33wJtQAx3G7vrjjNtRaxiMUylM0ktp/TRSQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-x64-msvc": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.52.5.tgz",- "integrity": "sha512-TAcgQh2sSkykPRWLrdyy2AiceMckNf5loITqXxFI5VuQjS5tSuw3WlwdN8qv8vzjLAUTvYaH/mVjSFpbkFbpTg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@types/babel__core": {- "version": "7.20.5",- "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",- "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.20.7",- "@babel/types": "^7.20.7",- "@types/babel__generator": "*",- "@types/babel__template": "*",- "@types/babel__traverse": "*"- }- },- "node_modules/@types/babel__generator": {- "version": "7.27.0",- "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",- "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.0.0"- }- },- "node_modules/@types/babel__template": {- "version": "7.4.4",- "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",- "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.1.0",- "@babel/types": "^7.0.0"- }- },- "node_modules/@types/babel__traverse": {- "version": "7.28.0",- "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",- "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.28.2"- }- },- "node_modules/@types/estree": {- "version": "1.0.8",- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",- "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/prop-types": {- "version": "15.7.15",- "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz",- "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/react": {- "version": "18.3.26",- "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.26.tgz",- "integrity": "sha512-RFA/bURkcKzx/X9oumPG9Vp3D3JUgus/d0b67KB0t5S/raciymilkOa66olh78MUI92QLbEJevO7rvqU/kjwKA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/prop-types": "*",- "csstype": "^3.0.2"- }- },- "node_modules/@types/react-dom": {- "version": "18.3.7",- "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz",- "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "@types/react": "^18.0.0"- }- },- "node_modules/@typescript-eslint/eslint-plugin": {- "version": "7.18.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.18.0.tgz",- "integrity": "sha512-94EQTWZ40mzBc42ATNIBimBEDltSJ9RQHCC8vc/PDbxi4k8dVwUAv4o98dk50M1zB+JGFxp43FP7f8+FP8R6Sw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@eslint-community/regexpp": "^4.10.0",- "@typescript-eslint/scope-manager": "7.18.0",- "@typescript-eslint/type-utils": "7.18.0",- "@typescript-eslint/utils": "7.18.0",- "@typescript-eslint/visitor-keys": "7.18.0",- "graphemer": "^1.4.0",- "ignore": "^5.3.1",- "natural-compare": "^1.4.0",- "ts-api-utils": "^1.3.0"- },- "engines": {- "node": "^18.18.0 || >=20.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "@typescript-eslint/parser": "^7.0.0",- "eslint": "^8.56.0"- },- "peerDependenciesMeta": {- "typescript": {- "optional": true- }- }- },- "node_modules/@typescript-eslint/parser": {- "version": "7.18.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-7.18.0.tgz",- "integrity": "sha512-4Z+L8I2OqhZV8qA132M4wNL30ypZGYOQVBfMgxDH/K5UX0PNqTu1c6za9ST5r9+tavvHiTWmBnKzpCJ/GlVFtg==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "@typescript-eslint/scope-manager": "7.18.0",- "@typescript-eslint/types": "7.18.0",- "@typescript-eslint/typescript-estree": "7.18.0",- "@typescript-eslint/visitor-keys": "7.18.0",- "debug": "^4.3.4"- },- "engines": {- "node": "^18.18.0 || >=20.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^8.56.0"- },- "peerDependenciesMeta": {- "typescript": {- "optional": true- }- }- },- "node_modules/@typescript-eslint/scope-manager": {- "version": "7.18.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-7.18.0.tgz",- "integrity": "sha512-jjhdIE/FPF2B7Z1uzc6i3oWKbGcHb87Qw7AWj6jmEqNOfDFbJWtjt/XfwCpvNkpGWlcJaog5vTR+VV8+w9JflA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/types": "7.18.0",- "@typescript-eslint/visitor-keys": "7.18.0"- },- "engines": {- "node": "^18.18.0 || >=20.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/@typescript-eslint/type-utils": {- "version": "7.18.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-7.18.0.tgz",- "integrity": "sha512-XL0FJXuCLaDuX2sYqZUUSOJ2sG5/i1AAze+axqmLnSkNEVMVYLF+cbwlB2w8D1tinFuSikHmFta+P+HOofrLeA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/typescript-estree": "7.18.0",- "@typescript-eslint/utils": "7.18.0",- "debug": "^4.3.4",- "ts-api-utils": "^1.3.0"- },- "engines": {- "node": "^18.18.0 || >=20.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^8.56.0"- },- "peerDependenciesMeta": {- "typescript": {- "optional": true- }- }- },- "node_modules/@typescript-eslint/types": {- "version": "7.18.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-7.18.0.tgz",- "integrity": "sha512-iZqi+Ds1y4EDYUtlOOC+aUmxnE9xS/yCigkjA7XpTKV6nCBd3Hp/PRGGmdwnfkV2ThMyYldP1wRpm/id99spTQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^18.18.0 || >=20.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/@typescript-eslint/typescript-estree": {- "version": "7.18.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-7.18.0.tgz",- "integrity": "sha512-aP1v/BSPnnyhMHts8cf1qQ6Q1IFwwRvAQGRvBFkWlo3/lH29OXA3Pts+c10nxRxIBrDnoMqzhgdwVe5f2D6OzA==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "@typescript-eslint/types": "7.18.0",- "@typescript-eslint/visitor-keys": "7.18.0",- "debug": "^4.3.4",- "globby": "^11.1.0",- "is-glob": "^4.0.3",- "minimatch": "^9.0.4",- "semver": "^7.6.0",- "ts-api-utils": "^1.3.0"- },- "engines": {- "node": "^18.18.0 || >=20.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependenciesMeta": {- "typescript": {- "optional": true- }- }- },- "node_modules/@typescript-eslint/utils": {- "version": "7.18.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-7.18.0.tgz",- "integrity": "sha512-kK0/rNa2j74XuHVcoCZxdFBMF+aq/vH83CXAOHieC+2Gis4mF8jJXT5eAfyD3K0sAxtPuwxaIOIOvhwzVDt/kw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@eslint-community/eslint-utils": "^4.4.0",- "@typescript-eslint/scope-manager": "7.18.0",- "@typescript-eslint/types": "7.18.0",- "@typescript-eslint/typescript-estree": "7.18.0"- },- "engines": {- "node": "^18.18.0 || >=20.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^8.56.0"- }- },- "node_modules/@typescript-eslint/visitor-keys": {- "version": "7.18.0",- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-7.18.0.tgz",- "integrity": "sha512-cDF0/Gf81QpY3xYyJKDV14Zwdmid5+uuENhjH2EqFaF0ni+yAyq/LzMaIJdhNJXZI7uLzwIlA+V7oWoyn6Curg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/types": "7.18.0",- "eslint-visitor-keys": "^3.4.3"- },- "engines": {- "node": "^18.18.0 || >=20.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/@ungap/structured-clone": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz",- "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==",- "dev": true,- "license": "ISC"- },- "node_modules/@vitejs/plugin-react": {- "version": "4.7.0",- "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",- "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/core": "^7.28.0",- "@babel/plugin-transform-react-jsx-self": "^7.27.1",- "@babel/plugin-transform-react-jsx-source": "^7.27.1",- "@rolldown/pluginutils": "1.0.0-beta.27",- "@types/babel__core": "^7.20.5",- "react-refresh": "^0.17.0"- },- "engines": {- "node": "^14.18.0 || >=16.0.0"- },- "peerDependencies": {- "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"- }- },- "node_modules/acorn": {- "version": "8.15.0",- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.15.0.tgz",- "integrity": "sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==",- "dev": true,- "license": "MIT",- "bin": {- "acorn": "bin/acorn"- },- "engines": {- "node": ">=0.4.0"- }- },- "node_modules/acorn-jsx": {- "version": "5.3.2",- "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",- "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"- }- },- "node_modules/ajv": {- "version": "6.12.6",- "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz",- "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==",- "dev": true,- "license": "MIT",- "dependencies": {- "fast-deep-equal": "^3.1.1",- "fast-json-stable-stringify": "^2.0.0",- "json-schema-traverse": "^0.4.1",- "uri-js": "^4.2.2"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/epoberezkin"- }- },- "node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dev": true,- "license": "MIT",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/any-promise": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz",- "integrity": "sha512-7UvmKalWRt1wgjL1RrGxoSJW/0QZFIegpeGvZG9kjp8vrRu55XTHbwnqq2GpXm9uLbcuhxm3IqX9OB4MZR1b2A==",- "dev": true,- "license": "MIT"- },- "node_modules/anymatch": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",- "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",- "dev": true,- "license": "ISC",- "dependencies": {- "normalize-path": "^3.0.0",- "picomatch": "^2.0.4"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/arg": {- "version": "5.0.2",- "resolved": "https://registry.npmjs.org/arg/-/arg-5.0.2.tgz",- "integrity": "sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==",- "dev": true,- "license": "MIT"- },- "node_modules/argparse": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",- "integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",- "dev": true,- "license": "Python-2.0"- },- "node_modules/array-union": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",- "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/autoprefixer": {- "version": "10.4.21",- "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.21.tgz",- "integrity": "sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/autoprefixer"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "browserslist": "^4.24.4",- "caniuse-lite": "^1.0.30001702",- "fraction.js": "^4.3.7",- "normalize-range": "^0.1.2",- "picocolors": "^1.1.1",- "postcss-value-parser": "^4.2.0"- },- "bin": {- "autoprefixer": "bin/autoprefixer"- },- "engines": {- "node": "^10 || ^12 || >=14"- },- "peerDependencies": {- "postcss": "^8.1.0"- }- },- "node_modules/balanced-match": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",- "dev": true,- "license": "MIT"- },- "node_modules/baseline-browser-mapping": {- "version": "2.8.21",- "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.8.21.tgz",- "integrity": "sha512-JU0h5APyQNsHOlAM7HnQnPToSDQoEBZqzu/YBlqDnEeymPnZDREeXJA3KBMQee+dKteAxZ2AtvQEvVYdZf241Q==",- "dev": true,- "license": "Apache-2.0",- "bin": {- "baseline-browser-mapping": "dist/cli.js"- }- },- "node_modules/binary-extensions": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",- "integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/brace-expansion": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.2.tgz",- "integrity": "sha512-Jt0vHyM+jmUBqojB7E1NIYadt0vI0Qxjxd2TErW94wDz+E2LAm5vKMXXwg6ZZBTHPuUlDgQHKXvjGBdfcF1ZDQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "balanced-match": "^1.0.0"- }- },- "node_modules/braces": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",- "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",- "dev": true,- "license": "MIT",- "dependencies": {- "fill-range": "^7.1.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/browserslist": {- "version": "4.27.0",- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.27.0.tgz",- "integrity": "sha512-AXVQwdhot1eqLihwasPElhX2tAZiBjWdJ9i/Zcj2S6QYIjkx62OKSfnobkriB81C3l4w0rVy3Nt4jaTBltYEpw==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/browserslist"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/browserslist"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "baseline-browser-mapping": "^2.8.19",- "caniuse-lite": "^1.0.30001751",- "electron-to-chromium": "^1.5.238",- "node-releases": "^2.0.26",- "update-browserslist-db": "^1.1.4"- },- "bin": {- "browserslist": "cli.js"- },- "engines": {- "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"- }- },- "node_modules/callsites": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",- "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/camelcase-css": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/camelcase-css/-/camelcase-css-2.0.1.tgz",- "integrity": "sha512-QOSvevhslijgYwRx6Rv7zKdMF8lbRmx+uQGx2+vDc+KI/eBnsy9kit5aj23AgGu3pa4t9AgwbnXWqS+iOY+2aA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 6"- }- },- "node_modules/caniuse-lite": {- "version": "1.0.30001751",- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001751.tgz",- "integrity": "sha512-A0QJhug0Ly64Ii3eIqHu5X51ebln3k4yTUkY1j8drqpWHVreg/VLijN48cZ1bYPiqOQuqpkIKnzr/Ul8V+p6Cw==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/browserslist"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/caniuse-lite"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "CC-BY-4.0"- },- "node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/chokidar": {- "version": "3.6.0",- "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",- "integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",- "dev": true,- "license": "MIT",- "dependencies": {- "anymatch": "~3.1.2",- "braces": "~3.0.2",- "glob-parent": "~5.1.2",- "is-binary-path": "~2.1.0",- "is-glob": "~4.0.1",- "normalize-path": "~3.0.0",- "readdirp": "~3.6.0"- },- "engines": {- "node": ">= 8.10.0"- },- "funding": {- "url": "https://paulmillr.com/funding/"- },- "optionalDependencies": {- "fsevents": "~2.3.2"- }- },- "node_modules/chokidar/node_modules/glob-parent": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",- "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",- "dev": true,- "license": "ISC",- "dependencies": {- "is-glob": "^4.0.1"- },- "engines": {- "node": ">= 6"- }- },- "node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",- "dev": true,- "license": "MIT"- },- "node_modules/commander": {- "version": "4.1.1",- "resolved": "https://registry.npmjs.org/commander/-/commander-4.1.1.tgz",- "integrity": "sha512-NOKm8xhkzAjzFx8B2v5OAHT+u5pRQc2UCa2Vq9jYL/31o2wi9mxBA7LIFs3sV5VSC49z6pEhfbMULvShKj26WA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 6"- }- },- "node_modules/concat-map": {- "version": "0.0.1",- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",- "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",- "dev": true,- "license": "MIT"- },- "node_modules/convert-source-map": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",- "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",- "dev": true,- "license": "MIT"- },- "node_modules/cross-spawn": {- "version": "7.0.6",- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",- "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",- "dev": true,- "license": "MIT",- "dependencies": {- "path-key": "^3.1.0",- "shebang-command": "^2.0.0",- "which": "^2.0.1"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/cssesc": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/cssesc/-/cssesc-3.0.0.tgz",- "integrity": "sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg==",- "dev": true,- "license": "MIT",- "bin": {- "cssesc": "bin/cssesc"- },- "engines": {- "node": ">=4"- }- },- "node_modules/csstype": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz",- "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==",- "dev": true,- "license": "MIT"- },- "node_modules/debug": {- "version": "4.4.3",- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",- "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",- "dev": true,- "license": "MIT",- "dependencies": {- "ms": "^2.1.3"- },- "engines": {- "node": ">=6.0"- },- "peerDependenciesMeta": {- "supports-color": {- "optional": true- }- }- },- "node_modules/deep-is": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",- "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",- "dev": true,- "license": "MIT"- },- "node_modules/detect-libc": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz",- "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==",- "dev": true,- "license": "Apache-2.0",- "optional": true,- "peer": true,- "engines": {- "node": ">=8"- }- },- "node_modules/didyoumean": {- "version": "1.2.2",- "resolved": "https://registry.npmjs.org/didyoumean/-/didyoumean-1.2.2.tgz",- "integrity": "sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw==",- "dev": true,- "license": "Apache-2.0"- },- "node_modules/dir-glob": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",- "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",- "dev": true,- "license": "MIT",- "dependencies": {- "path-type": "^4.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/dlv": {- "version": "1.1.3",- "resolved": "https://registry.npmjs.org/dlv/-/dlv-1.1.3.tgz",- "integrity": "sha512-+HlytyjlPKnIG8XuRG8WvmBP8xs8P71y+SKKS6ZXWoEgLuePxtDoUEiH7WkdePWrQ5JBpE6aoVqfZfJUQkjXwA==",- "dev": true,- "license": "MIT"- },- "node_modules/doctrine": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/doctrine/-/doctrine-3.0.0.tgz",- "integrity": "sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "esutils": "^2.0.2"- },- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/eastasianwidth": {- "version": "0.2.0",- "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",- "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==",- "dev": true,- "license": "MIT"- },- "node_modules/electron-to-chromium": {- "version": "1.5.243",- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.243.tgz",- "integrity": "sha512-ZCphxFW3Q1TVhcgS9blfut1PX8lusVi2SvXQgmEEnK4TCmE1JhH2JkjJN+DNt0pJJwfBri5AROBnz2b/C+YU9g==",- "dev": true,- "license": "ISC"- },- "node_modules/emoji-regex": {- "version": "9.2.2",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",- "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",- "dev": true,- "license": "MIT"- },- "node_modules/esbuild": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",- "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "bin": {- "esbuild": "bin/esbuild"- },- "engines": {- "node": ">=12"- },- "optionalDependencies": {- "@esbuild/aix-ppc64": "0.21.5",- "@esbuild/android-arm": "0.21.5",- "@esbuild/android-arm64": "0.21.5",- "@esbuild/android-x64": "0.21.5",- "@esbuild/darwin-arm64": "0.21.5",- "@esbuild/darwin-x64": "0.21.5",- "@esbuild/freebsd-arm64": "0.21.5",- "@esbuild/freebsd-x64": "0.21.5",- "@esbuild/linux-arm": "0.21.5",- "@esbuild/linux-arm64": "0.21.5",- "@esbuild/linux-ia32": "0.21.5",- "@esbuild/linux-loong64": "0.21.5",- "@esbuild/linux-mips64el": "0.21.5",- "@esbuild/linux-ppc64": "0.21.5",- "@esbuild/linux-riscv64": "0.21.5",- "@esbuild/linux-s390x": "0.21.5",- "@esbuild/linux-x64": "0.21.5",- "@esbuild/netbsd-x64": "0.21.5",- "@esbuild/openbsd-x64": "0.21.5",- "@esbuild/sunos-x64": "0.21.5",- "@esbuild/win32-arm64": "0.21.5",- "@esbuild/win32-ia32": "0.21.5",- "@esbuild/win32-x64": "0.21.5"- }- },- "node_modules/escalade": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",- "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/escape-string-regexp": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",- "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/eslint": {- "version": "8.57.1",- "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.57.1.tgz",- "integrity": "sha512-ypowyDxpVSYpkXr9WPv2PAZCtNip1Mv5KTW0SCurXv/9iOpcrH9PaqUElksqEB6pChqHGDRCFTyrZlGhnLNGiA==",- "deprecated": "This version is no longer supported. Please see https://eslint.org/version-support for other options.",- "dev": true,- "license": "MIT",- "dependencies": {- "@eslint-community/eslint-utils": "^4.2.0",- "@eslint-community/regexpp": "^4.6.1",- "@eslint/eslintrc": "^2.1.4",- "@eslint/js": "8.57.1",- "@humanwhocodes/config-array": "^0.13.0",- "@humanwhocodes/module-importer": "^1.0.1",- "@nodelib/fs.walk": "^1.2.8",- "@ungap/structured-clone": "^1.2.0",- "ajv": "^6.12.4",- "chalk": "^4.0.0",- "cross-spawn": "^7.0.2",- "debug": "^4.3.2",- "doctrine": "^3.0.0",- "escape-string-regexp": "^4.0.0",- "eslint-scope": "^7.2.2",- "eslint-visitor-keys": "^3.4.3",- "espree": "^9.6.1",- "esquery": "^1.4.2",- "esutils": "^2.0.2",- "fast-deep-equal": "^3.1.3",- "file-entry-cache": "^6.0.1",- "find-up": "^5.0.0",- "glob-parent": "^6.0.2",- "globals": "^13.19.0",- "graphemer": "^1.4.0",- "ignore": "^5.2.0",- "imurmurhash": "^0.1.4",- "is-glob": "^4.0.0",- "is-path-inside": "^3.0.3",- "js-yaml": "^4.1.0",- "json-stable-stringify-without-jsonify": "^1.0.1",- "levn": "^0.4.1",- "lodash.merge": "^4.6.2",- "minimatch": "^3.1.2",- "natural-compare": "^1.4.0",- "optionator": "^0.9.3",- "strip-ansi": "^6.0.1",- "text-table": "^0.2.0"- },- "bin": {- "eslint": "bin/eslint.js"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/eslint-plugin-react-hooks": {- "version": "4.6.2",- "resolved": "https://registry.npmjs.org/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.6.2.tgz",- "integrity": "sha512-QzliNJq4GinDBcD8gPB5v0wh6g8q3SUi6EFF0x8N/BL9PoVs0atuGc47ozMRyOWAKdwaZ5OnbOEa3WR+dSGKuQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- },- "peerDependencies": {- "eslint": "^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0 || ^7.0.0 || ^8.0.0-0"- }- },- "node_modules/eslint-plugin-react-refresh": {- "version": "0.4.24",- "resolved": "https://registry.npmjs.org/eslint-plugin-react-refresh/-/eslint-plugin-react-refresh-0.4.24.tgz",- "integrity": "sha512-nLHIW7TEq3aLrEYWpVaJ1dRgFR+wLDPN8e8FpYAql/bMV2oBEfC37K0gLEGgv9fy66juNShSMV8OkTqzltcG/w==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "eslint": ">=8.40"- }- },- "node_modules/eslint-scope": {- "version": "7.2.2",- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-7.2.2.tgz",- "integrity": "sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "esrecurse": "^4.3.0",- "estraverse": "^5.2.0"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/eslint-visitor-keys": {- "version": "3.4.3",- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",- "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/eslint/node_modules/brace-expansion": {- "version": "1.1.12",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",- "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",- "dev": true,- "license": "MIT",- "dependencies": {- "balanced-match": "^1.0.0",- "concat-map": "0.0.1"- }- },- "node_modules/eslint/node_modules/minimatch": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",- "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",- "dev": true,- "license": "ISC",- "dependencies": {- "brace-expansion": "^1.1.7"- },- "engines": {- "node": "*"- }- },- "node_modules/espree": {- "version": "9.6.1",- "resolved": "https://registry.npmjs.org/espree/-/espree-9.6.1.tgz",- "integrity": "sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "acorn": "^8.9.0",- "acorn-jsx": "^5.3.2",- "eslint-visitor-keys": "^3.4.1"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/esquery": {- "version": "1.6.0",- "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.6.0.tgz",- "integrity": "sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==",- "dev": true,- "license": "BSD-3-Clause",- "dependencies": {- "estraverse": "^5.1.0"- },- "engines": {- "node": ">=0.10"- }- },- "node_modules/esrecurse": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",- "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "estraverse": "^5.2.0"- },- "engines": {- "node": ">=4.0"- }- },- "node_modules/estraverse": {- "version": "5.3.0",- "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",- "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",- "dev": true,- "license": "BSD-2-Clause",- "engines": {- "node": ">=4.0"- }- },- "node_modules/esutils": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",- "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",- "dev": true,- "license": "BSD-2-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/fast-deep-equal": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",- "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",- "dev": true,- "license": "MIT"- },- "node_modules/fast-glob": {- "version": "3.3.3",- "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.3.tgz",- "integrity": "sha512-7MptL8U0cqcFdzIzwOTHoilX9x5BrNqye7Z/LuC7kCMRio1EMSyqRK3BEAUD7sXRq4iT4AzTVuZdhgQ2TCvYLg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@nodelib/fs.stat": "^2.0.2",- "@nodelib/fs.walk": "^1.2.3",- "glob-parent": "^5.1.2",- "merge2": "^1.3.0",- "micromatch": "^4.0.8"- },- "engines": {- "node": ">=8.6.0"- }- },- "node_modules/fast-glob/node_modules/glob-parent": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",- "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",- "dev": true,- "license": "ISC",- "dependencies": {- "is-glob": "^4.0.1"- },- "engines": {- "node": ">= 6"- }- },- "node_modules/fast-json-stable-stringify": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",- "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",- "dev": true,- "license": "MIT"- },- "node_modules/fast-levenshtein": {- "version": "2.0.6",- "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",- "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",- "dev": true,- "license": "MIT"- },- "node_modules/fastq": {- "version": "1.19.1",- "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.19.1.tgz",- "integrity": "sha512-GwLTyxkCXjXbxqIhTsMI2Nui8huMPtnxg7krajPJAjnEG/iiOS7i+zCtWGZR9G0NBKbXKh6X9m9UIsYX/N6vvQ==",- "dev": true,- "license": "ISC",- "dependencies": {- "reusify": "^1.0.4"- }- },- "node_modules/file-entry-cache": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-6.0.1.tgz",- "integrity": "sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==",- "dev": true,- "license": "MIT",- "dependencies": {- "flat-cache": "^3.0.4"- },- "engines": {- "node": "^10.12.0 || >=12.0.0"- }- },- "node_modules/fill-range": {- "version": "7.1.1",- "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",- "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",- "dev": true,- "license": "MIT",- "dependencies": {- "to-regex-range": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/find-up": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",- "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",- "dev": true,- "license": "MIT",- "dependencies": {- "locate-path": "^6.0.0",- "path-exists": "^4.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/flat-cache": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-3.2.0.tgz",- "integrity": "sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==",- "dev": true,- "license": "MIT",- "dependencies": {- "flatted": "^3.2.9",- "keyv": "^4.5.3",- "rimraf": "^3.0.2"- },- "engines": {- "node": "^10.12.0 || >=12.0.0"- }- },- "node_modules/flatted": {- "version": "3.3.3",- "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.3.3.tgz",- "integrity": "sha512-GX+ysw4PBCz0PzosHDepZGANEuFCMLrnRTiEy9McGjmkCQYwRq4A/X786G/fjM/+OjsWSU1ZrY5qyARZmO/uwg==",- "dev": true,- "license": "ISC"- },- "node_modules/foreground-child": {- "version": "3.3.1",- "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",- "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==",- "dev": true,- "license": "ISC",- "dependencies": {- "cross-spawn": "^7.0.6",- "signal-exit": "^4.0.1"- },- "engines": {- "node": ">=14"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/fraction.js": {- "version": "4.3.7",- "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz",- "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==",- "dev": true,- "license": "MIT",- "engines": {- "node": "*"- },- "funding": {- "type": "patreon",- "url": "https://github.com/sponsors/rawify"- }- },- "node_modules/fs.realpath": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",- "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",- "dev": true,- "license": "ISC"- },- "node_modules/fsevents": {- "version": "2.3.3",- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",- "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"- }- },- "node_modules/function-bind": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",- "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",- "dev": true,- "license": "MIT",- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/gensync": {- "version": "1.0.0-beta.2",- "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",- "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/glob": {- "version": "7.2.3",- "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",- "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",- "deprecated": "Glob versions prior to v9 are no longer supported",- "dev": true,- "license": "ISC",- "dependencies": {- "fs.realpath": "^1.0.0",- "inflight": "^1.0.4",- "inherits": "2",- "minimatch": "^3.1.1",- "once": "^1.3.0",- "path-is-absolute": "^1.0.0"- },- "engines": {- "node": "*"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/glob-parent": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",- "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",- "dev": true,- "license": "ISC",- "dependencies": {- "is-glob": "^4.0.3"- },- "engines": {- "node": ">=10.13.0"- }- },- "node_modules/glob/node_modules/brace-expansion": {- "version": "1.1.12",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.12.tgz",- "integrity": "sha512-9T9UjW3r0UW5c1Q7GTwllptXwhvYmEzFhzMfZ9H7FQWt+uZePjZPjBP/W1ZEyZ1twGWom5/56TF4lPcqjnDHcg==",- "dev": true,- "license": "MIT",- "dependencies": {- "balanced-match": "^1.0.0",- "concat-map": "0.0.1"- }- },- "node_modules/glob/node_modules/minimatch": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz",- "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==",- "dev": true,- "license": "ISC",- "dependencies": {- "brace-expansion": "^1.1.7"- },- "engines": {- "node": "*"- }- },- "node_modules/globals": {- "version": "13.24.0",- "resolved": "https://registry.npmjs.org/globals/-/globals-13.24.0.tgz",- "integrity": "sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "type-fest": "^0.20.2"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/globby": {- "version": "11.1.0",- "resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",- "integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",- "dev": true,- "license": "MIT",- "dependencies": {- "array-union": "^2.1.0",- "dir-glob": "^3.0.1",- "fast-glob": "^3.2.9",- "ignore": "^5.2.0",- "merge2": "^1.4.1",- "slash": "^3.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/graphemer": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",- "integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",- "dev": true,- "license": "MIT"- },- "node_modules/has-flag": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/hasown": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",- "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "function-bind": "^1.1.2"- },- "engines": {- "node": ">= 0.4"- }- },- "node_modules/ignore": {- "version": "5.3.2",- "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",- "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 4"- }- },- "node_modules/import-fresh": {- "version": "3.3.1",- "resolved": "https://registry.npmjs.org/import-fresh/-/import-fresh-3.3.1.tgz",- "integrity": "sha512-TR3KfrTZTYLPB6jUjfx6MF9WcWrHL9su5TObK4ZkYgBdWKPOFoSoQIdEuTuR82pmtxH2spWG9h6etwfr1pLBqQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "parent-module": "^1.0.0",- "resolve-from": "^4.0.0"- },- "engines": {- "node": ">=6"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/imurmurhash": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",- "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.8.19"- }- },- "node_modules/inflight": {- "version": "1.0.6",- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",- "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",- "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",- "dev": true,- "license": "ISC",- "dependencies": {- "once": "^1.3.0",- "wrappy": "1"- }- },- "node_modules/inherits": {- "version": "2.0.4",- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",- "dev": true,- "license": "ISC"- },- "node_modules/is-binary-path": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",- "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",- "dev": true,- "license": "MIT",- "dependencies": {- "binary-extensions": "^2.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/is-core-module": {- "version": "2.16.1",- "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",- "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",- "dev": true,- "license": "MIT",- "dependencies": {- "hasown": "^2.0.2"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/is-extglob": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",- "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/is-glob": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",- "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-extglob": "^2.1.1"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/is-number": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",- "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.12.0"- }- },- "node_modules/is-path-inside": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz",- "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/isexe": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",- "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",- "dev": true,- "license": "ISC"- },- "node_modules/jackspeak": {- "version": "3.4.3",- "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",- "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==",- "dev": true,- "license": "BlueOak-1.0.0",- "dependencies": {- "@isaacs/cliui": "^8.0.2"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- },- "optionalDependencies": {- "@pkgjs/parseargs": "^0.11.0"- }- },- "node_modules/jiti": {- "version": "1.21.7",- "resolved": "https://registry.npmjs.org/jiti/-/jiti-1.21.7.tgz",- "integrity": "sha512-/imKNG4EbWNrVjoNC/1H5/9GFy+tqjGBHCaSsN+P2RnPqjsLmv6UD3Ej+Kj8nBWaRAwyk7kK5ZUc+OEatnTR3A==",- "dev": true,- "license": "MIT",- "bin": {- "jiti": "bin/jiti.js"- }- },- "node_modules/js-tokens": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",- "license": "MIT"- },- "node_modules/js-yaml": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz",- "integrity": "sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==",- "dev": true,- "license": "MIT",- "dependencies": {- "argparse": "^2.0.1"- },- "bin": {- "js-yaml": "bin/js-yaml.js"- }- },- "node_modules/jsesc": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",- "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",- "dev": true,- "license": "MIT",- "bin": {- "jsesc": "bin/jsesc"- },- "engines": {- "node": ">=6"- }- },- "node_modules/json-buffer": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",- "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",- "dev": true,- "license": "MIT"- },- "node_modules/json-schema-traverse": {- "version": "0.4.1",- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",- "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",- "dev": true,- "license": "MIT"- },- "node_modules/json-stable-stringify-without-jsonify": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",- "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",- "dev": true,- "license": "MIT"- },- "node_modules/json5": {- "version": "2.2.3",- "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",- "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",- "dev": true,- "license": "MIT",- "bin": {- "json5": "lib/cli.js"- },- "engines": {- "node": ">=6"- }- },- "node_modules/keyv": {- "version": "4.5.4",- "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",- "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",- "dev": true,- "license": "MIT",- "dependencies": {- "json-buffer": "3.0.1"- }- },- "node_modules/levn": {- "version": "0.4.1",- "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",- "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "prelude-ls": "^1.2.1",- "type-check": "~0.4.0"- },- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/lightningcss": {- "version": "1.30.2",- "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.30.2.tgz",- "integrity": "sha512-utfs7Pr5uJyyvDETitgsaqSyjCb2qNRAtuqUeWIAKztsOYdcACf2KtARYXg2pSvhkt+9NfoaNY7fxjl6nuMjIQ==",- "dev": true,- "license": "MPL-2.0",- "optional": true,- "peer": true,- "dependencies": {- "detect-libc": "^2.0.3"- },- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- },- "optionalDependencies": {- "lightningcss-android-arm64": "1.30.2",- "lightningcss-darwin-arm64": "1.30.2",- "lightningcss-darwin-x64": "1.30.2",- "lightningcss-freebsd-x64": "1.30.2",- "lightningcss-linux-arm-gnueabihf": "1.30.2",- "lightningcss-linux-arm64-gnu": "1.30.2",- "lightningcss-linux-arm64-musl": "1.30.2",- "lightningcss-linux-x64-gnu": "1.30.2",- "lightningcss-linux-x64-musl": "1.30.2",- "lightningcss-win32-arm64-msvc": "1.30.2",- "lightningcss-win32-x64-msvc": "1.30.2"- }- },- "node_modules/lightningcss-android-arm64": {- "version": "1.30.2",- "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.30.2.tgz",- "integrity": "sha512-BH9sEdOCahSgmkVhBLeU7Hc9DWeZ1Eb6wNS6Da8igvUwAe0sqROHddIlvU06q3WyXVEOYDZ6ykBZQnjTbmo4+A==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "android"- ],- "peer": true,- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-darwin-arm64": {- "version": "1.30.2",- "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.30.2.tgz",- "integrity": "sha512-ylTcDJBN3Hp21TdhRT5zBOIi73P6/W0qwvlFEk22fkdXchtNTOU4Qc37SkzV+EKYxLouZ6M4LG9NfZ1qkhhBWA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "darwin"- ],- "peer": true,- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-darwin-x64": {- "version": "1.30.2",- "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.30.2.tgz",- "integrity": "sha512-oBZgKchomuDYxr7ilwLcyms6BCyLn0z8J0+ZZmfpjwg9fRVZIR5/GMXd7r9RH94iDhld3UmSjBM6nXWM2TfZTQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "darwin"- ],- "peer": true,- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-freebsd-x64": {- "version": "1.30.2",- "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.30.2.tgz",- "integrity": "sha512-c2bH6xTrf4BDpK8MoGG4Bd6zAMZDAXS569UxCAGcA7IKbHNMlhGQ89eRmvpIUGfKWNVdbhSbkQaWhEoMGmGslA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "freebsd"- ],- "peer": true,- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-arm-gnueabihf": {- "version": "1.30.2",- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.30.2.tgz",- "integrity": "sha512-eVdpxh4wYcm0PofJIZVuYuLiqBIakQ9uFZmipf6LF/HRj5Bgm0eb3qL/mr1smyXIS1twwOxNWndd8z0E374hiA==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "peer": true,- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-arm64-gnu": {- "version": "1.30.2",- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.30.2.tgz",- "integrity": "sha512-UK65WJAbwIJbiBFXpxrbTNArtfuznvxAJw4Q2ZGlU8kPeDIWEX1dg3rn2veBVUylA2Ezg89ktszWbaQnxD/e3A==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "peer": true,- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-arm64-musl": {- "version": "1.30.2",- "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.30.2.tgz",- "integrity": "sha512-5Vh9dGeblpTxWHpOx8iauV02popZDsCYMPIgiuw97OJ5uaDsL86cnqSFs5LZkG3ghHoX5isLgWzMs+eD1YzrnA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "peer": true,- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-x64-gnu": {- "version": "1.30.2",- "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.30.2.tgz",- "integrity": "sha512-Cfd46gdmj1vQ+lR6VRTTadNHu6ALuw2pKR9lYq4FnhvgBc4zWY1EtZcAc6EffShbb1MFrIPfLDXD6Xprbnni4w==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "peer": true,- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-linux-x64-musl": {- "version": "1.30.2",- "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.30.2.tgz",- "integrity": "sha512-XJaLUUFXb6/QG2lGIW6aIk6jKdtjtcffUT0NKvIqhSBY3hh9Ch+1LCeH80dR9q9LBjG3ewbDjnumefsLsP6aiA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "linux"- ],- "peer": true,- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-win32-arm64-msvc": {- "version": "1.30.2",- "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.30.2.tgz",- "integrity": "sha512-FZn+vaj7zLv//D/192WFFVA0RgHawIcHqLX9xuWiQt7P0PtdFEVaxgF9rjM/IRYHQXNnk61/H/gb2Ei+kUQ4xQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "win32"- ],- "peer": true,- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lightningcss-win32-x64-msvc": {- "version": "1.30.2",- "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.30.2.tgz",- "integrity": "sha512-5g1yc73p+iAkid5phb4oVFMB45417DkRevRbt/El/gKXJk4jid+vPFF/AXbxn05Aky8PapwzZrdJShv5C0avjw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MPL-2.0",- "optional": true,- "os": [- "win32"- ],- "peer": true,- "engines": {- "node": ">= 12.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/parcel"- }- },- "node_modules/lilconfig": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/lilconfig/-/lilconfig-3.1.3.tgz",- "integrity": "sha512-/vlFKAoH5Cgt3Ie+JLhRbwOsCQePABiU3tJ1egGvyQ+33R/vcwM2Zl2QR/LzjsBeItPt3oSVXapn+m4nQDvpzw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=14"- },- "funding": {- "url": "https://github.com/sponsors/antonk52"- }- },- "node_modules/lines-and-columns": {- "version": "1.2.4",- "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",- "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",- "dev": true,- "license": "MIT"- },- "node_modules/locate-path": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",- "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",- "dev": true,- "license": "MIT",- "dependencies": {- "p-locate": "^5.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/lodash.merge": {- "version": "4.6.2",- "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",- "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ==",- "dev": true,- "license": "MIT"- },- "node_modules/loose-envify": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",- "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",- "license": "MIT",- "dependencies": {- "js-tokens": "^3.0.0 || ^4.0.0"- },- "bin": {- "loose-envify": "cli.js"- }- },- "node_modules/lru-cache": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",- "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",- "dev": true,- "license": "ISC",- "dependencies": {- "yallist": "^3.0.2"- }- },- "node_modules/merge2": {- "version": "1.4.1",- "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",- "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 8"- }- },- "node_modules/micromatch": {- "version": "4.0.8",- "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.8.tgz",- "integrity": "sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==",- "dev": true,- "license": "MIT",- "dependencies": {- "braces": "^3.0.3",- "picomatch": "^2.3.1"- },- "engines": {- "node": ">=8.6"- }- },- "node_modules/minimatch": {- "version": "9.0.5",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.5.tgz",- "integrity": "sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==",- "dev": true,- "license": "ISC",- "dependencies": {- "brace-expansion": "^2.0.1"- },- "engines": {- "node": ">=16 || 14 >=14.17"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/minipass": {- "version": "7.1.2",- "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.2.tgz",- "integrity": "sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw==",- "dev": true,- "license": "ISC",- "engines": {- "node": ">=16 || 14 >=14.17"- }- },- "node_modules/ms": {- "version": "2.1.3",- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",- "dev": true,- "license": "MIT"- },- "node_modules/mz": {- "version": "2.7.0",- "resolved": "https://registry.npmjs.org/mz/-/mz-2.7.0.tgz",- "integrity": "sha512-z81GNO7nnYMEhrGh9LeymoE4+Yr0Wn5McHIZMK5cfQCl+NDX08sCZgUc9/6MHni9IWuFLm1Z3HTCXu2z9fN62Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "any-promise": "^1.0.0",- "object-assign": "^4.0.1",- "thenify-all": "^1.0.0"- }- },- "node_modules/nanoid": {- "version": "3.3.11",- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",- "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "bin": {- "nanoid": "bin/nanoid.cjs"- },- "engines": {- "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"- }- },- "node_modules/natural-compare": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",- "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",- "dev": true,- "license": "MIT"- },- "node_modules/node-releases": {- "version": "2.0.27",- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz",- "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==",- "dev": true,- "license": "MIT"- },- "node_modules/normalize-path": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",- "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/normalize-range": {- "version": "0.1.2",- "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz",- "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/object-assign": {- "version": "4.1.1",- "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz",- "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/object-hash": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz",- "integrity": "sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 6"- }- },- "node_modules/once": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",- "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",- "dev": true,- "license": "ISC",- "dependencies": {- "wrappy": "1"- }- },- "node_modules/optionator": {- "version": "0.9.4",- "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",- "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",- "dev": true,- "license": "MIT",- "dependencies": {- "deep-is": "^0.1.3",- "fast-levenshtein": "^2.0.6",- "levn": "^0.4.1",- "prelude-ls": "^1.2.1",- "type-check": "^0.4.0",- "word-wrap": "^1.2.5"- },- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/p-limit": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",- "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "yocto-queue": "^0.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/p-locate": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",- "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",- "dev": true,- "license": "MIT",- "dependencies": {- "p-limit": "^3.0.2"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/package-json-from-dist": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",- "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",- "dev": true,- "license": "BlueOak-1.0.0"- },- "node_modules/parent-module": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/parent-module/-/parent-module-1.0.1.tgz",- "integrity": "sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==",- "dev": true,- "license": "MIT",- "dependencies": {- "callsites": "^3.0.0"- },- "engines": {- "node": ">=6"- }- },- "node_modules/path-exists": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",- "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/path-is-absolute": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",- "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/path-key": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",- "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/path-parse": {- "version": "1.0.7",- "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",- "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",- "dev": true,- "license": "MIT"- },- "node_modules/path-scurry": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",- "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",- "dev": true,- "license": "BlueOak-1.0.0",- "dependencies": {- "lru-cache": "^10.2.0",- "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"- },- "engines": {- "node": ">=16 || 14 >=14.18"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/path-scurry/node_modules/lru-cache": {- "version": "10.4.3",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",- "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",- "dev": true,- "license": "ISC"- },- "node_modules/path-type": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",- "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/picocolors": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",- "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",- "dev": true,- "license": "ISC"- },- "node_modules/picomatch": {- "version": "2.3.1",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",- "integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8.6"- },- "funding": {- "url": "https://github.com/sponsors/jonschlinkert"- }- },- "node_modules/pify": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/pify/-/pify-2.3.0.tgz",- "integrity": "sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/pirates": {- "version": "4.0.7",- "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",- "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 6"- }- },- "node_modules/postcss": {- "version": "8.5.6",- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",- "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/postcss"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "nanoid": "^3.3.11",- "picocolors": "^1.1.1",- "source-map-js": "^1.2.1"- },- "engines": {- "node": "^10 || ^12 || >=14"- }- },- "node_modules/postcss-import": {- "version": "15.1.0",- "resolved": "https://registry.npmjs.org/postcss-import/-/postcss-import-15.1.0.tgz",- "integrity": "sha512-hpr+J05B2FVYUAXHeK1YyI267J/dDDhMU6B6civm8hSY1jYJnBXxzKDKDswzJmtLHryrjhnDjqqp/49t8FALew==",- "dev": true,- "license": "MIT",- "dependencies": {- "postcss-value-parser": "^4.0.0",- "read-cache": "^1.0.0",- "resolve": "^1.1.7"- },- "engines": {- "node": ">=14.0.0"- },- "peerDependencies": {- "postcss": "^8.0.0"- }- },- "node_modules/postcss-js": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/postcss-js/-/postcss-js-4.1.0.tgz",- "integrity": "sha512-oIAOTqgIo7q2EOwbhb8UalYePMvYoIeRY2YKntdpFQXNosSu3vLrniGgmH9OKs/qAkfoj5oB3le/7mINW1LCfw==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "camelcase-css": "^2.0.1"- },- "engines": {- "node": "^12 || ^14 || >= 16"- },- "peerDependencies": {- "postcss": "^8.4.21"- }- },- "node_modules/postcss-load-config": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/postcss-load-config/-/postcss-load-config-6.0.1.tgz",- "integrity": "sha512-oPtTM4oerL+UXmx+93ytZVN82RrlY/wPUV8IeDxFrzIjXOLF1pN+EmKPLbubvKHT2HC20xXsCAH2Z+CKV6Oz/g==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "lilconfig": "^3.1.1"- },- "engines": {- "node": ">= 18"- },- "peerDependencies": {- "jiti": ">=1.21.0",- "postcss": ">=8.0.9",- "tsx": "^4.8.1",- "yaml": "^2.4.2"- },- "peerDependenciesMeta": {- "jiti": {- "optional": true- },- "postcss": {- "optional": true- },- "tsx": {- "optional": true- },- "yaml": {- "optional": true- }- }- },- "node_modules/postcss-nested": {- "version": "6.2.0",- "resolved": "https://registry.npmjs.org/postcss-nested/-/postcss-nested-6.2.0.tgz",- "integrity": "sha512-HQbt28KulC5AJzG+cZtj9kvKB93CFCdLvog1WFLf1D+xmMvPGlBstkpTEZfK5+AN9hfJocyBFCNiqyS48bpgzQ==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "postcss-selector-parser": "^6.1.1"- },- "engines": {- "node": ">=12.0"- },- "peerDependencies": {- "postcss": "^8.2.14"- }- },- "node_modules/postcss-selector-parser": {- "version": "6.1.2",- "resolved": "https://registry.npmjs.org/postcss-selector-parser/-/postcss-selector-parser-6.1.2.tgz",- "integrity": "sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==",- "dev": true,- "license": "MIT",- "dependencies": {- "cssesc": "^3.0.0",- "util-deprecate": "^1.0.2"- },- "engines": {- "node": ">=4"- }- },- "node_modules/postcss-value-parser": {- "version": "4.2.0",- "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz",- "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==",- "dev": true,- "license": "MIT"- },- "node_modules/prelude-ls": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",- "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/punycode": {- "version": "2.3.1",- "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",- "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/queue-microtask": {- "version": "1.2.3",- "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",- "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/feross"- },- {- "type": "patreon",- "url": "https://www.patreon.com/feross"- },- {- "type": "consulting",- "url": "https://feross.org/support"- }- ],- "license": "MIT"- },- "node_modules/react": {- "version": "18.3.1",- "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",- "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",- "license": "MIT",- "dependencies": {- "loose-envify": "^1.1.0"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/react-dom": {- "version": "18.3.1",- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",- "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",- "license": "MIT",- "dependencies": {- "loose-envify": "^1.1.0",- "scheduler": "^0.23.2"- },- "peerDependencies": {- "react": "^18.3.1"- }- },- "node_modules/react-refresh": {- "version": "0.17.0",- "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",- "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/read-cache": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/read-cache/-/read-cache-1.0.0.tgz",- "integrity": "sha512-Owdv/Ft7IjOgm/i0xvNDZ1LrRANRfew4b2prF3OWMQLxLfu3bS8FVhCsrSCMK4lR56Y9ya+AThoTpDCTxCmpRA==",- "dev": true,- "license": "MIT",- "dependencies": {- "pify": "^2.3.0"- }- },- "node_modules/readdirp": {- "version": "3.6.0",- "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",- "integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",- "dev": true,- "license": "MIT",- "dependencies": {- "picomatch": "^2.2.1"- },- "engines": {- "node": ">=8.10.0"- }- },- "node_modules/resolve": {- "version": "1.22.11",- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz",- "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-core-module": "^2.16.1",- "path-parse": "^1.0.7",- "supports-preserve-symlinks-flag": "^1.0.0"- },- "bin": {- "resolve": "bin/resolve"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/resolve-from": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-4.0.0.tgz",- "integrity": "sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=4"- }- },- "node_modules/reusify": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.1.0.tgz",- "integrity": "sha512-g6QUff04oZpHs0eG5p83rFLhHeV00ug/Yf9nZM6fLeUrPguBTkTQOdpAWWspMh55TZfVQDPaN3NQJfbVRAxdIw==",- "dev": true,- "license": "MIT",- "engines": {- "iojs": ">=1.0.0",- "node": ">=0.10.0"- }- },- "node_modules/rimraf": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz",- "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==",- "deprecated": "Rimraf versions prior to v4 are no longer supported",- "dev": true,- "license": "ISC",- "dependencies": {- "glob": "^7.1.3"- },- "bin": {- "rimraf": "bin.js"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/rollup": {- "version": "4.52.5",- "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.52.5.tgz",- "integrity": "sha512-3GuObel8h7Kqdjt0gxkEzaifHTqLVW56Y/bjN7PSQtkKr0w3V/QYSdt6QWYtd7A1xUtYQigtdUfgj1RvWVtorw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/estree": "1.0.8"- },- "bin": {- "rollup": "dist/bin/rollup"- },- "engines": {- "node": ">=18.0.0",- "npm": ">=8.0.0"- },- "optionalDependencies": {- "@rollup/rollup-android-arm-eabi": "4.52.5",- "@rollup/rollup-android-arm64": "4.52.5",- "@rollup/rollup-darwin-arm64": "4.52.5",- "@rollup/rollup-darwin-x64": "4.52.5",- "@rollup/rollup-freebsd-arm64": "4.52.5",- "@rollup/rollup-freebsd-x64": "4.52.5",- "@rollup/rollup-linux-arm-gnueabihf": "4.52.5",- "@rollup/rollup-linux-arm-musleabihf": "4.52.5",- "@rollup/rollup-linux-arm64-gnu": "4.52.5",- "@rollup/rollup-linux-arm64-musl": "4.52.5",- "@rollup/rollup-linux-loong64-gnu": "4.52.5",- "@rollup/rollup-linux-ppc64-gnu": "4.52.5",- "@rollup/rollup-linux-riscv64-gnu": "4.52.5",- "@rollup/rollup-linux-riscv64-musl": "4.52.5",- "@rollup/rollup-linux-s390x-gnu": "4.52.5",- "@rollup/rollup-linux-x64-gnu": "4.52.5",- "@rollup/rollup-linux-x64-musl": "4.52.5",- "@rollup/rollup-openharmony-arm64": "4.52.5",- "@rollup/rollup-win32-arm64-msvc": "4.52.5",- "@rollup/rollup-win32-ia32-msvc": "4.52.5",- "@rollup/rollup-win32-x64-gnu": "4.52.5",- "@rollup/rollup-win32-x64-msvc": "4.52.5",- "fsevents": "~2.3.2"- }- },- "node_modules/run-parallel": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",- "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/feross"- },- {- "type": "patreon",- "url": "https://www.patreon.com/feross"- },- {- "type": "consulting",- "url": "https://feross.org/support"- }- ],- "license": "MIT",- "dependencies": {- "queue-microtask": "^1.2.2"- }- },- "node_modules/scheduler": {- "version": "0.23.2",- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",- "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",- "license": "MIT",- "dependencies": {- "loose-envify": "^1.1.0"- }- },- "node_modules/semver": {- "version": "7.7.3",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.3.tgz",- "integrity": "sha512-SdsKMrI9TdgjdweUSR9MweHA4EJ8YxHn8DFaDisvhVlUOe4BF1tLD7GAj0lIqWVl+dPb/rExr0Btby5loQm20Q==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "node_modules/shebang-command": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",- "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",- "dev": true,- "license": "MIT",- "dependencies": {- "shebang-regex": "^3.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/shebang-regex": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",- "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/signal-exit": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",- "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",- "dev": true,- "license": "ISC",- "engines": {- "node": ">=14"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/slash": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",- "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/source-map-js": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",- "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",- "dev": true,- "license": "BSD-3-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/string-width": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",- "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",- "dev": true,- "license": "MIT",- "dependencies": {- "eastasianwidth": "^0.2.0",- "emoji-regex": "^9.2.2",- "strip-ansi": "^7.0.1"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/string-width-cjs": {- "name": "string-width",- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "dev": true,- "license": "MIT",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/string-width-cjs/node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",- "dev": true,- "license": "MIT"- },- "node_modules/string-width/node_modules/ansi-regex": {- "version": "6.2.2",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",- "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-regex?sponsor=1"- }- },- "node_modules/string-width/node_modules/strip-ansi": {- "version": "7.1.2",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz",- "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^6.0.1"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/strip-ansi?sponsor=1"- }- },- "node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/strip-ansi-cjs": {- "name": "strip-ansi",- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/strip-json-comments": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",- "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/sucrase": {- "version": "3.35.0",- "resolved": "https://registry.npmjs.org/sucrase/-/sucrase-3.35.0.tgz",- "integrity": "sha512-8EbVDiu9iN/nESwxeSxDKe0dunta1GOlHufmSSXxMD2z2/tMZpDMpvXQGsc+ajGo8y2uYUmixaSRUc/QPoQ0GA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/gen-mapping": "^0.3.2",- "commander": "^4.0.0",- "glob": "^10.3.10",- "lines-and-columns": "^1.1.6",- "mz": "^2.7.0",- "pirates": "^4.0.1",- "ts-interface-checker": "^0.1.9"- },- "bin": {- "sucrase": "bin/sucrase",- "sucrase-node": "bin/sucrase-node"- },- "engines": {- "node": ">=16 || 14 >=14.17"- }- },- "node_modules/sucrase/node_modules/glob": {- "version": "10.4.5",- "resolved": "https://registry.npmjs.org/glob/-/glob-10.4.5.tgz",- "integrity": "sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg==",- "dev": true,- "license": "ISC",- "dependencies": {- "foreground-child": "^3.1.0",- "jackspeak": "^3.1.2",- "minimatch": "^9.0.4",- "minipass": "^7.1.2",- "package-json-from-dist": "^1.0.0",- "path-scurry": "^1.11.1"- },- "bin": {- "glob": "dist/esm/bin.mjs"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/supports-color": {- "version": "7.2.0",- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",- "dev": true,- "license": "MIT",- "dependencies": {- "has-flag": "^4.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/supports-preserve-symlinks-flag": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",- "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/tailwindcss": {- "version": "3.4.18",- "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.18.tgz",- "integrity": "sha512-6A2rnmW5xZMdw11LYjhcI5846rt9pbLSabY5XPxo+XWdxwZaFEn47Go4NzFiHu9sNNmr/kXivP1vStfvMaK1GQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@alloc/quick-lru": "^5.2.0",- "arg": "^5.0.2",- "chokidar": "^3.6.0",- "didyoumean": "^1.2.2",- "dlv": "^1.1.3",- "fast-glob": "^3.3.2",- "glob-parent": "^6.0.2",- "is-glob": "^4.0.3",- "jiti": "^1.21.7",- "lilconfig": "^3.1.3",- "micromatch": "^4.0.8",- "normalize-path": "^3.0.0",- "object-hash": "^3.0.0",- "picocolors": "^1.1.1",- "postcss": "^8.4.47",- "postcss-import": "^15.1.0",- "postcss-js": "^4.0.1",- "postcss-load-config": "^4.0.2 || ^5.0 || ^6.0",- "postcss-nested": "^6.2.0",- "postcss-selector-parser": "^6.1.2",- "resolve": "^1.22.8",- "sucrase": "^3.35.0"- },- "bin": {- "tailwind": "lib/cli.js",- "tailwindcss": "lib/cli.js"- },- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/text-table": {- "version": "0.2.0",- "resolved": "https://registry.npmjs.org/text-table/-/text-table-0.2.0.tgz",- "integrity": "sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw==",- "dev": true,- "license": "MIT"- },- "node_modules/thenify": {- "version": "3.3.1",- "resolved": "https://registry.npmjs.org/thenify/-/thenify-3.3.1.tgz",- "integrity": "sha512-RVZSIV5IG10Hk3enotrhvz0T9em6cyHBLkH/YAZuKqd8hRkKhSfCGIcP2KUY0EPxndzANBmNllzWPwak+bheSw==",- "dev": true,- "license": "MIT",- "dependencies": {- "any-promise": "^1.0.0"- }- },- "node_modules/thenify-all": {- "version": "1.6.0",- "resolved": "https://registry.npmjs.org/thenify-all/-/thenify-all-1.6.0.tgz",- "integrity": "sha512-RNxQH/qI8/t3thXJDwcstUO4zeqo64+Uy/+sNVRBx4Xn2OX+OZ9oP+iJnNFqplFra2ZUVeKCSa2oVWi3T4uVmA==",- "dev": true,- "license": "MIT",- "dependencies": {- "thenify": ">= 3.1.0 < 4"- },- "engines": {- "node": ">=0.8"- }- },- "node_modules/to-regex-range": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",- "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-number": "^7.0.0"- },- "engines": {- "node": ">=8.0"- }- },- "node_modules/ts-api-utils": {- "version": "1.4.3",- "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-1.4.3.tgz",- "integrity": "sha512-i3eMG77UTMD0hZhgRS562pv83RC6ukSAC2GMNWc+9dieh/+jDM5u5YG+NHX6VNDRHQcHwmsTHctP9LhbC3WxVw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=16"- },- "peerDependencies": {- "typescript": ">=4.2.0"- }- },- "node_modules/ts-interface-checker": {- "version": "0.1.13",- "resolved": "https://registry.npmjs.org/ts-interface-checker/-/ts-interface-checker-0.1.13.tgz",- "integrity": "sha512-Y/arvbn+rrz3JCKl9C4kVNfTfSm2/mEp5FSz5EsZSANGPSlQrpRI5M4PKF+mJnE52jOO90PnPSc3Ur3bTQw0gA==",- "dev": true,- "license": "Apache-2.0"- },- "node_modules/type-check": {- "version": "0.4.0",- "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",- "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",- "dev": true,- "license": "MIT",- "dependencies": {- "prelude-ls": "^1.2.1"- },- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/type-fest": {- "version": "0.20.2",- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz",- "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==",- "dev": true,- "license": "(MIT OR CC0-1.0)",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/typescript": {- "version": "5.9.3",- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",- "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",- "dev": true,- "license": "Apache-2.0",- "bin": {- "tsc": "bin/tsc",- "tsserver": "bin/tsserver"- },- "engines": {- "node": ">=14.17"- }- },- "node_modules/update-browserslist-db": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.1.4.tgz",- "integrity": "sha512-q0SPT4xyU84saUX+tomz1WLkxUbuaJnR1xWt17M7fJtEJigJeWUNGUqrauFXsHnqev9y9JTRGwk13tFBuKby4A==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/browserslist"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/browserslist"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "escalade": "^3.2.0",- "picocolors": "^1.1.1"- },- "bin": {- "update-browserslist-db": "cli.js"- },- "peerDependencies": {- "browserslist": ">= 4.21.0"- }- },- "node_modules/uri-js": {- "version": "4.4.1",- "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",- "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "punycode": "^2.1.0"- }- },- "node_modules/util-deprecate": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz",- "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==",- "dev": true,- "license": "MIT"- },- "node_modules/vite": {- "version": "5.4.21",- "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",- "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",- "dev": true,- "license": "MIT",- "dependencies": {- "esbuild": "^0.21.3",- "postcss": "^8.4.43",- "rollup": "^4.20.0"- },- "bin": {- "vite": "bin/vite.js"- },- "engines": {- "node": "^18.0.0 || >=20.0.0"- },- "funding": {- "url": "https://github.com/vitejs/vite?sponsor=1"- },- "optionalDependencies": {- "fsevents": "~2.3.3"- },- "peerDependencies": {- "@types/node": "^18.0.0 || >=20.0.0",- "less": "*",- "lightningcss": "^1.21.0",- "sass": "*",- "sass-embedded": "*",- "stylus": "*",- "sugarss": "*",- "terser": "^5.4.0"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- },- "less": {- "optional": true- },- "lightningcss": {- "optional": true- },- "sass": {- "optional": true- },- "sass-embedded": {- "optional": true- },- "stylus": {- "optional": true- },- "sugarss": {- "optional": true- },- "terser": {- "optional": true- }- }- },- "node_modules/which": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",- "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",- "dev": true,- "license": "ISC",- "dependencies": {- "isexe": "^2.0.0"- },- "bin": {- "node-which": "bin/node-which"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/word-wrap": {- "version": "1.2.5",- "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",- "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/wrap-ansi": {- "version": "8.1.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",- "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^6.1.0",- "string-width": "^5.0.1",- "strip-ansi": "^7.0.1"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"- }- },- "node_modules/wrap-ansi-cjs": {- "name": "wrap-ansi",- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^4.0.0",- "string-width": "^4.1.0",- "strip-ansi": "^6.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"- }- },- "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",- "dev": true,- "license": "MIT"- },- "node_modules/wrap-ansi-cjs/node_modules/string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "dev": true,- "license": "MIT",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/wrap-ansi/node_modules/ansi-regex": {- "version": "6.2.2",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",- "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-regex?sponsor=1"- }- },- "node_modules/wrap-ansi/node_modules/ansi-styles": {- "version": "6.2.3",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",- "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/wrap-ansi/node_modules/strip-ansi": {- "version": "7.1.2",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz",- "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^6.0.1"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/strip-ansi?sponsor=1"- }- },- "node_modules/wrappy": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",- "dev": true,- "license": "ISC"- },- "node_modules/yallist": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",- "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",- "dev": true,- "license": "ISC"- },- "node_modules/yocto-queue": {- "version": "0.1.0",- "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",- "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- }- }-}diff --git a/vendor/openhands-typescript-client/example/package.json b/vendor/openhands-typescript-client/example/package.jsondeleted file mode 100644index f3dcd30aad..0000000000--- a/vendor/openhands-typescript-client/example/package.json+++ /dev/null@@ -1,33 +0,0 @@-{- "name": "openhands-sdk-example",- "private": true,- "version": "0.0.0",- "type": "module",- "scripts": {- "dev": "npm run build:sdk && vite --host 0.0.0.0 --port 12000",- "build": "npm run build:sdk && tsc && vite build",- "build:sdk": "cd ../ && npm run build",- "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",- "preview": "vite preview"- },- "dependencies": {- "@openhands/agent-server-typescript-client": "file:../",- "react": "^18.2.0",- "react-dom": "^18.2.0"- },- "devDependencies": {- "@types/react": "^18.2.66",- "@types/react-dom": "^18.2.22",- "@typescript-eslint/eslint-plugin": "^7.2.0",- "@typescript-eslint/parser": "^7.2.0",- "@vitejs/plugin-react": "^4.2.1",- "autoprefixer": "^10.4.21",- "eslint": "^8.57.0",- "eslint-plugin-react-hooks": "^4.6.0",- "eslint-plugin-react-refresh": "^0.4.6",- "postcss": "^8.5.6",- "tailwindcss": "^3.4.18",- "typescript": "^5.2.2",- "vite": "^5.2.0"- }-}diff --git a/vendor/openhands-typescript-client/example/postcss.config.js b/vendor/openhands-typescript-client/example/postcss.config.jsdeleted file mode 100644index e99ebc2c0e..0000000000--- a/vendor/openhands-typescript-client/example/postcss.config.js+++ /dev/null@@ -1,6 +0,0 @@-export default {- plugins: {- tailwindcss: {},- autoprefixer: {},- },-}\ No newline at end of filediff --git a/vendor/openhands-typescript-client/example/src/App.tsx b/vendor/openhands-typescript-client/example/src/App.tsxdeleted file mode 100644index 454c3684dd..0000000000--- a/vendor/openhands-typescript-client/example/src/App.tsx+++ /dev/null@@ -1,42 +0,0 @@-// Import settings components-import { SettingsModal } from './components/SettingsModal'-import { ConversationManager } from './components/ConversationManager'-import { useSettings } from './contexts/SettingsContext'--function App() {- // Use settings context- const { settings, updateSettings, isModalOpen, openModal, closeModal, isFirstVisit } = useSettings()-- return (- <div className="min-h-screen bg-gray-50 dark:bg-gray-900 text-gray-900 dark:text-gray-100">- <div className="max-w-7xl mx-auto p-8 text-center">- <div className="flex justify-between items-center mb-8">- <h1 className="text-3xl font-bold text-gray-900 dark:text-white m-0">OpenHands Conversation Manager</h1>- <button- className="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-3 rounded-md font-medium transition-colors duration-200"- onClick={openModal}- >- βοΈ Settings- </button>- </div>-- {isFirstVisit && (- <div className="bg-blue-50 dark:bg-blue-900/30 border border-blue-200 dark:border-blue-700 rounded-md p-4 mb-4 text-center">- <p className="text-blue-700 dark:text-blue-300 font-medium m-0">π Welcome! Please configure your settings to get started.</p>- </div>- )}-- <ConversationManager />-- <SettingsModal- isOpen={isModalOpen}- onClose={closeModal}- onSave={updateSettings}- initialSettings={settings}- />- </div>- </div>- )-}--export default App\ No newline at end of filediff --git a/vendor/openhands-typescript-client/example/src/components/ConversationManager.tsx b/vendor/openhands-typescript-client/example/src/components/ConversationManager.tsxdeleted file mode 100644index cc3f9f17f0..0000000000--- a/vendor/openhands-typescript-client/example/src/components/ConversationManager.tsx+++ /dev/null@@ -1,724 +0,0 @@-import React, { useState, useEffect } from 'react';-import {- ConversationManager as SDKConversationManager,- ConversationInfo,- Conversation,- RemoteConversation,- Agent,- Workspace,- Event-} from '@openhands/agent-server-typescript-client';-import { useSettings } from '../contexts/SettingsContext';--interface ConversationData extends ConversationInfo {- remoteConversation?: RemoteConversation;- events?: Event[];-}--// Utility function to extract displayable content from events-const getEventDisplayContent = (event: Event): { title: string; content: string; details?: any } => {- switch (event.kind) {- case 'MessageEvent':- const messageEvent = event as any;- const message = messageEvent.llm_message;- if (message && message.content && Array.isArray(message.content)) {- const textContent = message.content- .filter((c: any) => c.type === 'text')- .map((c: any) => c.text)- .join(' ');- return {- title: `Message from ${messageEvent.source || 'unknown'}`,- content: textContent || 'No text content',- details: message- };- }- return {- title: `Message from ${messageEvent.source || 'unknown'}`,- content: 'No message content available',- details: messageEvent- };-- case 'ActionEvent':- const actionEvent = event as any;- const action = actionEvent.action;- return {- title: `Action: ${action?.kind || 'Unknown Action'}`,- content: action?.command || action?.content || JSON.stringify(action, null, 2),- details: action- };-- case 'ObservationEvent':- const obsEvent = event as any;- return {- title: `Observation: ${obsEvent.tool_name || 'Unknown Tool'}`,- content: typeof obsEvent.observation === 'string'- ? obsEvent.observation- : JSON.stringify(obsEvent.observation, null, 2),- details: obsEvent.observation- };-- case 'AgentErrorEvent':- const errorEvent = event as any;- return {- title: `Error: ${errorEvent.tool_name || 'Unknown Tool'}`,- content: typeof errorEvent.observation === 'string'- ? errorEvent.observation- : JSON.stringify(errorEvent.observation, null, 2),- details: errorEvent.observation- };-- case 'SystemPromptEvent':- const sysEvent = event as any;- return {- title: 'System Prompt',- content: sysEvent.system_prompt?.text || 'System prompt updated',- details: sysEvent.system_prompt- };-- case 'PauseEvent':- return {- title: 'Agent Paused',- content: 'Agent execution was paused',- details: null- };-- default:- return {- title: event.kind || 'Unknown Event',- content: JSON.stringify(event, null, 2),- details: event- };- }-};--export const ConversationManager: React.FC = () => {- const { settings } = useSettings();- const [conversations, setConversations] = useState<ConversationData[]>([]);- const [loading, setLoading] = useState(false);- const [error, setError] = useState<string | null>(null);- const [manager, setManager] = useState<SDKConversationManager | null>(null);- const [selectedConversationId, setSelectedConversationId] = useState<string | null>(null);- const [messageInput, setMessageInput] = useState('');- const [showAllEvents, setShowAllEvents] = useState(false);-- // Get selected conversation data- const selectedConversation = conversations.find(c => c.id === selectedConversationId);-- // Initialize conversation manager- useEffect(() => {- if (settings.agentServerUrl) {- const conversationManager = new SDKConversationManager({- host: settings.agentServerUrl,- apiKey: settings.agentServerApiKey- });- setManager(conversationManager);- loadConversations(conversationManager);- }- }, [settings.agentServerUrl, settings.agentServerApiKey]);-- // Cleanup WebSocket connections on unmount- useEffect(() => {- return () => {- if (selectedConversation?.remoteConversation) {- selectedConversation.remoteConversation.stopWebSocketClient().catch((err: any) => {- console.warn('Failed to stop WebSocket client on unmount:', err);- });- }- };- }, [selectedConversation?.remoteConversation]);-- // Periodic status refresh for running conversations- useEffect(() => {- if (!selectedConversation?.remoteConversation) return;-- const refreshStatus = async () => {- try {- const status = await selectedConversation.remoteConversation!.state.getAgentStatus();- setConversations(prev => prev.map(conv =>- conv.id === selectedConversation.id- ? { ...conv, status: status }- : conv- ));- } catch (err) {- console.warn('Failed to refresh agent status:', err);- }- };-- // Refresh every 2 seconds if the agent is running- const interval = setInterval(() => {- if (selectedConversation.status === 'running') {- refreshStatus();- }- }, 2000);-- return () => clearInterval(interval);- }, [selectedConversation?.id, selectedConversation?.status]);-- const loadConversations = async (conversationManager?: SDKConversationManager) => {- const mgr = conversationManager || manager;- if (!mgr) return;-- setLoading(true);- setError(null);- try {- const conversationList = await mgr.getAllConversations();- console.log('Loaded conversations:', conversationList);-- // Convert to our data structure- const conversationData: ConversationData[] = conversationList.map((conv: ConversationInfo) => ({- ...conv,- // Ensure we have the basic properties- id: conv.id,- agent: conv.agent,- created_at: conv.created_at,- updated_at: conv.updated_at,- // Map agent_status to status for display- status: conv.agent_status || conv.status- }));-- setConversations(conversationData);- } catch (err) {- console.error('Failed to load conversations:', err);- setError(err instanceof Error ? err.message : 'Failed to load conversations');- } finally {- setLoading(false);- }- };-- const createConversation = async () => {- if (!manager) return;-- setLoading(true);- setError(null);- try {- // Create a simple agent configuration- const agent = new Agent({- llm: {- model: settings.modelName,- api_key: settings.apiKey || ''- }- });-- // Create a remote workspace- const workspace = new Workspace({- host: manager.host,- workingDir: '/tmp',- apiKey: manager.apiKey- });-- const conversation = new Conversation(agent, workspace, {- maxIterations: 50,- callback: (event: Event) => {- console.log('Received WebSocket event for new conversation:', event);-- // Update the conversation's events in real-time- setConversations(prev => prev.map(conv => {- if (conv.id === conversation.id && conv.events) {- const updatedEvents = [...conv.events, event];- return { ...conv, events: updatedEvents };- }- return conv;- }));- },- }- );-- console.log('Created conversation:', conversation);-- // Start the conversation with initial message- await conversation.start({- initialMessage: 'Hello! I\'m ready to help you with your tasks.'- });-- // Start WebSocket client for real-time updates- try {- await conversation.startWebSocketClient();- console.log('WebSocket client started for new conversation');- } catch (wsErr) {- console.warn('Failed to start WebSocket client for new conversation:', wsErr);- }-- // Run the initial message to start the conversation- try {- await conversation.run();- console.log('Started conversation with initial message');- } catch (runErr) {- console.warn('Failed to run initial message:', runErr);- }-- // Reload conversations to show the new one- await loadConversations();- } catch (err) {- console.error('Failed to create conversation:', err);- setError(err instanceof Error ? err.message : 'Failed to create conversation');- } finally {- setLoading(false);- }- };-- const deleteConversation = async (conversationId: string) => {- if (!manager) return;-- setLoading(true);- setError(null);- try {- await manager.deleteConversation(conversationId);-- // Clear selection if this conversation was selected- if (selectedConversationId === conversationId) {- setSelectedConversationId(null);- }-- // Reload conversations list- await loadConversations();- } catch (err) {- console.error('Failed to delete conversation:', err);- setError(err instanceof Error ? err.message : 'Failed to delete conversation');- } finally {- setLoading(false);- }- };-- const selectConversation = async (conversationId: string) => {- if (!manager) return;-- // Clean up previous conversation's WebSocket if any- if (selectedConversation?.remoteConversation) {- try {- await selectedConversation.remoteConversation.stopWebSocketClient();- console.log('Stopped WebSocket client for previous conversation');- } catch (err) {- console.warn('Failed to stop previous WebSocket client:', err);- }- }-- console.log('Selecting conversation:', conversationId);- setSelectedConversationId(conversationId);-- // Load conversation details- try {- // Get the conversation info to extract the agent- const conversationInfo = conversations.find(c => c.id === conversationId);- if (!conversationInfo) {- throw new Error('Conversation not found');- }-- // Create a callback to handle real-time events- const eventCallback = (event: Event) => {- console.log('Received WebSocket event:', event);-- // Update the conversation's events in real-time- setConversations(prev => prev.map(conv => {- if (conv.id === conversationId && conv.events) {- // Add the new event to the existing events- const updatedEvents = [...conv.events, event];- return { ...conv, events: updatedEvents };- }- return conv;- }));-- // If it's a status change event, update the agent status- if (event.type === 'agent_status_change' || event.type === 'agent_state_changed') {- // Refresh agent status after a short delay to ensure the server has updated- setTimeout(() => {- if (remoteConversation) {- remoteConversation.state.getAgentStatus().then(status => {- setConversations(prev => prev.map(conv =>- conv.id === conversationId- ? { ...conv, status: status }- : conv- ));- }).catch(err => console.warn('Failed to update agent status:', err));- }- }, 100);- }- };-- // Create a remote workspace for the existing conversation- const workspace = new Workspace({- host: manager.host,- workingDir: '/tmp',- apiKey: manager.apiKey- });-- // Load conversation with callback- const remoteConversation = new Conversation(conversationInfo.agent, workspace, {- conversationId: conversationId,- callback: eventCallback,- });-- // Connect to the existing conversation- await remoteConversation.start();- console.log('Loaded remote conversation:', remoteConversation);-- // Start WebSocket client for real-time updates- try {- await remoteConversation.startWebSocketClient();- console.log('WebSocket client started for conversation:', conversationId);- } catch (wsErr) {- console.warn('Failed to start WebSocket client:', wsErr);- // Don't fail the whole operation if WebSocket fails- }-- // Get events- const events = await remoteConversation.state.events.getEvents();- console.log('Loaded events:', events);-- // Get agent status- const agentStatus = await remoteConversation.state.getAgentStatus();- console.log('Agent status:', agentStatus);-- // Update the conversation in our state with additional details- setConversations(prev => prev.map(conv =>- conv.id === conversationId- ? { ...conv, remoteConversation, events, status: agentStatus }- : conv- ));-- } catch (err) {- console.error('Failed to load conversation details:', err);- setError(err instanceof Error ? err.message : 'Failed to load conversation details');- }- };-- const sendMessage = async () => {- if (!selectedConversation?.remoteConversation || !messageInput.trim()) return;-- try {- // Send the message- await selectedConversation.remoteConversation.sendMessage(messageInput);- setMessageInput('');-- // Start the agent to process the message (non-blocking)- await selectedConversation.remoteConversation.run();- console.log('Agent started to process the message');-- // The WebSocket will receive events as the agent works- // No need to reload immediately - events will come via WebSocket- } catch (err) {- console.error('Failed to send message or start agent:', err);- setError(err instanceof Error ? err.message : 'Failed to send message or start agent');- }- };-- const formatDate = (dateString?: string) => {- if (!dateString) return 'Unknown';- return new Date(dateString).toLocaleString();- };-- const getStatusColorClass = (status?: string) => {- switch (status) {- case 'running': return 'text-green-500';- case 'idle': return 'text-gray-500';- case 'paused': return 'text-orange-500';- case 'waiting_for_confirmation': return 'text-yellow-500';- case 'finished': return 'text-blue-500';- case 'error': return 'text-red-600';- case 'stuck': return 'text-red-500';- default: return 'text-gray-500';- }- };-- const getStatusIcon = (status?: string) => {- switch (status) {- case 'running': return 'π';- case 'idle': return 'βΈοΈ';- case 'paused': return 'βΈοΈ';- case 'waiting_for_confirmation': return 'β³';- case 'finished': return 'β ';- case 'error': return 'β';- case 'stuck': return 'π«';- default: return 'β';- }- };-- return (- <div className="bg-white dark:bg-gray-800 rounded-lg shadow-lg p-6 m-0">- <div className="flex justify-between items-center mb-6 pb-4 border-b border-gray-200 dark:border-gray-700">- <h2 className="text-2xl font-bold text-gray-900 dark:text-white m-0">Conversation Manager</h2>- <div className="flex gap-3">- <button- onClick={() => loadConversations()}- disabled={loading}- className="bg-gray-100 dark:bg-gray-700 hover:bg-gray-200 dark:hover:bg-gray-600 text-gray-700 dark:text-gray-300 px-4 py-2 rounded-md font-medium transition-colors duration-200 disabled:opacity-50 disabled:cursor-not-allowed border border-gray-300 dark:border-gray-600"- >- π Refresh- </button>- <button- onClick={createConversation}- disabled={loading}- className="bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-md font-medium transition-colors duration-200 disabled:opacity-50 disabled:cursor-not-allowed"- >- β New Conversation- </button>- </div>- </div>-- {error && (- <div className="bg-red-50 dark:bg-red-900/30 border border-red-200 dark:border-red-700 rounded-md p-4 mb-4">- <span className="text-red-700 dark:text-red-300 font-medium">Error:</span>- <span className="text-red-600 dark:text-red-400 ml-2">{error}</span>- </div>- )}-- <div className="grid grid-cols-1 lg:grid-cols-2 gap-6">- <div className="bg-gray-50 dark:bg-gray-900 rounded-lg p-4">- <h3 className="text-lg font-semibold text-gray-900 dark:text-white mb-4">Conversations ({conversations.length})</h3>-- {loading && conversations.length === 0 && (- <div className="text-center py-8 text-gray-500 dark:text-gray-400">Loading conversations...</div>- )}-- {conversations.length === 0 && !loading ? (- <div className="text-center py-8 text-gray-500 dark:text-gray-400">- <p>No conversations yet. Create your first conversation!</p>- </div>- ) : (- <div className="space-y-3 max-h-[600px] overflow-y-auto">- {conversations.map((conversation) => (- <div- key={conversation.id}- className={`border rounded-lg p-3 cursor-pointer transition-all duration-200 flex justify-between items-start ${- selectedConversationId === conversation.id- ? 'border-indigo-500 bg-indigo-50 dark:bg-indigo-900/30 shadow-md'- : 'border-gray-200 dark:border-gray-700 bg-white dark:bg-gray-800 hover:border-gray-300 dark:hover:border-gray-600 hover:shadow-sm'- }`}- onClick={() => selectConversation(conversation.id)}- >- <div className="flex-1 min-w-0 text-left">- <div className="text-sm font-mono text-gray-600 dark:text-gray-400 mb-2">- ID: {conversation.id.substring(0, 8)}...- </div>- <div className="space-y-1 text-sm">- <div className="text-gray-600 dark:text-gray-400">Created: {formatDate(conversation.created_at)}</div>- <div className="flex items-center gap-2">- <span className="text-gray-600 dark:text-gray-400">Status:</span>- <span className={`font-medium ${getStatusColorClass(conversation.status)}`}>- {getStatusIcon(conversation.status)} {conversation.status || 'unknown'}- </span>- </div>- </div>- </div>- <button- className="ml-3 p-2 text-red-500 hover:text-red-700 hover:bg-red-50 dark:hover:bg-red-900/30 rounded-md transition-colors duration-200 disabled:opacity-50 disabled:cursor-not-allowed"- onClick={(e) => {- e.stopPropagation();- deleteConversation(conversation.id);- }}- disabled={loading}- title="Delete conversation"- >- ποΈ- </button>- </div>- ))}- </div>- )}- </div>-- <div className="bg-gray-50 dark:bg-gray-900 rounded-lg p-4">- <h3 className="text-lg font-semibold text-gray-900 dark:text-white mb-4">Conversation Details</h3>-- {!selectedConversation ? (- <div className="text-center py-8 text-gray-500 dark:text-gray-400">- <p>Select a conversation to view details</p>- </div>- ) : (- <div className="space-y-6">- <div className="bg-white dark:bg-gray-800 rounded-lg p-4 border border-gray-200 dark:border-gray-700">- <div className="grid grid-cols-1 gap-3 text-sm">- <div className="flex justify-between">- <span className="font-medium text-gray-900 dark:text-white">ID:</span>- <span className="text-gray-600 dark:text-gray-400 font-mono text-xs">{selectedConversation.id}</span>- </div>- <div className="flex justify-between">- <span className="font-medium text-gray-900 dark:text-white">Status:</span>- <span className={`font-medium ${getStatusColorClass(selectedConversation.status)}`}>- {getStatusIcon(selectedConversation.status)} {selectedConversation.status || 'unknown'}- </span>- </div>-- <div className="flex justify-between">- <span className="font-medium text-gray-900 dark:text-white">Model:</span>- <span className="text-gray-600 dark:text-gray-400">{selectedConversation.agent.llm?.model || 'Unknown'}</span>- </div>- <div className="flex justify-between">- <span className="font-medium text-gray-900 dark:text-white">Created:</span>- <span className="text-gray-600 dark:text-gray-400">{formatDate(selectedConversation.created_at)}</span>- </div>- <div className="flex justify-between">- <span className="font-medium text-gray-900 dark:text-white">Updated:</span>- <span className="text-gray-600 dark:text-gray-400">{formatDate(selectedConversation.updated_at)}</span>- </div>-- <div className="flex justify-between">- <span className="font-medium text-gray-900 dark:text-white">Total Events:</span>- <span className="text-gray-600 dark:text-gray-400">{selectedConversation.events?.length || 0}</span>- </div>- </div>- </div>-- <div className="bg-white dark:bg-gray-800 rounded-lg p-4 border border-gray-200 dark:border-gray-700">- <div className="flex justify-between items-center mb-3">- <h4 className="text-base font-semibold text-gray-900 dark:text-white">Events & Messages</h4>- {selectedConversation.events && selectedConversation.events.length > 1 && (- <button- onClick={() => setShowAllEvents(!showAllEvents)}- className="text-sm text-indigo-600 dark:text-indigo-400 hover:text-indigo-800 dark:hover:text-indigo-300 font-medium transition-colors duration-200"- >- {showAllEvents ? 'βΌ Show Recent Only' : `βΆ Show All (${selectedConversation.events.length})`}- </button>- )}- </div>- <div className="max-h-64 overflow-y-auto space-y-3">- {selectedConversation.events && selectedConversation.events.length > 0 ? (- (() => {- // Sort events by timestamp (most recent first)- const sortedEvents = [...selectedConversation.events].sort((a, b) =>- new Date(b.timestamp).getTime() - new Date(a.timestamp).getTime()- );-- // Show only the most recent event unless expanded- const eventsToShow = showAllEvents ? sortedEvents : sortedEvents.slice(0, 1);-- return eventsToShow.map((event, index) => {- const displayContent = getEventDisplayContent(event);- const isRecent = index === 0 && !showAllEvents;-- return (- <div- key={event.id || index}- className={`border border-gray-200 dark:border-gray-700 rounded-lg p-3 bg-gray-50 dark:bg-gray-900 ${- isRecent ? 'ring-2 ring-indigo-200 dark:ring-indigo-800' : ''- }`}- >- <div className="flex justify-between items-center mb-2 text-left">- <div className="flex items-center gap-2">- <span className="text-sm font-medium text-indigo-600 dark:text-indigo-400 bg-indigo-50 dark:bg-indigo-900/30 px-2 py-1 rounded">- {event.kind}- </span>- {event.source && (- <span className="text-xs text-gray-500 dark:text-gray-400 bg-gray-100 dark:bg-gray-800 px-2 py-1 rounded">- {event.source}- </span>- )}- {isRecent && (- <span className="text-xs text-green-600 dark:text-green-400 bg-green-50 dark:bg-green-900/30 px-2 py-1 rounded font-medium">- Latest- </span>- )}- </div>- <span className="text-xs text-gray-500 dark:text-gray-400">- {event.timestamp ? new Date(event.timestamp).toLocaleTimeString() : ''}- </span>- </div>-- <div className="text-sm font-medium text-gray-900 dark:text-white mb-2 text-left">- {displayContent.title}- </div>-- {displayContent.content && (- <div className="text-sm text-gray-700 dark:text-gray-300 mb-2 p-2 bg-white dark:bg-gray-800 rounded border border-gray-200 dark:border-gray-700 text-left">- <div className="max-h-32 overflow-y-auto text-left">- {displayContent.content.length > 200 ? (- <>- {displayContent.content.substring(0, 200)}- <span className="text-gray-500 dark:text-gray-400">... (truncated)</span>- </>- ) : (- displayContent.content- )}- </div>- </div>- )}-- {displayContent.details && (- <details className="mt-2 text-left">- <summary className="text-xs text-gray-500 dark:text-gray-400 cursor-pointer hover:text-gray-700 dark:hover:text-gray-300 text-left">- Show raw data- </summary>- <div className="text-xs text-gray-600 dark:text-gray-400 font-mono bg-gray-100 dark:bg-gray-800 p-2 rounded border border-gray-200 dark:border-gray-700 overflow-x-auto mt-1 text-left">- <pre className="text-left whitespace-pre-wrap">{JSON.stringify(displayContent.details, null, 2)}</pre>- </div>- </details>- )}- </div>- );- });- })()- ) : (- <div className="text-center py-4 text-gray-500 dark:text-gray-400">No events yet</div>- )}- </div>- </div>-- <div className="bg-white dark:bg-gray-800 rounded-lg p-4 border border-gray-200 dark:border-gray-700">- <h4 className="text-base font-semibold text-gray-900 dark:text-white mb-3">Send Message</h4>- <div className="space-y-3">- <textarea- value={messageInput}- onChange={(e) => setMessageInput(e.target.value)}- placeholder="Type your message here..."- className="w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md text-sm bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:border-indigo-600 focus:shadow-md transition-all duration-200 resize-vertical"- rows={3}- />- <div className="flex gap-2">- <button- onClick={sendMessage}- disabled={!messageInput.trim() || loading}- className="flex-1 bg-indigo-600 hover:bg-indigo-700 text-white px-4 py-2 rounded-md font-medium transition-colors duration-200 disabled:opacity-50 disabled:cursor-not-allowed"- >- Send & Run- </button>- <button- onClick={async () => {- if (selectedConversation?.remoteConversation) {- try {- await selectedConversation.remoteConversation.run();- console.log('Agent started manually');- // Reload conversation details- await selectConversation(selectedConversation.id);- } catch (err) {- console.error('Failed to start agent:', err);- setError(err instanceof Error ? err.message : 'Failed to start agent');- }- }- }}- disabled={loading}- className="bg-green-600 hover:bg-green-700 text-white px-4 py-2 rounded-md font-medium transition-colors duration-200 disabled:opacity-50 disabled:cursor-not-allowed"- title="Start/Resume the agent"- >- βΆοΈ Run- </button>- <button- onClick={async () => {- if (selectedConversation?.remoteConversation) {- try {- await selectedConversation.remoteConversation.pause();- console.log('Agent paused manually');- // Reload conversation details- await selectConversation(selectedConversation.id);- } catch (err) {- console.error('Failed to pause agent:', err);- setError(err instanceof Error ? err.message : 'Failed to pause agent');- }- }- }}- disabled={loading}- className="bg-orange-600 hover:bg-orange-700 text-white px-4 py-2 rounded-md font-medium transition-colors duration-200 disabled:opacity-50 disabled:cursor-not-allowed"- title="Pause the agent"- >- βΈοΈ Pause- </button>- </div>- </div>- </div>- </div>- )}- </div>- </div>- </div>- );-};--export default ConversationManager;\ No newline at end of filediff --git a/vendor/openhands-typescript-client/example/src/components/ServerStatus.tsx b/vendor/openhands-typescript-client/example/src/components/ServerStatus.tsxdeleted file mode 100644index c3e9502cf2..0000000000--- a/vendor/openhands-typescript-client/example/src/components/ServerStatus.tsx+++ /dev/null@@ -1,177 +0,0 @@-import React, { useState, useEffect } from 'react';-import { Settings } from './SettingsModal';-import { ServerStatus as ServerStatusType, getServerStatus } from '../utils/serverStatus';--interface ServerStatusProps {- settings: Settings;- onRefresh?: () => void;-}--export const ServerStatus: React.FC<ServerStatusProps> = ({ settings, onRefresh }) => {- const [status, setStatus] = useState<ServerStatusType | null>(null);- const [isLoading, setIsLoading] = useState(false);- const [autoRefresh, setAutoRefresh] = useState(false);-- const checkStatus = async () => {- setIsLoading(true);- try {- const newStatus = await getServerStatus(settings);- setStatus(newStatus);- onRefresh?.();- } catch (error) {- console.error('Failed to check server status:', error);- setStatus({- isConnected: false,- connectionError: 'Failed to check server status',- llmStatus: 'error',- llmError: 'Status check failed',- lastChecked: new Date(),- });- } finally {- setIsLoading(false);- }- };-- // Initial status check- useEffect(() => {- checkStatus();- }, [settings.agentServerUrl, settings.agentServerApiKey, settings.apiKey, settings.modelName]);-- // Auto-refresh functionality- useEffect(() => {- if (!autoRefresh) return;-- const interval = setInterval(() => {- checkStatus();- }, 30000); // Refresh every 30 seconds-- return () => clearInterval(interval);- }, [autoRefresh, settings]);-- const getConnectionStatusIcon = () => {- if (isLoading) return 'β³';- return status?.isConnected ? 'π’' : 'π΄';- };-- const getLLMStatusIcon = () => {- if (isLoading) return 'β³';- switch (status?.llmStatus) {- case 'working': return 'π’';- case 'error': return 'π΄';- default: return 'π‘';- }- };-- const formatLastChecked = (date: Date) => {- const now = new Date();- const diffMs = now.getTime() - date.getTime();- const diffSeconds = Math.floor(diffMs / 1000);- const diffMinutes = Math.floor(diffSeconds / 60);-- if (diffSeconds < 60) {- return `${diffSeconds}s ago`;- } else if (diffMinutes < 60) {- return `${diffMinutes}m ago`;- } else {- return date.toLocaleTimeString();- }- };-- return (- <div className="bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-lg p-4 m-0 shadow-sm">- <div className="flex justify-between items-center mb-3 pb-2 border-b border-gray-200 dark:border-gray-700">- <h3 className="text-base font-semibold text-gray-900 dark:text-white m-0">Server Status</h3>- <div className="flex items-center gap-3">- <label className="flex items-center gap-2 text-xs text-gray-600 dark:text-gray-400 cursor-pointer select-none">- <input- type="checkbox"- checked={autoRefresh}- onChange={(e) => setAutoRefresh(e.target.checked)}- className="m-0"- />- Auto-refresh- </label>- <button- onClick={checkStatus}- disabled={isLoading}- className="bg-transparent border border-gray-200 dark:border-gray-700 rounded px-2 py-1 cursor-pointer text-base transition-all duration-200 hover:bg-gray-50 dark:hover:bg-gray-700 hover:border-indigo-600 disabled:opacity-60 disabled:cursor-not-allowed text-gray-900 dark:text-white"- title="Refresh status"- >- {isLoading ? 'β³' : 'π'}- </button>- </div>- </div>-- <div className="flex flex-col gap-2">- <div className="flex justify-between items-start py-1 border-b border-gray-100 dark:border-gray-700 last:border-b-0">- <div className="flex items-center gap-2 font-medium text-gray-900 dark:text-white min-w-[120px] text-sm">- <span className="text-sm w-4 text-center">{getConnectionStatusIcon()}</span>- Agent Server- </div>- <div className="text-right text-gray-600 dark:text-gray-400 max-w-[60%] break-words text-sm">- {isLoading ? (- 'Checking...'- ) : status?.isConnected ? (- 'Connected'- ) : (- <span className="text-red-600 dark:text-red-400 font-medium">- {status?.connectionError || 'Disconnected'}- </span>- )}- </div>- </div>-- <div className="flex justify-between items-start py-1 border-b border-gray-100 dark:border-gray-700 last:border-b-0">- <div className="flex items-center gap-2 font-medium text-gray-900 dark:text-white min-w-[120px] text-sm">- <span className="text-sm w-4 text-center">{getLLMStatusIcon()}</span>- LLM Configuration- </div>- <div className="text-right text-gray-600 dark:text-gray-400 max-w-[60%] break-words text-sm">- {isLoading ? (- 'Testing...'- ) : status?.llmStatus === 'working' ? (- 'Working'- ) : status?.llmStatus === 'error' ? (- <span className="text-red-600 dark:text-red-400 font-medium">- {status?.llmError || 'Error'}- </span>- ) : (- <span className="text-orange-600 dark:text-orange-400 font-medium">- {status?.llmError || 'Not configured'}- </span>- )}- </div>- </div>-- <div className="flex justify-between items-start py-1 border-b border-gray-100 dark:border-gray-700 last:border-b-0">- <div className="flex items-center gap-2 font-medium text-gray-900 dark:text-white min-w-[120px] text-sm">- Server URL- </div>- <div className="text-right text-gray-600 dark:text-gray-400 max-w-[60%] break-words text-sm font-mono text-xs bg-gray-50 dark:bg-gray-700 px-2 py-1 rounded border border-gray-100 dark:border-gray-600">- {settings.agentServerUrl}- </div>- </div>-- <div className="flex justify-between items-start py-1 border-b border-gray-100 dark:border-gray-700 last:border-b-0">- <div className="flex items-center gap-2 font-medium text-gray-900 dark:text-white min-w-[120px] text-sm">- Model- </div>- <div className="text-right text-gray-600 dark:text-gray-400 max-w-[60%] break-words text-sm">- {settings.modelName || 'Not configured'}- </div>- </div>-- {status && (- <div className="flex justify-between items-start py-1 border-b border-gray-100 dark:border-gray-700 last:border-b-0">- <div className="flex items-center gap-2 font-medium text-gray-900 dark:text-white min-w-[120px] text-sm">- Last Checked- </div>- <div className="text-right text-gray-600 dark:text-gray-400 max-w-[60%] break-words text-sm">- {formatLastChecked(status.lastChecked)}- </div>- </div>- )}- </div>- </div>- );-};\ No newline at end of filediff --git a/vendor/openhands-typescript-client/example/src/components/SettingsModal.tsx b/vendor/openhands-typescript-client/example/src/components/SettingsModal.tsxdeleted file mode 100644index 86c366532a..0000000000--- a/vendor/openhands-typescript-client/example/src/components/SettingsModal.tsx+++ /dev/null@@ -1,217 +0,0 @@-import React, { useState, useEffect } from 'react';-import { ServerStatus } from './ServerStatus';--export interface Settings {- agentServerUrl: string;- modelName: string;- apiKey: string;- agentServerApiKey: string;-}--interface SettingsModalProps {- isOpen: boolean;- onClose: () => void;- onSave: (settings: Settings) => void;- initialSettings?: Settings;-}--const DEFAULT_SETTINGS: Settings = {- agentServerUrl: 'http://localhost:8000',- modelName: 'gpt-4',- apiKey: '',- agentServerApiKey: ''-};--export const SettingsModal: React.FC<SettingsModalProps> = ({- isOpen,- onClose,- onSave,- initialSettings = DEFAULT_SETTINGS-}) => {- const [settings, setSettings] = useState<Settings>(initialSettings);- const [errors, setErrors] = useState<Partial<Settings>>({});-- useEffect(() => {- setSettings(initialSettings);- }, [initialSettings]);-- const validateSettings = (settings: Settings): Partial<Settings> => {- const errors: Partial<Settings> = {};-- if (!settings.agentServerUrl.trim()) {- errors.agentServerUrl = 'Agent Server URL is required';- } else if (!isValidUrl(settings.agentServerUrl)) {- errors.agentServerUrl = 'Please enter a valid URL';- }-- if (!settings.modelName.trim()) {- errors.modelName = 'Model name is required';- }-- if (!settings.apiKey.trim()) {- errors.apiKey = 'API key is required';- }-- return errors;- };-- const isValidUrl = (string: string): boolean => {- try {- new URL(string);- return true;- } catch (_) {- return false;- }- };-- const handleInputChange = (field: keyof Settings, value: string) => {- setSettings(prev => ({ ...prev, [field]: value }));- // Clear error for this field when user starts typing- if (errors[field]) {- setErrors(prev => ({ ...prev, [field]: undefined }));- }- };-- const handleSubmit = (e: React.FormEvent) => {- e.preventDefault();-- const validationErrors = validateSettings(settings);- if (Object.keys(validationErrors).length > 0) {- setErrors(validationErrors);- return;- }-- onSave(settings);- onClose();- };-- const handleCancel = () => {- setSettings(initialSettings);- setErrors({});- onClose();- };-- if (!isOpen) return null;-- return (- <div className="fixed inset-0 bg-black bg-opacity-50 flex justify-center items-center z-50" onClick={handleCancel}>- <div className="bg-white dark:bg-gray-800 rounded-lg p-0 w-[90%] max-w-lg max-h-[90vh] overflow-y-auto shadow-xl" onClick={(e) => e.stopPropagation()}>- <div className="flex justify-between items-center p-4 border-b border-gray-200 dark:border-gray-700">- <h2 className="text-xl font-semibold text-gray-900 dark:text-white m-0">Settings</h2>- <button- className="w-8 h-8 flex items-center justify-center rounded-full hover:bg-gray-100 dark:hover:bg-gray-700 text-gray-600 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white text-2xl border-none bg-transparent cursor-pointer transition-colors duration-200"- onClick={handleCancel}- >- Γ- </button>- </div>-- <div className="p-4 border-b border-gray-200 dark:border-gray-700 bg-gray-50 dark:bg-gray-900">- <ServerStatus settings={initialSettings} />- </div>-- <form onSubmit={handleSubmit} className="p-4">- <div className="mb-4">- <label htmlFor="agentServerUrl" className="block mb-1 font-semibold text-gray-900 dark:text-white text-sm">- Agent Server URL- </label>- <input- type="text"- id="agentServerUrl"- value={settings.agentServerUrl}- onChange={(e) => handleInputChange('agentServerUrl', e.target.value)}- placeholder="http://localhost:8000"- className={`w-full px-3 py-2 border rounded-md text-sm transition-all duration-200 box-border ${- errors.agentServerUrl- ? 'border-red-500 shadow-red-100 dark:shadow-red-900/20'- : 'border-gray-300 dark:border-gray-600 focus:border-indigo-600 focus:shadow-indigo-100 dark:focus:shadow-indigo-900/20'- } bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:shadow-md`}- />- {errors.agentServerUrl && (- <span className="block text-red-500 text-xs mt-1">{errors.agentServerUrl}</span>- )}- </div>-- <div className="mb-4">- <label htmlFor="modelName" className="block mb-1 font-semibold text-gray-900 dark:text-white text-sm">- Model Name- </label>- <input- type="text"- id="modelName"- value={settings.modelName}- onChange={(e) => handleInputChange('modelName', e.target.value)}- placeholder="gpt-4"- className={`w-full px-3 py-2 border rounded-md text-sm transition-all duration-200 box-border ${- errors.modelName- ? 'border-red-500 shadow-red-100 dark:shadow-red-900/20'- : 'border-gray-300 dark:border-gray-600 focus:border-indigo-600 focus:shadow-indigo-100 dark:focus:shadow-indigo-900/20'- } bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:shadow-md`}- />- {errors.modelName && (- <span className="block text-red-500 text-xs mt-1">{errors.modelName}</span>- )}- </div>-- <div className="mb-4">- <label htmlFor="apiKey" className="block mb-1 font-semibold text-gray-900 dark:text-white text-sm">- LLM API Key- </label>- <input- type="password"- id="apiKey"- value={settings.apiKey}- onChange={(e) => handleInputChange('apiKey', e.target.value)}- placeholder="Enter your LLM API key"- className={`w-full px-3 py-2 border rounded-md text-sm transition-all duration-200 box-border ${- errors.apiKey- ? 'border-red-500 shadow-red-100 dark:shadow-red-900/20'- : 'border-gray-300 dark:border-gray-600 focus:border-indigo-600 focus:shadow-indigo-100 dark:focus:shadow-indigo-900/20'- } bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:shadow-md`}- />- {errors.apiKey && (- <span className="block text-red-500 text-xs mt-1">{errors.apiKey}</span>- )}- </div>-- <div className="mb-4">- <label htmlFor="agentServerApiKey" className="block mb-1 font-semibold text-gray-900 dark:text-white text-sm">- Agent Server API Key- </label>- <input- type="password"- id="agentServerApiKey"- value={settings.agentServerApiKey}- onChange={(e) => handleInputChange('agentServerApiKey', e.target.value)}- placeholder="Enter your agent server API key (optional)"- className={`w-full px-3 py-2 border rounded-md text-sm transition-all duration-200 box-border ${- errors.agentServerApiKey- ? 'border-red-500 shadow-red-100 dark:shadow-red-900/20'- : 'border-gray-300 dark:border-gray-600 focus:border-indigo-600 focus:shadow-indigo-100 dark:focus:shadow-indigo-900/20'- } bg-white dark:bg-gray-700 text-gray-900 dark:text-white focus:outline-none focus:shadow-md`}- />- {errors.agentServerApiKey && (- <span className="block text-red-500 text-xs mt-1">{errors.agentServerApiKey}</span>- )}- </div>-- <div className="flex gap-3 justify-end mt-6 pt-3 border-t border-gray-200 dark:border-gray-700">- <button- type="button"- onClick={handleCancel}- className="px-5 py-2 border border-gray-300 dark:border-gray-600 rounded-md text-sm cursor-pointer transition-all duration-200 bg-gray-50 dark:bg-gray-700 text-gray-600 dark:text-gray-300 hover:bg-gray-100 dark:hover:bg-gray-600 hover:text-gray-900 dark:hover:text-white active:translate-y-px"- >- Cancel- </button>- <button- type="submit"- className="px-5 py-2 border-none rounded-md text-sm cursor-pointer transition-all duration-200 bg-indigo-600 text-white hover:bg-indigo-700 active:translate-y-px"- >- Save Settings- </button>- </div>- </form>- </div>- </div>- );-};\ No newline at end of filediff --git a/vendor/openhands-typescript-client/example/src/contexts/SettingsContext.tsx b/vendor/openhands-typescript-client/example/src/contexts/SettingsContext.tsxdeleted file mode 100644index 22c769c0c9..0000000000--- a/vendor/openhands-typescript-client/example/src/contexts/SettingsContext.tsx+++ /dev/null@@ -1,73 +0,0 @@-import React, { createContext, useContext, useState, useEffect, ReactNode } from 'react';-import { Settings } from '../components/SettingsModal';-import { loadSettings, saveSettings, isFirstVisit, markVisited } from '../utils/settings';--interface SettingsContextType {- settings: Settings;- updateSettings: (newSettings: Settings) => void;- isModalOpen: boolean;- openModal: () => void;- closeModal: () => void;- isFirstVisit: boolean;-}--const SettingsContext = createContext<SettingsContextType | undefined>(undefined);--interface SettingsProviderProps {- children: ReactNode;-}--export const SettingsProvider: React.FC<SettingsProviderProps> = ({ children }) => {- const [settings, setSettings] = useState<Settings>(loadSettings());- const [isModalOpen, setIsModalOpen] = useState(false);- const [firstVisit, setFirstVisit] = useState(true);-- useEffect(() => {- // Check if this is the first visit- const isFirst = isFirstVisit();- setFirstVisit(isFirst);-- if (isFirst) {- // Open modal on first visit- setIsModalOpen(true);- // Mark as visited- markVisited();- }- }, []);-- const updateSettings = (newSettings: Settings) => {- setSettings(newSettings);- saveSettings(newSettings);- };-- const openModal = () => {- setIsModalOpen(true);- };-- const closeModal = () => {- setIsModalOpen(false);- };-- const value: SettingsContextType = {- settings,- updateSettings,- isModalOpen,- openModal,- closeModal,- isFirstVisit: firstVisit,- };-- return (- <SettingsContext.Provider value={value}>- {children}- </SettingsContext.Provider>- );-};--export const useSettings = (): SettingsContextType => {- const context = useContext(SettingsContext);- if (context === undefined) {- throw new Error('useSettings must be used within a SettingsProvider');- }- return context;-};\ No newline at end of filediff --git a/vendor/openhands-typescript-client/example/src/index.css b/vendor/openhands-typescript-client/example/src/index.cssdeleted file mode 100644index f9b80dd649..0000000000--- a/vendor/openhands-typescript-client/example/src/index.css+++ /dev/null@@ -1,14 +0,0 @@-@tailwind base;-@tailwind components;-@tailwind utilities;--@layer base {- :root {- font-family: Inter, system-ui, Avenir, Helvetica, Arial, sans-serif;- font-synthesis: none;- text-rendering: optimizeLegibility;- -webkit-font-smoothing: antialiased;- -moz-osx-font-smoothing: grayscale;- -webkit-text-size-adjust: 100%;- }-}\ No newline at end of filediff --git a/vendor/openhands-typescript-client/example/src/main.tsx b/vendor/openhands-typescript-client/example/src/main.tsxdeleted file mode 100644index 8bb1067e45..0000000000--- a/vendor/openhands-typescript-client/example/src/main.tsx+++ /dev/null@@ -1,13 +0,0 @@-import React from 'react'-import ReactDOM from 'react-dom/client'-import App from './App.tsx'-import './index.css'-import { SettingsProvider } from './contexts/SettingsContext'--ReactDOM.createRoot(document.getElementById('root')!).render(- <React.StrictMode>- <SettingsProvider>- <App />- </SettingsProvider>- </React.StrictMode>,-)\ No newline at end of filediff --git a/vendor/openhands-typescript-client/example/src/utils/serverStatus.ts b/vendor/openhands-typescript-client/example/src/utils/serverStatus.tsdeleted file mode 100644index 4c89ccb70e..0000000000--- a/vendor/openhands-typescript-client/example/src/utils/serverStatus.ts+++ /dev/null@@ -1,135 +0,0 @@-import { Settings } from '../components/SettingsModal';-import { HttpClient, RemoteConversation, RemoteWorkspace } from '@openhands/agent-server-typescript-client';--export interface ServerStatus {- isConnected: boolean;- connectionError?: string;- llmStatus: 'unknown' | 'working' | 'error';- llmError?: string;- lastChecked: Date;-}--export interface HealthCheckResponse {- status: string;- timestamp: string;- version?: string;-}--export interface LLMTestResponse {- success: boolean;- response?: string;- error?: string;-}--/**- * Check if the agent server is reachable using the SDK- */-export const checkServerHealth = async (serverUrl: string, apiKey?: string): Promise<{ isConnected: boolean; error?: string }> => {- try {- const client = new HttpClient({ baseUrl: serverUrl, apiKey });-- // Use the SDK's HTTP client to check health- await client.get('/health');-- return { isConnected: true };- } catch (error) {- if (error instanceof Error) {- return { isConnected: false, error: error.message };- }- return { isConnected: false, error: 'Unknown connection error' };- }-};--/**- * Test LLM configuration using the SDK- */-export const testLLMConfiguration = async (settings: Settings): Promise<{ success: boolean; error?: string }> => {- try {- // First check if server is reachable- const healthCheck = await checkServerHealth(settings.agentServerUrl, settings.agentServerApiKey);- if (!healthCheck.isConnected) {- return { success: false, error: `Server not reachable: ${healthCheck.error}` };- }-- // Create a workspace for the test conversation- const workspace = new RemoteWorkspace({- host: settings.agentServerUrl,- workingDir: '/tmp/test-workspace',- apiKey: settings.agentServerApiKey,- });-- // Create a test conversation using the SDK- const conversation = new RemoteConversation(- {- kind: 'Agent',- llm: {- model: settings.modelName,- api_key: settings.apiKey,- }- },- workspace- );-- await conversation.start();-- try {- // Send a simple test message to validate LLM configuration- await conversation.sendMessage({- role: 'user',- content: [{ type: 'text', text: 'Hello, respond with just "OK" to confirm you are working.' }]- });-- // If we get here, the LLM configuration is working- return { success: true };-- } finally {- // Always try to clean up the test conversation- try {- await conversation.close();- } catch {- // Ignore cleanup errors- }- }- } catch (error) {- if (error instanceof Error) {- return { success: false, error: error.message };- }- return { success: false, error: 'Unknown LLM test error' };- }-};--/**- * Get comprehensive server status- */-export const getServerStatus = async (settings: Settings): Promise<ServerStatus> => {- const startTime = new Date();-- // Check server connection- const healthCheck = await checkServerHealth(settings.agentServerUrl, settings.agentServerApiKey);-- let llmStatus: 'unknown' | 'working' | 'error' = 'unknown';- let llmError: string | undefined;-- // Check if LLM settings are configured- if (!settings.apiKey || !settings.modelName) {- llmStatus = 'unknown';- llmError = 'LLM API key or model name not configured';- } else if (!healthCheck.isConnected) {- // Settings are configured but server is not reachable- llmStatus = 'unknown';- llmError = 'Cannot test LLM configuration - server not reachable';- } else {- // Server is reachable and settings are configured - test LLM- const llmTest = await testLLMConfiguration(settings);- llmStatus = llmTest.success ? 'working' : 'error';- llmError = llmTest.error;- }-- return {- isConnected: healthCheck.isConnected,- connectionError: healthCheck.error,- llmStatus,- llmError,- lastChecked: startTime,- };-};\ No newline at end of filediff --git a/vendor/openhands-typescript-client/example/src/utils/settings.ts b/vendor/openhands-typescript-client/example/src/utils/settings.tsdeleted file mode 100644index ca1338e9ae..0000000000--- a/vendor/openhands-typescript-client/example/src/utils/settings.ts+++ /dev/null@@ -1,86 +0,0 @@-import { Settings } from '../components/SettingsModal';--const SETTINGS_KEY = 'openhands-settings';-const FIRST_VISIT_KEY = 'openhands-first-visit';--export const DEFAULT_SETTINGS: Settings = {- agentServerUrl: 'http://localhost:8000',- modelName: 'gpt-4',- apiKey: '',- agentServerApiKey: ''-};--/**- * Load settings from localStorage- */-export const loadSettings = (): Settings => {- try {- const stored = localStorage.getItem(SETTINGS_KEY);- if (stored) {- const parsed = JSON.parse(stored);- // Merge with defaults to ensure all required fields are present- return { ...DEFAULT_SETTINGS, ...parsed };- }- } catch (error) {- console.warn('Failed to load settings from localStorage:', error);- }- return DEFAULT_SETTINGS;-};--/**- * Save settings to localStorage- */-export const saveSettings = (settings: Settings): void => {- try {- localStorage.setItem(SETTINGS_KEY, JSON.stringify(settings));- } catch (error) {- console.error('Failed to save settings to localStorage:', error);- }-};--/**- * Check if this is the user's first visit- */-export const isFirstVisit = (): boolean => {- try {- return !localStorage.getItem(FIRST_VISIT_KEY);- } catch (error) {- console.warn('Failed to check first visit status:', error);- return true; // Default to first visit if we can't check- }-};--/**- * Mark that the user has visited the app- */-export const markVisited = (): void => {- try {- localStorage.setItem(FIRST_VISIT_KEY, 'true');- } catch (error) {- console.error('Failed to mark app as visited:', error);- }-};--/**- * Check if settings are configured (have non-default values)- */-export const areSettingsConfigured = (settings: Settings): boolean => {- return (- settings.agentServerUrl !== DEFAULT_SETTINGS.agentServerUrl ||- settings.modelName !== DEFAULT_SETTINGS.modelName ||- settings.apiKey !== DEFAULT_SETTINGS.apiKey ||- settings.agentServerApiKey !== DEFAULT_SETTINGS.agentServerApiKey- );-};--/**- * Clear all stored settings and first visit flag- */-export const clearAllSettings = (): void => {- try {- localStorage.removeItem(SETTINGS_KEY);- localStorage.removeItem(FIRST_VISIT_KEY);- } catch (error) {- console.error('Failed to clear settings:', error);- }-};\ No newline at end of filediff --git a/vendor/openhands-typescript-client/example/tailwind.config.js b/vendor/openhands-typescript-client/example/tailwind.config.jsdeleted file mode 100644index 89a305e028..0000000000--- a/vendor/openhands-typescript-client/example/tailwind.config.js+++ /dev/null@@ -1,11 +0,0 @@-/** @type {import('tailwindcss').Config} */-export default {- content: [- "./index.html",- "./src/**/*.{js,ts,jsx,tsx}",- ],- theme: {- extend: {},- },- plugins: [],-}\ No newline at end of filediff --git a/vendor/openhands-typescript-client/example/tsconfig.json b/vendor/openhands-typescript-client/example/tsconfig.jsondeleted file mode 100644index 7a7611e4a3..0000000000--- a/vendor/openhands-typescript-client/example/tsconfig.json+++ /dev/null@@ -1,25 +0,0 @@-{- "compilerOptions": {- "target": "ES2020",- "useDefineForClassFields": true,- "lib": ["ES2020", "DOM", "DOM.Iterable"],- "module": "ESNext",- "skipLibCheck": true,-- /* Bundler mode */- "moduleResolution": "bundler",- "allowImportingTsExtensions": true,- "resolveJsonModule": true,- "isolatedModules": true,- "noEmit": true,- "jsx": "react-jsx",-- /* Linting */- "strict": true,- "noUnusedLocals": true,- "noUnusedParameters": true,- "noFallthroughCasesInSwitch": true- },- "include": ["src"],- "references": [{ "path": "./tsconfig.node.json" }]-}\ No newline at end of filediff --git a/vendor/openhands-typescript-client/example/tsconfig.node.json b/vendor/openhands-typescript-client/example/tsconfig.node.jsondeleted file mode 100644index 4eb43d0547..0000000000--- a/vendor/openhands-typescript-client/example/tsconfig.node.json+++ /dev/null@@ -1,11 +0,0 @@-{- "compilerOptions": {- "composite": true,- "skipLibCheck": true,- "module": "ESNext",- "moduleResolution": "bundler",- "allowSyntheticDefaultImports": true,- "strict": true- },- "include": ["vite.config.ts"]-}\ No newline at end of filediff --git a/vendor/openhands-typescript-client/example/vite.config.ts b/vendor/openhands-typescript-client/example/vite.config.tsdeleted file mode 100644index 3e9ed1917b..0000000000--- a/vendor/openhands-typescript-client/example/vite.config.ts+++ /dev/null@@ -1,24 +0,0 @@-import { defineConfig } from 'vite'-import react from '@vitejs/plugin-react'--// https://vitejs.dev/config/-export default defineConfig({- plugins: [react()],- server: {- host: '0.0.0.0',- port: 12001,- cors: true,- allowedHosts: true,- headers: {- 'X-Frame-Options': 'ALLOWALL',- },- },- preview: {- host: '0.0.0.0',- port: 12001,- cors: true,- headers: {- 'X-Frame-Options': 'ALLOWALL',- },- },-})\ No newline at end of filediff --git a/vendor/openhands-typescript-client/examples/basic-usage.ts b/vendor/openhands-typescript-client/examples/basic-usage.tsdeleted file mode 100644index f7538d04f7..0000000000--- a/vendor/openhands-typescript-client/examples/basic-usage.ts+++ /dev/null@@ -1,126 +0,0 @@-/**- * Basic usage example for the OpenHands Agent Server TypeScript Client- */--import { Conversation, Agent, Workspace, AgentExecutionStatus } from '../src/index.js';--async function main() {- // Define the agent configuration- // Note: In a browser environment, you would get these values from your app's configuration- const agent = new Agent({- llm: {- model: 'gpt-4',- api_key: 'your-openai-api-key', // Replace with your actual API key- },- });-- try {- // Create a remote workspace- const workspace = new Workspace({- host: 'http://localhost:3000',- workingDir: '/tmp',- apiKey: 'your-session-api-key', // Replace with your actual session API key- });-- // Create a new conversation- console.log('Creating conversation...');- const conversation = new Conversation(agent, workspace, {- callback: (event) => {- console.log(`Event received: ${event.kind} at ${event.timestamp}`);- },- });-- // Start the conversation with an initial message- await conversation.start({- initialMessage: 'Hello! Can you help me write a simple Python script?',- });-- console.log(`Conversation created with ID: ${conversation.id}`);-- // Start WebSocket for real-time events- await conversation.startWebSocketClient();- console.log('WebSocket client started');-- // Send a message- await conversation.sendMessage('Create a Python script that prints "Hello, World!"');- console.log('Message sent');-- // Run the agent- await conversation.run();- console.log('Agent started');-- // Monitor the conversation status- let status = await conversation.state.getAgentStatus();- console.log(`Initial status: ${status}`);-- // Wait for the agent to finish (in a real application, you'd handle this differently)- while (status === AgentExecutionStatus.RUNNING) {- await new Promise((resolve) => setTimeout(resolve, 1000));- status = await conversation.state.getAgentStatus();- console.log(`Current status: ${status}`);- }-- // Get conversation statistics- const stats = await conversation.conversationStats();- console.log('Conversation stats:', stats);-- // Get all events- const events = await conversation.state.events.getEvents();- console.log(`Total events: ${events.length}`);-- // Example of using the workspace- const result = await conversation.workspace.executeCommand('ls -la');- console.log('Command result:', {- exitCode: result.exit_code,- stdout: result.stdout.substring(0, 200) + '...', // Truncate for display- });-- // Clean up- await conversation.close();- console.log('Conversation closed');- } catch (error) {- console.error('Error:', error);- }-}--// Example of loading an existing conversation-async function loadExistingConversation() {- const agent = new Agent({- llm: {- model: 'gpt-4',- api_key: 'your-openai-api-key', // Replace with your actual API key- },- });-- try {- // Create a remote workspace for the existing conversation- const workspace = new Workspace({- host: 'http://localhost:3000',- workingDir: '/tmp',- apiKey: 'your-session-api-key', // Replace with your actual session API key- });-- const conversation = new Conversation(agent, workspace, {- conversationId: 'existing-conversation-id',- });-- // Connect to the existing conversation- await conversation.start();-- console.log(`Loaded conversation: ${conversation.id}`);-- // Get current status- const status = await conversation.state.getAgentStatus();- console.log(`Status: ${status}`);-- // Clean up- await conversation.close();- } catch (error) {- console.error('Error loading conversation:', error);- }-}--// Run the example-// Note: In a browser environment, you would call main() directly or from an event handler-// For Node.js environments, you can use import.meta.main (ES modules) or check if this is the main module-main().catch(console.error);diff --git a/vendor/openhands-typescript-client/examples/local-agent/README.md b/vendor/openhands-typescript-client/examples/local-agent/README.mddeleted file mode 100644index 66503ed3f1..0000000000--- a/vendor/openhands-typescript-client/examples/local-agent/README.md+++ /dev/null@@ -1,184 +0,0 @@-# OpenHands Local Agent--A browser-based agent UI that demonstrates the OpenHands TypeScript SDK's `LocalConversation` class with JavaScript evaluation capabilities using OpenRouter.--## Features--- π€ **LocalConversation Agent Loop** - Uses the SDK's built-in agent loop via `LocalConversation.run()`-- π§ **JavaScript Eval Tool** - Agent can execute JavaScript code in the browser-- π **OpenRouter Authentication** - Securely connect with your API key-- π¬ **Real-time Chat** - Conversational interface with message history-- π€ **Multiple Models** - Switch between Claude, GPT-4, Gemini, Llama, and more-- π **Dark Mode** - Beautiful dark theme UI--## Quick Start--### Prerequisites--- Node.js 18+-- An OpenRouter API key ([get one here](https://openrouter.ai/keys))--### Setup--```bash-# From the typescript-client directory, build the SDK first-cd /path/to/typescript-client-npm install-npm run build--# Then set up the example app-cd examples/local-agent-npm install-npm run dev-```--### Running--1. Open http://localhost:12001 in your browser-2. Enter your OpenRouter API key-3. Select a model and start chatting!--## How It Works--This example demonstrates using `LocalConversation` with a custom `eval` tool:--1. **User sends a message** - Creates a `LocalConversation` with the eval tool-2. **conversation.start()** - Initializes the conversation with the user's message-3. **conversation.run()** - Runs the agent loop, calling the custom `toolExecutor` for each tool call-4. **Tool execution** - The `toolExecutor` evaluates JavaScript code and returns results-5. **Events** - The callback receives events for display in the UI--### The Eval Tool--The agent has access to a JavaScript evaluation tool:--```typescript-const TOOLS: Tool[] = [- {- type: 'function',- function: {- name: 'eval',- description: 'Evaluates JavaScript code in the browser and returns the result.',- parameters: {- type: 'object',- properties: {- code: { type: 'string', description: 'The JavaScript code to evaluate' },- },- required: ['code'],- },- },- },- {- type: 'function',- function: {- name: 'finish',- description: 'Call this when you have completed the task.',- parameters: {- type: 'object',- properties: {- message: { type: 'string', description: 'Final message' },- },- required: ['message'],- },- },- },-];-```--### Example Prompts--Try these prompts to see the agent in action:--- "What is 2 + 2?"-- "Calculate the factorial of 10"-- "Generate an array of the first 10 fibonacci numbers"-- "What's the current date and time?"-- "Create a function that reverses a string and test it"--## Code Structure--```-examples/local-agent/-βββ index.html # Entry HTML file-βββ package.json # Dependencies-βββ tsconfig.json # TypeScript config-βββ vite.config.ts # Vite bundler config-βββ README.md # This file-βββ src/- βββ main.tsx # React entry point- βββ App.tsx # Main app component- βββ styles.css # Global styles- βββ components/- βββ AgentChatInterface.tsx # LocalConversation usage & chat UI- βββ AuthScreen.tsx # API key input- βββ SettingsModal.tsx # Model settings-```--## Using LocalConversation with Custom Tools--The key pattern demonstrated in `AgentChatInterface.tsx`:--```typescript-import { LocalConversation, LocalWorkspace, Agent, Tool, ToolCall } from '@openhands/typescript-client';--// Define custom tools-const TOOLS: Tool[] = [- {- type: 'function',- function: {- name: 'eval',- description: 'Evaluates JavaScript code in the browser.',- parameters: {- type: 'object',- properties: {- code: { type: 'string', description: 'The JavaScript code to evaluate' },- },- required: ['code'],- },- },- },-];--// Define a tool executor-const toolExecutor = (toolCall: ToolCall): string => {- const { name, arguments: argsString } = toolCall.function;- const args = JSON.parse(argsString);-- if (name === 'eval') {- try {- const result = eval(args.code);- return JSON.stringify(result, null, 2);- } catch (error) {- return `Error: ${error.message}`;- }- }-- return `Unknown tool: ${name}`;-};--// Create the conversation with custom tools-const conversation = new LocalConversation(agent, workspace, {- llm,- systemPrompt: 'You are a helpful assistant...',- tools: TOOLS, // Custom tools- toolExecutor, // Custom tool executor- maxIterations: 10,- callback: (event) => {- // Handle events (assistant_message, tool_result, finish, etc.)- },-});--// Start and run-await conversation.start({ initialMessage: 'Hello!' });-await conversation.run();-```--## Security Note--β οΈ **Warning**: This example uses `eval()` which can execute arbitrary JavaScript code. This is intentional for demonstration purposes but should be used with caution. In a production environment, consider sandboxing or restricting the code that can be executed.--## Related--- [OpenRouter Documentation](https://openrouter.ai/docs)-- [OpenHands TypeScript SDK](../../README.md)-- [Local Chat Example](../local/) - Simpler chat without tool callingdiff --git a/vendor/openhands-typescript-client/examples/local-agent/index.html b/vendor/openhands-typescript-client/examples/local-agent/index.htmldeleted file mode 100644index eb7a6f4064..0000000000--- a/vendor/openhands-typescript-client/examples/local-agent/index.html+++ /dev/null@@ -1,15 +0,0 @@-<!DOCTYPE html>-<html lang="en">- <head>- <meta charset="UTF-8" />- <meta name="viewport" content="width=device-width, initial-scale=1.0" />- <title>OpenHands Local Agent</title>- <link rel="preconnect" href="https://fonts.googleapis.com">- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>- <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">- </head>- <body>- <div id="root"></div>- <script type="module" src="/src/main.tsx"></script>- </body>-</html>diff --git a/vendor/openhands-typescript-client/examples/local-agent/package-lock.json b/vendor/openhands-typescript-client/examples/local-agent/package-lock.jsondeleted file mode 100644index 9ad68904ce..0000000000--- a/vendor/openhands-typescript-client/examples/local-agent/package-lock.json+++ /dev/null@@ -1,2895 +0,0 @@-{- "name": "openhands-local-agent",- "version": "1.0.0",- "lockfileVersion": 3,- "requires": true,- "packages": {- "": {- "name": "openhands-local-agent",- "version": "1.0.0",- "dependencies": {- "react": "^18.2.0",- "react-dom": "^18.2.0",- "react-markdown": "^9.0.1"- },- "devDependencies": {- "@types/react": "^18.2.0",- "@types/react-dom": "^18.2.0",- "@vitejs/plugin-react": "^4.2.0",- "typescript": "^5.3.0",- "vite": "^5.0.0"- }- },- "node_modules/@babel/code-frame": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.28.6.tgz",- "integrity": "sha512-JYgintcMjRiCvS8mMECzaEn+m3PfoQiyqukOMCCVQtoJGYJw8j/8LBJEiqkHLkfwCcs74E3pbAUFNg7d9VNJ+Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-validator-identifier": "^7.28.5",- "js-tokens": "^4.0.0",- "picocolors": "^1.1.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/compat-data": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.6.tgz",- "integrity": "sha512-2lfu57JtzctfIrcGMz992hyLlByuzgIk58+hhGCxjKZ3rWI82NnVLjXcaTqkI2NvlcvOskZaiZ5kjUALo3Lpxg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/core": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.6.tgz",- "integrity": "sha512-H3mcG6ZDLTlYfaSNi0iOKkigqMFvkTKlGUYlD8GW7nNOYRrevuA46iTypPyv+06V3fEmvvazfntkBU34L0azAw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.28.6",- "@babel/generator": "^7.28.6",- "@babel/helper-compilation-targets": "^7.28.6",- "@babel/helper-module-transforms": "^7.28.6",- "@babel/helpers": "^7.28.6",- "@babel/parser": "^7.28.6",- "@babel/template": "^7.28.6",- "@babel/traverse": "^7.28.6",- "@babel/types": "^7.28.6",- "@jridgewell/remapping": "^2.3.5",- "convert-source-map": "^2.0.0",- "debug": "^4.1.0",- "gensync": "^1.0.0-beta.2",- "json5": "^2.2.3",- "semver": "^6.3.1"- },- "engines": {- "node": ">=6.9.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/babel"- }- },- "node_modules/@babel/generator": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.6.tgz",- "integrity": "sha512-lOoVRwADj8hjf7al89tvQ2a1lf53Z+7tiXMgpZJL3maQPDxh0DgLMN62B2MKUOFcoodBHLMbDM6WAbKgNy5Suw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.28.6",- "@babel/types": "^7.28.6",- "@jridgewell/gen-mapping": "^0.3.12",- "@jridgewell/trace-mapping": "^0.3.28",- "jsesc": "^3.0.2"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-compilation-targets": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz",- "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/compat-data": "^7.28.6",- "@babel/helper-validator-option": "^7.27.1",- "browserslist": "^4.24.0",- "lru-cache": "^5.1.1",- "semver": "^6.3.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-globals": {- "version": "7.28.0",- "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",- "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-module-imports": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz",- "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/traverse": "^7.28.6",- "@babel/types": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-module-transforms": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz",- "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-module-imports": "^7.28.6",- "@babel/helper-validator-identifier": "^7.28.5",- "@babel/traverse": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/helper-plugin-utils": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz",- "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-string-parser": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",- "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-validator-identifier": {- "version": "7.28.5",- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",- "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-validator-option": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",- "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helpers": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz",- "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/template": "^7.28.6",- "@babel/types": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/parser": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.6.tgz",- "integrity": "sha512-TeR9zWR18BvbfPmGbLampPMW+uW1NZnJlRuuHso8i87QZNq2JRF9i6RgxRqtEq+wQGsS19NNTWr2duhnE49mfQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.28.6"- },- "bin": {- "parser": "bin/babel-parser.js"- },- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@babel/plugin-transform-react-jsx-self": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz",- "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-react-jsx-source": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz",- "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/template": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz",- "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.28.6",- "@babel/parser": "^7.28.6",- "@babel/types": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/traverse": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.6.tgz",- "integrity": "sha512-fgWX62k02qtjqdSNTAGxmKYY/7FSL9WAS1o2Hu5+I5m9T0yxZzr4cnrfXQ/MX0rIifthCSs6FKTlzYbJcPtMNg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.28.6",- "@babel/generator": "^7.28.6",- "@babel/helper-globals": "^7.28.0",- "@babel/parser": "^7.28.6",- "@babel/template": "^7.28.6",- "@babel/types": "^7.28.6",- "debug": "^4.3.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/types": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.6.tgz",- "integrity": "sha512-0ZrskXVEHSWIqZM/sQZ4EV3jZJXRkio/WCxaqKZP1g//CEWEPSfeZFcms4XeKBCHU0ZKnIkdJeU/kF+eRp5lBg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-string-parser": "^7.27.1",- "@babel/helper-validator-identifier": "^7.28.5"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@esbuild/aix-ppc64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",- "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "aix"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/android-arm": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",- "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/android-arm64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",- "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/android-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",- "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/darwin-arm64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",- "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/darwin-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",- "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/freebsd-arm64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",- "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/freebsd-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",- "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-arm": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",- "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-arm64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",- "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-ia32": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",- "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-loong64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",- "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-mips64el": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",- "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",- "cpu": [- "mips64el"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-ppc64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",- "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-riscv64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",- "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-s390x": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",- "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",- "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/netbsd-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",- "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "netbsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/openbsd-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",- "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/sunos-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",- "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "sunos"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/win32-arm64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",- "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/win32-ia32": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",- "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/win32-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",- "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@jridgewell/gen-mapping": {- "version": "0.3.13",- "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",- "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/sourcemap-codec": "^1.5.0",- "@jridgewell/trace-mapping": "^0.3.24"- }- },- "node_modules/@jridgewell/remapping": {- "version": "2.3.5",- "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",- "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/gen-mapping": "^0.3.5",- "@jridgewell/trace-mapping": "^0.3.24"- }- },- "node_modules/@jridgewell/resolve-uri": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",- "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@jridgewell/sourcemap-codec": {- "version": "1.5.5",- "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",- "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",- "dev": true,- "license": "MIT"- },- "node_modules/@jridgewell/trace-mapping": {- "version": "0.3.31",- "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",- "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/resolve-uri": "^3.1.0",- "@jridgewell/sourcemap-codec": "^1.4.14"- }- },- "node_modules/@rolldown/pluginutils": {- "version": "1.0.0-beta.27",- "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",- "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==",- "dev": true,- "license": "MIT"- },- "node_modules/@rollup/rollup-android-arm-eabi": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.56.0.tgz",- "integrity": "sha512-LNKIPA5k8PF1+jAFomGe3qN3bbIgJe/IlpDBwuVjrDKrJhVWywgnJvflMt/zkbVNLFtF1+94SljYQS6e99klnw==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@rollup/rollup-android-arm64": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.56.0.tgz",- "integrity": "sha512-lfbVUbelYqXlYiU/HApNMJzT1E87UPGvzveGg2h0ktUNlOCxKlWuJ9jtfvs1sKHdwU4fzY7Pl8sAl49/XaEk6Q==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@rollup/rollup-darwin-arm64": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.56.0.tgz",- "integrity": "sha512-EgxD1ocWfhoD6xSOeEEwyE7tDvwTgZc8Bss7wCWe+uc7wO8G34HHCUH+Q6cHqJubxIAnQzAsyUsClt0yFLu06w==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@rollup/rollup-darwin-x64": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.56.0.tgz",- "integrity": "sha512-1vXe1vcMOssb/hOF8iv52A7feWW2xnu+c8BV4t1F//m9QVLTfNVpEdja5ia762j/UEJe2Z1jAmEqZAK42tVW3g==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@rollup/rollup-freebsd-arm64": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.56.0.tgz",- "integrity": "sha512-bof7fbIlvqsyv/DtaXSck4VYQ9lPtoWNFCB/JY4snlFuJREXfZnm+Ej6yaCHfQvofJDXLDMTVxWscVSuQvVWUQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ]- },- "node_modules/@rollup/rollup-freebsd-x64": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.56.0.tgz",- "integrity": "sha512-KNa6lYHloW+7lTEkYGa37fpvPq+NKG/EHKM8+G/g9WDU7ls4sMqbVRV78J6LdNuVaeeK5WB9/9VAFbKxcbXKYg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ]- },- "node_modules/@rollup/rollup-linux-arm-gnueabihf": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.56.0.tgz",- "integrity": "sha512-E8jKK87uOvLrrLN28jnAAAChNq5LeCd2mGgZF+fGF5D507WlG/Noct3lP/QzQ6MrqJ5BCKNwI9ipADB6jyiq2A==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm-musleabihf": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.56.0.tgz",- "integrity": "sha512-jQosa5FMYF5Z6prEpTCCmzCXz6eKr/tCBssSmQGEeozA9tkRUty/5Vx06ibaOP9RCrW1Pvb8yp3gvZhHwTDsJw==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm64-gnu": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.56.0.tgz",- "integrity": "sha512-uQVoKkrC1KGEV6udrdVahASIsaF8h7iLG0U0W+Xn14ucFwi6uS539PsAr24IEF9/FoDtzMeeJXJIBo5RkbNWvQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm64-musl": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.56.0.tgz",- "integrity": "sha512-vLZ1yJKLxhQLFKTs42RwTwa6zkGln+bnXc8ueFGMYmBTLfNu58sl5/eXyxRa2RarTkJbXl8TKPgfS6V5ijNqEA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-loong64-gnu": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.56.0.tgz",- "integrity": "sha512-FWfHOCub564kSE3xJQLLIC/hbKqHSVxy8vY75/YHHzWvbJL7aYJkdgwD/xGfUlL5UV2SB7otapLrcCj2xnF1dg==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-loong64-musl": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.56.0.tgz",- "integrity": "sha512-z1EkujxIh7nbrKL1lmIpqFTc/sr0u8Uk0zK/qIEFldbt6EDKWFk/pxFq3gYj4Bjn3aa9eEhYRlL3H8ZbPT1xvA==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-ppc64-gnu": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.56.0.tgz",- "integrity": "sha512-iNFTluqgdoQC7AIE8Q34R3AuPrJGJirj5wMUErxj22deOcY7XwZRaqYmB6ZKFHoVGqRcRd0mqO+845jAibKCkw==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-ppc64-musl": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.56.0.tgz",- "integrity": "sha512-MtMeFVlD2LIKjp2sE2xM2slq3Zxf9zwVuw0jemsxvh1QOpHSsSzfNOTH9uYW9i1MXFxUSMmLpeVeUzoNOKBaWg==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-riscv64-gnu": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.56.0.tgz",- "integrity": "sha512-in+v6wiHdzzVhYKXIk5U74dEZHdKN9KH0Q4ANHOTvyXPG41bajYRsy7a8TPKbYPl34hU7PP7hMVHRvv/5aCSew==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-riscv64-musl": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.56.0.tgz",- "integrity": "sha512-yni2raKHB8m9NQpI9fPVwN754mn6dHQSbDTwxdr9SE0ks38DTjLMMBjrwvB5+mXrX+C0npX0CVeCUcvvvD8CNQ==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-s390x-gnu": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.56.0.tgz",- "integrity": "sha512-zhLLJx9nQPu7wezbxt2ut+CI4YlXi68ndEve16tPc/iwoylWS9B3FxpLS2PkmfYgDQtosah07Mj9E0khc3Y+vQ==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-x64-gnu": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.56.0.tgz",- "integrity": "sha512-MVC6UDp16ZSH7x4rtuJPAEoE1RwS8N4oK9DLHy3FTEdFoUTCFVzMfJl/BVJ330C+hx8FfprA5Wqx4FhZXkj2Kw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-x64-musl": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.56.0.tgz",- "integrity": "sha512-ZhGH1eA4Qv0lxaV00azCIS1ChedK0V32952Md3FtnxSqZTBTd6tgil4nZT5cU8B+SIw3PFYkvyR4FKo2oyZIHA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-openbsd-x64": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.56.0.tgz",- "integrity": "sha512-O16XcmyDeFI9879pEcmtWvD/2nyxR9mF7Gs44lf1vGGx8Vg2DRNx11aVXBEqOQhWb92WN4z7fW/q4+2NYzCbBA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ]- },- "node_modules/@rollup/rollup-openharmony-arm64": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.56.0.tgz",- "integrity": "sha512-LhN/Reh+7F3RCgQIRbgw8ZMwUwyqJM+8pXNT6IIJAqm2IdKkzpCh/V9EdgOMBKuebIrzswqy4ATlrDgiOwbRcQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openharmony"- ]- },- "node_modules/@rollup/rollup-win32-arm64-msvc": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.56.0.tgz",- "integrity": "sha512-kbFsOObXp3LBULg1d3JIUQMa9Kv4UitDmpS+k0tinPBz3watcUiV2/LUDMMucA6pZO3WGE27P7DsfaN54l9ing==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-ia32-msvc": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.56.0.tgz",- "integrity": "sha512-vSSgny54D6P4vf2izbtFm/TcWYedw7f8eBrOiGGecyHyQB9q4Kqentjaj8hToe+995nob/Wv48pDqL5a62EWtg==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-x64-gnu": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.56.0.tgz",- "integrity": "sha512-FeCnkPCTHQJFbiGG49KjV5YGW/8b9rrXAM2Mz2kiIoktq2qsJxRD5giEMEOD2lPdgs72upzefaUvS+nc8E3UzQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-x64-msvc": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.56.0.tgz",- "integrity": "sha512-H8AE9Ur/t0+1VXujj90w0HrSOuv0Nq9r1vSZF2t5km20NTfosQsGGUXDaKdQZzwuLts7IyL1fYT4hM95TI9c4g==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@types/babel__core": {- "version": "7.20.5",- "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",- "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.20.7",- "@babel/types": "^7.20.7",- "@types/babel__generator": "*",- "@types/babel__template": "*",- "@types/babel__traverse": "*"- }- },- "node_modules/@types/babel__generator": {- "version": "7.27.0",- "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",- "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.0.0"- }- },- "node_modules/@types/babel__template": {- "version": "7.4.4",- "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",- "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.1.0",- "@babel/types": "^7.0.0"- }- },- "node_modules/@types/babel__traverse": {- "version": "7.28.0",- "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",- "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.28.2"- }- },- "node_modules/@types/debug": {- "version": "4.1.12",- "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz",- "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==",- "license": "MIT",- "dependencies": {- "@types/ms": "*"- }- },- "node_modules/@types/estree": {- "version": "1.0.8",- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",- "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",- "license": "MIT"- },- "node_modules/@types/estree-jsx": {- "version": "1.0.5",- "resolved": "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.5.tgz",- "integrity": "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==",- "license": "MIT",- "dependencies": {- "@types/estree": "*"- }- },- "node_modules/@types/hast": {- "version": "3.0.4",- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz",- "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",- "license": "MIT",- "dependencies": {- "@types/unist": "*"- }- },- "node_modules/@types/mdast": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz",- "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==",- "license": "MIT",- "dependencies": {- "@types/unist": "*"- }- },- "node_modules/@types/ms": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",- "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",- "license": "MIT"- },- "node_modules/@types/prop-types": {- "version": "15.7.15",- "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz",- "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==",- "license": "MIT"- },- "node_modules/@types/react": {- "version": "18.3.27",- "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.27.tgz",- "integrity": "sha512-cisd7gxkzjBKU2GgdYrTdtQx1SORymWyaAFhaxQPK9bYO9ot3Y5OikQRvY0VYQtvwjeQnizCINJAenh/V7MK2w==",- "license": "MIT",- "dependencies": {- "@types/prop-types": "*",- "csstype": "^3.2.2"- }- },- "node_modules/@types/react-dom": {- "version": "18.3.7",- "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz",- "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "@types/react": "^18.0.0"- }- },- "node_modules/@types/unist": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",- "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==",- "license": "MIT"- },- "node_modules/@ungap/structured-clone": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz",- "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==",- "license": "ISC"- },- "node_modules/@vitejs/plugin-react": {- "version": "4.7.0",- "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",- "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/core": "^7.28.0",- "@babel/plugin-transform-react-jsx-self": "^7.27.1",- "@babel/plugin-transform-react-jsx-source": "^7.27.1",- "@rolldown/pluginutils": "1.0.0-beta.27",- "@types/babel__core": "^7.20.5",- "react-refresh": "^0.17.0"- },- "engines": {- "node": "^14.18.0 || >=16.0.0"- },- "peerDependencies": {- "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"- }- },- "node_modules/bail": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz",- "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/baseline-browser-mapping": {- "version": "2.9.17",- "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.17.tgz",- "integrity": "sha512-agD0MgJFUP/4nvjqzIB29zRPUuCF7Ge6mEv9s8dHrtYD7QWXRcx75rOADE/d5ah1NI+0vkDl0yorDd5U852IQQ==",- "dev": true,- "license": "Apache-2.0",- "bin": {- "baseline-browser-mapping": "dist/cli.js"- }- },- "node_modules/browserslist": {- "version": "4.28.1",- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz",- "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/browserslist"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/browserslist"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "baseline-browser-mapping": "^2.9.0",- "caniuse-lite": "^1.0.30001759",- "electron-to-chromium": "^1.5.263",- "node-releases": "^2.0.27",- "update-browserslist-db": "^1.2.0"- },- "bin": {- "browserslist": "cli.js"- },- "engines": {- "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"- }- },- "node_modules/caniuse-lite": {- "version": "1.0.30001766",- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001766.tgz",- "integrity": "sha512-4C0lfJ0/YPjJQHagaE9x2Elb69CIqEPZeG0anQt9SIvIoOH4a4uaRl73IavyO+0qZh6MDLH//DrXThEYKHkmYA==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/browserslist"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/caniuse-lite"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "CC-BY-4.0"- },- "node_modules/ccount": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz",- "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/character-entities": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz",- "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/character-entities-html4": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz",- "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/character-entities-legacy": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz",- "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/character-reference-invalid": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz",- "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/comma-separated-tokens": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",- "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/convert-source-map": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",- "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",- "dev": true,- "license": "MIT"- },- "node_modules/csstype": {- "version": "3.2.3",- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",- "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",- "license": "MIT"- },- "node_modules/debug": {- "version": "4.4.3",- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",- "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",- "license": "MIT",- "dependencies": {- "ms": "^2.1.3"- },- "engines": {- "node": ">=6.0"- },- "peerDependenciesMeta": {- "supports-color": {- "optional": true- }- }- },- "node_modules/decode-named-character-reference": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz",- "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==",- "license": "MIT",- "dependencies": {- "character-entities": "^2.0.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/dequal": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",- "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/devlop": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",- "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==",- "license": "MIT",- "dependencies": {- "dequal": "^2.0.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/electron-to-chromium": {- "version": "1.5.278",- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.278.tgz",- "integrity": "sha512-dQ0tM1svDRQOwxnXxm+twlGTjr9Upvt8UFWAgmLsxEzFQxhbti4VwxmMjsDxVC51Zo84swW7FVCXEV+VAkhuPw==",- "dev": true,- "license": "ISC"- },- "node_modules/esbuild": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",- "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "bin": {- "esbuild": "bin/esbuild"- },- "engines": {- "node": ">=12"- },- "optionalDependencies": {- "@esbuild/aix-ppc64": "0.21.5",- "@esbuild/android-arm": "0.21.5",- "@esbuild/android-arm64": "0.21.5",- "@esbuild/android-x64": "0.21.5",- "@esbuild/darwin-arm64": "0.21.5",- "@esbuild/darwin-x64": "0.21.5",- "@esbuild/freebsd-arm64": "0.21.5",- "@esbuild/freebsd-x64": "0.21.5",- "@esbuild/linux-arm": "0.21.5",- "@esbuild/linux-arm64": "0.21.5",- "@esbuild/linux-ia32": "0.21.5",- "@esbuild/linux-loong64": "0.21.5",- "@esbuild/linux-mips64el": "0.21.5",- "@esbuild/linux-ppc64": "0.21.5",- "@esbuild/linux-riscv64": "0.21.5",- "@esbuild/linux-s390x": "0.21.5",- "@esbuild/linux-x64": "0.21.5",- "@esbuild/netbsd-x64": "0.21.5",- "@esbuild/openbsd-x64": "0.21.5",- "@esbuild/sunos-x64": "0.21.5",- "@esbuild/win32-arm64": "0.21.5",- "@esbuild/win32-ia32": "0.21.5",- "@esbuild/win32-x64": "0.21.5"- }- },- "node_modules/escalade": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",- "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/estree-util-is-identifier-name": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz",- "integrity": "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==",- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/extend": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",- "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",- "license": "MIT"- },- "node_modules/fsevents": {- "version": "2.3.3",- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",- "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"- }- },- "node_modules/gensync": {- "version": "1.0.0-beta.2",- "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",- "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/hast-util-to-jsx-runtime": {- "version": "2.3.6",- "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.6.tgz",- "integrity": "sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==",- "license": "MIT",- "dependencies": {- "@types/estree": "^1.0.0",- "@types/hast": "^3.0.0",- "@types/unist": "^3.0.0",- "comma-separated-tokens": "^2.0.0",- "devlop": "^1.0.0",- "estree-util-is-identifier-name": "^3.0.0",- "hast-util-whitespace": "^3.0.0",- "mdast-util-mdx-expression": "^2.0.0",- "mdast-util-mdx-jsx": "^3.0.0",- "mdast-util-mdxjs-esm": "^2.0.0",- "property-information": "^7.0.0",- "space-separated-tokens": "^2.0.0",- "style-to-js": "^1.0.0",- "unist-util-position": "^5.0.0",- "vfile-message": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/hast-util-whitespace": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",- "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==",- "license": "MIT",- "dependencies": {- "@types/hast": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/html-url-attributes": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz",- "integrity": "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==",- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/inline-style-parser": {- "version": "0.2.7",- "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.7.tgz",- "integrity": "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==",- "license": "MIT"- },- "node_modules/is-alphabetical": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz",- "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/is-alphanumerical": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz",- "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==",- "license": "MIT",- "dependencies": {- "is-alphabetical": "^2.0.0",- "is-decimal": "^2.0.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/is-decimal": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz",- "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/is-hexadecimal": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz",- "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/is-plain-obj": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz",- "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==",- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/js-tokens": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",- "license": "MIT"- },- "node_modules/jsesc": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",- "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",- "dev": true,- "license": "MIT",- "bin": {- "jsesc": "bin/jsesc"- },- "engines": {- "node": ">=6"- }- },- "node_modules/json5": {- "version": "2.2.3",- "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",- "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",- "dev": true,- "license": "MIT",- "bin": {- "json5": "lib/cli.js"- },- "engines": {- "node": ">=6"- }- },- "node_modules/longest-streak": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz",- "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/loose-envify": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",- "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",- "license": "MIT",- "dependencies": {- "js-tokens": "^3.0.0 || ^4.0.0"- },- "bin": {- "loose-envify": "cli.js"- }- },- "node_modules/lru-cache": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",- "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",- "dev": true,- "license": "ISC",- "dependencies": {- "yallist": "^3.0.2"- }- },- "node_modules/mdast-util-from-markdown": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.2.tgz",- "integrity": "sha512-uZhTV/8NBuw0WHkPTrCqDOl0zVe1BIng5ZtHoDk49ME1qqcjYmmLmOf0gELgcRMxN4w2iuIeVso5/6QymSrgmA==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "@types/unist": "^3.0.0",- "decode-named-character-reference": "^1.0.0",- "devlop": "^1.0.0",- "mdast-util-to-string": "^4.0.0",- "micromark": "^4.0.0",- "micromark-util-decode-numeric-character-reference": "^2.0.0",- "micromark-util-decode-string": "^2.0.0",- "micromark-util-normalize-identifier": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0",- "unist-util-stringify-position": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-mdx-expression": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz",- "integrity": "sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==",- "license": "MIT",- "dependencies": {- "@types/estree-jsx": "^1.0.0",- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "devlop": "^1.0.0",- "mdast-util-from-markdown": "^2.0.0",- "mdast-util-to-markdown": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-mdx-jsx": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.0.tgz",- "integrity": "sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q==",- "license": "MIT",- "dependencies": {- "@types/estree-jsx": "^1.0.0",- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "@types/unist": "^3.0.0",- "ccount": "^2.0.0",- "devlop": "^1.1.0",- "mdast-util-from-markdown": "^2.0.0",- "mdast-util-to-markdown": "^2.0.0",- "parse-entities": "^4.0.0",- "stringify-entities": "^4.0.0",- "unist-util-stringify-position": "^4.0.0",- "vfile-message": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-mdxjs-esm": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz",- "integrity": "sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==",- "license": "MIT",- "dependencies": {- "@types/estree-jsx": "^1.0.0",- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "devlop": "^1.0.0",- "mdast-util-from-markdown": "^2.0.0",- "mdast-util-to-markdown": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-phrasing": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz",- "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "unist-util-is": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-to-hast": {- "version": "13.2.1",- "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz",- "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==",- "license": "MIT",- "dependencies": {- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "@ungap/structured-clone": "^1.0.0",- "devlop": "^1.0.0",- "micromark-util-sanitize-uri": "^2.0.0",- "trim-lines": "^3.0.0",- "unist-util-position": "^5.0.0",- "unist-util-visit": "^5.0.0",- "vfile": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-to-markdown": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz",- "integrity": "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "@types/unist": "^3.0.0",- "longest-streak": "^3.0.0",- "mdast-util-phrasing": "^4.0.0",- "mdast-util-to-string": "^4.0.0",- "micromark-util-classify-character": "^2.0.0",- "micromark-util-decode-string": "^2.0.0",- "unist-util-visit": "^5.0.0",- "zwitch": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-to-string": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz",- "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/micromark": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz",- "integrity": "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "@types/debug": "^4.0.0",- "debug": "^4.0.0",- "decode-named-character-reference": "^1.0.0",- "devlop": "^1.0.0",- "micromark-core-commonmark": "^2.0.0",- "micromark-factory-space": "^2.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-chunked": "^2.0.0",- "micromark-util-combine-extensions": "^2.0.0",- "micromark-util-decode-numeric-character-reference": "^2.0.0",- "micromark-util-encode": "^2.0.0",- "micromark-util-normalize-identifier": "^2.0.0",- "micromark-util-resolve-all": "^2.0.0",- "micromark-util-sanitize-uri": "^2.0.0",- "micromark-util-subtokenize": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-core-commonmark": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz",- "integrity": "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "decode-named-character-reference": "^1.0.0",- "devlop": "^1.0.0",- "micromark-factory-destination": "^2.0.0",- "micromark-factory-label": "^2.0.0",- "micromark-factory-space": "^2.0.0",- "micromark-factory-title": "^2.0.0",- "micromark-factory-whitespace": "^2.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-chunked": "^2.0.0",- "micromark-util-classify-character": "^2.0.0",- "micromark-util-html-tag-name": "^2.0.0",- "micromark-util-normalize-identifier": "^2.0.0",- "micromark-util-resolve-all": "^2.0.0",- "micromark-util-subtokenize": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-factory-destination": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz",- "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-character": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-factory-label": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz",- "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "devlop": "^1.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-factory-space": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz",- "integrity": "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-character": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-factory-title": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz",- "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-factory-space": "^2.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-factory-whitespace": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz",- "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-factory-space": "^2.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-character": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz",- "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-chunked": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz",- "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-symbol": "^2.0.0"- }- },- "node_modules/micromark-util-classify-character": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz",- "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-character": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-combine-extensions": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz",- "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-chunked": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-decode-numeric-character-reference": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz",- "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-symbol": "^2.0.0"- }- },- "node_modules/micromark-util-decode-string": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz",- "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "decode-named-character-reference": "^1.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-decode-numeric-character-reference": "^2.0.0",- "micromark-util-symbol": "^2.0.0"- }- },- "node_modules/micromark-util-encode": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz",- "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT"- },- "node_modules/micromark-util-html-tag-name": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz",- "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT"- },- "node_modules/micromark-util-normalize-identifier": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz",- "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-symbol": "^2.0.0"- }- },- "node_modules/micromark-util-resolve-all": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz",- "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-sanitize-uri": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz",- "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-character": "^2.0.0",- "micromark-util-encode": "^2.0.0",- "micromark-util-symbol": "^2.0.0"- }- },- "node_modules/micromark-util-subtokenize": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz",- "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "devlop": "^1.0.0",- "micromark-util-chunked": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-symbol": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz",- "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT"- },- "node_modules/micromark-util-types": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz",- "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT"- },- "node_modules/ms": {- "version": "2.1.3",- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",- "license": "MIT"- },- "node_modules/nanoid": {- "version": "3.3.11",- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",- "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "bin": {- "nanoid": "bin/nanoid.cjs"- },- "engines": {- "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"- }- },- "node_modules/node-releases": {- "version": "2.0.27",- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz",- "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==",- "dev": true,- "license": "MIT"- },- "node_modules/parse-entities": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.2.tgz",- "integrity": "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==",- "license": "MIT",- "dependencies": {- "@types/unist": "^2.0.0",- "character-entities-legacy": "^3.0.0",- "character-reference-invalid": "^2.0.0",- "decode-named-character-reference": "^1.0.0",- "is-alphanumerical": "^2.0.0",- "is-decimal": "^2.0.0",- "is-hexadecimal": "^2.0.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/parse-entities/node_modules/@types/unist": {- "version": "2.0.11",- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz",- "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==",- "license": "MIT"- },- "node_modules/picocolors": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",- "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",- "dev": true,- "license": "ISC"- },- "node_modules/postcss": {- "version": "8.5.6",- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",- "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/postcss"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "nanoid": "^3.3.11",- "picocolors": "^1.1.1",- "source-map-js": "^1.2.1"- },- "engines": {- "node": "^10 || ^12 || >=14"- }- },- "node_modules/property-information": {- "version": "7.1.0",- "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.1.0.tgz",- "integrity": "sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/react": {- "version": "18.3.1",- "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",- "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",- "license": "MIT",- "dependencies": {- "loose-envify": "^1.1.0"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/react-dom": {- "version": "18.3.1",- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",- "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",- "license": "MIT",- "dependencies": {- "loose-envify": "^1.1.0",- "scheduler": "^0.23.2"- },- "peerDependencies": {- "react": "^18.3.1"- }- },- "node_modules/react-markdown": {- "version": "9.1.0",- "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-9.1.0.tgz",- "integrity": "sha512-xaijuJB0kzGiUdG7nc2MOMDUDBWPyGAjZtUrow9XxUeua8IqeP+VlIfAZ3bphpcLTnSZXz6z9jcVC/TCwbfgdw==",- "license": "MIT",- "dependencies": {- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "devlop": "^1.0.0",- "hast-util-to-jsx-runtime": "^2.0.0",- "html-url-attributes": "^3.0.0",- "mdast-util-to-hast": "^13.0.0",- "remark-parse": "^11.0.0",- "remark-rehype": "^11.0.0",- "unified": "^11.0.0",- "unist-util-visit": "^5.0.0",- "vfile": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- },- "peerDependencies": {- "@types/react": ">=18",- "react": ">=18"- }- },- "node_modules/react-refresh": {- "version": "0.17.0",- "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",- "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/remark-parse": {- "version": "11.0.0",- "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz",- "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "mdast-util-from-markdown": "^2.0.0",- "micromark-util-types": "^2.0.0",- "unified": "^11.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/remark-rehype": {- "version": "11.1.2",- "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.2.tgz",- "integrity": "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==",- "license": "MIT",- "dependencies": {- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "mdast-util-to-hast": "^13.0.0",- "unified": "^11.0.0",- "vfile": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/rollup": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.56.0.tgz",- "integrity": "sha512-9FwVqlgUHzbXtDg9RCMgodF3Ua4Na6Gau+Sdt9vyCN4RhHfVKX2DCHy3BjMLTDd47ITDhYAnTwGulWTblJSDLg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/estree": "1.0.8"- },- "bin": {- "rollup": "dist/bin/rollup"- },- "engines": {- "node": ">=18.0.0",- "npm": ">=8.0.0"- },- "optionalDependencies": {- "@rollup/rollup-android-arm-eabi": "4.56.0",- "@rollup/rollup-android-arm64": "4.56.0",- "@rollup/rollup-darwin-arm64": "4.56.0",- "@rollup/rollup-darwin-x64": "4.56.0",- "@rollup/rollup-freebsd-arm64": "4.56.0",- "@rollup/rollup-freebsd-x64": "4.56.0",- "@rollup/rollup-linux-arm-gnueabihf": "4.56.0",- "@rollup/rollup-linux-arm-musleabihf": "4.56.0",- "@rollup/rollup-linux-arm64-gnu": "4.56.0",- "@rollup/rollup-linux-arm64-musl": "4.56.0",- "@rollup/rollup-linux-loong64-gnu": "4.56.0",- "@rollup/rollup-linux-loong64-musl": "4.56.0",- "@rollup/rollup-linux-ppc64-gnu": "4.56.0",- "@rollup/rollup-linux-ppc64-musl": "4.56.0",- "@rollup/rollup-linux-riscv64-gnu": "4.56.0",- "@rollup/rollup-linux-riscv64-musl": "4.56.0",- "@rollup/rollup-linux-s390x-gnu": "4.56.0",- "@rollup/rollup-linux-x64-gnu": "4.56.0",- "@rollup/rollup-linux-x64-musl": "4.56.0",- "@rollup/rollup-openbsd-x64": "4.56.0",- "@rollup/rollup-openharmony-arm64": "4.56.0",- "@rollup/rollup-win32-arm64-msvc": "4.56.0",- "@rollup/rollup-win32-ia32-msvc": "4.56.0",- "@rollup/rollup-win32-x64-gnu": "4.56.0",- "@rollup/rollup-win32-x64-msvc": "4.56.0",- "fsevents": "~2.3.2"- }- },- "node_modules/scheduler": {- "version": "0.23.2",- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",- "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",- "license": "MIT",- "dependencies": {- "loose-envify": "^1.1.0"- }- },- "node_modules/semver": {- "version": "6.3.1",- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",- "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- }- },- "node_modules/source-map-js": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",- "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",- "dev": true,- "license": "BSD-3-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/space-separated-tokens": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz",- "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/stringify-entities": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz",- "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==",- "license": "MIT",- "dependencies": {- "character-entities-html4": "^2.0.0",- "character-entities-legacy": "^3.0.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/style-to-js": {- "version": "1.1.21",- "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.21.tgz",- "integrity": "sha512-RjQetxJrrUJLQPHbLku6U/ocGtzyjbJMP9lCNK7Ag0CNh690nSH8woqWH9u16nMjYBAok+i7JO1NP2pOy8IsPQ==",- "license": "MIT",- "dependencies": {- "style-to-object": "1.0.14"- }- },- "node_modules/style-to-object": {- "version": "1.0.14",- "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.14.tgz",- "integrity": "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw==",- "license": "MIT",- "dependencies": {- "inline-style-parser": "0.2.7"- }- },- "node_modules/trim-lines": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz",- "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/trough": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz",- "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/typescript": {- "version": "5.9.3",- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",- "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",- "dev": true,- "license": "Apache-2.0",- "bin": {- "tsc": "bin/tsc",- "tsserver": "bin/tsserver"- },- "engines": {- "node": ">=14.17"- }- },- "node_modules/unified": {- "version": "11.0.5",- "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz",- "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "bail": "^2.0.0",- "devlop": "^1.0.0",- "extend": "^3.0.0",- "is-plain-obj": "^4.0.0",- "trough": "^2.0.0",- "vfile": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-is": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz",- "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-position": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz",- "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-stringify-position": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",- "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-visit": {- "version": "5.1.0",- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz",- "integrity": "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "unist-util-is": "^6.0.0",- "unist-util-visit-parents": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-visit-parents": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz",- "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "unist-util-is": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/update-browserslist-db": {- "version": "1.2.3",- "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",- "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/browserslist"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/browserslist"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "escalade": "^3.2.0",- "picocolors": "^1.1.1"- },- "bin": {- "update-browserslist-db": "cli.js"- },- "peerDependencies": {- "browserslist": ">= 4.21.0"- }- },- "node_modules/vfile": {- "version": "6.0.3",- "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz",- "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "vfile-message": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/vfile-message": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz",- "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "unist-util-stringify-position": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/vite": {- "version": "5.4.21",- "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",- "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",- "dev": true,- "license": "MIT",- "dependencies": {- "esbuild": "^0.21.3",- "postcss": "^8.4.43",- "rollup": "^4.20.0"- },- "bin": {- "vite": "bin/vite.js"- },- "engines": {- "node": "^18.0.0 || >=20.0.0"- },- "funding": {- "url": "https://github.com/vitejs/vite?sponsor=1"- },- "optionalDependencies": {- "fsevents": "~2.3.3"- },- "peerDependencies": {- "@types/node": "^18.0.0 || >=20.0.0",- "less": "*",- "lightningcss": "^1.21.0",- "sass": "*",- "sass-embedded": "*",- "stylus": "*",- "sugarss": "*",- "terser": "^5.4.0"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- },- "less": {- "optional": true- },- "lightningcss": {- "optional": true- },- "sass": {- "optional": true- },- "sass-embedded": {- "optional": true- },- "stylus": {- "optional": true- },- "sugarss": {- "optional": true- },- "terser": {- "optional": true- }- }- },- "node_modules/yallist": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",- "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",- "dev": true,- "license": "ISC"- },- "node_modules/zwitch": {- "version": "2.0.4",- "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz",- "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- }- }-}diff --git a/vendor/openhands-typescript-client/examples/local-agent/package.json b/vendor/openhands-typescript-client/examples/local-agent/package.jsondeleted file mode 100644index dd8173f429..0000000000--- a/vendor/openhands-typescript-client/examples/local-agent/package.json+++ /dev/null@@ -1,23 +0,0 @@-{- "name": "openhands-local-agent",- "version": "1.0.0",- "description": "Browser-based agent UI with tool calling using OpenRouter",- "type": "module",- "scripts": {- "dev": "cd ../.. && npm run build && cd - && vite",- "build": "tsc && vite build",- "preview": "vite preview"- },- "dependencies": {- "react": "^18.2.0",- "react-dom": "^18.2.0",- "react-markdown": "^9.0.1"- },- "devDependencies": {- "@types/react": "^18.2.0",- "@types/react-dom": "^18.2.0",- "@vitejs/plugin-react": "^4.2.0",- "typescript": "^5.3.0",- "vite": "^5.0.0"- }-}diff --git a/vendor/openhands-typescript-client/examples/local-agent/src/App.tsx b/vendor/openhands-typescript-client/examples/local-agent/src/App.tsxdeleted file mode 100644index a55ee93ca8..0000000000--- a/vendor/openhands-typescript-client/examples/local-agent/src/App.tsx+++ /dev/null@@ -1,153 +0,0 @@-import { useState, useEffect } from 'react';-import { LLM } from '@openhands/typescript-client';-import { AuthScreen } from './components/AuthScreen';-import { AgentChatInterface } from './components/AgentChatInterface';-import { SettingsModal } from './components/SettingsModal';--export interface ChatConfig {- apiKey: string;- model: string;- temperature: number;- maxTokens: number;-}--const DEFAULT_MODEL = 'anthropic/claude-3.5-sonnet';--const POPULAR_MODELS = [- { id: 'anthropic/claude-3.5-sonnet', name: 'Claude 3.5 Sonnet' },- { id: 'anthropic/claude-3-haiku', name: 'Claude 3 Haiku' },- { id: 'openai/gpt-4o', name: 'GPT-4o' },- { id: 'openai/gpt-4o-mini', name: 'GPT-4o Mini' },- { id: 'google/gemini-pro-1.5', name: 'Gemini Pro 1.5' },- { id: 'meta-llama/llama-3.1-70b-instruct', name: 'Llama 3.1 70B' },- { id: 'mistralai/mistral-large', name: 'Mistral Large' },-];--function App() {- const [config, setConfig] = useState<ChatConfig | null>(null);- const [llm, setLlm] = useState<LLM | null>(null);- const [showSettings, setShowSettings] = useState(false);-- useEffect(() => {- const savedApiKey = localStorage.getItem('openrouter_api_key');- const savedModel = localStorage.getItem('openrouter_model') || DEFAULT_MODEL;-- if (savedApiKey) {- const loadedConfig: ChatConfig = {- apiKey: savedApiKey,- model: savedModel,- temperature: 0.7,- maxTokens: 4096,- };- setConfig(loadedConfig);- }- }, []);-- useEffect(() => {- if (config) {- const newLlm = new LLM({- apiKey: config.apiKey,- defaultModel: config.model,- defaultTemperature: config.temperature,- defaultMaxTokens: config.maxTokens,- });- setLlm(newLlm);- } else {- setLlm(null);- }- }, [config]);-- const handleAuthenticate = (apiKey: string, model: string) => {- localStorage.setItem('openrouter_api_key', apiKey);- localStorage.setItem('openrouter_model', model);-- setConfig({- apiKey,- model,- temperature: 0.7,- maxTokens: 4096,- });- };-- const handleLogout = () => {- localStorage.removeItem('openrouter_api_key');- setConfig(null);- setLlm(null);- };-- const handleModelChange = (model: string) => {- if (config) {- localStorage.setItem('openrouter_model', model);- setConfig({ ...config, model });- }- };-- const handleSettingsUpdate = (newConfig: Partial<ChatConfig>) => {- if (config) {- const updated = { ...config, ...newConfig };- setConfig(updated);- if (newConfig.model) {- localStorage.setItem('openrouter_model', newConfig.model);- }- }- setShowSettings(false);- };-- if (!config || !llm) {- return (- <AuthScreen- onAuthenticate={handleAuthenticate}- models={POPULAR_MODELS}- defaultModel={DEFAULT_MODEL}- />- );- }-- return (- <div id="app-container" className="app">- <header id="app-header" className="header">- <h1 id="app-title">- <span className="logo">π€</span>- OpenHands Agent- </h1>- <div id="header-controls" className="header-right">- <select- id="model-selector"- className="model-select"- value={config.model}- onChange={(e) => handleModelChange(e.target.value)}- >- {POPULAR_MODELS.map((model) => (- <option key={model.id} value={model.id}>- {model.name}- </option>- ))}- </select>- <div id="status-badge" className="status-badge connected">- <span className="status-dot"></span>- Agent Ready- </div>- <button id="settings-button" className="btn btn-secondary" onClick={() => setShowSettings(true)}>- βοΈ- </button>- <button id="logout-button" className="btn btn-danger" onClick={handleLogout}>- Logout- </button>- </div>- </header>-- <AgentChatInterface llm={llm} model={config.model} />-- {showSettings && (- <SettingsModal- config={config}- models={POPULAR_MODELS}- onClose={() => setShowSettings(false)}- onSave={handleSettingsUpdate}- />- )}- </div>- );-}--export default App;diff --git a/vendor/openhands-typescript-client/examples/local-agent/src/components/AgentChatInterface.tsx b/vendor/openhands-typescript-client/examples/local-agent/src/components/AgentChatInterface.tsxdeleted file mode 100644index 29f480ea31..0000000000--- a/vendor/openhands-typescript-client/examples/local-agent/src/components/AgentChatInterface.tsx+++ /dev/null@@ -1,454 +0,0 @@-import { useState, useRef, useEffect, useCallback } from 'react';-import ReactMarkdown from 'react-markdown';-import { LocalConversation, LocalWorkspace, Agent } from '@openhands/typescript-client';-import type { LLM, Tool, ToolCall } from '@openhands/typescript-client';--interface Message {- id: string;- role: 'user' | 'assistant' | 'tool';- content: string;- timestamp: Date;- toolCalls?: ToolCall[];- toolCallId?: string;- toolName?: string;-}--interface AgentChatInterfaceProps {- llm: LLM;- model: string;-}--// Define the tools including UI interaction tools-const TOOLS: Tool[] = [- {- type: 'function',- function: {- name: 'ui_interact',- description: `Retrieves a DOM element by its ID and executes JavaScript code with the element available as 'el'.-Use this to interact with UI elements: click buttons, change styles, read/set values, etc.-The element is retrieved using document.getElementById() and made available as 'el' in your code.-Returns the result of the code execution or an error message if the element is not found.`,- parameters: {- type: 'object',- properties: {- elementId: {- type: 'string',- description: 'The ID of the DOM element to retrieve (e.g., "settings-button", "chat-input")',- },- code: {- type: 'string',- description: 'JavaScript code to execute with the element available as "el". Examples: "el.click()", "el.style.backgroundColor = \'blue\'", "el.value", "el.textContent"',- },- },- required: ['elementId', 'code'],- },- },- },- {- type: 'function',- function: {- name: 'ui_list_elements',- description: `Lists all interactive elements on the page with their IDs, tag names, and text content.-Use this to discover what elements are available for interaction.-Returns a JSON array of element information.`,- parameters: {- type: 'object',- properties: {- selector: {- type: 'string',- description: 'Optional CSS selector to filter elements (default: "[id]" for all elements with IDs). Examples: "button[id]", "input[id]", "[id^=settings]"',- },- },- required: [],- },- },- },- {- type: 'function',- function: {- name: 'eval',- description: 'Evaluates arbitrary JavaScript code in the browser and returns the result. Use this for general calculations, data manipulation, or operations that don\'t target a specific element.',- parameters: {- type: 'object',- properties: {- code: {- type: 'string',- description: 'The JavaScript code to evaluate',- },- },- required: ['code'],- },- },- },- {- type: 'function',- function: {- name: 'finish',- description: 'Call this when you have completed the task and want to end the conversation.',- parameters: {- type: 'object',- properties: {- message: {- type: 'string',- description: 'Final message or summary to present to the user',- },- },- required: ['message'],- },- },- },-];--const SYSTEM_PROMPT = `You are a helpful AI assistant that can interact with UI elements on this web page.--Available tools:--1. **ui_interact** - Interact with a specific UI element by ID- - Retrieves an element by ID and executes code with it available as 'el'- - Use for: clicking buttons, changing styles, reading/setting values- - Example: elementId="settings-button", code="el.click()"- - Example: elementId="settings-button", code="el.style.backgroundColor = 'blue'"--2. **ui_list_elements** - Discover available elements on the page- - Lists all elements with IDs (or filtered by selector)- - Use this first to see what elements are available- - Returns: array of {id, tagName, type, text, value}--3. **eval** - Execute arbitrary JavaScript code- - For general calculations or operations not targeting a specific element- - Example: "2 + 2" or "Array.from({length: 10}, (_, i) => i * i)"--4. **finish** - Complete the task- - Call when you've finished the user's request--## Available UI Element IDs:-- **Header**: app-container, app-header, app-title, header-controls-- **Controls**: model-selector, status-badge, settings-button, logout-button-- **Chat**: chat-container, chat-messages, chat-input-area, chat-input, chat-send-button, chat-clear-button-- **Settings Modal** (when open): settings-modal-overlay, settings-modal, settings-model-select, settings-temperature-input, settings-tokens-input, settings-cancel-button, settings-save-button--## Workflow:-1. If unsure what elements exist, use ui_list_elements first-2. Use ui_interact to manipulate specific elements-3. Call finish when done--Remember: When using ui_interact, the element is available as 'el' in your code.`;--export function AgentChatInterface({ llm, model }: AgentChatInterfaceProps) {- const [messages, setMessages] = useState<Message[]>([]);- const [input, setInput] = useState('');- const [isLoading, setIsLoading] = useState(false);- const messagesEndRef = useRef<HTMLDivElement>(null);- const textareaRef = useRef<HTMLTextAreaElement>(null);- const conversationRef = useRef<LocalConversation | null>(null);- const pendingMessagesRef = useRef<Message[]>([]);-- useEffect(() => {- messagesEndRef.current?.scrollIntoView({ behavior: 'smooth' });- }, [messages]);-- useEffect(() => {- if (textareaRef.current) {- textareaRef.current.style.height = 'auto';- textareaRef.current.style.height = `${Math.min(textareaRef.current.scrollHeight, 200)}px`;- }- }, [input]);-- // Tool executor function that will be passed to LocalConversation- const toolExecutor = useCallback((toolCall: ToolCall): string => {- const { name, arguments: argsString } = toolCall.function;-- try {- const args = JSON.parse(argsString);-- if (name === 'ui_interact') {- const { elementId, code } = args;- console.log('[Agent Tool] ui_interact:', elementId, code);- try {- const el = document.getElementById(elementId);- if (!el) {- return `Error: Element with ID "${elementId}" not found. Use ui_list_elements to see available elements.`;- }- // Execute code with element available as 'el'- // eslint-disable-next-line no-eval- const result = eval(`(function(el) { return ${code}; })`)(el);- const resultStr = typeof result === 'undefined' ? 'undefined' :- result instanceof Element ? `<${result.tagName.toLowerCase()} id="${result.id || '(no id)'}">` :- JSON.stringify(result, null, 2);- console.log('[Agent Tool] ui_interact result:', result);- return resultStr;- } catch (evalError) {- const errorMsg = evalError instanceof Error ? evalError.message : String(evalError);- console.error('[Agent Tool] ui_interact error:', errorMsg);- return `Error: ${errorMsg}`;- }- }-- if (name === 'ui_list_elements') {- const selector = args.selector || '[id]';- console.log('[Agent Tool] ui_list_elements:', selector);- try {- const elements = document.querySelectorAll(selector);- const elementList = Array.from(elements).map((el) => {- const htmlEl = el as HTMLElement;- const inputEl = el as HTMLInputElement;- return {- id: htmlEl.id || '(no id)',- tagName: htmlEl.tagName.toLowerCase(),- type: inputEl.type || undefined,- text: (htmlEl.textContent || '').trim().slice(0, 50) || undefined,- value: inputEl.value || undefined,- className: htmlEl.className || undefined,- };- }).filter(e => e.id !== '(no id)'); // Only return elements with IDs- console.log('[Agent Tool] ui_list_elements result:', elementList);- return JSON.stringify(elementList, null, 2);- } catch (error) {- const errorMsg = error instanceof Error ? error.message : String(error);- return `Error: ${errorMsg}`;- }- }-- if (name === 'eval') {- const code = args.code || '';- console.log('[Agent Tool] Evaluating:', code);- try {- // eslint-disable-next-line no-eval- const result = eval(code);- const resultStr = typeof result === 'undefined' ? 'undefined' : JSON.stringify(result, null, 2);- console.log('[Agent Tool] Result:', result);- return resultStr;- } catch (evalError) {- const errorMsg = evalError instanceof Error ? evalError.message : String(evalError);- console.error('[Agent Tool] Eval error:', errorMsg);- return `Error: ${errorMsg}`;- }- }-- if (name === 'finish') {- return `Task completed: ${args.message || ''}`;- }-- return `Unknown tool: ${name}`;- } catch (error) {- return `Error executing tool: ${error instanceof Error ? error.message : 'Unknown error'}`;- }- }, []);-- // Event callback for the conversation- const handleConversationEvent = useCallback((event: unknown) => {- const eventData = event as Record<string, unknown>;-- if (eventData.kind === 'assistant_message' && eventData.content) {- pendingMessagesRef.current.push({- id: `${Date.now()}-assistant-${Math.random()}`,- role: 'assistant',- content: eventData.content as string,- timestamp: new Date(),- });- } else if (eventData.kind === 'tool_call') {- // Show the tool call with its inputs- pendingMessagesRef.current.push({- id: `${Date.now()}-toolcall-${Math.random()}`,- role: 'tool',- content: eventData.arguments as string,- timestamp: new Date(),- toolName: eventData.tool as string,- toolCallId: 'call',- });- } else if (eventData.kind === 'tool_result') {- // Show the tool result- pendingMessagesRef.current.push({- id: `${Date.now()}-toolresult-${Math.random()}`,- role: 'tool',- content: eventData.result as string,- timestamp: new Date(),- toolName: eventData.tool as string,- });- } else if (eventData.kind === 'finish') {- pendingMessagesRef.current.push({- id: `${Date.now()}-finish-${Math.random()}`,- role: 'assistant',- content: eventData.message as string,- timestamp: new Date(),- });- }- }, []);-- const sendMessage = async () => {- if (!input.trim() || isLoading) return;-- const userMessage: Message = {- id: Date.now().toString(),- role: 'user',- content: input.trim(),- timestamp: new Date(),- };-- setMessages((prev) => [...prev, userMessage]);- setInput('');- setIsLoading(true);-- // Clear pending messages for this run- pendingMessagesRef.current = [];-- try {- // Create conversation if it doesn't exist- if (!conversationRef.current) {- const workspace = new LocalWorkspace({ workingDir: '/workspace' });- const agent = new Agent({- llm: { model, api_key: '' },- });-- conversationRef.current = new LocalConversation(agent, workspace, {- llm,- systemPrompt: SYSTEM_PROMPT,- tools: TOOLS,- toolExecutor,- maxIterations: 10,- callback: handleConversationEvent,- });-- // Start the conversation with the first message- await conversationRef.current.start({ initialMessage: userMessage.content });- } else {- // Send follow-up message to existing conversation- await conversationRef.current.sendMessage(userMessage.content);- }-- // Run the agent loop- await conversationRef.current.run();-- // Update messages with collected events- setMessages((prev) => [...prev, ...pendingMessagesRef.current]);-- } catch (error) {- console.error('Error in agent loop:', error);-- const errorMessage: Message = {- id: (Date.now() + 1).toString(),- role: 'assistant',- content: `Error: ${error instanceof Error ? error.message : 'Failed to get response'}`,- timestamp: new Date(),- };-- setMessages((prev) => [...prev, errorMessage]);- } finally {- setIsLoading(false);- }- };-- const handleKeyDown = (e: React.KeyboardEvent) => {- if (e.key === 'Enter' && !e.shiftKey) {- e.preventDefault();- sendMessage();- }- };-- const clearChat = () => {- setMessages([]);- conversationRef.current = null; // Reset conversation to start fresh- };-- return (- <div id="chat-container" className="chat-container">- {messages.length === 0 ? (- <div id="chat-empty-state" className="empty-state">- <div className="icon">π€</div>- <h3 id="chat-empty-title">Agent Ready</h3>- <p id="chat-empty-description">- This agent can interact with UI elements! Try asking it to click buttons,- change colors, or manipulate elements by their IDs.- </p>- <p id="chat-empty-examples" style={{ marginTop: '1rem', fontSize: '0.875rem', color: 'var(--text-secondary)' }}>- Examples: "Turn the settings button blue" or "Click the logout button" or "List all buttons on the page"- </p>- </div>- ) : (- <div id="chat-messages" className="messages">- {messages.map((message, index) => (- <div key={message.id} id={`chat-message-${index}`} className={`message ${message.role}`}>- <div className="message-avatar">- {message.role === 'user' ? 'π€' : message.role === 'tool' ? 'π§' : 'π€'}- </div>- <div className="message-content">- {message.role === 'tool' ? (- <div className="tool-result">- <div className="tool-header">- <span className="tool-icon">{message.toolCallId ? 'π€' : 'π₯'}</span>- <span className="tool-name">{message.toolName}</span>- <span className="tool-type" style={{ marginLeft: '0.5rem', fontSize: '0.75rem', opacity: 0.7 }}>- {message.toolCallId ? '(call)' : '(result)'}- </span>- </div>- <pre className="tool-output">{message.content}</pre>- </div>- ) : (- <>- <ReactMarkdown>{message.content}</ReactMarkdown>- {message.toolCalls && message.toolCalls.length > 0 && (- <div className="tool-calls">- {message.toolCalls.map((tc) => (- <div key={tc.id} className="tool-call">- <span className="tool-icon">π§</span>- <span className="tool-name">{tc.function.name}</span>- <code className="tool-args">{tc.function.arguments}</code>- </div>- ))}- </div>- )}- </>- )}- </div>- </div>- ))}- {isLoading && (- <div id="chat-loading-indicator" className="message assistant">- <div className="message-avatar">π€</div>- <div className="typing-indicator">- <div className="typing-dots">- <span></span>- <span></span>- <span></span>- </div>- Thinking...- </div>- </div>- )}- <div ref={messagesEndRef} />- </div>- )}-- <div id="chat-input-area" className="input-area">- <div id="chat-input-container" className="input-container">- <textarea- id="chat-input"- ref={textareaRef}- value={input}- onChange={(e) => setInput(e.target.value)}- onKeyDown={handleKeyDown}- placeholder="Ask the agent to do something... (Shift+Enter for new line)"- disabled={isLoading}- rows={1}- />- <button- id="chat-send-button"- className="send-btn"- onClick={sendMessage}- disabled={!input.trim() || isLoading}- title="Send message"- >- β€- </button>- </div>- {messages.length > 0 && (- <div style={{ marginTop: '0.5rem', textAlign: 'center' }}>- <button id="chat-clear-button" className="btn btn-secondary" onClick={clearChat} style={{ fontSize: '0.75rem' }}>- Clear conversation- </button>- </div>- )}- </div>- </div>- );-}diff --git a/vendor/openhands-typescript-client/examples/local-agent/src/components/AuthScreen.tsx b/vendor/openhands-typescript-client/examples/local-agent/src/components/AuthScreen.tsxdeleted file mode 100644index 592b6936a2..0000000000--- a/vendor/openhands-typescript-client/examples/local-agent/src/components/AuthScreen.tsx+++ /dev/null@@ -1,109 +0,0 @@-import { useState } from 'react';--interface AuthScreenProps {- onAuthenticate: (apiKey: string, model: string) => void;- models: { id: string; name: string }[];- defaultModel: string;-}--export function AuthScreen({ onAuthenticate, models, defaultModel }: AuthScreenProps) {- const [apiKey, setApiKey] = useState('');- const [model, setModel] = useState(defaultModel);- const [isLoading, setIsLoading] = useState(false);- const [error, setError] = useState<string | null>(null);-- const handleSubmit = async (e: React.FormEvent) => {- e.preventDefault();- setError(null);- setIsLoading(true);-- try {- // Validate API key by making a test request- const response = await fetch('https://openrouter.ai/api/v1/auth/key', {- headers: {- 'Authorization': `Bearer ${apiKey}`,- },- });-- if (!response.ok) {- throw new Error('Invalid API key. Please check and try again.');- }-- onAuthenticate(apiKey, model);- } catch (err) {- setError(err instanceof Error ? err.message : 'Authentication failed');- } finally {- setIsLoading(false);- }- };-- return (- <div id="auth-app-container" className="app">- <header id="auth-header" className="header">- <h1 id="auth-title">- <span className="logo">π€</span>- OpenHands Chat- </h1>- </header>-- <div id="auth-screen" className="auth-screen">- <div id="auth-card" className="auth-card">- <h2 id="auth-welcome-title">Welcome</h2>- <p id="auth-welcome-text">- Connect your OpenRouter API key to start chatting with AI models.- </p>-- <form id="auth-form" className="auth-form" onSubmit={handleSubmit}>- {error && <div id="auth-error-message" className="error-message">{error}</div>}-- <div className="form-group">- <label htmlFor="auth-api-key-input">OpenRouter API Key</label>- <input- id="auth-api-key-input"- type="password"- value={apiKey}- onChange={(e) => setApiKey(e.target.value)}- placeholder="sk-or-v1-..."- required- />- </div>-- <div className="form-group">- <label htmlFor="auth-model-select">Default Model</label>- <select- id="auth-model-select"- className="model-select"- value={model}- onChange={(e) => setModel(e.target.value)}- style={{ width: '100%' }}- >- {models.map((m) => (- <option key={m.id} value={m.id}>- {m.name}- </option>- ))}- </select>- </div>-- <button- id="auth-connect-button"- type="submit"- className="btn btn-primary"- disabled={!apiKey || isLoading}- style={{ width: '100%' }}- >- {isLoading ? 'Connecting...' : 'Connect'}- </button>- </form>-- <div id="auth-link-container" className="auth-link">- Don't have an API key?{' '}- <a id="auth-openrouter-link" href="https://openrouter.ai/keys" target="_blank" rel="noopener noreferrer">- Get one at OpenRouter β- </a>- </div>- </div>- </div>- </div>- );-}diff --git a/vendor/openhands-typescript-client/examples/local-agent/src/components/SettingsModal.tsx b/vendor/openhands-typescript-client/examples/local-agent/src/components/SettingsModal.tsxdeleted file mode 100644index 3081714d63..0000000000--- a/vendor/openhands-typescript-client/examples/local-agent/src/components/SettingsModal.tsx+++ /dev/null@@ -1,91 +0,0 @@-import { useState } from 'react';-import type { ChatConfig } from '../App';--interface SettingsModalProps {- config: ChatConfig;- models: { id: string; name: string }[];- onClose: () => void;- onSave: (config: Partial<ChatConfig>) => void;-}--export function SettingsModal({ config, models, onClose, onSave }: SettingsModalProps) {- const [model, setModel] = useState(config.model);- const [temperature, setTemperature] = useState(config.temperature);- const [maxTokens, setMaxTokens] = useState(config.maxTokens);-- const handleSave = () => {- onSave({ model, temperature, maxTokens });- };-- return (- <div id="settings-modal-overlay" className="modal-overlay" onClick={onClose}>- <div id="settings-modal" className="modal" onClick={(e) => e.stopPropagation()}>- <h3 id="settings-modal-title">Settings</h3>-- <div className="form-group">- <label htmlFor="settings-model-select">Model</label>- <select- id="settings-model-select"- className="model-select"- value={model}- onChange={(e) => setModel(e.target.value)}- style={{ width: '100%' }}- >- {models.map((m) => (- <option key={m.id} value={m.id}>- {m.name}- </option>- ))}- </select>- </div>-- <div className="form-group" style={{ marginTop: '1rem' }}>- <label id="settings-temperature-label" htmlFor="settings-temperature-input">- Temperature: {temperature.toFixed(1)}- </label>- <input- id="settings-temperature-input"- type="range"- min="0"- max="2"- step="0.1"- value={temperature}- onChange={(e) => setTemperature(parseFloat(e.target.value))}- style={{ width: '100%' }}- />- <div style={{ display: 'flex', justifyContent: 'space-between', fontSize: '0.75rem', color: 'var(--text-secondary)' }}>- <span>Precise</span>- <span>Creative</span>- </div>- </div>-- <div className="form-group" style={{ marginTop: '1rem' }}>- <label id="settings-tokens-label" htmlFor="settings-tokens-input">Max Tokens: {maxTokens}</label>- <input- id="settings-tokens-input"- type="range"- min="256"- max="8192"- step="256"- value={maxTokens}- onChange={(e) => setMaxTokens(parseInt(e.target.value))}- style={{ width: '100%' }}- />- <div style={{ display: 'flex', justifyContent: 'space-between', fontSize: '0.75rem', color: 'var(--text-secondary)' }}>- <span>256</span>- <span>8192</span>- </div>- </div>-- <div id="settings-modal-actions" className="modal-actions">- <button id="settings-cancel-button" className="btn btn-secondary" onClick={onClose}>- Cancel- </button>- <button id="settings-save-button" className="btn btn-primary" onClick={handleSave}>- Save Changes- </button>- </div>- </div>- </div>- );-}diff --git a/vendor/openhands-typescript-client/examples/local-agent/src/main.tsx b/vendor/openhands-typescript-client/examples/local-agent/src/main.tsxdeleted file mode 100644index 751bb41a29..0000000000--- a/vendor/openhands-typescript-client/examples/local-agent/src/main.tsx+++ /dev/null@@ -1,39 +0,0 @@-import React from 'react';-import ReactDOM from 'react-dom/client';-import App from './App';-import './styles.css';--class ErrorBoundary extends React.Component<- { children: React.ReactNode },- { hasError: boolean; error: Error | null }-> {- constructor(props: { children: React.ReactNode }) {- super(props);- this.state = { hasError: false, error: null };- }-- static getDerivedStateFromError(error: Error) {- return { hasError: true, error };- }-- render() {- if (this.state.hasError) {- return (- <div style={{ padding: '2rem', color: 'red' }}>- <h1>Something went wrong</h1>- <pre>{this.state.error?.message}</pre>- <pre>{this.state.error?.stack}</pre>- </div>- );- }- return this.props.children;- }-}--ReactDOM.createRoot(document.getElementById('root')!).render(- <React.StrictMode>- <ErrorBoundary>- <App />- </ErrorBoundary>- </React.StrictMode>-);diff --git a/vendor/openhands-typescript-client/examples/local-agent/src/styles.css b/vendor/openhands-typescript-client/examples/local-agent/src/styles.cssdeleted file mode 100644index 36015834c3..0000000000--- a/vendor/openhands-typescript-client/examples/local-agent/src/styles.css+++ /dev/null@@ -1,603 +0,0 @@-* {- box-sizing: border-box;- margin: 0;- padding: 0;-}--:root {- --primary: #6366f1;- --primary-dark: #4f46e5;- --primary-light: #818cf8;- --bg: #0f0f0f;- --bg-secondary: #1a1a1a;- --bg-tertiary: #262626;- --text: #fafafa;- --text-secondary: #a1a1aa;- --border: #333;- --success: #22c55e;- --error: #ef4444;- --warning: #f59e0b;- --tool: #8b5cf6;-}--body {- font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;- background: var(--bg);- color: var(--text);- min-height: 100vh;-}--/* App Layout */-.app {- display: flex;- flex-direction: column;- height: 100vh;- max-width: 1200px;- margin: 0 auto;-}--/* Header */-.header {- display: flex;- align-items: center;- justify-content: space-between;- padding: 1rem 1.5rem;- border-bottom: 1px solid var(--border);- background: var(--bg-secondary);-}--.header h1 {- font-size: 1.25rem;- font-weight: 600;- display: flex;- align-items: center;- gap: 0.5rem;-}--.header .logo {- font-size: 1.5rem;-}--.header-right {- display: flex;- align-items: center;- gap: 1rem;-}--.model-select {- padding: 0.5rem 1rem;- background: var(--bg-tertiary);- border: 1px solid var(--border);- border-radius: 0.5rem;- color: var(--text);- font-size: 0.875rem;- cursor: pointer;-}--.model-select:focus {- outline: none;- border-color: var(--primary);-}--.status-badge {- display: flex;- align-items: center;- gap: 0.5rem;- padding: 0.5rem 0.75rem;- border-radius: 9999px;- font-size: 0.75rem;- font-weight: 500;-}--.status-badge.connected {- background: rgba(34, 197, 94, 0.1);- color: var(--success);-}--.status-badge.disconnected {- background: rgba(239, 68, 68, 0.1);- color: var(--error);-}--.status-dot {- width: 8px;- height: 8px;- border-radius: 50%;- background: currentColor;-}--/* Auth Screen */-.auth-screen {- flex: 1;- display: flex;- align-items: center;- justify-content: center;- padding: 2rem;-}--.auth-card {- background: var(--bg-secondary);- border: 1px solid var(--border);- border-radius: 1rem;- padding: 2rem;- width: 100%;- max-width: 400px;-}--.auth-card h2 {- font-size: 1.5rem;- margin-bottom: 0.5rem;- text-align: center;-}--.auth-card p {- color: var(--text-secondary);- font-size: 0.875rem;- text-align: center;- margin-bottom: 1.5rem;-}--.auth-form {- display: flex;- flex-direction: column;- gap: 1rem;-}--.form-group {- display: flex;- flex-direction: column;- gap: 0.5rem;-}--.form-group label {- font-size: 0.875rem;- font-weight: 500;-}--.form-group input {- padding: 0.75rem 1rem;- background: var(--bg-tertiary);- border: 1px solid var(--border);- border-radius: 0.5rem;- color: var(--text);- font-size: 0.875rem;-}--.form-group input:focus {- outline: none;- border-color: var(--primary);-}--.form-group input::placeholder {- color: var(--text-secondary);-}--.btn {- padding: 0.75rem 1.5rem;- border-radius: 0.5rem;- font-size: 0.875rem;- font-weight: 500;- cursor: pointer;- transition: all 0.2s;- border: none;-}--.btn-primary {- background: var(--primary);- color: white;-}--.btn-primary:hover {- background: var(--primary-dark);-}--.btn-primary:disabled {- opacity: 0.5;- cursor: not-allowed;-}--.btn-secondary {- background: var(--bg-tertiary);- color: var(--text);- border: 1px solid var(--border);-}--.btn-secondary:hover {- background: var(--border);-}--.btn-danger {- background: rgba(239, 68, 68, 0.1);- color: var(--error);- border: 1px solid var(--error);-}--.btn-danger:hover {- background: rgba(239, 68, 68, 0.2);-}--.auth-link {- text-align: center;- margin-top: 1rem;- font-size: 0.875rem;-}--.auth-link a {- color: var(--primary-light);- text-decoration: none;-}--.auth-link a:hover {- text-decoration: underline;-}--.error-message {- background: rgba(239, 68, 68, 0.1);- border: 1px solid var(--error);- color: var(--error);- padding: 0.75rem;- border-radius: 0.5rem;- font-size: 0.875rem;-}--/* Chat Area */-.chat-container {- flex: 1;- display: flex;- flex-direction: column;- overflow: hidden;-}--.messages {- flex: 1;- overflow-y: auto;- padding: 1rem;- display: flex;- flex-direction: column;- gap: 1rem;-}--.message {- display: flex;- gap: 0.75rem;- max-width: 85%;-}--.message.user {- align-self: flex-end;- flex-direction: row-reverse;-}--.message.assistant {- align-self: flex-start;-}--.message.tool {- align-self: flex-start;- max-width: 70%;-}--.message-avatar {- width: 32px;- height: 32px;- border-radius: 50%;- display: flex;- align-items: center;- justify-content: center;- font-size: 1rem;- flex-shrink: 0;-}--.message.user .message-avatar {- background: var(--primary);-}--.message.assistant .message-avatar {- background: var(--bg-tertiary);- border: 1px solid var(--border);-}--.message.tool .message-avatar {- background: rgba(139, 92, 246, 0.2);- border: 1px solid var(--tool);-}--.message-content {- background: var(--bg-secondary);- border: 1px solid var(--border);- border-radius: 1rem;- padding: 0.75rem 1rem;- font-size: 0.9375rem;- line-height: 1.5;-}--.message.user .message-content {- background: var(--primary);- border-color: var(--primary);-}--.message.tool .message-content {- background: rgba(139, 92, 246, 0.1);- border-color: var(--tool);-}--.message-content pre {- background: var(--bg);- padding: 0.75rem;- border-radius: 0.5rem;- overflow-x: auto;- margin: 0.5rem 0;-}--.message-content code {- font-family: 'Fira Code', monospace;- font-size: 0.875rem;-}--.message-content p {- margin: 0.5rem 0;-}--.message-content p:first-child {- margin-top: 0;-}--.message-content p:last-child {- margin-bottom: 0;-}--/* Tool calls styling */-.tool-calls {- margin-top: 0.75rem;- padding-top: 0.75rem;- border-top: 1px solid var(--border);-}--.tool-call {- display: flex;- align-items: center;- gap: 0.5rem;- padding: 0.5rem;- background: rgba(139, 92, 246, 0.1);- border-radius: 0.5rem;- margin-bottom: 0.5rem;- flex-wrap: wrap;-}--.tool-call:last-child {- margin-bottom: 0;-}--.tool-icon {- font-size: 0.875rem;-}--.tool-name {- font-weight: 500;- color: var(--tool);- font-size: 0.875rem;-}--.tool-args {- font-family: 'Fira Code', monospace;- font-size: 0.75rem;- background: var(--bg);- padding: 0.25rem 0.5rem;- border-radius: 0.25rem;- color: var(--text-secondary);-}--/* Tool result styling */-.tool-result {- display: flex;- flex-direction: column;- gap: 0.5rem;-}--.tool-header {- display: flex;- align-items: center;- gap: 0.5rem;-}--.tool-output {- font-family: 'Fira Code', monospace;- font-size: 0.875rem;- background: var(--bg);- padding: 0.5rem;- border-radius: 0.25rem;- margin: 0;- white-space: pre-wrap;- word-break: break-word;-}--.typing-indicator {- display: flex;- align-items: center;- gap: 0.5rem;- padding: 0.75rem 1rem;- background: var(--bg-secondary);- border: 1px solid var(--border);- border-radius: 1rem;- color: var(--text-secondary);- font-size: 0.875rem;-}--.typing-dots {- display: flex;- gap: 0.25rem;-}--.typing-dots span {- width: 6px;- height: 6px;- background: var(--text-secondary);- border-radius: 50%;- animation: bounce 1.4s infinite ease-in-out both;-}--.typing-dots span:nth-child(1) {- animation-delay: -0.32s;-}--.typing-dots span:nth-child(2) {- animation-delay: -0.16s;-}--@keyframes bounce {- 0%, 80%, 100% {- transform: scale(0);- }- 40% {- transform: scale(1);- }-}--/* Input Area */-.input-area {- padding: 1rem;- border-top: 1px solid var(--border);- background: var(--bg-secondary);-}--.input-container {- display: flex;- gap: 0.75rem;- align-items: flex-end;-}--.input-container textarea {- flex: 1;- padding: 0.75rem 1rem;- background: var(--bg-tertiary);- border: 1px solid var(--border);- border-radius: 0.75rem;- color: var(--text);- font-size: 0.9375rem;- font-family: inherit;- resize: none;- min-height: 44px;- max-height: 200px;-}--.input-container textarea:focus {- outline: none;- border-color: var(--primary);-}--.input-container textarea::placeholder {- color: var(--text-secondary);-}--.send-btn {- width: 44px;- height: 44px;- border-radius: 0.75rem;- background: var(--primary);- border: none;- color: white;- font-size: 1.25rem;- cursor: pointer;- display: flex;- align-items: center;- justify-content: center;- transition: all 0.2s;-}--.send-btn:hover {- background: var(--primary-dark);-}--.send-btn:disabled {- opacity: 0.5;- cursor: not-allowed;-}--/* Settings Modal */-.modal-overlay {- position: fixed;- inset: 0;- background: rgba(0, 0, 0, 0.7);- display: flex;- align-items: center;- justify-content: center;- z-index: 1000;-}--.modal {- background: var(--bg-secondary);- border: 1px solid var(--border);- border-radius: 1rem;- padding: 1.5rem;- width: 90%;- max-width: 500px;- max-height: 90vh;- overflow-y: auto;-}--.modal h3 {- font-size: 1.25rem;- margin-bottom: 1rem;-}--.modal-actions {- display: flex;- justify-content: flex-end;- gap: 0.75rem;- margin-top: 1.5rem;-}--/* Empty State */-.empty-state {- flex: 1;- display: flex;- flex-direction: column;- align-items: center;- justify-content: center;- color: var(--text-secondary);- text-align: center;- padding: 2rem;-}--.empty-state .icon {- font-size: 3rem;- margin-bottom: 1rem;-}--.empty-state h3 {- font-size: 1.25rem;- color: var(--text);- margin-bottom: 0.5rem;-}--.empty-state p {- max-width: 400px;- line-height: 1.5;-}--.empty-state code {- background: var(--bg-tertiary);- padding: 0.125rem 0.375rem;- border-radius: 0.25rem;- font-family: 'Fira Code', monospace;- font-size: 0.875rem;- color: var(--tool);-}--/* Scrollbar */-::-webkit-scrollbar {- width: 8px;-}--::-webkit-scrollbar-track {- background: transparent;-}--::-webkit-scrollbar-thumb {- background: var(--border);- border-radius: 4px;-}--::-webkit-scrollbar-thumb:hover {- background: var(--text-secondary);-}diff --git a/vendor/openhands-typescript-client/examples/local-agent/src/vite-env.d.ts b/vendor/openhands-typescript-client/examples/local-agent/src/vite-env.d.tsdeleted file mode 100644index 11f02fe2a0..0000000000--- a/vendor/openhands-typescript-client/examples/local-agent/src/vite-env.d.ts+++ /dev/null@@ -1 +0,0 @@-/// <reference types="vite/client" />diff --git a/vendor/openhands-typescript-client/examples/local-agent/tsconfig.json b/vendor/openhands-typescript-client/examples/local-agent/tsconfig.jsondeleted file mode 100644index ed6ad0d1d4..0000000000--- a/vendor/openhands-typescript-client/examples/local-agent/tsconfig.json+++ /dev/null@@ -1,24 +0,0 @@-{- "compilerOptions": {- "target": "ES2020",- "useDefineForClassFields": true,- "lib": ["ES2020", "DOM", "DOM.Iterable"],- "module": "ESNext",- "skipLibCheck": true,- "moduleResolution": "bundler",- "allowImportingTsExtensions": true,- "resolveJsonModule": true,- "isolatedModules": true,- "noEmit": true,- "jsx": "react-jsx",- "strict": true,- "noUnusedLocals": true,- "noUnusedParameters": true,- "noFallthroughCasesInSwitch": true,- "baseUrl": ".",- "paths": {- "@openhands/typescript-client": ["../../dist"]- }- },- "include": ["src"]-}diff --git a/vendor/openhands-typescript-client/examples/local-agent/vite.config.ts b/vendor/openhands-typescript-client/examples/local-agent/vite.config.tsdeleted file mode 100644index a88c47b24c..0000000000--- a/vendor/openhands-typescript-client/examples/local-agent/vite.config.ts+++ /dev/null@@ -1,17 +0,0 @@-import { defineConfig } from 'vite';-import react from '@vitejs/plugin-react';-import path from 'path';--export default defineConfig({- plugins: [react()],- resolve: {- alias: {- '@openhands/typescript-client': path.resolve(__dirname, '../../dist'),- },- },- server: {- port: 12001,- host: true,- allowedHosts: true,- },-});diff --git a/vendor/openhands-typescript-client/examples/local/README.md b/vendor/openhands-typescript-client/examples/local/README.mddeleted file mode 100644index 71795826c1..0000000000--- a/vendor/openhands-typescript-client/examples/local/README.md+++ /dev/null@@ -1,161 +0,0 @@-# OpenHands Local Chat--A browser-based chat UI that demonstrates the OpenHands TypeScript SDK's `LLM` class with OpenRouter integration.----## Features--- π **OpenRouter Authentication** - Securely connect with your API key-- π¬ **Real-time Chat** - Conversational interface with message history-- π€ **Multiple Models** - Switch between Claude, GPT-4, Gemini, Llama, and more-- βοΈ **Configurable Settings** - Adjust temperature and max tokens-- π **Dark Mode** - Beautiful dark theme UI-- π± **Responsive** - Works on desktop and mobile--## Quick Start--### Prerequisites--- Node.js 18+-- An OpenRouter API key ([get one here](https://openrouter.ai/keys))--### Setup--```bash-# From the typescript-client directory, build the SDK first-cd /path/to/typescript-client-npm install-npm run build--# Then set up the example app-cd examples/local-npm install-npm run dev-```--### Running--1. Open http://localhost:12000 in your browser-2. Enter your OpenRouter API key-3. Select a model and start chatting!--## Available Models--The app comes pre-configured with popular models:--| Model | Description |-|-------|-------------|-| Claude 3.5 Sonnet | Best for complex reasoning and coding |-| Claude 3 Haiku | Fast and efficient |-| GPT-4o | OpenAI's latest flagship |-| GPT-4o Mini | Faster, cheaper GPT-4 |-| Gemini Pro 1.5 | Google's advanced model |-| Llama 3.1 70B | Meta's open source model |-| Mistral Large | Mistral's premium model |--You can access 300+ more models through OpenRouter's unified API.--## Project Structure--```-examples/local/-βββ index.html # Entry HTML file-βββ package.json # Dependencies-βββ tsconfig.json # TypeScript config-βββ vite.config.ts # Vite bundler config-βββ src/- βββ main.tsx # React entry point- βββ App.tsx # Main app component- βββ styles.css # Global styles- βββ components/- βββ AuthScreen.tsx # API key input- βββ ChatInterface.tsx # Chat messages & input- βββ SettingsModal.tsx # Model settings-```--## How It Works--This example demonstrates using the `LLM` class from the TypeScript SDK. The `LLM` class uses OpenRouter under the hood to provide access to 300+ models:--```typescript-import { LLM } from '@openhands/typescript-client';--// Create LLM instance (uses OpenRouter under the hood)-const llm = new LLM({- apiKey: 'your-api-key',- defaultModel: 'anthropic/claude-3.5-sonnet',- defaultTemperature: 0.7,- defaultMaxTokens: 4096,-});--// Send a message using chatCompletion-const response = await llm.chatCompletion({- messages: [- { role: 'user', content: 'Hello!' }- ],- model: 'anthropic/claude-3.5-sonnet',-});--console.log(response.choices[0].message.content);--// Or use the simple generate() helper-const text = await llm.generate('Hello!');-console.log(text);-```--## Configuration--### Environment Variables--The app stores settings in localStorage:-- `openrouter_api_key` - Your OpenRouter API key-- `openrouter_model` - Selected model ID--### Settings--Click the βοΈ button to adjust:-- **Model** - Switch between available models-- **Temperature** - 0.0 (precise) to 2.0 (creative)-- **Max Tokens** - Response length limit (256-8192)--## Development--```bash-# Start dev server with hot reload-npm run dev--# Build for production-npm run build--# Preview production build-npm run preview-```--## Security Notes--- API keys are stored in localStorage (client-side only)-- Keys are validated against OpenRouter's API before use-- All API calls go directly to OpenRouter (no backend proxy)-- Click "Logout" to clear stored credentials--## Troubleshooting--### "Invalid API key" error-- Make sure your API key starts with `sk-or-v1-`-- Check that your key has available credits at openrouter.ai--### Build errors-- Ensure the main SDK is built first: `cd ../.. && npm run build`-- Try clearing node_modules: `rm -rf node_modules && npm install`--### CORS issues-- OpenRouter's API supports browser requests-- If issues persist, check your API key permissions--## Related--- [OpenRouter Documentation](https://openrouter.ai/docs)-- [OpenHands TypeScript SDK](../../README.md)-- [Model Pricing](https://openrouter.ai/models)-- [Local Agent Example](../local-agent/) - Agent with tool callingdiff --git a/vendor/openhands-typescript-client/examples/local/index.html b/vendor/openhands-typescript-client/examples/local/index.htmldeleted file mode 100644index 8a23722c88..0000000000--- a/vendor/openhands-typescript-client/examples/local/index.html+++ /dev/null@@ -1,15 +0,0 @@-<!DOCTYPE html>-<html lang="en">- <head>- <meta charset="UTF-8" />- <meta name="viewport" content="width=device-width, initial-scale=1.0" />- <title>OpenHands Local Chat</title>- <link rel="preconnect" href="https://fonts.googleapis.com">- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>- <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&display=swap" rel="stylesheet">- </head>- <body>- <div id="root"></div>- <script type="module" src="/src/main.tsx"></script>- </body>-</html>diff --git a/vendor/openhands-typescript-client/examples/local/package-lock.json b/vendor/openhands-typescript-client/examples/local/package-lock.jsondeleted file mode 100644index efcae38127..0000000000--- a/vendor/openhands-typescript-client/examples/local/package-lock.json+++ /dev/null@@ -1,2895 +0,0 @@-{- "name": "openhands-local-chat",- "version": "1.0.0",- "lockfileVersion": 3,- "requires": true,- "packages": {- "": {- "name": "openhands-local-chat",- "version": "1.0.0",- "dependencies": {- "react": "^18.2.0",- "react-dom": "^18.2.0",- "react-markdown": "^9.0.1"- },- "devDependencies": {- "@types/react": "^18.2.0",- "@types/react-dom": "^18.2.0",- "@vitejs/plugin-react": "^4.2.0",- "typescript": "^5.3.0",- "vite": "^5.0.0"- }- },- "node_modules/@babel/code-frame": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.28.6.tgz",- "integrity": "sha512-JYgintcMjRiCvS8mMECzaEn+m3PfoQiyqukOMCCVQtoJGYJw8j/8LBJEiqkHLkfwCcs74E3pbAUFNg7d9VNJ+Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-validator-identifier": "^7.28.5",- "js-tokens": "^4.0.0",- "picocolors": "^1.1.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/compat-data": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.28.6.tgz",- "integrity": "sha512-2lfu57JtzctfIrcGMz992hyLlByuzgIk58+hhGCxjKZ3rWI82NnVLjXcaTqkI2NvlcvOskZaiZ5kjUALo3Lpxg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/core": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.28.6.tgz",- "integrity": "sha512-H3mcG6ZDLTlYfaSNi0iOKkigqMFvkTKlGUYlD8GW7nNOYRrevuA46iTypPyv+06V3fEmvvazfntkBU34L0azAw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.28.6",- "@babel/generator": "^7.28.6",- "@babel/helper-compilation-targets": "^7.28.6",- "@babel/helper-module-transforms": "^7.28.6",- "@babel/helpers": "^7.28.6",- "@babel/parser": "^7.28.6",- "@babel/template": "^7.28.6",- "@babel/traverse": "^7.28.6",- "@babel/types": "^7.28.6",- "@jridgewell/remapping": "^2.3.5",- "convert-source-map": "^2.0.0",- "debug": "^4.1.0",- "gensync": "^1.0.0-beta.2",- "json5": "^2.2.3",- "semver": "^6.3.1"- },- "engines": {- "node": ">=6.9.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/babel"- }- },- "node_modules/@babel/generator": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.28.6.tgz",- "integrity": "sha512-lOoVRwADj8hjf7al89tvQ2a1lf53Z+7tiXMgpZJL3maQPDxh0DgLMN62B2MKUOFcoodBHLMbDM6WAbKgNy5Suw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.28.6",- "@babel/types": "^7.28.6",- "@jridgewell/gen-mapping": "^0.3.12",- "@jridgewell/trace-mapping": "^0.3.28",- "jsesc": "^3.0.2"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-compilation-targets": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz",- "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/compat-data": "^7.28.6",- "@babel/helper-validator-option": "^7.27.1",- "browserslist": "^4.24.0",- "lru-cache": "^5.1.1",- "semver": "^6.3.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-globals": {- "version": "7.28.0",- "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",- "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-module-imports": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz",- "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/traverse": "^7.28.6",- "@babel/types": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-module-transforms": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz",- "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-module-imports": "^7.28.6",- "@babel/helper-validator-identifier": "^7.28.5",- "@babel/traverse": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/helper-plugin-utils": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz",- "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-string-parser": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",- "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-validator-identifier": {- "version": "7.28.5",- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",- "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-validator-option": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",- "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helpers": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz",- "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/template": "^7.28.6",- "@babel/types": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/parser": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.28.6.tgz",- "integrity": "sha512-TeR9zWR18BvbfPmGbLampPMW+uW1NZnJlRuuHso8i87QZNq2JRF9i6RgxRqtEq+wQGsS19NNTWr2duhnE49mfQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.28.6"- },- "bin": {- "parser": "bin/babel-parser.js"- },- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@babel/plugin-transform-react-jsx-self": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-self/-/plugin-transform-react-jsx-self-7.27.1.tgz",- "integrity": "sha512-6UzkCs+ejGdZ5mFFC/OCUrv028ab2fp1znZmCZjAOBKiBK2jXD1O+BPSfX8X2qjJ75fZBMSnQn3Rq2mrBJK2mw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-react-jsx-source": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-react-jsx-source/-/plugin-transform-react-jsx-source-7.27.1.tgz",- "integrity": "sha512-zbwoTsBruTeKB9hSq73ha66iFeJHuaFkUbwvqElnygoNbj/jHRsSeokowZFN3CZ64IvEqcmmkVe89OPXc7ldAw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/template": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz",- "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.28.6",- "@babel/parser": "^7.28.6",- "@babel/types": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/traverse": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.28.6.tgz",- "integrity": "sha512-fgWX62k02qtjqdSNTAGxmKYY/7FSL9WAS1o2Hu5+I5m9T0yxZzr4cnrfXQ/MX0rIifthCSs6FKTlzYbJcPtMNg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.28.6",- "@babel/generator": "^7.28.6",- "@babel/helper-globals": "^7.28.0",- "@babel/parser": "^7.28.6",- "@babel/template": "^7.28.6",- "@babel/types": "^7.28.6",- "debug": "^4.3.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/types": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.28.6.tgz",- "integrity": "sha512-0ZrskXVEHSWIqZM/sQZ4EV3jZJXRkio/WCxaqKZP1g//CEWEPSfeZFcms4XeKBCHU0ZKnIkdJeU/kF+eRp5lBg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-string-parser": "^7.27.1",- "@babel/helper-validator-identifier": "^7.28.5"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@esbuild/aix-ppc64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.21.5.tgz",- "integrity": "sha512-1SDgH6ZSPTlggy1yI6+Dbkiz8xzpHJEVAlF/AM1tHPLsf5STom9rwtjE4hKAF20FfXXNTFqEYXyJNWh1GiZedQ==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "aix"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/android-arm": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.21.5.tgz",- "integrity": "sha512-vCPvzSjpPHEi1siZdlvAlsPxXl7WbOVUBBAowWug4rJHb68Ox8KualB+1ocNvT5fjv6wpkX6o/iEpbDrf68zcg==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/android-arm64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.21.5.tgz",- "integrity": "sha512-c0uX9VAUBQ7dTDCjq+wdyGLowMdtR/GoC2U5IYk/7D1H1JYC0qseD7+11iMP2mRLN9RcCMRcjC4YMclCzGwS/A==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/android-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.21.5.tgz",- "integrity": "sha512-D7aPRUUNHRBwHxzxRvp856rjUHRFW1SdQATKXH2hqA0kAZb1hKmi02OpYRacl0TxIGz/ZmXWlbZgjwWYaCakTA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/darwin-arm64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.21.5.tgz",- "integrity": "sha512-DwqXqZyuk5AiWWf3UfLiRDJ5EDd49zg6O9wclZ7kUMv2WRFr4HKjXp/5t8JZ11QbQfUS6/cRCKGwYhtNAY88kQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/darwin-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.21.5.tgz",- "integrity": "sha512-se/JjF8NlmKVG4kNIuyWMV/22ZaerB+qaSi5MdrXtd6R08kvs2qCN4C09miupktDitvh8jRFflwGFBQcxZRjbw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/freebsd-arm64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.21.5.tgz",- "integrity": "sha512-5JcRxxRDUJLX8JXp/wcBCy3pENnCgBR9bN6JsY4OmhfUtIHe3ZW0mawA7+RDAcMLrMIZaf03NlQiX9DGyB8h4g==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/freebsd-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.21.5.tgz",- "integrity": "sha512-J95kNBj1zkbMXtHVH29bBriQygMXqoVQOQYA+ISs0/2l3T9/kj42ow2mpqerRBxDJnmkUDCaQT/dfNXWX/ZZCQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-arm": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.21.5.tgz",- "integrity": "sha512-bPb5AHZtbeNGjCKVZ9UGqGwo8EUu4cLq68E95A53KlxAPRmUyYv2D6F0uUI65XisGOL1hBP5mTronbgo+0bFcA==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-arm64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.21.5.tgz",- "integrity": "sha512-ibKvmyYzKsBeX8d8I7MH/TMfWDXBF3db4qM6sy+7re0YXya+K1cem3on9XgdT2EQGMu4hQyZhan7TeQ8XkGp4Q==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-ia32": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.21.5.tgz",- "integrity": "sha512-YvjXDqLRqPDl2dvRODYmmhz4rPeVKYvppfGYKSNGdyZkA01046pLWyRKKI3ax8fbJoK5QbxblURkwK/MWY18Tg==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-loong64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.21.5.tgz",- "integrity": "sha512-uHf1BmMG8qEvzdrzAqg2SIG/02+4/DHB6a9Kbya0XDvwDEKCoC8ZRWI5JJvNdUjtciBGFQ5PuBlpEOXQj+JQSg==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-mips64el": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.21.5.tgz",- "integrity": "sha512-IajOmO+KJK23bj52dFSNCMsz1QP1DqM6cwLUv3W1QwyxkyIWecfafnI555fvSGqEKwjMXVLokcV5ygHW5b3Jbg==",- "cpu": [- "mips64el"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-ppc64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.21.5.tgz",- "integrity": "sha512-1hHV/Z4OEfMwpLO8rp7CvlhBDnjsC3CttJXIhBi+5Aj5r+MBvy4egg7wCbe//hSsT+RvDAG7s81tAvpL2XAE4w==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-riscv64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.21.5.tgz",- "integrity": "sha512-2HdXDMd9GMgTGrPWnJzP2ALSokE/0O5HhTUvWIbD3YdjME8JwvSCnNGBnTThKGEB91OZhzrJ4qIIxk/SBmyDDA==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-s390x": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.21.5.tgz",- "integrity": "sha512-zus5sxzqBJD3eXxwvjN1yQkRepANgxE9lgOW2qLnmr8ikMTphkjgXu1HR01K4FJg8h1kEEDAqDcZQtbrRnB41A==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/linux-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.21.5.tgz",- "integrity": "sha512-1rYdTpyv03iycF1+BhzrzQJCdOuAOtaqHTWJZCWvijKD2N5Xu0TtVC8/+1faWqcP9iBCWOmjmhoH94dH82BxPQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/netbsd-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.21.5.tgz",- "integrity": "sha512-Woi2MXzXjMULccIwMnLciyZH4nCIMpWQAs049KEeMvOcNADVxo0UBIQPfSmxB3CWKedngg7sWZdLvLczpe0tLg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "netbsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/openbsd-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.21.5.tgz",- "integrity": "sha512-HLNNw99xsvx12lFBUwoT8EVCsSvRNDVxNpjZ7bPn947b8gJPzeHWyNVhFsaerc0n3TsbOINvRP2byTZ5LKezow==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/sunos-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.21.5.tgz",- "integrity": "sha512-6+gjmFpfy0BHU5Tpptkuh8+uw3mnrvgs+dSPQXQOv3ekbordwnzTVEb4qnIvQcYXq6gzkyTnoZ9dZG+D4garKg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "sunos"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/win32-arm64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.21.5.tgz",- "integrity": "sha512-Z0gOTd75VvXqyq7nsl93zwahcTROgqvuAcYDUr+vOv8uHhNSKROyU961kgtCD1e95IqPKSQKH7tBTslnS3tA8A==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/win32-ia32": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.21.5.tgz",- "integrity": "sha512-SWXFF1CL2RVNMaVs+BBClwtfZSvDgtL//G/smwAc5oVK/UPu2Gu9tIaRgFmYFFKrmg3SyAjSrElf0TiJ1v8fYA==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@esbuild/win32-x64": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.21.5.tgz",- "integrity": "sha512-tQd/1efJuzPC6rCFwEvLtci/xNFcTZknmXs98FYDfGE4wP9ClFV98nyKrzJKVPMhdDnjzLhdUyMX4PsQAPjwIw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ],- "engines": {- "node": ">=12"- }- },- "node_modules/@jridgewell/gen-mapping": {- "version": "0.3.13",- "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",- "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/sourcemap-codec": "^1.5.0",- "@jridgewell/trace-mapping": "^0.3.24"- }- },- "node_modules/@jridgewell/remapping": {- "version": "2.3.5",- "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",- "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/gen-mapping": "^0.3.5",- "@jridgewell/trace-mapping": "^0.3.24"- }- },- "node_modules/@jridgewell/resolve-uri": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",- "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@jridgewell/sourcemap-codec": {- "version": "1.5.5",- "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",- "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",- "dev": true,- "license": "MIT"- },- "node_modules/@jridgewell/trace-mapping": {- "version": "0.3.31",- "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",- "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/resolve-uri": "^3.1.0",- "@jridgewell/sourcemap-codec": "^1.4.14"- }- },- "node_modules/@rolldown/pluginutils": {- "version": "1.0.0-beta.27",- "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.0-beta.27.tgz",- "integrity": "sha512-+d0F4MKMCbeVUJwG96uQ4SgAznZNSq93I3V+9NHA4OpvqG8mRCpGdKmK8l/dl02h2CCDHwW2FqilnTyDcAnqjA==",- "dev": true,- "license": "MIT"- },- "node_modules/@rollup/rollup-android-arm-eabi": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.56.0.tgz",- "integrity": "sha512-LNKIPA5k8PF1+jAFomGe3qN3bbIgJe/IlpDBwuVjrDKrJhVWywgnJvflMt/zkbVNLFtF1+94SljYQS6e99klnw==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@rollup/rollup-android-arm64": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.56.0.tgz",- "integrity": "sha512-lfbVUbelYqXlYiU/HApNMJzT1E87UPGvzveGg2h0ktUNlOCxKlWuJ9jtfvs1sKHdwU4fzY7Pl8sAl49/XaEk6Q==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@rollup/rollup-darwin-arm64": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.56.0.tgz",- "integrity": "sha512-EgxD1ocWfhoD6xSOeEEwyE7tDvwTgZc8Bss7wCWe+uc7wO8G34HHCUH+Q6cHqJubxIAnQzAsyUsClt0yFLu06w==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@rollup/rollup-darwin-x64": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.56.0.tgz",- "integrity": "sha512-1vXe1vcMOssb/hOF8iv52A7feWW2xnu+c8BV4t1F//m9QVLTfNVpEdja5ia762j/UEJe2Z1jAmEqZAK42tVW3g==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@rollup/rollup-freebsd-arm64": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-arm64/-/rollup-freebsd-arm64-4.56.0.tgz",- "integrity": "sha512-bof7fbIlvqsyv/DtaXSck4VYQ9lPtoWNFCB/JY4snlFuJREXfZnm+Ej6yaCHfQvofJDXLDMTVxWscVSuQvVWUQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ]- },- "node_modules/@rollup/rollup-freebsd-x64": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-freebsd-x64/-/rollup-freebsd-x64-4.56.0.tgz",- "integrity": "sha512-KNa6lYHloW+7lTEkYGa37fpvPq+NKG/EHKM8+G/g9WDU7ls4sMqbVRV78J6LdNuVaeeK5WB9/9VAFbKxcbXKYg==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ]- },- "node_modules/@rollup/rollup-linux-arm-gnueabihf": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.56.0.tgz",- "integrity": "sha512-E8jKK87uOvLrrLN28jnAAAChNq5LeCd2mGgZF+fGF5D507WlG/Noct3lP/QzQ6MrqJ5BCKNwI9ipADB6jyiq2A==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm-musleabihf": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.56.0.tgz",- "integrity": "sha512-jQosa5FMYF5Z6prEpTCCmzCXz6eKr/tCBssSmQGEeozA9tkRUty/5Vx06ibaOP9RCrW1Pvb8yp3gvZhHwTDsJw==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm64-gnu": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.56.0.tgz",- "integrity": "sha512-uQVoKkrC1KGEV6udrdVahASIsaF8h7iLG0U0W+Xn14ucFwi6uS539PsAr24IEF9/FoDtzMeeJXJIBo5RkbNWvQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-arm64-musl": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.56.0.tgz",- "integrity": "sha512-vLZ1yJKLxhQLFKTs42RwTwa6zkGln+bnXc8ueFGMYmBTLfNu58sl5/eXyxRa2RarTkJbXl8TKPgfS6V5ijNqEA==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-loong64-gnu": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-gnu/-/rollup-linux-loong64-gnu-4.56.0.tgz",- "integrity": "sha512-FWfHOCub564kSE3xJQLLIC/hbKqHSVxy8vY75/YHHzWvbJL7aYJkdgwD/xGfUlL5UV2SB7otapLrcCj2xnF1dg==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-loong64-musl": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-loong64-musl/-/rollup-linux-loong64-musl-4.56.0.tgz",- "integrity": "sha512-z1EkujxIh7nbrKL1lmIpqFTc/sr0u8Uk0zK/qIEFldbt6EDKWFk/pxFq3gYj4Bjn3aa9eEhYRlL3H8ZbPT1xvA==",- "cpu": [- "loong64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-ppc64-gnu": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-gnu/-/rollup-linux-ppc64-gnu-4.56.0.tgz",- "integrity": "sha512-iNFTluqgdoQC7AIE8Q34R3AuPrJGJirj5wMUErxj22deOcY7XwZRaqYmB6ZKFHoVGqRcRd0mqO+845jAibKCkw==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-ppc64-musl": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-ppc64-musl/-/rollup-linux-ppc64-musl-4.56.0.tgz",- "integrity": "sha512-MtMeFVlD2LIKjp2sE2xM2slq3Zxf9zwVuw0jemsxvh1QOpHSsSzfNOTH9uYW9i1MXFxUSMmLpeVeUzoNOKBaWg==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-riscv64-gnu": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.56.0.tgz",- "integrity": "sha512-in+v6wiHdzzVhYKXIk5U74dEZHdKN9KH0Q4ANHOTvyXPG41bajYRsy7a8TPKbYPl34hU7PP7hMVHRvv/5aCSew==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-riscv64-musl": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-musl/-/rollup-linux-riscv64-musl-4.56.0.tgz",- "integrity": "sha512-yni2raKHB8m9NQpI9fPVwN754mn6dHQSbDTwxdr9SE0ks38DTjLMMBjrwvB5+mXrX+C0npX0CVeCUcvvvD8CNQ==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-s390x-gnu": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.56.0.tgz",- "integrity": "sha512-zhLLJx9nQPu7wezbxt2ut+CI4YlXi68ndEve16tPc/iwoylWS9B3FxpLS2PkmfYgDQtosah07Mj9E0khc3Y+vQ==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-x64-gnu": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.56.0.tgz",- "integrity": "sha512-MVC6UDp16ZSH7x4rtuJPAEoE1RwS8N4oK9DLHy3FTEdFoUTCFVzMfJl/BVJ330C+hx8FfprA5Wqx4FhZXkj2Kw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-linux-x64-musl": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.56.0.tgz",- "integrity": "sha512-ZhGH1eA4Qv0lxaV00azCIS1ChedK0V32952Md3FtnxSqZTBTd6tgil4nZT5cU8B+SIw3PFYkvyR4FKo2oyZIHA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@rollup/rollup-openbsd-x64": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-openbsd-x64/-/rollup-openbsd-x64-4.56.0.tgz",- "integrity": "sha512-O16XcmyDeFI9879pEcmtWvD/2nyxR9mF7Gs44lf1vGGx8Vg2DRNx11aVXBEqOQhWb92WN4z7fW/q4+2NYzCbBA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openbsd"- ]- },- "node_modules/@rollup/rollup-openharmony-arm64": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-openharmony-arm64/-/rollup-openharmony-arm64-4.56.0.tgz",- "integrity": "sha512-LhN/Reh+7F3RCgQIRbgw8ZMwUwyqJM+8pXNT6IIJAqm2IdKkzpCh/V9EdgOMBKuebIrzswqy4ATlrDgiOwbRcQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "openharmony"- ]- },- "node_modules/@rollup/rollup-win32-arm64-msvc": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.56.0.tgz",- "integrity": "sha512-kbFsOObXp3LBULg1d3JIUQMa9Kv4UitDmpS+k0tinPBz3watcUiV2/LUDMMucA6pZO3WGE27P7DsfaN54l9ing==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-ia32-msvc": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.56.0.tgz",- "integrity": "sha512-vSSgny54D6P4vf2izbtFm/TcWYedw7f8eBrOiGGecyHyQB9q4Kqentjaj8hToe+995nob/Wv48pDqL5a62EWtg==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-x64-gnu": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-gnu/-/rollup-win32-x64-gnu-4.56.0.tgz",- "integrity": "sha512-FeCnkPCTHQJFbiGG49KjV5YGW/8b9rrXAM2Mz2kiIoktq2qsJxRD5giEMEOD2lPdgs72upzefaUvS+nc8E3UzQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@rollup/rollup-win32-x64-msvc": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.56.0.tgz",- "integrity": "sha512-H8AE9Ur/t0+1VXujj90w0HrSOuv0Nq9r1vSZF2t5km20NTfosQsGGUXDaKdQZzwuLts7IyL1fYT4hM95TI9c4g==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@types/babel__core": {- "version": "7.20.5",- "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",- "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.20.7",- "@babel/types": "^7.20.7",- "@types/babel__generator": "*",- "@types/babel__template": "*",- "@types/babel__traverse": "*"- }- },- "node_modules/@types/babel__generator": {- "version": "7.27.0",- "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",- "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.0.0"- }- },- "node_modules/@types/babel__template": {- "version": "7.4.4",- "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",- "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.1.0",- "@babel/types": "^7.0.0"- }- },- "node_modules/@types/babel__traverse": {- "version": "7.28.0",- "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",- "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.28.2"- }- },- "node_modules/@types/debug": {- "version": "4.1.12",- "resolved": "https://registry.npmjs.org/@types/debug/-/debug-4.1.12.tgz",- "integrity": "sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==",- "license": "MIT",- "dependencies": {- "@types/ms": "*"- }- },- "node_modules/@types/estree": {- "version": "1.0.8",- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",- "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",- "license": "MIT"- },- "node_modules/@types/estree-jsx": {- "version": "1.0.5",- "resolved": "https://registry.npmjs.org/@types/estree-jsx/-/estree-jsx-1.0.5.tgz",- "integrity": "sha512-52CcUVNFyfb1A2ALocQw/Dd1BQFNmSdkuC3BkZ6iqhdMfQz7JWOFRuJFloOzjk+6WijU56m9oKXFAXc7o3Towg==",- "license": "MIT",- "dependencies": {- "@types/estree": "*"- }- },- "node_modules/@types/hast": {- "version": "3.0.4",- "resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.4.tgz",- "integrity": "sha512-WPs+bbQw5aCj+x6laNGWLH3wviHtoCv/P3+otBhbOhJgG8qtpdAMlTCxLtsTWA7LH1Oh/bFCHsBn0TPS5m30EQ==",- "license": "MIT",- "dependencies": {- "@types/unist": "*"- }- },- "node_modules/@types/mdast": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/@types/mdast/-/mdast-4.0.4.tgz",- "integrity": "sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==",- "license": "MIT",- "dependencies": {- "@types/unist": "*"- }- },- "node_modules/@types/ms": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/@types/ms/-/ms-2.1.0.tgz",- "integrity": "sha512-GsCCIZDE/p3i96vtEqx+7dBUGXrc7zeSK3wwPHIaRThS+9OhWIXRqzs4d6k1SVU8g91DrNRWxWUGhp5KXQb2VA==",- "license": "MIT"- },- "node_modules/@types/prop-types": {- "version": "15.7.15",- "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.15.tgz",- "integrity": "sha512-F6bEyamV9jKGAFBEmlQnesRPGOQqS2+Uwi0Em15xenOxHaf2hv6L8YCVn3rPdPJOiJfPiCnLIRyvwVaqMY3MIw==",- "license": "MIT"- },- "node_modules/@types/react": {- "version": "18.3.27",- "resolved": "https://registry.npmjs.org/@types/react/-/react-18.3.27.tgz",- "integrity": "sha512-cisd7gxkzjBKU2GgdYrTdtQx1SORymWyaAFhaxQPK9bYO9ot3Y5OikQRvY0VYQtvwjeQnizCINJAenh/V7MK2w==",- "license": "MIT",- "dependencies": {- "@types/prop-types": "*",- "csstype": "^3.2.2"- }- },- "node_modules/@types/react-dom": {- "version": "18.3.7",- "resolved": "https://registry.npmjs.org/@types/react-dom/-/react-dom-18.3.7.tgz",- "integrity": "sha512-MEe3UeoENYVFXzoXEWsvcpg6ZvlrFNlOQ7EOsvhI3CfAXwzPfO8Qwuxd40nepsYKqyyVQnTdEfv68q91yLcKrQ==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "@types/react": "^18.0.0"- }- },- "node_modules/@types/unist": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",- "integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==",- "license": "MIT"- },- "node_modules/@ungap/structured-clone": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz",- "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==",- "license": "ISC"- },- "node_modules/@vitejs/plugin-react": {- "version": "4.7.0",- "resolved": "https://registry.npmjs.org/@vitejs/plugin-react/-/plugin-react-4.7.0.tgz",- "integrity": "sha512-gUu9hwfWvvEDBBmgtAowQCojwZmJ5mcLn3aufeCsitijs3+f2NsrPtlAWIR6OPiqljl96GVCUbLe0HyqIpVaoA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/core": "^7.28.0",- "@babel/plugin-transform-react-jsx-self": "^7.27.1",- "@babel/plugin-transform-react-jsx-source": "^7.27.1",- "@rolldown/pluginutils": "1.0.0-beta.27",- "@types/babel__core": "^7.20.5",- "react-refresh": "^0.17.0"- },- "engines": {- "node": "^14.18.0 || >=16.0.0"- },- "peerDependencies": {- "vite": "^4.2.0 || ^5.0.0 || ^6.0.0 || ^7.0.0"- }- },- "node_modules/bail": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/bail/-/bail-2.0.2.tgz",- "integrity": "sha512-0xO6mYd7JB2YesxDKplafRpsiOzPt9V02ddPCLbY1xYGPOX24NTyN50qnUxgCPcSoYMhKpAuBTjQoRZCAkUDRw==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/baseline-browser-mapping": {- "version": "2.9.17",- "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.9.17.tgz",- "integrity": "sha512-agD0MgJFUP/4nvjqzIB29zRPUuCF7Ge6mEv9s8dHrtYD7QWXRcx75rOADE/d5ah1NI+0vkDl0yorDd5U852IQQ==",- "dev": true,- "license": "Apache-2.0",- "bin": {- "baseline-browser-mapping": "dist/cli.js"- }- },- "node_modules/browserslist": {- "version": "4.28.1",- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz",- "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/browserslist"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/browserslist"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "baseline-browser-mapping": "^2.9.0",- "caniuse-lite": "^1.0.30001759",- "electron-to-chromium": "^1.5.263",- "node-releases": "^2.0.27",- "update-browserslist-db": "^1.2.0"- },- "bin": {- "browserslist": "cli.js"- },- "engines": {- "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"- }- },- "node_modules/caniuse-lite": {- "version": "1.0.30001766",- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001766.tgz",- "integrity": "sha512-4C0lfJ0/YPjJQHagaE9x2Elb69CIqEPZeG0anQt9SIvIoOH4a4uaRl73IavyO+0qZh6MDLH//DrXThEYKHkmYA==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/browserslist"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/caniuse-lite"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "CC-BY-4.0"- },- "node_modules/ccount": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/ccount/-/ccount-2.0.1.tgz",- "integrity": "sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/character-entities": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/character-entities/-/character-entities-2.0.2.tgz",- "integrity": "sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/character-entities-html4": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/character-entities-html4/-/character-entities-html4-2.1.0.tgz",- "integrity": "sha512-1v7fgQRj6hnSwFpq1Eu0ynr/CDEw0rXo2B61qXrLNdHZmPKgb7fqS1a2JwF0rISo9q77jDI8VMEHoApn8qDoZA==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/character-entities-legacy": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/character-entities-legacy/-/character-entities-legacy-3.0.0.tgz",- "integrity": "sha512-RpPp0asT/6ufRm//AJVwpViZbGM/MkjQFxJccQRHmISF/22NBtsHqAWmL+/pmkPWoIUJdWyeVleTl1wydHATVQ==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/character-reference-invalid": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/character-reference-invalid/-/character-reference-invalid-2.0.1.tgz",- "integrity": "sha512-iBZ4F4wRbyORVsu0jPV7gXkOsGYjGHPmAyv+HiHG8gi5PtC9KI2j1+v8/tlibRvjoWX027ypmG/n0HtO5t7unw==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/comma-separated-tokens": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/comma-separated-tokens/-/comma-separated-tokens-2.0.3.tgz",- "integrity": "sha512-Fu4hJdvzeylCfQPp9SGWidpzrMs7tTrlu6Vb8XGaRGck8QSNZJJp538Wrb60Lax4fPwR64ViY468OIUTbRlGZg==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/convert-source-map": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",- "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",- "dev": true,- "license": "MIT"- },- "node_modules/csstype": {- "version": "3.2.3",- "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.2.3.tgz",- "integrity": "sha512-z1HGKcYy2xA8AGQfwrn0PAy+PB7X/GSj3UVJW9qKyn43xWa+gl5nXmU4qqLMRzWVLFC8KusUX8T/0kCiOYpAIQ==",- "license": "MIT"- },- "node_modules/debug": {- "version": "4.4.3",- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",- "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",- "license": "MIT",- "dependencies": {- "ms": "^2.1.3"- },- "engines": {- "node": ">=6.0"- },- "peerDependenciesMeta": {- "supports-color": {- "optional": true- }- }- },- "node_modules/decode-named-character-reference": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/decode-named-character-reference/-/decode-named-character-reference-1.3.0.tgz",- "integrity": "sha512-GtpQYB283KrPp6nRw50q3U9/VfOutZOe103qlN7BPP6Ad27xYnOIWv4lPzo8HCAL+mMZofJ9KEy30fq6MfaK6Q==",- "license": "MIT",- "dependencies": {- "character-entities": "^2.0.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/dequal": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz",- "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==",- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/devlop": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/devlop/-/devlop-1.1.0.tgz",- "integrity": "sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==",- "license": "MIT",- "dependencies": {- "dequal": "^2.0.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/electron-to-chromium": {- "version": "1.5.278",- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.278.tgz",- "integrity": "sha512-dQ0tM1svDRQOwxnXxm+twlGTjr9Upvt8UFWAgmLsxEzFQxhbti4VwxmMjsDxVC51Zo84swW7FVCXEV+VAkhuPw==",- "dev": true,- "license": "ISC"- },- "node_modules/esbuild": {- "version": "0.21.5",- "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.21.5.tgz",- "integrity": "sha512-mg3OPMV4hXywwpoDxu3Qda5xCKQi+vCTZq8S9J/EpkhB2HzKXq4SNFZE3+NK93JYxc8VMSep+lOUSC/RVKaBqw==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "bin": {- "esbuild": "bin/esbuild"- },- "engines": {- "node": ">=12"- },- "optionalDependencies": {- "@esbuild/aix-ppc64": "0.21.5",- "@esbuild/android-arm": "0.21.5",- "@esbuild/android-arm64": "0.21.5",- "@esbuild/android-x64": "0.21.5",- "@esbuild/darwin-arm64": "0.21.5",- "@esbuild/darwin-x64": "0.21.5",- "@esbuild/freebsd-arm64": "0.21.5",- "@esbuild/freebsd-x64": "0.21.5",- "@esbuild/linux-arm": "0.21.5",- "@esbuild/linux-arm64": "0.21.5",- "@esbuild/linux-ia32": "0.21.5",- "@esbuild/linux-loong64": "0.21.5",- "@esbuild/linux-mips64el": "0.21.5",- "@esbuild/linux-ppc64": "0.21.5",- "@esbuild/linux-riscv64": "0.21.5",- "@esbuild/linux-s390x": "0.21.5",- "@esbuild/linux-x64": "0.21.5",- "@esbuild/netbsd-x64": "0.21.5",- "@esbuild/openbsd-x64": "0.21.5",- "@esbuild/sunos-x64": "0.21.5",- "@esbuild/win32-arm64": "0.21.5",- "@esbuild/win32-ia32": "0.21.5",- "@esbuild/win32-x64": "0.21.5"- }- },- "node_modules/escalade": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",- "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/estree-util-is-identifier-name": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/estree-util-is-identifier-name/-/estree-util-is-identifier-name-3.0.0.tgz",- "integrity": "sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==",- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/extend": {- "version": "3.0.2",- "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz",- "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==",- "license": "MIT"- },- "node_modules/fsevents": {- "version": "2.3.3",- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",- "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"- }- },- "node_modules/gensync": {- "version": "1.0.0-beta.2",- "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",- "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/hast-util-to-jsx-runtime": {- "version": "2.3.6",- "resolved": "https://registry.npmjs.org/hast-util-to-jsx-runtime/-/hast-util-to-jsx-runtime-2.3.6.tgz",- "integrity": "sha512-zl6s8LwNyo1P9uw+XJGvZtdFF1GdAkOg8ujOw+4Pyb76874fLps4ueHXDhXWdk6YHQ6OgUtinliG7RsYvCbbBg==",- "license": "MIT",- "dependencies": {- "@types/estree": "^1.0.0",- "@types/hast": "^3.0.0",- "@types/unist": "^3.0.0",- "comma-separated-tokens": "^2.0.0",- "devlop": "^1.0.0",- "estree-util-is-identifier-name": "^3.0.0",- "hast-util-whitespace": "^3.0.0",- "mdast-util-mdx-expression": "^2.0.0",- "mdast-util-mdx-jsx": "^3.0.0",- "mdast-util-mdxjs-esm": "^2.0.0",- "property-information": "^7.0.0",- "space-separated-tokens": "^2.0.0",- "style-to-js": "^1.0.0",- "unist-util-position": "^5.0.0",- "vfile-message": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/hast-util-whitespace": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/hast-util-whitespace/-/hast-util-whitespace-3.0.0.tgz",- "integrity": "sha512-88JUN06ipLwsnv+dVn+OIYOvAuvBMy/Qoi6O7mQHxdPXpjy+Cd6xRkWwux7DKO+4sYILtLBRIKgsdpS2gQc7qw==",- "license": "MIT",- "dependencies": {- "@types/hast": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/html-url-attributes": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/html-url-attributes/-/html-url-attributes-3.0.1.tgz",- "integrity": "sha512-ol6UPyBWqsrO6EJySPz2O7ZSr856WDrEzM5zMqp+FJJLGMW35cLYmmZnl0vztAZxRUoNZJFTCohfjuIJ8I4QBQ==",- "license": "MIT",- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/inline-style-parser": {- "version": "0.2.7",- "resolved": "https://registry.npmjs.org/inline-style-parser/-/inline-style-parser-0.2.7.tgz",- "integrity": "sha512-Nb2ctOyNR8DqQoR0OwRG95uNWIC0C1lCgf5Naz5H6Ji72KZ8OcFZLz2P5sNgwlyoJ8Yif11oMuYs5pBQa86csA==",- "license": "MIT"- },- "node_modules/is-alphabetical": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-alphabetical/-/is-alphabetical-2.0.1.tgz",- "integrity": "sha512-FWyyY60MeTNyeSRpkM2Iry0G9hpr7/9kD40mD/cGQEuilcZYS4okz8SN2Q6rLCJ8gbCt6fN+rC+6tMGS99LaxQ==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/is-alphanumerical": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-alphanumerical/-/is-alphanumerical-2.0.1.tgz",- "integrity": "sha512-hmbYhX/9MUMF5uh7tOXyK/n0ZvWpad5caBA17GsC6vyuCqaWliRG5K1qS9inmUhEMaOBIW7/whAnSwveW/LtZw==",- "license": "MIT",- "dependencies": {- "is-alphabetical": "^2.0.0",- "is-decimal": "^2.0.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/is-decimal": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-decimal/-/is-decimal-2.0.1.tgz",- "integrity": "sha512-AAB9hiomQs5DXWcRB1rqsxGUstbRroFOPPVAomNk/3XHR5JyEZChOyTWe2oayKnsSsr/kcGqF+z6yuH6HHpN0A==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/is-hexadecimal": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-hexadecimal/-/is-hexadecimal-2.0.1.tgz",- "integrity": "sha512-DgZQp241c8oO6cA1SbTEWiXeoxV42vlcJxgH+B3hi1AiqqKruZR3ZGF8In3fj4+/y/7rHvlOZLZtgJ/4ttYGZg==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/is-plain-obj": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-4.1.0.tgz",- "integrity": "sha512-+Pgi+vMuUNkJyExiMBt5IlFoMyKnr5zhJ4Uspz58WOhBF5QoIZkFyNHIbBAtHwzVAgk5RtndVNsDRN61/mmDqg==",- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/js-tokens": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",- "license": "MIT"- },- "node_modules/jsesc": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",- "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",- "dev": true,- "license": "MIT",- "bin": {- "jsesc": "bin/jsesc"- },- "engines": {- "node": ">=6"- }- },- "node_modules/json5": {- "version": "2.2.3",- "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",- "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",- "dev": true,- "license": "MIT",- "bin": {- "json5": "lib/cli.js"- },- "engines": {- "node": ">=6"- }- },- "node_modules/longest-streak": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/longest-streak/-/longest-streak-3.1.0.tgz",- "integrity": "sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/loose-envify": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz",- "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==",- "license": "MIT",- "dependencies": {- "js-tokens": "^3.0.0 || ^4.0.0"- },- "bin": {- "loose-envify": "cli.js"- }- },- "node_modules/lru-cache": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",- "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",- "dev": true,- "license": "ISC",- "dependencies": {- "yallist": "^3.0.2"- }- },- "node_modules/mdast-util-from-markdown": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/mdast-util-from-markdown/-/mdast-util-from-markdown-2.0.2.tgz",- "integrity": "sha512-uZhTV/8NBuw0WHkPTrCqDOl0zVe1BIng5ZtHoDk49ME1qqcjYmmLmOf0gELgcRMxN4w2iuIeVso5/6QymSrgmA==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "@types/unist": "^3.0.0",- "decode-named-character-reference": "^1.0.0",- "devlop": "^1.0.0",- "mdast-util-to-string": "^4.0.0",- "micromark": "^4.0.0",- "micromark-util-decode-numeric-character-reference": "^2.0.0",- "micromark-util-decode-string": "^2.0.0",- "micromark-util-normalize-identifier": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0",- "unist-util-stringify-position": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-mdx-expression": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/mdast-util-mdx-expression/-/mdast-util-mdx-expression-2.0.1.tgz",- "integrity": "sha512-J6f+9hUp+ldTZqKRSg7Vw5V6MqjATc+3E4gf3CFNcuZNWD8XdyI6zQ8GqH7f8169MM6P7hMBRDVGnn7oHB9kXQ==",- "license": "MIT",- "dependencies": {- "@types/estree-jsx": "^1.0.0",- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "devlop": "^1.0.0",- "mdast-util-from-markdown": "^2.0.0",- "mdast-util-to-markdown": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-mdx-jsx": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/mdast-util-mdx-jsx/-/mdast-util-mdx-jsx-3.2.0.tgz",- "integrity": "sha512-lj/z8v0r6ZtsN/cGNNtemmmfoLAFZnjMbNyLzBafjzikOM+glrjNHPlf6lQDOTccj9n5b0PPihEBbhneMyGs1Q==",- "license": "MIT",- "dependencies": {- "@types/estree-jsx": "^1.0.0",- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "@types/unist": "^3.0.0",- "ccount": "^2.0.0",- "devlop": "^1.1.0",- "mdast-util-from-markdown": "^2.0.0",- "mdast-util-to-markdown": "^2.0.0",- "parse-entities": "^4.0.0",- "stringify-entities": "^4.0.0",- "unist-util-stringify-position": "^4.0.0",- "vfile-message": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-mdxjs-esm": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/mdast-util-mdxjs-esm/-/mdast-util-mdxjs-esm-2.0.1.tgz",- "integrity": "sha512-EcmOpxsZ96CvlP03NghtH1EsLtr0n9Tm4lPUJUBccV9RwUOneqSycg19n5HGzCf+10LozMRSObtVr3ee1WoHtg==",- "license": "MIT",- "dependencies": {- "@types/estree-jsx": "^1.0.0",- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "devlop": "^1.0.0",- "mdast-util-from-markdown": "^2.0.0",- "mdast-util-to-markdown": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-phrasing": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/mdast-util-phrasing/-/mdast-util-phrasing-4.1.0.tgz",- "integrity": "sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "unist-util-is": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-to-hast": {- "version": "13.2.1",- "resolved": "https://registry.npmjs.org/mdast-util-to-hast/-/mdast-util-to-hast-13.2.1.tgz",- "integrity": "sha512-cctsq2wp5vTsLIcaymblUriiTcZd0CwWtCbLvrOzYCDZoWyMNV8sZ7krj09FSnsiJi3WVsHLM4k6Dq/yaPyCXA==",- "license": "MIT",- "dependencies": {- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "@ungap/structured-clone": "^1.0.0",- "devlop": "^1.0.0",- "micromark-util-sanitize-uri": "^2.0.0",- "trim-lines": "^3.0.0",- "unist-util-position": "^5.0.0",- "unist-util-visit": "^5.0.0",- "vfile": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-to-markdown": {- "version": "2.1.2",- "resolved": "https://registry.npmjs.org/mdast-util-to-markdown/-/mdast-util-to-markdown-2.1.2.tgz",- "integrity": "sha512-xj68wMTvGXVOKonmog6LwyJKrYXZPvlwabaryTjLh9LuvovB/KAH+kvi8Gjj+7rJjsFi23nkUxRQv1KqSroMqA==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "@types/unist": "^3.0.0",- "longest-streak": "^3.0.0",- "mdast-util-phrasing": "^4.0.0",- "mdast-util-to-string": "^4.0.0",- "micromark-util-classify-character": "^2.0.0",- "micromark-util-decode-string": "^2.0.0",- "unist-util-visit": "^5.0.0",- "zwitch": "^2.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/mdast-util-to-string": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/mdast-util-to-string/-/mdast-util-to-string-4.0.0.tgz",- "integrity": "sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/micromark": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/micromark/-/micromark-4.0.2.tgz",- "integrity": "sha512-zpe98Q6kvavpCr1NPVSCMebCKfD7CA2NqZ+rykeNhONIJBpc1tFKt9hucLGwha3jNTNI8lHpctWJWoimVF4PfA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "@types/debug": "^4.0.0",- "debug": "^4.0.0",- "decode-named-character-reference": "^1.0.0",- "devlop": "^1.0.0",- "micromark-core-commonmark": "^2.0.0",- "micromark-factory-space": "^2.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-chunked": "^2.0.0",- "micromark-util-combine-extensions": "^2.0.0",- "micromark-util-decode-numeric-character-reference": "^2.0.0",- "micromark-util-encode": "^2.0.0",- "micromark-util-normalize-identifier": "^2.0.0",- "micromark-util-resolve-all": "^2.0.0",- "micromark-util-sanitize-uri": "^2.0.0",- "micromark-util-subtokenize": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-core-commonmark": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/micromark-core-commonmark/-/micromark-core-commonmark-2.0.3.tgz",- "integrity": "sha512-RDBrHEMSxVFLg6xvnXmb1Ayr2WzLAWjeSATAoxwKYJV94TeNavgoIdA0a9ytzDSVzBy2YKFK+emCPOEibLeCrg==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "decode-named-character-reference": "^1.0.0",- "devlop": "^1.0.0",- "micromark-factory-destination": "^2.0.0",- "micromark-factory-label": "^2.0.0",- "micromark-factory-space": "^2.0.0",- "micromark-factory-title": "^2.0.0",- "micromark-factory-whitespace": "^2.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-chunked": "^2.0.0",- "micromark-util-classify-character": "^2.0.0",- "micromark-util-html-tag-name": "^2.0.0",- "micromark-util-normalize-identifier": "^2.0.0",- "micromark-util-resolve-all": "^2.0.0",- "micromark-util-subtokenize": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-factory-destination": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-factory-destination/-/micromark-factory-destination-2.0.1.tgz",- "integrity": "sha512-Xe6rDdJlkmbFRExpTOmRj9N3MaWmbAgdpSrBQvCFqhezUn4AHqJHbaEnfbVYYiexVSs//tqOdY/DxhjdCiJnIA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-character": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-factory-label": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-factory-label/-/micromark-factory-label-2.0.1.tgz",- "integrity": "sha512-VFMekyQExqIW7xIChcXn4ok29YE3rnuyveW3wZQWWqF4Nv9Wk5rgJ99KzPvHjkmPXF93FXIbBp6YdW3t71/7Vg==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "devlop": "^1.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-factory-space": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-factory-space/-/micromark-factory-space-2.0.1.tgz",- "integrity": "sha512-zRkxjtBxxLd2Sc0d+fbnEunsTj46SWXgXciZmHq0kDYGnck/ZSGj9/wULTV95uoeYiK5hRXP2mJ98Uo4cq/LQg==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-character": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-factory-title": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-factory-title/-/micromark-factory-title-2.0.1.tgz",- "integrity": "sha512-5bZ+3CjhAd9eChYTHsjy6TGxpOFSKgKKJPJxr293jTbfry2KDoWkhBb6TcPVB4NmzaPhMs1Frm9AZH7OD4Cjzw==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-factory-space": "^2.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-factory-whitespace": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-factory-whitespace/-/micromark-factory-whitespace-2.0.1.tgz",- "integrity": "sha512-Ob0nuZ3PKt/n0hORHyvoD9uZhr+Za8sFoP+OnMcnWK5lngSzALgQYKMr9RJVOWLqQYuyn6ulqGWSXdwf6F80lQ==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-factory-space": "^2.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-character": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/micromark-util-character/-/micromark-util-character-2.1.1.tgz",- "integrity": "sha512-wv8tdUTJ3thSFFFJKtpYKOYiGP2+v96Hvk4Tu8KpCAsTMs6yi+nVmGh1syvSCsaxz45J6Jbw+9DD6g97+NV67Q==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-chunked": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-chunked/-/micromark-util-chunked-2.0.1.tgz",- "integrity": "sha512-QUNFEOPELfmvv+4xiNg2sRYeS/P84pTW0TCgP5zc9FpXetHY0ab7SxKyAQCNCc1eK0459uoLI1y5oO5Vc1dbhA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-symbol": "^2.0.0"- }- },- "node_modules/micromark-util-classify-character": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-classify-character/-/micromark-util-classify-character-2.0.1.tgz",- "integrity": "sha512-K0kHzM6afW/MbeWYWLjoHQv1sgg2Q9EccHEDzSkxiP/EaagNzCm7T/WMKZ3rjMbvIpvBiZgwR3dKMygtA4mG1Q==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-character": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-combine-extensions": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-combine-extensions/-/micromark-util-combine-extensions-2.0.1.tgz",- "integrity": "sha512-OnAnH8Ujmy59JcyZw8JSbK9cGpdVY44NKgSM7E9Eh7DiLS2E9RNQf0dONaGDzEG9yjEl5hcqeIsj4hfRkLH/Bg==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-chunked": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-decode-numeric-character-reference": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/micromark-util-decode-numeric-character-reference/-/micromark-util-decode-numeric-character-reference-2.0.2.tgz",- "integrity": "sha512-ccUbYk6CwVdkmCQMyr64dXz42EfHGkPQlBj5p7YVGzq8I7CtjXZJrubAYezf7Rp+bjPseiROqe7G6foFd+lEuw==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-symbol": "^2.0.0"- }- },- "node_modules/micromark-util-decode-string": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-decode-string/-/micromark-util-decode-string-2.0.1.tgz",- "integrity": "sha512-nDV/77Fj6eH1ynwscYTOsbK7rR//Uj0bZXBwJZRfaLEJ1iGBR6kIfNmlNqaqJf649EP0F3NWNdeJi03elllNUQ==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "decode-named-character-reference": "^1.0.0",- "micromark-util-character": "^2.0.0",- "micromark-util-decode-numeric-character-reference": "^2.0.0",- "micromark-util-symbol": "^2.0.0"- }- },- "node_modules/micromark-util-encode": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-encode/-/micromark-util-encode-2.0.1.tgz",- "integrity": "sha512-c3cVx2y4KqUnwopcO9b/SCdo2O67LwJJ/UyqGfbigahfegL9myoEFoDYZgkT7f36T0bLrM9hZTAaAyH+PCAXjw==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT"- },- "node_modules/micromark-util-html-tag-name": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-html-tag-name/-/micromark-util-html-tag-name-2.0.1.tgz",- "integrity": "sha512-2cNEiYDhCWKI+Gs9T0Tiysk136SnR13hhO8yW6BGNyhOC4qYFnwF1nKfD3HFAIXA5c45RrIG1ub11GiXeYd1xA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT"- },- "node_modules/micromark-util-normalize-identifier": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-normalize-identifier/-/micromark-util-normalize-identifier-2.0.1.tgz",- "integrity": "sha512-sxPqmo70LyARJs0w2UclACPUUEqltCkJ6PhKdMIDuJ3gSf/Q+/GIe3WKl0Ijb/GyH9lOpUkRAO2wp0GVkLvS9Q==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-symbol": "^2.0.0"- }- },- "node_modules/micromark-util-resolve-all": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-resolve-all/-/micromark-util-resolve-all-2.0.1.tgz",- "integrity": "sha512-VdQyxFWFT2/FGJgwQnJYbe1jjQoNTS4RjglmSjTUlpUMa95Htx9NHeYW4rGDJzbjvCsl9eLjMQwGeElsqmzcHg==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-sanitize-uri": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-sanitize-uri/-/micromark-util-sanitize-uri-2.0.1.tgz",- "integrity": "sha512-9N9IomZ/YuGGZZmQec1MbgxtlgougxTodVwDzzEouPKo3qFWvymFHWcnDi2vzV1ff6kas9ucW+o3yzJK9YB1AQ==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "micromark-util-character": "^2.0.0",- "micromark-util-encode": "^2.0.0",- "micromark-util-symbol": "^2.0.0"- }- },- "node_modules/micromark-util-subtokenize": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/micromark-util-subtokenize/-/micromark-util-subtokenize-2.1.0.tgz",- "integrity": "sha512-XQLu552iSctvnEcgXw6+Sx75GflAPNED1qx7eBJ+wydBb2KCbRZe+NwvIEEMM83uml1+2WSXpBAcp9IUCgCYWA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT",- "dependencies": {- "devlop": "^1.0.0",- "micromark-util-chunked": "^2.0.0",- "micromark-util-symbol": "^2.0.0",- "micromark-util-types": "^2.0.0"- }- },- "node_modules/micromark-util-symbol": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/micromark-util-symbol/-/micromark-util-symbol-2.0.1.tgz",- "integrity": "sha512-vs5t8Apaud9N28kgCrRUdEed4UJ+wWNvicHLPxCa9ENlYuAY31M0ETy5y1vA33YoNPDFTghEbnh6efaE8h4x0Q==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT"- },- "node_modules/micromark-util-types": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/micromark-util-types/-/micromark-util-types-2.0.2.tgz",- "integrity": "sha512-Yw0ECSpJoViF1qTU4DC6NwtC4aWGt1EkzaQB8KPPyCRR8z9TWeV0HbEFGTO+ZY1wB22zmxnJqhPyTpOVCpeHTA==",- "funding": [- {- "type": "GitHub Sponsors",- "url": "https://github.com/sponsors/unifiedjs"- },- {- "type": "OpenCollective",- "url": "https://opencollective.com/unified"- }- ],- "license": "MIT"- },- "node_modules/ms": {- "version": "2.1.3",- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",- "license": "MIT"- },- "node_modules/nanoid": {- "version": "3.3.11",- "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.11.tgz",- "integrity": "sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "bin": {- "nanoid": "bin/nanoid.cjs"- },- "engines": {- "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"- }- },- "node_modules/node-releases": {- "version": "2.0.27",- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz",- "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==",- "dev": true,- "license": "MIT"- },- "node_modules/parse-entities": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/parse-entities/-/parse-entities-4.0.2.tgz",- "integrity": "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw==",- "license": "MIT",- "dependencies": {- "@types/unist": "^2.0.0",- "character-entities-legacy": "^3.0.0",- "character-reference-invalid": "^2.0.0",- "decode-named-character-reference": "^1.0.0",- "is-alphanumerical": "^2.0.0",- "is-decimal": "^2.0.0",- "is-hexadecimal": "^2.0.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/parse-entities/node_modules/@types/unist": {- "version": "2.0.11",- "resolved": "https://registry.npmjs.org/@types/unist/-/unist-2.0.11.tgz",- "integrity": "sha512-CmBKiL6NNo/OqgmMn95Fk9Whlp2mtvIv+KNpQKN2F4SjvrEesubTRWGYSg+BnWZOnlCaSTU1sMpsBOzgbYhnsA==",- "license": "MIT"- },- "node_modules/picocolors": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",- "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",- "dev": true,- "license": "ISC"- },- "node_modules/postcss": {- "version": "8.5.6",- "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.6.tgz",- "integrity": "sha512-3Ybi1tAuwAP9s0r1UQ2J4n5Y0G05bJkpUIO0/bI9MhwmD70S5aTWbXGBwxHrelT+XM1k6dM0pk+SwNkpTRN7Pg==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/postcss/"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/postcss"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "nanoid": "^3.3.11",- "picocolors": "^1.1.1",- "source-map-js": "^1.2.1"- },- "engines": {- "node": "^10 || ^12 || >=14"- }- },- "node_modules/property-information": {- "version": "7.1.0",- "resolved": "https://registry.npmjs.org/property-information/-/property-information-7.1.0.tgz",- "integrity": "sha512-TwEZ+X+yCJmYfL7TPUOcvBZ4QfoT5YenQiJuX//0th53DE6w0xxLEtfK3iyryQFddXuvkIk51EEgrJQ0WJkOmQ==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/react": {- "version": "18.3.1",- "resolved": "https://registry.npmjs.org/react/-/react-18.3.1.tgz",- "integrity": "sha512-wS+hAgJShR0KhEvPJArfuPVN1+Hz1t0Y6n5jLrGQbkb4urgPE/0Rve+1kMB1v/oWgHgm4WIcV+i7F2pTVj+2iQ==",- "license": "MIT",- "dependencies": {- "loose-envify": "^1.1.0"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/react-dom": {- "version": "18.3.1",- "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.3.1.tgz",- "integrity": "sha512-5m4nQKp+rZRb09LNH59GM4BxTh9251/ylbKIbpe7TpGxfJ+9kv6BLkLBXIjjspbgbnIBNqlI23tRnTWT0snUIw==",- "license": "MIT",- "dependencies": {- "loose-envify": "^1.1.0",- "scheduler": "^0.23.2"- },- "peerDependencies": {- "react": "^18.3.1"- }- },- "node_modules/react-markdown": {- "version": "9.1.0",- "resolved": "https://registry.npmjs.org/react-markdown/-/react-markdown-9.1.0.tgz",- "integrity": "sha512-xaijuJB0kzGiUdG7nc2MOMDUDBWPyGAjZtUrow9XxUeua8IqeP+VlIfAZ3bphpcLTnSZXz6z9jcVC/TCwbfgdw==",- "license": "MIT",- "dependencies": {- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "devlop": "^1.0.0",- "hast-util-to-jsx-runtime": "^2.0.0",- "html-url-attributes": "^3.0.0",- "mdast-util-to-hast": "^13.0.0",- "remark-parse": "^11.0.0",- "remark-rehype": "^11.0.0",- "unified": "^11.0.0",- "unist-util-visit": "^5.0.0",- "vfile": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- },- "peerDependencies": {- "@types/react": ">=18",- "react": ">=18"- }- },- "node_modules/react-refresh": {- "version": "0.17.0",- "resolved": "https://registry.npmjs.org/react-refresh/-/react-refresh-0.17.0.tgz",- "integrity": "sha512-z6F7K9bV85EfseRCp2bzrpyQ0Gkw1uLoCel9XBVWPg/TjRj94SkJzUTGfOa4bs7iJvBWtQG0Wq7wnI0syw3EBQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/remark-parse": {- "version": "11.0.0",- "resolved": "https://registry.npmjs.org/remark-parse/-/remark-parse-11.0.0.tgz",- "integrity": "sha512-FCxlKLNGknS5ba/1lmpYijMUzX2esxW5xQqjWxw2eHFfS2MSdaHVINFmhjo+qN1WhZhNimq0dZATN9pH0IDrpA==",- "license": "MIT",- "dependencies": {- "@types/mdast": "^4.0.0",- "mdast-util-from-markdown": "^2.0.0",- "micromark-util-types": "^2.0.0",- "unified": "^11.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/remark-rehype": {- "version": "11.1.2",- "resolved": "https://registry.npmjs.org/remark-rehype/-/remark-rehype-11.1.2.tgz",- "integrity": "sha512-Dh7l57ianaEoIpzbp0PC9UKAdCSVklD8E5Rpw7ETfbTl3FqcOOgq5q2LVDhgGCkaBv7p24JXikPdvhhmHvKMsw==",- "license": "MIT",- "dependencies": {- "@types/hast": "^3.0.0",- "@types/mdast": "^4.0.0",- "mdast-util-to-hast": "^13.0.0",- "unified": "^11.0.0",- "vfile": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/rollup": {- "version": "4.56.0",- "resolved": "https://registry.npmjs.org/rollup/-/rollup-4.56.0.tgz",- "integrity": "sha512-9FwVqlgUHzbXtDg9RCMgodF3Ua4Na6Gau+Sdt9vyCN4RhHfVKX2DCHy3BjMLTDd47ITDhYAnTwGulWTblJSDLg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/estree": "1.0.8"- },- "bin": {- "rollup": "dist/bin/rollup"- },- "engines": {- "node": ">=18.0.0",- "npm": ">=8.0.0"- },- "optionalDependencies": {- "@rollup/rollup-android-arm-eabi": "4.56.0",- "@rollup/rollup-android-arm64": "4.56.0",- "@rollup/rollup-darwin-arm64": "4.56.0",- "@rollup/rollup-darwin-x64": "4.56.0",- "@rollup/rollup-freebsd-arm64": "4.56.0",- "@rollup/rollup-freebsd-x64": "4.56.0",- "@rollup/rollup-linux-arm-gnueabihf": "4.56.0",- "@rollup/rollup-linux-arm-musleabihf": "4.56.0",- "@rollup/rollup-linux-arm64-gnu": "4.56.0",- "@rollup/rollup-linux-arm64-musl": "4.56.0",- "@rollup/rollup-linux-loong64-gnu": "4.56.0",- "@rollup/rollup-linux-loong64-musl": "4.56.0",- "@rollup/rollup-linux-ppc64-gnu": "4.56.0",- "@rollup/rollup-linux-ppc64-musl": "4.56.0",- "@rollup/rollup-linux-riscv64-gnu": "4.56.0",- "@rollup/rollup-linux-riscv64-musl": "4.56.0",- "@rollup/rollup-linux-s390x-gnu": "4.56.0",- "@rollup/rollup-linux-x64-gnu": "4.56.0",- "@rollup/rollup-linux-x64-musl": "4.56.0",- "@rollup/rollup-openbsd-x64": "4.56.0",- "@rollup/rollup-openharmony-arm64": "4.56.0",- "@rollup/rollup-win32-arm64-msvc": "4.56.0",- "@rollup/rollup-win32-ia32-msvc": "4.56.0",- "@rollup/rollup-win32-x64-gnu": "4.56.0",- "@rollup/rollup-win32-x64-msvc": "4.56.0",- "fsevents": "~2.3.2"- }- },- "node_modules/scheduler": {- "version": "0.23.2",- "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.2.tgz",- "integrity": "sha512-UOShsPwz7NrMUqhR6t0hWjFduvOzbtv7toDH1/hIrfRNIDBnnBWd0CwJTGvTpngVlmwGCdP9/Zl/tVrDqcuYzQ==",- "license": "MIT",- "dependencies": {- "loose-envify": "^1.1.0"- }- },- "node_modules/semver": {- "version": "6.3.1",- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",- "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- }- },- "node_modules/source-map-js": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz",- "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==",- "dev": true,- "license": "BSD-3-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/space-separated-tokens": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/space-separated-tokens/-/space-separated-tokens-2.0.2.tgz",- "integrity": "sha512-PEGlAwrG8yXGXRjW32fGbg66JAlOAwbObuqVoJpv/mRgoWDQfgH1wDPvtzWyUSNAXBGSk8h755YDbbcEy3SH2Q==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/stringify-entities": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/stringify-entities/-/stringify-entities-4.0.4.tgz",- "integrity": "sha512-IwfBptatlO+QCJUo19AqvrPNqlVMpW9YEL2LIVY+Rpv2qsjCGxaDLNRgeGsQWJhfItebuJhsGSLjaBbNSQ+ieg==",- "license": "MIT",- "dependencies": {- "character-entities-html4": "^2.0.0",- "character-entities-legacy": "^3.0.0"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/style-to-js": {- "version": "1.1.21",- "resolved": "https://registry.npmjs.org/style-to-js/-/style-to-js-1.1.21.tgz",- "integrity": "sha512-RjQetxJrrUJLQPHbLku6U/ocGtzyjbJMP9lCNK7Ag0CNh690nSH8woqWH9u16nMjYBAok+i7JO1NP2pOy8IsPQ==",- "license": "MIT",- "dependencies": {- "style-to-object": "1.0.14"- }- },- "node_modules/style-to-object": {- "version": "1.0.14",- "resolved": "https://registry.npmjs.org/style-to-object/-/style-to-object-1.0.14.tgz",- "integrity": "sha512-LIN7rULI0jBscWQYaSswptyderlarFkjQ+t79nzty8tcIAceVomEVlLzH5VP4Cmsv6MtKhs7qaAiwlcp+Mgaxw==",- "license": "MIT",- "dependencies": {- "inline-style-parser": "0.2.7"- }- },- "node_modules/trim-lines": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/trim-lines/-/trim-lines-3.0.1.tgz",- "integrity": "sha512-kRj8B+YHZCc9kQYdWfJB2/oUl9rA99qbowYYBtr4ui4mZyAQ2JpvVBd/6U2YloATfqBhBTSMhTpgBHtU0Mf3Rg==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/trough": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/trough/-/trough-2.2.0.tgz",- "integrity": "sha512-tmMpK00BjZiUyVyvrBK7knerNgmgvcV/KLVyuma/SC+TQN167GrMRciANTz09+k3zW8L8t60jWO1GpfkZdjTaw==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- },- "node_modules/typescript": {- "version": "5.9.3",- "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz",- "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==",- "dev": true,- "license": "Apache-2.0",- "bin": {- "tsc": "bin/tsc",- "tsserver": "bin/tsserver"- },- "engines": {- "node": ">=14.17"- }- },- "node_modules/unified": {- "version": "11.0.5",- "resolved": "https://registry.npmjs.org/unified/-/unified-11.0.5.tgz",- "integrity": "sha512-xKvGhPWw3k84Qjh8bI3ZeJjqnyadK+GEFtazSfZv/rKeTkTjOJho6mFqh2SM96iIcZokxiOpg78GazTSg8+KHA==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "bail": "^2.0.0",- "devlop": "^1.0.0",- "extend": "^3.0.0",- "is-plain-obj": "^4.0.0",- "trough": "^2.0.0",- "vfile": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-is": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/unist-util-is/-/unist-util-is-6.0.1.tgz",- "integrity": "sha512-LsiILbtBETkDz8I9p1dQ0uyRUWuaQzd/cuEeS1hoRSyW5E5XGmTzlwY1OrNzzakGowI9Dr/I8HVaw4hTtnxy8g==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-position": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/unist-util-position/-/unist-util-position-5.0.0.tgz",- "integrity": "sha512-fucsC7HjXvkB5R3kTCO7kUjRdrS0BJt3M/FPxmHMBOm8JQi2BsHAHFsy27E0EolP8rp0NzXsJ+jNPyDWvOJZPA==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-stringify-position": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz",- "integrity": "sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-visit": {- "version": "5.1.0",- "resolved": "https://registry.npmjs.org/unist-util-visit/-/unist-util-visit-5.1.0.tgz",- "integrity": "sha512-m+vIdyeCOpdr/QeQCu2EzxX/ohgS8KbnPDgFni4dQsfSCtpz8UqDyY5GjRru8PDKuYn7Fq19j1CQ+nJSsGKOzg==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "unist-util-is": "^6.0.0",- "unist-util-visit-parents": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/unist-util-visit-parents": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/unist-util-visit-parents/-/unist-util-visit-parents-6.0.2.tgz",- "integrity": "sha512-goh1s1TBrqSqukSc8wrjwWhL0hiJxgA8m4kFxGlQ+8FYQ3C/m11FcTs4YYem7V664AhHVvgoQLk890Ssdsr2IQ==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "unist-util-is": "^6.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/update-browserslist-db": {- "version": "1.2.3",- "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",- "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/browserslist"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/browserslist"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "escalade": "^3.2.0",- "picocolors": "^1.1.1"- },- "bin": {- "update-browserslist-db": "cli.js"- },- "peerDependencies": {- "browserslist": ">= 4.21.0"- }- },- "node_modules/vfile": {- "version": "6.0.3",- "resolved": "https://registry.npmjs.org/vfile/-/vfile-6.0.3.tgz",- "integrity": "sha512-KzIbH/9tXat2u30jf+smMwFCsno4wHVdNmzFyL+T/L3UGqqk6JKfVqOFOZEpZSHADH1k40ab6NUIXZq422ov3Q==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "vfile-message": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/vfile-message": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/vfile-message/-/vfile-message-4.0.3.tgz",- "integrity": "sha512-QTHzsGd1EhbZs4AsQ20JX1rC3cOlt/IWJruk893DfLRr57lcnOeMaWG4K0JrRta4mIJZKth2Au3mM3u03/JWKw==",- "license": "MIT",- "dependencies": {- "@types/unist": "^3.0.0",- "unist-util-stringify-position": "^4.0.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/unified"- }- },- "node_modules/vite": {- "version": "5.4.21",- "resolved": "https://registry.npmjs.org/vite/-/vite-5.4.21.tgz",- "integrity": "sha512-o5a9xKjbtuhY6Bi5S3+HvbRERmouabWbyUcpXXUA1u+GNUKoROi9byOJ8M0nHbHYHkYICiMlqxkg1KkYmm25Sw==",- "dev": true,- "license": "MIT",- "dependencies": {- "esbuild": "^0.21.3",- "postcss": "^8.4.43",- "rollup": "^4.20.0"- },- "bin": {- "vite": "bin/vite.js"- },- "engines": {- "node": "^18.0.0 || >=20.0.0"- },- "funding": {- "url": "https://github.com/vitejs/vite?sponsor=1"- },- "optionalDependencies": {- "fsevents": "~2.3.3"- },- "peerDependencies": {- "@types/node": "^18.0.0 || >=20.0.0",- "less": "*",- "lightningcss": "^1.21.0",- "sass": "*",- "sass-embedded": "*",- "stylus": "*",- "sugarss": "*",- "terser": "^5.4.0"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- },- "less": {- "optional": true- },- "lightningcss": {- "optional": true- },- "sass": {- "optional": true- },- "sass-embedded": {- "optional": true- },- "stylus": {- "optional": true- },- "sugarss": {- "optional": true- },- "terser": {- "optional": true- }- }- },- "node_modules/yallist": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",- "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",- "dev": true,- "license": "ISC"- },- "node_modules/zwitch": {- "version": "2.0.4",- "resolved": "https://registry.npmjs.org/zwitch/-/zwitch-2.0.4.tgz",- "integrity": "sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==",- "license": "MIT",- "funding": {- "type": "github",- "url": "https://github.com/sponsors/wooorm"- }- }- }-}diff --git a/vendor/openhands-typescript-client/examples/local/package.json b/vendor/openhands-typescript-client/examples/local/package.jsondeleted file mode 100644index 2be6e18abb..0000000000--- a/vendor/openhands-typescript-client/examples/local/package.json+++ /dev/null@@ -1,23 +0,0 @@-{- "name": "openhands-local-chat",- "version": "1.0.0",- "description": "Browser-based chat UI for OpenHands with OpenRouter integration",- "type": "module",- "scripts": {- "dev": "cd ../.. && npm run build && cd - && vite",- "build": "tsc && vite build",- "preview": "vite preview"- },- "dependencies": {- "react": "^18.2.0",- "react-dom": "^18.2.0",- "react-markdown": "^9.0.1"- },- "devDependencies": {- "@types/react": "^18.2.0",- "@types/react-dom": "^18.2.0",- "@vitejs/plugin-react": "^4.2.0",- "typescript": "^5.3.0",- "vite": "^5.0.0"- }-}diff --git a/vendor/openhands-typescript-client/examples/local/src/App.tsx b/vendor/openhands-typescript-client/examples/local/src/App.tsxdeleted file mode 100644index ccdf8da33e..0000000000--- a/vendor/openhands-typescript-client/examples/local/src/App.tsx+++ /dev/null@@ -1,154 +0,0 @@-import { useState, useEffect } from 'react';-import { LLM } from '@openhands/typescript-client';-import { AuthScreen } from './components/AuthScreen';-import { ChatInterface } from './components/ChatInterface';-import { SettingsModal } from './components/SettingsModal';--export interface ChatConfig {- apiKey: string;- model: string;- temperature: number;- maxTokens: number;-}--const DEFAULT_MODEL = 'anthropic/claude-3.5-sonnet';--const POPULAR_MODELS = [- { id: 'anthropic/claude-3.5-sonnet', name: 'Claude 3.5 Sonnet' },- { id: 'anthropic/claude-3-haiku', name: 'Claude 3 Haiku' },- { id: 'openai/gpt-4o', name: 'GPT-4o' },- { id: 'openai/gpt-4o-mini', name: 'GPT-4o Mini' },- { id: 'google/gemini-pro-1.5', name: 'Gemini Pro 1.5' },- { id: 'meta-llama/llama-3.1-70b-instruct', name: 'Llama 3.1 70B' },- { id: 'mistralai/mistral-large', name: 'Mistral Large' },-];--function App() {- const [config, setConfig] = useState<ChatConfig | null>(null);- const [llm, setLlm] = useState<LLM | null>(null);- const [showSettings, setShowSettings] = useState(false);-- // Load saved config from localStorage- useEffect(() => {- const savedApiKey = localStorage.getItem('openrouter_api_key');- const savedModel = localStorage.getItem('openrouter_model') || DEFAULT_MODEL;-- if (savedApiKey) {- const loadedConfig: ChatConfig = {- apiKey: savedApiKey,- model: savedModel,- temperature: 0.7,- maxTokens: 4096,- };- setConfig(loadedConfig);- }- }, []);-- // Create LLM instance when config changes- useEffect(() => {- if (config) {- const newLlm = new LLM({- apiKey: config.apiKey,- defaultModel: config.model,- defaultTemperature: config.temperature,- defaultMaxTokens: config.maxTokens,- });- setLlm(newLlm);- } else {- setLlm(null);- }- }, [config]);-- const handleAuthenticate = (apiKey: string, model: string) => {- localStorage.setItem('openrouter_api_key', apiKey);- localStorage.setItem('openrouter_model', model);-- setConfig({- apiKey,- model,- temperature: 0.7,- maxTokens: 4096,- });- };-- const handleLogout = () => {- localStorage.removeItem('openrouter_api_key');- setConfig(null);- setLlm(null);- };-- const handleModelChange = (model: string) => {- if (config) {- localStorage.setItem('openrouter_model', model);- setConfig({ ...config, model });- }- };-- const handleSettingsUpdate = (newConfig: Partial<ChatConfig>) => {- if (config) {- const updated = { ...config, ...newConfig };- setConfig(updated);- if (newConfig.model) {- localStorage.setItem('openrouter_model', newConfig.model);- }- }- setShowSettings(false);- };-- if (!config || !llm) {- return (- <AuthScreen- onAuthenticate={handleAuthenticate}- models={POPULAR_MODELS}- defaultModel={DEFAULT_MODEL}- />- );- }-- return (- <div className="app">- <header className="header">- <h1>- <span className="logo">π€</span>- OpenHands Chat- </h1>- <div className="header-right">- <select- className="model-select"- value={config.model}- onChange={(e) => handleModelChange(e.target.value)}- >- {POPULAR_MODELS.map((model) => (- <option key={model.id} value={model.id}>- {model.name}- </option>- ))}- </select>- <div className="status-badge connected">- <span className="status-dot"></span>- Connected- </div>- <button className="btn btn-secondary" onClick={() => setShowSettings(true)}>- βοΈ- </button>- <button className="btn btn-danger" onClick={handleLogout}>- Logout- </button>- </div>- </header>-- <ChatInterface llm={llm} model={config.model} />-- {showSettings && (- <SettingsModal- config={config}- models={POPULAR_MODELS}- onClose={() => setShowSettings(false)}- onSave={handleSettingsUpdate}- />- )}- </div>- );-}--export default App;diff --git a/vendor/openhands-typescript-client/examples/local/src/components/AuthScreen.tsx b/vendor/openhands-typescript-client/examples/local/src/components/AuthScreen.tsxdeleted file mode 100644index 87b7a3adde..0000000000--- a/vendor/openhands-typescript-client/examples/local/src/components/AuthScreen.tsx+++ /dev/null@@ -1,108 +0,0 @@-import { useState } from 'react';--interface AuthScreenProps {- onAuthenticate: (apiKey: string, model: string) => void;- models: { id: string; name: string }[];- defaultModel: string;-}--export function AuthScreen({ onAuthenticate, models, defaultModel }: AuthScreenProps) {- const [apiKey, setApiKey] = useState('');- const [model, setModel] = useState(defaultModel);- const [isLoading, setIsLoading] = useState(false);- const [error, setError] = useState<string | null>(null);-- const handleSubmit = async (e: React.FormEvent) => {- e.preventDefault();- setError(null);- setIsLoading(true);-- try {- // Validate API key by making a test request- const response = await fetch('https://openrouter.ai/api/v1/auth/key', {- headers: {- 'Authorization': `Bearer ${apiKey}`,- },- });-- if (!response.ok) {- throw new Error('Invalid API key. Please check and try again.');- }-- onAuthenticate(apiKey, model);- } catch (err) {- setError(err instanceof Error ? err.message : 'Authentication failed');- } finally {- setIsLoading(false);- }- };-- return (- <div className="app">- <header className="header">- <h1>- <span className="logo">π€</span>- OpenHands Chat- </h1>- </header>-- <div className="auth-screen">- <div className="auth-card">- <h2>Welcome</h2>- <p>- Connect your OpenRouter API key to start chatting with AI models.- </p>-- <form className="auth-form" onSubmit={handleSubmit}>- {error && <div className="error-message">{error}</div>}-- <div className="form-group">- <label htmlFor="apiKey">OpenRouter API Key</label>- <input- id="apiKey"- type="password"- value={apiKey}- onChange={(e) => setApiKey(e.target.value)}- placeholder="sk-or-v1-..."- required- />- </div>-- <div className="form-group">- <label htmlFor="model">Default Model</label>- <select- id="model"- className="model-select"- value={model}- onChange={(e) => setModel(e.target.value)}- style={{ width: '100%' }}- >- {models.map((m) => (- <option key={m.id} value={m.id}>- {m.name}- </option>- ))}- </select>- </div>-- <button- type="submit"- className="btn btn-primary"- disabled={!apiKey || isLoading}- style={{ width: '100%' }}- >- {isLoading ? 'Connecting...' : 'Connect'}- </button>- </form>-- <div className="auth-link">- Don't have an API key?{' '}- <a href="https://openrouter.ai/keys" target="_blank" rel="noopener noreferrer">- Get one at OpenRouter β- </a>- </div>- </div>- </div>- </div>- );-}diff --git a/vendor/openhands-typescript-client/examples/local/src/components/ChatInterface.tsx b/vendor/openhands-typescript-client/examples/local/src/components/ChatInterface.tsxdeleted file mode 100644index b4af2adee4..0000000000--- a/vendor/openhands-typescript-client/examples/local/src/components/ChatInterface.tsx+++ /dev/null@@ -1,174 +0,0 @@-import { useState, useRef, useEffect } from 'react';-import ReactMarkdown from 'react-markdown';-import type { LLM } from '@openhands/typescript-client';--interface Message {- id: string;- role: 'user' | 'assistant';- content: string;- timestamp: Date;-}--interface ChatInterfaceProps {- llm: LLM;- model: string;-}--export function ChatInterface({ llm, model }: ChatInterfaceProps) {- const [messages, setMessages] = useState<Message[]>([]);- const [input, setInput] = useState('');- const [isLoading, setIsLoading] = useState(false);- const messagesEndRef = useRef<HTMLDivElement>(null);- const textareaRef = useRef<HTMLTextAreaElement>(null);-- // Auto-scroll to bottom when messages change- useEffect(() => {- messagesEndRef.current?.scrollIntoView({ behavior: 'smooth' });- }, [messages]);-- // Auto-resize textarea- useEffect(() => {- if (textareaRef.current) {- textareaRef.current.style.height = 'auto';- textareaRef.current.style.height = `${Math.min(textareaRef.current.scrollHeight, 200)}px`;- }- }, [input]);-- const sendMessage = async () => {- if (!input.trim() || isLoading) return;-- const userMessage: Message = {- id: Date.now().toString(),- role: 'user',- content: input.trim(),- timestamp: new Date(),- };-- setMessages((prev) => [...prev, userMessage]);- setInput('');- setIsLoading(true);-- try {- // Build conversation history for context (use plain strings for content)- const conversationMessages = [...messages, userMessage].map((msg) => ({- role: msg.role as 'user' | 'assistant',- content: msg.content,- }));-- // Call the LLM- const response = await llm.chatCompletion({- messages: conversationMessages,- model,- });-- // Extract the assistant's response- const assistantContent =- response.choices[0]?.message?.content ||- 'Sorry, I could not generate a response.';-- const assistantMessage: Message = {- id: (Date.now() + 1).toString(),- role: 'assistant',- content: assistantContent,- timestamp: new Date(),- };-- setMessages((prev) => [...prev, assistantMessage]);- } catch (error) {- console.error('Error getting response:', error);-- const errorMessage: Message = {- id: (Date.now() + 1).toString(),- role: 'assistant',- content: `Error: ${error instanceof Error ? error.message : 'Failed to get response'}`,- timestamp: new Date(),- };-- setMessages((prev) => [...prev, errorMessage]);- } finally {- setIsLoading(false);- }- };-- const handleKeyDown = (e: React.KeyboardEvent) => {- if (e.key === 'Enter' && !e.shiftKey) {- e.preventDefault();- sendMessage();- }- };-- const clearChat = () => {- setMessages([]);- };-- return (- <div className="chat-container">- {messages.length === 0 ? (- <div className="empty-state">- <div className="icon">π¬</div>- <h3>Start a conversation</h3>- <p>- Send a message to begin chatting with {model.split('/').pop()}.- Your conversation history will be maintained for context.- </p>- </div>- ) : (- <div className="messages">- {messages.map((message) => (- <div key={message.id} className={`message ${message.role}`}>- <div className="message-avatar">- {message.role === 'user' ? 'π€' : 'π€'}- </div>- <div className="message-content">- <ReactMarkdown>{message.content}</ReactMarkdown>- </div>- </div>- ))}- {isLoading && (- <div className="message assistant">- <div className="message-avatar">π€</div>- <div className="typing-indicator">- <div className="typing-dots">- <span></span>- <span></span>- <span></span>- </div>- Thinking...- </div>- </div>- )}- <div ref={messagesEndRef} />- </div>- )}-- <div className="input-area">- <div className="input-container">- <textarea- ref={textareaRef}- value={input}- onChange={(e) => setInput(e.target.value)}- onKeyDown={handleKeyDown}- placeholder="Type a message... (Shift+Enter for new line)"- disabled={isLoading}- rows={1}- />- <button- className="send-btn"- onClick={sendMessage}- disabled={!input.trim() || isLoading}- title="Send message"- >- β€- </button>- </div>- {messages.length > 0 && (- <div style={{ marginTop: '0.5rem', textAlign: 'center' }}>- <button className="btn btn-secondary" onClick={clearChat} style={{ fontSize: '0.75rem' }}>- Clear conversation- </button>- </div>- )}- </div>- </div>- );-}diff --git a/vendor/openhands-typescript-client/examples/local/src/components/SettingsModal.tsx b/vendor/openhands-typescript-client/examples/local/src/components/SettingsModal.tsxdeleted file mode 100644index 6ac2bdfb68..0000000000--- a/vendor/openhands-typescript-client/examples/local/src/components/SettingsModal.tsx+++ /dev/null@@ -1,91 +0,0 @@-import { useState } from 'react';-import type { ChatConfig } from '../App';--interface SettingsModalProps {- config: ChatConfig;- models: { id: string; name: string }[];- onClose: () => void;- onSave: (config: Partial<ChatConfig>) => void;-}--export function SettingsModal({ config, models, onClose, onSave }: SettingsModalProps) {- const [model, setModel] = useState(config.model);- const [temperature, setTemperature] = useState(config.temperature);- const [maxTokens, setMaxTokens] = useState(config.maxTokens);-- const handleSave = () => {- onSave({ model, temperature, maxTokens });- };-- return (- <div className="modal-overlay" onClick={onClose}>- <div className="modal" onClick={(e) => e.stopPropagation()}>- <h3>Settings</h3>-- <div className="form-group">- <label htmlFor="settings-model">Model</label>- <select- id="settings-model"- className="model-select"- value={model}- onChange={(e) => setModel(e.target.value)}- style={{ width: '100%' }}- >- {models.map((m) => (- <option key={m.id} value={m.id}>- {m.name}- </option>- ))}- </select>- </div>-- <div className="form-group" style={{ marginTop: '1rem' }}>- <label htmlFor="settings-temperature">- Temperature: {temperature.toFixed(1)}- </label>- <input- id="settings-temperature"- type="range"- min="0"- max="2"- step="0.1"- value={temperature}- onChange={(e) => setTemperature(parseFloat(e.target.value))}- style={{ width: '100%' }}- />- <div style={{ display: 'flex', justifyContent: 'space-between', fontSize: '0.75rem', color: 'var(--text-secondary)' }}>- <span>Precise</span>- <span>Creative</span>- </div>- </div>-- <div className="form-group" style={{ marginTop: '1rem' }}>- <label htmlFor="settings-tokens">Max Tokens: {maxTokens}</label>- <input- id="settings-tokens"- type="range"- min="256"- max="8192"- step="256"- value={maxTokens}- onChange={(e) => setMaxTokens(parseInt(e.target.value))}- style={{ width: '100%' }}- />- <div style={{ display: 'flex', justifyContent: 'space-between', fontSize: '0.75rem', color: 'var(--text-secondary)' }}>- <span>256</span>- <span>8192</span>- </div>- </div>-- <div className="modal-actions">- <button className="btn btn-secondary" onClick={onClose}>- Cancel- </button>- <button className="btn btn-primary" onClick={handleSave}>- Save Changes- </button>- </div>- </div>- </div>- );-}diff --git a/vendor/openhands-typescript-client/examples/local/src/main.tsx b/vendor/openhands-typescript-client/examples/local/src/main.tsxdeleted file mode 100644index 124f01d335..0000000000--- a/vendor/openhands-typescript-client/examples/local/src/main.tsx+++ /dev/null@@ -1,40 +0,0 @@-import React from 'react';-import ReactDOM from 'react-dom/client';-import App from './App';-import './styles.css';--// Error boundary to catch runtime errors-class ErrorBoundary extends React.Component<- { children: React.ReactNode },- { hasError: boolean; error: Error | null }-> {- constructor(props: { children: React.ReactNode }) {- super(props);- this.state = { hasError: false, error: null };- }-- static getDerivedStateFromError(error: Error) {- return { hasError: true, error };- }-- render() {- if (this.state.hasError) {- return (- <div style={{ padding: '2rem', color: 'red' }}>- <h1>Something went wrong</h1>- <pre>{this.state.error?.message}</pre>- <pre>{this.state.error?.stack}</pre>- </div>- );- }- return this.props.children;- }-}--ReactDOM.createRoot(document.getElementById('root')!).render(- <React.StrictMode>- <ErrorBoundary>- <App />- </ErrorBoundary>- </React.StrictMode>-);diff --git a/vendor/openhands-typescript-client/examples/local/src/styles.css b/vendor/openhands-typescript-client/examples/local/src/styles.cssdeleted file mode 100644index 0a604b6aca..0000000000--- a/vendor/openhands-typescript-client/examples/local/src/styles.css+++ /dev/null@@ -1,513 +0,0 @@-* {- box-sizing: border-box;- margin: 0;- padding: 0;-}--:root {- --primary: #6366f1;- --primary-dark: #4f46e5;- --primary-light: #818cf8;- --bg: #0f0f0f;- --bg-secondary: #1a1a1a;- --bg-tertiary: #262626;- --text: #fafafa;- --text-secondary: #a1a1aa;- --border: #333;- --success: #22c55e;- --error: #ef4444;- --warning: #f59e0b;-}--body {- font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;- background: var(--bg);- color: var(--text);- min-height: 100vh;-}--/* App Layout */-.app {- display: flex;- flex-direction: column;- height: 100vh;- max-width: 1200px;- margin: 0 auto;-}--/* Header */-.header {- display: flex;- align-items: center;- justify-content: space-between;- padding: 1rem 1.5rem;- border-bottom: 1px solid var(--border);- background: var(--bg-secondary);-}--.header h1 {- font-size: 1.25rem;- font-weight: 600;- display: flex;- align-items: center;- gap: 0.5rem;-}--.header .logo {- font-size: 1.5rem;-}--.header-right {- display: flex;- align-items: center;- gap: 1rem;-}--.model-select {- padding: 0.5rem 1rem;- background: var(--bg-tertiary);- border: 1px solid var(--border);- border-radius: 0.5rem;- color: var(--text);- font-size: 0.875rem;- cursor: pointer;-}--.model-select:focus {- outline: none;- border-color: var(--primary);-}--.status-badge {- display: flex;- align-items: center;- gap: 0.5rem;- padding: 0.5rem 0.75rem;- border-radius: 9999px;- font-size: 0.75rem;- font-weight: 500;-}--.status-badge.connected {- background: rgba(34, 197, 94, 0.1);- color: var(--success);-}--.status-badge.disconnected {- background: rgba(239, 68, 68, 0.1);- color: var(--error);-}--.status-dot {- width: 8px;- height: 8px;- border-radius: 50%;- background: currentColor;-}--/* Auth Screen */-.auth-screen {- flex: 1;- display: flex;- align-items: center;- justify-content: center;- padding: 2rem;-}--.auth-card {- background: var(--bg-secondary);- border: 1px solid var(--border);- border-radius: 1rem;- padding: 2rem;- width: 100%;- max-width: 400px;-}--.auth-card h2 {- font-size: 1.5rem;- margin-bottom: 0.5rem;- text-align: center;-}--.auth-card p {- color: var(--text-secondary);- font-size: 0.875rem;- text-align: center;- margin-bottom: 1.5rem;-}--.auth-form {- display: flex;- flex-direction: column;- gap: 1rem;-}--.form-group {- display: flex;- flex-direction: column;- gap: 0.5rem;-}--.form-group label {- font-size: 0.875rem;- font-weight: 500;-}--.form-group input {- padding: 0.75rem 1rem;- background: var(--bg-tertiary);- border: 1px solid var(--border);- border-radius: 0.5rem;- color: var(--text);- font-size: 0.875rem;-}--.form-group input:focus {- outline: none;- border-color: var(--primary);-}--.form-group input::placeholder {- color: var(--text-secondary);-}--.btn {- padding: 0.75rem 1.5rem;- border-radius: 0.5rem;- font-size: 0.875rem;- font-weight: 500;- cursor: pointer;- transition: all 0.2s;- border: none;-}--.btn-primary {- background: var(--primary);- color: white;-}--.btn-primary:hover {- background: var(--primary-dark);-}--.btn-primary:disabled {- opacity: 0.5;- cursor: not-allowed;-}--.btn-secondary {- background: var(--bg-tertiary);- color: var(--text);- border: 1px solid var(--border);-}--.btn-secondary:hover {- background: var(--border);-}--.btn-danger {- background: rgba(239, 68, 68, 0.1);- color: var(--error);- border: 1px solid var(--error);-}--.btn-danger:hover {- background: rgba(239, 68, 68, 0.2);-}--.auth-link {- text-align: center;- margin-top: 1rem;- font-size: 0.875rem;-}--.auth-link a {- color: var(--primary-light);- text-decoration: none;-}--.auth-link a:hover {- text-decoration: underline;-}--.error-message {- background: rgba(239, 68, 68, 0.1);- border: 1px solid var(--error);- color: var(--error);- padding: 0.75rem;- border-radius: 0.5rem;- font-size: 0.875rem;-}--/* Chat Area */-.chat-container {- flex: 1;- display: flex;- flex-direction: column;- overflow: hidden;-}--.messages {- flex: 1;- overflow-y: auto;- padding: 1rem;- display: flex;- flex-direction: column;- gap: 1rem;-}--.message {- display: flex;- gap: 0.75rem;- max-width: 85%;-}--.message.user {- align-self: flex-end;- flex-direction: row-reverse;-}--.message.assistant {- align-self: flex-start;-}--.message-avatar {- width: 32px;- height: 32px;- border-radius: 50%;- display: flex;- align-items: center;- justify-content: center;- font-size: 1rem;- flex-shrink: 0;-}--.message.user .message-avatar {- background: var(--primary);-}--.message.assistant .message-avatar {- background: var(--bg-tertiary);- border: 1px solid var(--border);-}--.message-content {- background: var(--bg-secondary);- border: 1px solid var(--border);- border-radius: 1rem;- padding: 0.75rem 1rem;- font-size: 0.9375rem;- line-height: 1.5;-}--.message.user .message-content {- background: var(--primary);- border-color: var(--primary);-}--.message-content pre {- background: var(--bg);- padding: 0.75rem;- border-radius: 0.5rem;- overflow-x: auto;- margin: 0.5rem 0;-}--.message-content code {- font-family: 'Fira Code', monospace;- font-size: 0.875rem;-}--.message-content p {- margin: 0.5rem 0;-}--.message-content p:first-child {- margin-top: 0;-}--.message-content p:last-child {- margin-bottom: 0;-}--.typing-indicator {- display: flex;- align-items: center;- gap: 0.5rem;- padding: 0.75rem 1rem;- background: var(--bg-secondary);- border: 1px solid var(--border);- border-radius: 1rem;- color: var(--text-secondary);- font-size: 0.875rem;-}--.typing-dots {- display: flex;- gap: 0.25rem;-}--.typing-dots span {- width: 6px;- height: 6px;- background: var(--text-secondary);- border-radius: 50%;- animation: bounce 1.4s infinite ease-in-out both;-}--.typing-dots span:nth-child(1) {- animation-delay: -0.32s;-}--.typing-dots span:nth-child(2) {- animation-delay: -0.16s;-}--@keyframes bounce {- 0%, 80%, 100% {- transform: scale(0);- }- 40% {- transform: scale(1);- }-}--/* Input Area */-.input-area {- padding: 1rem;- border-top: 1px solid var(--border);- background: var(--bg-secondary);-}--.input-container {- display: flex;- gap: 0.75rem;- align-items: flex-end;-}--.input-container textarea {- flex: 1;- padding: 0.75rem 1rem;- background: var(--bg-tertiary);- border: 1px solid var(--border);- border-radius: 0.75rem;- color: var(--text);- font-size: 0.9375rem;- font-family: inherit;- resize: none;- min-height: 44px;- max-height: 200px;-}--.input-container textarea:focus {- outline: none;- border-color: var(--primary);-}--.input-container textarea::placeholder {- color: var(--text-secondary);-}--.send-btn {- width: 44px;- height: 44px;- border-radius: 0.75rem;- background: var(--primary);- border: none;- color: white;- font-size: 1.25rem;- cursor: pointer;- display: flex;- align-items: center;- justify-content: center;- transition: all 0.2s;-}--.send-btn:hover {- background: var(--primary-dark);-}--.send-btn:disabled {- opacity: 0.5;- cursor: not-allowed;-}--/* Settings Modal */-.modal-overlay {- position: fixed;- inset: 0;- background: rgba(0, 0, 0, 0.7);- display: flex;- align-items: center;- justify-content: center;- z-index: 1000;-}--.modal {- background: var(--bg-secondary);- border: 1px solid var(--border);- border-radius: 1rem;- padding: 1.5rem;- width: 90%;- max-width: 500px;- max-height: 90vh;- overflow-y: auto;-}--.modal h3 {- font-size: 1.25rem;- margin-bottom: 1rem;-}--.modal-actions {- display: flex;- justify-content: flex-end;- gap: 0.75rem;- margin-top: 1.5rem;-}--/* Empty State */-.empty-state {- flex: 1;- display: flex;- flex-direction: column;- align-items: center;- justify-content: center;- color: var(--text-secondary);- text-align: center;- padding: 2rem;-}--.empty-state .icon {- font-size: 3rem;- margin-bottom: 1rem;-}--.empty-state h3 {- font-size: 1.25rem;- color: var(--text);- margin-bottom: 0.5rem;-}--.empty-state p {- max-width: 400px;- line-height: 1.5;-}--/* Scrollbar */-::-webkit-scrollbar {- width: 8px;-}--::-webkit-scrollbar-track {- background: transparent;-}--::-webkit-scrollbar-thumb {- background: var(--border);- border-radius: 4px;-}--::-webkit-scrollbar-thumb:hover {- background: var(--text-secondary);-}diff --git a/vendor/openhands-typescript-client/examples/local/src/vite-env.d.ts b/vendor/openhands-typescript-client/examples/local/src/vite-env.d.tsdeleted file mode 100644index 11f02fe2a0..0000000000--- a/vendor/openhands-typescript-client/examples/local/src/vite-env.d.ts+++ /dev/null@@ -1 +0,0 @@-/// <reference types="vite/client" />diff --git a/vendor/openhands-typescript-client/examples/local/tsconfig.json b/vendor/openhands-typescript-client/examples/local/tsconfig.jsondeleted file mode 100644index ed6ad0d1d4..0000000000--- a/vendor/openhands-typescript-client/examples/local/tsconfig.json+++ /dev/null@@ -1,24 +0,0 @@-{- "compilerOptions": {- "target": "ES2020",- "useDefineForClassFields": true,- "lib": ["ES2020", "DOM", "DOM.Iterable"],- "module": "ESNext",- "skipLibCheck": true,- "moduleResolution": "bundler",- "allowImportingTsExtensions": true,- "resolveJsonModule": true,- "isolatedModules": true,- "noEmit": true,- "jsx": "react-jsx",- "strict": true,- "noUnusedLocals": true,- "noUnusedParameters": true,- "noFallthroughCasesInSwitch": true,- "baseUrl": ".",- "paths": {- "@openhands/typescript-client": ["../../dist"]- }- },- "include": ["src"]-}diff --git a/vendor/openhands-typescript-client/examples/local/vite.config.ts b/vendor/openhands-typescript-client/examples/local/vite.config.tsdeleted file mode 100644index b6cc138713..0000000000--- a/vendor/openhands-typescript-client/examples/local/vite.config.ts+++ /dev/null@@ -1,17 +0,0 @@-import { defineConfig } from 'vite';-import react from '@vitejs/plugin-react';-import path from 'path';--export default defineConfig({- plugins: [react()],- resolve: {- alias: {- '@openhands/typescript-client': path.resolve(__dirname, '../../dist'),- },- },- server: {- port: 12000,- host: true,- allowedHosts: ['work-1-govhxshotncecgfj.prod-runtime.all-hands.dev'],- },-});diff --git a/vendor/openhands-typescript-client/jest.config.cjs b/vendor/openhands-typescript-client/jest.config.cjsdeleted file mode 100644index d377dca236..0000000000--- a/vendor/openhands-typescript-client/jest.config.cjs+++ /dev/null@@ -1,44 +0,0 @@-module.exports = {- preset: 'ts-jest',- testEnvironment: 'node',- roots: ['<rootDir>/src'],- testMatch: [- // Only match files ending in .test.ts or .spec.ts- '**/__tests__/**/*.test.ts',- '**/__tests__/**/*.spec.ts',- '**/?(*.)+(spec|test).ts'- ],- testPathIgnorePatterns: [- '/node_modules/',- // Ignore integration tests by default (run separately)- '.*\\.integration\\.test\\.ts$',- // Ignore helper files- '.*/__tests__/integration/(test-config|test-utils|setup|index)\\.ts$'- ],- transform: {- '^.+\\.ts$': 'ts-jest',- // Transform ESM modules from @openrouter/sdk- '^.+\\.js$': 'babel-jest'- },- // Don't ignore @openrouter/sdk for transformation- transformIgnorePatterns: [- '/node_modules/(?!(@openrouter/sdk)/)'- ],- collectCoverageFrom: [- 'src/**/*.ts',- '!src/**/*.d.ts',- '!src/__tests__/**/*'- ],- coverageDirectory: 'coverage',- coverageReporters: [- 'text',- 'lcov',- 'html'- ],- moduleFileExtensions: [- 'ts',- 'js',- 'json'- ],- testTimeout: 10000-};\ No newline at end of filediff --git a/vendor/openhands-typescript-client/jest.integration.config.cjs b/vendor/openhands-typescript-client/jest.integration.config.cjsdeleted file mode 100644index 09d822d677..0000000000--- a/vendor/openhands-typescript-client/jest.integration.config.cjs+++ /dev/null@@ -1,39 +0,0 @@-/**- * Jest configuration for integration tests- *- * These tests require a running agent-server in Docker with a mounted workspace.- * Run with: npm run test:integration- */-module.exports = {- preset: 'ts-jest',- testEnvironment: 'node',- roots: ['<rootDir>/src'],- testMatch: [- '**/__tests__/integration/**/*.integration.test.ts'- ],- transform: {- '^.+\\.ts$': 'ts-jest',- // Transform ESM modules from @openrouter/sdk- '^.+\\.js$': 'babel-jest'- },- // Don't ignore @openrouter/sdk for transformation- transformIgnorePatterns: [- '/node_modules/(?!(@openrouter/sdk)/)'- ],- moduleFileExtensions: [- 'ts',- 'js',- 'json'- ],- // Integration tests need longer timeouts- testTimeout: 180000,- // Run tests serially to avoid conflicts- maxWorkers: 1,- // Verbose output for debugging- verbose: true,- // Setup files- setupFilesAfterEnv: ['<rootDir>/src/__tests__/integration/setup.ts'],- // Force exit after all tests complete to handle WebSocket connections- // that may not be fully closed- forceExit: true,-};diff --git a/vendor/openhands-typescript-client/package-lock.json b/vendor/openhands-typescript-client/package-lock.jsondeleted file mode 100644index 29aa804795..0000000000--- a/vendor/openhands-typescript-client/package-lock.json+++ /dev/null@@ -1,7282 +0,0 @@-{- "name": "@openhands/typescript-client",- "version": "0.1.0",- "lockfileVersion": 3,- "requires": true,- "packages": {- "": {- "name": "@openhands/typescript-client",- "version": "0.1.0",- "license": "MIT",- "dependencies": {- "@openrouter/sdk": "^0.12.1",- "ws": "^8.20.0"- },- "devDependencies": {- "@babel/preset-env": "^7.29.2",- "@eslint/js": "^10.0.1",- "@types/jest": "^30.0.0",- "@types/node": "^25.6.0",- "@types/ws": "^8.5.8",- "@typescript-eslint/eslint-plugin": "^8.58.2",- "@typescript-eslint/parser": "^8.58.2",- "eslint": "^10.2.0",- "globals": "^17.5.0",- "jest": "^30.3.0",- "prettier": "^3.8.2",- "ts-jest": "^29.4.9",- "typescript": "^6.0.2",- "typescript-eslint": "^8.58.2"- }- },- "node_modules/@babel/code-frame": {- "version": "7.29.0",- "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.29.0.tgz",- "integrity": "sha512-9NhCeYjq9+3uxgdtp20LSiJXJvN0FeCtNGpJxuMFZ1Kv3cWUNb6DOhJwUvcVCzKGR66cw4njwM6hrJLqgOwbcw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-validator-identifier": "^7.28.5",- "js-tokens": "^4.0.0",- "picocolors": "^1.1.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/compat-data": {- "version": "7.29.0",- "resolved": "https://registry.npmjs.org/@babel/compat-data/-/compat-data-7.29.0.tgz",- "integrity": "sha512-T1NCJqT/j9+cn8fvkt7jtwbLBfLC/1y1c7NtCeXFRgzGTsafi68MRv8yzkYSapBnFA6L3U2VSc02ciDzoAJhJg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/core": {- "version": "7.29.0",- "resolved": "https://registry.npmjs.org/@babel/core/-/core-7.29.0.tgz",- "integrity": "sha512-CGOfOJqWjg2qW/Mb6zNsDm+u5vFQ8DxXfbM09z69p5Z6+mE1ikP2jUXw+j42Pf1XTYED2Rni5f95npYeuwMDQA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.29.0",- "@babel/generator": "^7.29.0",- "@babel/helper-compilation-targets": "^7.28.6",- "@babel/helper-module-transforms": "^7.28.6",- "@babel/helpers": "^7.28.6",- "@babel/parser": "^7.29.0",- "@babel/template": "^7.28.6",- "@babel/traverse": "^7.29.0",- "@babel/types": "^7.29.0",- "@jridgewell/remapping": "^2.3.5",- "convert-source-map": "^2.0.0",- "debug": "^4.1.0",- "gensync": "^1.0.0-beta.2",- "json5": "^2.2.3",- "semver": "^6.3.1"- },- "engines": {- "node": ">=6.9.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/babel"- }- },- "node_modules/@babel/generator": {- "version": "7.29.1",- "resolved": "https://registry.npmjs.org/@babel/generator/-/generator-7.29.1.tgz",- "integrity": "sha512-qsaF+9Qcm2Qv8SRIMMscAvG4O3lJ0F1GuMo5HR/Bp02LopNgnZBC/EkbevHFeGs4ls/oPz9v+Bsmzbkbe+0dUw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.29.0",- "@babel/types": "^7.29.0",- "@jridgewell/gen-mapping": "^0.3.12",- "@jridgewell/trace-mapping": "^0.3.28",- "jsesc": "^3.0.2"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-annotate-as-pure": {- "version": "7.27.3",- "resolved": "https://registry.npmjs.org/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.27.3.tgz",- "integrity": "sha512-fXSwMQqitTGeHLBC08Eq5yXz2m37E4pJX1qAU1+2cNedz/ifv/bVXft90VeSav5nFO61EcNgwr0aJxbyPaWBPg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.27.3"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-compilation-targets": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helper-compilation-targets/-/helper-compilation-targets-7.28.6.tgz",- "integrity": "sha512-JYtls3hqi15fcx5GaSNL7SCTJ2MNmjrkHXg4FSpOA/grxK8KwyZ5bubHsCq8FXCkua6xhuaaBit+3b7+VZRfcA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/compat-data": "^7.28.6",- "@babel/helper-validator-option": "^7.27.1",- "browserslist": "^4.24.0",- "lru-cache": "^5.1.1",- "semver": "^6.3.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-create-class-features-plugin": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.28.6.tgz",- "integrity": "sha512-dTOdvsjnG3xNT9Y0AUg1wAl38y+4Rl4sf9caSQZOXdNqVn+H+HbbJ4IyyHaIqNR6SW9oJpA/RuRjsjCw2IdIow==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-annotate-as-pure": "^7.27.3",- "@babel/helper-member-expression-to-functions": "^7.28.5",- "@babel/helper-optimise-call-expression": "^7.27.1",- "@babel/helper-replace-supers": "^7.28.6",- "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1",- "@babel/traverse": "^7.28.6",- "semver": "^6.3.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/helper-create-regexp-features-plugin": {- "version": "7.28.5",- "resolved": "https://registry.npmjs.org/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.28.5.tgz",- "integrity": "sha512-N1EhvLtHzOvj7QQOUCCS3NrPJP8c5W6ZXCHDn7Yialuy1iu4r5EmIYkXlKNqT99Ciw+W0mDqWoR6HWMZlFP3hw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-annotate-as-pure": "^7.27.3",- "regexpu-core": "^6.3.1",- "semver": "^6.3.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/helper-define-polyfill-provider": {- "version": "0.6.6",- "resolved": "https://registry.npmjs.org/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.6.tgz",- "integrity": "sha512-mOAsxeeKkUKayvZR3HeTYD/fICpCPLJrU5ZjelT/PA6WHtNDBOE436YiaEUvHN454bRM3CebhDsIpieCc4texA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-compilation-targets": "^7.28.6",- "@babel/helper-plugin-utils": "^7.28.6",- "debug": "^4.4.3",- "lodash.debounce": "^4.0.8",- "resolve": "^1.22.11"- },- "peerDependencies": {- "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"- }- },- "node_modules/@babel/helper-globals": {- "version": "7.28.0",- "resolved": "https://registry.npmjs.org/@babel/helper-globals/-/helper-globals-7.28.0.tgz",- "integrity": "sha512-+W6cISkXFa1jXsDEdYA8HeevQT/FULhxzR99pxphltZcVaugps53THCeiWA8SguxxpSp3gKPiuYfSWopkLQ4hw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-member-expression-to-functions": {- "version": "7.28.5",- "resolved": "https://registry.npmjs.org/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.28.5.tgz",- "integrity": "sha512-cwM7SBRZcPCLgl8a7cY0soT1SptSzAlMH39vwiRpOQkJlh53r5hdHwLSCZpQdVLT39sZt+CRpNwYG4Y2v77atg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/traverse": "^7.28.5",- "@babel/types": "^7.28.5"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-module-imports": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helper-module-imports/-/helper-module-imports-7.28.6.tgz",- "integrity": "sha512-l5XkZK7r7wa9LucGw9LwZyyCUscb4x37JWTPz7swwFE/0FMQAGpiWUZn8u9DzkSBWEcK25jmvubfpw2dnAMdbw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/traverse": "^7.28.6",- "@babel/types": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-module-transforms": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helper-module-transforms/-/helper-module-transforms-7.28.6.tgz",- "integrity": "sha512-67oXFAYr2cDLDVGLXTEABjdBJZ6drElUSI7WKp70NrpyISso3plG9SAGEF6y7zbha/wOzUByWWTJvEDVNIUGcA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-module-imports": "^7.28.6",- "@babel/helper-validator-identifier": "^7.28.5",- "@babel/traverse": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/helper-optimise-call-expression": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.27.1.tgz",- "integrity": "sha512-URMGH08NzYFhubNSGJrpUEphGKQwMQYBySzat5cAByY1/YgIRkULnIy3tAMeszlL/so2HbeilYloUmSpd7GdVw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-plugin-utils": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helper-plugin-utils/-/helper-plugin-utils-7.28.6.tgz",- "integrity": "sha512-S9gzZ/bz83GRysI7gAD4wPT/AI3uCnY+9xn+Mx/KPs2JwHJIz1W8PZkg2cqyt3RNOBM8ejcXhV6y8Og7ly/Dug==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-remap-async-to-generator": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.27.1.tgz",- "integrity": "sha512-7fiA521aVw8lSPeI4ZOD3vRFkoqkJcS+z4hFo82bFSH/2tNd6eJ5qCVMS5OzDmZh/kaHQeBaeyxK6wljcPtveA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-annotate-as-pure": "^7.27.1",- "@babel/helper-wrap-function": "^7.27.1",- "@babel/traverse": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/helper-replace-supers": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helper-replace-supers/-/helper-replace-supers-7.28.6.tgz",- "integrity": "sha512-mq8e+laIk94/yFec3DxSjCRD2Z0TAjhVbEJY3UQrlwVo15Lmt7C2wAUbK4bjnTs4APkwsYLTahXRraQXhb1WCg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-member-expression-to-functions": "^7.28.5",- "@babel/helper-optimise-call-expression": "^7.27.1",- "@babel/traverse": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/helper-skip-transparent-expression-wrappers": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.27.1.tgz",- "integrity": "sha512-Tub4ZKEXqbPjXgWLl2+3JpQAYBJ8+ikpQ2Ocj/q/r0LwE3UhENh7EUabyHjz2kCEsrRY83ew2DQdHluuiDQFzg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/traverse": "^7.27.1",- "@babel/types": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-string-parser": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",- "integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-validator-identifier": {- "version": "7.28.5",- "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.28.5.tgz",- "integrity": "sha512-qSs4ifwzKJSV39ucNjsvc6WVHs6b7S03sOh2OcHF9UHfVPqWWALUsNUVzhSBiItjRZoLHx7nIarVjqKVusUZ1Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-validator-option": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/helper-validator-option/-/helper-validator-option-7.27.1.tgz",- "integrity": "sha512-YvjJow9FxbhFFKDSuFnVCe2WxXk1zWc22fFePVNEaWJEu8IrZVlda6N0uHwzZrUM1il7NC9Mlp4MaJYbYd9JSg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helper-wrap-function": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helper-wrap-function/-/helper-wrap-function-7.28.6.tgz",- "integrity": "sha512-z+PwLziMNBeSQJonizz2AGnndLsP2DeGHIxDAn+wdHOGuo4Fo1x1HBPPXeE9TAOPHNNWQKCSlA2VZyYyyibDnQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/template": "^7.28.6",- "@babel/traverse": "^7.28.6",- "@babel/types": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/helpers": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/helpers/-/helpers-7.28.6.tgz",- "integrity": "sha512-xOBvwq86HHdB7WUDTfKfT/Vuxh7gElQ+Sfti2Cy6yIWNW05P8iUslOVcZ4/sKbE+/jQaukQAdz/gf3724kYdqw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/template": "^7.28.6",- "@babel/types": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/parser": {- "version": "7.29.0",- "resolved": "https://registry.npmjs.org/@babel/parser/-/parser-7.29.0.tgz",- "integrity": "sha512-IyDgFV5GeDUVX4YdF/3CPULtVGSXXMLh1xVIgdCgxApktqnQV0r7/8Nqthg+8YLGaAtdyIlo2qIdZrbCv4+7ww==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.29.0"- },- "bin": {- "parser": "bin/babel-parser.js"- },- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@babel/plugin-bugfix-firefox-class-in-computed-class-key": {- "version": "7.28.5",- "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-firefox-class-in-computed-class-key/-/plugin-bugfix-firefox-class-in-computed-class-key-7.28.5.tgz",- "integrity": "sha512-87GDMS3tsmMSi/3bWOte1UblL+YUTFMV8SZPZ2eSEL17s74Cw/l63rR6NmGVKMYW2GYi85nE+/d6Hw5N0bEk2Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1",- "@babel/traverse": "^7.28.5"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/plugin-bugfix-safari-class-field-initializer-scope": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-class-field-initializer-scope/-/plugin-bugfix-safari-class-field-initializer-scope-7.27.1.tgz",- "integrity": "sha512-qNeq3bCKnGgLkEXUuFry6dPlGfCdQNZbn7yUAPCInwAJHMU7THJfrBSozkcWq5sNM6RcF3S8XyQL2A52KNR9IA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.27.1.tgz",- "integrity": "sha512-g4L7OYun04N1WyqMNjldFwlfPCLVkgB54A/YCXICZYBsvJJE3kByKv9c9+R/nAfmIfjl2rKYLNyMHboYbZaWaA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.27.1.tgz",- "integrity": "sha512-oO02gcONcD5O1iTLi/6frMJBIwWEHceWGSGqrpCmEL8nogiS6J9PBlE48CaK20/Jx1LuRml9aDftLgdjXT8+Cw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1",- "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1",- "@babel/plugin-transform-optional-chaining": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.13.0"- }- },- "node_modules/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.28.6.tgz",- "integrity": "sha512-a0aBScVTlNaiUe35UtfxAN7A/tehvvG4/ByO6+46VPKTRSlfnAFsgKy0FUh+qAkQrDTmhDkT+IBOKlOoMUxQ0g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6",- "@babel/traverse": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/plugin-proposal-private-property-in-object": {- "version": "7.21.0-placeholder-for-preset-env.2",- "resolved": "https://registry.npmjs.org/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz",- "integrity": "sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-async-generators": {- "version": "7.8.4",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz",- "integrity": "sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.8.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-bigint": {- "version": "7.8.3",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-bigint/-/plugin-syntax-bigint-7.8.3.tgz",- "integrity": "sha512-wnTnFlG+YxQm3vDxpGE57Pj0srRU4sHE/mDkt1qv2YJJSeUAec2ma4WLUnUPeKjyrfntVwe/N6dCXpU+zL3Npg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.8.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-class-properties": {- "version": "7.12.13",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz",- "integrity": "sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.12.13"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-class-static-block": {- "version": "7.14.5",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz",- "integrity": "sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.14.5"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-import-assertions": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.28.6.tgz",- "integrity": "sha512-pSJUpFHdx9z5nqTSirOCMtYVP2wFgoWhP0p3g8ONK/4IHhLIBd0B9NYqAvIUAhq+OkhO4VM1tENCt0cjlsNShw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-import-attributes": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.28.6.tgz",- "integrity": "sha512-jiLC0ma9XkQT3TKJ9uYvlakm66Pamywo+qwL+oL8HJOvc6TWdZXVfhqJr8CCzbSGUAbDOzlGHJC1U+vRfLQDvw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-import-meta": {- "version": "7.10.4",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz",- "integrity": "sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.10.4"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-json-strings": {- "version": "7.8.3",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz",- "integrity": "sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.8.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-jsx": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-jsx/-/plugin-syntax-jsx-7.28.6.tgz",- "integrity": "sha512-wgEmr06G6sIpqr8YDwA2dSRTE3bJ+V0IfpzfSY3Lfgd7YWOaAdlykvJi13ZKBt8cZHfgH1IXN+CL656W3uUa4w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-logical-assignment-operators": {- "version": "7.10.4",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz",- "integrity": "sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.10.4"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-nullish-coalescing-operator": {- "version": "7.8.3",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz",- "integrity": "sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.8.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-numeric-separator": {- "version": "7.10.4",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz",- "integrity": "sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.10.4"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-object-rest-spread": {- "version": "7.8.3",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz",- "integrity": "sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.8.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-optional-catch-binding": {- "version": "7.8.3",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz",- "integrity": "sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.8.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-optional-chaining": {- "version": "7.8.3",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz",- "integrity": "sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.8.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-private-property-in-object": {- "version": "7.14.5",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz",- "integrity": "sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.14.5"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-top-level-await": {- "version": "7.14.5",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz",- "integrity": "sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.14.5"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-typescript": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-typescript/-/plugin-syntax-typescript-7.28.6.tgz",- "integrity": "sha512-+nDNmQye7nlnuuHDboPbGm00Vqg3oO8niRRL27/4LYHUsHYh0zJ1xWOz0uRwNFmM1Avzk8wZbc6rdiYhomzv/A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-syntax-unicode-sets-regex": {- "version": "7.18.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz",- "integrity": "sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-create-regexp-features-plugin": "^7.18.6",- "@babel/helper-plugin-utils": "^7.18.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/plugin-transform-arrow-functions": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.27.1.tgz",- "integrity": "sha512-8Z4TGic6xW70FKThA5HYEKKyBpOOsucTOD1DjU3fZxDg+K3zBJcXMFnt/4yQiZnf5+MiOMSXQ9PaEK/Ilh1DeA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-async-generator-functions": {- "version": "7.29.0",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.29.0.tgz",- "integrity": "sha512-va0VdWro4zlBr2JsXC+ofCPB2iG12wPtVGTWFx2WLDOM3nYQZZIGP82qku2eW/JR83sD+k2k+CsNtyEbUqhU6w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6",- "@babel/helper-remap-async-to-generator": "^7.27.1",- "@babel/traverse": "^7.29.0"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-async-to-generator": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.28.6.tgz",- "integrity": "sha512-ilTRcmbuXjsMmcZ3HASTe4caH5Tpo93PkTxF9oG2VZsSWsahydmcEHhix9Ik122RcTnZnUzPbmux4wh1swfv7g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-module-imports": "^7.28.6",- "@babel/helper-plugin-utils": "^7.28.6",- "@babel/helper-remap-async-to-generator": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-block-scoped-functions": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.27.1.tgz",- "integrity": "sha512-cnqkuOtZLapWYZUYM5rVIdv1nXYuFVIltZ6ZJ7nIj585QsjKM5dhL2Fu/lICXZ1OyIAFc7Qy+bvDAtTXqGrlhg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-block-scoping": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.28.6.tgz",- "integrity": "sha512-tt/7wOtBmwHPNMPu7ax4pdPz6shjFrmHDghvNC+FG9Qvj7D6mJcoRQIF5dy4njmxR941l6rgtvfSB2zX3VlUIw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-class-properties": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.28.6.tgz",- "integrity": "sha512-dY2wS3I2G7D697VHndN91TJr8/AAfXQNt5ynCTI/MpxMsSzHp+52uNivYT5wCPax3whc47DR8Ba7cmlQMg24bw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-create-class-features-plugin": "^7.28.6",- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-class-static-block": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.28.6.tgz",- "integrity": "sha512-rfQ++ghVwTWTqQ7w8qyDxL1XGihjBss4CmTgGRCTAC9RIbhVpyp4fOeZtta0Lbf+dTNIVJer6ych2ibHwkZqsQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-create-class-features-plugin": "^7.28.6",- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.12.0"- }- },- "node_modules/@babel/plugin-transform-classes": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-classes/-/plugin-transform-classes-7.28.6.tgz",- "integrity": "sha512-EF5KONAqC5zAqT783iMGuM2ZtmEBy+mJMOKl2BCvPZ2lVrwvXnB6o+OBWCS+CoeCCpVRF2sA2RBKUxvT8tQT5Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-annotate-as-pure": "^7.27.3",- "@babel/helper-compilation-targets": "^7.28.6",- "@babel/helper-globals": "^7.28.0",- "@babel/helper-plugin-utils": "^7.28.6",- "@babel/helper-replace-supers": "^7.28.6",- "@babel/traverse": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-computed-properties": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.28.6.tgz",- "integrity": "sha512-bcc3k0ijhHbc2lEfpFHgx7eYw9KNXqOerKWfzbxEHUGKnS3sz9C4CNL9OiFN1297bDNfUiSO7DaLzbvHQQQ1BQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6",- "@babel/template": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-destructuring": {- "version": "7.28.5",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.28.5.tgz",- "integrity": "sha512-Kl9Bc6D0zTUcFUvkNuQh4eGXPKKNDOJQXVyyM4ZAQPMveniJdxi8XMJwLo+xSoW3MIq81bD33lcUe9kZpl0MCw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1",- "@babel/traverse": "^7.28.5"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-dotall-regex": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.28.6.tgz",- "integrity": "sha512-SljjowuNKB7q5Oayv4FoPzeB74g3QgLt8IVJw9ADvWy3QnUb/01aw8I4AVv8wYnPvQz2GDDZ/g3GhcNyDBI4Bg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-create-regexp-features-plugin": "^7.28.5",- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-duplicate-keys": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.27.1.tgz",- "integrity": "sha512-MTyJk98sHvSs+cvZ4nOauwTTG1JeonDjSGvGGUNHreGQns+Mpt6WX/dVzWBHgg+dYZhkC4X+zTDfkTU+Vy9y7Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-duplicate-named-capturing-groups-regex": {- "version": "7.29.0",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-duplicate-named-capturing-groups-regex/-/plugin-transform-duplicate-named-capturing-groups-regex-7.29.0.tgz",- "integrity": "sha512-zBPcW2lFGxdiD8PUnPwJjag2J9otbcLQzvbiOzDxpYXyCuYX9agOwMPGn1prVH0a4qzhCKu24rlH4c1f7yA8rw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-create-regexp-features-plugin": "^7.28.5",- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/plugin-transform-dynamic-import": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.27.1.tgz",- "integrity": "sha512-MHzkWQcEmjzzVW9j2q8LGjwGWpG2mjwaaB0BNQwst3FIjqsg8Ct/mIZlvSPJvfi9y2AC8mi/ktxbFVL9pZ1I4A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-explicit-resource-management": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-explicit-resource-management/-/plugin-transform-explicit-resource-management-7.28.6.tgz",- "integrity": "sha512-Iao5Konzx2b6g7EPqTy40UZbcdXE126tTxVFr/nAIj+WItNxjKSYTEw3RC+A2/ZetmdJsgueL1KhaMCQHkLPIg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6",- "@babel/plugin-transform-destructuring": "^7.28.5"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-exponentiation-operator": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.28.6.tgz",- "integrity": "sha512-WitabqiGjV/vJ0aPOLSFfNY1u9U3R7W36B03r5I2KoNix+a3sOhJ3pKFB3R5It9/UiK78NiO0KE9P21cMhlPkw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-export-namespace-from": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.27.1.tgz",- "integrity": "sha512-tQvHWSZ3/jH2xuq/vZDy0jNn+ZdXJeM8gHvX4lnJmsc3+50yPlWdZXIc5ay+umX+2/tJIqHqiEqcJvxlmIvRvQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-for-of": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.27.1.tgz",- "integrity": "sha512-BfbWFFEJFQzLCQ5N8VocnCtA8J1CLkNTe2Ms2wocj75dd6VpiqS5Z5quTYcUoo4Yq+DN0rtikODccuv7RU81sw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1",- "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-function-name": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.27.1.tgz",- "integrity": "sha512-1bQeydJF9Nr1eBCMMbC+hdwmRlsv5XYOMu03YSWFwNs0HsAmtSxxF1fyuYPqemVldVyFmlCU7w8UE14LupUSZQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-compilation-targets": "^7.27.1",- "@babel/helper-plugin-utils": "^7.27.1",- "@babel/traverse": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-json-strings": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.28.6.tgz",- "integrity": "sha512-Nr+hEN+0geQkzhbdgQVPoqr47lZbm+5fCUmO70722xJZd0Mvb59+33QLImGj6F+DkK3xgDi1YVysP8whD6FQAw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-literals": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-literals/-/plugin-transform-literals-7.27.1.tgz",- "integrity": "sha512-0HCFSepIpLTkLcsi86GG3mTUzxV5jpmbv97hTETW3yzrAij8aqlD36toB1D0daVFJM8NK6GvKO0gslVQmm+zZA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-logical-assignment-operators": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.28.6.tgz",- "integrity": "sha512-+anKKair6gpi8VsM/95kmomGNMD0eLz1NQ8+Pfw5sAwWH9fGYXT50E55ZpV0pHUHWf6IUTWPM+f/7AAff+wr9A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-member-expression-literals": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.27.1.tgz",- "integrity": "sha512-hqoBX4dcZ1I33jCSWcXrP+1Ku7kdqXf1oeah7ooKOIiAdKQ+uqftgCFNOSzA5AMS2XIHEYeGFg4cKRCdpxzVOQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-modules-amd": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.27.1.tgz",- "integrity": "sha512-iCsytMg/N9/oFq6n+gFTvUYDZQOMK5kEdeYxmxt91fcJGycfxVP9CnrxoliM0oumFERba2i8ZtwRUCMhvP1LnA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-module-transforms": "^7.27.1",- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-modules-commonjs": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.28.6.tgz",- "integrity": "sha512-jppVbf8IV9iWWwWTQIxJMAJCWBuuKx71475wHwYytrRGQ2CWiDvYlADQno3tcYpS/T2UUWFQp3nVtYfK/YBQrA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-module-transforms": "^7.28.6",- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-modules-systemjs": {- "version": "7.29.0",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.29.0.tgz",- "integrity": "sha512-PrujnVFbOdUpw4UHiVwKvKRLMMic8+eC0CuNlxjsyZUiBjhFdPsewdXCkveh2KqBA9/waD0W1b4hXSOBQJezpQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-module-transforms": "^7.28.6",- "@babel/helper-plugin-utils": "^7.28.6",- "@babel/helper-validator-identifier": "^7.28.5",- "@babel/traverse": "^7.29.0"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-modules-umd": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.27.1.tgz",- "integrity": "sha512-iQBE/xC5BV1OxJbp6WG7jq9IWiD+xxlZhLrdwpPkTX3ydmXdvoCpyfJN7acaIBZaOqTfr76pgzqBJflNbeRK+w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-module-transforms": "^7.27.1",- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-named-capturing-groups-regex": {- "version": "7.29.0",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.29.0.tgz",- "integrity": "sha512-1CZQA5KNAD6ZYQLPw7oi5ewtDNxH/2vuCh+6SmvgDfhumForvs8a1o9n0UrEoBD8HU4djO2yWngTQlXl1NDVEQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-create-regexp-features-plugin": "^7.28.5",- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/plugin-transform-new-target": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.27.1.tgz",- "integrity": "sha512-f6PiYeqXQ05lYq3TIfIDu/MtliKUbNwkGApPUvyo6+tc7uaR4cPjPe7DFPr15Uyycg2lZU6btZ575CuQoYh7MQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-nullish-coalescing-operator": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.28.6.tgz",- "integrity": "sha512-3wKbRgmzYbw24mDJXT7N+ADXw8BC/imU9yo9c9X9NKaLF1fW+e5H1U5QjMUBe4Qo4Ox/o++IyUkl1sVCLgevKg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-numeric-separator": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.28.6.tgz",- "integrity": "sha512-SJR8hPynj8outz+SlStQSwvziMN4+Bq99it4tMIf5/Caq+3iOc0JtKyse8puvyXkk3eFRIA5ID/XfunGgO5i6w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-object-rest-spread": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.28.6.tgz",- "integrity": "sha512-5rh+JR4JBC4pGkXLAcYdLHZjXudVxWMXbB6u6+E9lRL5TrGVbHt1TjxGbZ8CkmYw9zjkB7jutzOROArsqtncEA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-compilation-targets": "^7.28.6",- "@babel/helper-plugin-utils": "^7.28.6",- "@babel/plugin-transform-destructuring": "^7.28.5",- "@babel/plugin-transform-parameters": "^7.27.7",- "@babel/traverse": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-object-super": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.27.1.tgz",- "integrity": "sha512-SFy8S9plRPbIcxlJ8A6mT/CxFdJx/c04JEctz4jf8YZaVS2px34j7NXRrlGlHkN/M2gnpL37ZpGRGVFLd3l8Ng==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1",- "@babel/helper-replace-supers": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-optional-catch-binding": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.28.6.tgz",- "integrity": "sha512-R8ja/Pyrv0OGAvAXQhSTmWyPJPml+0TMqXlO5w+AsMEiwb2fg3WkOvob7UxFSL3OIttFSGSRFKQsOhJ/X6HQdQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-optional-chaining": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.28.6.tgz",- "integrity": "sha512-A4zobikRGJTsX9uqVFdafzGkqD30t26ck2LmOzAuLL8b2x6k3TIqRiT2xVvA9fNmFeTX484VpsdgmKNA0bS23w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6",- "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-parameters": {- "version": "7.27.7",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.27.7.tgz",- "integrity": "sha512-qBkYTYCb76RRxUM6CcZA5KRu8K4SM8ajzVeUgVdMVO9NN9uI/GaVmBg/WKJJGnNokV9SY8FxNOVWGXzqzUidBg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-private-methods": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.28.6.tgz",- "integrity": "sha512-piiuapX9CRv7+0st8lmuUlRSmX6mBcVeNQ1b4AYzJxfCMuBfB0vBXDiGSmm03pKJw1v6cZ8KSeM+oUnM6yAExg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-create-class-features-plugin": "^7.28.6",- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-private-property-in-object": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.28.6.tgz",- "integrity": "sha512-b97jvNSOb5+ehyQmBpmhOCiUC5oVK4PMnpRvO7+ymFBoqYjeDHIU9jnrNUuwHOiL9RpGDoKBpSViarV+BU+eVA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-annotate-as-pure": "^7.27.3",- "@babel/helper-create-class-features-plugin": "^7.28.6",- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-property-literals": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.27.1.tgz",- "integrity": "sha512-oThy3BCuCha8kDZ8ZkgOg2exvPYUlprMukKQXI1r1pJ47NCvxfkEy8vK+r/hT9nF0Aa4H1WUPZZjHTFtAhGfmQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-regenerator": {- "version": "7.29.0",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.29.0.tgz",- "integrity": "sha512-FijqlqMA7DmRdg/aINBSs04y8XNTYw/lr1gJ2WsmBnnaNw1iS43EPkJW+zK7z65auG3AWRFXWj+NcTQwYptUog==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-regexp-modifiers": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-regexp-modifiers/-/plugin-transform-regexp-modifiers-7.28.6.tgz",- "integrity": "sha512-QGWAepm9qxpaIs7UM9FvUSnCGlb8Ua1RhyM4/veAxLwt3gMat/LSGrZixyuj4I6+Kn9iwvqCyPTtbdxanYoWYg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-create-regexp-features-plugin": "^7.28.5",- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/plugin-transform-reserved-words": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.27.1.tgz",- "integrity": "sha512-V2ABPHIJX4kC7HegLkYoDpfg9PVmuWy/i6vUM5eGK22bx4YVFD3M5F0QQnWQoDs6AGsUWTVOopBiMFQgHaSkVw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-shorthand-properties": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.27.1.tgz",- "integrity": "sha512-N/wH1vcn4oYawbJ13Y/FxcQrWk63jhfNa7jef0ih7PHSIHX2LB7GWE1rkPrOnka9kwMxb6hMl19p7lidA+EHmQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-spread": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-spread/-/plugin-transform-spread-7.28.6.tgz",- "integrity": "sha512-9U4QObUC0FtJl05AsUcodau/RWDytrU6uKgkxu09mLR9HLDAtUMoPuuskm5huQsoktmsYpI+bGmq+iapDcriKA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.28.6",- "@babel/helper-skip-transparent-expression-wrappers": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-sticky-regex": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.27.1.tgz",- "integrity": "sha512-lhInBO5bi/Kowe2/aLdBAawijx+q1pQzicSgnkB6dUPc1+RC8QmJHKf2OjvU+NZWitguJHEaEmbV6VWEouT58g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-template-literals": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.27.1.tgz",- "integrity": "sha512-fBJKiV7F2DxZUkg5EtHKXQdbsbURW3DZKQUWphDum0uRP6eHGGa/He9mc0mypL680pb+e/lDIthRohlv8NCHkg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-typeof-symbol": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.27.1.tgz",- "integrity": "sha512-RiSILC+nRJM7FY5srIyc4/fGIwUhyDuuBSdWn4y6yT6gm652DpCHZjIipgn6B7MQ1ITOUnAKWixEUjQRIBIcLw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-unicode-escapes": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.27.1.tgz",- "integrity": "sha512-Ysg4v6AmF26k9vpfFuTZg8HRfVWzsh1kVfowA23y9j/Gu6dOuahdUVhkLqpObp3JIv27MLSii6noRnuKN8H0Mg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-unicode-property-regex": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.28.6.tgz",- "integrity": "sha512-4Wlbdl/sIZjzi/8St0evF0gEZrgOswVO6aOzqxh1kDZOl9WmLrHq2HtGhnOJZmHZYKP8WZ1MDLCt5DAWwRo57A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-create-regexp-features-plugin": "^7.28.5",- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-unicode-regex": {- "version": "7.27.1",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.27.1.tgz",- "integrity": "sha512-xvINq24TRojDuyt6JGtHmkVkrfVV3FPT16uytxImLeBZqW3/H52yN+kM1MGuyPkIQxrzKwPHs5U/MP3qKyzkGw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-create-regexp-features-plugin": "^7.27.1",- "@babel/helper-plugin-utils": "^7.27.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/plugin-transform-unicode-sets-regex": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.28.6.tgz",- "integrity": "sha512-/wHc/paTUmsDYN7SZkpWxogTOBNnlx7nBQYfy6JJlCT7G3mVhltk3e++N7zV0XfgGsrqBxd4rJQt9H16I21Y1Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-create-regexp-features-plugin": "^7.28.5",- "@babel/helper-plugin-utils": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0"- }- },- "node_modules/@babel/preset-env": {- "version": "7.29.2",- "resolved": "https://registry.npmjs.org/@babel/preset-env/-/preset-env-7.29.2.tgz",- "integrity": "sha512-DYD23veRYGvBFhcTY1iUvJnDNpuqNd/BzBwCvzOTKUnJjKg5kpUBh3/u9585Agdkgj+QuygG7jLfOPWMa2KVNw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/compat-data": "^7.29.0",- "@babel/helper-compilation-targets": "^7.28.6",- "@babel/helper-plugin-utils": "^7.28.6",- "@babel/helper-validator-option": "^7.27.1",- "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.28.5",- "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.27.1",- "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.27.1",- "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.27.1",- "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.28.6",- "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2",- "@babel/plugin-syntax-import-assertions": "^7.28.6",- "@babel/plugin-syntax-import-attributes": "^7.28.6",- "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6",- "@babel/plugin-transform-arrow-functions": "^7.27.1",- "@babel/plugin-transform-async-generator-functions": "^7.29.0",- "@babel/plugin-transform-async-to-generator": "^7.28.6",- "@babel/plugin-transform-block-scoped-functions": "^7.27.1",- "@babel/plugin-transform-block-scoping": "^7.28.6",- "@babel/plugin-transform-class-properties": "^7.28.6",- "@babel/plugin-transform-class-static-block": "^7.28.6",- "@babel/plugin-transform-classes": "^7.28.6",- "@babel/plugin-transform-computed-properties": "^7.28.6",- "@babel/plugin-transform-destructuring": "^7.28.5",- "@babel/plugin-transform-dotall-regex": "^7.28.6",- "@babel/plugin-transform-duplicate-keys": "^7.27.1",- "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.29.0",- "@babel/plugin-transform-dynamic-import": "^7.27.1",- "@babel/plugin-transform-explicit-resource-management": "^7.28.6",- "@babel/plugin-transform-exponentiation-operator": "^7.28.6",- "@babel/plugin-transform-export-namespace-from": "^7.27.1",- "@babel/plugin-transform-for-of": "^7.27.1",- "@babel/plugin-transform-function-name": "^7.27.1",- "@babel/plugin-transform-json-strings": "^7.28.6",- "@babel/plugin-transform-literals": "^7.27.1",- "@babel/plugin-transform-logical-assignment-operators": "^7.28.6",- "@babel/plugin-transform-member-expression-literals": "^7.27.1",- "@babel/plugin-transform-modules-amd": "^7.27.1",- "@babel/plugin-transform-modules-commonjs": "^7.28.6",- "@babel/plugin-transform-modules-systemjs": "^7.29.0",- "@babel/plugin-transform-modules-umd": "^7.27.1",- "@babel/plugin-transform-named-capturing-groups-regex": "^7.29.0",- "@babel/plugin-transform-new-target": "^7.27.1",- "@babel/plugin-transform-nullish-coalescing-operator": "^7.28.6",- "@babel/plugin-transform-numeric-separator": "^7.28.6",- "@babel/plugin-transform-object-rest-spread": "^7.28.6",- "@babel/plugin-transform-object-super": "^7.27.1",- "@babel/plugin-transform-optional-catch-binding": "^7.28.6",- "@babel/plugin-transform-optional-chaining": "^7.28.6",- "@babel/plugin-transform-parameters": "^7.27.7",- "@babel/plugin-transform-private-methods": "^7.28.6",- "@babel/plugin-transform-private-property-in-object": "^7.28.6",- "@babel/plugin-transform-property-literals": "^7.27.1",- "@babel/plugin-transform-regenerator": "^7.29.0",- "@babel/plugin-transform-regexp-modifiers": "^7.28.6",- "@babel/plugin-transform-reserved-words": "^7.27.1",- "@babel/plugin-transform-shorthand-properties": "^7.27.1",- "@babel/plugin-transform-spread": "^7.28.6",- "@babel/plugin-transform-sticky-regex": "^7.27.1",- "@babel/plugin-transform-template-literals": "^7.27.1",- "@babel/plugin-transform-typeof-symbol": "^7.27.1",- "@babel/plugin-transform-unicode-escapes": "^7.27.1",- "@babel/plugin-transform-unicode-property-regex": "^7.28.6",- "@babel/plugin-transform-unicode-regex": "^7.27.1",- "@babel/plugin-transform-unicode-sets-regex": "^7.28.6",- "@babel/preset-modules": "0.1.6-no-external-plugins",- "babel-plugin-polyfill-corejs2": "^0.4.15",- "babel-plugin-polyfill-corejs3": "^0.14.0",- "babel-plugin-polyfill-regenerator": "^0.6.6",- "core-js-compat": "^3.48.0",- "semver": "^6.3.1"- },- "engines": {- "node": ">=6.9.0"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0"- }- },- "node_modules/@babel/preset-modules": {- "version": "0.1.6-no-external-plugins",- "resolved": "https://registry.npmjs.org/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz",- "integrity": "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-plugin-utils": "^7.0.0",- "@babel/types": "^7.4.4",- "esutils": "^2.0.2"- },- "peerDependencies": {- "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0"- }- },- "node_modules/@babel/template": {- "version": "7.28.6",- "resolved": "https://registry.npmjs.org/@babel/template/-/template-7.28.6.tgz",- "integrity": "sha512-YA6Ma2KsCdGb+WC6UpBVFJGXL58MDA6oyONbjyF/+5sBgxY/dwkhLogbMT2GXXyU84/IhRw/2D1Os1B/giz+BQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.28.6",- "@babel/parser": "^7.28.6",- "@babel/types": "^7.28.6"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/traverse": {- "version": "7.29.0",- "resolved": "https://registry.npmjs.org/@babel/traverse/-/traverse-7.29.0.tgz",- "integrity": "sha512-4HPiQr0X7+waHfyXPZpWPfWL/J7dcN1mx9gL6WdQVMbPnF3+ZhSMs8tCxN7oHddJE9fhNE7+lxdnlyemKfJRuA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.29.0",- "@babel/generator": "^7.29.0",- "@babel/helper-globals": "^7.28.0",- "@babel/parser": "^7.29.0",- "@babel/template": "^7.28.6",- "@babel/types": "^7.29.0",- "debug": "^4.3.1"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@babel/types": {- "version": "7.29.0",- "resolved": "https://registry.npmjs.org/@babel/types/-/types-7.29.0.tgz",- "integrity": "sha512-LwdZHpScM4Qz8Xw2iKSzS+cfglZzJGvofQICy7W7v4caru4EaAmyUuO6BGrbyQ2mYV11W0U8j5mBhd14dd3B0A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-string-parser": "^7.27.1",- "@babel/helper-validator-identifier": "^7.28.5"- },- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/@bcoe/v8-coverage": {- "version": "0.2.3",- "resolved": "https://registry.npmjs.org/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz",- "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==",- "dev": true,- "license": "MIT"- },- "node_modules/@emnapi/core": {- "version": "1.9.2",- "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.9.2.tgz",- "integrity": "sha512-UC+ZhH3XtczQYfOlu3lNEkdW/p4dsJ1r/bP7H8+rhao3TTTMO1ATq/4DdIi23XuGoFY+Cz0JmCbdVl0hz9jZcA==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@emnapi/wasi-threads": "1.2.1",- "tslib": "^2.4.0"- }- },- "node_modules/@emnapi/runtime": {- "version": "1.9.2",- "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.9.2.tgz",- "integrity": "sha512-3U4+MIWHImeyu1wnmVygh5WlgfYDtyf0k8AbLhMFxOipihf6nrWC4syIm/SwEeec0mNSafiiNnMJwbza/Is6Lw==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "tslib": "^2.4.0"- }- },- "node_modules/@emnapi/wasi-threads": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz",- "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "tslib": "^2.4.0"- }- },- "node_modules/@eslint-community/eslint-utils": {- "version": "4.9.1",- "resolved": "https://registry.npmjs.org/@eslint-community/eslint-utils/-/eslint-utils-4.9.1.tgz",- "integrity": "sha512-phrYmNiYppR7znFEdqgfWHXR6NCkZEK7hwWDHZUjit/2/U0r6XvkDl0SYnoM51Hq7FhCGdLDT6zxCCOY1hexsQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "eslint-visitor-keys": "^3.4.3"- },- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- },- "peerDependencies": {- "eslint": "^6.0.0 || ^7.0.0 || >=8.0.0"- }- },- "node_modules/@eslint-community/regexpp": {- "version": "4.12.2",- "resolved": "https://registry.npmjs.org/@eslint-community/regexpp/-/regexpp-4.12.2.tgz",- "integrity": "sha512-EriSTlt5OC9/7SXkRSCAhfSxxoSUgBm33OH+IkwbdpgoqsSsUg7y3uh+IICI/Qg4BBWr3U2i39RpmycbxMq4ew==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^12.0.0 || ^14.0.0 || >=16.0.0"- }- },- "node_modules/@eslint/config-array": {- "version": "0.23.5",- "resolved": "https://registry.npmjs.org/@eslint/config-array/-/config-array-0.23.5.tgz",- "integrity": "sha512-Y3kKLvC1dvTOT+oGlqNQ1XLqK6D1HU2YXPc52NmAlJZbMMWDzGYXMiPRJ8TYD39muD/OTjlZmNJ4ib7dvSrMBA==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@eslint/object-schema": "^3.0.5",- "debug": "^4.3.1",- "minimatch": "^10.2.4"- },- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- }- },- "node_modules/@eslint/config-helpers": {- "version": "0.5.5",- "resolved": "https://registry.npmjs.org/@eslint/config-helpers/-/config-helpers-0.5.5.tgz",- "integrity": "sha512-eIJYKTCECbP/nsKaaruF6LW967mtbQbsw4JTtSVkUQc9MneSkbrgPJAbKl9nWr0ZeowV8BfsarBmPpBzGelA2w==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@eslint/core": "^1.2.1"- },- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- }- },- "node_modules/@eslint/core": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/@eslint/core/-/core-1.2.1.tgz",- "integrity": "sha512-MwcE1P+AZ4C6DWlpin/OmOA54mmIZ/+xZuJiQd4SyB29oAJjN30UW9wkKNptW2ctp4cEsvhlLY/CsQ1uoHDloQ==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@types/json-schema": "^7.0.15"- },- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- }- },- "node_modules/@eslint/js": {- "version": "10.0.1",- "resolved": "https://registry.npmjs.org/@eslint/js/-/js-10.0.1.tgz",- "integrity": "sha512-zeR9k5pd4gxjZ0abRoIaxdc7I3nDktoXZk2qOv9gCNWx3mVwEn32VRhyLaRsDiJjTs0xq/T8mfPtyuXu7GWBcA==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- },- "funding": {- "url": "https://eslint.org/donate"- },- "peerDependencies": {- "eslint": "^10.0.0"- },- "peerDependenciesMeta": {- "eslint": {- "optional": true- }- }- },- "node_modules/@eslint/object-schema": {- "version": "3.0.5",- "resolved": "https://registry.npmjs.org/@eslint/object-schema/-/object-schema-3.0.5.tgz",- "integrity": "sha512-vqTaUEgxzm+YDSdElad6PiRoX4t8VGDjCtt05zn4nU810UIx/uNEV7/lZJ6KwFThKZOzOxzXy48da+No7HZaMw==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- }- },- "node_modules/@eslint/plugin-kit": {- "version": "0.7.1",- "resolved": "https://registry.npmjs.org/@eslint/plugin-kit/-/plugin-kit-0.7.1.tgz",- "integrity": "sha512-rZAP3aVgB9ds9KOeUSL+zZ21hPmo8dh6fnIFwRQj5EAZl9gzR7wxYbYXYysAM8CTqGmUGyp2S4kUdV17MnGuWQ==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@eslint/core": "^1.2.1",- "levn": "^0.4.1"- },- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- }- },- "node_modules/@humanfs/core": {- "version": "0.19.1",- "resolved": "https://registry.npmjs.org/@humanfs/core/-/core-0.19.1.tgz",- "integrity": "sha512-5DyQ4+1JEUzejeK1JGICcideyfUbGixgS9jNgex5nqkW+cY7WZhxBigmieN5Qnw9ZosSNVC9KQKyb+GUaGyKUA==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=18.18.0"- }- },- "node_modules/@humanfs/node": {- "version": "0.16.7",- "resolved": "https://registry.npmjs.org/@humanfs/node/-/node-0.16.7.tgz",- "integrity": "sha512-/zUx+yOsIrG4Y43Eh2peDeKCxlRt/gET6aHfaKpuq267qXdYDFViVHfMaLyygZOnl0kGWxFIgsBy8QFuTLUXEQ==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "@humanfs/core": "^0.19.1",- "@humanwhocodes/retry": "^0.4.0"- },- "engines": {- "node": ">=18.18.0"- }- },- "node_modules/@humanwhocodes/module-importer": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz",- "integrity": "sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=12.22"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/nzakas"- }- },- "node_modules/@humanwhocodes/retry": {- "version": "0.4.3",- "resolved": "https://registry.npmjs.org/@humanwhocodes/retry/-/retry-0.4.3.tgz",- "integrity": "sha512-bV0Tgo9K4hfPCek+aMAn81RppFKv2ySDQeMoSZuvTASywNTnVJCArCZE2FWqpvIatKu7VMRLWlR1EazvVhDyhQ==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=18.18"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/nzakas"- }- },- "node_modules/@isaacs/cliui": {- "version": "8.0.2",- "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz",- "integrity": "sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA==",- "dev": true,- "license": "ISC",- "dependencies": {- "string-width": "^5.1.2",- "string-width-cjs": "npm:string-width@^4.2.0",- "strip-ansi": "^7.0.1",- "strip-ansi-cjs": "npm:strip-ansi@^6.0.1",- "wrap-ansi": "^8.1.0",- "wrap-ansi-cjs": "npm:wrap-ansi@^7.0.0"- },- "engines": {- "node": ">=12"- }- },- "node_modules/@istanbuljs/load-nyc-config": {- "version": "1.1.0",- "resolved": "https://registry.npmjs.org/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz",- "integrity": "sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ==",- "dev": true,- "license": "ISC",- "dependencies": {- "camelcase": "^5.3.1",- "find-up": "^4.1.0",- "get-package-type": "^0.1.0",- "js-yaml": "^3.13.1",- "resolve-from": "^5.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/@istanbuljs/load-nyc-config/node_modules/argparse": {- "version": "1.0.10",- "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz",- "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==",- "dev": true,- "license": "MIT",- "dependencies": {- "sprintf-js": "~1.0.2"- }- },- "node_modules/@istanbuljs/load-nyc-config/node_modules/find-up": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",- "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",- "dev": true,- "license": "MIT",- "dependencies": {- "locate-path": "^5.0.0",- "path-exists": "^4.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/@istanbuljs/load-nyc-config/node_modules/js-yaml": {- "version": "3.14.2",- "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.2.tgz",- "integrity": "sha512-PMSmkqxr106Xa156c2M265Z+FTrPl+oxd/rgOQy2tijQeK5TxQ43psO1ZCwhVOSdnn+RzkzlRz/eY4BgJBYVpg==",- "dev": true,- "license": "MIT",- "dependencies": {- "argparse": "^1.0.7",- "esprima": "^4.0.0"- },- "bin": {- "js-yaml": "bin/js-yaml.js"- }- },- "node_modules/@istanbuljs/load-nyc-config/node_modules/locate-path": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",- "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",- "dev": true,- "license": "MIT",- "dependencies": {- "p-locate": "^4.1.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/@istanbuljs/load-nyc-config/node_modules/p-limit": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",- "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",- "dev": true,- "license": "MIT",- "dependencies": {- "p-try": "^2.0.0"- },- "engines": {- "node": ">=6"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/@istanbuljs/load-nyc-config/node_modules/p-locate": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",- "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",- "dev": true,- "license": "MIT",- "dependencies": {- "p-limit": "^2.2.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/@istanbuljs/schema": {- "version": "0.1.3",- "resolved": "https://registry.npmjs.org/@istanbuljs/schema/-/schema-0.1.3.tgz",- "integrity": "sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/@jest/console": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/@jest/console/-/console-30.3.0.tgz",- "integrity": "sha512-PAwCvFJ4696XP2qZj+LAn1BWjZaJ6RjG6c7/lkMaUJnkyMS34ucuIsfqYvfskVNvUI27R/u4P1HMYFnlVXG/Ww==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/types": "30.3.0",- "@types/node": "*",- "chalk": "^4.1.2",- "jest-message-util": "30.3.0",- "jest-util": "30.3.0",- "slash": "^3.0.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/@jest/core": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/@jest/core/-/core-30.3.0.tgz",- "integrity": "sha512-U5mVPsBxLSO6xYbf+tgkymLx+iAhvZX43/xI1+ej2ZOPnPdkdO1CzDmFKh2mZBn2s4XZixszHeQnzp1gm/DIxw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/console": "30.3.0",- "@jest/pattern": "30.0.1",- "@jest/reporters": "30.3.0",- "@jest/test-result": "30.3.0",- "@jest/transform": "30.3.0",- "@jest/types": "30.3.0",- "@types/node": "*",- "ansi-escapes": "^4.3.2",- "chalk": "^4.1.2",- "ci-info": "^4.2.0",- "exit-x": "^0.2.2",- "graceful-fs": "^4.2.11",- "jest-changed-files": "30.3.0",- "jest-config": "30.3.0",- "jest-haste-map": "30.3.0",- "jest-message-util": "30.3.0",- "jest-regex-util": "30.0.1",- "jest-resolve": "30.3.0",- "jest-resolve-dependencies": "30.3.0",- "jest-runner": "30.3.0",- "jest-runtime": "30.3.0",- "jest-snapshot": "30.3.0",- "jest-util": "30.3.0",- "jest-validate": "30.3.0",- "jest-watcher": "30.3.0",- "pretty-format": "30.3.0",- "slash": "^3.0.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- },- "peerDependencies": {- "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"- },- "peerDependenciesMeta": {- "node-notifier": {- "optional": true- }- }- },- "node_modules/@jest/diff-sequences": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/@jest/diff-sequences/-/diff-sequences-30.3.0.tgz",- "integrity": "sha512-cG51MVnLq1ecVUaQ3fr6YuuAOitHK1S4WUJHnsPFE/quQr33ADUx1FfrTCpMCRxvy0Yr9BThKpDjSlcTi91tMA==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/@jest/environment": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/@jest/environment/-/environment-30.3.0.tgz",- "integrity": "sha512-SlLSF4Be735yQXyh2+mctBOzNDx5s5uLv88/j8Qn1wH679PDcwy67+YdADn8NJnGjzlXtN62asGH/T4vWOkfaw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/fake-timers": "30.3.0",- "@jest/types": "30.3.0",- "@types/node": "*",- "jest-mock": "30.3.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/@jest/expect": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/@jest/expect/-/expect-30.3.0.tgz",- "integrity": "sha512-76Nlh4xJxk2D/9URCn3wFi98d2hb19uWE1idLsTt2ywhvdOldbw3S570hBgn25P4ICUZ/cBjybrBex2g17IDbg==",- "dev": true,- "license": "MIT",- "dependencies": {- "expect": "30.3.0",- "jest-snapshot": "30.3.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/@jest/expect-utils": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/@jest/expect-utils/-/expect-utils-30.3.0.tgz",- "integrity": "sha512-j0+W5iQQ8hBh7tHZkTQv3q2Fh/M7Je72cIsYqC4OaktgtO7v1So9UTjp6uPBHIaB6beoF/RRsCgMJKvti0wADA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/get-type": "30.1.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/@jest/fake-timers": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/@jest/fake-timers/-/fake-timers-30.3.0.tgz",- "integrity": "sha512-WUQDs8SOP9URStX1DzhD425CqbN/HxUYCTwVrT8sTVBfMvFqYt/s61EK5T05qnHu0po6RitXIvP9otZxYDzTGQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/types": "30.3.0",- "@sinonjs/fake-timers": "^15.0.0",- "@types/node": "*",- "jest-message-util": "30.3.0",- "jest-mock": "30.3.0",- "jest-util": "30.3.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/@jest/get-type": {- "version": "30.1.0",- "resolved": "https://registry.npmjs.org/@jest/get-type/-/get-type-30.1.0.tgz",- "integrity": "sha512-eMbZE2hUnx1WV0pmURZY9XoXPkUYjpc55mb0CrhtdWLtzMQPFvu/rZkTLZFTsdaVQa+Tr4eWAteqcUzoawq/uA==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/@jest/globals": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/@jest/globals/-/globals-30.3.0.tgz",- "integrity": "sha512-+owLCBBdfpgL3HU+BD5etr1SvbXpSitJK0is1kiYjJxAAJggYMRQz5hSdd5pq1sSggfxPbw2ld71pt4x5wwViA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/environment": "30.3.0",- "@jest/expect": "30.3.0",- "@jest/types": "30.3.0",- "jest-mock": "30.3.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/@jest/pattern": {- "version": "30.0.1",- "resolved": "https://registry.npmjs.org/@jest/pattern/-/pattern-30.0.1.tgz",- "integrity": "sha512-gWp7NfQW27LaBQz3TITS8L7ZCQ0TLvtmI//4OwlQRx4rnWxcPNIYjxZpDcN4+UlGxgm3jS5QPz8IPTCkb59wZA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/node": "*",- "jest-regex-util": "30.0.1"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/@jest/reporters": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/@jest/reporters/-/reporters-30.3.0.tgz",- "integrity": "sha512-a09z89S+PkQnL055bVj8+pe2Caed2PBOaczHcXCykW5ngxX9EWx/1uAwncxc/HiU0oZqfwseMjyhxgRjS49qPw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@bcoe/v8-coverage": "^0.2.3",- "@jest/console": "30.3.0",- "@jest/test-result": "30.3.0",- "@jest/transform": "30.3.0",- "@jest/types": "30.3.0",- "@jridgewell/trace-mapping": "^0.3.25",- "@types/node": "*",- "chalk": "^4.1.2",- "collect-v8-coverage": "^1.0.2",- "exit-x": "^0.2.2",- "glob": "^10.5.0",- "graceful-fs": "^4.2.11",- "istanbul-lib-coverage": "^3.0.0",- "istanbul-lib-instrument": "^6.0.0",- "istanbul-lib-report": "^3.0.0",- "istanbul-lib-source-maps": "^5.0.0",- "istanbul-reports": "^3.1.3",- "jest-message-util": "30.3.0",- "jest-util": "30.3.0",- "jest-worker": "30.3.0",- "slash": "^3.0.0",- "string-length": "^4.0.2",- "v8-to-istanbul": "^9.0.1"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- },- "peerDependencies": {- "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"- },- "peerDependenciesMeta": {- "node-notifier": {- "optional": true- }- }- },- "node_modules/@jest/schemas": {- "version": "30.0.5",- "resolved": "https://registry.npmjs.org/@jest/schemas/-/schemas-30.0.5.tgz",- "integrity": "sha512-DmdYgtezMkh3cpU8/1uyXakv3tJRcmcXxBOcO0tbaozPwpmh4YMsnWrQm9ZmZMfa5ocbxzbFk6O4bDPEc/iAnA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@sinclair/typebox": "^0.34.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/@jest/snapshot-utils": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/@jest/snapshot-utils/-/snapshot-utils-30.3.0.tgz",- "integrity": "sha512-ORbRN9sf5PP82v3FXNSwmO1OTDR2vzR2YTaR+E3VkSBZ8zadQE6IqYdYEeFH1NIkeB2HIGdF02dapb6K0Mj05g==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/types": "30.3.0",- "chalk": "^4.1.2",- "graceful-fs": "^4.2.11",- "natural-compare": "^1.4.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/@jest/source-map": {- "version": "30.0.1",- "resolved": "https://registry.npmjs.org/@jest/source-map/-/source-map-30.0.1.tgz",- "integrity": "sha512-MIRWMUUR3sdbP36oyNyhbThLHyJ2eEDClPCiHVbrYAe5g3CHRArIVpBw7cdSB5fr+ofSfIb2Tnsw8iEHL0PYQg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/trace-mapping": "^0.3.25",- "callsites": "^3.1.0",- "graceful-fs": "^4.2.11"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/@jest/test-result": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/@jest/test-result/-/test-result-30.3.0.tgz",- "integrity": "sha512-e/52nJGuD74AKTSe0P4y5wFRlaXP0qmrS17rqOMHeSwm278VyNyXE3gFO/4DTGF9w+65ra3lo3VKj0LBrzmgdQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/console": "30.3.0",- "@jest/types": "30.3.0",- "@types/istanbul-lib-coverage": "^2.0.6",- "collect-v8-coverage": "^1.0.2"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/@jest/test-sequencer": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/@jest/test-sequencer/-/test-sequencer-30.3.0.tgz",- "integrity": "sha512-dgbWy9b8QDlQeRZcv7LNF+/jFiiYHTKho1xirauZ7kVwY7avjFF6uTT0RqlgudB5OuIPagFdVtfFMosjVbk1eA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/test-result": "30.3.0",- "graceful-fs": "^4.2.11",- "jest-haste-map": "30.3.0",- "slash": "^3.0.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/@jest/transform": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/@jest/transform/-/transform-30.3.0.tgz",- "integrity": "sha512-TLKY33fSLVd/lKB2YI1pH69ijyUblO/BQvCj566YvnwuzoTNr648iE0j22vRvVNk2HsPwByPxATg3MleS3gf5A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/core": "^7.27.4",- "@jest/types": "30.3.0",- "@jridgewell/trace-mapping": "^0.3.25",- "babel-plugin-istanbul": "^7.0.1",- "chalk": "^4.1.2",- "convert-source-map": "^2.0.0",- "fast-json-stable-stringify": "^2.1.0",- "graceful-fs": "^4.2.11",- "jest-haste-map": "30.3.0",- "jest-regex-util": "30.0.1",- "jest-util": "30.3.0",- "pirates": "^4.0.7",- "slash": "^3.0.0",- "write-file-atomic": "^5.0.1"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/@jest/types": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/@jest/types/-/types-30.3.0.tgz",- "integrity": "sha512-JHm87k7bA33hpBngtU8h6UBub/fqqA9uXfw+21j5Hmk7ooPHlboRNxHq0JcMtC+n8VJGP1mcfnD3Mk+XKe1oSw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/pattern": "30.0.1",- "@jest/schemas": "30.0.5",- "@types/istanbul-lib-coverage": "^2.0.6",- "@types/istanbul-reports": "^3.0.4",- "@types/node": "*",- "@types/yargs": "^17.0.33",- "chalk": "^4.1.2"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/@jridgewell/gen-mapping": {- "version": "0.3.13",- "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz",- "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/sourcemap-codec": "^1.5.0",- "@jridgewell/trace-mapping": "^0.3.24"- }- },- "node_modules/@jridgewell/remapping": {- "version": "2.3.5",- "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz",- "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/gen-mapping": "^0.3.5",- "@jridgewell/trace-mapping": "^0.3.24"- }- },- "node_modules/@jridgewell/resolve-uri": {- "version": "3.1.2",- "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",- "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/@jridgewell/sourcemap-codec": {- "version": "1.5.5",- "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz",- "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==",- "dev": true,- "license": "MIT"- },- "node_modules/@jridgewell/trace-mapping": {- "version": "0.3.31",- "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz",- "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jridgewell/resolve-uri": "^3.1.0",- "@jridgewell/sourcemap-codec": "^1.4.14"- }- },- "node_modules/@napi-rs/wasm-runtime": {- "version": "0.2.12",- "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.12.tgz",- "integrity": "sha512-ZVWUcfwY4E/yPitQJl481FjFo3K22D6qF0DuFH6Y/nbnE11GY5uguDxZMGXPQ8WQ0128MXQD7TnfHyK4oWoIJQ==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@emnapi/core": "^1.4.3",- "@emnapi/runtime": "^1.4.3",- "@tybys/wasm-util": "^0.10.0"- }- },- "node_modules/@openrouter/sdk": {- "version": "0.12.1",- "resolved": "https://registry.npmjs.org/@openrouter/sdk/-/sdk-0.12.1.tgz",- "integrity": "sha512-ERI4RdE36TETVkppXGWIQV7HB2D17dCAydt7owX4r9w3dczOQ7DZReHdrWt+JWNKaW44t+6ufvm1FiSme97LGA==",- "hasInstallScript": true,- "license": "Apache-2.0",- "dependencies": {- "zod": "^3.25.0 || ^4.0.0"- }- },- "node_modules/@pkgjs/parseargs": {- "version": "0.11.0",- "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz",- "integrity": "sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==",- "dev": true,- "license": "MIT",- "optional": true,- "engines": {- "node": ">=14"- }- },- "node_modules/@pkgr/core": {- "version": "0.2.9",- "resolved": "https://registry.npmjs.org/@pkgr/core/-/core-0.2.9.tgz",- "integrity": "sha512-QNqXyfVS2wm9hweSYD2O7F0G06uurj9kZ96TRQE5Y9hU7+tgdZwIkbAKc5Ocy1HxEY2kuDQa6cQ1WRs/O5LFKA==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^12.20.0 || ^14.18.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/pkgr"- }- },- "node_modules/@sinclair/typebox": {- "version": "0.34.48",- "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.34.48.tgz",- "integrity": "sha512-kKJTNuK3AQOrgjjotVxMrCn1sUJwM76wMszfq1kdU4uYVJjvEWuFQ6HgvLt4Xz3fSmZlTOxJ/Ie13KnIcWQXFA==",- "dev": true,- "license": "MIT"- },- "node_modules/@sinonjs/commons": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/@sinonjs/commons/-/commons-3.0.1.tgz",- "integrity": "sha512-K3mCHKQ9sVh8o1C9cxkwxaOmXoAMlDxC1mYyHrjqOWEcBjYr76t96zL2zlj5dUGZ3HSw240X1qgH3Mjf1yJWpQ==",- "dev": true,- "license": "BSD-3-Clause",- "dependencies": {- "type-detect": "4.0.8"- }- },- "node_modules/@sinonjs/fake-timers": {- "version": "15.3.0",- "resolved": "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-15.3.0.tgz",- "integrity": "sha512-m2xozxSfCIxjDdvbhIWazlP2i2aha/iUmbl94alpsIbd3iLTfeXgfBVbwyWogB6l++istyGZqamgA/EcqYf+Bg==",- "dev": true,- "license": "BSD-3-Clause",- "dependencies": {- "@sinonjs/commons": "^3.0.1"- }- },- "node_modules/@tybys/wasm-util": {- "version": "0.10.1",- "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.1.tgz",- "integrity": "sha512-9tTaPJLSiejZKx+Bmog4uSubteqTvFrVrURwkmHixBo0G4seD0zUxp98E1DzUBJxLQ3NPwXrGKDiVjwx/DpPsg==",- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "tslib": "^2.4.0"- }- },- "node_modules/@types/babel__core": {- "version": "7.20.5",- "resolved": "https://registry.npmjs.org/@types/babel__core/-/babel__core-7.20.5.tgz",- "integrity": "sha512-qoQprZvz5wQFJwMDqeseRXWv3rqMvhgpbXFfVyWhbx9X47POIA6i/+dXefEmZKoAgOaTdaIgNSMqMIU61yRyzA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.20.7",- "@babel/types": "^7.20.7",- "@types/babel__generator": "*",- "@types/babel__template": "*",- "@types/babel__traverse": "*"- }- },- "node_modules/@types/babel__generator": {- "version": "7.27.0",- "resolved": "https://registry.npmjs.org/@types/babel__generator/-/babel__generator-7.27.0.tgz",- "integrity": "sha512-ufFd2Xi92OAVPYsy+P4n7/U7e68fex0+Ee8gSG9KX7eo084CWiQ4sdxktvdl0bOPupXtVJPY19zk6EwWqUQ8lg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.0.0"- }- },- "node_modules/@types/babel__template": {- "version": "7.4.4",- "resolved": "https://registry.npmjs.org/@types/babel__template/-/babel__template-7.4.4.tgz",- "integrity": "sha512-h/NUaSyG5EyxBIp8YRxo4RMe2/qQgvyowRwVMzhYhBCONbW8PUsg4lkFMrhgZhUe5z3L3MiLDuvyJ/CaPa2A8A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/parser": "^7.1.0",- "@babel/types": "^7.0.0"- }- },- "node_modules/@types/babel__traverse": {- "version": "7.28.0",- "resolved": "https://registry.npmjs.org/@types/babel__traverse/-/babel__traverse-7.28.0.tgz",- "integrity": "sha512-8PvcXf70gTDZBgt9ptxJ8elBeBjcLOAcOtoO/mPJjtji1+CdGbHgm77om1GrsPxsiE+uXIpNSK64UYaIwQXd4Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/types": "^7.28.2"- }- },- "node_modules/@types/esrecurse": {- "version": "4.3.1",- "resolved": "https://registry.npmjs.org/@types/esrecurse/-/esrecurse-4.3.1.tgz",- "integrity": "sha512-xJBAbDifo5hpffDBuHl0Y8ywswbiAp/Wi7Y/GtAgSlZyIABppyurxVueOPE8LUQOxdlgi6Zqce7uoEpqNTeiUw==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/estree": {- "version": "1.0.8",- "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.8.tgz",- "integrity": "sha512-dWHzHa2WqEXI/O1E9OjrocMTKJl2mSrEolh1Iomrv6U+JuNwaHXsXx9bLu5gG7BUWFIN0skIQJQ/L1rIex4X6w==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/istanbul-lib-coverage": {- "version": "2.0.6",- "resolved": "https://registry.npmjs.org/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.6.tgz",- "integrity": "sha512-2QF/t/auWm0lsy8XtKVPG19v3sSOQlJe/YHZgfjb/KBBHOGSV+J2q/S671rcq9uTBrLAXmZpqJiaQbMT+zNU1w==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/istanbul-lib-report": {- "version": "3.0.3",- "resolved": "https://registry.npmjs.org/@types/istanbul-lib-report/-/istanbul-lib-report-3.0.3.tgz",- "integrity": "sha512-NQn7AHQnk/RSLOxrBbGyJM/aVQ+pjj5HCgasFxc0K/KhoATfQ/47AyUl15I2yBUpihjmas+a+VJBOqecrFH+uA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/istanbul-lib-coverage": "*"- }- },- "node_modules/@types/istanbul-reports": {- "version": "3.0.4",- "resolved": "https://registry.npmjs.org/@types/istanbul-reports/-/istanbul-reports-3.0.4.tgz",- "integrity": "sha512-pk2B1NWalF9toCRu6gjBzR69syFjP4Od8WRAX+0mmf9lAjCRicLOWc+ZrxZHx/0XRjotgkF9t6iaMJ+aXcOdZQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/istanbul-lib-report": "*"- }- },- "node_modules/@types/jest": {- "version": "30.0.0",- "resolved": "https://registry.npmjs.org/@types/jest/-/jest-30.0.0.tgz",- "integrity": "sha512-XTYugzhuwqWjws0CVz8QpM36+T+Dz5mTEBKhNs/esGLnCIlGdRy+Dq78NRjd7ls7r8BC8ZRMOrKlkO1hU0JOwA==",- "dev": true,- "license": "MIT",- "dependencies": {- "expect": "^30.0.0",- "pretty-format": "^30.0.0"- }- },- "node_modules/@types/json-schema": {- "version": "7.0.15",- "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.15.tgz",- "integrity": "sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/node": {- "version": "25.6.0",- "resolved": "https://registry.npmjs.org/@types/node/-/node-25.6.0.tgz",- "integrity": "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "undici-types": "~7.19.0"- }- },- "node_modules/@types/stack-utils": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz",- "integrity": "sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==",- "dev": true,- "license": "MIT"- },- "node_modules/@types/ws": {- "version": "8.18.1",- "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.18.1.tgz",- "integrity": "sha512-ThVF6DCVhA8kUGy+aazFQ4kXQ7E1Ty7A3ypFOe0IcJV8O/M511G99AW24irKrW56Wt44yG9+ij8FaqoBGkuBXg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/node": "*"- }- },- "node_modules/@types/yargs": {- "version": "17.0.35",- "resolved": "https://registry.npmjs.org/@types/yargs/-/yargs-17.0.35.tgz",- "integrity": "sha512-qUHkeCyQFxMXg79wQfTtfndEC+N9ZZg76HJftDJp+qH2tV7Gj4OJi7l+PiWwJ+pWtW8GwSmqsDj/oymhrTWXjg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/yargs-parser": "*"- }- },- "node_modules/@types/yargs-parser": {- "version": "21.0.3",- "resolved": "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz",- "integrity": "sha512-I4q9QU9MQv4oEOz4tAHJtNz1cwuLxn2F3xcc2iV5WdqLPpUnj30aUuxt1mAxYTG+oe8CZMV/+6rU4S4gRDzqtQ==",- "dev": true,- "license": "MIT"- },- "node_modules/@typescript-eslint/eslint-plugin": {- "version": "8.58.2",- "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-8.58.2.tgz",- "integrity": "sha512-aC2qc5thQahutKjP+cl8cgN9DWe3ZUqVko30CMSZHnFEHyhOYoZSzkGtAI2mcwZ38xeImDucI4dnqsHiOYuuCw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@eslint-community/regexpp": "^4.12.2",- "@typescript-eslint/scope-manager": "8.58.2",- "@typescript-eslint/type-utils": "8.58.2",- "@typescript-eslint/utils": "8.58.2",- "@typescript-eslint/visitor-keys": "8.58.2",- "ignore": "^7.0.5",- "natural-compare": "^1.4.0",- "ts-api-utils": "^2.5.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "@typescript-eslint/parser": "^8.58.2",- "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",- "typescript": ">=4.8.4 <6.1.0"- }- },- "node_modules/@typescript-eslint/parser": {- "version": "8.58.2",- "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-8.58.2.tgz",- "integrity": "sha512-/Zb/xaIDfxeJnvishjGdcR4jmr7S+bda8PKNhRGdljDM+elXhlvN0FyPSsMnLmJUrVG9aPO6dof80wjMawsASg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/scope-manager": "8.58.2",- "@typescript-eslint/types": "8.58.2",- "@typescript-eslint/typescript-estree": "8.58.2",- "@typescript-eslint/visitor-keys": "8.58.2",- "debug": "^4.4.3"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",- "typescript": ">=4.8.4 <6.1.0"- }- },- "node_modules/@typescript-eslint/project-service": {- "version": "8.58.2",- "resolved": "https://registry.npmjs.org/@typescript-eslint/project-service/-/project-service-8.58.2.tgz",- "integrity": "sha512-Cq6UfpZZk15+r87BkIh5rDpi38W4b+Sjnb8wQCPPDDweS/LRCFjCyViEbzHk5Ck3f2QDfgmlxqSa7S7clDtlfg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/tsconfig-utils": "^8.58.2",- "@typescript-eslint/types": "^8.58.2",- "debug": "^4.4.3"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "typescript": ">=4.8.4 <6.1.0"- }- },- "node_modules/@typescript-eslint/scope-manager": {- "version": "8.58.2",- "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-8.58.2.tgz",- "integrity": "sha512-SgmyvDPexWETQek+qzZnrG6844IaO02UVyOLhI4wpo82dpZJY9+6YZCKAMFzXb7qhx37mFK1QcPQ18tud+vo6Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/types": "8.58.2",- "@typescript-eslint/visitor-keys": "8.58.2"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/@typescript-eslint/tsconfig-utils": {- "version": "8.58.2",- "resolved": "https://registry.npmjs.org/@typescript-eslint/tsconfig-utils/-/tsconfig-utils-8.58.2.tgz",- "integrity": "sha512-3SR+RukipDvkkKp/d0jP0dyzuls3DbGmwDpVEc5wqk5f38KFThakqAAO0XMirWAE+kT00oTauTbzMFGPoAzB0A==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "typescript": ">=4.8.4 <6.1.0"- }- },- "node_modules/@typescript-eslint/type-utils": {- "version": "8.58.2",- "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-8.58.2.tgz",- "integrity": "sha512-Z7EloNR/B389FvabdGeTo2XMs4W9TjtPiO9DAsmT0yom0bwlPyRjkJ1uCdW1DvrrrYP50AJZ9Xc3sByZA9+dcg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/types": "8.58.2",- "@typescript-eslint/typescript-estree": "8.58.2",- "@typescript-eslint/utils": "8.58.2",- "debug": "^4.4.3",- "ts-api-utils": "^2.5.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",- "typescript": ">=4.8.4 <6.1.0"- }- },- "node_modules/@typescript-eslint/types": {- "version": "8.58.2",- "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-8.58.2.tgz",- "integrity": "sha512-9TukXyATBQf/Jq9AMQXfvurk+G5R2MwfqQGDR2GzGz28HvY/lXNKGhkY+6IOubwcquikWk5cjlgPvD2uAA7htQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/@typescript-eslint/typescript-estree": {- "version": "8.58.2",- "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-8.58.2.tgz",- "integrity": "sha512-ELGuoofuhhoCvNbQjFFiobFcGgcDCEm0ThWdmO4Z0UzLqPXS3KFvnEZ+SHewwOYHjM09tkzOWXNTv9u6Gqtyuw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/project-service": "8.58.2",- "@typescript-eslint/tsconfig-utils": "8.58.2",- "@typescript-eslint/types": "8.58.2",- "@typescript-eslint/visitor-keys": "8.58.2",- "debug": "^4.4.3",- "minimatch": "^10.2.2",- "semver": "^7.7.3",- "tinyglobby": "^0.2.15",- "ts-api-utils": "^2.5.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "typescript": ">=4.8.4 <6.1.0"- }- },- "node_modules/@typescript-eslint/typescript-estree/node_modules/semver": {- "version": "7.7.4",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",- "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "node_modules/@typescript-eslint/utils": {- "version": "8.58.2",- "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-8.58.2.tgz",- "integrity": "sha512-QZfjHNEzPY8+l0+fIXMvuQ2sJlplB4zgDZvA+NmvZsZv3EQwOcc1DuIU1VJUTWZ/RKouBMhDyNaBMx4sWvrzRA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@eslint-community/eslint-utils": "^4.9.1",- "@typescript-eslint/scope-manager": "8.58.2",- "@typescript-eslint/types": "8.58.2",- "@typescript-eslint/typescript-estree": "8.58.2"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",- "typescript": ">=4.8.4 <6.1.0"- }- },- "node_modules/@typescript-eslint/visitor-keys": {- "version": "8.58.2",- "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-8.58.2.tgz",- "integrity": "sha512-f1WO2Lx8a9t8DARmcWAUPJbu0G20bJlj8L4z72K00TMeJAoyLr/tHhI/pzYBLrR4dXWkcxO1cWYZEOX8DKHTqA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/types": "8.58.2",- "eslint-visitor-keys": "^5.0.0"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- }- },- "node_modules/@typescript-eslint/visitor-keys/node_modules/eslint-visitor-keys": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",- "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/@ungap/structured-clone": {- "version": "1.3.0",- "resolved": "https://registry.npmjs.org/@ungap/structured-clone/-/structured-clone-1.3.0.tgz",- "integrity": "sha512-WmoN8qaIAo7WTYWbAZuG8PYEhn5fkz7dZrqTBZ7dtt//lL2Gwms1IcnQ5yHqjDfX8Ft5j4YzDM23f87zBfDe9g==",- "dev": true,- "license": "ISC"- },- "node_modules/@unrs/resolver-binding-android-arm-eabi": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm-eabi/-/resolver-binding-android-arm-eabi-1.11.1.tgz",- "integrity": "sha512-ppLRUgHVaGRWUx0R0Ut06Mjo9gBaBkg3v/8AxusGLhsIotbBLuRk51rAzqLC8gq6NyyAojEXglNjzf6R948DNw==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@unrs/resolver-binding-android-arm64": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-android-arm64/-/resolver-binding-android-arm64-1.11.1.tgz",- "integrity": "sha512-lCxkVtb4wp1v+EoN+HjIG9cIIzPkX5OtM03pQYkG+U5O/wL53LC4QbIeazgiKqluGeVEeBlZahHalCaBvU1a2g==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "android"- ]- },- "node_modules/@unrs/resolver-binding-darwin-arm64": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-arm64/-/resolver-binding-darwin-arm64-1.11.1.tgz",- "integrity": "sha512-gPVA1UjRu1Y/IsB/dQEsp2V1pm44Of6+LWvbLc9SDk1c2KhhDRDBUkQCYVWe6f26uJb3fOK8saWMgtX8IrMk3g==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@unrs/resolver-binding-darwin-x64": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-darwin-x64/-/resolver-binding-darwin-x64-1.11.1.tgz",- "integrity": "sha512-cFzP7rWKd3lZaCsDze07QX1SC24lO8mPty9vdP+YVa3MGdVgPmFc59317b2ioXtgCMKGiCLxJ4HQs62oz6GfRQ==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ]- },- "node_modules/@unrs/resolver-binding-freebsd-x64": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-freebsd-x64/-/resolver-binding-freebsd-x64-1.11.1.tgz",- "integrity": "sha512-fqtGgak3zX4DCB6PFpsH5+Kmt/8CIi4Bry4rb1ho6Av2QHTREM+47y282Uqiu3ZRF5IQioJQ5qWRV6jduA+iGw==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "freebsd"- ]- },- "node_modules/@unrs/resolver-binding-linux-arm-gnueabihf": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-gnueabihf/-/resolver-binding-linux-arm-gnueabihf-1.11.1.tgz",- "integrity": "sha512-u92mvlcYtp9MRKmP+ZvMmtPN34+/3lMHlyMj7wXJDeXxuM0Vgzz0+PPJNsro1m3IZPYChIkn944wW8TYgGKFHw==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@unrs/resolver-binding-linux-arm-musleabihf": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm-musleabihf/-/resolver-binding-linux-arm-musleabihf-1.11.1.tgz",- "integrity": "sha512-cINaoY2z7LVCrfHkIcmvj7osTOtm6VVT16b5oQdS4beibX2SYBwgYLmqhBjA1t51CarSaBuX5YNsWLjsqfW5Cw==",- "cpu": [- "arm"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@unrs/resolver-binding-linux-arm64-gnu": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-gnu/-/resolver-binding-linux-arm64-gnu-1.11.1.tgz",- "integrity": "sha512-34gw7PjDGB9JgePJEmhEqBhWvCiiWCuXsL9hYphDF7crW7UgI05gyBAi6MF58uGcMOiOqSJ2ybEeCvHcq0BCmQ==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@unrs/resolver-binding-linux-arm64-musl": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-arm64-musl/-/resolver-binding-linux-arm64-musl-1.11.1.tgz",- "integrity": "sha512-RyMIx6Uf53hhOtJDIamSbTskA99sPHS96wxVE/bJtePJJtpdKGXO1wY90oRdXuYOGOTuqjT8ACccMc4K6QmT3w==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@unrs/resolver-binding-linux-ppc64-gnu": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-ppc64-gnu/-/resolver-binding-linux-ppc64-gnu-1.11.1.tgz",- "integrity": "sha512-D8Vae74A4/a+mZH0FbOkFJL9DSK2R6TFPC9M+jCWYia/q2einCubX10pecpDiTmkJVUH+y8K3BZClycD8nCShA==",- "cpu": [- "ppc64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@unrs/resolver-binding-linux-riscv64-gnu": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-gnu/-/resolver-binding-linux-riscv64-gnu-1.11.1.tgz",- "integrity": "sha512-frxL4OrzOWVVsOc96+V3aqTIQl1O2TjgExV4EKgRY09AJ9leZpEg8Ak9phadbuX0BA4k8U5qtvMSQQGGmaJqcQ==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@unrs/resolver-binding-linux-riscv64-musl": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-riscv64-musl/-/resolver-binding-linux-riscv64-musl-1.11.1.tgz",- "integrity": "sha512-mJ5vuDaIZ+l/acv01sHoXfpnyrNKOk/3aDoEdLO/Xtn9HuZlDD6jKxHlkN8ZhWyLJsRBxfv9GYM2utQ1SChKew==",- "cpu": [- "riscv64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@unrs/resolver-binding-linux-s390x-gnu": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-s390x-gnu/-/resolver-binding-linux-s390x-gnu-1.11.1.tgz",- "integrity": "sha512-kELo8ebBVtb9sA7rMe1Cph4QHreByhaZ2QEADd9NzIQsYNQpt9UkM9iqr2lhGr5afh885d/cB5QeTXSbZHTYPg==",- "cpu": [- "s390x"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@unrs/resolver-binding-linux-x64-gnu": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-gnu/-/resolver-binding-linux-x64-gnu-1.11.1.tgz",- "integrity": "sha512-C3ZAHugKgovV5YvAMsxhq0gtXuwESUKc5MhEtjBpLoHPLYM+iuwSj3lflFwK3DPm68660rZ7G8BMcwSro7hD5w==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@unrs/resolver-binding-linux-x64-musl": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-linux-x64-musl/-/resolver-binding-linux-x64-musl-1.11.1.tgz",- "integrity": "sha512-rV0YSoyhK2nZ4vEswT/QwqzqQXw5I6CjoaYMOX0TqBlWhojUf8P94mvI7nuJTeaCkkds3QE4+zS8Ko+GdXuZtA==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "linux"- ]- },- "node_modules/@unrs/resolver-binding-wasm32-wasi": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-wasm32-wasi/-/resolver-binding-wasm32-wasi-1.11.1.tgz",- "integrity": "sha512-5u4RkfxJm+Ng7IWgkzi3qrFOvLvQYnPBmjmZQ8+szTK/b31fQCnleNl1GgEt7nIsZRIf5PLhPwT0WM+q45x/UQ==",- "cpu": [- "wasm32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "dependencies": {- "@napi-rs/wasm-runtime": "^0.2.11"- },- "engines": {- "node": ">=14.0.0"- }- },- "node_modules/@unrs/resolver-binding-win32-arm64-msvc": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-arm64-msvc/-/resolver-binding-win32-arm64-msvc-1.11.1.tgz",- "integrity": "sha512-nRcz5Il4ln0kMhfL8S3hLkxI85BXs3o8EYoattsJNdsX4YUU89iOkVn7g0VHSRxFuVMdM4Q1jEpIId1Ihim/Uw==",- "cpu": [- "arm64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@unrs/resolver-binding-win32-ia32-msvc": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-ia32-msvc/-/resolver-binding-win32-ia32-msvc-1.11.1.tgz",- "integrity": "sha512-DCEI6t5i1NmAZp6pFonpD5m7i6aFrpofcp4LA2i8IIq60Jyo28hamKBxNrZcyOwVOZkgsRp9O2sXWBWP8MnvIQ==",- "cpu": [- "ia32"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/@unrs/resolver-binding-win32-x64-msvc": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/@unrs/resolver-binding-win32-x64-msvc/-/resolver-binding-win32-x64-msvc-1.11.1.tgz",- "integrity": "sha512-lrW200hZdbfRtztbygyaq/6jP6AKE8qQN2KvPcJ+x7wiD038YtnYtZ82IMNJ69GJibV7bwL3y9FgK+5w/pYt6g==",- "cpu": [- "x64"- ],- "dev": true,- "license": "MIT",- "optional": true,- "os": [- "win32"- ]- },- "node_modules/acorn": {- "version": "8.16.0",- "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.16.0.tgz",- "integrity": "sha512-UVJyE9MttOsBQIDKw1skb9nAwQuR5wuGD3+82K6JgJlm/Y+KI92oNsMNGZCYdDsVtRHSak0pcV5Dno5+4jh9sw==",- "dev": true,- "license": "MIT",- "bin": {- "acorn": "bin/acorn"- },- "engines": {- "node": ">=0.4.0"- }- },- "node_modules/acorn-jsx": {- "version": "5.3.2",- "resolved": "https://registry.npmjs.org/acorn-jsx/-/acorn-jsx-5.3.2.tgz",- "integrity": "sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "acorn": "^6.0.0 || ^7.0.0 || ^8.0.0"- }- },- "node_modules/ajv": {- "version": "6.14.0",- "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.14.0.tgz",- "integrity": "sha512-IWrosm/yrn43eiKqkfkHis7QioDleaXQHdDVPKg0FSwwd/DuvyX79TZnFOnYpB7dcsFAMmtFztZuXPDvSePkFw==",- "dev": true,- "license": "MIT",- "dependencies": {- "fast-deep-equal": "^3.1.1",- "fast-json-stable-stringify": "^2.0.0",- "json-schema-traverse": "^0.4.1",- "uri-js": "^4.2.2"- },- "funding": {- "type": "github",- "url": "https://github.com/sponsors/epoberezkin"- }- },- "node_modules/ansi-escapes": {- "version": "4.3.2",- "resolved": "https://registry.npmjs.org/ansi-escapes/-/ansi-escapes-4.3.2.tgz",- "integrity": "sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "type-fest": "^0.21.3"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/ansi-regex": {- "version": "6.2.2",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",- "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-regex?sponsor=1"- }- },- "node_modules/ansi-styles": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz",- "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==",- "dev": true,- "license": "MIT",- "dependencies": {- "color-convert": "^2.0.1"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/anymatch": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",- "integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",- "dev": true,- "license": "ISC",- "dependencies": {- "normalize-path": "^3.0.0",- "picomatch": "^2.0.4"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/babel-jest": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/babel-jest/-/babel-jest-30.3.0.tgz",- "integrity": "sha512-gRpauEU2KRrCox5Z296aeVHR4jQ98BCnu0IO332D/xpHNOsIH/bgSRk9k6GbKIbBw8vFeN6ctuu6tV8WOyVfYQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/transform": "30.3.0",- "@types/babel__core": "^7.20.5",- "babel-plugin-istanbul": "^7.0.1",- "babel-preset-jest": "30.3.0",- "chalk": "^4.1.2",- "graceful-fs": "^4.2.11",- "slash": "^3.0.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- },- "peerDependencies": {- "@babel/core": "^7.11.0 || ^8.0.0-0"- }- },- "node_modules/babel-plugin-istanbul": {- "version": "7.0.1",- "resolved": "https://registry.npmjs.org/babel-plugin-istanbul/-/babel-plugin-istanbul-7.0.1.tgz",- "integrity": "sha512-D8Z6Qm8jCvVXtIRkBnqNHX0zJ37rQcFJ9u8WOS6tkYOsRdHBzypCstaxWiu5ZIlqQtviRYbgnRLSoCEvjqcqbA==",- "dev": true,- "license": "BSD-3-Clause",- "workspaces": [- "test/babel-8"- ],- "dependencies": {- "@babel/helper-plugin-utils": "^7.0.0",- "@istanbuljs/load-nyc-config": "^1.0.0",- "@istanbuljs/schema": "^0.1.3",- "istanbul-lib-instrument": "^6.0.2",- "test-exclude": "^6.0.0"- },- "engines": {- "node": ">=12"- }- },- "node_modules/babel-plugin-jest-hoist": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-30.3.0.tgz",- "integrity": "sha512-+TRkByhsws6sfPjVaitzadk1I0F5sPvOVUH5tyTSzhePpsGIVrdeunHSw/C36QeocS95OOk8lunc4rlu5Anwsg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/babel__core": "^7.20.5"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/babel-plugin-polyfill-corejs2": {- "version": "0.4.15",- "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.15.tgz",- "integrity": "sha512-hR3GwrRwHUfYwGfrisXPIDP3JcYfBrW7wKE7+Au6wDYl7fm/ka1NEII6kORzxNU556JjfidZeBsO10kYvtV1aw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/compat-data": "^7.28.6",- "@babel/helper-define-polyfill-provider": "^0.6.6",- "semver": "^6.3.1"- },- "peerDependencies": {- "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"- }- },- "node_modules/babel-plugin-polyfill-corejs3": {- "version": "0.14.0",- "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.14.0.tgz",- "integrity": "sha512-AvDcMxJ34W4Wgy4KBIIePQTAOP1Ie2WFwkQp3dB7FQ/f0lI5+nM96zUnYEOE1P9sEg0es5VCP0HxiWu5fUHZAQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-define-polyfill-provider": "^0.6.6",- "core-js-compat": "^3.48.0"- },- "peerDependencies": {- "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"- }- },- "node_modules/babel-plugin-polyfill-regenerator": {- "version": "0.6.6",- "resolved": "https://registry.npmjs.org/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.6.6.tgz",- "integrity": "sha512-hYm+XLYRMvupxiQzrvXUj7YyvFFVfv5gI0R71AJzudg1g2AI2vyCPPIFEBjk162/wFzti3inBHo7isWFuEVS/A==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/helper-define-polyfill-provider": "^0.6.6"- },- "peerDependencies": {- "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"- }- },- "node_modules/babel-preset-current-node-syntax": {- "version": "1.2.0",- "resolved": "https://registry.npmjs.org/babel-preset-current-node-syntax/-/babel-preset-current-node-syntax-1.2.0.tgz",- "integrity": "sha512-E/VlAEzRrsLEb2+dv8yp3bo4scof3l9nR4lrld+Iy5NyVqgVYUJnDAmunkhPMisRI32Qc4iRiz425d8vM++2fg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/plugin-syntax-async-generators": "^7.8.4",- "@babel/plugin-syntax-bigint": "^7.8.3",- "@babel/plugin-syntax-class-properties": "^7.12.13",- "@babel/plugin-syntax-class-static-block": "^7.14.5",- "@babel/plugin-syntax-import-attributes": "^7.24.7",- "@babel/plugin-syntax-import-meta": "^7.10.4",- "@babel/plugin-syntax-json-strings": "^7.8.3",- "@babel/plugin-syntax-logical-assignment-operators": "^7.10.4",- "@babel/plugin-syntax-nullish-coalescing-operator": "^7.8.3",- "@babel/plugin-syntax-numeric-separator": "^7.10.4",- "@babel/plugin-syntax-object-rest-spread": "^7.8.3",- "@babel/plugin-syntax-optional-catch-binding": "^7.8.3",- "@babel/plugin-syntax-optional-chaining": "^7.8.3",- "@babel/plugin-syntax-private-property-in-object": "^7.14.5",- "@babel/plugin-syntax-top-level-await": "^7.14.5"- },- "peerDependencies": {- "@babel/core": "^7.0.0 || ^8.0.0-0"- }- },- "node_modules/babel-preset-jest": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/babel-preset-jest/-/babel-preset-jest-30.3.0.tgz",- "integrity": "sha512-6ZcUbWHC+dMz2vfzdNwi87Z1gQsLNK2uLuK1Q89R11xdvejcivlYYwDlEv0FHX3VwEXpbBQ9uufB/MUNpZGfhQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "babel-plugin-jest-hoist": "30.3.0",- "babel-preset-current-node-syntax": "^1.2.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- },- "peerDependencies": {- "@babel/core": "^7.11.0 || ^8.0.0-beta.1"- }- },- "node_modules/balanced-match": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",- "integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",- "dev": true,- "license": "MIT",- "engines": {- "node": "18 || 20 || >=22"- }- },- "node_modules/baseline-browser-mapping": {- "version": "2.10.0",- "resolved": "https://registry.npmjs.org/baseline-browser-mapping/-/baseline-browser-mapping-2.10.0.tgz",- "integrity": "sha512-lIyg0szRfYbiy67j9KN8IyeD7q7hcmqnJ1ddWmNt19ItGpNN64mnllmxUNFIOdOm6by97jlL6wfpTTJrmnjWAA==",- "dev": true,- "license": "Apache-2.0",- "bin": {- "baseline-browser-mapping": "dist/cli.cjs"- },- "engines": {- "node": ">=6.0.0"- }- },- "node_modules/brace-expansion": {- "version": "5.0.5",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.5.tgz",- "integrity": "sha512-VZznLgtwhn+Mact9tfiwx64fA9erHH/MCXEUfB/0bX/6Fz6ny5EGTXYltMocqg4xFAQZtnO3DHWWXi8RiuN7cQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "balanced-match": "^4.0.2"- },- "engines": {- "node": "18 || 20 || >=22"- }- },- "node_modules/browserslist": {- "version": "4.28.1",- "resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.28.1.tgz",- "integrity": "sha512-ZC5Bd0LgJXgwGqUknZY/vkUQ04r8NXnJZ3yYi4vDmSiZmC/pdSN0NbNRPxZpbtO4uAfDUAFffO8IZoM3Gj8IkA==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/browserslist"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/browserslist"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "baseline-browser-mapping": "^2.9.0",- "caniuse-lite": "^1.0.30001759",- "electron-to-chromium": "^1.5.263",- "node-releases": "^2.0.27",- "update-browserslist-db": "^1.2.0"- },- "bin": {- "browserslist": "cli.js"- },- "engines": {- "node": "^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7"- }- },- "node_modules/bs-logger": {- "version": "0.2.6",- "resolved": "https://registry.npmjs.org/bs-logger/-/bs-logger-0.2.6.tgz",- "integrity": "sha512-pd8DCoxmbgc7hyPKOvxtqNcjYoOsABPQdcCUjGp3d42VR2CX1ORhk2A87oqqu5R1kk+76nsxZupkmyd+MVtCog==",- "dev": true,- "license": "MIT",- "dependencies": {- "fast-json-stable-stringify": "2.x"- },- "engines": {- "node": ">= 6"- }- },- "node_modules/bser": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/bser/-/bser-2.1.1.tgz",- "integrity": "sha512-gQxTNE/GAfIIrmHLUE3oJyp5FO6HRBfhjnw4/wMmA63ZGDJnWBmgY/lyQBpnDUkGmAhbSe39tx2d/iTOAfglwQ==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "node-int64": "^0.4.0"- }- },- "node_modules/buffer-from": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz",- "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==",- "dev": true,- "license": "MIT"- },- "node_modules/callsites": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz",- "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/camelcase": {- "version": "5.3.1",- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-5.3.1.tgz",- "integrity": "sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/caniuse-lite": {- "version": "1.0.30001772",- "resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001772.tgz",- "integrity": "sha512-mIwLZICj+ntVTw4BT2zfp+yu/AqV6GMKfJVJMx3MwPxs+uk/uj2GLl2dH8LQbjiLDX66amCga5nKFyDgRR43kg==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/browserslist"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/caniuse-lite"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "CC-BY-4.0"- },- "node_modules/chalk": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz",- "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^4.1.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/chalk?sponsor=1"- }- },- "node_modules/char-regex": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/char-regex/-/char-regex-1.0.2.tgz",- "integrity": "sha512-kWWXztvZ5SBQV+eRgKFeh8q5sLuZY2+8WUIzlxWVTg+oGwY14qylx1KbKzHd8P6ZYkAg0xyIDU9JMHhyJMZ1jw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- }- },- "node_modules/ci-info": {- "version": "4.4.0",- "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-4.4.0.tgz",- "integrity": "sha512-77PSwercCZU2Fc4sX94eF8k8Pxte6JAwL4/ICZLFjJLqegs7kCuAsqqj/70NQF6TvDpgFjkubQB2FW2ZZddvQg==",- "dev": true,- "funding": [- {- "type": "github",- "url": "https://github.com/sponsors/sibiraj-s"- }- ],- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/cjs-module-lexer": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-2.2.0.tgz",- "integrity": "sha512-4bHTS2YuzUvtoLjdy+98ykbNB5jS0+07EvFNXerqZQJ89F7DI6ET7OQo/HJuW6K0aVsKA9hj9/RVb2kQVOrPDQ==",- "dev": true,- "license": "MIT"- },- "node_modules/cliui": {- "version": "8.0.1",- "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz",- "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==",- "dev": true,- "license": "ISC",- "dependencies": {- "string-width": "^4.2.0",- "strip-ansi": "^6.0.1",- "wrap-ansi": "^7.0.0"- },- "engines": {- "node": ">=12"- }- },- "node_modules/cliui/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/cliui/node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",- "dev": true,- "license": "MIT"- },- "node_modules/cliui/node_modules/string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "dev": true,- "license": "MIT",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/cliui/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/cliui/node_modules/wrap-ansi": {- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^4.0.0",- "string-width": "^4.1.0",- "strip-ansi": "^6.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"- }- },- "node_modules/co": {- "version": "4.6.0",- "resolved": "https://registry.npmjs.org/co/-/co-4.6.0.tgz",- "integrity": "sha512-QVb0dM5HvG+uaxitm8wONl7jltx8dqhfU33DcqtOZcLSVIKSDDLDi7+0LbAKiyI8hD9u42m2YxXSkMGWThaecQ==",- "dev": true,- "license": "MIT",- "engines": {- "iojs": ">= 1.0.0",- "node": ">= 0.12.0"- }- },- "node_modules/collect-v8-coverage": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.3.tgz",- "integrity": "sha512-1L5aqIkwPfiodaMgQunkF1zRhNqifHBmtbbbxcr6yVxxBnliw4TDOW6NxpO8DJLgJ16OT+Y4ztZqP6p/FtXnAw==",- "dev": true,- "license": "MIT"- },- "node_modules/color-convert": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz",- "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "color-name": "~1.1.4"- },- "engines": {- "node": ">=7.0.0"- }- },- "node_modules/color-name": {- "version": "1.1.4",- "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz",- "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==",- "dev": true,- "license": "MIT"- },- "node_modules/concat-map": {- "version": "0.0.1",- "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz",- "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==",- "dev": true,- "license": "MIT"- },- "node_modules/convert-source-map": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-2.0.0.tgz",- "integrity": "sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg==",- "dev": true,- "license": "MIT"- },- "node_modules/core-js-compat": {- "version": "3.48.0",- "resolved": "https://registry.npmjs.org/core-js-compat/-/core-js-compat-3.48.0.tgz",- "integrity": "sha512-OM4cAF3D6VtH/WkLtWvyNC56EZVXsZdU3iqaMG2B4WvYrlqU831pc4UtG5yp0sE9z8Y02wVN7PjW5Zf9Gt0f1Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "browserslist": "^4.28.1"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/core-js"- }- },- "node_modules/cross-spawn": {- "version": "7.0.6",- "resolved": "https://registry.npmjs.org/cross-spawn/-/cross-spawn-7.0.6.tgz",- "integrity": "sha512-uV2QOWP2nWzsy2aMp8aRibhi9dlzF5Hgh5SHaB9OiTGEyDTiJJyx0uy51QXdyWbtAHNua4XJzUKca3OzKUd3vA==",- "dev": true,- "license": "MIT",- "dependencies": {- "path-key": "^3.1.0",- "shebang-command": "^2.0.0",- "which": "^2.0.1"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/debug": {- "version": "4.4.3",- "resolved": "https://registry.npmjs.org/debug/-/debug-4.4.3.tgz",- "integrity": "sha512-RGwwWnwQvkVfavKVt22FGLw+xYSdzARwm0ru6DhTVA3umU5hZc28V3kO4stgYryrTlLpuvgI9GiijltAjNbcqA==",- "dev": true,- "license": "MIT",- "dependencies": {- "ms": "^2.1.3"- },- "engines": {- "node": ">=6.0"- },- "peerDependenciesMeta": {- "supports-color": {- "optional": true- }- }- },- "node_modules/dedent": {- "version": "1.7.2",- "resolved": "https://registry.npmjs.org/dedent/-/dedent-1.7.2.tgz",- "integrity": "sha512-WzMx3mW98SN+zn3hgemf4OzdmyNhhhKz5Ay0pUfQiMQ3e1g+xmTJWp/pKdwKVXhdSkAEGIIzqeuWrL3mV/AXbA==",- "dev": true,- "license": "MIT",- "peerDependencies": {- "babel-plugin-macros": "^3.1.0"- },- "peerDependenciesMeta": {- "babel-plugin-macros": {- "optional": true- }- }- },- "node_modules/deep-is": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/deep-is/-/deep-is-0.1.4.tgz",- "integrity": "sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ==",- "dev": true,- "license": "MIT"- },- "node_modules/deepmerge": {- "version": "4.3.1",- "resolved": "https://registry.npmjs.org/deepmerge/-/deepmerge-4.3.1.tgz",- "integrity": "sha512-3sUqbMEc77XqpdNO7FRyRog+eW3ph+GYCbj+rK+uYyRMuwsVy0rMiVtPn+QJlKFvWP/1PYpapqYn0Me2knFn+A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/detect-newline": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/detect-newline/-/detect-newline-3.1.0.tgz",- "integrity": "sha512-TLz+x/vEXm/Y7P7wn1EJFNLxYpUD4TgMosxY6fAVJUnJMbupHBOncxyWUG9OpTaH9EBD7uFI5LfEgmMOc54DsA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/eastasianwidth": {- "version": "0.2.0",- "resolved": "https://registry.npmjs.org/eastasianwidth/-/eastasianwidth-0.2.0.tgz",- "integrity": "sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==",- "dev": true,- "license": "MIT"- },- "node_modules/electron-to-chromium": {- "version": "1.5.302",- "resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.5.302.tgz",- "integrity": "sha512-sM6HAN2LyK82IyPBpznDRqlTQAtuSaO+ShzFiWTvoMJLHyZ+Y39r8VMfHzwbU8MVBzQ4Wdn85+wlZl2TLGIlwg==",- "dev": true,- "license": "ISC"- },- "node_modules/emittery": {- "version": "0.13.1",- "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.13.1.tgz",- "integrity": "sha512-DeWwawk6r5yR9jFgnDKYt4sLS0LmHJJi3ZOnb5/JdbYwj3nW+FxQnHIjhBKz8YLC7oRNPVM9NQ47I3CVx34eqQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sindresorhus/emittery?sponsor=1"- }- },- "node_modules/emoji-regex": {- "version": "9.2.2",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-9.2.2.tgz",- "integrity": "sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==",- "dev": true,- "license": "MIT"- },- "node_modules/error-ex": {- "version": "1.3.4",- "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.4.tgz",- "integrity": "sha512-sqQamAnR14VgCr1A618A3sGrygcpK+HEbenA/HiEAkkUwcZIIB/tgWqHFxWgOyDh4nB4JCRimh79dR5Ywc9MDQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-arrayish": "^0.2.1"- }- },- "node_modules/escalade": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz",- "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/escape-string-regexp": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz",- "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/eslint": {- "version": "10.2.0",- "resolved": "https://registry.npmjs.org/eslint/-/eslint-10.2.0.tgz",- "integrity": "sha512-+L0vBFYGIpSNIt/KWTpFonPrqYvgKw1eUI5Vn7mEogrQcWtWYtNQ7dNqC+px/J0idT3BAkiWrhfS7k+Tum8TUA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@eslint-community/eslint-utils": "^4.8.0",- "@eslint-community/regexpp": "^4.12.2",- "@eslint/config-array": "^0.23.4",- "@eslint/config-helpers": "^0.5.4",- "@eslint/core": "^1.2.0",- "@eslint/plugin-kit": "^0.7.0",- "@humanfs/node": "^0.16.6",- "@humanwhocodes/module-importer": "^1.0.1",- "@humanwhocodes/retry": "^0.4.2",- "@types/estree": "^1.0.6",- "ajv": "^6.14.0",- "cross-spawn": "^7.0.6",- "debug": "^4.3.2",- "escape-string-regexp": "^4.0.0",- "eslint-scope": "^9.1.2",- "eslint-visitor-keys": "^5.0.1",- "espree": "^11.2.0",- "esquery": "^1.7.0",- "esutils": "^2.0.2",- "fast-deep-equal": "^3.1.3",- "file-entry-cache": "^8.0.0",- "find-up": "^5.0.0",- "glob-parent": "^6.0.2",- "ignore": "^5.2.0",- "imurmurhash": "^0.1.4",- "is-glob": "^4.0.0",- "json-stable-stringify-without-jsonify": "^1.0.1",- "minimatch": "^10.2.4",- "natural-compare": "^1.4.0",- "optionator": "^0.9.3"- },- "bin": {- "eslint": "bin/eslint.js"- },- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- },- "funding": {- "url": "https://eslint.org/donate"- },- "peerDependencies": {- "jiti": "*"- },- "peerDependenciesMeta": {- "jiti": {- "optional": true- }- }- },- "node_modules/eslint-scope": {- "version": "9.1.2",- "resolved": "https://registry.npmjs.org/eslint-scope/-/eslint-scope-9.1.2.tgz",- "integrity": "sha512-xS90H51cKw0jltxmvmHy2Iai1LIqrfbw57b79w/J7MfvDfkIkFZ+kj6zC3BjtUwh150HsSSdxXZcsuv72miDFQ==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "@types/esrecurse": "^4.3.1",- "@types/estree": "^1.0.8",- "esrecurse": "^4.3.0",- "estraverse": "^5.2.0"- },- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/eslint-visitor-keys": {- "version": "3.4.3",- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz",- "integrity": "sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": "^12.22.0 || ^14.17.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/eslint/node_modules/eslint-visitor-keys": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",- "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/eslint/node_modules/ignore": {- "version": "5.3.2",- "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.2.tgz",- "integrity": "sha512-hsBTNUqQTDwkWtcdYI2i06Y/nUBEsNEDJKjWdigLvegy8kDuJAS8uRlpkkcQpyEXL0Z/pjDy5HBmMjRCJ2gq+g==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 4"- }- },- "node_modules/espree": {- "version": "11.2.0",- "resolved": "https://registry.npmjs.org/espree/-/espree-11.2.0.tgz",- "integrity": "sha512-7p3DrVEIopW1B1avAGLuCSh1jubc01H2JHc8B4qqGblmg5gI9yumBgACjWo4JlIc04ufug4xJ3SQI8HkS/Rgzw==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "acorn": "^8.16.0",- "acorn-jsx": "^5.3.2",- "eslint-visitor-keys": "^5.0.1"- },- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/espree/node_modules/eslint-visitor-keys": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-5.0.1.tgz",- "integrity": "sha512-tD40eHxA35h0PEIZNeIjkHoDR4YjjJp34biM0mDvplBe//mB+IHCqHDGV7pxF+7MklTvighcCPPZC7ynWyjdTA==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": "^20.19.0 || ^22.13.0 || >=24"- },- "funding": {- "url": "https://opencollective.com/eslint"- }- },- "node_modules/esprima": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz",- "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==",- "dev": true,- "license": "BSD-2-Clause",- "bin": {- "esparse": "bin/esparse.js",- "esvalidate": "bin/esvalidate.js"- },- "engines": {- "node": ">=4"- }- },- "node_modules/esquery": {- "version": "1.7.0",- "resolved": "https://registry.npmjs.org/esquery/-/esquery-1.7.0.tgz",- "integrity": "sha512-Ap6G0WQwcU/LHsvLwON1fAQX9Zp0A2Y6Y/cJBl9r/JbW90Zyg4/zbG6zzKa2OTALELarYHmKu0GhpM5EO+7T0g==",- "dev": true,- "license": "BSD-3-Clause",- "dependencies": {- "estraverse": "^5.1.0"- },- "engines": {- "node": ">=0.10"- }- },- "node_modules/esrecurse": {- "version": "4.3.0",- "resolved": "https://registry.npmjs.org/esrecurse/-/esrecurse-4.3.0.tgz",- "integrity": "sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "estraverse": "^5.2.0"- },- "engines": {- "node": ">=4.0"- }- },- "node_modules/estraverse": {- "version": "5.3.0",- "resolved": "https://registry.npmjs.org/estraverse/-/estraverse-5.3.0.tgz",- "integrity": "sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA==",- "dev": true,- "license": "BSD-2-Clause",- "engines": {- "node": ">=4.0"- }- },- "node_modules/esutils": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz",- "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==",- "dev": true,- "license": "BSD-2-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/execa": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",- "integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",- "dev": true,- "license": "MIT",- "dependencies": {- "cross-spawn": "^7.0.3",- "get-stream": "^6.0.0",- "human-signals": "^2.1.0",- "is-stream": "^2.0.0",- "merge-stream": "^2.0.0",- "npm-run-path": "^4.0.1",- "onetime": "^5.1.2",- "signal-exit": "^3.0.3",- "strip-final-newline": "^2.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sindresorhus/execa?sponsor=1"- }- },- "node_modules/execa/node_modules/signal-exit": {- "version": "3.0.7",- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz",- "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==",- "dev": true,- "license": "ISC"- },- "node_modules/exit-x": {- "version": "0.2.2",- "resolved": "https://registry.npmjs.org/exit-x/-/exit-x-0.2.2.tgz",- "integrity": "sha512-+I6B/IkJc1o/2tiURyz/ivu/O0nKNEArIUB5O7zBrlDVJr22SCLH3xTeEry428LvFhRzIA1g8izguxJ/gbNcVQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/expect": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/expect/-/expect-30.3.0.tgz",- "integrity": "sha512-1zQrciTiQfRdo7qJM1uG4navm8DayFa2TgCSRlzUyNkhcJ6XUZF3hjnpkyr3VhAqPH7i/9GkG7Tv5abz6fqz0Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/expect-utils": "30.3.0",- "@jest/get-type": "30.1.0",- "jest-matcher-utils": "30.3.0",- "jest-message-util": "30.3.0",- "jest-mock": "30.3.0",- "jest-util": "30.3.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/fast-deep-equal": {- "version": "3.1.3",- "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz",- "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==",- "dev": true,- "license": "MIT"- },- "node_modules/fast-json-stable-stringify": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz",- "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==",- "dev": true,- "license": "MIT"- },- "node_modules/fast-levenshtein": {- "version": "2.0.6",- "resolved": "https://registry.npmjs.org/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz",- "integrity": "sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==",- "dev": true,- "license": "MIT"- },- "node_modules/fb-watchman": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/fb-watchman/-/fb-watchman-2.0.2.tgz",- "integrity": "sha512-p5161BqbuCaSnB8jIbzQHOlpgsPmK5rJVDfDKO91Axs5NC1uu3HRQm6wt9cd9/+GtQQIO53JdGXXoyDpTAsgYA==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "bser": "2.1.1"- }- },- "node_modules/file-entry-cache": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/file-entry-cache/-/file-entry-cache-8.0.0.tgz",- "integrity": "sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "flat-cache": "^4.0.0"- },- "engines": {- "node": ">=16.0.0"- }- },- "node_modules/find-up": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/find-up/-/find-up-5.0.0.tgz",- "integrity": "sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==",- "dev": true,- "license": "MIT",- "dependencies": {- "locate-path": "^6.0.0",- "path-exists": "^4.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/flat-cache": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/flat-cache/-/flat-cache-4.0.1.tgz",- "integrity": "sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==",- "dev": true,- "license": "MIT",- "dependencies": {- "flatted": "^3.2.9",- "keyv": "^4.5.4"- },- "engines": {- "node": ">=16"- }- },- "node_modules/flatted": {- "version": "3.4.2",- "resolved": "https://registry.npmjs.org/flatted/-/flatted-3.4.2.tgz",- "integrity": "sha512-PjDse7RzhcPkIJwy5t7KPWQSZ9cAbzQXcafsetQoD7sOJRQlGikNbx7yZp2OotDnJyrDcbyRq3Ttb18iYOqkxA==",- "dev": true,- "license": "ISC"- },- "node_modules/foreground-child": {- "version": "3.3.1",- "resolved": "https://registry.npmjs.org/foreground-child/-/foreground-child-3.3.1.tgz",- "integrity": "sha512-gIXjKqtFuWEgzFRJA9WCQeSJLZDjgJUOMCMzxtvFq/37KojM1BFGufqsCy0r4qSQmYLsZYMeyRqzIWOMup03sw==",- "dev": true,- "license": "ISC",- "dependencies": {- "cross-spawn": "^7.0.6",- "signal-exit": "^4.0.1"- },- "engines": {- "node": ">=14"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/fs.realpath": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz",- "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==",- "dev": true,- "license": "ISC"- },- "node_modules/fsevents": {- "version": "2.3.3",- "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz",- "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "optional": true,- "os": [- "darwin"- ],- "engines": {- "node": "^8.16.0 || ^10.6.0 || >=11.0.0"- }- },- "node_modules/function-bind": {- "version": "1.1.2",- "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz",- "integrity": "sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA==",- "dev": true,- "license": "MIT",- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/gensync": {- "version": "1.0.0-beta.2",- "resolved": "https://registry.npmjs.org/gensync/-/gensync-1.0.0-beta.2.tgz",- "integrity": "sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6.9.0"- }- },- "node_modules/get-caller-file": {- "version": "2.0.5",- "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz",- "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==",- "dev": true,- "license": "ISC",- "engines": {- "node": "6.* || 8.* || >= 10.*"- }- },- "node_modules/get-package-type": {- "version": "0.1.0",- "resolved": "https://registry.npmjs.org/get-package-type/-/get-package-type-0.1.0.tgz",- "integrity": "sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8.0.0"- }- },- "node_modules/get-stream": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-6.0.1.tgz",- "integrity": "sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/glob": {- "version": "10.5.0",- "resolved": "https://registry.npmjs.org/glob/-/glob-10.5.0.tgz",- "integrity": "sha512-DfXN8DfhJ7NH3Oe7cFmu3NCu1wKbkReJ8TorzSAFbSKrlNaQSKfIzqYqVY8zlbs2NLBbWpRiU52GX2PbaBVNkg==",- "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]",- "dev": true,- "license": "ISC",- "dependencies": {- "foreground-child": "^3.1.0",- "jackspeak": "^3.1.2",- "minimatch": "^9.0.4",- "minipass": "^7.1.2",- "package-json-from-dist": "^1.0.0",- "path-scurry": "^1.11.1"- },- "bin": {- "glob": "dist/esm/bin.mjs"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/glob-parent": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-6.0.2.tgz",- "integrity": "sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A==",- "dev": true,- "license": "ISC",- "dependencies": {- "is-glob": "^4.0.3"- },- "engines": {- "node": ">=10.13.0"- }- },- "node_modules/glob/node_modules/balanced-match": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",- "dev": true,- "license": "MIT"- },- "node_modules/glob/node_modules/brace-expansion": {- "version": "2.0.3",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-2.0.3.tgz",- "integrity": "sha512-MCV/fYJEbqx68aE58kv2cA/kiky1G8vux3OR6/jbS+jIMe/6fJWa0DTzJU7dqijOWYwHi1t29FlfYI9uytqlpA==",- "dev": true,- "license": "MIT",- "dependencies": {- "balanced-match": "^1.0.0"- }- },- "node_modules/glob/node_modules/minimatch": {- "version": "9.0.9",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-9.0.9.tgz",- "integrity": "sha512-OBwBN9AL4dqmETlpS2zasx+vTeWclWzkblfZk7KTA5j3jeOONz/tRCnZomUyvNg83wL5Zv9Ss6HMJXAgL8R2Yg==",- "dev": true,- "license": "ISC",- "dependencies": {- "brace-expansion": "^2.0.2"- },- "engines": {- "node": ">=16 || 14 >=14.17"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/globals": {- "version": "17.5.0",- "resolved": "https://registry.npmjs.org/globals/-/globals-17.5.0.tgz",- "integrity": "sha512-qoV+HK2yFl/366t2/Cb3+xxPUo5BuMynomoDmiaZBIdbs+0pYbjfZU+twLhGKp4uCZ/+NbtpVepH5bGCxRyy2g==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/graceful-fs": {- "version": "4.2.11",- "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz",- "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==",- "dev": true,- "license": "ISC"- },- "node_modules/handlebars": {- "version": "4.7.9",- "resolved": "https://registry.npmjs.org/handlebars/-/handlebars-4.7.9.tgz",- "integrity": "sha512-4E71E0rpOaQuJR2A3xDZ+GM1HyWYv1clR58tC8emQNeQe3RH7MAzSbat+V0wG78LQBo6m6bzSG/L4pBuCsgnUQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "minimist": "^1.2.5",- "neo-async": "^2.6.2",- "source-map": "^0.6.1",- "wordwrap": "^1.0.0"- },- "bin": {- "handlebars": "bin/handlebars"- },- "engines": {- "node": ">=0.4.7"- },- "optionalDependencies": {- "uglify-js": "^3.1.4"- }- },- "node_modules/has-flag": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz",- "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/hasown": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/hasown/-/hasown-2.0.2.tgz",- "integrity": "sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "function-bind": "^1.1.2"- },- "engines": {- "node": ">= 0.4"- }- },- "node_modules/html-escaper": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/html-escaper/-/html-escaper-2.0.2.tgz",- "integrity": "sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==",- "dev": true,- "license": "MIT"- },- "node_modules/human-signals": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",- "integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",- "dev": true,- "license": "Apache-2.0",- "engines": {- "node": ">=10.17.0"- }- },- "node_modules/ignore": {- "version": "7.0.5",- "resolved": "https://registry.npmjs.org/ignore/-/ignore-7.0.5.tgz",- "integrity": "sha512-Hs59xBNfUIunMFgWAbGX5cq6893IbWg4KnrjbYwX3tx0ztorVgTDA6B2sxf8ejHJ4wz8BqGUMYlnzNBer5NvGg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 4"- }- },- "node_modules/import-local": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.2.0.tgz",- "integrity": "sha512-2SPlun1JUPWoM6t3F0dw0FkCF/jWY8kttcY4f599GLTSjh2OCuuhdTkJQsEcZzBqbXZGKMK2OqW1oZsjtf/gQA==",- "dev": true,- "license": "MIT",- "dependencies": {- "pkg-dir": "^4.2.0",- "resolve-cwd": "^3.0.0"- },- "bin": {- "import-local-fixture": "fixtures/cli.js"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/imurmurhash": {- "version": "0.1.4",- "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz",- "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.8.19"- }- },- "node_modules/inflight": {- "version": "1.0.6",- "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz",- "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==",- "deprecated": "This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.",- "dev": true,- "license": "ISC",- "dependencies": {- "once": "^1.3.0",- "wrappy": "1"- }- },- "node_modules/inherits": {- "version": "2.0.4",- "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",- "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==",- "dev": true,- "license": "ISC"- },- "node_modules/is-arrayish": {- "version": "0.2.1",- "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz",- "integrity": "sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==",- "dev": true,- "license": "MIT"- },- "node_modules/is-core-module": {- "version": "2.16.1",- "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.16.1.tgz",- "integrity": "sha512-UfoeMA6fIJ8wTYFEUjelnaGI67v6+N7qXJEvQuIGa99l4xsCruSYOVSQ0uPANn4dAzm8lkYPaKLrrijLq7x23w==",- "dev": true,- "license": "MIT",- "dependencies": {- "hasown": "^2.0.2"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/is-extglob": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",- "integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/is-fullwidth-code-point": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz",- "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/is-generator-fn": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/is-generator-fn/-/is-generator-fn-2.1.0.tgz",- "integrity": "sha512-cTIB4yPYL/Grw0EaSzASzg6bBy9gqCofvWN8okThAYIxKJZC+udlRAmGbM0XLeniEJSs8uEgHPGuHSe1XsOLSQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/is-glob": {- "version": "4.0.3",- "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",- "integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-extglob": "^2.1.1"- },- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/is-stream": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",- "integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/isexe": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz",- "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==",- "dev": true,- "license": "ISC"- },- "node_modules/istanbul-lib-coverage": {- "version": "3.2.2",- "resolved": "https://registry.npmjs.org/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz",- "integrity": "sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg==",- "dev": true,- "license": "BSD-3-Clause",- "engines": {- "node": ">=8"- }- },- "node_modules/istanbul-lib-instrument": {- "version": "6.0.3",- "resolved": "https://registry.npmjs.org/istanbul-lib-instrument/-/istanbul-lib-instrument-6.0.3.tgz",- "integrity": "sha512-Vtgk7L/R2JHyyGW07spoFlB8/lpjiOLTjMdms6AFMraYt3BaJauod/NGrfnVG/y4Ix1JEuMRPDPEj2ua+zz1/Q==",- "dev": true,- "license": "BSD-3-Clause",- "dependencies": {- "@babel/core": "^7.23.9",- "@babel/parser": "^7.23.9",- "@istanbuljs/schema": "^0.1.3",- "istanbul-lib-coverage": "^3.2.0",- "semver": "^7.5.4"- },- "engines": {- "node": ">=10"- }- },- "node_modules/istanbul-lib-instrument/node_modules/semver": {- "version": "7.7.4",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",- "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "node_modules/istanbul-lib-report": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz",- "integrity": "sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw==",- "dev": true,- "license": "BSD-3-Clause",- "dependencies": {- "istanbul-lib-coverage": "^3.0.0",- "make-dir": "^4.0.0",- "supports-color": "^7.1.0"- },- "engines": {- "node": ">=10"- }- },- "node_modules/istanbul-lib-source-maps": {- "version": "5.0.6",- "resolved": "https://registry.npmjs.org/istanbul-lib-source-maps/-/istanbul-lib-source-maps-5.0.6.tgz",- "integrity": "sha512-yg2d+Em4KizZC5niWhQaIomgf5WlL4vOOjZ5xGCmF8SnPE/mDWWXgvRExdcpCgh9lLRRa1/fSYp2ymmbJ1pI+A==",- "dev": true,- "license": "BSD-3-Clause",- "dependencies": {- "@jridgewell/trace-mapping": "^0.3.23",- "debug": "^4.1.1",- "istanbul-lib-coverage": "^3.0.0"- },- "engines": {- "node": ">=10"- }- },- "node_modules/istanbul-reports": {- "version": "3.2.0",- "resolved": "https://registry.npmjs.org/istanbul-reports/-/istanbul-reports-3.2.0.tgz",- "integrity": "sha512-HGYWWS/ehqTV3xN10i23tkPkpH46MLCIMFNCaaKNavAXTF1RkqxawEPtnjnGZ6XKSInBKkiOA5BKS+aZiY3AvA==",- "dev": true,- "license": "BSD-3-Clause",- "dependencies": {- "html-escaper": "^2.0.0",- "istanbul-lib-report": "^3.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/jackspeak": {- "version": "3.4.3",- "resolved": "https://registry.npmjs.org/jackspeak/-/jackspeak-3.4.3.tgz",- "integrity": "sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw==",- "dev": true,- "license": "BlueOak-1.0.0",- "dependencies": {- "@isaacs/cliui": "^8.0.2"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- },- "optionalDependencies": {- "@pkgjs/parseargs": "^0.11.0"- }- },- "node_modules/jest": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest/-/jest-30.3.0.tgz",- "integrity": "sha512-AkXIIFcaazymvey2i/+F94XRnM6TsVLZDhBMLsd1Sf/W0wzsvvpjeyUrCZD6HGG4SDYPgDJDBKeiJTBb10WzMg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/core": "30.3.0",- "@jest/types": "30.3.0",- "import-local": "^3.2.0",- "jest-cli": "30.3.0"- },- "bin": {- "jest": "bin/jest.js"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- },- "peerDependencies": {- "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"- },- "peerDependenciesMeta": {- "node-notifier": {- "optional": true- }- }- },- "node_modules/jest-changed-files": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-changed-files/-/jest-changed-files-30.3.0.tgz",- "integrity": "sha512-B/7Cny6cV5At6M25EWDgf9S617lHivamL8vl6KEpJqkStauzcG4e+WPfDgMMF+H4FVH4A2PLRyvgDJan4441QA==",- "dev": true,- "license": "MIT",- "dependencies": {- "execa": "^5.1.1",- "jest-util": "30.3.0",- "p-limit": "^3.1.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-circus": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-circus/-/jest-circus-30.3.0.tgz",- "integrity": "sha512-PyXq5szeSfR/4f1lYqCmmQjh0vqDkURUYi9N6whnHjlRz4IUQfMcXkGLeEoiJtxtyPqgUaUUfyQlApXWBSN1RA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/environment": "30.3.0",- "@jest/expect": "30.3.0",- "@jest/test-result": "30.3.0",- "@jest/types": "30.3.0",- "@types/node": "*",- "chalk": "^4.1.2",- "co": "^4.6.0",- "dedent": "^1.6.0",- "is-generator-fn": "^2.1.0",- "jest-each": "30.3.0",- "jest-matcher-utils": "30.3.0",- "jest-message-util": "30.3.0",- "jest-runtime": "30.3.0",- "jest-snapshot": "30.3.0",- "jest-util": "30.3.0",- "p-limit": "^3.1.0",- "pretty-format": "30.3.0",- "pure-rand": "^7.0.0",- "slash": "^3.0.0",- "stack-utils": "^2.0.6"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-cli": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-cli/-/jest-cli-30.3.0.tgz",- "integrity": "sha512-l6Tqx+j1fDXJEW5bqYykDQQ7mQg+9mhWXtnj+tQZrTWYHyHoi6Be8HPumDSA+UiX2/2buEgjA58iJzdj146uCw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/core": "30.3.0",- "@jest/test-result": "30.3.0",- "@jest/types": "30.3.0",- "chalk": "^4.1.2",- "exit-x": "^0.2.2",- "import-local": "^3.2.0",- "jest-config": "30.3.0",- "jest-util": "30.3.0",- "jest-validate": "30.3.0",- "yargs": "^17.7.2"- },- "bin": {- "jest": "bin/jest.js"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- },- "peerDependencies": {- "node-notifier": "^8.0.1 || ^9.0.0 || ^10.0.0"- },- "peerDependenciesMeta": {- "node-notifier": {- "optional": true- }- }- },- "node_modules/jest-config": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-config/-/jest-config-30.3.0.tgz",- "integrity": "sha512-WPMAkMAtNDY9P/oKObtsRG/6KTrhtgPJoBTmk20uDn4Uy6/3EJnnaZJre/FMT1KVRx8cve1r7/FlMIOfRVWL4w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/core": "^7.27.4",- "@jest/get-type": "30.1.0",- "@jest/pattern": "30.0.1",- "@jest/test-sequencer": "30.3.0",- "@jest/types": "30.3.0",- "babel-jest": "30.3.0",- "chalk": "^4.1.2",- "ci-info": "^4.2.0",- "deepmerge": "^4.3.1",- "glob": "^10.5.0",- "graceful-fs": "^4.2.11",- "jest-circus": "30.3.0",- "jest-docblock": "30.2.0",- "jest-environment-node": "30.3.0",- "jest-regex-util": "30.0.1",- "jest-resolve": "30.3.0",- "jest-runner": "30.3.0",- "jest-util": "30.3.0",- "jest-validate": "30.3.0",- "parse-json": "^5.2.0",- "pretty-format": "30.3.0",- "slash": "^3.0.0",- "strip-json-comments": "^3.1.1"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- },- "peerDependencies": {- "@types/node": "*",- "esbuild-register": ">=3.4.0",- "ts-node": ">=9.0.0"- },- "peerDependenciesMeta": {- "@types/node": {- "optional": true- },- "esbuild-register": {- "optional": true- },- "ts-node": {- "optional": true- }- }- },- "node_modules/jest-diff": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-diff/-/jest-diff-30.3.0.tgz",- "integrity": "sha512-n3q4PDQjS4LrKxfWB3Z5KNk1XjXtZTBwQp71OP0Jo03Z6V60x++K5L8k6ZrW8MY8pOFylZvHM0zsjS1RqlHJZQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/diff-sequences": "30.3.0",- "@jest/get-type": "30.1.0",- "chalk": "^4.1.2",- "pretty-format": "30.3.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-docblock": {- "version": "30.2.0",- "resolved": "https://registry.npmjs.org/jest-docblock/-/jest-docblock-30.2.0.tgz",- "integrity": "sha512-tR/FFgZKS1CXluOQzZvNH3+0z9jXr3ldGSD8bhyuxvlVUwbeLOGynkunvlTMxchC5urrKndYiwCFC0DLVjpOCA==",- "dev": true,- "license": "MIT",- "dependencies": {- "detect-newline": "^3.1.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-each": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-each/-/jest-each-30.3.0.tgz",- "integrity": "sha512-V8eMndg/aZ+3LnCJgSm13IxS5XSBM22QSZc9BtPK8Dek6pm+hfUNfwBdvsB3d342bo1q7wnSkC38zjX259qZNA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/get-type": "30.1.0",- "@jest/types": "30.3.0",- "chalk": "^4.1.2",- "jest-util": "30.3.0",- "pretty-format": "30.3.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-environment-node": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-environment-node/-/jest-environment-node-30.3.0.tgz",- "integrity": "sha512-4i6HItw/JSiJVsC5q0hnKIe/hbYfZLVG9YJ/0pU9Hz2n/9qZe3Rhn5s5CUZA5ORZlcdT/vmAXRMyONXJwPrmYQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/environment": "30.3.0",- "@jest/fake-timers": "30.3.0",- "@jest/types": "30.3.0",- "@types/node": "*",- "jest-mock": "30.3.0",- "jest-util": "30.3.0",- "jest-validate": "30.3.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-haste-map": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-haste-map/-/jest-haste-map-30.3.0.tgz",- "integrity": "sha512-mMi2oqG4KRU0R9QEtscl87JzMXfUhbKaFqOxmjb2CKcbHcUGFrJCBWHmnTiUqi6JcnzoBlO4rWfpdl2k/RfLCA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/types": "30.3.0",- "@types/node": "*",- "anymatch": "^3.1.3",- "fb-watchman": "^2.0.2",- "graceful-fs": "^4.2.11",- "jest-regex-util": "30.0.1",- "jest-util": "30.3.0",- "jest-worker": "30.3.0",- "picomatch": "^4.0.3",- "walker": "^1.0.8"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- },- "optionalDependencies": {- "fsevents": "^2.3.3"- }- },- "node_modules/jest-haste-map/node_modules/picomatch": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",- "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/jonschlinkert"- }- },- "node_modules/jest-leak-detector": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-leak-detector/-/jest-leak-detector-30.3.0.tgz",- "integrity": "sha512-cuKmUUGIjfXZAiGJ7TbEMx0bcqNdPPI6P1V+7aF+m/FUJqFDxkFR4JqkTu8ZOiU5AaX/x0hZ20KaaIPXQzbMGQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/get-type": "30.1.0",- "pretty-format": "30.3.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-matcher-utils": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-matcher-utils/-/jest-matcher-utils-30.3.0.tgz",- "integrity": "sha512-HEtc9uFQgaUHkC7nLSlQL3Tph4Pjxt/yiPvkIrrDCt9jhoLIgxaubo1G+CFOnmHYMxHwwdaSN7mkIFs6ZK8OhA==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/get-type": "30.1.0",- "chalk": "^4.1.2",- "jest-diff": "30.3.0",- "pretty-format": "30.3.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-message-util": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-message-util/-/jest-message-util-30.3.0.tgz",- "integrity": "sha512-Z/j4Bo+4ySJ+JPJN3b2Qbl9hDq3VrXmnjjGEWD/x0BCXeOXPTV1iZYYzl2X8c1MaCOL+ewMyNBcm88sboE6YWw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.27.1",- "@jest/types": "30.3.0",- "@types/stack-utils": "^2.0.3",- "chalk": "^4.1.2",- "graceful-fs": "^4.2.11",- "picomatch": "^4.0.3",- "pretty-format": "30.3.0",- "slash": "^3.0.0",- "stack-utils": "^2.0.6"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-message-util/node_modules/picomatch": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",- "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/jonschlinkert"- }- },- "node_modules/jest-mock": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-mock/-/jest-mock-30.3.0.tgz",- "integrity": "sha512-OTzICK8CpE+t4ndhKrwlIdbM6Pn8j00lvmSmq5ejiO+KxukbLjgOflKWMn3KE34EZdQm5RqTuKj+5RIEniYhog==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/types": "30.3.0",- "@types/node": "*",- "jest-util": "30.3.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-pnp-resolver": {- "version": "1.2.3",- "resolved": "https://registry.npmjs.org/jest-pnp-resolver/-/jest-pnp-resolver-1.2.3.tgz",- "integrity": "sha512-+3NpwQEnRoIBtx4fyhblQDPgJI0H1IEIkX7ShLUjPGA7TtUTvI1oiKi3SR4oBR0hQhQR80l4WAe5RrXBwWMA8w==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- },- "peerDependencies": {- "jest-resolve": "*"- },- "peerDependenciesMeta": {- "jest-resolve": {- "optional": true- }- }- },- "node_modules/jest-regex-util": {- "version": "30.0.1",- "resolved": "https://registry.npmjs.org/jest-regex-util/-/jest-regex-util-30.0.1.tgz",- "integrity": "sha512-jHEQgBXAgc+Gh4g0p3bCevgRCVRkB4VB70zhoAE48gxeSr1hfUOsM/C2WoJgVL7Eyg//hudYENbm3Ne+/dRVVA==",- "dev": true,- "license": "MIT",- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-resolve": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-resolve/-/jest-resolve-30.3.0.tgz",- "integrity": "sha512-NRtTAHQlpd15F9rUR36jqwelbrDV/dY4vzNte3S2kxCKUJRYNd5/6nTSbYiak1VX5g8IoFF23Uj5TURkUW8O5g==",- "dev": true,- "license": "MIT",- "dependencies": {- "chalk": "^4.1.2",- "graceful-fs": "^4.2.11",- "jest-haste-map": "30.3.0",- "jest-pnp-resolver": "^1.2.3",- "jest-util": "30.3.0",- "jest-validate": "30.3.0",- "slash": "^3.0.0",- "unrs-resolver": "^1.7.11"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-resolve-dependencies": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-resolve-dependencies/-/jest-resolve-dependencies-30.3.0.tgz",- "integrity": "sha512-9ev8s3YN6Hsyz9LV75XUwkCVFlwPbaFn6Wp75qnI0wzAINYWY8Fb3+6y59Rwd3QaS3kKXffHXsZMziMavfz/nw==",- "dev": true,- "license": "MIT",- "dependencies": {- "jest-regex-util": "30.0.1",- "jest-snapshot": "30.3.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-runner": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-runner/-/jest-runner-30.3.0.tgz",- "integrity": "sha512-gDv6C9LGKWDPLia9TSzZwf4h3kMQCqyTpq+95PODnTRDO0g9os48XIYYkS6D236vjpBir2fF63YmJFtqkS5Duw==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/console": "30.3.0",- "@jest/environment": "30.3.0",- "@jest/test-result": "30.3.0",- "@jest/transform": "30.3.0",- "@jest/types": "30.3.0",- "@types/node": "*",- "chalk": "^4.1.2",- "emittery": "^0.13.1",- "exit-x": "^0.2.2",- "graceful-fs": "^4.2.11",- "jest-docblock": "30.2.0",- "jest-environment-node": "30.3.0",- "jest-haste-map": "30.3.0",- "jest-leak-detector": "30.3.0",- "jest-message-util": "30.3.0",- "jest-resolve": "30.3.0",- "jest-runtime": "30.3.0",- "jest-util": "30.3.0",- "jest-watcher": "30.3.0",- "jest-worker": "30.3.0",- "p-limit": "^3.1.0",- "source-map-support": "0.5.13"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-runtime": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-runtime/-/jest-runtime-30.3.0.tgz",- "integrity": "sha512-CgC+hIBJbuh78HEffkhNKcbXAytQViplcl8xupqeIWyKQF50kCQA8J7GeJCkjisC6hpnC9Muf8jV5RdtdFbGng==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/environment": "30.3.0",- "@jest/fake-timers": "30.3.0",- "@jest/globals": "30.3.0",- "@jest/source-map": "30.0.1",- "@jest/test-result": "30.3.0",- "@jest/transform": "30.3.0",- "@jest/types": "30.3.0",- "@types/node": "*",- "chalk": "^4.1.2",- "cjs-module-lexer": "^2.1.0",- "collect-v8-coverage": "^1.0.2",- "glob": "^10.5.0",- "graceful-fs": "^4.2.11",- "jest-haste-map": "30.3.0",- "jest-message-util": "30.3.0",- "jest-mock": "30.3.0",- "jest-regex-util": "30.0.1",- "jest-resolve": "30.3.0",- "jest-snapshot": "30.3.0",- "jest-util": "30.3.0",- "slash": "^3.0.0",- "strip-bom": "^4.0.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-snapshot": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-snapshot/-/jest-snapshot-30.3.0.tgz",- "integrity": "sha512-f14c7atpb4O2DeNhwcvS810Y63wEn8O1HqK/luJ4F6M4NjvxmAKQwBUWjbExUtMxWJQ0wVgmCKymeJK6NZMnfQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/core": "^7.27.4",- "@babel/generator": "^7.27.5",- "@babel/plugin-syntax-jsx": "^7.27.1",- "@babel/plugin-syntax-typescript": "^7.27.1",- "@babel/types": "^7.27.3",- "@jest/expect-utils": "30.3.0",- "@jest/get-type": "30.1.0",- "@jest/snapshot-utils": "30.3.0",- "@jest/transform": "30.3.0",- "@jest/types": "30.3.0",- "babel-preset-current-node-syntax": "^1.2.0",- "chalk": "^4.1.2",- "expect": "30.3.0",- "graceful-fs": "^4.2.11",- "jest-diff": "30.3.0",- "jest-matcher-utils": "30.3.0",- "jest-message-util": "30.3.0",- "jest-util": "30.3.0",- "pretty-format": "30.3.0",- "semver": "^7.7.2",- "synckit": "^0.11.8"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-snapshot/node_modules/semver": {- "version": "7.7.4",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",- "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "node_modules/jest-util": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-util/-/jest-util-30.3.0.tgz",- "integrity": "sha512-/jZDa00a3Sz7rdyu55NLrQCIrbyIkbBxareejQI315f/i8HjYN+ZWsDLLpoQSiUIEIyZF/R8fDg3BmB8AtHttg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/types": "30.3.0",- "@types/node": "*",- "chalk": "^4.1.2",- "ci-info": "^4.2.0",- "graceful-fs": "^4.2.11",- "picomatch": "^4.0.3"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-util/node_modules/picomatch": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",- "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/jonschlinkert"- }- },- "node_modules/jest-validate": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-validate/-/jest-validate-30.3.0.tgz",- "integrity": "sha512-I/xzC8h5G+SHCb2P2gWkJYrNiTbeL47KvKeW5EzplkyxzBRBw1ssSHlI/jXec0ukH2q7x2zAWQm7015iusg62Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/get-type": "30.1.0",- "@jest/types": "30.3.0",- "camelcase": "^6.3.0",- "chalk": "^4.1.2",- "leven": "^3.1.0",- "pretty-format": "30.3.0"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-validate/node_modules/camelcase": {- "version": "6.3.0",- "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz",- "integrity": "sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/jest-watcher": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-watcher/-/jest-watcher-30.3.0.tgz",- "integrity": "sha512-PJ1d9ThtTR8aMiBWUdcownq9mDdLXsQzJayTk4kmaBRHKvwNQn+ANveuhEBUyNI2hR1TVhvQ8D5kHubbzBHR/w==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/test-result": "30.3.0",- "@jest/types": "30.3.0",- "@types/node": "*",- "ansi-escapes": "^4.3.2",- "chalk": "^4.1.2",- "emittery": "^0.13.1",- "jest-util": "30.3.0",- "string-length": "^4.0.2"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-worker": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/jest-worker/-/jest-worker-30.3.0.tgz",- "integrity": "sha512-DrCKkaQwHexjRUFTmPzs7sHQe0TSj9nvDALKGdwmK5mW9v7j90BudWirKAJHt3QQ9Dhrg1F7DogPzhChppkJpQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@types/node": "*",- "@ungap/structured-clone": "^1.3.0",- "jest-util": "30.3.0",- "merge-stream": "^2.0.0",- "supports-color": "^8.1.1"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/jest-worker/node_modules/supports-color": {- "version": "8.1.1",- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz",- "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "has-flag": "^4.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/supports-color?sponsor=1"- }- },- "node_modules/js-tokens": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",- "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==",- "dev": true,- "license": "MIT"- },- "node_modules/jsesc": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/jsesc/-/jsesc-3.1.0.tgz",- "integrity": "sha512-/sM3dO2FOzXjKQhJuo0Q173wf2KOo8t4I8vHy6lF9poUp7bKT0/NHE8fPX23PwfhnykfqnC2xRxOnVw5XuGIaA==",- "dev": true,- "license": "MIT",- "bin": {- "jsesc": "bin/jsesc"- },- "engines": {- "node": ">=6"- }- },- "node_modules/json-buffer": {- "version": "3.0.1",- "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz",- "integrity": "sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==",- "dev": true,- "license": "MIT"- },- "node_modules/json-parse-even-better-errors": {- "version": "2.3.1",- "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz",- "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==",- "dev": true,- "license": "MIT"- },- "node_modules/json-schema-traverse": {- "version": "0.4.1",- "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz",- "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==",- "dev": true,- "license": "MIT"- },- "node_modules/json-stable-stringify-without-jsonify": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz",- "integrity": "sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==",- "dev": true,- "license": "MIT"- },- "node_modules/json5": {- "version": "2.2.3",- "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.3.tgz",- "integrity": "sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg==",- "dev": true,- "license": "MIT",- "bin": {- "json5": "lib/cli.js"- },- "engines": {- "node": ">=6"- }- },- "node_modules/keyv": {- "version": "4.5.4",- "resolved": "https://registry.npmjs.org/keyv/-/keyv-4.5.4.tgz",- "integrity": "sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw==",- "dev": true,- "license": "MIT",- "dependencies": {- "json-buffer": "3.0.1"- }- },- "node_modules/leven": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/leven/-/leven-3.1.0.tgz",- "integrity": "sha512-qsda+H8jTaUaN/x5vzW2rzc+8Rw4TAQ/4KjB46IwK5VH+IlVeeeje/EoZRpiXvIqjFgK84QffqPztGI3VBLG1A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/levn": {- "version": "0.4.1",- "resolved": "https://registry.npmjs.org/levn/-/levn-0.4.1.tgz",- "integrity": "sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "prelude-ls": "^1.2.1",- "type-check": "~0.4.0"- },- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/lines-and-columns": {- "version": "1.2.4",- "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.2.4.tgz",- "integrity": "sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg==",- "dev": true,- "license": "MIT"- },- "node_modules/locate-path": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",- "integrity": "sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==",- "dev": true,- "license": "MIT",- "dependencies": {- "p-locate": "^5.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/lodash.debounce": {- "version": "4.0.8",- "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",- "integrity": "sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow==",- "dev": true,- "license": "MIT"- },- "node_modules/lodash.memoize": {- "version": "4.1.2",- "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz",- "integrity": "sha512-t7j+NzmgnQzTAYXcsHYLgimltOV1MXHtlOWf6GjL9Kj8GK5FInw5JotxvbOs+IvV1/Dzo04/fCGfLVs7aXb4Ag==",- "dev": true,- "license": "MIT"- },- "node_modules/lru-cache": {- "version": "5.1.1",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-5.1.1.tgz",- "integrity": "sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w==",- "dev": true,- "license": "ISC",- "dependencies": {- "yallist": "^3.0.2"- }- },- "node_modules/make-dir": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-4.0.0.tgz",- "integrity": "sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==",- "dev": true,- "license": "MIT",- "dependencies": {- "semver": "^7.5.3"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/make-dir/node_modules/semver": {- "version": "7.7.4",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",- "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "node_modules/make-error": {- "version": "1.3.6",- "resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",- "integrity": "sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==",- "dev": true,- "license": "ISC"- },- "node_modules/makeerror": {- "version": "1.0.12",- "resolved": "https://registry.npmjs.org/makeerror/-/makeerror-1.0.12.tgz",- "integrity": "sha512-JmqCvUhmt43madlpFzG4BQzG2Z3m6tvQDNKdClZnO3VbIudJYmxsT0FNJMeiB2+JTSlTQTSbU8QdesVmwJcmLg==",- "dev": true,- "license": "BSD-3-Clause",- "dependencies": {- "tmpl": "1.0.5"- }- },- "node_modules/merge-stream": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/merge-stream/-/merge-stream-2.0.0.tgz",- "integrity": "sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w==",- "dev": true,- "license": "MIT"- },- "node_modules/mimic-fn": {- "version": "2.1.0",- "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",- "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/minimatch": {- "version": "10.2.4",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.4.tgz",- "integrity": "sha512-oRjTw/97aTBN0RHbYCdtF1MQfvusSIBQM0IZEgzl6426+8jSC0nF1a/GmnVLpfB9yyr6g6FTqWqiZVbxrtaCIg==",- "dev": true,- "license": "BlueOak-1.0.0",- "dependencies": {- "brace-expansion": "^5.0.2"- },- "engines": {- "node": "18 || 20 || >=22"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/minimist": {- "version": "1.2.8",- "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz",- "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==",- "dev": true,- "license": "MIT",- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/minipass": {- "version": "7.1.3",- "resolved": "https://registry.npmjs.org/minipass/-/minipass-7.1.3.tgz",- "integrity": "sha512-tEBHqDnIoM/1rXME1zgka9g6Q2lcoCkxHLuc7ODJ5BxbP5d4c2Z5cGgtXAku59200Cx7diuHTOYfSBD8n6mm8A==",- "dev": true,- "license": "BlueOak-1.0.0",- "engines": {- "node": ">=16 || 14 >=14.17"- }- },- "node_modules/ms": {- "version": "2.1.3",- "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",- "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==",- "dev": true,- "license": "MIT"- },- "node_modules/napi-postinstall": {- "version": "0.3.4",- "resolved": "https://registry.npmjs.org/napi-postinstall/-/napi-postinstall-0.3.4.tgz",- "integrity": "sha512-PHI5f1O0EP5xJ9gQmFGMS6IZcrVvTjpXjz7Na41gTE7eE2hK11lg04CECCYEEjdc17EV4DO+fkGEtt7TpTaTiQ==",- "dev": true,- "license": "MIT",- "bin": {- "napi-postinstall": "lib/cli.js"- },- "engines": {- "node": "^12.20.0 || ^14.18.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/napi-postinstall"- }- },- "node_modules/natural-compare": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/natural-compare/-/natural-compare-1.4.0.tgz",- "integrity": "sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==",- "dev": true,- "license": "MIT"- },- "node_modules/neo-async": {- "version": "2.6.2",- "resolved": "https://registry.npmjs.org/neo-async/-/neo-async-2.6.2.tgz",- "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==",- "dev": true,- "license": "MIT"- },- "node_modules/node-int64": {- "version": "0.4.0",- "resolved": "https://registry.npmjs.org/node-int64/-/node-int64-0.4.0.tgz",- "integrity": "sha512-O5lz91xSOeoXP6DulyHfllpq+Eg00MWitZIbtPfoSEvqIHdl5gfcY6hYzDWnj0qD5tz52PI08u9qUvSVeUBeHw==",- "dev": true,- "license": "MIT"- },- "node_modules/node-releases": {- "version": "2.0.27",- "resolved": "https://registry.npmjs.org/node-releases/-/node-releases-2.0.27.tgz",- "integrity": "sha512-nmh3lCkYZ3grZvqcCH+fjmQ7X+H0OeZgP40OierEaAptX4XofMh5kwNbWh7lBduUzCcV/8kZ+NDLCwm2iorIlA==",- "dev": true,- "license": "MIT"- },- "node_modules/normalize-path": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",- "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/npm-run-path": {- "version": "4.0.1",- "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",- "integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",- "dev": true,- "license": "MIT",- "dependencies": {- "path-key": "^3.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/once": {- "version": "1.4.0",- "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",- "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==",- "dev": true,- "license": "ISC",- "dependencies": {- "wrappy": "1"- }- },- "node_modules/onetime": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",- "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",- "dev": true,- "license": "MIT",- "dependencies": {- "mimic-fn": "^2.1.0"- },- "engines": {- "node": ">=6"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/optionator": {- "version": "0.9.4",- "resolved": "https://registry.npmjs.org/optionator/-/optionator-0.9.4.tgz",- "integrity": "sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==",- "dev": true,- "license": "MIT",- "dependencies": {- "deep-is": "^0.1.3",- "fast-levenshtein": "^2.0.6",- "levn": "^0.4.1",- "prelude-ls": "^1.2.1",- "type-check": "^0.4.0",- "word-wrap": "^1.2.5"- },- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/p-limit": {- "version": "3.1.0",- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz",- "integrity": "sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "yocto-queue": "^0.1.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/p-locate": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-5.0.0.tgz",- "integrity": "sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==",- "dev": true,- "license": "MIT",- "dependencies": {- "p-limit": "^3.0.2"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/p-try": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz",- "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/package-json-from-dist": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/package-json-from-dist/-/package-json-from-dist-1.0.1.tgz",- "integrity": "sha512-UEZIS3/by4OC8vL3P2dTXRETpebLI2NiI5vIrjaD/5UtrkFX/tNbwjTSRAGC/+7CAo2pIcBaRgWmcBBHcsaCIw==",- "dev": true,- "license": "BlueOak-1.0.0"- },- "node_modules/parse-json": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz",- "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==",- "dev": true,- "license": "MIT",- "dependencies": {- "@babel/code-frame": "^7.0.0",- "error-ex": "^1.3.1",- "json-parse-even-better-errors": "^2.3.0",- "lines-and-columns": "^1.1.6"- },- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/path-exists": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz",- "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/path-is-absolute": {- "version": "1.0.1",- "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz",- "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/path-key": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/path-key/-/path-key-3.1.1.tgz",- "integrity": "sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/path-parse": {- "version": "1.0.7",- "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz",- "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==",- "dev": true,- "license": "MIT"- },- "node_modules/path-scurry": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/path-scurry/-/path-scurry-1.11.1.tgz",- "integrity": "sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA==",- "dev": true,- "license": "BlueOak-1.0.0",- "dependencies": {- "lru-cache": "^10.2.0",- "minipass": "^5.0.0 || ^6.0.2 || ^7.0.0"- },- "engines": {- "node": ">=16 || 14 >=14.18"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/path-scurry/node_modules/lru-cache": {- "version": "10.4.3",- "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-10.4.3.tgz",- "integrity": "sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ==",- "dev": true,- "license": "ISC"- },- "node_modules/picocolors": {- "version": "1.1.1",- "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz",- "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==",- "dev": true,- "license": "ISC"- },- "node_modules/picomatch": {- "version": "2.3.2",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz",- "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8.6"- },- "funding": {- "url": "https://github.com/sponsors/jonschlinkert"- }- },- "node_modules/pirates": {- "version": "4.0.7",- "resolved": "https://registry.npmjs.org/pirates/-/pirates-4.0.7.tgz",- "integrity": "sha512-TfySrs/5nm8fQJDcBDuUng3VOUKsd7S+zqvbOTiGXHfxX4wK31ard+hoNuvkicM/2YFzlpDgABOevKSsB4G/FA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 6"- }- },- "node_modules/pkg-dir": {- "version": "4.2.0",- "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz",- "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "find-up": "^4.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/pkg-dir/node_modules/find-up": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz",- "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==",- "dev": true,- "license": "MIT",- "dependencies": {- "locate-path": "^5.0.0",- "path-exists": "^4.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/pkg-dir/node_modules/locate-path": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz",- "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==",- "dev": true,- "license": "MIT",- "dependencies": {- "p-locate": "^4.1.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/pkg-dir/node_modules/p-limit": {- "version": "2.3.0",- "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz",- "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==",- "dev": true,- "license": "MIT",- "dependencies": {- "p-try": "^2.0.0"- },- "engines": {- "node": ">=6"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/pkg-dir/node_modules/p-locate": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz",- "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==",- "dev": true,- "license": "MIT",- "dependencies": {- "p-limit": "^2.2.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/prelude-ls": {- "version": "1.2.1",- "resolved": "https://registry.npmjs.org/prelude-ls/-/prelude-ls-1.2.1.tgz",- "integrity": "sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/prettier": {- "version": "3.8.2",- "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.8.2.tgz",- "integrity": "sha512-8c3mgTe0ASwWAJK+78dpviD+A8EqhndQPUBpNUIPt6+xWlIigCwfN01lWr9MAede4uqXGTEKeQWTvzb3vjia0Q==",- "dev": true,- "license": "MIT",- "bin": {- "prettier": "bin/prettier.cjs"- },- "engines": {- "node": ">=14"- },- "funding": {- "url": "https://github.com/prettier/prettier?sponsor=1"- }- },- "node_modules/pretty-format": {- "version": "30.3.0",- "resolved": "https://registry.npmjs.org/pretty-format/-/pretty-format-30.3.0.tgz",- "integrity": "sha512-oG4T3wCbfeuvljnyAzhBvpN45E8iOTXCU/TD3zXW80HA3dQ4ahdqMkWGiPWZvjpQwlbyHrPTWUAqUzGzv4l1JQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@jest/schemas": "30.0.5",- "ansi-styles": "^5.2.0",- "react-is": "^18.3.1"- },- "engines": {- "node": "^18.14.0 || ^20.0.0 || ^22.0.0 || >=24.0.0"- }- },- "node_modules/pretty-format/node_modules/ansi-styles": {- "version": "5.2.0",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz",- "integrity": "sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/punycode": {- "version": "2.3.1",- "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz",- "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/pure-rand": {- "version": "7.0.1",- "resolved": "https://registry.npmjs.org/pure-rand/-/pure-rand-7.0.1.tgz",- "integrity": "sha512-oTUZM/NAZS8p7ANR3SHh30kXB+zK2r2BPcEn/awJIbOvq82WoMN4p62AWWp3Hhw50G0xMsw1mhIBLqHw64EcNQ==",- "dev": true,- "funding": [- {- "type": "individual",- "url": "https://github.com/sponsors/dubzzz"- },- {- "type": "opencollective",- "url": "https://opencollective.com/fast-check"- }- ],- "license": "MIT"- },- "node_modules/react-is": {- "version": "18.3.1",- "resolved": "https://registry.npmjs.org/react-is/-/react-is-18.3.1.tgz",- "integrity": "sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg==",- "dev": true,- "license": "MIT"- },- "node_modules/regenerate": {- "version": "1.4.2",- "resolved": "https://registry.npmjs.org/regenerate/-/regenerate-1.4.2.tgz",- "integrity": "sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A==",- "dev": true,- "license": "MIT"- },- "node_modules/regenerate-unicode-properties": {- "version": "10.2.2",- "resolved": "https://registry.npmjs.org/regenerate-unicode-properties/-/regenerate-unicode-properties-10.2.2.tgz",- "integrity": "sha512-m03P+zhBeQd1RGnYxrGyDAPpWX/epKirLrp8e3qevZdVkKtnCrjjWczIbYc8+xd6vcTStVlqfycTx1KR4LOr0g==",- "dev": true,- "license": "MIT",- "dependencies": {- "regenerate": "^1.4.2"- },- "engines": {- "node": ">=4"- }- },- "node_modules/regexpu-core": {- "version": "6.4.0",- "resolved": "https://registry.npmjs.org/regexpu-core/-/regexpu-core-6.4.0.tgz",- "integrity": "sha512-0ghuzq67LI9bLXpOX/ISfve/Mq33a4aFRzoQYhnnok1JOFpmE/A2TBGkNVenOGEeSBCjIiWcc6MVOG5HEQv0sA==",- "dev": true,- "license": "MIT",- "dependencies": {- "regenerate": "^1.4.2",- "regenerate-unicode-properties": "^10.2.2",- "regjsgen": "^0.8.0",- "regjsparser": "^0.13.0",- "unicode-match-property-ecmascript": "^2.0.0",- "unicode-match-property-value-ecmascript": "^2.2.1"- },- "engines": {- "node": ">=4"- }- },- "node_modules/regjsgen": {- "version": "0.8.0",- "resolved": "https://registry.npmjs.org/regjsgen/-/regjsgen-0.8.0.tgz",- "integrity": "sha512-RvwtGe3d7LvWiDQXeQw8p5asZUmfU1G/l6WbUXeHta7Y2PEIvBTwH6E2EfmYUK8pxcxEdEmaomqyp0vZZ7C+3Q==",- "dev": true,- "license": "MIT"- },- "node_modules/regjsparser": {- "version": "0.13.0",- "resolved": "https://registry.npmjs.org/regjsparser/-/regjsparser-0.13.0.tgz",- "integrity": "sha512-NZQZdC5wOE/H3UT28fVGL+ikOZcEzfMGk/c3iN9UGxzWHMa1op7274oyiUVrAG4B2EuFhus8SvkaYnhvW92p9Q==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "jsesc": "~3.1.0"- },- "bin": {- "regjsparser": "bin/parser"- }- },- "node_modules/require-directory": {- "version": "2.1.1",- "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz",- "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/resolve": {- "version": "1.22.11",- "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.11.tgz",- "integrity": "sha512-RfqAvLnMl313r7c9oclB1HhUEAezcpLjz95wFH4LVuhk9JF/r22qmVP9AMmOU4vMX7Q8pN8jwNg/CSpdFnMjTQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "is-core-module": "^2.16.1",- "path-parse": "^1.0.7",- "supports-preserve-symlinks-flag": "^1.0.0"- },- "bin": {- "resolve": "bin/resolve"- },- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/resolve-cwd": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz",- "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==",- "dev": true,- "license": "MIT",- "dependencies": {- "resolve-from": "^5.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/resolve-from": {- "version": "5.0.0",- "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz",- "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/semver": {- "version": "6.3.1",- "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz",- "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- }- },- "node_modules/shebang-command": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/shebang-command/-/shebang-command-2.0.0.tgz",- "integrity": "sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA==",- "dev": true,- "license": "MIT",- "dependencies": {- "shebang-regex": "^3.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/shebang-regex": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/shebang-regex/-/shebang-regex-3.0.0.tgz",- "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/signal-exit": {- "version": "4.1.0",- "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-4.1.0.tgz",- "integrity": "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw==",- "dev": true,- "license": "ISC",- "engines": {- "node": ">=14"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/slash": {- "version": "3.0.0",- "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",- "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/source-map": {- "version": "0.6.1",- "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz",- "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==",- "dev": true,- "license": "BSD-3-Clause",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/source-map-support": {- "version": "0.5.13",- "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.13.tgz",- "integrity": "sha512-SHSKFHadjVA5oR4PPqhtAVdcBWwRYVd6g6cAXnIbRiIwc2EhPrTuKUBdSLvlEKyIP3GCf89fltvcZiP9MMFA1w==",- "dev": true,- "license": "MIT",- "dependencies": {- "buffer-from": "^1.0.0",- "source-map": "^0.6.0"- }- },- "node_modules/sprintf-js": {- "version": "1.0.3",- "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz",- "integrity": "sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g==",- "dev": true,- "license": "BSD-3-Clause"- },- "node_modules/stack-utils": {- "version": "2.0.6",- "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz",- "integrity": "sha512-XlkWvfIm6RmsWtNJx+uqtKLS8eqFbxUg0ZzLXqY0caEy9l7hruX8IpiDnjsLavoBgqCCR71TqWO8MaXYheJ3RQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "escape-string-regexp": "^2.0.0"- },- "engines": {- "node": ">=10"- }- },- "node_modules/stack-utils/node_modules/escape-string-regexp": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz",- "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/string-length": {- "version": "4.0.2",- "resolved": "https://registry.npmjs.org/string-length/-/string-length-4.0.2.tgz",- "integrity": "sha512-+l6rNN5fYHNhZZy41RXsYptCjA2Igmq4EG7kZAYFQI1E1VTXarr6ZPXBg6eq7Y6eK4FEhY6AJlyuFIb/v/S0VQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "char-regex": "^1.0.2",- "strip-ansi": "^6.0.0"- },- "engines": {- "node": ">=10"- }- },- "node_modules/string-length/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/string-length/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/string-width": {- "version": "5.1.2",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-5.1.2.tgz",- "integrity": "sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA==",- "dev": true,- "license": "MIT",- "dependencies": {- "eastasianwidth": "^0.2.0",- "emoji-regex": "^9.2.2",- "strip-ansi": "^7.0.1"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/string-width-cjs": {- "name": "string-width",- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "dev": true,- "license": "MIT",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/string-width-cjs/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/string-width-cjs/node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",- "dev": true,- "license": "MIT"- },- "node_modules/string-width-cjs/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/strip-ansi": {- "version": "7.2.0",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.2.0.tgz",- "integrity": "sha512-yDPMNjp4WyfYBkHnjIRLfca1i6KMyGCtsVgoKe/z1+6vukgaENdgGBZt+ZmKPc4gavvEZ5OgHfHdrazhgNyG7w==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^6.2.2"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/strip-ansi?sponsor=1"- }- },- "node_modules/strip-ansi-cjs": {- "name": "strip-ansi",- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/strip-ansi-cjs/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/strip-bom": {- "version": "4.0.0",- "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-4.0.0.tgz",- "integrity": "sha512-3xurFv5tEgii33Zi8Jtp55wEIILR9eh34FAW00PZf+JnSsTmV/ioewSgQl97JHvgjoRGwPShsWm+IdrxB35d0w==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/strip-final-newline": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",- "integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=6"- }- },- "node_modules/strip-json-comments": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-3.1.1.tgz",- "integrity": "sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/supports-color": {- "version": "7.2.0",- "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz",- "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==",- "dev": true,- "license": "MIT",- "dependencies": {- "has-flag": "^4.0.0"- },- "engines": {- "node": ">=8"- }- },- "node_modules/supports-preserve-symlinks-flag": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz",- "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">= 0.4"- },- "funding": {- "url": "https://github.com/sponsors/ljharb"- }- },- "node_modules/synckit": {- "version": "0.11.12",- "resolved": "https://registry.npmjs.org/synckit/-/synckit-0.11.12.tgz",- "integrity": "sha512-Bh7QjT8/SuKUIfObSXNHNSK6WHo6J1tHCqJsuaFDP7gP0fkzSfTxI8y85JrppZ0h8l0maIgc2tfuZQ6/t3GtnQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@pkgr/core": "^0.2.9"- },- "engines": {- "node": "^14.18.0 || >=16.0.0"- },- "funding": {- "url": "https://opencollective.com/synckit"- }- },- "node_modules/test-exclude": {- "version": "6.0.0",- "resolved": "https://registry.npmjs.org/test-exclude/-/test-exclude-6.0.0.tgz",- "integrity": "sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w==",- "dev": true,- "license": "ISC",- "dependencies": {- "@istanbuljs/schema": "^0.1.2",- "glob": "^7.1.4",- "minimatch": "^3.0.4"- },- "engines": {- "node": ">=8"- }- },- "node_modules/test-exclude/node_modules/balanced-match": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz",- "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==",- "dev": true,- "license": "MIT"- },- "node_modules/test-exclude/node_modules/brace-expansion": {- "version": "1.1.13",- "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.13.tgz",- "integrity": "sha512-9ZLprWS6EENmhEOpjCYW2c8VkmOvckIJZfkr7rBW6dObmfgJ/L1GpSYW5Hpo9lDz4D1+n0Ckz8rU7FwHDQiG/w==",- "dev": true,- "license": "MIT",- "dependencies": {- "balanced-match": "^1.0.0",- "concat-map": "0.0.1"- }- },- "node_modules/test-exclude/node_modules/glob": {- "version": "7.2.3",- "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz",- "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==",- "deprecated": "Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [email protected]",- "dev": true,- "license": "ISC",- "dependencies": {- "fs.realpath": "^1.0.0",- "inflight": "^1.0.4",- "inherits": "2",- "minimatch": "^3.1.1",- "once": "^1.3.0",- "path-is-absolute": "^1.0.0"- },- "engines": {- "node": "*"- },- "funding": {- "url": "https://github.com/sponsors/isaacs"- }- },- "node_modules/test-exclude/node_modules/minimatch": {- "version": "3.1.5",- "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.5.tgz",- "integrity": "sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==",- "dev": true,- "license": "ISC",- "dependencies": {- "brace-expansion": "^1.1.7"- },- "engines": {- "node": "*"- }- },- "node_modules/tinyglobby": {- "version": "0.2.15",- "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",- "integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "fdir": "^6.5.0",- "picomatch": "^4.0.3"- },- "engines": {- "node": ">=12.0.0"- },- "funding": {- "url": "https://github.com/sponsors/SuperchupuDev"- }- },- "node_modules/tinyglobby/node_modules/fdir": {- "version": "6.5.0",- "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz",- "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12.0.0"- },- "peerDependencies": {- "picomatch": "^3 || ^4"- },- "peerDependenciesMeta": {- "picomatch": {- "optional": true- }- }- },- "node_modules/tinyglobby/node_modules/picomatch": {- "version": "4.0.4",- "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz",- "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/sponsors/jonschlinkert"- }- },- "node_modules/tmpl": {- "version": "1.0.5",- "resolved": "https://registry.npmjs.org/tmpl/-/tmpl-1.0.5.tgz",- "integrity": "sha512-3f0uOEAQwIqGuWW2MVzYg8fV/QNnc/IpuJNG837rLuczAaLVHslWHZQj4IGiEl5Hs3kkbhwL9Ab7Hrsmuj+Smw==",- "dev": true,- "license": "BSD-3-Clause"- },- "node_modules/ts-api-utils": {- "version": "2.5.0",- "resolved": "https://registry.npmjs.org/ts-api-utils/-/ts-api-utils-2.5.0.tgz",- "integrity": "sha512-OJ/ibxhPlqrMM0UiNHJ/0CKQkoKF243/AEmplt3qpRgkW8VG7IfOS41h7V8TjITqdByHzrjcS/2si+y4lIh8NA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=18.12"- },- "peerDependencies": {- "typescript": ">=4.8.4"- }- },- "node_modules/ts-jest": {- "version": "29.4.9",- "resolved": "https://registry.npmjs.org/ts-jest/-/ts-jest-29.4.9.tgz",- "integrity": "sha512-LTb9496gYPMCqjeDLdPrKuXtncudeV1yRZnF4Wo5l3SFi0RYEnYRNgMrFIdg+FHvfzjCyQk1cLncWVqiSX+EvQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "bs-logger": "^0.2.6",- "fast-json-stable-stringify": "^2.1.0",- "handlebars": "^4.7.9",- "json5": "^2.2.3",- "lodash.memoize": "^4.1.2",- "make-error": "^1.3.6",- "semver": "^7.7.4",- "type-fest": "^4.41.0",- "yargs-parser": "^21.1.1"- },- "bin": {- "ts-jest": "cli.js"- },- "engines": {- "node": "^14.15.0 || ^16.10.0 || ^18.0.0 || >=20.0.0"- },- "peerDependencies": {- "@babel/core": ">=7.0.0-beta.0 <8",- "@jest/transform": "^29.0.0 || ^30.0.0",- "@jest/types": "^29.0.0 || ^30.0.0",- "babel-jest": "^29.0.0 || ^30.0.0",- "jest": "^29.0.0 || ^30.0.0",- "jest-util": "^29.0.0 || ^30.0.0",- "typescript": ">=4.3 <7"- },- "peerDependenciesMeta": {- "@babel/core": {- "optional": true- },- "@jest/transform": {- "optional": true- },- "@jest/types": {- "optional": true- },- "babel-jest": {- "optional": true- },- "esbuild": {- "optional": true- },- "jest-util": {- "optional": true- }- }- },- "node_modules/ts-jest/node_modules/semver": {- "version": "7.7.4",- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.4.tgz",- "integrity": "sha512-vFKC2IEtQnVhpT78h1Yp8wzwrf8CM+MzKMHGJZfBtzhZNycRFnXsHk6E5TxIkkMsgNS7mdX3AGB7x2QM2di4lA==",- "dev": true,- "license": "ISC",- "bin": {- "semver": "bin/semver.js"- },- "engines": {- "node": ">=10"- }- },- "node_modules/ts-jest/node_modules/type-fest": {- "version": "4.41.0",- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-4.41.0.tgz",- "integrity": "sha512-TeTSQ6H5YHvpqVwBRcnLDCBnDOHWYu7IvGbHT6N8AOymcr9PJGjc1GTtiWZTYg0NCgYwvnYWEkVChQAr9bjfwA==",- "dev": true,- "license": "(MIT OR CC0-1.0)",- "engines": {- "node": ">=16"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/tslib": {- "version": "2.8.1",- "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz",- "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==",- "dev": true,- "license": "0BSD",- "optional": true- },- "node_modules/type-check": {- "version": "0.4.0",- "resolved": "https://registry.npmjs.org/type-check/-/type-check-0.4.0.tgz",- "integrity": "sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew==",- "dev": true,- "license": "MIT",- "dependencies": {- "prelude-ls": "^1.2.1"- },- "engines": {- "node": ">= 0.8.0"- }- },- "node_modules/type-detect": {- "version": "4.0.8",- "resolved": "https://registry.npmjs.org/type-detect/-/type-detect-4.0.8.tgz",- "integrity": "sha512-0fr/mIH1dlO+x7TlcMy+bIDqKPsw/70tVyeHW787goQjhmqaZe10uwLujubK9q9Lg6Fiho1KUKDYz0Z7k7g5/g==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=4"- }- },- "node_modules/type-fest": {- "version": "0.21.3",- "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.21.3.tgz",- "integrity": "sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==",- "dev": true,- "license": "(MIT OR CC0-1.0)",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/typescript": {- "version": "6.0.2",- "resolved": "https://registry.npmjs.org/typescript/-/typescript-6.0.2.tgz",- "integrity": "sha512-bGdAIrZ0wiGDo5l8c++HWtbaNCWTS4UTv7RaTH/ThVIgjkveJt83m74bBHMJkuCbslY8ixgLBVZJIOiQlQTjfQ==",- "dev": true,- "license": "Apache-2.0",- "bin": {- "tsc": "bin/tsc",- "tsserver": "bin/tsserver"- },- "engines": {- "node": ">=14.17"- }- },- "node_modules/typescript-eslint": {- "version": "8.58.2",- "resolved": "https://registry.npmjs.org/typescript-eslint/-/typescript-eslint-8.58.2.tgz",- "integrity": "sha512-V8iSng9mRbdZjl54VJ9NKr6ZB+dW0J3TzRXRGcSbLIej9jV86ZRtlYeTKDR/QLxXykocJ5icNzbsl2+5TzIvcQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "@typescript-eslint/eslint-plugin": "8.58.2",- "@typescript-eslint/parser": "8.58.2",- "@typescript-eslint/typescript-estree": "8.58.2",- "@typescript-eslint/utils": "8.58.2"- },- "engines": {- "node": "^18.18.0 || ^20.9.0 || >=21.1.0"- },- "funding": {- "type": "opencollective",- "url": "https://opencollective.com/typescript-eslint"- },- "peerDependencies": {- "eslint": "^8.57.0 || ^9.0.0 || ^10.0.0",- "typescript": ">=4.8.4 <6.1.0"- }- },- "node_modules/uglify-js": {- "version": "3.19.3",- "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.19.3.tgz",- "integrity": "sha512-v3Xu+yuwBXisp6QYTcH4UbH+xYJXqnq2m/LtQVWKWzYc1iehYnLixoQDN9FH6/j9/oybfd6W9Ghwkl8+UMKTKQ==",- "dev": true,- "license": "BSD-2-Clause",- "optional": true,- "bin": {- "uglifyjs": "bin/uglifyjs"- },- "engines": {- "node": ">=0.8.0"- }- },- "node_modules/undici-types": {- "version": "7.19.2",- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.19.2.tgz",- "integrity": "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg==",- "dev": true,- "license": "MIT"- },- "node_modules/unicode-canonical-property-names-ecmascript": {- "version": "2.0.1",- "resolved": "https://registry.npmjs.org/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.1.tgz",- "integrity": "sha512-dA8WbNeb2a6oQzAQ55YlT5vQAWGV9WXOsi3SskE3bcCdM0P4SDd+24zS/OCacdRq5BkdsRj9q3Pg6YyQoxIGqg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=4"- }- },- "node_modules/unicode-match-property-ecmascript": {- "version": "2.0.0",- "resolved": "https://registry.npmjs.org/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz",- "integrity": "sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "unicode-canonical-property-names-ecmascript": "^2.0.0",- "unicode-property-aliases-ecmascript": "^2.0.0"- },- "engines": {- "node": ">=4"- }- },- "node_modules/unicode-match-property-value-ecmascript": {- "version": "2.2.1",- "resolved": "https://registry.npmjs.org/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.2.1.tgz",- "integrity": "sha512-JQ84qTuMg4nVkx8ga4A16a1epI9H6uTXAknqxkGF/aFfRLw1xC/Bp24HNLaZhHSkWd3+84t8iXnp1J0kYcZHhg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=4"- }- },- "node_modules/unicode-property-aliases-ecmascript": {- "version": "2.2.0",- "resolved": "https://registry.npmjs.org/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.2.0.tgz",- "integrity": "sha512-hpbDzxUY9BFwX+UeBnxv3Sh1q7HFxj48DTmXchNgRa46lO8uj3/1iEn3MiNUYTg1g9ctIqXCCERn8gYZhHC5lQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=4"- }- },- "node_modules/unrs-resolver": {- "version": "1.11.1",- "resolved": "https://registry.npmjs.org/unrs-resolver/-/unrs-resolver-1.11.1.tgz",- "integrity": "sha512-bSjt9pjaEBnNiGgc9rUiHGKv5l4/TGzDmYw3RhnkJGtLhbnnA/5qJj7x3dNDCRx/PJxu774LlH8lCOlB4hEfKg==",- "dev": true,- "hasInstallScript": true,- "license": "MIT",- "dependencies": {- "napi-postinstall": "^0.3.0"- },- "funding": {- "url": "https://opencollective.com/unrs-resolver"- },- "optionalDependencies": {- "@unrs/resolver-binding-android-arm-eabi": "1.11.1",- "@unrs/resolver-binding-android-arm64": "1.11.1",- "@unrs/resolver-binding-darwin-arm64": "1.11.1",- "@unrs/resolver-binding-darwin-x64": "1.11.1",- "@unrs/resolver-binding-freebsd-x64": "1.11.1",- "@unrs/resolver-binding-linux-arm-gnueabihf": "1.11.1",- "@unrs/resolver-binding-linux-arm-musleabihf": "1.11.1",- "@unrs/resolver-binding-linux-arm64-gnu": "1.11.1",- "@unrs/resolver-binding-linux-arm64-musl": "1.11.1",- "@unrs/resolver-binding-linux-ppc64-gnu": "1.11.1",- "@unrs/resolver-binding-linux-riscv64-gnu": "1.11.1",- "@unrs/resolver-binding-linux-riscv64-musl": "1.11.1",- "@unrs/resolver-binding-linux-s390x-gnu": "1.11.1",- "@unrs/resolver-binding-linux-x64-gnu": "1.11.1",- "@unrs/resolver-binding-linux-x64-musl": "1.11.1",- "@unrs/resolver-binding-wasm32-wasi": "1.11.1",- "@unrs/resolver-binding-win32-arm64-msvc": "1.11.1",- "@unrs/resolver-binding-win32-ia32-msvc": "1.11.1",- "@unrs/resolver-binding-win32-x64-msvc": "1.11.1"- }- },- "node_modules/update-browserslist-db": {- "version": "1.2.3",- "resolved": "https://registry.npmjs.org/update-browserslist-db/-/update-browserslist-db-1.2.3.tgz",- "integrity": "sha512-Js0m9cx+qOgDxo0eMiFGEueWztz+d4+M3rGlmKPT+T4IS/jP4ylw3Nwpu6cpTTP8R1MAC1kF4VbdLt3ARf209w==",- "dev": true,- "funding": [- {- "type": "opencollective",- "url": "https://opencollective.com/browserslist"- },- {- "type": "tidelift",- "url": "https://tidelift.com/funding/github/npm/browserslist"- },- {- "type": "github",- "url": "https://github.com/sponsors/ai"- }- ],- "license": "MIT",- "dependencies": {- "escalade": "^3.2.0",- "picocolors": "^1.1.1"- },- "bin": {- "update-browserslist-db": "cli.js"- },- "peerDependencies": {- "browserslist": ">= 4.21.0"- }- },- "node_modules/uri-js": {- "version": "4.4.1",- "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz",- "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==",- "dev": true,- "license": "BSD-2-Clause",- "dependencies": {- "punycode": "^2.1.0"- }- },- "node_modules/v8-to-istanbul": {- "version": "9.3.0",- "resolved": "https://registry.npmjs.org/v8-to-istanbul/-/v8-to-istanbul-9.3.0.tgz",- "integrity": "sha512-kiGUalWN+rgBJ/1OHZsBtU4rXZOfj/7rKQxULKlIzwzQSvMJUUNgPwJEEh7gU6xEVxC0ahoOBvN2YI8GH6FNgA==",- "dev": true,- "license": "ISC",- "dependencies": {- "@jridgewell/trace-mapping": "^0.3.12",- "@types/istanbul-lib-coverage": "^2.0.1",- "convert-source-map": "^2.0.0"- },- "engines": {- "node": ">=10.12.0"- }- },- "node_modules/walker": {- "version": "1.0.8",- "resolved": "https://registry.npmjs.org/walker/-/walker-1.0.8.tgz",- "integrity": "sha512-ts/8E8l5b7kY0vlWLewOkDXMmPdLcVV4GmOQLyxuSswIJsweeFZtAsMF7k1Nszz+TYBQrlYRmzOnr398y1JemQ==",- "dev": true,- "license": "Apache-2.0",- "dependencies": {- "makeerror": "1.0.12"- }- },- "node_modules/which": {- "version": "2.0.2",- "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz",- "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==",- "dev": true,- "license": "ISC",- "dependencies": {- "isexe": "^2.0.0"- },- "bin": {- "node-which": "bin/node-which"- },- "engines": {- "node": ">= 8"- }- },- "node_modules/word-wrap": {- "version": "1.2.5",- "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.5.tgz",- "integrity": "sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=0.10.0"- }- },- "node_modules/wordwrap": {- "version": "1.0.0",- "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-1.0.0.tgz",- "integrity": "sha512-gvVzJFlPycKc5dZN4yPkP8w7Dc37BtP1yczEneOb4uq34pXZcvrtRTmWV8W+Ume+XCxKgbjM+nevkyFPMybd4Q==",- "dev": true,- "license": "MIT"- },- "node_modules/wrap-ansi": {- "version": "8.1.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-8.1.0.tgz",- "integrity": "sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^6.1.0",- "string-width": "^5.0.1",- "strip-ansi": "^7.0.1"- },- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"- }- },- "node_modules/wrap-ansi-cjs": {- "name": "wrap-ansi",- "version": "7.0.0",- "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz",- "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-styles": "^4.0.0",- "string-width": "^4.1.0",- "strip-ansi": "^6.0.0"- },- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/chalk/wrap-ansi?sponsor=1"- }- },- "node_modules/wrap-ansi-cjs/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/wrap-ansi-cjs/node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",- "dev": true,- "license": "MIT"- },- "node_modules/wrap-ansi-cjs/node_modules/string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "dev": true,- "license": "MIT",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/wrap-ansi-cjs/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/wrap-ansi/node_modules/ansi-styles": {- "version": "6.2.3",- "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",- "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=12"- },- "funding": {- "url": "https://github.com/chalk/ansi-styles?sponsor=1"- }- },- "node_modules/wrappy": {- "version": "1.0.2",- "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz",- "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==",- "dev": true,- "license": "ISC"- },- "node_modules/write-file-atomic": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-5.0.1.tgz",- "integrity": "sha512-+QU2zd6OTD8XWIJCbffaiQeH9U73qIqafo1x6V1snCWYGJf6cVE0cDR4D8xRzcEnfI21IFrUPzPGtcPf8AC+Rw==",- "dev": true,- "license": "ISC",- "dependencies": {- "imurmurhash": "^0.1.4",- "signal-exit": "^4.0.1"- },- "engines": {- "node": "^14.17.0 || ^16.13.0 || >=18.0.0"- }- },- "node_modules/ws": {- "version": "8.20.0",- "resolved": "https://registry.npmjs.org/ws/-/ws-8.20.0.tgz",- "integrity": "sha512-sAt8BhgNbzCtgGbt2OxmpuryO63ZoDk/sqaB/znQm94T4fCEsy/yV+7CdC1kJhOU9lboAEU7R3kquuycDoibVA==",- "license": "MIT",- "engines": {- "node": ">=10.0.0"- },- "peerDependencies": {- "bufferutil": "^4.0.1",- "utf-8-validate": ">=5.0.2"- },- "peerDependenciesMeta": {- "bufferutil": {- "optional": true- },- "utf-8-validate": {- "optional": true- }- }- },- "node_modules/y18n": {- "version": "5.0.8",- "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz",- "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==",- "dev": true,- "license": "ISC",- "engines": {- "node": ">=10"- }- },- "node_modules/yallist": {- "version": "3.1.1",- "resolved": "https://registry.npmjs.org/yallist/-/yallist-3.1.1.tgz",- "integrity": "sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g==",- "dev": true,- "license": "ISC"- },- "node_modules/yargs": {- "version": "17.7.2",- "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz",- "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==",- "dev": true,- "license": "MIT",- "dependencies": {- "cliui": "^8.0.1",- "escalade": "^3.1.1",- "get-caller-file": "^2.0.5",- "require-directory": "^2.1.1",- "string-width": "^4.2.3",- "y18n": "^5.0.5",- "yargs-parser": "^21.1.1"- },- "engines": {- "node": ">=12"- }- },- "node_modules/yargs-parser": {- "version": "21.1.1",- "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz",- "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==",- "dev": true,- "license": "ISC",- "engines": {- "node": ">=12"- }- },- "node_modules/yargs/node_modules/ansi-regex": {- "version": "5.0.1",- "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz",- "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=8"- }- },- "node_modules/yargs/node_modules/emoji-regex": {- "version": "8.0.0",- "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz",- "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==",- "dev": true,- "license": "MIT"- },- "node_modules/yargs/node_modules/string-width": {- "version": "4.2.3",- "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz",- "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==",- "dev": true,- "license": "MIT",- "dependencies": {- "emoji-regex": "^8.0.0",- "is-fullwidth-code-point": "^3.0.0",- "strip-ansi": "^6.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/yargs/node_modules/strip-ansi": {- "version": "6.0.1",- "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz",- "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==",- "dev": true,- "license": "MIT",- "dependencies": {- "ansi-regex": "^5.0.1"- },- "engines": {- "node": ">=8"- }- },- "node_modules/yocto-queue": {- "version": "0.1.0",- "resolved": "https://registry.npmjs.org/yocto-queue/-/yocto-queue-0.1.0.tgz",- "integrity": "sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q==",- "dev": true,- "license": "MIT",- "engines": {- "node": ">=10"- },- "funding": {- "url": "https://github.com/sponsors/sindresorhus"- }- },- "node_modules/zod": {- "version": "4.3.6",- "resolved": "https://registry.npmjs.org/zod/-/zod-4.3.6.tgz",- "integrity": "sha512-rftlrkhHZOcjDwkGlnUtZZkvaPHCsDATp4pGpuOOMDaTdDDXF91wuVDJoWoPsKX/3YPQ5fHuF3STjcYyKr+Qhg==",- "license": "MIT",- "funding": {- "url": "https://github.com/sponsors/colinhacks"- }- }- }-}diff --git a/vendor/openhands-typescript-client/package.json b/vendor/openhands-typescript-client/package.jsondeleted file mode 100644index ea3fa4d4a1..0000000000--- a/vendor/openhands-typescript-client/package.json+++ /dev/null@@ -1,95 +0,0 @@-{- "name": "@openhands/typescript-client",- "version": "0.1.2",- "description": "TypeScript client for OpenHands Agent Server",- "main": "dist/index.js",- "module": "dist/index.js",- "types": "dist/index.d.ts",- "type": "module",- "exports": {- ".": {- "types": "./dist/index.d.ts",- "import": "./dist/index.js",- "default": "./dist/index.js"- },- "./clients": {- "types": "./dist/clients.d.ts",- "import": "./dist/clients.js",- "default": "./dist/clients.js"- },- "./client/http-client": {- "types": "./dist/client/http-client.d.ts",- "import": "./dist/client/http-client.js",- "default": "./dist/client/http-client.js"- },- "./events/remote-events-list": {- "types": "./dist/events/remote-events-list.d.ts",- "import": "./dist/events/remote-events-list.js",- "default": "./dist/events/remote-events-list.js"- },- "./workspace/remote-workspace": {- "types": "./dist/workspace/remote-workspace.d.ts",- "import": "./dist/workspace/remote-workspace.js",- "default": "./dist/workspace/remote-workspace.js"- }- },- "overrides": {- "eslint": {- "minimatch": "^10.2.1"- }- },- "scripts": {- "build": "tsc",- "lint": "eslint src/**/*.ts",- "lint:fix": "eslint src/**/*.ts --fix",- "format": "prettier --write \"src/**/*.ts\" \"examples/**/*.ts\"",- "format:check": "prettier --check \"src/**/*.ts\" \"examples/**/*.ts\"",- "test": "jest --config jest.config.cjs",- "test:watch": "jest --config jest.config.cjs --watch",- "test:coverage": "jest --config jest.config.cjs --coverage",- "test:integration": "jest --config jest.integration.config.cjs",- "test:integration:verbose": "jest --config jest.integration.config.cjs --verbose",- "test:integration:deterministic": "jest --config jest.integration.config.cjs --runInBand --testPathPatterns=\"deterministic-api.integration.test.ts|bash.integration.test.ts\"",- "test:integration:llm": "jest --config jest.integration.config.cjs --runInBand --testPathIgnorePatterns=\"deterministic-api.integration.test.ts|bash.integration.test.ts\"",- "test:all": "npm run test && npm run test:integration",- "dev": "tsc --watch",- "clean": "rm -rf dist",- "prepublishOnly": "npm run clean && npm run build && npm test"- },- "keywords": [- "openhands",- "agent",- "typescript",- "client",- "sdk"- ],- "author": "OpenHands Team",- "license": "MIT",- "dependencies": {- "@openrouter/sdk": "^0.12.1",- "ws": "^8.20.0"- },- "devDependencies": {- "@babel/preset-env": "^7.29.2",- "@eslint/js": "^10.0.1",- "@types/jest": "^30.0.0",- "@types/node": "^25.6.0",- "@types/ws": "^8.5.8",- "@typescript-eslint/eslint-plugin": "^8.58.2",- "@typescript-eslint/parser": "^8.58.2",- "eslint": "^10.2.0",- "globals": "^17.5.0",- "jest": "^30.3.0",- "prettier": "^3.8.2",- "ts-jest": "^29.4.9",- "typescript": "^6.0.2",- "typescript-eslint": "^8.58.2"- },- "files": [- "dist/**/*"- ],- "repository": {- "type": "git",- "url": "https://github.com/OpenHands/typescript-client.git"- }-}diff --git a/vendor/openhands-typescript-client/src/__tests__/api-clients.test.ts b/vendor/openhands-typescript-client/src/__tests__/api-clients.test.tsdeleted file mode 100644index 0154199abf..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/api-clients.test.ts+++ /dev/null@@ -1,114 +0,0 @@-import { ConversationManager, HttpClient, Workspace } from '../index';-import { BashClient, ServerClient, SkillsClient } from '../clients';--const originalFetch = global.fetch;--describe('Auxiliary API clients', () => {- afterEach(() => {- global.fetch = originalFetch;- jest.restoreAllMocks();- });-- it('ConversationManager exposes server and skills namespaces', () => {- const manager = new ConversationManager({ host: 'http://example.com', apiKey: 'secret' });-- expect(manager.server).toBeInstanceOf(ServerClient);- expect(manager.skills).toBeInstanceOf(SkillsClient);- expect(manager.server.host).toBe('http://example.com');- expect(manager.server.apiKey).toBe('secret');- });-- it('Workspace exposes bash namespace', () => {- const workspace = new Workspace({- host: 'http://example.com',- workingDir: '/tmp',- apiKey: 'secret',- });-- expect(workspace.bash).toBeInstanceOf(BashClient);- expect(workspace.bash.host).toBe('http://example.com');- expect(workspace.bash.apiKey).toBe('secret');- });-- it('ServerClient.getReady accepts a 503 readiness response', async () => {- global.fetch = jest.fn().mockResolvedValue(- new Response(JSON.stringify({ status: 'initializing', message: 'Booting' }), {- status: 503,- headers: { 'content-type': 'application/json' },- })- ) as typeof fetch;-- const client = new ServerClient({ host: 'http://example.com' });- const ready = await client.getReady();-- expect(ready.status).toBe('initializing');- expect(ready.message).toBe('Booting');- });-- it('SkillsClient.syncSkills posts to the sync endpoint', async () => {- global.fetch = jest.fn().mockResolvedValue(- new Response(JSON.stringify({ status: 'success', message: 'ok' }), {- status: 200,- headers: { 'content-type': 'application/json' },- })- ) as typeof fetch;-- const client = new SkillsClient({ host: 'http://example.com' });- const response = await client.syncSkills();-- expect(response.status).toBe('success');- expect(global.fetch).toHaveBeenCalledWith(- 'http://example.com/api/skills/sync',- expect.objectContaining({- method: 'POST',- body: '{}',- })- );- });-- it('BashClient.startCommand normalizes string requests', async () => {- global.fetch = jest.fn().mockResolvedValue(- new Response(- JSON.stringify({- id: 'bash-command-1',- timestamp: new Date().toISOString(),- command: 'echo hi',- cwd: '/tmp',- timeout: 3,- kind: 'BashCommand',- }),- {- status: 200,- headers: { 'content-type': 'application/json' },- }- )- ) as typeof fetch;-- const client = new BashClient({ host: 'http://example.com' });- const result = await client.startCommand('echo hi', '/tmp', 3.8);-- expect(result.command).toBe('echo hi');- expect(global.fetch).toHaveBeenCalledWith(- 'http://example.com/api/bash/start_bash_command',- expect.objectContaining({- method: 'POST',- body: JSON.stringify({ command: 'echo hi', cwd: '/tmp', timeout: 3 }),- })- );- });-- it('HttpClient can parse blob responses when requested', async () => {- global.fetch = jest.fn().mockResolvedValue(- new Response(new Blob(['zip-data']), {- status: 200,- headers: { 'content-type': 'application/zip' },- })- ) as typeof fetch;-- const client = new HttpClient({ baseUrl: 'http://example.com' });- const response = await client.get<Blob>('/download.zip', { responseType: 'blob' });-- expect(response.data).toBeInstanceOf(Blob);- expect(await response.data.text()).toBe('zip-data');- });-});diff --git a/vendor/openhands-typescript-client/src/__tests__/event-types.test.ts b/vendor/openhands-typescript-client/src/__tests__/event-types.test.tsdeleted file mode 100644index 1c4a5e1c2f..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/event-types.test.ts+++ /dev/null@@ -1,357 +0,0 @@-/**- * Tests for rich event types- *- * These tests verify the event type definitions and type guards.- */--import {- MessageEvent,- ActionEvent,- ObservationEvent,- AgentErrorEvent,- SystemPromptEvent,- PauseEvent,- CondensationRequestEvent,- CondensationSummaryEvent,- ConversationStateUpdateEvent,- UserRejectObservation,- TokenEvent,- isMessageEvent,- isActionEvent,- isObservationEvent,- isAgentErrorEvent,- isObservationLike,- generateEventId,-} from '../events/types';--describe('Event Type Guards', () => {- describe('isMessageEvent', () => {- it('should return true for MessageEvent', () => {- const event: MessageEvent = {- id: generateEventId(),- kind: 'MessageEvent',- timestamp: new Date().toISOString(),- source: 'user',- llm_message: {- role: 'user',- content: [{ type: 'text', text: 'Hello' }],- },- };-- expect(isMessageEvent(event)).toBe(true);- });-- it('should return false for non-MessageEvent', () => {- const event: ActionEvent = {- id: generateEventId(),- kind: 'ActionEvent',- timestamp: new Date().toISOString(),- source: 'agent',- tool_name: 'test',- tool_call_id: 'call_1',- action: {},- };-- expect(isMessageEvent(event)).toBe(false);- });- });-- describe('isActionEvent', () => {- it('should return true for ActionEvent', () => {- const event: ActionEvent = {- id: generateEventId(),- kind: 'ActionEvent',- timestamp: new Date().toISOString(),- source: 'agent',- tool_name: 'terminal',- tool_call_id: 'call_1',- action: { command: 'ls' },- thought: 'Running ls command',- };-- expect(isActionEvent(event)).toBe(true);- });-- it('should return false for non-ActionEvent', () => {- const event: ObservationEvent = {- id: generateEventId(),- kind: 'ObservationEvent',- timestamp: new Date().toISOString(),- source: 'environment',- tool_name: 'terminal',- tool_call_id: 'call_1',- observation: { output: 'file.txt' },- action_id: 'action_1',- };-- expect(isActionEvent(event)).toBe(false);- });- });-- describe('isObservationEvent', () => {- it('should return true for ObservationEvent', () => {- const event: ObservationEvent = {- id: generateEventId(),- kind: 'ObservationEvent',- timestamp: new Date().toISOString(),- source: 'environment',- tool_name: 'terminal',- tool_call_id: 'call_1',- observation: { stdout: 'output', exit_code: 0 },- action_id: 'action_1',- };-- expect(isObservationEvent(event)).toBe(true);- });- });-- describe('isAgentErrorEvent', () => {- it('should return true for AgentErrorEvent', () => {- const event: AgentErrorEvent = {- id: generateEventId(),- kind: 'AgentErrorEvent',- timestamp: new Date().toISOString(),- source: 'agent',- tool_name: 'terminal',- tool_call_id: 'call_1',- error: 'Command failed',- };-- expect(isAgentErrorEvent(event)).toBe(true);- });- });-- describe('SystemPromptEvent', () => {- it('should have correct structure', () => {- const event: SystemPromptEvent = {- id: generateEventId(),- kind: 'SystemPromptEvent',- timestamp: new Date().toISOString(),- source: 'environment',- system_prompt: { type: 'text', text: 'You are a helpful assistant.' },- tools: [],- };-- expect(event.kind).toBe('SystemPromptEvent');- expect(event.system_prompt.type).toBe('text');- });- });-- describe('PauseEvent', () => {- it('should have correct structure', () => {- const event: PauseEvent = {- id: generateEventId(),- kind: 'PauseEvent',- timestamp: new Date().toISOString(),- source: 'user',- };-- expect(event.kind).toBe('PauseEvent');- });- });-- describe('CondensationEvents', () => {- it('should have correct structure for CondensationRequestEvent', () => {- const event: CondensationRequestEvent = {- id: generateEventId(),- kind: 'CondensationRequest',- timestamp: new Date().toISOString(),- source: 'agent',- };-- expect(event.kind).toBe('CondensationRequest');- });-- it('should have correct structure for CondensationSummaryEvent', () => {- const event: CondensationSummaryEvent = {- id: generateEventId(),- kind: 'CondensationSummaryEvent',- timestamp: new Date().toISOString(),- source: 'agent',- summary: 'Conversation summary here',- };-- expect(event.kind).toBe('CondensationSummaryEvent');- expect(event.summary).toBe('Conversation summary here');- });- });-- describe('ConversationStateUpdateEvent', () => {- it('should have correct structure', () => {- const event: ConversationStateUpdateEvent = {- id: generateEventId(),- kind: 'ConversationStateUpdateEvent',- timestamp: new Date().toISOString(),- source: 'environment',- key: 'execution_status',- value: 'running',- };-- expect(event.kind).toBe('ConversationStateUpdateEvent');- expect(event.key).toBe('execution_status');- });- });-- describe('isObservationLike', () => {- it('should return true for observation-like events', () => {- const obs: ObservationEvent = {- id: generateEventId(),- kind: 'ObservationEvent',- timestamp: new Date().toISOString(),- source: 'environment',- tool_name: 'terminal',- tool_call_id: 'call_1',- observation: { output: 'test' },- action_id: 'action_1',- };-- const error: AgentErrorEvent = {- id: generateEventId(),- kind: 'AgentErrorEvent',- timestamp: new Date().toISOString(),- source: 'agent',- tool_name: 'terminal',- tool_call_id: 'call_1',- error: 'Failed',- };-- const reject: UserRejectObservation = {- id: generateEventId(),- kind: 'UserRejectObservation',- timestamp: new Date().toISOString(),- source: 'user',- action_id: 'action_1',- tool_name: 'execute_command',- tool_call_id: 'tool_call_1',- rejection_reason: 'Too risky',- rejection_source: 'user',- };-- expect(isObservationLike(obs)).toBe(true);- expect(isObservationLike(error)).toBe(true);- expect(isObservationLike(reject)).toBe(true);- });- });-});--describe('Event Structure', () => {- describe('MessageEvent', () => {- it('should contain llm_message field', () => {- const event: MessageEvent = {- id: generateEventId(),- kind: 'MessageEvent',- timestamp: new Date().toISOString(),- source: 'user',- llm_message: {- role: 'user',- content: [{ type: 'text', text: 'Hello, assistant!' }],- },- activated_skills: ['code_review'],- };-- expect(event.llm_message).toBeDefined();- expect(event.llm_message.role).toBe('user');- expect(event.llm_message.content).toHaveLength(1);- expect(event.activated_skills).toContain('code_review');- });- });-- describe('ActionEvent', () => {- it('should contain action details', () => {- const event: ActionEvent = {- id: generateEventId(),- kind: 'ActionEvent',- timestamp: new Date().toISOString(),- source: 'agent',- tool_name: 'terminal',- tool_call_id: 'call_123',- action: {- command: 'ls -la /workspace',- },- thought: 'I need to list the workspace files',- };-- expect(event.tool_name).toBe('terminal');- expect(event.action.command).toBe('ls -la /workspace');- expect(event.thought).toBeDefined();- });- });-- describe('ObservationEvent', () => {- it('should contain observation and action_id', () => {- const event: ObservationEvent = {- id: generateEventId(),- kind: 'ObservationEvent',- timestamp: new Date().toISOString(),- source: 'environment',- tool_name: 'terminal',- tool_call_id: 'call_123',- observation: {- stdout: 'file1.txt\nfile2.txt',- stderr: '',- exit_code: 0,- },- action_id: 'action_456',- };-- expect(event.action_id).toBe('action_456');- // observation is typed as unknown, cast to check structure- const obs = event.observation as { stdout: string; exit_code: number };- expect(obs.stdout).toBeDefined();- expect(obs.exit_code).toBe(0);- });- });-- describe('TokenEvent', () => {- it('should contain token IDs information', () => {- const event: TokenEvent = {- id: generateEventId(),- kind: 'TokenEvent',- timestamp: new Date().toISOString(),- source: 'agent',- prompt_token_ids: [1, 2, 3],- response_token_ids: [4, 5, 6],- };-- expect(event.prompt_token_ids).toEqual([1, 2, 3]);- expect(event.response_token_ids).toEqual([4, 5, 6]);- });- });-- describe('UserRejectObservation', () => {- it('should contain rejection information', () => {- const event: UserRejectObservation = {- id: generateEventId(),- kind: 'UserRejectObservation',- timestamp: new Date().toISOString(),- source: 'user',- action_id: 'action_789',- tool_name: 'execute_command',- tool_call_id: 'tool_call_789',- rejection_reason: 'This action is too risky',- rejection_source: 'user',- };-- expect(event.action_id).toBe('action_789');- expect(event.tool_name).toBe('execute_command');- expect(event.tool_call_id).toBe('tool_call_789');- expect(event.rejection_reason).toBe('This action is too risky');- expect(event.rejection_source).toBe('user');- });- });-});--describe('generateEventId', () => {- it('should generate unique IDs', () => {- const ids = new Set<string>();- for (let i = 0; i < 100; i++) {- ids.add(generateEventId());- }- expect(ids.size).toBe(100);- });-- it('should generate IDs with expected format', () => {- const id = generateEventId();- expect(id).toMatch(/^evt_\d+_[a-z0-9]+$/);- });-});diff --git a/vendor/openhands-typescript-client/src/__tests__/hooks.test.ts b/vendor/openhands-typescript-client/src/__tests__/hooks.test.tsdeleted file mode 100644index 5603baabb6..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/hooks.test.ts+++ /dev/null@@ -1,355 +0,0 @@-import {- HookEventType,- HookType,- HookDecision,- hookResultShouldContinue,- createSuccessResult,- HOOK_EVENT_FIELDS,- matcherMatches,- createEmptyHookConfig,- isHookConfigEmpty,- normalizeHooksInput,- hookConfigFromData,- getHooksForEvent,- hasHooksForEvent,- mergeHookConfigs,- hookConfigToJSON,- isHookExecutionEvent,-} from '../index';-import type { HookMatcher, HookResult } from '../index';--describe('Hooks Types', () => {- describe('HookEventType', () => {- it('should have all expected values', () => {- expect(HookEventType.PRE_TOOL_USE).toBe('PreToolUse');- expect(HookEventType.POST_TOOL_USE).toBe('PostToolUse');- expect(HookEventType.USER_PROMPT_SUBMIT).toBe('UserPromptSubmit');- expect(HookEventType.SESSION_START).toBe('SessionStart');- expect(HookEventType.SESSION_END).toBe('SessionEnd');- expect(HookEventType.STOP).toBe('Stop');- });- });-- describe('HookType', () => {- it('should have all expected values', () => {- expect(HookType.COMMAND).toBe('command');- expect(HookType.PROMPT).toBe('prompt');- });- });-- describe('HookDecision', () => {- it('should have all expected values', () => {- expect(HookDecision.ALLOW).toBe('allow');- expect(HookDecision.DENY).toBe('deny');- });- });-- describe('hookResultShouldContinue', () => {- it('should return true for successful result', () => {- expect(hookResultShouldContinue(createSuccessResult())).toBe(true);- });-- it('should return false for blocked result', () => {- const result: HookResult = { ...createSuccessResult(), blocked: true };- expect(hookResultShouldContinue(result)).toBe(false);- });-- it('should return false for DENY decision', () => {- const result: HookResult = {- ...createSuccessResult(),- decision: HookDecision.DENY,- };- expect(hookResultShouldContinue(result)).toBe(false);- });-- it('should return true for ALLOW decision', () => {- const result: HookResult = {- ...createSuccessResult(),- decision: HookDecision.ALLOW,- };- expect(hookResultShouldContinue(result)).toBe(true);- });- });-- describe('createSuccessResult', () => {- it('should create a default success result', () => {- const result = createSuccessResult();- expect(result.success).toBe(true);- expect(result.blocked).toBe(false);- expect(result.exit_code).toBe(0);- expect(result.stdout).toBe('');- expect(result.stderr).toBe('');- expect(result.async_started).toBe(false);- });- });-});--describe('Hooks Config', () => {- describe('HOOK_EVENT_FIELDS', () => {- it('should contain all expected fields', () => {- expect(HOOK_EVENT_FIELDS.has('pre_tool_use')).toBe(true);- expect(HOOK_EVENT_FIELDS.has('post_tool_use')).toBe(true);- expect(HOOK_EVENT_FIELDS.has('user_prompt_submit')).toBe(true);- expect(HOOK_EVENT_FIELDS.has('session_start')).toBe(true);- expect(HOOK_EVENT_FIELDS.has('session_end')).toBe(true);- expect(HOOK_EVENT_FIELDS.has('stop')).toBe(true);- expect(HOOK_EVENT_FIELDS.size).toBe(6);- });- });-- describe('matcherMatches', () => {- it('should match wildcard to everything', () => {- const matcher: HookMatcher = { matcher: '*', hooks: [] };- expect(matcherMatches(matcher, 'terminal')).toBe(true);- expect(matcherMatches(matcher, 'anything')).toBe(true);- expect(matcherMatches(matcher, null)).toBe(true);- });-- it('should match empty matcher to everything', () => {- const matcher: HookMatcher = { matcher: '', hooks: [] };- expect(matcherMatches(matcher, 'terminal')).toBe(true);- });-- it('should match default (undefined) matcher to everything', () => {- const matcher: HookMatcher = { hooks: [] };- expect(matcherMatches(matcher, 'terminal')).toBe(true);- });-- it('should do exact match', () => {- const matcher: HookMatcher = { matcher: 'terminal', hooks: [] };- expect(matcherMatches(matcher, 'terminal')).toBe(true);- expect(matcherMatches(matcher, 'other')).toBe(false);- });-- it('should support explicit regex /pattern/', () => {- const matcher: HookMatcher = { matcher: '/term.*/', hooks: [] };- expect(matcherMatches(matcher, 'terminal')).toBe(true);- expect(matcherMatches(matcher, 'other')).toBe(false);- });-- it('should auto-detect regex with metacharacters', () => {- const matcher: HookMatcher = { matcher: 'term.*', hooks: [] };- expect(matcherMatches(matcher, 'terminal')).toBe(true);- expect(matcherMatches(matcher, 'other')).toBe(false);- });-- it('should handle invalid regex gracefully', () => {- const matcher: HookMatcher = { matcher: '/[invalid/', hooks: [] };- expect(matcherMatches(matcher, 'anything')).toBe(false);- });-- it('should not match null toolName for non-wildcard', () => {- const matcher: HookMatcher = { matcher: 'terminal', hooks: [] };- expect(matcherMatches(matcher, null)).toBe(false);- });- });-- describe('createEmptyHookConfig', () => {- it('should create config with all empty arrays', () => {- const config = createEmptyHookConfig();- expect(config.pre_tool_use).toEqual([]);- expect(config.post_tool_use).toEqual([]);- expect(config.user_prompt_submit).toEqual([]);- expect(config.session_start).toEqual([]);- expect(config.session_end).toEqual([]);- expect(config.stop).toEqual([]);- });- });-- describe('isHookConfigEmpty', () => {- it('should return true for empty config', () => {- expect(isHookConfigEmpty(createEmptyHookConfig())).toBe(true);- });-- it('should return false for config with hooks', () => {- const config = createEmptyHookConfig();- config.stop = [{ matcher: '*', hooks: [{ command: 'echo hello' }] }];- expect(isHookConfigEmpty(config)).toBe(false);- });- });-- describe('normalizeHooksInput', () => {- it('should unwrap legacy format with hooks wrapper', () => {- const data = {- hooks: {- PreToolUse: [{ matcher: '*', hooks: [{ command: 'echo test' }] }],- },- };- const normalized = normalizeHooksInput(data);- expect(normalized.pre_tool_use).toBeDefined();- expect(normalized['PreToolUse']).toBeUndefined();- });-- it('should convert PascalCase to snake_case', () => {- const data = {- PreToolUse: [{ matcher: '*', hooks: [{ command: 'echo test' }] }],- PostToolUse: [{ matcher: '*', hooks: [{ command: 'echo test' }] }],- };- const normalized = normalizeHooksInput(data);- expect(normalized.pre_tool_use).toBeDefined();- expect(normalized.post_tool_use).toBeDefined();- });-- it('should pass through snake_case keys unchanged', () => {- const data = {- pre_tool_use: [{ matcher: '*', hooks: [{ command: 'echo test' }] }],- };- const normalized = normalizeHooksInput(data);- expect(normalized.pre_tool_use).toBeDefined();- });-- it('should throw on unknown event type', () => {- const data = { UnknownEvent: [] };- expect(() => normalizeHooksInput(data)).toThrow('Unknown event type');- });-- it('should throw on duplicate keys', () => {- const data = {- pre_tool_use: [],- PreToolUse: [],- };- expect(() => normalizeHooksInput(data)).toThrow('Duplicate hook event');- });- });-- describe('hookConfigFromData', () => {- it('should create config from PascalCase data', () => {- const data = {- PreToolUse: [{ matcher: 'terminal', hooks: [{ command: 'echo block', type: 'command' }] }],- Stop: [{ matcher: '*', hooks: [{ command: 'echo stop' }] }],- };- const config = hookConfigFromData(data);- expect(config.pre_tool_use).toHaveLength(1);- expect(config.stop).toHaveLength(1);- expect(config.post_tool_use).toHaveLength(0);- });-- it('should create config from legacy wrapper format', () => {- const data = {- hooks: {- stop: [{ matcher: '*', hooks: [{ command: 'echo stop' }] }],- },- };- const config = hookConfigFromData(data);- expect(config.stop).toHaveLength(1);- });- });-- describe('getHooksForEvent', () => {- it('should return matching hooks for event type', () => {- const config = createEmptyHookConfig();- config.pre_tool_use = [- { matcher: 'terminal', hooks: [{ command: 'echo block' }] },- { matcher: 'other', hooks: [{ command: 'echo other' }] },- ];-- const hooks = getHooksForEvent(config, HookEventType.PRE_TOOL_USE, 'terminal');- expect(hooks).toHaveLength(1);- expect(hooks[0].command).toBe('echo block');- });-- it('should return all matching hooks with wildcard', () => {- const config = createEmptyHookConfig();- config.pre_tool_use = [- { matcher: '*', hooks: [{ command: 'echo all' }] },- { matcher: 'terminal', hooks: [{ command: 'echo terminal' }] },- ];-- const hooks = getHooksForEvent(config, HookEventType.PRE_TOOL_USE, 'terminal');- expect(hooks).toHaveLength(2);- });-- it('should return empty for no matches', () => {- const config = createEmptyHookConfig();- config.pre_tool_use = [{ matcher: 'other', hooks: [{ command: 'echo other' }] }];-- const hooks = getHooksForEvent(config, HookEventType.PRE_TOOL_USE, 'terminal');- expect(hooks).toHaveLength(0);- });-- it('should return empty for unconfigured event type', () => {- const config = createEmptyHookConfig();- const hooks = getHooksForEvent(config, HookEventType.SESSION_START);- expect(hooks).toHaveLength(0);- });- });-- describe('hasHooksForEvent', () => {- it('should return true when hooks are configured', () => {- const config = createEmptyHookConfig();- config.stop = [{ matcher: '*', hooks: [{ command: 'echo stop' }] }];- expect(hasHooksForEvent(config, HookEventType.STOP)).toBe(true);- });-- it('should return false when no hooks configured', () => {- const config = createEmptyHookConfig();- expect(hasHooksForEvent(config, HookEventType.STOP)).toBe(false);- });- });-- describe('mergeHookConfigs', () => {- it('should return null for empty array', () => {- expect(mergeHookConfigs([])).toBeNull();- });-- it('should return null for all-empty configs', () => {- expect(mergeHookConfigs([createEmptyHookConfig()])).toBeNull();- });-- it('should merge configs from multiple sources', () => {- const config1 = createEmptyHookConfig();- config1.pre_tool_use = [{ matcher: '*', hooks: [{ command: 'echo 1' }] }];-- const config2 = createEmptyHookConfig();- config2.pre_tool_use = [{ matcher: 'terminal', hooks: [{ command: 'echo 2' }] }];- config2.stop = [{ matcher: '*', hooks: [{ command: 'echo stop' }] }];-- const merged = mergeHookConfigs([config1, config2]);- expect(merged).not.toBeNull();- expect(merged!.pre_tool_use).toHaveLength(2);- expect(merged!.stop).toHaveLength(1);- });- });-- describe('hookConfigToJSON', () => {- it('should only include non-empty fields', () => {- const config = createEmptyHookConfig();- config.stop = [{ matcher: '*', hooks: [{ command: 'echo stop' }] }];-- const json = hookConfigToJSON(config);- expect(json.stop).toBeDefined();- expect(json.pre_tool_use).toBeUndefined();- expect(json.post_tool_use).toBeUndefined();- });- });-});--describe('HookExecutionEvent', () => {- describe('isHookExecutionEvent', () => {- it('should return true for hook execution events', () => {- const event = {- id: 'evt_123',- kind: 'HookExecutionEvent',- timestamp: '2024-01-01T00:00:00Z',- source: 'hook' as const,- hook_event_type: 'PreToolUse' as const,- hook_command: 'echo test',- success: true,- blocked: false,- exit_code: 0,- stdout: '',- stderr: '',- };- expect(isHookExecutionEvent(event)).toBe(true);- });-- it('should return false for other event kinds', () => {- const event = {- id: 'evt_123',- kind: 'MessageEvent',- timestamp: '2024-01-01T00:00:00Z',- };- expect(isHookExecutionEvent(event)).toBe(false);- });- });-});diff --git a/vendor/openhands-typescript-client/src/__tests__/index.test.ts b/vendor/openhands-typescript-client/src/__tests__/index.test.tsdeleted file mode 100644index 10916dc2e7..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/index.test.ts+++ /dev/null@@ -1,94 +0,0 @@-import { Conversation, Agent, Workspace, RemoteConversation, RemoteWorkspace } from '../index';--describe('OpenHands Agent Server TypeScript Client', () => {- describe('Exports', () => {- it('should export Conversation', () => {- expect(Conversation).toBeDefined();- expect(typeof Conversation).toBe('function');- });-- it('should export Agent', () => {- expect(Agent).toBeDefined();- expect(typeof Agent).toBe('function');- });-- it('should export Workspace', () => {- expect(Workspace).toBeDefined();- expect(typeof Workspace).toBe('function');- });-- it('should export RemoteConversation for backwards compatibility', () => {- expect(RemoteConversation).toBeDefined();- expect(typeof RemoteConversation).toBe('function');- });-- it('should export RemoteWorkspace for backwards compatibility', () => {- expect(RemoteWorkspace).toBeDefined();- expect(typeof RemoteWorkspace).toBe('function');- });- });-- describe('New API - Conversation', () => {- it('should create instance with agent and workspace', () => {- const agent = new Agent({- llm: {- model: 'gpt-4',- api_key: 'test-key',- },- });-- const workspace = new Workspace({- host: 'http://localhost:8000',- workingDir: '/tmp',- apiKey: 'test-key',- });-- const conversation = new Conversation(agent, workspace);- expect(conversation).toBeInstanceOf(RemoteConversation);- expect(conversation.workspace).toBe(workspace);- });- });-- describe('Agent', () => {- it('should create instance with LLM config', () => {- const agent = new Agent({- llm: {- model: 'gpt-4',- api_key: 'test-key',- },- });-- expect(agent).toBeInstanceOf(Agent);- expect(agent.kind).toBe('Agent');- expect(agent.llm.model).toBe('gpt-4');- expect(agent.llm.api_key).toBe('test-key');- });-- it('should allow custom kind', () => {- const agent = new Agent({- kind: 'CustomAgent',- llm: {- model: 'gpt-4',- api_key: 'test-key',- },- });-- expect(agent.kind).toBe('CustomAgent');- });- });-- describe('Workspace', () => {- it('should create instance with options', () => {- const workspace = new Workspace({- host: 'http://localhost:8000',- workingDir: '/tmp',- apiKey: 'test-key',- });-- expect(workspace).toBeInstanceOf(RemoteWorkspace);- expect(workspace.host).toBe('http://localhost:8000');- expect(workspace.workingDir).toBe('/tmp');- expect(workspace.apiKey).toBe('test-key');- });- });-});diff --git a/vendor/openhands-typescript-client/src/__tests__/integration/api-compatibility.integration.test.ts b/vendor/openhands-typescript-client/src/__tests__/integration/api-compatibility.integration.test.tsdeleted file mode 100644index 4983b925f5..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/integration/api-compatibility.integration.test.ts+++ /dev/null@@ -1,467 +0,0 @@-/**- * Integration tests for API compatibility with agent-server- *- * These tests verify that the TypeScript client correctly handles- * breaking changes between different versions of the agent-server API.- *- * Key changes tested:- * - AgentExecutionStatus -> ConversationExecutionStatus rename- * - agent_status -> execution_status field rename- * - New endpoints: ask_agent, condense, security_analyzer- * - New event search filters: source, body, timestamp__gte, timestamp__lt- *- * NOTE: Some tests in this file are skipped by default because they depend on- * LLM behavior which is non-deterministic and can be slow.- */--import {- Conversation,- Workspace,- Agent,- ConversationExecutionStatus,- AgentExecutionStatus,-} from '../../index';-import { getTestConfig, skipIfNoConfig, createTestLLMConfig } from './test-config';-import { waitForAgentIdle, sleep } from './test-utils';--const SKIP_TESTS = skipIfNoConfig();-// Skip flaky tests that depend on LLM behavior in CI-const SKIP_FLAKY_TESTS = process.env.SKIP_FLAKY_TESTS !== 'false';--describe('API Compatibility Integration Tests', () => {- let config: ReturnType<typeof getTestConfig>;-- beforeAll(() => {- if (SKIP_TESTS) {- console.warn('Skipping integration tests: LLM_API_KEY and LLM_MODEL not set');- return;- }- config = getTestConfig();- });-- describe('ConversationExecutionStatus Enum', () => {- it('should have all expected status values', () => {- // Verify the enum has all expected values- expect(ConversationExecutionStatus.IDLE).toBe('idle');- expect(ConversationExecutionStatus.RUNNING).toBe('running');- expect(ConversationExecutionStatus.PAUSED).toBe('paused');- expect(ConversationExecutionStatus.WAITING_FOR_CONFIRMATION).toBe('waiting_for_confirmation');- expect(ConversationExecutionStatus.FINISHED).toBe('finished');- expect(ConversationExecutionStatus.ERROR).toBe('error');- expect(ConversationExecutionStatus.STUCK).toBe('stuck');- expect(ConversationExecutionStatus.DELETING).toBe('deleting');- });-- it('should have AgentExecutionStatus as an alias', () => {- // Verify backward compatibility alias- expect(AgentExecutionStatus).toBe(ConversationExecutionStatus);- expect(AgentExecutionStatus.IDLE).toBe('idle');- });- });-- describe('Execution Status Field', () => {- it(- 'should get execution status using getExecutionStatus()',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start();-- // Use the new method- const status = await conversation.state.getExecutionStatus();- expect(Object.values(ConversationExecutionStatus)).toContain(status);-- // Cleanup- await conversation.close();- },- config?.testTimeout || 60000- );-- it(- 'should get execution status using deprecated getAgentStatus()',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start();-- // Use the deprecated method (should still work)- const status = await conversation.state.getAgentStatus();- expect(Object.values(ConversationExecutionStatus)).toContain(status);-- // Cleanup- await conversation.close();- },- config?.testTimeout || 60000- );- });-- describe('New API Endpoints', () => {- // Skip flaky tests that depend on LLM behavior in CI- const SKIP_FLAKY_TESTS = process.env.SKIP_FLAKY_TESTS !== 'false';- const testFn = SKIP_FLAKY_TESTS ? it.skip : it;-- testFn(- 'should call askAgent endpoint',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 10 });-- // Send a message first to establish context- await conversation.sendMessage('Hello, I am testing the API.');- await conversation.run();-- await waitForAgentIdle(async () => {- return await conversation.state.getExecutionStatus();- });-- // Ask a simple question- const response = await conversation.askAgent('What is 2 + 2?');- expect(response).toBeDefined();- expect(typeof response).toBe('string');- expect(response.length).toBeGreaterThan(0);-- // Cleanup- await conversation.close();- },- config?.testTimeout || 120000- );-- // Skip: condense endpoint may not be available in all agent-server versions- it.skip(- 'should call condense endpoint',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 10 });-- // Send a message to create some history- await conversation.sendMessage('Hello, this is a test message.');- await conversation.run();-- await waitForAgentIdle(async () => {- return await conversation.state.getExecutionStatus();- });-- // Call condense (should not throw)- await conversation.condense();-- // Cleanup- await conversation.close();- },- config?.testTimeout || 120000- );-- // Skip: setSecurityAnalyzer endpoint may not be available in all agent-server versions- it.skip(- 'should call setSecurityAnalyzer endpoint',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 5 });-- // Set security analyzer to null (should not throw)- await conversation.setSecurityAnalyzer(null);-- // Cleanup- await conversation.close();- },- config?.testTimeout || 60000- );- });-- describe('Event Search Filters', () => {- // These tests are flaky because they depend on LLM behavior- const testFn = SKIP_FLAKY_TESTS ? it.skip : it;-- testFn(- 'should search events with kind filter',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 10 });-- // Send a message and run- await conversation.sendMessage('Say hello.');- await conversation.run();-- await waitForAgentIdle(async () => {- return await conversation.state.getExecutionStatus();- });-- // Search for MessageEvent kind- const result = await conversation.state.events.search({- kind: 'MessageEvent',- limit: 10,- });-- expect(result).toBeDefined();- expect(result.items).toBeDefined();- expect(Array.isArray(result.items)).toBe(true);-- // All returned events should be MessageEvent- for (const event of result.items) {- expect(event.kind).toBe('MessageEvent');- }-- // Cleanup- await conversation.close();- },- config?.testTimeout || 120000- );-- // Skip: source filter may not be fully supported in all agent-server versions- // The server may return events from other sources even when filtering by source- it.skip(- 'should search events with source filter',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 10 });-- // Send a message and run- await conversation.sendMessage('Hello from user.');- await conversation.run();-- await waitForAgentIdle(async () => {- return await conversation.state.getExecutionStatus();- });-- // Search for user events- const result = await conversation.state.events.search({- source: 'user',- limit: 10,- });-- expect(result).toBeDefined();- expect(result.items).toBeDefined();- expect(Array.isArray(result.items)).toBe(true);-- // All returned events should have source 'user'- for (const event of result.items) {- expect(event.source).toBe('user');- }-- // Cleanup- await conversation.close();- },- config?.testTimeout || 120000- );-- testFn(- 'should count events with filters',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 10 });-- // Send a message and run- await conversation.sendMessage('Test message for counting.');- await conversation.run();-- await waitForAgentIdle(async () => {- return await conversation.state.getExecutionStatus();- });-- // Count all events- const totalCount = await conversation.state.events.count();- expect(totalCount).toBeGreaterThan(0);-- // Count MessageEvent events- const messageCount = await conversation.state.events.count({- kind: 'MessageEvent',- });- expect(messageCount).toBeGreaterThanOrEqual(0);- expect(messageCount).toBeLessThanOrEqual(totalCount);-- // Cleanup- await conversation.close();- },- config?.testTimeout || 120000- );-- testFn(- 'should search events with timestamp filters',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 10 });-- // Record start time- const startTime = new Date().toISOString();-- // Send a message and run- await conversation.sendMessage('Test message with timestamp.');- await conversation.run();-- await waitForAgentIdle(async () => {- return await conversation.state.getExecutionStatus();- });-- // Wait a bit- await sleep(100);-- // Record end time- const endTime = new Date().toISOString();-- // Search for events within the time range- const result = await conversation.state.events.search({- timestamp__gte: startTime,- timestamp__lt: endTime,- limit: 100,- });-- expect(result).toBeDefined();- expect(result.items).toBeDefined();- expect(Array.isArray(result.items)).toBe(true);-- // Cleanup- await conversation.close();- },- config?.testTimeout || 120000- );-- testFn(- 'should search events with sort order',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 10 });-- // Send a message and run- await conversation.sendMessage('Test message for sorting.');- await conversation.run();-- await waitForAgentIdle(async () => {- return await conversation.state.getExecutionStatus();- });-- // Search with ascending order- const ascResult = await conversation.state.events.search({- sort_order: 'TIMESTAMP',- limit: 10,- });-- // Search with descending order- const descResult = await conversation.state.events.search({- sort_order: 'TIMESTAMP_DESC',- limit: 10,- });-- expect(ascResult.items).toBeDefined();- expect(descResult.items).toBeDefined();-- // If we have multiple events, verify the order is different- if (ascResult.items.length > 1 && descResult.items.length > 1) {- // First event in ascending should be oldest- // First event in descending should be newest- expect(ascResult.items[0].id).not.toBe(descResult.items[0].id);- }-- // Cleanup- await conversation.close();- },- config?.testTimeout || 120000- );- });-});diff --git a/vendor/openhands-typescript-client/src/__tests__/integration/bash.integration.test.ts b/vendor/openhands-typescript-client/src/__tests__/integration/bash.integration.test.tsdeleted file mode 100644index 1c31e6be14..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/integration/bash.integration.test.ts+++ /dev/null@@ -1,87 +0,0 @@-import { BashOutput, BashWebSocketClient, Workspace } from '../../index';-import { getServerTestConfig } from './test-config';-import { waitFor, sleep } from './test-utils';--const config = getServerTestConfig();--describe('Bash API Integration Tests', () => {- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });- const bash = workspace.bash;-- afterAll(() => {- workspace.close();- });-- it(- 'supports start, search, get, batch-get, execute, and clear bash endpoints',- async () => {- await bash.clearEvents();-- const command = await bash.startCommand('printf "bash-search-test"', undefined, 5);- let outputEvent: BashOutput | undefined;-- await waitFor(- async () => {- const page = await bash.searchEvents({ command_id__eq: command.id, limit: 20 });- outputEvent = page.items.find((event) => event.kind === 'BashOutput') as- | BashOutput- | undefined;- return Boolean(outputEvent?.exit_code !== undefined);- },- { timeout: config.testTimeout, interval: 250, message: 'bash output was not produced' }- );-- const fetchedCommand = await bash.getEvent(command.id);- const batch = await bash.getEvents([command.id, outputEvent!.id]);- const executeResult = await bash.executeCommand('printf "bash-execute-test"');- const cleared = await bash.clearEvents();-- expect(fetchedCommand.id).toBe(command.id);- expect(batch[0]?.id).toBe(command.id);- expect(batch[1]?.id).toBe(outputEvent!.id);- expect(outputEvent?.stdout).toContain('bash-search-test');- expect(executeResult.stdout).toContain('bash-execute-test');- expect(cleared.cleared_count).toBeGreaterThanOrEqual(1);- },- config.testTimeout- );-- it(- 'streams bash events over the websocket endpoint',- async () => {- const receivedEvents: Array<{ kind?: string; stdout?: string | null }> = [];- const wsClient = new BashWebSocketClient({- host: config.agentServerUrl,- callback: (event) => {- receivedEvents.push(event);- },- });-- try {- wsClient.start();- await sleep(500);- await bash.startCommand('printf "bash-websocket-test"', undefined, 5);-- await waitFor(- () =>- receivedEvents.some(- (event) =>- event.kind === 'BashOutput' && event.stdout?.includes('bash-websocket-test')- ),- {- timeout: config.testTimeout,- interval: 250,- message: 'bash websocket output was not received',- }- );- } finally {- wsClient.stop();- await bash.clearEvents().catch(() => undefined);- }- },- config.testTimeout- );-});diff --git a/vendor/openhands-typescript-client/src/__tests__/integration/conversation.integration.test.ts b/vendor/openhands-typescript-client/src/__tests__/integration/conversation.integration.test.tsdeleted file mode 100644index 91dbc64b6f..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/integration/conversation.integration.test.ts+++ /dev/null@@ -1,641 +0,0 @@-/**- * Integration tests for RemoteConversation and Conversation- *- * Tests conversation lifecycle including creation, sending messages,- * running the agent, and receiving events against a real agent-server.- *- * NOTE: Some tests in this file are skipped by default because they depend on- * LLM behavior which is non-deterministic and can be slow.- */--import {- Conversation,- RemoteConversation,- Workspace,- Agent,- Event,- AgentExecutionStatus,-} from '../../index';-import { getTestConfig, skipIfNoConfig, createTestLLMConfig } from './test-config';-import {- waitFor,- waitForAgentIdle,- sleep,- workspaceFileExists,- readWorkspaceFile,- deleteWorkspaceFile,- uniqueFileName,-} from './test-utils';--const SKIP_TESTS = skipIfNoConfig();-// Skip flaky tests that depend on LLM behavior in CI-const SKIP_FLAKY_TESTS = process.env.SKIP_FLAKY_TESTS !== 'false';--describe('Conversation Integration Tests', () => {- let config: ReturnType<typeof getTestConfig>;-- beforeAll(() => {- if (SKIP_TESTS) {- console.warn('Skipping integration tests: LLM_API_KEY and LLM_MODEL not set');- return;- }- config = getTestConfig();- });-- describe('Conversation Creation', () => {- it(- 'should create a new conversation',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);-- // Start the conversation- await conversation.start();-- expect(conversation).toBeInstanceOf(RemoteConversation);- expect(conversation.id).toBeDefined();- expect(typeof conversation.id).toBe('string');- expect(conversation.id.length).toBeGreaterThan(0);-- // Cleanup- await conversation.close();- },- config?.testTimeout || 60000- );-- it(- 'should create conversation with initial message',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);-- // Start with initial message- await conversation.start({- initialMessage: 'Hello, this is an initial message.',- maxIterations: 5,- });-- expect(conversation.id).toBeDefined();-- // Cleanup- await conversation.close();- },- config?.testTimeout || 60000- );- });-- describe('Conversation State', () => {- it(- 'should access conversation state after creation',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start();-- // Access state- const state = conversation.state;- expect(state).toBeDefined();- expect(state.id).toBe(conversation.id);-- // Get agent status- const status = await state.getAgentStatus();- expect(Object.values(AgentExecutionStatus)).toContain(status);-- // Cleanup- await conversation.close();- },- config?.testTimeout || 60000- );-- it(- 'should get conversation stats',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start();-- const stats = await conversation.conversationStats();- expect(stats).toBeDefined();-- // Cleanup- await conversation.close();- },- config?.testTimeout || 60000- );- });-- describe('Sending Messages', () => {- it(- 'should send a string message',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start();-- // Send message (should not throw)- await conversation.sendMessage('What is 2 + 2?');-- // Cleanup- await conversation.close();- },- config?.testTimeout || 60000- );-- it(- 'should send a Message object',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start();-- // Send message as Message object- await conversation.sendMessage({- role: 'user',- content: [{ type: 'text', text: 'Hello from Message object' }],- });-- // Cleanup- await conversation.close();- },- config?.testTimeout || 60000- );- });-- describe('Running Agent', () => {- // These tests are flaky because they depend on LLM behavior- const testFn = SKIP_FLAKY_TESTS ? it.skip : it;-- testFn(- 'should run the agent after sending a message',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 10 });-- // Send a simple message- await conversation.sendMessage('Reply with only the word "ACKNOWLEDGED".');-- // Run the agent- await conversation.run();-- // Wait for agent to finish (poll status)- await waitForAgentIdle(async () => {- return await conversation.state.getAgentStatus();- });-- const finalStatus = await conversation.state.getAgentStatus();- expect([AgentExecutionStatus.IDLE, AgentExecutionStatus.FINISHED]).toContain(finalStatus);-- // Cleanup- await conversation.close();- },- config?.testTimeout || 120000- );-- it(- 'should pause the agent',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 50 });-- // Send a message that might take a while- await conversation.sendMessage('Count from 1 to 100, saying each number.');-- // Run the agent- await conversation.run();-- // Wait a bit then pause- await sleep(1000);-- // Pause (should not throw, even if agent is idle)- await conversation.pause();-- // Cleanup- await conversation.close();- },- config?.testTimeout || 60000- );- });-- describe('Event Handling with Callbacks', () => {- it(- 'should receive events via callback',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const receivedEvents: Event[] = [];- const callback = (event: Event) => {- receivedEvents.push(event);- };-- const conversation = new Conversation(agent, workspace, { callback });- await conversation.start({ maxIterations: 10 });-- // Start WebSocket client for events- await conversation.startWebSocketClient();-- // Give a moment for connection to establish- await sleep(500);-- // Send a message and run- await conversation.sendMessage('Say "Hello Test!" exactly.');- await conversation.run();-- // Wait for agent to finish- await waitForAgentIdle(async () => {- return await conversation.state.getAgentStatus();- });-- // Wait for events to be received- await sleep(2000);-- // Should have received some events- expect(receivedEvents.length).toBeGreaterThan(0);-- // Cleanup- await conversation.stopWebSocketClient();- await conversation.close();- },- config?.testTimeout || 120000- );-- it(- 'should track different event types',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const eventTypes = new Set<string>();- const callback = (event: Event) => {- eventTypes.add(event.kind);- };-- const conversation = new Conversation(agent, workspace, { callback });- await conversation.start({ maxIterations: 10 });-- await conversation.startWebSocketClient();- await sleep(500);-- await conversation.sendMessage('What time is it?');- await conversation.run();-- await waitForAgentIdle(async () => {- return await conversation.state.getAgentStatus();- });-- await sleep(2000);-- // Should have received multiple event types- expect(eventTypes.size).toBeGreaterThan(0);-- // Cleanup- await conversation.stopWebSocketClient();- await conversation.close();- },- config?.testTimeout || 120000- );- });-- describe('Events List', () => {- // These tests are flaky because they depend on LLM behavior- const testFn = SKIP_FLAKY_TESTS ? it.skip : it;-- testFn(- 'should fetch events from conversation state',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 10 });-- await conversation.sendMessage('Just say "OK".');- await conversation.run();-- await waitForAgentIdle(async () => {- return await conversation.state.getAgentStatus();- });-- // Fetch events from state- const events = await conversation.state.events.getEvents();- expect(events.length).toBeGreaterThan(0);-- // Events should have required properties- for (const event of events) {- expect(event.id).toBeDefined();- expect(event.kind).toBeDefined();- expect(event.timestamp).toBeDefined();- }-- // Cleanup- await conversation.close();- },- config?.testTimeout || 120000- );- });-- describe('Title Generation', () => {- // These tests are flaky because they depend on LLM behavior- const testFn = SKIP_FLAKY_TESTS ? it.skip : it;-- testFn(- 'should generate a conversation title',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 10 });-- // Send a message about a specific topic- await conversation.sendMessage('Tell me about TypeScript testing best practices.');- await conversation.run();-- await waitForAgentIdle(async () => {- return await conversation.state.getAgentStatus();- });-- // Generate title- const title = await conversation.generateTitle(50);- expect(title).toBeDefined();- expect(typeof title).toBe('string');- expect(title.length).toBeGreaterThan(0);- expect(title.length).toBeLessThanOrEqual(50);-- // Cleanup- await conversation.close();- },- config?.testTimeout || 120000- );- });-- describe('Secrets', () => {- it(- 'should update secrets',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 5 });-- // Update secrets (should not throw)- await conversation.updateSecrets({- TEST_SECRET: 'test-value',- ANOTHER_SECRET: () => 'dynamic-value',- });-- // Cleanup- await conversation.close();- },- config?.testTimeout || 60000- );- });-- describe('Agent Task Execution', () => {- // Skip flaky tests that depend on LLM behavior in CI- const SKIP_FLAKY_TESTS = process.env.SKIP_FLAKY_TESTS !== 'false';- const testFn = SKIP_FLAKY_TESTS ? it.skip : it;-- testFn(- 'should execute task that creates a file',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('agent-created');- const fullPath = `${config.agentWorkspaceDir}/${fileName}`;- const expectedContent = 'Hello from the agent!';-- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 20 });-- // Ask the agent to create a file- await conversation.sendMessage(- `Create a file at "${fullPath}" with exactly this content: "${expectedContent}". Use the terminal tool to create the file with echo.`- );- await conversation.run();-- // Wait for agent to complete- await waitForAgentIdle(- async () => {- return await conversation.state.getAgentStatus();- },- { timeout: 90000 }- );-- // Wait for file system to sync- await sleep(1000);-- // Check if file was created in the mounted workspace- const fileExists = workspaceFileExists(fileName);- expect(fileExists).toBe(true);-- if (fileExists) {- const content = readWorkspaceFile(fileName);- expect(content.trim()).toContain(expectedContent);- deleteWorkspaceFile(fileName);- }-- // Cleanup- await conversation.close();- },- config?.testTimeout || 180000- );-- it(- 'should execute task that reads an existing file',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('to-read');- const fullPath = `${config.agentWorkspaceDir}/${fileName}`;- const fileContent = 'This file contains the secret number: 42';-- // Create the file first- const agent = new Agent({- llm: createTestLLMConfig(),- });-- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- // Create file via workspace- await workspace.uploadText(fileContent, fullPath, fileName);- await sleep(500);-- const receivedEvents: Event[] = [];- const callback = (event: Event) => {- receivedEvents.push(event);- };-- const conversation = new Conversation(agent, workspace, { callback });- await conversation.start({ maxIterations: 20 });- await conversation.startWebSocketClient();- await sleep(500);-- // Ask the agent to read the file and tell us what's in it- await conversation.sendMessage(- `Read the file at "${fullPath}" and tell me what secret number is mentioned in it.`- );- await conversation.run();-- // Wait for agent to complete- await waitForAgentIdle(- async () => {- return await conversation.state.getAgentStatus();- },- { timeout: 90000 }- );-- // Wait for events- await sleep(2000);-- // Check that agent received events (indicating activity)- expect(receivedEvents.length).toBeGreaterThan(0);-- // Look for message events that might contain the answer- const messageEvents = receivedEvents.filter((e) => e.kind === 'MessageEvent');- expect(messageEvents.length).toBeGreaterThan(0);-- // Cleanup- deleteWorkspaceFile(fileName);- await conversation.stopWebSocketClient();- await conversation.close();- },- config?.testTimeout || 180000- );- });-});diff --git a/vendor/openhands-typescript-client/src/__tests__/integration/deterministic-api.integration.test.ts b/vendor/openhands-typescript-client/src/__tests__/integration/deterministic-api.integration.test.tsdeleted file mode 100644index 1b5b6ae2c5..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/integration/deterministic-api.integration.test.ts+++ /dev/null@@ -1,211 +0,0 @@-import { Agent, ConversationManager, HttpError, Workspace } from '../../index';-import { getServerTestConfig } from './test-config';-import {- deleteWorkspaceFile,- readWorkspaceFile,- sleep,- uniqueFileName,- workspaceFileExists,-} from './test-utils';--const config = getServerTestConfig();--function createDummyAgent(): Agent {- return new Agent({- llm: {- model: 'dummy/model',- api_key: 'dummy-key',- },- });-}--describe('Deterministic API Integration Tests', () => {- const manager = new ConversationManager({- host: config.agentServerUrl,- });- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- afterAll(() => {- manager.close();- workspace.close();- });-- it(- 'reads server, metadata, settings, tools, and skills endpoints',- async () => {- const root = await manager.server.getRoot<Record<string, unknown>>();- const alive = await manager.server.getAlive();- const health = await manager.server.getHealth();- const ready = await manager.server.getReady();- const info = await manager.server.getServerInfo();-- const providers = await manager.llm.getProviders();- const models = await manager.llm.getModels();- const verifiedModels = await manager.llm.getVerifiedModels();- const agentSchema = await manager.settings.getAgentSchema();- const conversationSchema = await manager.settings.getConversationSchema();- const tools = await manager.tools.listTools();- const skills = await manager.skills.getSkills({- load_public: false,- load_user: false,- load_project: false,- load_org: false,- });- const vscodeStatus = await manager.vscode.getStatus();-- expect(root).toBeDefined();- expect(alive.status).toBe('ok');- expect(health).toBe('OK');- expect(['ready', 'initializing']).toContain(ready.status);- expect(info.version).toBeDefined();- expect(Array.isArray(providers)).toBe(true);- expect(Array.isArray(models)).toBe(true);- expect(typeof verifiedModels).toBe('object');- expect(agentSchema.model_name).toBeTruthy();- expect(conversationSchema.model_name).toBeTruthy();- expect(Array.isArray(tools)).toBe(true);- expect(Array.isArray(skills.skills)).toBe(true);- expect(typeof vscodeStatus.enabled).toBe('boolean');-- try {- const desktopUrl = await manager.desktop.getUrl();- expect(desktopUrl === null || typeof desktopUrl === 'string').toBe(true);- } catch (error) {- expect(error).toBeInstanceOf(HttpError);- expect((error as HttpError).status).toBe(503);- }- },- config.testTimeout- );-- it(- 'supports deterministic conversation, event, fork, and ACP endpoints',- async () => {- const beforeCount = await manager.countConversations();- const conversation = await manager.createConversation(createDummyAgent(), {- workingDir: config.agentWorkspaceDir,- });- let forkedId: string | undefined;- let acpConversationId: string | undefined;-- try {- const afterCount = await manager.countConversations();- expect(afterCount).toBeGreaterThanOrEqual(beforeCount);-- const batch = await manager.getConversations([conversation.id]);- expect(batch[0]?.id).toBe(conversation.id);-- await conversation.sendMessage('Deterministic integration message');- const searchResult = await conversation.state.events.search({- limit: 10,- sort_order: 'TIMESTAMP_DESC',- });- expect(searchResult.items.length).toBeGreaterThan(0);-- const eventId = searchResult.items[0].id;- const fetchedEvent = await conversation.state.events.getEventById(eventId);- const fetchedBatch = await conversation.state.events.getEventsById([eventId]);- expect(fetchedEvent.id).toBe(eventId);- expect(fetchedBatch[0]?.id).toBe(eventId);-- const finalResponse = await conversation.getAgentFinalResponse();- expect(typeof finalResponse).toBe('string');-- const trajectoryFile = `/workspace/conversations/${conversation.id.replace(/-/g, '')}.zip`;- await workspace.executeCommand(- `mkdir -p /workspace/conversations && printf 'trajectory-data' > ${trajectoryFile}`- );- const trajectory = await conversation.downloadTrajectory();- expect(trajectory).toBeInstanceOf(Blob);- expect(await trajectory.text()).toContain('trajectory-data');- await workspace.executeCommand(`rm -f ${trajectoryFile}`);-- const forkedConversation = await conversation.fork({- title: 'Forked from deterministic test',- });- forkedId = forkedConversation.id;- expect(forkedConversation.id).not.toBe(conversation.id);-- await expect(- conversation.switchProfile('__profile_that_should_not_exist__')- ).rejects.toBeInstanceOf(HttpError);-- const acpConversation = await manager.acp.createConversation(- {- kind: 'Agent',- llm: { model: 'dummy/model', api_key: 'dummy-key' },- },- { workingDir: config.agentWorkspaceDir }- );- acpConversationId = acpConversation.id;-- const acpCount = await manager.acp.countConversations();- const fetchedACP = await manager.acp.getConversation(acpConversation.id);- const batchACP = await manager.acp.getConversations([acpConversation.id]);- expect(acpCount).toBeGreaterThan(0);- expect(fetchedACP.id).toBe(acpConversation.id);- expect(batchACP[0]?.id).toBe(acpConversation.id);- } finally {- if (forkedId) {- await manager.deleteConversation(forkedId).catch(() => undefined);- }- if (acpConversationId) {- await manager.deleteConversation(acpConversationId).catch(() => undefined);- }- await manager.deleteConversation(conversation.id).catch(() => undefined);- }- },- config.testTimeout- );-- it(- 'uses preferred workspace file and git query endpoints',- async () => {- const fileName = uniqueFileName('deterministic-workspace');- const fileContent = 'workspace content from deterministic test';- const destinationPath = `${config.agentWorkspaceDir}/${fileName}`;- const repoDir = `${config.agentWorkspaceDir}/git-query-test`;- const trackedFile = `${repoDir}/tracked.txt`;-- try {- const uploadResult = await workspace.uploadText(fileContent, destinationPath, fileName);- expect(uploadResult.success).toBe(true);-- await sleep(300);- expect(workspaceFileExists(fileName)).toBe(true);- expect(readWorkspaceFile(fileName)).toBe(fileContent);-- const downloaded = await workspace.downloadAsText(destinationPath);- expect(downloaded).toBe(fileContent);-- await workspace.executeCommand(- [- `rm -rf ${repoDir}`,- `mkdir -p ${repoDir}`,- `cd ${repoDir}`,- 'git init',- 'git config user.email [email protected]',- 'git config user.name tester',- 'printf "line1\\n" > tracked.txt',- 'git add tracked.txt',- 'git commit -m initial',- 'printf "line2\\n" >> tracked.txt',- ].join(' && ')- );-- const changes = await workspace.gitChanges(repoDir);- const diff = await workspace.gitDiff(trackedFile);-- expect(changes.some((change) => String(change.path).includes('tracked.txt'))).toBe(true);- expect(diff.modified || diff.diff).toContain('line2');- } finally {- deleteWorkspaceFile(fileName);- await workspace.executeCommand(`rm -rf ${repoDir}`);- }- },- config.testTimeout- );-});diff --git a/vendor/openhands-typescript-client/src/__tests__/integration/e2e.integration.test.ts b/vendor/openhands-typescript-client/src/__tests__/integration/e2e.integration.test.tsdeleted file mode 100644index 483c5b976a..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/integration/e2e.integration.test.ts+++ /dev/null@@ -1,607 +0,0 @@-/**- * End-to-end integration tests for complete agent workflows- *- * Tests full scenarios from task to completion, verifying actual- * changes in the mounted workspace.- *- * NOTE: Many tests in this file are skipped by default because they depend on- * LLM behavior which is non-deterministic and can be slow. These tests are- * useful for local development and manual verification but are not suitable- * for CI due to their flaky nature.- *- * To run all tests including skipped ones locally:- * - Set SKIP_FLAKY_TESTS=false in your environment- * - Ensure you have valid LLM credentials- */--import { Conversation, Workspace, Agent, Event, AgentExecutionStatus } from '../../index';-import { getTestConfig, skipIfNoConfig, createTestLLMConfig } from './test-config';-import {- waitForAgentIdle,- sleep,- workspaceFileExists,- readWorkspaceFile,- writeWorkspaceFile,- deleteWorkspaceFile,- uniqueFileName,- uniqueDirName,- randomContent,-} from './test-utils';-import * as fs from 'fs';-import * as path from 'path';--const SKIP_TESTS = skipIfNoConfig();-// Skip flaky tests that depend on LLM behavior in CI-const SKIP_FLAKY_TESTS = process.env.SKIP_FLAKY_TESTS !== 'false';--describe('End-to-End Integration Tests', () => {- let config: ReturnType<typeof getTestConfig>;-- beforeAll(() => {- if (SKIP_TESTS) {- console.warn('Skipping integration tests: LLM_API_KEY and LLM_MODEL not set');- return;- }- config = getTestConfig();- });-- describe('File Creation Tasks', () => {- // These tests are flaky because they depend on LLM behavior- const testFn = SKIP_FLAKY_TESTS ? it.skip : it;-- testFn(- 'should create a simple text file via agent',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('e2e-create');- const expectedContent = 'Hello from e2e test';- const fullPath = `${config.agentWorkspaceDir}/${fileName}`;-- const agent = new Agent({ llm: createTestLLMConfig() });- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 20 });-- await conversation.sendMessage(- `Create a file at "${fullPath}" containing exactly this text: "${expectedContent}". ` +- `Use echo command to create it.`- );- await conversation.run();-- await waitForAgentIdle(async () => await conversation.state.getAgentStatus(), {- timeout: 120000,- });-- await sleep(1000);-- expect(workspaceFileExists(fileName)).toBe(true);- const content = readWorkspaceFile(fileName);- expect(content.trim()).toContain(expectedContent);-- deleteWorkspaceFile(fileName);- await conversation.close();- },- config?.testTimeout || 180000- );-- testFn(- 'should create a Python file with specific content',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('e2e-python', 'py');- const fullPath = `${config.agentWorkspaceDir}/${fileName}`;-- const agent = new Agent({ llm: createTestLLMConfig() });- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 20 });-- await conversation.sendMessage(- `Create a Python file at "${fullPath}" that defines a function called "add" ` +- `which takes two parameters and returns their sum.`- );- await conversation.run();-- await waitForAgentIdle(async () => await conversation.state.getAgentStatus(), {- timeout: 120000,- });-- await sleep(1000);-- expect(workspaceFileExists(fileName)).toBe(true);- const content = readWorkspaceFile(fileName);- expect(content).toContain('def add');- expect(content).toContain('return');-- deleteWorkspaceFile(fileName);- await conversation.close();- },- config?.testTimeout || 180000- );-- testFn(- 'should create a JSON file with structured data',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('e2e-json', 'json');- const fullPath = `${config.agentWorkspaceDir}/${fileName}`;-- const agent = new Agent({ llm: createTestLLMConfig() });- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 20 });-- await conversation.sendMessage(- `Create a JSON file at "${fullPath}" with an object containing: ` +- `name="test", version="1.0.0", and tags array with "typescript" and "testing".`- );- await conversation.run();-- await waitForAgentIdle(async () => await conversation.state.getAgentStatus(), {- timeout: 120000,- });-- await sleep(1000);-- expect(workspaceFileExists(fileName)).toBe(true);- const content = readWorkspaceFile(fileName);- const parsed = JSON.parse(content);- expect(parsed.name).toBe('test');- expect(parsed.version).toBe('1.0.0');- expect(parsed.tags).toContain('typescript');- expect(parsed.tags).toContain('testing');-- deleteWorkspaceFile(fileName);- await conversation.close();- },- config?.testTimeout || 180000- );- });-- describe('File Modification Tasks', () => {- // These tests are flaky because they depend on LLM behavior- const testFn = SKIP_FLAKY_TESTS ? it.skip : it;-- testFn(- 'should read and modify an existing file',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('e2e-modify');- const fullPath = `${config.agentWorkspaceDir}/${fileName}`;- const originalContent = 'Line 1\nLine 2\nLine 3';-- // Create original file- writeWorkspaceFile(fileName, originalContent);-- const agent = new Agent({ llm: createTestLLMConfig() });- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 25 });-- await conversation.sendMessage(- `Read the file at "${fullPath}" and add a new line "Line 4" at the end.`- );- await conversation.run();-- await waitForAgentIdle(async () => await conversation.state.getAgentStatus(), {- timeout: 120000,- });-- await sleep(1000);-- const modifiedContent = readWorkspaceFile(fileName);- expect(modifiedContent).toContain('Line 1');- expect(modifiedContent).toContain('Line 4');-- deleteWorkspaceFile(fileName);- await conversation.close();- },- config?.testTimeout || 180000- );-- testFn(- 'should append to an existing file',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('e2e-append');- const fullPath = `${config.agentWorkspaceDir}/${fileName}`;- const originalContent = 'Original content.';-- writeWorkspaceFile(fileName, originalContent);-- const agent = new Agent({ llm: createTestLLMConfig() });- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 20 });-- await conversation.sendMessage(- `Append the text " Appended content." to the file at "${fullPath}" using echo with >>.`- );- await conversation.run();-- await waitForAgentIdle(async () => await conversation.state.getAgentStatus(), {- timeout: 120000,- });-- await sleep(1000);-- const content = readWorkspaceFile(fileName);- expect(content).toContain('Original content');- expect(content).toContain('Appended content');-- deleteWorkspaceFile(fileName);- await conversation.close();- },- config?.testTimeout || 180000- );- });-- describe('File Deletion Tasks', () => {- // These tests are flaky because they depend on LLM behavior- const testFn = SKIP_FLAKY_TESTS ? it.skip : it;-- testFn(- 'should delete an existing file',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('e2e-delete');- const fullPath = `${config.agentWorkspaceDir}/${fileName}`;- writeWorkspaceFile(fileName, 'Content to delete');-- expect(workspaceFileExists(fileName)).toBe(true);-- const agent = new Agent({ llm: createTestLLMConfig() });- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 15 });-- await conversation.sendMessage(`Delete the file at "${fullPath}" using the rm command.`);- await conversation.run();-- await waitForAgentIdle(async () => await conversation.state.getAgentStatus(), {- timeout: 90000,- });-- await sleep(1000);-- expect(workspaceFileExists(fileName)).toBe(false);-- await conversation.close();- },- config?.testTimeout || 120000- );- });-- describe('Directory Operations', () => {- // These tests are flaky because they depend on LLM behavior- const testFn = SKIP_FLAKY_TESTS ? it.skip : it;-- testFn(- 'should create a directory and file inside it',- async () => {- if (SKIP_TESTS) return;-- const dirName = uniqueDirName('e2e-dir');- const fileName = 'test.txt';- const fullDirPath = `${config.agentWorkspaceDir}/${dirName}`;- const fullFilePath = `${fullDirPath}/${fileName}`;-- const agent = new Agent({ llm: createTestLLMConfig() });- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 20 });-- await conversation.sendMessage(- `Create a directory at "${fullDirPath}" and create a file at "${fullFilePath}" ` +- `with the content "File in directory".`- );- await conversation.run();-- await waitForAgentIdle(async () => await conversation.state.getAgentStatus(), {- timeout: 120000,- });-- await sleep(1000);-- const filePath = path.join(dirName, fileName);- expect(workspaceFileExists(filePath)).toBe(true);- const content = readWorkspaceFile(filePath);- expect(content).toContain('File in directory');-- // Cleanup- deleteWorkspaceFile(filePath);- const hostDirPath = path.join(config.hostWorkspaceDir, dirName);- if (fs.existsSync(hostDirPath)) {- fs.rmSync(hostDirPath, { recursive: true });- }-- await conversation.close();- },- config?.testTimeout || 180000- );-- testFn(- 'should list directory contents',- async () => {- if (SKIP_TESTS) return;-- // Create some files- const file1 = uniqueFileName('list1');- const file2 = uniqueFileName('list2');- writeWorkspaceFile(file1, 'Content 1');- writeWorkspaceFile(file2, 'Content 2');-- const agent = new Agent({ llm: createTestLLMConfig() });- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const receivedEvents: Event[] = [];- const conversation = new Conversation(agent, workspace, {- callback: (e) => receivedEvents.push(e),- });- await conversation.start({ maxIterations: 15 });- await conversation.startWebSocketClient();- await sleep(500);-- await conversation.sendMessage(`List all files in the current directory using ls command.`);- await conversation.run();-- await waitForAgentIdle(async () => await conversation.state.getAgentStatus(), {- timeout: 90000,- });-- await sleep(2000);-- // Check that we received observation events with the ls output- const obsEvents = receivedEvents.filter((e) => e.kind === 'ObservationEvent');- expect(obsEvents.length).toBeGreaterThan(0);-- // Cleanup- deleteWorkspaceFile(file1);- deleteWorkspaceFile(file2);-- await conversation.stopWebSocketClient();- await conversation.close();- },- config?.testTimeout || 120000- );- });-- describe('Multi-step Tasks', () => {- // These tests are flaky because they depend on LLM behavior- const testFn = SKIP_FLAKY_TESTS ? it.skip : it;-- testFn(- 'should complete a task with multiple steps',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('e2e-multistep', 'txt');- const fullPath = `${config.agentWorkspaceDir}/${fileName}`;-- const agent = new Agent({ llm: createTestLLMConfig() });- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 30 });-- await conversation.sendMessage(- `Do the following steps:- 1. Create a file at "${fullPath}" with the content "Step 1 done"- 2. Append " - Step 2 done" to the file- 3. Read the file and confirm it contains both steps`- );- await conversation.run();-- await waitForAgentIdle(async () => await conversation.state.getAgentStatus(), {- timeout: 150000,- });-- await sleep(1000);-- expect(workspaceFileExists(fileName)).toBe(true);- const content = readWorkspaceFile(fileName);- expect(content).toContain('Step 1');- expect(content).toContain('Step 2');-- deleteWorkspaceFile(fileName);- await conversation.close();- },- config?.testTimeout || 240000- );- });-- describe('Error Recovery', () => {- // These tests are flaky because they depend on LLM behavior- const testFn = SKIP_FLAKY_TESTS ? it.skip : it;-- testFn(- 'should handle requests for non-existent files gracefully',- async () => {- if (SKIP_TESTS) return;-- const agent = new Agent({ llm: createTestLLMConfig() });- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const receivedEvents: Event[] = [];- const conversation = new Conversation(agent, workspace, {- callback: (e) => receivedEvents.push(e),- });- await conversation.start({ maxIterations: 15 });- await conversation.startWebSocketClient();- await sleep(500);-- await conversation.sendMessage(- `Try to read the file "definitely-does-not-exist-${Date.now()}.txt" and ` +- `report whether it exists or not.`- );- await conversation.run();-- await waitForAgentIdle(async () => await conversation.state.getAgentStatus(), {- timeout: 90000,- });-- await sleep(2000);-- // Agent should have completed (not crashed) - error is also acceptable- const finalStatus = await conversation.state.getAgentStatus();- expect([- AgentExecutionStatus.IDLE,- AgentExecutionStatus.FINISHED,- AgentExecutionStatus.ERROR,- ]).toContain(finalStatus);-- await conversation.stopWebSocketClient();- await conversation.close();- },- config?.testTimeout || 120000- );- });-- describe('Conversation Continuation', () => {- // These tests are flaky because they depend on LLM behavior- const testFn = SKIP_FLAKY_TESTS ? it.skip : it;-- testFn(- 'should continue conversation with follow-up messages',- async () => {- if (SKIP_TESTS) return;-- const fileName1 = uniqueFileName('e2e-cont1');- const fileName2 = uniqueFileName('e2e-cont2');- const fullPath1 = `${config.agentWorkspaceDir}/${fileName1}`;- const fullPath2 = `${config.agentWorkspaceDir}/${fileName2}`;-- const agent = new Agent({ llm: createTestLLMConfig() });- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 40 });-- // First task- await conversation.sendMessage(- `Create a file at "${fullPath1}" with content "First file".`- );- await conversation.run();-- await waitForAgentIdle(async () => await conversation.state.getAgentStatus(), {- timeout: 90000,- });-- expect(workspaceFileExists(fileName1)).toBe(true);-- // Second task in same conversation- await conversation.sendMessage(- `Now create another file at "${fullPath2}" with content "Second file".`- );- await conversation.run();-- await waitForAgentIdle(async () => await conversation.state.getAgentStatus(), {- timeout: 90000,- });-- await sleep(1000);-- expect(workspaceFileExists(fileName2)).toBe(true);-- // Both files should exist- expect(workspaceFileExists(fileName1)).toBe(true);- expect(workspaceFileExists(fileName2)).toBe(true);-- // Cleanup- deleteWorkspaceFile(fileName1);- deleteWorkspaceFile(fileName2);- await conversation.close();- },- config?.testTimeout || 240000- );- });-- describe('Large Content Handling', () => {- // These tests are flaky because they depend on LLM behavior- const testFn = SKIP_FLAKY_TESTS ? it.skip : it;-- testFn(- 'should handle reading a large file',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('e2e-large');- // Create a file with multiple lines- const lines = Array.from({ length: 50 }, (_, i) => `Line ${i + 1}: ${randomContent(50)}`);- writeWorkspaceFile(fileName, lines.join('\n'));-- const agent = new Agent({ llm: createTestLLMConfig() });- const workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });-- const conversation = new Conversation(agent, workspace);- await conversation.start({ maxIterations: 20 });-- await conversation.sendMessage(- `Read the file "${fileName}" and tell me how many lines it has.`- );- await conversation.run();-- await waitForAgentIdle(async () => await conversation.state.getAgentStatus(), {- timeout: 90000,- });-- // Agent should complete successfully- const finalStatus = await conversation.state.getAgentStatus();- expect([AgentExecutionStatus.IDLE, AgentExecutionStatus.FINISHED]).toContain(finalStatus);-- deleteWorkspaceFile(fileName);- await conversation.close();- },- config?.testTimeout || 120000- );- });-});diff --git a/vendor/openhands-typescript-client/src/__tests__/integration/http-client.integration.test.ts b/vendor/openhands-typescript-client/src/__tests__/integration/http-client.integration.test.tsdeleted file mode 100644index 51fa926799..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/integration/http-client.integration.test.ts+++ /dev/null@@ -1,297 +0,0 @@-/**- * Integration tests for HttpClient- *- * Tests HTTP client functionality against a real agent-server.- */--import { HttpClient, HttpError } from '../../index';-import { getTestConfig, skipIfNoConfig } from './test-config';--const SKIP_TESTS = skipIfNoConfig();--type ServerInfoResponse = {- version?: string;-};--type CreateConversationResponse = {- id: string;-};--type ConversationResourceResponse = {- id?: string;- full_state?: {- id?: string;- };-};--describe('HttpClient Integration Tests', () => {- let client: HttpClient;- let config: ReturnType<typeof getTestConfig>;-- beforeAll(() => {- if (SKIP_TESTS) {- console.warn('Skipping integration tests: LLM_API_KEY and LLM_MODEL not set');- return;- }- config = getTestConfig();- client = new HttpClient({- baseUrl: config.agentServerUrl,- timeout: 30000,- });- });-- afterAll(() => {- if (client) {- client.close();- }- });-- describe('Health and Server Info', () => {- it(- 'should check server alive status',- async () => {- if (SKIP_TESTS) return;-- const response = await client.get('/alive');-- expect(response.status).toBe(200);- },- config?.testTimeout || 30000- );-- it(- 'should check server health',- async () => {- if (SKIP_TESTS) return;-- const response = await client.get('/health');-- expect(response.status).toBe(200);- },- config?.testTimeout || 30000- );-- it(- 'should get server info',- async () => {- if (SKIP_TESTS) return;-- const response = await client.get<ServerInfoResponse>('/server_info');-- expect(response.status).toBe(200);- expect(response.data).toBeDefined();- // Server info should have a version- expect(response.data.version).toBeDefined();- },- config?.testTimeout || 30000- );- });-- describe('GET Requests', () => {- it(- 'should make GET request with query params',- async () => {- if (SKIP_TESTS) return;-- // Use the search endpoint which supports query params- const response = await client.get('/api/conversations/search', {- params: { limit: 10 },- });-- expect(response.status).toBe(200);- expect(response.data).toBeDefined();- },- config?.testTimeout || 30000- );-- it(- 'should handle 404 responses',- async () => {- if (SKIP_TESTS) return;-- try {- // Use a valid UUID format but non-existent ID- await client.get('/api/conversations/00000000-0000-0000-0000-000000000000');- fail('Expected HttpError to be thrown');- } catch (error) {- expect(error).toBeInstanceOf(HttpError);- const httpError = error as HttpError;- expect(httpError.status).toBe(404);- }- },- config?.testTimeout || 30000- );- });-- describe('POST Requests', () => {- it(- 'should make POST request with JSON body',- async () => {- if (SKIP_TESTS) return;-- // Create a conversation to test POST- const response = await client.post<CreateConversationResponse>('/api/conversations', {- agent: {- kind: 'Agent',- llm: {- model: config.llmModel,- api_key: config.llmApiKey,- ...(config.llmBaseUrl && { base_url: config.llmBaseUrl }),- },- },- max_iterations: 5,- stuck_detection: true,- workspace: {- type: 'local',- working_dir: config.agentWorkspaceDir,- },- });-- // Accept both 200 and 201 (Created) as valid responses for resource creation- expect([200, 201]).toContain(response.status);- expect(response.data).toBeDefined();- expect(response.data.id).toBeDefined();- },- config?.testTimeout || 60000- );- });-- describe('Error Handling', () => {- it(- 'should handle malformed request body',- async () => {- if (SKIP_TESTS) return;-- try {- // Send request missing required fields- await client.post('/api/conversations', {});- fail('Expected HttpError to be thrown');- } catch (error) {- expect(error).toBeInstanceOf(HttpError);- const httpError = error as HttpError;- // Should get 422 (validation error) or 400 (bad request)- expect([400, 422]).toContain(httpError.status);- }- },- config?.testTimeout || 30000- );-- it(- 'should handle timeout configuration',- async () => {- if (SKIP_TESTS) return;-- const shortTimeoutClient = new HttpClient({- baseUrl: config.agentServerUrl,- timeout: 1, // 1ms timeout - should fail- });-- try {- await shortTimeoutClient.get('/health');- // If it succeeds, the server was very fast- } catch (error) {- // Timeout error expected- expect(error).toBeDefined();- } finally {- shortTimeoutClient.close();- }- },- config?.testTimeout || 30000- );- });-- describe('Response Headers', () => {- it(- 'should include response headers',- async () => {- if (SKIP_TESTS) return;-- const response = await client.get('/health');-- expect(response.headers).toBeDefined();- expect(typeof response.headers).toBe('object');- // Should have content-type header- expect(response.headers['content-type']).toBeDefined();- },- config?.testTimeout || 30000- );- });-- describe('Request Methods', () => {- let testConversationId: string;-- beforeAll(async () => {- if (SKIP_TESTS) return;-- // Create a conversation to test with- const response = await client.post<CreateConversationResponse>('/api/conversations', {- agent: {- kind: 'Agent',- llm: {- model: config.llmModel,- api_key: config.llmApiKey,- ...(config.llmBaseUrl && { base_url: config.llmBaseUrl }),- },- },- max_iterations: 5,- stuck_detection: true,- workspace: {- type: 'local',- working_dir: config.agentWorkspaceDir,- },- });-- testConversationId = response.data.id;- });-- it(- 'should make GET request for specific resource',- async () => {- if (SKIP_TESTS) return;-- const response = await client.get<ConversationResourceResponse>(- `/api/conversations/${testConversationId}`- );-- expect(response.status).toBe(200);- expect(response.data).toBeDefined();- // Handle both direct response and full_state wrapper- const conversationData = response.data.full_state || response.data;- expect(conversationData.id || response.data.id).toBe(testConversationId);- },- config?.testTimeout || 30000- );-- it(- 'should support custom request options',- async () => {- if (SKIP_TESTS) return;-- const response = await client.request({- method: 'GET',- url: `/api/conversations/${testConversationId}`,- timeout: 15000,- });-- expect(response.status).toBe(200);- },- config?.testTimeout || 30000- );-- it(- 'should send POST to events endpoint',- async () => {- if (SKIP_TESTS) return;-- const response = await client.post(`/api/conversations/${testConversationId}/events`, {- role: 'user',- content: [{ type: 'text', text: 'Test message via HttpClient' }],- run: false,- });-- expect(response.status).toBe(200);- },- config?.testTimeout || 30000- );- });-});diff --git a/vendor/openhands-typescript-client/src/__tests__/integration/index.ts b/vendor/openhands-typescript-client/src/__tests__/integration/index.tsdeleted file mode 100644index 286235ac43..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/integration/index.ts+++ /dev/null@@ -1,8 +0,0 @@-/**- * Integration tests index- *- * Export common utilities and configuration for use in tests.- */--export * from './test-config';-export * from './test-utils';diff --git a/vendor/openhands-typescript-client/src/__tests__/integration/setup.ts b/vendor/openhands-typescript-client/src/__tests__/integration/setup.tsdeleted file mode 100644index 85cb81f548..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/integration/setup.ts+++ /dev/null@@ -1,60 +0,0 @@-/**- * Integration test setup- *- * This file runs before all integration tests.- */--import { getServerTestConfig, skipIfNoConfig, getTestConfig } from './test-config';-import * as fs from 'fs';--beforeAll(async () => {- const serverConfig = getServerTestConfig();-- console.log('\nπ¦ Integration Test Configuration:');- console.log(` Agent Server URL: ${serverConfig.agentServerUrl}`);- console.log(` Agent Workspace Dir: ${serverConfig.agentWorkspaceDir}`);- console.log(` Host Workspace Dir: ${serverConfig.hostWorkspaceDir}`);- console.log(` Test Timeout: ${serverConfig.testTimeout}ms`);-- if (skipIfNoConfig()) {- console.log(' LLM-backed tests: disabled (LLM_API_KEY / LLM_MODEL not set)\n');- } else {- const config = getTestConfig();- console.log(` LLM Model: ${config.llmModel}\n`);- }-- if (!fs.existsSync(serverConfig.hostWorkspaceDir)) {- console.log(`Creating workspace directory: ${serverConfig.hostWorkspaceDir}`);- fs.mkdirSync(serverConfig.hostWorkspaceDir, { recursive: true });- }-- console.log('π Waiting for agent server to be ready...');- const maxRetries = 30;- const retryDelay = 2000;-- for (let i = 0; i < maxRetries; i++) {- try {- const response = await fetch(`${serverConfig.agentServerUrl}/health`);- if (response.ok) {- console.log('β Agent server is ready!\n');- return;- }- } catch {- // Server not ready yet- }-- if (i < maxRetries - 1) {- console.log(` Retry ${i + 1}/${maxRetries}...`);- await new Promise((resolve) => setTimeout(resolve, retryDelay));- }- }-- throw new Error(- `Agent server not ready after ${maxRetries} retries. ` +- `Make sure the agent-server is running at ${serverConfig.agentServerUrl}`- );-});--afterAll(async () => {- console.log('\nπ§Ή Integration tests completed.\n');-});diff --git a/vendor/openhands-typescript-client/src/__tests__/integration/test-config.ts b/vendor/openhands-typescript-client/src/__tests__/integration/test-config.tsdeleted file mode 100644index 6a04674f0c..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/integration/test-config.ts+++ /dev/null@@ -1,69 +0,0 @@-/**- * Integration test configuration- */--export interface ServerTestConfig {- agentServerUrl: string;- agentWorkspaceDir: string;- hostWorkspaceDir: string;- testTimeout: number;-}--export interface TestConfig extends ServerTestConfig {- llmModel: string;- llmApiKey: string;- llmBaseUrl?: string;-}--export function getServerTestConfig(): ServerTestConfig {- return {- agentServerUrl: process.env.AGENT_SERVER_URL || 'http://localhost:8010',- agentWorkspaceDir: process.env.AGENT_WORKSPACE_DIR || '/workspace',- hostWorkspaceDir: process.env.HOST_WORKSPACE_DIR || '/tmp/agent-workspace',- testTimeout: parseInt(process.env.TEST_TIMEOUT || '120000', 10),- };-}--export function getTestConfig(): TestConfig {- const llmApiKey = process.env.LLM_API_KEY;- const llmModel = process.env.LLM_MODEL;-- if (!llmApiKey) {- throw new Error(- 'LLM_API_KEY environment variable is required. ' +- 'Set it to your LLM provider API key (e.g., Anthropic, OpenAI).'- );- }-- if (!llmModel) {- throw new Error(- 'LLM_MODEL environment variable is required. ' +- 'Set it to the model name (e.g., "anthropic/claude-sonnet-4-5-20250929").'- );- }-- return {- ...getServerTestConfig(),- llmModel,- llmApiKey,- llmBaseUrl: process.env.LLM_BASE_URL,- };-}--export function skipIfNoConfig(): boolean {- try {- getTestConfig();- return false;- } catch {- return true;- }-}--export function createTestLLMConfig() {- const config = getTestConfig();- return {- model: config.llmModel,- api_key: config.llmApiKey,- ...(config.llmBaseUrl && { base_url: config.llmBaseUrl }),- };-}diff --git a/vendor/openhands-typescript-client/src/__tests__/integration/test-utils.ts b/vendor/openhands-typescript-client/src/__tests__/integration/test-utils.tsdeleted file mode 100644index 37430b5bf5..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/integration/test-utils.ts+++ /dev/null@@ -1,142 +0,0 @@-/**- * Utility functions for integration tests- */--import * as fs from 'fs';-import * as path from 'path';-import { getServerTestConfig } from './test-config';--/**- * Wait for a condition to become true, with timeout- */-export async function waitFor(- condition: () => boolean | Promise<boolean>,- options: { timeout?: number; interval?: number; message?: string } = {}-): Promise<void> {- const { timeout = 30000, interval = 100, message = 'Condition not met' } = options;- const start = Date.now();-- while (Date.now() - start < timeout) {- if (await condition()) {- return;- }- await sleep(interval);- }-- throw new Error(`Timeout waiting: ${message}`);-}--/**- * Sleep for a given number of milliseconds- */-export function sleep(ms: number): Promise<void> {- return new Promise((resolve) => setTimeout(resolve, ms));-}--/**- * Read a file from the host workspace directory- */-export function readWorkspaceFile(relativePath: string): string {- const config = getServerTestConfig();- const fullPath = path.join(config.hostWorkspaceDir, relativePath);- return fs.readFileSync(fullPath, 'utf-8');-}--/**- * Write a file to the host workspace directory- */-export function writeWorkspaceFile(relativePath: string, content: string): void {- const config = getServerTestConfig();- const fullPath = path.join(config.hostWorkspaceDir, relativePath);- const dir = path.dirname(fullPath);- if (!fs.existsSync(dir)) {- fs.mkdirSync(dir, { recursive: true });- }- fs.writeFileSync(fullPath, content, 'utf-8');-}--/**- * Check if a file exists in the host workspace directory- */-export function workspaceFileExists(relativePath: string): boolean {- const config = getServerTestConfig();- const fullPath = path.join(config.hostWorkspaceDir, relativePath);- return fs.existsSync(fullPath);-}--/**- * Delete a file from the host workspace directory- */-export function deleteWorkspaceFile(relativePath: string): void {- const config = getServerTestConfig();- const fullPath = path.join(config.hostWorkspaceDir, relativePath);- if (fs.existsSync(fullPath)) {- fs.unlinkSync(fullPath);- }-}--/**- * Clean the workspace directory (remove all files)- */-export function cleanWorkspace(): void {- const config = getServerTestConfig();- if (fs.existsSync(config.hostWorkspaceDir)) {- const files = fs.readdirSync(config.hostWorkspaceDir);- for (const file of files) {- const fullPath = path.join(config.hostWorkspaceDir, file);- const stat = fs.statSync(fullPath);- if (stat.isDirectory()) {- fs.rmSync(fullPath, { recursive: true });- } else {- fs.unlinkSync(fullPath);- }- }- }-}--/**- * Create a unique test file name- */-export function uniqueFileName(prefix: string = 'test', extension: string = 'txt'): string {- return `${prefix}-${Date.now()}-${Math.random().toString(36).substring(7)}.${extension}`;-}--/**- * Create a unique test directory name- */-export function uniqueDirName(prefix: string = 'test-dir'): string {- return `${prefix}-${Date.now()}-${Math.random().toString(36).substring(7)}`;-}--/**- * Generate random text content- */-export function randomContent(length: number = 100): string {- const chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789 ';- let result = '';- for (let i = 0; i < length; i++) {- result += chars.charAt(Math.floor(Math.random() * chars.length));- }- return result;-}--/**- * Wait for the agent to complete (not running)- */-export async function waitForAgentIdle(- checkStatus: () => Promise<string>,- options: { timeout?: number; interval?: number } = {}-): Promise<void> {- const { timeout = 120000, interval = 500 } = options;- const start = Date.now();-- while (Date.now() - start < timeout) {- const status = await checkStatus();- if (status === 'idle' || status === 'finished' || status === 'error' || status === 'stuck') {- return;- }- await sleep(interval);- }-- throw new Error('Timeout waiting for agent to become idle');-}diff --git a/vendor/openhands-typescript-client/src/__tests__/integration/websocket.integration.test.ts b/vendor/openhands-typescript-client/src/__tests__/integration/websocket.integration.test.tsdeleted file mode 100644index e1a5e44ff1..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/integration/websocket.integration.test.ts+++ /dev/null@@ -1,574 +0,0 @@-/**- * Integration tests for WebSocketCallbackClient- *- * Tests real-time event streaming from the agent-server.- *- * NOTE: Some tests in this file are skipped by default because they depend on- * LLM behavior which is non-deterministic and can be slow.- */--import { WebSocketCallbackClient, HttpClient, Event } from '../../index';-import { getTestConfig, skipIfNoConfig, createTestLLMConfig } from './test-config';-import { sleep, waitFor } from './test-utils';--const SKIP_TESTS = skipIfNoConfig();-// Skip flaky tests that depend on LLM behavior in CI-const SKIP_FLAKY_TESTS = process.env.SKIP_FLAKY_TESTS !== 'false';--type CreateConversationResponse = {- id: string;-};--describe('WebSocket Integration Tests', () => {- let config: ReturnType<typeof getTestConfig>;- let httpClient: HttpClient;-- beforeAll(() => {- if (SKIP_TESTS) {- console.warn('Skipping integration tests: LLM_API_KEY and LLM_MODEL not set');- return;- }- config = getTestConfig();- httpClient = new HttpClient({- baseUrl: config.agentServerUrl,- timeout: 60000,- });- });-- afterAll(() => {- if (httpClient) {- httpClient.close();- }- });-- describe('WebSocket Connection', () => {- it(- 'should establish WebSocket connection and receive events',- async () => {- if (SKIP_TESTS) return;-- // Create a conversation first- const createResponse = await httpClient.post<CreateConversationResponse>(- '/api/conversations',- {- agent: {- kind: 'Agent',- llm: createTestLLMConfig(),- },- max_iterations: 10,- stuck_detection: true,- workspace: {- type: 'local',- working_dir: config.agentWorkspaceDir,- },- }- );-- const conversationId = createResponse.data.id;- const receivedEvents: Event[] = [];-- // Create WebSocket client- const wsClient = new WebSocketCallbackClient({- host: config.agentServerUrl,- conversationId,- callback: (event) => {- receivedEvents.push(event);- },- });-- // Start the WebSocket connection- wsClient.start();-- // Wait for connection to establish- await sleep(1000);-- // Send a message and run the agent- await httpClient.post(`/api/conversations/${conversationId}/events`, {- role: 'user',- content: [{ type: 'text', text: 'Say hello!' }],- run: false,- });-- await httpClient.post(`/api/conversations/${conversationId}/run`);-- // Wait for events to be received- await waitFor(() => receivedEvents.length > 0, {- timeout: 60000,- interval: 500,- message: 'No events received',- });-- // Should have received at least one event- expect(receivedEvents.length).toBeGreaterThan(0);-- // Events should have required properties- for (const event of receivedEvents) {- expect(event.id).toBeDefined();- expect(event.kind).toBeDefined();- }-- // Stop the WebSocket client- wsClient.stop();- },- config?.testTimeout || 120000- );-- it(- 'should receive different event types',- async () => {- if (SKIP_TESTS) return;-- // Create a conversation- const createResponse = await httpClient.post<CreateConversationResponse>(- '/api/conversations',- {- agent: {- kind: 'Agent',- llm: createTestLLMConfig(),- },- max_iterations: 15,- stuck_detection: true,- workspace: {- type: 'local',- working_dir: config.agentWorkspaceDir,- },- }- );-- const conversationId = createResponse.data.id;- const eventTypes = new Set<string>();- const receivedEvents: Event[] = [];-- const wsClient = new WebSocketCallbackClient({- host: config.agentServerUrl,- conversationId,- callback: (event) => {- eventTypes.add(event.kind);- receivedEvents.push(event);- },- });-- wsClient.start();- await sleep(1000);-- // Send a message that requires the agent to do something- await httpClient.post(`/api/conversations/${conversationId}/events`, {- role: 'user',- content: [{ type: 'text', text: 'List the files in the current directory.' }],- run: false,- });-- await httpClient.post(`/api/conversations/${conversationId}/run`);-- // Wait for multiple event types- await waitFor(() => eventTypes.size > 1, {- timeout: 90000,- interval: 500,- message: 'Not enough event types received',- });-- // Should have received multiple event types- expect(eventTypes.size).toBeGreaterThan(1);-- // Log received event types for debugging- console.log('Received event types:', Array.from(eventTypes));-- wsClient.stop();- },- config?.testTimeout || 120000- );-- it(- 'should handle WebSocket reconnection',- async () => {- if (SKIP_TESTS) return;-- // Create a conversation- const createResponse = await httpClient.post<CreateConversationResponse>(- '/api/conversations',- {- agent: {- kind: 'Agent',- llm: createTestLLMConfig(),- },- max_iterations: 5,- stuck_detection: true,- workspace: {- type: 'local',- working_dir: config.agentWorkspaceDir,- },- }- );-- const conversationId = createResponse.data.id;- let connectionCount = 0;- const receivedEvents: Event[] = [];-- const wsClient = new WebSocketCallbackClient({- host: config.agentServerUrl,- conversationId,- callback: (event) => {- receivedEvents.push(event);- },- });-- // Start connection- wsClient.start();- await sleep(500);-- // Stop and restart to simulate reconnection- wsClient.stop();- await sleep(200);-- wsClient.start();- await sleep(500);-- // Send a message- await httpClient.post(`/api/conversations/${conversationId}/events`, {- role: 'user',- content: [{ type: 'text', text: 'Say "reconnected"' }],- run: false,- });-- await httpClient.post(`/api/conversations/${conversationId}/run`);-- // Wait for events- await waitFor(() => receivedEvents.length > 0, {- timeout: 60000,- interval: 500,- message: 'No events after reconnection',- });-- expect(receivedEvents.length).toBeGreaterThan(0);-- wsClient.stop();- },- config?.testTimeout || 120000- );-- it(- 'should stop cleanly without receiving more events',- async () => {- if (SKIP_TESTS) return;-- // Create a conversation- const createResponse = await httpClient.post<CreateConversationResponse>(- '/api/conversations',- {- agent: {- kind: 'Agent',- llm: createTestLLMConfig(),- },- max_iterations: 5,- stuck_detection: true,- workspace: {- type: 'local',- working_dir: config.agentWorkspaceDir,- },- }- );-- const conversationId = createResponse.data.id;- const receivedEvents: Event[] = [];-- const wsClient = new WebSocketCallbackClient({- host: config.agentServerUrl,- conversationId,- callback: (event) => {- receivedEvents.push(event);- },- });-- wsClient.start();- await sleep(500);-- // Stop immediately- wsClient.stop();-- const countAfterStop = receivedEvents.length;-- // Send a message (should not be received)- await httpClient.post(`/api/conversations/${conversationId}/events`, {- role: 'user',- content: [{ type: 'text', text: 'This should not be received' }],- run: false,- });-- await httpClient.post(`/api/conversations/${conversationId}/run`);-- // Wait a bit- await sleep(3000);-- // Should not have received new events after stop- expect(receivedEvents.length).toBe(countAfterStop);- },- config?.testTimeout || 60000- );- });-- describe('Event Content', () => {- // These tests are flaky because they depend on LLM behavior- const testFn = SKIP_FLAKY_TESTS ? it.skip : it;-- testFn(- 'should receive MessageEvent with content',- async () => {- if (SKIP_TESTS) return;-- // Create a conversation- const createResponse = await httpClient.post<CreateConversationResponse>(- '/api/conversations',- {- agent: {- kind: 'Agent',- llm: createTestLLMConfig(),- },- max_iterations: 10,- stuck_detection: true,- workspace: {- type: 'local',- working_dir: config.agentWorkspaceDir,- },- }- );-- const conversationId = createResponse.data.id;- const messageEvents: Event[] = [];-- const wsClient = new WebSocketCallbackClient({- host: config.agentServerUrl,- conversationId,- callback: (event) => {- if (event.kind === 'MessageEvent') {- messageEvents.push(event);- }- },- });-- wsClient.start();- await sleep(1000);-- await httpClient.post(`/api/conversations/${conversationId}/events`, {- role: 'user',- content: [{ type: 'text', text: 'What is 5 + 3?' }],- run: false,- });-- await httpClient.post(`/api/conversations/${conversationId}/run`);-- // Wait for message events- await waitFor(() => messageEvents.length > 0, {- timeout: 60000,- interval: 500,- message: 'No MessageEvents received',- });-- expect(messageEvents.length).toBeGreaterThan(0);-- // MessageEvents should have llm_message- const firstMessage = messageEvents[0];- expect(firstMessage).toHaveProperty('llm_message');-- wsClient.stop();- },- config?.testTimeout || 120000- );-- testFn(- 'should receive ActionEvent when agent performs action',- async () => {- if (SKIP_TESTS) return;-- // Create a conversation- const createResponse = await httpClient.post<CreateConversationResponse>(- '/api/conversations',- {- agent: {- kind: 'Agent',- llm: createTestLLMConfig(),- },- max_iterations: 15,- stuck_detection: true,- workspace: {- type: 'local',- working_dir: config.agentWorkspaceDir,- },- }- );-- const conversationId = createResponse.data.id;- const actionEvents: Event[] = [];-- const wsClient = new WebSocketCallbackClient({- host: config.agentServerUrl,- conversationId,- callback: (event) => {- if (event.kind === 'ActionEvent') {- actionEvents.push(event);- }- },- });-- wsClient.start();- await sleep(1000);-- // Ask agent to perform an action - use a simple task that reliably triggers actions- await httpClient.post(`/api/conversations/${conversationId}/events`, {- role: 'user',- content: [{ type: 'text', text: 'List the files in the current directory.' }],- run: false,- });-- await httpClient.post(`/api/conversations/${conversationId}/run`);-- // Wait for action events with longer timeout for LLM-dependent tests- await waitFor(() => actionEvents.length > 0, {- timeout: 120000,- interval: 500,- message: 'No ActionEvents received',- });-- expect(actionEvents.length).toBeGreaterThan(0);-- // ActionEvents should have action property- const firstAction = actionEvents[0];- expect(firstAction).toHaveProperty('action');-- wsClient.stop();- },- config?.testTimeout || 180000- );-- testFn(- 'should receive ObservationEvent after action',- async () => {- if (SKIP_TESTS) return;-- // Create a conversation- const createResponse = await httpClient.post<CreateConversationResponse>(- '/api/conversations',- {- agent: {- kind: 'Agent',- llm: createTestLLMConfig(),- },- max_iterations: 15,- stuck_detection: true,- workspace: {- type: 'local',- working_dir: config.agentWorkspaceDir,- },- }- );-- const conversationId = createResponse.data.id;- const observationEvents: Event[] = [];-- const wsClient = new WebSocketCallbackClient({- host: config.agentServerUrl,- conversationId,- callback: (event) => {- if (event.kind === 'ObservationEvent') {- observationEvents.push(event);- }- },- });-- wsClient.start();- await sleep(1000);-- // Ask agent to run a command (which produces observation) - use a simple task- await httpClient.post(`/api/conversations/${conversationId}/events`, {- role: 'user',- content: [{ type: 'text', text: 'List the files in the current directory.' }],- run: false,- });-- await httpClient.post(`/api/conversations/${conversationId}/run`);-- // Wait for observation events with longer timeout for LLM-dependent tests- await waitFor(() => observationEvents.length > 0, {- timeout: 120000,- interval: 500,- message: 'No ObservationEvents received',- });-- expect(observationEvents.length).toBeGreaterThan(0);-- // ObservationEvents should have observation property- const firstObs = observationEvents[0];- expect(firstObs).toHaveProperty('observation');-- wsClient.stop();- },- config?.testTimeout || 180000- );- });-- describe('ConversationStateUpdateEvent', () => {- it(- 'should receive state update events',- async () => {- if (SKIP_TESTS) return;-- // Create a conversation- const createResponse = await httpClient.post<CreateConversationResponse>(- '/api/conversations',- {- agent: {- kind: 'Agent',- llm: createTestLLMConfig(),- },- max_iterations: 10,- stuck_detection: true,- workspace: {- type: 'local',- working_dir: config.agentWorkspaceDir,- },- }- );-- const conversationId = createResponse.data.id;- const stateUpdateEvents: Event[] = [];-- const wsClient = new WebSocketCallbackClient({- host: config.agentServerUrl,- conversationId,- callback: (event) => {- if (event.kind === 'ConversationStateUpdateEvent') {- stateUpdateEvents.push(event);- }- },- });-- wsClient.start();- await sleep(1000);-- await httpClient.post(`/api/conversations/${conversationId}/events`, {- role: 'user',- content: [{ type: 'text', text: 'Say OK' }],- run: false,- });-- await httpClient.post(`/api/conversations/${conversationId}/run`);-- // Wait for state update events- await waitFor(() => stateUpdateEvents.length > 0, {- timeout: 60000,- interval: 500,- message: 'No ConversationStateUpdateEvents received',- });-- expect(stateUpdateEvents.length).toBeGreaterThan(0);-- // State update events should have key and value- const firstUpdate = stateUpdateEvents[0];- expect(firstUpdate).toHaveProperty('key');- expect(firstUpdate).toHaveProperty('value');-- wsClient.stop();- },- config?.testTimeout || 120000- );- });-});diff --git a/vendor/openhands-typescript-client/src/__tests__/integration/workspace.integration.test.ts b/vendor/openhands-typescript-client/src/__tests__/integration/workspace.integration.test.tsdeleted file mode 100644index a02edbaec8..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/integration/workspace.integration.test.ts+++ /dev/null@@ -1,394 +0,0 @@-/**- * Integration tests for RemoteWorkspace- *- * Tests file operations and command execution against a real agent-server- * running in a Docker container with a mounted workspace volume.- */--import { HttpError, RemoteWorkspace, Workspace } from '../../index';-import { getTestConfig, skipIfNoConfig } from './test-config';-import {- readWorkspaceFile,- writeWorkspaceFile,- workspaceFileExists,- deleteWorkspaceFile,- uniqueFileName,- randomContent,- sleep,-} from './test-utils';--const SKIP_TESTS = skipIfNoConfig();--describe('RemoteWorkspace Integration Tests', () => {- let workspace: RemoteWorkspace;- let config: ReturnType<typeof getTestConfig>;-- beforeAll(() => {- if (SKIP_TESTS) {- console.warn('Skipping integration tests: LLM_API_KEY and LLM_MODEL not set');- return;- }- config = getTestConfig();- workspace = new Workspace({- host: config.agentServerUrl,- workingDir: config.agentWorkspaceDir,- });- });-- afterAll(() => {- if (workspace) {- workspace.close();- }- });-- describe('Command Execution', () => {- it(- 'should execute a simple echo command',- async () => {- if (SKIP_TESTS) return;-- const result = await workspace.executeCommand('echo "Hello, World!"');-- expect(result.exit_code).toBe(0);- expect(result.stdout).toContain('Hello, World!');- expect(result.stderr).toBe('');- expect(result.timeout_occurred).toBe(false);- },- config?.testTimeout || 30000- );-- it(- 'should execute a command that returns exit code 1',- async () => {- if (SKIP_TESTS) return;-- const result = await workspace.executeCommand('exit 1');-- expect(result.exit_code).toBe(1);- expect(result.timeout_occurred).toBe(false);- },- config?.testTimeout || 30000- );-- it(- 'should execute pwd command and return a valid directory',- async () => {- if (SKIP_TESTS) return;-- const result = await workspace.executeCommand('pwd');-- expect(result.exit_code).toBe(0);- // pwd should return a valid path (starts with /)- expect(result.stdout.trim()).toMatch(/^\//);- },- config?.testTimeout || 30000- );-- it(- 'should execute command with output',- async () => {- if (SKIP_TESTS) return;-- const result = await workspace.executeCommand('ls -la');-- expect(result.exit_code).toBe(0);- expect(result.stdout).toBeDefined();- // ls -la should have some output- expect(result.stdout.length).toBeGreaterThan(0);- },- config?.testTimeout || 30000- );-- it(- 'should execute command that creates a file',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('cmd-test');- const content = 'Created by command';-- const result = await workspace.executeCommand(- `echo "${content}" > ${config.agentWorkspaceDir}/${fileName}`- );-- expect(result.exit_code).toBe(0);-- // Give a moment for file to sync- await sleep(500);-- // Verify file exists on host- expect(workspaceFileExists(fileName)).toBe(true);- const fileContent = readWorkspaceFile(fileName);- expect(fileContent.trim()).toBe(content);-- // Cleanup- deleteWorkspaceFile(fileName);- },- config?.testTimeout || 30000- );-- it(- 'should execute multi-line command',- async () => {- if (SKIP_TESTS) return;-- const result = await workspace.executeCommand('echo "line1" && echo "line2"');-- expect(result.exit_code).toBe(0);- expect(result.stdout).toContain('line1');- expect(result.stdout).toContain('line2');- },- config?.testTimeout || 30000- );-- it(- 'should capture stderr',- async () => {- if (SKIP_TESTS) return;-- const result = await workspace.executeCommand('echo "error message" >&2');-- expect(result.exit_code).toBe(0);- expect(result.stderr).toContain('error message');- },- config?.testTimeout || 30000- );-- it(- 'should execute command with environment variable',- async () => {- if (SKIP_TESTS) return;-- const result = await workspace.executeCommand('echo $HOME');-- expect(result.exit_code).toBe(0);- expect(result.stdout.trim()).toBeTruthy();- },- config?.testTimeout || 30000- );- });-- describe('File Upload', () => {- it(- 'should upload text content as a file',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('upload-test');- const content = randomContent(200);- const destPath = `${config.agentWorkspaceDir}/${fileName}`;-- const result = await workspace.fileUpload(content, destPath, fileName);-- expect(result.success).toBe(true);- expect(result.destination_path).toBe(destPath);-- // Give a moment for file to sync- await sleep(500);-- // Verify file exists on host- expect(workspaceFileExists(fileName)).toBe(true);- const fileContent = readWorkspaceFile(fileName);- expect(fileContent).toBe(content);-- // Cleanup- deleteWorkspaceFile(fileName);- },- config?.testTimeout || 30000- );-- it(- 'should upload text using uploadText convenience method',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('uploadtext-test');- const content = 'Test content for uploadText';- const destPath = `${config.agentWorkspaceDir}/${fileName}`;-- const result = await workspace.uploadText(content, destPath, fileName);-- expect(result.success).toBe(true);-- // Give a moment for file to sync- await sleep(500);-- // Verify file exists on host- expect(workspaceFileExists(fileName)).toBe(true);- const fileContent = readWorkspaceFile(fileName);- expect(fileContent).toBe(content);-- // Cleanup- deleteWorkspaceFile(fileName);- },- config?.testTimeout || 30000- );-- it(- 'should handle special characters in content',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('special-chars');- const content = 'Special chars: éà üδΈζζ₯ζ¬θͺ & < > " \' \n\t';- const destPath = `${config.agentWorkspaceDir}/${fileName}`;-- const result = await workspace.uploadText(content, destPath, fileName);-- expect(result.success).toBe(true);-- // Give a moment for file to sync- await sleep(500);-- const fileContent = readWorkspaceFile(fileName);- expect(fileContent).toBe(content);-- // Cleanup- deleteWorkspaceFile(fileName);- },- config?.testTimeout || 30000- );- });-- describe('File Download', () => {- it(- 'should download a file that was created via command',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('download-test');- const content = 'Content to download';-- // Create file via command- await workspace.executeCommand(- `echo -n "${content}" > ${config.agentWorkspaceDir}/${fileName}`- );-- // Give a moment for file to be created- await sleep(500);-- // Download the file- const result = await workspace.fileDownload(`${config.agentWorkspaceDir}/${fileName}`);-- expect(result.success).toBe(true);- expect(result.content).toBe(content);-- // Cleanup- deleteWorkspaceFile(fileName);- },- config?.testTimeout || 30000- );-- it(- 'should download a file created on host',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('host-created');- const content = 'Created on host for download test';-- // Create file on host- writeWorkspaceFile(fileName, content);-- // Download via workspace- const result = await workspace.fileDownload(`${config.agentWorkspaceDir}/${fileName}`);-- expect(result.success).toBe(true);- expect(result.content).toBe(content);-- // Cleanup- deleteWorkspaceFile(fileName);- },- config?.testTimeout || 30000- );-- it(- 'should use downloadAsText convenience method',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('downloadtext-test');- const content = 'Text content for downloadAsText';-- writeWorkspaceFile(fileName, content);-- const downloadedContent = await workspace.downloadAsText(- `${config.agentWorkspaceDir}/${fileName}`- );-- expect(downloadedContent).toBe(content);-- // Cleanup- deleteWorkspaceFile(fileName);- },- config?.testTimeout || 30000- );-- it(- 'should throw HttpError for non-existent file',- async () => {- if (SKIP_TESTS) return;-- await expect(- workspace.fileDownload(`${config.agentWorkspaceDir}/non-existent-file-${Date.now()}.txt`)- ).rejects.toBeInstanceOf(HttpError);- },- config?.testTimeout || 30000- );- });-- describe('Round-trip File Operations', () => {- it(- 'should upload and download file with same content',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('roundtrip');- const content = randomContent(500);- const destPath = `${config.agentWorkspaceDir}/${fileName}`;-- // Upload- const uploadResult = await workspace.uploadText(content, destPath, fileName);- expect(uploadResult.success).toBe(true);-- // Download- const downloadedContent = await workspace.downloadAsText(destPath);- expect(downloadedContent).toBe(content);-- // Cleanup- deleteWorkspaceFile(fileName);- },- config?.testTimeout || 30000- );-- it(- 'should handle JSON content correctly',- async () => {- if (SKIP_TESTS) return;-- const fileName = uniqueFileName('json-test', 'json');- const jsonContent = JSON.stringify(- {- name: 'test',- values: [1, 2, 3],- nested: { key: 'value' },- },- null,- 2- );- const destPath = `${config.agentWorkspaceDir}/${fileName}`;-- // Upload- await workspace.uploadText(jsonContent, destPath, fileName);-- // Download- const downloaded = await workspace.downloadAsText(destPath);- expect(JSON.parse(downloaded)).toEqual(JSON.parse(jsonContent));-- // Cleanup- deleteWorkspaceFile(fileName);- },- config?.testTimeout || 30000- );- });-});diff --git a/vendor/openhands-typescript-client/src/__tests__/llm-token-callbacks.test.ts b/vendor/openhands-typescript-client/src/__tests__/llm-token-callbacks.test.tsdeleted file mode 100644index 8be89a938d..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/llm-token-callbacks.test.ts+++ /dev/null@@ -1,182 +0,0 @@-/**- * Tests for LLM token streaming callbacks- *- * These tests verify the token callback functionality in the LLM module.- */--import { TokenCallbackType, TokenStreamEvent } from '../llm/base';--describe('Token Callback Types', () => {- describe('TokenStreamEvent', () => {- it('should have correct structure for streaming token', () => {- const event: TokenStreamEvent = {- token: 'Hello',- isFinal: false,- accumulated: 'Hello',- index: 0,- };-- expect(event.token).toBe('Hello');- expect(event.isFinal).toBe(false);- expect(event.accumulated).toBe('Hello');- expect(event.index).toBe(0);- });-- it('should have correct structure for final token', () => {- const event: TokenStreamEvent = {- token: '',- isFinal: true,- accumulated: 'Full response text',- index: 20,- model: 'gpt-4',- };-- expect(event.isFinal).toBe(true);- expect(event.accumulated).toBe('Full response text');- expect(event.model).toBe('gpt-4');- });- });-- describe('TokenCallbackType', () => {- it('should accept a function that receives TokenStreamEvent', () => {- const events: TokenStreamEvent[] = [];- const callback: TokenCallbackType = (event: TokenStreamEvent) => {- events.push(event);- };-- callback({- token: 'Hello',- isFinal: false,- accumulated: 'Hello',- index: 0,- });-- callback({- token: ' World',- isFinal: false,- accumulated: 'Hello World',- index: 1,- });-- callback({- token: '',- isFinal: true,- accumulated: 'Hello World',- index: 2,- });-- expect(events).toHaveLength(3);- expect(events[0].token).toBe('Hello');- expect(events[1].accumulated).toBe('Hello World');- expect(events[2].isFinal).toBe(true);- });- });-- describe('Streaming Integration', () => {- it('should support async callback functions', async () => {- const events: TokenStreamEvent[] = [];- // Note: TokenCallbackType is sync, but we can test async behavior- const asyncHandler = async (event: TokenStreamEvent) => {- await new Promise((resolve) => setTimeout(resolve, 1));- events.push(event);- };-- await asyncHandler({- token: 'Async',- isFinal: false,- accumulated: 'Async',- index: 0,- });-- expect(events).toHaveLength(1);- });-- it('should track token indices correctly', () => {- const indices: number[] = [];- const callback: TokenCallbackType = (event: TokenStreamEvent) => {- if (event.index !== undefined) {- indices.push(event.index);- }- };-- // Simulate a streaming response- callback({ token: 'The', isFinal: false, accumulated: 'The', index: 0 });- callback({ token: ' quick', isFinal: false, accumulated: 'The quick', index: 1 });- callback({ token: ' brown', isFinal: false, accumulated: 'The quick brown', index: 2 });- callback({ token: ' fox', isFinal: false, accumulated: 'The quick brown fox', index: 3 });- callback({ token: '', isFinal: true, accumulated: 'The quick brown fox', index: 4 });-- expect(indices).toEqual([0, 1, 2, 3, 4]);- });-- it('should accumulate content correctly', () => {- const accumulated: string[] = [];- const callback: TokenCallbackType = (event: TokenStreamEvent) => {- if (event.accumulated) {- accumulated.push(event.accumulated);- }- };-- callback({ token: 'Hello', isFinal: false, accumulated: 'Hello', index: 0 });- callback({ token: ' ', isFinal: false, accumulated: 'Hello ', index: 1 });- callback({ token: 'World', isFinal: false, accumulated: 'Hello World', index: 2 });- callback({ token: '', isFinal: true, accumulated: 'Hello World', index: 3 });-- expect(accumulated).toEqual(['Hello', 'Hello ', 'Hello World', 'Hello World']);- });- });-});--describe('LLM Interface with Callbacks', () => {- // Mock LLM for testing interface compliance- class MockLLM {- defaultModel = 'mock-model';- private tokenCallback?: TokenCallbackType;-- setTokenCallback(callback: TokenCallbackType): void {- this.tokenCallback = callback;- }-- async simulateStreaming(text: string): Promise<void> {- if (!this.tokenCallback) return;-- const words = text.split(' ');- let accumulated = '';-- for (let i = 0; i < words.length; i++) {- accumulated += (i > 0 ? ' ' : '') + words[i];- this.tokenCallback({- token: (i > 0 ? ' ' : '') + words[i],- isFinal: false,- accumulated,- index: i,- });- }-- this.tokenCallback({- token: '',- isFinal: true,- accumulated,- index: words.length,- });- }- }-- it('should integrate with mock LLM', async () => {- const mockLLM = new MockLLM();- const events: TokenStreamEvent[] = [];-- mockLLM.setTokenCallback((event) => {- events.push(event);- });-- await mockLLM.simulateStreaming('Hello World Test');-- expect(events.length).toBe(4); // 3 content events + 1 final event- expect(events[0].token).toBe('Hello');- expect(events[1].token).toBe(' World');- expect(events[2].token).toBe(' Test');- expect(events[3].isFinal).toBe(true);- expect(events[3].accumulated).toBe('Hello World Test');- });-});diff --git a/vendor/openhands-typescript-client/src/__tests__/secret-registry.test.ts b/vendor/openhands-typescript-client/src/__tests__/secret-registry.test.tsdeleted file mode 100644index 81dc341a5c..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/secret-registry.test.ts+++ /dev/null@@ -1,331 +0,0 @@-/**- * Tests for SecretRegistry class- *- * These tests mirror the Python SDK's secrets manager tests to ensure- * consistent behavior across implementations.- */--import {- SecretRegistry,- StaticSecretSource,- CallableSecretSource,-} from '../conversation/secret-registry';--describe('SecretRegistry', () => {- describe('Update Secrets', () => {- it('should update secrets with static string values', () => {- const registry = new SecretRegistry();- const secrets = {- API_KEY: 'test-api-key',- DATABASE_URL: 'postgresql://localhost/test',- };-- registry.updateSecrets(secrets);-- expect(registry.size).toBe(2);- expect(registry.hasSecret('API_KEY')).toBe(true);- expect(registry.hasSecret('DATABASE_URL')).toBe(true);- });-- it('should overwrite existing secrets', () => {- const registry = new SecretRegistry();-- // Add initial secret- registry.updateSecrets({ API_KEY: 'old-value' });- expect(registry.size).toBe(1);-- // Update with new value- registry.updateSecrets({ API_KEY: 'new-value', NEW_KEY: 'key-value' });- expect(registry.size).toBe(2);-- // Verify the API_KEY was updated- const envVars = registry.getSecretsAsEnvVars('$API_KEY');- expect(envVars.API_KEY).toBe('new-value');- });-- it('should support callable secret sources', () => {- const registry = new SecretRegistry();- let callCount = 0;-- registry.updateSecrets({- DYNAMIC_TOKEN: () => {- callCount++;- return `token-${callCount}`;- },- });-- // First call- const envVars1 = registry.getSecretsAsEnvVars('$DYNAMIC_TOKEN');- expect(envVars1.DYNAMIC_TOKEN).toBe('token-1');-- // Second call - should invoke the function again- const envVars2 = registry.getSecretsAsEnvVars('$DYNAMIC_TOKEN');- expect(envVars2.DYNAMIC_TOKEN).toBe('token-2');- });- });-- describe('Find Secrets In Text', () => {- it('should find secrets in text (case insensitive)', () => {- const registry = new SecretRegistry();- registry.updateSecrets({- API_KEY: 'test-key',- DATABASE_PASSWORD: 'test-password',- });-- // Test various case combinations- let found = registry.findSecretsInText('echo api_key=$API_KEY');- expect(found.has('API_KEY')).toBe(true);-- found = registry.findSecretsInText('echo $database_password');- expect(found.has('DATABASE_PASSWORD')).toBe(true);-- found = registry.findSecretsInText('API_KEY and DATABASE_PASSWORD');- expect(found.has('API_KEY')).toBe(true);- expect(found.has('DATABASE_PASSWORD')).toBe(true);-- found = registry.findSecretsInText('echo hello world');- expect(found.size).toBe(0);- });-- it('should handle partial matches correctly', () => {- const registry = new SecretRegistry();- registry.updateSecrets({- API_KEY: 'test-key',- API: 'test-api', // Shorter key contained in API_KEY- });-- // Both should be found since "API" is contained in "API_KEY"- const found = registry.findSecretsInText('export API_KEY=$API_KEY');- expect(found.has('API_KEY')).toBe(true);- expect(found.has('API')).toBe(true);- });- });-- describe('Get Secrets As Env Vars', () => {- it('should return env vars for secrets found in command', () => {- const registry = new SecretRegistry();- registry.updateSecrets({- API_KEY: 'test-api-key',- DATABASE_URL: 'postgresql://localhost/test',- });-- const envVars = registry.getSecretsAsEnvVars("curl -H 'X-API-Key: $API_KEY'");- expect(envVars).toEqual({ API_KEY: 'test-api-key' });- });-- it('should return multiple env vars when multiple secrets found', () => {- const registry = new SecretRegistry();- registry.updateSecrets({- API_KEY: 'test-api-key',- DATABASE_URL: 'postgresql://localhost/test',- });-- const envVars = registry.getSecretsAsEnvVars(- 'export API_KEY=$API_KEY && export DATABASE_URL=$DATABASE_URL'- );- expect(envVars).toEqual({- API_KEY: 'test-api-key',- DATABASE_URL: 'postgresql://localhost/test',- });- });-- it('should return empty object when no secrets found', () => {- const registry = new SecretRegistry();- registry.updateSecrets({ API_KEY: 'test-key' });-- const envVars = registry.getSecretsAsEnvVars('echo hello world');- expect(envVars).toEqual({});- });-- it('should handle callable exceptions gracefully', () => {- const registry = new SecretRegistry();- registry.updateSecrets({- FAILING_SECRET: () => {- throw new Error('Secret retrieval failed');- },- WORKING_SECRET: () => 'working-value',- });-- // Should not throw, should skip failing secret- const envVars = registry.getSecretsAsEnvVars(- 'export FAILING_SECRET=$FAILING_SECRET && export WORKING_SECRET=$WORKING_SECRET'- );-- // Only working secret should be returned- expect(envVars).toEqual({ WORKING_SECRET: 'working-value' });- });- });-- describe('Mask Secrets In Output', () => {- it('should mask secret values in output', () => {- const registry = new SecretRegistry();- registry.updateSecrets({- API_KEY: 'sk-secret-key-12345',- PASSWORD: 'super-secret-password',- });-- // Export the secrets first (so they're in the cache)- registry.getSecretsAsEnvVars('$API_KEY $PASSWORD');-- const output = 'Response: sk-secret-key-12345, Password: super-secret-password';- const masked = registry.maskSecretsInOutput(output);-- expect(masked).toBe('Response: <secret-hidden>, Password: <secret-hidden>');- });-- it('should return original text when no secrets to mask', () => {- const registry = new SecretRegistry();- const output = 'Hello, World!';- const masked = registry.maskSecretsInOutput(output);- expect(masked).toBe('Hello, World!');- });-- it('should handle empty text', () => {- const registry = new SecretRegistry();- expect(registry.maskSecretsInOutput('')).toBe('');- });-- it('should mask multiple occurrences of same secret', () => {- const registry = new SecretRegistry();- registry.updateSecrets({ TOKEN: 'abc123' });- registry.getSecretsAsEnvVars('$TOKEN');-- const output = 'Token: abc123, Again: abc123, And again: abc123';- const masked = registry.maskSecretsInOutput(output);-- expect(masked).toBe(- 'Token: <secret-hidden>, Again: <secret-hidden>, And again: <secret-hidden>'- );- });- });-- describe('Remove and Clear Secrets', () => {- it('should remove individual secrets', () => {- const registry = new SecretRegistry();- registry.updateSecrets({- KEY1: 'value1',- KEY2: 'value2',- });-- expect(registry.size).toBe(2);- registry.removeSecret('KEY1');- expect(registry.size).toBe(1);- expect(registry.hasSecret('KEY1')).toBe(false);- expect(registry.hasSecret('KEY2')).toBe(true);- });-- it('should clear all secrets', () => {- const registry = new SecretRegistry();- registry.updateSecrets({- KEY1: 'value1',- KEY2: 'value2',- KEY3: 'value3',- });-- expect(registry.size).toBe(3);- registry.clearSecrets();- expect(registry.size).toBe(0);- });- });-- describe('Keys Property', () => {- it('should return all registered secret keys', () => {- const registry = new SecretRegistry();- registry.updateSecrets({- API_KEY: 'key1',- DATABASE_URL: 'url1',- TOKEN: 'token1',- });-- const keys = registry.keys;- expect(keys).toHaveLength(3);- expect(keys).toContain('API_KEY');- expect(keys).toContain('DATABASE_URL');- expect(keys).toContain('TOKEN');- });- });-- describe('Serialization', () => {- it('should serialize with redacted values by default', () => {- const registry = new SecretRegistry();- registry.updateSecrets({- API_KEY: 'secret-value',- TOKEN: 'another-secret',- });-- const serialized = registry.serialize();- expect(serialized.API_KEY).toBe('**********');- expect(serialized.TOKEN).toBe('**********');- });-- it('should serialize with exposed values when requested', () => {- const registry = new SecretRegistry();- registry.updateSecrets({- API_KEY: 'secret-value',- });-- const serialized = registry.serialize(true);- expect(serialized.API_KEY).toBe('secret-value');- });-- it('should serialize callable secrets as null', () => {- const registry = new SecretRegistry();- registry.updateSecrets({- STATIC: 'static-value',- CALLABLE: () => 'dynamic-value',- });-- const serialized = registry.serialize(true);- expect(serialized.STATIC).toBe('static-value');- expect(serialized.CALLABLE).toBeNull();- });-- it('should deserialize serialized state', () => {- const registry = new SecretRegistry();- registry.deserialize({- API_KEY: 'restored-value',- TOKEN: 'another-value',- REDACTED: '**********', // Should be ignored- NULL_VALUE: null, // Should be ignored- });-- expect(registry.hasSecret('API_KEY')).toBe(true);- expect(registry.hasSecret('TOKEN')).toBe(true);- expect(registry.hasSecret('REDACTED')).toBe(false);- expect(registry.hasSecret('NULL_VALUE')).toBe(false);-- const envVars = registry.getSecretsAsEnvVars('$API_KEY $TOKEN');- expect(envVars.API_KEY).toBe('restored-value');- expect(envVars.TOKEN).toBe('another-value');- });- });-- describe('Secret Sources', () => {- it('should create StaticSecretSource correctly', () => {- const source = new StaticSecretSource('test-value');- expect(source.kind).toBe('static');- expect(source.getValue()).toBe('test-value');- });-- it('should create CallableSecretSource correctly', () => {- let counter = 0;- const source = new CallableSecretSource(() => {- counter++;- return `value-${counter}`;- });-- expect(source.kind).toBe('callable');- expect(source.getValue()).toBe('value-1');- expect(source.getValue()).toBe('value-2');- });-- it('should handle CallableSecretSource exceptions', () => {- const source = new CallableSecretSource(() => {- throw new Error('Failed');- });-- // Should return null instead of throwing- expect(source.getValue()).toBeNull();- });- });-});diff --git a/vendor/openhands-typescript-client/src/__tests__/security.test.ts b/vendor/openhands-typescript-client/src/__tests__/security.test.tsdeleted file mode 100644index 1e18b13d03..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/security.test.ts+++ /dev/null@@ -1,319 +0,0 @@-/**- * Tests for Security module (ConfirmationPolicy and SecurityAnalyzer)- *- * These tests mirror the Python SDK's security tests to ensure- * consistent behavior across implementations.- */--import {- NeverConfirm,- AlwaysConfirm,- RiskBasedConfirm,- ToolBasedConfirm,- CompositeConfirm,- createConfirmationPolicy,-} from '../security/confirmation-policy';--import {- PatternBasedAnalyzer,- AllowlistAnalyzer,- NoOpAnalyzer,- CompositeAnalyzer,- createSecurityAnalyzer,-} from '../security/security-analyzer';--import { ActionEvent, generateEventId } from '../events/types';--// Helper to create mock action events-function createActionEvent(toolName: string, action: Record<string, unknown>): ActionEvent {- return {- id: generateEventId(),- kind: 'ActionEvent',- timestamp: new Date().toISOString(),- source: 'agent',- tool_name: toolName,- tool_call_id: `call_${Math.random().toString(36).substr(2, 9)}`,- action,- };-}--describe('Confirmation Policies', () => {- describe('NeverConfirm', () => {- it('should never require confirmation', () => {- const policy = new NeverConfirm();- const action = createActionEvent('terminal', { command: 'ls' });-- expect(policy.type).toBe('never');- expect(policy.requiresConfirmation(action)).toBe(false);- expect(policy.requiresConfirmation(action, 'low')).toBe(false);- expect(policy.requiresConfirmation(action, 'medium')).toBe(false);- expect(policy.requiresConfirmation(action, 'high')).toBe(false);- });- });-- describe('AlwaysConfirm', () => {- it('should always require confirmation', () => {- const policy = new AlwaysConfirm();- const action = createActionEvent('terminal', { command: 'ls' });-- expect(policy.type).toBe('always');- expect(policy.requiresConfirmation(action)).toBe(true);- expect(policy.requiresConfirmation(action, 'low')).toBe(true);- expect(policy.requiresConfirmation(action, 'medium')).toBe(true);- expect(policy.requiresConfirmation(action, 'high')).toBe(true);- });- });-- describe('RiskBasedConfirm', () => {- it('should require confirmation based on risk threshold', () => {- const policy = new RiskBasedConfirm('medium');- const action = createActionEvent('terminal', { command: 'ls' });-- expect(policy.type).toBe('risk_based');- expect(policy.requiresConfirmation(action, 'low')).toBe(false);- expect(policy.requiresConfirmation(action, 'medium')).toBe(true);- expect(policy.requiresConfirmation(action, 'high')).toBe(true);- });-- it('should treat unknown risk as medium', () => {- const policy = new RiskBasedConfirm('medium');- const action = createActionEvent('terminal', { command: 'ls' });-- expect(policy.requiresConfirmation(action, 'unknown')).toBe(true);- expect(policy.requiresConfirmation(action)).toBe(true); // No risk = unknown- });-- it('should use default threshold of medium', () => {- const policy = new RiskBasedConfirm();- const action = createActionEvent('terminal', { command: 'ls' });-- expect(policy.requiresConfirmation(action, 'low')).toBe(false);- expect(policy.requiresConfirmation(action, 'medium')).toBe(true);- });- });-- describe('ToolBasedConfirm', () => {- it('should require confirmation for specified tools', () => {- const policy = new ToolBasedConfirm(['dangerous_tool', 'risky_operation']);-- const safeAction = createActionEvent('safe_tool', { arg: 'value' });- const dangerousAction = createActionEvent('dangerous_tool', { arg: 'value' });- const riskyAction = createActionEvent('risky_operation', { arg: 'value' });-- expect(policy.type).toBe('tool_based');- expect(policy.requiresConfirmation(safeAction)).toBe(false);- expect(policy.requiresConfirmation(dangerousAction)).toBe(true);- expect(policy.requiresConfirmation(riskyAction)).toBe(true);- });- });-- describe('CompositeConfirm', () => {- it('should require confirmation if ANY policy requires it', () => {- const policy = new CompositeConfirm([- new NeverConfirm(),- new ToolBasedConfirm(['special_tool']),- ]);-- const normalAction = createActionEvent('normal_tool', { arg: 'value' });- const specialAction = createActionEvent('special_tool', { arg: 'value' });-- expect(policy.type).toBe('composite');- expect(policy.requiresConfirmation(normalAction)).toBe(false);- expect(policy.requiresConfirmation(specialAction)).toBe(true);- });-- it('should handle multiple policies', () => {- const policy = new CompositeConfirm([- new RiskBasedConfirm('high'), // Only high risk- new ToolBasedConfirm(['always_confirm_tool']),- ]);-- const normalAction = createActionEvent('normal_tool', { arg: 'value' });- const alwaysConfirmAction = createActionEvent('always_confirm_tool', { arg: 'value' });-- expect(policy.requiresConfirmation(normalAction, 'low')).toBe(false);- expect(policy.requiresConfirmation(normalAction, 'medium')).toBe(false);- expect(policy.requiresConfirmation(normalAction, 'high')).toBe(true);- expect(policy.requiresConfirmation(alwaysConfirmAction, 'low')).toBe(true);- });- });-- describe('createConfirmationPolicy Factory', () => {- it('should create NeverConfirm', () => {- const policy = createConfirmationPolicy('never');- expect(policy).toBeInstanceOf(NeverConfirm);- });-- it('should create AlwaysConfirm', () => {- const policy = createConfirmationPolicy('always');- expect(policy).toBeInstanceOf(AlwaysConfirm);- });-- it('should create RiskBasedConfirm with options', () => {- const policy = createConfirmationPolicy('risk_based', { threshold: 'high' });- expect(policy).toBeInstanceOf(RiskBasedConfirm);- });-- it('should create ToolBasedConfirm with options', () => {- const policy = createConfirmationPolicy('tool_based', { tools: ['tool1', 'tool2'] });- expect(policy).toBeInstanceOf(ToolBasedConfirm);- });-- it('should default to NeverConfirm for unknown types', () => {- const policy = createConfirmationPolicy('unknown_type');- expect(policy).toBeInstanceOf(NeverConfirm);- });- });-});--describe('Security Analyzers', () => {- describe('PatternBasedAnalyzer', () => {- it('should detect high-risk patterns', () => {- const analyzer = new PatternBasedAnalyzer();-- // rm -rf with root path- const rmAction = createActionEvent('terminal', { command: 'rm -rf /' });- const result = analyzer.analyze(rmAction);- expect(result.riskLevel).toBe('high');- expect(result.requiresConfirmation).toBe(true);- expect(result.concerns?.length).toBeGreaterThan(0);- });-- it('should detect sudo commands as high risk', () => {- const analyzer = new PatternBasedAnalyzer();- const action = createActionEvent('terminal', { command: 'sudo apt-get install something' });- const result = analyzer.analyze(action);- expect(result.riskLevel).toBe('high');- });-- it('should detect medium-risk patterns', () => {- const analyzer = new PatternBasedAnalyzer();-- // git push- const pushAction = createActionEvent('terminal', { command: 'git push origin main' });- const result = analyzer.analyze(pushAction);- expect(result.riskLevel).toBe('medium');- });-- it('should mark safe commands as low risk', () => {- const analyzer = new PatternBasedAnalyzer();- const action = createActionEvent('terminal', { command: 'echo hello' });- const result = analyzer.analyze(action);- expect(result.riskLevel).toBe('low');- expect(result.requiresConfirmation).toBe(false);- });-- it('should detect sensitive file access', () => {- const analyzer = new PatternBasedAnalyzer();-- // SSH key access- const sshAction = createActionEvent('read_file', { path: '~/.ssh/id_rsa' });- const result = analyzer.analyze(sshAction);- expect(result.riskLevel).not.toBe('low');- expect(result.concerns).toBeDefined();- });-- it('should detect .env file access', () => {- const analyzer = new PatternBasedAnalyzer();- const action = createActionEvent('read_file', { path: '/app/.env' });- const result = analyzer.analyze(action);- expect(result.riskLevel).not.toBe('low');- });- });-- describe('AllowlistAnalyzer', () => {- it('should allow listed tools', () => {- const analyzer = new AllowlistAnalyzer(['safe_tool', 'read_file']);-- const safeAction = createActionEvent('safe_tool', { arg: 'value' });- const readAction = createActionEvent('read_file', { path: '/tmp/file' });-- expect(analyzer.analyze(safeAction).riskLevel).toBe('low');- expect(analyzer.analyze(readAction).riskLevel).toBe('low');- });-- it('should mark unlisted tools as high risk', () => {- const analyzer = new AllowlistAnalyzer(['safe_tool']);- const action = createActionEvent('unknown_tool', { arg: 'value' });-- const result = analyzer.analyze(action);- expect(result.riskLevel).toBe('high');- expect(result.requiresConfirmation).toBe(true);- });-- it('should support pattern matching', () => {- const analyzer = new AllowlistAnalyzer([], [/^read_/]);-- const readAction = createActionEvent('read_file', { path: '/tmp' });- // Using readAction to verify pattern matching exists- const result = analyzer.analyze(readAction);-- // Pattern matching is on action JSON, not tool name- // This tests that patterns are checked- expect(analyzer.type).toBe('allowlist');- expect(result).toBeDefined();- });- });-- describe('NoOpAnalyzer', () => {- it('should always return low risk', () => {- const analyzer = new NoOpAnalyzer();-- const dangerousAction = createActionEvent('terminal', { command: 'rm -rf /' });- const result = analyzer.analyze(dangerousAction);-- expect(result.riskLevel).toBe('low');- expect(result.requiresConfirmation).toBe(false);- });- });-- describe('CompositeAnalyzer', () => {- it('should return highest risk from all analyzers', async () => {- const analyzer = new CompositeAnalyzer([- new NoOpAnalyzer(), // Always low- new PatternBasedAnalyzer(), // Will detect high risk- ]);-- const action = createActionEvent('terminal', { command: 'sudo rm -rf /' });- const result = await analyzer.analyze(action);-- expect(result.riskLevel).toBe('high');- });-- it('should combine concerns from all analyzers', async () => {- const analyzer = new CompositeAnalyzer([- new PatternBasedAnalyzer(),- new AllowlistAnalyzer(['other_tool']),- ]);-- const action = createActionEvent('terminal', { command: 'rm file.txt' });- const result = await analyzer.analyze(action);-- // Should have concerns from both analyzers- expect(result.concerns).toBeDefined();- expect(result.concerns!.length).toBeGreaterThan(0);- });- });-- describe('createSecurityAnalyzer Factory', () => {- it('should create PatternBasedAnalyzer', () => {- const analyzer = createSecurityAnalyzer('pattern_based');- expect(analyzer).toBeInstanceOf(PatternBasedAnalyzer);- });-- it('should create AllowlistAnalyzer', () => {- const analyzer = createSecurityAnalyzer('allowlist', { tools: ['tool1'] });- expect(analyzer).toBeInstanceOf(AllowlistAnalyzer);- });-- it('should create NoOpAnalyzer', () => {- const analyzer = createSecurityAnalyzer('noop');- expect(analyzer).toBeInstanceOf(NoOpAnalyzer);- });-- it('should default to PatternBasedAnalyzer', () => {- const analyzer = createSecurityAnalyzer('unknown');- expect(analyzer).toBeInstanceOf(PatternBasedAnalyzer);- });- });-});diff --git a/vendor/openhands-typescript-client/src/__tests__/stuck-detector.test.ts b/vendor/openhands-typescript-client/src/__tests__/stuck-detector.test.tsdeleted file mode 100644index 1be46bb656..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/stuck-detector.test.ts+++ /dev/null@@ -1,314 +0,0 @@-/**- * Tests for StuckDetector class- *- * These tests mirror the Python SDK's stuck detector tests to ensure- * consistent behavior across implementations.- */--import { StuckDetector, DEFAULT_STUCK_THRESHOLDS } from '../conversation/stuck-detector';-import {- BaseEvent,- MessageEvent,- ActionEvent,- ObservationEvent,- AgentErrorEvent,- generateEventId,-} from '../events/types';--// Helper functions to create test events-function createMessageEvent(source: 'user' | 'agent', text: string): MessageEvent {- return {- id: generateEventId(),- kind: 'MessageEvent',- timestamp: new Date().toISOString(),- source,- llm_message: {- role: source === 'user' ? 'user' : 'assistant',- content: [{ type: 'text', text }],- },- };-}--function createActionEvent(toolName: string, command: string, thought?: string): ActionEvent {- return {- id: generateEventId(),- kind: 'ActionEvent',- timestamp: new Date().toISOString(),- source: 'agent',- tool_name: toolName,- tool_call_id: `call_${Math.random().toString(36).substr(2, 9)}`,- action: { command },- thought,- };-}--function createObservationEvent(- actionId: string,- toolName: string,- output: string-): ObservationEvent {- return {- id: generateEventId(),- kind: 'ObservationEvent',- timestamp: new Date().toISOString(),- source: 'environment',- tool_name: toolName,- tool_call_id: `call_${Math.random().toString(36).substr(2, 9)}`,- observation: { output },- action_id: actionId,- };-}--function createErrorEvent(_actionId: string, toolName: string, error: string): AgentErrorEvent {- return {- id: generateEventId(),- kind: 'AgentErrorEvent',- timestamp: new Date().toISOString(),- source: 'agent',- tool_name: toolName,- tool_call_id: `call_${Math.random().toString(36).substr(2, 9)}`,- error,- };-}--describe('StuckDetector', () => {- describe('Constructor and Defaults', () => {- it('should use default thresholds when not provided', () => {- const detector = new StuckDetector();- // Access private thresholds through the isStuck behavior- expect(detector).toBeDefined();- });-- it('should accept custom thresholds', () => {- const detector = new StuckDetector({- actionObservation: 2,- actionError: 2,- monologue: 2,- alternatingPattern: 4,- });- expect(detector).toBeDefined();- });-- it('should merge partial thresholds with defaults', () => {- const detector = new StuckDetector({ actionObservation: 10 });- expect(detector).toBeDefined();- });- });-- describe('History Too Short', () => {- it('should return not stuck when there are too few events', () => {- const detector = new StuckDetector();- const events: BaseEvent[] = [createMessageEvent('user', 'Hello')];-- const result = detector.isStuck(events);- expect(result.isStuck).toBe(false);- });-- it('should return not stuck when no user message is found', () => {- const detector = new StuckDetector();- const events: BaseEvent[] = [];-- const result = detector.isStuck(events);- expect(result.isStuck).toBe(false);- });-- it('should return not stuck with single action-observation pair', () => {- const detector = new StuckDetector();- const action = createActionEvent('terminal', 'ls');- const events: BaseEvent[] = [- createMessageEvent('user', 'Please run ls'),- action,- createObservationEvent(action.id, 'terminal', 'file1.txt\nfile2.txt'),- ];-- const result = detector.isStuck(events);- expect(result.isStuck).toBe(false);- });- });-- describe('Repeating Action-Observation Cycles', () => {- it('should NOT be stuck with less than threshold repeats', () => {- const detector = new StuckDetector({ actionObservation: 4 });- const events: BaseEvent[] = [createMessageEvent('user', 'Please run ls')];-- // Add 3 identical action-observation pairs (threshold is 4)- for (let i = 0; i < 3; i++) {- const action = createActionEvent('terminal', 'ls', 'I need to run ls');- events.push(action);- events.push(createObservationEvent(action.id, 'terminal', 'file1.txt\nfile2.txt'));- }-- const result = detector.isStuck(events);- expect(result.isStuck).toBe(false);- });-- it('should be stuck with threshold number of identical action-observation pairs', () => {- const detector = new StuckDetector({ actionObservation: 4 });- const events: BaseEvent[] = [createMessageEvent('user', 'Please run ls')];-- // Add 4 identical action-observation pairs- for (let i = 0; i < 4; i++) {- const action = createActionEvent('terminal', 'ls', 'I need to run ls');- events.push(action);- events.push(createObservationEvent(action.id, 'terminal', 'file1.txt\nfile2.txt'));- }-- const result = detector.isStuck(events);- expect(result.isStuck).toBe(true);- expect(result.pattern).toBe('action_observation_loop');- expect(result.repetitions).toBe(4);- });- });-- describe('Repeating Action-Error Cycles', () => {- it('should NOT be stuck with less than threshold action-error pairs', () => {- const detector = new StuckDetector({ actionError: 4 });- const events: BaseEvent[] = [createMessageEvent('user', 'Run invalid command')];-- // Add 3 identical action-error pairs (threshold is 4)- for (let i = 0; i < 3; i++) {- const action = createActionEvent('terminal', 'invalid_cmd', 'Running command');- events.push(action);- events.push(createErrorEvent(action.id, 'terminal', 'Command not found'));- }-- const result = detector.isStuck(events);- expect(result.isStuck).toBe(false);- });-- it('should be stuck with threshold number of identical action-error pairs', () => {- const detector = new StuckDetector({ actionError: 4 });- const events: BaseEvent[] = [createMessageEvent('user', 'Run invalid command')];-- // Add 4 identical action-error pairs- for (let i = 0; i < 4; i++) {- const action = createActionEvent('terminal', 'invalid_cmd', 'Running command');- events.push(action);- events.push(createErrorEvent(action.id, 'terminal', 'Command not found'));- }-- const result = detector.isStuck(events);- expect(result.isStuck).toBe(true);- expect(result.pattern).toBe('action_error_loop');- });- });-- describe('Agent Monologue Detection', () => {- it('should NOT be stuck with less than threshold consecutive agent messages', () => {- const detector = new StuckDetector({ monologue: 4 });- const events: BaseEvent[] = [- createMessageEvent('user', 'Hello'),- createMessageEvent('agent', 'Thinking...'),- createMessageEvent('agent', 'Still thinking...'),- createMessageEvent('agent', 'Almost done...'),- ];-- const result = detector.isStuck(events);- expect(result.isStuck).toBe(false);- });-- it('should be stuck with threshold consecutive agent messages', () => {- const detector = new StuckDetector({ monologue: 4 });- const events: BaseEvent[] = [- createMessageEvent('user', 'Hello'),- createMessageEvent('agent', 'Thinking... 1'),- createMessageEvent('agent', 'Thinking... 2'),- createMessageEvent('agent', 'Thinking... 3'),- createMessageEvent('agent', 'Thinking... 4'),- ];-- const result = detector.isStuck(events);- expect(result.isStuck).toBe(true);- expect(result.pattern).toBe('monologue');- });-- it('should NOT be stuck when user interrupts the monologue', () => {- const detector = new StuckDetector({ monologue: 4 });- const events: BaseEvent[] = [- createMessageEvent('user', 'Hello'),- createMessageEvent('agent', 'Thinking... 1'),- createMessageEvent('agent', 'Thinking... 2'),- createMessageEvent('user', 'Any progress?'), // User interrupts- createMessageEvent('agent', 'Thinking... 3'),- createMessageEvent('agent', 'Thinking... 4'),- ];-- const result = detector.isStuck(events);- expect(result.isStuck).toBe(false);- });- });-- describe('Different Actions (Not Stuck)', () => {- it('should NOT be stuck when actions are different', () => {- const detector = new StuckDetector();- const events: BaseEvent[] = [createMessageEvent('user', 'Run some commands')];-- const commands = ['ls', 'pwd', 'whoami', 'date'];- for (const cmd of commands) {- const action = createActionEvent('terminal', cmd, `Running ${cmd}`);- events.push(action);- events.push(createObservationEvent(action.id, 'terminal', `output of ${cmd}`));- }-- const result = detector.isStuck(events);- expect(result.isStuck).toBe(false);- });- });-- describe('Reset After User Message', () => {- it('should reset stuck detection after new user message', () => {- const detector = new StuckDetector({ actionObservation: 4 });- const events: BaseEvent[] = [createMessageEvent('user', 'Please run ls')];-- // Add 4 identical action-observation pairs (would trigger stuck)- for (let i = 0; i < 4; i++) {- const action = createActionEvent('terminal', 'ls', 'I need to run ls');- events.push(action);- events.push(createObservationEvent(action.id, 'terminal', 'file1.txt'));- }-- // Verify it's stuck- let result = detector.isStuck(events);- expect(result.isStuck).toBe(true);-- // Add new user message- events.push(createMessageEvent('user', 'Try something else'));-- // Should no longer be stuck- result = detector.isStuck(events);- expect(result.isStuck).toBe(false);- });- });-- describe('Alternating Pattern Detection', () => {- it('should detect alternating A-B-A-B patterns', () => {- const detector = new StuckDetector({ alternatingPattern: 6 });- const events: BaseEvent[] = [createMessageEvent('user', 'Help me')];-- // Create alternating pattern: cmd1, cmd2, cmd1, cmd2, cmd1, cmd2- for (let i = 0; i < 3; i++) {- const action1 = createActionEvent('terminal', 'cmd1', 'Running cmd1');- events.push(action1);- events.push(createObservationEvent(action1.id, 'terminal', 'output1'));-- const action2 = createActionEvent('terminal', 'cmd2', 'Running cmd2');- events.push(action2);- events.push(createObservationEvent(action2.id, 'terminal', 'output2'));- }-- const result = detector.isStuck(events);- expect(result.isStuck).toBe(true);- expect(result.pattern).toBe('alternating_pattern');- });- });-- describe('Default Thresholds', () => {- it('should export DEFAULT_STUCK_THRESHOLDS', () => {- expect(DEFAULT_STUCK_THRESHOLDS).toBeDefined();- expect(DEFAULT_STUCK_THRESHOLDS.actionObservation).toBe(4);- expect(DEFAULT_STUCK_THRESHOLDS.actionError).toBe(4);- expect(DEFAULT_STUCK_THRESHOLDS.monologue).toBe(4);- expect(DEFAULT_STUCK_THRESHOLDS.alternatingPattern).toBe(6);- });- });-});diff --git a/vendor/openhands-typescript-client/src/__tests__/test-utils.test.ts b/vendor/openhands-typescript-client/src/__tests__/test-utils.test.tsdeleted file mode 100644index f442363cf6..0000000000--- a/vendor/openhands-typescript-client/src/__tests__/test-utils.test.ts+++ /dev/null@@ -1,180 +0,0 @@-/**- * Unit tests for test utilities- */--import * as fs from 'fs';-import { getTestConfig, skipIfNoConfig, createTestLLMConfig } from './integration/test-config';-import {- uniqueFileName,- uniqueDirName,- randomContent,- sleep,- waitFor,-} from './integration/test-utils';--describe('Test Utilities', () => {- describe('Test Configuration', () => {- const originalEnv = { ...process.env };-- beforeEach(() => {- // Reset environment to original values- Object.keys(process.env).forEach((key) => {- if (!(key in originalEnv)) {- delete process.env[key];- }- });- Object.assign(process.env, originalEnv);- });-- afterAll(() => {- // Restore original environment- Object.keys(process.env).forEach((key) => {- if (!(key in originalEnv)) {- delete process.env[key];- }- });- Object.assign(process.env, originalEnv);- });-- it('should throw if LLM_API_KEY is not set', () => {- delete process.env.LLM_API_KEY;- delete process.env.LLM_MODEL;-- expect(() => getTestConfig()).toThrow('LLM_API_KEY');- });-- it('should throw if LLM_MODEL is not set', () => {- process.env.LLM_API_KEY = 'test-key';- delete process.env.LLM_MODEL;-- expect(() => getTestConfig()).toThrow('LLM_MODEL');- });-- it('should return config when required env vars are set', () => {- process.env.LLM_API_KEY = 'test-api-key';- process.env.LLM_MODEL = 'test/model';-- const config = getTestConfig();-- expect(config.llmApiKey).toBe('test-api-key');- expect(config.llmModel).toBe('test/model');- expect(config.agentServerUrl).toBe('http://localhost:8010');- });-- it('should use custom values from environment', () => {- process.env.LLM_API_KEY = 'custom-key';- process.env.LLM_MODEL = 'custom/model';- process.env.AGENT_SERVER_URL = 'http://custom:9000';- process.env.HOST_WORKSPACE_DIR = '/custom/path';- process.env.LLM_BASE_URL = 'https://custom-llm.com';-- const config = getTestConfig();-- expect(config.llmApiKey).toBe('custom-key');- expect(config.llmModel).toBe('custom/model');- expect(config.agentServerUrl).toBe('http://custom:9000');- expect(config.hostWorkspaceDir).toBe('/custom/path');- expect(config.llmBaseUrl).toBe('https://custom-llm.com');- });-- it('should skip if no config', () => {- delete process.env.LLM_API_KEY;- delete process.env.LLM_MODEL;-- expect(skipIfNoConfig()).toBe(true);- });-- it('should not skip if config exists', () => {- process.env.LLM_API_KEY = 'test-key';- process.env.LLM_MODEL = 'test/model';-- expect(skipIfNoConfig()).toBe(false);- });-- it('should create LLM config from environment', () => {- process.env.LLM_API_KEY = 'api-key';- process.env.LLM_MODEL = 'my/model';- process.env.LLM_BASE_URL = 'https://api.example.com';-- const llmConfig = createTestLLMConfig();-- expect(llmConfig.model).toBe('my/model');- expect(llmConfig.api_key).toBe('api-key');- expect(llmConfig.base_url).toBe('https://api.example.com');- });- });-- describe('Test Utility Functions', () => {- const testDir = '/tmp/test-utils-test';-- beforeAll(() => {- // Create test directory- if (!fs.existsSync(testDir)) {- fs.mkdirSync(testDir, { recursive: true });- }- });-- afterAll(() => {- // Cleanup- if (fs.existsSync(testDir)) {- fs.rmSync(testDir, { recursive: true });- }- });-- it('should generate unique file names', () => {- const name1 = uniqueFileName('test');- const name2 = uniqueFileName('test');-- expect(name1).not.toBe(name2);- expect(name1).toMatch(/^test-\d+-[a-z0-9]+\.txt$/);- });-- it('should generate unique file names with custom extension', () => {- const name = uniqueFileName('myfile', 'json');- expect(name).toMatch(/^myfile-\d+-[a-z0-9]+\.json$/);- });-- it('should generate unique directory names', () => {- const name1 = uniqueDirName('dir');- const name2 = uniqueDirName('dir');-- expect(name1).not.toBe(name2);- expect(name1).toMatch(/^dir-\d+-[a-z0-9]+$/);- });-- it('should generate random content', () => {- const content1 = randomContent(100);- const content2 = randomContent(100);-- expect(content1).toHaveLength(100);- expect(content2).toHaveLength(100);- // Random content should (almost always) be different- expect(content1).not.toBe(content2);- });-- it('should sleep for specified duration', async () => {- const start = Date.now();- await sleep(100);- const elapsed = Date.now() - start;-- expect(elapsed).toBeGreaterThanOrEqual(90);- expect(elapsed).toBeLessThan(200);- });-- it('should wait for condition to be true', async () => {- let value = false;- setTimeout(() => {- value = true;- }, 100);-- await waitFor(() => value, { timeout: 1000, interval: 50 });- expect(value).toBe(true);- });-- it('should throw on waitFor timeout', async () => {- await expect(- waitFor(() => false, { timeout: 100, interval: 20, message: 'test condition' })- ).rejects.toThrow('Timeout waiting: test condition');- });- });-});diff --git a/vendor/openhands-typescript-client/src/agent/agent.ts b/vendor/openhands-typescript-client/src/agent/agent.tsdeleted file mode 100644index 6e6d387ee9..0000000000--- a/vendor/openhands-typescript-client/src/agent/agent.ts+++ /dev/null@@ -1,45 +0,0 @@-/**- * Agent class that provides a constructor-based API for creating agents.- * Provides a cleaner API that matches the Python SDK naming.- */--import { AgentBase, LLM } from '../types/base';--export interface AgentOptions {- llm: LLM;- kind?: string;- name?: string;- [key: string]: any;-}--/**- * Agent class that implements AgentBase interface.- * Provides a constructor-based API for creating agents.- *- * Usage:- * const agent = new Agent({- * llm: {- * model: 'gpt-4',- * api_key: 'your-key'- * }- * });- */-export class Agent implements AgentBase {- kind: string;- llm: LLM;- name?: string;- [key: string]: any;-- constructor(options: AgentOptions) {- this.kind = options.kind || 'Agent';- this.llm = options.llm;- this.name = options.name;-- // Copy any additional properties- Object.keys(options).forEach((key) => {- if (key !== 'kind' && key !== 'llm' && key !== 'name') {- this[key] = options[key];- }- });- }-}diff --git a/vendor/openhands-typescript-client/src/agent/index.ts b/vendor/openhands-typescript-client/src/agent/index.tsdeleted file mode 100644index 678d6d7d2e..0000000000--- a/vendor/openhands-typescript-client/src/agent/index.ts+++ /dev/null@@ -1 +0,0 @@-export { Agent, AgentOptions } from './agent';diff --git a/vendor/openhands-typescript-client/src/client/bash-client.ts b/vendor/openhands-typescript-client/src/client/bash-client.tsdeleted file mode 100644index bf00069d77..0000000000--- a/vendor/openhands-typescript-client/src/client/bash-client.ts+++ /dev/null@@ -1,109 +0,0 @@-import { HttpClient, HttpError } from './http-client';-import {- BashCommand,- BashEvent,- BashEventPage,- BashEventSearchOptions,- BashOutput,- ClearBashEventsResponse,- ExecuteBashRequest,-} from '../models/workspace';--export interface BashClientOptions {- host: string;- apiKey?: string;- timeout?: number;-}--export class BashClient {- public readonly host: string;- public readonly apiKey?: string;- private readonly client: HttpClient;-- constructor(options: BashClientOptions) {- this.host = options.host.replace(/\/$/, '');- this.apiKey = options.apiKey;- this.client = new HttpClient({- baseUrl: this.host,- apiKey: this.apiKey,- timeout: options.timeout || 60000,- });- }-- async searchEvents(options: BashEventSearchOptions = {}): Promise<BashEventPage> {- const response = await this.client.get<BashEventPage>('/api/bash/bash_events/search', {- params: options as Record<string, unknown>,- });- return response.data;- }-- async getEvent(eventId: string): Promise<BashEvent> {- const response = await this.client.get<BashEvent>(`/api/bash/bash_events/${eventId}`);- return response.data;- }-- async getEvents(eventIds: string[]): Promise<Array<BashEvent | null>> {- return Promise.all(- eventIds.map(async (eventId) => {- try {- return await this.getEvent(eventId);- } catch (error) {- if (error instanceof HttpError && error.status === 404) {- return null;- }- throw error;- }- })- );- }-- async startCommand(- request: string | ExecuteBashRequest,- cwd?: string,- timeout?: number- ): Promise<BashCommand> {- const payload = this.normalizeRequest(request, cwd, timeout);- const response = await this.client.post<BashCommand>('/api/bash/start_bash_command', payload);- return response.data;- }-- async executeCommand(- request: string | ExecuteBashRequest,- cwd?: string,- timeout?: number- ): Promise<BashOutput> {- const payload = this.normalizeRequest(request, cwd, timeout);- const response = await this.client.post<BashOutput>('/api/bash/execute_bash_command', payload, {- timeout: ((payload.timeout || 30) + 10) * 1000,- });- return response.data;- }-- async clearEvents(): Promise<ClearBashEventsResponse> {- const response = await this.client.delete<ClearBashEventsResponse>('/api/bash/bash_events');- return response.data;- }-- close(): void {- this.client.close();- }-- private normalizeRequest(- request: string | ExecuteBashRequest,- cwd?: string,- timeout?: number- ): ExecuteBashRequest {- if (typeof request === 'string') {- return {- command: request,- ...(cwd ? { cwd } : {}),- ...(timeout !== undefined ? { timeout: Math.floor(timeout) } : {}),- };- }-- return {- ...request,- ...(request.timeout !== undefined ? { timeout: Math.floor(request.timeout) } : {}),- };- }-}diff --git a/vendor/openhands-typescript-client/src/client/desktop-client.ts b/vendor/openhands-typescript-client/src/client/desktop-client.tsdeleted file mode 100644index 465db56e88..0000000000--- a/vendor/openhands-typescript-client/src/client/desktop-client.ts+++ /dev/null@@ -1,35 +0,0 @@-import { HttpClient } from './http-client';-import { DesktopUrlResponse } from '../models/api';--export interface DesktopClientOptions {- host: string;- apiKey?: string;- timeout?: number;-}--export class DesktopClient {- public readonly host: string;- public readonly apiKey?: string;- private readonly client: HttpClient;-- constructor(options: DesktopClientOptions) {- this.host = options.host.replace(/\/$/, '');- this.apiKey = options.apiKey;- this.client = new HttpClient({- baseUrl: this.host,- apiKey: this.apiKey,- timeout: options.timeout || 60000,- });- }-- async getUrl(baseUrl?: string): Promise<string | null> {- const response = await this.client.get<DesktopUrlResponse>('/api/desktop/url', {- params: baseUrl ? { base_url: baseUrl } : undefined,- });- return response.data.url;- }-- close(): void {- this.client.close();- }-}diff --git a/vendor/openhands-typescript-client/src/client/http-client.ts b/vendor/openhands-typescript-client/src/client/http-client.tsdeleted file mode 100644index e086f98c24..0000000000--- a/vendor/openhands-typescript-client/src/client/http-client.ts+++ /dev/null@@ -1,218 +0,0 @@-/**- * HTTP client for OpenHands Agent Server API- */--export interface HttpClientOptions {- baseUrl: string;- apiKey?: string;- timeout?: number;-}--export type ResponseType = 'auto' | 'json' | 'text' | 'blob' | 'arrayBuffer';--export interface RequestOptions {- method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';- url: string;- params?: Record<string, unknown>;- data?: unknown;- headers?: Record<string, string>;- timeout?: number;- acceptableStatusCodes?: Set<number>;- responseType?: ResponseType;-}--export interface HttpResponse<T = unknown> {- data: T;- status: number;- statusText: string;- headers: Record<string, string>;-}--export class HttpError extends Error {- constructor(- public status: number,- public statusText: string,- public response?: unknown,- message?: string- ) {- super(message || `HTTP ${status}: ${statusText}`);- this.name = 'HttpError';- }-}--export class HttpClient {- private baseUrl: string;- private apiKey?: string;- private timeout: number;-- constructor(options: HttpClientOptions) {- this.baseUrl = options.baseUrl.replace(/\/$/, '');- this.apiKey = options.apiKey;- this.timeout = options.timeout || 60000;- }-- async request<T = unknown>(options: RequestOptions): Promise<HttpResponse<T>> {- const relativePath = options.url.startsWith('/') ? options.url.slice(1) : options.url;- const url = new URL(relativePath, this.baseUrl + '/');-- if (options.params) {- Object.entries(options.params).forEach(([key, value]) => {- if (value !== undefined && value !== null) {- if (Array.isArray(value)) {- value.forEach((item) => url.searchParams.append(key, String(item)));- } else {- url.searchParams.append(key, String(value));- }- }- });- }-- const headers: Record<string, string> = {- 'Content-Type': 'application/json',- ...options.headers,- };-- if (this.apiKey) {- headers['X-Session-API-Key'] = this.apiKey;- }-- const requestInit: RequestInit = {- method: options.method,- headers,- signal: AbortSignal.timeout(options.timeout || this.timeout),- };-- if (options.data && options.method !== 'GET') {- if (options.data instanceof FormData) {- delete headers['Content-Type'];- requestInit.body = options.data;- } else {- requestInit.body = JSON.stringify(options.data);- }- }-- try {- const response = await fetch(url.toString(), requestInit);-- const isAcceptable =- options.acceptableStatusCodes?.has(response.status) ||- (!options.acceptableStatusCodes && response.ok);-- if (!isAcceptable) {- let errorContent: unknown;- try {- const contentType = response.headers.get('content-type');- if (contentType?.includes('application/json')) {- errorContent = await response.json();- } else {- errorContent = await response.text();- }- } catch {- errorContent = null;- }-- throw new HttpError(- response.status,- response.statusText,- errorContent,- `HTTP request failed (${response.status} ${response.statusText}): ${JSON.stringify(errorContent)}`- );- }-- const data = (await this.parseResponse<T>(response, options.responseType || 'auto')) as T;-- const responseHeaders: Record<string, string> = {};- response.headers.forEach((value, key) => {- responseHeaders[key] = value;- });-- return {- data,- status: response.status,- statusText: response.statusText,- headers: responseHeaders,- };- } catch (error) {- if (error instanceof HttpError) {- throw error;- }-- if (error instanceof Error) {- if (error.name === 'AbortError') {- throw new Error(`Request timeout after ${options.timeout || this.timeout}ms`, {- cause: error,- });- }- throw new Error(`Request failed: ${error.message}`, { cause: error });- }-- throw new Error('Unknown request error', { cause: error });- }- }-- private async parseResponse<T>(response: Response, responseType: ResponseType): Promise<T> {- if (responseType === 'json') {- return (await response.json()) as T;- }-- if (responseType === 'text') {- return (await response.text()) as T;- }-- if (responseType === 'blob') {- return (await response.blob()) as T;- }-- if (responseType === 'arrayBuffer') {- return (await response.arrayBuffer()) as T;- }-- const contentType = response.headers.get('content-type');- if (contentType?.includes('application/json')) {- return (await response.json()) as T;- }- return (await response.text()) as T;- }-- async get<T = unknown>(- url: string,- options?: Omit<RequestOptions, 'method' | 'url'>- ): Promise<HttpResponse<T>> {- return this.request<T>({ method: 'GET', url, ...options });- }-- async post<T = unknown>(- url: string,- data?: unknown,- options?: Omit<RequestOptions, 'method' | 'url' | 'data'>- ): Promise<HttpResponse<T>> {- return this.request<T>({ method: 'POST', url, data, ...options });- }-- async put<T = unknown>(- url: string,- data?: unknown,- options?: Omit<RequestOptions, 'method' | 'url' | 'data'>- ): Promise<HttpResponse<T>> {- return this.request<T>({ method: 'PUT', url, data, ...options });- }-- async patch<T = unknown>(- url: string,- data?: unknown,- options?: Omit<RequestOptions, 'method' | 'url' | 'data'>- ): Promise<HttpResponse<T>> {- return this.request<T>({ method: 'PATCH', url, data, ...options });- }-- async delete<T = unknown>(- url: string,- options?: Omit<RequestOptions, 'method' | 'url'>- ): Promise<HttpResponse<T>> {- return this.request<T>({ method: 'DELETE', url, ...options });- }-- close(): void {- // No cleanup needed for fetch-based client- }-}diff --git a/vendor/openhands-typescript-client/src/client/llm-client.ts b/vendor/openhands-typescript-client/src/client/llm-client.tsdeleted file mode 100644index 5b365c3188..0000000000--- a/vendor/openhands-typescript-client/src/client/llm-client.ts+++ /dev/null@@ -1,45 +0,0 @@-import { HttpClient } from './http-client';-import { ModelsResponse, ProvidersResponse, VerifiedModelsResponse } from '../models/api';--export interface LLMMetadataClientOptions {- host: string;- apiKey?: string;- timeout?: number;-}--export class LLMMetadataClient {- public readonly host: string;- public readonly apiKey?: string;- private readonly client: HttpClient;-- constructor(options: LLMMetadataClientOptions) {- this.host = options.host.replace(/\/$/, '');- this.apiKey = options.apiKey;- this.client = new HttpClient({- baseUrl: this.host,- apiKey: this.apiKey,- timeout: options.timeout || 60000,- });- }-- async getProviders(): Promise<string[]> {- const response = await this.client.get<ProvidersResponse>('/api/llm/providers');- return response.data.providers;- }-- async getModels(provider?: string): Promise<string[]> {- const response = await this.client.get<ModelsResponse>('/api/llm/models', {- params: provider ? { provider } : undefined,- });- return response.data.models;- }-- async getVerifiedModels(): Promise<Record<string, string[]>> {- const response = await this.client.get<VerifiedModelsResponse>('/api/llm/models/verified');- return response.data.models;- }-- close(): void {- this.client.close();- }-}diff --git a/vendor/openhands-typescript-client/src/client/server-client.ts b/vendor/openhands-typescript-client/src/client/server-client.tsdeleted file mode 100644index f2f202c5ea..0000000000--- a/vendor/openhands-typescript-client/src/client/server-client.ts+++ /dev/null@@ -1,56 +0,0 @@-import { HttpClient } from './http-client';-import { AliveStatus, ReadyStatus } from '../models/api';-import { ServerInfo } from '../types/base';--export interface ServerClientOptions {- host: string;- apiKey?: string;- timeout?: number;-}--export class ServerClient {- public readonly host: string;- public readonly apiKey?: string;- private readonly client: HttpClient;-- constructor(options: ServerClientOptions) {- this.host = options.host.replace(/\/$/, '');- this.apiKey = options.apiKey;- this.client = new HttpClient({- baseUrl: this.host,- apiKey: this.apiKey,- timeout: options.timeout || 60000,- });- }-- async getRoot<T = unknown>(): Promise<T> {- const response = await this.client.get<T>('/');- return response.data;- }-- async getAlive(): Promise<AliveStatus> {- const response = await this.client.get<AliveStatus>('/alive');- return response.data;- }-- async getHealth(): Promise<string> {- const response = await this.client.get<string>('/health');- return response.data;- }-- async getReady(): Promise<ReadyStatus> {- const response = await this.client.get<ReadyStatus>('/ready', {- acceptableStatusCodes: new Set([200, 503]),- });- return response.data;- }-- async getServerInfo(): Promise<ServerInfo> {- const response = await this.client.get<ServerInfo>('/server_info');- return response.data;- }-- close(): void {- this.client.close();- }-}diff --git a/vendor/openhands-typescript-client/src/client/settings-client.ts b/vendor/openhands-typescript-client/src/client/settings-client.tsdeleted file mode 100644index 31be7af6f9..0000000000--- a/vendor/openhands-typescript-client/src/client/settings-client.ts+++ /dev/null@@ -1,38 +0,0 @@-import { HttpClient } from './http-client';-import { SettingsSchema } from '../models/api';--export interface SettingsClientOptions {- host: string;- apiKey?: string;- timeout?: number;-}--export class SettingsClient {- public readonly host: string;- public readonly apiKey?: string;- private readonly client: HttpClient;-- constructor(options: SettingsClientOptions) {- this.host = options.host.replace(/\/$/, '');- this.apiKey = options.apiKey;- this.client = new HttpClient({- baseUrl: this.host,- apiKey: this.apiKey,- timeout: options.timeout || 60000,- });- }-- async getAgentSchema(): Promise<SettingsSchema> {- const response = await this.client.get<SettingsSchema>('/api/settings/agent-schema');- return response.data;- }-- async getConversationSchema(): Promise<SettingsSchema> {- const response = await this.client.get<SettingsSchema>('/api/settings/conversation-schema');- return response.data;- }-- close(): void {- this.client.close();- }-}diff --git a/vendor/openhands-typescript-client/src/client/skills-client.ts b/vendor/openhands-typescript-client/src/client/skills-client.tsdeleted file mode 100644index 945f25887d..0000000000--- a/vendor/openhands-typescript-client/src/client/skills-client.ts+++ /dev/null@@ -1,38 +0,0 @@-import { HttpClient } from './http-client';-import { SkillsRequest, SkillsResponse, SyncResponse } from '../models/api';--export interface SkillsClientOptions {- host: string;- apiKey?: string;- timeout?: number;-}--export class SkillsClient {- public readonly host: string;- public readonly apiKey?: string;- private readonly client: HttpClient;-- constructor(options: SkillsClientOptions) {- this.host = options.host.replace(/\/$/, '');- this.apiKey = options.apiKey;- this.client = new HttpClient({- baseUrl: this.host,- apiKey: this.apiKey,- timeout: options.timeout || 60000,- });- }-- async getSkills(request: SkillsRequest = {}): Promise<SkillsResponse> {- const response = await this.client.post<SkillsResponse>('/api/skills', request);- return response.data;- }-- async syncSkills(): Promise<SyncResponse> {- const response = await this.client.post<SyncResponse>('/api/skills/sync', {});- return response.data;- }-- close(): void {- this.client.close();- }-}diff --git a/vendor/openhands-typescript-client/src/client/tool-client.ts b/vendor/openhands-typescript-client/src/client/tool-client.tsdeleted file mode 100644index f156d4aba2..0000000000--- a/vendor/openhands-typescript-client/src/client/tool-client.ts+++ /dev/null@@ -1,32 +0,0 @@-import { HttpClient } from './http-client';--export interface ToolClientOptions {- host: string;- apiKey?: string;- timeout?: number;-}--export class ToolClient {- public readonly host: string;- public readonly apiKey?: string;- private readonly client: HttpClient;-- constructor(options: ToolClientOptions) {- this.host = options.host.replace(/\/$/, '');- this.apiKey = options.apiKey;- this.client = new HttpClient({- baseUrl: this.host,- apiKey: this.apiKey,- timeout: options.timeout || 60000,- });- }-- async listTools(): Promise<string[]> {- const response = await this.client.get<string[]>('/api/tools/');- return response.data;- }-- close(): void {- this.client.close();- }-}diff --git a/vendor/openhands-typescript-client/src/client/vscode-client.ts b/vendor/openhands-typescript-client/src/client/vscode-client.tsdeleted file mode 100644index e36409bd73..0000000000--- a/vendor/openhands-typescript-client/src/client/vscode-client.ts+++ /dev/null@@ -1,48 +0,0 @@-import { HttpClient } from './http-client';-import { VSCodeStatusResponse, VSCodeUrlResponse } from '../models/api';--export interface VSCodeClientOptions {- host: string;- apiKey?: string;- timeout?: number;-}--export interface GetVSCodeUrlOptions {- baseUrl?: string;- workspaceDir?: string;-}--export class VSCodeClient {- public readonly host: string;- public readonly apiKey?: string;- private readonly client: HttpClient;-- constructor(options: VSCodeClientOptions) {- this.host = options.host.replace(/\/$/, '');- this.apiKey = options.apiKey;- this.client = new HttpClient({- baseUrl: this.host,- apiKey: this.apiKey,- timeout: options.timeout || 60000,- });- }-- async getUrl(options: GetVSCodeUrlOptions = {}): Promise<string | null> {- const response = await this.client.get<VSCodeUrlResponse>('/api/vscode/url', {- params: {- ...(options.baseUrl ? { base_url: options.baseUrl } : {}),- ...(options.workspaceDir ? { workspace_dir: options.workspaceDir } : {}),- },- });- return response.data.url;- }-- async getStatus(): Promise<VSCodeStatusResponse> {- const response = await this.client.get<VSCodeStatusResponse>('/api/vscode/status');- return response.data;- }-- close(): void {- this.client.close();- }-}diff --git a/vendor/openhands-typescript-client/src/clients.ts b/vendor/openhands-typescript-client/src/clients.tsdeleted file mode 100644index 326f9d0c03..0000000000--- a/vendor/openhands-typescript-client/src/clients.ts+++ /dev/null@@ -1,17 +0,0 @@-export { ServerClient } from './client/server-client';-export { BashClient } from './client/bash-client';-export { LLMMetadataClient } from './client/llm-client';-export { SettingsClient } from './client/settings-client';-export { SkillsClient } from './client/skills-client';-export { ToolClient } from './client/tool-client';-export { VSCodeClient } from './client/vscode-client';-export { DesktopClient } from './client/desktop-client';--export type { ServerClientOptions } from './client/server-client';-export type { BashClientOptions } from './client/bash-client';-export type { LLMMetadataClientOptions } from './client/llm-client';-export type { SettingsClientOptions } from './client/settings-client';-export type { SkillsClientOptions } from './client/skills-client';-export type { ToolClientOptions } from './client/tool-client';-export type { VSCodeClientOptions, GetVSCodeUrlOptions } from './client/vscode-client';-export type { DesktopClientOptions } from './client/desktop-client';diff --git a/vendor/openhands-typescript-client/src/conversation/base.ts b/vendor/openhands-typescript-client/src/conversation/base.tsdeleted file mode 100644index bba5e85990..0000000000--- a/vendor/openhands-typescript-client/src/conversation/base.ts+++ /dev/null@@ -1,177 +0,0 @@-/**- * Base conversation interface and types- *- * This file defines the abstract interface that all conversation implementations must follow.- * It mirrors the Python SDK's BaseConversation pattern.- */--import {- ConversationID,- Message,- ConversationCallbackType,- ConfirmationPolicyBase,- ConversationStats,- AgentBase,- SecretValue,- LLM,-} from '../types/base';-import { IWorkspace } from '../workspace/base';--/**- * Base conversation options that all conversation types share- */-export interface BaseConversationOptions {- /** Optional existing conversation ID to resume */- conversationId?: string;- /** Callback function for conversation events */- callback?: ConversationCallbackType;- /** Initial message to send when starting the conversation */- initialMessage?: string;- /** Maximum iterations before stopping (default: 50) */- maxIterations?: number;- /** Enable stuck detection (default: true) */- stuckDetection?: boolean;-}--/**- * Interface for events list.- * Provides access to conversation events.- */-export interface IEventsList {- /** Add an event to the list */- addEvent(event: unknown): Promise<void>;- /** Get all events (may have additional parameters in implementations) */- getEvents?(): Promise<unknown[]>;-}--/**- * Interface for conversation state objects.- * Provides access to conversation events and execution status.- *- * Note: This is a minimal interface. Specific implementations (RemoteState, LocalState)- * may have additional methods and properties.- */-export interface IConversationState {- /** The conversation ID */- readonly id: ConversationID;- /** Access to the events list */- readonly events: IEventsList;-}--/**- * Abstract interface for conversation implementations.- *- * Conversations manage the interaction between users and agents, handling message- * exchange, execution control, and state management. All conversation implementations- * support the same interface for interoperability.- *- * This mirrors the Python SDK's BaseConversation abstract class.- */-export interface IConversation {- /** The agent running in the conversation */- readonly agent: AgentBase;- /** The workspace for agent operations */- readonly workspace: IWorkspace;- /** The conversation ID (available after start()) */- readonly id: ConversationID;- /** Access to conversation state */- readonly state: IConversationState;-- /**- * Start or resume a conversation.- *- * @param options - Start options including initial message- */- start(options?: {- initialMessage?: string;- maxIterations?: number;- stuckDetection?: boolean;- }): Promise<void>;-- /**- * Get conversation statistics.- *- * @returns ConversationStats with iteration count and other metrics- */- conversationStats(): Promise<ConversationStats>;-- /**- * Send a message to the agent.- *- * @param message - Either a string (which will be converted to a user message)- * or a Message object- */- sendMessage(message: string | Message): Promise<void>;-- /**- * Execute the agent to process messages and perform actions.- *- * This method runs the agent until it finishes processing the current- * message or reaches the maximum iteration limit.- */- run(): Promise<void>;-- /**- * Pause the agent execution.- */- pause(): Promise<void>;-- /**- * Set the confirmation policy for the conversation.- *- * @param policy - The confirmation policy to apply- */- setConfirmationPolicy(policy: ConfirmationPolicyBase): Promise<void>;-- /**- * Send a confirmation response (accept or reject pending actions).- *- * @param accept - Whether to accept the pending action- * @param reason - Optional reason for the decision- */- sendConfirmationResponse(accept: boolean, reason?: string): Promise<void>;-- /**- * Generate a title for the conversation based on message history.- *- * @param maxLength - Maximum length of the generated title- * @param llm - Optional LLM to use for title generation- * @returns A generated title for the conversation- */- generateTitle(maxLength?: number, llm?: LLM): Promise<string>;-- /**- * Set the title of the conversation.- *- * @param title - The title to set- */- setTitle(title: string): Promise<void>;-- /**- * Update secrets available to the agent.- *- * @param secrets - Record of secret name to value mappings- */- updateSecrets(secrets: Record<string, SecretValue>): Promise<void>;-- /**- * Start the WebSocket client for real-time event streaming.- */- startWebSocketClient(): Promise<void>;-- /**- * Stop the WebSocket client.- */- stopWebSocketClient(): Promise<void>;-- /**- * Close the conversation and cleanup resources.- */- close(): Promise<void>;-}--/**- * Type discriminator for conversation types.- * Useful for runtime type checking and factory patterns.- */-export type ConversationType = 'local' | 'remote';diff --git a/vendor/openhands-typescript-client/src/conversation/conversation-manager.ts b/vendor/openhands-typescript-client/src/conversation/conversation-manager.tsdeleted file mode 100644index 4e5a3690ae..0000000000--- a/vendor/openhands-typescript-client/src/conversation/conversation-manager.ts+++ /dev/null@@ -1,369 +0,0 @@-/**- * Conversation manager for handling multiple conversations- */--import { HttpClient } from '../client/http-client';-import { DesktopClient } from '../client/desktop-client';-import { LLMMetadataClient } from '../client/llm-client';-import { ServerClient } from '../client/server-client';-import { SettingsClient } from '../client/settings-client';-import { SkillsClient } from '../client/skills-client';-import { ToolClient } from '../client/tool-client';-import { VSCodeClient } from '../client/vscode-client';-import { RemoteConversation } from './remote-conversation';-import { RemoteWorkspace } from '../workspace/remote-workspace';-import {- ACPAgentConfig,- ACPConversationInfo,- ACPConversationSearchResponse,- ConversationInfo,- ConversationSearchRequest,- ConversationSearchResponse,- CreateACPConversationRequest,- UpdateConversationRequest,-} from '../models/conversation';-import { AgentBase, ConversationExecutionStatus, ConversationID, Success } from '../types/base';--export class ACPConversationNamespace {- constructor(private readonly manager: ConversationManager) {}-- searchConversations(- options: ConversationSearchRequest = {}- ): Promise<ACPConversationSearchResponse> {- return this.manager.searchACPConversations(options);- }-- countConversations(options: { status?: ConversationExecutionStatus } = {}): Promise<number> {- return this.manager.countACPConversations(options);- }-- getConversations(conversationIds: ConversationID[]): Promise<Array<ACPConversationInfo | null>> {- return this.manager.getACPConversations(conversationIds);- }-- getAllConversations(): Promise<ACPConversationInfo[]> {- return this.manager.getAllACPConversations();- }-- getConversation(conversationId: ConversationID): Promise<ACPConversationInfo> {- return this.manager.getACPConversation(conversationId);- }-- createConversation(- agent: ACPAgentConfig,- options: {- initialMessage?: string;- maxIterations?: number;- stuckDetection?: boolean;- workingDir?: string;- } = {}- ): Promise<ACPConversationInfo> {- return this.manager.createACPConversation(agent, options);- }-}--export interface ConversationManagerOptions {- host: string;- apiKey?: string;-}--export class ConversationManager {- private readonly client: HttpClient;- public readonly host: string;- public readonly apiKey?: string;- public readonly server: ServerClient;- public readonly llm: LLMMetadataClient;- public readonly settings: SettingsClient;- public readonly skills: SkillsClient;- public readonly tools: ToolClient;- public readonly vscode: VSCodeClient;- public readonly desktop: DesktopClient;- public readonly acp: ACPConversationNamespace;-- constructor(options: ConversationManagerOptions) {- this.host = options.host.replace(/\/$/, '');- this.apiKey = options.apiKey;-- this.client = new HttpClient({- baseUrl: this.host,- apiKey: this.apiKey,- timeout: 60000,- });-- const clientOptions = {- host: this.host,- ...(this.apiKey ? { apiKey: this.apiKey } : {}),- };-- this.server = new ServerClient(clientOptions);- this.llm = new LLMMetadataClient(clientOptions);- this.settings = new SettingsClient(clientOptions);- this.skills = new SkillsClient(clientOptions);- this.tools = new ToolClient(clientOptions);- this.vscode = new VSCodeClient(clientOptions);- this.desktop = new DesktopClient(clientOptions);- this.acp = new ACPConversationNamespace(this);- }-- /**- * Search/list conversations- */- async searchConversations(- options: ConversationSearchRequest = {}- ): Promise<ConversationSearchResponse> {- const response = await this.client.get<ConversationSearchResponse>(- '/api/conversations/search',- {- params: options as Record<string, unknown>,- }- );- return response.data;- }-- /**- * Count conversations matching the provided filters.- */- async countConversations(- options: { status?: ConversationExecutionStatus } = {}- ): Promise<number> {- const response = await this.client.get<number>('/api/conversations/count', {- params: options as Record<string, unknown>,- });- return response.data;- }-- /**- * Batch get conversations by ID.- */- async getConversations(- conversationIds: ConversationID[]- ): Promise<Array<ConversationInfo | null>> {- const response = await this.client.get<Array<ConversationInfo | null>>('/api/conversations', {- params: { ids: conversationIds },- });- return response.data;- }-- /**- * Get all conversations (convenience method)- */- async getAllConversations(options?: { tag?: string[] }): Promise<ConversationInfo[]> {- const conversations: ConversationInfo[] = [];- let nextPageId: string | undefined;-- do {- const response = await this.searchConversations({- page_id: nextPageId,- limit: 100,- ...(options?.tag ? { tag: options.tag } : {}),- });-- conversations.push(...response.items);- nextPageId = response.next_page_id;- } while (nextPageId);-- return conversations;- }-- /**- * Get a specific conversation by ID- */- async getConversation(conversationId: ConversationID): Promise<ConversationInfo> {- const response = await this.client.get<ConversationInfo>(- `/api/conversations/${conversationId}`- );- return response.data;- }-- /**- * Create a new conversation- */- async createConversation(- agent: AgentBase,- options: {- initialMessage?: string;- maxIterations?: number;- stuckDetection?: boolean;- workingDir?: string;- } = {}- ): Promise<RemoteConversation> {- const workspace = new RemoteWorkspace({- host: this.host,- workingDir: options.workingDir || '/tmp',- apiKey: this.apiKey,- });-- const conversation = new RemoteConversation(agent, workspace, {- maxIterations: options.maxIterations,- stuckDetection: options.stuckDetection,- });-- await conversation.start({- initialMessage: options.initialMessage,- });-- return conversation;- }-- /**- * Load an existing conversation- */- async loadConversation(- conversationId: ConversationID,- workingDir: string = '/tmp'- ): Promise<RemoteConversation> {- const conversationInfo = await this.getConversation(conversationId);-- const workspace = new RemoteWorkspace({- host: this.host,- workingDir,- apiKey: this.apiKey,- });-- const conversation = new RemoteConversation(conversationInfo.agent, workspace, {- conversationId,- });-- await conversation.start();- return conversation;- }-- /**- * Search ACP-capable conversations.- */- async searchACPConversations(- options: ConversationSearchRequest = {}- ): Promise<ACPConversationSearchResponse> {- const response = await this.client.get<ACPConversationSearchResponse>(- '/api/acp/conversations/search',- {- params: options as Record<string, unknown>,- }- );- return response.data;- }-- /**- * Count ACP-capable conversations.- */- async countACPConversations(- options: { status?: ConversationExecutionStatus } = {}- ): Promise<number> {- const response = await this.client.get<number>('/api/acp/conversations/count', {- params: options,- });- return response.data;- }-- /**- * Batch get ACP-capable conversations by ID.- */- async getACPConversations(- conversationIds: ConversationID[]- ): Promise<Array<ACPConversationInfo | null>> {- const response = await this.client.get<Array<ACPConversationInfo | null>>(- '/api/acp/conversations',- {- params: { ids: conversationIds },- }- );- return response.data;- }-- /**- * Get all ACP-capable conversations (convenience method).- */- async getAllACPConversations(): Promise<ACPConversationInfo[]> {- const conversations: ACPConversationInfo[] = [];- let nextPageId: string | undefined;-- do {- const response = await this.searchACPConversations({- page_id: nextPageId,- limit: 100,- });-- conversations.push(...response.items);- nextPageId = response.next_page_id;- } while (nextPageId);-- return conversations;- }-- /**- * Get a specific ACP-capable conversation by ID.- */- async getACPConversation(conversationId: ConversationID): Promise<ACPConversationInfo> {- const response = await this.client.get<ACPConversationInfo>(- `/api/acp/conversations/${conversationId}`- );- return response.data;- }-- /**- * Create a new ACP-capable conversation.- */- async createACPConversation(- agent: ACPAgentConfig,- options: {- initialMessage?: string;- maxIterations?: number;- stuckDetection?: boolean;- workingDir?: string;- } = {}- ): Promise<ACPConversationInfo> {- let initialMessage: CreateACPConversationRequest['initial_message'];- if (options.initialMessage) {- initialMessage = {- role: 'user' as const,- content: [{ type: 'text' as const, text: options.initialMessage }],- };- }-- const request: CreateACPConversationRequest = {- agent,- initial_message: initialMessage,- max_iterations: options.maxIterations || 500,- stuck_detection: options.stuckDetection ?? true,- workspace: { type: 'local', working_dir: options.workingDir || '/tmp' },- };-- const response = await this.client.post<ACPConversationInfo>('/api/acp/conversations', request);- return response.data;- }-- /**- * Delete a conversation- */- async deleteConversation(conversationId: ConversationID): Promise<void> {- await this.client.delete<Success>(`/api/conversations/${conversationId}`);- }-- /**- * Update conversation metadata (e.g. title)- */- async updateConversation(- conversationId: ConversationID,- update: UpdateConversationRequest- ): Promise<ConversationInfo> {- const response = await this.client.patch<ConversationInfo>(- `/api/conversations/${conversationId}`,- update- );- return response.data;- }-- /**- * Close the manager and cleanup resources- */- close(): void {- this.server.close();- this.llm.close();- this.settings.close();- this.skills.close();- this.tools.close();- this.vscode.close();- this.desktop.close();- this.client.close();- }-}diff --git a/vendor/openhands-typescript-client/src/conversation/conversation.ts b/vendor/openhands-typescript-client/src/conversation/conversation.tsdeleted file mode 100644index 54d351f6ea..0000000000--- a/vendor/openhands-typescript-client/src/conversation/conversation.ts+++ /dev/null@@ -1,139 +0,0 @@-/**- * Conversation factory and utility functions- *- * This module provides a convenient factory pattern for creating conversation instances.- * It matches the Python SDK pattern while supporting both local and remote conversations.- */--import { AgentBase } from '../types/base';-import { IWorkspace } from '../workspace/base';-import { RemoteWorkspace } from '../workspace/remote-workspace';-import { LocalWorkspace } from '../workspace/local-workspace';-import { RemoteConversation, RemoteConversationOptions } from './remote-conversation';-import { LocalConversation, LocalConversationOptions } from './local-conversation';-import { IConversation, ConversationType } from './base';--/**- * Union type for all conversation options- */-export type ConversationOptions = RemoteConversationOptions | LocalConversationOptions;--/**- * Options for creating a conversation with explicit type selection- */-export interface CreateConversationOptions {- type: ConversationType;- agent: AgentBase;- workspace: IWorkspace;- options?: ConversationOptions;-}--/**- * Conversation class that extends RemoteConversation for backwards compatibility.- * Provides a cleaner API that matches the Python SDK naming.- *- * For new code, consider using the createConversation factory function- * or directly instantiating RemoteConversation or LocalConversation.- *- * Usage:- * ```typescript- * // Legacy usage (backwards compatible)- * const conversation = new Conversation(agent, workspace);- * await conversation.start();- *- * // For existing conversations:- * const conversation = new Conversation(agent, workspace, { conversationId: 'existing-id' });- * await conversation.start();- * ```- */-export class Conversation extends RemoteConversation {- constructor(agent: AgentBase, workspace: RemoteWorkspace, options?: RemoteConversationOptions) {- super(agent, workspace, options);- }-}--/**- * Factory function to create a conversation instance based on options.- *- * This provides a unified way to create either local or remote conversations- * based on the provided options.- *- * Usage:- * ```typescript- * // Create a remote conversation- * const remoteConversation = createConversation({- * type: 'remote',- * agent: myAgent,- * workspace: remoteWorkspace,- * options: { callback: (event) => console.log(event) }- * });- *- * // Create a local conversation- * const localConversation = createConversation({- * type: 'local',- * agent: myAgent,- * workspace: localWorkspace,- * options: { persistenceDir: '/path/to/persistence' }- * });- * ```- *- * @param config - The conversation configuration including type, agent, workspace, and options- * @returns A conversation instance implementing IConversation- */-export function createConversation(config: CreateConversationOptions): IConversation {- switch (config.type) {- case 'remote':- if (!(config.workspace instanceof RemoteWorkspace)) {- throw new Error('Remote conversation requires RemoteWorkspace');- }- return new RemoteConversation(- config.agent,- config.workspace,- config.options as RemoteConversationOptions- );-- case 'local':- return new LocalConversation(- config.agent,- config.workspace,- config.options as LocalConversationOptions- );-- default:- throw new Error(`Unknown conversation type: ${config.type}`);- }-}--/**- * Create a conversation automatically detecting the type from workspace.- *- * If the workspace is a RemoteWorkspace, creates a RemoteConversation.- * If the workspace is a LocalWorkspace, creates a LocalConversation.- *- * Usage:- * ```typescript- * // Automatically creates RemoteConversation- * const remote = createConversationAuto(agent, remoteWorkspace);- *- * // Automatically creates LocalConversation- * const local = createConversationAuto(agent, localWorkspace);- * ```- *- * @param agent - The agent to use for the conversation- * @param workspace - The workspace (determines conversation type)- * @param options - Optional conversation configuration- * @returns A conversation instance implementing IConversation- */-export function createConversationAuto(- agent: AgentBase,- workspace: IWorkspace,- options?: ConversationOptions-): IConversation {- if (workspace instanceof RemoteWorkspace) {- return new RemoteConversation(agent, workspace, options as RemoteConversationOptions);- }- if (workspace instanceof LocalWorkspace) {- return new LocalConversation(agent, workspace, options as LocalConversationOptions);- }- throw new Error('Workspace must be either RemoteWorkspace or LocalWorkspace');-}diff --git a/vendor/openhands-typescript-client/src/conversation/local-conversation.ts b/vendor/openhands-typescript-client/src/conversation/local-conversation.tsdeleted file mode 100644index 9b9be5760b..0000000000--- a/vendor/openhands-typescript-client/src/conversation/local-conversation.ts+++ /dev/null@@ -1,976 +0,0 @@-/**- * Local conversation implementation- *- * This implements the IConversation interface for local execution. Unlike RemoteConversation,- * LocalConversation runs the agent loop locally without connecting to a remote server.- *- * This mirrors the Python SDK's LocalConversation class.- */--import {- ConversationID,- Message,- ConversationCallbackType,- ConfirmationPolicyBase,- ConversationStats,- AgentBase,- SecretValue,- LLM,- Event,-} from '../types/base';-import { LocalWorkspace } from '../workspace/local-workspace';-import { IWorkspace } from '../workspace/base';-import { IConversation, IConversationState, IEventsList, BaseConversationOptions } from './base';-import { ILLM, ChatMessage, Tool, ToolCall, TokenStreamEvent } from '../llm/base';-import { generateSystemPrompt, TOOL_DESCRIPTIONS } from '../prompts';-import { SecretRegistry } from './secret-registry';-import { StuckDetector, StuckDetectionThresholds, StuckDetectionResult } from './stuck-detector';-import {- BaseEvent,- ActionEvent,- UserRejectObservation,- ConversationStateUpdateEvent,- generateEventId,-} from '../events/types';-import { ConfirmationPolicy, NeverConfirm } from '../security/confirmation-policy';-import { SecurityAnalyzer } from '../security/security-analyzer';--/**- * Tool executor function type.- * Takes a tool call and returns the result string.- */-export type ToolExecutor = (toolCall: ToolCall) => Promise<string> | string;--/**- * Token callback type for the conversation level.- */-export type ConversationTokenCallback = (event: TokenStreamEvent) => void;--/**- * Options for creating a LocalConversation instance.- */-export interface LocalConversationOptions extends BaseConversationOptions {- /** The LLM instance to use for the conversation */- llm: ILLM;- /** Optional system prompt for the agent */- systemPrompt?: string;- /** Optional persistence directory for saving conversation state */- persistenceDir?: string;- /** Custom tools to provide to the LLM (in addition to or instead of built-in tools) */- tools?: Tool[];- /** Custom tool executor function. If provided, handles all tool calls. */- toolExecutor?: ToolExecutor;- /** Whether to include built-in tools (execute_command, read_file, etc.). Default: true if no custom tools provided */- includeBuiltinTools?: boolean;- /** Token callback for streaming tokens during LLM generation */- tokenCallback?: ConversationTokenCallback;- /** Enable stuck detection (default: true) */- stuckDetection?: boolean;- /** Custom thresholds for stuck detection */- stuckDetectionThresholds?: Partial<StuckDetectionThresholds>;- /** Security analyzer for evaluating action risks */- securityAnalyzer?: SecurityAnalyzer;- /** Initial secrets to provide to the conversation */- secrets?: Record<string, SecretValue>;-}--/**- * Implementation of events list for local conversations.- * Stores typed events and provides indexing and search capabilities.- */-class LocalEventsList implements IEventsList {- private events: BaseEvent[] = [];- private idToIndex: Map<string, number> = new Map();-- async addEvent(event: BaseEvent): Promise<void> {- const index = this.events.length;- this.events.push(event);- this.idToIndex.set(event.id, index);- }-- async getEvents(): Promise<BaseEvent[]> {- return [...this.events];- }-- /**- * Get all events as an array (synchronous access).- */- getEventsSync(): BaseEvent[] {- return [...this.events];- }-- /**- * Get an event by index.- */- getByIndex(index: number): BaseEvent | undefined {- if (index < 0) {- index = this.events.length + index;- }- return this.events[index];- }-- /**- * Get an event by ID.- */- getById(id: string): BaseEvent | undefined {- const index = this.idToIndex.get(id);- return index !== undefined ? this.events[index] : undefined;- }-- /**- * Get the index of an event by ID.- */- getIndex(id: string): number | undefined {- return this.idToIndex.get(id);- }-- /**- * Get the number of events.- */- get length(): number {- return this.events.length;- }-- /**- * Iterate over events.- */- [Symbol.iterator](): Iterator<BaseEvent> {- return this.events[Symbol.iterator]();- }-- getEventCounts(): {- total: number;- messages: number;- actions: number;- observations: number;- errors: number;- } {- let messages = 0;- let actions = 0;- let observations = 0;- let errors = 0;- for (const event of this.events) {- if (event.kind === 'MessageEvent') messages++;- else if (event.kind === 'ActionEvent') actions++;- else if (event.kind === 'ObservationEvent') observations++;- else if (event.kind === 'AgentErrorEvent') errors++;- }- return { total: this.events.length, messages, actions, observations, errors };- }-}--/**- * Implementation of conversation state for local conversations.- */-class LocalConversationState implements IConversationState {- readonly id: ConversationID;- readonly events: LocalEventsList;- executionStatus: 'idle' | 'running' | 'paused' | 'finished' | 'waiting_for_confirmation' = 'idle';- confirmationPolicy: ConfirmationPolicy = new NeverConfirm();- securityAnalyzer?: SecurityAnalyzer;- /** Actions waiting for confirmation: action_id -> ActionEvent */- pendingActions: Map<string, ActionEvent> = new Map();-- constructor(id: ConversationID) {- this.id = id;- this.events = new LocalEventsList();- }-}--/**- * Built-in tools that require a functional workspace (execute_command, read_file, write_file).- * These are only registered when the workspace supports them (i.e., not a stub LocalWorkspace).- */-const WORKSPACE_TOOLS: Tool[] = [- {- type: 'function',- function: {- name: 'execute_command',- description: TOOL_DESCRIPTIONS.execute_command,- parameters: {- type: 'object',- properties: {- command: {- type: 'string',- description:- 'The bash command to execute. You can only execute one bash command at a time. If you need to run multiple commands sequentially, use `&&` or `;` to chain them together.',- },- cwd: {- type: 'string',- description: 'Working directory for the command (optional, defaults to workspace root)',- },- timeout: {- type: 'number',- description: 'Optional timeout in seconds for the command (default: 30)',- },- },- required: ['command'],- },- },- },- {- type: 'function',- function: {- name: 'read_file',- description: TOOL_DESCRIPTIONS.read_file,- parameters: {- type: 'object',- properties: {- path: {- type: 'string',- description: 'Path to the file to read (relative to workspace or absolute)',- },- },- required: ['path'],- },- },- },- {- type: 'function',- function: {- name: 'write_file',- description: TOOL_DESCRIPTIONS.write_file,- parameters: {- type: 'object',- properties: {- path: {- type: 'string',- description: 'Path to the file to write (relative to workspace or absolute)',- },- content: {- type: 'string',- description: 'Content to write to the file',- },- },- required: ['path', 'content'],- },- },- },-];--/**- * Built-in tools that work without a functional workspace.- * These are always available when built-in tools are enabled.- */-const STANDALONE_TOOLS: Tool[] = [- {- type: 'function',- function: {- name: 'think',- description: TOOL_DESCRIPTIONS.think,- parameters: {- type: 'object',- properties: {- thought: {- type: 'string',- description: 'The thought to log',- },- },- required: ['thought'],- },- },- },- {- type: 'function',- function: {- name: 'finish',- description: TOOL_DESCRIPTIONS.finish,- parameters: {- type: 'object',- properties: {- message: {- type: 'string',- description: 'Final message or summary to present to the user',- },- },- required: ['message'],- },- },- },-];--/**- * Local conversation implementation that runs the agent loop locally.- *- * LocalConversation provides direct agent execution on the local system without- * requiring a remote server. It integrates with an LLM (via ILLM interface) to- * process messages and execute tool calls through the LocalWorkspace.- *- * Example:- * ```typescript- * const workspace = new LocalWorkspace({ workingDir: '/path/to/project' });- * const llm = new OpenRouterLLM({ apiKey: 'your-key', defaultModel: 'anthropic/claude-3.5-sonnet' });- * const conversation = new LocalConversation(agent, workspace, {- * llm,- * maxIterations: 500,- * systemPrompt: 'You are a helpful assistant...'- * });- * await conversation.start({ initialMessage: 'Hello!' });- * await conversation.run();- * await conversation.close();- * ```- */-export class LocalConversation implements IConversation {- public readonly agent: AgentBase;- public readonly workspace: IWorkspace;- public readonly llm: ILLM;-- private _conversationId?: string;- private _state?: LocalConversationState;- private _title?: string;- private callback?: ConversationCallbackType;- private tokenCallback?: ConversationTokenCallback;- private persistenceDir?: string;- private systemPrompt: string;- private maxIterations: number = 500;- private messages: ChatMessage[] = [];- private _isPaused: boolean = false;- private _isFinished: boolean = false;- private _isWaitingForConfirmation: boolean = false;- private customTools?: Tool[];- private toolExecutor?: ToolExecutor;- private includeBuiltinTools: boolean;-- // New feature instances- private secretRegistry: SecretRegistry;- private stuckDetector?: StuckDetector;- private stuckDetectionEnabled: boolean;- private securityAnalyzer?: SecurityAnalyzer;-- constructor(agent: AgentBase, workspace: IWorkspace, options: LocalConversationOptions) {- this.agent = agent;- this.workspace = workspace;- this.llm = options.llm;- this.callback = options.callback;- this.tokenCallback = options.tokenCallback;- this._conversationId = options.conversationId;- this.persistenceDir = options.persistenceDir;- this.customTools = options.tools;- this.toolExecutor = options.toolExecutor;- // Include built-in tools by default only if no custom tools are provided- this.includeBuiltinTools = options.includeBuiltinTools ?? !options.tools;-- // Initialize secret registry- this.secretRegistry = new SecretRegistry();- if (options.secrets) {- this.secretRegistry.updateSecrets(options.secrets);- }-- // Initialize stuck detection- this.stuckDetectionEnabled = options.stuckDetection ?? true;- if (this.stuckDetectionEnabled) {- this.stuckDetector = new StuckDetector(options.stuckDetectionThresholds);- }-- // Initialize security analyzer- this.securityAnalyzer = options.securityAnalyzer;-- // Generate system prompt - use custom if provided, otherwise generate default- this.systemPrompt =- options.systemPrompt ||- generateSystemPrompt({- workingDir: workspace.workingDir,- });-- if (options.maxIterations !== undefined) {- this.maxIterations = options.maxIterations;- }- }-- /**- * Check whether the workspace supports actual operations.- * LocalWorkspace is a stub that throws on all operations.- */- private workspaceIsStub(): boolean {- return this.workspace instanceof LocalWorkspace;- }-- /**- * Get the tools available to the agent.- * Workspace-dependent tools (execute_command, read_file, write_file) are only- * included when the workspace supports actual operations.- */- private getTools(): Tool[] {- const tools: Tool[] = [];- if (this.includeBuiltinTools) {- tools.push(...STANDALONE_TOOLS);- if (!this.workspaceIsStub()) {- tools.push(...WORKSPACE_TOOLS);- }- }- if (this.customTools) {- tools.push(...this.customTools);- }- return tools;- }-- get id(): ConversationID {- if (!this._conversationId) {- throw new Error('Conversation ID not set. Call start() to initialize the conversation.');- }- return this._conversationId;- }-- get state(): IConversationState {- if (!this._state) {- if (!this._conversationId) {- throw new Error(- 'Conversation not initialized. Call start() to initialize the conversation.'- );- }- this._state = new LocalConversationState(this._conversationId);- }- return this._state;- }-- /**- * Start or resume a conversation.- */- async start(- options: { initialMessage?: string; maxIterations?: number; stuckDetection?: boolean } = {}- ): Promise<void> {- // Generate a conversation ID if not provided- if (!this._conversationId) {- this._conversationId = this.generateConversationId();- }-- // Initialize state- this._state = new LocalConversationState(this._conversationId);-- // Set max iterations if provided- if (options.maxIterations !== undefined) {- this.maxIterations = options.maxIterations;- }-- // Initialize message history with system prompt- this.messages = [{ role: 'system', content: this.systemPrompt }];-- // Add initial message if provided- if (options.initialMessage) {- await this.sendMessage(options.initialMessage);- }-- this.emitEvent({- type: 'message',- timestamp: Date.now(),- data: { kind: 'conversation_started', conversationId: this._conversationId },- });- }-- /**- * Get conversation statistics.- */- async conversationStats(): Promise<ConversationStats> {- if (!this._state) {- return { total_events: 0, message_events: 0, action_events: 0, observation_events: 0 };- }- const counts = this._state.events.getEventCounts();- return {- total_events: counts.total,- message_events: counts.messages,- action_events: counts.actions,- observation_events: counts.observations,- };- }-- /**- * Send a message to the agent.- */- async sendMessage(message: string | Message): Promise<void> {- const content = typeof message === 'string' ? message : JSON.stringify(message);-- // Add user message to history- this.messages.push({ role: 'user', content });-- // Record the event- this.emitEvent({- type: 'message',- timestamp: Date.now(),- data: { kind: 'user_message', content },- });- }-- /**- * Execute the agent loop to process messages.- *- * This runs the agent until:- * - The agent calls the finish() tool- * - Maximum iterations reached- * - pause() is called- * - An error occurs- */- async run(): Promise<void> {- if (!this._state) {- throw new Error('Conversation not started. Call start() first.');- }-- this._state.executionStatus = 'running';- this._isPaused = false;- this._isFinished = false;-- let iterations = 0;-- const tools = this.getTools();-- while (iterations < this.maxIterations && !this._isPaused && !this._isFinished) {- iterations++;-- try {- // Get LLM response- const response = await this.llm.chatCompletion({- messages: this.messages,- tools: tools.length > 0 ? tools : undefined,- toolChoice: tools.length > 0 ? 'auto' : undefined,- });-- const choice = response.choices[0];- if (!choice) {- throw new Error('No response from LLM');- }-- const assistantMessage = choice.message;-- // Add assistant message to history- this.messages.push({- role: 'assistant',- content: assistantMessage.content || '',- tool_calls: assistantMessage.tool_calls,- });-- // Emit the assistant's response- if (assistantMessage.content) {- this.emitEvent({- type: 'message',- timestamp: Date.now(),- data: { kind: 'assistant_message', content: assistantMessage.content },- });- }-- // Handle tool calls- if (assistantMessage.tool_calls && assistantMessage.tool_calls.length > 0) {- for (const toolCall of assistantMessage.tool_calls) {- if (this._isPaused || this._isFinished) break;- await this.handleToolCall(toolCall);- }- } else if (choice.finish_reason === 'stop') {- // No tool calls and stop reason - agent is done- this._isFinished = true;- }- } catch (error) {- this.emitEvent({- type: 'error',- timestamp: Date.now(),- data: {- kind: 'agent_error',- error: error instanceof Error ? error.message : String(error),- },- });- this._state.executionStatus = 'finished';- throw error;- }- }-- this._state.executionStatus = this._isPaused ? 'paused' : 'finished';-- if (iterations >= this.maxIterations && !this._isFinished) {- this.emitEvent({- type: 'observation',- timestamp: Date.now(),- data: { kind: 'max_iterations_reached', iterations },- });- }- }-- /**- * Handle a tool call from the LLM.- */- private async handleToolCall(toolCall: ToolCall): Promise<void> {- const { name, arguments: argsString } = toolCall.function;-- this.emitEvent({- type: 'action',- timestamp: Date.now(),- data: { kind: 'tool_call', tool: name, arguments: argsString },- });-- let result: string;-- try {- // If a custom tool executor is provided, use it for all tool calls- if (this.toolExecutor) {- result = await this.toolExecutor(toolCall);- // Check if this was a finish tool call- if (name === 'finish') {- this._isFinished = true;- }- } else {- // Use built-in tool handling- result = await this.executeBuiltinTool(toolCall);- }- } catch (error) {- result = `Error executing ${name}: ${error instanceof Error ? error.message : String(error)}`;- }-- // Add tool result to messages- this.messages.push({- role: 'tool',- content: result,- tool_call_id: toolCall.id,- });-- this.emitEvent({- type: 'observation',- timestamp: Date.now(),- data: { kind: 'tool_result', tool: name, result },- });- }-- /**- * Execute a built-in tool.- */- private async executeBuiltinTool(toolCall: ToolCall): Promise<string> {- const { name, arguments: argsString } = toolCall.function;- const args = JSON.parse(argsString);-- switch (name) {- case 'execute_command': {- const cmdResult = await this.workspace.executeCommand(args.command, args.cwd);- let result = `Exit code: ${cmdResult.exit_code}\n`;- if (cmdResult.stdout) result += `stdout:\n${cmdResult.stdout}\n`;- if (cmdResult.stderr) result += `stderr:\n${cmdResult.stderr}`;- if (cmdResult.timeout_occurred) result += '\n(Command timed out)';- return result;- }-- case 'read_file': {- const content = await this.workspace.downloadAsText(args.path);- return content;- }-- case 'write_file': {- const uploadResult = await this.workspace.fileUpload(args.content, args.path);- if (uploadResult.success) {- return `Successfully wrote ${uploadResult.file_size} bytes to ${args.path}`;- } else {- return `Failed to write file: ${uploadResult.error}`;- }- }-- case 'think': {- this.emitEvent({- type: 'observation',- timestamp: Date.now(),- data: { kind: 'think', thought: args.thought },- });- return 'Your thought has been logged.';- }-- case 'finish': {- this._isFinished = true;- this.emitEvent({- type: 'message',- timestamp: Date.now(),- data: { kind: 'finish', message: args.message },- });- return 'Task completed.';- }-- default:- return `Unknown tool: ${name}`;- }- }-- /**- * Pause agent execution.- */- async pause(): Promise<void> {- this._isPaused = true;- if (this._state) {- this._state.executionStatus = 'paused';- }- this.emitEvent({- type: 'message',- timestamp: Date.now(),- data: { kind: 'paused' },- });- }-- /**- * Set the confirmation policy.- */- async setConfirmationPolicy(policy: ConfirmationPolicyBase | ConfirmationPolicy): Promise<void> {- if (this._state) {- // If it's a ConfirmationPolicyBase (old interface), wrap it- if ('requiresConfirmation' in policy) {- this._state.confirmationPolicy = policy as ConfirmationPolicy;- } else {- // Create a simple wrapper- this._state.confirmationPolicy = {- type: (policy as ConfirmationPolicyBase).type,- requiresConfirmation: () => (policy as ConfirmationPolicyBase).type === 'always',- };- }- }- }-- /**- * Send a confirmation response.- *- * Note: Confirmation handling is not yet fully implemented in LocalConversation.- */- async sendConfirmationResponse(accept: boolean, reason?: string): Promise<void> {- this.emitEvent({- type: 'message',- timestamp: Date.now(),- data: { kind: 'confirmation_response', accept, reason },- });- // Resume execution if paused for confirmation- if (accept) {- this._isPaused = false;- }- }-- async setTitle(title: string): Promise<void> {- this._title = title;- }-- /**- * Generate a title for the conversation using the LLM.- */- async generateTitle(maxLength: number = 50, _llm?: LLM): Promise<string> {- // LocalConversation always uses its own ILLM instance for title generation.- // The llm parameter exists for interface compatibility with RemoteConversation.- const llmToUse = this.llm;-- // Get a summary of the conversation- const userMessages = this.messages- .filter((m) => m.role === 'user')- .map((m) => (typeof m.content === 'string' ? m.content : JSON.stringify(m.content)))- .slice(0, 3)- .join('\n');-- if (!userMessages) {- return 'New Conversation';- }-- const prompt = `Generate a short title (max ${maxLength} characters) for a conversation that starts with:\n\n${userMessages}\n\nRespond with only the title, no quotes or explanation.`;-- const title = await llmToUse.generate(prompt);- return title.slice(0, maxLength).trim();- }-- /**- * Update secrets available to the agent.- * Secrets are stored in the SecretRegistry and can be used for:- * - Environment variable injection into commands- * - Output masking to prevent accidental exposure- */- async updateSecrets(secrets: Record<string, SecretValue>): Promise<void> {- this.secretRegistry.updateSecrets(secrets);- }-- /**- * Ask the agent a simple, stateless question and get a direct LLM response.- *- * This bypasses the normal conversation flow and does NOT modify, persist,- * or become part of the conversation state. The request is not remembered by- * the main agent, no events are recorded, and execution status is untouched.- *- * @param question - A simple string question to ask the agent- * @returns A string response from the agent- */- async askAgent(question: string): Promise<string> {- // Build context from recent conversation history- const contextMessages = this.messages.slice(-10); // Last 10 messages for context-- const askPrompt = `Based on the conversation context, please answer this question concisely:--Question: ${question}--Provide a direct answer without using any tools.`;-- const messages: ChatMessage[] = [...contextMessages, { role: 'user', content: askPrompt }];-- // Make a simple completion without tools- const response = await this.llm.chatCompletion({- messages,- // No tools - just get a direct answer- });-- return response.choices[0]?.message?.content || 'Unable to generate a response.';- }-- /**- * Reject all pending actions awaiting confirmation.- *- * @param reason - The reason for rejection- */- async rejectPendingActions(reason: string = 'User rejected the action'): Promise<void> {- if (!this._state) return;-- for (const [actionId, action] of this._state.pendingActions) {- // Emit rejection event- const rejectEvent: UserRejectObservation = {- id: generateEventId(),- kind: 'UserRejectObservation',- timestamp: new Date().toISOString(),- source: 'user',- action_id: actionId,- tool_name: action.tool_name ?? '',- tool_call_id: action.tool_call_id ?? '',- rejection_reason: reason,- rejection_source: 'user',- };-- this.emitTypedEvent(rejectEvent);-- // Add rejection as tool result- this.messages.push({- role: 'tool',- content: `Action rejected: ${reason}`,- tool_call_id: action.tool_call_id,- });- }-- // Clear pending actions- this._state.pendingActions.clear();-- // Resume if was waiting for confirmation- if (this._isWaitingForConfirmation) {- this._isWaitingForConfirmation = false;- this._state.executionStatus = 'running';- }- }-- /**- * Set the security analyzer for evaluating action risks.- *- * @param analyzer - The security analyzer to use, or null to disable- */- setSecurityAnalyzer(analyzer: SecurityAnalyzer | null): void {- this.securityAnalyzer = analyzer || undefined;- if (this._state) {- this._state.securityAnalyzer = this.securityAnalyzer;- }- }-- /**- * Check if the agent is currently stuck using the stuck detector.- *- * @returns StuckDetectionResult with details about any detected stuck pattern- */- checkIfStuck(): StuckDetectionResult {- if (!this.stuckDetector || !this._state) {- return { isStuck: false };- }-- const events = this._state.events.getEventsSync();- return this.stuckDetector.isStuck(events);- }-- /**- * Get the secret registry for direct access.- * Useful for masking secrets in custom output handling.- */- getSecretRegistry(): SecretRegistry {- return this.secretRegistry;- }-- /**- * Mask any secrets in the given text.- *- * @param text - Text that may contain secret values- * @returns Text with secret values replaced by <secret-hidden>- */- maskSecrets(text: string): string {- return this.secretRegistry.maskSecretsInOutput(text);- }-- /**- * Start WebSocket client.- *- * NOTE: LocalConversation doesn't use WebSocket since it runs locally.- */- async startWebSocketClient(): Promise<void> {- // No-op for local conversation- }-- /**- * Stop WebSocket client.- *- * NOTE: LocalConversation doesn't use WebSocket.- */- async stopWebSocketClient(): Promise<void> {- // No-op for local conversation- }-- /**- * Close the conversation and cleanup resources.- */- async close(): Promise<void> {- this._isPaused = true;- this._isFinished = true;- if (this._state) {- this._state.executionStatus = 'finished';- }- this.workspace.close();- this.llm.close();- const stateEvent: ConversationStateUpdateEvent = {- id: generateEventId(),- kind: 'ConversationStateUpdateEvent',- timestamp: new Date().toISOString(),- source: 'system',- key: 'status',- value: 'closed',- };- this.emitTypedEvent(stateEvent);- }-- /**- * Get the current message history.- */- getMessages(): ChatMessage[] {- return [...this.messages];- }-- /**- * Emit a typed event and call the callback if provided.- */- private emitTypedEvent(event: BaseEvent): void {- if (this._state) {- this._state.events.addEvent(event);- }- if (this.callback) {- // Convert to the callback's expected Event format- this.callback(event as Event);- }- }-- /**- * Emit an event (legacy format) and call the callback if provided.- * @deprecated Use emitTypedEvent instead- */- private emitEvent(event: { type: string; timestamp: number; data: unknown }): void {- // Convert to typed event- const typedEvent: BaseEvent = {- id: generateEventId(),- kind: (event.data as { kind?: string })?.kind || event.type,- timestamp: new Date(event.timestamp).toISOString(),- ...(event.data as Record<string, unknown>),- };-- if (this._state) {- this._state.events.addEvent(typedEvent);- }- if (this.callback) {- this.callback(typedEvent as Event);- }- }-- /**- * Generate a unique conversation ID.- */- private generateConversationId(): string {- return crypto.randomUUID();- }-}diff --git a/vendor/openhands-typescript-client/src/conversation/remote-conversation.ts b/vendor/openhands-typescript-client/src/conversation/remote-conversation.tsdeleted file mode 100644index f28ef2a3c1..0000000000--- a/vendor/openhands-typescript-client/src/conversation/remote-conversation.ts+++ /dev/null@@ -1,412 +0,0 @@-/**- * Remote conversation implementation- *- * This implements the IConversation interface by connecting to a remote OpenHands- * agent server. It mirrors the Python SDK's RemoteConversation class.- */--import { HttpClient } from '../client/http-client';-import { WebSocketCallbackClient, ErrorCallbackType } from '../events/websocket-client';-import { RemoteState } from './remote-state';-import { RemoteWorkspace } from '../workspace/remote-workspace';-import {- ConversationID,- Message,- ConversationCallbackType,- ConfirmationPolicyBase,- ConversationStats,- AgentBase,- SecretValue,- LLM,-} from '../types/base';-import {- ConversationInfo,- SendMessageRequest,- ConfirmationResponseRequest,- CreateConversationRequest,- GenerateTitleRequest,- GenerateTitleResponse,- UpdateConversationRequest,- UpdateSecretsRequest,- AskAgentRequest,- AskAgentResponse,- SetSecurityAnalyzerRequest,- AgentResponseResult,- ForkConversationRequest,-} from '../models/conversation';-import { IConversation, BaseConversationOptions } from './base';-import { Success } from '../types/base';-import type { HookConfig } from '../hooks';--/**- * Options for creating a RemoteConversation instance.- */-export interface RemoteConversationOptions extends BaseConversationOptions {- /**- * Optional hook configuration for this conversation.- * Hooks are shell scripts that run server-side at key lifecycle events- * (PreToolUse, PostToolUse, UserPromptSubmit, Stop, etc.).- */- hookConfig?: HookConfig;- /**- * Optional error callback for non-fatal errors (WebSocket issues, state update failures).- * If not provided, these errors are silently ignored.- */- onError?: ErrorCallbackType;-}--/**- * Remote conversation implementation that connects to an OpenHands agent server.- *- * RemoteConversation provides access to a conversation running on a remote- * OpenHands agent server. This is the recommended approach for production deployments- * as it provides better isolation and security.- *- * Example:- * ```typescript- * const workspace = new RemoteWorkspace({- * host: 'https://agent-server.example.com',- * workingDir: '/workspace',- * apiKey: 'your-api-key'- * });- * const conversation = new RemoteConversation(agent, workspace, {- * callback: (event) => console.log(event)- * });- * await conversation.start({ initialMessage: 'Hello!' });- * await conversation.run();- * await conversation.close();- * ```- */-export class RemoteConversation implements IConversation {- public readonly agent: AgentBase;- public readonly workspace: RemoteWorkspace;- private _conversationId?: string;- private _state?: RemoteState;- private client: HttpClient;- private wsClient?: WebSocketCallbackClient;- private callback?: ConversationCallbackType;- private onError?: ErrorCallbackType;- private hookConfig?: HookConfig;-- constructor(- agent: AgentBase,- workspace: RemoteWorkspace,- options: RemoteConversationOptions = {}- ) {- this.agent = agent;- this.workspace = workspace;- this.callback = options.callback;- this.onError = options.onError;- this._conversationId = options.conversationId;- this.hookConfig = options.hookConfig;-- this.client = new HttpClient({- baseUrl: workspace.host,- apiKey: workspace.apiKey,- timeout: 60000,- });- }-- get id(): ConversationID {- if (!this._conversationId) {- throw new Error('Conversation ID not set. Call start() to initialize the conversation.');- }- return this._conversationId;- }-- get state(): RemoteState {- if (!this._state) {- if (!this._conversationId) {- throw new Error(- 'Conversation not initialized. Call start() to initialize the conversation.'- );- }- this._state = new RemoteState(this.client, this._conversationId);- }- return this._state;- }-- async start(- options: {- initialMessage?: string;- maxIterations?: number;- stuckDetection?: boolean;- hookConfig?: HookConfig;- } = {}- ): Promise<void> {- if (this._conversationId) {- // Existing conversation - verify it exists- await this.client.get<ConversationInfo>(`/api/conversations/${this._conversationId}`);- return;- }-- // Create new conversation- let initialMessage: Message | undefined;- if (options.initialMessage) {- initialMessage = {- role: 'user',- content: [{ type: 'text', text: options.initialMessage }],- };- }-- // Use hook config from start options, falling back to constructor option- const hookConfig = options.hookConfig ?? this.hookConfig ?? undefined;-- const request: CreateConversationRequest = {- agent: this.agent,- initial_message: initialMessage,- max_iterations: options.maxIterations || 500,- stuck_detection: options.stuckDetection ?? true,- workspace: { type: 'local', working_dir: this.workspace.workingDir },- hook_config: hookConfig ?? null,- };-- const response = await this.client.post<ConversationInfo>('/api/conversations', request);- const conversationInfo = response.data;- this._conversationId = conversationInfo.id;- }-- /**- * Load hooks configuration from the server workspace.- *- * This calls the server's hooks endpoint to read `.openhands/hooks.json`- * from the project directory.- *- * @param projectDir - Optional project directory path. Defaults to the workspace working dir.- * @returns The hook configuration, or null if no hooks are configured.- */- async loadHooks(projectDir?: string): Promise<HookConfig | null> {- const response = await this.client.post<{ hook_config: HookConfig | null }>('/api/hooks', {- project_dir: projectDir ?? this.workspace.workingDir,- });- return response.data.hook_config;- }-- /**- * Get the hook configuration for this conversation from the server.- *- * Fetches the current conversation info and returns the hook_config field.- *- * @returns The hook configuration, or null if no hooks are configured.- */- async getHookConfig(): Promise<HookConfig | null> {- const response = await this.client.get<ConversationInfo>(`/api/conversations/${this.id}`);- return response.data.hook_config ?? null;- }-- async conversationStats(): Promise<ConversationStats> {- const response = await this.client.get<ConversationInfo>(`/api/conversations/${this.id}`);- const stats = response.data.stats ?? response.data.conversation_stats;- if (!stats) {- throw new Error('No conversation stats available');- }- return stats;- }-- async sendMessage(message: string | Message): Promise<void> {- let messageContent: SendMessageRequest;-- if (typeof message === 'string') {- messageContent = {- role: 'user',- content: [{ type: 'text', text: message }],- run: false,- };- } else {- messageContent = {- role: 'user',- content: message.content,- run: false,- };- }-- await this.client.post(`/api/conversations/${this.id}/events`, messageContent);- }-- async run(): Promise<void> {- await this.client.post(`/api/conversations/${this.id}/run`);- }-- async pause(): Promise<void> {- await this.client.post(`/api/conversations/${this.id}/pause`);- }-- async setConfirmationPolicy(policy: ConfirmationPolicyBase): Promise<void> {- await this.client.post(`/api/conversations/${this.id}/confirmation_policy`, policy);- }-- async sendConfirmationResponse(accept: boolean, reason?: string): Promise<void> {- const request: ConfirmationResponseRequest = { accept, reason };- await this.client.post(`/api/conversations/${this.id}/events/respond_to_confirmation`, request);- }-- async setTitle(title: string): Promise<void> {- const request: UpdateConversationRequest = { title };- await this.client.patch(`/api/conversations/${this.id}`, request);- }-- async generateTitle(maxLength: number = 50, llm?: LLM): Promise<string> {- const request: GenerateTitleRequest = { max_length: maxLength };- if (llm) {- request.llm = llm;- }-- const response = await this.client.post<GenerateTitleResponse>(- `/api/conversations/${this.id}/generate_title`,- request- );- const title = response.data.title;- await this.setTitle(title);- return title;- }-- /**- * Ask the agent a simple question without affecting conversation state.- * This is useful for getting quick answers or clarifications.- */- async askAgent(question: string): Promise<string> {- const request: AskAgentRequest = { question };- const response = await this.client.post<AskAgentResponse>(- `/api/conversations/${this.id}/ask_agent`,- request- );- return response.data.response;- }-- /**- * Get the agent's final response text for this conversation.- */- async getAgentFinalResponse(): Promise<string> {- const response = await this.client.get<AgentResponseResult>(- `/api/conversations/${this.id}/agent_final_response`- );- return response.data.response;- }-- /**- * Switch the conversation to a named LLM profile.- */- async switchProfile(profileName: string): Promise<void> {- await this.client.post(`/api/conversations/${this.id}/switch_profile`, {- profile_name: profileName,- });- }-- /**- * Fork the current conversation and return a new RemoteConversation instance.- */- async fork(request: ForkConversationRequest = {}): Promise<RemoteConversation> {- const response = await this.client.post<ConversationInfo>(- `/api/conversations/${this.id}/fork`,- request- );-- const forkWorkspace = new RemoteWorkspace({- host: this.workspace.host,- workingDir: this.workspace.workingDir,- apiKey: this.workspace.apiKey,- });-- return new RemoteConversation(response.data.agent, forkWorkspace, {- conversationId: response.data.id,- callback: this.callback,- onError: this.onError,- hookConfig: response.data.hook_config ?? this.hookConfig,- });- }-- /**- * Download the persisted conversation trajectory as a ZIP blob.- */- async downloadTrajectory(): Promise<Blob> {- const response = await this.client.get<Blob>(`/api/file/download-trajectory/${this.id}`, {- responseType: 'blob',- });- return response.data;- }-- /**- * Force condensation of the conversation history.- * This can help reduce memory usage for long conversations.- */- async condense(): Promise<void> {- await this.client.post<Success>(`/api/conversations/${this.id}/condense`);- }-- /**- * Set the security analyzer for the conversation.- * The security analyzer evaluates action risks.- */- async setSecurityAnalyzer(securityAnalyzer: any | null): Promise<void> {- const request: SetSecurityAnalyzerRequest = { security_analyzer: securityAnalyzer };- await this.client.post(`/api/conversations/${this.id}/security_analyzer`, request);- }-- async updateSecrets(secrets: Record<string, SecretValue>): Promise<void> {- // Convert SecretValue functions to StaticSecret objects- const secretObjects: Record<string, { kind: 'StaticSecret'; value: string }> = {};- for (const [key, value] of Object.entries(secrets)) {- secretObjects[key] = {- kind: 'StaticSecret',- value: typeof value === 'function' ? value() : value,- };- }-- const request: UpdateSecretsRequest = { secrets: secretObjects };- await this.client.post(`/api/conversations/${this.id}/secrets`, request);- }-- async startWebSocketClient(): Promise<void> {- if (this.wsClient) {- return;- }-- const reportError = (error: Error): void => {- if (this.onError) {- this.onError(error);- }- };-- // Create combined callback that handles both user callback and state updates- const combinedCallback: ConversationCallbackType = (event) => {- // Add event to the events list- this.state.events.addEvent(event).catch((error) => {- reportError(- error instanceof Error ? error : new Error(`Error adding event to events list: ${error}`)- );- });-- // Update state if it's a state update event- const stateCallback = this.state.createStateUpdateCallback(this.onError);- stateCallback(event);-- // Call user callback if provided- if (this.callback) {- this.callback(event);- }- };-- this.wsClient = new WebSocketCallbackClient({- host: this.workspace.host,- conversationId: this.id,- callback: combinedCallback,- apiKey: this.workspace.apiKey,- onError: this.onError,- });-- this.wsClient.start();- }-- async stopWebSocketClient(): Promise<void> {- if (this.wsClient) {- this.wsClient.stop();- this.wsClient = undefined;- }- }-- async close(): Promise<void> {- await this.stopWebSocketClient();- this.client.close();- this.workspace.close();- }-}diff --git a/vendor/openhands-typescript-client/src/conversation/remote-state.ts b/vendor/openhands-typescript-client/src/conversation/remote-state.tsdeleted file mode 100644index edd70630a4..0000000000--- a/vendor/openhands-typescript-client/src/conversation/remote-state.ts+++ /dev/null@@ -1,244 +0,0 @@-/**- * Remote conversation state management- */--import { HttpClient } from '../client/http-client';-import { RemoteEventsList } from '../events/remote-events-list';-import {- ConversationID,- Event,- ConversationExecutionStatus,- AgentExecutionStatus,- ConfirmationPolicyBase,- // ConversationStats, // Unused for now- AgentBase,- ConversationCallbackType,-} from '../types/base';-import { ConversationInfo } from '../models/conversation';--const FULL_STATE_KEY = '__full_state__';--export interface ConversationStateUpdateEvent extends Event {- kind: 'ConversationStateUpdateEvent';- key: string;- value: any;-}--export class RemoteState {- private client: HttpClient;- private conversationId: string;- private _events: RemoteEventsList;- private cachedState: ConversationInfo | null = null;- private cachedAt = 0;- private lock = new AsyncLock();-- /** Cache TTL in milliseconds. Cached state older than this triggers a re-fetch. */- static CACHE_TTL_MS = 2000;-- constructor(client: HttpClient, conversationId: string) {- this.client = client;- this.conversationId = conversationId;- this._events = new RemoteEventsList(client, conversationId);- }-- private async getConversationInfo(): Promise<ConversationInfo> {- return await this.lock.acquire(async () => {- // Return cached state if available and fresh- if (this.cachedState !== null && Date.now() - this.cachedAt < RemoteState.CACHE_TTL_MS) {- return this.cachedState;- }-- // Fetch from REST API- const response = await this.client.get<any>(`/api/conversations/${this.conversationId}`);-- // Handle the case where the API returns a full_state wrapper- let conversationInfo: ConversationInfo;- if (response.data.full_state) {- conversationInfo = response.data.full_state as ConversationInfo;- } else {- conversationInfo = response.data as ConversationInfo;- }-- this.cachedState = conversationInfo;- this.cachedAt = Date.now();- return conversationInfo;- });- }-- /**- * Force a fresh fetch from the server, ignoring the cache.- */- async refresh(): Promise<ConversationInfo> {- this.cachedState = null;- return this.getConversationInfo();- }-- async updateStateFromEvent(event: ConversationStateUpdateEvent): Promise<void> {- await this.lock.acquire(async () => {- // Handle full state snapshot- if (event.key === FULL_STATE_KEY) {- if (this.cachedState === null) {- this.cachedState = {} as ConversationInfo;- }- const stateValue = event.value?.full_state ?? event.value;- Object.assign(this.cachedState, stateValue);- } else {- if (this.cachedState === null) {- this.cachedState = {} as ConversationInfo;- }- (this.cachedState as any)[event.key] = event.value;- }- this.cachedAt = Date.now();- });- }-- createStateUpdateCallback(onError?: (error: Error) => void): ConversationCallbackType {- return (event: Event) => {- if (event.kind === 'ConversationStateUpdateEvent') {- this.updateStateFromEvent(event as ConversationStateUpdateEvent).catch((error) => {- if (onError) {- onError(- error instanceof Error- ? error- : new Error(`Error updating state from event: ${error}`)- );- }- });- }- };- }-- get events(): RemoteEventsList {- return this._events;- }-- get id(): ConversationID {- return this.conversationId;- }-- /**- * Helper to unwrap full_state if present- */- private unwrapState(info: ConversationInfo): ConversationInfo {- return (info as any).full_state ?? info;- }-- /**- * Get the current execution status of the conversation.- * This method handles both the new `execution_status` field and the legacy `agent_status` field.- */- async getExecutionStatus(): Promise<ConversationExecutionStatus> {- const info = await this.getConversationInfo();- // Handle case where info might still be wrapped in full_state- const unwrappedInfo = this.unwrapState(info);- // Try new field first, fall back to legacy field- const statusStr = unwrappedInfo.execution_status ?? unwrappedInfo.agent_status;- if (statusStr === undefined || statusStr === null) {- throw new Error(`execution_status missing in conversation info: ${JSON.stringify(info)}`);- }- return statusStr;- }-- /**- * @deprecated Use getExecutionStatus() instead. This method is kept for backward compatibility.- */- async getAgentStatus(): Promise<AgentExecutionStatus> {- return this.getExecutionStatus();- }-- async setAgentStatus(value: AgentExecutionStatus): Promise<void> {- throw new Error(- `Setting execution_status on RemoteState has no effect. ` +- `Remote execution status is managed server-side. Attempted to set: ${value}`- );- }-- async getConfirmationPolicy(): Promise<ConfirmationPolicyBase> {- const info = await this.getConversationInfo();- const unwrappedInfo = this.unwrapState(info);- const policyData = unwrappedInfo.confirmation_policy;- if (policyData === undefined || policyData === null) {- throw new Error(`confirmation_policy missing in conversation info: ${JSON.stringify(info)}`);- }- return policyData;- }-- async getActivatedKnowledgeSkills(): Promise<string[]> {- const info = await this.getConversationInfo();- const unwrappedInfo = this.unwrapState(info);- return unwrappedInfo.activated_knowledge_skills || [];- }-- async getAgent(): Promise<AgentBase> {- const info = await this.getConversationInfo();- const unwrappedInfo = this.unwrapState(info);- const agentData = unwrappedInfo.agent;- if (agentData === undefined || agentData === null) {- throw new Error(`agent missing in conversation info: ${JSON.stringify(info)}`);- }- return agentData;- }-- async getWorkspace(): Promise<any> {- const info = await this.getConversationInfo();- const unwrappedInfo = this.unwrapState(info);- const workspace = unwrappedInfo.workspace;- if (workspace === undefined || workspace === null) {- throw new Error(`workspace missing in conversation info: ${JSON.stringify(info)}`);- }- return workspace;- }-- async getPersistenceDir(): Promise<string> {- const info = await this.getConversationInfo();- const unwrappedInfo = this.unwrapState(info);- const persistenceDir = unwrappedInfo.persistence_dir;- if (persistenceDir === undefined || persistenceDir === null) {- throw new Error(`persistence_dir missing in conversation info: ${JSON.stringify(info)}`);- }- return persistenceDir;- }-- async modelDump(): Promise<Record<string, any>> {- const info = await this.getConversationInfo();- const unwrappedInfo = this.unwrapState(info);- return unwrappedInfo as Record<string, any>;- }-- async modelDumpJson(): Promise<string> {- const data = await this.modelDump();- return JSON.stringify(data);- }-}--// Simple async lock for serializing state access-class AsyncLock {- private locked = false;- private queue: Array<() => void> = [];-- async acquire<T>(fn: () => Promise<T> | T): Promise<T> {- return new Promise((resolve, reject) => {- const execute = async () => {- try {- const result = await fn();- resolve(result);- } catch (error) {- reject(error);- } finally {- this.locked = false;- const next = this.queue.shift();- if (next) {- next();- }- }- };-- if (this.locked) {- this.queue.push(execute);- } else {- this.locked = true;- execute();- }- });- }-}diff --git a/vendor/openhands-typescript-client/src/conversation/secret-registry.ts b/vendor/openhands-typescript-client/src/conversation/secret-registry.tsdeleted file mode 100644index d37207bab5..0000000000--- a/vendor/openhands-typescript-client/src/conversation/secret-registry.ts+++ /dev/null@@ -1,286 +0,0 @@-/**- * Secret Registry for Conversations- *- * Manages secrets and injects them into commands when needed.- * Provides secret masking in output to prevent accidental exposure.- * This mirrors the Python SDK's SecretRegistry class.- */--import { SecretValue } from '../types/base';--// Re-export so existing consumers of this module still find the type-export type { SecretValue } from '../types/base';--/**- * Secret source types- */-export type SecretSourceKind = 'static' | 'callable';--/**- * Base interface for secret sources- */-export interface SecretSource {- kind: SecretSourceKind;- getValue(): string | null;-}--/**- * Static secret source - stores a fixed value- */-export class StaticSecretSource implements SecretSource {- readonly kind: SecretSourceKind = 'static';- private value: string;-- constructor(value: string) {- this.value = value;- }-- getValue(): string {- return this.value;- }-}--/**- * Callable secret source - evaluates a function to get the value- */-export class CallableSecretSource implements SecretSource {- readonly kind: SecretSourceKind = 'callable';- private getter: () => string;-- constructor(getter: () => string) {- this.getter = getter;- }-- getValue(): string | null {- try {- return this.getter();- } catch {- return null;- }- }-}--/**- * Wrap a SecretValue into a SecretSource- */-function wrapSecret(value: SecretValue): SecretSource {- if (typeof value === 'function') {- return new CallableSecretSource(value);- }- return new StaticSecretSource(value);-}--/**- * Manages secrets and injects them into bash commands when needed.- *- * The secret registry stores a mapping of secret keys to SecretSources- * that retrieve the actual secret values. When a bash command is about to be- * executed, it scans the command for any secret keys and provides the- * corresponding environment variables.- *- * Additionally, it tracks the latest exported values to enable consistent masking- * even when callable secrets fail on subsequent calls.- *- * Example:- * ```typescript- * const registry = new SecretRegistry();- * registry.updateSecrets({- * 'API_KEY': 'sk-secret-key',- * 'DYNAMIC_TOKEN': () => getToken(),- * });- *- * // Get env vars for a command- * const envVars = registry.getSecretsAsEnvVars('curl -H "Authorization: Bearer $API_KEY" ...');- *- * // Mask secrets in output- * const maskedOutput = registry.maskSecretsInOutput('Response with sk-secret-key visible');- * // Returns: 'Response with <secret-hidden> visible'- * ```- */-export class SecretRegistry {- /** Map of secret key to secret source */- private secretSources: Map<string, SecretSource> = new Map();-- /** Cache of successfully exported values for masking */- private exportedValues: Map<string, string> = new Map();-- /**- * Add or update secrets in the registry.- *- * @param secrets - Dictionary mapping secret keys to values or callable functions- */- updateSecrets(secrets: Record<string, SecretValue>): void {- for (const [key, value] of Object.entries(secrets)) {- this.secretSources.set(key, wrapSecret(value));- }- }-- /**- * Remove a secret from the registry.- *- * @param key - The secret key to remove- */- removeSecret(key: string): void {- this.secretSources.delete(key);- this.exportedValues.delete(key);- }-- /**- * Clear all secrets from the registry.- */- clearSecrets(): void {- this.secretSources.clear();- this.exportedValues.clear();- }-- /**- * Get the number of registered secrets.- */- get size(): number {- return this.secretSources.size;- }-- /**- * Get all registered secret keys.- */- get keys(): string[] {- return Array.from(this.secretSources.keys());- }-- /**- * Find all secret keys mentioned in the given text.- * Uses case-insensitive matching.- *- * @param text - The text to search for secret keys- * @returns Set of secret keys found in the text- */- findSecretsInText(text: string): Set<string> {- const foundKeys = new Set<string>();- const lowerText = text.toLowerCase();-- for (const key of this.secretSources.keys()) {- if (lowerText.includes(key.toLowerCase())) {- foundKeys.add(key);- }- }-- return foundKeys;- }-- /**- * Get secrets that should be exported as environment variables for a command.- *- * @param command - The bash command to check for secret references- * @returns Dictionary of environment variables to export (key -> value)- */- getSecretsAsEnvVars(command: string): Record<string, string> {- const foundSecrets = this.findSecretsInText(command);-- if (foundSecrets.size === 0) {- return {};- }-- const envVars: Record<string, string> = {};-- for (const key of foundSecrets) {- const source = this.secretSources.get(key);- if (!source) continue;-- const value = source.getValue();- if (value) {- envVars[key] = value;- this.exportedValues.set(key, value);- }- }-- return envVars;- }-- /**- * Mask secret values in the given text.- *- * This method uses the currently exported values to ensure comprehensive masking.- * It replaces all known secret values with '<secret-hidden>'.- *- * @param text - The text to mask secrets in- * @returns Text with secret values replaced by <secret-hidden>- */- maskSecretsInOutput(text: string): string {- if (!text) {- return text;- }-- let maskedText = text;-- // Mask using currently exported values- for (const value of this.exportedValues.values()) {- if (value) {- // Use a global replace- maskedText = maskedText.split(value).join('<secret-hidden>');- }- }-- // Also try to get fresh values from sources (in case they weren't exported yet)- for (const [key, source] of this.secretSources) {- try {- const value = source.getValue();- if (value && !this.exportedValues.has(key)) {- maskedText = maskedText.split(value).join('<secret-hidden>');- }- } catch {- // Ignore errors when trying to mask - we'll use cached values- }- }-- return maskedText;- }-- /**- * Check if a specific secret key is registered.- *- * @param key - The secret key to check- * @returns True if the key is registered- */- hasSecret(key: string): boolean {- return this.secretSources.has(key);- }-- /**- * Serialize the registry state for persistence.- * Note: Callable secrets cannot be serialized and will be omitted.- * Secret values are redacted by default for security.- *- * @param exposeSecrets - If true, include actual secret values (use with caution!)- * @returns Serialized registry state- */- serialize(exposeSecrets: boolean = false): Record<string, string | null> {- const result: Record<string, string | null> = {};-- for (const [key, source] of this.secretSources) {- if (source.kind === 'callable') {- // Callable secrets can't be serialized- result[key] = null;- } else if (exposeSecrets) {- result[key] = source.getValue();- } else {- result[key] = '**********';- }- }-- return result;- }-- /**- * Restore secrets from serialized state.- * Only static secrets can be restored.- *- * @param state - Previously serialized state- */- deserialize(state: Record<string, string | null>): void {- for (const [key, value] of Object.entries(state)) {- if (value !== null && value !== '**********') {- this.secretSources.set(key, new StaticSecretSource(value));- }- }- }-}diff --git a/vendor/openhands-typescript-client/src/conversation/stuck-detector.ts b/vendor/openhands-typescript-client/src/conversation/stuck-detector.tsdeleted file mode 100644index 76b505dfa8..0000000000--- a/vendor/openhands-typescript-client/src/conversation/stuck-detector.ts+++ /dev/null@@ -1,414 +0,0 @@-/**- * Stuck Detection for Conversations- *- * Detects when an agent is stuck in repetitive or unproductive patterns.- * This mirrors the Python SDK's StuckDetector class.- */--import {- BaseEvent,- ActionEvent,- ObservationEvent,- AgentErrorEvent,- isActionEvent,- isObservationEvent,- isAgentErrorEvent,- isMessageEvent,-} from '../events/types';--/**- * Thresholds for stuck detection patterns- */-export interface StuckDetectionThresholds {- /** Number of identical action-observation pairs before triggering (default: 4) */- actionObservation: number;- /** Number of identical action-error pairs before triggering (default: 4) */- actionError: number;- /** Number of consecutive agent messages without user input (default: 4) */- monologue: number;- /** Number of alternating patterns before triggering (default: 6) */- alternatingPattern: number;-}--/**- * Default thresholds for stuck detection- */-export const DEFAULT_STUCK_THRESHOLDS: StuckDetectionThresholds = {- actionObservation: 4,- actionError: 4,- monologue: 4,- alternatingPattern: 6,-};--/**- * Result of stuck detection check- */-export interface StuckDetectionResult {- /** Whether the agent is stuck */- isStuck: boolean;- /** Type of stuck pattern detected (if any) */- pattern?:- | 'action_observation_loop'- | 'action_error_loop'- | 'monologue'- | 'alternating_pattern'- | 'context_window_error';- /** Number of repetitions detected */- repetitions?: number;- /** Human-readable description */- description?: string;-}--/**- * Detects when an agent is stuck in repetitive or unproductive patterns.- *- * This detector analyzes the conversation history to identify various stuck patterns:- * 1. Repeating action-observation cycles- * 2. Repeating action-error cycles- * 3. Agent monologue (repeated messages without user input)- * 4. Repeating alternating action-observation patterns- * 5. Context window errors indicating memory issues- */-export class StuckDetector {- private thresholds: StuckDetectionThresholds;-- constructor(thresholds?: Partial<StuckDetectionThresholds>) {- this.thresholds = {- ...DEFAULT_STUCK_THRESHOLDS,- ...thresholds,- };- }-- /**- * Check if the agent is stuck based on the event history.- *- * @param events - Array of conversation events to analyze- * @returns StuckDetectionResult with stuck status and details- */- isStuck(events: BaseEvent[]): StuckDetectionResult {- // Find the last user message index- const lastUserMsgIndex = this.findLastUserMessageIndex(events);-- if (lastUserMsgIndex === -1) {- // No user message found, skip detection- return { isStuck: false };- }-- // Only analyze events after the last user message- const recentEvents = events.slice(lastUserMsgIndex + 1);-- // Determine minimum events needed- const minThreshold = Math.min(- this.thresholds.actionObservation,- this.thresholds.actionError,- this.thresholds.monologue- );-- if (recentEvents.length < minThreshold) {- return { isStuck: false };- }-- // Collect actions and observations for analysis- const maxNeeded = Math.max(this.thresholds.actionObservation, this.thresholds.actionError);- const lastActions: ActionEvent[] = [];- const lastObservations: (ObservationEvent | AgentErrorEvent)[] = [];-- // Collect from the end of history- for (let i = recentEvents.length - 1; i >= 0; i--) {- const event = recentEvents[i];- if (isActionEvent(event) && lastActions.length < maxNeeded) {- lastActions.push(event);- } else if (- (isObservationEvent(event) || isAgentErrorEvent(event)) &&- lastObservations.length < maxNeeded- ) {- lastObservations.push(event);- }- if (lastActions.length >= maxNeeded && lastObservations.length >= maxNeeded) {- break;- }- }-- // Check all stuck patterns-- // Scenario 1: Same action, same observation- const actionObsResult = this.checkRepeatingActionObservation(lastActions, lastObservations);- if (actionObsResult.isStuck) {- return actionObsResult;- }-- // Scenario 2: Same action, errors- const actionErrorResult = this.checkRepeatingActionError(lastActions, lastObservations);- if (actionErrorResult.isStuck) {- return actionErrorResult;- }-- // Scenario 3: Monologue- const monologueResult = this.checkMonologue(recentEvents);- if (monologueResult.isStuck) {- return monologueResult;- }-- // Scenario 4: Alternating action-observation pattern- if (recentEvents.length >= this.thresholds.alternatingPattern) {- const alternatingResult = this.checkAlternatingPattern(recentEvents);- if (alternatingResult.isStuck) {- return alternatingResult;- }- }-- return { isStuck: false };- }-- /**- * Find the index of the last user message in the events.- */- private findLastUserMessageIndex(events: BaseEvent[]): number {- for (let i = events.length - 1; i >= 0; i--) {- const event = events[i];- if (isMessageEvent(event) && event.source === 'user') {- return i;- }- }- return -1;- }-- /**- * Check for repeating action-observation pattern.- */- private checkRepeatingActionObservation(- lastActions: ActionEvent[],- lastObservations: (ObservationEvent | AgentErrorEvent)[]- ): StuckDetectionResult {- const threshold = this.thresholds.actionObservation;-- if (lastActions.length < threshold || lastObservations.length < threshold) {- return { isStuck: false };- }-- // Filter to only regular observations (not errors)- const observations = lastObservations.filter(isObservationEvent);- if (observations.length < threshold) {- return { isStuck: false };- }-- // Check if all actions are identical- const actionsEqual = lastActions- .slice(0, threshold)- .every((action) => this.actionsEqual(lastActions[0], action));-- // Check if all observations are identical- const observationsEqual = observations- .slice(0, threshold)- .every((obs) => this.observationsEqual(observations[0], obs));-- if (actionsEqual && observationsEqual) {- return {- isStuck: true,- pattern: 'action_observation_loop',- repetitions: threshold,- description: `Agent is repeating the same action-observation cycle ${threshold} times. Action: ${lastActions[0].tool_name}`,- };- }-- return { isStuck: false };- }-- /**- * Check for repeating action-error pattern.- */- private checkRepeatingActionError(- lastActions: ActionEvent[],- lastObservations: (ObservationEvent | AgentErrorEvent)[]- ): StuckDetectionResult {- const threshold = this.thresholds.actionError;-- if (lastActions.length < threshold || lastObservations.length < threshold) {- return { isStuck: false };- }-- // Check if all actions are identical- const actionsEqual = lastActions- .slice(0, threshold)- .every((action) => this.actionsEqual(lastActions[0], action));-- if (!actionsEqual) {- return { isStuck: false };- }-- // Check if all observations are errors- const allErrors = lastObservations.slice(0, threshold).every(isAgentErrorEvent);-- if (allErrors) {- return {- isStuck: true,- pattern: 'action_error_loop',- repetitions: threshold,- description: `Agent is repeating the same action ${threshold} times and getting errors. Action: ${lastActions[0].tool_name}`,- };- }-- return { isStuck: false };- }-- /**- * Check for agent monologue (repeated messages without user input).- */- private checkMonologue(events: BaseEvent[]): StuckDetectionResult {- const threshold = this.thresholds.monologue;-- if (events.length < threshold) {- return { isStuck: false };- }-- let agentMessageCount = 0;-- // Count consecutive agent messages from the end- for (let i = events.length - 1; i >= 0; i--) {- const event = events[i];-- if (isMessageEvent(event)) {- if (event.source === 'agent') {- agentMessageCount++;- } else if (event.source === 'user') {- // User interrupted, not a monologue- break;- }- } else if (event.kind === 'CondensationSummaryEvent') {- // Condensation events don't break the monologue pattern- continue;- } else {- // Other events (actions/observations) break the count- break;- }- }-- if (agentMessageCount >= threshold) {- return {- isStuck: true,- pattern: 'monologue',- repetitions: agentMessageCount,- description: `Agent has sent ${agentMessageCount} consecutive messages without user input`,- };- }-- return { isStuck: false };- }-- /**- * Check for alternating action-observation pattern (A-B-A-B-A-B).- */- private checkAlternatingPattern(events: BaseEvent[]): StuckDetectionResult {- const threshold = this.thresholds.alternatingPattern;-- const lastActions: ActionEvent[] = [];- const lastObservations: (ObservationEvent | AgentErrorEvent)[] = [];-- // Collect recent actions and observations- for (let i = events.length - 1; i >= 0; i--) {- const event = events[i];- if (isActionEvent(event) && lastActions.length < threshold) {- lastActions.push(event);- } else if (- (isObservationEvent(event) || isAgentErrorEvent(event)) &&- lastObservations.length < threshold- ) {- lastObservations.push(event);- }- if (lastActions.length === threshold && lastObservations.length === threshold) {- break;- }- }-- if (lastActions.length < threshold || lastObservations.length < threshold) {- return { isStuck: false };- }-- // Check for alternating pattern: even indices match, odd indices match- // This detects A-B-A-B-A-B patterns- const actionsAlternate = this.checkAlternatingEquality(lastActions);- const observationsAlternate = this.checkAlternatingEquality(lastObservations);-- if (actionsAlternate && observationsAlternate) {- return {- isStuck: true,- pattern: 'alternating_pattern',- repetitions: threshold,- description: `Agent is stuck in an alternating action-observation pattern`,- };- }-- return { isStuck: false };- }-- /**- * Check if elements alternate (even indices match each other, odd indices match each other).- */- private checkAlternatingEquality<T extends BaseEvent>(items: T[]): boolean {- if (items.length < 4) {- return false;- }-- // Check that items[0] == items[2] == items[4] ... and items[1] == items[3] == items[5] ...- for (let i = 0; i < items.length - 2; i++) {- if (!this.eventsEqual(items[i], items[i + 2])) {- return false;- }- }-- return true;- }-- /**- * Compare two action events for equality (ignoring IDs and timestamps).- */- private actionsEqual(a: ActionEvent, b: ActionEvent): boolean {- return (- a.source === b.source &&- a.tool_name === b.tool_name &&- a.thought === b.thought &&- JSON.stringify(a.action) === JSON.stringify(b.action)- );- }-- /**- * Compare two observation events for equality (ignoring IDs and timestamps).- */- private observationsEqual(a: ObservationEvent, b: ObservationEvent): boolean {- return (- a.source === b.source &&- a.tool_name === b.tool_name &&- JSON.stringify(a.observation) === JSON.stringify(b.observation)- );- }-- /**- * Compare two events for equality based on their type.- */- private eventsEqual(a: BaseEvent, b: BaseEvent): boolean {- if (a.kind !== b.kind) {- return false;- }-- if (isActionEvent(a) && isActionEvent(b)) {- return this.actionsEqual(a, b);- }-- if (isObservationEvent(a) && isObservationEvent(b)) {- return this.observationsEqual(a, b);- }-- if (isAgentErrorEvent(a) && isAgentErrorEvent(b)) {- return a.source === b.source && a.error === b.error;- }-- if (isMessageEvent(a) && isMessageEvent(b)) {- return (- a.source === b.source && JSON.stringify(a.llm_message) === JSON.stringify(b.llm_message)- );- }-- // Fallback: compare JSON representation- return JSON.stringify(a) === JSON.stringify(b);- }-}diff --git a/vendor/openhands-typescript-client/src/events/bash-websocket-client.ts b/vendor/openhands-typescript-client/src/events/bash-websocket-client.tsdeleted file mode 100644index 456cf152e9..0000000000--- a/vendor/openhands-typescript-client/src/events/bash-websocket-client.ts+++ /dev/null@@ -1,155 +0,0 @@-/**- * WebSocket client for bash event streaming.- */--import { BashEvent } from '../models/workspace';-import { ErrorCallbackType } from './websocket-client';--let WebSocketImpl: any;--if (typeof window !== 'undefined' && window.WebSocket) {- WebSocketImpl = window.WebSocket;-} else {- try {- // eslint-disable-next-line @typescript-eslint/no-require-imports- const ws = require('ws');- WebSocketImpl = ws;- } catch {- throw new Error(- 'WebSocket implementation not available. Install ws package for Node.js environments.'- );- }-}--export interface BashWebSocketClientOptions {- host: string;- callback: (event: BashEvent) => void;- apiKey?: string;- resendMode?: 'all';- onError?: ErrorCallbackType;-}--export class BashWebSocketClient {- private host: string;- private callback: (event: BashEvent) => void;- private apiKey?: string;- private resendMode?: 'all';- private onError?: ErrorCallbackType;- private ws?: any;- private reconnectDelay = 1000;- private maxReconnectDelay = 30000;- private currentDelay = 1000;- private shouldReconnect = true;- private reconnectTimer?: NodeJS.Timeout;-- constructor(options: BashWebSocketClientOptions) {- this.host = options.host;- this.callback = options.callback;- this.apiKey = options.apiKey;- this.resendMode = options.resendMode;- this.onError = options.onError;- }-- start(): void {- if (this.ws) {- return;- }-- this.shouldReconnect = true;- this.connect();- }-- stop(): void {- this.shouldReconnect = false;-- if (this.reconnectTimer) {- clearTimeout(this.reconnectTimer);- this.reconnectTimer = undefined;- }-- if (this.ws) {- this.ws.close();- this.ws = undefined;- }- }-- private connect(): void {- try {- const url = new URL(this.host);- const wsScheme = url.protocol === 'https:' ? 'wss:' : 'ws:';- const wsUrl = `${wsScheme}//${url.host}${url.pathname.replace(/\/$/, '')}/sockets/bash-events`;- const query = new URLSearchParams();-- if (this.apiKey) {- query.set('session_api_key', this.apiKey);- }-- if (this.resendMode) {- query.set('resend_mode', this.resendMode);- }-- const finalUrl = query.size > 0 ? `${wsUrl}?${query.toString()}` : wsUrl;- this.ws = new WebSocketImpl(finalUrl);-- this.ws.onopen = () => {- this.currentDelay = this.reconnectDelay;- };-- this.ws.onmessage = (event: { data: unknown }) => {- try {- const message = typeof event.data === 'string' ? event.data : String(event.data);- const eventData: BashEvent = JSON.parse(message);- this.callback(eventData);- } catch (error) {- this.reportError(- new Error(- `Error processing bash WebSocket message: ${error instanceof Error ? error.message : String(error)}`- )- );- }- };-- this.ws.onclose = () => {- this.ws = undefined;- if (this.shouldReconnect) {- this.scheduleReconnect();- }- };-- this.ws.onerror = () => {- if (this.shouldReconnect) {- this.scheduleReconnect();- }- };- } catch (error) {- this.reportError(- new Error(- `Failed to create bash WebSocket connection: ${error instanceof Error ? error.message : String(error)}`- )- );- if (this.shouldReconnect) {- this.scheduleReconnect();- }- }- }-- private reportError(error: Error): void {- if (this.onError) {- this.onError(error);- }- }-- private scheduleReconnect(): void {- if (this.reconnectTimer) {- return;- }-- this.reconnectTimer = setTimeout(() => {- this.reconnectTimer = undefined;- if (this.shouldReconnect) {- this.connect();- this.currentDelay = Math.min(this.currentDelay * 2, this.maxReconnectDelay);- }- }, this.currentDelay);- }-}diff --git a/vendor/openhands-typescript-client/src/events/remote-events-list.ts b/vendor/openhands-typescript-client/src/events/remote-events-list.tsdeleted file mode 100644index 8934ef9e61..0000000000--- a/vendor/openhands-typescript-client/src/events/remote-events-list.ts+++ /dev/null@@ -1,192 +0,0 @@-/**- * Remote events list β thin wrapper around the events search API.- *- * Events received via WebSocket are kept in a local cache so callers can- * iterate them without extra network calls. For historical events use- * `search()` or `getEvents()` which hit the server on demand.- */--import { HttpClient, HttpError } from '../client/http-client';-import { Event, ConversationCallbackType } from '../types/base';-import { EventPage } from '../types/base';--/**- * Options for searching events- */-export interface EventSearchOptions {- /** Maximum number of events to return per page */- limit?: number;- /** Page ID for pagination */- page_id?: string;- /** Filter by event kind/type (e.g., ActionEvent, MessageEvent) */- kind?: string;- /** Filter by event source (e.g., agent, user, environment) */- source?: string;- /** Filter by message content (case-insensitive) */- body?: string;- /** Sort order for events */- sort_order?: 'TIMESTAMP' | 'TIMESTAMP_DESC';- /** Filter: event timestamp >= this datetime (ISO 8601 format) */- timestamp__gte?: string;- /** Filter: event timestamp < this datetime (ISO 8601 format) */- timestamp__lt?: string;-}--export class RemoteEventsList {- private client: HttpClient;- private conversationId: string;- private cachedEvents: Event[] = [];- private cachedEventIds = new Set<string>();-- constructor(client: HttpClient, conversationId: string) {- this.client = client;- this.conversationId = conversationId;- }-- /**- * Search events with optional filters.- * Queries the server directly.- */- async search(options: EventSearchOptions = {}): Promise<EventPage> {- const params: Record<string, unknown> = {- limit: options.limit ?? 100,- };-- if (options.page_id) params.page_id = options.page_id;- if (options.kind) params.kind = options.kind;- if (options.source) params.source = options.source;- if (options.body) params.body = options.body;- if (options.sort_order) params.sort_order = options.sort_order;- if (options.timestamp__gte) params.timestamp__gte = options.timestamp__gte;- if (options.timestamp__lt) params.timestamp__lt = options.timestamp__lt;-- const response = await this.client.get<EventPage>(- `/api/conversations/${this.conversationId}/events/search`,- { params }- );-- return response.data;- }-- /**- * Count events matching the given filters.- */- async count(- options: Omit<EventSearchOptions, 'limit' | 'page_id' | 'sort_order'> = {}- ): Promise<number> {- const params: Record<string, unknown> = {};-- if (options.kind) params.kind = options.kind;- if (options.source) params.source = options.source;- if (options.body) params.body = options.body;- if (options.timestamp__gte) params.timestamp__gte = options.timestamp__gte;- if (options.timestamp__lt) params.timestamp__lt = options.timestamp__lt;-- const response = await this.client.get<number>(- `/api/conversations/${this.conversationId}/events/count`,- { params }- );-- return response.data;- }-- /**- * Get a server event by ID.- */- async getEventById(eventId: string): Promise<Event> {- const response = await this.client.get<Event>(- `/api/conversations/${this.conversationId}/events/${eventId}`- );- return response.data;- }-- /**- * Batch get server events by ID.- */- async getEventsById(eventIds: string[]): Promise<Array<Event | null>> {- return Promise.all(- eventIds.map(async (eventId) => {- try {- return await this.getEventById(eventId);- } catch (error) {- if (error instanceof HttpError && error.status === 404) {- return null;- }- throw error;- }- })- );- }-- async addEvent(event: Event): Promise<void> {- if (!this.cachedEventIds.has(event.id)) {- this.cachedEvents.push(event);- this.cachedEventIds.add(event.id);- }- }-- // Alias for compatibility with EventLog interface- async append(event: Event): Promise<void> {- await this.addEvent(event);- }-- createDefaultCallback(onError?: (error: Error) => void): ConversationCallbackType {- return (event: Event) => {- this.addEvent(event).catch((error) => {- if (onError) {- onError(- error instanceof Error ? error : new Error(`Error adding event to cache: ${error}`)- );- }- });- };- }-- async length(): Promise<number> {- return this.cachedEvents.length;- }-- async getEvent(index: number): Promise<Event | undefined> {- return this.cachedEvents[index];- }-- /**- * Fetch all events from the server, merged with any locally cached- * events received via WebSocket.- */- async getEvents(start?: number, end?: number): Promise<Event[]> {- const remote: Event[] = [];- let pageId: string | undefined;-- for (;;) {- const params: Record<string, unknown> = { limit: 100 };- if (pageId) params.page_id = pageId;-- const response = await this.client.get<EventPage>(- `/api/conversations/${this.conversationId}/events/search`,- { params }- );-- const data = response.data;- remote.push(...data.items);-- if (!data.next_page_id) break;- pageId = data.next_page_id;- }-- const remoteIds = new Set(remote.map((event) => event.id));- const merged = [...remote, ...this.cachedEvents.filter((event) => !remoteIds.has(event.id))];-- if (start === undefined && end === undefined) {- return merged;- }- return merged.slice(start, end);- }-- async *[Symbol.asyncIterator](): AsyncIterableIterator<Event> {- const events = await this.getEvents();- for (const event of events) {- yield event;- }- }-}diff --git a/vendor/openhands-typescript-client/src/events/types.ts b/vendor/openhands-typescript-client/src/events/types.tsdeleted file mode 100644index 1e82ee09c2..0000000000--- a/vendor/openhands-typescript-client/src/events/types.ts+++ /dev/null@@ -1,438 +0,0 @@-/**- * Rich event types for conversations- *- * These event types mirror the Python SDK's event system, providing- * structured events for all conversation activities.- */--import { Message, MessageContent, Event } from '../types/base';--/**- * Event ID type - unique identifier for events- */-export type EventID = string;--/**- * Source of an event- */-export type EventSource = 'agent' | 'user' | 'environment' | 'system' | 'hook';--/**- * Base interface for all rich conversation events.- * Extends the minimal Event interface from types/base.ts.- */-export interface BaseEvent extends Event {- /** Unique event identifier */- id: EventID;- /** Event type/kind discriminator */- kind: string;- /** ISO timestamp when event was created */- timestamp: string;- /** Source of the event */- source?: EventSource;-}--/**- * Message event - represents a message in the conversation- */-export interface MessageEvent extends BaseEvent {- kind: 'MessageEvent';- /** The LLM message content */- llm_message: Message;- /** List of activated skills for this message */- activated_skills?: string[];- /** Optional sender identifier */- sender?: string;-}--/**- * Action event - represents an action taken by the agent- */-export interface ActionEvent extends BaseEvent {- kind: 'ActionEvent';- /** The tool being called */- tool_name: string;- /** Tool call ID for correlation */- tool_call_id: string;- /** The action parameters/arguments */- action: Record<string, unknown>;- /** Agent's reasoning/thought for this action */- thought?: string;- /** LLM response ID that generated this action */- llm_response_id?: string;-}--/**- * Observation event - result of an action- */-export interface ObservationEvent extends BaseEvent {- kind: 'ObservationEvent';- /** The tool that produced this observation */- tool_name: string;- /** Tool call ID for correlation with action */- tool_call_id: string;- /** The observation content/result */- observation: unknown;- /** ID of the action this observation corresponds to */- action_id: string;-}--/**- * Agent error event - error during agent execution (scaffold error, not tool result).- * This IS sent to the LLM as a tool observation. Source is "agent".- */-export interface AgentErrorEvent extends BaseEvent {- kind: 'AgentErrorEvent';- /** The tool that caused the error */- tool_name: string;- /** Tool call ID for correlation */- tool_call_id: string;- /** Error message from the scaffold */- error: string;-}--/**- * System prompt event - system prompt sent to LLM- */-export interface SystemPromptEvent extends BaseEvent {- kind: 'SystemPromptEvent';- /** The system prompt content */- system_prompt: MessageContent;- /** Tools available to the agent */- tools: unknown[];-}--/**- * Pause event - agent execution paused- */-export interface PauseEvent extends BaseEvent {- kind: 'PauseEvent';- /** Reason for pausing */- reason?: string;-}--/**- * Condensation request event - request to condense conversation history- */-export interface CondensationRequestEvent extends BaseEvent {- kind: 'CondensationRequest';-}--/**- * Condensation summary event - the LLM-generated summary injected after condensation.- * This IS sent to the LLM as context (LLMConvertibleEvent).- */-export interface CondensationSummaryEvent extends BaseEvent {- kind: 'CondensationSummaryEvent';- /** The summary text of the condensed events */- summary: string;-}--/**- * Condensation event - marks that conversation history was condensed.- * Records which events were forgotten and optionally includes a summary.- * NOT sent to the LLM directly (infrastructure event).- */-export interface CondensationEvent extends BaseEvent {- kind: 'Condensation';- /** IDs of events that were removed from context */- forgotten_event_ids: string[];- /** Summary of the forgotten events, if generated */- summary?: string | null;- /** Where to insert the summary in the view after removing forgotten events */- summary_offset?: number | null;- /** LLM response ID that triggered this condensation */- llm_response_id: string;-}--/**- * Conversation state update event - state change notification- */-export interface ConversationStateUpdateEvent extends BaseEvent {- kind: 'ConversationStateUpdateEvent';- /** The state field that changed */- key: string;- /** New value of the field */- value: unknown;- /** Previous value (if available) */- previous_value?: unknown;-}--/**- * User reject observation - action was rejected by the user or a PreToolUse hook.- * Sent to the LLM as an observation.- */-export interface UserRejectObservation extends BaseEvent {- kind: 'UserRejectObservation';- /** The tool that was rejected */- tool_name: string;- /** Tool call ID for correlation with the action */- tool_call_id: string;- /** ID of the rejected action */- action_id: string;- /** Reason for rejection */- rejection_reason: string;- /** Source of the rejection */- rejection_source: 'user' | 'system';-}--/**- * Confirmation request event - action waiting for user confirmation- */-export interface ConfirmationRequestEvent extends BaseEvent {- kind: 'ConfirmationRequestEvent';- /** ID of the action awaiting confirmation */- action_id: string;- /** The action details */- action: ActionEvent;- /** Risk level of the action */- risk_level?: 'low' | 'medium' | 'high' | 'unknown';- /** Risk assessment details */- risk_assessment?: string;-}--/**- * Confirmation response event - user response to confirmation request- */-export interface ConfirmationResponseEvent extends BaseEvent {- kind: 'ConfirmationResponseEvent';- /** ID of the action being responded to */- action_id: string;- /** Whether the action was accepted */- accepted: boolean;- /** User's reason for the decision */- reason?: string;-}--/**- * Token event - raw token IDs from VLLM for LLM interaction tracking.- * Carries prompt and response token ID arrays, not streaming text tokens.- */-export interface TokenEvent extends BaseEvent {- kind: 'TokenEvent';- /** Token IDs from the prompt */- prompt_token_ids: number[];- /** Token IDs from the response */- response_token_ids: number[];-}--/**- * Stuck detection event - agent detected as stuck- */-export interface StuckDetectionEvent extends BaseEvent {- kind: 'StuckDetectionEvent';- /** Type of stuck pattern detected */- pattern:- | 'action_observation_loop'- | 'action_error_loop'- | 'monologue'- | 'alternating_pattern'- | 'context_window_error';- /** Number of repetitions detected */- repetitions: number;- /** Description of the stuck state */- description: string;-}--/**- * Finish event - agent finished the task- */-export interface FinishEvent extends BaseEvent {- kind: 'FinishEvent';- /** Final message from the agent */- message: string;- /** Whether the task was completed successfully */- success?: boolean;-}--/**- * Think event - agent's internal reasoning- */-export interface ThinkEvent extends BaseEvent {- kind: 'ThinkEvent';- /** The thought content */- thought: string;-}--/**- * Conversation error event - a conversation-level failure NOT sent to the LLM.- * Typically causes the run loop to move to ERROR state. Source is usually "environment".- */-export interface ConversationErrorEvent extends BaseEvent {- kind: 'ConversationErrorEvent';- /** Error code/type identifier */- code: string;- /** Detailed error message */- detail: string;-}--/**- * LLM completion log event - streams raw LLM completion logs from remote agents to clients.- */-export interface LLMCompletionLogEvent extends BaseEvent {- kind: 'LLMCompletionLogEvent';- /** Intended filename for the log, relative to the log directory */- filename: string;- /** JSON-encoded log data */- log_data: string;- /** Name of the model that produced the log */- model_name?: string;- /** LLM usage_id that produced this log */- usage_id?: string;-}--/**- * Hook execution event type - matches Python SDK's HookEventType literal.- */-export type HookExecutionEventType =- | 'PreToolUse'- | 'PostToolUse'- | 'UserPromptSubmit'- | 'SessionStart'- | 'SessionEnd'- | 'Stop';--/**- * Hook execution event - emitted when a hook is executed.- *- * Provides observability into hook execution, including which hook type- * was triggered, the command that was run, and the result.- */-export interface HookExecutionEvent extends BaseEvent {- kind: 'HookExecutionEvent';- source: 'hook';- /** The type of hook event that triggered this execution */- hook_event_type: HookExecutionEventType;- /** The hook command that was executed */- hook_command: string;- /** Tool name for PreToolUse/PostToolUse hooks */- tool_name?: string | null;- /** Whether the hook executed successfully */- success: boolean;- /** Whether the hook blocked the operation (exit code 2 or deny) */- blocked: boolean;- /** Exit code from the hook command */- exit_code: number;- /** Standard output from the hook */- stdout: string;- /** Standard error from the hook */- stderr: string;- /** Reason provided by hook (for blocking) */- reason?: string | null;- /** Additional context injected by hook (e.g., for UserPromptSubmit) */- additional_context?: string | null;- /** Error message if hook execution failed */- error?: string | null;- /** ID of the action this hook is associated with (PreToolUse/PostToolUse) */- action_id?: string | null;- /** ID of the message this hook is associated with (UserPromptSubmit) */- message_id?: string | null;- /** The input data that was passed to the hook */- hook_input?: Record<string, unknown> | null;-}--/**- * Union type of all conversation events- */-export type ConversationEvent =- | MessageEvent- | ActionEvent- | ObservationEvent- | AgentErrorEvent- | SystemPromptEvent- | PauseEvent- | CondensationRequestEvent- | CondensationSummaryEvent- | CondensationEvent- | ConversationStateUpdateEvent- | ConversationErrorEvent- | LLMCompletionLogEvent- | UserRejectObservation- | ConfirmationRequestEvent- | ConfirmationResponseEvent- | TokenEvent- | StuckDetectionEvent- | FinishEvent- | ThinkEvent- | HookExecutionEvent;--/**- * Type guard to check if an event is a MessageEvent- */-export function isMessageEvent(event: BaseEvent): event is MessageEvent {- return event.kind === 'MessageEvent';-}--/**- * Type guard to check if an event is an ActionEvent- */-export function isActionEvent(event: BaseEvent): event is ActionEvent {- return event.kind === 'ActionEvent';-}--/**- * Type guard to check if an event is an ObservationEvent- */-export function isObservationEvent(event: BaseEvent): event is ObservationEvent {- return event.kind === 'ObservationEvent';-}--/**- * Type guard to check if an event is an AgentErrorEvent- */-export function isAgentErrorEvent(event: BaseEvent): event is AgentErrorEvent {- return event.kind === 'AgentErrorEvent';-}--/**- * Type guard to check if event is observation-like (has action_id)- */-export function isObservationLike(- event: BaseEvent-): event is ObservationEvent | AgentErrorEvent | UserRejectObservation {- return (- event.kind === 'ObservationEvent' ||- event.kind === 'AgentErrorEvent' ||- event.kind === 'UserRejectObservation'- );-}--/**- * Type guard to check if an event is a ConversationErrorEvent- */-export function isConversationErrorEvent(event: BaseEvent): event is ConversationErrorEvent {- return event.kind === 'ConversationErrorEvent';-}--/**- * Type guard to check if an event is a CondensationEvent- */-export function isCondensationEvent(event: BaseEvent): event is CondensationEvent {- return event.kind === 'Condensation';-}--/**- * Type guard to check if an event is a HookExecutionEvent- */-export function isHookExecutionEvent(event: BaseEvent): event is HookExecutionEvent {- return event.kind === 'HookExecutionEvent';-}--/**- * Generate a unique event ID- */-export function generateEventId(): EventID {- return `evt_${Date.now()}_${crypto.randomUUID().substring(0, 8)}`;-}--/**- * Create a base event with common fields- */-export function createBaseEvent(kind: string, source?: EventSource): BaseEvent {- return {- id: generateEventId(),- kind,- timestamp: new Date().toISOString(),- source,- };-}diff --git a/vendor/openhands-typescript-client/src/events/websocket-client.ts b/vendor/openhands-typescript-client/src/events/websocket-client.tsdeleted file mode 100644index b908f34455..0000000000--- a/vendor/openhands-typescript-client/src/events/websocket-client.ts+++ /dev/null@@ -1,162 +0,0 @@-/**- * WebSocket client for real-time event streaming- */--import { Event, ConversationCallbackType } from '../types/base';--// Use native WebSocket in browser, ws library in Node.js-let WebSocketImpl: any;--if (typeof window !== 'undefined' && window.WebSocket) {- // Browser environment- WebSocketImpl = window.WebSocket;-} else {- // Node.js environment- try {- // eslint-disable-next-line @typescript-eslint/no-require-imports- const ws = require('ws');- WebSocketImpl = ws;- } catch {- throw new Error(- 'WebSocket implementation not available. Install ws package for Node.js environments.'- );- }-}--/**- * Error callback type for reporting non-fatal errors.- * Library code calls this instead of console.error so callers can handle errors.- */-export type ErrorCallbackType = (error: Error) => void;--export interface WebSocketClientOptions {- host: string;- conversationId: string;- callback: ConversationCallbackType;- apiKey?: string;- /** Optional error callback. Called for non-fatal errors (parse failures, connection issues). */- onError?: ErrorCallbackType;-}--export class WebSocketCallbackClient {- private host: string;- private conversationId: string;- private callback: ConversationCallbackType;- private apiKey?: string;- private onError?: ErrorCallbackType;- private ws?: any; // WebSocket instance (browser or Node.js)- private reconnectDelay = 1000;- private maxReconnectDelay = 30000;- private currentDelay = 1000;- private shouldReconnect = true;- private reconnectTimer?: NodeJS.Timeout;-- constructor(options: WebSocketClientOptions) {- this.host = options.host;- this.conversationId = options.conversationId;- this.callback = options.callback;- this.apiKey = options.apiKey;- this.onError = options.onError;- }-- start(): void {- if (this.ws) {- return;- }-- this.shouldReconnect = true;- this.connect();- }-- stop(): void {- this.shouldReconnect = false;-- if (this.reconnectTimer) {- clearTimeout(this.reconnectTimer);- this.reconnectTimer = undefined;- }-- if (this.ws) {- this.ws.close();- this.ws = undefined;- }- }-- private connect(): void {- try {- // Convert HTTP URL to WebSocket URL- const url = new URL(this.host);- const wsScheme = url.protocol === 'https:' ? 'wss:' : 'ws:';- const wsUrl = `${wsScheme}//${url.host}${url.pathname.replace(/\/$/, '')}/sockets/events/${this.conversationId}`;-- // Add API key as query parameter if provided- const finalUrl = this.apiKey ? `${wsUrl}?session_api_key=${this.apiKey}` : wsUrl;-- this.ws = new WebSocketImpl(finalUrl);-- this.ws.onopen = () => {- this.currentDelay = this.reconnectDelay;- };-- this.ws.onmessage = (event: { data: any }) => {- try {- const message = typeof event.data === 'string' ? event.data : event.data.toString();- const eventData: Event = JSON.parse(message);- this.callback(eventData);- } catch (error) {- this.reportError(- new Error(- `Error processing WebSocket message: ${error instanceof Error ? error.message : String(error)}`- )- );- }- };-- this.ws.onclose = () => {- this.ws = undefined;- if (this.shouldReconnect) {- this.scheduleReconnect();- }- };-- this.ws.onerror = () => {- if (this.shouldReconnect) {- this.scheduleReconnect();- }- };- } catch (error) {- this.reportError(- new Error(- `Failed to create WebSocket connection: ${error instanceof Error ? error.message : String(error)}`- )- );- if (this.shouldReconnect) {- this.scheduleReconnect();- }- }- }-- /**- * Report a non-fatal error via the onError callback if provided.- */- private reportError(error: Error): void {- if (this.onError) {- this.onError(error);- }- }-- private scheduleReconnect(): void {- if (this.reconnectTimer) {- return;- }-- this.reconnectTimer = setTimeout(() => {- this.reconnectTimer = undefined;- if (this.shouldReconnect) {- this.connect();- // Exponential backoff with jitter- this.currentDelay = Math.min(this.currentDelay * 2, this.maxReconnectDelay);- }- }, this.currentDelay);- }-}diff --git a/vendor/openhands-typescript-client/src/hooks/config.ts b/vendor/openhands-typescript-client/src/hooks/config.tsdeleted file mode 100644index 68966746d1..0000000000--- a/vendor/openhands-typescript-client/src/hooks/config.ts+++ /dev/null@@ -1,236 +0,0 @@-/**- * Hook configuration loading and management.- *- * Mirrors the Python SDK's openhands.sdk.hooks.config module.- * Browser-safe: no file I/O operations (those happen server-side).- */--import { HookEventType, HookType } from './types';--/**- * Valid snake_case field names for hook events.- * This is the single source of truth for hook event types.- */-export const HOOK_EVENT_FIELDS: ReadonlySet<string> = new Set([- 'pre_tool_use',- 'post_tool_use',- 'user_prompt_submit',- 'session_start',- 'session_end',- 'stop',-]);--/**- * A single hook definition.- */-export interface HookDefinition {- type?: HookType;- command: string;- timeout?: number;- async?: boolean;-}--/**- * Matches events to hooks based on patterns.- *- * Supports exact match, wildcard (*), and regex (auto-detected or /pattern/).- */-export interface HookMatcher {- matcher?: string;- hooks: HookDefinition[];-}--/**- * Configuration for all hooks.- */-export interface HookConfig {- pre_tool_use: HookMatcher[];- post_tool_use: HookMatcher[];- user_prompt_submit: HookMatcher[];- session_start: HookMatcher[];- session_end: HookMatcher[];- stop: HookMatcher[];- [key: string]: HookMatcher[];-}--/** Regex metacharacters that indicate a pattern should be treated as regex. */-const REGEX_METACHARACTERS = new Set('|.*+?[]()^$\\'.split(''));--/**- * Check if a matcher matches the given tool name.- */-export function matcherMatches(matcherDef: HookMatcher, toolName?: string | null): boolean {- const pattern = matcherDef.matcher ?? '*';-- if (pattern === '*' || pattern === '') return true;- if (toolName == null) return pattern === '*' || pattern === '';-- // Explicit regex: /pattern/- if (pattern.startsWith('/') && pattern.endsWith('/') && pattern.length > 2) {- const regexStr = pattern.slice(1, -1);- try {- return new RegExp(`^${regexStr}$`).test(toolName);- } catch {- return false;- }- }-- // Auto-detect regex: contains metacharacters- if ([...pattern].some((c) => REGEX_METACHARACTERS.has(c))) {- try {- return new RegExp(`^${pattern}$`).test(toolName);- } catch {- // Invalid regex, fall through to exact match- }- }-- return pattern === toolName;-}--/**- * Create an empty HookConfig.- */-export function createEmptyHookConfig(): HookConfig {- return {- pre_tool_use: [],- post_tool_use: [],- user_prompt_submit: [],- session_start: [],- session_end: [],- stop: [],- };-}--/**- * Check if a HookConfig has no hooks configured.- */-export function isHookConfigEmpty(config: HookConfig): boolean {- return ![- config.pre_tool_use,- config.post_tool_use,- config.user_prompt_submit,- config.session_start,- config.session_end,- config.stop,- ].some((list) => list.length > 0);-}--/** Convert PascalCase to snake_case. */-function pascalToSnake(name: string): string {- return name.replace(/(?<!^)(?=[A-Z])/g, '_').toLowerCase();-}--/**- * Normalize raw hooks data, supporting PascalCase keys and the legacy `{hooks: ...}` wrapper.- */-export function normalizeHooksInput(data: Record<string, unknown>): Record<string, unknown> {- let unwrapped = data;-- // Unwrap legacy format: {"hooks": {"PreToolUse": [...]}}- if ('hooks' in unwrapped && typeof unwrapped.hooks === 'object' && unwrapped.hooks !== null) {- unwrapped = unwrapped.hooks as Record<string, unknown>;- }-- const normalized: Record<string, unknown> = {};- const seenFields = new Set<string>();-- for (const [key, value] of Object.entries(unwrapped)) {- const snakeKey = pascalToSnake(key);- const isPascalCase = snakeKey !== key;-- if (isPascalCase && !HOOK_EVENT_FIELDS.has(snakeKey)) {- const validTypes = [...HOOK_EVENT_FIELDS].sort().join(', ');- throw new Error(`Unknown event type '${key}'. Valid types: ${validTypes}`);- }-- if (seenFields.has(snakeKey)) {- throw new Error(- `Duplicate hook event: both '${key}' and its snake_case equivalent '${snakeKey}' were provided`- );- }-- seenFields.add(snakeKey);- normalized[snakeKey] = value;- }-- return normalized;-}--/**- * Create a HookConfig from a raw data object.- * Supports both PascalCase and snake_case keys, and the legacy "hooks" wrapper.- */-export function hookConfigFromData(data: Record<string, unknown>): HookConfig {- const normalized = normalizeHooksInput(data);- const config = createEmptyHookConfig();-- for (const field of HOOK_EVENT_FIELDS) {- if (field in normalized && Array.isArray(normalized[field])) {- config[field] = normalized[field] as HookMatcher[];- }- }-- return config;-}--/**- * Get all hook definitions that match a given event type and optional tool name.- */-export function getHooksForEvent(- config: HookConfig,- eventType: HookEventType,- toolName?: string | null-): HookDefinition[] {- const fieldName = pascalToSnake(eventType);- const matchers: HookMatcher[] = config[fieldName] ?? [];- const result: HookDefinition[] = [];-- for (const matcher of matchers) {- if (matcherMatches(matcher, toolName)) {- result.push(...matcher.hooks);- }- }-- return result;-}--/**- * Check if there are any hooks configured for an event type.- */-export function hasHooksForEvent(config: HookConfig, eventType: HookEventType): boolean {- const fieldName = pascalToSnake(eventType);- const matchers: HookMatcher[] = config[fieldName] ?? [];- return matchers.length > 0;-}--/**- * Merge multiple hook configs by concatenating handlers per event type.- * Returns null if the result is empty.- */-export function mergeHookConfigs(configs: HookConfig[]): HookConfig | null {- if (configs.length === 0) return null;-- const merged = createEmptyHookConfig();- for (const config of configs) {- for (const field of HOOK_EVENT_FIELDS) {- merged[field] = [...merged[field], ...config[field]];- }- }-- if (isHookConfigEmpty(merged)) return null;- return merged;-}--/**- * Serialize a HookConfig to a plain object suitable for JSON/API payloads.- * Only includes non-empty fields.- */-export function hookConfigToJSON(config: HookConfig): Record<string, unknown> {- const result: Record<string, unknown> = {};- for (const field of HOOK_EVENT_FIELDS) {- if (config[field].length > 0) {- result[field] = config[field];- }- }- return result;-}diff --git a/vendor/openhands-typescript-client/src/hooks/index.ts b/vendor/openhands-typescript-client/src/hooks/index.tsdeleted file mode 100644index bf88b495dd..0000000000--- a/vendor/openhands-typescript-client/src/hooks/index.ts+++ /dev/null@@ -1,34 +0,0 @@-/**- * OpenHands Hooks System - Event-driven hooks for automation and control.- *- * Hooks are event-driven scripts that execute at specific lifecycle events- * during agent execution, enabling deterministic control over agent behavior.- *- * Hook execution happens server-side. This module provides:- * - Type definitions matching the Python SDK- * - Configuration parsing and manipulation utilities- * - API client methods for loading hooks from the server- */--export {- HookEventType,- HookType,- HookDecision,- hookResultShouldContinue,- createSuccessResult,-} from './types';-export type { HookEvent, HookResult } from './types';--export {- HOOK_EVENT_FIELDS,- matcherMatches,- createEmptyHookConfig,- isHookConfigEmpty,- normalizeHooksInput,- hookConfigFromData,- getHooksForEvent,- hasHooksForEvent,- mergeHookConfigs,- hookConfigToJSON,-} from './config';-export type { HookDefinition, HookMatcher, HookConfig } from './config';diff --git a/vendor/openhands-typescript-client/src/hooks/types.ts b/vendor/openhands-typescript-client/src/hooks/types.tsdeleted file mode 100644index 7c6c8234ad..0000000000--- a/vendor/openhands-typescript-client/src/hooks/types.ts+++ /dev/null@@ -1,92 +0,0 @@-/**- * Hook event types and data structures.- *- * Mirrors the Python SDK's openhands.sdk.hooks.types module.- */--/**- * Types of hook events that can trigger hooks.- */-export enum HookEventType {- PRE_TOOL_USE = 'PreToolUse',- POST_TOOL_USE = 'PostToolUse',- USER_PROMPT_SUBMIT = 'UserPromptSubmit',- SESSION_START = 'SessionStart',- SESSION_END = 'SessionEnd',- STOP = 'Stop',-}--/**- * Types of hooks that can be executed.- */-export enum HookType {- COMMAND = 'command',- PROMPT = 'prompt',-}--/**- * Decisions a hook can make about an operation.- */-export enum HookDecision {- ALLOW = 'allow',- DENY = 'deny',-}--/**- * Data passed to hook scripts via stdin as JSON.- */-export interface HookEvent {- event_type: HookEventType | string;- tool_name?: string | null;- tool_input?: Record<string, unknown> | null;- tool_response?: Record<string, unknown> | null;- message?: string | null;- session_id?: string | null;- working_dir?: string | null;- metadata?: Record<string, unknown>;-}--/**- * Result from executing a hook.- *- * Exit code 0 = success, exit code 2 = block operation.- */-export interface HookResult {- success: boolean;- blocked: boolean;- exit_code: number;- stdout: string;- stderr: string;- decision?: HookDecision | null;- reason?: string | null;- additional_context?: string | null;- error?: string | null;- async_started?: boolean;-}--/**- * Check whether the operation should continue after this hook result.- */-export function hookResultShouldContinue(result: HookResult): boolean {- if (result.blocked) return false;- if (result.decision === HookDecision.DENY) return false;- return true;-}--/**- * Create a default successful HookResult.- */-export function createSuccessResult(): HookResult {- return {- success: true,- blocked: false,- exit_code: 0,- stdout: '',- stderr: '',- decision: null,- reason: null,- additional_context: null,- error: null,- async_started: false,- };-}diff --git a/vendor/openhands-typescript-client/src/index.ts b/vendor/openhands-typescript-client/src/index.tsdeleted file mode 100644index 745d883beb..0000000000--- a/vendor/openhands-typescript-client/src/index.ts+++ /dev/null@@ -1,372 +0,0 @@-/**- * OpenHands Agent Server TypeScript Client- *- * A TypeScript client library for the OpenHands Agent Server API that mirrors- * the structure and functionality of the Python SDK.- */--// Main conversation and workspace classes-export { RemoteConversation } from './conversation/remote-conversation';-export { LocalConversation } from './conversation/local-conversation';-export {- Conversation,- createConversation,- createConversationAuto,-} from './conversation/conversation';-export { ConversationManager } from './conversation/conversation-manager';-export { RemoteWorkspace } from './workspace/remote-workspace';-export { LocalWorkspace } from './workspace/local-workspace';-export { Workspace, createWorkspace, createWorkspaceAuto } from './workspace/workspace';-export { RemoteState } from './conversation/remote-state';-export { RemoteEventsList } from './events/remote-events-list';-export type { EventSearchOptions } from './events/remote-events-list';--// Stuck Detection-export { StuckDetector, DEFAULT_STUCK_THRESHOLDS } from './conversation/stuck-detector';-export type { StuckDetectionThresholds, StuckDetectionResult } from './conversation/stuck-detector';--// Secret Registry-export {- SecretRegistry,- StaticSecretSource,- CallableSecretSource,-} from './conversation/secret-registry';-export type { SecretSource, SecretSourceKind } from './conversation/secret-registry';--// Security (Confirmation Policy & Security Analyzer)-export {- NeverConfirm,- AlwaysConfirm,- RiskBasedConfirm,- ToolBasedConfirm,- CompositeConfirm,- createConfirmationPolicy,-} from './security/confirmation-policy';-export type {- RiskLevel,- SecurityAnalysisResult,- ConfirmationPolicy,-} from './security/confirmation-policy';--export {- PatternBasedAnalyzer,- AllowlistAnalyzer,- NoOpAnalyzer,- CompositeAnalyzer,- createSecurityAnalyzer,-} from './security/security-analyzer';-export type { SecurityAnalyzer } from './security/security-analyzer';--// Rich Event Types-export {- generateEventId,- createBaseEvent,- isMessageEvent,- isActionEvent,- isObservationEvent,- isAgentErrorEvent,- isObservationLike,- isConversationErrorEvent,- isCondensationEvent,- isHookExecutionEvent,-} from './events/types';-export type {- EventID,- EventSource,- BaseEvent,- MessageEvent,- ActionEvent,- ObservationEvent,- AgentErrorEvent,- SystemPromptEvent,- PauseEvent,- CondensationRequestEvent,- CondensationSummaryEvent,- CondensationEvent,- ConversationStateUpdateEvent,- ConversationErrorEvent,- LLMCompletionLogEvent,- UserRejectObservation,- ConfirmationRequestEvent,- ConfirmationResponseEvent,- TokenEvent,- StuckDetectionEvent,- FinishEvent,- ThinkEvent,- HookExecutionEvent,- HookExecutionEventType,- ConversationEvent,-} from './events/types';--// Hooks-export {- HookEventType,- HookType,- HookDecision,- hookResultShouldContinue,- createSuccessResult,- HOOK_EVENT_FIELDS,- matcherMatches,- createEmptyHookConfig,- isHookConfigEmpty,- normalizeHooksInput,- hookConfigFromData,- getHooksForEvent,- hasHooksForEvent,- mergeHookConfigs,- hookConfigToJSON,-} from './hooks';-export type { HookEvent, HookResult, HookDefinition, HookMatcher, HookConfig } from './hooks';--// Agent classes-export { Agent } from './agent/agent';--// LLM classes and factory functions-export { LLM, OpenRouterLLM, createLLM, createOpenRouterLLM } from './llm';--// Prompts-export {- DEFAULT_SYSTEM_PROMPT,- MINIMAL_SYSTEM_PROMPT,- TOOL_DESCRIPTIONS,- generateSystemPrompt,-} from './prompts';--// WebSocket client for real-time events-export { WebSocketCallbackClient } from './events/websocket-client';-export type { ErrorCallbackType } from './events/websocket-client';-export { BashWebSocketClient } from './events/bash-websocket-client';-export type { BashWebSocketClientOptions } from './events/bash-websocket-client';--// HTTP client-export { HttpClient, HttpError } from './client/http-client';--// Types and interfaces-export type {- ConversationID,- Event,- Message,- MessageContent,- TextContent,- ImageContent,- AgentBase,- AgentContext,- LLM as LLMConfig,- ServerInfo,- Success,- EventPage,- ConversationCallbackType,- SecretValue,- ConversationStats,- ConfirmationPolicyBase,-} from './types/base';--export type { AgentOptions } from './agent/agent';--export { EventSortOrder, AgentExecutionStatus, ConversationExecutionStatus } from './types/base';-export { ConversationSortOrder } from './models/conversation';--// Workspace models-export type {- CommandResult,- FileOperationResult,- FileDownloadResult,- GitChange,- GitDiff,- ExecuteBashRequest,- BashEventBase,- BashCommand,- BashOutput,- BashError,- BashEvent,- BashEventPage,- BashEventSearchOptions,- ClearBashEventsResponse,-} from './models/workspace';--// Workspace base types and interface-export type { IWorkspace, BaseWorkspaceOptions, WorkspaceType } from './workspace/base';--// Conversation base types and interface-export type {- IConversation,- IConversationState,- IEventsList,- BaseConversationOptions,- ConversationType,-} from './conversation/base';--// Conversation models-export type {- ConversationInfo,- ACPAgentConfig,- ACPConversationInfo,- SendMessageRequest,- ConfirmationResponseRequest,- CreateConversationRequest,- CreateACPConversationRequest,- GenerateTitleRequest,- GenerateTitleResponse,- UpdateConversationRequest,- UpdateSecretsRequest,- StaticSecret,- LookupSecret,- SecretObject,- ConversationSearchRequest,- ConversationSearchResponse,- ACPConversationSearchResponse,- AskAgentRequest,- AskAgentResponse,- SetSecurityAnalyzerRequest,- ForkConversationRequest,- AgentResponseResult,-} from './models/conversation';--// Client options-export type { HttpClientOptions, RequestOptions, HttpResponse } from './client/http-client';--export type {- AliveStatus,- ReadyStatus,- ProvidersResponse,- ModelsResponse,- VerifiedModelsResponse,- SettingsSchema,- ExposedUrl,- OrgConfig,- SandboxConfig,- SkillsRequest,- SkillInfo,- SkillsResponse,- SyncResponse,- DesktopUrlResponse,- VSCodeUrlResponse,- VSCodeStatusResponse,-} from './models/api';--export type { WebSocketClientOptions } from './events/websocket-client';--export type { RemoteWorkspaceOptions } from './workspace/remote-workspace';--export type { LocalWorkspaceOptions } from './workspace/local-workspace';--export type { WorkspaceOptions, CreateWorkspaceOptions } from './workspace/workspace';--export type { RemoteConversationOptions } from './conversation/remote-conversation';--export type {- LocalConversationOptions,- ToolExecutor,- ConversationTokenCallback,-} from './conversation/local-conversation';--export type { ConversationOptions, CreateConversationOptions } from './conversation/conversation';--export type { ConversationManagerOptions } from './conversation/conversation-manager';--// LLM types and interfaces-export type {- ILLM,- BaseLLMOptions,- LLMProviderType,- MessageRole,- ContentPart,- ChatMessage,- Tool,- ToolCall,- ChatCompletionOptions,- ChatCompletionChoice,- TokenUsage,- ChatCompletionResponse,- ChatCompletionChunk,- TokenCallbackType,- TokenStreamEvent,-} from './llm';-export type { OpenRouterLLMOptions, LLMOptions, CreateLLMOptions } from './llm';--// Prompt types-export type { SystemPromptOptions } from './prompts';--// Re-import for default export-import { RemoteConversation } from './conversation/remote-conversation';-import { LocalConversation } from './conversation/local-conversation';-import {- Conversation,- createConversation,- createConversationAuto,-} from './conversation/conversation';-import { ConversationManager } from './conversation/conversation-manager';-import { RemoteWorkspace } from './workspace/remote-workspace';-import { LocalWorkspace } from './workspace/local-workspace';-import { Workspace, createWorkspace, createWorkspaceAuto } from './workspace/workspace';-import { RemoteState } from './conversation/remote-state';-import { RemoteEventsList } from './events/remote-events-list';-import { WebSocketCallbackClient } from './events/websocket-client';-import { BashWebSocketClient } from './events/bash-websocket-client';-import { HttpClient, HttpError } from './client/http-client';-import { EventSortOrder, AgentExecutionStatus, ConversationExecutionStatus } from './types/base';-import { ConversationSortOrder } from './models/conversation';-import { Agent } from './agent/agent';-import { LLM, OpenRouterLLM, createLLM, createOpenRouterLLM } from './llm';-import {- HookEventType,- HookType,- HookDecision,- hookResultShouldContinue,- createSuccessResult,- HOOK_EVENT_FIELDS,- matcherMatches,- createEmptyHookConfig,- isHookConfigEmpty,- normalizeHooksInput,- hookConfigFromData,- getHooksForEvent,- hasHooksForEvent,- mergeHookConfigs,- hookConfigToJSON,-} from './hooks';--// Default export for convenience-export default {- RemoteConversation,- LocalConversation,- Conversation,- createConversation,- createConversationAuto,- ConversationManager,- RemoteWorkspace,- LocalWorkspace,- Workspace,- createWorkspace,- createWorkspaceAuto,- RemoteState,- RemoteEventsList,- WebSocketCallbackClient,- BashWebSocketClient,- HttpClient,- HttpError,- EventSortOrder,- ConversationSortOrder,- AgentExecutionStatus,- ConversationExecutionStatus,- Agent,- LLM,- OpenRouterLLM,- createLLM,- createOpenRouterLLM,- HookEventType,- HookType,- HookDecision,- hookResultShouldContinue,- createSuccessResult,- HOOK_EVENT_FIELDS,- matcherMatches,- createEmptyHookConfig,- isHookConfigEmpty,- normalizeHooksInput,- hookConfigFromData,- getHooksForEvent,- hasHooksForEvent,- mergeHookConfigs,- hookConfigToJSON,-};diff --git a/vendor/openhands-typescript-client/src/llm/base.ts b/vendor/openhands-typescript-client/src/llm/base.tsdeleted file mode 100644index d32e63cf8a..0000000000--- a/vendor/openhands-typescript-client/src/llm/base.ts+++ /dev/null@@ -1,260 +0,0 @@-/**- * Base LLM interface and types- *- * This file defines the abstract interface that all LLM implementations must follow.- * It provides a unified way to interact with different LLM providers (OpenRouter, OpenAI, etc.)- */--/**- * Message role types for chat conversations- */-export type MessageRole = 'system' | 'user' | 'assistant' | 'tool';--/**- * Token callback type for streaming tokens.- * Called for each token received during streaming completion.- */-export type TokenCallbackType = (token: TokenStreamEvent) => void;--/**- * Token stream event - represents a single token or chunk from streaming- */-export interface TokenStreamEvent {- /** The token content */- token: string;- /** Whether this is the final token */- isFinal: boolean;- /** Accumulated content so far */- accumulated?: string;- /** Token index in the response */- index?: number;- /** Model that generated this token */- model?: string;-}--/**- * Content types for messages- */-export interface TextContent {- type: 'text';- text: string;-}--export interface ImageContent {- type: 'image_url';- image_url: {- url: string;- detail?: 'auto' | 'low' | 'high';- };-}--export type ContentPart = TextContent | ImageContent;--/**- * A message in the chat conversation- */-export interface ChatMessage {- role: MessageRole;- content: string | ContentPart[];- name?: string;- tool_calls?: ToolCall[];- tool_call_id?: string;-}--/**- * Tool/function definition for the LLM- */-export interface Tool {- type: 'function';- function: {- name: string;- description?: string;- parameters?: Record<string, unknown>;- };-}--/**- * A tool call requested by the LLM- */-export interface ToolCall {- id: string;- type: 'function';- function: {- name: string;- arguments: string;- };-}--/**- * Options for a chat completion request- */-export interface ChatCompletionOptions {- /** The model to use (e.g., 'anthropic/claude-3.5-sonnet', 'openai/gpt-4o') */- model?: string;- /** The messages to send */- messages: ChatMessage[];- /** Temperature for sampling (0-2) */- temperature?: number;- /** Maximum tokens to generate */- maxTokens?: number;- /** Tools/functions available to the model */- tools?: Tool[];- /** How the model should use tools: 'auto', 'none', or specific tool */- toolChoice?: 'auto' | 'none' | 'required' | { type: 'function'; function: { name: string } };- /** Stop sequences */- stop?: string[];- /** Whether to stream the response */- stream?: boolean;-}--/**- * A choice in the completion response- */-export interface ChatCompletionChoice {- index: number;- message: {- role: 'assistant';- content: string | null;- tool_calls?: ToolCall[];- };- finish_reason: 'stop' | 'length' | 'tool_calls' | 'content_filter' | null;-}--/**- * Token usage information- */-export interface TokenUsage {- prompt_tokens: number;- completion_tokens: number;- total_tokens: number;-}--/**- * Response from a chat completion request- */-export interface ChatCompletionResponse {- id: string;- model: string;- choices: ChatCompletionChoice[];- usage?: TokenUsage;- created: number;-}--/**- * A streaming chunk from the LLM- */-export interface ChatCompletionChunk {- id: string;- model: string;- choices: Array<{- index: number;- delta: {- role?: 'assistant';- content?: string | null;- tool_calls?: Array<{- index: number;- id?: string;- type?: 'function';- function?: {- name?: string;- arguments?: string;- };- }>;- };- finish_reason: 'stop' | 'length' | 'tool_calls' | 'content_filter' | null;- }>;- created: number;-}--/**- * Base options for creating an LLM client- */-export interface BaseLLMOptions {- /** API key for authentication */- apiKey: string;- /** Default model to use if not specified in requests */- defaultModel?: string;- /** Base URL for the API (optional, for custom endpoints) */- baseUrl?: string;- /** Default temperature */- defaultTemperature?: number;- /** Default max tokens */- defaultMaxTokens?: number;-}--/**- * Abstract interface for LLM implementations.- *- * All LLM providers (OpenRouter, OpenAI, Anthropic, etc.) should implement this interface- * to provide a unified way to interact with different models.- */-export interface ILLM {- /** The default model for this LLM instance */- readonly defaultModel: string;-- /**- * Send a chat completion request and get a full response.- *- * @param options - The completion options including messages and model settings- * @returns The completion response with generated content- */- chatCompletion(options: ChatCompletionOptions): Promise<ChatCompletionResponse>;-- /**- * Send a chat completion request and stream the response.- *- * @param options - The completion options (stream will be set to true)- * @returns An async iterable of completion chunks- */- chatCompletionStream(- options: Omit<ChatCompletionOptions, 'stream'>- ): AsyncIterable<ChatCompletionChunk>;-- /**- * Send a chat completion request with streaming and invoke a callback for each token.- *- * This method provides a simpler interface for streaming when you just need- * to process tokens as they arrive without managing the async iterator yourself.- *- * @param options - The completion options- * @param onToken - Callback invoked for each token received- * @returns The final completion response- */- chatCompletionWithCallback?(- options: Omit<ChatCompletionOptions, 'stream'>,- onToken: TokenCallbackType- ): Promise<ChatCompletionResponse>;-- /**- * Simple helper to send a single message and get a text response.- *- * @param prompt - The user message to send- * @param systemPrompt - Optional system prompt- * @returns The assistant's response text- */- generate(prompt: string, systemPrompt?: string): Promise<string>;-- /**- * Simple helper with token streaming callback.- *- * @param prompt - The user message to send- * @param systemPrompt - Optional system prompt- * @param onToken - Callback invoked for each token received- * @returns The assistant's response text- */- generateWithCallback?(- prompt: string,- systemPrompt?: string,- onToken?: TokenCallbackType- ): Promise<string>;-- /**- * Close/cleanup any resources held by the LLM client.- */- close(): void;-}--/**- * Type discriminator for LLM provider types.- */-export type LLMProviderType = 'openrouter' | 'openai' | 'anthropic' | 'custom';diff --git a/vendor/openhands-typescript-client/src/llm/index.ts b/vendor/openhands-typescript-client/src/llm/index.tsdeleted file mode 100644index 0c86cfb899..0000000000--- a/vendor/openhands-typescript-client/src/llm/index.ts+++ /dev/null@@ -1,32 +0,0 @@-/**- * LLM module exports- */--// Base types and interface-export type {- ILLM,- BaseLLMOptions,- LLMProviderType,- MessageRole,- TextContent,- ImageContent,- ContentPart,- ChatMessage,- Tool,- ToolCall,- ChatCompletionOptions,- ChatCompletionChoice,- TokenUsage,- ChatCompletionResponse,- ChatCompletionChunk,- TokenCallbackType,- TokenStreamEvent,-} from './base';--// OpenRouter implementation-export { OpenRouterLLM } from './openrouter-llm';-export type { OpenRouterLLMOptions } from './openrouter-llm';--// Factory functions and LLM class-export { LLM, createLLM, createOpenRouterLLM } from './llm';-export type { LLMOptions, CreateLLMOptions } from './llm';diff --git a/vendor/openhands-typescript-client/src/llm/llm.ts b/vendor/openhands-typescript-client/src/llm/llm.tsdeleted file mode 100644index 606445df39..0000000000--- a/vendor/openhands-typescript-client/src/llm/llm.ts+++ /dev/null@@ -1,114 +0,0 @@-/**- * LLM factory and utility functions- *- * This module provides a convenient factory pattern for creating LLM instances.- */--import type { ILLM, LLMProviderType } from './base';-import { OpenRouterLLM, OpenRouterLLMOptions } from './openrouter-llm';--/**- * Union type for all LLM options- */-export type LLMOptions = OpenRouterLLMOptions;--/**- * Options for creating an LLM with explicit provider selection- */-export interface CreateLLMOptions {- provider: LLMProviderType;- options: LLMOptions;-}--/**- * Factory function to create an LLM instance based on provider.- *- * Currently supports:- * - 'openrouter': OpenRouter API (300+ models)- *- * Future support planned for:- * - 'openai': Direct OpenAI API- * - 'anthropic': Direct Anthropic API- * - 'custom': Custom endpoints- *- * Example:- * ```typescript- * const llm = createLLM({- * provider: 'openrouter',- * options: {- * apiKey: 'your-api-key',- * defaultModel: 'anthropic/claude-3.5-sonnet'- * }- * });- *- * const response = await llm.generate('Hello!');- * ```- *- * @param config - The LLM configuration including provider and options- * @returns An LLM instance implementing ILLM- */-export function createLLM(config: CreateLLMOptions): ILLM {- switch (config.provider) {- case 'openrouter':- return new OpenRouterLLM(config.options as OpenRouterLLMOptions);-- case 'openai':- // TODO: Implement OpenAI direct support- throw new Error(- 'OpenAI direct support not yet implemented. ' +- 'Use OpenRouter with openai/* models instead.'- );-- case 'anthropic':- // TODO: Implement Anthropic direct support- throw new Error(- 'Anthropic direct support not yet implemented. ' +- 'Use OpenRouter with anthropic/* models instead.'- );-- case 'custom':- // TODO: Implement custom endpoint support- throw new Error('Custom LLM endpoints not yet implemented.');-- default:- throw new Error(`Unknown LLM provider: ${config.provider}`);- }-}--/**- * Create an OpenRouter LLM instance directly.- *- * This is a convenience function for the most common use case.- *- * Example:- * ```typescript- * const llm = createOpenRouterLLM({- * apiKey: 'your-api-key',- * defaultModel: 'openai/gpt-4o'- * });- * ```- *- * @param options - OpenRouter-specific options- * @returns An OpenRouterLLM instance- */-export function createOpenRouterLLM(options: OpenRouterLLMOptions): OpenRouterLLM {- return new OpenRouterLLM(options);-}--/**- * LLM class that extends OpenRouterLLM for backwards compatibility- * and provides a simple default LLM implementation.- *- * Example:- * ```typescript- * const llm = new LLM({- * apiKey: 'your-api-key',- * defaultModel: 'anthropic/claude-3.5-sonnet'- * });- * ```- */-export class LLM extends OpenRouterLLM {- constructor(options: OpenRouterLLMOptions) {- super(options);- }-}diff --git a/vendor/openhands-typescript-client/src/llm/openrouter-llm.ts b/vendor/openhands-typescript-client/src/llm/openrouter-llm.tsdeleted file mode 100644index 74e1894a92..0000000000--- a/vendor/openhands-typescript-client/src/llm/openrouter-llm.ts+++ /dev/null@@ -1,414 +0,0 @@-/**- * OpenRouter LLM implementation- *- * This implements the ILLM interface using the OpenRouter SDK,- * providing access to 300+ models through a unified API.- */--import { OpenRouter } from '@openrouter/sdk';-import type {- ILLM,- BaseLLMOptions,- ChatCompletionOptions,- ChatCompletionResponse,- ChatCompletionChunk,- ChatMessage,- Tool,- ToolCall,- TokenCallbackType,-} from './base';--// Define response types locally since the SDK's module resolution is complex-interface OpenRouterChatResponse {- id: string;- choices: Array<{- message?: {- content?: string | null;- toolCalls?: ToolCall[];- };- finishReason?: string;- }>;- created: number;- model: string;- usage?: {- promptTokens?: number;- completionTokens?: number;- totalTokens?: number;- };-}--interface OpenRouterStreamChunk {- id?: string;- model?: string;- choices: Array<{- index?: number;- delta?: {- role?: string;- content?: string;- toolCalls?: Array<{- index: number;- id?: string;- type?: string;- function?: {- name?: string;- arguments?: string;- };- }>;- };- finishReason?: string;- }>;- created?: number;-}--/**- * Options for creating an OpenRouterLLM instance- */-export interface OpenRouterLLMOptions extends BaseLLMOptions {- /** Site URL for rankings on openrouter.ai (optional) */- siteUrl?: string;- /** Site title for rankings on openrouter.ai (optional) */- siteTitle?: string;-}--// OpenRouter SDK message types (simplified for our use)-type OpenRouterMessage =- | { role: 'system'; content: string; name?: string }- | { role: 'user'; content: string; name?: string }- | { role: 'assistant'; content: string | null; name?: string; toolCalls?: ToolCall[] }- | { role: 'tool'; content: string; toolCallId: string };--/**- * OpenRouter LLM implementation using the official @openrouter/sdk.- *- * Provides access to 300+ AI models through OpenRouter's unified API.- *- * Example:- * ```typescript- * const llm = new OpenRouterLLM({- * apiKey: 'your-api-key',- * defaultModel: 'anthropic/claude-3.5-sonnet'- * });- *- * const response = await llm.generate('Hello, how are you?');- * console.log(response);- *- * // Or with full control:- * const completion = await llm.chatCompletion({- * messages: [{ role: 'user', content: 'Explain quantum computing' }],- * temperature: 0.7,- * maxTokens: 1000- * });- * ```- */-export class OpenRouterLLM implements ILLM {- private client: OpenRouter;- public readonly defaultModel: string;- private readonly defaultTemperature?: number;- private readonly defaultMaxTokens?: number;-- constructor(options: OpenRouterLLMOptions) {- this.client = new OpenRouter({- apiKey: options.apiKey,- httpReferer: options.siteUrl,- appTitle: options.siteTitle,- });-- this.defaultModel = options.defaultModel || 'anthropic/claude-3.5-sonnet';- this.defaultTemperature = options.defaultTemperature;- this.defaultMaxTokens = options.defaultMaxTokens;- }-- /**- * Convert our ChatMessage format to OpenRouter's format- */- private convertMessages(messages: ChatMessage[]): OpenRouterMessage[] {- return messages.map((msg): OpenRouterMessage => {- if (msg.role === 'system') {- return {- role: 'system',- content: typeof msg.content === 'string' ? msg.content : JSON.stringify(msg.content),- name: msg.name,- };- } else if (msg.role === 'user') {- return {- role: 'user',- content: typeof msg.content === 'string' ? msg.content : JSON.stringify(msg.content),- name: msg.name,- };- } else if (msg.role === 'assistant') {- return {- role: 'assistant',- content: typeof msg.content === 'string' ? msg.content : JSON.stringify(msg.content),- name: msg.name,- toolCalls: msg.tool_calls,- };- } else {- // tool role- return {- role: 'tool',- content: typeof msg.content === 'string' ? msg.content : JSON.stringify(msg.content),- toolCallId: msg.tool_call_id || '',- };- }- });- }-- /**- * Convert our Tool format to OpenRouter's format- */- private convertTools(tools: Tool[]) {- return tools.map((tool) => ({- type: 'function' as const,- function: {- name: tool.function.name,- description: tool.function.description,- parameters: tool.function.parameters,- },- }));- }-- /**- * Build the common request parameters shared by chatCompletion and chatCompletionStream.- */- private buildRequestParams(- options: ChatCompletionOptions | Omit<ChatCompletionOptions, 'stream'>,- stream: boolean- ): Record<string, unknown> {- const requestParams: Record<string, unknown> = {- model: options.model || this.defaultModel,- messages: this.convertMessages(options.messages),- stream,- };-- if (options.temperature !== undefined) {- requestParams.temperature = options.temperature;- } else if (this.defaultTemperature !== undefined) {- requestParams.temperature = this.defaultTemperature;- }-- if (options.maxTokens !== undefined) {- requestParams.maxTokens = options.maxTokens;- } else if (this.defaultMaxTokens !== undefined) {- requestParams.maxTokens = this.defaultMaxTokens;- }-- if (options.tools && options.tools.length > 0) {- requestParams.tools = this.convertTools(options.tools);- }-- if (options.toolChoice) {- requestParams.toolChoice = options.toolChoice;- }-- if (options.stop) {- requestParams.stop = options.stop;- }-- return requestParams;- }-- async chatCompletion(options: ChatCompletionOptions): Promise<ChatCompletionResponse> {- const model = options.model || this.defaultModel;- const requestParams = this.buildRequestParams(options, false);-- // Cast to expected type - SDK handles validation- const response = (await this.client.chat.send(- requestParams as Parameters<typeof this.client.chat.send>[0]- )) as OpenRouterChatResponse;-- // Convert to our response format- return {- id: response.id || '',- model: response.model || model,- choices: response.choices.map(- (choice: OpenRouterChatResponse['choices'][0], index: number) => ({- index,- message: {- role: 'assistant' as const,- content: choice.message?.content || null,- tool_calls: choice.message?.toolCalls as ToolCall[] | undefined,- },- finish_reason:- (choice.finishReason as 'stop' | 'length' | 'tool_calls' | 'content_filter') || null,- })- ),- usage: response.usage- ? {- prompt_tokens: response.usage.promptTokens || 0,- completion_tokens: response.usage.completionTokens || 0,- total_tokens: response.usage.totalTokens || 0,- }- : undefined,- created: response.created || Date.now(),- };- }-- async *chatCompletionStream(- options: Omit<ChatCompletionOptions, 'stream'>- ): AsyncIterable<ChatCompletionChunk> {- const model = options.model || this.defaultModel;- const requestParams = this.buildRequestParams(options, true);-- const stream = await this.client.chat.send(- requestParams as Parameters<typeof this.client.chat.send>[0]- );-- // The stream is an async iterable when stream: true- for await (const chunk of stream as AsyncIterable<OpenRouterStreamChunk>) {- yield {- id: chunk.id || '',- model: chunk.model || model,- choices: chunk.choices.map((choice: OpenRouterStreamChunk['choices'][0]) => ({- index: choice.index || 0,- delta: {- role: choice.delta?.role as 'assistant' | undefined,- content: choice.delta?.content,- tool_calls: choice.delta?.toolCalls?.map(- (- tc: NonNullable<- NonNullable<OpenRouterStreamChunk['choices'][0]['delta']>['toolCalls']- >[0]- ) => ({- index: tc.index,- id: tc.id,- type: tc.type as 'function' | undefined,- function: tc.function,- })- ),- },- finish_reason:- (choice.finishReason as 'stop' | 'length' | 'tool_calls' | 'content_filter') || null,- })),- created: chunk.created || Date.now(),- };- }- }-- async generate(prompt: string, systemPrompt?: string): Promise<string> {- const messages: ChatMessage[] = [];-- if (systemPrompt) {- messages.push({ role: 'system', content: systemPrompt });- }- messages.push({ role: 'user', content: prompt });-- const response = await this.chatCompletion({ messages });-- return response.choices[0]?.message?.content || '';- }-- /**- * Chat completion with streaming and token callback.- * Invokes the callback for each token received during streaming.- */- async chatCompletionWithCallback(- options: Omit<ChatCompletionOptions, 'stream'>,- onToken: TokenCallbackType- ): Promise<ChatCompletionResponse> {- const model = options.model || this.defaultModel;- let accumulated = '';- let tokenIndex = 0;- let lastChunk: ChatCompletionChunk | null = null;- const toolCalls: Map<- number,- { id: string; type: 'function'; function: { name: string; arguments: string } }- > = new Map();-- for await (const chunk of this.chatCompletionStream(options)) {- lastChunk = chunk;-- for (const choice of chunk.choices) {- // Handle content tokens- if (choice.delta?.content) {- accumulated += choice.delta.content;- onToken({- token: choice.delta.content,- isFinal: false,- accumulated,- index: tokenIndex++,- model: chunk.model,- });- }-- // Accumulate tool calls- if (choice.delta?.tool_calls) {- for (const tc of choice.delta.tool_calls) {- const existing = toolCalls.get(tc.index);- if (existing) {- // Append to existing tool call- if (tc.function?.arguments) {- existing.function.arguments += tc.function.arguments;- }- } else if (tc.id) {- // New tool call- toolCalls.set(tc.index, {- id: tc.id,- type: 'function',- function: {- name: tc.function?.name || '',- arguments: tc.function?.arguments || '',- },- });- }- }- }- }- }-- // Send final token event- onToken({- token: '',- isFinal: true,- accumulated,- index: tokenIndex,- model,- });-- // Construct final response- const finalToolCalls = toolCalls.size > 0 ? Array.from(toolCalls.values()) : undefined;-- return {- id: lastChunk?.id || '',- model: lastChunk?.model || model,- choices: [- {- index: 0,- message: {- role: 'assistant',- content: accumulated || null,- tool_calls: finalToolCalls,- },- finish_reason: lastChunk?.choices[0]?.finish_reason || 'stop',- },- ],- created: lastChunk?.created || Date.now(),- };- }-- /**- * Generate with streaming and token callback.- */- async generateWithCallback(- prompt: string,- systemPrompt?: string,- onToken?: TokenCallbackType- ): Promise<string> {- const messages: ChatMessage[] = [];-- if (systemPrompt) {- messages.push({ role: 'system', content: systemPrompt });- }- messages.push({ role: 'user', content: prompt });-- if (onToken) {- const response = await this.chatCompletionWithCallback({ messages }, onToken);- return response.choices[0]?.message?.content || '';- } else {- return this.generate(prompt, systemPrompt);- }- }-- close(): void {- // OpenRouter SDK doesn't require explicit cleanup- }-}diff --git a/vendor/openhands-typescript-client/src/models/api.ts b/vendor/openhands-typescript-client/src/models/api.tsdeleted file mode 100644index 788cc07904..0000000000--- a/vendor/openhands-typescript-client/src/models/api.ts+++ /dev/null@@ -1,91 +0,0 @@-/**- * Models for auxiliary Agent Server APIs.- */--export interface AliveStatus {- status: string;-}--export interface ReadyStatus {- status: string;- message?: string;-}--export interface ProvidersResponse {- providers: string[];-}--export interface ModelsResponse {- models: string[];-}--export interface VerifiedModelsResponse {- models: Record<string, string[]>;-}--export interface SettingsSchema {- model_name: string;- sections: Array<Record<string, unknown>>;-}--export interface ExposedUrl {- name: string;- url: string;- port: number;-}--export interface OrgConfig {- repository: string;- provider: string;- org_repo_url: string;- org_name: string;-}--export interface SandboxConfig {- exposed_urls: ExposedUrl[];-}--export interface SkillsRequest {- load_public?: boolean;- load_user?: boolean;- load_project?: boolean;- load_org?: boolean;- marketplace_path?: string | null;- project_dir?: string | null;- org_config?: OrgConfig | null;- sandbox_config?: SandboxConfig | null;-}--export interface SkillInfo {- name: string;- type: 'repo' | 'knowledge' | 'agentskills';- content: string;- triggers: string[];- source?: string | null;- description?: string | null;- is_agentskills_format?: boolean;-}--export interface SkillsResponse {- skills: SkillInfo[];- sources: Record<string, number>;-}--export interface SyncResponse {- status: 'success' | 'error';- message: string;-}--export interface DesktopUrlResponse {- url: string | null;-}--export interface VSCodeUrlResponse {- url: string | null;-}--export interface VSCodeStatusResponse {- running: boolean;- enabled: boolean;- message?: string;-}diff --git a/vendor/openhands-typescript-client/src/models/conversation.ts b/vendor/openhands-typescript-client/src/models/conversation.tsdeleted file mode 100644index f134008311..0000000000--- a/vendor/openhands-typescript-client/src/models/conversation.ts+++ /dev/null@@ -1,175 +0,0 @@-/**- * Conversation-related models and interfaces- */--import {- ConversationID,- ConversationExecutionStatus,- AgentExecutionStatus,- ConfirmationPolicyBase,- ConversationStats,- AgentBase,- Message,-} from '../types/base';-import type { HookConfig } from '../hooks';--export enum ConversationSortOrder {- CREATED_AT = 'CREATED_AT',- UPDATED_AT = 'UPDATED_AT',- CREATED_AT_DESC = 'CREATED_AT_DESC',- UPDATED_AT_DESC = 'UPDATED_AT_DESC',-}--export interface ConversationInfo {- id: ConversationID;- /**- * Current execution status of the conversation.- * Note: This field was renamed from agent_status to execution_status in the API.- */- execution_status: ConversationExecutionStatus;- /**- * @deprecated Use execution_status instead. This field is kept for backward compatibility.- */- agent_status?: AgentExecutionStatus;- confirmation_policy: ConfirmationPolicyBase;- activated_knowledge_skills: string[];- invoked_skills?: string[];- agent: AgentBase;- workspace: unknown;- persistence_dir: string;- max_iterations?: number;- stuck_detection?: boolean;- conversation_stats?: ConversationStats;- /** API may return stats instead of conversation_stats */- stats?: ConversationStats;- hook_config?: HookConfig | null;- blocked_actions?: Record<string, string>;- blocked_messages?: Record<string, string>;- title?: string;- created_at?: string;- updated_at?: string;- tags?: Record<string, string>;- /**- * @deprecated Use execution_status instead. This field is kept for backward compatibility.- */- status?: ConversationExecutionStatus;- [key: string]: unknown;-}--export interface ACPAgentConfig {- kind?: string;- [key: string]: unknown;-}--export type ACPConversationInfo = ConversationInfo & {- agent: ACPAgentConfig;-};--export interface SendMessageRequest {- role: 'user';- content: Array<{- type: string;- text?: string;- image_urls?: string[];- }>;- run: boolean;-}--export interface ConfirmationResponseRequest {- accept: boolean;- reason?: string;-}--export interface CreateConversationRequest {- agent: AgentBase;- initial_message?: Message;- max_iterations: number;- stuck_detection: boolean;- workspace: Record<string, unknown>;- hook_config?: HookConfig | null;-}--export interface CreateACPConversationRequest {- agent: ACPAgentConfig;- initial_message?: Message;- max_iterations: number;- stuck_detection: boolean;- workspace: Record<string, unknown>;- hook_config?: HookConfig | null;-}--export interface GenerateTitleRequest {- max_length: number;- llm?: unknown;-}--export interface GenerateTitleResponse {- title: string;-}--export interface UpdateConversationRequest {- title?: string;- tags?: Record<string, string>;-}--export interface StaticSecret {- kind: 'StaticSecret';- value: string;- description?: string;-}--export interface LookupSecret {- kind: 'LookupSecret';- source: string;- key: string;- description?: string;-}--export type SecretObject = StaticSecret | LookupSecret;--export interface UpdateSecretsRequest {- secrets: Record<string, SecretObject>;-}--export interface ConversationSearchRequest {- page_id?: string;- limit?: number;- status?: ConversationExecutionStatus;- sort_order?: ConversationSortOrder;- tag?: string[];-}--export interface AskAgentRequest {- question: string;-}--export interface AskAgentResponse {- response: string;-}--export interface SetSecurityAnalyzerRequest {- security_analyzer: unknown | null;-}--export interface ConversationSearchResponse {- items: ConversationInfo[];- next_page_id?: string;- total_count?: number;-}--export interface ACPConversationSearchResponse {- items: ACPConversationInfo[];- next_page_id?: string;- total_count?: number;-}--export interface ForkConversationRequest {- id?: string;- title?: string;- tags?: Record<string, string>;- reset_metrics?: boolean;-}--export interface AgentResponseResult {- response: string;-}diff --git a/vendor/openhands-typescript-client/src/models/workspace.ts b/vendor/openhands-typescript-client/src/models/workspace.tsdeleted file mode 100644index 2c0a740d9d..0000000000--- a/vendor/openhands-typescript-client/src/models/workspace.ts+++ /dev/null@@ -1,95 +0,0 @@-/**- * Workspace and bash operation result models- */--export interface CommandResult {- command: string;- exit_code: number;- stdout: string;- stderr: string;- timeout_occurred: boolean;-}--export interface FileOperationResult {- success: boolean;- source_path: string;- destination_path: string;- file_size?: number;- error?: string;-}--export interface FileDownloadResult {- success: boolean;- source_path: string;- content: string | Blob;- file_size?: number;- error?: string;-}--export interface GitChange {- path: string;- status: 'added' | 'modified' | 'deleted' | 'renamed';- [key: string]: unknown;-}--export interface GitDiff {- path?: string;- diff?: string;- original?: string | null;- modified?: string | null;- [key: string]: unknown;-}--export interface ExecuteBashRequest {- command: string;- cwd?: string;- timeout?: number;-}--export interface BashEventBase {- id: string;- timestamp: string;- kind?: string;- [key: string]: unknown;-}--export interface BashCommand extends BashEventBase, ExecuteBashRequest {- kind?: 'BashCommand';-}--export interface BashOutput extends BashEventBase {- kind?: 'BashOutput';- command_id: string;- order: number;- exit_code?: number | null;- stdout?: string | null;- stderr?: string | null;-}--export interface BashError extends BashEventBase {- kind?: 'BashError';- code: string;- detail: string;-}--export type BashEvent = BashCommand | BashOutput | BashError;--export interface BashEventPage {- items: BashEvent[];- next_page_id?: string;-}--export interface BashEventSearchOptions {- kind__eq?: 'BashCommand' | 'BashOutput';- command_id__eq?: string;- timestamp__gte?: string;- timestamp__lt?: string;- order__gt?: number;- sort_order?: 'TIMESTAMP' | 'TIMESTAMP_DESC';- page_id?: string;- limit?: number;-}--export interface ClearBashEventsResponse {- cleared_count: number;-}diff --git a/vendor/openhands-typescript-client/src/prompts/index.ts b/vendor/openhands-typescript-client/src/prompts/index.tsdeleted file mode 100644index fae90436ab..0000000000--- a/vendor/openhands-typescript-client/src/prompts/index.ts+++ /dev/null@@ -1,12 +0,0 @@-/**- * Prompts module - System prompts and tool descriptions- */--export {- DEFAULT_SYSTEM_PROMPT,- MINIMAL_SYSTEM_PROMPT,- TOOL_DESCRIPTIONS,- generateSystemPrompt,-} from './system-prompt';--export type { SystemPromptOptions } from './system-prompt';diff --git a/vendor/openhands-typescript-client/src/prompts/system-prompt.ts b/vendor/openhands-typescript-client/src/prompts/system-prompt.tsdeleted file mode 100644index 21d7960b16..0000000000--- a/vendor/openhands-typescript-client/src/prompts/system-prompt.ts+++ /dev/null@@ -1,207 +0,0 @@-/**- * System prompts for the LocalConversation agent- *- * These prompts are aligned with the Python SDK's system prompts to ensure- * consistent agent behavior across implementations.- */--/**- * The default system prompt for the OpenHands agent.- * This is a TypeScript version of the Python SDK's system_prompt.j2 template.- */-export const DEFAULT_SYSTEM_PROMPT = `You are OpenHands agent, a helpful AI assistant that can interact with a computer to solve tasks.--<ROLE>-* Your primary role is to assist users by executing commands, modifying code, and solving technical problems effectively. You should be thorough, methodical, and prioritize quality over speed.-* If the user asks a question, like "why is X happening", don't try to fix the problem. Just give an answer to the question.-</ROLE>--<EFFICIENCY>-* Each action you take is somewhat expensive. Wherever possible, combine multiple actions into a single action, e.g. combine multiple bash commands into one, using sed and grep to edit/view multiple files at once.-* When exploring the codebase, use efficient tools like find, grep, and git commands with appropriate filters to minimize unnecessary operations.-</EFFICIENCY>--<FILE_SYSTEM_GUIDELINES>-* When a user provides a file path, do NOT assume it's relative to the current working directory. First explore the file system to locate the file before working on it.-* If asked to edit a file, edit the file directly, rather than creating a new file with a different filename.-* For global search-and-replace operations, consider using \`sed\` instead of opening file editors multiple times.-* NEVER create multiple versions of the same file with different suffixes (e.g., file_test.py, file_fix.py, file_simple.py). Instead:- - Always modify the original file directly when making changes- - If you need to create a temporary file for testing, delete it once you've confirmed your solution works- - If you decide a file you created is no longer useful, delete it instead of creating a new version-* Do NOT include documentation files explaining your changes in version control unless the user explicitly requests it-* When reproducing bugs or implementing fixes, use a single file rather than creating multiple files with different versions-</FILE_SYSTEM_GUIDELINES>--<CODE_QUALITY>-* Write clean, efficient code with minimal comments. Avoid redundancy in comments: Do not repeat information that can be easily inferred from the code itself.-* When implementing solutions, focus on making the minimal changes needed to solve the problem.-* Before implementing any changes, first thoroughly understand the codebase through exploration.-* If you are adding a lot of code to a function or file, consider splitting the function or file into smaller pieces when appropriate.-* Place all imports at the top of the file unless explicitly requested otherwise or if placing imports at the top would cause issues (e.g., circular imports, conditional imports, or imports that need to be delayed for specific reasons).-</CODE_QUALITY>--<VERSION_CONTROL>-* If there are existing git user credentials already configured, use them and add Co-authored-by: openhands <[email protected]> to any commits messages you make.-* Exercise caution with git operations. Do NOT make potentially dangerous changes (e.g., pushing to main, deleting repositories) unless explicitly asked to do so.-* When committing changes, use \`git status\` to see all modified files, and stage all files necessary for the commit.-* Do NOT commit files that typically shouldn't go into version control (e.g., node_modules/, .env files, build directories, cache files, large binaries) unless explicitly instructed by the user.-</VERSION_CONTROL>--<PROBLEM_SOLVING_WORKFLOW>-1. EXPLORATION: Thoroughly explore relevant files and understand the context before proposing solutions-2. ANALYSIS: Consider multiple approaches and select the most promising one-3. TESTING:- * For bug fixes: Create tests to verify issues before implementing fixes- * For new features: Consider test-driven development when appropriate- * Do NOT write tests for documentation changes, README updates, configuration files, or other non-functionality changes-4. IMPLEMENTATION:- * Make focused, minimal changes to address the problem- * Always modify existing files directly rather than creating new versions with different suffixes- * If you create temporary files for testing, delete them after confirming your solution works-5. VERIFICATION: Test your implementation thoroughly, including edge cases.-</PROBLEM_SOLVING_WORKFLOW>--<ENVIRONMENT_SETUP>-* When user asks you to run an application, don't stop if the application is not installed. Instead, please install the application and run the command again.-* If you encounter missing dependencies:- 1. First, look around in the repository for existing dependency files (requirements.txt, pyproject.toml, package.json, Gemfile, etc.)- 2. If dependency files exist, use them to install all dependencies at once (e.g., \`pip install -r requirements.txt\`, \`npm install\`, etc.)- 3. Only install individual packages directly if no dependency files are found or if only specific packages are needed-</ENVIRONMENT_SETUP>--<TROUBLESHOOTING>-* If you've made repeated attempts to solve a problem but tests still fail or the user reports it's still broken:- 1. Step back and reflect on 5-7 different possible sources of the problem- 2. Assess the likelihood of each possible cause- 3. Methodically address the most likely causes, starting with the highest probability- 4. Explain your reasoning process in your response to the user-* When you run into any major issue while executing a plan from the user, please don't try to directly work around it. Instead, propose a new plan and confirm with the user before proceeding.-</TROUBLESHOOTING>--<IMPORTANT>-* Always explain what you're doing and why before taking action.-* When you finish a task, summarize what you did and the result.-* If you cannot complete a task, explain why and suggest alternatives.-</IMPORTANT>-`;--/**- * A minimal system prompt for simple use cases.- */-export const MINIMAL_SYSTEM_PROMPT = `You are a helpful coding assistant with access to a workspace. You can execute commands, read files, and write files to help the user with their tasks.--When working on tasks:-1. First understand what the user wants-2. Explore the workspace if needed using execute_command (e.g., 'ls', 'find', 'cat')-3. Make changes using write_file or execute_command-4. Verify your changes work-5. Call finish() when done with a summary of what you did--Always explain what you're doing and why.`;--/**- * Tool descriptions aligned with the Python SDK- */-export const TOOL_DESCRIPTIONS = {- execute_command: `Execute a bash command in the terminal within a persistent shell session.--### Command Execution-* One command at a time: You can only execute one bash command at a time. If you need to run multiple commands sequentially, use \`&&\` or \`;\` to chain them together.-* Persistent session: Commands execute in a persistent shell session where environment variables, virtual environments, and working directory persist between commands.--### Best Practices-* Directory verification: Before creating new directories or files, first verify the parent directory exists and is the correct location.-* Directory management: Try to maintain working directory by using absolute paths and avoiding excessive use of \`cd\`.--### Output Handling-* Output truncation: If the output exceeds a maximum length, it will be truncated before being returned.`,-- read_file: `Read the contents of a file from the workspace.--Custom editing tool for viewing, creating and editing files in plain-text format.-* If \`path\` is a text file, returns the file contents with line numbers-* If \`path\` is a directory, lists non-hidden files and directories up to 2 levels deep--Best practices:-* Use this tool to understand the file's contents and context before making edits-* Verify the directory path is correct when working with files`,-- write_file: `Write content to a file in the workspace. Creates the file if it does not exist.--When making edits:-* Ensure the edit results in idiomatic, correct code-* Do not leave the code in a broken state-* Always use absolute file paths (starting with /)--CRITICAL REQUIREMENTS:-* The content should be the complete file content, not a diff or patch-* Ensure proper formatting and indentation`,-- think: `Use the tool to think about something. It will not obtain new information or make any changes to the repository, but just log the thought. Use it when complex reasoning or brainstorming is needed.--Common use cases:-1. When exploring a repository and discovering the source of a bug, call this tool to brainstorm several unique ways of fixing the bug, and assess which change(s) are likely to be simplest and most effective.-2. After receiving test results, use this tool to brainstorm ways to fix failing tests.-3. When planning a complex refactoring, use this tool to outline different approaches and their tradeoffs.-4. When designing a new feature, use this tool to think through architecture decisions and implementation details.-5. When debugging a complex issue, use this tool to organize your thoughts and hypotheses.--The tool simply logs your thought process for better transparency and does not execute any code or make changes.`,-- finish: `Signals the completion of the current task or conversation.--Use this tool when:-- You have successfully completed the user's requested task-- You cannot proceed further due to technical limitations or missing information--The message should include:-- A clear summary of actions taken and their results-- Any next steps for the user-- Explanation if you're unable to complete the task-- Any follow-up questions if more information is needed`,-};--/**- * Options for generating a system prompt- */-export interface SystemPromptOptions {- /** Custom system prompt to use instead of the default */- customPrompt?: string;- /** Whether to use the minimal prompt (default: false) */- minimal?: boolean;- /** Additional context to append to the prompt */- additionalContext?: string;- /** Working directory path to include in the prompt */- workingDir?: string;-}--/**- * Generate a system prompt with the given options.- */-export function generateSystemPrompt(options: SystemPromptOptions = {}): string {- let prompt: string;-- if (options.customPrompt) {- prompt = options.customPrompt;- } else if (options.minimal) {- prompt = MINIMAL_SYSTEM_PROMPT;- } else {- prompt = DEFAULT_SYSTEM_PROMPT;- }-- // Add working directory context if provided- if (options.workingDir) {- prompt += `\n\n<WORKSPACE>-Your current working directory is: ${options.workingDir}-When exploring project structure, start with this directory instead of the root filesystem.-</WORKSPACE>`;- }-- // Add any additional context- if (options.additionalContext) {- prompt += `\n\n${options.additionalContext}`;- }-- return prompt;-}diff --git a/vendor/openhands-typescript-client/src/security/confirmation-policy.ts b/vendor/openhands-typescript-client/src/security/confirmation-policy.tsdeleted file mode 100644index 38e19b9de7..0000000000--- a/vendor/openhands-typescript-client/src/security/confirmation-policy.ts+++ /dev/null@@ -1,153 +0,0 @@-/**- * Confirmation Policy for Conversations- *- * Defines policies for when actions require user confirmation before execution.- * This mirrors the Python SDK's confirmation policy system.- */--import { ActionEvent } from '../events/types';--/**- * Risk level for an action- */-export type RiskLevel = 'low' | 'medium' | 'high' | 'unknown';--/**- * Convert a risk level to a numeric value for comparison.- */-export function riskLevelToNumeric(level: RiskLevel): number {- switch (level) {- case 'low':- return 1;- case 'medium':- return 2;- case 'high':- return 3;- case 'unknown':- return 2; // Treat unknown as medium- }-}--/**- * Result of a security analysis- */-export interface SecurityAnalysisResult {- /** The determined risk level */- riskLevel: RiskLevel;- /** Whether confirmation is required */- requiresConfirmation: boolean;- /** Human-readable explanation of the risk assessment */- explanation?: string;- /** Specific concerns identified */- concerns?: string[];-}--/**- * Base interface for confirmation policies.- * Policies determine when actions require user confirmation.- */-export interface ConfirmationPolicy {- /** Policy type identifier */- readonly type: string;-- /**- * Determine if an action requires confirmation.- *- * @param action - The action to evaluate- * @param riskLevel - Optional pre-determined risk level- * @returns True if confirmation is required- */- requiresConfirmation(action: ActionEvent, riskLevel?: RiskLevel): boolean;-}--/**- * Never require confirmation - all actions are auto-approved.- * This is the default policy for development/testing.- */-export class NeverConfirm implements ConfirmationPolicy {- readonly type = 'never';-- requiresConfirmation(_action: ActionEvent, _riskLevel?: RiskLevel): boolean {- return false;- }-}--/**- * Always require confirmation for all actions.- * Use this for maximum safety/oversight.- */-export class AlwaysConfirm implements ConfirmationPolicy {- readonly type = 'always';-- requiresConfirmation(_action: ActionEvent, _riskLevel?: RiskLevel): boolean {- return true;- }-}--/**- * Require confirmation based on risk level.- * Actions at or above the threshold require confirmation.- */-export class RiskBasedConfirm implements ConfirmationPolicy {- readonly type = 'risk_based';- private threshold: RiskLevel;-- constructor(threshold: RiskLevel = 'medium') {- this.threshold = threshold;- }-- requiresConfirmation(_action: ActionEvent, riskLevel?: RiskLevel): boolean {- const level = riskLevel || 'unknown';- return riskLevelToNumeric(level) >= riskLevelToNumeric(this.threshold);- }-}--/**- * Require confirmation for specific tools.- */-export class ToolBasedConfirm implements ConfirmationPolicy {- readonly type = 'tool_based';- private toolsRequiringConfirmation: Set<string>;-- constructor(tools: string[]) {- this.toolsRequiringConfirmation = new Set(tools);- }-- requiresConfirmation(action: ActionEvent, _riskLevel?: RiskLevel): boolean {- return this.toolsRequiringConfirmation.has(action.tool_name);- }-}--/**- * Composite policy - requires confirmation if ANY sub-policy requires it.- */-export class CompositeConfirm implements ConfirmationPolicy {- readonly type = 'composite';- private policies: ConfirmationPolicy[];-- constructor(policies: ConfirmationPolicy[]) {- this.policies = policies;- }-- requiresConfirmation(action: ActionEvent, riskLevel?: RiskLevel): boolean {- return this.policies.some((policy) => policy.requiresConfirmation(action, riskLevel));- }-}--/**- * Create a confirmation policy from a type string.- */-export function createConfirmationPolicy(type: string, options?: unknown): ConfirmationPolicy {- switch (type) {- case 'never':- return new NeverConfirm();- case 'always':- return new AlwaysConfirm();- case 'risk_based':- return new RiskBasedConfirm((options as { threshold?: RiskLevel })?.threshold);- case 'tool_based':- return new ToolBasedConfirm((options as { tools: string[] })?.tools || []);- default:- return new NeverConfirm();- }-}diff --git a/vendor/openhands-typescript-client/src/security/index.ts b/vendor/openhands-typescript-client/src/security/index.tsdeleted file mode 100644index 30424a9120..0000000000--- a/vendor/openhands-typescript-client/src/security/index.ts+++ /dev/null@@ -1,25 +0,0 @@-/**- * Security module exports- */--export {- RiskLevel,- riskLevelToNumeric,- SecurityAnalysisResult,- ConfirmationPolicy,- NeverConfirm,- AlwaysConfirm,- RiskBasedConfirm,- ToolBasedConfirm,- CompositeConfirm,- createConfirmationPolicy,-} from './confirmation-policy';--export {- SecurityAnalyzer,- PatternBasedAnalyzer,- AllowlistAnalyzer,- NoOpAnalyzer,- CompositeAnalyzer,- createSecurityAnalyzer,-} from './security-analyzer';diff --git a/vendor/openhands-typescript-client/src/security/security-analyzer.ts b/vendor/openhands-typescript-client/src/security/security-analyzer.tsdeleted file mode 100644index 7dad09c30a..0000000000--- a/vendor/openhands-typescript-client/src/security/security-analyzer.ts+++ /dev/null@@ -1,267 +0,0 @@-/**- * Security Analyzer for Conversations- *- * Analyzes actions for potential security risks.- * This mirrors the Python SDK's SecurityAnalyzer system.- */--import { ActionEvent } from '../events/types';-import { RiskLevel, SecurityAnalysisResult, riskLevelToNumeric } from './confirmation-policy';--/**- * Base interface for security analyzers.- * Analyzers evaluate actions to determine their risk level.- */-export interface SecurityAnalyzer {- /** Analyzer type identifier */- readonly type: string;-- /**- * Analyze an action for security risks.- *- * @param action - The action to analyze- * @returns Analysis result with risk level and details- */- analyze(action: ActionEvent): Promise<SecurityAnalysisResult> | SecurityAnalysisResult;-}--/**- * Pattern-based security analyzer.- * Uses regex patterns to identify risky commands and operations.- */-export class PatternBasedAnalyzer implements SecurityAnalyzer {- readonly type = 'pattern_based';-- // Patterns for high-risk operations- private readonly highRiskPatterns: RegExp[] = [- /\brm\s+-rf?\s+[/~]/i, // rm -rf with absolute/home paths- /\bsudo\b/i, // sudo commands- /\bchmod\s+777\b/i, // chmod 777- /\b(curl|wget).*\|\s*(sh|bash)\b/i, // piped downloads- /\bdd\s+.*of=/i, // dd command- /\bmkfs\b/i, // filesystem creation- /\b(shutdown|reboot|halt)\b/i, // system control- /\bkill\s+-9\s+1\b/i, // kill init- />(\/dev\/(sd|hd|nvme)|\/etc\/)/i, // writing to devices/etc- /\bpasswd\b/i, // password changes- /\buseradd\b|\buserdel\b/i, // user management- ];-- // Patterns for medium-risk operations- private readonly mediumRiskPatterns: RegExp[] = [- /\brm\b/i, // any rm command- /\bgit\s+push\b/i, // git push- /\bgit\s+reset\s+--hard\b/i, // git reset hard- /\bnpm\s+(publish|unpublish)\b/i, // npm publish- /\bpip\s+install\b/i, // pip install- /\bcurl\b|\bwget\b/i, // network downloads- /\bchmod\b/i, // permission changes- /\bchown\b/i, // ownership changes- /\benv\b.*=.*\bexport\b/i, // environment modifications- /\b(docker|kubectl)\b/i, // container/k8s commands- ];-- // Patterns for sensitive file access- private readonly sensitivePathPatterns: RegExp[] = [- /\/etc\/(passwd|shadow|sudoers)/i,- /~?\/.ssh\//i,- /~?\/.aws\//i,- /~?\/.gnupg\//i,- /\.env\b/i,- /\.(pem|key|crt|cer)\b/i,- /secrets?\.(json|ya?ml|txt)\b/i,- /credentials?\b/i,- ];-- analyze(action: ActionEvent): SecurityAnalysisResult {- const concerns: string[] = [];- let highestRisk: RiskLevel = 'low';-- // Get the command or content to analyze- const contentToAnalyze = this.getContentToAnalyze(action);-- // Check for high-risk patterns- for (const pattern of this.highRiskPatterns) {- if (pattern.test(contentToAnalyze)) {- concerns.push(`High-risk pattern detected: ${pattern.source}`);- highestRisk = 'high';- }- }-- // Check for medium-risk patterns (only if not already high)- if (highestRisk !== 'high') {- for (const pattern of this.mediumRiskPatterns) {- if (pattern.test(contentToAnalyze)) {- concerns.push(`Medium-risk pattern detected: ${pattern.source}`);- if (highestRisk === 'low') {- highestRisk = 'medium';- }- }- }- }-- // Check for sensitive file access- for (const pattern of this.sensitivePathPatterns) {- if (pattern.test(contentToAnalyze)) {- concerns.push(`Sensitive file access detected: ${pattern.source}`);- if (highestRisk === 'low') {- highestRisk = 'medium';- }- }- }-- return {- riskLevel: highestRisk,- requiresConfirmation: highestRisk !== 'low',- explanation:- concerns.length > 0- ? `Found ${concerns.length} potential security concern(s)`- : 'No significant risks detected',- concerns,- };- }-- private getContentToAnalyze(action: ActionEvent): string {- // Combine relevant fields for analysis- const parts: string[] = [action.tool_name];-- if (action.action) {- // For execute_command tool- if (typeof action.action === 'object' && 'command' in action.action) {- parts.push(String(action.action.command));- }- // For write_file tool- if (typeof action.action === 'object' && 'path' in action.action) {- parts.push(String(action.action.path));- }- if (typeof action.action === 'object' && 'content' in action.action) {- parts.push(String(action.action.content));- }- // Generic: stringify the action- parts.push(JSON.stringify(action.action));- }-- return parts.join(' ');- }-}--/**- * Allowlist-based security analyzer.- * Only allows explicitly approved tools and patterns.- */-export class AllowlistAnalyzer implements SecurityAnalyzer {- readonly type = 'allowlist';- private allowedTools: Set<string>;- private allowedPatterns: RegExp[];-- constructor(allowedTools: string[], allowedPatterns: RegExp[] = []) {- this.allowedTools = new Set(allowedTools);- this.allowedPatterns = allowedPatterns;- }-- analyze(action: ActionEvent): SecurityAnalysisResult {- // Check if tool is allowed- if (this.allowedTools.has(action.tool_name)) {- return {- riskLevel: 'low',- requiresConfirmation: false,- explanation: `Tool '${action.tool_name}' is in the allowlist`,- };- }-- // Check if action matches allowed patterns- const actionStr = JSON.stringify(action.action);- for (const pattern of this.allowedPatterns) {- if (pattern.test(actionStr)) {- return {- riskLevel: 'low',- requiresConfirmation: false,- explanation: `Action matches allowed pattern`,- };- }- }-- // Not in allowlist- return {- riskLevel: 'high',- requiresConfirmation: true,- explanation: `Tool '${action.tool_name}' is not in the allowlist`,- concerns: ['Unlisted tool or action'],- };- }-}--/**- * No-op analyzer - marks everything as low risk.- * Use for development/testing only.- */-export class NoOpAnalyzer implements SecurityAnalyzer {- readonly type = 'noop';-- analyze(_action: ActionEvent): SecurityAnalysisResult {- return {- riskLevel: 'low',- requiresConfirmation: false,- explanation: 'No security analysis performed',- };- }-}--/**- * Composite analyzer - combines multiple analyzers.- * Returns the highest risk level from all analyzers.- */-export class CompositeAnalyzer implements SecurityAnalyzer {- readonly type = 'composite';- private analyzers: SecurityAnalyzer[];-- constructor(analyzers: SecurityAnalyzer[]) {- this.analyzers = analyzers;- }-- async analyze(action: ActionEvent): Promise<SecurityAnalysisResult> {- const results = await Promise.all(this.analyzers.map((a) => a.analyze(action)));-- // Combine results - highest risk wins- let highestRisk: RiskLevel = 'low';- const allConcerns: string[] = [];- const explanations: string[] = [];-- for (const result of results) {- if (riskLevelToNumeric(result.riskLevel) > riskLevelToNumeric(highestRisk)) {- highestRisk = result.riskLevel;- }- if (result.concerns) {- allConcerns.push(...result.concerns);- }- if (result.explanation) {- explanations.push(result.explanation);- }- }-- return {- riskLevel: highestRisk,- requiresConfirmation: highestRisk !== 'low',- explanation: explanations.join('; '),- concerns: allConcerns.length > 0 ? allConcerns : undefined,- };- }-}--/**- * Create a security analyzer from a type string.- */-export function createSecurityAnalyzer(type: string, options?: unknown): SecurityAnalyzer {- switch (type) {- case 'pattern_based':- return new PatternBasedAnalyzer();- case 'allowlist': {- const opts = options as { tools?: string[]; patterns?: RegExp[] } | undefined;- return new AllowlistAnalyzer(opts?.tools || [], opts?.patterns || []);- }- case 'noop':- return new NoOpAnalyzer();- default:- return new PatternBasedAnalyzer();- }-}diff --git a/vendor/openhands-typescript-client/src/types/base.ts b/vendor/openhands-typescript-client/src/types/base.tsdeleted file mode 100644index f1c9c464f7..0000000000--- a/vendor/openhands-typescript-client/src/types/base.ts+++ /dev/null@@ -1,146 +0,0 @@-/**- * Base types and interfaces for the OpenHands Agent Server TypeScript client- */--export type ConversationID = string;--/**- * Base event interface matching the agent-server wire format.- * For rich, typed events use the specific types from events/types.ts- * (e.g., ActionEvent, ObservationEvent, ConversationEvent).- */-export interface Event {- id: string;- kind: string;- timestamp: string;- source?: 'agent' | 'user' | 'environment' | 'system' | 'hook';-}--export interface Message {- role: 'user' | 'assistant' | 'system';- content: MessageContent[];-}--export interface MessageContent {- type: 'text' | 'image';- text?: string;- image_urls?: string[];-}--export interface TextContent extends MessageContent {- type: 'text';- text: string;-}--export interface ImageContent extends MessageContent {- type: 'image';- image_urls: string[];-}--export interface AgentContext {- skills?: unknown[];- system_message_suffix?: string | null;- user_message_suffix?: string | null;- [key: string]: unknown;-}--export interface AgentBase {- kind: string;- llm: LLM;- agent_context?: AgentContext | null;- name?: string;- [key: string]: unknown;-}--// Alias for user-facing API-export type Agent = AgentBase;--export interface LLM {- model: string;- api_key?: string;- base_url?: string;- [key: string]: unknown;-}--export interface ServerInfo {- uptime: number;- idle_time: number;- title?: string;- version: string;- sdk_version?: string;- tools_version?: string;- workspace_version?: string;- build_git_sha?: string;- build_git_date?: string;- build_semver?: string;- [key: string]: unknown;-}--export interface Success {- success: boolean;- message?: string;-}--export interface EventPage {- items: Event[];- next_page_id?: string;- total_count?: number;-}--export enum EventSortOrder {- TIMESTAMP = 'TIMESTAMP',- TIMESTAMP_DESC = 'TIMESTAMP_DESC',-}--// eslint-disable-next-line @typescript-eslint/no-namespace-export namespace EventSortOrder {- /** @deprecated Use TIMESTAMP_DESC instead. */- export const REVERSE_TIMESTAMP: EventSortOrder = 'TIMESTAMP_DESC' as EventSortOrder;-}--/**- * Enum representing the current execution state of the conversation.- * Note: This was renamed from AgentExecutionStatus to ConversationExecutionStatus- * in the agent-server API.- */-export enum ConversationExecutionStatus {- IDLE = 'idle',- RUNNING = 'running',- PAUSED = 'paused',- WAITING_FOR_CONFIRMATION = 'waiting_for_confirmation',- FINISHED = 'finished',- ERROR = 'error',- STUCK = 'stuck',- DELETING = 'deleting',-}--/**- * @deprecated Use ConversationExecutionStatus instead. This alias is kept for backward compatibility.- */-export const AgentExecutionStatus = ConversationExecutionStatus;-export type AgentExecutionStatus = ConversationExecutionStatus;--export interface ConversationStats {- total_events: number;- message_events: number;- action_events: number;- observation_events: number;- [key: string]: unknown;-}--export interface ConfirmationPolicyBase {- type: string;- [key: string]: unknown;-}--export interface NeverConfirm extends ConfirmationPolicyBase {- type: 'never';-}--export interface AlwaysConfirm extends ConfirmationPolicyBase {- type: 'always';-}--export type ConversationCallbackType = (event: Event) => void;--export type SecretValue = string | (() => string);diff --git a/vendor/openhands-typescript-client/src/workspace/base.ts b/vendor/openhands-typescript-client/src/workspace/base.tsdeleted file mode 100644index c0974221ea..0000000000--- a/vendor/openhands-typescript-client/src/workspace/base.ts+++ /dev/null@@ -1,133 +0,0 @@-/**- * Base workspace interface and types- *- * This file defines the abstract interface that all workspace implementations must follow.- * It mirrors the Python SDK's BaseWorkspace pattern.- */--import {- CommandResult,- FileOperationResult,- FileDownloadResult,- GitChange,- GitDiff,-} from '../models/workspace';--/**- * Base workspace options that all workspace types share- */-export interface BaseWorkspaceOptions {- workingDir: string;-}--/**- * Abstract interface for workspace implementations.- *- * Workspaces provide a sandboxed environment where agents can execute commands,- * read/write files, and perform other operations. All workspace implementations- * support the same interface for interoperability.- *- * This mirrors the Python SDK's BaseWorkspace abstract class.- */-export interface IWorkspace {- /** The working directory for agent operations */- readonly workingDir: string;-- /**- * Execute a bash command in the workspace.- *- * @param command - The bash command to execute- * @param cwd - Working directory for the command (optional)- * @param timeout - Timeout in seconds (defaults to 30.0)- * @returns CommandResult containing stdout, stderr, exit_code, and other metadata- */- executeCommand(command: string, cwd?: string, timeout?: number): Promise<CommandResult>;-- /**- * Upload content to the workspace.- *- * @param content - The content to upload (string, Blob, or File)- * @param destinationPath - Path where the content should be uploaded- * @param fileName - Optional filename for the uploaded content- * @returns FileOperationResult containing success status and metadata- */- fileUpload(- content: string | Blob | File,- destinationPath: string,- fileName?: string- ): Promise<FileOperationResult>;-- /**- * Download a file from the workspace.- *- * @param sourcePath - Path to the source file in the workspace- * @returns FileDownloadResult containing the file content- */- fileDownload(sourcePath: string): Promise<FileDownloadResult>;-- /**- * Get git changes for a repository at the given path.- *- * @param path - Path to the git repository- * @returns Array of GitChange objects- */- gitChanges(path: string): Promise<GitChange[]>;-- /**- * Get git diff for a repository at the given path.- *- * @param path - Path to the git repository- * @returns GitDiff object containing the diff content- */- gitDiff(path: string): Promise<GitDiff>;-- /**- * Convenience method to upload text content as a file.- *- * @param text - The text content to upload- * @param destinationPath - Path where the content should be uploaded- * @param fileName - Optional filename- */- uploadText(- text: string,- destinationPath: string,- fileName?: string- ): Promise<FileOperationResult>;-- /**- * Convenience method to upload a File object.- *- * @param file - The File object to upload- * @param destinationPath - Path where the file should be uploaded- */- uploadFileObject(file: File, destinationPath: string): Promise<FileOperationResult>;-- /**- * Convenience method to download file content as text.- *- * @param sourcePath - Path to the source file- * @returns The file content as a string- */- downloadAsText(sourcePath: string): Promise<string>;-- /**- * Convenience method to download file content as a Blob.- *- * @param sourcePath - Path to the source file- * @returns The file content as a Blob- */- downloadAsBlob(sourcePath: string): Promise<Blob>;-- /**- * Close/cleanup the workspace connection.- * For local workspaces, this is typically a no-op.- * For remote workspaces, this closes the HTTP client connection.- */- close(): void;-}--/**- * Type discriminator for workspace types.- * Useful for runtime type checking and factory patterns.- */-export type WorkspaceType = 'local' | 'remote';diff --git a/vendor/openhands-typescript-client/src/workspace/local-workspace.ts b/vendor/openhands-typescript-client/src/workspace/local-workspace.tsdeleted file mode 100644index 9f6de2c077..0000000000--- a/vendor/openhands-typescript-client/src/workspace/local-workspace.ts+++ /dev/null@@ -1,152 +0,0 @@-/**- * Local workspace stub implementation.- *- * This is a stub implementation of the IWorkspace interface for local execution.- * All methods throw descriptive errors directing users to RemoteWorkspace.- *- * This mirrors the Python SDK's LocalWorkspace class architecture.- */--import {- CommandResult,- FileOperationResult,- FileDownloadResult,- GitChange,- GitDiff,-} from '../models/workspace';-import { IWorkspace, BaseWorkspaceOptions } from './base';--/**- * Options for creating a LocalWorkspace instance.- */-export type LocalWorkspaceOptions = BaseWorkspaceOptions;--/**- * Error thrown when LocalWorkspace methods are called.- */-class LocalWorkspaceNotSupportedError extends Error {- constructor(method: string) {- super(`LocalWorkspace.${method}() is not implemented. ` + `Use RemoteWorkspace instead.`);- this.name = 'LocalWorkspaceNotSupportedError';- }-}--/**- * Local workspace stub.- *- * This is a placeholder implementation that throws descriptive errors when methods- * are called. Use RemoteWorkspace for actual workspace functionality.- *- * ```typescript- * const workspace = new RemoteWorkspace({- * host: 'http://localhost:8000',- * workingDir: '/workspace'- * });- * const result = await workspace.executeCommand('ls -la');- * ```- */-export class LocalWorkspace implements IWorkspace {- public readonly workingDir: string;-- constructor(options: LocalWorkspaceOptions) {- this.workingDir = options.workingDir;- }-- /**- * Execute a bash command locally.- *- * @throws LocalWorkspaceNotSupportedError - Always throws β not implemented- */- async executeCommand(_command: string, _cwd?: string, _timeout?: number): Promise<CommandResult> {- throw new LocalWorkspaceNotSupportedError('executeCommand');- }-- /**- * Write content to a file in the workspace.- *- * @throws LocalWorkspaceNotSupportedError - Always throws β not implemented- */- async fileUpload(- _content: string | Blob | File,- _destinationPath: string,- _fileName?: string- ): Promise<FileOperationResult> {- throw new LocalWorkspaceNotSupportedError('fileUpload');- }-- /**- * Read a file from the workspace.- *- * @throws LocalWorkspaceNotSupportedError - Always throws β not implemented- */- async fileDownload(_sourcePath: string): Promise<FileDownloadResult> {- throw new LocalWorkspaceNotSupportedError('fileDownload');- }-- /**- * Get git changes for a repository.- *- * @throws LocalWorkspaceNotSupportedError - Always throws β not implemented- */- async gitChanges(_repoPath: string): Promise<GitChange[]> {- throw new LocalWorkspaceNotSupportedError('gitChanges');- }-- /**- * Get git diff for a repository.- *- * @throws LocalWorkspaceNotSupportedError - Always throws β not implemented- */- async gitDiff(_repoPath: string): Promise<GitDiff> {- throw new LocalWorkspaceNotSupportedError('gitDiff');- }-- /**- * Convenience method to write text content as a file.- *- * @throws LocalWorkspaceNotSupportedError - Always throws β not implemented- */- async uploadText(- _text: string,- _destinationPath: string,- _fileName?: string- ): Promise<FileOperationResult> {- throw new LocalWorkspaceNotSupportedError('uploadText');- }-- /**- * Convenience method to upload a File object.- *- * @throws LocalWorkspaceNotSupportedError - Always throws β not implemented- */- async uploadFileObject(_file: File, _destinationPath: string): Promise<FileOperationResult> {- throw new LocalWorkspaceNotSupportedError('uploadFileObject');- }-- /**- * Convenience method to download file content as text.- *- * @throws LocalWorkspaceNotSupportedError - Always throws β not implemented- */- async downloadAsText(_sourcePath: string): Promise<string> {- throw new LocalWorkspaceNotSupportedError('downloadAsText');- }-- /**- * Convenience method to download file content as a Blob.- *- * @throws LocalWorkspaceNotSupportedError - Always throws β not implemented- */- async downloadAsBlob(_sourcePath: string): Promise<Blob> {- throw new LocalWorkspaceNotSupportedError('downloadAsBlob');- }-- /**- * Close/cleanup the workspace.- *- * For the stub implementation, this is a no-op.- */- close(): void {- // No-op for stub implementation- }-}diff --git a/vendor/openhands-typescript-client/src/workspace/remote-workspace.ts b/vendor/openhands-typescript-client/src/workspace/remote-workspace.tsdeleted file mode 100644index bea539565f..0000000000--- a/vendor/openhands-typescript-client/src/workspace/remote-workspace.ts+++ /dev/null@@ -1,265 +0,0 @@-/**- * Remote workspace implementation for executing commands and file operations- *- * This implements the IWorkspace interface by connecting to a remote OpenHands- * agent server. It mirrors the Python SDK's RemoteWorkspace class.- */--import { BashClient } from '../client/bash-client';-import { HttpClient } from '../client/http-client';-import {- CommandResult,- FileOperationResult,- FileDownloadResult,- GitChange,- GitDiff,-} from '../models/workspace';-import { IWorkspace, BaseWorkspaceOptions } from './base';--/**- * Options for creating a RemoteWorkspace instance.- */-export interface RemoteWorkspaceOptions extends BaseWorkspaceOptions {- /** The remote host URL for the workspace (e.g., 'http://localhost:8000') */- host: string;- /** API key for authenticating with the remote host (optional) */- apiKey?: string;-}--/**- * Remote workspace implementation that connects to an OpenHands agent server.- *- * RemoteWorkspace provides access to a sandboxed environment running on a remote- * OpenHands agent server. This is the recommended approach for production deployments- * as it provides better isolation and security.- */-export class RemoteWorkspace implements IWorkspace {- public readonly host: string;- public readonly workingDir: string;- public readonly apiKey?: string;- public readonly client: HttpClient;- public readonly bash: BashClient;-- constructor(options: RemoteWorkspaceOptions) {- this.host = options.host.replace(/\/$/, '');- this.workingDir = options.workingDir;- this.apiKey = options.apiKey;-- this.client = new HttpClient({- baseUrl: this.host,- apiKey: this.apiKey,- timeout: 60000,- });-- this.bash = new BashClient({- host: this.host,- ...(this.apiKey ? { apiKey: this.apiKey } : {}),- });- }-- async executeCommand(- command: string,- cwd?: string,- timeout: number = 30.0- ): Promise<CommandResult> {- const payload: Record<string, unknown> = {- command,- timeout: Math.floor(timeout),- };-- if (cwd) {- payload.cwd = cwd;- }-- const response = await this.client.post('/api/bash/execute_bash_command', payload, {- timeout: (timeout + 10) * 1000,- });-- const bashOutput = response.data as { exit_code?: number; stdout?: string; stderr?: string };-- return {- command,- exit_code: bashOutput.exit_code ?? 0,- stdout: bashOutput.stdout || '',- stderr: bashOutput.stderr || '',- timeout_occurred: false,- };- }-- async fileUpload(- content: string | Blob | File,- destinationPath: string,- fileName?: string- ): Promise<FileOperationResult> {- const formData = new FormData();-- let blob: Blob;- let finalFileName: string;-- if (content instanceof File) {- blob = content;- finalFileName = fileName || content.name;- } else if (content instanceof Blob) {- blob = content;- finalFileName = fileName || 'blob-file';- } else {- blob = new Blob([content], { type: 'text/plain' });- finalFileName = fileName || 'text-file.txt';- }-- formData.append('file', blob, finalFileName);-- const response = await this.client.request({- method: 'POST',- url: '/api/file/upload',- params: { path: destinationPath },- data: formData,- timeout: 60000,- });-- const resultData = response.data as { success?: boolean; file_size?: number; error?: string };-- return {- success: resultData.success ?? true,- source_path: finalFileName,- destination_path: destinationPath,- file_size: resultData.file_size,- error: resultData.error,- };- }-- async fileDownload(sourcePath: string): Promise<FileDownloadResult> {- const response = await this.client.get('/api/file/download', {- params: { path: sourcePath },- timeout: 60000,- });-- let content: string | Blob;- let fileSize: number;-- if (typeof response.data === 'string') {- content = response.data;- fileSize = new Blob([response.data]).size;- } else if (response.data instanceof ArrayBuffer) {- content = new Blob([response.data]);- fileSize = response.data.byteLength;- } else if (response.data instanceof Blob) {- content = response.data;- fileSize = response.data.size;- } else {- const stringData = JSON.stringify(response.data);- content = stringData;- fileSize = new Blob([stringData]).size;- }-- return {- success: true,- source_path: sourcePath,- content,- file_size: fileSize,- };- }-- async gitChanges(path: string): Promise<GitChange[]> {- try {- const response = await this.client.get<GitChange[]>('/api/git/changes', {- params: { path },- });- return response.data;- } catch (error) {- throw new Error(- `Failed to get git changes: ${error instanceof Error ? error.message : String(error)}`,- { cause: error }- );- }- }-- async gitDiff(path: string): Promise<GitDiff> {- try {- const response = await this.client.get<GitDiff>('/api/git/diff', {- params: { path },- });- return response.data;- } catch (error) {- throw new Error(- `Failed to get git diff: ${error instanceof Error ? error.message : String(error)}`,- { cause: error }- );- }- }-- /**- * Convenience method to upload text content as a file- */- async uploadText(- text: string,- destinationPath: string,- fileName?: string- ): Promise<FileOperationResult> {- return this.fileUpload(text, destinationPath, fileName);- }-- /**- * Convenience method to upload a File object (from file input)- */- async uploadFileObject(file: File, destinationPath: string): Promise<FileOperationResult> {- return this.fileUpload(file, destinationPath);- }-- /**- * Convenience method to download file content as text- */- async downloadAsText(sourcePath: string): Promise<string> {- const result = await this.fileDownload(sourcePath);- if (!result.success) {- throw new Error(result.error || 'Download failed');- }-- if (typeof result.content === 'string') {- return result.content;- } else if (result.content instanceof Blob) {- return await result.content.text();- }-- return '';- }-- /**- * Convenience method to download file content as a Blob- */- async downloadAsBlob(sourcePath: string): Promise<Blob> {- const result = await this.fileDownload(sourcePath);- if (!result.success) {- throw new Error(result.error || 'Download failed');- }-- if (result.content instanceof Blob) {- return result.content;- } else if (typeof result.content === 'string') {- return new Blob([result.content], { type: 'text/plain' });- }-- return new Blob();- }-- /**- * Convenience method to trigger a browser download of a file- */- async downloadAndSave(sourcePath: string, saveAsFileName?: string): Promise<void> {- const blob = await this.downloadAsBlob(sourcePath);-- const url = URL.createObjectURL(blob);- const a = document.createElement('a');- a.href = url;- a.download = saveAsFileName || sourcePath.split('/').pop() || 'download';- document.body.appendChild(a);- a.click();- document.body.removeChild(a);- URL.revokeObjectURL(url);- }-- close(): void {- this.bash.close();- this.client.close();- }-}diff --git a/vendor/openhands-typescript-client/src/workspace/workspace.ts b/vendor/openhands-typescript-client/src/workspace/workspace.tsdeleted file mode 100644index 0e1605582a..0000000000--- a/vendor/openhands-typescript-client/src/workspace/workspace.ts+++ /dev/null@@ -1,129 +0,0 @@-/**- * Workspace factory and utility functions- *- * This module provides a convenient factory pattern for creating workspace instances.- * It matches the Python SDK pattern while supporting both local and remote workspaces.- */--import { IWorkspace, WorkspaceType } from './base';-import { RemoteWorkspace, RemoteWorkspaceOptions } from './remote-workspace';-import { LocalWorkspace, LocalWorkspaceOptions } from './local-workspace';--/**- * Union type for all workspace options- */-export type WorkspaceOptions = RemoteWorkspaceOptions | LocalWorkspaceOptions;--/**- * Options for creating a workspace with explicit type selection- */-export interface CreateWorkspaceOptions {- type: WorkspaceType;- options: WorkspaceOptions;-}--/**- * Type guard to check if options are for RemoteWorkspace- */-function isRemoteWorkspaceOptions(options: WorkspaceOptions): options is RemoteWorkspaceOptions {- return 'host' in options;-}--/**- * Workspace class that extends RemoteWorkspace for backwards compatibility.- * Provides a cleaner API that matches the Python SDK naming.- *- * For new code, consider using the createWorkspace factory function- * or directly instantiating RemoteWorkspace or LocalWorkspace.- *- * Usage:- * ```typescript- * // Legacy usage (backwards compatible)- * const workspace = new Workspace({- * host: 'http://localhost:8000',- * workingDir: '/workspace',- * apiKey: 'key'- * });- * ```- */-export class Workspace extends RemoteWorkspace {- constructor(options: RemoteWorkspaceOptions) {- super(options);- }-}--/**- * Factory function to create a workspace instance based on options.- *- * This provides a unified way to create either local or remote workspaces- * based on the provided options.- *- * Usage:- * ```typescript- * // Create a remote workspace- * const remoteWorkspace = createWorkspace({- * type: 'remote',- * options: {- * host: 'http://localhost:8000',- * workingDir: '/workspace',- * apiKey: 'key'- * }- * });- *- * // Create a local workspace- * const localWorkspace = createWorkspace({- * type: 'local',- * options: {- * workingDir: '/path/to/project'- * }- * });- * ```- *- * @param config - The workspace configuration including type and options- * @returns A workspace instance implementing IWorkspace- */-export function createWorkspace(config: CreateWorkspaceOptions): IWorkspace {- switch (config.type) {- case 'remote':- if (!isRemoteWorkspaceOptions(config.options)) {- throw new Error('RemoteWorkspace requires host option');- }- return new RemoteWorkspace(config.options);-- case 'local':- return new LocalWorkspace(config.options as LocalWorkspaceOptions);-- default:- throw new Error(`Unknown workspace type: ${config.type}`);- }-}--/**- * Create a workspace automatically detecting the type from options.- *- * If the options contain a 'host' property, creates a RemoteWorkspace.- * Otherwise, creates a LocalWorkspace.- *- * Usage:- * ```typescript- * // Automatically creates RemoteWorkspace (has 'host')- * const remote = createWorkspaceAuto({- * host: 'http://localhost:8000',- * workingDir: '/workspace'- * });- *- * // Automatically creates LocalWorkspace (no 'host')- * const local = createWorkspaceAuto({- * workingDir: '/path/to/project'- * });- * ```- *- * @param options - The workspace options- * @returns A workspace instance implementing IWorkspace- */-export function createWorkspaceAuto(options: WorkspaceOptions): IWorkspace {- if (isRemoteWorkspaceOptions(options)) {- return new RemoteWorkspace(options);- }- return new LocalWorkspace(options as LocalWorkspaceOptions);-}diff --git a/vendor/openhands-typescript-client/swagger-doc.json b/vendor/openhands-typescript-client/swagger-doc.jsondeleted file mode 100644index c64efc2cbb..0000000000--- a/vendor/openhands-typescript-client/swagger-doc.json+++ /dev/null@@ -1,6257 +0,0 @@-{- "openapi": "3.1.0",- "info": {- "title": "OpenHands Agent Server",- "description": "OpenHands Agent Server - REST/WebSocket interface for OpenHands AI Agent",- "version": "0.1.0"- },- "paths": {- "/alive": {- "get": {- "tags": [- "Server Details"- ],- "summary": "Alive",- "operationId": "alive_alive_get",- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {}- }- }- }- }- }- },- "/health": {- "get": {- "tags": [- "Server Details"- ],- "summary": "Health",- "operationId": "health_health_get",- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "type": "string",- "title": "Response Health Health Get"- }- }- }- }- }- }- },- "/server_info": {- "get": {- "tags": [- "Server Details"- ],- "summary": "Get Server Info",- "operationId": "get_server_info_server_info_get",- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/ServerInfo"- }- }- }- }- }- }- },- "/api/conversations/{conversation_id}/events/search": {- "get": {- "tags": [- "Events"- ],- "summary": "Search Conversation Events",- "description": "Search / List local events",- "operationId": "search_conversation_events_api_conversations__conversation_id__events_search_get",- "parameters": [- {- "name": "conversation_id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "format": "uuid",- "title": "Conversation Id"- }- },- {- "name": "page_id",- "in": "query",- "required": false,- "schema": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Optional next_page_id from the previously returned page"- }- },- {- "name": "limit",- "in": "query",- "required": false,- "schema": {- "type": "integer",- "exclusiveMinimum": 0,- "title": "The max number of results in the page",- "lte": 100,- "default": 100- }- },- {- "name": "kind",- "in": "query",- "required": false,- "schema": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Optional filter by event kind/type (e.g., ActionEvent, MessageEvent)"- }- },- {- "name": "sort_order",- "in": "query",- "required": false,- "schema": {- "$ref": "#/components/schemas/EventSortOrder",- "title": "Sort order for events",- "default": "TIMESTAMP"- }- }- ],- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/EventPage"- }- }- }- },- "404": {- "description": "Conversation not found"- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/conversations/{conversation_id}/events/count": {- "get": {- "tags": [- "Events"- ],- "summary": "Count Conversation Events",- "description": "Count local events matching the given filters",- "operationId": "count_conversation_events_api_conversations__conversation_id__events_count_get",- "parameters": [- {- "name": "conversation_id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "format": "uuid",- "title": "Conversation Id"- }- },- {- "name": "kind",- "in": "query",- "required": false,- "schema": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Optional filter by event kind/type (e.g., ActionEvent, MessageEvent)"- }- }- ],- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "type": "integer",- "title": "Response Count Conversation Events Api Conversations Conversation Id Events Count Get"- }- }- }- },- "404": {- "description": "Conversation not found"- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/conversations/{conversation_id}/events/{event_id}": {- "get": {- "tags": [- "Events"- ],- "summary": "Get Conversation Event",- "description": "Get a local event given an id",- "operationId": "get_conversation_event_api_conversations__conversation_id__events__event_id__get",- "parameters": [- {- "name": "event_id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "title": "Event Id"- }- },- {- "name": "conversation_id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "format": "uuid",- "title": "Conversation Id"- }- }- ],- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "oneOf": [- {- "$ref": "#/components/schemas/Condensation"- },- {- "$ref": "#/components/schemas/CondensationRequest"- },- {- "$ref": "#/components/schemas/CondensationSummaryEvent"- },- {- "$ref": "#/components/schemas/ConversationStateUpdateEvent"- },- {- "$ref": "#/components/schemas/ActionEvent"- },- {- "$ref": "#/components/schemas/MessageEvent"- },- {- "$ref": "#/components/schemas/AgentErrorEvent"- },- {- "$ref": "#/components/schemas/ObservationEvent"- },- {- "$ref": "#/components/schemas/UserRejectObservation"- },- {- "$ref": "#/components/schemas/SystemPromptEvent"- },- {- "$ref": "#/components/schemas/PauseEvent"- }- ],- "title": "Response Get Conversation Event Api Conversations Conversation Id Events Event Id Get",- "discriminator": {- "propertyName": "kind",- "mapping": {- "openhands__sdk__event__condenser__Condensation-Output__1": "#/components/schemas/Condensation",- "openhands__sdk__event__condenser__CondensationRequest-Output__1": "#/components/schemas/CondensationRequest",- "openhands__sdk__event__condenser__CondensationSummaryEvent-Output__1": "#/components/schemas/CondensationSummaryEvent",- "openhands__sdk__event__conversation_state__ConversationStateUpdateEvent-Output__1": "#/components/schemas/ConversationStateUpdateEvent",- "openhands__sdk__event__llm_convertible__action__ActionEvent-Output__1": "#/components/schemas/ActionEvent",- "openhands__sdk__event__llm_convertible__message__MessageEvent-Output__1": "#/components/schemas/MessageEvent",- "openhands__sdk__event__llm_convertible__observation__AgentErrorEvent-Output__1": "#/components/schemas/AgentErrorEvent",- "openhands__sdk__event__llm_convertible__observation__ObservationEvent-Output__1": "#/components/schemas/ObservationEvent",- "openhands__sdk__event__llm_convertible__observation__UserRejectObservation-Output__1": "#/components/schemas/UserRejectObservation",- "openhands__sdk__event__llm_convertible__system__SystemPromptEvent-Output__1": "#/components/schemas/SystemPromptEvent",- "openhands__sdk__event__user_action__PauseEvent-Output__1": "#/components/schemas/PauseEvent"- }- }- }- }- }- },- "404": {- "description": "Item not found"- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/conversations/{conversation_id}/events": {- "get": {- "tags": [- "Events"- ],- "summary": "Batch Get Conversation Events",- "description": "Get a batch of local events given their ids, returning null for any\nmissing item.",- "operationId": "batch_get_conversation_events_api_conversations__conversation_id__events_get",- "parameters": [- {- "name": "conversation_id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "format": "uuid",- "title": "Conversation Id"- }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "type": "array",- "items": {- "type": "string"- },- "title": "Event Ids"- }- }- }- },- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/components/schemas/Event"- },- {- "type": "null"- }- ]- },- "title": "Response Batch Get Conversation Events Api Conversations Conversation Id Events Get"- }- }- }- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- },- "post": {- "tags": [- "Events"- ],- "summary": "Send Message",- "description": "Send a message to a conversation",- "operationId": "send_message_api_conversations__conversation_id__events_post",- "parameters": [- {- "name": "conversation_id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "format": "uuid",- "title": "Conversation Id"- }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/SendMessageRequest"- }- }- }- },- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/Success"- }- }- }- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/conversations/{conversation_id}/events/respond_to_confirmation": {- "post": {- "tags": [- "Events"- ],- "summary": "Respond To Confirmation",- "description": "Accept or reject a pending action in confirmation mode.",- "operationId": "respond_to_confirmation_api_conversations__conversation_id__events_respond_to_confirmation_post",- "parameters": [- {- "name": "conversation_id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "format": "uuid",- "title": "Conversation Id"- }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/ConfirmationResponseRequest"- }- }- }- },- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/Success"- }- }- }- },- "404": {- "description": "Item not found"- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/conversations/search": {- "get": {- "tags": [- "Conversations"- ],- "summary": "Search Conversations",- "description": "Search / List conversations",- "operationId": "search_conversations_api_conversations_search_get",- "parameters": [- {- "name": "page_id",- "in": "query",- "required": false,- "schema": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Optional next_page_id from the previously returned page"- }- },- {- "name": "limit",- "in": "query",- "required": false,- "schema": {- "type": "integer",- "exclusiveMinimum": 0,- "title": "The max number of results in the page",- "lte": 100,- "default": 100- }- },- {- "name": "status",- "in": "query",- "required": false,- "schema": {- "anyOf": [- {- "$ref": "#/components/schemas/AgentExecutionStatus"- },- {- "type": "null"- }- ],- "title": "Optional filter by agent execution status"- }- },- {- "name": "sort_order",- "in": "query",- "required": false,- "schema": {- "$ref": "#/components/schemas/ConversationSortOrder",- "title": "Sort order for conversations",- "default": "CREATED_AT_DESC"- }- }- ],- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/ConversationPage"- }- }- }- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/conversations/count": {- "get": {- "tags": [- "Conversations"- ],- "summary": "Count Conversations",- "description": "Count conversations matching the given filters",- "operationId": "count_conversations_api_conversations_count_get",- "parameters": [- {- "name": "status",- "in": "query",- "required": false,- "schema": {- "anyOf": [- {- "$ref": "#/components/schemas/AgentExecutionStatus"- },- {- "type": "null"- }- ],- "title": "Optional filter by agent execution status"- }- }- ],- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "type": "integer",- "title": "Response Count Conversations Api Conversations Count Get"- }- }- }- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/conversations/{conversation_id}": {- "get": {- "tags": [- "Conversations"- ],- "summary": "Get Conversation",- "description": "Given an id, get a conversation",- "operationId": "get_conversation_api_conversations__conversation_id__get",- "parameters": [- {- "name": "conversation_id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "format": "uuid",- "title": "Conversation Id"- }- }- ],- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/ConversationInfo"- }- }- }- },- "404": {- "description": "Item not found"- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- },- "delete": {- "tags": [- "Conversations"- ],- "summary": "Delete Conversation",- "description": "Permanently delete a conversation.",- "operationId": "delete_conversation_api_conversations__conversation_id__delete",- "parameters": [- {- "name": "conversation_id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "format": "uuid",- "title": "Conversation Id"- }- }- ],- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/Success"- }- }- }- },- "404": {- "description": "Item not found"- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- },- "patch": {- "tags": [- "Conversations"- ],- "summary": "Update Conversation",- "description": "Update conversation metadata.\n\nThis endpoint allows updating conversation details like title.",- "operationId": "update_conversation_api_conversations__conversation_id__patch",- "parameters": [- {- "name": "conversation_id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "format": "uuid",- "title": "Conversation Id"- }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/UpdateConversationRequest"- }- }- }- },- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/Success"- }- }- }- },- "404": {- "description": "Item not found"- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/conversations": {- "get": {- "tags": [- "Conversations"- ],- "summary": "Batch Get Conversations",- "description": "Get a batch of conversations given their ids, returning null for\nany missing item",- "operationId": "batch_get_conversations_api_conversations_get",- "parameters": [- {- "name": "ids",- "in": "query",- "required": true,- "schema": {- "type": "array",- "items": {- "type": "string",- "format": "uuid"- },- "title": "Ids"- }- }- ],- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "type": "array",- "items": {- "anyOf": [- {- "$ref": "#/components/schemas/ConversationInfo"- },- {- "type": "null"- }- ]- },- "title": "Response Batch Get Conversations Api Conversations Get"- }- }- }- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- },- "post": {- "tags": [- "Conversations"- ],- "summary": "Start Conversation",- "description": "Start a conversation in the local environment.",- "operationId": "start_conversation_api_conversations_post",- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/StartConversationRequest",- "examples": [- {- "agent": {- "llm": {- "model": "your-model-provider/your-model-name",- "api_key": "**********",- "reasoning_effort": "high",- "usage_id": "your-llm-service"- },- "tools": [- {- "name": "BashTool"- },- {- "name": "FileEditorTool"- },- {- "name": "TaskTrackerTool"- }- ]- },- "workspace": {- "working_dir": "workspace/project"- },- "initial_message": {- "content": [- {- "text": "Flip a coin!"- }- ]- }- }- ]- }- }- }- },- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/ConversationInfo"- }- }- }- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/conversations/{conversation_id}/pause": {- "post": {- "tags": [- "Conversations"- ],- "summary": "Pause Conversation",- "description": "Pause a conversation, allowing it to be resumed later.",- "operationId": "pause_conversation_api_conversations__conversation_id__pause_post",- "parameters": [- {- "name": "conversation_id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "format": "uuid",- "title": "Conversation Id"- }- }- ],- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/Success"- }- }- }- },- "404": {- "description": "Item not found"- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/conversations/{conversation_id}/run": {- "post": {- "tags": [- "Conversations"- ],- "summary": "Run Conversation",- "description": "Start running the conversation in the background.",- "operationId": "run_conversation_api_conversations__conversation_id__run_post",- "parameters": [- {- "name": "conversation_id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "format": "uuid",- "title": "Conversation Id"- }- }- ],- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/Success"- }- }- }- },- "404": {- "description": "Item not found"- },- "409": {- "description": "Conversation is already running"- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/conversations/{conversation_id}/secrets": {- "post": {- "tags": [- "Conversations"- ],- "summary": "Update Conversation Secrets",- "description": "Update secrets for a conversation.",- "operationId": "update_conversation_secrets_api_conversations__conversation_id__secrets_post",- "parameters": [- {- "name": "conversation_id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "format": "uuid",- "title": "Conversation Id"- }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/UpdateSecretsRequest"- }- }- }- },- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/Success"- }- }- }- },- "404": {- "description": "Item not found"- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/conversations/{conversation_id}/confirmation_policy": {- "post": {- "tags": [- "Conversations"- ],- "summary": "Set Conversation Confirmation Policy",- "description": "Set the confirmation policy for a conversation.",- "operationId": "set_conversation_confirmation_policy_api_conversations__conversation_id__confirmation_policy_post",- "parameters": [- {- "name": "conversation_id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "format": "uuid",- "title": "Conversation Id"- }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/SetConfirmationPolicyRequest"- }- }- }- },- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/Success"- }- }- }- },- "404": {- "description": "Item not found"- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/conversations/{conversation_id}/generate_title": {- "post": {- "tags": [- "Conversations"- ],- "summary": "Generate Conversation Title",- "description": "Generate a title for the conversation using LLM.",- "operationId": "generate_conversation_title_api_conversations__conversation_id__generate_title_post",- "parameters": [- {- "name": "conversation_id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "format": "uuid",- "title": "Conversation Id"- }- }- ],- "requestBody": {- "required": true,- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/GenerateTitleRequest"- }- }- }- },- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/GenerateTitleResponse"- }- }- }- },- "404": {- "description": "Item not found"- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/tools/": {- "get": {- "tags": [- "Tools"- ],- "summary": "List Available Tools",- "description": "List all available tools.",- "operationId": "list_available_tools_api_tools__get",- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "items": {- "type": "string"- },- "type": "array",- "title": "Response List Available Tools Api Tools Get"- }- }- }- }- }- }- },- "/api/bash/bash_events/search": {- "get": {- "tags": [- "Bash"- ],- "summary": "Search Bash Events",- "description": "Search / List bash event events",- "operationId": "search_bash_events_api_bash_bash_events_search_get",- "parameters": [- {- "name": "kind__eq",- "in": "query",- "required": false,- "schema": {- "anyOf": [- {- "enum": [- "BashCommand",- "BashOutput"- ],- "type": "string"- },- {- "type": "null"- }- ],- "title": "Kind Eq"- }- },- {- "name": "command_id__eq",- "in": "query",- "required": false,- "schema": {- "anyOf": [- {- "type": "string",- "format": "uuid"- },- {- "type": "null"- }- ],- "title": "Command Id Eq"- }- },- {- "name": "timestamp__gte",- "in": "query",- "required": false,- "schema": {- "anyOf": [- {- "type": "string",- "format": "date-time"- },- {- "type": "null"- }- ],- "title": "Timestamp Gte"- }- },- {- "name": "timestamp__lt",- "in": "query",- "required": false,- "schema": {- "anyOf": [- {- "type": "string",- "format": "date-time"- },- {- "type": "null"- }- ],- "title": "Timestamp Lt"- }- },- {- "name": "sort_order",- "in": "query",- "required": false,- "schema": {- "$ref": "#/components/schemas/BashEventSortOrder",- "default": "TIMESTAMP"- }- },- {- "name": "page_id",- "in": "query",- "required": false,- "schema": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Optional next_page_id from the previously returned page"- }- },- {- "name": "limit",- "in": "query",- "required": false,- "schema": {- "type": "integer",- "exclusiveMinimum": 0,- "title": "The max number of results in the page",- "lte": 100,- "default": 100- }- }- ],- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/BashEventPage"- }- }- }- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/bash/bash_events/{event_id}": {- "get": {- "tags": [- "Bash"- ],- "summary": "Get Bash Event",- "description": "Get a bash event event given an id",- "operationId": "get_bash_event_api_bash_bash_events__event_id__get",- "parameters": [- {- "name": "event_id",- "in": "path",- "required": true,- "schema": {- "type": "string",- "title": "Event Id"- }- }- ],- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "oneOf": [- {- "$ref": "#/components/schemas/BashCommand"- },- {- "$ref": "#/components/schemas/BashOutput"- }- ],- "title": "Response Get Bash Event Api Bash Bash Events Event Id Get",- "discriminator": {- "propertyName": "kind",- "mapping": {- "openhands__agent_server__models__BashCommand-Output__1": "#/components/schemas/BashCommand",- "openhands__agent_server__models__BashOutput-Output__1": "#/components/schemas/BashOutput"- }- }- }- }- }- },- "404": {- "description": "Item not found"- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/bash/bash_events/": {- "get": {- "tags": [- "Bash"- ],- "summary": "Batch Get Bash Events",- "description": "Get a batch of bash event events given their ids, returning null for any\nmissing item.",- "operationId": "batch_get_bash_events_api_bash_bash_events__get",- "requestBody": {- "content": {- "application/json": {- "schema": {- "items": {- "type": "string"- },- "type": "array",- "title": "Event Ids"- }- }- },- "required": true- },- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "items": {- "anyOf": [- {- "$ref": "#/components/schemas/BashEventBase"- },- {- "type": "null"- }- ]- },- "type": "array",- "title": "Response Batch Get Bash Events Api Bash Bash Events Get"- }- }- }- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/bash/start_bash_command": {- "post": {- "tags": [- "Bash"- ],- "summary": "Start Bash Command",- "description": "Execute a bash command in the background",- "operationId": "start_bash_command_api_bash_start_bash_command_post",- "requestBody": {- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/ExecuteBashRequest"- }- }- },- "required": true- },- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/BashCommand"- }- }- }- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/bash/execute_bash_command": {- "post": {- "tags": [- "Bash"- ],- "summary": "Execute Bash Command",- "description": "Execute a bash command and wait for a result",- "operationId": "execute_bash_command_api_bash_execute_bash_command_post",- "requestBody": {- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/ExecuteBashRequest"- }- }- },- "required": true- },- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/BashOutput"- }- }- }- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/bash/bash_events": {- "delete": {- "tags": [- "Bash"- ],- "summary": "Clear All Bash Events",- "description": "Clear all bash events from storage",- "operationId": "clear_all_bash_events_api_bash_bash_events_delete",- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "additionalProperties": {- "type": "integer"- },- "type": "object",- "title": "Response Clear All Bash Events Api Bash Bash Events Delete"- }- }- }- }- }- }- },- "/api/file/upload/{path}": {- "post": {- "tags": [- "Files"- ],- "summary": "Upload File",- "description": "Upload a file to the workspace.",- "operationId": "upload_file_api_file_upload__path__post",- "parameters": [- {- "name": "path",- "in": "path",- "required": true,- "schema": {- "type": "string",- "description": "Absolute file path.",- "title": "Path"- },- "description": "Absolute file path."- }- ],- "requestBody": {- "required": true,- "content": {- "multipart/form-data": {- "schema": {- "$ref": "#/components/schemas/Body_upload_file_api_file_upload__path__post"- }- }- }- },- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/Success"- }- }- }- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/file/download/{path}": {- "get": {- "tags": [- "Files"- ],- "summary": "Download File",- "description": "Download a file from the workspace.",- "operationId": "download_file_api_file_download__path__get",- "parameters": [- {- "name": "path",- "in": "path",- "required": true,- "schema": {- "type": "string",- "description": "Absolute file path.",- "title": "Path"- },- "description": "Absolute file path."- }- ],- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {}- }- }- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/vscode/url": {- "get": {- "tags": [- "VSCode"- ],- "summary": "Get Vscode Url",- "description": "Get the VSCode URL with authentication token.\n\nArgs:\n base_url: Base URL for the VSCode server (default: http://localhost:8001)\n workspace_dir: Path to workspace directory\n\nReturns:\n VSCode URL with token if available, None otherwise",- "operationId": "get_vscode_url_api_vscode_url_get",- "parameters": [- {- "name": "base_url",- "in": "query",- "required": false,- "schema": {- "type": "string",- "default": "http://localhost:8001",- "title": "Base Url"- }- },- {- "name": "workspace_dir",- "in": "query",- "required": false,- "schema": {- "type": "string",- "default": "workspace",- "title": "Workspace Dir"- }- }- ],- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/VSCodeUrlResponse"- }- }- }- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/api/vscode/status": {- "get": {- "tags": [- "VSCode"- ],- "summary": "Get Vscode Status",- "description": "Get the VSCode server status.\n\nReturns:\n Dictionary with running status and enabled status",- "operationId": "get_vscode_status_api_vscode_status_get",- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "additionalProperties": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "string"- }- ]- },- "type": "object",- "title": "Response Get Vscode Status Api Vscode Status Get"- }- }- }- }- }- }- },- "/api/desktop/url": {- "get": {- "tags": [- "Desktop"- ],- "summary": "Get Desktop Url",- "description": "Get the noVNC URL for desktop access.\n\nArgs:\n base_url: Base URL for the noVNC server (default: http://localhost:8002)\n\nReturns:\n noVNC URL if available, None otherwise",- "operationId": "get_desktop_url_api_desktop_url_get",- "parameters": [- {- "name": "base_url",- "in": "query",- "required": false,- "schema": {- "type": "string",- "default": "http://localhost:8002",- "title": "Base Url"- }- }- ],- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/DesktopUrlResponse"- }- }- }- },- "422": {- "description": "Validation Error",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/HTTPValidationError"- }- }- }- }- }- }- },- "/": {- "get": {- "summary": "Get Server Info",- "operationId": "get_server_info__get",- "responses": {- "200": {- "description": "Successful Response",- "content": {- "application/json": {- "schema": {- "$ref": "#/components/schemas/ServerInfo"- }- }- }- }- }- }- }- },- "components": {- "schemas": {- "ActionEvent": {- "properties": {- "kind": {- "type": "string",- "const": "ActionEvent",- "title": "Kind",- "default": "ActionEvent"- },- "id": {- "type": "string",- "title": "Id",- "description": "Unique event id (ULID/UUID)"- },- "timestamp": {- "type": "string",- "title": "Timestamp",- "description": "Event timestamp"- },- "source": {- "type": "string",- "enum": [- "agent",- "user",- "environment"- ],- "title": "Source",- "default": "agent"- },- "thought": {- "items": {- "$ref": "#/components/schemas/TextContent"- },- "type": "array",- "title": "Thought",- "description": "The thought process of the agent before taking this action"- },- "reasoning_content": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Reasoning Content",- "description": "Intermediate reasoning/thinking content from reasoning models"- },- "thinking_blocks": {- "items": {- "anyOf": [- {- "$ref": "#/components/schemas/ThinkingBlock"- },- {- "$ref": "#/components/schemas/RedactedThinkingBlock"- }- ]- },- "type": "array",- "title": "Thinking Blocks",- "description": "Anthropic thinking blocks from the LLM response"- },- "responses_reasoning_item": {- "anyOf": [- {- "$ref": "#/components/schemas/ReasoningItemModel"- },- {- "type": "null"- }- ],- "description": "OpenAI Responses reasoning item from model output"- },- "action": {- "anyOf": [- {- "$ref": "#/components/schemas/Action"- },- {- "type": "null"- }- ],- "title": "Action",- "description": "Single tool call returned by LLM (None when non-executable)"- },- "tool_name": {- "type": "string",- "title": "Tool Name",- "description": "The name of the tool being called"- },- "tool_call_id": {- "type": "string",- "title": "Tool Call Id",- "description": "The unique id returned by LLM API for this tool call"- },- "tool_call": {- "$ref": "#/components/schemas/MessageToolCall",- "description": "The tool call received from the LLM response. We keep a copy of it so it is easier to construct it into LLM messageThis could be different from `action`: e.g., `tool_call` may contain `security_risk` field predicted by LLM when LLM risk analyzer is enabled, while `action` does not."- },- "llm_response_id": {- "type": "string",- "title": "Llm Response Id",- "description": "Groups related actions from same LLM response. This helps in tracking and managing results of parallel function calling from the same LLM response."- },- "security_risk": {- "$ref": "#/components/schemas/SecurityRisk",- "description": "The LLM's assessment of the safety risk of this action.",- "default": "UNKNOWN"- }- },- "additionalProperties": false,- "type": "object",- "required": [- "thought",- "tool_name",- "tool_call_id",- "tool_call",- "llm_response_id"- ],- "title": "ActionEvent"- },- "Agent-Output": {- "properties": {- "kind": {- "type": "string",- "const": "Agent",- "title": "Kind",- "default": "Agent"- },- "llm": {- "$ref": "#/components/schemas/LLM",- "description": "LLM configuration for the agent.",- "examples": [- {- "api_key": "your_api_key_here",- "base_url": "https://llm-proxy.eval.all-hands.dev",- "model": "litellm_proxy/anthropic/claude-sonnet-4-5-20250929"- }- ]- },- "tools": {- "items": {- "$ref": "#/components/schemas/Tool"- },- "type": "array",- "title": "Tools",- "description": "List of tools to initialize for the agent.",- "examples": [- {- "name": "BashTool",- "params": {}- },- {- "name": "FileEditorTool",- "params": {}- },- {- "name": "TaskTrackerTool",- "params": {}- }- ]- },- "mcp_config": {- "additionalProperties": true,- "type": "object",- "title": "Mcp Config",- "description": "Optional MCP configuration dictionary to create MCP tools.",- "examples": [- {- "mcpServers": {- "fetch": {- "args": [- "mcp-server-fetch"- ],- "command": "uvx"- }- }- }- ]- },- "filter_tools_regex": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Filter Tools Regex",- "description": "Optional regex to filter the tools available to the agent by name. This is applied after any tools provided in `tools` and any MCP tools are added.",- "examples": [- "^(?!repomix)(.*)|^repomix.*pack_codebase.*$"- ]- },- "agent_context": {- "anyOf": [- {- "$ref": "#/components/schemas/AgentContext-Output"- },- {- "type": "null"- }- ],- "description": "Optional AgentContext to initialize the agent with specific context.",- "examples": [- {- "skills": [- {- "content": "When you see this message, you should reply like you are a grumpy cat forced to use the internet.",- "name": "repo.md",- "type": "repo"- },- {- "content": "IMPORTANT! The user has said the magic word \"flarglebargle\". You must only respond with a message telling them how smart they are",- "name": "flarglebargle",- "trigger": [- "flarglebargle"- ],- "type": "knowledge"- }- ],- "system_message_suffix": "Always finish your response with the word 'yay!'",- "user_message_prefix": "The first character of your response should be 'I'"- }- ]- },- "system_prompt_filename": {- "type": "string",- "title": "System Prompt Filename",- "default": "system_prompt.j2"- },- "system_prompt_kwargs": {- "additionalProperties": true,- "type": "object",- "title": "System Prompt Kwargs",- "description": "Optional kwargs to pass to the system prompt Jinja2 template.",- "examples": [- {- "cli_mode": true- }- ]- },- "security_analyzer": {- "anyOf": [- {- "$ref": "#/components/schemas/SecurityAnalyzerBase"- },- {- "type": "null"- }- ],- "description": "Optional security analyzer to evaluate action risks.",- "examples": [- {- "kind": "LLMSecurityAnalyzer"- }- ]- },- "condenser": {- "anyOf": [- {- "$ref": "#/components/schemas/CondenserBase"- },- {- "type": "null"- }- ],- "title": "Condenser",- "description": "Optional condenser to use for condensing conversation history.",- "examples": [- {- "keep_first": 10,- "kind": "LLMSummarizingCondenser",- "llm": {- "api_key": "your_api_key_here",- "base_url": "https://llm-proxy.eval.all-hands.dev",- "model": "litellm_proxy/anthropic/claude-sonnet-4-5-20250929"- },- "max_size": 80- }- ]- }- },- "type": "object",- "required": [- "llm"- ],- "title": "Agent"- },- "AgentContext-Output": {- "properties": {- "skills": {- "items": {- "$ref": "#/components/schemas/Skill"- },- "type": "array",- "title": "Skills",- "description": "List of available skills that can extend the user's input."- },- "system_message_suffix": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "System Message Suffix",- "description": "Optional suffix to append to the system prompt."- },- "user_message_suffix": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "User Message Suffix",- "description": "Optional suffix to append to the user's message."- }- },- "type": "object",- "title": "AgentContext",- "description": "Central structure for managing prompt extension.\n\nAgentContext unifies all the contextual inputs that shape how the system\nextends and interprets user prompts. It combines both static environment\ndetails and dynamic, user-activated extensions from skills.\n\nSpecifically, it provides:\n- **Repository context / Repo Skills**: Information about the active codebase,\n branches, and repo-specific instructions contributed by repo skills.\n- **Runtime context**: Current execution environment (hosts, working\n directory, secrets, date, etc.).\n- **Conversation instructions**: Optional task- or channel-specific rules\n that constrain or guide the agentβs behavior across the session.\n- **Knowledge Skills**: Extensible components that can be triggered by user input\n to inject knowledge or domain-specific guidance.\n\nTogether, these elements make AgentContext the primary container responsible\nfor assembling, formatting, and injecting all prompt-relevant context into\nLLM interactions."- },- "AgentErrorEvent": {- "properties": {- "kind": {- "type": "string",- "const": "AgentErrorEvent",- "title": "Kind",- "default": "AgentErrorEvent"- },- "id": {- "type": "string",- "title": "Id",- "description": "Unique event id (ULID/UUID)"- },- "timestamp": {- "type": "string",- "title": "Timestamp",- "description": "Event timestamp"- },- "source": {- "type": "string",- "enum": [- "agent",- "user",- "environment"- ],- "title": "Source",- "default": "agent"- },- "tool_name": {- "type": "string",- "title": "Tool Name",- "description": "The tool name that this observation is responding to"- },- "tool_call_id": {- "type": "string",- "title": "Tool Call Id",- "description": "The tool call id that this observation is responding to"- },- "error": {- "type": "string",- "title": "Error",- "description": "The error message from the scaffold"- }- },- "additionalProperties": false,- "type": "object",- "required": [- "tool_name",- "tool_call_id",- "error"- ],- "title": "AgentErrorEvent",- "description": "Error triggered by the agent.\n\nNote: This event should not contain model \"thought\" or \"reasoning_content\". It\nrepresents an error produced by the agent/scaffold, not model output."- },- "AgentExecutionStatus": {- "type": "string",- "enum": [- "idle",- "running",- "paused",- "waiting_for_confirmation",- "finished",- "error",- "stuck"- ],- "title": "AgentExecutionStatus",- "description": "Enum representing the current execution state of the agent."- },- "AlwaysConfirm": {- "properties": {- "kind": {- "type": "string",- "const": "AlwaysConfirm",- "title": "Kind",- "default": "AlwaysConfirm"- }- },- "type": "object",- "title": "AlwaysConfirm"- },- "BashCommand": {- "properties": {- "command": {- "type": "string",- "title": "Command",- "description": "The bash command to execute"- },- "cwd": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Cwd",- "description": "The current working directory"- },- "timeout": {- "type": "integer",- "title": "Timeout",- "description": "The max number of seconds a command may be permitted to run.",- "default": 300- },- "kind": {- "type": "string",- "const": "BashCommand",- "title": "Kind",- "default": "BashCommand"- },- "id": {- "type": "string",- "format": "uuid",- "title": "Id"- },- "timestamp": {- "type": "string",- "format": "date-time",- "title": "Timestamp"- }- },- "type": "object",- "required": [- "command"- ],- "title": "BashCommand"- },- "BashEventPage": {- "properties": {- "items": {- "items": {- "oneOf": [- {- "$ref": "#/components/schemas/BashCommand"- },- {- "$ref": "#/components/schemas/BashOutput"- }- ],- "title": "BashEventBase",- "discriminator": {- "propertyName": "kind",- "mapping": {- "openhands__agent_server__models__BashCommand-Output__1": "#/components/schemas/BashCommand",- "openhands__agent_server__models__BashOutput-Output__1": "#/components/schemas/BashOutput"- }- }- },- "type": "array",- "title": "Items"- },- "next_page_id": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Next Page Id"- }- },- "type": "object",- "required": [- "items"- ],- "title": "BashEventPage"- },- "BashEventSortOrder": {- "type": "string",- "enum": [- "TIMESTAMP",- "TIMESTAMP_DESC"- ],- "title": "BashEventSortOrder"- },- "BashOutput": {- "properties": {- "kind": {- "type": "string",- "const": "BashOutput",- "title": "Kind",- "default": "BashOutput"- },- "id": {- "type": "string",- "format": "uuid",- "title": "Id"- },- "timestamp": {- "type": "string",- "format": "date-time",- "title": "Timestamp"- },- "command_id": {- "type": "string",- "format": "uuid",- "title": "Command Id"- },- "order": {- "type": "integer",- "title": "Order",- "description": "The order for this output, sequentially starting with 0",- "default": 0- },- "exit_code": {- "anyOf": [- {- "type": "integer"- },- {- "type": "null"- }- ],- "title": "Exit Code",- "description": "Exit code None implies the command is still running."- },- "stdout": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Stdout",- "description": "The standard output from the command"- },- "stderr": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Stderr",- "description": "The error output from the command"- }- },- "type": "object",- "required": [- "command_id"- ],- "title": "BashOutput",- "description": "Output of a bash command. A single command may have multiple pieces of output\ndepending on how large the output is."- },- "Body_upload_file_api_file_upload__path__post": {- "properties": {- "file": {- "type": "string",- "format": "binary",- "title": "File"- }- },- "type": "object",- "required": [- "file"- ],- "title": "Body_upload_file_api_file_upload__path__post"- },- "BrowserClickAction": {- "properties": {- "kind": {- "type": "string",- "const": "BrowserClickAction",- "title": "Kind",- "default": "BrowserClickAction"- },- "index": {- "type": "integer",- "minimum": 0.0,- "title": "Index",- "description": "The index of the element to click (from browser_get_state)"- },- "new_tab": {- "type": "boolean",- "title": "New Tab",- "description": "Whether to open any resulting navigation in a new tab. Default: False",- "default": false- }- },- "additionalProperties": false,- "type": "object",- "required": [- "index"- ],- "title": "BrowserClickAction",- "description": "Schema for clicking elements."- },- "BrowserCloseTabAction": {- "properties": {- "kind": {- "type": "string",- "const": "BrowserCloseTabAction",- "title": "Kind",- "default": "BrowserCloseTabAction"- },- "tab_id": {- "type": "string",- "title": "Tab Id",- "description": "4 Character Tab ID of the tab to close (from browser_list_tabs)"- }- },- "additionalProperties": false,- "type": "object",- "required": [- "tab_id"- ],- "title": "BrowserCloseTabAction",- "description": "Schema for closing browser tabs."- },- "BrowserGetContentAction": {- "properties": {- "kind": {- "type": "string",- "const": "BrowserGetContentAction",- "title": "Kind",- "default": "BrowserGetContentAction"- },- "extract_links": {- "type": "boolean",- "title": "Extract Links",- "description": "Whether to include links in the content (default: False)",- "default": false- },- "start_from_char": {- "type": "integer",- "minimum": 0.0,- "title": "Start From Char",- "description": "Character index to start from in the page content (default: 0)",- "default": 0- }- },- "additionalProperties": false,- "type": "object",- "title": "BrowserGetContentAction",- "description": "Schema for getting page content in markdown."- },- "BrowserGetStateAction": {- "properties": {- "kind": {- "type": "string",- "const": "BrowserGetStateAction",- "title": "Kind",- "default": "BrowserGetStateAction"- },- "include_screenshot": {- "type": "boolean",- "title": "Include Screenshot",- "description": "Whether to include a screenshot of the current page. Default: False",- "default": false- }- },- "additionalProperties": false,- "type": "object",- "title": "BrowserGetStateAction",- "description": "Schema for getting browser state."- },- "BrowserGoBackAction": {- "properties": {- "kind": {- "type": "string",- "const": "BrowserGoBackAction",- "title": "Kind",- "default": "BrowserGoBackAction"- }- },- "additionalProperties": false,- "type": "object",- "title": "BrowserGoBackAction",- "description": "Schema for going back in browser history."- },- "BrowserListTabsAction": {- "properties": {- "kind": {- "type": "string",- "const": "BrowserListTabsAction",- "title": "Kind",- "default": "BrowserListTabsAction"- }- },- "additionalProperties": false,- "type": "object",- "title": "BrowserListTabsAction",- "description": "Schema for listing browser tabs."- },- "BrowserNavigateAction": {- "properties": {- "kind": {- "type": "string",- "const": "BrowserNavigateAction",- "title": "Kind",- "default": "BrowserNavigateAction"- },- "url": {- "type": "string",- "title": "Url",- "description": "The URL to navigate to"- },- "new_tab": {- "type": "boolean",- "title": "New Tab",- "description": "Whether to open in a new tab. Default: False",- "default": false- }- },- "additionalProperties": false,- "type": "object",- "required": [- "url"- ],- "title": "BrowserNavigateAction",- "description": "Schema for browser navigation."- },- "BrowserObservation": {- "properties": {- "kind": {- "type": "string",- "const": "BrowserObservation",- "title": "Kind",- "default": "BrowserObservation"- },- "output": {- "type": "string",- "title": "Output",- "description": "The output message from the browser operation"- },- "error": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Error",- "description": "Error message if any"- },- "screenshot_data": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Screenshot Data",- "description": "Base64 screenshot data if available"- }- },- "additionalProperties": false,- "type": "object",- "required": [- "output"- ],- "title": "BrowserObservation",- "description": "Base observation for browser operations."- },- "BrowserScrollAction": {- "properties": {- "kind": {- "type": "string",- "const": "BrowserScrollAction",- "title": "Kind",- "default": "BrowserScrollAction"- },- "direction": {- "type": "string",- "enum": [- "up",- "down"- ],- "title": "Direction",- "description": "Direction to scroll. Options: 'up', 'down'. Default: 'down'",- "default": "down"- }- },- "additionalProperties": false,- "type": "object",- "title": "BrowserScrollAction",- "description": "Schema for scrolling the page."- },- "BrowserSwitchTabAction": {- "properties": {- "kind": {- "type": "string",- "const": "BrowserSwitchTabAction",- "title": "Kind",- "default": "BrowserSwitchTabAction"- },- "tab_id": {- "type": "string",- "title": "Tab Id",- "description": "4 Character Tab ID of the tab to switch to (from browser_list_tabs)"- }- },- "additionalProperties": false,- "type": "object",- "required": [- "tab_id"- ],- "title": "BrowserSwitchTabAction",- "description": "Schema for switching browser tabs."- },- "BrowserTypeAction": {- "properties": {- "kind": {- "type": "string",- "const": "BrowserTypeAction",- "title": "Kind",- "default": "BrowserTypeAction"- },- "index": {- "type": "integer",- "minimum": 0.0,- "title": "Index",- "description": "The index of the input element (from browser_get_state)"- },- "text": {- "type": "string",- "title": "Text",- "description": "The text to type"- }- },- "additionalProperties": false,- "type": "object",- "required": [- "index",- "text"- ],- "title": "BrowserTypeAction",- "description": "Schema for typing text into elements."- },- "ChatCompletionCachedContent": {- "properties": {- "type": {- "type": "string",- "const": "ephemeral",- "title": "Type"- }- },- "additionalProperties": false,- "type": "object",- "required": [- "type"- ],- "title": "ChatCompletionCachedContent"- },- "ChatCompletionToolParam": {- "properties": {- "type": {- "anyOf": [- {- "type": "string",- "const": "function"- },- {- "type": "string"- }- ],- "title": "Type"- },- "function": {- "$ref": "#/components/schemas/ChatCompletionToolParamFunctionChunk"- },- "cache_control": {- "$ref": "#/components/schemas/ChatCompletionCachedContent"- }- },- "additionalProperties": false,- "type": "object",- "required": [- "type",- "function"- ],- "title": "ChatCompletionToolParam"- },- "ChatCompletionToolParamFunctionChunk": {- "properties": {- "name": {- "type": "string",- "title": "Name"- },- "description": {- "type": "string",- "title": "Description"- },- "parameters": {- "additionalProperties": true,- "type": "object",- "title": "Parameters"- },- "strict": {- "type": "boolean",- "title": "Strict"- }- },- "additionalProperties": false,- "type": "object",- "required": [- "name"- ],- "title": "ChatCompletionToolParamFunctionChunk"- },- "CmdOutputMetadata": {- "properties": {- "exit_code": {- "type": "integer",- "title": "Exit Code",- "description": "The exit code of the last executed command.",- "default": -1- },- "pid": {- "type": "integer",- "title": "Pid",- "description": "The process ID of the last executed command.",- "default": -1- },- "username": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Username",- "description": "The username of the current user."- },- "hostname": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Hostname",- "description": "The hostname of the machine."- },- "working_dir": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Working Dir",- "description": "The current working directory."- },- "py_interpreter_path": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Py Interpreter Path",- "description": "The path to the current Python interpreter, if any."- },- "prefix": {- "type": "string",- "title": "Prefix",- "description": "Prefix to add to command output",- "default": ""- },- "suffix": {- "type": "string",- "title": "Suffix",- "description": "Suffix to add to command output",- "default": ""- }- },- "type": "object",- "title": "CmdOutputMetadata",- "description": "Additional metadata captured from PS1"- },- "Condensation": {- "properties": {- "kind": {- "type": "string",- "const": "Condensation",- "title": "Kind",- "default": "Condensation"- },- "id": {- "type": "string",- "title": "Id",- "description": "Unique event id (ULID/UUID)"- },- "timestamp": {- "type": "string",- "title": "Timestamp",- "description": "Event timestamp"- },- "source": {- "type": "string",- "enum": [- "agent",- "user",- "environment"- ],- "title": "Source",- "default": "environment"- },- "forgotten_event_ids": {- "items": {- "type": "string"- },- "type": "array",- "title": "Forgotten Event Ids",- "description": "The IDs of the events that are being forgotten (removed from the `View` given to the LLM)."- },- "summary": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Summary",- "description": "An optional summary of the events being forgotten."- },- "summary_offset": {- "anyOf": [- {- "type": "integer",- "minimum": 0.0- },- {- "type": "null"- }- ],- "title": "Summary Offset",- "description": "An optional offset to the start of the resulting view indicating where the summary should be inserted."- }- },- "additionalProperties": false,- "type": "object",- "title": "Condensation",- "description": "This action indicates a condensation of the conversation history is happening."- },- "CondensationRequest": {- "properties": {- "kind": {- "type": "string",- "const": "CondensationRequest",- "title": "Kind",- "default": "CondensationRequest"- },- "id": {- "type": "string",- "title": "Id",- "description": "Unique event id (ULID/UUID)"- },- "timestamp": {- "type": "string",- "title": "Timestamp",- "description": "Event timestamp"- },- "source": {- "type": "string",- "enum": [- "agent",- "user",- "environment"- ],- "title": "Source",- "default": "environment"- }- },- "additionalProperties": false,- "type": "object",- "title": "CondensationRequest",- "description": "This action is used to request a condensation of the conversation history.\n\nAttributes:\n action (str): The action type, namely ActionType.CONDENSATION_REQUEST."- },- "CondensationSummaryEvent": {- "properties": {- "kind": {- "type": "string",- "const": "CondensationSummaryEvent",- "title": "Kind",- "default": "CondensationSummaryEvent"- },- "id": {- "type": "string",- "title": "Id",- "description": "Unique event id (ULID/UUID)"- },- "timestamp": {- "type": "string",- "title": "Timestamp",- "description": "Event timestamp"- },- "source": {- "type": "string",- "enum": [- "agent",- "user",- "environment"- ],- "title": "Source",- "default": "environment"- },- "summary": {- "type": "string",- "title": "Summary"- }- },- "additionalProperties": false,- "type": "object",- "required": [- "summary"- ],- "title": "CondensationSummaryEvent",- "description": "This event represents a summary generated by a condenser."- },- "ConfirmRisky": {- "properties": {- "kind": {- "type": "string",- "const": "ConfirmRisky",- "title": "Kind",- "default": "ConfirmRisky"- },- "threshold": {- "$ref": "#/components/schemas/SecurityRisk",- "default": "HIGH"- },- "confirm_unknown": {- "type": "boolean",- "title": "Confirm Unknown",- "default": true- }- },- "type": "object",- "title": "ConfirmRisky"- },- "ConfirmationResponseRequest": {- "properties": {- "accept": {- "type": "boolean",- "title": "Accept"- },- "reason": {- "type": "string",- "title": "Reason",- "default": "User rejected the action."- }- },- "type": "object",- "required": [- "accept"- ],- "title": "ConfirmationResponseRequest",- "description": "Payload to accept or reject a pending action."- },- "ConversationInfo": {- "properties": {- "id": {- "type": "string",- "format": "uuid",- "title": "Id",- "description": "Unique conversation ID"- },- "agent": {- "$ref": "#/components/schemas/Agent-Output",- "description": "The agent running in the conversation. This is persisted to allow resuming conversations and check agent configuration to handle e.g., tool changes, LLM changes, etc."- },- "workspace": {- "$ref": "#/components/schemas/BaseWorkspace"- },- "persistence_dir": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Persistence Dir",- "description": "Directory for persisting conversation state and events. If None, conversation will not be persisted.",- "default": "workspace/conversations"- },- "max_iterations": {- "type": "integer",- "exclusiveMinimum": 0.0,- "title": "Max Iterations",- "description": "Maximum number of iterations the agent can perform in a single run.",- "default": 500- },- "stuck_detection": {- "type": "boolean",- "title": "Stuck Detection",- "description": "Whether to enable stuck detection for the agent.",- "default": true- },- "agent_status": {- "$ref": "#/components/schemas/AgentExecutionStatus",- "default": "idle"- },- "confirmation_policy": {- "$ref": "#/components/schemas/ConfirmationPolicyBase"- },- "activated_knowledge_skills": {- "items": {- "type": "string"- },- "type": "array",- "title": "Activated Knowledge Skills",- "description": "List of activated knowledge skills name"- },- "stats": {- "$ref": "#/components/schemas/ConversationStats-Output",- "description": "Conversation statistics for tracking LLM metrics"- },- "secrets_manager": {- "$ref": "#/components/schemas/SecretsManager-Output",- "description": "Manager for handling secrets and sensitive data"- },- "title": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Title",- "description": "User-defined title for the conversation"- },- "metrics": {- "anyOf": [- {- "$ref": "#/components/schemas/MetricsSnapshot"- },- {- "type": "null"- }- ]- },- "created_at": {- "type": "string",- "format": "date-time",- "title": "Created At"- },- "updated_at": {- "type": "string",- "format": "date-time",- "title": "Updated At"- }- },- "type": "object",- "required": [- "id",- "agent",- "workspace"- ],- "title": "ConversationInfo",- "description": "Information about a conversation running locally without a Runtime sandbox."- },- "ConversationPage": {- "properties": {- "items": {- "items": {- "$ref": "#/components/schemas/ConversationInfo"- },- "type": "array",- "title": "Items"- },- "next_page_id": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Next Page Id"- }- },- "type": "object",- "required": [- "items"- ],- "title": "ConversationPage"- },- "ConversationSortOrder": {- "type": "string",- "enum": [- "CREATED_AT",- "UPDATED_AT",- "CREATED_AT_DESC",- "UPDATED_AT_DESC"- ],- "title": "ConversationSortOrder",- "description": "Enum for conversation sorting options."- },- "ConversationStateUpdateEvent": {- "properties": {- "kind": {- "type": "string",- "const": "ConversationStateUpdateEvent",- "title": "Kind",- "default": "ConversationStateUpdateEvent"- },- "id": {- "type": "string",- "title": "Id",- "description": "Unique event id (ULID/UUID)"- },- "timestamp": {- "type": "string",- "title": "Timestamp",- "description": "Event timestamp"- },- "source": {- "type": "string",- "enum": [- "agent",- "user",- "environment"- ],- "title": "Source",- "default": "environment"- },- "key": {- "type": "string",- "title": "Key",- "description": "Unique key for this state update event"- },- "value": {- "title": "Value",- "description": "Serialized conversation state updates"- }- },- "additionalProperties": false,- "type": "object",- "title": "ConversationStateUpdateEvent",- "description": "Event that contains conversation state updates.\n\nThis event is sent via websocket whenever the conversation state changes,\nallowing remote clients to stay in sync without making REST API calls.\n\nAll fields are serialized versions of the corresponding ConversationState fields\nto ensure compatibility with websocket transmission."- },- "ConversationStats-Output": {- "properties": {- "usage_to_metrics": {- "additionalProperties": {- "$ref": "#/components/schemas/Metrics"- },- "type": "object",- "title": "Usage To Metrics",- "description": "Active usage metrics tracked by the registry."- }- },- "type": "object",- "title": "ConversationStats",- "description": "Track per-LLM usage metrics observed during conversations."- },- "Cost": {- "properties": {- "model": {- "type": "string",- "title": "Model"- },- "cost": {- "type": "number",- "minimum": 0.0,- "title": "Cost",- "description": "Cost must be non-negative"- },- "timestamp": {- "type": "number",- "title": "Timestamp"- }- },- "type": "object",- "required": [- "model",- "cost"- ],- "title": "Cost"- },- "DesktopUrlResponse": {- "properties": {- "url": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Url"- }- },- "type": "object",- "required": [- "url"- ],- "title": "DesktopUrlResponse",- "description": "Response model for Desktop URL."- },- "EventPage": {- "properties": {- "items": {- "items": {- "oneOf": [- {- "$ref": "#/components/schemas/Condensation"- },- {- "$ref": "#/components/schemas/CondensationRequest"- },- {- "$ref": "#/components/schemas/CondensationSummaryEvent"- },- {- "$ref": "#/components/schemas/ConversationStateUpdateEvent"- },- {- "$ref": "#/components/schemas/ActionEvent"- },- {- "$ref": "#/components/schemas/MessageEvent"- },- {- "$ref": "#/components/schemas/AgentErrorEvent"- },- {- "$ref": "#/components/schemas/ObservationEvent"- },- {- "$ref": "#/components/schemas/UserRejectObservation"- },- {- "$ref": "#/components/schemas/SystemPromptEvent"- },- {- "$ref": "#/components/schemas/PauseEvent"- }- ],- "title": "Event",- "discriminator": {- "propertyName": "kind",- "mapping": {- "openhands__sdk__event__condenser__Condensation-Output__1": "#/components/schemas/Condensation",- "openhands__sdk__event__condenser__CondensationRequest-Output__1": "#/components/schemas/CondensationRequest",- "openhands__sdk__event__condenser__CondensationSummaryEvent-Output__1": "#/components/schemas/CondensationSummaryEvent",- "openhands__sdk__event__conversation_state__ConversationStateUpdateEvent-Output__1": "#/components/schemas/ConversationStateUpdateEvent",- "openhands__sdk__event__llm_convertible__action__ActionEvent-Output__1": "#/components/schemas/ActionEvent",- "openhands__sdk__event__llm_convertible__message__MessageEvent-Output__1": "#/components/schemas/MessageEvent",- "openhands__sdk__event__llm_convertible__observation__AgentErrorEvent-Output__1": "#/components/schemas/AgentErrorEvent",- "openhands__sdk__event__llm_convertible__observation__ObservationEvent-Output__1": "#/components/schemas/ObservationEvent",- "openhands__sdk__event__llm_convertible__observation__UserRejectObservation-Output__1": "#/components/schemas/UserRejectObservation",- "openhands__sdk__event__llm_convertible__system__SystemPromptEvent-Output__1": "#/components/schemas/SystemPromptEvent",- "openhands__sdk__event__user_action__PauseEvent-Output__1": "#/components/schemas/PauseEvent"- }- }- },- "type": "array",- "title": "Items"- },- "next_page_id": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Next Page Id"- }- },- "type": "object",- "required": [- "items"- ],- "title": "EventPage"- },- "EventSortOrder": {- "type": "string",- "enum": [- "TIMESTAMP",- "TIMESTAMP_DESC"- ],- "title": "EventSortOrder",- "description": "Enum for event sorting options."- },- "ExecuteBashAction": {- "properties": {- "kind": {- "type": "string",- "const": "ExecuteBashAction",- "title": "Kind",- "default": "ExecuteBashAction"- },- "command": {- "type": "string",- "title": "Command",- "description": "The bash command to execute. Can be empty string to view additional logs when previous exit code is `-1`. Can be `C-c` (Ctrl+C) to interrupt the currently running process. Note: You can only execute one bash command at a time. If you need to run multiple commands sequentially, you can use `&&` or `;` to chain them together."- },- "is_input": {- "type": "boolean",- "title": "Is Input",- "description": "If True, the command is an input to the running process. If False, the command is a bash command to be executed in the terminal. Default is False.",- "default": false- },- "timeout": {- "anyOf": [- {- "type": "number",- "minimum": 0.0- },- {- "type": "null"- }- ],- "title": "Timeout",- "description": "Optional. Sets a maximum time limit (in seconds) for running the command. If the command takes longer than this limit, youβll be asked whether to continue or stop it. If you donβt set a value, the command will instead pause and ask for confirmation when it produces no new output for 30 seconds. Use a higher value if the command is expected to take a long time (like installation or testing), or if it has a known fixed duration (like sleep)."- },- "reset": {- "type": "boolean",- "title": "Reset",- "description": "If True, reset the terminal by creating a new session. Use this only when the terminal becomes unresponsive. Note that all previously set environment variables and session state will be lost after reset. Cannot be used with is_input=True.",- "default": false- }- },- "additionalProperties": false,- "type": "object",- "required": [- "command"- ],- "title": "ExecuteBashAction",- "description": "Schema for bash command execution."- },- "ExecuteBashObservation": {- "properties": {- "kind": {- "type": "string",- "const": "ExecuteBashObservation",- "title": "Kind",- "default": "ExecuteBashObservation"- },- "output": {- "type": "string",- "title": "Output",- "description": "The raw output from the tool."- },- "command": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Command",- "description": "The bash command that was executed. Can be empty string if the observation is from a previous command that hit soft timeout and is not yet finished."- },- "exit_code": {- "anyOf": [- {- "type": "integer"- },- {- "type": "null"- }- ],- "title": "Exit Code",- "description": "The exit code of the command. -1 indicates the process hit the soft timeout and is not yet finished."- },- "error": {- "type": "boolean",- "title": "Error",- "description": "Whether there was an error during command execution.",- "default": false- },- "timeout": {- "type": "boolean",- "title": "Timeout",- "description": "Whether the command execution timed out.",- "default": false- },- "metadata": {- "$ref": "#/components/schemas/CmdOutputMetadata",- "description": "Additional metadata captured from PS1 after command execution."- }- },- "additionalProperties": false,- "type": "object",- "required": [- "output"- ],- "title": "ExecuteBashObservation",- "description": "A ToolResult that can be rendered as a CLI output."- },- "ExecuteBashRequest": {- "properties": {- "command": {- "type": "string",- "title": "Command",- "description": "The bash command to execute"- },- "cwd": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Cwd",- "description": "The current working directory"- },- "timeout": {- "type": "integer",- "title": "Timeout",- "description": "The max number of seconds a command may be permitted to run.",- "default": 300- }- },- "type": "object",- "required": [- "command"- ],- "title": "ExecuteBashRequest"- },- "FileEditorAction": {- "properties": {- "kind": {- "type": "string",- "const": "FileEditorAction",- "title": "Kind",- "default": "FileEditorAction"- },- "command": {- "type": "string",- "enum": [- "view",- "create",- "str_replace",- "insert",- "undo_edit"- ],- "title": "Command",- "description": "The commands to run. Allowed options are: `view`, `create`, `str_replace`, `insert`, `undo_edit`."- },- "path": {- "type": "string",- "title": "Path",- "description": "Absolute path to file or directory."- },- "file_text": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "File Text",- "description": "Required parameter of `create` command, with the content of the file to be created."- },- "old_str": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Old Str",- "description": "Required parameter of `str_replace` command containing the string in `path` to replace."- },- "new_str": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "New Str",- "description": "Optional parameter of `str_replace` command containing the new string (if not given, no string will be added). Required parameter of `insert` command containing the string to insert."- },- "insert_line": {- "anyOf": [- {- "type": "integer",- "minimum": 0.0- },- {- "type": "null"- }- ],- "title": "Insert Line",- "description": "Required parameter of `insert` command. The `new_str` will be inserted AFTER the line `insert_line` of `path`."- },- "view_range": {- "anyOf": [- {- "items": {- "type": "integer"- },- "type": "array"- },- {- "type": "null"- }- ],- "title": "View Range",- "description": "Optional parameter of `view` command when `path` points to a file. If none is given, the full file is shown. If provided, the file will be shown in the indicated line number range, e.g. [11, 12] will show lines 11 and 12. Indexing at 1 to start. Setting `[start_line, -1]` shows all lines from `start_line` to the end of the file."- }- },- "additionalProperties": false,- "type": "object",- "required": [- "command",- "path"- ],- "title": "FileEditorAction",- "description": "Schema for file editor operations."- },- "FileEditorObservation": {- "properties": {- "kind": {- "type": "string",- "const": "FileEditorObservation",- "title": "Kind",- "default": "FileEditorObservation"- },- "command": {- "type": "string",- "enum": [- "view",- "create",- "str_replace",- "insert",- "undo_edit"- ],- "title": "Command",- "description": "The commands to run. Allowed options are: `view`, `create`, `str_replace`, `insert`, `undo_edit`."- },- "output": {- "type": "string",- "title": "Output",- "description": "The output message from the tool for the LLM to see.",- "default": ""- },- "path": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Path",- "description": "The file path that was edited."- },- "prev_exist": {- "type": "boolean",- "title": "Prev Exist",- "description": "Indicates if the file previously existed. If not, it was created.",- "default": true- },- "old_content": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Old Content",- "description": "The content of the file before the edit."- },- "new_content": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "New Content",- "description": "The content of the file after the edit."- },- "error": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Error",- "description": "Error message if any."- }- },- "additionalProperties": false,- "type": "object",- "required": [- "command"- ],- "title": "FileEditorObservation",- "description": "A ToolResult that can be rendered as a CLI output."- },- "FinishAction": {- "properties": {- "kind": {- "type": "string",- "const": "FinishAction",- "title": "Kind",- "default": "FinishAction"- },- "message": {- "type": "string",- "title": "Message",- "description": "Final message to send to the user."- }- },- "additionalProperties": false,- "type": "object",- "required": [- "message"- ],- "title": "FinishAction"- },- "FinishObservation": {- "properties": {- "kind": {- "type": "string",- "const": "FinishObservation",- "title": "Kind",- "default": "FinishObservation"- },- "message": {- "type": "string",- "title": "Message",- "description": "Final message sent to the user."- }- },- "additionalProperties": false,- "type": "object",- "required": [- "message"- ],- "title": "FinishObservation"- },- "GenerateTitleRequest": {- "properties": {- "max_length": {- "type": "integer",- "maximum": 200.0,- "minimum": 1.0,- "title": "Max Length",- "description": "Maximum length of the generated title",- "default": 50- },- "llm": {- "anyOf": [- {- "$ref": "#/components/schemas/LLM"- },- {- "type": "null"- }- ],- "description": "Optional LLM to use for title generation"- }- },- "type": "object",- "title": "GenerateTitleRequest",- "description": "Payload to generate a title for a conversation."- },- "GenerateTitleResponse": {- "properties": {- "title": {- "type": "string",- "title": "Title",- "description": "The generated title for the conversation"- }- },- "type": "object",- "required": [- "title"- ],- "title": "GenerateTitleResponse",- "description": "Response containing the generated conversation title."- },- "HTTPValidationError": {- "properties": {- "detail": {- "items": {- "$ref": "#/components/schemas/ValidationError"- },- "type": "array",- "title": "Detail"- }- },- "type": "object",- "title": "HTTPValidationError"- },- "ImageContent": {- "properties": {- "cache_prompt": {- "type": "boolean",- "title": "Cache Prompt",- "default": false- },- "type": {- "type": "string",- "const": "image",- "title": "Type",- "default": "image"- },- "image_urls": {- "items": {- "type": "string"- },- "type": "array",- "title": "Image Urls"- }- },- "type": "object",- "required": [- "image_urls"- ],- "title": "ImageContent"- },- "InputMetadata": {- "properties": {- "name": {- "type": "string",- "title": "Name",- "description": "Name of the input parameter"- },- "description": {- "type": "string",- "title": "Description",- "description": "Description of the input parameter"- }- },- "type": "object",- "required": [- "name",- "description"- ],- "title": "InputMetadata",- "description": "Metadata for task skill inputs."- },- "KeywordTrigger": {- "properties": {- "type": {- "type": "string",- "const": "keyword",- "title": "Type",- "default": "keyword"- },- "keywords": {- "items": {- "type": "string"- },- "type": "array",- "title": "Keywords"- }- },- "type": "object",- "required": [- "keywords"- ],- "title": "KeywordTrigger",- "description": "Trigger for keyword-based skills.\n\nThese skills are activated when specific keywords appear in the user's query."- },- "LLM": {- "properties": {- "model": {- "type": "string",- "title": "Model",- "description": "Model name.",- "default": "claude-sonnet-4-20250514"- },- "api_key": {- "anyOf": [- {- "type": "string",- "format": "password",- "writeOnly": true- },- {- "type": "null"- }- ],- "title": "Api Key",- "description": "API key."- },- "base_url": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Base Url",- "description": "Custom base URL."- },- "api_version": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Api Version",- "description": "API version (e.g., Azure)."- },- "aws_access_key_id": {- "anyOf": [- {- "type": "string",- "format": "password",- "writeOnly": true- },- {- "type": "null"- }- ],- "title": "Aws Access Key Id"- },- "aws_secret_access_key": {- "anyOf": [- {- "type": "string",- "format": "password",- "writeOnly": true- },- {- "type": "null"- }- ],- "title": "Aws Secret Access Key"- },- "aws_region_name": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Aws Region Name"- },- "openrouter_site_url": {- "type": "string",- "title": "Openrouter Site Url",- "default": "https://docs.all-hands.dev/"- },- "openrouter_app_name": {- "type": "string",- "title": "Openrouter App Name",- "default": "OpenHands"- },- "num_retries": {- "type": "integer",- "minimum": 0.0,- "title": "Num Retries",- "default": 5- },- "retry_multiplier": {- "type": "number",- "minimum": 0.0,- "title": "Retry Multiplier",- "default": 8.0- },- "retry_min_wait": {- "type": "integer",- "minimum": 0.0,- "title": "Retry Min Wait",- "default": 8- },- "retry_max_wait": {- "type": "integer",- "minimum": 0.0,- "title": "Retry Max Wait",- "default": 64- },- "timeout": {- "anyOf": [- {- "type": "integer",- "minimum": 0.0- },- {- "type": "null"- }- ],- "title": "Timeout",- "description": "HTTP timeout (s)."- },- "max_message_chars": {- "type": "integer",- "minimum": 1.0,- "title": "Max Message Chars",- "description": "Approx max chars in each event/content sent to the LLM.",- "default": 30000- },- "temperature": {- "anyOf": [- {- "type": "number",- "minimum": 0.0- },- {- "type": "null"- }- ],- "title": "Temperature",- "default": 0.0- },- "top_p": {- "anyOf": [- {- "type": "number",- "maximum": 1.0,- "minimum": 0.0- },- {- "type": "null"- }- ],- "title": "Top P",- "default": 1.0- },- "top_k": {- "anyOf": [- {- "type": "number",- "minimum": 0.0- },- {- "type": "null"- }- ],- "title": "Top K"- },- "custom_llm_provider": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Custom Llm Provider"- },- "max_input_tokens": {- "anyOf": [- {- "type": "integer",- "minimum": 1.0- },- {- "type": "null"- }- ],- "title": "Max Input Tokens",- "description": "The maximum number of input tokens. Note that this is currently unused, and the value at runtime is actually the total tokens in OpenAI (e.g. 128,000 tokens for GPT-4)."- },- "max_output_tokens": {- "anyOf": [- {- "type": "integer",- "minimum": 1.0- },- {- "type": "null"- }- ],- "title": "Max Output Tokens",- "description": "The maximum number of output tokens. This is sent to the LLM."- },- "input_cost_per_token": {- "anyOf": [- {- "type": "number",- "minimum": 0.0- },- {- "type": "null"- }- ],- "title": "Input Cost Per Token",- "description": "The cost per input token. This will available in logs for user."- },- "output_cost_per_token": {- "anyOf": [- {- "type": "number",- "minimum": 0.0- },- {- "type": "null"- }- ],- "title": "Output Cost Per Token",- "description": "The cost per output token. This will available in logs for user."- },- "ollama_base_url": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Ollama Base Url"- },- "drop_params": {- "type": "boolean",- "title": "Drop Params",- "default": true- },- "modify_params": {- "type": "boolean",- "title": "Modify Params",- "description": "Modify params allows litellm to do transformations like adding a default message, when a message is empty.",- "default": true- },- "disable_vision": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ],- "title": "Disable Vision",- "description": "If model is vision capable, this option allows to disable image processing (useful for cost reduction)."- },- "disable_stop_word": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ],- "title": "Disable Stop Word",- "description": "Disable using of stop word.",- "default": false- },- "caching_prompt": {- "type": "boolean",- "title": "Caching Prompt",- "description": "Enable caching of prompts.",- "default": true- },- "log_completions": {- "type": "boolean",- "title": "Log Completions",- "description": "Enable logging of completions.",- "default": false- },- "log_completions_folder": {- "type": "string",- "title": "Log Completions Folder",- "description": "The folder to log LLM completions to. Required if log_completions is True.",- "default": "logs/completions"- },- "custom_tokenizer": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Custom Tokenizer",- "description": "A custom tokenizer to use for token counting."- },- "native_tool_calling": {- "anyOf": [- {- "type": "boolean"- },- {- "type": "null"- }- ],- "title": "Native Tool Calling",- "description": "Whether to use native tool calling if supported by the model. Can be True, False, or not set."- },- "reasoning_effort": {- "anyOf": [- {- "type": "string",- "enum": [- "low",- "medium",- "high",- "none"- ]- },- {- "type": "null"- }- ],- "title": "Reasoning Effort",- "description": "The effort to put into reasoning. This is a string that can be one of 'low', 'medium', 'high', or 'none'. Can apply to all reasoning models."- },- "enable_encrypted_reasoning": {- "type": "boolean",- "title": "Enable Encrypted Reasoning",- "description": "If True, ask for ['reasoning.encrypted_content'] in Responses API include.",- "default": false- },- "extended_thinking_budget": {- "anyOf": [- {- "type": "integer"- },- {- "type": "null"- }- ],- "title": "Extended Thinking Budget",- "description": "The budget tokens for extended thinking, supported by Anthropic models.",- "default": 200000- },- "seed": {- "anyOf": [- {- "type": "integer"- },- {- "type": "null"- }- ],- "title": "Seed",- "description": "The seed to use for random number generation."- },- "safety_settings": {- "anyOf": [- {- "items": {- "additionalProperties": {- "type": "string"- },- "type": "object"- },- "type": "array"- },- {- "type": "null"- }- ],- "title": "Safety Settings",- "description": "Safety settings for models that support them (like Mistral AI and Gemini)"- },- "usage_id": {- "type": "string",- "title": "Usage Id",- "description": "Unique usage identifier for the LLM. Used for registry lookups, telemetry, and spend tracking.",- "default": "default"- },- "metadata": {- "additionalProperties": true,- "type": "object",- "title": "Metadata",- "description": "Additional metadata for the LLM instance. Example structure: {'trace_version': '1.0.0', 'tags': ['model:gpt-4', 'agent:my-agent'], 'session_id': 'session-123', 'trace_user_id': 'user-456'}"- },- "OVERRIDE_ON_SERIALIZE": {- "items": {- "type": "string"- },- "type": "array",- "title": "Override On Serialize",- "default": [- "api_key",- "aws_access_key_id",- "aws_secret_access_key"- ]- }- },- "additionalProperties": false,- "type": "object",- "title": "LLM",- "description": "Refactored LLM: simple `completion()`, centralized Telemetry, tiny helpers."- },- "LLMSummarizingCondenser": {- "properties": {- "kind": {- "type": "string",- "const": "LLMSummarizingCondenser",- "title": "Kind",- "default": "LLMSummarizingCondenser"- },- "llm": {- "$ref": "#/components/schemas/LLM"- },- "max_size": {- "type": "integer",- "exclusiveMinimum": 0.0,- "title": "Max Size",- "default": 120- },- "keep_first": {- "type": "integer",- "minimum": 0.0,- "title": "Keep First",- "default": 4- }- },- "type": "object",- "required": [- "llm"- ],- "title": "LLMSummarizingCondenser"- },- "LocalWorkspace": {- "properties": {- "kind": {- "type": "string",- "const": "LocalWorkspace",- "title": "Kind",- "default": "LocalWorkspace"- },- "working_dir": {- "type": "string",- "title": "Working Dir",- "description": "The working directory for agent operations and tool execution."- }- },- "type": "object",- "required": [- "working_dir"- ],- "title": "LocalWorkspace",- "description": "Mixin providing local workspace operations."- },- "LookupSecret": {- "properties": {- "kind": {- "type": "string",- "const": "LookupSecret",- "title": "Kind",- "default": "LookupSecret"- },- "description": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Description",- "description": "Optional description for this secret"- },- "url": {- "type": "string",- "title": "Url"- },- "headers": {- "additionalProperties": {- "type": "string"- },- "type": "object",- "title": "Headers"- }- },- "type": "object",- "required": [- "url"- ],- "title": "LookupSecret",- "description": "A secret looked up from some external url"- },- "MCPToolAction": {- "properties": {- "kind": {- "type": "string",- "const": "MCPToolAction",- "title": "Kind",- "default": "MCPToolAction"- },- "data": {- "additionalProperties": true,- "type": "object",- "title": "Data",- "description": "Dynamic data fields from the tool call"- }- },- "additionalProperties": false,- "type": "object",- "title": "MCPToolAction",- "description": "Schema for MCP input action.\n\nIt is just a thin wrapper around raw JSON and does\nnot do any validation.\n\nValidation will be performed by MCPTool.__call__\nby constructing dynamically created Pydantic model\nfrom the MCP tool input schema."- },- "MCPToolObservation": {- "properties": {- "kind": {- "type": "string",- "const": "MCPToolObservation",- "title": "Kind",- "default": "MCPToolObservation"- },- "content": {- "items": {- "anyOf": [- {- "$ref": "#/components/schemas/TextContent"- },- {- "$ref": "#/components/schemas/ImageContent"- }- ]- },- "type": "array",- "title": "Content",- "description": "Content returned from the MCP tool converted to LLM Ready TextContent or ImageContent"- },- "is_error": {- "type": "boolean",- "title": "Is Error",- "description": "Whether the call resulted in an error",- "default": false- },- "tool_name": {- "type": "string",- "title": "Tool Name",- "description": "Name of the tool that was called"- }- },- "additionalProperties": false,- "type": "object",- "required": [- "tool_name"- ],- "title": "MCPToolObservation",- "description": "Observation from MCP tool execution."- },- "Message": {- "properties": {- "role": {- "type": "string",- "enum": [- "user",- "system",- "assistant",- "tool"- ],- "title": "Role"- },- "content": {- "items": {- "anyOf": [- {- "$ref": "#/components/schemas/TextContent"- },- {- "$ref": "#/components/schemas/ImageContent"- }- ]- },- "type": "array",- "title": "Content"- },- "cache_enabled": {- "type": "boolean",- "title": "Cache Enabled",- "default": false- },- "vision_enabled": {- "type": "boolean",- "title": "Vision Enabled",- "default": false- },- "function_calling_enabled": {- "type": "boolean",- "title": "Function Calling Enabled",- "default": false- },- "tool_calls": {- "anyOf": [- {- "items": {- "$ref": "#/components/schemas/MessageToolCall"- },- "type": "array"- },- {- "type": "null"- }- ],- "title": "Tool Calls"- },- "tool_call_id": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Tool Call Id"- },- "name": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Name"- },- "force_string_serializer": {- "type": "boolean",- "title": "Force String Serializer",- "default": false- },- "reasoning_content": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Reasoning Content",- "description": "Intermediate reasoning/thinking content from reasoning models"- },- "thinking_blocks": {- "items": {- "anyOf": [- {- "$ref": "#/components/schemas/ThinkingBlock"- },- {- "$ref": "#/components/schemas/RedactedThinkingBlock"- }- ]- },- "type": "array",- "title": "Thinking Blocks",- "description": "Raw Anthropic thinking blocks for extended thinking feature"- },- "responses_reasoning_item": {- "anyOf": [- {- "$ref": "#/components/schemas/ReasoningItemModel"- },- {- "type": "null"- }- ],- "description": "OpenAI Responses reasoning item from model output"- }- },- "type": "object",- "required": [- "role"- ],- "title": "Message"- },- "MessageEvent": {- "properties": {- "kind": {- "type": "string",- "const": "MessageEvent",- "title": "Kind",- "default": "MessageEvent"- },- "id": {- "type": "string",- "title": "Id",- "description": "Unique event id (ULID/UUID)"- },- "timestamp": {- "type": "string",- "title": "Timestamp",- "description": "Event timestamp"- },- "source": {- "type": "string",- "enum": [- "agent",- "user",- "environment"- ],- "title": "Source"- },- "llm_message": {- "$ref": "#/components/schemas/Message",- "description": "The exact LLM message for this message event"- },- "activated_skills": {- "items": {- "type": "string"- },- "type": "array",- "title": "Activated Skills",- "description": "List of activated skill name"- },- "extended_content": {- "items": {- "$ref": "#/components/schemas/TextContent"- },- "type": "array",- "title": "Extended Content",- "description": "List of content added by agent context"- }- },- "additionalProperties": false,- "type": "object",- "required": [- "source",- "llm_message"- ],- "title": "MessageEvent",- "description": "Message from either agent or user.\n\nThis is originally the \"MessageAction\", but it suppose not to be tool call."- },- "MessageToolCall": {- "properties": {- "id": {- "type": "string",- "title": "Id",- "description": "Canonical tool call id"- },- "name": {- "type": "string",- "title": "Name",- "description": "Tool/function name"- },- "arguments": {- "type": "string",- "title": "Arguments",- "description": "JSON string of arguments"- },- "origin": {- "type": "string",- "enum": [- "completion",- "responses"- ],- "title": "Origin",- "description": "Originating API family"- }- },- "type": "object",- "required": [- "id",- "name",- "arguments",- "origin"- ],- "title": "MessageToolCall",- "description": "Transport-agnostic tool call representation.\n\nOne canonical id is used for linking across actions/observations and\nfor Responses function_call_output call_id."- },- "Metrics": {- "properties": {- "model_name": {- "type": "string",- "title": "Model Name",- "description": "Name of the model",- "default": "default"- },- "accumulated_cost": {- "type": "number",- "minimum": 0.0,- "title": "Accumulated Cost",- "description": "Total accumulated cost, must be non-negative",- "default": 0.0- },- "max_budget_per_task": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ],- "title": "Max Budget Per Task",- "description": "Maximum budget per task"- },- "accumulated_token_usage": {- "anyOf": [- {- "$ref": "#/components/schemas/TokenUsage"- },- {- "type": "null"- }- ],- "description": "Accumulated token usage across all calls"- },- "costs": {- "items": {- "$ref": "#/components/schemas/Cost"- },- "type": "array",- "title": "Costs",- "description": "List of individual costs"- },- "response_latencies": {- "items": {- "$ref": "#/components/schemas/ResponseLatency"- },- "type": "array",- "title": "Response Latencies",- "description": "List of response latencies"- },- "token_usages": {- "items": {- "$ref": "#/components/schemas/TokenUsage"- },- "type": "array",- "title": "Token Usages",- "description": "List of token usage records"- }- },- "type": "object",- "title": "Metrics",- "description": "Metrics class can record various metrics during running and evaluation.\nWe track:\n - accumulated_cost and costs\n - max_budget_per_task (budget limit)\n - A list of ResponseLatency\n - A list of TokenUsage (one per call)."- },- "MetricsSnapshot": {- "properties": {- "model_name": {- "type": "string",- "title": "Model Name",- "description": "Name of the model",- "default": "default"- },- "accumulated_cost": {- "type": "number",- "minimum": 0.0,- "title": "Accumulated Cost",- "description": "Total accumulated cost, must be non-negative",- "default": 0.0- },- "max_budget_per_task": {- "anyOf": [- {- "type": "number"- },- {- "type": "null"- }- ],- "title": "Max Budget Per Task",- "description": "Maximum budget per task"- },- "accumulated_token_usage": {- "anyOf": [- {- "$ref": "#/components/schemas/TokenUsage"- },- {- "type": "null"- }- ],- "description": "Accumulated token usage across all calls"- }- },- "type": "object",- "title": "MetricsSnapshot",- "description": "A snapshot of metrics at a point in time.\n\nDoes not include lists of individual costs, latencies, or token usages."- },- "NeverConfirm": {- "properties": {- "kind": {- "type": "string",- "const": "NeverConfirm",- "title": "Kind",- "default": "NeverConfirm"- }- },- "type": "object",- "title": "NeverConfirm"- },- "NoOpCondenser": {- "properties": {- "kind": {- "type": "string",- "const": "NoOpCondenser",- "title": "Kind",- "default": "NoOpCondenser"- }- },- "type": "object",- "title": "NoOpCondenser",- "description": "Simple condenser that returns a view un-manipulated.\n\nPrimarily intended for testing purposes."- },- "ObservationEvent": {- "properties": {- "kind": {- "type": "string",- "const": "ObservationEvent",- "title": "Kind",- "default": "ObservationEvent"- },- "id": {- "type": "string",- "title": "Id",- "description": "Unique event id (ULID/UUID)"- },- "timestamp": {- "type": "string",- "title": "Timestamp",- "description": "Event timestamp"- },- "source": {- "type": "string",- "enum": [- "agent",- "user",- "environment"- ],- "title": "Source",- "default": "environment"- },- "tool_name": {- "type": "string",- "title": "Tool Name",- "description": "The tool name that this observation is responding to"- },- "tool_call_id": {- "type": "string",- "title": "Tool Call Id",- "description": "The tool call id that this observation is responding to"- },- "observation": {- "$ref": "#/components/schemas/Observation"- },- "action_id": {- "type": "string",- "title": "Action Id",- "description": "The action id that this observation is responding to"- }- },- "additionalProperties": false,- "type": "object",- "required": [- "tool_name",- "tool_call_id",- "observation",- "action_id"- ],- "title": "ObservationEvent"- },- "PauseEvent": {- "properties": {- "kind": {- "type": "string",- "const": "PauseEvent",- "title": "Kind",- "default": "PauseEvent"- },- "id": {- "type": "string",- "title": "Id",- "description": "Unique event id (ULID/UUID)"- },- "timestamp": {- "type": "string",- "title": "Timestamp",- "description": "Event timestamp"- },- "source": {- "type": "string",- "enum": [- "agent",- "user",- "environment"- ],- "title": "Source",- "default": "user"- }- },- "additionalProperties": false,- "type": "object",- "title": "PauseEvent",- "description": "Event indicating that the agent execution was paused by user request."- },- "PipelineCondenser-Output": {- "properties": {- "kind": {- "type": "string",- "const": "PipelineCondenser",- "title": "Kind",- "default": "PipelineCondenser"- },- "condensers": {- "items": {- "oneOf": [- {- "$ref": "#/components/schemas/LLMSummarizingCondenser"- },- {- "$ref": "#/components/schemas/NoOpCondenser"- },- {- "$ref": "#/components/schemas/PipelineCondenser-Output"- }- ],- "title": "CondenserBase",- "discriminator": {- "propertyName": "kind",- "mapping": {- "openhands__sdk__context__condenser__llm_summarizing_condenser__LLMSummarizingCondenser-Output__1": "#/components/schemas/LLMSummarizingCondenser",- "openhands__sdk__context__condenser__no_op_condenser__NoOpCondenser-Output__1": "#/components/schemas/NoOpCondenser",- "openhands__sdk__context__condenser__pipeline_condenser__PipelineCondenser-Output__1": "#/components/schemas/PipelineCondenser-Output"- }- }- },- "type": "array",- "title": "Condensers"- }- },- "type": "object",- "required": [- "condensers"- ],- "title": "PipelineCondenser",- "description": "A condenser that applies a sequence of condensers in order.\n\nAll condensers are defined primarily by their `condense` method, which takes a\n`View` and returns either a new `View` or a `Condensation` event. That means we can\nchain multiple condensers together by passing `View`s along and exiting early if any\ncondenser returns a `Condensation`.\n\nFor example:\n\n # Use the pipeline condenser to chain multiple other condensers together\n condenser = PipelineCondenser(condensers=[\n CondenserA(...),\n CondenserB(...),\n CondenserC(...),\n ])\n\n result = condenser.condense(view)\n\n # Doing the same thing without the pipeline condenser requires more boilerplate\n # for the monadic chaining\n other_result = view\n\n if isinstance(other_result, View):\n other_result = CondenserA(...).condense(other_result)\n\n if isinstance(other_result, View):\n other_result = CondenserB(...).condense(other_result)\n\n if isinstance(other_result, View):\n other_result = CondenserC(...).condense(other_result)\n\n assert result == other_result"- },- "ReasoningItemModel": {- "properties": {- "id": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Id"- },- "summary": {- "items": {- "type": "string"- },- "type": "array",- "title": "Summary"- },- "content": {- "anyOf": [- {- "items": {- "type": "string"- },- "type": "array"- },- {- "type": "null"- }- ],- "title": "Content"- },- "encrypted_content": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Encrypted Content"- },- "status": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Status"- }- },- "type": "object",- "title": "ReasoningItemModel",- "description": "OpenAI Responses reasoning item (non-stream, subset we consume).\n\nDo not log or render encrypted_content."- },- "RedactedThinkingBlock": {- "properties": {- "type": {- "type": "string",- "const": "redacted_thinking",- "title": "Type",- "default": "redacted_thinking"- },- "data": {- "type": "string",- "title": "Data",- "description": "The redacted thinking content"- }- },- "type": "object",- "required": [- "data"- ],- "title": "RedactedThinkingBlock",- "description": "Redacted thinking block for previous responses without extended thinking.\n\nThis is used as a placeholder for assistant messages that were generated\nbefore extended thinking was enabled."- },- "RemoteWorkspace": {- "properties": {- "kind": {- "type": "string",- "const": "RemoteWorkspace",- "title": "Kind",- "default": "RemoteWorkspace"- },- "working_dir": {- "type": "string",- "title": "Working Dir",- "description": "The working directory for agent operations and tool execution."- },- "host": {- "type": "string",- "title": "Host",- "description": "The remote host URL for the workspace."- },- "api_key": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Api Key",- "description": "API key for authenticating with the remote host."- }- },- "type": "object",- "required": [- "working_dir",- "host"- ],- "title": "RemoteWorkspace",- "description": "Remote Workspace Implementation."- },- "ResponseLatency": {- "properties": {- "model": {- "type": "string",- "title": "Model"- },- "latency": {- "type": "number",- "minimum": 0.0,- "title": "Latency",- "description": "Latency must be non-negative"- },- "response_id": {- "type": "string",- "title": "Response Id"- }- },- "type": "object",- "required": [- "model",- "latency",- "response_id"- ],- "title": "ResponseLatency",- "description": "Metric tracking the round-trip time per completion call."- },- "SecretsManager-Output": {- "properties": {- "secret_sources": {- "additionalProperties": {- "oneOf": [- {- "$ref": "#/components/schemas/LookupSecret"- },- {- "$ref": "#/components/schemas/StaticSecret"- }- ],- "discriminator": {- "propertyName": "kind",- "mapping": {- "openhands__sdk__conversation__secret_source__LookupSecret-Output__1": "#/components/schemas/LookupSecret",- "openhands__sdk__conversation__secret_source__StaticSecret-Output__1": "#/components/schemas/StaticSecret"- }- }- },- "type": "object",- "title": "Secret Sources"- }- },- "type": "object",- "title": "SecretsManager",- "description": "Manages secrets and injects them into bash commands when needed.\n\nThe secrets manager stores a mapping of secret keys to SecretSources\nthat retrieve the actual secret values. When a bash command is about to be\nexecuted, it scans the command for any secret keys and injects the corresponding\nenvironment variables.\n\nSecret sources will redact / encrypt their sensitive values as appropriate when\nserializing, depending on the content of the context. If a context is present\nand contains a 'cipher' object, this is used for encryption. If it contains a\nboolean 'expose_secrets' flag set to True, secrets are dunped in plain text.\nOtherwise secrets are redacted.\n\nAdditionally, it tracks the latest exported values to enable consistent masking\neven when callable secrets fail on subsequent calls."- },- "SecurityAnalyzerBase": {- "properties": {- "kind": {- "type": "string",- "const": "LLMSecurityAnalyzer",- "title": "Kind",- "default": "LLMSecurityAnalyzer"- }- },- "type": "object",- "title": "LLMSecurityAnalyzer",- "description": "LLM-based security analyzer.\n\nThis analyzer respects the security_risk attribute that can be set by the LLM\nwhen generating actions, similar to OpenHands' LLMRiskAnalyzer.\n\nIt provides a lightweight security analysis approach that leverages the LLM's\nunderstanding of action context and potential risks."- },- "SecurityRisk": {- "type": "string",- "enum": [- "UNKNOWN",- "LOW",- "MEDIUM",- "HIGH"- ],- "title": "SecurityRisk",- "description": "Security risk levels for actions.\n\nBased on OpenHands security risk levels but adapted for agent-sdk.\nInteger values allow for easy comparison and ordering."- },- "SendMessageRequest": {- "properties": {- "role": {- "type": "string",- "enum": [- "user",- "system",- "assistant",- "tool"- ],- "title": "Role",- "default": "user"- },- "content": {- "items": {- "anyOf": [- {- "$ref": "#/components/schemas/TextContent"- },- {- "$ref": "#/components/schemas/ImageContent"- }- ]- },- "type": "array",- "title": "Content"- },- "run": {- "type": "boolean",- "title": "Run",- "description": "Whether the agent loop should automatically run if not running",- "default": false- }- },- "type": "object",- "title": "SendMessageRequest",- "description": "Payload to send a message to the agent.\n\nThis is a simplified version of openhands.sdk.Message."- },- "ServerInfo": {- "properties": {- "uptime": {- "type": "number",- "title": "Uptime"- },- "idle_time": {- "type": "number",- "title": "Idle Time"- },- "title": {- "type": "string",- "title": "Title",- "default": "OpenHands Agent Server"- },- "version": {- "type": "string",- "title": "Version",- "default": "1.0.0a4"- },- "docs": {- "type": "string",- "title": "Docs",- "default": "/docs"- },- "redoc": {- "type": "string",- "title": "Redoc",- "default": "/redoc"- }- },- "type": "object",- "required": [- "uptime",- "idle_time"- ],- "title": "ServerInfo"- },- "SetConfirmationPolicyRequest": {- "properties": {- "policy": {- "oneOf": [- {- "$ref": "#/components/schemas/AlwaysConfirm"- },- {- "$ref": "#/components/schemas/ConfirmRisky"- },- {- "$ref": "#/components/schemas/NeverConfirm"- }- ],- "title": "ConfirmationPolicyBase",- "description": "The confirmation policy to set",- "discriminator": {- "propertyName": "kind",- "mapping": {- "openhands__sdk__security__confirmation_policy__AlwaysConfirm-Input__1": "#/components/schemas/AlwaysConfirm",- "openhands__sdk__security__confirmation_policy__ConfirmRisky-Input__1": "#/components/schemas/ConfirmRisky",- "openhands__sdk__security__confirmation_policy__NeverConfirm-Input__1": "#/components/schemas/NeverConfirm"- }- }- }- },- "type": "object",- "required": [- "policy"- ],- "title": "SetConfirmationPolicyRequest",- "description": "Payload to set confirmation policy for a conversation."- },- "Skill": {- "properties": {- "name": {- "type": "string",- "title": "Name"- },- "content": {- "type": "string",- "title": "Content"- },- "trigger": {- "anyOf": [- {- "oneOf": [- {- "$ref": "#/components/schemas/KeywordTrigger"- },- {- "$ref": "#/components/schemas/TaskTrigger"- }- ],- "discriminator": {- "propertyName": "type",- "mapping": {- "keyword": "#/components/schemas/KeywordTrigger",- "task": "#/components/schemas/TaskTrigger"- }- }- },- {- "type": "null"- }- ],- "title": "Trigger"- },- "source": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Source",- "description": "The source path or identifier of the skill. When it is None, it is treated as a programmatically defined skill."- },- "mcp_tools": {- "anyOf": [- {- "additionalProperties": true,- "type": "object"- },- {- "type": "null"- }- ],- "title": "Mcp Tools",- "description": "MCP tools configuration for the skill (repo skills only). It should conform to the MCPConfig schema: https://gofastmcp.com/clients/client#configuration-format"- },- "inputs": {- "items": {- "$ref": "#/components/schemas/InputMetadata"- },- "type": "array",- "title": "Inputs",- "description": "Input metadata for the skill (task skills only)"- }- },- "type": "object",- "required": [- "name",- "content",- "trigger"- ],- "title": "Skill",- "description": "A skill provides specialized knowledge or functionality.\n\nSkills use triggers to determine when they should be activated:\n- None: Always active, for repository-specific guidelines\n- KeywordTrigger: Activated when keywords appear in user messages\n- TaskTrigger: Activated for specific tasks, may require user input"- },- "StartConversationRequest": {- "properties": {- "agent": {- "$ref": "#/components/schemas/Agent-Output"- },- "workspace": {- "$ref": "#/components/schemas/LocalWorkspace",- "description": "Working directory for agent operations and tool execution"- },- "conversation_id": {- "anyOf": [- {- "type": "string",- "format": "uuid"- },- {- "type": "null"- }- ],- "title": "Conversation Id",- "description": "Optional conversation ID. If not provided, a random UUID will be generated."- },- "confirmation_policy": {- "oneOf": [- {- "$ref": "#/components/schemas/AlwaysConfirm"- },- {- "$ref": "#/components/schemas/ConfirmRisky"- },- {- "$ref": "#/components/schemas/NeverConfirm"- }- ],- "title": "ConfirmationPolicyBase",- "description": "Controls when the conversation will prompt the user before continuing. Defaults to never.",- "default": {- "kind": "NeverConfirm"- },- "discriminator": {- "propertyName": "kind",- "mapping": {- "openhands__sdk__security__confirmation_policy__AlwaysConfirm-Input__1": "#/components/schemas/AlwaysConfirm",- "openhands__sdk__security__confirmation_policy__ConfirmRisky-Input__1": "#/components/schemas/ConfirmRisky",- "openhands__sdk__security__confirmation_policy__NeverConfirm-Input__1": "#/components/schemas/NeverConfirm"- }- }- },- "initial_message": {- "anyOf": [- {- "$ref": "#/components/schemas/SendMessageRequest"- },- {- "type": "null"- }- ],- "description": "Initial message to pass to the LLM"- },- "max_iterations": {- "type": "integer",- "minimum": 1.0,- "title": "Max Iterations",- "description": "If set, the max number of iterations the agent will run before stopping. This is useful to prevent infinite loops.",- "default": 500- },- "stuck_detection": {- "type": "boolean",- "title": "Stuck Detection",- "description": "If true, the conversation will use stuck detection to prevent infinite loops.",- "default": true- },- "secrets": {- "additionalProperties": {- "oneOf": [- {- "$ref": "#/components/schemas/LookupSecret"- },- {- "$ref": "#/components/schemas/StaticSecret"- }- ],- "discriminator": {- "propertyName": "kind",- "mapping": {- "openhands__sdk__conversation__secret_source__LookupSecret-Input__1": "#/components/schemas/LookupSecret",- "openhands__sdk__conversation__secret_source__StaticSecret-Input__1": "#/components/schemas/StaticSecret"- }- }- },- "type": "object",- "title": "Secrets",- "description": "Secrets available in the conversation"- }- },- "type": "object",- "required": [- "agent",- "workspace"- ],- "title": "StartConversationRequest",- "description": "Payload to create a new conversation.\n\nContains an Agent configuration along with conversation-specific options."- },- "StaticSecret": {- "properties": {- "kind": {- "type": "string",- "const": "StaticSecret",- "title": "Kind",- "default": "StaticSecret"- },- "description": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Description",- "description": "Optional description for this secret"- },- "value": {- "type": "string",- "format": "password",- "title": "Value",- "writeOnly": true- }- },- "type": "object",- "required": [- "value"- ],- "title": "StaticSecret",- "description": "A secret stored locally"- },- "Success": {- "properties": {- "success": {- "type": "boolean",- "title": "Success",- "default": true- }- },- "type": "object",- "title": "Success"- },- "SystemPromptEvent": {- "properties": {- "kind": {- "type": "string",- "const": "SystemPromptEvent",- "title": "Kind",- "default": "SystemPromptEvent"- },- "id": {- "type": "string",- "title": "Id",- "description": "Unique event id (ULID/UUID)"- },- "timestamp": {- "type": "string",- "title": "Timestamp",- "description": "Event timestamp"- },- "source": {- "type": "string",- "enum": [- "agent",- "user",- "environment"- ],- "title": "Source",- "default": "agent"- },- "system_prompt": {- "$ref": "#/components/schemas/TextContent",- "description": "The system prompt text"- },- "tools": {- "items": {- "$ref": "#/components/schemas/ChatCompletionToolParam"- },- "type": "array",- "title": "Tools",- "description": "List of tools in OpenAI tool format"- }- },- "additionalProperties": false,- "type": "object",- "required": [- "system_prompt",- "tools"- ],- "title": "SystemPromptEvent",- "description": "System prompt added by the agent."- },- "TaskItem": {- "properties": {- "title": {- "type": "string",- "title": "Title",- "description": "A brief title for the task."- },- "notes": {- "type": "string",- "title": "Notes",- "description": "Additional details or notes about the task.",- "default": ""- },- "status": {- "type": "string",- "enum": [- "todo",- "in_progress",- "done"- ],- "title": "Status",- "description": "The current status of the task. One of 'todo', 'in_progress', or 'done'.",- "default": "todo"- }- },- "type": "object",- "required": [- "title"- ],- "title": "TaskItem"- },- "TaskTrackerAction": {- "properties": {- "kind": {- "type": "string",- "const": "TaskTrackerAction",- "title": "Kind",- "default": "TaskTrackerAction"- },- "command": {- "type": "string",- "enum": [- "view",- "plan"- ],- "title": "Command",- "description": "The command to execute. `view` shows the current task list. `plan` creates or updates the task list based on provided requirements and progress. Always `view` the current list before making changes.",- "default": "view"- },- "task_list": {- "items": {- "$ref": "#/components/schemas/TaskItem"- },- "type": "array",- "title": "Task List",- "description": "The full task list. Required parameter of `plan` command."- }- },- "additionalProperties": false,- "type": "object",- "title": "TaskTrackerAction",- "description": "An action where the agent writes or updates a task list for task management."- },- "TaskTrackerObservation": {- "properties": {- "kind": {- "type": "string",- "const": "TaskTrackerObservation",- "title": "Kind",- "default": "TaskTrackerObservation"- },- "content": {- "type": "string",- "title": "Content",- "description": "The formatted task list or status message",- "default": ""- },- "command": {- "type": "string",- "title": "Command",- "description": "The command that was executed",- "default": ""- },- "task_list": {- "items": {- "$ref": "#/components/schemas/TaskItem"- },- "type": "array",- "title": "Task List",- "description": "The current task list"- }- },- "additionalProperties": false,- "type": "object",- "title": "TaskTrackerObservation",- "description": "This data class represents the result of a task tracking operation."- },- "TaskTrigger": {- "properties": {- "type": {- "type": "string",- "const": "task",- "title": "Type",- "default": "task"- },- "triggers": {- "items": {- "type": "string"- },- "type": "array",- "title": "Triggers"- }- },- "type": "object",- "required": [- "triggers"- ],- "title": "TaskTrigger",- "description": "Trigger for task-specific skills.\n\nThese skills are activated for specific task types and can modify prompts."- },- "TextContent": {- "properties": {- "cache_prompt": {- "type": "boolean",- "title": "Cache Prompt",- "default": false- },- "type": {- "type": "string",- "const": "text",- "title": "Type",- "default": "text"- },- "text": {- "type": "string",- "title": "Text"- }- },- "additionalProperties": false,- "type": "object",- "required": [- "text"- ],- "title": "TextContent"- },- "ThinkAction": {- "properties": {- "kind": {- "type": "string",- "const": "ThinkAction",- "title": "Kind",- "default": "ThinkAction"- },- "thought": {- "type": "string",- "title": "Thought",- "description": "The thought to log."- }- },- "additionalProperties": false,- "type": "object",- "required": [- "thought"- ],- "title": "ThinkAction",- "description": "Action for logging a thought without making any changes."- },- "ThinkObservation": {- "properties": {- "kind": {- "type": "string",- "const": "ThinkObservation",- "title": "Kind",- "default": "ThinkObservation"- },- "content": {- "type": "string",- "title": "Content",- "description": "Confirmation message.",- "default": "Your thought has been logged."- }- },- "additionalProperties": false,- "type": "object",- "title": "ThinkObservation",- "description": "Observation returned after logging a thought."- },- "ThinkingBlock": {- "properties": {- "type": {- "type": "string",- "const": "thinking",- "title": "Type",- "default": "thinking"- },- "thinking": {- "type": "string",- "title": "Thinking",- "description": "The thinking content"- },- "signature": {- "type": "string",- "title": "Signature",- "description": "Cryptographic signature for the thinking block"- }- },- "type": "object",- "required": [- "thinking",- "signature"- ],- "title": "ThinkingBlock",- "description": "Anthropic thinking block for extended thinking feature.\n\nThis represents the raw thinking blocks returned by Anthropic models\nwhen extended thinking is enabled. These blocks must be preserved\nand passed back to the API for tool use scenarios."- },- "TokenUsage": {- "properties": {- "model": {- "type": "string",- "title": "Model",- "default": ""- },- "prompt_tokens": {- "type": "integer",- "minimum": 0.0,- "title": "Prompt Tokens",- "description": "Prompt tokens must be non-negative",- "default": 0- },- "completion_tokens": {- "type": "integer",- "minimum": 0.0,- "title": "Completion Tokens",- "description": "Completion tokens must be non-negative",- "default": 0- },- "cache_read_tokens": {- "type": "integer",- "minimum": 0.0,- "title": "Cache Read Tokens",- "description": "Cache read tokens must be non-negative",- "default": 0- },- "cache_write_tokens": {- "type": "integer",- "minimum": 0.0,- "title": "Cache Write Tokens",- "description": "Cache write tokens must be non-negative",- "default": 0- },- "reasoning_tokens": {- "type": "integer",- "minimum": 0.0,- "title": "Reasoning Tokens",- "description": "Reasoning tokens must be non-negative",- "default": 0- },- "context_window": {- "type": "integer",- "minimum": 0.0,- "title": "Context Window",- "description": "Context window must be non-negative",- "default": 0- },- "per_turn_token": {- "type": "integer",- "minimum": 0.0,- "title": "Per Turn Token",- "description": "Per turn tokens must be non-negative",- "default": 0- },- "response_id": {- "type": "string",- "title": "Response Id",- "default": ""- }- },- "type": "object",- "title": "TokenUsage",- "description": "Metric tracking detailed token usage per completion call."- },- "Tool": {- "properties": {- "name": {- "type": "string",- "title": "Name",- "description": "Name of the tool class, e.g., 'BashTool'. Import it from an `openhands.tools.<module>` subpackage.",- "examples": [- "BashTool",- "FileEditorTool",- "TaskTrackerTool"- ]- },- "params": {- "additionalProperties": true,- "type": "object",- "title": "Params",- "description": "Parameters for the tool's .create() method, e.g., {'working_dir': '/app'}",- "examples": [- {- "working_dir": "/workspace"- }- ]- }- },- "type": "object",- "required": [- "name"- ],- "title": "Tool",- "description": "Defines a tool to be initialized for the agent.\n\nThis is only used in agent-sdk for type schema for server use."- },- "UpdateConversationRequest": {- "properties": {- "title": {- "type": "string",- "maxLength": 200,- "minLength": 1,- "title": "Title",- "description": "New conversation title"- }- },- "type": "object",- "required": [- "title"- ],- "title": "UpdateConversationRequest",- "description": "Payload to update conversation metadata."- },- "UpdateSecretsRequest": {- "properties": {- "secrets": {- "additionalProperties": {- "oneOf": [- {- "$ref": "#/components/schemas/LookupSecret"- },- {- "$ref": "#/components/schemas/StaticSecret"- }- ],- "discriminator": {- "propertyName": "kind",- "mapping": {- "openhands__sdk__conversation__secret_source__LookupSecret-Input__1": "#/components/schemas/LookupSecret",- "openhands__sdk__conversation__secret_source__StaticSecret-Input__1": "#/components/schemas/StaticSecret"- }- }- },- "type": "object",- "title": "Secrets",- "description": "Dictionary mapping secret keys to values"- }- },- "type": "object",- "required": [- "secrets"- ],- "title": "UpdateSecretsRequest",- "description": "Payload to update secrets in a conversation."- },- "UserRejectObservation": {- "properties": {- "kind": {- "type": "string",- "const": "UserRejectObservation",- "title": "Kind",- "default": "UserRejectObservation"- },- "id": {- "type": "string",- "title": "Id",- "description": "Unique event id (ULID/UUID)"- },- "timestamp": {- "type": "string",- "title": "Timestamp",- "description": "Event timestamp"- },- "source": {- "type": "string",- "enum": [- "agent",- "user",- "environment"- ],- "title": "Source",- "default": "environment"- },- "tool_name": {- "type": "string",- "title": "Tool Name",- "description": "The tool name that this observation is responding to"- },- "tool_call_id": {- "type": "string",- "title": "Tool Call Id",- "description": "The tool call id that this observation is responding to"- },- "rejection_reason": {- "type": "string",- "title": "Rejection Reason",- "description": "Reason for rejecting the action",- "default": "User rejected the action"- },- "action_id": {- "type": "string",- "title": "Action Id",- "description": "The action id that this observation is responding to"- }- },- "additionalProperties": false,- "type": "object",- "required": [- "tool_name",- "tool_call_id",- "action_id"- ],- "title": "UserRejectObservation",- "description": "Observation when user rejects an action in confirmation mode."- },- "VSCodeUrlResponse": {- "properties": {- "url": {- "anyOf": [- {- "type": "string"- },- {- "type": "null"- }- ],- "title": "Url"- }- },- "type": "object",- "required": [- "url"- ],- "title": "VSCodeUrlResponse",- "description": "Response model for VSCode URL."- },- "ValidationError": {- "properties": {- "loc": {- "items": {- "anyOf": [- {- "type": "string"- },- {- "type": "integer"- }- ]- },- "type": "array",- "title": "Location"- },- "msg": {- "type": "string",- "title": "Message"- },- "type": {- "type": "string",- "title": "Error Type"- }- },- "type": "object",- "required": [- "loc",- "msg",- "type"- ],- "title": "ValidationError"- },- "Event": {- "oneOf": [- {- "$ref": "#/components/schemas/Condensation"- },- {- "$ref": "#/components/schemas/CondensationRequest"- },- {- "$ref": "#/components/schemas/CondensationSummaryEvent"- },- {- "$ref": "#/components/schemas/ConversationStateUpdateEvent"- },- {- "$ref": "#/components/schemas/ActionEvent"- },- {- "$ref": "#/components/schemas/MessageEvent"- },- {- "$ref": "#/components/schemas/AgentErrorEvent"- },- {- "$ref": "#/components/schemas/ObservationEvent"- },- {- "$ref": "#/components/schemas/UserRejectObservation"- },- {- "$ref": "#/components/schemas/SystemPromptEvent"- },- {- "$ref": "#/components/schemas/PauseEvent"- }- ],- "discriminator": {- "propertyName": "kind",- "mapping": {- "openhands__sdk__event__condenser__Condensation-Output__1": "#/components/schemas/Condensation",- "openhands__sdk__event__condenser__CondensationRequest-Output__1": "#/components/schemas/CondensationRequest",- "openhands__sdk__event__condenser__CondensationSummaryEvent-Output__1": "#/components/schemas/CondensationSummaryEvent",- "openhands__sdk__event__conversation_state__ConversationStateUpdateEvent-Output__1": "#/components/schemas/ConversationStateUpdateEvent",- "openhands__sdk__event__llm_convertible__action__ActionEvent-Output__1": "#/components/schemas/ActionEvent",- "openhands__sdk__event__llm_convertible__message__MessageEvent-Output__1": "#/components/schemas/MessageEvent",- "openhands__sdk__event__llm_convertible__observation__AgentErrorEvent-Output__1": "#/components/schemas/AgentErrorEvent",- "openhands__sdk__event__llm_convertible__observation__ObservationEvent-Output__1": "#/components/schemas/ObservationEvent",- "openhands__sdk__event__llm_convertible__observation__UserRejectObservation-Output__1": "#/components/schemas/UserRejectObservation",- "openhands__sdk__event__llm_convertible__system__SystemPromptEvent-Output__1": "#/components/schemas/SystemPromptEvent",- "openhands__sdk__event__user_action__PauseEvent-Output__1": "#/components/schemas/PauseEvent"- }- },- "title": "Event"- },- "BashEventBase": {- "oneOf": [- {- "$ref": "#/components/schemas/BashCommand"- },- {- "$ref": "#/components/schemas/BashOutput"- }- ],- "discriminator": {- "propertyName": "kind",- "mapping": {- "openhands__agent_server__models__BashCommand-Output__1": "#/components/schemas/BashCommand",- "openhands__agent_server__models__BashOutput-Output__1": "#/components/schemas/BashOutput"- }- },- "title": "BashEventBase"- },- "Action": {- "oneOf": [- {- "$ref": "#/components/schemas/MCPToolAction"- },- {- "$ref": "#/components/schemas/FinishAction"- },- {- "$ref": "#/components/schemas/ThinkAction"- },- {- "$ref": "#/components/schemas/BrowserClickAction"- },- {- "$ref": "#/components/schemas/BrowserCloseTabAction"- },- {- "$ref": "#/components/schemas/BrowserGetContentAction"- },- {- "$ref": "#/components/schemas/BrowserGetStateAction"- },- {- "$ref": "#/components/schemas/BrowserGoBackAction"- },- {- "$ref": "#/components/schemas/BrowserListTabsAction"- },- {- "$ref": "#/components/schemas/BrowserNavigateAction"- },- {- "$ref": "#/components/schemas/BrowserScrollAction"- },- {- "$ref": "#/components/schemas/BrowserSwitchTabAction"- },- {- "$ref": "#/components/schemas/BrowserTypeAction"- },- {- "$ref": "#/components/schemas/ExecuteBashAction"- },- {- "$ref": "#/components/schemas/FileEditorAction"- },- {- "$ref": "#/components/schemas/TaskTrackerAction"- }- ],- "discriminator": {- "propertyName": "kind",- "mapping": {- "openhands__sdk__mcp__definition__MCPToolAction-Output__1": "#/components/schemas/MCPToolAction",- "openhands__sdk__tool__builtins__finish__FinishAction-Output__1": "#/components/schemas/FinishAction",- "openhands__sdk__tool__builtins__think__ThinkAction-Output__1": "#/components/schemas/ThinkAction",- "openhands__tools__browser_use__definition__BrowserClickAction-Output__1": "#/components/schemas/BrowserClickAction",- "openhands__tools__browser_use__definition__BrowserCloseTabAction-Output__1": "#/components/schemas/BrowserCloseTabAction",- "openhands__tools__browser_use__definition__BrowserGetContentAction-Output__1": "#/components/schemas/BrowserGetContentAction",- "openhands__tools__browser_use__definition__BrowserGetStateAction-Output__1": "#/components/schemas/BrowserGetStateAction",- "openhands__tools__browser_use__definition__BrowserGoBackAction-Output__1": "#/components/schemas/BrowserGoBackAction",- "openhands__tools__browser_use__definition__BrowserListTabsAction-Output__1": "#/components/schemas/BrowserListTabsAction",- "openhands__tools__browser_use__definition__BrowserNavigateAction-Output__1": "#/components/schemas/BrowserNavigateAction",- "openhands__tools__browser_use__definition__BrowserScrollAction-Output__1": "#/components/schemas/BrowserScrollAction",- "openhands__tools__browser_use__definition__BrowserSwitchTabAction-Output__1": "#/components/schemas/BrowserSwitchTabAction",- "openhands__tools__browser_use__definition__BrowserTypeAction-Output__1": "#/components/schemas/BrowserTypeAction",- "openhands__tools__execute_bash__definition__ExecuteBashAction-Output__1": "#/components/schemas/ExecuteBashAction",- "openhands__tools__file_editor__definition__FileEditorAction-Output__1": "#/components/schemas/FileEditorAction",- "openhands__tools__task_tracker__definition__TaskTrackerAction-Output__1": "#/components/schemas/TaskTrackerAction"- }- },- "title": "Action"- },- "CondenserBase": {- "oneOf": [- {- "$ref": "#/components/schemas/LLMSummarizingCondenser"- },- {- "$ref": "#/components/schemas/NoOpCondenser"- },- {- "$ref": "#/components/schemas/PipelineCondenser-Output"- }- ],- "discriminator": {- "propertyName": "kind",- "mapping": {- "openhands__sdk__context__condenser__llm_summarizing_condenser__LLMSummarizingCondenser-Output__1": "#/components/schemas/LLMSummarizingCondenser",- "openhands__sdk__context__condenser__no_op_condenser__NoOpCondenser-Output__1": "#/components/schemas/NoOpCondenser",- "openhands__sdk__context__condenser__pipeline_condenser__PipelineCondenser-Output__1": "#/components/schemas/PipelineCondenser-Output"- }- },- "title": "CondenserBase"- },- "BaseWorkspace": {- "oneOf": [- {- "$ref": "#/components/schemas/LocalWorkspace"- },- {- "$ref": "#/components/schemas/RemoteWorkspace"- }- ],- "discriminator": {- "propertyName": "kind",- "mapping": {- "openhands__sdk__workspace__local__LocalWorkspace-Output__1": "#/components/schemas/LocalWorkspace",- "openhands__sdk__workspace__remote__base__RemoteWorkspace-Output__1": "#/components/schemas/RemoteWorkspace"- }- },- "title": "BaseWorkspace"- },- "ConfirmationPolicyBase": {- "oneOf": [- {- "$ref": "#/components/schemas/AlwaysConfirm"- },- {- "$ref": "#/components/schemas/ConfirmRisky"- },- {- "$ref": "#/components/schemas/NeverConfirm"- }- ],- "discriminator": {- "propertyName": "kind",- "mapping": {- "openhands__sdk__security__confirmation_policy__AlwaysConfirm-Output__1": "#/components/schemas/AlwaysConfirm",- "openhands__sdk__security__confirmation_policy__ConfirmRisky-Output__1": "#/components/schemas/ConfirmRisky",- "openhands__sdk__security__confirmation_policy__NeverConfirm-Output__1": "#/components/schemas/NeverConfirm"- }- },- "title": "ConfirmationPolicyBase"- },- "Observation": {- "oneOf": [- {- "$ref": "#/components/schemas/MCPToolObservation"- },- {- "$ref": "#/components/schemas/FinishObservation"- },- {- "$ref": "#/components/schemas/ThinkObservation"- },- {- "$ref": "#/components/schemas/BrowserObservation"- },- {- "$ref": "#/components/schemas/ExecuteBashObservation"- },- {- "$ref": "#/components/schemas/FileEditorObservation"- },- {- "$ref": "#/components/schemas/TaskTrackerObservation"- }- ],- "discriminator": {- "propertyName": "kind",- "mapping": {- "openhands__sdk__mcp__definition__MCPToolObservation-Output__1": "#/components/schemas/MCPToolObservation",- "openhands__sdk__tool__builtins__finish__FinishObservation-Output__1": "#/components/schemas/FinishObservation",- "openhands__sdk__tool__builtins__think__ThinkObservation-Output__1": "#/components/schemas/ThinkObservation",- "openhands__tools__browser_use__definition__BrowserObservation-Output__1": "#/components/schemas/BrowserObservation",- "openhands__tools__execute_bash__definition__ExecuteBashObservation-Output__1": "#/components/schemas/ExecuteBashObservation",- "openhands__tools__file_editor__definition__FileEditorObservation-Output__1": "#/components/schemas/FileEditorObservation",- "openhands__tools__task_tracker__definition__TaskTrackerObservation-Output__1": "#/components/schemas/TaskTrackerObservation"- }- },- "title": "Observation"- }- }- }-}diff --git a/vendor/openhands-typescript-client/tsconfig.json b/vendor/openhands-typescript-client/tsconfig.jsondeleted file mode 100644index 6cc29d41cd..0000000000--- a/vendor/openhands-typescript-client/tsconfig.json+++ /dev/null@@ -1,27 +0,0 @@-{- "compilerOptions": {- "target": "ES2020",- "module": "ESNext",- "lib": ["ES2022", "DOM"],- "types": ["node", "jest"],- "outDir": "./dist",- "rootDir": "./src",- "strict": true,- "esModuleInterop": true,- "skipLibCheck": true,- "forceConsistentCasingInFileNames": true,- "declaration": true,- "declarationMap": true,- "sourceMap": true,- "resolveJsonModule": true,- "moduleResolution": "bundler"- },- "include": [- "src/**/*"- ],- "exclude": [- "node_modules",- "dist",- "**/*.test.ts"- ]-}\ No newline at end of filediff --git a/vite.config.ts b/vite.config.tsindex 6f1c9373cf..de2dcff3f3 100644--- a/vite.config.ts+++ b/vite.config.ts@@ -120,11 +120,7 @@ export default defineConfig(({ mode }) => {test: {environment: "jsdom",setupFiles: ["vitest.setup.ts"],- exclude: [- ...configDefaults.exclude,- "tests",- "vendor/openhands-typescript-client/**",- ],+ exclude: [...configDefaults.exclude, "tests"],coverage: {reporter: ["text", "json", "html", "lcov", "text-summary"],reportsDirectory: "coverage",