chore: ⬆️ Upgrade dependencies

This commit is contained in:
Jesse Wierzbinski 2025-12-10 21:26:02 +01:00
parent a951a08073
commit b35e54c9b4
No known key found for this signature in database
11 changed files with 370 additions and 285 deletions

View file

@ -1,25 +1,21 @@
import { defineCommand } from "@clerc/core";
import { config } from "@versia-server/config";
import { SonicIndexType, searchManager } from "@versia-server/kit/search";
// @ts-expect-error - Root import is required or the Clec type definitions won't work
// biome-ignore lint/correctness/noUnusedImports: Root import is required or the Clec type definitions won't work
import { defineCommand, type Root } from "clerc";
import ora from "ora";
export const rebuildIndexCommand = defineCommand(
{
name: "index rebuild",
description: "Rebuild the search index.",
parameters: ["<type>"],
flags: {
"batch-size": {
description: "Number of records to process at once",
type: Number,
alias: "b",
default: 100,
},
export const rebuildIndexCommand = defineCommand({
name: "index rebuild",
description: "Rebuild the search index.",
parameters: ["<type>"],
flags: {
"batch-size": {
description: "Number of records to process at once",
type: Number,
alias: "b",
default: 100,
},
},
async (context) => {
handler: async (context) => {
const { "batch-size": batchSize } = context.flags;
const { type } = context.parameters;
@ -59,4 +55,4 @@ export const rebuildIndexCommand = defineCommand(
spinner.succeed("Search indexes rebuilt");
},
);
});