style(plugins): keep the runtime and the SDK within their size baselines

The plugin data engine added three lines to each; six comments that wrapped past 120 columns now fit in one.
This commit is contained in:
Maurice
2026-11-17 14:53:24 +01:00
parent d253267e49
commit 4b0986e2c6
2 changed files with 6 additions and 6 deletions
@@ -127,7 +127,7 @@ export interface PluginContext {
listNotes(tripId: number): Promise<unknown[]>;
/** A trip's polls (with options + voters). Needs 'db:read:collab'. */
listPolls(tripId: number): Promise<unknown[]>;
/** A trip's chat messages (newest 100, oldest first; `before` = a message id to page back). Needs 'db:read:collab'. */
/** A trip's chat messages: newest 100, oldest first; `before` pages back from a message. Needs 'db:read:collab'. */
listMessages(tripId: number, before?: number): Promise<unknown[]>;
createNote(tripId: number, input: { title: string; content?: string; category?: string; color?: string; website?: string; pinned?: boolean }): Promise<unknown>;
createPoll(tripId: number, input: { question: string; options: unknown[]; multiple?: boolean; deadline?: string }): Promise<unknown>;
@@ -175,7 +175,7 @@ export interface PluginContext {
};
/** Exchange rates (tenant-free, cached upstream). Needs 'rates:read'. */
rates: {
/** A map of quote → rate relative to `base` (e.g. base 'EUR' → { USD: 1.08, ... }). `null` on an upstream failure. */
/** A map of quote → rate relative to `base` (base 'EUR' → { USD: 1.08 }). `null` on an upstream failure. */
get(base: string): Promise<Record<string, number> | null>;
};
/** The global place-category reference list (read-only). Needs 'db:read:categories'. */
@@ -450,7 +450,7 @@ export interface SearchRequest {
}
export interface SearchProvider {
search(request: SearchRequest, ctx: PluginContext): Promise<SearchResultPlace[]>;
/** Optional: the same question while it is typed (#2221). The host only calls it when the child reported it at load. */
/** Optional: the same question while it is typed (#2221). The host calls it only if the child reported it at load. */
suggest?(request: SearchRequest, ctx: PluginContext): Promise<SearchResultPlace[]>;
}
/**