Files
TREK/server/src/db/kysely/Plugins.table.ts
T
Maurice 0067b0ff19 fix(plugins): let an admin run a plugin outside its TREK range, and tidy the plugins panel
TREK 5.0 left most registry plugins blocked because their authors still declare
"<5.0.0", and the only way past that was TREK_PLUGINS_IGNORE_TREK_RANGE for every
plugin at once. An admin can now install or switch on one such plugin after a
warning; the consent is kept on its row for that plugin version and TREK major,
so an update or a new major asks again. The environment switch works as before.

Discover marks a plugin not confirmed for this TREK on its card, and Install opens
the warning first. Admin > Plugins reads cleaner: one row of alike facts per plugin
with each state that needs attention on its own line, type, status and order behind
one Filter button, and the containment notes in a dialog behind the shield in the
header. The row, the filter menu and the dialog moved into their own files.
2026-10-26 09:49:22 +01:00

40 lines
1.6 KiB
TypeScript

// Generated by scripts/generate-db-types.ts from the migrated schema. Do not edit by hand:
// change the migration, then run `npm run gen:db-types`.
import type { InsertOptional } from './columns';
export interface PluginsTable {
id: string;
name: string;
description: InsertOptional<string | null>;
type: InsertOptional<string>;
icon: InsertOptional<string | null>;
version: InsertOptional<string | null>;
api_version: InsertOptional<number | null>;
min_trek_version: InsertOptional<string | null>;
permissions: InsertOptional<string | null>;
granted_permissions: InsertOptional<string | null>;
status: InsertOptional<string>;
config: InsertOptional<string | null>;
source_repo: InsertOptional<string | null>;
source_commit: InsertOptional<string | null>;
sha256: InsertOptional<string | null>;
crash_count: InsertOptional<number>;
last_error: InsertOptional<string | null>;
reviewed_at: InsertOptional<string | null>;
sort_order: InsertOptional<number>;
installed_at: InsertOptional<string | null>;
updated_at: InsertOptional<string | null>;
enabled: InsertOptional<number>;
capabilities: InsertOptional<string>;
author_pubkey: InsertOptional<string | null>;
dependencies: InsertOptional<string>;
operator_egress: InsertOptional<number>;
update_block_code: InsertOptional<string | null>;
update_block_detail: InsertOptional<string | null>;
update_block_version: InsertOptional<string | null>;
trek_range: InsertOptional<string | null>;
update_hold: InsertOptional<number>;
trek_range_accepted_version: InsertOptional<string | null>;
trek_range_accepted_host: InsertOptional<string | null>;
}