Skip to content

armgit / papra

Public Imported from GitHub
0

The minimalistic document archiving platform.

feat(cli): setup base cli (#274)

Corentin Thomasset741045509367
diff --git a/.github/workflows/ci-packages-cli.yaml b/.github/workflows/ci-packages-cli.yaml
new file mode 100644
index 00000000..0217b1d8
--- /dev/null
+++ b/.github/workflows/ci-packages-cli.yaml
@@ -0,0 +1,44 @@
+name: CI - CLI
+
+on:
+ pull_request:
+ push:
+ branches:
+ - main
+
+jobs:
+ ci-packages-cli:
+ name: CI - CLI
+ runs-on: ubuntu-latest
+ defaults:
+ run:
+ working-directory: packages/cli
+
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
+
+ - name: Install pnpm
+ uses: pnpm/action-setup@v4
+
+ - uses: actions/setup-node@v4
+ with:
+ node-version: 22
+ cache: 'pnpm'
+
+ - name: Install dependencies
+ run: pnpm i
+
+ - name: Build related packages
+ run: cd ../api-sdk && pnpm build
+
+ - name: Run linters
+ run: pnpm lint
+
+ - name: Type check
+ run: pnpm typecheck
+
+ # - name: Run unit test
+ # run: pnpm test
+
+ - name: Build the app
+ run: pnpm build
\ No newline at end of file
diff --git a/packages/cli/bin/papra.mjs b/packages/cli/bin/papra.mjs
new file mode 100644
index 00000000..c7e774dd
--- /dev/null
+++ b/packages/cli/bin/papra.mjs
@@ -0,0 +1,4 @@
+#!/usr/bin/env node
+'use strict';
+
+import '../dist/cli.mjs';
diff --git a/packages/cli/build.config.ts b/packages/cli/build.config.ts
new file mode 100644
index 00000000..43044e9c
--- /dev/null
+++ b/packages/cli/build.config.ts
@@ -0,0 +1,13 @@
+import { defineBuildConfig } from 'unbuild';
+
+export default defineBuildConfig({
+ entries: [
+ 'src/cli',
+ ],
+ clean: true,
+ declaration: true,
+ sourcemap: true,
+ rollup: {
+ emitCJS: true,
+ },
+});
diff --git a/packages/cli/eslint.config.js b/packages/cli/eslint.config.js
new file mode 100644
index 00000000..e0175daf
--- /dev/null
+++ b/packages/cli/eslint.config.js
@@ -0,0 +1,21 @@
+import antfu from '@antfu/eslint-config';
+
+export default antfu({
+ stylistic: {
+ semi: true,
+ },
+
+ rules: {
+ // To allow export on top of files
+ 'ts/no-use-before-define': ['error', { allowNamedExports: true, functions: false }],
+ 'curly': ['error', 'all'],
+ 'vitest/consistent-test-it': ['error', { fn: 'test' }],
+ 'ts/consistent-type-definitions': ['error', 'type'],
+ 'style/brace-style': ['error', '1tbs', { allowSingleLine: false }],
+ 'unused-imports/no-unused-vars': ['error', {
+ argsIgnorePattern: '^_',
+ varsIgnorePattern: '^_',
+ caughtErrorsIgnorePattern: '^_',
+ }],
+ },
+});
diff --git a/packages/cli/package.json b/packages/cli/package.json
new file mode 100644
index 00000000..84184e41
--- /dev/null
+++ b/packages/cli/package.json
@@ -0,0 +1,61 @@
+{
+ "name": "@papra/cli",
+ "type": "module",
+ "version": "0.0.0",
+ "packageManager": "[email protected]",
+ "description": "Command line interface for Papra, the document archiving platform.",
+ "author": "Corentin Thomasset <[email protected]> (https://corentin.tech)",
+ "license": "AGPL-3.0-or-later",
+ "repository": {
+ "type": "git",
+ "url": "https://github.com/papra-app/papra.git",
+ "directory": "packages/cli"
+ },
+ "bugs": {
+ "url": "https://github.com/papra-app/papra/issues"
+ },
+ "keywords": [
+ "papra",
+ "cli",
+ "document",
+ "archiving",
+ "storage"
+ ],
+ "main": "./dist/cli.cjs",
+ "module": "./dist/cli.mjs",
+ "bin": {
+ "papra": "./bin/papra.mjs"
+ },
+ "files": [
+ "dist"
+ ],
+ "scripts": {
+ "dev": "tsx ./src/cli.ts",
+ "lint": "eslint .",
+ "lint:fix": "eslint --fix .",
+ "test": "vitest run",
+ "test:watch": "vitest watch",
+ "typecheck": "tsc --noEmit",
+ "build": "unbuild"
+ },
+ "dependencies": {
+ "@clack/prompts": "^0.10.1",
+ "@corentinth/chisels": "^1.3.1",
+ "@papra/api-sdk": "workspace:*",
+ "citty": "^0.1.6",
+ "conf": "^13.1.0",
+ "mime-types": "^3.0.1",
+ "ofetch": "^1.4.1",
+ "valibot": "1.0.0-beta.10"
+ },
+ "devDependencies": {
+ "@antfu/eslint-config": "catalog:",
+ "@types/mime-types": "^2.1.4",
+ "@types/node": "^22.15.3",
+ "eslint": "catalog:",
+ "tsx": "^4.19.3",
+ "typescript": "catalog:",
+ "unbuild": "^3.5.0",
+ "vitest": "catalog:"
+ }
+}
diff --git a/packages/cli/src/cli.ts b/packages/cli/src/cli.ts
new file mode 100644
index 00000000..f60a59d2
--- /dev/null
+++ b/packages/cli/src/cli.ts
@@ -0,0 +1,19 @@
+import { defineCommand, runMain } from 'citty';
+import { description, version } from '../package.json';
+import { configCommand } from './commands/config/config.command';
+import { documentsCommand } from './commands/documents/documents.command';
+import { cliName } from './config';
+
+const main = defineCommand({
+ meta: {
+ name: cliName,
+ version,
+ description,
+ },
+ subCommands: {
+ documents: documentsCommand,
+ config: configCommand,
+ },
+});
+
+runMain(main);
diff --git a/packages/cli/src/client.models.ts b/packages/cli/src/client.models.ts
new file mode 100644
index 00000000..b3c0e974
--- /dev/null
+++ b/packages/cli/src/client.models.ts
@@ -0,0 +1,30 @@
+import * as p from '@clack/prompts';
+import { FetchError } from 'ofetch';
+
+export function reportClientError(error: Error) {
+ const code = getCauseCode(error);
+
+ if (error instanceof FetchError && error.data?.error?.message) {
+ p.log.error(`Error: ${error.data.error.message}`);
+ return;
+ }
+
+ if (typeof code === 'string' && ['ERR_NETWORK', 'ECONNREFUSED'].includes(code)) {
+ p.log.error(`Failed to connect to the server: ${code}\n${error.message}`);
+ return;
+ }
+
+ p.log.error(`${error.message}`);
+}
+
+function getCauseCode(error: Error & { code?: unknown }): unknown | null {
+ if (error.code) {
+ return error.code;
+ }
+
+ if (error.cause instanceof Error) {
+ return getCauseCode(error.cause);
+ }
+
+ return null;
+}
diff --git a/packages/cli/src/commands/commands.models.ts b/packages/cli/src/commands/commands.models.ts
new file mode 100644
index 00000000..7550149b
--- /dev/null
+++ b/packages/cli/src/commands/commands.models.ts
@@ -0,0 +1,7 @@
+export function ensureString(value: unknown): string {
+ if (typeof value !== 'string') {
+ throw new TypeError(`Expected a string, got ${typeof value}: ${value}`);
+ }
+
+ return value;
+}
diff --git a/packages/cli/src/commands/config/appdata.ts b/packages/cli/src/commands/config/appdata.ts
new file mode 100644
index 00000000..1c2e2521
--- /dev/null
+++ b/packages/cli/src/commands/config/appdata.ts
@@ -0,0 +1,41 @@
+import { homedir as getHomedir, platform as getPlatform } from 'node:os';
+import { join } from 'node:path';
+import process from 'node:process';
+
+function getWindowsConfigDir() {
+ return join(getHomedir(), 'AppData', 'Roaming');
+}
+
+function getUnixConfigDir() {
+ return join(getHomedir(), '.config');
+}
+
+function getMacOSConfigDir() {
+ return join(getHomedir(), 'Library', 'Application Support');
+}
+
+export function getConfigDir({ platform = getPlatform() }: { platform?: NodeJS.Platform } = {}) {
+ const customAppData = process.env.APPDATA;
+
+ if (customAppData) {
+ return customAppData;
+ }
+
+ if (platform === 'win32') {
+ return getWindowsConfigDir();
+ }
+
+ if (platform === 'darwin') {
+ return getMacOSConfigDir();
+ }
+
+ if (platform === 'linux') {
+ return getUnixConfigDir();
+ }
+
+ return getUnixConfigDir();
+}
+
+export function getConfigFilePath() {
+ return join(getConfigDir(), 'papra', 'cli', 'papra.cli-config.json');
+}
diff --git a/packages/cli/src/commands/config/config.command.ts b/packages/cli/src/commands/config/config.command.ts
new file mode 100644
index 00000000..a552f912
--- /dev/null
+++ b/packages/cli/src/commands/config/config.command.ts
@@ -0,0 +1,181 @@
+import process from 'node:process';
+import * as prompts from '@clack/prompts';
+import { defineCommand } from 'citty';
+import * as v from 'valibot';
+import { ensureString } from '../commands.models';
+import { apiKeySchema, apiUrlSchema } from './config.schemas';
+import { getConfig, updateConfig } from './config.services';
+
+function defineConfigSetter({
+ name,
+ description,
+ configKey,
+ argument,
+}: {
+ name: string;
+ description: string;
+ configKey: string;
+ argument: {
+ description: string;
+ valueHint: string;
+ promptLabel: string;
+ };
+}) {
+ return defineCommand({
+ meta: {
+ name,
+ description,
+ },
+ args: {
+ [name]: {
+ type: 'positional',
+ description: argument.description,
+ valueHint: argument.valueHint,
+ required: false,
+ },
+ },
+ run: async ({ args }) => {
+ const valueFromArgs = args[name];
+
+ if (valueFromArgs) {
+ await updateConfig(config => ({ ...config, [configKey]: ensureString(valueFromArgs) }));
+
+ prompts.log.info(`${name} set to ${valueFromArgs}`);
+
+ return;
+ }
+
+ const valueFromPrompt = await prompts.text({
+ message: argument.promptLabel,
+ });
+
+ if (prompts.isCancel(valueFromPrompt)) {
+ return;
+ }
+
+ await updateConfig(config => ({ ...config, [configKey]: valueFromPrompt }));
+
+ prompts.log.info(`${name} set to ${valueFromPrompt}`);
+ },
+ });
+}
+
+export const configCommand = defineCommand({
+ meta: {
+ name: 'config',
+ description: 'Manage Papra CLI configuration',
+ },
+ subCommands: {
+ init: defineCommand({
+ meta: {
+ name: 'init',
+ description: 'Initialize the configuration',
+ },
+ run: async () => {
+ const group = await prompts.group(
+ {
+ apiUrl: () => prompts.text({
+ message: 'Enter your instance URL (e.g. https://api.papra.app)',
+ validate: (value) => {
+ const result = v.safeParser(apiUrlSchema)(value);
+
+ if (result.success) {
+ return undefined;
+ }
+
+ return result.issues.map(({ message }) => message).join('\n');
+ },
+ }),
+ apiKey: () => prompts.text({
+ message: `Enter your API key (can be be found in your User Settings)`,
+ validate: (value) => {
+ const result = v.safeParser(apiKeySchema)(value);
+
+ if (result.success) {
+ return undefined;
+ }
+
+ return result.issues.map(({ message }) => message).join('\n');
+ },
+ }),
+ },
+ {
+ onCancel: () => {
+ prompts.cancel('Configuration initialization cancelled');
+
+ process.exit(0);
+ },
+ },
+ );
+
+ await updateConfig(config => ({
+ ...config,
+ ...group,
+ }));
+
+ prompts.log.info('Configuration initialized!');
+ },
+ }),
+
+ list: defineCommand({
+ meta: {
+ name: 'list',
+ description: 'List all configuration values',
+ },
+ run: async () => {
+ const config = await getConfig();
+
+ const isEmpty = Object.keys(config).length === 0;
+
+ if (isEmpty) {
+ prompts.log.warn('No configuration values set');
+
+ return;
+ }
+
+ prompts.log.info(JSON.stringify(config, null, 2));
+ },
+ }),
+
+ set: defineCommand({
+ meta: {
+ name: 'set',
+ description: 'Set a configuration value',
+ },
+ subCommands: {
+ 'api-key': defineConfigSetter({
+ name: 'api-key',
+ description: 'Set the API key',
+ configKey: 'apiKey',
+ argument: {
+ description: 'The API key',
+ valueHint: 'your-api-key',
+ promptLabel: 'Enter the API key',
+ },
+ }),
+
+ 'api-url': defineConfigSetter({
+ name: 'api-url',
+ description: 'Set the API URL',
+ configKey: 'apiUrl',
+ argument: {
+ description: 'The API URL',
+ valueHint: 'https://api.papra.app',
+ promptLabel: 'Enter the API URL',
+ },
+ }),
+
+ 'default-org-id': defineConfigSetter({
+ name: 'default-org-id',
+ description: 'Set a default organization ID to use when running commands',
+ configKey: 'defaultOrganizationId',
+ argument: {
+ description: 'The default organization ID',
+ valueHint: 'organization-id',
+ promptLabel: 'Enter the default organization ID',
+ },
+ }),
+ },
+ }),
+ },
+});
diff --git a/packages/cli/src/commands/config/config.schemas.ts b/packages/cli/src/commands/config/config.schemas.ts
new file mode 100644
index 00000000..dfa3f1fa
--- /dev/null
+++ b/packages/cli/src/commands/config/config.schemas.ts
@@ -0,0 +1,13 @@
+import * as v from 'valibot';
+
+export const apiUrlSchema = v.pipe(v.string(), v.url());
+export const apiKeySchema = v.string();
+export const defaultOrganizationIdSchema = v.string();
+
+export const cliConfigSchema = v.object({
+ apiUrl: v.optional(apiUrlSchema),
+ apiKey: v.optional(apiKeySchema),
+ defaultOrganizationId: v.optional(defaultOrganizationIdSchema),
+});
+
+export type CliConfig = v.InferOutput<typeof cliConfigSchema>;
diff --git a/packages/cli/src/commands/config/config.services.ts b/packages/cli/src/commands/config/config.services.ts
new file mode 100644
index 00000000..5182f7d9
--- /dev/null
+++ b/packages/cli/src/commands/config/config.services.ts
@@ -0,0 +1,39 @@
+import type { CliConfig } from './config.schemas';
+import fs from 'node:fs/promises';
+import { dirname } from 'node:path';
+import * as v from 'valibot';
+import { getConfigFilePath } from './appdata';
+import { cliConfigSchema } from './config.schemas';
+
+export async function getConfig(): Promise<CliConfig> {
+ const configFilePath = getConfigFilePath();
+ const fileExists = await fs.access(configFilePath).then(() => true).catch(() => false);
+
+ if (!fileExists) {
+ return {};
+ }
+
+ const config = await fs.readFile(configFilePath, 'utf-8');
+ return v.parse(cliConfigSchema, JSON.parse(config));
+}
+
+export async function setConfig(rawConfig: CliConfig) {
+ const config = v.parse(cliConfigSchema, rawConfig);
+
+ const configFilePath = getConfigFilePath();
+ const dir = dirname(configFilePath);
+
+ // ensure directory exists
+ await fs.mkdir(dir, { recursive: true });
+
+ await fs.writeFile(configFilePath, JSON.stringify(config, null, 2));
+}
+
+export async function updateConfig(fn: (config: CliConfig) => CliConfig) {
+ const currentConfig = await getConfig();
+ const newConfig = fn(currentConfig);
+
+ await setConfig(newConfig);
+
+ return newConfig;
+}
diff --git a/packages/cli/src/commands/documents/documents.arguments.ts b/packages/cli/src/commands/documents/documents.arguments.ts
new file mode 100644
index 00000000..d88a4c1c
--- /dev/null
+++ b/packages/cli/src/commands/documents/documents.arguments.ts
@@ -0,0 +1,6 @@
+export const organizationIdArgument = {
+ type: 'string',
+ description: 'The organization ID',
+ alias: 'o',
+ valueHint: 'organization-id',
+} as const;
diff --git a/packages/cli/src/commands/documents/documents.command.ts b/packages/cli/src/commands/documents/documents.command.ts
new file mode 100644
index 00000000..58d9a26b
--- /dev/null
+++ b/packages/cli/src/commands/documents/documents.command.ts
@@ -0,0 +1,12 @@
+import { defineCommand } from 'citty';
+import { importCommand } from './import/import.command';
+
+export const documentsCommand = defineCommand({
+ meta: {
+ name: 'documents',
+ description: 'Manage documents',
+ },
+ subCommands: {
+ import: importCommand,
+ },
+});
diff --git a/packages/cli/src/commands/documents/import/import.command.ts b/packages/cli/src/commands/documents/import/import.command.ts
new file mode 100644
index 00000000..ebf097fe
--- /dev/null
+++ b/packages/cli/src/commands/documents/import/import.command.ts
@@ -0,0 +1,75 @@
+import { readFile } from 'node:fs/promises';
+import { basename } from 'node:path';
+import process from 'node:process';
+import * as prompts from '@clack/prompts';
+import { safely } from '@corentinth/chisels';
+import { createClient } from '@papra/api-sdk';
+import { defineCommand } from 'citty';
+import mime from 'mime-types';
+import { reportClientError } from '../../../client.models';
+import { getConfig } from '../../config/config.services';
+import { organizationIdArgument } from '../documents.arguments';
+
+export const importCommand = defineCommand({
+ meta: {
+ name: 'import',
+ description: 'Import a document to Papra',
+ },
+ args: {
+ path: {
+ type: 'positional',
+ description: 'The path to the document to import',
+ alias: 'p',
+ valueHint: './document.pdf',
+ },
+ organizationId: organizationIdArgument,
+ },
+ run: async ({ args }) => {
+ const { apiKey, apiUrl, defaultOrganizationId } = await getConfig();
+
+ const orgId = args.organizationId ?? defaultOrganizationId;
+
+ if (!orgId) {
+ prompts.cancel('No organization ID provided');
+
+ process.exit(1);
+ }
+
+ if (!apiKey) {
+ prompts.cancel('No API key provided');
+
+ process.exit(1);
+ }
+
+ const client = createClient({
+ apiKey,
+ apiBaseUrl: apiUrl,
+ });
+
+ await prompts.tasks([
+ {
+ title: 'Importing document',
+ task: async () => {
+ const fileBuffer = await readFile(args.path);
+ const fileName = basename(args.path);
+ const mimeType = mime.lookup(fileName) || 'application/octet-stream';
+
+ const file = new File([fileBuffer], fileName, { type: mimeType });
+
+ const [, error] = await safely(client.uploadDocument({
+ organizationId: orgId,
+ file,
+ }));
+
+ if (error) {
+ reportClientError(error);
+
+ process.exit(1);
+ }
+
+ prompts.log.info('Document imported successfully');
+ },
+ },
+ ]);
+ },
+});
diff --git a/packages/cli/src/config.ts b/packages/cli/src/config.ts
new file mode 100644
index 00000000..0817deb5
--- /dev/null
+++ b/packages/cli/src/config.ts
@@ -0,0 +1 @@
+export const cliName = 'papra';
diff --git a/packages/cli/tsconfig.json b/packages/cli/tsconfig.json
new file mode 100644
index 00000000..82430e31
--- /dev/null
+++ b/packages/cli/tsconfig.json
@@ -0,0 +1,20 @@
+{
+ "compilerOptions": {
+ "target": "ESNext",
+ "moduleDetection": "force",
+ "module": "preserve",
+ "resolveJsonModule": true,
+ "types": ["node"],
+ "allowJs": true,
+ "strict": true,
+ "noImplicitOverride": true,
+ "noUncheckedIndexedAccess": true,
+ "noEmit": true,
+ "allowSyntheticDefaultImports": true,
+ "esModuleInterop": true,
+ "forceConsistentCasingInFileNames": true,
+ "isolatedModules": true,
+ "verbatimModuleSyntax": true,
+ "skipLibCheck": true
+ }
+}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index daf395e6..2b135353 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -11,7 +11,7 @@ catalogs:
version: 4.12.0
'@types/node':
specifier: ^22.5.4
- version: 22.13.10
+ version: 22.15.3
'@vitest/coverage-v8':
specifier: ^3.0.2
version: 3.0.2
@@ -40,26 +40,26 @@ importers:
dependencies:
'@astrojs/starlight':
specifier: ^0.34.1
astro:
specifier: ^5.7.5
sharp:
specifier: ^0.32.5
version: 0.32.6
starlight-links-validator:
specifier: ^0.16.0
starlight-theme-rapide:
specifier: ^0.5.0
zod-to-json-schema:
specifier: ^3.24.5
version: 3.24.5([email protected])
devDependencies:
'@antfu/eslint-config':
specifier: ^3.13.0
'@iconify-json/tabler':
specifier: ^1.1.120
version: 1.2.17
@@ -92,7 +92,7 @@ importers:
dependencies:
'@corentinth/chisels':
specifier: ^1.0.2
- version: 1.1.0
+ version: 1.3.1
'@kobalte/core':
specifier: ^0.13.7
version: 0.13.9([email protected])
@@ -161,7 +161,7 @@ importers:
version: 5.6.2
unocss-preset-animations:
specifier: ^1.1.0
unstorage:
specifier: ^1.14.4
version: 1.15.0(@azure/[email protected])([email protected])
@@ -171,7 +171,7 @@ importers:
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
'@iconify-json/tabler':
specifier: ^1.1.120
version: 1.2.17
@@ -183,7 +183,7 @@ importers:
version: 4.17.12
'@types/node':
specifier: 'catalog:'
- version: 22.13.10
+ version: 22.15.3
eslint:
specifier: 'catalog:'
version: 9.25.1([email protected])
@@ -198,16 +198,16 @@ importers:
version: 5.8.2
unocss:
specifier: 0.65.0-beta.2
vite:
specifier: ^5.0.11
- version: 5.4.14(@types/[email protected])
+ version: 5.4.14(@types/[email protected])
vite-plugin-solid:
specifier: ^2.8.2
vitest:
specifier: 'catalog:'
yaml:
specifier: ^2.7.0
version: 2.7.0
@@ -225,7 +225,7 @@ importers:
version: 12.27.0
'@corentinth/chisels':
specifier: ^1.1.0
- version: 1.1.0
+ version: 1.3.1
'@corentinth/friendly-ids':
specifier: ^0.0.1
version: 0.0.1
@@ -319,7 +319,7 @@ importers:
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
'@crowlog/pretty':
specifier: ^1.1.1
version: 1.1.1
@@ -337,7 +337,7 @@ importers:
version: 2.1.4
'@types/node':
specifier: ^22.10.2
- version: 22.13.10
+ version: 22.15.3
'@types/node-cron':
specifier: ^3.0.11
version: 3.0.11
@@ -346,7 +346,7 @@ importers:
version: 4.0.0
'@vitest/coverage-v8':
specifier: 'catalog:'
esbuild:
specifier: ^0.24.2
version: 0.24.2
@@ -361,20 +361,20 @@ importers:
version: 5.8.2
vitest:
specifier: 'catalog:'
- version: 3.0.5(@types/[email protected])(@types/[email protected])([email protected])
+ version: 3.0.5(@types/[email protected])(@types/[email protected])([email protected])
packages/api-sdk:
dependencies:
'@corentinth/chisels':
specifier: ^1.3.0
- version: 1.3.0
+ version: 1.3.1
ofetch:
specifier: ^1.4.1
version: 1.4.1
devDependencies:
'@antfu/eslint-config':
specifier: 'catalog:'
eslint:
specifier: 'catalog:'
version: 9.25.1([email protected])
@@ -386,7 +386,59 @@ importers:
vitest:
specifier: 'catalog:'
- version: 3.0.5(@types/[email protected])(@types/[email protected])([email protected])
+ version: 3.0.5(@types/[email protected])(@types/[email protected])([email protected])
+
+ packages/cli:
+ dependencies:
+ '@clack/prompts':
+ specifier: ^0.10.1
+ version: 0.10.1
+ '@corentinth/chisels':
+ specifier: ^1.3.1
+ version: 1.3.1
+ '@papra/api-sdk':
+ specifier: workspace:*
+ version: link:../api-sdk
+ citty:
+ specifier: ^0.1.6
+ version: 0.1.6
+ conf:
+ specifier: ^13.1.0
+ version: 13.1.0
+ mime-types:
+ specifier: ^3.0.1
+ version: 3.0.1
+ ofetch:
+ specifier: ^1.4.1
+ version: 1.4.1
+ valibot:
+ specifier: 1.0.0-beta.10
+ version: 1.0.0-beta.10([email protected])
+ devDependencies:
+ '@antfu/eslint-config':
+ specifier: 'catalog:'
+ '@types/mime-types':
+ specifier: ^2.1.4
+ version: 2.1.4
+ '@types/node':
+ specifier: ^22.15.3
+ version: 22.15.3
+ eslint:
+ specifier: 'catalog:'
+ version: 9.25.1([email protected])
+ tsx:
+ specifier: ^4.19.3
+ version: 4.19.3
+ typescript:
+ specifier: 'catalog:'
+ version: 5.8.2
+ unbuild:
+ specifier: ^3.5.0
+ vitest:
+ specifier: 'catalog:'
+ version: 3.0.5(@types/[email protected])(@types/[email protected])([email protected])
packages:
@@ -852,11 +904,8 @@ packages:
resolution: {integrity: sha512-JIpyaboYZeWYlyP0H+OoPPxd6nqueG/CmN6ixBiNFsIDHREevjIf0n0Ohh5gr5C8pEDknzgvz+pIJ8dMhzWIeg==}
- '@corentinth/[email protected]':
- resolution: {integrity: sha512-l4qG6uXLKFWilt1Mnt5btCoCaIGVLiPOk95V6W3BPPJ9LE558tlet2EnU3z1gfSO7kqRTgkqLdcwwlzI9mMRNQ==}
-
- '@corentinth/[email protected]':
- resolution: {integrity: sha512-OI3CqIgT1LGr4HN7arCLynHDpLSafG1rbTOqCW/1Osb2RIvN1qAwSIfS72dmvlFd3rS77f7hoC78baFvmQ6Jdg==}
+ '@corentinth/[email protected]':
+ resolution: {integrity: sha512-Tnk3NqeyP4WUMCn/o3DNj8IYmkn6u6ilsB71+OLnRSfgKPfUUHV9XJLXra9h/SA9H+c/X1A4oSjKQBviV5qmFw==}
'@corentinth/[email protected]':
resolution: {integrity: sha512-NtOr6rEjsSp9bKUNkB0eAH04cFoXpiN9PmPLI0xEGq32g/qXlqp9vWHzr2Cc+Op8rHDjStuJxdWlD9iXTW7onA==}
@@ -933,9 +982,11 @@ packages:
'@esbuild-kit/[email protected]':
resolution: {integrity: sha512-sPRAnw9CdSsRmEtnsl2WXWdyquogVpB3yZ3dgwJfe8zrOzTsV7cJvmwrKVa+0ma5BoiGJ+BoqkMvawbayKUsqQ==}
+ deprecated: 'Merged into tsx: https://tsx.is'
'@esbuild-kit/[email protected]':
resolution: {integrity: sha512-FxEMIkJKnodyA1OaCUoEvbYRkoZlLZ4d/eXFu9Fh8CbBBgP5EmZxrfTRyN0qpXZ4vOvqnE5YdRdcrmUUXuU+dA==}
+ deprecated: 'Merged into tsx: https://tsx.is'
'@esbuild/[email protected]':
resolution: {integrity: sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==}
@@ -3104,8 +3155,8 @@ packages:
resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==}
- '@types/[email protected]':
- resolution: {integrity: sha512-I6LPUvlRH+O6VRUqYOcMudhaIdUVWfsjnZavnsraHvpBwaEyMN29ry+0UVJhImYL16xsscu0aske3yA+uPOWfw==}
+ '@types/[email protected]':
+ resolution: {integrity: sha512-lX7HFZeHf4QG/J7tBZqrCAXwz9J5RD56Y6MpP0eJkka8p+K0RY/yBTW7CYFJ4VGCclxqOLKmiGP5juQc6MKgcw==}
resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==}
@@ -3581,9 +3632,20 @@ packages:
resolution: {integrity: sha512-jRR5wdylq8CkOe6hei19GGZnxM6rBGwFl3Bg0YItGDimvjGtAvdZk4Pu6Cl4u4Igsws4a1fd1Vq3ezrhn4KmFw==}
engines: {node: '>= 14'}
+ resolution: {integrity: sha512-8iUql50EUR+uUcdRQ3HDqa6EVyo3docL8g5WJ3FNcWmu62IbkGUue/pEyLBW8VGKKucTPgqeks4fIU1DA4yowQ==}
+ peerDependencies:
+ ajv: ^8.0.0
+ peerDependenciesMeta:
+ ajv:
+ optional: true
+
resolution: {integrity: sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==}
+ resolution: {integrity: sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g==}
+
resolution: {integrity: sha512-IOfwwBF5iczOjp/WeY4YxyjqAFMQoZufdQWDd19SEExbVLNXqvpzSJ/M7Za4/sCPmQ0+GRquoA7bGcINcxew6w==}
@@ -3621,6 +3683,7 @@ packages:
resolution: {integrity: sha512-Ci/qENmwHnsYo9xKIcUJN5LeDKdJ6R1Z1j9V/J5wyq8nh/mYPEpIKJbBZXtZjG04HiK7zV/p6Vs9952MrMeUIw==}
engines: {node: '>=10'}
+ deprecated: This package is no longer supported.
resolution: {integrity: sha512-PYjyFOLKQ9y57JvQ6QLo8dAgNqswh8M1RMJYdQduT6xbWSgK36P/Z/v+p888pM69jMMfS8Xd8F6I1kQ/I9HUGg==}
@@ -3674,6 +3737,9 @@ packages:
resolution: {integrity: sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==}
+ resolution: {integrity: sha512-kU6FmrwZ3Lx7/7y3hPS5QnbJfaohcIul5fGqf7ok+4KklIEk9tJ0C2IQPdacSbVUWv6zVHXEBWoWd6NrVMT7Cw==}
+
resolution: {integrity: sha512-O+A6LWV5LDHSJD3LjHYoNi4VLsj/Whi7k6zG12xTYaU4cQ8oxQGckXNX8cRHK5yOZ/ppVHe0ZBXGzSV9jXdVbQ==}
engines: {node: ^10 || ^12 || >=14}
@@ -4020,6 +4086,10 @@ packages:
resolution: {integrity: sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==}
+ resolution: {integrity: sha512-Bi6v586cy1CoTFViVO4lGTtx780lfF96fUmS1lSX6wpZf6330NvHUu6fReVuDP1de8Mg0nkZb01c8tAQdz1o3w==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==}
@@ -4138,6 +4208,10 @@ packages:
resolution: {integrity: sha512-Ukq0owbQXxa/U3EGtsdVBkR1w7KOQ5gIBqdH2hkvknzZPYvBxb/aa6E8L7tmjFtkwZBu3UXBbjIgPo/Ez4xaNg==}
+ resolution: {integrity: sha512-rBMW+F2TXryBwB54Q0d8drNEI+TfoS9JpNTAoVpukbWEhjXQq4rySFYLaqXMFXwdv61Zb2OHtj5bviSoimqxRQ==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==}
peerDependencies:
@@ -4257,6 +4331,10 @@ packages:
resolution: {integrity: sha512-6kZKyUajlDuqlHKVX1w7gyslj9MPIXzIFiz/rGu35uC1wMi+kMhQwGhl4lt9unC9Vb9INnY9Z3/ZA3+FhASLaw==}
+ resolution: {integrity: sha512-1gxPBJpI/pcjQhKgIU91II6Wkay+dLcN3M6rf2uwP8hRur3HtQXjVrdAK3sjC0piaEuxzMwjXChcETiJl47lAQ==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-47qPchRCykZC03FhkYAhrvwU4xDBFIj1QPqaarj6mdM/hgUzfPHcpkHJOn3mJAufFeeAxAzeGsr5X0M4k6fLZQ==}
engines: {node: '>=12'}
@@ -4825,6 +4903,9 @@ packages:
resolution: {integrity: sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw==}
+ resolution: {integrity: sha512-Atfo14OibSv5wAp4VWNsFYE1AchQRTv9cBGWET4pZWHzYshFSS9NQI6I57rdKn9croWVMbYFbLhJ+yJvmZIIHw==}
+
resolution: {integrity: sha512-xkjOecfnKGkSsOwtZ5Pz7Us/T6mrbPQrq0nh+aCO5V9nk5NLWmasAHumTKjiPJPWANe+kAZ84Jc8ooJkzZ88Sw==}
hasBin: true
@@ -4962,6 +5043,7 @@ packages:
resolution: {integrity: sha512-+5J6MS/5XksCuXq++uFRsnUd7Ovu1XenbeuIuNRJxYWjgQbPuFhT14lAvsWfqfAmnwluf1OwMjz39HjfLPci0Q==}
engines: {node: '>=10'}
+ deprecated: This package is no longer supported.
resolution: {integrity: sha512-gfem3IGvqKqXwEq7XseBogyaRwGsQGuE7Cw/yQsjLGdgiyqX92G1xENPCE0ltunPGcsJIa6XBOTx/PK169mOqw==}
@@ -5019,6 +5101,7 @@ packages:
resolution: {integrity: sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==}
+ deprecated: Glob versions prior to v9 are no longer supported
resolution: {integrity: sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA==}
@@ -5248,6 +5331,7 @@ packages:
resolution: {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.
resolution: {integrity: sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==}
@@ -5458,6 +5542,12 @@ packages:
resolution: {integrity: sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==}
+ resolution: {integrity: sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug==}
+
+ resolution: {integrity: sha512-XQmWYj2Sm4kn4WeTYvmpKEbyPsL7nBsb647c7pMe6l02/yx2+Jfc4dT6UZkEXnIUb5LhD55r2HPsJ1milQ4rDg==}
+
resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==}
@@ -5821,6 +5911,10 @@ packages:
resolution: {integrity: sha512-xRc4oEhT6eaBpU1XF7AjpOFD+xQmXNB5OVKwp4tqCuBpHLS/ZbBDrc07mYTDqVMg6PfxUjjNp85O6Cd2Z/5HWA==}
engines: {node: '>= 0.6'}
+ resolution: {integrity: sha512-VP79XUPxV2CigYP3jWwAUFSku2aKqBH7uTAapFWCBqutsbmDo96KY5o8uh6U+/YSIn5OxJnXp73beVkpqMIGhA==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-wXqjST+SLt7R009ySCglWBCFpjUygmCIfD790/kVbiGmUgfYGuB14PiTd5DwVxSV4NcYHjzMkoj5LjQZwTQLEA==}
engines: {node: '>=8'}
@@ -6009,6 +6103,7 @@ packages:
resolution: {integrity: sha512-AqZtDUWOMKs1G/8lwylVjrdYgqA4d9nu8hc+0gzRxlDb1I10+FHBGMXs6aiQHFdCUUlqH99MUMuLfzWDNDtfxw==}
+ deprecated: This package is no longer supported.
resolution: {integrity: sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w==}
@@ -6643,6 +6738,10 @@ packages:
resolution: {integrity: sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==}
engines: {node: '>=0.10.0'}
+ resolution: {integrity: sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw==}
+ engines: {node: '>=0.10.0'}
+
resolution: {integrity: sha512-km0btrAj/BqIaRlS+SoLNMaCAUUWEgcEvZpycfVvoXEwAHCxU+vp/ikxPgKRkyKyiR2iDcdUq5uIBTDK9oSSSQ==}
engines: {node: '>=18'}
@@ -6680,6 +6779,7 @@ packages:
resolution: {integrity: sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==}
+ deprecated: Rimraf versions prior to v4 are no longer supported
hasBin: true
@@ -6999,6 +7099,9 @@ packages:
resolution: {integrity: sha512-YAT3K/sgpCUxhxNMrrdhtod3jckkpYwH6JAuwmUdXZsmzH1wUyzTMrrK2wYCEEqlKwrWDd35NeuUkbBy/1iK+Q==}
+ resolution: {integrity: sha512-H2N9c26eXjzL/S/K+i/RHHcFanE74dptvvjM8iwzwbVcWY/zjBbgRqF3K0DY4+OD+uTTASTBvDoxPDaPN02D7g==}
+
resolution: {integrity: sha512-/Q6ld50hKYPH3d/r6nr117TZkHR0w0kGGIVfpG9N6D8NymRPM9RqCUv4pRpJ62E5DqOYx2AFpbZMyCPnjQCnOw==}
@@ -7216,6 +7319,10 @@ packages:
resolution: {integrity: sha512-UsUk3byDzKd04EyoZ7U4DOlxQaD14JUKQl6/P7wiX4FNvUfm3XL246n9W5AmqwW5RSFJ27NAuM0iLscAOYUiGQ==}
+ resolution: {integrity: sha512-ZPtzy0hu4cZjv3z5NW9gfKnNLjoz4y6uv4HlelAjDK7sY/xOkKZv9xK/WQpcsBB3jEybChz9DPC2U/+cusjJVQ==}
+ engines: {node: '>=18'}
+
resolution: {integrity: sha512-R9fBn90VTJrqqLDwyMph+HGne8eqY1iPfYhPzZrvKpIfwkWZbcYlfpsb8B9dTvBfpy1/hqAD7Wi8EKfP9e8zdw==}
@@ -7234,8 +7341,8 @@ packages:
resolution: {integrity: sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q==}
- resolution: {integrity: sha512-Ny6QZ2Nju20vw1SRHe3d9jVu6gJ+4e3+MMpqu7pqE5HT6WsTSlce++GQmK5UXS8mzV8DSYHrQH+Xrf2jVcuKNg==}
+ resolution: {integrity: sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==}
resolution: {integrity: sha512-CLjCCLQ6UuMxWnbIylkisbRj31qxHPAurvena/0iwSVbQ2G1VY5/HjV0IRabOEbDHlzZlRdCrD4NhB0JtU40Pg==}
@@ -7620,6 +7727,9 @@ packages:
resolution: {integrity: sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==}
+ resolution: {integrity: sha512-4rnvd3A1t16PWzrBUcSDZqcAmsUIy4minDXT/CZ8F2mVDgd65i4Aalimgz1aQkRGU0iH5eT5+6Rx2TK8o443Pg==}
+
resolution: {integrity: sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA==}
engines: {node: '>=4'}
@@ -7783,7 +7893,7 @@ snapshots:
'@jridgewell/gen-mapping': 0.3.8
'@jridgewell/trace-mapping': 0.3.25
dependencies:
'@antfu/install-pkg': 1.0.0
'@clack/prompts': 0.9.1
@@ -7792,7 +7902,7 @@ snapshots:
'@stylistic/eslint-plugin': 2.13.0([email protected]([email protected]))([email protected])
'@typescript-eslint/parser': 8.19.1([email protected]([email protected]))([email protected])
eslint: 9.25.1([email protected])
eslint-config-flat-gitignore: 1.0.0([email protected]([email protected]))
eslint-flat-config-utils: 1.0.0
@@ -7832,7 +7942,7 @@ snapshots:
- typescript
- vitest
dependencies:
'@antfu/install-pkg': 1.0.0
'@clack/prompts': 0.10.1
@@ -7841,7 +7951,7 @@ snapshots:
'@stylistic/eslint-plugin': 4.2.0([email protected]([email protected]))([email protected])
'@typescript-eslint/parser': 8.31.0([email protected]([email protected]))([email protected])
ansis: 3.17.0
cac: 6.7.14
eslint: 9.25.1([email protected])
@@ -7882,7 +7992,7 @@ snapshots:
- typescript
- vitest
dependencies:
'@antfu/install-pkg': 1.0.0
'@clack/prompts': 0.10.1
@@ -7891,7 +8001,7 @@ snapshots:
'@stylistic/eslint-plugin': 4.2.0([email protected]([email protected]))([email protected])
'@typescript-eslint/parser': 8.31.0([email protected]([email protected]))([email protected])
ansis: 3.17.0
cac: 6.7.14
eslint: 9.25.1([email protected])
@@ -7979,12 +8089,12 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
'@astrojs/markdown-remark': 6.3.1
'@mdx-js/mdx': 3.1.0([email protected])
acorn: 8.14.1
es-module-lexer: 1.6.0
estree-util-visit: 2.0.0
hast-util-to-html: 9.0.5
@@ -8008,17 +8118,17 @@ snapshots:
stream-replace-string: 2.0.0
zod: 3.24.2
dependencies:
'@astrojs/markdown-remark': 6.3.1
'@astrojs/sitemap': 3.3.0
'@pagefind/default-ui': 1.3.0
'@types/hast': 3.0.4
'@types/js-yaml': 4.0.9
'@types/mdast': 4.0.4
bcp-47: 2.1.0
hast-util-from-html: 2.0.3
hast-util-select: 6.0.4
@@ -8772,11 +8882,7 @@ snapshots:
picocolors: 1.1.1
sisteransi: 1.0.5
- '@corentinth/[email protected]':
- dependencies:
- lodash-es: 4.17.21
-
- '@corentinth/[email protected]': {}
+ '@corentinth/[email protected]': {}
'@corentinth/[email protected]': {}
@@ -10683,7 +10789,7 @@ snapshots:
dependencies:
- '@types/node': 22.13.10
+ '@types/node': 22.15.3
dependencies:
@@ -10736,9 +10842,9 @@ snapshots:
'@types/[email protected]': {}
- '@types/[email protected]':
+ '@types/[email protected]':
dependencies:
- undici-types: 6.20.0
+ undici-types: 6.21.0
'@types/[email protected]': {}
@@ -10750,7 +10856,7 @@ snapshots:
dependencies:
- '@types/node': 22.13.10
+ '@types/node': 22.15.3
'@types/[email protected]': {}
@@ -10758,7 +10864,7 @@ snapshots:
dependencies:
- '@types/node': 22.13.10
+ '@types/node': 22.15.3
dependencies:
@@ -10979,13 +11085,13 @@ snapshots:
'@ungap/[email protected]': {}
dependencies:
'@unocss/core': 0.65.0-beta.2
'@unocss/reset': 0.65.0-beta.2
optionalDependencies:
- vite: 5.4.14(@types/[email protected])
+ vite: 5.4.14(@types/[email protected])
transitivePeerDependencies:
- rollup
- supports-color
@@ -11144,7 +11250,7 @@ snapshots:
dependencies:
'@unocss/core': 0.65.0-beta.2
dependencies:
'@ampproject/remapping': 2.3.0
'@rollup/pluginutils': 5.1.4([email protected])
@@ -11154,7 +11260,7 @@ snapshots:
chokidar: 3.6.0
magic-string: 0.30.17
tinyglobby: 0.2.12
- vite: 5.4.14(@types/[email protected])
+ vite: 5.4.14(@types/[email protected])
transitivePeerDependencies:
- rollup
- supports-color
@@ -11213,7 +11319,7 @@ snapshots:
optional: true
dependencies:
'@ampproject/remapping': 2.3.0
'@bcoe/v8-coverage': 1.0.2
@@ -11227,33 +11333,33 @@ snapshots:
std-env: 3.8.0
test-exclude: 7.0.1
tinyrainbow: 2.0.0
transitivePeerDependencies:
- supports-color
dependencies:
'@typescript-eslint/utils': 8.31.0([email protected]([email protected]))([email protected])
eslint: 9.25.1([email protected])
optionalDependencies:
typescript: 5.8.2
dependencies:
'@typescript-eslint/utils': 8.31.0([email protected]([email protected]))([email protected])
eslint: 9.25.1([email protected])
optionalDependencies:
typescript: 5.8.2
dependencies:
'@typescript-eslint/utils': 8.31.0([email protected]([email protected]))([email protected])
eslint: 9.25.1([email protected])
optionalDependencies:
typescript: 5.8.2
'@vitest/[email protected]':
dependencies:
@@ -11262,13 +11368,13 @@ snapshots:
chai: 5.1.2
tinyrainbow: 2.0.0
dependencies:
'@vitest/spy': 3.0.5
estree-walker: 3.0.3
magic-string: 0.30.17
optionalDependencies:
- vite: 5.4.14(@types/[email protected])
+ vite: 5.4.14(@types/[email protected])
'@vitest/[email protected]':
dependencies:
@@ -11375,6 +11481,10 @@ snapshots:
+ optionalDependencies:
+ ajv: 8.17.1
+
dependencies:
fast-deep-equal: 3.1.3
@@ -11382,6 +11492,13 @@ snapshots:
json-schema-traverse: 0.4.1
uri-js: 4.4.1
+ dependencies:
+ fast-deep-equal: 3.1.3
+ fast-uri: 3.0.6
+ json-schema-traverse: 1.0.0
+ require-from-string: 2.0.2
+
dependencies:
string-width: 4.2.3
@@ -11453,12 +11570,12 @@ snapshots:
- supports-color
- typescript
dependencies:
rehype-expressive-code: 0.41.2
dependencies:
'@astrojs/compiler': 2.11.0
'@astrojs/internal-helpers': 0.6.1
@@ -11511,8 +11628,8 @@ snapshots:
unist-util-visit: 5.0.0
unstorage: 1.15.0(@azure/[email protected])([email protected])
vfile: 6.0.3
xxhash-wasm: 1.1.0
yargs-parser: 21.1.1
yocto-spinner: 0.2.1
@@ -11563,6 +11680,11 @@ snapshots:
+ dependencies:
+ stubborn-fs: 1.2.5
+ when-exit: 2.1.4
+
dependencies:
browserslist: 4.24.4
@@ -11740,7 +11862,7 @@ snapshots:
dependencies:
- caniuse-lite: 1.0.30001690
+ caniuse-lite: 1.0.30001715
electron-to-chromium: 1.5.76
node-releases: 2.0.19
update-browserslist-db: 1.1.1([email protected])
@@ -11974,6 +12096,18 @@ snapshots:
+ dependencies:
+ ajv: 8.17.1
+ ajv-formats: 3.0.1([email protected])
+ atomically: 2.0.3
+ debounce-fn: 6.0.0
+ dot-prop: 9.0.0
+ env-paths: 3.0.0
+ json-schema-typed: 8.0.1
+ semver: 7.7.1
+ uint8array-extras: 1.4.0
+
@@ -12117,6 +12251,10 @@ snapshots:
+ dependencies:
+ mimic-function: 5.0.1
+
dependencies:
ms: 2.1.3
@@ -12211,6 +12349,10 @@ snapshots:
domelementtype: 2.3.0
domhandler: 5.0.3
+ dependencies:
+ type-fest: 4.40.0
+
@@ -13011,6 +13153,8 @@ snapshots:
+
dependencies:
strnum: 1.1.2
@@ -13804,6 +13948,10 @@ snapshots:
+
+
@@ -14490,6 +14638,8 @@ snapshots:
dependencies:
mime-db: 1.54.0
+
optional: true
@@ -15371,6 +15521,8 @@ snapshots:
+
dependencies:
@@ -15746,9 +15898,9 @@ snapshots:
dependencies:
'@types/picomatch': 3.0.2
github-slugger: 2.0.0
hast-util-from-html: 2.0.3
@@ -15762,9 +15914,9 @@ snapshots:
transitivePeerDependencies:
- supports-color
dependencies:
@@ -15831,13 +15983,15 @@ snapshots:
dependencies:
- '@types/node': 22.13.10
+ '@types/node': 22.15.3
qs: 6.14.0
+
dependencies:
style-to-object: 1.0.8
@@ -16054,6 +16208,8 @@ snapshots:
+
@@ -16100,7 +16256,7 @@ snapshots:
dependencies:
@@ -16175,14 +16331,14 @@ snapshots:
unist-util-is: 6.0.0
unist-util-visit-parents: 6.0.1
dependencies:
'@unocss/preset-wind': 66.1.0-beta.5
dependencies:
'@unocss/cli': 0.65.0-beta.2([email protected])
'@unocss/core': 0.65.0-beta.2
'@unocss/postcss': 0.65.0-beta.2([email protected])
@@ -16198,9 +16354,9 @@ snapshots:
'@unocss/transformer-compile-class': 0.65.0-beta.2
'@unocss/transformer-directives': 0.65.0-beta.2
'@unocss/transformer-variant-group': 0.65.0-beta.2
optionalDependencies:
- vite: 5.4.14(@types/[email protected])
+ vite: 5.4.14(@types/[email protected])
transitivePeerDependencies:
- postcss
- rollup
@@ -16315,13 +16471,13 @@ snapshots:
'@types/unist': 3.0.3
vfile-message: 4.0.2
dependencies:
cac: 6.7.14
debug: 4.4.0
es-module-lexer: 1.6.0
pathe: 2.0.3
- vite: 5.4.14(@types/[email protected])
+ vite: 5.4.14(@types/[email protected])
transitivePeerDependencies:
- '@types/node'
- less
@@ -16333,7 +16489,7 @@ snapshots:
- supports-color
- terser
dependencies:
'@babel/core': 7.26.0
'@types/babel__core': 7.20.5
@@ -16341,21 +16497,21 @@ snapshots:
merge-anything: 5.1.7
solid-js: 1.9.5
solid-refresh: 0.6.3([email protected])
- vite: 5.4.14(@types/[email protected])
- vitefu: 1.0.4([email protected](@types/[email protected]))
+ vite: 5.4.14(@types/[email protected])
+ vitefu: 1.0.4([email protected](@types/[email protected]))
transitivePeerDependencies:
- supports-color
dependencies:
esbuild: 0.21.5
postcss: 8.5.3
rollup: 4.35.0
optionalDependencies:
- '@types/node': 22.13.10
+ '@types/node': 22.15.3
fsevents: 2.3.3
dependencies:
esbuild: 0.25.2
fdir: 6.4.4([email protected])
@@ -16364,24 +16520,24 @@ snapshots:
rollup: 4.39.0
tinyglobby: 0.2.13
optionalDependencies:
- '@types/node': 22.13.10
+ '@types/node': 22.15.3
fsevents: 2.3.3
jiti: 2.4.2
tsx: 4.19.3
yaml: 2.7.0
optionalDependencies:
- vite: 5.4.14(@types/[email protected])
+ vite: 5.4.14(@types/[email protected])
optionalDependencies:
dependencies:
'@vitest/expect': 3.0.5
- '@vitest/mocker': 3.0.5([email protected](@types/[email protected]))
+ '@vitest/mocker': 3.0.5([email protected](@types/[email protected]))
'@vitest/pretty-format': 3.0.5
'@vitest/runner': 3.0.5
'@vitest/snapshot': 3.0.5
@@ -16397,12 +16553,12 @@ snapshots:
tinyexec: 0.3.2
tinypool: 1.0.2
tinyrainbow: 2.0.0
- vite: 5.4.14(@types/[email protected])
- vite-node: 3.0.5(@types/[email protected])
+ vite: 5.4.14(@types/[email protected])
+ vite-node: 3.0.5(@types/[email protected])
why-is-node-running: 2.3.0
optionalDependencies:
'@types/debug': 4.1.12
- '@types/node': 22.13.10
+ '@types/node': 22.15.3
jsdom: 25.0.1([email protected])
transitivePeerDependencies:
- less
@@ -16415,10 +16571,10 @@ snapshots:
- supports-color
- terser
dependencies:
'@vitest/expect': 3.0.5
- '@vitest/mocker': 3.0.5([email protected](@types/[email protected]))
+ '@vitest/mocker': 3.0.5([email protected](@types/[email protected]))
'@vitest/pretty-format': 3.0.5
'@vitest/runner': 3.0.5
'@vitest/snapshot': 3.0.5
@@ -16434,12 +16590,12 @@ snapshots:
tinyexec: 0.3.2
tinypool: 1.0.2
tinyrainbow: 2.0.0
- vite: 5.4.14(@types/[email protected])
- vite-node: 3.0.5(@types/[email protected])
+ vite: 5.4.14(@types/[email protected])
+ vite-node: 3.0.5(@types/[email protected])
why-is-node-running: 2.3.0
optionalDependencies:
'@types/debug': 4.1.12
- '@types/node': 22.13.10
+ '@types/node': 22.15.3
jsdom: 26.0.0
transitivePeerDependencies:
- less
@@ -16524,6 +16680,8 @@ snapshots:
tr46: 0.0.3
webidl-conversions: 3.0.1
+