dank-ai 1.0.39 → 1.0.41

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.
Files changed (2) hide show
  1. package/lib/agent.js +2 -6
  2. package/package.json +1 -1
package/lib/agent.js CHANGED
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  const Joi = require('joi');
9
- const { validate: validateUUID } = require('uuid');
9
+ const { validate: validateUUID, v4: uuidv4 } = require('uuid');
10
10
  const { DEFAULT_CONFIG, SUPPORTED_LLMS, DOCKER_CONFIG, INSTANCE_TYPES } = require('./constants');
11
11
  const { ToolRegistry, ToolExecutor } = require('./tools');
12
12
  const builtinTools = require('./tools/builtin');
@@ -467,9 +467,7 @@ class DankAgent {
467
467
  }
468
468
 
469
469
  this.handlers.get(eventType).push({
470
- id: this._generateId(),
471
- handler,
472
- createdAt: new Date().toISOString()
470
+ handler
473
471
  });
474
472
 
475
473
  return this;
@@ -776,8 +774,6 @@ class DankAgent {
776
774
 
777
775
  this.handlers.forEach((handlerList, eventType) => {
778
776
  serialized[eventType] = handlerList.map(h => ({
779
- id: h.id,
780
- createdAt: h.createdAt,
781
777
  // Note: actual function is not serialized
782
778
  hasFunction: typeof h.handler === 'function'
783
779
  }));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dank-ai",
3
- "version": "1.0.39",
3
+ "version": "1.0.41",
4
4
  "description": "Dank Agent Service - Docker-based AI agent orchestration platform",
5
5
  "main": "lib/index.js",
6
6
  "exports": {