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/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
- .setPort(3000)
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
- .setPort(3001)
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
- .setPort(3002)
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
- .setPort(3000)
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
- "name": "dank-ai",
3
- "version": "1.0.1",
4
- "description": "Dank Agent Service - Docker-based AI agent orchestration platform",
5
- "main": "lib/index.js",
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
- "test": "echo \"Error: no test specified\" && exit 1",
16
- "build": "echo \"Build completed\"",
17
- "dev": "node bin/dank",
18
- "install-global": "npm install -g .",
19
- "docker:build-base": "docker build -t dank-agent-base -f docker/Dockerfile.base ."
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
- "commander": "^11.0.0",
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": ["agent", "ai", "docker", "orchestration", "llm", "automation"],
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
+ }