claude-flow-novice 1.6.1 → 1.6.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.
- package/.claude/agents/cfn-loop/product-owner.md +54 -4
- package/.claude/commands/cfn-claude-sync.md +303 -0
- package/.claude/commands/cfn-loop-epic.md +290 -0
- package/.claude/commands/cfn-loop-single.md +168 -0
- package/.claude/commands/cfn-loop-sprints.md +384 -0
- package/.claude/commands/cfn-loop.md +180 -0
- package/.claude/commands/metrics-summary.md +58 -0
- package/.claude/commands/parse-epic.md +357 -0
- package/.claude/settings.json +4 -4
- package/.claude/settings.local.json +9 -2
- package/.claude-flow-novice/.claude/agents/cfn-loop/product-owner.md +792 -0
- package/.claude-flow-novice/dist/mcp/server.js +21 -2
- package/.claude-flow-novice/dist/src/api/claude-client.js +138 -3
- package/.claude-flow-novice/dist/src/api/claude-client.js.map +1 -1
- package/.claude-flow-novice/dist/src/cfn-loop/phase-orchestrator-example.js +1 -1
- package/.claude-flow-novice/dist/src/cfn-loop/scope-control.js +247 -0
- package/.claude-flow-novice/dist/src/cfn-loop/scope-control.js.map +1 -0
- package/.claude-flow-novice/dist/src/cli/commands/swarm.js +32 -15
- package/.claude-flow-novice/dist/src/cli/commands/swarm.js.map +1 -1
- package/.claude-flow-novice/dist/src/cli/commands/transparency.js +455 -0
- package/.claude-flow-novice/dist/src/cli/commands/transparency.js.map +1 -0
- package/.claude-flow-novice/dist/src/cli/simple-commands/init/templates/CLAUDE.md +129 -13
- package/.claude-flow-novice/dist/src/components/visualizations/index.js +9 -0
- package/.claude-flow-novice/dist/src/components/visualizations/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/adapters/v1-coordinator-adapter.js +462 -0
- package/.claude-flow-novice/dist/src/coordination/adapters/v1-coordinator-adapter.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/config-translator.js +248 -0
- package/.claude-flow-novice/dist/src/coordination/config-translator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/coordination-toggle.js +287 -0
- package/.claude-flow-novice/dist/src/coordination/coordination-toggle.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/distributed-consensus.js +68 -9
- package/.claude-flow-novice/dist/src/coordination/distributed-consensus.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/feature-flags.js +166 -0
- package/.claude-flow-novice/dist/src/coordination/feature-flags.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/queen-agent.js +18 -4
- package/.claude-flow-novice/dist/src/coordination/queen-agent.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/role-assignment.js +6 -110
- package/.claude-flow-novice/dist/src/coordination/role-assignment.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/cache/artifact-cache-optimizer.js +632 -0
- package/.claude-flow-novice/dist/src/coordination/v2/cache/artifact-cache-optimizer.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/cache/index.js +11 -0
- package/.claude-flow-novice/dist/src/coordination/v2/cache/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/checkpoints/checkpoint-compressor.js +318 -0
- package/.claude-flow-novice/dist/src/coordination/v2/checkpoints/checkpoint-compressor.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/cascading-shutdown.example.js +364 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/cascading-shutdown.example.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/cascading-shutdown.js +492 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/cascading-shutdown.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/hierarchical-coordinator.js +786 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/hierarchical-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/index.js +16 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/parent-child-manager.js +342 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/parent-child-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/swarm-coordinator-v2.js +601 -0
- package/.claude-flow-novice/dist/src/coordination/v2/coordinators/swarm-coordinator-v2.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/core/help-request-metrics.js +211 -0
- package/.claude-flow-novice/dist/src/coordination/v2/core/help-request-metrics.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/core/index.js +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/core/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/core/message-broker.js +365 -6
- package/.claude-flow-novice/dist/src/coordination/v2/core/message-broker.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/core/resource-manager-safe.js +478 -0
- package/.claude-flow-novice/dist/src/coordination/v2/core/resource-manager-safe.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/core/state-machine-config.js +5 -2
- package/.claude-flow-novice/dist/src/coordination/v2/core/state-machine-config.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/core/state-machine.js +189 -0
- package/.claude-flow-novice/dist/src/coordination/v2/core/state-machine.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/deadlock/deadlock-detector.js +424 -0
- package/.claude-flow-novice/dist/src/coordination/v2/deadlock/deadlock-detector.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/deadlock/index.js +9 -0
- package/.claude-flow-novice/dist/src/coordination/v2/deadlock/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/deadlock/resource-manager.js +669 -0
- package/.claude-flow-novice/dist/src/coordination/v2/deadlock/resource-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/artifact-storage.js +451 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/artifact-storage.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/cycle-detector.js +271 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/cycle-detector.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-graph.js +335 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-graph.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-manager.js +439 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-manager.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-request.js +92 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/dependency-request.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/index.js +21 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/topological-sort.js +223 -0
- package/.claude-flow-novice/dist/src/coordination/v2/dependency/topological-sort.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-coordinator.js +436 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-matcher.js +278 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-matcher.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-request-handler.js +317 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-request-handler.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-request.js +273 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/help-request.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/index.js +15 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/waiting-agent-pool.js +512 -0
- package/.claude-flow-novice/dist/src/coordination/v2/help-system/waiting-agent-pool.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/index.js +6 -0
- package/.claude-flow-novice/dist/src/coordination/v2/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/integration/help-deadlock-integration.js +557 -0
- package/.claude-flow-novice/dist/src/coordination/v2/integration/help-deadlock-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/integration/index.js +14 -0
- package/.claude-flow-novice/dist/src/coordination/v2/integration/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/integration/message-bus-completion-integration.example.js +212 -0
- package/.claude-flow-novice/dist/src/coordination/v2/integration/message-bus-completion-integration.example.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/integration/message-bus-completion-integration.js +552 -0
- package/.claude-flow-novice/dist/src/coordination/v2/integration/message-bus-completion-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/memory/dependency-storage.js +367 -0
- package/.claude-flow-novice/dist/src/coordination/v2/memory/dependency-storage.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/memory/index.js +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/memory/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channel.js +371 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channel.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/dependency-channel.js +355 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/dependency-channel.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/help-channel.js +424 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/help-channel.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/index.js +16 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/state-channel.js +295 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/state-channel.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/task-channel.js +411 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/channels/task-channel.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/index.js +14 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-bus.js +387 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-bus.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-persistence.js +589 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-persistence.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-router.js +444 -0
- package/.claude-flow-novice/dist/src/coordination/v2/messaging/message-router.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/checkpoint-manager.js +29 -8
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/checkpoint-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/help-coordinator.js +470 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/help-coordinator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/hierarchical-background-integration.js +450 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/hierarchical-background-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/index.js +5 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/index.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/multi-level-control.js +545 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/multi-level-control.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/query-controller.js +44 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/query-controller.js.map +1 -1
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/query-message-integration.js +415 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/query-message-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/session-pool-optimizer.js +615 -0
- package/.claude-flow-novice/dist/src/coordination/v2/sdk/session-pool-optimizer.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/security/payload-validator.js +259 -0
- package/.claude-flow-novice/dist/src/coordination/v2/security/payload-validator.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/transparency/index.js +17 -0
- package/.claude-flow-novice/dist/src/coordination/v2/transparency/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/transparency/transparency-integration.js +357 -0
- package/.claude-flow-novice/dist/src/coordination/v2/transparency/transparency-integration.js.map +1 -0
- package/.claude-flow-novice/dist/src/coordination/v2/transparency/transparency-system.js +679 -0
- package/.claude-flow-novice/dist/src/coordination/v2/transparency/transparency-system.js.map +1 -0
- package/.claude-flow-novice/dist/src/core/agent-manager.js +30 -0
- package/.claude-flow-novice/dist/src/core/agent-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/mcp/server.js +21 -2
- package/.claude-flow-novice/dist/src/mcp/server.js.map +1 -1
- package/.claude-flow-novice/dist/src/observability/metrics-counter.js +268 -0
- package/.claude-flow-novice/dist/src/observability/metrics-counter.js.map +1 -0
- package/.claude-flow-novice/dist/src/observability/metrics-storage.js +265 -0
- package/.claude-flow-novice/dist/src/observability/metrics-storage.js.map +1 -0
- package/.claude-flow-novice/dist/src/observability/telemetry.js +26 -0
- package/.claude-flow-novice/dist/src/observability/telemetry.js.map +1 -1
- package/.claude-flow-novice/dist/src/providers/tiered-router.js +64 -10
- package/.claude-flow-novice/dist/src/providers/tiered-router.js.map +1 -1
- package/.claude-flow-novice/dist/src/providers/zai-provider.js +196 -97
- package/.claude-flow-novice/dist/src/providers/zai-provider.js.map +1 -1
- package/.claude-flow-novice/dist/src/slash-commands/cfn-claude-sync.js +533 -0
- package/.claude-flow-novice/dist/src/slash-commands/index.js +5 -0
- package/.claude-flow-novice/dist/src/slash-commands/metrics-summary-class.js +74 -0
- package/.claude-flow-novice/dist/src/slash-commands/metrics-summary.js +335 -0
- package/.claude-flow-novice/dist/src/slash-commands/register-all-commands.js +12 -0
- package/.claude-flow-novice/dist/src/verification/checkpoint-compression-demo.js +96 -0
- package/.claude-flow-novice/dist/src/verification/checkpoint-compression-demo.js.map +1 -0
- package/.claude-flow-novice/dist/src/verification/checkpoint-compression.js +406 -0
- package/.claude-flow-novice/dist/src/verification/checkpoint-compression.js.map +1 -0
- package/.claude-flow-novice/dist/src/verification/checkpoint-manager.js +35 -5
- package/.claude-flow-novice/dist/src/verification/checkpoint-manager.js.map +1 -1
- package/.claude-flow-novice/dist/src/web/api/config/api-config.js +186 -0
- package/.claude-flow-novice/dist/src/web/api/config/api-config.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/auth.js +205 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/auth.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/cache.js +262 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/cache.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/error-handler.js +250 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/error-handler.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/request-logger.js +217 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/request-logger.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/validation.js +325 -0
- package/.claude-flow-novice/dist/src/web/api/middleware/validation.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/routes/events.js +465 -0
- package/.claude-flow-novice/dist/src/web/api/routes/events.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/routes/hierarchy.js +302 -0
- package/.claude-flow-novice/dist/src/web/api/routes/hierarchy.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/routes/index.js +14 -0
- package/.claude-flow-novice/dist/src/web/api/routes/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/routes/metrics.js +561 -0
- package/.claude-flow-novice/dist/src/web/api/routes/metrics.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/routes/status.js +450 -0
- package/.claude-flow-novice/dist/src/web/api/routes/status.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/api/server.js +451 -0
- package/.claude-flow-novice/dist/src/web/api/server.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/dashboard/hooks/useWebSocket.js +385 -0
- package/.claude-flow-novice/dist/src/web/dashboard/hooks/useWebSocket.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/dashboard/index.js +87 -0
- package/.claude-flow-novice/dist/src/web/dashboard/index.js.map +1 -0
- package/.claude-flow-novice/dist/src/web/dashboard/types.js +6 -0
- package/.claude-flow-novice/dist/src/web/dashboard/types.js.map +1 -0
- package/.claude-flow-novice/metrics.db +0 -0
- package/.claude-flow-novice/metrics.db-shm +0 -0
- package/.claude-flow-novice/metrics.db-wal +0 -0
- package/CLAUDE.md +29 -0
- package/README.md +27 -0
- package/config/hooks/post-edit-pipeline.js +36 -2
- package/examples/metrics-counter-demo.ts +106 -0
- package/examples/persistent-metrics-demo.ts +83 -0
- package/examples/phase-5-multi-level-control.ts +282 -0
- package/examples/session-pool-optimizer-example.ts +311 -0
- package/package.json +15 -3
- package/scripts/check-routing-stats.cjs +122 -0
- package/scripts/pre-publish-validation.cjs +212 -0
- package/scripts/test-provider-routing.cjs +228 -0
- package/scripts/test-routing-telemetry.cjs +147 -0
- package/scripts/test-zai-10k.cjs +81 -0
- package/scripts/test-zai-api.cjs +191 -0
- package/scripts/test-zai-diagnostic.cjs +151 -0
- package/scripts/test-zai-final.cjs +128 -0
- package/scripts/test-zai-with-env.cjs +85 -0
- package/scripts/validate-coordination-cli.js +69 -0
- package/scripts/validate-coordination-toggle-integration.cjs +501 -0
- package/src/cli/simple-commands/init/templates/CLAUDE.md +29 -0
- package/src/observability/metrics-counter.ts +347 -0
- package/src/observability/metrics-storage.ts +356 -0
- package/src/observability/telemetry.ts +658 -0
- package/src/slash-commands/cfn-claude-sync.js +533 -0
- package/src/slash-commands/index.js +5 -0
- package/src/slash-commands/metrics-summary-class.js +74 -0
- package/src/slash-commands/metrics-summary.js +335 -0
- package/src/slash-commands/register-all-commands.js +12 -0
|
@@ -0,0 +1,325 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Validation Middleware
|
|
3
|
+
*
|
|
4
|
+
* Request validation middleware using JSON Schema
|
|
5
|
+
*
|
|
6
|
+
* @module web/api/middleware/validation
|
|
7
|
+
*/ import Ajv from 'ajv';
|
|
8
|
+
import addFormats from 'ajv-formats';
|
|
9
|
+
import { ValidationError } from './error-handler.js';
|
|
10
|
+
/**
|
|
11
|
+
* JSON Schema validator
|
|
12
|
+
*/ const ajv = new Ajv({
|
|
13
|
+
allErrors: true,
|
|
14
|
+
verbose: true,
|
|
15
|
+
strict: false,
|
|
16
|
+
removeAdditional: 'all',
|
|
17
|
+
useDefaults: true,
|
|
18
|
+
coerceTypes: true
|
|
19
|
+
});
|
|
20
|
+
// Add formats for JSON Schema validation
|
|
21
|
+
addFormats(ajv);
|
|
22
|
+
/**
|
|
23
|
+
* Validation middleware factory
|
|
24
|
+
*/ export function validationMiddleware(schema) {
|
|
25
|
+
const validators = {
|
|
26
|
+
body: schema.body ? ajv.compile(schema.body) : null,
|
|
27
|
+
query: schema.query ? ajv.compile(schema.query) : null,
|
|
28
|
+
params: schema.params ? ajv.compile(schema.params) : null,
|
|
29
|
+
headers: schema.headers ? ajv.compile(schema.headers) : null
|
|
30
|
+
};
|
|
31
|
+
return (req, res, next)=>{
|
|
32
|
+
const errors = [];
|
|
33
|
+
// Validate request body
|
|
34
|
+
if (validators.body) {
|
|
35
|
+
if (!validators.body(req.body)) {
|
|
36
|
+
errors.push({
|
|
37
|
+
location: 'body',
|
|
38
|
+
errors: formatAjvErrors(validators.body.errors || [])
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
// Validate query parameters
|
|
43
|
+
if (validators.query) {
|
|
44
|
+
if (!validators.query(req.query)) {
|
|
45
|
+
errors.push({
|
|
46
|
+
location: 'query',
|
|
47
|
+
errors: formatAjvErrors(validators.query.errors || [])
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
// Validate route parameters
|
|
52
|
+
if (validators.params) {
|
|
53
|
+
if (!validators.params(req.params)) {
|
|
54
|
+
errors.push({
|
|
55
|
+
location: 'params',
|
|
56
|
+
errors: formatAjvErrors(validators.params.errors || [])
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
// Validate headers
|
|
61
|
+
if (validators.headers) {
|
|
62
|
+
if (!validators.headers(req.headers)) {
|
|
63
|
+
errors.push({
|
|
64
|
+
location: 'headers',
|
|
65
|
+
errors: formatAjvErrors(validators.headers.errors || [])
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
// Return validation errors if any
|
|
70
|
+
if (errors.length > 0) {
|
|
71
|
+
throw new ValidationError('Request validation failed', {
|
|
72
|
+
errors
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
next();
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* Format AJV errors for better readability
|
|
80
|
+
*/ function formatAjvErrors(errors) {
|
|
81
|
+
return errors.map((error)=>{
|
|
82
|
+
const field = error.instancePath || error.schemaPath || 'unknown';
|
|
83
|
+
const message = error.message || 'Validation error';
|
|
84
|
+
const value = error.data;
|
|
85
|
+
return {
|
|
86
|
+
field,
|
|
87
|
+
message,
|
|
88
|
+
value,
|
|
89
|
+
allowedValues: error.schema?.enum,
|
|
90
|
+
constraint: error.keyword,
|
|
91
|
+
schema: error.schema
|
|
92
|
+
};
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Common validation schemas
|
|
97
|
+
*/ export const commonSchemas = {
|
|
98
|
+
// Pagination query parameters
|
|
99
|
+
pagination: {
|
|
100
|
+
type: 'object',
|
|
101
|
+
properties: {
|
|
102
|
+
page: {
|
|
103
|
+
type: 'integer',
|
|
104
|
+
minimum: 1,
|
|
105
|
+
default: 1,
|
|
106
|
+
description: 'Page number'
|
|
107
|
+
},
|
|
108
|
+
limit: {
|
|
109
|
+
type: 'integer',
|
|
110
|
+
minimum: 1,
|
|
111
|
+
maximum: 100,
|
|
112
|
+
default: 20,
|
|
113
|
+
description: 'Items per page'
|
|
114
|
+
},
|
|
115
|
+
offset: {
|
|
116
|
+
type: 'integer',
|
|
117
|
+
minimum: 0,
|
|
118
|
+
description: 'Number of items to skip'
|
|
119
|
+
},
|
|
120
|
+
sort: {
|
|
121
|
+
type: 'string',
|
|
122
|
+
description: 'Sort field'
|
|
123
|
+
},
|
|
124
|
+
order: {
|
|
125
|
+
type: 'string',
|
|
126
|
+
enum: [
|
|
127
|
+
'asc',
|
|
128
|
+
'desc'
|
|
129
|
+
],
|
|
130
|
+
default: 'desc',
|
|
131
|
+
description: 'Sort order'
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
},
|
|
135
|
+
// Date range query parameters
|
|
136
|
+
dateRange: {
|
|
137
|
+
type: 'object',
|
|
138
|
+
properties: {
|
|
139
|
+
startDate: {
|
|
140
|
+
type: 'string',
|
|
141
|
+
format: 'date-time',
|
|
142
|
+
description: 'Start date (ISO 8601)'
|
|
143
|
+
},
|
|
144
|
+
endDate: {
|
|
145
|
+
type: 'string',
|
|
146
|
+
format: 'date-time',
|
|
147
|
+
description: 'End date (ISO 8601)'
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
additionalProperties: false
|
|
151
|
+
},
|
|
152
|
+
// Agent ID parameter
|
|
153
|
+
agentIdParam: {
|
|
154
|
+
type: 'object',
|
|
155
|
+
properties: {
|
|
156
|
+
agentId: {
|
|
157
|
+
type: 'string',
|
|
158
|
+
minLength: 1,
|
|
159
|
+
description: 'Agent ID'
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
required: [
|
|
163
|
+
'agentId'
|
|
164
|
+
],
|
|
165
|
+
additionalProperties: false
|
|
166
|
+
},
|
|
167
|
+
// Event type filter
|
|
168
|
+
eventTypeFilter: {
|
|
169
|
+
type: 'object',
|
|
170
|
+
properties: {
|
|
171
|
+
eventType: {
|
|
172
|
+
type: 'string',
|
|
173
|
+
enum: [
|
|
174
|
+
'spawned',
|
|
175
|
+
'paused',
|
|
176
|
+
'resumed',
|
|
177
|
+
'terminated',
|
|
178
|
+
'checkpoint_created',
|
|
179
|
+
'checkpoint_restored',
|
|
180
|
+
'state_changed',
|
|
181
|
+
'task_assigned',
|
|
182
|
+
'task_completed',
|
|
183
|
+
'error_occurred'
|
|
184
|
+
],
|
|
185
|
+
description: 'Event type filter'
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
additionalProperties: false
|
|
189
|
+
},
|
|
190
|
+
// Agent level filter
|
|
191
|
+
levelFilter: {
|
|
192
|
+
type: 'object',
|
|
193
|
+
properties: {
|
|
194
|
+
level: {
|
|
195
|
+
type: 'integer',
|
|
196
|
+
minimum: 1,
|
|
197
|
+
maximum: 10,
|
|
198
|
+
description: 'Agent hierarchy level'
|
|
199
|
+
}
|
|
200
|
+
},
|
|
201
|
+
additionalProperties: false
|
|
202
|
+
},
|
|
203
|
+
// Agent state filter
|
|
204
|
+
stateFilter: {
|
|
205
|
+
type: 'object',
|
|
206
|
+
properties: {
|
|
207
|
+
state: {
|
|
208
|
+
type: 'string',
|
|
209
|
+
enum: [
|
|
210
|
+
'idle',
|
|
211
|
+
'active',
|
|
212
|
+
'paused',
|
|
213
|
+
'terminated',
|
|
214
|
+
'error',
|
|
215
|
+
'completing',
|
|
216
|
+
'checkpointing',
|
|
217
|
+
'waiting_for_dependency'
|
|
218
|
+
],
|
|
219
|
+
description: 'Agent state filter'
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
additionalProperties: false
|
|
223
|
+
},
|
|
224
|
+
// WebSocket subscription
|
|
225
|
+
subscription: {
|
|
226
|
+
type: 'object',
|
|
227
|
+
properties: {
|
|
228
|
+
channels: {
|
|
229
|
+
type: 'array',
|
|
230
|
+
items: {
|
|
231
|
+
type: 'string',
|
|
232
|
+
enum: [
|
|
233
|
+
'agent-status',
|
|
234
|
+
'hierarchy',
|
|
235
|
+
'events',
|
|
236
|
+
'metrics',
|
|
237
|
+
'alerts',
|
|
238
|
+
'system'
|
|
239
|
+
]
|
|
240
|
+
},
|
|
241
|
+
uniqueItems: true,
|
|
242
|
+
minItems: 1,
|
|
243
|
+
description: 'WebSocket channels to subscribe to'
|
|
244
|
+
}
|
|
245
|
+
},
|
|
246
|
+
required: [
|
|
247
|
+
'channels'
|
|
248
|
+
],
|
|
249
|
+
additionalProperties: false
|
|
250
|
+
}
|
|
251
|
+
};
|
|
252
|
+
/**
|
|
253
|
+
* Create validation schema for specific endpoints
|
|
254
|
+
*/ export function createSchema(overrides) {
|
|
255
|
+
return overrides;
|
|
256
|
+
}
|
|
257
|
+
/**
|
|
258
|
+
* Validate UUID string
|
|
259
|
+
*/ export function isValidUUID(uuid) {
|
|
260
|
+
const uuidRegex = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
|
|
261
|
+
return uuidRegex.test(uuid);
|
|
262
|
+
}
|
|
263
|
+
/**
|
|
264
|
+
* Validate ISO date string
|
|
265
|
+
*/ export function isValidISODate(date) {
|
|
266
|
+
if (!date) return false;
|
|
267
|
+
const parsed = new Date(date);
|
|
268
|
+
return !isNaN(parsed.getTime()) && date === parsed.toISOString();
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Sanitize and validate input string
|
|
272
|
+
*/ export function sanitizeString(input, maxLength = 1000) {
|
|
273
|
+
if (typeof input !== 'string') {
|
|
274
|
+
return '';
|
|
275
|
+
}
|
|
276
|
+
// Remove null bytes and control characters
|
|
277
|
+
const sanitized = input.replace(/[\x00-\x1F\x7F]/g, '');
|
|
278
|
+
// Truncate if too long
|
|
279
|
+
return sanitized.length > maxLength ? sanitized.slice(0, maxLength) : sanitized;
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Validate email address
|
|
283
|
+
*/ export function isValidEmail(email) {
|
|
284
|
+
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
285
|
+
return emailRegex.test(email);
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Validate numeric range
|
|
289
|
+
*/ export function isValidNumber(value, min, max) {
|
|
290
|
+
const num = Number(value);
|
|
291
|
+
if (isNaN(num)) return false;
|
|
292
|
+
if (min !== undefined && num < min) return false;
|
|
293
|
+
if (max !== undefined && num > max) return false;
|
|
294
|
+
return true;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* Validate array of strings
|
|
298
|
+
*/ export function isValidStringArray(value, allowedValues) {
|
|
299
|
+
if (!Array.isArray(value)) return false;
|
|
300
|
+
return value.every((item)=>typeof item === 'string' && (!allowedValues || allowedValues.includes(item)));
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
* Middleware to validate content type
|
|
304
|
+
*/ export function validateContentType(allowedTypes) {
|
|
305
|
+
return (req, res, next)=>{
|
|
306
|
+
const contentType = req.get('Content-Type');
|
|
307
|
+
if (!contentType || !allowedTypes.some((type)=>contentType.includes(type))) {
|
|
308
|
+
throw new ValidationError(`Content-Type must be one of: ${allowedTypes.join(', ')}`);
|
|
309
|
+
}
|
|
310
|
+
next();
|
|
311
|
+
};
|
|
312
|
+
}
|
|
313
|
+
/**
|
|
314
|
+
* Middleware to validate request size
|
|
315
|
+
*/ export function validateRequestSize(maxSizeBytes) {
|
|
316
|
+
return (req, res, next)=>{
|
|
317
|
+
const contentLength = parseInt(req.get('Content-Length') || '0', 10);
|
|
318
|
+
if (contentLength > maxSizeBytes) {
|
|
319
|
+
throw new ValidationError(`Request size exceeds maximum allowed size of ${maxSizeBytes} bytes`);
|
|
320
|
+
}
|
|
321
|
+
next();
|
|
322
|
+
};
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
//# sourceMappingURL=validation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/web/api/middleware/validation.ts"],"names":["Ajv","addFormats","ValidationError","ajv","allErrors","verbose","strict","removeAdditional","useDefaults","coerceTypes","validationMiddleware","schema","validators","body","compile","query","params","headers","req","res","next","errors","push","location","formatAjvErrors","length","map","error","field","instancePath","schemaPath","message","value","data","allowedValues","enum","constraint","keyword","commonSchemas","pagination","type","properties","page","minimum","default","description","limit","maximum","offset","sort","order","dateRange","startDate","format","endDate","additionalProperties","agentIdParam","agentId","minLength","required","eventTypeFilter","eventType","levelFilter","level","stateFilter","state","subscription","channels","items","uniqueItems","minItems","createSchema","overrides","isValidUUID","uuid","uuidRegex","test","isValidISODate","date","parsed","Date","isNaN","getTime","toISOString","sanitizeString","input","maxLength","sanitized","replace","slice","isValidEmail","email","emailRegex","isValidNumber","min","max","num","Number","undefined","isValidStringArray","Array","isArray","every","item","includes","validateContentType","allowedTypes","contentType","get","some","join","validateRequestSize","maxSizeBytes","contentLength","parseInt"],"mappings":"AAAA;;;;;;CAMC,GAGD,OAAOA,SAAS,MAAM;AACtB,OAAOC,gBAAgB,cAAc;AACrC,SAASC,eAAe,QAAQ,qBAAqB;AAYrD;;CAEC,GACD,MAAMC,MAAM,IAAIH,IAAI;IAClBI,WAAW;IACXC,SAAS;IACTC,QAAQ;IACRC,kBAAkB;IAClBC,aAAa;IACbC,aAAa;AACf;AAEA,yCAAyC;AACzCR,WAAWE;AAEX;;CAEC,GACD,OAAO,SAASO,qBAAqBC,MAAwB;IAC3D,MAAMC,aAAa;QACjBC,MAAMF,OAAOE,IAAI,GAAGV,IAAIW,OAAO,CAACH,OAAOE,IAAI,IAAI;QAC/CE,OAAOJ,OAAOI,KAAK,GAAGZ,IAAIW,OAAO,CAACH,OAAOI,KAAK,IAAI;QAClDC,QAAQL,OAAOK,MAAM,GAAGb,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