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 { TOOLS, type ToolEntry } from "./registry-new";
import { TOOLS, type ToolEntry } from "./registry";
export type PreviewGroup = {
id: string;
+1 -1
View File
@@ -4,7 +4,7 @@
import SchemaResultTile from "$lib/components/SchemaResultTile.svelte";
import SchemaSourceTile from "$lib/components/SchemaSourceTile.svelte";
import type { PixelImage } from "$lib/core/types";
import type { InputMode, ResultKind } from "$lib/registry-new";
import type { InputMode, ResultKind } from "$lib/registry";
interface Props {
inputMode: InputMode;
@@ -1,7 +1,7 @@
<script lang="ts">
import { toDataUrl } from "$lib/core/io";
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";
interface Props {
+1 -1
View File
@@ -7,7 +7,7 @@
import type { PixelImage } from "$lib/core/types";
import { execute } from "$lib/executor";
import { t } from "$lib/i18n/t";
import type { ToolEntry } from "$lib/registry-new";
import type { ToolEntry } from "$lib/registry";
import {
defaultSchemaParams,
sanitizeSchemaParams,
+1 -1
View File
@@ -1,7 +1,7 @@
import { ToolError } from "$lib/core/errors";
import type { PixelImage } from "$lib/core/types";
import type { ToolContext, ToolEntry, ToolResult } from "$lib/registry";
import { sanitizeSchemaParams } from "$lib/registry-schema";
import type { ToolContext, ToolEntry, ToolResult } from "$lib/registry-new";
/** Вход единой точки исполнения. `source`/`text` — по контракту `tool.input`. */
export type ExecuteContext = {
+1 -1
View File
@@ -1,7 +1,7 @@
/// <reference lib="webworker" />
import { ToolError } from "$lib/core/errors";
import type { PixelImage } from "$lib/core/types";
import { getTool } from "$lib/registry-new";
import { getTool } from "$lib/registry";
import { sanitizeSchemaParams } from "$lib/registry-schema";
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 { readFileSync } from "node:fs";
import { describe, expect, it } from "vitest";
declare const process: { cwd(): string };
@@ -1,7 +1,7 @@
import { describe, expect, it } from "vitest";
import { TOOLS } from ".";
import { PREVIEW_GROUPS } from "../catalog";
import type { PixelImage } from "../core/types";
import { TOOLS } from "../registry-new";
import { defaultSchemaParams, sanitizeSchemaParams } from "../registry-schema";
import type { ToolResult } from "./types";