@nikcli-ai/plugin 1.78.0 → 1.95.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.
Files changed (2) hide show
  1. package/dist/tui.d.ts +3 -3
  2. package/package.json +2 -2
package/dist/tui.d.ts CHANGED
@@ -59,12 +59,12 @@ export type TuiKeymapBinding = {
59
59
  description?: string;
60
60
  };
61
61
  export type TuiKeymapLayer = {
62
- commands?: TuiKeymapCommand[];
63
- bindings?: TuiKeymapBinding[];
62
+ commands?: TuiKeymapCommand[] | (() => TuiKeymapCommand[]);
63
+ bindings?: TuiKeymapBinding[] | (() => TuiKeymapBinding[]);
64
64
  };
65
65
  export type TuiKeymapApi = {
66
66
  /** Registers commands and key bindings as one disposable layer. Returns unregister. */
67
- registerLayer: (layer: TuiKeymapLayer) => () => void;
67
+ registerLayer: (layer: TuiKeymapLayer | (() => TuiKeymapLayer)) => () => void;
68
68
  /** Runs a command by name. "command.palette.show" opens the host command palette. */
69
69
  dispatchCommand: (name: string) => void;
70
70
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@nikcli-ai/plugin",
4
- "version": "1.78.0",
4
+ "version": "1.95.0",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -35,7 +35,7 @@
35
35
  }
36
36
  },
37
37
  "dependencies": {
38
- "@nikcli-ai/sdk": "1.78.0",
38
+ "@nikcli-ai/sdk": "1.95.0",
39
39
  "@opentui/core": "0.1.91",
40
40
  "@opentui/solid": "0.1.91",
41
41
  "zod": "4.1.8"