@nexiq/shared 1.0.3 → 1.1.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 (68) hide show
  1. package/dist/component.d.ts +88 -5
  2. package/dist/component.d.ts.map +1 -1
  3. package/dist/db/sqlite.d.ts +2 -1
  4. package/dist/db/sqlite.d.ts.map +1 -1
  5. package/dist/db/sqlite.js +10 -3
  6. package/dist/db/sqlite.js.map +1 -1
  7. package/dist/index.d.ts +32 -15
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js.map +1 -1
  10. package/dist/nexiq/graph-view/graph-combo.d.ts +4 -1
  11. package/dist/nexiq/graph-view/graph-combo.d.ts.map +1 -1
  12. package/dist/nexiq/graph-view/graph-combo.js +10 -2
  13. package/dist/nexiq/graph-view/graph-combo.js.map +1 -1
  14. package/dist/nexiq/graph-view/graph-node.d.ts +4 -1
  15. package/dist/nexiq/graph-view/graph-node.d.ts.map +1 -1
  16. package/dist/nexiq/graph-view/graph-node.js +10 -2
  17. package/dist/nexiq/graph-view/graph-node.js.map +1 -1
  18. package/dist/nexiq/graph-view/item-type.d.ts +6 -1
  19. package/dist/nexiq/graph-view/item-type.d.ts.map +1 -1
  20. package/dist/nexiq/graph-view/item-type.js +90 -0
  21. package/dist/nexiq/graph-view/item-type.js.map +1 -1
  22. package/dist/nexiq/graph-view.d.ts +1 -1
  23. package/dist/nexiq/graph-view.d.ts.map +1 -1
  24. package/dist/nexiq/graph-view.js +1 -1
  25. package/dist/nexiq/graph-view.js.map +1 -1
  26. package/dist/types/backend.d.ts +21 -2
  27. package/dist/types/backend.d.ts.map +1 -1
  28. package/dist/types/config.d.ts +0 -1
  29. package/dist/types/config.d.ts.map +1 -1
  30. package/dist/types/index.d.ts +1 -32
  31. package/dist/types/index.d.ts.map +1 -1
  32. package/dist/types/index.js +1 -0
  33. package/dist/types/index.js.map +1 -1
  34. package/dist/types/primitive.d.ts +58 -4
  35. package/dist/types/primitive.d.ts.map +1 -1
  36. package/dist/types/routes.d.ts +60 -0
  37. package/dist/types/routes.d.ts.map +1 -0
  38. package/dist/types/routes.js +2 -0
  39. package/dist/types/routes.js.map +1 -0
  40. package/dist/utils.d.ts.map +1 -1
  41. package/package.json +14 -4
  42. package/dist/types/function.d.ts +0 -20
  43. package/dist/types/function.d.ts.map +0 -1
  44. package/dist/types/function.js +0 -2
  45. package/dist/types/function.js.map +0 -1
  46. package/eslint.config.js +0 -32
  47. package/src/component.ts +0 -503
  48. package/src/db/index.ts +0 -1
  49. package/src/db/sqlite.ts +0 -103
  50. package/src/index.ts +0 -288
  51. package/src/nexiq/graph-view/graph-combo.ts +0 -141
  52. package/src/nexiq/graph-view/graph-edge.ts +0 -108
  53. package/src/nexiq/graph-view/graph-node-detail.ts +0 -88
  54. package/src/nexiq/graph-view/graph-node.ts +0 -131
  55. package/src/nexiq/graph-view/graph-view.ts +0 -162
  56. package/src/nexiq/graph-view/item-type.ts +0 -19
  57. package/src/nexiq/graph-view/loc.ts +0 -56
  58. package/src/nexiq/graph-view.ts +0 -9
  59. package/src/schema/graph_view.fbs +0 -74
  60. package/src/types/backend.ts +0 -76
  61. package/src/types/config.ts +0 -17
  62. package/src/types/function.ts +0 -24
  63. package/src/types/git.ts +0 -48
  64. package/src/types/index.ts +0 -93
  65. package/src/types/object.ts +0 -37
  66. package/src/types/primitive.ts +0 -274
  67. package/src/utils.ts +0 -93
  68. package/tsconfig.json +0 -35
@@ -1,131 +0,0 @@
1
- // automatically generated by the FlatBuffers compiler, do not modify
2
-
3
- import * as flatbuffers from 'flatbuffers';
4
-
5
- import { ItemType } from '../../nexiq/graph-view/item-type.js';
6
-
7
-
8
- export class GraphNode {
9
- bb: flatbuffers.ByteBuffer|null = null;
10
- bb_pos = 0;
11
- __init(i:number, bb:flatbuffers.ByteBuffer):GraphNode {
12
- this.bb_pos = i;
13
- this.bb = bb;
14
- return this;
15
- }
16
-
17
- static getRootAsGraphNode(bb:flatbuffers.ByteBuffer, obj?:GraphNode):GraphNode {
18
- return (obj || new GraphNode()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
19
- }
20
-
21
- static getSizePrefixedRootAsGraphNode(bb:flatbuffers.ByteBuffer, obj?:GraphNode):GraphNode {
22
- bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
23
- return (obj || new GraphNode()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
24
- }
25
-
26
- id():string|null
27
- id(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
28
- id(optionalEncoding?:any):string|Uint8Array|null {
29
- const offset = this.bb!.__offset(this.bb_pos, 4);
30
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
31
- }
32
-
33
- type():ItemType {
34
- const offset = this.bb!.__offset(this.bb_pos, 6);
35
- return offset ? this.bb!.readInt8(this.bb_pos + offset) : ItemType.Package;
36
- }
37
-
38
- name():string|null
39
- name(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
40
- name(optionalEncoding?:any):string|Uint8Array|null {
41
- const offset = this.bb!.__offset(this.bb_pos, 8);
42
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
43
- }
44
-
45
- displayName():string|null
46
- displayName(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
47
- displayName(optionalEncoding?:any):string|Uint8Array|null {
48
- const offset = this.bb!.__offset(this.bb_pos, 10);
49
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
50
- }
51
-
52
- comboId():string|null
53
- comboId(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
54
- comboId(optionalEncoding?:any):string|Uint8Array|null {
55
- const offset = this.bb!.__offset(this.bb_pos, 12);
56
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
57
- }
58
-
59
- color():string|null
60
- color(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
61
- color(optionalEncoding?:any):string|Uint8Array|null {
62
- const offset = this.bb!.__offset(this.bb_pos, 14);
63
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
64
- }
65
-
66
- radius():number {
67
- const offset = this.bb!.__offset(this.bb_pos, 16);
68
- return offset ? this.bb!.readFloat32(this.bb_pos + offset) : 0.0;
69
- }
70
-
71
- gitStatus():string|null
72
- gitStatus(optionalEncoding:flatbuffers.Encoding):string|Uint8Array|null
73
- gitStatus(optionalEncoding?:any):string|Uint8Array|null {
74
- const offset = this.bb!.__offset(this.bb_pos, 18);
75
- return offset ? this.bb!.__string(this.bb_pos + offset, optionalEncoding) : null;
76
- }
77
-
78
- static startGraphNode(builder:flatbuffers.Builder) {
79
- builder.startObject(8);
80
- }
81
-
82
- static addId(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset) {
83
- builder.addFieldOffset(0, idOffset, 0);
84
- }
85
-
86
- static addType(builder:flatbuffers.Builder, type:ItemType) {
87
- builder.addFieldInt8(1, type, ItemType.Package);
88
- }
89
-
90
- static addName(builder:flatbuffers.Builder, nameOffset:flatbuffers.Offset) {
91
- builder.addFieldOffset(2, nameOffset, 0);
92
- }
93
-
94
- static addDisplayName(builder:flatbuffers.Builder, displayNameOffset:flatbuffers.Offset) {
95
- builder.addFieldOffset(3, displayNameOffset, 0);
96
- }
97
-
98
- static addComboId(builder:flatbuffers.Builder, comboIdOffset:flatbuffers.Offset) {
99
- builder.addFieldOffset(4, comboIdOffset, 0);
100
- }
101
-
102
- static addColor(builder:flatbuffers.Builder, colorOffset:flatbuffers.Offset) {
103
- builder.addFieldOffset(5, colorOffset, 0);
104
- }
105
-
106
- static addRadius(builder:flatbuffers.Builder, radius:number) {
107
- builder.addFieldFloat32(6, radius, 0.0);
108
- }
109
-
110
- static addGitStatus(builder:flatbuffers.Builder, gitStatusOffset:flatbuffers.Offset) {
111
- builder.addFieldOffset(7, gitStatusOffset, 0);
112
- }
113
-
114
- static endGraphNode(builder:flatbuffers.Builder):flatbuffers.Offset {
115
- const offset = builder.endObject();
116
- return offset;
117
- }
118
-
119
- static createGraphNode(builder:flatbuffers.Builder, idOffset:flatbuffers.Offset, type:ItemType, nameOffset:flatbuffers.Offset, displayNameOffset:flatbuffers.Offset, comboIdOffset:flatbuffers.Offset, colorOffset:flatbuffers.Offset, radius:number, gitStatusOffset:flatbuffers.Offset):flatbuffers.Offset {
120
- GraphNode.startGraphNode(builder);
121
- GraphNode.addId(builder, idOffset);
122
- GraphNode.addType(builder, type);
123
- GraphNode.addName(builder, nameOffset);
124
- GraphNode.addDisplayName(builder, displayNameOffset);
125
- GraphNode.addComboId(builder, comboIdOffset);
126
- GraphNode.addColor(builder, colorOffset);
127
- GraphNode.addRadius(builder, radius);
128
- GraphNode.addGitStatus(builder, gitStatusOffset);
129
- return GraphNode.endGraphNode(builder);
130
- }
131
- }
@@ -1,162 +0,0 @@
1
- // automatically generated by the FlatBuffers compiler, do not modify
2
-
3
- import * as flatbuffers from 'flatbuffers';
4
-
5
- import { GraphCombo } from '../../nexiq/graph-view/graph-combo.js';
6
- import { GraphEdge } from '../../nexiq/graph-view/graph-edge.js';
7
- import { GraphNode } from '../../nexiq/graph-view/graph-node.js';
8
- import { GraphNodeDetail } from '../../nexiq/graph-view/graph-node-detail.js';
9
-
10
-
11
- export class GraphView {
12
- bb: flatbuffers.ByteBuffer|null = null;
13
- bb_pos = 0;
14
- __init(i:number, bb:flatbuffers.ByteBuffer):GraphView {
15
- this.bb_pos = i;
16
- this.bb = bb;
17
- return this;
18
- }
19
-
20
- static getRootAsGraphView(bb:flatbuffers.ByteBuffer, obj?:GraphView):GraphView {
21
- return (obj || new GraphView()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
22
- }
23
-
24
- static getSizePrefixedRootAsGraphView(bb:flatbuffers.ByteBuffer, obj?:GraphView):GraphView {
25
- bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
26
- return (obj || new GraphView()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
27
- }
28
-
29
- static bufferHasIdentifier(bb:flatbuffers.ByteBuffer):boolean {
30
- return bb.__has_identifier('NXGV');
31
- }
32
-
33
- nodes(index: number, obj?:GraphNode):GraphNode|null {
34
- const offset = this.bb!.__offset(this.bb_pos, 4);
35
- return offset ? (obj || new GraphNode()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
36
- }
37
-
38
- nodesLength():number {
39
- const offset = this.bb!.__offset(this.bb_pos, 4);
40
- return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
41
- }
42
-
43
- combos(index: number, obj?:GraphCombo):GraphCombo|null {
44
- const offset = this.bb!.__offset(this.bb_pos, 6);
45
- return offset ? (obj || new GraphCombo()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
46
- }
47
-
48
- combosLength():number {
49
- const offset = this.bb!.__offset(this.bb_pos, 6);
50
- return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
51
- }
52
-
53
- edges(index: number, obj?:GraphEdge):GraphEdge|null {
54
- const offset = this.bb!.__offset(this.bb_pos, 8);
55
- return offset ? (obj || new GraphEdge()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
56
- }
57
-
58
- edgesLength():number {
59
- const offset = this.bb!.__offset(this.bb_pos, 8);
60
- return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
61
- }
62
-
63
- details(index: number, obj?:GraphNodeDetail):GraphNodeDetail|null {
64
- const offset = this.bb!.__offset(this.bb_pos, 10);
65
- return offset ? (obj || new GraphNodeDetail()).__init(this.bb!.__indirect(this.bb!.__vector(this.bb_pos + offset) + index * 4), this.bb!) : null;
66
- }
67
-
68
- detailsLength():number {
69
- const offset = this.bb!.__offset(this.bb_pos, 10);
70
- return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
71
- }
72
-
73
- static startGraphView(builder:flatbuffers.Builder) {
74
- builder.startObject(4);
75
- }
76
-
77
- static addNodes(builder:flatbuffers.Builder, nodesOffset:flatbuffers.Offset) {
78
- builder.addFieldOffset(0, nodesOffset, 0);
79
- }
80
-
81
- static createNodesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
82
- builder.startVector(4, data.length, 4);
83
- for (let i = data.length - 1; i >= 0; i--) {
84
- builder.addOffset(data[i]!);
85
- }
86
- return builder.endVector();
87
- }
88
-
89
- static startNodesVector(builder:flatbuffers.Builder, numElems:number) {
90
- builder.startVector(4, numElems, 4);
91
- }
92
-
93
- static addCombos(builder:flatbuffers.Builder, combosOffset:flatbuffers.Offset) {
94
- builder.addFieldOffset(1, combosOffset, 0);
95
- }
96
-
97
- static createCombosVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
98
- builder.startVector(4, data.length, 4);
99
- for (let i = data.length - 1; i >= 0; i--) {
100
- builder.addOffset(data[i]!);
101
- }
102
- return builder.endVector();
103
- }
104
-
105
- static startCombosVector(builder:flatbuffers.Builder, numElems:number) {
106
- builder.startVector(4, numElems, 4);
107
- }
108
-
109
- static addEdges(builder:flatbuffers.Builder, edgesOffset:flatbuffers.Offset) {
110
- builder.addFieldOffset(2, edgesOffset, 0);
111
- }
112
-
113
- static createEdgesVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
114
- builder.startVector(4, data.length, 4);
115
- for (let i = data.length - 1; i >= 0; i--) {
116
- builder.addOffset(data[i]!);
117
- }
118
- return builder.endVector();
119
- }
120
-
121
- static startEdgesVector(builder:flatbuffers.Builder, numElems:number) {
122
- builder.startVector(4, numElems, 4);
123
- }
124
-
125
- static addDetails(builder:flatbuffers.Builder, detailsOffset:flatbuffers.Offset) {
126
- builder.addFieldOffset(3, detailsOffset, 0);
127
- }
128
-
129
- static createDetailsVector(builder:flatbuffers.Builder, data:flatbuffers.Offset[]):flatbuffers.Offset {
130
- builder.startVector(4, data.length, 4);
131
- for (let i = data.length - 1; i >= 0; i--) {
132
- builder.addOffset(data[i]!);
133
- }
134
- return builder.endVector();
135
- }
136
-
137
- static startDetailsVector(builder:flatbuffers.Builder, numElems:number) {
138
- builder.startVector(4, numElems, 4);
139
- }
140
-
141
- static endGraphView(builder:flatbuffers.Builder):flatbuffers.Offset {
142
- const offset = builder.endObject();
143
- return offset;
144
- }
145
-
146
- static finishGraphViewBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
147
- builder.finish(offset, 'NXGV');
148
- }
149
-
150
- static finishSizePrefixedGraphViewBuffer(builder:flatbuffers.Builder, offset:flatbuffers.Offset) {
151
- builder.finish(offset, 'NXGV', true);
152
- }
153
-
154
- static createGraphView(builder:flatbuffers.Builder, nodesOffset:flatbuffers.Offset, combosOffset:flatbuffers.Offset, edgesOffset:flatbuffers.Offset, detailsOffset:flatbuffers.Offset):flatbuffers.Offset {
155
- GraphView.startGraphView(builder);
156
- GraphView.addNodes(builder, nodesOffset);
157
- GraphView.addCombos(builder, combosOffset);
158
- GraphView.addEdges(builder, edgesOffset);
159
- GraphView.addDetails(builder, detailsOffset);
160
- return GraphView.endGraphView(builder);
161
- }
162
- }
@@ -1,19 +0,0 @@
1
- // automatically generated by the FlatBuffers compiler, do not modify
2
-
3
- export enum ItemType {
4
- Package = 0,
5
- Scope = 1,
6
- Component = 2,
7
- Hook = 3,
8
- State = 4,
9
- Memo = 5,
10
- Callback = 6,
11
- Ref = 7,
12
- Effect = 8,
13
- Prop = 9,
14
- Render = 10,
15
- RenderGroup = 11,
16
- SourceGroup = 12,
17
- PathGroup = 13,
18
- Variable = 14
19
- }
@@ -1,56 +0,0 @@
1
- // automatically generated by the FlatBuffers compiler, do not modify
2
-
3
- import * as flatbuffers from 'flatbuffers';
4
-
5
- export class Loc {
6
- bb: flatbuffers.ByteBuffer|null = null;
7
- bb_pos = 0;
8
- __init(i:number, bb:flatbuffers.ByteBuffer):Loc {
9
- this.bb_pos = i;
10
- this.bb = bb;
11
- return this;
12
- }
13
-
14
- static getRootAsLoc(bb:flatbuffers.ByteBuffer, obj?:Loc):Loc {
15
- return (obj || new Loc()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
16
- }
17
-
18
- static getSizePrefixedRootAsLoc(bb:flatbuffers.ByteBuffer, obj?:Loc):Loc {
19
- bb.setPosition(bb.position() + flatbuffers.SIZE_PREFIX_LENGTH);
20
- return (obj || new Loc()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
21
- }
22
-
23
- line():number {
24
- const offset = this.bb!.__offset(this.bb_pos, 4);
25
- return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
26
- }
27
-
28
- column():number {
29
- const offset = this.bb!.__offset(this.bb_pos, 6);
30
- return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
31
- }
32
-
33
- static startLoc(builder:flatbuffers.Builder) {
34
- builder.startObject(2);
35
- }
36
-
37
- static addLine(builder:flatbuffers.Builder, line:number) {
38
- builder.addFieldInt32(0, line, 0);
39
- }
40
-
41
- static addColumn(builder:flatbuffers.Builder, column:number) {
42
- builder.addFieldInt32(1, column, 0);
43
- }
44
-
45
- static endLoc(builder:flatbuffers.Builder):flatbuffers.Offset {
46
- const offset = builder.endObject();
47
- return offset;
48
- }
49
-
50
- static createLoc(builder:flatbuffers.Builder, line:number, column:number):flatbuffers.Offset {
51
- Loc.startLoc(builder);
52
- Loc.addLine(builder, line);
53
- Loc.addColumn(builder, column);
54
- return Loc.endLoc(builder);
55
- }
56
- }
@@ -1,9 +0,0 @@
1
- // automatically generated by the FlatBuffers compiler, do not modify
2
-
3
- export { GraphCombo } from './graph-view/graph-combo.js';
4
- export { GraphEdge } from './graph-view/graph-edge.js';
5
- export { GraphNode } from './graph-view/graph-node.js';
6
- export { GraphNodeDetail } from './graph-view/graph-node-detail.js';
7
- export { GraphView } from './graph-view/graph-view.js';
8
- export { ItemType } from './graph-view/item-type.js';
9
- export { Loc } from './graph-view/loc.js';
@@ -1,74 +0,0 @@
1
- namespace Nexiq.GraphView;
2
-
3
- enum ItemType : byte {
4
- Package = 0,
5
- Scope = 1,
6
- Component = 2,
7
- Hook = 3,
8
- State = 4,
9
- Memo = 5,
10
- Callback = 6,
11
- Ref = 7,
12
- Effect = 8,
13
- Prop = 9,
14
- Render = 10,
15
- RenderGroup = 11,
16
- SourceGroup = 12,
17
- PathGroup = 13,
18
- Variable = 14
19
- }
20
-
21
- table Loc {
22
- line:int;
23
- column:int;
24
- }
25
-
26
- table GraphNode {
27
- id:string;
28
- type:ItemType;
29
- name:string;
30
- displayName:string;
31
- comboId:string;
32
- color:string;
33
- radius:float;
34
- gitStatus:string;
35
- }
36
-
37
- table GraphCombo {
38
- id:string;
39
- type:ItemType;
40
- name:string;
41
- displayName:string;
42
- parentId:string;
43
- color:string;
44
- radius:float;
45
- collapsed:bool;
46
- gitStatus:string;
47
- }
48
-
49
- table GraphEdge {
50
- id:string;
51
- source:string;
52
- target:string;
53
- name:string;
54
- kind:string;
55
- category:string;
56
- }
57
-
58
- table GraphNodeDetail {
59
- id:string;
60
- fileName:string;
61
- projectPath:string;
62
- loc:Loc;
63
- data_json:string;
64
- }
65
-
66
- table GraphView {
67
- nodes:[GraphNode];
68
- combos:[GraphCombo];
69
- edges:[GraphEdge];
70
- details:[GraphNodeDetail];
71
- }
72
-
73
- root_type GraphView;
74
- file_identifier "NXGV";
@@ -1,76 +0,0 @@
1
- import type {
2
- ProjectStatus,
3
- GitStatus,
4
- GitCommit,
5
- GitFileDiff,
6
- NexiqConfig,
7
- } from "./index.js";
8
-
9
- export interface BackendRequestMap {
10
- check_project_status: {
11
- payload: { projectPath: string };
12
- response: ProjectStatus;
13
- };
14
- save_project_config: {
15
- payload: { projectPath: string; config: NexiqConfig };
16
- response: { success: boolean };
17
- };
18
- get_project_icon: {
19
- payload: { projectPath: string };
20
- response: { icon: string } | null;
21
- };
22
- git_status: {
23
- payload: { projectPath: string };
24
- response: GitStatus;
25
- };
26
- git_log: {
27
- payload: {
28
- projectPath: string;
29
- options: number | { limit?: number; path?: string };
30
- };
31
- response: GitCommit[];
32
- };
33
- git_diff: {
34
- payload: {
35
- projectPath: string;
36
- options: {
37
- file?: string;
38
- commit?: string;
39
- baseCommit?: string;
40
- staged?: boolean;
41
- };
42
- };
43
- response: GitFileDiff[];
44
- };
45
- git_analyze_commit: {
46
- payload: { projectPath: string; commitHash: string; subProject?: string };
47
- response: { sqlitePath: string };
48
- };
49
- open_project: {
50
- payload: {
51
- projectPath: string;
52
- subProject?: string;
53
- subProjects?: string[];
54
- };
55
- response: { sqlitePath: string };
56
- };
57
- call_tool: {
58
- payload: { name: string; arguments: Record<string, unknown> };
59
- response: unknown;
60
- };
61
- chunked_response: {
62
- payload: {
63
- chunk: string;
64
- index: number;
65
- total: number;
66
- originalType: string;
67
- };
68
- response: void;
69
- };
70
- get_node_detail: {
71
- payload: { projectPath: string; nodeId: string };
72
- response: any; // We'll use GraphNodeDetail here, but need to import it or use a generic object
73
- };
74
- }
75
-
76
- export type BackendMessageType = keyof BackendRequestMap;
@@ -1,17 +0,0 @@
1
- export type AppTheme = "dark" | "light";
2
-
3
- export interface SubProject {
4
- name: string;
5
- path: string;
6
- }
7
-
8
- export interface NexiqConfig {
9
- entry?: string;
10
- aliases?: Record<string, string>;
11
- extensions?: string[];
12
- dependencyDepth?: number;
13
- analysisPath?: string;
14
- analysisPaths?: string[];
15
- ignorePatterns?: string[];
16
- ignoreSubProjects?: string[];
17
- }
@@ -1,24 +0,0 @@
1
- import type { FuncParam } from "./object.js";
2
- import type { TypeData, TypeDataLiteralBody } from "./primitive.js";
3
-
4
- export interface TypeDataFunctionParameterBase {
5
- optional?: boolean;
6
- //TODO: handle rest
7
- decorator: never;
8
- }
9
-
10
- export interface TypeDataFunctionParameterName extends TypeDataFunctionParameterBase {
11
- name: string;
12
- body: TypeData;
13
- }
14
-
15
- export interface TypeDataFunctionParameterObject extends TypeDataFunctionParameterBase {
16
- name: string;
17
- body: TypeDataLiteralBody[];
18
- properties: FuncParam[];
19
- }
20
-
21
- export interface TypeDataFunctionParameter {
22
- name: string;
23
- body: TypeData;
24
- }
package/src/types/git.ts DELETED
@@ -1,48 +0,0 @@
1
-
2
- export interface GitFileStatus {
3
- path: string;
4
- index: string; // 'A', 'M', 'D', '?', etc.
5
- working_dir: string;
6
- }
7
-
8
- export interface GitStatus {
9
- current: string | null;
10
- tracking: string | null;
11
- detached: boolean;
12
- files: GitFileStatus[];
13
- staged: string[];
14
- }
15
-
16
- export interface GitCommit {
17
- hash: string;
18
- date: string;
19
- message: string;
20
- author_name: string;
21
- author_email: string;
22
- }
23
-
24
- export interface GitDiff {
25
- file: string;
26
- diff: string;
27
- }
28
-
29
- export interface GitDiffLine {
30
- type: 'added' | 'deleted' | 'normal';
31
- content: string;
32
- newLineNumber?: number;
33
- oldLineNumber?: number;
34
- }
35
-
36
- export interface GitFileDiff {
37
- path: string;
38
- hunks: GitDiffHunk[];
39
- }
40
-
41
- export interface GitDiffHunk {
42
- content: string;
43
- lines: GitDiffLine[];
44
- oldStart: number;
45
- oldLines: number;
46
- newStart: number;
47
- newLines: number;
48
- }