@voltius/plugin-types 0.42.0 → 0.44.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +13 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -316,6 +316,8 @@ export interface PluginTransfer {
|
|
|
316
316
|
speed?: number;
|
|
317
317
|
eta?: number;
|
|
318
318
|
error?: string;
|
|
319
|
+
/** Remote paths left out because the local OS can't hold the name. */
|
|
320
|
+
skipped?: string[];
|
|
319
321
|
/** Name of the MCP client that started it; absent for the user's own. */
|
|
320
322
|
owner?: string;
|
|
321
323
|
}
|
|
@@ -493,10 +495,10 @@ export interface PluginObjectMoveOutcome {
|
|
|
493
495
|
|
|
494
496
|
export interface OmniCommand {
|
|
495
497
|
id: string;
|
|
496
|
-
label:
|
|
498
|
+
label: PluginLabel;
|
|
497
499
|
icon: string;
|
|
498
500
|
keywords?: string[];
|
|
499
|
-
section?:
|
|
501
|
+
section?: PluginLabel;
|
|
500
502
|
/** Optional keyboard shortcut. Format: "ctrl+k", "meta+shift+p". First-registered wins on conflict. */
|
|
501
503
|
keybinding?: string;
|
|
502
504
|
/** ID of a core shortcut to resolve as the hint (reactive, updates when user rebinds). */
|
|
@@ -780,8 +782,13 @@ export interface I18nAPI {
|
|
|
780
782
|
* before rendering anything that resolves keys. */
|
|
781
783
|
register(catalog: PluginI18nCatalog): void;
|
|
782
784
|
/** Resolve `key` against the host's active locale. Falls back to the "en" entry,
|
|
783
|
-
* then to `key` itself (visible, never blank) if neither has it.
|
|
785
|
+
* then to `key` itself (visible, never blank) if neither has it. A numeric
|
|
786
|
+
* `vars.count` picks a plural form the way i18next does: `key_one`, `key_few`,
|
|
787
|
+
* `key_many`… per the locale's CLDR rules, then `key_other`, then `key`. */
|
|
784
788
|
t(key: string, vars?: Record<string, string | number>): string;
|
|
789
|
+
/** A timestamp relative to now in the active locale ("5 minutes ago", "now"),
|
|
790
|
+
* via Intl.RelativeTimeFormat. Call it during render, next to `t()`. */
|
|
791
|
+
formatRelativeTime(time: Date | number): string;
|
|
785
792
|
/** The host's current active locale. */
|
|
786
793
|
getLocale(): PluginLocale;
|
|
787
794
|
/** Fires whenever the host's active locale changes. Re-call `t()` and re-render
|
|
@@ -1463,9 +1470,10 @@ export interface PluginAPI {
|
|
|
1463
1470
|
/**
|
|
1464
1471
|
* CRDT-merge one or more remote encrypted blobs into local state, then
|
|
1465
1472
|
* reload all entity stores. blobs: base64-encoded (same format as exportState).
|
|
1466
|
-
*
|
|
1473
|
+
* Unreadable blobs are skipped and their indices returned; rejects if none
|
|
1474
|
+
* could be read. Requires sync:write.
|
|
1467
1475
|
*/
|
|
1468
|
-
importStates(encKey: string, blobs: string[]): Promise<
|
|
1476
|
+
importStates(encKey: string, blobs: string[]): Promise<{ unreadable: number[] }>;
|
|
1469
1477
|
};
|
|
1470
1478
|
|
|
1471
1479
|
// Inter-plugin communication (always available), plus plugin inventory and
|