@yeyuan98/opencode-bioresearcher-plugin 1.7.1-alpha.0 → 1.7.1
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/tools/parser/pubmed/utils.js +2 -0
- package/dist/tools/table/backends/base.d.ts +8 -0
- package/dist/tools/table/backends/base.js +23 -0
- package/dist/tools/table/backends/csv/index.d.ts +64 -0
- package/dist/tools/table/backends/csv/index.js +660 -0
- package/dist/tools/table/backends/factory.d.ts +2 -0
- package/dist/tools/table/backends/factory.js +14 -0
- package/dist/tools/table/backends/interface.d.ts +68 -0
- package/dist/tools/table/backends/interface.js +1 -0
- package/dist/tools/table/backends/xlsx/index.d.ts +62 -0
- package/dist/tools/table/backends/xlsx/index.js +547 -0
- package/dist/tools/table/index.d.ts +6 -4
- package/dist/tools/table/tools.d.ts +6 -4
- package/dist/tools/table/tools.js +291 -458
- package/dist/tools/table/utils.d.ts +4 -4
- package/dist/tools/table/utils.js +17 -38
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -88,6 +88,7 @@ export declare const tableTools: {
|
|
|
88
88
|
file_path: import("zod").ZodString;
|
|
89
89
|
sheet_name: import("zod").ZodOptional<import("zod").ZodString>;
|
|
90
90
|
search_term: import("zod").ZodString;
|
|
91
|
+
column: import("zod").ZodOptional<import("zod").ZodString>;
|
|
91
92
|
max_results: import("zod").ZodDefault<import("zod").ZodNumber>;
|
|
92
93
|
force: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
93
94
|
};
|
|
@@ -97,6 +98,7 @@ export declare const tableTools: {
|
|
|
97
98
|
max_results: number;
|
|
98
99
|
force: boolean;
|
|
99
100
|
sheet_name?: string | undefined;
|
|
101
|
+
column?: string | undefined;
|
|
100
102
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
101
103
|
};
|
|
102
104
|
tableGetRange: {
|
|
@@ -137,8 +139,8 @@ export declare const tableTools: {
|
|
|
137
139
|
group_column: import("zod").ZodString;
|
|
138
140
|
agg_column: import("zod").ZodString;
|
|
139
141
|
agg_type: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
140
|
-
sum: "sum";
|
|
141
142
|
count: "count";
|
|
143
|
+
sum: "sum";
|
|
142
144
|
avg: "avg";
|
|
143
145
|
min: "min";
|
|
144
146
|
max: "max";
|
|
@@ -149,7 +151,7 @@ export declare const tableTools: {
|
|
|
149
151
|
file_path: string;
|
|
150
152
|
group_column: string;
|
|
151
153
|
agg_column: string;
|
|
152
|
-
agg_type: "
|
|
154
|
+
agg_type: "count" | "sum" | "avg" | "min" | "max";
|
|
153
155
|
force: boolean;
|
|
154
156
|
sheet_name?: string | undefined;
|
|
155
157
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
@@ -163,8 +165,8 @@ export declare const tableTools: {
|
|
|
163
165
|
col_field: import("zod").ZodString;
|
|
164
166
|
value_field: import("zod").ZodString;
|
|
165
167
|
agg: import("zod").ZodDefault<import("zod").ZodEnum<{
|
|
166
|
-
sum: "sum";
|
|
167
168
|
count: "count";
|
|
169
|
+
sum: "sum";
|
|
168
170
|
avg: "avg";
|
|
169
171
|
min: "min";
|
|
170
172
|
max: "max";
|
|
@@ -176,7 +178,7 @@ export declare const tableTools: {
|
|
|
176
178
|
row_field: string;
|
|
177
179
|
col_field: string;
|
|
178
180
|
value_field: string;
|
|
179
|
-
agg: "
|
|
181
|
+
agg: "count" | "sum" | "avg" | "min" | "max";
|
|
180
182
|
force: boolean;
|
|
181
183
|
sheet_name?: string | undefined;
|
|
182
184
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
@@ -89,6 +89,7 @@ export declare const tableSearch: {
|
|
|
89
89
|
file_path: z.ZodString;
|
|
90
90
|
sheet_name: z.ZodOptional<z.ZodString>;
|
|
91
91
|
search_term: z.ZodString;
|
|
92
|
+
column: z.ZodOptional<z.ZodString>;
|
|
92
93
|
max_results: z.ZodDefault<z.ZodNumber>;
|
|
93
94
|
force: z.ZodDefault<z.ZodBoolean>;
|
|
94
95
|
};
|
|
@@ -98,6 +99,7 @@ export declare const tableSearch: {
|
|
|
98
99
|
max_results: number;
|
|
99
100
|
force: boolean;
|
|
100
101
|
sheet_name?: string | undefined;
|
|
102
|
+
column?: string | undefined;
|
|
101
103
|
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
102
104
|
};
|
|
103
105
|
export declare const tableGetRange: {
|
|
@@ -138,8 +140,8 @@ export declare const tableGroupBy: {
|
|
|
138
140
|
group_column: z.ZodString;
|
|
139
141
|
agg_column: z.ZodString;
|
|
140
142
|
agg_type: z.ZodDefault<z.ZodEnum<{
|
|
141
|
-
sum: "sum";
|
|
142
143
|
count: "count";
|
|
144
|
+
sum: "sum";
|
|
143
145
|
avg: "avg";
|
|
144
146
|
min: "min";
|
|
145
147
|
max: "max";
|
|
@@ -150,7 +152,7 @@ export declare const tableGroupBy: {
|
|
|
150
152
|
file_path: string;
|
|
151
153
|
group_column: string;
|
|
152
154
|
agg_column: string;
|
|
153
|
-
agg_type: "
|
|
155
|
+
agg_type: "count" | "sum" | "avg" | "min" | "max";
|
|
154
156
|
force: boolean;
|
|
155
157
|
sheet_name?: string | undefined;
|
|
156
158
|
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|
|
@@ -164,8 +166,8 @@ export declare const tablePivotSummary: {
|
|
|
164
166
|
col_field: z.ZodString;
|
|
165
167
|
value_field: z.ZodString;
|
|
166
168
|
agg: z.ZodDefault<z.ZodEnum<{
|
|
167
|
-
sum: "sum";
|
|
168
169
|
count: "count";
|
|
170
|
+
sum: "sum";
|
|
169
171
|
avg: "avg";
|
|
170
172
|
min: "min";
|
|
171
173
|
max: "max";
|
|
@@ -177,7 +179,7 @@ export declare const tablePivotSummary: {
|
|
|
177
179
|
row_field: string;
|
|
178
180
|
col_field: string;
|
|
179
181
|
value_field: string;
|
|
180
|
-
agg: "
|
|
182
|
+
agg: "count" | "sum" | "avg" | "min" | "max";
|
|
181
183
|
force: boolean;
|
|
182
184
|
sheet_name?: string | undefined;
|
|
183
185
|
}, context: ToolContext): Promise<import("@opencode-ai/plugin").ToolResult>;
|