cliskill 1.0.0 → 1.0.2
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/README.md +159 -44
- package/dist/bootstrap/cli.js +1 -1
- package/dist/{chunk-ULZHJVWD.js → chunk-GCXQJ2SV.js} +110 -18
- package/dist/chunk-GCXQJ2SV.js.map +1 -0
- package/dist/index.d.ts +16 -7
- package/dist/index.js +1 -1
- package/package.json +1 -2
- package/dist/chunk-ULZHJVWD.js.map +0 -1
package/dist/index.d.ts
CHANGED
|
@@ -486,6 +486,12 @@ declare abstract class BaseAdapter implements ProviderAdapter {
|
|
|
486
486
|
* Uses AbortSignal.any() so EITHER source triggers abort.
|
|
487
487
|
*/
|
|
488
488
|
protected buildSignal(external?: AbortSignal): AbortSignal;
|
|
489
|
+
/**
|
|
490
|
+
* Build an AbortSignal for streaming requests with extended timeout.
|
|
491
|
+
* Streaming responses can take much longer than regular requests,
|
|
492
|
+
* so we use 3x the configured timeout to avoid premature aborts.
|
|
493
|
+
*/
|
|
494
|
+
protected buildStreamingSignal(external?: AbortSignal): AbortSignal;
|
|
489
495
|
/**
|
|
490
496
|
* Fetch with automatic retry for rate-limit (429), server errors (5xx),
|
|
491
497
|
* and network failures (TypeError: fetch failed).
|
|
@@ -1093,15 +1099,15 @@ declare class ExitPlanModeTool extends BaseTool<typeof exitPlanInputSchema> {
|
|
|
1093
1099
|
declare const webSearchInputSchema: z.ZodObject<{
|
|
1094
1100
|
query: z.ZodString;
|
|
1095
1101
|
max_results: z.ZodDefault<z.ZodNumber>;
|
|
1096
|
-
search_engine: z.ZodDefault<z.ZodEnum<["duckduckgo", "
|
|
1102
|
+
search_engine: z.ZodDefault<z.ZodEnum<["duckduckgo", "wikipedia"]>>;
|
|
1097
1103
|
}, "strip", z.ZodTypeAny, {
|
|
1098
1104
|
max_results: number;
|
|
1099
1105
|
query: string;
|
|
1100
|
-
search_engine: "duckduckgo" | "
|
|
1106
|
+
search_engine: "duckduckgo" | "wikipedia";
|
|
1101
1107
|
}, {
|
|
1102
1108
|
query: string;
|
|
1103
1109
|
max_results?: number | undefined;
|
|
1104
|
-
search_engine?: "duckduckgo" | "
|
|
1110
|
+
search_engine?: "duckduckgo" | "wikipedia" | undefined;
|
|
1105
1111
|
}>;
|
|
1106
1112
|
type WebSearchInput = z.infer<typeof webSearchInputSchema>;
|
|
1107
1113
|
declare class WebSearchTool extends BaseTool<typeof webSearchInputSchema> {
|
|
@@ -1110,21 +1116,25 @@ declare class WebSearchTool extends BaseTool<typeof webSearchInputSchema> {
|
|
|
1110
1116
|
inputSchema: z.ZodObject<{
|
|
1111
1117
|
query: z.ZodString;
|
|
1112
1118
|
max_results: z.ZodDefault<z.ZodNumber>;
|
|
1113
|
-
search_engine: z.ZodDefault<z.ZodEnum<["duckduckgo", "
|
|
1119
|
+
search_engine: z.ZodDefault<z.ZodEnum<["duckduckgo", "wikipedia"]>>;
|
|
1114
1120
|
}, "strip", z.ZodTypeAny, {
|
|
1115
1121
|
max_results: number;
|
|
1116
1122
|
query: string;
|
|
1117
|
-
search_engine: "duckduckgo" | "
|
|
1123
|
+
search_engine: "duckduckgo" | "wikipedia";
|
|
1118
1124
|
}, {
|
|
1119
1125
|
query: string;
|
|
1120
1126
|
max_results?: number | undefined;
|
|
1121
|
-
search_engine?: "duckduckgo" | "
|
|
1127
|
+
search_engine?: "duckduckgo" | "wikipedia" | undefined;
|
|
1122
1128
|
}>;
|
|
1123
1129
|
riskLevel: "safe";
|
|
1124
1130
|
concurrencySafe: boolean;
|
|
1125
1131
|
readOnly: boolean;
|
|
1126
1132
|
execute(input: WebSearchInput, _context: ToolExecutionContext): Promise<string>;
|
|
1133
|
+
private searchDuckDuckGo;
|
|
1127
1134
|
private fallbackLiteSearch;
|
|
1135
|
+
private searchWikipedia;
|
|
1136
|
+
private fallbackToWikipedia;
|
|
1137
|
+
private searchWikipediaRaw;
|
|
1128
1138
|
}
|
|
1129
1139
|
|
|
1130
1140
|
declare const lspInputSchema: z.ZodObject<{
|
|
@@ -1605,7 +1615,6 @@ declare class HistoryManager {
|
|
|
1605
1615
|
|
|
1606
1616
|
/**
|
|
1607
1617
|
* Streaming Tool Executor — executes tools concurrently based on safety classification.
|
|
1608
|
-
* Adapted from Claude's StreamingToolExecutor.ts.
|
|
1609
1618
|
*
|
|
1610
1619
|
* - Concurrency-safe tools (readOnly) can run in parallel with each other
|
|
1611
1620
|
* - Non-safe tools (bash, file_write, etc.) must run exclusively
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cliskill",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "Universal terminal AI assistant with multi-provider LLM support, 15 built-in tools, streaming execution, and agent orchestration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -52,7 +52,6 @@
|
|
|
52
52
|
"agent",
|
|
53
53
|
"chatgpt",
|
|
54
54
|
"openai",
|
|
55
|
-
"claude",
|
|
56
55
|
"gemini",
|
|
57
56
|
"glm",
|
|
58
57
|
"codex",
|