1bcoder 0.1.24__tar.gz → 0.1.25__tar.gz

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.
Files changed (162) hide show
  1. {1bcoder-0.1.24 → 1bcoder-0.1.25}/1bcoder.egg-info/PKG-INFO +1 -1
  2. {1bcoder-0.1.24 → 1bcoder-0.1.25}/1bcoder.egg-info/SOURCES.txt +4 -0
  3. {1bcoder-0.1.24 → 1bcoder-0.1.25}/PKG-INFO +1 -1
  4. 1bcoder-0.1.25/_bcoder_data/flows/__pycache__/deepagent_merge.cpython-311.pyc +0 -0
  5. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/__pycache__/deepagent_task.cpython-311.pyc +0 -0
  6. 1bcoder-0.1.25/_bcoder_data/flows/__pycache__/deepagent_translate.cpython-311.pyc +0 -0
  7. 1bcoder-0.1.25/_bcoder_data/flows/deepagent_merge.py +343 -0
  8. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/deepagent_task.py +44 -7
  9. 1bcoder-0.1.25/_bcoder_data/flows/deepagent_translate.py +483 -0
  10. {1bcoder-0.1.24 → 1bcoder-0.1.25}/pyproject.toml +1 -1
  11. {1bcoder-0.1.24 → 1bcoder-0.1.25}/1bcoder.egg-info/dependency_links.txt +0 -0
  12. {1bcoder-0.1.24 → 1bcoder-0.1.25}/1bcoder.egg-info/entry_points.txt +0 -0
  13. {1bcoder-0.1.24 → 1bcoder-0.1.25}/1bcoder.egg-info/requires.txt +0 -0
  14. {1bcoder-0.1.24 → 1bcoder-0.1.25}/1bcoder.egg-info/top_level.txt +0 -0
  15. {1bcoder-0.1.24 → 1bcoder-0.1.25}/LICENSE +0 -0
  16. {1bcoder-0.1.24 → 1bcoder-0.1.25}/README.md +0 -0
  17. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/__init__.py +0 -0
  18. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/agents/advance.txt +0 -0
  19. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/agents/ask.txt +0 -0
  20. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/agents/coder.txt +0 -0
  21. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/agents/codex.txt +0 -0
  22. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/agents/compact.txt +0 -0
  23. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/agents/concepts.txt +0 -0
  24. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/agents/fill.txt +0 -0
  25. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/agents/planning.txt +0 -0
  26. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/agents/scan.txt +0 -0
  27. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/agents/sqlite.txt +0 -0
  28. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/agents/terminator.txt +0 -0
  29. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/agents/websearch.txt +0 -0
  30. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/aliases.txt +0 -0
  31. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/ctxtimer/base_prompt.txt +0 -0
  32. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/deepagent_code/java_decompose.txt +0 -0
  33. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/deepagent_code/java_implement.txt +0 -0
  34. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/deepagent_code/js_decompose.txt +0 -0
  35. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/deepagent_code/js_implement.txt +0 -0
  36. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/deepagent_code/kt_decompose.txt +0 -0
  37. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/deepagent_code/kt_implement.txt +0 -0
  38. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/deepagent_code/mysql_decompose.txt +0 -0
  39. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/deepagent_code/mysql_implement.txt +0 -0
  40. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/deepagent_code/plsql_decompose.txt +0 -0
  41. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/deepagent_code/plsql_implement.txt +0 -0
  42. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/deepagent_code/py_decompose.txt +0 -0
  43. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/deepagent_code/py_implement.txt +0 -0
  44. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/deepagent_code/scala_decompose.txt +0 -0
  45. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/deepagent_code/scala_implement.txt +0 -0
  46. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/deepagent_code/sql_decompose.txt +0 -0
  47. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/deepagent_code/sql_implement.txt +0 -0
  48. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/doc/FLOWS.md +0 -0
  49. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/doc/MCP.md +0 -0
  50. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/doc/OLLAMA_SERVER_PARAM.md +0 -0
  51. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/doc/PARAM.md +0 -0
  52. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/doc/PROC.md +0 -0
  53. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/doc/TRANSLATE.md +0 -0
  54. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/__pycache__/commit_message.cpython-311.pyc +0 -0
  55. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/__pycache__/ctxtimer.cpython-311.pyc +0 -0
  56. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/__pycache__/deepagent.cpython-311.pyc +0 -0
  57. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/__pycache__/deepagent_code.cpython-311.pyc +0 -0
  58. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/__pycache__/deepagent_md.cpython-311.pyc +0 -0
  59. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/__pycache__/deepagent_spec.cpython-311.pyc +0 -0
  60. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/__pycache__/deepagent_test.cpython-311.pyc +0 -0
  61. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/__pycache__/deobfuscate.cpython-311.pyc +0 -0
  62. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/__pycache__/external_help.cpython-311.pyc +0 -0
  63. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/__pycache__/glossary.cpython-311.pyc +0 -0
  64. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/__pycache__/obfuscate.cpython-311.pyc +0 -0
  65. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/__pycache__/rag.cpython-311.pyc +0 -0
  66. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/__pycache__/scan.cpython-311.pyc +0 -0
  67. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/__pycache__/webcrawl.cpython-311.pyc +0 -0
  68. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/commit_message.py +0 -0
  69. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/compress.py +0 -0
  70. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/ctxtimer.py +0 -0
  71. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/deepagent.py +0 -0
  72. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/deepagent_code.py +0 -0
  73. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/deepagent_md.py +0 -0
  74. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/deepagent_spec.py +0 -0
  75. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/deepagent_test.py +0 -0
  76. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/deobfuscate.py +0 -0
  77. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/external_help.py +0 -0
  78. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/glossary.py +0 -0
  79. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/grounding.py +0 -0
  80. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/interview.py +0 -0
  81. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/obfuscate.py +0 -0
  82. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/py_error_trace.py +0 -0
  83. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/rag.py +0 -0
  84. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/scan.py +0 -0
  85. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/simargl_files.py +0 -0
  86. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/visual_search.py +0 -0
  87. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/webanalys.py +0 -0
  88. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/webask.py +0 -0
  89. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/webcrawl.py +0 -0
  90. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/flows/webindex.py +0 -0
  91. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/map.txt +0 -0
  92. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/action-required.py +0 -0
  93. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/add-save.py +0 -0
  94. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/assist.py +0 -0
  95. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/autobkup.py +0 -0
  96. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/autocheck.py +0 -0
  97. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/collect-files.py +0 -0
  98. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/ctx_cut.py +0 -0
  99. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/ctx_expand.py +0 -0
  100. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/extract-code.py +0 -0
  101. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/extract-files.py +0 -0
  102. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/extract-list.py +0 -0
  103. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/grounding-check.py +0 -0
  104. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/ladder.py +0 -0
  105. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/md.py +0 -0
  106. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/mdx.py +0 -0
  107. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/pattern-gate.py +0 -0
  108. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/regexp-extract.py +0 -0
  109. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/rude_words.py +0 -0
  110. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/scan-save.py +0 -0
  111. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/secret_check.py +0 -0
  112. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/sql_readonly_guard.py +0 -0
  113. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/proc/tempctx-cut.py +0 -0
  114. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/profiles.txt +0 -0
  115. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/prompts/analysis.txt +0 -0
  116. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/prompts/sumarise.txt +0 -0
  117. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/prompts.txt +0 -0
  118. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/AddFunction.txt +0 -0
  119. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/AskProject.txt +0 -0
  120. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/CheckRequirements.txt +0 -0
  121. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/DockerMySQL.txt +0 -0
  122. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/DockerNginx.txt +0 -0
  123. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/DockerPython.txt +0 -0
  124. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/DockerStack.txt +0 -0
  125. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/DuckDuckGoInstant.txt +0 -0
  126. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/EnvTemplate.txt +0 -0
  127. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/Explain.txt +0 -0
  128. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/ExploreProjectStructure.txt +0 -0
  129. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/GitIgnorePython.txt +0 -0
  130. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/MySQLDump.txt +0 -0
  131. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/NewScript.txt +0 -0
  132. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/PipFreeze.txt +0 -0
  133. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/PyPI.txt +0 -0
  134. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/Refactor.txt +0 -0
  135. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/RunAndFix.txt +0 -0
  136. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/SQLiteSchema.txt +0 -0
  137. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/Translate.txt +0 -0
  138. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/WikiPage.txt +0 -0
  139. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/WikiSearch.txt +0 -0
  140. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/auto-bkup.txt +0 -0
  141. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/edit-control.txt +0 -0
  142. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/parallel_call.txt +0 -0
  143. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/personal/content/create-regular-content.txt +0 -0
  144. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/personal/content/plan.txt +0 -0
  145. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/personal/test/collect-data-from-test-environment.txt +0 -0
  146. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/plan.txt +0 -0
  147. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/remote/create-content-on-remote-server.txt +0 -0
  148. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/set_ctx.txt +0 -0
  149. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/simargl-cli_index_files.txt +0 -0
  150. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/simargl-cli_index_units.txt +0 -0
  151. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/simargl-cli_search.txt +0 -0
  152. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/team-map-worker.txt +0 -0
  153. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/team-search-worker.txt +0 -0
  154. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/team-summarize.txt +0 -0
  155. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/team-tree-worker.txt +0 -0
  156. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/scripts/test.txt +0 -0
  157. {1bcoder-0.1.24 → 1bcoder-0.1.25}/_bcoder_data/teams/code-analysis.yaml +0 -0
  158. {1bcoder-0.1.24 → 1bcoder-0.1.25}/chat.py +0 -0
  159. {1bcoder-0.1.24 → 1bcoder-0.1.25}/map_index.py +0 -0
  160. {1bcoder-0.1.24 → 1bcoder-0.1.25}/map_query.py +0 -0
  161. {1bcoder-0.1.24 → 1bcoder-0.1.25}/setup.cfg +0 -0
  162. {1bcoder-0.1.24 → 1bcoder-0.1.25}/tests/test_utils.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: 1bcoder
3
- Version: 0.1.24
3
+ Version: 0.1.25
4
4
  Summary: AI coding assistant agent for 1B–7B local models (Ollama, LMStudio, llama.cpp). Terminal REPL with file editing, project map, agents, scripts, and parallel multi-model queries.
5
5
  Project-URL: Homepage, https://github.com/szholobetsky/1bcoder
6
6
  Project-URL: Repository, https://github.com/szholobetsky/1bcoder
@@ -56,9 +56,11 @@ _bcoder_data/flows/ctxtimer.py
56
56
  _bcoder_data/flows/deepagent.py
57
57
  _bcoder_data/flows/deepagent_code.py
58
58
  _bcoder_data/flows/deepagent_md.py
59
+ _bcoder_data/flows/deepagent_merge.py
59
60
  _bcoder_data/flows/deepagent_spec.py
60
61
  _bcoder_data/flows/deepagent_task.py
61
62
  _bcoder_data/flows/deepagent_test.py
63
+ _bcoder_data/flows/deepagent_translate.py
62
64
  _bcoder_data/flows/deobfuscate.py
63
65
  _bcoder_data/flows/external_help.py
64
66
  _bcoder_data/flows/glossary.py
@@ -79,9 +81,11 @@ _bcoder_data/flows/__pycache__/ctxtimer.cpython-311.pyc
79
81
  _bcoder_data/flows/__pycache__/deepagent.cpython-311.pyc
80
82
  _bcoder_data/flows/__pycache__/deepagent_code.cpython-311.pyc
81
83
  _bcoder_data/flows/__pycache__/deepagent_md.cpython-311.pyc
84
+ _bcoder_data/flows/__pycache__/deepagent_merge.cpython-311.pyc
82
85
  _bcoder_data/flows/__pycache__/deepagent_spec.cpython-311.pyc
83
86
  _bcoder_data/flows/__pycache__/deepagent_task.cpython-311.pyc
84
87
  _bcoder_data/flows/__pycache__/deepagent_test.cpython-311.pyc
88
+ _bcoder_data/flows/__pycache__/deepagent_translate.cpython-311.pyc
85
89
  _bcoder_data/flows/__pycache__/deobfuscate.cpython-311.pyc
86
90
  _bcoder_data/flows/__pycache__/external_help.cpython-311.pyc
87
91
  _bcoder_data/flows/__pycache__/glossary.cpython-311.pyc
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: 1bcoder
3
- Version: 0.1.24
3
+ Version: 0.1.25
4
4
  Summary: AI coding assistant agent for 1B–7B local models (Ollama, LMStudio, llama.cpp). Terminal REPL with file editing, project map, agents, scripts, and parallel multi-model queries.
5
5
  Project-URL: Homepage, https://github.com/szholobetsky/1bcoder
6
6
  Project-URL: Repository, https://github.com/szholobetsky/1bcoder
@@ -0,0 +1,343 @@
1
+ """deepagent_merge — fold one deepagent_md/spec/task plan tree into another,
2
+ renumbering the source's top-level IDs to continue right after the target's
3
+ own highest top-level ID.
4
+
5
+ No LLM calls — deterministic tree surgery, same "compiler not generator"
6
+ principle as deepagent_task.py. Useful when a later `deepagent_md` run for a
7
+ new feature (plan2) should really have been a continuation of an
8
+ already-in-progress plan (plan1): plan1's last top-level branch being "4"
9
+ means plan2's "1.1.1.1" becomes "5.1.1.1" once merged in.
10
+
11
+ ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
12
+ Usage:
13
+ /flow deepagent_merge <source_plan> -> <target_plan> [--apply] [--delete-source]
14
+
15
+ --apply actually write the merge (default is a dry-run report
16
+ only — the first flow in this codebase to default to
17
+ dry-run, since this is the first genuinely destructive
18
+ multi-file flow)
19
+ --delete-source after a successful --apply, remove the source plan's
20
+ three folders (planMD/spec/tasks). Off by default —
21
+ the source plan is left completely untouched unless
22
+ this is explicitly passed alongside --apply.
23
+
24
+ Only the FIRST dot-segment of every id ever changes (parent/child
25
+ relationships live entirely in the remaining segments, which stay literal),
26
+ so renumbering is one pure string-shift function, not an id->id dict:
27
+
28
+ _shift_id("1.1.1.4", offset=4) -> "5.1.1.4"
29
+
30
+ offset = target plan's current highest top-level id (0 if target is empty,
31
+ in which case the merge behaves like a straight copy). Every shifted id's
32
+ top segment is then strictly greater than every existing target id's top
33
+ segment, so collisions are structurally impossible.
34
+
35
+ What gets touched:
36
+ item_<id>.md copied + renamed; content never contains an id, so
37
+ no rewrite needed (confirmed against deepagent_md.py:
38
+ _read_file_title/_collect_node_ids never look inside
39
+ the body for structure)
40
+ spec_<id>.<i>.md re-written via deepagent_spec.py's own _write_spec()
41
+ with the shifted leaf id, so format fidelity is
42
+ guaranteed rather than hand-patched with regexes
43
+ refs.json "node" fields remapped and appended into target's
44
+ own refs.json (only if source used --ref)
45
+ tasks.md regenerated the same way deepagent_task.py already
46
+ does on every re-run (_build_rows over the now-
47
+ merged item/spec files), seeded with the source's
48
+ existing tags remapped onto their new ids, so
49
+ status/assignee/due/done survive the renumbering
50
+ instead of resetting to +backlog. Rows typed
51
+ directly into tasks.md with no backing item_<id>.md
52
+ or spec_<id>.<i>.md are preserved as-is (title,
53
+ tags, position) rather than silently dropped, and
54
+ they also count toward the offset — a manual "4"/
55
+ "4.1" in the target pushes the source to "5.x", not
56
+ a colliding "4.x"
57
+
58
+ What's deliberately left alone:
59
+ colors.md global across ALL plans already, never plan-keyed
60
+ dashboard_flow.md not a 1bcoder concept at all (Alkonost-only)
61
+ _deepagent_meta.yaml holds only generation-run metadata, no ids, and
62
+ there's no single correct way to merge two runs'
63
+ generation history — left untouched on both sides
64
+
65
+ Example:
66
+ /flow deepagent_merge plan2 -> plan1
67
+ /flow deepagent_merge plan2 -> plan1 --apply
68
+ /flow deepagent_merge plan2 -> plan1 --apply --delete-source
69
+ """
70
+ import os as _os
71
+ import re as _re
72
+ import json as _json
73
+ import shutil as _shutil
74
+
75
+
76
+ def _load(name: str, filename: str):
77
+ import importlib.util as _iu
78
+ here = _os.path.dirname(_os.path.abspath(__file__))
79
+ path = _os.path.join(here, filename)
80
+ spec = _iu.spec_from_file_location(name, path)
81
+ mod = _iu.module_from_spec(spec)
82
+ spec.loader.exec_module(mod)
83
+ return mod
84
+
85
+
86
+ _dmd = _load("_dmd", "deepagent_md.py")
87
+ _dspec = _load("_dspec", "deepagent_spec.py")
88
+ _dtask = _load("_dtask", "deepagent_task.py")
89
+
90
+ _SPEC_FILE_RE = _re.compile(r'^spec_(.+)\.(\d+)\.md$')
91
+
92
+
93
+ def _shift_id(old_id: str, offset: int) -> str:
94
+ parts = old_id.split(".")
95
+ parts[0] = str(int(parts[0]) + offset)
96
+ return ".".join(parts)
97
+
98
+
99
+ def _resolve_plan_dir(plan_name: str) -> str:
100
+ base = _os.path.join(_os.getcwd(), ".1bcoder", "planMD")
101
+ return plan_name if _os.path.isabs(plan_name) else _os.path.join(base, plan_name)
102
+
103
+
104
+ def _tasks_path_readonly(plan_dir: str) -> str:
105
+ """Same path _dtask._tasks_path would compute, without its side effect
106
+ of os.makedirs()-ing the tasks tree into existence — needed so a
107
+ dry-run report never touches disk."""
108
+ dot1bcoder = _os.path.dirname(_os.path.dirname(plan_dir))
109
+ plan_name = _os.path.basename(plan_dir)
110
+ return _os.path.join(dot1bcoder, "tasks", plan_name, "tasks.md")
111
+
112
+
113
+ def _parse_args(args: str):
114
+ do_apply = "--apply" in args
115
+ delete_source = "--delete-source" in args
116
+ rest = args.replace("--apply", "").replace("--delete-source", "")
117
+ if "->" not in rest:
118
+ return None
119
+ src, _, tgt = rest.partition("->")
120
+ src = src.strip().strip('"\'')
121
+ tgt = tgt.strip().strip('"\'')
122
+ if not src or not tgt:
123
+ return None
124
+ return src, tgt, do_apply, delete_source
125
+
126
+
127
+ def _list_spec_files(spec_dir: str) -> list:
128
+ """[(leaf_id, sec_index, filename), ...] for every spec_<leaf_id>.<i>.md
129
+ in spec_dir. leaf_id is dotted and captured greedily (correct even
130
+ though it contains dots itself, since sec_index is always the LAST
131
+ dot-segment, a plain integer, right before the .md extension)."""
132
+ if not _os.path.isdir(spec_dir):
133
+ return []
134
+ hits = []
135
+ for fname in _os.listdir(spec_dir):
136
+ m = _SPEC_FILE_RE.match(fname)
137
+ if m:
138
+ hits.append((m.group(1), int(m.group(2)), fname))
139
+ return hits
140
+
141
+
142
+ def _parse_full_tasks(tasks_path: str) -> dict:
143
+ """id -> (title, tags) for every existing row, title included — unlike
144
+ _dtask._parse_existing_tasks, which drops titles on purpose since
145
+ deepagent_task.py always refreshes them from a backing item/spec file.
146
+ Needed here because a row typed directly into tasks.md by hand (no
147
+ item_<id>.md or spec_<id>.<i>.md behind it) has no "current source" to
148
+ refresh a title from, and _collect_node_ids can't see it either — so
149
+ both the offset calculation and the tasks.md rewrite need to know about
150
+ these ids from tasks.md itself, not just from the file tree."""
151
+ result = {}
152
+ if not _os.path.isfile(tasks_path):
153
+ return result
154
+ with open(tasks_path, encoding="utf-8") as f:
155
+ for line in f:
156
+ m = _dtask._ROW_RE.match(line.strip())
157
+ if not m:
158
+ continue
159
+ task_id = m.group(2)
160
+ rest = m.group(3)
161
+ tm = _dtask._TAG_START_RE.search(rest)
162
+ if tm:
163
+ title, tags = rest[:tm.start(1)].strip(), rest[tm.start(1):].strip()
164
+ else:
165
+ title, tags = rest.strip(), ""
166
+ result[task_id] = (title, tags)
167
+ return result
168
+
169
+
170
+ def _parse_spec_title_body(path: str):
171
+ """(title, body) from an existing spec file — title is everything after
172
+ the first ':' on the title line (same loose match as deepagent_task.py's
173
+ own _SPEC_TITLE_RE), body is everything between the title line and the
174
+ trailing 'SOURCE:' line, matching _write_spec's own template exactly so
175
+ the round trip is faithful."""
176
+ with open(path, encoding="utf-8") as f:
177
+ lines = f.read().splitlines()
178
+ first_line = lines[0] if lines else ""
179
+ tm = _dtask._SPEC_TITLE_RE.match(first_line)
180
+ title = tm.group(1).strip() if tm else first_line.lstrip("#").strip()
181
+ body_lines = lines[1:]
182
+ while body_lines and (not body_lines[-1].strip() or body_lines[-1].startswith("SOURCE:")):
183
+ body_lines.pop()
184
+ return title, "\n".join(body_lines).strip()
185
+
186
+
187
+ def run(chat, args: str):
188
+ """Merge one deepagent_md/spec/task plan tree into another, renumbering top-level ids to continue after the target's own — dry-run by default."""
189
+ parsed = _parse_args(args)
190
+ if not parsed:
191
+ print("usage: /flow deepagent_merge <source_plan> -> <target_plan> [--apply] [--delete-source]")
192
+ return
193
+ source_name, target_name, do_apply, delete_source = parsed
194
+
195
+ source_dir = _resolve_plan_dir(source_name)
196
+ target_dir = _resolve_plan_dir(target_name)
197
+ if not _os.path.isdir(source_dir):
198
+ print(f"[deepagent_merge] source plan not found: {source_dir}")
199
+ return
200
+ if not _os.path.isdir(target_dir):
201
+ print(f"[deepagent_merge] target plan not found: {target_dir}")
202
+ return
203
+ if _os.path.normcase(_os.path.normpath(source_dir)) == _os.path.normcase(_os.path.normpath(target_dir)):
204
+ print("[deepagent_merge] source and target resolve to the same plan — nothing to merge")
205
+ return
206
+
207
+ source_ids = _dmd._collect_node_ids(source_dir)
208
+ target_ids = _dmd._collect_node_ids(target_dir)
209
+ if not source_ids:
210
+ print(f"[deepagent_merge] no nodes found in source plan: {source_dir}")
211
+ return
212
+
213
+ # offset must clear the highest top-level id used ANYWHERE in the
214
+ # target — not just ids backed by an item_<id>.md, but also any row
215
+ # typed directly into the target's tasks.md by hand (_collect_node_ids
216
+ # can't see those, since there's no file for them). Missing this let a
217
+ # real merge land a shifted "4.x" right on top of a manually-added "4"/
218
+ # "4.1" row that should have pushed the offset to include it.
219
+ target_tasks_full = _parse_full_tasks(_tasks_path_readonly(target_dir))
220
+ offset_candidates = [int(i) for i in _dmd._top_level_ids(target_ids)]
221
+ offset_candidates += [int(tid.split(".")[0]) for tid in target_tasks_full]
222
+ offset = max(offset_candidates, default=0)
223
+ id_pairs = sorted(
224
+ ((old, _shift_id(old, offset)) for old in source_ids),
225
+ key=lambda p: tuple(int(x) for x in p[0].split(".")),
226
+ )
227
+
228
+ collisions = [new_id for _old, new_id in id_pairs if new_id in target_ids]
229
+ if collisions:
230
+ print(f"[deepagent_merge] refusing to proceed — id collision(s) detected: {collisions}")
231
+ return
232
+
233
+ source_spec_dir = _dspec._default_spec_dir(source_dir)
234
+ target_spec_dir = _dspec._default_spec_dir(target_dir)
235
+ spec_files = _list_spec_files(source_spec_dir)
236
+
237
+ source_tasks_path = _tasks_path_readonly(source_dir)
238
+ source_tags = _dtask._parse_existing_tasks(source_tasks_path)
239
+ source_refs = _dmd._load_refs(source_dir)
240
+
241
+ target_rows_preview = _dtask._build_rows(target_dir, target_spec_dir)
242
+ target_row_ids_preview = {tid for tid, _t, _d in target_rows_preview}
243
+ manual_orphans = sorted(
244
+ (tid for tid in target_tasks_full if tid not in target_row_ids_preview),
245
+ key=lambda x: tuple(int(p) for p in x.split(".")),
246
+ )
247
+
248
+ print(f"[deepagent_merge] source : {source_dir}")
249
+ print(f"[deepagent_merge] target : {target_dir}")
250
+ print(f"[deepagent_merge] offset : +{offset} (target's highest top-level id, incl. manual tasks.md rows)")
251
+ print(f"[deepagent_merge] items : {len(id_pairs)} node(s)")
252
+ for old_id, new_id in id_pairs:
253
+ print(f"[deepagent_merge] {old_id} -> {new_id}")
254
+ print(f"[deepagent_merge] specs : {len(spec_files)} file(s)")
255
+ print(f"[deepagent_merge] refs : {len(source_refs)} entry(ies){' (none)' if not source_refs else ''}")
256
+ print(f"[deepagent_merge] tags : {len(source_tags)} existing task row(s) will carry their status/tags over")
257
+ if manual_orphans:
258
+ print(f"[deepagent_merge] manual : {len(manual_orphans)} tasks.md row(s) with no backing item/spec file will be preserved as-is: {manual_orphans}")
259
+
260
+ if not do_apply:
261
+ print("[deepagent_merge] DRY RUN — no changes written. Re-run with --apply to perform this merge.")
262
+ return
263
+
264
+ try:
265
+ # 1. item_<id>.md — pure copy + rename, content never contains an id
266
+ for old_id, new_id in id_pairs:
267
+ _shutil.copyfile(_dmd._item_path(source_dir, old_id), _dmd._item_path(target_dir, new_id))
268
+
269
+ # 2. refs.json — remap "node" fields, append into target's own list
270
+ if source_refs:
271
+ remapped = [{**r, "node": _shift_id(r["node"], offset)} for r in source_refs]
272
+ merged_refs = _dmd._load_refs(target_dir) + remapped
273
+ with open(_dmd._refs_path(target_dir), "w", encoding="utf-8") as f:
274
+ f.write(_json.dumps(merged_refs, ensure_ascii=False, indent=2))
275
+
276
+ # 3. spec_<id>.<i>.md — re-written via deepagent_spec's own writer
277
+ if spec_files:
278
+ _os.makedirs(target_spec_dir, exist_ok=True)
279
+ project = _dspec._project_name(target_dir)
280
+ for leaf_id, sec_index, fname in spec_files:
281
+ title, body = _parse_spec_title_body(_os.path.join(source_spec_dir, fname))
282
+ new_leaf_id = _shift_id(leaf_id, offset)
283
+ source_ref = f"item_{new_leaf_id}.md#{sec_index}"
284
+ _dspec._write_spec(target_spec_dir, project, new_leaf_id, sec_index, title, body, source_ref)
285
+
286
+ # 4. tasks.md — regenerated the same way deepagent_task.py's own
287
+ # run() does on every re-run, seeded with source's tags remapped
288
+ # onto their new ids so status/assignee/due/done survive, PLUS
289
+ # any target row with no backing item/spec file (typed directly
290
+ # into tasks.md by hand) re-appended as-is — _build_rows alone
291
+ # has no way to know those ids exist, so without this step they
292
+ # would silently vanish every time this rewrite runs.
293
+ target_tasks_path = _dtask._tasks_path(target_dir) # creates .1bcoder/tasks/<target>/ as needed
294
+ _dtask._ensure_colors_file(target_dir)
295
+ target_full = _parse_full_tasks(target_tasks_path)
296
+ target_existing = {tid: tags for tid, (_title, tags) in target_full.items()}
297
+ source_existing_shifted = {_shift_id(k, offset): v for k, v in source_tags.items()}
298
+ merged_existing = {**source_existing_shifted, **target_existing}
299
+
300
+ rows = _dtask._build_rows(target_dir, target_spec_dir)
301
+ row_ids = {tid for tid, _t, _d in rows}
302
+ orphan_ids = [tid for tid in target_full if tid not in row_ids]
303
+ for tid in orphan_ids:
304
+ orphan_title, _tags = target_full[tid]
305
+ rows.append((tid, orphan_title, tid.count(".") + 1))
306
+ rows.sort(key=lambda r: tuple(int(p) for p in r[0].split(".")))
307
+
308
+ lines = []
309
+ new_count = 0
310
+ for task_id, title, depth in rows:
311
+ if task_id in merged_existing:
312
+ tags = merged_existing[task_id]
313
+ else:
314
+ tags = _dtask._DEFAULT_TAGS
315
+ new_count += 1
316
+ mark = "x" if (m := _dtask._DONE_RE.search(tags)) and m.group(1) else " "
317
+ indent = " " * (depth - 1)
318
+ safe_title = _dtask._sanitize_title(title)
319
+ lines.append(f"{indent}[{mark}] {target_name}-{task_id}. {safe_title} {tags}".rstrip())
320
+ with open(target_tasks_path, "w", encoding="utf-8") as f:
321
+ f.write("\n".join(lines) + "\n")
322
+ except Exception as e:
323
+ print(f"[deepagent_merge] error during apply: {e}")
324
+ return
325
+
326
+ print(f"[deepagent_merge] merged {len(id_pairs)} node(s), {len(spec_files)} spec file(s) into {target_dir}")
327
+ print(f"[deepagent_merge] tasks.md rewritten: {target_tasks_path}")
328
+ if orphan_ids:
329
+ print(f"[deepagent_merge] preserved {len(orphan_ids)} manual tasks.md row(s) with no backing file: {sorted(orphan_ids)}")
330
+
331
+ if delete_source:
332
+ source_tasks_dir = _os.path.dirname(source_tasks_path)
333
+ removed = []
334
+ for d in (source_dir, source_spec_dir, source_tasks_dir):
335
+ if _os.path.isdir(d):
336
+ _shutil.rmtree(d)
337
+ removed.append(d)
338
+ if removed:
339
+ print("[deepagent_merge] --delete-source: removed")
340
+ for d in removed:
341
+ print(f"[deepagent_merge] {d}")
342
+ else:
343
+ print("[deepagent_merge] --delete-source: nothing to delete (source folders already absent)")
@@ -18,6 +18,15 @@ LEAF node expands one level deeper using its own spec_<leaf_id>.<i>.md
18
18
  files (if deepagent_spec has been run on it yet — if not, the leaf is just
19
19
  a childless row, same as any other, not an error).
20
20
 
21
+ planMD is NOT mandatory: if .1bcoder/planMD/<plan_name> doesn't exist
22
+ (deleted, or a plan that only ever had deepagent_spec run on it), the node
23
+ tree is instead derived from the spec directory's own filenames —
24
+ spec_<leaf_id>.<i>.md already encodes each leaf's full dotted id, so every
25
+ ancestor container id can be reconstructed from it. Container rows just
26
+ fall back to showing the bare id as their title (no item_<id>.md to read
27
+ one from). Only genuinely errors out if NEITHER planMD nor spec has
28
+ anything for this plan name.
29
+
21
30
  Row format (one line per task, 2-space indent per depth level), tag-based
22
31
  and order-independent — NOT positional fields (rejected that design: the
23
32
  first version used "; lane; status; assignee; date", replaced after
@@ -195,11 +204,37 @@ def _leaf_spec_children(spec_dir: str, leaf_id: str) -> list:
195
204
  return hits
196
205
 
197
206
 
207
+ _SPEC_LEAF_RE = _re.compile(r'^spec_([\d.]+)\.(\d+)\.md$')
208
+
209
+
210
+ def _collect_ids_from_spec(spec_dir: str) -> set:
211
+ """Fallback for when planMD/<plan> doesn't exist: derive the full node-id
212
+ set — every spec leaf plus every ancestor its dot-notation implies —
213
+ purely from spec_<leaf_id>.<sec_index>.md filenames. Container ids
214
+ picked up this way have no item_<id>.md; _read_file_title already
215
+ tolerates that (falls back to the bare id) so no other change needed."""
216
+ ids = set()
217
+ if not _os.path.isdir(spec_dir):
218
+ return ids
219
+ for fname in _os.listdir(spec_dir):
220
+ m = _SPEC_LEAF_RE.match(fname)
221
+ if not m:
222
+ continue
223
+ parts = m.group(1).split(".")
224
+ for i in range(1, len(parts) + 1):
225
+ ids.add(".".join(parts[:i]))
226
+ return ids
227
+
228
+
198
229
  def _build_rows(plan_dir: str, spec_dir: str) -> list:
199
230
  """[(id, title, depth), ...] — container nodes from item_<id>.md titles;
200
231
  each leaf additionally expands one level deeper using its own spec
201
- units, if any exist yet."""
202
- all_ids = _dmd._collect_node_ids(plan_dir)
232
+ units, if any exist yet. Falls back to _collect_ids_from_spec when
233
+ plan_dir (planMD) doesn't exist on disk."""
234
+ if _os.path.isdir(plan_dir):
235
+ all_ids = _dmd._collect_node_ids(plan_dir)
236
+ else:
237
+ all_ids = _collect_ids_from_spec(spec_dir)
203
238
  rows = []
204
239
  for item_id in sorted(all_ids, key=lambda x: tuple(int(p) for p in x.split("."))):
205
240
  depth = item_id.count(".") + 1
@@ -220,18 +255,20 @@ def run(chat, args: str):
220
255
 
221
256
  base = _os.path.join(_os.getcwd(), ".1bcoder", "planMD")
222
257
  plan_dir = plan_name if _os.path.isabs(plan_name) else _os.path.join(base, plan_name)
223
- if not _os.path.isdir(plan_dir):
224
- print(f"[deepagent_task] not found: {plan_dir}")
258
+ spec_dir = _dspec._default_spec_dir(plan_dir)
259
+ has_planmd = _os.path.isdir(plan_dir)
260
+
261
+ if not has_planmd and not _os.path.isdir(spec_dir):
262
+ print(f"[deepagent_task] not found: neither {plan_dir} nor {spec_dir} exist")
225
263
  return
226
264
 
227
- spec_dir = _dspec._default_spec_dir(plan_dir)
228
265
  tasks_path = _tasks_path(plan_dir)
229
266
  colors_path = _ensure_colors_file(plan_dir)
230
267
  existing = _parse_existing_tasks(tasks_path)
231
268
  rows = _build_rows(plan_dir, spec_dir)
232
269
 
233
270
  if not rows:
234
- print(f"[deepagent_task] no nodes found in {plan_dir}")
271
+ print(f"[deepagent_task] no nodes found in {plan_dir} or {spec_dir}")
235
272
  return
236
273
 
237
274
  lines = []
@@ -250,7 +287,7 @@ def run(chat, args: str):
250
287
  with open(tasks_path, "w", encoding="utf-8") as f:
251
288
  f.write("\n".join(lines) + "\n")
252
289
 
253
- print(f"[deepagent_task] plan : {plan_dir}")
290
+ print(f"[deepagent_task] plan : {plan_dir}{' (not found - using spec dir only)' if not has_planmd else ''}")
254
291
  print(f"[deepagent_task] specs : {spec_dir}")
255
292
  print(f"[deepagent_task] colors : {colors_path}")
256
293
  print(f"[deepagent_task] wrote {len(rows)} row(s) ({new_count} new) to {tasks_path}")