swarmdo 1.4.8 → 1.5.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/.claude/helpers/statusline.cjs +7 -7
- package/README.md +3 -1
- package/package.json +5 -3
- package/v3/@swarmdo/cli/dist/src/commands/hooks.js +26 -24
- package/v3/@swarmdo/cli/dist/src/commands/index.js +4 -0
- package/v3/@swarmdo/cli/dist/src/commands/integrations.d.ts +14 -0
- package/v3/@swarmdo/cli/dist/src/commands/integrations.js +158 -0
- package/v3/@swarmdo/cli/dist/src/commands/memory.js +50 -1
- package/v3/@swarmdo/cli/dist/src/commands/providers.js +3 -0
- package/v3/@swarmdo/cli/dist/src/commands/release.d.ts +15 -0
- package/v3/@swarmdo/cli/dist/src/commands/release.js +224 -0
- package/v3/@swarmdo/cli/dist/src/commands/security.js +14 -0
- package/v3/@swarmdo/cli/dist/src/commands/transcript.js +82 -1
- package/v3/@swarmdo/cli/dist/src/commands/usage.js +80 -1
- package/v3/@swarmdo/cli/dist/src/config-lint/lint.js +11 -1
- package/v3/@swarmdo/cli/dist/src/init/statusline-generator.js +6 -6
- package/v3/@swarmdo/cli/dist/src/integrations/integrations.d.ts +54 -0
- package/v3/@swarmdo/cli/dist/src/integrations/integrations.js +162 -0
- package/v3/@swarmdo/cli/dist/src/mcp-tools/agent-execute-core.js +25 -3
- package/v3/@swarmdo/cli/dist/src/mcp-tools/agentdb-tools.js +8 -8
- package/v3/@swarmdo/cli/dist/src/memory/graph-edge-writer.d.ts +12 -0
- package/v3/@swarmdo/cli/dist/src/memory/graph-edge-writer.js +32 -1
- package/v3/@swarmdo/cli/dist/src/memory-vault/watch.d.ts +32 -0
- package/v3/@swarmdo/cli/dist/src/memory-vault/watch.js +66 -0
- package/v3/@swarmdo/cli/dist/src/providers/openrouter-config.d.ts +91 -0
- package/v3/@swarmdo/cli/dist/src/providers/openrouter-config.js +186 -0
- package/v3/@swarmdo/cli/dist/src/release/release.d.ts +72 -0
- package/v3/@swarmdo/cli/dist/src/release/release.js +86 -0
- package/v3/@swarmdo/cli/dist/src/resilience/backoff.d.ts +23 -0
- package/v3/@swarmdo/cli/dist/src/resilience/backoff.js +30 -0
- package/v3/@swarmdo/cli/dist/src/swarmvector/model-router.js +14 -0
- package/v3/@swarmdo/cli/dist/src/transcript/search.d.ts +39 -0
- package/v3/@swarmdo/cli/dist/src/transcript/search.js +67 -0
- package/v3/@swarmdo/cli/dist/src/usage/diff.d.ts +69 -0
- package/v3/@swarmdo/cli/dist/src/usage/diff.js +112 -0
- package/v3/@swarmdo/cli/package.json +4 -4
- package/v3/@swarmdo/cli-core/dist/src/index.js +1 -1
- package/v3/@swarmdo/codex/dist/cli.js +0 -0
- package/v3/@swarmdo/hooks/dist/cli/guidance-cli.js +0 -0
- package/v3/@swarmdo/hooks/dist/statusline/index.d.ts +3 -3
- package/v3/@swarmdo/hooks/dist/statusline/index.js +3 -3
- package/v3/@swarmdo/integration/dist/__tests__/agentic-flow-agent.test.js +4 -1
- package/v3/@swarmdo/neural/dist/flash-attention.d.ts +1 -1
- package/v3/@swarmdo/neural/dist/flash-attention.js +1 -1
- package/v3/@swarmdo/plugin-agent-federation/dist/plugin.js +1 -1
- package/v3/@swarmdo/plugin-agent-federation/dist/transport/midstream-aware-loader.js +2 -2
- package/v3/@swarmdo/providers/dist/swarmvector-provider.d.ts +1 -1
- package/v3/@swarmdo/providers/dist/swarmvector-provider.js +1 -1
- package/v3/@swarmdo/security/dist/input-validator.d.ts +6 -6
- package/v3/@swarmdo/shared/dist/hooks/safety/git-commit.js +1 -1
- package/v3/@swarmdo/shared/dist/mcp/transport/http.js +8 -1
- package/v3/vendor/agentdb/package.json +0 -1
- package/v3/vendor/agentic-flow/package.json +0 -1
- package/.claude/scheduled_tasks.lock +0 -1
- package/.claude/skills/sdo-caveman-compress/scripts/__pycache__/__init__.cpython-314.pyc +0 -0
- package/.claude/skills/sdo-caveman-compress/scripts/__pycache__/__main__.cpython-314.pyc +0 -0
- package/.claude/skills/sdo-caveman-compress/scripts/__pycache__/cli.cpython-314.pyc +0 -0
- package/.claude/skills/sdo-caveman-compress/scripts/__pycache__/compress.cpython-314.pyc +0 -0
- package/.claude/skills/sdo-caveman-compress/scripts/__pycache__/detect.cpython-314.pyc +0 -0
- package/.claude/skills/sdo-caveman-compress/scripts/__pycache__/validate.cpython-314.pyc +0 -0
- package/v3/@swarmdo/plugin-iot-cognitum/dist/application/index.d.ts +0 -2
- package/v3/@swarmdo/plugin-iot-cognitum/dist/application/index.js +0 -2
- package/v3/@swarmdo/plugin-iot-cognitum/dist/application/iot-coordinator.d.ts +0 -138
- package/v3/@swarmdo/plugin-iot-cognitum/dist/application/iot-coordinator.js +0 -418
- package/v3/@swarmdo/plugin-iot-cognitum/dist/bin.d.ts +0 -15
- package/v3/@swarmdo/plugin-iot-cognitum/dist/bin.js +0 -240
- package/v3/@swarmdo/plugin-iot-cognitum/dist/cli-commands.d.ts +0 -7
- package/v3/@swarmdo/plugin-iot-cognitum/dist/cli-commands.js +0 -508
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/entities/device-agent.d.ts +0 -54
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/entities/device-agent.js +0 -2
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/entities/device-fleet.d.ts +0 -46
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/entities/device-fleet.js +0 -2
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/entities/device-trust-level.d.ts +0 -18
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/entities/device-trust-level.js +0 -28
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/entities/index.d.ts +0 -5
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/entities/index.js +0 -2
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/entities/telemetry.d.ts +0 -35
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/entities/telemetry.js +0 -2
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/repositories/device-repository.d.ts +0 -11
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/repositories/device-repository.js +0 -2
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/repositories/fleet-repository.d.ts +0 -9
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/repositories/fleet-repository.js +0 -2
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/repositories/index.d.ts +0 -5
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/repositories/index.js +0 -2
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/repositories/telemetry-repository.d.ts +0 -12
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/repositories/telemetry-repository.js +0 -2
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/repositories/trust-history-repository.d.ts +0 -19
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/repositories/trust-history-repository.js +0 -2
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/anomaly-detection-service.d.ts +0 -44
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/anomaly-detection-service.js +0 -117
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/device-lifecycle-service.d.ts +0 -70
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/device-lifecycle-service.js +0 -194
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/firmware-orchestration-service.d.ts +0 -69
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/firmware-orchestration-service.js +0 -139
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/fleet-topology-service.d.ts +0 -34
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/fleet-topology-service.js +0 -101
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/index.d.ts +0 -10
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/index.js +0 -10
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/mesh-service.d.ts +0 -64
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/mesh-service.js +0 -70
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/sona-integration-service.d.ts +0 -44
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/sona-integration-service.js +0 -79
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/telemetry-ingestion-service.d.ts +0 -37
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/telemetry-ingestion-service.js +0 -39
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/telemetry-service.d.ts +0 -67
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/telemetry-service.js +0 -58
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/witness-verification-service.d.ts +0 -45
- package/v3/@swarmdo/plugin-iot-cognitum/dist/domain/services/witness-verification-service.js +0 -63
- package/v3/@swarmdo/plugin-iot-cognitum/dist/index.d.ts +0 -26
- package/v3/@swarmdo/plugin-iot-cognitum/dist/index.js +0 -17
- package/v3/@swarmdo/plugin-iot-cognitum/dist/infrastructure/agentdb-telemetry-repository.d.ts +0 -51
- package/v3/@swarmdo/plugin-iot-cognitum/dist/infrastructure/agentdb-telemetry-repository.js +0 -110
- package/v3/@swarmdo/plugin-iot-cognitum/dist/infrastructure/in-memory-device-repository.d.ts +0 -13
- package/v3/@swarmdo/plugin-iot-cognitum/dist/infrastructure/in-memory-device-repository.js +0 -25
- package/v3/@swarmdo/plugin-iot-cognitum/dist/infrastructure/in-memory-fleet-repository.d.ts +0 -11
- package/v3/@swarmdo/plugin-iot-cognitum/dist/infrastructure/in-memory-fleet-repository.js +0 -19
- package/v3/@swarmdo/plugin-iot-cognitum/dist/infrastructure/in-memory-trust-history-repository.d.ts +0 -11
- package/v3/@swarmdo/plugin-iot-cognitum/dist/infrastructure/in-memory-trust-history-repository.js +0 -27
- package/v3/@swarmdo/plugin-iot-cognitum/dist/infrastructure/index.d.ts +0 -6
- package/v3/@swarmdo/plugin-iot-cognitum/dist/infrastructure/index.js +0 -6
- package/v3/@swarmdo/plugin-iot-cognitum/dist/infrastructure/seed-client-factory.d.ts +0 -41
- package/v3/@swarmdo/plugin-iot-cognitum/dist/infrastructure/seed-client-factory.js +0 -64
- package/v3/@swarmdo/plugin-iot-cognitum/dist/mcp-tools.d.ts +0 -8
- package/v3/@swarmdo/plugin-iot-cognitum/dist/mcp-tools.js +0 -703
- package/v3/@swarmdo/plugin-iot-cognitum/dist/plugin.d.ts +0 -23
- package/v3/@swarmdo/plugin-iot-cognitum/dist/plugin.js +0 -239
- package/v3/@swarmdo/plugin-iot-cognitum/dist/workers/anomaly-scan-worker.d.ts +0 -17
- package/v3/@swarmdo/plugin-iot-cognitum/dist/workers/anomaly-scan-worker.js +0 -42
- package/v3/@swarmdo/plugin-iot-cognitum/dist/workers/firmware-watch-worker.d.ts +0 -18
- package/v3/@swarmdo/plugin-iot-cognitum/dist/workers/firmware-watch-worker.js +0 -45
- package/v3/@swarmdo/plugin-iot-cognitum/dist/workers/health-probe-worker.d.ts +0 -19
- package/v3/@swarmdo/plugin-iot-cognitum/dist/workers/health-probe-worker.js +0 -50
- package/v3/@swarmdo/plugin-iot-cognitum/dist/workers/mesh-sync-worker.d.ts +0 -19
- package/v3/@swarmdo/plugin-iot-cognitum/dist/workers/mesh-sync-worker.js +0 -47
- package/v3/@swarmdo/plugin-iot-cognitum/dist/workers/telemetry-ingest-worker.d.ts +0 -17
- package/v3/@swarmdo/plugin-iot-cognitum/dist/workers/telemetry-ingest-worker.js +0 -40
- package/v3/@swarmdo/plugin-iot-cognitum/dist/workers/witness-audit-worker.d.ts +0 -18
- package/v3/@swarmdo/plugin-iot-cognitum/dist/workers/witness-audit-worker.js +0 -51
- package/v3/@swarmdo/testing/dist/fixtures/agent-fixtures.d.ts +0 -214
- package/v3/@swarmdo/testing/dist/fixtures/agent-fixtures.js +0 -595
- package/v3/@swarmdo/testing/dist/fixtures/agents.d.ts +0 -76
- package/v3/@swarmdo/testing/dist/fixtures/agents.js +0 -158
- package/v3/@swarmdo/testing/dist/fixtures/configurations.d.ts +0 -157
- package/v3/@swarmdo/testing/dist/fixtures/configurations.js +0 -337
- package/v3/@swarmdo/testing/dist/fixtures/index.d.ts +0 -10
- package/v3/@swarmdo/testing/dist/fixtures/index.js +0 -17
- package/v3/@swarmdo/testing/dist/fixtures/mcp-fixtures.d.ts +0 -329
- package/v3/@swarmdo/testing/dist/fixtures/mcp-fixtures.js +0 -714
- package/v3/@swarmdo/testing/dist/fixtures/memory-entries.d.ts +0 -159
- package/v3/@swarmdo/testing/dist/fixtures/memory-entries.js +0 -262
- package/v3/@swarmdo/testing/dist/fixtures/memory-fixtures.d.ts +0 -290
- package/v3/@swarmdo/testing/dist/fixtures/memory-fixtures.js +0 -547
- package/v3/@swarmdo/testing/dist/fixtures/swarm-fixtures.d.ts +0 -289
- package/v3/@swarmdo/testing/dist/fixtures/swarm-fixtures.js +0 -534
- package/v3/@swarmdo/testing/dist/fixtures/tasks.d.ts +0 -106
- package/v3/@swarmdo/testing/dist/fixtures/tasks.js +0 -229
- package/v3/@swarmdo/testing/dist/helpers/assertion-helpers.d.ts +0 -213
- package/v3/@swarmdo/testing/dist/helpers/assertion-helpers.js +0 -435
- package/v3/@swarmdo/testing/dist/helpers/assertions.d.ts +0 -135
- package/v3/@swarmdo/testing/dist/helpers/assertions.js +0 -217
- package/v3/@swarmdo/testing/dist/helpers/create-mock.d.ts +0 -96
- package/v3/@swarmdo/testing/dist/helpers/create-mock.js +0 -164
- package/v3/@swarmdo/testing/dist/helpers/index.d.ts +0 -14
- package/v3/@swarmdo/testing/dist/helpers/index.js +0 -22
- package/v3/@swarmdo/testing/dist/helpers/mock-factory.d.ts +0 -323
- package/v3/@swarmdo/testing/dist/helpers/mock-factory.js +0 -350
- package/v3/@swarmdo/testing/dist/helpers/setup-teardown.d.ts +0 -271
- package/v3/@swarmdo/testing/dist/helpers/setup-teardown.js +0 -446
- package/v3/@swarmdo/testing/dist/helpers/swarm-instance.d.ts +0 -142
- package/v3/@swarmdo/testing/dist/helpers/swarm-instance.js +0 -205
- package/v3/@swarmdo/testing/dist/helpers/test-application.d.ts +0 -190
- package/v3/@swarmdo/testing/dist/helpers/test-application.js +0 -138
- package/v3/@swarmdo/testing/dist/helpers/test-utils.d.ts +0 -274
- package/v3/@swarmdo/testing/dist/helpers/test-utils.js +0 -456
- package/v3/@swarmdo/testing/dist/index.d.ts +0 -42
- package/v3/@swarmdo/testing/dist/index.js +0 -66
- package/v3/@swarmdo/testing/dist/mocks/index.d.ts +0 -8
- package/v3/@swarmdo/testing/dist/mocks/index.js +0 -10
- package/v3/@swarmdo/testing/dist/mocks/mock-mcp-client.d.ts +0 -206
- package/v3/@swarmdo/testing/dist/mocks/mock-mcp-client.js +0 -575
- package/v3/@swarmdo/testing/dist/mocks/mock-services.d.ts +0 -287
- package/v3/@swarmdo/testing/dist/mocks/mock-services.js +0 -563
- package/v3/@swarmdo/testing/dist/regression/api-contract.d.ts +0 -109
- package/v3/@swarmdo/testing/dist/regression/api-contract.js +0 -374
- package/v3/@swarmdo/testing/dist/regression/index.d.ts +0 -18
- package/v3/@swarmdo/testing/dist/regression/index.js +0 -18
- package/v3/@swarmdo/testing/dist/regression/integration-regression.d.ts +0 -67
- package/v3/@swarmdo/testing/dist/regression/integration-regression.js +0 -334
- package/v3/@swarmdo/testing/dist/regression/performance-baseline.d.ts +0 -106
- package/v3/@swarmdo/testing/dist/regression/performance-baseline.js +0 -268
- package/v3/@swarmdo/testing/dist/regression/regression-runner.d.ts +0 -124
- package/v3/@swarmdo/testing/dist/regression/regression-runner.js +0 -227
- package/v3/@swarmdo/testing/dist/regression/security-regression.d.ts +0 -73
- package/v3/@swarmdo/testing/dist/regression/security-regression.js +0 -258
- package/v3/@swarmdo/testing/dist/setup.d.ts +0 -43
- package/v3/@swarmdo/testing/dist/setup.js +0 -91
- package/v3/@swarmdo/testing/dist/v2-compat/api-compat.test.d.ts +0 -10
- package/v3/@swarmdo/testing/dist/v2-compat/api-compat.test.js +0 -433
- package/v3/@swarmdo/testing/dist/v2-compat/cli-compat.test.d.ts +0 -10
- package/v3/@swarmdo/testing/dist/v2-compat/cli-compat.test.js +0 -352
- package/v3/@swarmdo/testing/dist/v2-compat/compatibility-validator.d.ts +0 -206
- package/v3/@swarmdo/testing/dist/v2-compat/compatibility-validator.js +0 -839
- package/v3/@swarmdo/testing/dist/v2-compat/hooks-compat.test.d.ts +0 -10
- package/v3/@swarmdo/testing/dist/v2-compat/hooks-compat.test.js +0 -428
- package/v3/@swarmdo/testing/dist/v2-compat/index.d.ts +0 -38
- package/v3/@swarmdo/testing/dist/v2-compat/index.js +0 -41
- package/v3/@swarmdo/testing/dist/v2-compat/mcp-compat.test.d.ts +0 -10
- package/v3/@swarmdo/testing/dist/v2-compat/mcp-compat.test.js +0 -419
- package/v3/@swarmdo/testing/dist/v2-compat/report-generator.d.ts +0 -34
- package/v3/@swarmdo/testing/dist/v2-compat/report-generator.js +0 -372
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Pre-defined agent configurations for testing
|
|
3
|
-
*/
|
|
4
|
-
export const agentConfigs = {
|
|
5
|
-
queenCoordinator: {
|
|
6
|
-
type: 'queen-coordinator',
|
|
7
|
-
name: 'Queen Alpha',
|
|
8
|
-
capabilities: ['orchestration', 'task-distribution', 'agent-management'],
|
|
9
|
-
priority: 100,
|
|
10
|
-
metadata: { isLeader: true },
|
|
11
|
-
},
|
|
12
|
-
securityArchitect: {
|
|
13
|
-
type: 'security-architect',
|
|
14
|
-
name: 'Security Architect',
|
|
15
|
-
capabilities: ['security-design', 'threat-modeling', 'security-review'],
|
|
16
|
-
priority: 90,
|
|
17
|
-
metadata: { specialization: 'cve-prevention' },
|
|
18
|
-
},
|
|
19
|
-
securityAuditor: {
|
|
20
|
-
type: 'security-auditor',
|
|
21
|
-
name: 'Security Auditor',
|
|
22
|
-
capabilities: ['cve-detection', 'vulnerability-scanning', 'security-testing'],
|
|
23
|
-
priority: 90,
|
|
24
|
-
metadata: { specialization: 'penetration-testing' },
|
|
25
|
-
},
|
|
26
|
-
memorySpecialist: {
|
|
27
|
-
type: 'memory-specialist',
|
|
28
|
-
name: 'Memory Specialist',
|
|
29
|
-
capabilities: ['memory-optimization', 'agentdb-integration', 'caching'],
|
|
30
|
-
priority: 80,
|
|
31
|
-
metadata: { backend: 'agentdb' },
|
|
32
|
-
},
|
|
33
|
-
swarmSpecialist: {
|
|
34
|
-
type: 'swarm-specialist',
|
|
35
|
-
name: 'Swarm Specialist',
|
|
36
|
-
capabilities: ['coordination', 'consensus', 'communication'],
|
|
37
|
-
priority: 85,
|
|
38
|
-
metadata: { topology: 'hierarchical-mesh' },
|
|
39
|
-
},
|
|
40
|
-
coder: {
|
|
41
|
-
type: 'coder',
|
|
42
|
-
name: 'Coder Agent',
|
|
43
|
-
capabilities: ['coding', 'implementation', 'debugging'],
|
|
44
|
-
priority: 70,
|
|
45
|
-
},
|
|
46
|
-
tester: {
|
|
47
|
-
type: 'tester',
|
|
48
|
-
name: 'Tester Agent',
|
|
49
|
-
capabilities: ['testing', 'test-execution', 'coverage'],
|
|
50
|
-
priority: 70,
|
|
51
|
-
},
|
|
52
|
-
reviewer: {
|
|
53
|
-
type: 'reviewer',
|
|
54
|
-
name: 'Reviewer Agent',
|
|
55
|
-
capabilities: ['code-review', 'quality-check', 'suggestions'],
|
|
56
|
-
priority: 75,
|
|
57
|
-
},
|
|
58
|
-
};
|
|
59
|
-
/**
|
|
60
|
-
* Pre-defined agent instances for testing
|
|
61
|
-
*/
|
|
62
|
-
export const agentInstances = {
|
|
63
|
-
idleQueen: {
|
|
64
|
-
id: 'agent-queen-001',
|
|
65
|
-
type: 'queen-coordinator',
|
|
66
|
-
name: 'Queen Alpha',
|
|
67
|
-
status: 'idle',
|
|
68
|
-
capabilities: ['orchestration', 'task-distribution', 'agent-management'],
|
|
69
|
-
createdAt: new Date('2024-01-01T00:00:00Z'),
|
|
70
|
-
},
|
|
71
|
-
busySecurityArchitect: {
|
|
72
|
-
id: 'agent-security-001',
|
|
73
|
-
type: 'security-architect',
|
|
74
|
-
name: 'Security Architect',
|
|
75
|
-
status: 'busy',
|
|
76
|
-
capabilities: ['security-design', 'threat-modeling', 'security-review'],
|
|
77
|
-
createdAt: new Date('2024-01-01T00:00:00Z'),
|
|
78
|
-
lastActiveAt: new Date('2024-01-15T12:00:00Z'),
|
|
79
|
-
},
|
|
80
|
-
terminatedCoder: {
|
|
81
|
-
id: 'agent-coder-001',
|
|
82
|
-
type: 'coder',
|
|
83
|
-
name: 'Coder Agent',
|
|
84
|
-
status: 'terminated',
|
|
85
|
-
capabilities: ['coding', 'implementation', 'debugging'],
|
|
86
|
-
createdAt: new Date('2024-01-01T00:00:00Z'),
|
|
87
|
-
lastActiveAt: new Date('2024-01-10T08:00:00Z'),
|
|
88
|
-
},
|
|
89
|
-
};
|
|
90
|
-
/**
|
|
91
|
-
* Factory function to create agent config with overrides
|
|
92
|
-
*/
|
|
93
|
-
export function createAgentConfig(base, overrides) {
|
|
94
|
-
return {
|
|
95
|
-
...agentConfigs[base],
|
|
96
|
-
...overrides,
|
|
97
|
-
};
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Factory function to create agent instance with overrides
|
|
101
|
-
*/
|
|
102
|
-
export function createAgentInstance(base, overrides) {
|
|
103
|
-
return {
|
|
104
|
-
...agentInstances[base],
|
|
105
|
-
...overrides,
|
|
106
|
-
id: overrides?.id ?? `agent-${Date.now()}-${Math.random().toString(36).slice(2, 7)}`,
|
|
107
|
-
createdAt: overrides?.createdAt ?? new Date(),
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Create a full 15-agent swarm configuration
|
|
112
|
-
*/
|
|
113
|
-
export function create15AgentSwarmConfig() {
|
|
114
|
-
return [
|
|
115
|
-
agentConfigs.queenCoordinator,
|
|
116
|
-
agentConfigs.securityArchitect,
|
|
117
|
-
agentConfigs.securityAuditor,
|
|
118
|
-
agentConfigs.memorySpecialist,
|
|
119
|
-
agentConfigs.swarmSpecialist,
|
|
120
|
-
createAgentConfig('coder', { name: 'Integration Architect', type: 'integration-architect' }),
|
|
121
|
-
createAgentConfig('coder', { name: 'Performance Engineer', type: 'performance-engineer' }),
|
|
122
|
-
createAgentConfig('coder', { name: 'Core Architect', type: 'core-architect' }),
|
|
123
|
-
createAgentConfig('tester', { name: 'Test Architect', type: 'test-architect' }),
|
|
124
|
-
createAgentConfig('coder', { name: 'Project Coordinator', type: 'project-coordinator' }),
|
|
125
|
-
agentConfigs.coder,
|
|
126
|
-
agentConfigs.reviewer,
|
|
127
|
-
agentConfigs.tester,
|
|
128
|
-
createAgentConfig('coder', { name: 'Planner Agent', type: 'planner' }),
|
|
129
|
-
createAgentConfig('coder', { name: 'Researcher Agent', type: 'researcher' }),
|
|
130
|
-
];
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* Invalid agent configurations for error testing
|
|
134
|
-
*/
|
|
135
|
-
export const invalidAgentConfigs = {
|
|
136
|
-
emptyName: {
|
|
137
|
-
type: 'coder',
|
|
138
|
-
name: '',
|
|
139
|
-
capabilities: ['coding'],
|
|
140
|
-
},
|
|
141
|
-
noCapabilities: {
|
|
142
|
-
type: 'coder',
|
|
143
|
-
name: 'Invalid Agent',
|
|
144
|
-
capabilities: [],
|
|
145
|
-
},
|
|
146
|
-
invalidType: {
|
|
147
|
-
type: 'invalid-type',
|
|
148
|
-
name: 'Invalid Agent',
|
|
149
|
-
capabilities: ['something'],
|
|
150
|
-
},
|
|
151
|
-
negativePriority: {
|
|
152
|
-
type: 'coder',
|
|
153
|
-
name: 'Invalid Agent',
|
|
154
|
-
capabilities: ['coding'],
|
|
155
|
-
priority: -1,
|
|
156
|
-
},
|
|
157
|
-
};
|
|
158
|
-
//# sourceMappingURL=agents.js.map
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* V3 Swarmdo Configuration Fixtures
|
|
3
|
-
*
|
|
4
|
-
* Test data for configuration testing
|
|
5
|
-
* Following London School principle of explicit test data
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Security configuration interface
|
|
9
|
-
*/
|
|
10
|
-
export interface SecurityConfig {
|
|
11
|
-
validation: {
|
|
12
|
-
maxInputSize: number;
|
|
13
|
-
allowedChars: RegExp;
|
|
14
|
-
sanitizeHtml: boolean;
|
|
15
|
-
};
|
|
16
|
-
paths: {
|
|
17
|
-
allowedDirectories: string[];
|
|
18
|
-
blockedPatterns: string[];
|
|
19
|
-
maxPathLength: number;
|
|
20
|
-
};
|
|
21
|
-
execution: {
|
|
22
|
-
shell: boolean;
|
|
23
|
-
timeout: number;
|
|
24
|
-
allowedCommands: string[];
|
|
25
|
-
blockedCommands: string[];
|
|
26
|
-
};
|
|
27
|
-
hashing: {
|
|
28
|
-
algorithm: 'argon2' | 'bcrypt' | 'scrypt';
|
|
29
|
-
memoryCost?: number;
|
|
30
|
-
timeCost?: number;
|
|
31
|
-
parallelism?: number;
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* Memory configuration interface
|
|
36
|
-
*/
|
|
37
|
-
export interface MemoryConfig {
|
|
38
|
-
backend: 'agentdb' | 'sqlite' | 'memory' | 'hybrid';
|
|
39
|
-
vectorDimensions: number;
|
|
40
|
-
hnswConfig: {
|
|
41
|
-
M: number;
|
|
42
|
-
efConstruction: number;
|
|
43
|
-
efSearch: number;
|
|
44
|
-
};
|
|
45
|
-
caching: {
|
|
46
|
-
enabled: boolean;
|
|
47
|
-
maxSize: number;
|
|
48
|
-
ttl: number;
|
|
49
|
-
};
|
|
50
|
-
quantization: {
|
|
51
|
-
enabled: boolean;
|
|
52
|
-
bits: 4 | 8;
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
/**
|
|
56
|
-
* Swarm configuration interface
|
|
57
|
-
*/
|
|
58
|
-
export interface SwarmConfig {
|
|
59
|
-
topology: 'hierarchical' | 'mesh' | 'adaptive' | 'hierarchical-mesh';
|
|
60
|
-
maxAgents: number;
|
|
61
|
-
coordination: {
|
|
62
|
-
consensusProtocol: 'raft' | 'pbft' | 'gossip';
|
|
63
|
-
heartbeatInterval: number;
|
|
64
|
-
electionTimeout: number;
|
|
65
|
-
};
|
|
66
|
-
communication: {
|
|
67
|
-
protocol: 'quic' | 'tcp' | 'websocket';
|
|
68
|
-
maxMessageSize: number;
|
|
69
|
-
retryAttempts: number;
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* MCP configuration interface
|
|
74
|
-
*/
|
|
75
|
-
export interface MCPConfig {
|
|
76
|
-
server: {
|
|
77
|
-
port: number;
|
|
78
|
-
host: string;
|
|
79
|
-
protocol: 'http' | 'https' | 'stdio';
|
|
80
|
-
};
|
|
81
|
-
connection: {
|
|
82
|
-
poolSize: number;
|
|
83
|
-
timeout: number;
|
|
84
|
-
keepAlive: boolean;
|
|
85
|
-
};
|
|
86
|
-
tools: {
|
|
87
|
-
enabled: string[];
|
|
88
|
-
disabled: string[];
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Performance configuration interface
|
|
93
|
-
*/
|
|
94
|
-
export interface PerformanceConfig {
|
|
95
|
-
targets: {
|
|
96
|
-
flashAttentionSpeedup: [number, number];
|
|
97
|
-
agentDBSearchImprovement: [number, number];
|
|
98
|
-
memoryReduction: number;
|
|
99
|
-
startupTime: number;
|
|
100
|
-
};
|
|
101
|
-
monitoring: {
|
|
102
|
-
enabled: boolean;
|
|
103
|
-
samplingRate: number;
|
|
104
|
-
metricsEndpoint?: string;
|
|
105
|
-
};
|
|
106
|
-
optimization: {
|
|
107
|
-
batchSize: number;
|
|
108
|
-
parallelism: number;
|
|
109
|
-
cacheStrategy: 'lru' | 'lfu' | 'arc';
|
|
110
|
-
};
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Pre-defined security configurations for testing
|
|
114
|
-
*/
|
|
115
|
-
export declare const securityConfigs: Record<string, SecurityConfig>;
|
|
116
|
-
/**
|
|
117
|
-
* Pre-defined memory configurations for testing
|
|
118
|
-
*/
|
|
119
|
-
export declare const memoryConfigs: Record<string, MemoryConfig>;
|
|
120
|
-
/**
|
|
121
|
-
* Pre-defined swarm configurations for testing
|
|
122
|
-
*/
|
|
123
|
-
export declare const swarmConfigs: Record<string, SwarmConfig>;
|
|
124
|
-
/**
|
|
125
|
-
* Pre-defined MCP configurations for testing
|
|
126
|
-
*/
|
|
127
|
-
export declare const mcpConfigs: Record<string, MCPConfig>;
|
|
128
|
-
/**
|
|
129
|
-
* Pre-defined performance configurations for testing
|
|
130
|
-
*/
|
|
131
|
-
export declare const performanceConfigs: Record<string, PerformanceConfig>;
|
|
132
|
-
/**
|
|
133
|
-
* Factory functions to create configurations with overrides
|
|
134
|
-
*/
|
|
135
|
-
export declare function createSecurityConfig(base: keyof typeof securityConfigs, overrides?: Partial<SecurityConfig>): SecurityConfig;
|
|
136
|
-
export declare function createMemoryConfig(base: keyof typeof memoryConfigs, overrides?: Partial<MemoryConfig>): MemoryConfig;
|
|
137
|
-
export declare function createSwarmConfigFromBase(base: keyof typeof swarmConfigs, overrides?: Partial<SwarmConfig>): SwarmConfig;
|
|
138
|
-
export declare function createMCPConfig(base: keyof typeof mcpConfigs, overrides?: Partial<MCPConfig>): MCPConfig;
|
|
139
|
-
export declare function createPerformanceConfig(base: keyof typeof performanceConfigs, overrides?: Partial<PerformanceConfig>): PerformanceConfig;
|
|
140
|
-
/**
|
|
141
|
-
* Invalid configurations for error testing
|
|
142
|
-
*/
|
|
143
|
-
export declare const invalidConfigs: {
|
|
144
|
-
security: {
|
|
145
|
-
negativeMaxInputSize: SecurityConfig;
|
|
146
|
-
emptyAllowedCommands: SecurityConfig;
|
|
147
|
-
};
|
|
148
|
-
memory: {
|
|
149
|
-
zeroDimensions: MemoryConfig;
|
|
150
|
-
invalidQuantization: MemoryConfig;
|
|
151
|
-
};
|
|
152
|
-
swarm: {
|
|
153
|
-
zeroAgents: SwarmConfig;
|
|
154
|
-
negativeHeartbeat: SwarmConfig;
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
//# sourceMappingURL=configurations.d.ts.map
|
|
@@ -1,337 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* V3 Swarmdo Configuration Fixtures
|
|
3
|
-
*
|
|
4
|
-
* Test data for configuration testing
|
|
5
|
-
* Following London School principle of explicit test data
|
|
6
|
-
*/
|
|
7
|
-
/**
|
|
8
|
-
* Pre-defined security configurations for testing
|
|
9
|
-
*/
|
|
10
|
-
export const securityConfigs = {
|
|
11
|
-
strict: {
|
|
12
|
-
validation: {
|
|
13
|
-
maxInputSize: 10000,
|
|
14
|
-
allowedChars: /^[a-zA-Z0-9._\-\s]+$/,
|
|
15
|
-
sanitizeHtml: true,
|
|
16
|
-
},
|
|
17
|
-
paths: {
|
|
18
|
-
allowedDirectories: ['./v3/', './src/', './tests/'],
|
|
19
|
-
blockedPatterns: ['../', '~/', '/etc/', '/tmp/', '/var/'],
|
|
20
|
-
maxPathLength: 255,
|
|
21
|
-
},
|
|
22
|
-
execution: {
|
|
23
|
-
shell: false,
|
|
24
|
-
timeout: 30000,
|
|
25
|
-
allowedCommands: ['npm', 'npx', 'node', 'git'],
|
|
26
|
-
blockedCommands: ['rm', 'del', 'format', 'dd', 'chmod', 'chown'],
|
|
27
|
-
},
|
|
28
|
-
hashing: {
|
|
29
|
-
algorithm: 'argon2',
|
|
30
|
-
memoryCost: 65536,
|
|
31
|
-
timeCost: 3,
|
|
32
|
-
parallelism: 4,
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
development: {
|
|
36
|
-
validation: {
|
|
37
|
-
maxInputSize: 50000,
|
|
38
|
-
allowedChars: /^[\x20-\x7E\n\r\t]+$/,
|
|
39
|
-
sanitizeHtml: false,
|
|
40
|
-
},
|
|
41
|
-
paths: {
|
|
42
|
-
allowedDirectories: ['./', './node_modules/'],
|
|
43
|
-
blockedPatterns: ['../', '~/'],
|
|
44
|
-
maxPathLength: 512,
|
|
45
|
-
},
|
|
46
|
-
execution: {
|
|
47
|
-
shell: false, // Security: Always disable shell to prevent injection
|
|
48
|
-
timeout: 60000,
|
|
49
|
-
allowedCommands: ['npm', 'npx', 'node', 'git', 'yarn', 'pnpm'],
|
|
50
|
-
blockedCommands: ['rm', 'rmdir', 'del', 'format', 'dd', 'chmod', 'chown', 'sudo', 'su'],
|
|
51
|
-
},
|
|
52
|
-
hashing: {
|
|
53
|
-
algorithm: 'bcrypt',
|
|
54
|
-
},
|
|
55
|
-
},
|
|
56
|
-
production: {
|
|
57
|
-
validation: {
|
|
58
|
-
maxInputSize: 5000,
|
|
59
|
-
allowedChars: /^[a-zA-Z0-9._\-]+$/,
|
|
60
|
-
sanitizeHtml: true,
|
|
61
|
-
},
|
|
62
|
-
paths: {
|
|
63
|
-
allowedDirectories: ['/app/'],
|
|
64
|
-
blockedPatterns: ['../', '~/', '/etc/', '/tmp/', '/var/', '/root/'],
|
|
65
|
-
maxPathLength: 200,
|
|
66
|
-
},
|
|
67
|
-
execution: {
|
|
68
|
-
shell: false,
|
|
69
|
-
timeout: 15000,
|
|
70
|
-
allowedCommands: ['node'],
|
|
71
|
-
blockedCommands: ['rm', 'del', 'format', 'dd', 'chmod', 'chown', 'sudo'],
|
|
72
|
-
},
|
|
73
|
-
hashing: {
|
|
74
|
-
algorithm: 'argon2',
|
|
75
|
-
memoryCost: 131072,
|
|
76
|
-
timeCost: 4,
|
|
77
|
-
parallelism: 4,
|
|
78
|
-
},
|
|
79
|
-
},
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* Pre-defined memory configurations for testing
|
|
83
|
-
*/
|
|
84
|
-
export const memoryConfigs = {
|
|
85
|
-
agentDB: {
|
|
86
|
-
backend: 'agentdb',
|
|
87
|
-
vectorDimensions: 384,
|
|
88
|
-
hnswConfig: {
|
|
89
|
-
M: 16,
|
|
90
|
-
efConstruction: 200,
|
|
91
|
-
efSearch: 50,
|
|
92
|
-
},
|
|
93
|
-
caching: {
|
|
94
|
-
enabled: true,
|
|
95
|
-
maxSize: 1000,
|
|
96
|
-
ttl: 3600000,
|
|
97
|
-
},
|
|
98
|
-
quantization: {
|
|
99
|
-
enabled: true,
|
|
100
|
-
bits: 8,
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
hybrid: {
|
|
104
|
-
backend: 'hybrid',
|
|
105
|
-
vectorDimensions: 384,
|
|
106
|
-
hnswConfig: {
|
|
107
|
-
M: 32,
|
|
108
|
-
efConstruction: 400,
|
|
109
|
-
efSearch: 100,
|
|
110
|
-
},
|
|
111
|
-
caching: {
|
|
112
|
-
enabled: true,
|
|
113
|
-
maxSize: 5000,
|
|
114
|
-
ttl: 7200000,
|
|
115
|
-
},
|
|
116
|
-
quantization: {
|
|
117
|
-
enabled: true,
|
|
118
|
-
bits: 4,
|
|
119
|
-
},
|
|
120
|
-
},
|
|
121
|
-
inMemory: {
|
|
122
|
-
backend: 'memory',
|
|
123
|
-
vectorDimensions: 384,
|
|
124
|
-
hnswConfig: {
|
|
125
|
-
M: 8,
|
|
126
|
-
efConstruction: 100,
|
|
127
|
-
efSearch: 25,
|
|
128
|
-
},
|
|
129
|
-
caching: {
|
|
130
|
-
enabled: false,
|
|
131
|
-
maxSize: 0,
|
|
132
|
-
ttl: 0,
|
|
133
|
-
},
|
|
134
|
-
quantization: {
|
|
135
|
-
enabled: false,
|
|
136
|
-
bits: 8,
|
|
137
|
-
},
|
|
138
|
-
},
|
|
139
|
-
};
|
|
140
|
-
/**
|
|
141
|
-
* Pre-defined swarm configurations for testing
|
|
142
|
-
*/
|
|
143
|
-
export const swarmConfigs = {
|
|
144
|
-
v3Default: {
|
|
145
|
-
topology: 'hierarchical-mesh',
|
|
146
|
-
maxAgents: 15,
|
|
147
|
-
coordination: {
|
|
148
|
-
consensusProtocol: 'raft',
|
|
149
|
-
heartbeatInterval: 1000,
|
|
150
|
-
electionTimeout: 5000,
|
|
151
|
-
},
|
|
152
|
-
communication: {
|
|
153
|
-
protocol: 'quic',
|
|
154
|
-
maxMessageSize: 1048576, // 1MB
|
|
155
|
-
retryAttempts: 3,
|
|
156
|
-
},
|
|
157
|
-
},
|
|
158
|
-
minimal: {
|
|
159
|
-
topology: 'mesh',
|
|
160
|
-
maxAgents: 5,
|
|
161
|
-
coordination: {
|
|
162
|
-
consensusProtocol: 'gossip',
|
|
163
|
-
heartbeatInterval: 2000,
|
|
164
|
-
electionTimeout: 10000,
|
|
165
|
-
},
|
|
166
|
-
communication: {
|
|
167
|
-
protocol: 'tcp',
|
|
168
|
-
maxMessageSize: 65536, // 64KB
|
|
169
|
-
retryAttempts: 5,
|
|
170
|
-
},
|
|
171
|
-
},
|
|
172
|
-
highPerformance: {
|
|
173
|
-
topology: 'adaptive',
|
|
174
|
-
maxAgents: 50,
|
|
175
|
-
coordination: {
|
|
176
|
-
consensusProtocol: 'pbft',
|
|
177
|
-
heartbeatInterval: 500,
|
|
178
|
-
electionTimeout: 3000,
|
|
179
|
-
},
|
|
180
|
-
communication: {
|
|
181
|
-
protocol: 'quic',
|
|
182
|
-
maxMessageSize: 4194304, // 4MB
|
|
183
|
-
retryAttempts: 2,
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
|
-
};
|
|
187
|
-
/**
|
|
188
|
-
* Pre-defined MCP configurations for testing
|
|
189
|
-
*/
|
|
190
|
-
export const mcpConfigs = {
|
|
191
|
-
development: {
|
|
192
|
-
server: {
|
|
193
|
-
port: 3000,
|
|
194
|
-
host: 'localhost',
|
|
195
|
-
protocol: 'http',
|
|
196
|
-
},
|
|
197
|
-
connection: {
|
|
198
|
-
poolSize: 10,
|
|
199
|
-
timeout: 30000,
|
|
200
|
-
keepAlive: true,
|
|
201
|
-
},
|
|
202
|
-
tools: {
|
|
203
|
-
enabled: ['*'],
|
|
204
|
-
disabled: [],
|
|
205
|
-
},
|
|
206
|
-
},
|
|
207
|
-
production: {
|
|
208
|
-
server: {
|
|
209
|
-
port: 443,
|
|
210
|
-
host: '0.0.0.0',
|
|
211
|
-
protocol: 'https',
|
|
212
|
-
},
|
|
213
|
-
connection: {
|
|
214
|
-
poolSize: 100,
|
|
215
|
-
timeout: 15000,
|
|
216
|
-
keepAlive: true,
|
|
217
|
-
},
|
|
218
|
-
tools: {
|
|
219
|
-
enabled: ['swarm_init', 'agent_spawn', 'task_orchestrate', 'memory_usage'],
|
|
220
|
-
disabled: ['debug_*', 'test_*'],
|
|
221
|
-
},
|
|
222
|
-
},
|
|
223
|
-
stdio: {
|
|
224
|
-
server: {
|
|
225
|
-
port: 0,
|
|
226
|
-
host: '',
|
|
227
|
-
protocol: 'stdio',
|
|
228
|
-
},
|
|
229
|
-
connection: {
|
|
230
|
-
poolSize: 1,
|
|
231
|
-
timeout: 60000,
|
|
232
|
-
keepAlive: false,
|
|
233
|
-
},
|
|
234
|
-
tools: {
|
|
235
|
-
enabled: ['*'],
|
|
236
|
-
disabled: [],
|
|
237
|
-
},
|
|
238
|
-
},
|
|
239
|
-
};
|
|
240
|
-
/**
|
|
241
|
-
* Pre-defined performance configurations for testing
|
|
242
|
-
*/
|
|
243
|
-
export const performanceConfigs = {
|
|
244
|
-
v3Targets: {
|
|
245
|
-
targets: {
|
|
246
|
-
flashAttentionSpeedup: [2.49, 7.47],
|
|
247
|
-
agentDBSearchImprovement: [150, 12500],
|
|
248
|
-
memoryReduction: 0.50,
|
|
249
|
-
startupTime: 500,
|
|
250
|
-
},
|
|
251
|
-
monitoring: {
|
|
252
|
-
enabled: true,
|
|
253
|
-
samplingRate: 0.1,
|
|
254
|
-
metricsEndpoint: '/metrics',
|
|
255
|
-
},
|
|
256
|
-
optimization: {
|
|
257
|
-
batchSize: 100,
|
|
258
|
-
parallelism: 4,
|
|
259
|
-
cacheStrategy: 'arc',
|
|
260
|
-
},
|
|
261
|
-
},
|
|
262
|
-
minimal: {
|
|
263
|
-
targets: {
|
|
264
|
-
flashAttentionSpeedup: [1.0, 2.0],
|
|
265
|
-
agentDBSearchImprovement: [10, 100],
|
|
266
|
-
memoryReduction: 0.25,
|
|
267
|
-
startupTime: 2000,
|
|
268
|
-
},
|
|
269
|
-
monitoring: {
|
|
270
|
-
enabled: false,
|
|
271
|
-
samplingRate: 0,
|
|
272
|
-
},
|
|
273
|
-
optimization: {
|
|
274
|
-
batchSize: 10,
|
|
275
|
-
parallelism: 1,
|
|
276
|
-
cacheStrategy: 'lru',
|
|
277
|
-
},
|
|
278
|
-
},
|
|
279
|
-
};
|
|
280
|
-
/**
|
|
281
|
-
* Factory functions to create configurations with overrides
|
|
282
|
-
*/
|
|
283
|
-
export function createSecurityConfig(base, overrides) {
|
|
284
|
-
return mergeDeep(securityConfigs[base], (overrides ?? {}));
|
|
285
|
-
}
|
|
286
|
-
export function createMemoryConfig(base, overrides) {
|
|
287
|
-
return mergeDeep(memoryConfigs[base], (overrides ?? {}));
|
|
288
|
-
}
|
|
289
|
-
export function createSwarmConfigFromBase(base, overrides) {
|
|
290
|
-
return mergeDeep(swarmConfigs[base], (overrides ?? {}));
|
|
291
|
-
}
|
|
292
|
-
export function createMCPConfig(base, overrides) {
|
|
293
|
-
return mergeDeep(mcpConfigs[base], (overrides ?? {}));
|
|
294
|
-
}
|
|
295
|
-
export function createPerformanceConfig(base, overrides) {
|
|
296
|
-
return mergeDeep(performanceConfigs[base], (overrides ?? {}));
|
|
297
|
-
}
|
|
298
|
-
/**
|
|
299
|
-
* Deep merge utility
|
|
300
|
-
*/
|
|
301
|
-
function mergeDeep(target, source) {
|
|
302
|
-
const output = { ...target };
|
|
303
|
-
for (const key of Object.keys(source)) {
|
|
304
|
-
const sourceValue = source[key];
|
|
305
|
-
if (sourceValue && typeof sourceValue === 'object' && !Array.isArray(sourceValue)) {
|
|
306
|
-
output[key] = mergeDeep(target[key] ?? {}, sourceValue);
|
|
307
|
-
}
|
|
308
|
-
else {
|
|
309
|
-
output[key] = sourceValue;
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
return output;
|
|
313
|
-
}
|
|
314
|
-
/**
|
|
315
|
-
* Invalid configurations for error testing
|
|
316
|
-
*/
|
|
317
|
-
export const invalidConfigs = {
|
|
318
|
-
security: {
|
|
319
|
-
negativeMaxInputSize: createSecurityConfig('strict', {
|
|
320
|
-
validation: { maxInputSize: -1, allowedChars: /.*/, sanitizeHtml: true },
|
|
321
|
-
}),
|
|
322
|
-
emptyAllowedCommands: createSecurityConfig('strict', {
|
|
323
|
-
execution: { shell: false, timeout: 1000, allowedCommands: [], blockedCommands: [] },
|
|
324
|
-
}),
|
|
325
|
-
},
|
|
326
|
-
memory: {
|
|
327
|
-
zeroDimensions: createMemoryConfig('agentDB', { vectorDimensions: 0 }),
|
|
328
|
-
invalidQuantization: createMemoryConfig('agentDB', { quantization: { enabled: true, bits: 16 } }),
|
|
329
|
-
},
|
|
330
|
-
swarm: {
|
|
331
|
-
zeroAgents: createSwarmConfigFromBase('v3Default', { maxAgents: 0 }),
|
|
332
|
-
negativeHeartbeat: createSwarmConfigFromBase('v3Default', {
|
|
333
|
-
coordination: { consensusProtocol: 'raft', heartbeatInterval: -100, electionTimeout: 5000 },
|
|
334
|
-
}),
|
|
335
|
-
},
|
|
336
|
-
};
|
|
337
|
-
//# sourceMappingURL=configurations.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* V3 Swarmdo Test Fixtures Index
|
|
3
|
-
*
|
|
4
|
-
* Central export for all test fixtures
|
|
5
|
-
*/
|
|
6
|
-
export * from './agent-fixtures.js';
|
|
7
|
-
export * from './memory-fixtures.js';
|
|
8
|
-
export * from './swarm-fixtures.js';
|
|
9
|
-
export * from './mcp-fixtures.js';
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* V3 Swarmdo Test Fixtures Index
|
|
3
|
-
*
|
|
4
|
-
* Central export for all test fixtures
|
|
5
|
-
*/
|
|
6
|
-
// Agent fixtures (comprehensive)
|
|
7
|
-
export * from './agent-fixtures.js';
|
|
8
|
-
// Memory fixtures (AgentDB, HNSW, ReasoningBank)
|
|
9
|
-
export * from './memory-fixtures.js';
|
|
10
|
-
// Swarm fixtures (topologies, coordination, consensus)
|
|
11
|
-
export * from './swarm-fixtures.js';
|
|
12
|
-
// MCP fixtures (tools, resources, prompts)
|
|
13
|
-
export * from './mcp-fixtures.js';
|
|
14
|
-
// Note: Legacy files (agents.js, tasks.js, memory-entries.js, configurations.js)
|
|
15
|
-
// are deprecated. Their contents have been merged into the comprehensive fixtures above.
|
|
16
|
-
// Import directly from the specific fixture files if needed.
|
|
17
|
-
//# sourceMappingURL=index.js.map
|