@yeyuan98/opencode-bioresearcher-plugin 1.6.8-alpha.2 → 1.7.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/skills/bioresearcher-tests/SKILL.md +46 -4
- package/dist/skills/bioresearcher-tests/test_cases/table_tests.md +347 -9
- package/dist/skills/bioresearcher-tests/test_runner.py +36 -1
- package/dist/tools/table/index.d.ts +35 -7
- package/dist/tools/table/tools.d.ts +36 -8
- package/dist/tools/table/tools.js +269 -117
- package/dist/tools/table/utils.d.ts +7 -1
- package/dist/tools/table/utils.js +56 -2
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
|
@@ -4,9 +4,11 @@ export declare const tableTools: {
|
|
|
4
4
|
args: {
|
|
5
5
|
file_path: import("zod").ZodString;
|
|
6
6
|
sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
7
|
+
force: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
7
8
|
};
|
|
8
9
|
execute(args: {
|
|
9
10
|
file_path: string;
|
|
11
|
+
force: boolean;
|
|
10
12
|
sheet_name?: string | undefined;
|
|
11
13
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
12
14
|
};
|
|
@@ -14,9 +16,11 @@ export declare const tableTools: {
|
|
|
14
16
|
description: string;
|
|
15
17
|
args: {
|
|
16
18
|
file_path: import("zod").ZodString;
|
|
19
|
+
force: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
17
20
|
};
|
|
18
21
|
execute(args: {
|
|
19
22
|
file_path: string;
|
|
23
|
+
force: boolean;
|
|
20
24
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
21
25
|
};
|
|
22
26
|
tableGetHeaders: {
|
|
@@ -24,9 +28,11 @@ export declare const tableTools: {
|
|
|
24
28
|
args: {
|
|
25
29
|
file_path: import("zod").ZodString;
|
|
26
30
|
sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
31
|
+
force: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
27
32
|
};
|
|
28
33
|
execute(args: {
|
|
29
34
|
file_path: string;
|
|
35
|
+
force: boolean;
|
|
30
36
|
sheet_name?: string | undefined;
|
|
31
37
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
32
38
|
};
|
|
@@ -36,10 +42,12 @@ export declare const tableTools: {
|
|
|
36
42
|
file_path: import("zod").ZodString;
|
|
37
43
|
sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
38
44
|
cell_address: import("zod").ZodString;
|
|
45
|
+
force: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
39
46
|
};
|
|
40
47
|
execute(args: {
|
|
41
48
|
file_path: string;
|
|
42
49
|
cell_address: string;
|
|
50
|
+
force: boolean;
|
|
43
51
|
sheet_name?: string | undefined;
|
|
44
52
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
45
53
|
};
|
|
@@ -57,16 +65,20 @@ export declare const tableTools: {
|
|
|
57
65
|
">=": ">=";
|
|
58
66
|
"<=": "<=";
|
|
59
67
|
contains: "contains";
|
|
68
|
+
starts_with: "starts_with";
|
|
69
|
+
ends_with: "ends_with";
|
|
60
70
|
}>;
|
|
61
|
-
value: import("zod").
|
|
71
|
+
value: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean]>;
|
|
62
72
|
max_results: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
73
|
+
force: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
63
74
|
};
|
|
64
75
|
execute(args: {
|
|
65
76
|
file_path: string;
|
|
66
77
|
column: string;
|
|
67
|
-
operator: "=" | "!=" | ">" | "<" | ">=" | "<=" | "contains";
|
|
68
|
-
value:
|
|
78
|
+
operator: "=" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "starts_with" | "ends_with";
|
|
79
|
+
value: string | number | boolean;
|
|
69
80
|
max_results: number;
|
|
81
|
+
force: boolean;
|
|
70
82
|
sheet_name?: string | undefined;
|
|
71
83
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
72
84
|
};
|
|
@@ -77,11 +89,13 @@ export declare const tableTools: {
|
|
|
77
89
|
sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
78
90
|
search_term: import("zod").ZodString;
|
|
79
91
|
max_results: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
92
|
+
force: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
80
93
|
};
|
|
81
94
|
execute(args: {
|
|
82
95
|
file_path: string;
|
|
83
96
|
search_term: string;
|
|
84
97
|
max_results: number;
|
|
98
|
+
force: boolean;
|
|
85
99
|
sheet_name?: string | undefined;
|
|
86
100
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
87
101
|
};
|
|
@@ -91,10 +105,12 @@ export declare const tableTools: {
|
|
|
91
105
|
file_path: import("zod").ZodString;
|
|
92
106
|
sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
93
107
|
range: import("zod").ZodString;
|
|
108
|
+
force: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
94
109
|
};
|
|
95
110
|
execute(args: {
|
|
96
111
|
file_path: string;
|
|
97
112
|
range: string;
|
|
113
|
+
force: boolean;
|
|
98
114
|
sheet_name?: string | undefined;
|
|
99
115
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
100
116
|
};
|
|
@@ -104,9 +120,11 @@ export declare const tableTools: {
|
|
|
104
120
|
file_path: import("zod").ZodString;
|
|
105
121
|
sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
106
122
|
columns: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
123
|
+
force: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
107
124
|
};
|
|
108
125
|
execute(args: {
|
|
109
126
|
file_path: string;
|
|
127
|
+
force: boolean;
|
|
110
128
|
sheet_name?: string | undefined;
|
|
111
129
|
columns?: string[] | undefined;
|
|
112
130
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
@@ -125,12 +143,14 @@ export declare const tableTools: {
|
|
|
125
143
|
min: "min";
|
|
126
144
|
max: "max";
|
|
127
145
|
}>>;
|
|
146
|
+
force: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
128
147
|
};
|
|
129
148
|
execute(args: {
|
|
130
149
|
file_path: string;
|
|
131
150
|
group_column: string;
|
|
132
151
|
agg_column: string;
|
|
133
152
|
agg_type: "sum" | "count" | "avg" | "min" | "max";
|
|
153
|
+
force: boolean;
|
|
134
154
|
sheet_name?: string | undefined;
|
|
135
155
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
136
156
|
};
|
|
@@ -149,6 +169,7 @@ export declare const tableTools: {
|
|
|
149
169
|
min: "min";
|
|
150
170
|
max: "max";
|
|
151
171
|
}>>;
|
|
172
|
+
force: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
152
173
|
};
|
|
153
174
|
execute(args: {
|
|
154
175
|
file_path: string;
|
|
@@ -156,6 +177,7 @@ export declare const tableTools: {
|
|
|
156
177
|
col_field: string;
|
|
157
178
|
value_field: string;
|
|
158
179
|
agg: "sum" | "count" | "avg" | "min" | "max";
|
|
180
|
+
force: boolean;
|
|
159
181
|
sheet_name?: string | undefined;
|
|
160
182
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
161
183
|
};
|
|
@@ -165,10 +187,12 @@ export declare const tableTools: {
|
|
|
165
187
|
file_path: import("zod").ZodString;
|
|
166
188
|
sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
167
189
|
rows: import("zod").ZodArray<import("zod").ZodUnion<readonly [import("zod").ZodArray<import("zod").ZodAny>, import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>]>>;
|
|
190
|
+
force: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
168
191
|
};
|
|
169
192
|
execute(args: {
|
|
170
193
|
file_path: string;
|
|
171
194
|
rows: (any[] | Record<string, any>)[];
|
|
195
|
+
force: boolean;
|
|
172
196
|
sheet_name?: string | undefined;
|
|
173
197
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
174
198
|
};
|
|
@@ -178,12 +202,14 @@ export declare const tableTools: {
|
|
|
178
202
|
file_path: import("zod").ZodString;
|
|
179
203
|
sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
180
204
|
cell_address: import("zod").ZodString;
|
|
181
|
-
value: import("zod").
|
|
205
|
+
value: import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber, import("zod").ZodBoolean, import("zod").ZodNull]>;
|
|
206
|
+
force: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
182
207
|
};
|
|
183
208
|
execute(args: {
|
|
184
209
|
file_path: string;
|
|
185
210
|
cell_address: string;
|
|
186
|
-
value:
|
|
211
|
+
value: string | number | boolean | null;
|
|
212
|
+
force: boolean;
|
|
187
213
|
sheet_name?: string | undefined;
|
|
188
214
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
189
215
|
};
|
|
@@ -192,12 +218,14 @@ export declare const tableTools: {
|
|
|
192
218
|
args: {
|
|
193
219
|
file_path: import("zod").ZodString;
|
|
194
220
|
sheet_name: import("zod").ZodDefault<import("zod").ZodString>;
|
|
195
|
-
data: import("zod").ZodAny
|
|
221
|
+
data: import("zod").ZodUnion<readonly [import("zod").ZodArray<import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodAny>>, import("zod").ZodArray<import("zod").ZodArray<import("zod").ZodAny>>, import("zod").ZodString]>;
|
|
222
|
+
overwrite: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
196
223
|
};
|
|
197
224
|
execute(args: {
|
|
198
225
|
file_path: string;
|
|
199
226
|
sheet_name: string;
|
|
200
|
-
data: any;
|
|
227
|
+
data: string | any[][] | Record<string, any>[];
|
|
228
|
+
overwrite: boolean;
|
|
201
229
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
202
230
|
};
|
|
203
231
|
};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { ToolContext } from '@opencode-ai/plugin/tool';
|
|
2
|
-
import
|
|
2
|
+
import * as z from 'zod';
|
|
3
3
|
export declare const tableGetSheetPreview: {
|
|
4
4
|
description: string;
|
|
5
5
|
args: {
|
|
6
6
|
file_path: z.ZodString;
|
|
7
7
|
sheet_name: z.ZodOptional<z.ZodString>;
|
|
8
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
8
9
|
};
|
|
9
10
|
execute(args: {
|
|
10
11
|
file_path: string;
|
|
12
|
+
force: boolean;
|
|
11
13
|
sheet_name?: string | undefined;
|
|
12
14
|
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
13
15
|
};
|
|
@@ -15,9 +17,11 @@ export declare const tableListSheets: {
|
|
|
15
17
|
description: string;
|
|
16
18
|
args: {
|
|
17
19
|
file_path: z.ZodString;
|
|
20
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
18
21
|
};
|
|
19
22
|
execute(args: {
|
|
20
23
|
file_path: string;
|
|
24
|
+
force: boolean;
|
|
21
25
|
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
22
26
|
};
|
|
23
27
|
export declare const tableGetHeaders: {
|
|
@@ -25,9 +29,11 @@ export declare const tableGetHeaders: {
|
|
|
25
29
|
args: {
|
|
26
30
|
file_path: z.ZodString;
|
|
27
31
|
sheet_name: z.ZodOptional<z.ZodString>;
|
|
32
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
28
33
|
};
|
|
29
34
|
execute(args: {
|
|
30
35
|
file_path: string;
|
|
36
|
+
force: boolean;
|
|
31
37
|
sheet_name?: string | undefined;
|
|
32
38
|
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
33
39
|
};
|
|
@@ -37,10 +43,12 @@ export declare const tableGetCell: {
|
|
|
37
43
|
file_path: z.ZodString;
|
|
38
44
|
sheet_name: z.ZodOptional<z.ZodString>;
|
|
39
45
|
cell_address: z.ZodString;
|
|
46
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
40
47
|
};
|
|
41
48
|
execute(args: {
|
|
42
49
|
file_path: string;
|
|
43
50
|
cell_address: string;
|
|
51
|
+
force: boolean;
|
|
44
52
|
sheet_name?: string | undefined;
|
|
45
53
|
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
46
54
|
};
|
|
@@ -58,16 +66,20 @@ export declare const tableFilterRows: {
|
|
|
58
66
|
">=": ">=";
|
|
59
67
|
"<=": "<=";
|
|
60
68
|
contains: "contains";
|
|
69
|
+
starts_with: "starts_with";
|
|
70
|
+
ends_with: "ends_with";
|
|
61
71
|
}>;
|
|
62
|
-
value: z.
|
|
72
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean]>;
|
|
63
73
|
max_results: z.ZodDefault<z.ZodNumber>;
|
|
74
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
64
75
|
};
|
|
65
76
|
execute(args: {
|
|
66
77
|
file_path: string;
|
|
67
78
|
column: string;
|
|
68
|
-
operator: "=" | "!=" | ">" | "<" | ">=" | "<=" | "contains";
|
|
69
|
-
value:
|
|
79
|
+
operator: "=" | "!=" | ">" | "<" | ">=" | "<=" | "contains" | "starts_with" | "ends_with";
|
|
80
|
+
value: string | number | boolean;
|
|
70
81
|
max_results: number;
|
|
82
|
+
force: boolean;
|
|
71
83
|
sheet_name?: string | undefined;
|
|
72
84
|
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
73
85
|
};
|
|
@@ -78,11 +90,13 @@ export declare const tableSearch: {
|
|
|
78
90
|
sheet_name: z.ZodOptional<z.ZodString>;
|
|
79
91
|
search_term: z.ZodString;
|
|
80
92
|
max_results: z.ZodDefault<z.ZodNumber>;
|
|
93
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
81
94
|
};
|
|
82
95
|
execute(args: {
|
|
83
96
|
file_path: string;
|
|
84
97
|
search_term: string;
|
|
85
98
|
max_results: number;
|
|
99
|
+
force: boolean;
|
|
86
100
|
sheet_name?: string | undefined;
|
|
87
101
|
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
88
102
|
};
|
|
@@ -92,10 +106,12 @@ export declare const tableGetRange: {
|
|
|
92
106
|
file_path: z.ZodString;
|
|
93
107
|
sheet_name: z.ZodOptional<z.ZodString>;
|
|
94
108
|
range: z.ZodString;
|
|
109
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
95
110
|
};
|
|
96
111
|
execute(args: {
|
|
97
112
|
file_path: string;
|
|
98
113
|
range: string;
|
|
114
|
+
force: boolean;
|
|
99
115
|
sheet_name?: string | undefined;
|
|
100
116
|
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
101
117
|
};
|
|
@@ -105,9 +121,11 @@ export declare const tableSummarize: {
|
|
|
105
121
|
file_path: z.ZodString;
|
|
106
122
|
sheet_name: z.ZodOptional<z.ZodString>;
|
|
107
123
|
columns: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
124
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
108
125
|
};
|
|
109
126
|
execute(args: {
|
|
110
127
|
file_path: string;
|
|
128
|
+
force: boolean;
|
|
111
129
|
sheet_name?: string | undefined;
|
|
112
130
|
columns?: string[] | undefined;
|
|
113
131
|
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
@@ -126,12 +144,14 @@ export declare const tableGroupBy: {
|
|
|
126
144
|
min: "min";
|
|
127
145
|
max: "max";
|
|
128
146
|
}>>;
|
|
147
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
129
148
|
};
|
|
130
149
|
execute(args: {
|
|
131
150
|
file_path: string;
|
|
132
151
|
group_column: string;
|
|
133
152
|
agg_column: string;
|
|
134
153
|
agg_type: "sum" | "count" | "avg" | "min" | "max";
|
|
154
|
+
force: boolean;
|
|
135
155
|
sheet_name?: string | undefined;
|
|
136
156
|
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
137
157
|
};
|
|
@@ -150,6 +170,7 @@ export declare const tablePivotSummary: {
|
|
|
150
170
|
min: "min";
|
|
151
171
|
max: "max";
|
|
152
172
|
}>>;
|
|
173
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
153
174
|
};
|
|
154
175
|
execute(args: {
|
|
155
176
|
file_path: string;
|
|
@@ -157,6 +178,7 @@ export declare const tablePivotSummary: {
|
|
|
157
178
|
col_field: string;
|
|
158
179
|
value_field: string;
|
|
159
180
|
agg: "sum" | "count" | "avg" | "min" | "max";
|
|
181
|
+
force: boolean;
|
|
160
182
|
sheet_name?: string | undefined;
|
|
161
183
|
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
162
184
|
};
|
|
@@ -166,10 +188,12 @@ export declare const tableAppendRows: {
|
|
|
166
188
|
file_path: z.ZodString;
|
|
167
189
|
sheet_name: z.ZodOptional<z.ZodString>;
|
|
168
190
|
rows: z.ZodArray<z.ZodUnion<readonly [z.ZodArray<z.ZodAny>, z.ZodRecord<z.ZodString, z.ZodAny>]>>;
|
|
191
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
169
192
|
};
|
|
170
193
|
execute(args: {
|
|
171
194
|
file_path: string;
|
|
172
195
|
rows: (any[] | Record<string, any>)[];
|
|
196
|
+
force: boolean;
|
|
173
197
|
sheet_name?: string | undefined;
|
|
174
198
|
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
175
199
|
};
|
|
@@ -179,12 +203,14 @@ export declare const tableUpdateCell: {
|
|
|
179
203
|
file_path: z.ZodString;
|
|
180
204
|
sheet_name: z.ZodOptional<z.ZodString>;
|
|
181
205
|
cell_address: z.ZodString;
|
|
182
|
-
value: z.
|
|
206
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodNull]>;
|
|
207
|
+
force: z.ZodDefault<z.ZodBoolean>;
|
|
183
208
|
};
|
|
184
209
|
execute(args: {
|
|
185
210
|
file_path: string;
|
|
186
211
|
cell_address: string;
|
|
187
|
-
value:
|
|
212
|
+
value: string | number | boolean | null;
|
|
213
|
+
force: boolean;
|
|
188
214
|
sheet_name?: string | undefined;
|
|
189
215
|
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
190
216
|
};
|
|
@@ -193,11 +219,13 @@ export declare const tableCreateFile: {
|
|
|
193
219
|
args: {
|
|
194
220
|
file_path: z.ZodString;
|
|
195
221
|
sheet_name: z.ZodDefault<z.ZodString>;
|
|
196
|
-
data: z.ZodAny
|
|
222
|
+
data: z.ZodUnion<readonly [z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>>, z.ZodArray<z.ZodArray<z.ZodAny>>, z.ZodString]>;
|
|
223
|
+
overwrite: z.ZodDefault<z.ZodBoolean>;
|
|
197
224
|
};
|
|
198
225
|
execute(args: {
|
|
199
226
|
file_path: string;
|
|
200
227
|
sheet_name: string;
|
|
201
|
-
data: any;
|
|
228
|
+
data: string | any[][] | Record<string, any>[];
|
|
229
|
+
overwrite: boolean;
|
|
202
230
|
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
203
231
|
};
|