refactor: update path registry-new to registry

This commit is contained in:
2026-09-10 21:14:53 +05:00
parent 0160b316c9
commit 75f6891e7c
21 changed files with 12 additions and 13 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
import { CATEGORY_IDS } from "./categories"; import { CATEGORY_IDS } from "./categories";
import { TOOLS, type ToolEntry } from "./registry-new"; import { TOOLS, type ToolEntry } from "./registry";
export type PreviewGroup = { export type PreviewGroup = {
id: string; id: string;
+1 -1
View File
@@ -4,7 +4,7 @@
import SchemaResultTile from "$lib/components/SchemaResultTile.svelte"; import SchemaResultTile from "$lib/components/SchemaResultTile.svelte";
import SchemaSourceTile from "$lib/components/SchemaSourceTile.svelte"; import SchemaSourceTile from "$lib/components/SchemaSourceTile.svelte";
import type { PixelImage } from "$lib/core/types"; import type { PixelImage } from "$lib/core/types";
import type { InputMode, ResultKind } from "$lib/registry-new"; import type { InputMode, ResultKind } from "$lib/registry";
interface Props { interface Props {
inputMode: InputMode; inputMode: InputMode;
@@ -1,7 +1,7 @@
<script lang="ts"> <script lang="ts">
import { toDataUrl } from "$lib/core/io"; import { toDataUrl } from "$lib/core/io";
import type { PixelImage } from "$lib/core/types"; import type { PixelImage } from "$lib/core/types";
import type { InputMode } from "$lib/registry-new"; import type { InputMode } from "$lib/registry";
import SchemaTextSource from "./SchemaTextSource.svelte"; import SchemaTextSource from "./SchemaTextSource.svelte";
interface Props { interface Props {
+1 -1
View File
@@ -7,7 +7,7 @@
import type { PixelImage } from "$lib/core/types"; import type { PixelImage } from "$lib/core/types";
import { execute } from "$lib/executor"; import { execute } from "$lib/executor";
import { t } from "$lib/i18n/t"; import { t } from "$lib/i18n/t";
import type { ToolEntry } from "$lib/registry-new"; import type { ToolEntry } from "$lib/registry";
import { import {
defaultSchemaParams, defaultSchemaParams,
sanitizeSchemaParams, sanitizeSchemaParams,
+1 -1
View File
@@ -1,7 +1,7 @@
import { ToolError } from "$lib/core/errors"; import { ToolError } from "$lib/core/errors";
import type { PixelImage } from "$lib/core/types"; import type { PixelImage } from "$lib/core/types";
import type { ToolContext, ToolEntry, ToolResult } from "$lib/registry";
import { sanitizeSchemaParams } from "$lib/registry-schema"; import { sanitizeSchemaParams } from "$lib/registry-schema";
import type { ToolContext, ToolEntry, ToolResult } from "$lib/registry-new";
/** Вход единой точки исполнения. `source`/`text` — по контракту `tool.input`. */ /** Вход единой точки исполнения. `source`/`text` — по контракту `tool.input`. */
export type ExecuteContext = { export type ExecuteContext = {
+1 -1
View File
@@ -1,7 +1,7 @@
/// <reference lib="webworker" /> /// <reference lib="webworker" />
import { ToolError } from "$lib/core/errors"; import { ToolError } from "$lib/core/errors";
import type { PixelImage } from "$lib/core/types"; import type { PixelImage } from "$lib/core/types";
import { getTool } from "$lib/registry-new"; import { getTool } from "$lib/registry";
import { sanitizeSchemaParams } from "$lib/registry-schema"; import { sanitizeSchemaParams } from "$lib/registry-schema";
type WorkerRequest = { type WorkerRequest = {
+2 -3
View File
@@ -1,7 +1,6 @@
import { describe, expect, it } from "vitest";
// @ts-expect-error node types are not wired into svelte-check; vitest resolves fine
import { readFileSync } from "node:fs";
import { Color } from "@panmdaa/colors"; import { Color } from "@panmdaa/colors";
import { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
declare const process: { cwd(): string }; declare const process: { cwd(): string };
@@ -1,7 +1,7 @@
import { describe, expect, it } from "vitest"; import { describe, expect, it } from "vitest";
import { TOOLS } from ".";
import { PREVIEW_GROUPS } from "../catalog"; import { PREVIEW_GROUPS } from "../catalog";
import type { PixelImage } from "../core/types"; import type { PixelImage } from "../core/types";
import { TOOLS } from "../registry-new";
import { defaultSchemaParams, sanitizeSchemaParams } from "../registry-schema"; import { defaultSchemaParams, sanitizeSchemaParams } from "../registry-schema";
import type { ToolResult } from "./types"; import type { ToolResult } from "./types";
+1 -1
View File
@@ -23,7 +23,7 @@
import Toggle from "$lib/components/ui/Toggle.svelte"; import Toggle from "$lib/components/ui/Toggle.svelte";
import { Download, ImageOff, Plus, Trash2 } from "@lucide/svelte"; import { Download, ImageOff, Plus, Trash2 } from "@lucide/svelte";
import { TOOLS } from "$lib/registry-new"; import { TOOLS } from "$lib/registry";
import { TOOL_ICONS } from "$lib/tool-icons"; import { TOOL_ICONS } from "$lib/tool-icons";
let mode = $state("preview"); let mode = $state("preview");
+1 -1
View File
@@ -1,7 +1,7 @@
<script lang="ts"> <script lang="ts">
import EmptyState from "$lib/components/EmptyState.svelte"; import EmptyState from "$lib/components/EmptyState.svelte";
import SchemaToolView from "$lib/components/SchemaToolView.svelte"; import SchemaToolView from "$lib/components/SchemaToolView.svelte";
import { getTool } from "$lib/registry-new"; import { getTool } from "$lib/registry";
import { SlidersHorizontal as ToolIcon } from "@lucide/svelte"; import { SlidersHorizontal as ToolIcon } from "@lucide/svelte";
interface Props { interface Props {
+1 -1
View File
@@ -1,4 +1,4 @@
import { TOOLS } from "$lib/registry-new"; import { TOOLS } from "$lib/registry";
export const prerender = true; export const prerender = true;