nextclaw 0.1.0
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/bridge/package.json +26 -0
- package/bridge/src/index.ts +68 -0
- package/bridge/src/server.ts +104 -0
- package/bridge/src/types.d.ts +3 -0
- package/bridge/src/whatsapp.ts +187 -0
- package/bridge/tsconfig.json +16 -0
- package/dist/chunk-4I7WMYPU.js +2289 -0
- package/dist/chunk-PIG2O4DT.js +2095 -0
- package/dist/chunk-RTVGGPPW.js +2307 -0
- package/dist/chunk-XAY6UDOR.js +2282 -0
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.js +3125 -0
- package/dist/index.d.ts +2869 -0
- package/dist/index.js +86 -0
- package/package.json +82 -0
package/dist/index.js
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AgentDefaultsSchema,
|
|
3
|
+
AgentLoop,
|
|
4
|
+
AgentsConfigSchema,
|
|
5
|
+
ChannelsConfigSchema,
|
|
6
|
+
ConfigSchema,
|
|
7
|
+
DingTalkConfigSchema,
|
|
8
|
+
DiscordConfigSchema,
|
|
9
|
+
EmailConfigSchema,
|
|
10
|
+
ExecToolConfigSchema,
|
|
11
|
+
FeishuConfigSchema,
|
|
12
|
+
GatewayConfigSchema,
|
|
13
|
+
LLMProvider,
|
|
14
|
+
LiteLLMProvider,
|
|
15
|
+
MochatConfigSchema,
|
|
16
|
+
MochatGroupRuleSchema,
|
|
17
|
+
MochatMentionSchema,
|
|
18
|
+
PROVIDERS,
|
|
19
|
+
ProviderConfigSchema,
|
|
20
|
+
ProvidersConfigSchema,
|
|
21
|
+
QQConfigSchema,
|
|
22
|
+
SlackConfigSchema,
|
|
23
|
+
SlackDMSchema,
|
|
24
|
+
TelegramConfigSchema,
|
|
25
|
+
ToolsConfigSchema,
|
|
26
|
+
WebSearchConfigSchema,
|
|
27
|
+
WebToolsConfigSchema,
|
|
28
|
+
WhatsAppConfigSchema,
|
|
29
|
+
findGateway,
|
|
30
|
+
findProviderByModel,
|
|
31
|
+
findProviderByName,
|
|
32
|
+
getApiBase,
|
|
33
|
+
getApiKey,
|
|
34
|
+
getConfigPath,
|
|
35
|
+
getDataDir,
|
|
36
|
+
getProvider,
|
|
37
|
+
getProviderName,
|
|
38
|
+
getWorkspacePathFromConfig,
|
|
39
|
+
loadConfig,
|
|
40
|
+
matchProvider,
|
|
41
|
+
providerLabel,
|
|
42
|
+
saveConfig
|
|
43
|
+
} from "./chunk-RTVGGPPW.js";
|
|
44
|
+
export {
|
|
45
|
+
AgentDefaultsSchema,
|
|
46
|
+
AgentLoop,
|
|
47
|
+
AgentsConfigSchema,
|
|
48
|
+
ChannelsConfigSchema,
|
|
49
|
+
ConfigSchema,
|
|
50
|
+
DingTalkConfigSchema,
|
|
51
|
+
DiscordConfigSchema,
|
|
52
|
+
EmailConfigSchema,
|
|
53
|
+
ExecToolConfigSchema,
|
|
54
|
+
FeishuConfigSchema,
|
|
55
|
+
GatewayConfigSchema,
|
|
56
|
+
LLMProvider,
|
|
57
|
+
LiteLLMProvider,
|
|
58
|
+
MochatConfigSchema,
|
|
59
|
+
MochatGroupRuleSchema,
|
|
60
|
+
MochatMentionSchema,
|
|
61
|
+
PROVIDERS,
|
|
62
|
+
ProviderConfigSchema,
|
|
63
|
+
ProvidersConfigSchema,
|
|
64
|
+
QQConfigSchema,
|
|
65
|
+
SlackConfigSchema,
|
|
66
|
+
SlackDMSchema,
|
|
67
|
+
TelegramConfigSchema,
|
|
68
|
+
ToolsConfigSchema,
|
|
69
|
+
WebSearchConfigSchema,
|
|
70
|
+
WebToolsConfigSchema,
|
|
71
|
+
WhatsAppConfigSchema,
|
|
72
|
+
findGateway,
|
|
73
|
+
findProviderByModel,
|
|
74
|
+
findProviderByName,
|
|
75
|
+
getApiBase,
|
|
76
|
+
getApiKey,
|
|
77
|
+
getConfigPath,
|
|
78
|
+
getDataDir,
|
|
79
|
+
getProvider,
|
|
80
|
+
getProviderName,
|
|
81
|
+
getWorkspacePathFromConfig,
|
|
82
|
+
loadConfig,
|
|
83
|
+
matchProvider,
|
|
84
|
+
providerLabel,
|
|
85
|
+
saveConfig
|
|
86
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "nextclaw",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Lightweight personal AI assistant with CLI, multi-provider routing, and channel integrations.",
|
|
5
|
+
"private": false,
|
|
6
|
+
"type": "module",
|
|
7
|
+
"bin": {
|
|
8
|
+
"nextclaw": "dist/cli/index.js"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"repository": {
|
|
12
|
+
"type": "git",
|
|
13
|
+
"url": "git+https://github.com/Peiiii/nextclaw.git"
|
|
14
|
+
},
|
|
15
|
+
"homepage": "https://github.com/Peiiii/nextclaw#readme",
|
|
16
|
+
"bugs": {
|
|
17
|
+
"url": "https://github.com/Peiiii/nextclaw/issues"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"ai",
|
|
21
|
+
"assistant",
|
|
22
|
+
"agent",
|
|
23
|
+
"cli",
|
|
24
|
+
"chatbot"
|
|
25
|
+
],
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./dist/index.d.ts",
|
|
29
|
+
"default": "./dist/index.js"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"files": [
|
|
33
|
+
"dist",
|
|
34
|
+
"bridge"
|
|
35
|
+
],
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@larksuiteoapi/node-sdk": "^1.58.0",
|
|
38
|
+
"@slack/socket-mode": "^1.3.3",
|
|
39
|
+
"@slack/web-api": "^7.6.0",
|
|
40
|
+
"commander": "^12.1.0",
|
|
41
|
+
"cron-parser": "^4.9.0",
|
|
42
|
+
"dingtalk-stream": "^2.1.4",
|
|
43
|
+
"dotenv": "^16.4.5",
|
|
44
|
+
"discord.js": "^14.16.3",
|
|
45
|
+
"imapflow": "^1.0.214",
|
|
46
|
+
"mailparser": "^3.7.1",
|
|
47
|
+
"node-telegram-bot-api": "^0.66.0",
|
|
48
|
+
"nodemailer": "^6.9.15",
|
|
49
|
+
"openai": "^4.74.0",
|
|
50
|
+
"pino": "^9.4.0",
|
|
51
|
+
"qq-bot-sdk": "^1.9.1",
|
|
52
|
+
"socket.io-client": "^4.7.5",
|
|
53
|
+
"socket.io-msgpack-parser": "^3.0.2",
|
|
54
|
+
"undici": "^6.21.0",
|
|
55
|
+
"ws": "^8.18.0",
|
|
56
|
+
"zod": "^3.23.8"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@types/node": "^20.17.6",
|
|
60
|
+
"@types/mailparser": "^3.4.6",
|
|
61
|
+
"@types/node-telegram-bot-api": "^0.64.8",
|
|
62
|
+
"@types/nodemailer": "^6.4.17",
|
|
63
|
+
"@types/ws": "^8.5.14",
|
|
64
|
+
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
65
|
+
"@typescript-eslint/parser": "^7.18.0",
|
|
66
|
+
"eslint": "^8.57.1",
|
|
67
|
+
"eslint-config-prettier": "^9.1.0",
|
|
68
|
+
"prettier": "^3.3.3",
|
|
69
|
+
"tsup": "^8.3.5",
|
|
70
|
+
"tsx": "^4.19.2",
|
|
71
|
+
"typescript": "^5.6.3",
|
|
72
|
+
"vitest": "^2.1.2"
|
|
73
|
+
},
|
|
74
|
+
"scripts": {
|
|
75
|
+
"dev": "tsx src/cli/index.ts",
|
|
76
|
+
"build": "tsup src/index.ts src/cli/index.ts --format esm --dts --out-dir dist",
|
|
77
|
+
"start": "node dist/cli.js",
|
|
78
|
+
"lint": "eslint .",
|
|
79
|
+
"tsc": "tsc -p tsconfig.json",
|
|
80
|
+
"test": "vitest"
|
|
81
|
+
}
|
|
82
|
+
}
|