@kilocode/plugin 7.3.22 → 7.3.29

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 +41 -0
  2. package/package.json +3 -3
package/dist/tui.d.ts CHANGED
@@ -33,6 +33,40 @@ export type TuiKeys = {
33
33
  formatBindings: (bindings: readonly SequenceBindingLike[] | undefined) => string | undefined;
34
34
  };
35
35
  export type TuiKeymap = Keymap<Renderable, KeyEvent>;
36
+ /**
37
+ * Legacy `api.command` shape kept so v1 plugins can initialize. Remove in v2.
38
+ *
39
+ * @deprecated Use `api.keymap.registerLayer({ commands, bindings })` instead.
40
+ */
41
+ export type TuiCommand = {
42
+ title: string;
43
+ value: string;
44
+ description?: string;
45
+ category?: string;
46
+ keybind?: string;
47
+ suggested?: boolean;
48
+ hidden?: boolean;
49
+ enabled?: boolean;
50
+ slash?: {
51
+ name: string;
52
+ aliases?: string[];
53
+ };
54
+ onSelect?: (dialog?: TuiDialogStack) => void | Promise<void>;
55
+ };
56
+ /**
57
+ * Legacy `api.command` API kept so v1 plugins can initialize. Remove in v2.
58
+ *
59
+ * @deprecated Use `api.keymap.registerLayer`, `api.keymap.dispatchCommand`, and
60
+ * `api.keymap.dispatchCommand("command.palette.show")` instead.
61
+ */
62
+ export type TuiCommandApi = {
63
+ /** @deprecated Use `api.keymap.registerLayer({ commands, bindings })` instead. */
64
+ register: (cb: () => TuiCommand[]) => () => void;
65
+ /** @deprecated Use `api.keymap.dispatchCommand(name)` instead. */
66
+ trigger: (value: string) => void;
67
+ /** @deprecated Use `api.keymap.dispatchCommand("command.palette.show")` instead. */
68
+ show: () => void;
69
+ };
36
70
  export type TuiDialogProps = {
37
71
  size?: "medium" | "large" | "xlarge";
38
72
  onClose: () => void;
@@ -367,6 +401,13 @@ export type TuiWorkspace = {
367
401
  };
368
402
  export type TuiPluginApi = {
369
403
  app: TuiApp;
404
+ /**
405
+ * Legacy `api.command` API kept so v1 plugins can initialize. Remove in v2.
406
+ *
407
+ * @deprecated Use `api.keymap.registerLayer`, `api.keymap.dispatchCommand`, and
408
+ * `api.keymap.dispatchCommand("command.palette.show")` instead.
409
+ */
410
+ command?: TuiCommandApi;
370
411
  keys: TuiKeys;
371
412
  keymap: TuiKeymap;
372
413
  route: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@kilocode/plugin",
4
- "version": "7.3.22",
4
+ "version": "7.3.29",
5
5
  "type": "module",
6
6
  "license": "MIT",
7
7
  "scripts": {
@@ -26,7 +26,7 @@
26
26
  "dist"
27
27
  ],
28
28
  "dependencies": {
29
- "@kilocode/sdk": "7.3.22",
29
+ "@kilocode/sdk": "7.3.29",
30
30
  "effect": "4.0.0-beta.59",
31
31
  "zod": "4.1.8"
32
32
  },
@@ -50,7 +50,7 @@
50
50
  "@opentui/core": "0.2.6",
51
51
  "@opentui/solid": "0.2.6",
52
52
  "@tsconfig/node22": "22.0.2",
53
- "@types/node": "24.12.2",
53
+ "@types/node": "24.12.4",
54
54
  "typescript": "5.8.2",
55
55
  "@typescript/native-preview": "7.0.0-dev.20260316.1",
56
56
  "@opentui/keymap": "0.2.6"