Archived
feat: add manual session cleanup
This commit is contained in:
@@ -426,10 +426,13 @@ interface PluginAction {
|
||||
shortcut?: string;
|
||||
group?: string;
|
||||
enabled?: (context: PluginRuntimeContext) => boolean;
|
||||
disabledReason?: (context: PluginRuntimeContext) => string | undefined;
|
||||
run: (context: PluginRuntimeContext) => void | Promise<void>;
|
||||
}
|
||||
```
|
||||
|
||||
If an action is disabled and returns `disabledReason`, PI WEB can keep it visible in the action palette with that explanation instead of hiding it.
|
||||
|
||||
Stable runtime context fields:
|
||||
|
||||
```ts
|
||||
|
||||
Reference in New Issue
Block a user