дзеркало
https://github.com/l0ng-ai/openidea.git
синхронізовано 2026-12-04 17:21:13 +02:00
fix(bindings): regenerate after the localized plugin index fields (#6800)
The plugin index entry gained optional localized fields (#6776) that are skipped when empty, so specta now emits separate serialize and deserialize shapes for IndexEntry and MarketPlugin. The committed bindings still had the single shape; regenerated with the export_bindings test.
Цей коміт міститься в:
1 джерело
e4ec1978d8
коміт
f40b645c8e
1 file changed
+65
-4
+65
-4
@@ -1386,7 +1386,7 @@ export const commands = {
|
||||
*/
|
||||
pluginLogTabSpawn: (pluginId: string, key: string, on: string[], cols: number, rows: number, onOutput: Channel<string>) => typedError<TerminalInfo, IdeError>(__TAURI_INVOKE("plugin_log_tab_spawn", { pluginId, key, on, cols, rows, onOutput })),
|
||||
/** The marketplace's plugins: read again when `refresh` or when none was read yet, else the last index read. */
|
||||
pluginMarket: (refresh: boolean) => typedError<MarketPlugin[], IdeError>(__TAURI_INVOKE("plugin_market", { refresh })),
|
||||
pluginMarket: (refresh: boolean) => typedError<MarketPlugin_Serialize[], IdeError>(__TAURI_INVOKE("plugin_market", { refresh })),
|
||||
/** Downloads and checks a marketplace plugin; returns the folder for the install page. */
|
||||
pluginMarketDownload: (id: string) => typedError<string, IdeError>(__TAURI_INVOKE("plugin_market_download", { id })),
|
||||
pluginMarketUrl: () => __TAURI_INVOKE<string | null>("plugin_market_url"),
|
||||
@@ -8942,7 +8942,10 @@ export type IndentConfig_Serialize = {
|
||||
export type IndentStyle = "space" | "tab";
|
||||
|
||||
/** A published plugin version. */
|
||||
export type IndexEntry = {
|
||||
export type IndexEntry = IndexEntry_Serialize | IndexEntry_Deserialize;
|
||||
|
||||
/** A published plugin version. */
|
||||
export type IndexEntry_Deserialize = {
|
||||
id: string,
|
||||
name: string,
|
||||
version: string,
|
||||
@@ -8986,6 +8989,51 @@ export type IndexEntry = {
|
||||
suggest?: string[],
|
||||
};
|
||||
|
||||
/** A published plugin version. */
|
||||
export type IndexEntry_Serialize = {
|
||||
id: string,
|
||||
name: string,
|
||||
version: string,
|
||||
description: string,
|
||||
/** Localized descriptions keyed by BCP 47 language tag (e.g. `zh-CN`). */
|
||||
descriptionLocales?: { [key in string]: string },
|
||||
authors: string[],
|
||||
publisher: string,
|
||||
/** The package, relative to the index (or an absolute URL). */
|
||||
download: string,
|
||||
/** [`package_digest`] of its contents. */
|
||||
digest: string,
|
||||
capabilities: string[],
|
||||
/**
|
||||
* The plugin API versions it loads in (a semver requirement): its
|
||||
* manifest's `engines.openidea` and the API its component was built for.
|
||||
* Required: an entry without one is offered to no IDE.
|
||||
*/
|
||||
engine: string,
|
||||
/** Marketplace categories (`CATEGORIES`); an IDE ignores those it doesn't know. */
|
||||
categories: string[],
|
||||
/**
|
||||
* The manifest's icon, sanitised by whoever wrote the index and again by
|
||||
* the IDE before showing it.
|
||||
*/
|
||||
icon: PluginIcon | null,
|
||||
/** Where to read more: the manifest's homepage, else the registry's source repository. */
|
||||
homepage: string | null,
|
||||
/** This version's release notes (the manifest's `change-notes`). */
|
||||
notes: string | null,
|
||||
/** Localized release notes keyed by BCP 47 language tag (e.g. `zh-CN`). */
|
||||
notesLocales?: { [key in string]: string },
|
||||
/** Downloads of the plugin's packages, as counted by whoever serves them. */
|
||||
downloads: number | null,
|
||||
/** Picked by the marketplace's maintainers. */
|
||||
featured: boolean,
|
||||
/**
|
||||
* Project-relative paths whose presence makes the plugin worth suggesting
|
||||
* (`pom.xml`, `config/routes.rb`).
|
||||
*/
|
||||
suggest: string[],
|
||||
};
|
||||
|
||||
export type IndexStatus = {
|
||||
indexing: boolean,
|
||||
files: number,
|
||||
@@ -10272,14 +10320,27 @@ export type MarkdownSettings = {
|
||||
};
|
||||
|
||||
/** A marketplace entry with what is installed. */
|
||||
export type MarketPlugin = {
|
||||
export type MarketPlugin = MarketPlugin_Serialize | MarketPlugin_Deserialize;
|
||||
|
||||
/** A marketplace entry with what is installed. */
|
||||
export type MarketPlugin_Deserialize = {
|
||||
/** Installed version, if any. */
|
||||
installed: string | null,
|
||||
/** Whether this IDE can load `entry` (the newest version it can, else the newest). */
|
||||
compatible: boolean,
|
||||
/** The publisher's display name, as the index lists it. */
|
||||
publisherName?: string | null,
|
||||
} & IndexEntry;
|
||||
} & IndexEntry_Deserialize;
|
||||
|
||||
/** A marketplace entry with what is installed. */
|
||||
export type MarketPlugin_Serialize = {
|
||||
/** Installed version, if any. */
|
||||
installed: string | null,
|
||||
/** Whether this IDE can load `entry` (the newest version it can, else the newest). */
|
||||
compatible: boolean,
|
||||
/** The publisher's display name, as the index lists it. */
|
||||
publisherName: string | null,
|
||||
} & IndexEntry_Serialize;
|
||||
|
||||
export type Markup = {
|
||||
/** `markdown` or `plaintext`. */
|
||||
|
||||
Reference in new issue
Заблокувати користувача