@openvcs/sdk 0.2.14 → 0.2.15

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.
@@ -288,7 +288,7 @@ function createMenuPluginDelegates() {
288
288
  return serializeMenus();
289
289
  },
290
290
  async 'plugin.handle_action'(params) {
291
- const actionId = String(params?.action_id || '').trim();
291
+ const actionId = String(params?.action_id || params?.id || '').trim();
292
292
  if (actionId) {
293
293
  return await runRegisteredAction(actionId, params?.payload);
294
294
  }
@@ -21,6 +21,8 @@ export type PluginMenuDefinition = Record<string, unknown>;
21
21
  export type PluginSettingsValue = Record<string, unknown>;
22
22
  /** Describes the params shape for plugin action handling. */
23
23
  export interface PluginHandleActionParams extends RequestParams {
24
+ /** Stores the action id selected by the user when provided by the transport. */
25
+ id?: string;
24
26
  /** Stores the action id selected by the user. */
25
27
  action_id?: string;
26
28
  /** Stores an optional payload supplied by the triggering UI. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openvcs/sdk",
3
- "version": "0.2.14",
3
+ "version": "0.2.15",
4
4
  "description": "OpenVCS SDK CLI for plugin scaffolding and .ovcsp tar.gz packaging",
5
5
  "license": "GPL-3.0-or-later",
6
6
  "homepage": "https://openvcs.app/",
@@ -362,7 +362,7 @@ export function createMenuPluginDelegates(): PluginDelegates<PluginRuntimeContex
362
362
  return serializeMenus() as unknown as PluginMenuDefinition[];
363
363
  },
364
364
  async 'plugin.handle_action'(params: PluginHandleActionParams): Promise<unknown> {
365
- const actionId = String(params?.action_id || '').trim();
365
+ const actionId = String(params?.action_id || params?.id || '').trim();
366
366
  if (actionId) {
367
367
  return await runRegisteredAction(actionId, params?.payload);
368
368
  }
@@ -30,6 +30,8 @@ export type PluginSettingsValue = Record<string, unknown>;
30
30
 
31
31
  /** Describes the params shape for plugin action handling. */
32
32
  export interface PluginHandleActionParams extends RequestParams {
33
+ /** Stores the action id selected by the user when provided by the transport. */
34
+ id?: string;
33
35
  /** Stores the action id selected by the user. */
34
36
  action_id?: string;
35
37
  /** Stores an optional payload supplied by the triggering UI. */