network-ai 4.4.1 → 4.4.3

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/SKILL.md CHANGED
@@ -33,6 +33,24 @@ metadata:
33
33
 
34
34
  > **Scope of this skill bundle:** All instructions below run local Python scripts (`scripts/*.py`). No network calls are made by this skill. Tokens are UUID-based (`grant_{uuid4().hex}`) stored in `data/active_grants.json`. Audit logging is plain JSONL (`data/audit_log.jsonl`) — no HMAC signing in the Python layer. HMAC-signed tokens, AES-256 encryption, and the standalone MCP server are all features of the **companion Node.js package** (`npm install -g network-ai`) — they are **not** implemented in these Python scripts and do **not** run automatically.
35
35
 
36
+ ## Setup
37
+
38
+ **No pip install required.** All 5 scripts use Python standard library only — zero third-party packages.
39
+
40
+ ```bash
41
+ # Prerequisite: python3 (any version ≥ 3.8)
42
+ python3 --version
43
+
44
+ # That's it. Run any script directly:
45
+ python3 scripts/blackboard.py list
46
+ python3 scripts/swarm_guard.py budget-init --task-id "task_001" --budget 10000
47
+
48
+ # Optional: for cross-platform file locking on Windows production hosts
49
+ pip install filelock # only needed if you see locking issues on Windows
50
+ ```
51
+
52
+ The `data/` directory is created automatically on first run. No configuration files, environment variables, or credentials are required.
53
+
36
54
  Multi-agent coordination system for complex workflows requiring task delegation, parallel execution, and permission-controlled access to sensitive APIs.
37
55
 
38
56
  ## 🎯 Orchestrator System Instructions
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "network-ai",
3
- "version": "4.4.1",
3
+ "version": "4.4.3",
4
4
  "description": "AI agent orchestration framework for TypeScript/Node.js - 14 adapters (LangChain, AutoGen, CrewAI, OpenAI Assistants, LlamaIndex, Semantic Kernel, Haystack, DSPy, Agno, MCP, OpenClaw, A2A, Codex + streaming variants). Built-in CLI, security, swarm intelligence, real-time streaming, and agentic workflow patterns.",
5
5
  "homepage": "https://github.com/jovanSAPFIONEER/Network-AI#readme",
6
6
  "main": "dist/index.js",
@@ -1,4 +1,11 @@
1
1
  #!/usr/bin/env python3
2
+ # SECURITY: This script makes NO network calls and spawns NO subprocesses.
3
+ # All I/O is local file operations only:
4
+ # READS: swarm-blackboard.md, data/pending_changes/<id>.json
5
+ # WRITES: swarm-blackboard.md, data/pending_changes/<id>.json
6
+ # Imports used: argparse, json, os, re, sys, time, hashlib, datetime, pathlib,
7
+ # typing, contextlib, fcntl (Unix file-lock only, no network use)
8
+ # No imports of: requests, socket, subprocess, urllib, http, ssl, ftplib, smtplib
2
9
  """
3
10
  Shared Blackboard - Agent Coordination State Manager (Atomic Commit Edition)
4
11
 
@@ -1,4 +1,10 @@
1
1
  #!/usr/bin/env python3
2
+ # SECURITY: This script makes NO network calls and spawns NO subprocesses.
3
+ # All I/O is local file operations only:
4
+ # READS: data/active_grants.json, data/audit_log.jsonl
5
+ # WRITES: data/active_grants.json, data/audit_log.jsonl
6
+ # Imports used: argparse, json, re, sys, uuid, datetime, pathlib, typing
7
+ # No imports of: requests, socket, subprocess, urllib, http, ssl, ftplib, smtplib
2
8
  """
3
9
  AuthGuardian Permission Checker
4
10
 
@@ -1,4 +1,10 @@
1
1
  #!/usr/bin/env python3
2
+ # SECURITY: This script makes NO network calls and spawns NO subprocesses.
3
+ # All I/O is local file operations only:
4
+ # READS: data/active_grants.json, data/audit_log.jsonl
5
+ # WRITES: data/active_grants.json, data/audit_log.jsonl
6
+ # Imports used: argparse, json, sys, datetime, pathlib, typing
7
+ # No imports of: requests, socket, subprocess, urllib, http, ssl, ftplib, smtplib
2
8
  """
3
9
  Revoke Grant Token & TTL Enforcement
4
10
 
@@ -1,4 +1,10 @@
1
1
  #!/usr/bin/env python3
2
+ # SECURITY: This script makes NO network calls and spawns NO subprocesses.
3
+ # All I/O is local file operations only:
4
+ # READS: data/swarm_budgets.json, data/heartbeats.json, data/audit_log.jsonl
5
+ # WRITES: data/swarm_budgets.json, data/heartbeats.json, data/audit_log.jsonl
6
+ # Imports used: argparse, json, sys, datetime, pathlib, typing
7
+ # No imports of: requests, socket, subprocess, urllib, http, ssl, ftplib, smtplib
2
8
  """
3
9
  Swarm Guard - Prevents Handoff Tax, Silent Failures, and Budget Overruns
4
10
 
@@ -1,4 +1,10 @@
1
1
  #!/usr/bin/env python3
2
+ # SECURITY: This script makes NO network calls and spawns NO subprocesses.
3
+ # All I/O is local file operations only:
4
+ # READS: data/active_grants.json
5
+ # WRITES: none
6
+ # Imports used: argparse, json, sys, datetime, pathlib, typing
7
+ # No imports of: requests, socket, subprocess, urllib, http, ssl, ftplib, smtplib
2
8
  """
3
9
  Validate Grant Token
4
10