opencode-bioresearcher-plugin 1.0.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.
@@ -0,0 +1,203 @@
1
+ export declare const tableTools: {
2
+ tableGetSheetPreview: {
3
+ description: string;
4
+ args: {
5
+ file_path: import("zod").ZodString;
6
+ sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
7
+ };
8
+ execute(args: {
9
+ file_path: string;
10
+ sheet_name?: string | undefined;
11
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
12
+ };
13
+ tableListSheets: {
14
+ description: string;
15
+ args: {
16
+ file_path: import("zod").ZodString;
17
+ };
18
+ execute(args: {
19
+ file_path: string;
20
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
21
+ };
22
+ tableGetHeaders: {
23
+ description: string;
24
+ args: {
25
+ file_path: import("zod").ZodString;
26
+ sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
27
+ };
28
+ execute(args: {
29
+ file_path: string;
30
+ sheet_name?: string | undefined;
31
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
32
+ };
33
+ tableGetCell: {
34
+ description: string;
35
+ args: {
36
+ file_path: import("zod").ZodString;
37
+ sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
38
+ cell_address: import("zod").ZodString;
39
+ };
40
+ execute(args: {
41
+ file_path: string;
42
+ cell_address: string;
43
+ sheet_name?: string | undefined;
44
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
45
+ };
46
+ tableFilterRows: {
47
+ description: string;
48
+ args: {
49
+ file_path: import("zod").ZodString;
50
+ sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
51
+ column: import("zod").ZodString;
52
+ operator: import("zod").ZodEnum<{
53
+ "=": "=";
54
+ "!=": "!=";
55
+ ">": ">";
56
+ "<": "<";
57
+ ">=": ">=";
58
+ "<=": "<=";
59
+ contains: "contains";
60
+ }>;
61
+ value: import("zod").ZodAny;
62
+ max_results: import("zod").ZodDefault<import("zod").ZodNumber>;
63
+ };
64
+ execute(args: {
65
+ file_path: string;
66
+ column: string;
67
+ operator: "=" | "!=" | ">" | "<" | ">=" | "<=" | "contains";
68
+ value: any;
69
+ max_results: number;
70
+ sheet_name?: string | undefined;
71
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
72
+ };
73
+ tableSearch: {
74
+ description: string;
75
+ args: {
76
+ file_path: import("zod").ZodString;
77
+ sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
78
+ search_term: import("zod").ZodString;
79
+ max_results: import("zod").ZodDefault<import("zod").ZodNumber>;
80
+ };
81
+ execute(args: {
82
+ file_path: string;
83
+ search_term: string;
84
+ max_results: number;
85
+ sheet_name?: string | undefined;
86
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
87
+ };
88
+ tableGetRange: {
89
+ description: string;
90
+ args: {
91
+ file_path: import("zod").ZodString;
92
+ sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
93
+ range: import("zod").ZodString;
94
+ };
95
+ execute(args: {
96
+ file_path: string;
97
+ range: string;
98
+ sheet_name?: string | undefined;
99
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
100
+ };
101
+ tableSummarize: {
102
+ description: string;
103
+ args: {
104
+ file_path: import("zod").ZodString;
105
+ sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
106
+ columns: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
107
+ };
108
+ execute(args: {
109
+ file_path: string;
110
+ sheet_name?: string | undefined;
111
+ columns?: string[] | undefined;
112
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
113
+ };
114
+ tableGroupBy: {
115
+ description: string;
116
+ args: {
117
+ file_path: import("zod").ZodString;
118
+ sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
119
+ group_column: import("zod").ZodString;
120
+ agg_column: import("zod").ZodString;
121
+ agg_type: import("zod").ZodDefault<import("zod").ZodEnum<{
122
+ sum: "sum";
123
+ count: "count";
124
+ avg: "avg";
125
+ min: "min";
126
+ max: "max";
127
+ }>>;
128
+ };
129
+ execute(args: {
130
+ file_path: string;
131
+ group_column: string;
132
+ agg_column: string;
133
+ agg_type: "sum" | "count" | "avg" | "min" | "max";
134
+ sheet_name?: string | undefined;
135
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
136
+ };
137
+ tablePivotSummary: {
138
+ description: string;
139
+ args: {
140
+ file_path: import("zod").ZodString;
141
+ sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
142
+ row_field: import("zod").ZodString;
143
+ col_field: import("zod").ZodString;
144
+ value_field: import("zod").ZodString;
145
+ agg: import("zod").ZodDefault<import("zod").ZodEnum<{
146
+ sum: "sum";
147
+ count: "count";
148
+ avg: "avg";
149
+ min: "min";
150
+ max: "max";
151
+ }>>;
152
+ };
153
+ execute(args: {
154
+ file_path: string;
155
+ row_field: string;
156
+ col_field: string;
157
+ value_field: string;
158
+ agg: "sum" | "count" | "avg" | "min" | "max";
159
+ sheet_name?: string | undefined;
160
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
161
+ };
162
+ tableAppendRows: {
163
+ description: string;
164
+ args: {
165
+ file_path: import("zod").ZodString;
166
+ sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
167
+ rows: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodArray<import("zod").ZodAny>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>]>>;
168
+ };
169
+ execute(args: {
170
+ file_path: string;
171
+ rows: (any[] | Record<string, any>)[];
172
+ sheet_name?: string | undefined;
173
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
174
+ };
175
+ tableUpdateCell: {
176
+ description: string;
177
+ args: {
178
+ file_path: import("zod").ZodString;
179
+ sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
180
+ cell_address: import("zod").ZodString;
181
+ value: import("zod").ZodAny;
182
+ };
183
+ execute(args: {
184
+ file_path: string;
185
+ cell_address: string;
186
+ value: any;
187
+ sheet_name?: string | undefined;
188
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
189
+ };
190
+ tableCreateFile: {
191
+ description: string;
192
+ args: {
193
+ file_path: import("zod").ZodString;
194
+ sheet_name: import("zod").ZodDefault<import("zod").ZodString>;
195
+ data: import("zod").ZodAny;
196
+ };
197
+ execute(args: {
198
+ file_path: string;
199
+ sheet_name: string;
200
+ data: any;
201
+ }, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
202
+ };
203
+ };
@@ -0,0 +1,16 @@
1
+ import { tableGetSheetPreview, tableListSheets, tableGetHeaders, tableGetCell, tableFilterRows, tableSearch, tableGetRange, tableSummarize, tableGroupBy, tablePivotSummary, tableAppendRows, tableUpdateCell, tableCreateFile } from './tools';
2
+ export const tableTools = {
3
+ tableGetSheetPreview,
4
+ tableListSheets,
5
+ tableGetHeaders,
6
+ tableGetCell,
7
+ tableFilterRows,
8
+ tableSearch,
9
+ tableGetRange,
10
+ tableSummarize,
11
+ tableGroupBy,
12
+ tablePivotSummary,
13
+ tableAppendRows,
14
+ tableUpdateCell,
15
+ tableCreateFile
16
+ };
@@ -0,0 +1,203 @@
1
+ import { ToolContext } from '@opencode-ai/plugin/tool';
2
+ import { z } from 'zod';
3
+ export declare const tableGetSheetPreview: {
4
+ description: string;
5
+ args: {
6
+ file_path: z.ZodString;
7
+ sheet_name: z.ZodOptional<z.ZodString>;
8
+ };
9
+ execute(args: {
10
+ file_path: string;
11
+ sheet_name?: string | undefined;
12
+ }, context: ToolContext): Promise<string>;
13
+ };
14
+ export declare const tableListSheets: {
15
+ description: string;
16
+ args: {
17
+ file_path: z.ZodString;
18
+ };
19
+ execute(args: {
20
+ file_path: string;
21
+ }, context: ToolContext): Promise<string>;
22
+ };
23
+ export declare const tableGetHeaders: {
24
+ description: string;
25
+ args: {
26
+ file_path: z.ZodString;
27
+ sheet_name: z.ZodOptional<z.ZodString>;
28
+ };
29
+ execute(args: {
30
+ file_path: string;
31
+ sheet_name?: string | undefined;
32
+ }, context: ToolContext): Promise<string>;
33
+ };
34
+ export declare const tableGetCell: {
35
+ description: string;
36
+ args: {
37
+ file_path: z.ZodString;
38
+ sheet_name: z.ZodOptional<z.ZodString>;
39
+ cell_address: z.ZodString;
40
+ };
41
+ execute(args: {
42
+ file_path: string;
43
+ cell_address: string;
44
+ sheet_name?: string | undefined;
45
+ }, context: ToolContext): Promise<string>;
46
+ };
47
+ export declare const tableFilterRows: {
48
+ description: string;
49
+ args: {
50
+ file_path: z.ZodString;
51
+ sheet_name: z.ZodOptional<z.ZodString>;
52
+ column: z.ZodString;
53
+ operator: z.ZodEnum<{
54
+ "=": "=";
55
+ "!=": "!=";
56
+ ">": ">";
57
+ "<": "<";
58
+ ">=": ">=";
59
+ "<=": "<=";
60
+ contains: "contains";
61
+ }>;
62
+ value: z.ZodAny;
63
+ max_results: z.ZodDefault<z.ZodNumber>;
64
+ };
65
+ execute(args: {
66
+ file_path: string;
67
+ column: string;
68
+ operator: "=" | "!=" | ">" | "<" | ">=" | "<=" | "contains";
69
+ value: any;
70
+ max_results: number;
71
+ sheet_name?: string | undefined;
72
+ }, context: ToolContext): Promise<string>;
73
+ };
74
+ export declare const tableSearch: {
75
+ description: string;
76
+ args: {
77
+ file_path: z.ZodString;
78
+ sheet_name: z.ZodOptional<z.ZodString>;
79
+ search_term: z.ZodString;
80
+ max_results: z.ZodDefault<z.ZodNumber>;
81
+ };
82
+ execute(args: {
83
+ file_path: string;
84
+ search_term: string;
85
+ max_results: number;
86
+ sheet_name?: string | undefined;
87
+ }, context: ToolContext): Promise<string>;
88
+ };
89
+ export declare const tableGetRange: {
90
+ description: string;
91
+ args: {
92
+ file_path: z.ZodString;
93
+ sheet_name: z.ZodOptional<z.ZodString>;
94
+ range: z.ZodString;
95
+ };
96
+ execute(args: {
97
+ file_path: string;
98
+ range: string;
99
+ sheet_name?: string | undefined;
100
+ }, context: ToolContext): Promise<string>;
101
+ };
102
+ export declare const tableSummarize: {
103
+ description: string;
104
+ args: {
105
+ file_path: z.ZodString;
106
+ sheet_name: z.ZodOptional<z.ZodString>;
107
+ columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
108
+ };
109
+ execute(args: {
110
+ file_path: string;
111
+ sheet_name?: string | undefined;
112
+ columns?: string[] | undefined;
113
+ }, context: ToolContext): Promise<string>;
114
+ };
115
+ export declare const tableGroupBy: {
116
+ description: string;
117
+ args: {
118
+ file_path: z.ZodString;
119
+ sheet_name: z.ZodOptional<z.ZodString>;
120
+ group_column: z.ZodString;
121
+ agg_column: z.ZodString;
122
+ agg_type: z.ZodDefault<z.ZodEnum<{
123
+ sum: "sum";
124
+ count: "count";
125
+ avg: "avg";
126
+ min: "min";
127
+ max: "max";
128
+ }>>;
129
+ };
130
+ execute(args: {
131
+ file_path: string;
132
+ group_column: string;
133
+ agg_column: string;
134
+ agg_type: "sum" | "count" | "avg" | "min" | "max";
135
+ sheet_name?: string | undefined;
136
+ }, context: ToolContext): Promise<string>;
137
+ };
138
+ export declare const tablePivotSummary: {
139
+ description: string;
140
+ args: {
141
+ file_path: z.ZodString;
142
+ sheet_name: z.ZodOptional<z.ZodString>;
143
+ row_field: z.ZodString;
144
+ col_field: z.ZodString;
145
+ value_field: z.ZodString;
146
+ agg: z.ZodDefault<z.ZodEnum<{
147
+ sum: "sum";
148
+ count: "count";
149
+ avg: "avg";
150
+ min: "min";
151
+ max: "max";
152
+ }>>;
153
+ };
154
+ execute(args: {
155
+ file_path: string;
156
+ row_field: string;
157
+ col_field: string;
158
+ value_field: string;
159
+ agg: "sum" | "count" | "avg" | "min" | "max";
160
+ sheet_name?: string | undefined;
161
+ }, context: ToolContext): Promise<string>;
162
+ };
163
+ export declare const tableAppendRows: {
164
+ description: string;
165
+ args: {
166
+ file_path: z.ZodString;
167
+ sheet_name: z.ZodOptional<z.ZodString>;
168
+ rows: z.ZodArray<z.ZodUnion<readonly [z.ZodArray<z.ZodAny>, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
169
+ };
170
+ execute(args: {
171
+ file_path: string;
172
+ rows: (any[] | Record<string, any>)[];
173
+ sheet_name?: string | undefined;
174
+ }, context: ToolContext): Promise<string>;
175
+ };
176
+ export declare const tableUpdateCell: {
177
+ description: string;
178
+ args: {
179
+ file_path: z.ZodString;
180
+ sheet_name: z.ZodOptional<z.ZodString>;
181
+ cell_address: z.ZodString;
182
+ value: z.ZodAny;
183
+ };
184
+ execute(args: {
185
+ file_path: string;
186
+ cell_address: string;
187
+ value: any;
188
+ sheet_name?: string | undefined;
189
+ }, context: ToolContext): Promise<string>;
190
+ };
191
+ export declare const tableCreateFile: {
192
+ description: string;
193
+ args: {
194
+ file_path: z.ZodString;
195
+ sheet_name: z.ZodDefault<z.ZodString>;
196
+ data: z.ZodAny;
197
+ };
198
+ execute(args: {
199
+ file_path: string;
200
+ sheet_name: string;
201
+ data: any;
202
+ }, context: ToolContext): Promise<string>;
203
+ };