network-ai 3.3.0 → 3.3.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.
@@ -251,22 +251,22 @@ class LockedBlackboard {
251
251
  this.loadPendingChanges();
252
252
  }
253
253
  writeInitialBlackboard() {
254
- const content = `# Swarm Blackboard
255
- Last Updated: ${new Date().toISOString()}
256
- Content Hash: ${this.computeHash('')}
257
-
258
- ## Active Tasks
259
- | TaskID | Agent | Status | Started | Description |
260
- |--------|-------|--------|---------|-------------|
261
-
262
- ## Knowledge Cache
263
- <!-- Cached results from agent operations -->
264
-
265
- ## Coordination Signals
266
- <!-- Agent availability status -->
267
-
268
- ## Execution History
269
- <!-- Chronological log of completed tasks -->
254
+ const content = `# Swarm Blackboard
255
+ Last Updated: ${new Date().toISOString()}
256
+ Content Hash: ${this.computeHash('')}
257
+
258
+ ## Active Tasks
259
+ | TaskID | Agent | Status | Started | Description |
260
+ |--------|-------|--------|---------|-------------|
261
+
262
+ ## Knowledge Cache
263
+ <!-- Cached results from agent operations -->
264
+
265
+ ## Coordination Signals
266
+ <!-- Agent availability status -->
267
+
268
+ ## Execution History
269
+ <!-- Chronological log of completed tasks -->
270
270
  `;
271
271
  (0, fs_1.writeFileSync)(this.blackboardPath, content, 'utf-8');
272
272
  }
@@ -344,22 +344,22 @@ Content Hash: ${this.computeHash('')}
344
344
  .filter(([, entry]) => !this.isExpired(entry))
345
345
  .map(([key, entry]) => `### ${key}\n\`\`\`json\n${JSON.stringify(entry, null, 2)}\n\`\`\``)
346
346
  .join('\n\n');
347
- const content = `# Swarm Blackboard
348
- Last Updated: ${new Date().toISOString()}
349
- Content Hash: ${this.computeHash(cacheContent)}
350
-
351
- ## Active Tasks
352
- | TaskID | Agent | Status | Started | Description |
353
- |--------|-------|--------|---------|-------------|
354
-
355
- ## Knowledge Cache
356
- ${cacheContent}
357
-
358
- ## Coordination Signals
359
- <!-- Agent availability status -->
360
-
361
- ## Execution History
362
- <!-- Chronological log of completed tasks -->
347
+ const content = `# Swarm Blackboard
348
+ Last Updated: ${new Date().toISOString()}
349
+ Content Hash: ${this.computeHash(cacheContent)}
350
+
351
+ ## Active Tasks
352
+ | TaskID | Agent | Status | Started | Description |
353
+ |--------|-------|--------|---------|-------------|
354
+
355
+ ## Knowledge Cache
356
+ ${cacheContent}
357
+
358
+ ## Coordination Signals
359
+ <!-- Agent availability status -->
360
+
361
+ ## Execution History
362
+ <!-- Chronological log of completed tasks -->
363
363
  `;
364
364
  (0, fs_1.writeFileSync)(this.blackboardPath, content, 'utf-8');
365
365
  }
@@ -730,22 +730,22 @@ ${cacheContent}
730
730
  .filter(([, entry]) => !this.isExpired(entry))
731
731
  .map(([key, entry]) => `### ${key}\n\`\`\`json\n${JSON.stringify(entry, null, 2)}\n\`\`\``)
732
732
  .join('\n\n');
733
- const content = `# Swarm Blackboard
734
- Last Updated: ${new Date().toISOString()}
735
- Content Hash: ${this.computeHash(cacheContent)}
736
-
737
- ## Active Tasks
738
- | TaskID | Agent | Status | Started | Description |
739
- |--------|-------|--------|---------|-------------|
740
-
741
- ## Knowledge Cache
742
- ${cacheContent}
743
-
744
- ## Coordination Signals
745
- <!-- Agent availability status -->
746
-
747
- ## Execution History
748
- <!-- Chronological log of completed tasks -->
733
+ const content = `# Swarm Blackboard
734
+ Last Updated: ${new Date().toISOString()}
735
+ Content Hash: ${this.computeHash(cacheContent)}
736
+
737
+ ## Active Tasks
738
+ | TaskID | Agent | Status | Started | Description |
739
+ |--------|-------|--------|---------|-------------|
740
+
741
+ ## Knowledge Cache
742
+ ${cacheContent}
743
+
744
+ ## Coordination Signals
745
+ <!-- Agent availability status -->
746
+
747
+ ## Execution History
748
+ <!-- Chronological log of completed tasks -->
749
749
  `;
750
750
  (0, fs_1.writeFileSync)(this.blackboardPath, content, 'utf-8');
751
751
  }
@@ -73,21 +73,21 @@ class SharedBlackboard {
73
73
  initialize() {
74
74
  ensureDir(this.path);
75
75
  // Use 'wx' flag: creates exclusively — atomic, no TOCTOU
76
- const initialContent = `# Swarm Blackboard
77
- Last Updated: ${new Date().toISOString()}
78
-
79
- ## Active Tasks
80
- | TaskID | Agent | Status | Started | Description |
81
- |--------|-------|--------|---------|-------------|
82
-
83
- ## Knowledge Cache
84
- <!-- Cached results from agent operations -->
85
-
86
- ## Coordination Signals
87
- <!-- Agent availability status -->
88
-
89
- ## Execution History
90
- <!-- Chronological log of completed tasks -->
76
+ const initialContent = `# Swarm Blackboard
77
+ Last Updated: ${new Date().toISOString()}
78
+
79
+ ## Active Tasks
80
+ | TaskID | Agent | Status | Started | Description |
81
+ |--------|-------|--------|---------|-------------|
82
+
83
+ ## Knowledge Cache
84
+ <!-- Cached results from agent operations -->
85
+
86
+ ## Coordination Signals
87
+ <!-- Agent availability status -->
88
+
89
+ ## Execution History
90
+ <!-- Chronological log of completed tasks -->
91
91
  `;
92
92
  try {
93
93
  (0, fs_1.writeFileSync)(this.path, initialContent, { flag: 'wx', encoding: 'utf-8' });
@@ -460,15 +460,15 @@ class HandoffBuilder {
460
460
  * Format handoff message for sessions_send
461
461
  */
462
462
  static formatForSessionSend(handoff) {
463
- return `[HANDOFF]
464
- Instruction: ${handoff.payload.instruction}
465
- Context: ${handoff.payload.context ? JSON.stringify(handoff.payload.context) : 'N/A'}
466
- Constraints: ${handoff.payload.constraints?.join(', ') || 'None'}
467
- Expected Output: ${handoff.payload.expectedOutput || 'Any appropriate response'}
468
- [/HANDOFF]
469
-
470
- Handoff ID: ${handoff.handoffId}
471
- From: ${handoff.sourceAgent}
463
+ return `[HANDOFF]
464
+ Instruction: ${handoff.payload.instruction}
465
+ Context: ${handoff.payload.context ? JSON.stringify(handoff.payload.context) : 'N/A'}
466
+ Constraints: ${handoff.payload.constraints?.join(', ') || 'None'}
467
+ Expected Output: ${handoff.payload.expectedOutput || 'Any appropriate response'}
468
+ [/HANDOFF]
469
+
470
+ Handoff ID: ${handoff.handoffId}
471
+ From: ${handoff.sourceAgent}
472
472
  Priority: ${handoff.metadata.priority}`;
473
473
  }
474
474
  /**
package/package.json CHANGED
@@ -1,85 +1,85 @@
1
- {
2
- "name": "network-ai",
3
- "version": "3.3.0",
4
- "description": "AI agent orchestration framework for TypeScript/Node.js - plug-and-play multi-agent coordination with 12 frameworks (LangChain, AutoGen, CrewAI, OpenAI Assistants, LlamaIndex, Semantic Kernel, Haystack, DSPy, Agno, MCP, OpenClaw). Built-in security, swarm intelligence, and agentic workflow patterns.",
5
- "main": "dist/index.js",
6
- "types": "dist/index.d.ts",
7
- "scripts": {
8
- "build": "tsc -p tsconfig.build.json",
9
- "build:all": "tsc",
10
- "prebuild": "node -e \"const fs=require('fs');if(fs.existsSync('dist'))fs.rmSync('dist',{recursive:true})\"",
11
- "prepublishOnly": "npm run build && npm run test:all",
12
- "test": "npx ts-node test-standalone.ts",
13
- "test:security": "npx ts-node test-security.ts",
14
- "test:adapters": "npx ts-node test-adapters.ts",
15
- "test:priority": "npx ts-node test-priority.ts",
16
- "test:all": "npx ts-node test-standalone.ts && npx ts-node test-security.ts && npx ts-node test-adapters.ts && npx ts-node test-priority.ts",
17
- "setup": "npx ts-node setup.ts",
18
- "setup:check": "npx ts-node setup.ts --check",
19
- "setup:example": "npx ts-node setup.ts --example",
20
- "blackboard": "python scripts/blackboard.py",
21
- "check-permission": "python scripts/check_permission.py",
22
- "validate-token": "python scripts/validate_token.py",
23
- "revoke-token": "python scripts/revoke_token.py"
24
- },
25
- "keywords": [
26
- "ai-agents",
27
- "agentic-ai",
28
- "multi-agent",
29
- "multi-agent-systems",
30
- "agent-framework",
31
- "llm",
32
- "llm-agents",
33
- "orchestration",
34
- "swarm",
35
- "swarm-intelligence",
36
- "autonomous-agents",
37
- "agentic-workflow",
38
- "agentic-framework",
39
- "generative-ai",
40
- "mcp",
41
- "model-context-protocol",
42
- "langchain",
43
- "autogen",
44
- "crewai",
45
- "openclaw",
46
- "llamaindex",
47
- "semantic-kernel",
48
- "openai-assistants",
49
- "haystack",
50
- "dspy",
51
- "agno",
52
- "typescript",
53
- "nodejs",
54
- "plug-and-play",
55
- "adapter",
56
- "a2a",
57
- "ai-orchestration",
58
- "context-engineering",
59
- "agent-coordination"
60
- ],
61
- "author": "OpenClaw Community",
62
- "license": "MIT",
63
- "repository": {
64
- "type": "git",
65
- "url": "https://github.com/jovanSAPFIONEER/Network-AI.git"
66
- },
67
- "engines": {
68
- "node": ">=18.0.0",
69
- "python": ">=3.9"
70
- },
71
- "devDependencies": {
72
- "@types/node": "^25.2.3",
73
- "ts-node": "^10.9.2",
74
- "typescript": "^5.9.3"
75
- },
76
- "files": [
77
- "dist/",
78
- "types/",
79
- "scripts/",
80
- "README.md",
81
- "QUICKSTART.md",
82
- "SKILL.md",
83
- "LICENSE"
84
- ]
85
- }
1
+ {
2
+ "name": "network-ai",
3
+ "version": "3.3.2",
4
+ "description": "AI agent orchestration framework for TypeScript/Node.js - plug-and-play multi-agent coordination with 12 frameworks (LangChain, AutoGen, CrewAI, OpenAI Assistants, LlamaIndex, Semantic Kernel, Haystack, DSPy, Agno, MCP, OpenClaw). Built-in security, swarm intelligence, and agentic workflow patterns.",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc -p tsconfig.build.json",
9
+ "build:all": "tsc",
10
+ "prebuild": "node -e \"const fs=require('fs');if(fs.existsSync('dist'))fs.rmSync('dist',{recursive:true})\"",
11
+ "prepublishOnly": "npm run build && npm run test:all",
12
+ "test": "npx ts-node test-standalone.ts",
13
+ "test:security": "npx ts-node test-security.ts",
14
+ "test:adapters": "npx ts-node test-adapters.ts",
15
+ "test:priority": "npx ts-node test-priority.ts",
16
+ "test:all": "npx ts-node test-standalone.ts && npx ts-node test-security.ts && npx ts-node test-adapters.ts && npx ts-node test-priority.ts",
17
+ "setup": "npx ts-node setup.ts",
18
+ "setup:check": "npx ts-node setup.ts --check",
19
+ "setup:example": "npx ts-node setup.ts --example",
20
+ "blackboard": "python scripts/blackboard.py",
21
+ "check-permission": "python scripts/check_permission.py",
22
+ "validate-token": "python scripts/validate_token.py",
23
+ "revoke-token": "python scripts/revoke_token.py"
24
+ },
25
+ "keywords": [
26
+ "ai-agents",
27
+ "agentic-ai",
28
+ "multi-agent",
29
+ "multi-agent-systems",
30
+ "agent-framework",
31
+ "llm",
32
+ "llm-agents",
33
+ "orchestration",
34
+ "swarm",
35
+ "swarm-intelligence",
36
+ "autonomous-agents",
37
+ "agentic-workflow",
38
+ "agentic-framework",
39
+ "generative-ai",
40
+ "mcp",
41
+ "model-context-protocol",
42
+ "langchain",
43
+ "autogen",
44
+ "crewai",
45
+ "openclaw",
46
+ "llamaindex",
47
+ "semantic-kernel",
48
+ "openai-assistants",
49
+ "haystack",
50
+ "dspy",
51
+ "agno",
52
+ "typescript",
53
+ "nodejs",
54
+ "plug-and-play",
55
+ "adapter",
56
+ "a2a",
57
+ "ai-orchestration",
58
+ "context-engineering",
59
+ "agent-coordination"
60
+ ],
61
+ "author": "OpenClaw Community",
62
+ "license": "MIT",
63
+ "repository": {
64
+ "type": "git",
65
+ "url": "https://github.com/jovanSAPFIONEER/Network-AI.git"
66
+ },
67
+ "engines": {
68
+ "node": ">=18.0.0",
69
+ "python": ">=3.9"
70
+ },
71
+ "devDependencies": {
72
+ "@types/node": "^25.2.3",
73
+ "ts-node": "^10.9.2",
74
+ "typescript": "^5.9.3"
75
+ },
76
+ "files": [
77
+ "dist/",
78
+ "types/",
79
+ "scripts/",
80
+ "README.md",
81
+ "QUICKSTART.md",
82
+ "SKILL.md",
83
+ "LICENSE"
84
+ ]
85
+ }