moflo 4.12.6 → 4.12.8
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-agent-rules.md +15 -0
- package/.claude/guidance/shipped/moflo-claude-swarm-cohesion.md +10 -2
- package/.claude/helpers/gate-hook.mjs +29 -1
- package/.claude/helpers/gate.cjs +143 -18
- package/.claude/skills/fl/SKILL.md +6 -4
- package/.claude/skills/fl/phases.md +59 -7
- package/README.md +4 -1
- package/bin/gate-hook.mjs +29 -1
- package/bin/gate.cjs +143 -18
- package/bin/lib/hook-io.mjs +19 -2
- package/bin/session-start-launcher.mjs +145 -12
- package/dist/src/cli/init/embedded-helpers.js +25 -0
- package/dist/src/cli/init/helpers-generator.js +71 -1366
- package/dist/src/cli/init/moflo-yaml-template.js +1 -0
- package/dist/src/cli/services/hook-wiring.js +6 -2
- package/dist/src/cli/version.js +1 -1
- package/package.json +4 -3
|
@@ -215,6 +215,7 @@ gates:
|
|
|
215
215
|
task_create_first: ${gates}
|
|
216
216
|
context_tracking: ${gates}
|
|
217
217
|
verify_before_done: true # Run /verify before 'gh pr create'. On by default; opt out with false or per-run --no-verify
|
|
218
|
+
task_status_gate: block # Open tasks stop 'gh pr create'. warn → report only; off → silent
|
|
218
219
|
|
|
219
220
|
# Auto-index on session start
|
|
220
221
|
auto_index:
|
|
@@ -77,7 +77,9 @@ export const REQUIRED_HOOK_WIRING = [
|
|
|
77
77
|
// listing it here made repairHookWiring() graft the hook back into every
|
|
78
78
|
// consumer on session start, undoing the removal.
|
|
79
79
|
{ event: 'PostToolUse', pattern: 'record-learnings-stored' },
|
|
80
|
-
|
|
80
|
+
// PreToolUse, not PostToolUse: #1132 moved it so its process.exit(2) actually
|
|
81
|
+
// prevents the read instead of reporting one that already happened.
|
|
82
|
+
{ event: 'PreToolUse', pattern: 'check-bash-memory' },
|
|
81
83
|
{ event: 'PostToolUse', pattern: 'record-test-run' },
|
|
82
84
|
// #1338 follow-up — CLI half of the #952 swarm/hive init recorders. Listed
|
|
83
85
|
// here so an existing consumer picks it up via repairHookWiring on session
|
|
@@ -157,7 +159,9 @@ export const HOOK_ENTRY_MAP = {
|
|
|
157
159
|
'record-learnings-stored': { event: 'PostToolUse', matcher: '^mcp__moflo__memory_store$', hook: { type: 'command', command: 'node "$CLAUDE_PROJECT_DIR/.claude/helpers/gate.cjs" record-learnings-stored', timeout: 2000 } },
|
|
158
160
|
// #1171 — widened to ^(Bash|PowerShell)$ so PS reads / PS-invoked tests credit
|
|
159
161
|
// the same gates as Bash. Name kept as `check-bash-memory` for backwards compat.
|
|
160
|
-
|
|
162
|
+
// PreToolUse since #1132: grafting it under PostToolUse — as this entry did —
|
|
163
|
+
// would repair a consumer into a gate that reports a read it can no longer stop.
|
|
164
|
+
'check-bash-memory': { event: 'PreToolUse', matcher: '^(Bash|PowerShell)$', hook: { type: 'command', command: 'node "$CLAUDE_PROJECT_DIR/.claude/helpers/gate-hook.mjs" check-bash-memory', timeout: 2000 } },
|
|
161
165
|
'record-test-run': { event: 'PostToolUse', matcher: '^(Bash|PowerShell)$', hook: { type: 'command', command: 'node "$CLAUDE_PROJECT_DIR/.claude/helpers/gate-hook.mjs" record-test-run', timeout: 2000 } },
|
|
162
166
|
// #1338 follow-up — same Bash/PowerShell PostToolUse block as record-test-run.
|
|
163
167
|
'record-bash-swarm-init': { event: 'PostToolUse', matcher: '^(Bash|PowerShell)$', hook: { type: 'command', command: 'node "$CLAUDE_PROJECT_DIR/.claude/helpers/gate-hook.mjs" record-bash-swarm-init', timeout: 2000 } },
|
package/dist/src/cli/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "moflo",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.8",
|
|
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",
|
|
@@ -60,7 +60,8 @@
|
|
|
60
60
|
"security:audit": "npm audit --omit=dev --audit-level high",
|
|
61
61
|
"security:fix": "npm audit fix",
|
|
62
62
|
"version": "node scripts/sync-version.mjs && git add src/cli/version.ts",
|
|
63
|
-
"flo": "node bin/cli.js"
|
|
63
|
+
"flo": "node bin/cli.js",
|
|
64
|
+
"generate:helpers": "node scripts/generate-embedded-helpers.mjs"
|
|
64
65
|
},
|
|
65
66
|
"dependencies": {
|
|
66
67
|
"@anush008/tokenizers": "^0.6.0",
|
|
@@ -98,7 +99,7 @@
|
|
|
98
99
|
"@typescript-eslint/parser": "^8.65.0",
|
|
99
100
|
"eslint": "^10.8.0",
|
|
100
101
|
"glob": "^11.1.0",
|
|
101
|
-
"moflo": "^4.12.
|
|
102
|
+
"moflo": "^4.12.7",
|
|
102
103
|
"tsx": "^4.21.0",
|
|
103
104
|
"typescript": "^5.9.3",
|
|
104
105
|
"vitest": "^4.0.0"
|