dank-ai 1.0.1 → 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/.build-context-api-agent/Dockerfile +3 -0
- package/.build-context-basic-agent/Dockerfile +3 -0
- package/.build-context-prompt-only-agent/Dockerfile +3 -0
- package/.build-context-webhook-agent/Dockerfile +3 -0
- package/.env.example +22 -0
- package/README.md +66 -1290
- package/agents/example-agent.js +41 -0
- package/dank.config.js +210 -0
- package/docker/package-lock.json +2899 -0
- package/docker/package.json +7 -6
- package/example/README.md +176 -0
- package/example/dank.config.js +301 -0
- package/lib/agent.js +14 -19
- package/lib/cli/init.js +52 -7
- package/lib/project.js +16 -4
- package/package.json +20 -41
package/lib/project.js
CHANGED
|
@@ -215,7 +215,10 @@ module.exports = {
|
|
|
215
215
|
})
|
|
216
216
|
.setPrompt('You are a helpful AI assistant. Be concise and friendly in your responses.')
|
|
217
217
|
.setBaseImage('nodejs-20')
|
|
218
|
-
.
|
|
218
|
+
.setPromptingServer({
|
|
219
|
+
protocol: 'http',
|
|
220
|
+
port: 3000
|
|
221
|
+
})
|
|
219
222
|
.setResources({
|
|
220
223
|
memory: '512m',
|
|
221
224
|
cpu: 1
|
|
@@ -278,7 +281,10 @@ module.exports = {
|
|
|
278
281
|
})
|
|
279
282
|
.setPrompt('You are a specialized API assistant that helps with data processing and analysis.')
|
|
280
283
|
.setBaseImage('nodejs-20')
|
|
281
|
-
.
|
|
284
|
+
.setPromptingServer({
|
|
285
|
+
protocol: 'http',
|
|
286
|
+
port: 3001
|
|
287
|
+
})
|
|
282
288
|
.setResources({
|
|
283
289
|
memory: '1g',
|
|
284
290
|
cpu: 2
|
|
@@ -344,7 +350,10 @@ module.exports = {
|
|
|
344
350
|
})
|
|
345
351
|
.setPrompt('You are a versatile AI assistant that can handle both direct prompts and API requests. You excel at creative tasks and problem-solving.')
|
|
346
352
|
.setBaseImage('nodejs-20')
|
|
347
|
-
.
|
|
353
|
+
.setPromptingServer({
|
|
354
|
+
protocol: 'http',
|
|
355
|
+
port: 3002
|
|
356
|
+
})
|
|
348
357
|
.setResources({
|
|
349
358
|
memory: '2g',
|
|
350
359
|
cpu: 2
|
|
@@ -422,7 +431,10 @@ const exampleAgent = createAgent('example-agent')
|
|
|
422
431
|
- Help with problem-solving and creative tasks
|
|
423
432
|
\`)
|
|
424
433
|
.setBaseImage('nodejs-20')
|
|
425
|
-
.
|
|
434
|
+
.setPromptingServer({
|
|
435
|
+
protocol: 'http',
|
|
436
|
+
port: 3000
|
|
437
|
+
})
|
|
426
438
|
.setResources({
|
|
427
439
|
memory: '512m',
|
|
428
440
|
cpu: 1,
|
package/package.json
CHANGED
|
@@ -1,52 +1,31 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Dank
|
|
5
|
-
"main": "
|
|
6
|
-
"exports": {
|
|
7
|
-
".": "./lib/index.js",
|
|
8
|
-
"./lib": "./lib/index.js",
|
|
9
|
-
"./lib/*": "./lib/*"
|
|
10
|
-
},
|
|
11
|
-
"bin": {
|
|
12
|
-
"dank": "./bin/dank"
|
|
13
|
-
},
|
|
2
|
+
"name": "dank-ai",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "Dank AI",
|
|
5
|
+
"main": "dank.config.js",
|
|
14
6
|
"scripts": {
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"
|
|
7
|
+
"start": "dank run",
|
|
8
|
+
"dev": "dank run --config dank.config.js",
|
|
9
|
+
"stop": "dank stop",
|
|
10
|
+
"status": "dank status",
|
|
11
|
+
"logs": "dank logs",
|
|
12
|
+
"build": "dank build",
|
|
13
|
+
"clean": "dank clean"
|
|
20
14
|
},
|
|
21
15
|
"dependencies": {
|
|
22
|
-
"
|
|
23
|
-
"chalk": "^4.1.2",
|
|
24
|
-
"dockerode": "^4.0.0",
|
|
25
|
-
"js-yaml": "^4.1.0",
|
|
26
|
-
"joi": "^17.9.2",
|
|
27
|
-
"winston": "^3.10.0",
|
|
28
|
-
"fs-extra": "^11.1.1",
|
|
29
|
-
"tar": "^6.1.15",
|
|
30
|
-
"uuid": "^9.0.0"
|
|
31
|
-
},
|
|
32
|
-
"devDependencies": {
|
|
33
|
-
"nodemon": "^3.0.1"
|
|
16
|
+
"dank-ai": "^1.0.0"
|
|
34
17
|
},
|
|
35
|
-
"keywords": [
|
|
18
|
+
"keywords": [
|
|
19
|
+
"dank",
|
|
20
|
+
"ai",
|
|
21
|
+
"agents",
|
|
22
|
+
"automation",
|
|
23
|
+
"llm"
|
|
24
|
+
],
|
|
36
25
|
"author": "",
|
|
37
26
|
"license": "ISC",
|
|
38
|
-
"files": [
|
|
39
|
-
"lib/",
|
|
40
|
-
"bin/",
|
|
41
|
-
"docker/",
|
|
42
|
-
"templates/",
|
|
43
|
-
"README.md"
|
|
44
|
-
],
|
|
45
27
|
"engines": {
|
|
46
28
|
"node": ">=16.0.0",
|
|
47
29
|
"npm": ">=8.0.0"
|
|
48
|
-
},
|
|
49
|
-
"publishConfig": {
|
|
50
|
-
"access": "public"
|
|
51
30
|
}
|
|
52
|
-
}
|
|
31
|
+
}
|