@xinshu/openagi 0.0.2-dev.3 → 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/package.json CHANGED
@@ -1,20 +1,22 @@
1
1
  {
2
2
  "name": "@xinshu/openagi",
3
- "version": "0.0.2-dev.3",
3
+ "version": "0.0.2-dev.4",
4
4
  "bin": {
5
- "openagi": "cli.js",
6
- "agi": "cli.js"
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": ">=22.18.1"
11
+ "node": ">=20.18.1"
10
12
  },
11
13
  "type": "module",
12
- "author": "XingShu <ai-lab@xingshu.com>",
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/xingshuzhice/openagi.git",
17
+ "homepage": "https://github.com/shareAI-lab/kode",
16
18
  "bugs": {
17
- "url": "https://github.com/xingshuzhice/openagi/issues"
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); }\""
@@ -39,6 +41,7 @@
39
41
  "node_modules/sharp/**/*",
40
42
  "node_modules/@img/**/*",
41
43
  "README.md",
44
+ "logo.svg",
42
45
  ".npmrc",
43
46
  ".npmignore",
44
47
  "LICENSE.md",
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
- * OpenAGI 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
- }
@@ -1,3 +0,0 @@
1
- This project is dual-licensed under the Unlicense and MIT licenses.
2
-
3
- You may use this code under the terms of either license.
Binary file
Binary file
Binary file
Binary file
Binary file