Created console debug functions, refreshed documentations, fix issue with nonmap command execution, test separation and trimming.#11
Merged
Conversation
…with nonmap command execution, test separation and trimming.
SerhiiRI
force-pushed
the
feat/console-debug-and-update-documentation
branch
from
March 21, 2026 22:14
60946d0 to
e926ebb
Compare
…e with stub components. integrant , component are now fully testable from repl
SerhiiRI
force-pushed
the
feat/console-debug-and-update-documentation
branch
from
March 21, 2026 22:17
e926ebb to
4245912
Compare
Kaspazza
reviewed
Mar 29, 2026
Kaspazza
approved these changes
Mar 29, 2026
Contributor
Author
|
Somewhere in documentation we need to place sentance "There are not allowed two commands in one map level" . Practice shown that AI trying to organize two commands in one map :commando/mutation + :commando/from for example |
…zations, execute config map, updated docs and tests BREAKING execute 3rd arg is now config map instead of binding. Removed :all-inside-recur and :point-and-all-inside-recur dependency modes. Removed print-stats/print-trace from utils. Changed execute-trace signature. ADDED commando.debug namespace — execute-debug with 6 display modes, execute-trace for nested call tracing. ADDED commando.impl.pathtrie — trie for O(depth) command lookup, built during find-commands pass. ADDED status-map keys: :internal/cm-results, :internal/path-trie, :internal/original-instruction. OPTIMIZED find-commands (transient queue + set), execute-commands (transient results, index loop), build-dependency-graph (trie-based, transients), topological-sort (transient maps/queue), CommandMapPath (cached hash), Malli validation (pre-computed validators). FIXED execute-command-impl guard for non-map command-data. Fixed point dependency error data. UPDATED resolve-relative-path and find-anchor-path refactored to loop. Updated README, docs, tests split and .cljc conversion.
…ning about replacemnt for deftype constructor ->CommandMapPath
- REMOVED `full-execute` pipeline and integrated it into the execute. - REFACTORED vector-starts-with? -> coll-starts-with?. Make function bit more understandable with right argument and examples. - UPDATED make error handling functionality public.
- REFACTORED align comment separator sections - UPDATE debug.cljc better code separation, remove unncessary docs(update public functions), simplify entrypoint doclaration - FIXED README.md + CHANGELOG issues
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ADDED
commando.debugnamespace — new dedicated module for debug visualization. Provides two main entry points:execute-debug— execute an instruction and visualize it in one of six display modes::tree,:table,:graph,:stats,:instr-before/:instr-after. Supports combining multiple modes via a vector.execute-trace— trace all nestedcommando/executecalls.REMOVED BREAKING
print-stats,print-trace(print-deep-stats) fromcommando.impl.utils. These functions have been replaced by the richercommando.debugnamespace.FIXED
crop-final-status-mapincommando.core— internal keys (:internal/cm-list,:internal/cm-dependency,:internal/cm-running-order,:registry) are now properly stripped from the result when:debug-resultis not enabled.FIXED
execute-command-implincommando.impl.executing— added guard for non-mapcommand-databefore callingdissocon driver keys (:=>,"=>), preventing errors when command data is a non-map value.UPDATED documentation — restructured
README.mdwith improved navigation, added "Managing the Registry" and "Debugging" sections. Moved doc files fromdoc/toexamples/directory with richer, runnable code examples:walkthrough.clj,integrant.clj,json.clj,reitit.clj,reagent_front.cljs.UPDATED tests — split monolithic
core_test.cljcinto focused test namespaces:dependency_test.cljc,finding_commands_test.cljc,graph_test.cljc. Addeddebug_test.cljcfor the new debug module. Updated performance tests.@Kaspazza i've added debug_test, it's just smoke test for visual check. Nothing more.