network-ai 4.13.1 → 4.15.0
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/INTEGRATION_GUIDE.md +2 -2
- package/QUICKSTART.md +9 -0
- package/README.md +13 -4
- package/SKILL.md +1 -1
- package/bin/console.ts +769 -0
- package/dist/bin/console.d.ts +18 -0
- package/dist/bin/console.d.ts.map +1 -0
- package/dist/bin/console.js +799 -0
- package/dist/bin/console.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +30 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/agent-runtime.d.ts +310 -0
- package/dist/lib/agent-runtime.d.ts.map +1 -0
- package/dist/lib/agent-runtime.js +630 -0
- package/dist/lib/agent-runtime.js.map +1 -0
- package/dist/lib/console-ui.d.ts +134 -0
- package/dist/lib/console-ui.d.ts.map +1 -0
- package/dist/lib/console-ui.js +276 -0
- package/dist/lib/console-ui.js.map +1 -0
- package/dist/lib/goal-decomposer.d.ts +216 -0
- package/dist/lib/goal-decomposer.d.ts.map +1 -0
- package/dist/lib/goal-decomposer.js +549 -0
- package/dist/lib/goal-decomposer.js.map +1 -0
- package/dist/lib/phase-pipeline.js +1 -1
- package/dist/lib/phase-pipeline.js.map +1 -1
- package/dist/lib/strategy-agent.d.ts +320 -0
- package/dist/lib/strategy-agent.d.ts.map +1 -0
- package/dist/lib/strategy-agent.js +601 -0
- package/dist/lib/strategy-agent.js.map +1 -0
- package/package.json +7 -3
- package/scripts/postinstall.js +21 -0
package/INTEGRATION_GUIDE.md
CHANGED
|
@@ -409,7 +409,7 @@ Run these before declaring the integration production-ready:
|
|
|
409
409
|
- [ ] `npx ts-node test-phase4.ts` — 147 behavioral tests pass
|
|
410
410
|
- [ ] `npx ts-node test-qa.ts` — 67 QA orchestrator tests pass
|
|
411
411
|
- [ ] `npx ts-node test-phase7.ts` — 94 Phase 7 tests pass (hooks, flow control, composer, semantic search)
|
|
412
|
-
- [ ] `npm run test:all` — all
|
|
412
|
+
- [ ] `npm run test:all` — all 2,357 tests pass across 25 suites
|
|
413
413
|
- [ ] `npm run demo -- --08` runs to completion in < 10 seconds
|
|
414
414
|
|
|
415
415
|
### Race Condition Safety
|
|
@@ -477,4 +477,4 @@ Run these before declaring the integration production-ready:
|
|
|
477
477
|
|
|
478
478
|
---
|
|
479
479
|
|
|
480
|
-
*Network-AI v4.0
|
|
480
|
+
*Network-AI v4.15.0 · MIT License · https://github.com/Jovancoding/Network-AI*
|
package/QUICKSTART.md
CHANGED
|
@@ -405,6 +405,15 @@ npx ts-node run.ts
|
|
|
405
405
|
# Run tests
|
|
406
406
|
npm test
|
|
407
407
|
npm run test:all
|
|
408
|
+
|
|
409
|
+
# Interactive console (TUI dashboard)
|
|
410
|
+
npx network-ai-console
|
|
411
|
+
|
|
412
|
+
# Pipe mode for AI-driven control (JSON stdin/stdout)
|
|
413
|
+
npx network-ai-console --pipe
|
|
414
|
+
|
|
415
|
+
# Console with custom settings
|
|
416
|
+
npx network-ai-console --base-path ./workspace --budget 50000 --allow "npm *,git status"
|
|
408
417
|
```
|
|
409
418
|
|
|
410
419
|
To persist `OPENAI_API_KEY` across sessions, add it to your PowerShell profile or set it via *System Properties → Environment Variables*.
|
package/README.md
CHANGED
|
@@ -5,14 +5,14 @@
|
|
|
5
5
|
[](https://network-ai.org/)
|
|
6
6
|
[](https://github.com/Jovancoding/Network-AI/actions/workflows/ci.yml)
|
|
7
7
|
[](https://github.com/Jovancoding/Network-AI/actions/workflows/codeql.yml)
|
|
8
|
-
[](https://github.com/Jovancoding/Network-AI/releases)
|
|
9
9
|
[](https://www.npmjs.com/package/network-ai)
|
|
10
|
-
[](#testing)
|
|
11
11
|
[](#adapter-system)
|
|
12
12
|
[](LICENSE)
|
|
13
13
|
[](https://socket.dev/npm/package/network-ai/overview)
|
|
14
14
|
[](https://nodejs.org)
|
|
15
|
-
[](https://typescriptlang.org)
|
|
16
16
|
[](https://clawhub.ai/skills/network-ai)
|
|
17
17
|
[](INTEGRATION_GUIDE.md)
|
|
18
18
|
[](https://github.com/sponsors/Jovancoding)
|
|
@@ -98,6 +98,11 @@ Runs priority preemption, AuthGuardian permission gating, FSM governance, and co
|
|
|
98
98
|
| ✅ Confidence filtering | Multi-agent result scoring, threshold validation, and consensus aggregation |
|
|
99
99
|
| ✅ Matcher-based hooks | Glob patterns on agent/action/tool for targeted hook filtering |
|
|
100
100
|
| ✅ Fan-out / fan-in | Parallel agent spawning with pluggable aggregation strategies |
|
|
101
|
+
| ✅ Agent runtime sandbox | Sandboxed shell execution with policy enforcement and approval gates |
|
|
102
|
+
| ✅ Interactive console | TUI dashboard for live monitoring, agent control, blackboard/budget/FSM management |
|
|
103
|
+
| ✅ Pipe mode | JSON stdin/stdout protocol for programmatic AI-to-orchestrator control |
|
|
104
|
+
| ✅ Strategy agent | Meta-orchestrator with elastic agent pools, workload partitioning, and adaptive scaling |
|
|
105
|
+
| ✅ Goal decomposer | LLM-powered goal → task DAG → parallel execution with `runTeam()` one-liner |
|
|
101
106
|
| ✅ TypeScript native | ES2022 strict mode, zero native dependencies |
|
|
102
107
|
|
|
103
108
|
---
|
|
@@ -391,9 +396,11 @@ npm run test:a2a # A2A protocol adapter
|
|
|
391
396
|
npm run test:codex # Codex adapter
|
|
392
397
|
npm run test:priority # Priority & preemption
|
|
393
398
|
npm run test:cli # CLI layer
|
|
399
|
+
npm run test:phase9 # Agent runtime, console, strategy agent
|
|
400
|
+
npm run test:phase10 # Goal decomposer, task DAG, runTeam
|
|
394
401
|
```
|
|
395
402
|
|
|
396
|
-
**
|
|
403
|
+
**2,357 passing assertions across 25 test suites** (`npm run test:all`):
|
|
397
404
|
|
|
398
405
|
| Suite | Assertions | Covers |
|
|
399
406
|
|---|---|---|
|
|
@@ -419,6 +426,8 @@ npm run test:cli # CLI layer
|
|
|
419
426
|
| `test-qa.ts` | 67 | QA orchestrator: scenarios, feedback loop, regression, contradictions |
|
|
420
427
|
| `test-phase7.ts` | 94 | Deferred init, hook middleware, flow control, skill composer, semantic search |
|
|
421
428
|
| `test-phase8.ts` | 146 | Phase pipeline, confidence filter, matcher-based hooks, fan-out/fan-in |
|
|
429
|
+
| `test-phase9.ts` | 280 | Agent runtime, sandbox policy, shell executor, file accessor, approval gate, console UI, orchestrator wiring, pipe mode, strategy agent |
|
|
430
|
+
| `test-phase10.ts` | 153 | Goal decomposer, task DAG validation, topological layers, JSON parsing, team runner, concurrency, timeouts, events, runTeam one-liner, dependency injection, LLM planner |
|
|
422
431
|
|
|
423
432
|
---
|
|
424
433
|
|
package/SKILL.md
CHANGED
|
@@ -498,7 +498,7 @@ Use for redundancy - take first successful result.
|
|
|
498
498
|
### Strategy 4: Chain
|
|
499
499
|
Sequential processing - output of one feeds into next.
|
|
500
500
|
|
|
501
|
-
> **TypeScript engine (v4.
|
|
501
|
+
> **TypeScript engine (v4.15.0):** These strategies map directly to the `FanOutFanIn` module (`lib/fan-out.ts`) which provides `merge`, `vote`, `firstSuccess`, and `consensus` fan-in strategies with concurrency control. For multi-phase workflows with approval gates, see `PhasePipeline` (`lib/phase-pipeline.ts`). For result scoring and threshold filtering, see `ConfidenceFilter` (`lib/confidence-filter.ts`). Matcher-based hooks (`lib/adapter-hooks.ts`) can target specific agents or tools via glob patterns. For sandboxed agent execution, see `AgentRuntime` (`lib/agent-runtime.ts`). For large-scale agent coordination, see `StrategyAgent` (`lib/strategy-agent.ts`).
|
|
502
502
|
|
|
503
503
|
### Example Parallel Workflow
|
|
504
504
|
|