tachibot-mcp 2.0.3 → 2.0.4

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.
@@ -1,3 +1,4 @@
1
+ import { randomBytes } from "crypto";
1
2
  import { TechnicalDomain, REASONING_TEMPLATES } from "./reasoning-chain.js";
2
3
  import { sessionLogger } from "./session/session-logger.js";
3
4
  import { sessionManager } from "./session/session-manager.js";
@@ -239,7 +240,7 @@ export class CollaborativeOrchestrator {
239
240
  * Generate session ID
240
241
  */
241
242
  generateSessionId() {
242
- return `session_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
243
+ return `session_${Date.now()}_${randomBytes(6).toString('hex')}`;
243
244
  }
244
245
  /**
245
246
  * Get session status
@@ -5,6 +5,7 @@
5
5
  import { mergeMemoryConfig, validateMemoryConfig } from './memory-config.js';
6
6
  import { LocalProvider } from './providers/local-provider.js';
7
7
  import { Mem0Provider } from './providers/mem0-provider.js';
8
+ import { randomBytes } from 'crypto';
8
9
  // import { DevLogProvider } from './providers/devlog-provider.js';
9
10
  // import { HybridProvider } from './providers/hybrid-provider.js';
10
11
  /**
@@ -352,10 +353,10 @@ export class HierarchicalMemoryManager {
352
353
  }
353
354
  }
354
355
  generateId() {
355
- return `${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
356
+ return `${Date.now()}-${randomBytes(6).toString('hex')}`;
356
357
  }
357
358
  generateSessionId() {
358
- return `session-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`;
359
+ return `session-${Date.now()}-${randomBytes(6).toString('hex')}`;
359
360
  }
360
361
  }
361
362
  /**
@@ -4,6 +4,7 @@
4
4
  * Enhanced with multi-model orchestration capabilities
5
5
  */
6
6
  import { z } from "zod";
7
+ import { randomBytes } from "crypto";
7
8
  export class SequentialThinking {
8
9
  constructor() {
9
10
  this.sessions = new Map();
@@ -233,7 +234,7 @@ export class SequentialThinking {
233
234
  * Generate session ID
234
235
  */
235
236
  generateSessionId() {
236
- return `think_${Date.now()}_${Math.random().toString(36).substr(2, 9)}`;
237
+ return `think_${Date.now()}_${randomBytes(6).toString('hex')}`;
237
238
  }
238
239
  /**
239
240
  * Create multi-model thinking chain
@@ -14,12 +14,8 @@ function getPerplexityApiKey() {
14
14
  function debugApiKey() {
15
15
  const apiKey = getPerplexityApiKey();
16
16
  console.error('[PERPLEXITY DEBUG] API Key present:', !!apiKey);
17
- if (apiKey) {
18
- console.error('[PERPLEXITY DEBUG] Key length:', apiKey.length);
19
- console.error('[PERPLEXITY DEBUG] Key prefix:', apiKey.substring(0, 8) + '...');
20
- }
21
- else {
22
- console.error('[PERPLEXITY DEBUG] process.env keys:', Object.keys(process.env).filter(k => k.includes('PERP') || k.includes('API')));
17
+ if (!apiKey) {
18
+ console.error('[PERPLEXITY DEBUG] Environment variables containing PERP or API found:', Object.keys(process.env).filter(k => k.includes('PERP') || k.includes('API')).length);
23
19
  }
24
20
  }
25
21
  // Available Perplexity models (2025 latest)
@@ -161,7 +161,7 @@ export class StepExecutionHandler {
161
161
  if (match) {
162
162
  const [, variable, expectedValue] = match;
163
163
  const actualValue = variables[variable];
164
- return String(actualValue).trim() === expectedValue.trim().replace(/['"]/, '');
164
+ return String(actualValue).trim() === expectedValue.trim().replace(/['"]/g, '');
165
165
  }
166
166
  // Default: check if variable exists and is truthy
167
167
  return !!variables[condition];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "tachibot-mcp",
3
3
  "displayName": "TachiBot MCP - Universal AI Orchestrator",
4
- "version": "2.0.3",
4
+ "version": "2.0.4",
5
5
  "type": "module",
6
6
  "main": "dist/src/server.js",
7
7
  "bin": {
@@ -12,11 +12,9 @@
12
12
  "dist/",
13
13
  "profiles/",
14
14
  "workflows/",
15
- "personality/",
16
15
  "docs/",
17
16
  "tools.config.json",
18
17
  "smithery.yaml",
19
- "mcp.json",
20
18
  "README.md",
21
19
  "CHANGELOG.md",
22
20
  "LICENSE",