@akonwi/kit 0.10.0 → 0.12.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.
package/dist/kit CHANGED
Binary file
package/dist/plugin.d.ts CHANGED
@@ -165,7 +165,6 @@ export type KeybindingSettings = Record<string, KeybindingValue>;
165
165
  export type Settings = {
166
166
  theme?: string;
167
167
  keybindings?: KeybindingSettings;
168
- zen?: boolean;
169
168
  speech?:
170
169
  | boolean
171
170
  | {
@@ -0,0 +1,109 @@
1
+ ; Ard highlights (tree-sitter CLI)
2
+
3
+ ; Keywords (node-based)
4
+ (break_statement) @keyword
5
+ (if_statement "if" @keyword)
6
+ (while_loop "while" @keyword)
7
+ (for_loop "for" @keyword)
8
+ (for_in_loop "for" @keyword)
9
+ (for_in_loop "in" @keyword)
10
+ (for_in_loop (for_binding) @variable.parameter)
11
+ (match_expression "match" @keyword)
12
+ (try_expression "try" @keyword)
13
+ (import_statement "use" @keyword)
14
+ (import_statement "as" @keyword)
15
+ (variable_declaration "let" @keyword)
16
+ (variable_declaration "mut" @keyword)
17
+ (mutable_type "mut" @keyword)
18
+ (function_declaration "test" @keyword)
19
+ (function_declaration "fn" @keyword)
20
+ (extern_function "extern" @keyword)
21
+ (extern_function "fn" @keyword)
22
+ (struct_declaration "struct" @keyword)
23
+ (enum_declaration "enum" @keyword)
24
+ (trait_declaration "trait" @keyword)
25
+ (impl_block "impl" @keyword)
26
+ (impl_block "for" @keyword)
27
+ (impl_block "as" @keyword)
28
+
29
+ ; Types
30
+ (primitive_type) @type.builtin
31
+ (type_parameter) @type.parameter
32
+ (type_parameters "<" @punctuation.bracket ">" @punctuation.bracket)
33
+ (type_arguments "<" @punctuation.bracket ">" @punctuation.bracket)
34
+ (generic_type (qualified_identifier) @type)
35
+ (generic_type (identifier) @type)
36
+ (qualified_identifier) @type
37
+
38
+ ; Declarations
39
+ (struct_declaration name: (identifier) @type)
40
+ (enum_declaration name: (identifier) @type)
41
+ (trait_declaration name: (identifier) @type.interface)
42
+ (function_declaration name: (identifier) @function.definition)
43
+ (function_declaration name: (qualified_identifier) @function.definition)
44
+ (extern_function name: (identifier) @function.definition)
45
+ (enum_variant name: (identifier) @constant)
46
+
47
+ ; Parameters
48
+ (parameter name: (identifier) @variable.parameter)
49
+ (named_argument name: (identifier) @variable.parameter)
50
+
51
+ ; Variables and properties
52
+ (variable_declaration name: (identifier) @variable)
53
+ (struct_field name: (identifier) @property)
54
+ (struct_literal_field name: (identifier) @property)
55
+ (self_expression) @variable.builtin
56
+
57
+ ; Member/property vs call (disabled for now; was causing CLI query errors)
58
+
59
+ ; Literals
60
+ (number) @number
61
+ (string) @string
62
+ (string_interpolation "{" @punctuation.bracket "}" @punctuation.bracket)
63
+ (string_content) @string
64
+ (escape_sequence) @string.escape
65
+ (boolean) @boolean
66
+ (void) @constant.builtin
67
+ (wildcard) @variable.special
68
+
69
+ ; Comments
70
+ (comment) @comment
71
+
72
+ ; Punctuation
73
+ [
74
+ "("
75
+ ")"
76
+ "["
77
+ "]"
78
+ "{"
79
+ "}"
80
+ ","
81
+ ":"
82
+ ] @punctuation.delimiter
83
+
84
+ [
85
+ "."
86
+ "::"
87
+ "=>"
88
+ "->"
89
+ ] @punctuation.special
90
+
91
+ ; Operators
92
+ [
93
+ "="
94
+ "=+"
95
+ "=-"
96
+ "+"
97
+ "-"
98
+ "*"
99
+ "/"
100
+ "%"
101
+ "<"
102
+ "<="
103
+ ">"
104
+ ">="
105
+ "=="
106
+ "!"
107
+ "?"
108
+ ".."
109
+ ] @operator
package/dist/themes.d.ts CHANGED
@@ -35,6 +35,7 @@ export type ThemeTokens = {
35
35
  reviewText: string;
36
36
  errorText: string;
37
37
  warningText: string;
38
+ subagentText: string;
38
39
  debugLabel: string;
39
40
 
40
41
  // Secondary
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akonwi/kit",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "author": "Akonwi Ngoh <akonwi@gmail.com>",
5
5
  "description": "A TUI coding agent",
6
6
  "license": "MIT",
@@ -57,6 +57,7 @@
57
57
  "@opentui/keymap": "0.2.15",
58
58
  "@opentui/solid": "0.2.15",
59
59
  "@pierre/diffs": "^1.1.16",
60
+ "diff": "^9.0.0",
60
61
  "glob": "^13.0.6",
61
62
  "ignore": "^7.0.5",
62
63
  "solid-js": "1.9.12",
@@ -66,6 +67,7 @@
66
67
  },
67
68
  "devDependencies": {
68
69
  "@types/bun": "latest",
70
+ "@types/diff": "^8.0.0",
69
71
  "typescript": "^5.9.0"
70
72
  },
71
73
  "engines": {