refactor
BREAKING
harmony
task/harmony-decompose
#4 / 13
refactor(harmony): Phase 9 — split CLI into package (shapes / handlers / args)
Convert muse/cli/commands/harmony.py (2493 lines) into a package:
harmony/__init__.py 55 lines — thin shim, re-exports register + all public names harmony/_shapes.py 531 lines — all JSON TypedDicts + serialisation helpers harmony/_handlers.py 1286 lines — all run_* handler functions harmony/_args.py 717 lines — register() + full CLI docstring
The old harmony.py is deleted; harmony/__init__.py re-exports every name the tests access via getattr(module, name) so all 707 tests continue to pass. Also removes stale 'import muse.core.harmony_engine as eng' from test_harmony_engine.py.
sha256:16ba4bc2efedd2002dc11ca20b3f35f4b2f89e3a1386147d85343f3fe1f6caef
sha
+162
~8
−69
symbols
sha256:7fa98a3fd0a9385bb8b74dae38303c24bf43ea4778be5fba1aad4376275210c9
snapshot
+162
symbols added
~8
symbols modified
−69
symbols removed
0
dead code introduced
Semantic Changes
239 symbols
+
_proposal_to_json
function
function _proposal_to_json L879–892 ← moved from muse/cli/commands/harmony/_shapes.py
+
_engine_resolve
import
import _engine_resolve L48–48 ← moved from muse/cli/commands/harmony/_shapes.py
+
sanitize_display
import
import sanitize_display L52–52 ← moved from muse/cli/commands/harmony/_shapes.py
+
run_escalations
function
function run_escalations L1178–1220 ← moved from muse/cli/commands/harmony/_shapes.py
+
run_forget
function
function run_forget L529–568 ← moved from muse/cli/commands/harmony/_shapes.py
+
run_policy_list
function
function run_policy_list L750–787 ← moved from muse/cli/commands/harmony/_shapes.py
+
run_policy_remove
function
function run_policy_remove L793–832 ← moved from muse/cli/commands/harmony/_shapes.py
~
muse/cli/commands/harmony/_shapes.py
.py
moved from muse/cli/commands/harmony.py; 1 added, 68 removed, 8 modified
−
_proposal_to_json
function
function _proposal_to_json L2070–2083 → moved to muse/cli/commands/harmony/_handlers.py
−
_engine_resolve
import
import _engine_resolve L192–192 → moved to muse/cli/commands/harmony/_handlers.py
−
require_repo
import
import require_repo L193–193 → moved to muse/cli/commands/harmony/_handlers.py
−
run_audit
function
function run_audit L2029–2064 → moved to muse/cli/commands/harmony/_handlers.py
−
run_escalations
function
function run_escalations L2384–2426 → moved to muse/cli/commands/harmony/_handlers.py
−
run_forget
function
function run_forget L1718–1757 → moved to muse/cli/commands/harmony/_handlers.py
−
run_policy_list
function
function run_policy_list L1941–1978 → moved to muse/cli/commands/harmony/_handlers.py
−
run_policy_remove
function
function run_policy_remove L1984–2023 → moved to muse/cli/commands/harmony/_handlers.py
~
Policy
Older
refactor(harmony): Phase 8 — extract escalations + engine into p…
sha256:340607e5ffa9f61ae5150b14dde6ebfa3085efe24cba3d01840a765e244f97f2
All commits
Newer
refactor(harmony): Phase 10 — comprehensive sweep
sha256:cec5c3479ed046a8401ac75bb88ccc1d73e34bced45d04fe85f760999039a897
0 comments
To add a comment, use the Muse CLI:
muse hub commit comment sha256:16ba4bc2efedd2002dc11ca20b3f35f4b2f89e3a1386147d85343f3fe1f6caef --body "your comment"
No comments yet. Be the first to start the discussion.