dank-ai 1.0.38 → 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.
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
  }));
@@ -144,6 +144,8 @@ async function productionBuildCommand(options) {
144
144
  // Get project directory (directory containing the config file)
145
145
  const projectDir = path.dirname(configPath);
146
146
 
147
+ // Clear require cache to get fresh config (important for development)
148
+ delete require.cache[require.resolve(configPath)];
147
149
  const config = require(configPath);
148
150
  if (!config.agents || !Array.isArray(config.agents)) {
149
151
  throw new Error('No agents found in configuration');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dank-ai",
3
- "version": "1.0.38",
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": {