Skip to content

Commit d373bd3

Browse files
author
jovanSAPFIONEER
committed
fix: resolve CodeQL alerts #99-#104, #107 + ClawHub suspicious flag
- security.ts: fix bad HTML filter regex — </script\s*> handles browser variants (#107) - agent-runtime.ts: remove unused startTime variable (#99) - strategy-agent.ts: rename unused loop variable target → _target (#100/#104) - test-phase9.ts: remove unused imports AgentPool/WorkloadPartitioner (#101), unused function assertThrows (#102), unused variable echoCmd (#103) - .clawhubignore: exclude scripts/postinstall.js from Python skill bundle - skill.json: clarify TypeScript engine exists alongside Python scripts Bump to v4.15.2. All 2,357 tests pass across 25 suites.
1 parent 6744323 commit d373bd3

15 files changed

Lines changed: 25 additions & 22 deletions

.clawhubignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ package.json
1616
package-lock.json
1717
node_modules/
1818
setup.ts
19+
scripts/postinstall.js
1920

2021
# ── Tests ──
2122
test.ts

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Project Overview
44

5-
Network-AI is a TypeScript/Node.js multi-agent orchestrator — shared state, guardrails, budgets, and cross-framework coordination (v4.15.1). 2,357 tests across 25 suites.
5+
Network-AI is a TypeScript/Node.js multi-agent orchestrator — shared state, guardrails, budgets, and cross-framework coordination (v4.15.2). 2,357 tests across 25 suites.
66

77
## Architecture
88

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,17 @@ All notable changes to Network-AI will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [4.15.2] - 2026-04-04
9+
10+
### Fixed
11+
- **CodeQL #107 — Bad HTML filtering regexp** (`security.ts`): Changed `<\/script>` to `<\/script\s*>` to match browser-accepted variants like `</script >` per HTML spec.
12+
- **CodeQL #99 — Unused variable `startTime`** (`lib/agent-runtime.ts`): Removed unused local.
13+
- **CodeQL #100/#104 — Unused loop variable `target`** (`lib/strategy-agent.ts`): Renamed to `_target`.
14+
- **CodeQL #101 — Unused imports `AgentPool`, `WorkloadPartitioner`** (`test-phase9.ts`): Removed.
15+
- **CodeQL #102 — Unused function `assertThrows`** (`test-phase9.ts`): Removed.
16+
- **CodeQL #103 — Unused variable `echoCmd`** (`test-phase9.ts`): Removed.
17+
- **ClawHub suspicious flag** — Added `scripts/postinstall.js` to `.clawhubignore` so Node-only dev tooling is excluded from the Python skill bundle; updated `skill.json` description to acknowledge the TypeScript engine.
18+
819
## [4.15.1] - 2026-04-04
920

1021
### Fixed

CLAUDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This file is read automatically by Claude Code when working in this repository.
44

55
## Project Overview
66

7-
Network-AI is a TypeScript/Node.js multi-agent orchestrator — shared state, guardrails, budgets, and cross-framework coordination. Version 4.15.1.
7+
Network-AI is a TypeScript/Node.js multi-agent orchestrator — shared state, guardrails, budgets, and cross-framework coordination. Version 4.15.2.
88

99
## Build & Test Commands
1010

CODEX.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This file is read automatically by OpenAI Codex CLI when working in this reposit
44

55
## Project Overview
66

7-
Network-AI is a TypeScript/Node.js multi-agent orchestrator — shared state, guardrails, budgets, and cross-framework coordination. Version 4.15.1.
7+
Network-AI is a TypeScript/Node.js multi-agent orchestrator — shared state, guardrails, budgets, and cross-framework coordination. Version 4.15.2.
88

99
## Build & Test Commands
1010

INTEGRATION_GUIDE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,4 +477,4 @@ Run these before declaring the integration production-ready:
477477

478478
---
479479

480-
*Network-AI v4.15.1 · MIT License · https://github.com/Jovancoding/Network-AI*
480+
*Network-AI v4.15.2 · MIT License · https://github.com/Jovancoding/Network-AI*

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
[![Website](https://img.shields.io/badge/website-network--ai.org-4b9df2?style=flat&logo=web&logoColor=white)](https://network-ai.org/)
66
[![CI](https://github.com/Jovancoding/Network-AI/actions/workflows/ci.yml/badge.svg)](https://github.com/Jovancoding/Network-AI/actions/workflows/ci.yml)
77
[![CodeQL](https://github.com/Jovancoding/Network-AI/actions/workflows/codeql.yml/badge.svg)](https://github.com/Jovancoding/Network-AI/actions/workflows/codeql.yml)
8-
[![Release](https://img.shields.io/badge/release-v4.15.1-blue.svg)](https://github.com/Jovancoding/Network-AI/releases)
8+
[![Release](https://img.shields.io/badge/release-v4.15.2-blue.svg)](https://github.com/Jovancoding/Network-AI/releases)
99
[![npm](https://img.shields.io/npm/dw/network-ai.svg?label=npm%20downloads)](https://www.npmjs.com/package/network-ai)
1010
[![Tests](https://img.shields.io/badge/tests-2357%20passing-brightgreen.svg)](#testing)
1111
[![Adapters](https://img.shields.io/badge/frameworks-17%20supported-blueviolet.svg)](#adapter-system)

lib/agent-runtime.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,6 @@ export class ShellExecutor {
369369
const maxBytes = opts.maxOutputBytes ?? this.policy.defaultMaxOutputBytes;
370370

371371
this.activeProcesses++;
372-
const startTime = Date.now();
373372

374373
try {
375374
return await this.spawnCommand(command, cwd, timeoutMs, maxBytes, opts.env);

lib/strategy-agent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,7 @@ export class StrategyAgent extends EventEmitter {
689689
}
690690

691691
// Scale down: mark excess agents for recycling
692-
for (const [poolId, target] of plan.scaleDown) {
692+
for (const [poolId, _target] of plan.scaleDown) {
693693
const pool = this.pools.get(poolId);
694694
if (!pool) continue;
695695
const before = pool.active;

openapi.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ info:
66
blackboard coordination, parallel agent spawning, and permission gating
77
via AuthGuardian. Requires the companion MCP server:
88
`npm install -g network-ai && npx network-ai-server --port 3001`
9-
version: 4.15.1
9+
version: 4.15.2
1010
license:
1111
name: MIT
1212
url: https://github.com/Jovancoding/Network-AI/blob/main/LICENSE

0 commit comments

Comments
 (0)