moflo 4.10.7 → 4.10.9
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/guidance/shipped/moflo-cli-reference.md +1 -1
- package/.claude/guidance/shipped/moflo-memory-strategy.md +1 -1
- package/.claude/guidance/shipped/moflo-yaml-reference.md +4 -4
- package/.claude/skills/memory-optimization/SKILL.md +1 -1
- package/.claude/skills/memory-patterns/SKILL.md +3 -3
- package/.claude/skills/vector-search/SKILL.md +2 -2
- package/README.md +5 -5
- package/bin/hooks.mjs +3 -2
- package/bin/index-all.mjs +3 -2
- package/bin/index-guidance.mjs +4 -4
- package/bin/lib/daemon-port.mjs +66 -0
- package/bin/lib/process-manager.mjs +3 -3
- package/dist/src/cli/commands/daemon.js +31 -10
- package/dist/src/cli/commands/doctor-checks-config.js +182 -10
- package/dist/src/cli/commands/doctor-fixes.js +208 -3
- package/dist/src/cli/commands/doctor-registry.js +16 -1
- package/dist/src/cli/commands/memory.js +8 -8
- package/dist/src/cli/commands/neural.js +8 -6
- package/dist/src/cli/config/moflo-config.js +68 -3
- package/dist/src/cli/index.js +18 -19
- package/dist/src/cli/init/moflo-yaml-template.js +1 -1
- package/dist/src/cli/mcp-server.js +59 -10
- package/dist/src/cli/mcp-tools/memory-tools.js +46 -27
- package/dist/src/cli/memory/auto-memory-bridge.js +1 -1
- package/dist/src/cli/memory/controllers/attestation-log.js +1 -1
- package/dist/src/cli/memory/controllers/causal-graph.js +1 -1
- package/dist/src/cli/memory/daemon-write-client.js +178 -49
- package/dist/src/cli/memory/database-provider.js +58 -3
- package/dist/src/cli/memory/intelligence.js +54 -26
- package/dist/src/cli/memory/memory-initializer.js +21 -11
- package/dist/src/cli/movector/model-router.js +1 -1
- package/dist/src/cli/movector/q-learning-router.js +2 -2
- package/dist/src/cli/services/daemon-dashboard.js +94 -25
- package/dist/src/cli/services/daemon-lock.js +390 -3
- package/dist/src/cli/services/daemon-port.js +252 -0
- package/dist/src/cli/version.js +1 -1
- package/package.json +2 -2
- package/dist/src/cli/config-adapter.js +0 -182
package/dist/src/cli/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "moflo",
|
|
3
|
-
"version": "4.10.
|
|
3
|
+
"version": "4.10.9",
|
|
4
4
|
"description": "MoFlo — AI agent orchestration for Claude Code. A standalone, opinionated toolkit with semantic memory, learned routing, gates, spells, and the /flo issue-execution skill.",
|
|
5
5
|
"main": "dist/src/cli/index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -95,7 +95,7 @@
|
|
|
95
95
|
"@typescript-eslint/eslint-plugin": "^7.18.0",
|
|
96
96
|
"@typescript-eslint/parser": "^7.18.0",
|
|
97
97
|
"eslint": "^8.0.0",
|
|
98
|
-
"moflo": "^4.10.
|
|
98
|
+
"moflo": "^4.10.8",
|
|
99
99
|
"tsx": "^4.21.0",
|
|
100
100
|
"typescript": "^5.9.3",
|
|
101
101
|
"vitest": "^4.0.0"
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Configuration Adapter
|
|
3
|
-
* Converts between SystemConfig and V3Config types
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Convert SystemConfig to V3Config (CLI-specific format)
|
|
7
|
-
*/
|
|
8
|
-
export function systemConfigToV3Config(systemConfig) {
|
|
9
|
-
return {
|
|
10
|
-
version: '3.0.0',
|
|
11
|
-
projectRoot: systemConfig.orchestrator?.session?.dataDir || process.cwd(),
|
|
12
|
-
// Agent configuration
|
|
13
|
-
agents: {
|
|
14
|
-
defaultType: 'coder',
|
|
15
|
-
autoSpawn: false, // Not in SystemConfig
|
|
16
|
-
maxConcurrent: systemConfig.orchestrator?.lifecycle?.maxConcurrentAgents ?? 15,
|
|
17
|
-
timeout: systemConfig.orchestrator?.lifecycle?.spawnTimeout ?? 300000,
|
|
18
|
-
providers: [],
|
|
19
|
-
},
|
|
20
|
-
// Swarm configuration
|
|
21
|
-
swarm: {
|
|
22
|
-
topology: normalizeTopology(systemConfig.swarm?.topology),
|
|
23
|
-
maxAgents: systemConfig.swarm?.maxAgents ?? 15,
|
|
24
|
-
autoScale: systemConfig.swarm?.autoScale?.enabled ?? false,
|
|
25
|
-
coordinationStrategy: systemConfig.swarm?.coordination?.consensusRequired ? 'consensus' : 'leader',
|
|
26
|
-
healthCheckInterval: systemConfig.swarm?.coordination?.timeoutMs ?? 10000,
|
|
27
|
-
},
|
|
28
|
-
// Memory configuration
|
|
29
|
-
memory: {
|
|
30
|
-
backend: normalizeMemoryBackend(systemConfig.memory?.type),
|
|
31
|
-
persistPath: systemConfig.memory?.path || './data/memory',
|
|
32
|
-
cacheSize: systemConfig.memory?.maxSize ?? 1000000,
|
|
33
|
-
enableHNSW: systemConfig.memory?.agentdb?.indexType === 'hnsw',
|
|
34
|
-
vectorDimension: systemConfig.memory?.agentdb?.dimensions ?? 1536,
|
|
35
|
-
},
|
|
36
|
-
// MCP configuration (only stdio transport is supported)
|
|
37
|
-
mcp: {
|
|
38
|
-
autoStart: false, // Not in SystemConfig
|
|
39
|
-
transportType: 'stdio',
|
|
40
|
-
tools: [], // Not in SystemConfig
|
|
41
|
-
},
|
|
42
|
-
// CLI preferences
|
|
43
|
-
cli: {
|
|
44
|
-
colorOutput: true,
|
|
45
|
-
interactive: true,
|
|
46
|
-
verbosity: 'normal',
|
|
47
|
-
outputFormat: 'text',
|
|
48
|
-
progressStyle: 'spinner',
|
|
49
|
-
},
|
|
50
|
-
// Hooks configuration
|
|
51
|
-
hooks: {
|
|
52
|
-
enabled: false,
|
|
53
|
-
autoExecute: false,
|
|
54
|
-
hooks: [],
|
|
55
|
-
},
|
|
56
|
-
};
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* Convert V3Config to SystemConfig
|
|
60
|
-
*/
|
|
61
|
-
export function v3ConfigToSystemConfig(v3Config) {
|
|
62
|
-
return {
|
|
63
|
-
orchestrator: {
|
|
64
|
-
lifecycle: {
|
|
65
|
-
maxConcurrentAgents: v3Config.agents.maxConcurrent,
|
|
66
|
-
spawnTimeout: v3Config.agents.timeout,
|
|
67
|
-
terminateTimeout: 10000,
|
|
68
|
-
maxSpawnRetries: 3,
|
|
69
|
-
},
|
|
70
|
-
session: {
|
|
71
|
-
dataDir: v3Config.projectRoot,
|
|
72
|
-
persistSessions: true,
|
|
73
|
-
sessionRetentionMs: 3600000,
|
|
74
|
-
},
|
|
75
|
-
health: {
|
|
76
|
-
checkInterval: v3Config.swarm.healthCheckInterval,
|
|
77
|
-
historyLimit: 100,
|
|
78
|
-
degradedThreshold: 1,
|
|
79
|
-
unhealthyThreshold: 2,
|
|
80
|
-
},
|
|
81
|
-
},
|
|
82
|
-
swarm: {
|
|
83
|
-
topology: denormalizeTopology(v3Config.swarm.topology),
|
|
84
|
-
maxAgents: v3Config.swarm.maxAgents,
|
|
85
|
-
autoScale: {
|
|
86
|
-
enabled: v3Config.swarm.autoScale,
|
|
87
|
-
minAgents: 1,
|
|
88
|
-
maxAgents: v3Config.swarm.maxAgents,
|
|
89
|
-
scaleUpThreshold: 0.8,
|
|
90
|
-
scaleDownThreshold: 0.3,
|
|
91
|
-
},
|
|
92
|
-
coordination: {
|
|
93
|
-
consensusRequired: v3Config.swarm.coordinationStrategy === 'consensus',
|
|
94
|
-
timeoutMs: v3Config.swarm.healthCheckInterval,
|
|
95
|
-
retryPolicy: {
|
|
96
|
-
maxRetries: 3,
|
|
97
|
-
backoffMs: 500,
|
|
98
|
-
},
|
|
99
|
-
},
|
|
100
|
-
communication: {
|
|
101
|
-
protocol: 'events',
|
|
102
|
-
batchSize: 10,
|
|
103
|
-
flushIntervalMs: 100,
|
|
104
|
-
},
|
|
105
|
-
},
|
|
106
|
-
memory: {
|
|
107
|
-
type: denormalizeMemoryBackend(v3Config.memory.backend),
|
|
108
|
-
path: v3Config.memory.persistPath,
|
|
109
|
-
maxSize: v3Config.memory.cacheSize,
|
|
110
|
-
agentdb: {
|
|
111
|
-
dimensions: v3Config.memory.vectorDimension,
|
|
112
|
-
indexType: v3Config.memory.enableHNSW ? 'hnsw' : 'flat',
|
|
113
|
-
efConstruction: 200,
|
|
114
|
-
m: 16,
|
|
115
|
-
quantization: 'none',
|
|
116
|
-
},
|
|
117
|
-
},
|
|
118
|
-
mcp: {
|
|
119
|
-
name: 'moflo',
|
|
120
|
-
version: '3.0.0',
|
|
121
|
-
transport: {
|
|
122
|
-
type: 'stdio',
|
|
123
|
-
},
|
|
124
|
-
capabilities: {
|
|
125
|
-
tools: true,
|
|
126
|
-
resources: true,
|
|
127
|
-
prompts: true,
|
|
128
|
-
logging: true,
|
|
129
|
-
},
|
|
130
|
-
},
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Normalize topology from SystemConfig to V3Config
|
|
135
|
-
*/
|
|
136
|
-
function normalizeTopology(topology) {
|
|
137
|
-
switch (topology) {
|
|
138
|
-
case 'hierarchical':
|
|
139
|
-
case 'mesh':
|
|
140
|
-
case 'ring':
|
|
141
|
-
case 'star':
|
|
142
|
-
case 'hybrid':
|
|
143
|
-
case 'hierarchical-mesh':
|
|
144
|
-
return topology;
|
|
145
|
-
case 'adaptive':
|
|
146
|
-
return 'hybrid';
|
|
147
|
-
default:
|
|
148
|
-
return 'hierarchical';
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Denormalize topology from V3Config to SystemConfig
|
|
153
|
-
*/
|
|
154
|
-
function denormalizeTopology(topology) {
|
|
155
|
-
if (topology === 'hybrid') {
|
|
156
|
-
return 'hierarchical-mesh';
|
|
157
|
-
}
|
|
158
|
-
return topology;
|
|
159
|
-
}
|
|
160
|
-
/**
|
|
161
|
-
* Normalize memory backend from SystemConfig to V3Config
|
|
162
|
-
*/
|
|
163
|
-
function normalizeMemoryBackend(backend) {
|
|
164
|
-
switch (backend) {
|
|
165
|
-
case 'memory':
|
|
166
|
-
case 'sqlite':
|
|
167
|
-
case 'agentdb':
|
|
168
|
-
case 'hybrid':
|
|
169
|
-
return backend;
|
|
170
|
-
case 'redis':
|
|
171
|
-
return 'memory'; // Redis maps to memory for CLI purposes
|
|
172
|
-
default:
|
|
173
|
-
return 'hybrid';
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* Denormalize memory backend from V3Config to SystemConfig
|
|
178
|
-
*/
|
|
179
|
-
function denormalizeMemoryBackend(backend) {
|
|
180
|
-
return backend;
|
|
181
|
-
}
|
|
182
|
-
//# sourceMappingURL=config-adapter.js.map
|