deepfish-ai 1.0.29 → 2.0.3
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 +195 -344
- package/dist/generate-skill.md +104 -0
- package/dist/generate-tool.md +88 -0
- package/dist/index.js +26831 -0
- package/dist/serve/client/assets/index-DUHYC91l.js +1 -0
- package/dist/serve/client/assets/index-zcrdNLZs.css +1 -0
- package/dist/serve/client/index.html +14 -0
- package/dist/serve/pm2-server.js +24405 -0
- package/dist/serve/server/entry-server.mjs +224 -0
- package/dist/view-learn-cache.md +65 -0
- package/package.json +77 -83
- package/LICENSE +0 -21
- package/README_CN.md +0 -460
- package/src/AgentRobot/AgentRobotFactory/MainAgentRobot.js +0 -88
- package/src/AgentRobot/AgentRobotFactory/SubAgentRobot.js +0 -45
- package/src/AgentRobot/AgentRobotFactory/SubSkillAgentRobot.js +0 -45
- package/src/AgentRobot/AgentRobotFactory/index.js +0 -48
- package/src/AgentRobot/BaseAgentRobot/Brain.js +0 -210
- package/src/AgentRobot/BaseAgentRobot/BrainEvent.js +0 -17
- package/src/AgentRobot/BaseAgentRobot/Hand.js +0 -119
- package/src/AgentRobot/BaseAgentRobot/Heart.js +0 -0
- package/src/AgentRobot/BaseAgentRobot/Logger.js +0 -114
- package/src/AgentRobot/BaseAgentRobot/ScreenPrinter.js +0 -49
- package/src/AgentRobot/BaseAgentRobot/index.js +0 -266
- package/src/AgentRobot/BaseAgentRobot/lazy-tools/AliBailian.js +0 -997
- package/src/AgentRobot/BaseAgentRobot/lazy-tools/doc-transform.js +0 -204
- package/src/AgentRobot/BaseAgentRobot/lazy-tools/docx.js +0 -1286
- package/src/AgentRobot/BaseAgentRobot/lazy-tools/img.js +0 -765
- package/src/AgentRobot/BaseAgentRobot/lazy-tools/pdf.js +0 -736
- package/src/AgentRobot/BaseAgentRobot/lazy-tools/pptx.js +0 -567
- package/src/AgentRobot/BaseAgentRobot/lazy-tools/video.js +0 -36
- package/src/AgentRobot/BaseAgentRobot/lazy-tools/xlsx.js +0 -611
- package/src/AgentRobot/BaseAgentRobot/tools/BaseTools.js +0 -13
- package/src/AgentRobot/BaseAgentRobot/tools/CreateAgentTools.js +0 -158
- package/src/AgentRobot/BaseAgentRobot/tools/FileTools.js +0 -768
- package/src/AgentRobot/BaseAgentRobot/tools/GenerateTools.js +0 -441
- package/src/AgentRobot/BaseAgentRobot/tools/InquirerTools.js +0 -244
- package/src/AgentRobot/BaseAgentRobot/tools/SystemTools.js +0 -424
- package/src/AgentRobot/BaseAgentRobot/tools/TaskTools.js +0 -211
- package/src/AgentRobot/BaseAgentRobot/tools/TestTools.js +0 -100
- package/src/AgentRobot/BaseAgentRobot/tools/UserTool.js +0 -87
- package/src/AgentRobot/BaseAgentRobot/tools/WebTools.js +0 -257
- package/src/AgentRobot/BaseAgentRobot/utils/AIRequest.js +0 -297
- package/src/AgentRobot/BaseAgentRobot/utils/AIToolManager.js +0 -131
- package/src/AgentRobot/BaseAgentRobot/utils/AgentTree.js +0 -66
- package/src/AgentRobot/BaseAgentRobot/utils/AttachmentToolScanner.js +0 -235
- package/src/AgentRobot/BaseAgentRobot/utils/MessageCompresser.js +0 -236
- package/src/AgentRobot/BaseAgentRobot/utils/aiConsole.js +0 -74
- package/src/AgentRobot/BaseAgentRobot/utils/aiInquirer.js +0 -78
- package/src/AgentRobot/BaseAgentRobot/utils/analyzeReturn.test.js +0 -104
- package/src/AgentRobot/BaseAgentRobot/utils/copilot.js +0 -117
- package/src/AgentRobot/BaseAgentRobot/utils/node-root.js +0 -138
- package/src/AgentRobot/BaseAgentRobot/utils/normal.js +0 -399
- package/src/cli/ConfigManager.js +0 -283
- package/src/cli/DefaultConfig.js +0 -98
- package/src/cli/GlobalVariable.js +0 -8
- package/src/cli/MemoryManager.js +0 -53
- package/src/cli/SkillConfigManager.js +0 -354
- package/src/cli/SkillParser.js +0 -58
- package/src/cli/ai-auth.js +0 -231
- package/src/cli/ai-config.js +0 -225
- package/src/cli/ai-memory.js +0 -22
- package/src/cli/ai-skill.js +0 -65
- package/src/cli/index.js +0 -77
- package/src/index.js +0 -54
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import { createComponent, escape, renderToString, ssr, ssrAttribute, ssrHydrationKey } from "solid-js/web";
|
|
2
|
+
import { For, Show, createSignal, onCleanup, onMount } from "solid-js";
|
|
3
|
+
//#region src/serve/service/agent-room/web-client.ts
|
|
4
|
+
var AgentRoomWebClient = class {
|
|
5
|
+
url;
|
|
6
|
+
id = null;
|
|
7
|
+
ws = null;
|
|
8
|
+
opts;
|
|
9
|
+
reconnectTimer = null;
|
|
10
|
+
reconnecting = false;
|
|
11
|
+
constructor(opts) {
|
|
12
|
+
this.opts = opts;
|
|
13
|
+
this.url = opts.url || `ws://localhost:8866/agent-room`;
|
|
14
|
+
this.id = opts.id ?? null;
|
|
15
|
+
this.connect();
|
|
16
|
+
}
|
|
17
|
+
/** 连接到服务端 */
|
|
18
|
+
connect() {
|
|
19
|
+
if (this.ws) return;
|
|
20
|
+
this.ws = new WebSocket(this.url);
|
|
21
|
+
this.ws.onopen = () => {
|
|
22
|
+
const register = {
|
|
23
|
+
type: "register",
|
|
24
|
+
clientType: "web"
|
|
25
|
+
};
|
|
26
|
+
if (this.id) register["id"] = this.id;
|
|
27
|
+
this.ws.send(JSON.stringify(register));
|
|
28
|
+
};
|
|
29
|
+
this.ws.onmessage = (e) => {
|
|
30
|
+
const msg = JSON.parse(e.data);
|
|
31
|
+
if (msg.type === "registered") {
|
|
32
|
+
this.id = msg.id;
|
|
33
|
+
this.opts.onReady?.(this);
|
|
34
|
+
return;
|
|
35
|
+
}
|
|
36
|
+
if (msg.type === "sessions-push") {
|
|
37
|
+
const payload = msg.payload ?? [];
|
|
38
|
+
this.opts.onSessionsPush?.(this, payload);
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
if (msg.type === "error") {
|
|
42
|
+
this.opts.onError?.(this, msg.code || "", msg.message || "");
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
this.opts.onMessage?.(this, msg);
|
|
46
|
+
};
|
|
47
|
+
this.ws.onclose = (e) => {
|
|
48
|
+
this.opts.onClose?.(this, e.code, e.reason);
|
|
49
|
+
this.ws = null;
|
|
50
|
+
this.tryReconnect();
|
|
51
|
+
};
|
|
52
|
+
this.ws.onerror = () => {};
|
|
53
|
+
}
|
|
54
|
+
/** 发送消息 */
|
|
55
|
+
send(type, payload, to) {
|
|
56
|
+
if (!this.ws || this.ws.readyState !== WebSocket.OPEN) return;
|
|
57
|
+
this.ws.send(JSON.stringify({
|
|
58
|
+
type,
|
|
59
|
+
payload,
|
|
60
|
+
to
|
|
61
|
+
}));
|
|
62
|
+
}
|
|
63
|
+
/** 回复消息(自动填充 to 为消息来源) */
|
|
64
|
+
reply(msg, payload) {
|
|
65
|
+
if (!msg.from) return;
|
|
66
|
+
this.send(msg.type + "-result", payload, msg.from);
|
|
67
|
+
}
|
|
68
|
+
/** 断开连接,不重连 */
|
|
69
|
+
disconnect() {
|
|
70
|
+
this.clearReconnect();
|
|
71
|
+
this.reconnecting = false;
|
|
72
|
+
if (this.ws) {
|
|
73
|
+
this.ws.close(1e3, "client disconnect");
|
|
74
|
+
this.ws = null;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
/** 是否已连接 */
|
|
78
|
+
get connected() {
|
|
79
|
+
return this.ws?.readyState === WebSocket.OPEN;
|
|
80
|
+
}
|
|
81
|
+
clearReconnect() {
|
|
82
|
+
if (this.reconnectTimer) {
|
|
83
|
+
clearTimeout(this.reconnectTimer);
|
|
84
|
+
this.reconnectTimer = null;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
tryReconnect() {
|
|
88
|
+
const interval = this.opts.reconnectInterval ?? 3e3;
|
|
89
|
+
if (interval <= 0 || this.reconnecting) return;
|
|
90
|
+
this.reconnecting = true;
|
|
91
|
+
this.reconnectTimer = setTimeout(() => {
|
|
92
|
+
this.reconnecting = false;
|
|
93
|
+
this.connect();
|
|
94
|
+
}, interval);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
//#endregion
|
|
98
|
+
//#region src/serve/ui/App.tsx
|
|
99
|
+
var _tmpl$ = [
|
|
100
|
+
"<div",
|
|
101
|
+
" class=\"table-wrap\"><table class=\"sessions\"><thead><tr><th>ID</th><th>Name</th><th>Workspace</th><th>Status</th><th>Created</th><th>Updated</th><th class=\"th-actions\">Actions</th></tr></thead><tbody>",
|
|
102
|
+
"</tbody></table></div>"
|
|
103
|
+
], _tmpl$2 = [
|
|
104
|
+
"<div",
|
|
105
|
+
" class=\"modal-backdrop\"><div class=\"modal\" role=\"dialog\" aria-modal=\"true\" aria-label=\"确认删除\"><div class=\"modal-body\">",
|
|
106
|
+
"</div><div class=\"modal-actions\"><button type=\"button\" class=\"btn btn-cancel\">取消</button><button type=\"button\" class=\"btn btn-confirm\"",
|
|
107
|
+
">",
|
|
108
|
+
"</button></div></div></div>"
|
|
109
|
+
], _tmpl$3 = [
|
|
110
|
+
"<div",
|
|
111
|
+
" class=\"app-shell\"><header class=\"app-header\"><div><h1 class=\"app-title\">DeepFish Sessions</h1><p class=\"app-subtitle\">// agent-room · realtime</p></div><div class=\"status-pill\"",
|
|
112
|
+
"><span class=\"",
|
|
113
|
+
"\"></span><!--$-->",
|
|
114
|
+
"<!--/--></div></header><section class=\"panel\"><div class=\"panel-header\"><h2 class=\"panel-title\">Active Sessions<span class=\"badge\">",
|
|
115
|
+
"</span></h2></div><!--$-->",
|
|
116
|
+
"<!--/--></section><!--$-->",
|
|
117
|
+
"<!--/--></div>"
|
|
118
|
+
], _tmpl$4 = [
|
|
119
|
+
"<div",
|
|
120
|
+
" class=\"empty-state\"><div class=\"icon\">◇</div><div>",
|
|
121
|
+
"</div></div>"
|
|
122
|
+
], _tmpl$5 = [
|
|
123
|
+
"<tr",
|
|
124
|
+
"><td class=\"cell-mono\">",
|
|
125
|
+
"</td><td class=\"cell-name\">",
|
|
126
|
+
"</td><td class=\"cell-mono\">",
|
|
127
|
+
"</td><td><span class=\"",
|
|
128
|
+
"\">",
|
|
129
|
+
"</span></td><td class=\"cell-time\">",
|
|
130
|
+
"</td><td class=\"cell-time\">",
|
|
131
|
+
"</td><td class=\"cell-actions\"><button type=\"button\" class=\"btn-delete\"",
|
|
132
|
+
">",
|
|
133
|
+
"</button></td></tr>"
|
|
134
|
+
];
|
|
135
|
+
var STATUS_LABEL = {
|
|
136
|
+
0: "Idle",
|
|
137
|
+
1: "Working"
|
|
138
|
+
};
|
|
139
|
+
var STATUS_DOT_CLASS = {
|
|
140
|
+
connecting: "is-connecting",
|
|
141
|
+
connected: "is-connected",
|
|
142
|
+
disconnected: "is-disconnected",
|
|
143
|
+
error: "is-error",
|
|
144
|
+
ssr: "is-disconnected"
|
|
145
|
+
};
|
|
146
|
+
var STATUS_PILL_TEXT = {
|
|
147
|
+
ssr: "LOADING",
|
|
148
|
+
connecting: "CONNECTING",
|
|
149
|
+
connected: "CONNECTED",
|
|
150
|
+
disconnected: "DISCONNECTED",
|
|
151
|
+
error: "ERROR"
|
|
152
|
+
};
|
|
153
|
+
/** 把 ISO 时间格式化为本地字符串(兼容 invalid)。 */
|
|
154
|
+
function formatTime(value) {
|
|
155
|
+
if (!value) return "-";
|
|
156
|
+
const d = new Date(value);
|
|
157
|
+
if (Number.isNaN(d.getTime())) return value;
|
|
158
|
+
return d.toLocaleString();
|
|
159
|
+
}
|
|
160
|
+
function App() {
|
|
161
|
+
const [sessions, setSessions] = createSignal([]);
|
|
162
|
+
const [status, setStatus] = createSignal("ssr");
|
|
163
|
+
const [errorMsg, setErrorMsg] = createSignal("");
|
|
164
|
+
const [deletingId, setDeletingId] = createSignal("");
|
|
165
|
+
const [confirmingId, setConfirmingId] = createSignal("");
|
|
166
|
+
const [showConfirm, setShowConfirm] = createSignal(false);
|
|
167
|
+
const [confirmMessage, setConfirmMessage] = createSignal("");
|
|
168
|
+
let client = null;
|
|
169
|
+
onMount(() => {
|
|
170
|
+
if (typeof window === "undefined") return;
|
|
171
|
+
setStatus("connecting");
|
|
172
|
+
client = new AgentRoomWebClient({
|
|
173
|
+
url: `ws://${window.location.host}/agent-room`,
|
|
174
|
+
onReady: () => {
|
|
175
|
+
setStatus("connected");
|
|
176
|
+
setErrorMsg("");
|
|
177
|
+
},
|
|
178
|
+
onSessionsPush: (_c, list) => {
|
|
179
|
+
setSessions(list ?? []);
|
|
180
|
+
setDeletingId("");
|
|
181
|
+
},
|
|
182
|
+
onError: (_c, _code, message) => {
|
|
183
|
+
setStatus("error");
|
|
184
|
+
setErrorMsg(message);
|
|
185
|
+
setDeletingId("");
|
|
186
|
+
},
|
|
187
|
+
onClose: () => {
|
|
188
|
+
setStatus("disconnected");
|
|
189
|
+
setDeletingId("");
|
|
190
|
+
}
|
|
191
|
+
});
|
|
192
|
+
});
|
|
193
|
+
onCleanup(() => client?.disconnect());
|
|
194
|
+
return ssr(_tmpl$3, ssrHydrationKey(), ssrAttribute("title", escape(errorMsg(), true), false), `status-dot ${escape(STATUS_DOT_CLASS[status()], true)}`, escape(STATUS_PILL_TEXT[status()]), escape(sessions().length), escape(createComponent(Show, {
|
|
195
|
+
get when() {
|
|
196
|
+
return sessions().length > 0;
|
|
197
|
+
},
|
|
198
|
+
get fallback() {
|
|
199
|
+
return ssr(_tmpl$4, ssrHydrationKey(), status() === "connected" ? "No active sessions" : status() === "ssr" ? "Hydrating…" : "Waiting for data…");
|
|
200
|
+
},
|
|
201
|
+
get children() {
|
|
202
|
+
return ssr(_tmpl$, ssrHydrationKey(), escape(createComponent(For, {
|
|
203
|
+
get each() {
|
|
204
|
+
return sessions();
|
|
205
|
+
},
|
|
206
|
+
children: (s) => ssr(_tmpl$5, ssrHydrationKey(), escape(s.id), escape(s.name), escape(s.workspace), `status-tag ${s.status === 1 ? "is-online" : "is-offline"}`, escape(STATUS_LABEL[s.status ?? 0]), escape(formatTime(s.createdAt)), escape(formatTime(s.updatedAt)), ssrAttribute("disabled", deletingId() === s.id, true), deletingId() === s.id ? "Deleting..." : "Delete")
|
|
207
|
+
})));
|
|
208
|
+
}
|
|
209
|
+
})), escape(createComponent(Show, {
|
|
210
|
+
get when() {
|
|
211
|
+
return showConfirm();
|
|
212
|
+
},
|
|
213
|
+
get children() {
|
|
214
|
+
return ssr(_tmpl$2, ssrHydrationKey(), escape(confirmMessage()), ssrAttribute("disabled", deletingId() === confirmingId(), true), deletingId() === confirmingId() ? "Deleting..." : "确认删除");
|
|
215
|
+
}
|
|
216
|
+
})));
|
|
217
|
+
}
|
|
218
|
+
//#endregion
|
|
219
|
+
//#region src/serve/ui/entry-server.tsx
|
|
220
|
+
function render() {
|
|
221
|
+
return { html: renderToString(() => createComponent(App, {})) };
|
|
222
|
+
}
|
|
223
|
+
//#endregion
|
|
224
|
+
export { render };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: 'view-learn-cache'
|
|
3
|
+
description: '查询、复用和维护本地学习缓存中的历史复杂问题解决方案'
|
|
4
|
+
homepage: ''
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# 查看学习缓存
|
|
8
|
+
|
|
9
|
+
你拥有一个本地知识库缓存系统,用于存储和检索之前解决复杂问题的方案。
|
|
10
|
+
|
|
11
|
+
## 可用工具
|
|
12
|
+
|
|
13
|
+
- `get_catalog_file_path` — 获取 catalog.json 文件的绝对路径
|
|
14
|
+
- `get_learned_detail` — 读取指定方案的完整内容,传入索引号或 id
|
|
15
|
+
- `learn_self` — 将新的解决方案保存到缓存
|
|
16
|
+
- `update_learned_content` — 更新已有缓存方案的内容,传入 id 和新 Markdown 内容
|
|
17
|
+
|
|
18
|
+
## 缓存数据存储
|
|
19
|
+
|
|
20
|
+
缓存数据存储在 `catalog.json` 文件中,每条记录包含 `id` 和 `description`。对应的完整内容保存在同目录下以 `{id}.md` 命名的 Markdown 文件中。
|
|
21
|
+
|
|
22
|
+
## 使用规则
|
|
23
|
+
|
|
24
|
+
### 遇到复杂问题时(必须先查缓存)
|
|
25
|
+
|
|
26
|
+
1. **首先调用 `get_catalog_file_path`** 获取 catalog.json 路径,然后用 `read_file` 读取该文件查看所有已缓存的方案列表
|
|
27
|
+
2. 如果列表中有看起来相关的条目,**调用 `get_learned_detail`** 读取完整内容
|
|
28
|
+
3. 参考历史方案中的步骤、代码和注意事项来解决问题
|
|
29
|
+
4. 如果历史方案不完全适用,结合当前情况调整
|
|
30
|
+
|
|
31
|
+
### 成功解决复杂问题后(必须保存方案)
|
|
32
|
+
|
|
33
|
+
1. 调用 `learn_self` 保存本次解决方案:
|
|
34
|
+
- `description`:不超过50字,简洁概括问题和方案,便于后续检索
|
|
35
|
+
- `content`:Markdown 格式,包含:
|
|
36
|
+
- 问题描述
|
|
37
|
+
- 解决步骤
|
|
38
|
+
- 关键代码片段
|
|
39
|
+
- 注意事项/踩坑记录
|
|
40
|
+
- 相关文件路径
|
|
41
|
+
|
|
42
|
+
### 补充或修正已有方案
|
|
43
|
+
|
|
44
|
+
1. 如果发现已有方案不完整或有误,调用 `update_learned_content` 更新:
|
|
45
|
+
- `id`:要更新的缓存项 id(uuid),可通过读取 `catalog.json` 获取
|
|
46
|
+
- `content`:更新后的完整 Markdown 内容
|
|
47
|
+
|
|
48
|
+
### 何时使用缓存
|
|
49
|
+
|
|
50
|
+
以下场景应优先查询缓存:
|
|
51
|
+
|
|
52
|
+
- 遇到报错或异常,不确定原因
|
|
53
|
+
- 需要配置复杂的环境或工具链
|
|
54
|
+
- 涉及项目特有的构建/部署流程
|
|
55
|
+
- 之前解决过类似问题
|
|
56
|
+
- 用户提到"和上次一样"或"之前遇到过"
|
|
57
|
+
|
|
58
|
+
### 何时保存到缓存
|
|
59
|
+
|
|
60
|
+
以下场景应保存方案:
|
|
61
|
+
|
|
62
|
+
- 花费了较多步骤才解决的问题
|
|
63
|
+
- 涉及非显而易见的配置或操作
|
|
64
|
+
- 踩了坑并找到了解决方法
|
|
65
|
+
- 用户明确要求记住此方案
|
package/package.json
CHANGED
|
@@ -1,83 +1,77 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "deepfish-ai",
|
|
3
|
-
"version": "
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
"
|
|
9
|
-
},
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
"
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
42
|
-
"
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"inquirer": "^
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
"
|
|
74
|
-
"
|
|
75
|
-
"
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
"src",
|
|
79
|
-
"README.md",
|
|
80
|
-
"README_CN.md",
|
|
81
|
-
"LICENSE"
|
|
82
|
-
]
|
|
83
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "deepfish-ai",
|
|
3
|
+
"version": "2.0.3",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "An efficient AI-driven command-line tool designed to bridge the gap between natural language and operating system commands, file operations, and more. It enables non-developers to quickly generate executable instructions through simple natural language descriptions, significantly improving terminal operation efficiency.",
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/qq306863030/deepfish-ai.git"
|
|
9
|
+
},
|
|
10
|
+
"keywords": [
|
|
11
|
+
"ai",
|
|
12
|
+
"cli",
|
|
13
|
+
"agent",
|
|
14
|
+
"llm",
|
|
15
|
+
"deepfish",
|
|
16
|
+
"terminal",
|
|
17
|
+
"automation",
|
|
18
|
+
"langchain",
|
|
19
|
+
"mcp",
|
|
20
|
+
"natural-language"
|
|
21
|
+
],
|
|
22
|
+
"main": "./dist/index.js",
|
|
23
|
+
"bin": {
|
|
24
|
+
"ai": "./dist/index.js"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"dist/"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "tsup && npm run build:ui",
|
|
31
|
+
"build:ui": "vite build && vite build --config vite.server.config.ts",
|
|
32
|
+
"dev": "tsx src/cli/index.ts",
|
|
33
|
+
"format": "prettier --write \"src/**/*.{ts,js,json,css,md}\"",
|
|
34
|
+
"format:check": "prettier --check \"src/**/*.{ts,js,json,css,md}\"",
|
|
35
|
+
"typecheck": "tsc --noEmit",
|
|
36
|
+
"prepublishOnly": "npm run build"
|
|
37
|
+
},
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@langchain/anthropic": "^1.4.0",
|
|
40
|
+
"@langchain/core": "^1.1.48",
|
|
41
|
+
"@langchain/deepseek": "^1.0.27",
|
|
42
|
+
"@langchain/langgraph": "^1.4.1",
|
|
43
|
+
"@langchain/mcp-adapters": "^1.1.3",
|
|
44
|
+
"@langchain/openai": "^1.4.7",
|
|
45
|
+
"@langchain/tavily": "^1.2.0",
|
|
46
|
+
"adm-zip": "^0.5.17",
|
|
47
|
+
"axios": "^1.17.0",
|
|
48
|
+
"chalk": "^5.6.2",
|
|
49
|
+
"commander": "^11.0.0",
|
|
50
|
+
"dayjs": "^1.11.21",
|
|
51
|
+
"deepagents": "^1.10.2",
|
|
52
|
+
"eventemitter-super": "^1.0.9",
|
|
53
|
+
"express": "^5.2.1",
|
|
54
|
+
"fs-extra": "^11.3.5",
|
|
55
|
+
"inquirer": "^14.0.2",
|
|
56
|
+
"json5": "^2.2.3",
|
|
57
|
+
"langchain": "^1.4.4",
|
|
58
|
+
"pm2": "^7.0.1",
|
|
59
|
+
"solid-js": "^1.9.13",
|
|
60
|
+
"tsx": "^4.19.0",
|
|
61
|
+
"ws": "^8.21.0"
|
|
62
|
+
},
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@types/adm-zip": "^0.5.8",
|
|
65
|
+
"@types/express": "^5.0.6",
|
|
66
|
+
"@types/fs-extra": "^11.0.4",
|
|
67
|
+
"@types/node": "^22.0.0",
|
|
68
|
+
"@types/ws": "^8.18.1",
|
|
69
|
+
"less": "^4.6.6",
|
|
70
|
+
"prettier": "^3.8.3",
|
|
71
|
+
"tsup": "^8.4.0",
|
|
72
|
+
"typescript": "^5.0.0",
|
|
73
|
+
"vite": "^8.0.16",
|
|
74
|
+
"vite-plugin-solid": "^2.11.12",
|
|
75
|
+
"vitest": "^3.0.0"
|
|
76
|
+
}
|
|
77
|
+
}
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2025 [Your Name]
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|