@xinshu/openagi 0.0.2-dev.2 → 0.0.2-dev.4
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/.npmignore +8 -0
- package/README.md +533 -265
- package/cli.js +8 -1888
- package/package.json +11 -7
- package/logo.svg +0 -184
- package/sdk-tools.d.ts +0 -282
- package/vendor/ripgrep/COPYING +0 -3
- package/vendor/ripgrep/arm64-darwin/rg +0 -0
- package/vendor/ripgrep/arm64-darwin/ripgrep.node +0 -0
- package/vendor/ripgrep/arm64-linux/rg +0 -0
- package/vendor/ripgrep/arm64-linux/ripgrep.node +0 -0
- package/vendor/ripgrep/x64-darwin/rg +0 -0
- package/vendor/ripgrep/x64-darwin/ripgrep.node +0 -0
- package/vendor/ripgrep/x64-linux/rg +0 -0
- package/vendor/ripgrep/x64-linux/ripgrep.node +0 -0
- package/vendor/ripgrep/x64-win32/rg.exe +0 -0
- package/vendor/ripgrep/x64-win32/ripgrep.node +0 -0
package/package.json
CHANGED
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xinshu/openagi",
|
|
3
|
-
"version": "0.0.2-dev.
|
|
3
|
+
"version": "0.0.2-dev.4",
|
|
4
4
|
"bin": {
|
|
5
|
-
"
|
|
6
|
-
"
|
|
5
|
+
"kode": "cli.js",
|
|
6
|
+
"kwa": "cli.js",
|
|
7
|
+
"kd": "cli.js",
|
|
8
|
+
"kode-acp": "cli-acp.js"
|
|
7
9
|
},
|
|
8
10
|
"engines": {
|
|
9
|
-
"node": ">=
|
|
11
|
+
"node": ">=20.18.1"
|
|
10
12
|
},
|
|
11
13
|
"type": "module",
|
|
12
|
-
"author": "
|
|
14
|
+
"author": "ShareAI-lab <ai-lab@foxmail.com>",
|
|
13
15
|
"license": "Apache-2.0",
|
|
14
16
|
"description": "AI-powered terminal assistant that understands your codebase, edits files, runs commands, and automates development workflows. (runtime bundle)",
|
|
15
|
-
"homepage": "https://github.com/
|
|
17
|
+
"homepage": "https://github.com/shareAI-lab/kode",
|
|
16
18
|
"bugs": {
|
|
17
|
-
"url": "https://github.com/
|
|
19
|
+
"url": "https://github.com/shareAI-lab/kode/issues"
|
|
18
20
|
},
|
|
19
21
|
"scripts": {
|
|
20
22
|
"prepare": "node -e \"if (!process.env.NPM_TOKEN) { console.error('ERROR: Direct publishing is not allowed.\\nPlease use the release workflow to publish this package.'); process.exit(1); }\""
|
|
@@ -40,6 +42,8 @@
|
|
|
40
42
|
"node_modules/@img/**/*",
|
|
41
43
|
"README.md",
|
|
42
44
|
"logo.svg",
|
|
45
|
+
".npmrc",
|
|
46
|
+
".npmignore",
|
|
43
47
|
"LICENSE.md",
|
|
44
48
|
"package.json"
|
|
45
49
|
]
|
package/logo.svg
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
|
2
|
-
<svg width="300" height="380" viewBox="0 0 300 380" xmlns="http://www.w3.org/2000/svg">
|
|
3
|
-
<!-- Definitions -->
|
|
4
|
-
<defs>
|
|
5
|
-
<!-- Terminal Gradient - Refined glass-like effect -->
|
|
6
|
-
<linearGradient id="terminalGradient" x1="0%" y1="0%" x2="0%" y2="100%">
|
|
7
|
-
<stop offset="0%" stop-color="#2c2c2e"/>
|
|
8
|
-
<stop offset="40%" stop-color="#222224"/>
|
|
9
|
-
<stop offset="100%" stop-color="#1c1c1e"/>
|
|
10
|
-
</linearGradient>
|
|
11
|
-
|
|
12
|
-
<!-- Better Icon Glow Gradient -->
|
|
13
|
-
<radialGradient id="glowGradient" cx="50%" cy="50%" r="70%" fx="50%" fy="50%">
|
|
14
|
-
<stop offset="0%" stop-color="#f6ad55" stop-opacity="0.9"/>
|
|
15
|
-
<stop offset="40%" stop-color="#f6ad55" stop-opacity="0.4"/>
|
|
16
|
-
<stop offset="70%" stop-color="#f6ad55" stop-opacity="0.1"/>
|
|
17
|
-
<stop offset="100%" stop-color="#f6ad55" stop-opacity="0"/>
|
|
18
|
-
</radialGradient>
|
|
19
|
-
|
|
20
|
-
<!-- Orange Highlight -->
|
|
21
|
-
<linearGradient id="orangeHighlight" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
22
|
-
<stop offset="0%" stop-color="#f6ad55"/>
|
|
23
|
-
<stop offset="100%" stop-color="#ed8936"/>
|
|
24
|
-
</linearGradient>
|
|
25
|
-
|
|
26
|
-
<!-- Title Text Gradient -->
|
|
27
|
-
<linearGradient id="titleGradient" x1="0%" y1="0%" x2="0%" y2="100%">
|
|
28
|
-
<stop offset="0%" stop-color="#2d3748"/>
|
|
29
|
-
<stop offset="100%" stop-color="#1a202c"/>
|
|
30
|
-
</linearGradient>
|
|
31
|
-
|
|
32
|
-
<!-- Subtitle Gradient -->
|
|
33
|
-
<linearGradient id="subtitleGradient" x1="0%" y1="0%" x2="100%" y2="0%">
|
|
34
|
-
<stop offset="0%" stop-color="#4a5568"/>
|
|
35
|
-
<stop offset="50%" stop-color="#718096"/>
|
|
36
|
-
<stop offset="100%" stop-color="#4a5568"/>
|
|
37
|
-
</linearGradient>
|
|
38
|
-
|
|
39
|
-
<!-- Enhanced Drop Shadow -->
|
|
40
|
-
<filter id="dropShadow" x="-20%" y="-20%" width="140%" height="140%">
|
|
41
|
-
<feGaussianBlur in="SourceAlpha" stdDeviation="6"/>
|
|
42
|
-
<feOffset dx="0" dy="5" result="offsetblur"/>
|
|
43
|
-
<feComponentTransfer>
|
|
44
|
-
<feFuncA type="linear" slope="0.35"/>
|
|
45
|
-
</feComponentTransfer>
|
|
46
|
-
<feMerge>
|
|
47
|
-
<feMergeNode/>
|
|
48
|
-
<feMergeNode in="SourceGraphic"/>
|
|
49
|
-
</feMerge>
|
|
50
|
-
</filter>
|
|
51
|
-
|
|
52
|
-
<!-- Subtle Text Shadow -->
|
|
53
|
-
<filter id="textShadow" x="-10%" y="-10%" width="120%" height="120%">
|
|
54
|
-
<feGaussianBlur in="SourceAlpha" stdDeviation="1"/>
|
|
55
|
-
<feOffset dx="0" dy="1" result="offsetblur"/>
|
|
56
|
-
<feComponentTransfer>
|
|
57
|
-
<feFuncA type="linear" slope="0.3"/>
|
|
58
|
-
</feComponentTransfer>
|
|
59
|
-
<feMerge>
|
|
60
|
-
<feMergeNode/>
|
|
61
|
-
<feMergeNode in="SourceGraphic"/>
|
|
62
|
-
</feMerge>
|
|
63
|
-
</filter>
|
|
64
|
-
|
|
65
|
-
<!-- Terminal Text Shadow -->
|
|
66
|
-
<filter id="terminalTextShadow" x="-5%" y="-5%" width="110%" height="110%">
|
|
67
|
-
<feGaussianBlur in="SourceAlpha" stdDeviation="0.5"/>
|
|
68
|
-
<feOffset dx="0" dy="0.5" result="offsetblur"/>
|
|
69
|
-
<feComponentTransfer>
|
|
70
|
-
<feFuncA type="linear" slope="0.8"/>
|
|
71
|
-
</feComponentTransfer>
|
|
72
|
-
<feMerge>
|
|
73
|
-
<feMergeNode/>
|
|
74
|
-
<feMergeNode in="SourceGraphic"/>
|
|
75
|
-
</feMerge>
|
|
76
|
-
</filter>
|
|
77
|
-
|
|
78
|
-
<!-- Enhanced Glass Reflection -->
|
|
79
|
-
<linearGradient id="glassReflection" x1="0%" y1="0%" x2="0%" y2="100%">
|
|
80
|
-
<stop offset="0%" stop-color="white" stop-opacity="0.3"/>
|
|
81
|
-
<stop offset="15%" stop-color="white" stop-opacity="0.15"/>
|
|
82
|
-
<stop offset="40%" stop-color="white" stop-opacity="0.05"/>
|
|
83
|
-
<stop offset="100%" stop-color="white" stop-opacity="0"/>
|
|
84
|
-
</linearGradient>
|
|
85
|
-
|
|
86
|
-
<!-- Terminal Content Animation -->
|
|
87
|
-
<style type="text/css"><![CDATA[
|
|
88
|
-
@keyframes blink {
|
|
89
|
-
0%, 100% { opacity: 1; }
|
|
90
|
-
50% { opacity: 0; }
|
|
91
|
-
}
|
|
92
|
-
.cursor {
|
|
93
|
-
animation: blink 1.2s infinite;
|
|
94
|
-
}
|
|
95
|
-
@keyframes pulse {
|
|
96
|
-
0%, 100% { opacity: 0.5; }
|
|
97
|
-
50% { opacity: 0.7; }
|
|
98
|
-
}
|
|
99
|
-
.pulse {
|
|
100
|
-
animation: pulse 4s infinite;
|
|
101
|
-
}
|
|
102
|
-
@keyframes fadeInOut {
|
|
103
|
-
0%, 100% { opacity: 0.4; }
|
|
104
|
-
50% { opacity: 0.5; }
|
|
105
|
-
}
|
|
106
|
-
.fadeBeams {
|
|
107
|
-
animation: fadeInOut 6s infinite;
|
|
108
|
-
}
|
|
109
|
-
@keyframes subtitleShimmer {
|
|
110
|
-
0% { opacity: 0.7; }
|
|
111
|
-
50% { opacity: 1; }
|
|
112
|
-
100% { opacity: 0.7; }
|
|
113
|
-
}
|
|
114
|
-
.shimmerText {
|
|
115
|
-
animation: subtitleShimmer 6s infinite;
|
|
116
|
-
}
|
|
117
|
-
]]></style>
|
|
118
|
-
</defs>
|
|
119
|
-
|
|
120
|
-
<!-- Aura/Glow Effects (Multiple Layers) -->
|
|
121
|
-
<circle cx="150" cy="180" r="140" fill="url(#glowGradient)" opacity="0.4" class="pulse"/>
|
|
122
|
-
<circle cx="150" cy="180" r="110" fill="url(#glowGradient)" opacity="0.6"/>
|
|
123
|
-
<circle cx="150" cy="180" r="90" fill="url(#glowGradient)" opacity="0.3"/>
|
|
124
|
-
|
|
125
|
-
<!-- Terminal App Icon - Rounded Square Base (Apple style) -->
|
|
126
|
-
<rect x="50" y="80" width="200" height="200" rx="45" fill="url(#terminalGradient)" filter="url(#dropShadow)"/>
|
|
127
|
-
|
|
128
|
-
<!-- Glass Reflection -->
|
|
129
|
-
<rect x="50" y="80" width="200" height="80" rx="45" fill="url(#glassReflection)" opacity="0.4"/>
|
|
130
|
-
|
|
131
|
-
<!-- Terminal Header Bar -->
|
|
132
|
-
<rect x="70" y="100" width="160" height="25" rx="8" fill="#2d3748" opacity="0.9"/>
|
|
133
|
-
|
|
134
|
-
<!-- Window Control Buttons with subtle gradients -->
|
|
135
|
-
<circle cx="85" cy="112" r="5" fill="#f56565"/>
|
|
136
|
-
<circle cx="85" cy="112" r="3" fill="#e53e3e" opacity="0.7"/>
|
|
137
|
-
|
|
138
|
-
<circle cx="103" cy="112" r="5" fill="#f6ad55"/>
|
|
139
|
-
<circle cx="103" cy="112" r="3" fill="#ed8936" opacity="0.7"/>
|
|
140
|
-
|
|
141
|
-
<circle cx="121" cy="112" r="5" fill="#48bb78"/>
|
|
142
|
-
<circle cx="121" cy="112" r="3" fill="#38a169" opacity="0.7"/>
|
|
143
|
-
|
|
144
|
-
<!-- Terminal Content - Code Lines with enhanced typography -->
|
|
145
|
-
<g filter="url(#terminalTextShadow)">
|
|
146
|
-
<text x="80" y="150" fill="#e2e8f0" font-family="SF Mono, Menlo, Monaco, Consolas, monospace" font-size="10" letter-spacing="0.2px">$ ./openagi</text>
|
|
147
|
-
<text x="80" y="170" fill="#e2e8f0" font-family="SF Mono, Menlo, Monaco, Consolas, monospace" font-size="10" letter-spacing="0.2px">> initializing...</text>
|
|
148
|
-
<text x="80" y="190" fill="url(#orangeHighlight)" font-family="SF Mono, Menlo, Monaco, Consolas, monospace" font-size="10" font-weight="500" letter-spacing="0.2px">> auth bypassed</text>
|
|
149
|
-
<text x="80" y="210" fill="#e2e8f0" font-family="SF Mono, Menlo, Monaco, Consolas, monospace" font-size="10" letter-spacing="0.2px">> ready</text>
|
|
150
|
-
<text x="80" y="230" fill="#e2e8f0" font-family="SF Mono, Menlo, Monaco, Consolas, monospace" font-size="10" class="cursor" letter-spacing="0.2px">_</text>
|
|
151
|
-
</g>
|
|
152
|
-
|
|
153
|
-
<!-- Subtle Interior Glow Effect -->
|
|
154
|
-
<rect x="70" y="135" width="160" height="120" rx="8" fill="none" stroke="url(#orangeHighlight)" stroke-width="0.5" opacity="0.6"/>
|
|
155
|
-
|
|
156
|
-
<!-- Command rays/beams emanating from the terminal - Subtle animation with 'fadeBeams' class -->
|
|
157
|
-
<g class="fadeBeams">
|
|
158
|
-
<path d="M50,180 L10,180" stroke="url(#orangeHighlight)" stroke-width="1.5" opacity="0.5" stroke-dasharray="1,2"/>
|
|
159
|
-
<path d="M250,180 L290,180" stroke="url(#orangeHighlight)" stroke-width="1.5" opacity="0.5" stroke-dasharray="1,2"/>
|
|
160
|
-
<path d="M150,80 L150,40" stroke="url(#orangeHighlight)" stroke-width="1.5" opacity="0.5" stroke-dasharray="1,2"/>
|
|
161
|
-
<path d="M150,280 L150,320" stroke="url(#orangeHighlight)" stroke-width="1.5" opacity="0.5" stroke-dasharray="1,2"/>
|
|
162
|
-
|
|
163
|
-
<path d="M80,110 L40,70" stroke="url(#orangeHighlight)" stroke-width="1" opacity="0.4" stroke-dasharray="1,2"/>
|
|
164
|
-
<path d="M220,110 L260,70" stroke="url(#orangeHighlight)" stroke-width="1" opacity="0.4" stroke-dasharray="1,2"/>
|
|
165
|
-
<path d="M80,250 L40,290" stroke="url(#orangeHighlight)" stroke-width="1" opacity="0.4" stroke-dasharray="1,2"/>
|
|
166
|
-
<path d="M220,250 L260,290" stroke="url(#orangeHighlight)" stroke-width="1" opacity="0.4" stroke-dasharray="1,2"/>
|
|
167
|
-
</g>
|
|
168
|
-
|
|
169
|
-
<!-- Subtle Inner Shadow for Terminal -->
|
|
170
|
-
<rect x="70" y="135" width="160" height="120" rx="8" fill="none" filter="url(#dropShadow)" opacity="0.1"/>
|
|
171
|
-
|
|
172
|
-
<!-- Premium Typography for Logo Text -->
|
|
173
|
-
<!-- Title Text with enhanced styling -->
|
|
174
|
-
<g filter="url(#textShadow)">
|
|
175
|
-
<!-- Text outline for depth -->
|
|
176
|
-
<text x="150" y="345" text-anchor="middle" fill="none" stroke="#1a202c" stroke-width="0.7" opacity="0.6" font-family="SF Pro Display, -apple-system, BlinkMacSystemFont, Helvetica Neue, Arial, sans-serif" font-weight="700" font-size="30" letter-spacing="1.2px">OpenAGI</text>
|
|
177
|
-
|
|
178
|
-
<!-- Main text fill with gradient -->
|
|
179
|
-
<text x="150" y="345" text-anchor="middle" fill="url(#titleGradient)" font-family="SF Pro Display, -apple-system, BlinkMacSystemFont, Helvetica Neue, Arial, sans-serif" font-weight="700" font-size="30" letter-spacing="1.2px">OpenAGI</text>
|
|
180
|
-
</g>
|
|
181
|
-
|
|
182
|
-
<!-- Subtitle with shimmer effect -->
|
|
183
|
-
<text x="150" y="370" text-anchor="middle" fill="url(#subtitleGradient)" class="shimmerText" font-family="SF Pro Text, -apple-system, BlinkMacSystemFont, Helvetica Neue, Arial, sans-serif" font-weight="400" font-size="11" letter-spacing="1.8px" text-transform="uppercase">Coding Assistant</text>
|
|
184
|
-
</svg>
|
package/sdk-tools.d.ts
DELETED
|
@@ -1,282 +0,0 @@
|
|
|
1
|
-
/* eslint-disable */
|
|
2
|
-
/**
|
|
3
|
-
* 此文件由 scripts/generate-sdk-tools-dts.mjs 自动生成。
|
|
4
|
-
* 请勿手动修改;请更新 src 中的工具输入 Schema 后重新生成。
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* Kode CLI 工具输入类型定义
|
|
9
|
-
*/
|
|
10
|
-
export type ToolInputSchemas =
|
|
11
|
-
| TaskInput
|
|
12
|
-
| AskExpertModelInput
|
|
13
|
-
| BashInput
|
|
14
|
-
| GlobToolInput
|
|
15
|
-
| GrepToolInput
|
|
16
|
-
| LSInput
|
|
17
|
-
| ViewInput
|
|
18
|
-
| EditInput
|
|
19
|
-
| MultiEditInput
|
|
20
|
-
| ReplaceInput
|
|
21
|
-
| ReadNotebookInput
|
|
22
|
-
| NotebookEditCellInput
|
|
23
|
-
| ThinkInput
|
|
24
|
-
| TodoWriteInput
|
|
25
|
-
| WebSearchInput
|
|
26
|
-
| URLFetcherInput
|
|
27
|
-
| SkillInput
|
|
28
|
-
| MemoryReadInput
|
|
29
|
-
| MemoryWriteInput
|
|
30
|
-
;
|
|
31
|
-
|
|
32
|
-
export interface TaskInput {
|
|
33
|
-
/**
|
|
34
|
-
* A short (3-5 word) description of the task
|
|
35
|
-
*/
|
|
36
|
-
description: string;
|
|
37
|
-
/**
|
|
38
|
-
* The task for the agent to perform
|
|
39
|
-
*/
|
|
40
|
-
prompt: string;
|
|
41
|
-
/**
|
|
42
|
-
* Optional: Specific model name to use for this task. If not provided, uses the default task model pointer.
|
|
43
|
-
*/
|
|
44
|
-
model_name?: string;
|
|
45
|
-
/**
|
|
46
|
-
* The type of specialized agent to use for this task
|
|
47
|
-
*/
|
|
48
|
-
subagent_type?: string;
|
|
49
|
-
[k: string]: unknown;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export interface AskExpertModelInput {
|
|
53
|
-
/**
|
|
54
|
-
* COMPLETE SELF-CONTAINED QUESTION: Must include full background context, relevant details, and a clear independent question. The expert model will receive ONLY this content with no access to previous conversation or external context. Structure as: 1) Background/Context 2) Specific situation/problem 3) Clear question. Ensure the expert can fully understand and respond without needing additional information.
|
|
55
|
-
*/
|
|
56
|
-
question: string;
|
|
57
|
-
/**
|
|
58
|
-
* The expert model to use (e.g., gpt-5, claude-3-5-sonnet-20241022)
|
|
59
|
-
*/
|
|
60
|
-
expert_model: string;
|
|
61
|
-
/**
|
|
62
|
-
* Chat session ID: use "new" for new session or existing session ID
|
|
63
|
-
*/
|
|
64
|
-
chat_session_id: string;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
export interface BashInput {
|
|
68
|
-
/**
|
|
69
|
-
* The command to execute
|
|
70
|
-
*/
|
|
71
|
-
command: string;
|
|
72
|
-
/**
|
|
73
|
-
* Optional timeout in milliseconds (max 600000)
|
|
74
|
-
*/
|
|
75
|
-
timeout?: number;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
export interface GlobToolInput {
|
|
79
|
-
/**
|
|
80
|
-
* The glob pattern to match files against
|
|
81
|
-
*/
|
|
82
|
-
pattern: string;
|
|
83
|
-
/**
|
|
84
|
-
* The directory to search in. Defaults to the current working directory.
|
|
85
|
-
*/
|
|
86
|
-
path?: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export interface GrepToolInput {
|
|
90
|
-
/**
|
|
91
|
-
* The regular expression pattern to search for in file contents
|
|
92
|
-
*/
|
|
93
|
-
pattern: string;
|
|
94
|
-
/**
|
|
95
|
-
* The directory to search in. Defaults to the current working directory.
|
|
96
|
-
*/
|
|
97
|
-
path?: string;
|
|
98
|
-
/**
|
|
99
|
-
* File pattern to include in the search (e.g. "*.js", "*.{ts,tsx}")
|
|
100
|
-
*/
|
|
101
|
-
include?: string;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
export interface LSInput {
|
|
105
|
-
/**
|
|
106
|
-
* The absolute path to the directory to list (must be absolute, not relative)
|
|
107
|
-
*/
|
|
108
|
-
path: string;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export interface ViewInput {
|
|
112
|
-
/**
|
|
113
|
-
* The absolute path to the file to read
|
|
114
|
-
*/
|
|
115
|
-
file_path: string;
|
|
116
|
-
/**
|
|
117
|
-
* The line number to start reading from. Only provide if the file is too large to read at once
|
|
118
|
-
*/
|
|
119
|
-
offset?: number;
|
|
120
|
-
/**
|
|
121
|
-
* The number of lines to read. Only provide if the file is too large to read at once.
|
|
122
|
-
*/
|
|
123
|
-
limit?: number;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export interface EditInput {
|
|
127
|
-
/**
|
|
128
|
-
* The absolute path to the file to modify
|
|
129
|
-
*/
|
|
130
|
-
file_path: string;
|
|
131
|
-
/**
|
|
132
|
-
* The text to replace
|
|
133
|
-
*/
|
|
134
|
-
old_string: string;
|
|
135
|
-
/**
|
|
136
|
-
* The text to replace it with
|
|
137
|
-
*/
|
|
138
|
-
new_string: string;
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
export interface MultiEditInput {
|
|
142
|
-
/**
|
|
143
|
-
* The absolute path to the file to modify
|
|
144
|
-
*/
|
|
145
|
-
file_path: string;
|
|
146
|
-
/**
|
|
147
|
-
* Array of edit operations to perform sequentially on the file
|
|
148
|
-
*/
|
|
149
|
-
edits: {
|
|
150
|
-
/**
|
|
151
|
-
* The text to replace
|
|
152
|
-
*/
|
|
153
|
-
old_string: string;
|
|
154
|
-
/**
|
|
155
|
-
* The text to replace it with
|
|
156
|
-
*/
|
|
157
|
-
new_string: string;
|
|
158
|
-
/**
|
|
159
|
-
* Replace all occurences of old_string (default false)
|
|
160
|
-
*/
|
|
161
|
-
replace_all?: boolean;
|
|
162
|
-
[k: string]: unknown;
|
|
163
|
-
}[];
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
export interface ReplaceInput {
|
|
167
|
-
/**
|
|
168
|
-
* The absolute path to the file to write (must be absolute, not relative)
|
|
169
|
-
*/
|
|
170
|
-
file_path: string;
|
|
171
|
-
/**
|
|
172
|
-
* The content to write to the file
|
|
173
|
-
*/
|
|
174
|
-
content: string;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
export interface ReadNotebookInput {
|
|
178
|
-
/**
|
|
179
|
-
* The absolute path to the Jupyter notebook file to read (must be absolute, not relative)
|
|
180
|
-
*/
|
|
181
|
-
notebook_path: string;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
export interface NotebookEditCellInput {
|
|
185
|
-
/**
|
|
186
|
-
* The absolute path to the Jupyter notebook file to edit (must be absolute, not relative)
|
|
187
|
-
*/
|
|
188
|
-
notebook_path: string;
|
|
189
|
-
/**
|
|
190
|
-
* The index of the cell to edit (0-based)
|
|
191
|
-
*/
|
|
192
|
-
cell_number: number;
|
|
193
|
-
/**
|
|
194
|
-
* The new source for the cell
|
|
195
|
-
*/
|
|
196
|
-
new_source: string;
|
|
197
|
-
/**
|
|
198
|
-
* The type of the cell (code or markdown). If not specified, it defaults to the current cell type. If using edit_mode=insert, this is required.
|
|
199
|
-
*/
|
|
200
|
-
cell_type?: "code" | "markdown";
|
|
201
|
-
/**
|
|
202
|
-
* The type of edit to make (replace, insert, delete). Defaults to replace.
|
|
203
|
-
*/
|
|
204
|
-
edit_mode?: string;
|
|
205
|
-
}
|
|
206
|
-
|
|
207
|
-
export interface ThinkInput {
|
|
208
|
-
/**
|
|
209
|
-
* Your thoughts.
|
|
210
|
-
*/
|
|
211
|
-
thought: string;
|
|
212
|
-
[k: string]: unknown;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
export interface TodoWriteInput {
|
|
216
|
-
/**
|
|
217
|
-
* The updated todo list
|
|
218
|
-
*/
|
|
219
|
-
todos: {
|
|
220
|
-
/**
|
|
221
|
-
* The task description or content
|
|
222
|
-
*/
|
|
223
|
-
content: string;
|
|
224
|
-
/**
|
|
225
|
-
* Current status of the task
|
|
226
|
-
*/
|
|
227
|
-
status: "pending" | "in_progress" | "completed";
|
|
228
|
-
/**
|
|
229
|
-
* Priority level of the task
|
|
230
|
-
*/
|
|
231
|
-
priority: "high" | "medium" | "low";
|
|
232
|
-
/**
|
|
233
|
-
* Unique identifier for the task
|
|
234
|
-
*/
|
|
235
|
-
id: string;
|
|
236
|
-
[k: string]: unknown;
|
|
237
|
-
}[];
|
|
238
|
-
}
|
|
239
|
-
|
|
240
|
-
export interface WebSearchInput {
|
|
241
|
-
/**
|
|
242
|
-
* The search query
|
|
243
|
-
*/
|
|
244
|
-
query: string;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
export interface URLFetcherInput {
|
|
248
|
-
/**
|
|
249
|
-
* The URL to fetch content from
|
|
250
|
-
*/
|
|
251
|
-
url: string;
|
|
252
|
-
/**
|
|
253
|
-
* The prompt to run on the fetched content
|
|
254
|
-
*/
|
|
255
|
-
prompt: string;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
export interface SkillInput {
|
|
259
|
-
/**
|
|
260
|
-
* The skill name (no arguments). E.g., "pdf" or "xlsx"
|
|
261
|
-
*/
|
|
262
|
-
skill: string;
|
|
263
|
-
[k: string]: unknown;
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
export interface MemoryReadInput {
|
|
267
|
-
/**
|
|
268
|
-
* Optional path to a specific memory file to read
|
|
269
|
-
*/
|
|
270
|
-
file_path?: string;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
export interface MemoryWriteInput {
|
|
274
|
-
/**
|
|
275
|
-
* Path to the memory file to write
|
|
276
|
-
*/
|
|
277
|
-
file_path: string;
|
|
278
|
-
/**
|
|
279
|
-
* Content to write to the file
|
|
280
|
-
*/
|
|
281
|
-
content: string;
|
|
282
|
-
}
|
package/vendor/ripgrep/COPYING
DELETED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|