1bcoder 0.1.26__tar.gz → 0.1.28__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.
- {1bcoder-0.1.26 → 1bcoder-0.1.28/1bcoder.egg-info}/PKG-INFO +65 -9
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/1bcoder.egg-info/SOURCES.txt +3 -0
- 1bcoder-0.1.26/README.md → 1bcoder-0.1.28/PKG-INFO +1948 -1877
- 1bcoder-0.1.26/1bcoder.egg-info/PKG-INFO → 1bcoder-0.1.28/README.md +1933 -1892
- 1bcoder-0.1.28/_bcoder_data/proc/expr_gate.py +66 -0
- 1bcoder-0.1.28/_bcoder_data/prompts.txt +2 -0
- 1bcoder-0.1.28/_bcoder_data/scripts/SqlSelectGate.txt +9 -0
- 1bcoder-0.1.28/_bcoder_data/scripts/SystemQueryRouter.txt +17 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/chat.py +405 -62
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/pyproject.toml +1 -1
- 1bcoder-0.1.26/_bcoder_data/prompts.txt +0 -1
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/1bcoder.egg-info/dependency_links.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/1bcoder.egg-info/entry_points.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/1bcoder.egg-info/requires.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/1bcoder.egg-info/top_level.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/LICENSE +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/__init__.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/agents/advance.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/agents/ask.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/agents/coder.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/agents/codex.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/agents/compact.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/agents/concepts.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/agents/fill.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/agents/planning.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/agents/research.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/agents/scan.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/agents/sqlite.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/agents/terminator.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/agents/websearch.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/aliases.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/ctxtimer/base_prompt.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/deepagent_code/java_decompose.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/deepagent_code/java_implement.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/deepagent_code/js_decompose.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/deepagent_code/js_implement.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/deepagent_code/kt_decompose.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/deepagent_code/kt_implement.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/deepagent_code/mysql_decompose.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/deepagent_code/mysql_implement.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/deepagent_code/plsql_decompose.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/deepagent_code/plsql_implement.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/deepagent_code/py_decompose.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/deepagent_code/py_implement.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/deepagent_code/scala_decompose.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/deepagent_code/scala_implement.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/deepagent_code/sql_decompose.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/deepagent_code/sql_implement.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/doc/FLOWS.md +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/doc/MCP.md +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/doc/OLLAMA_SERVER_PARAM.md +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/doc/PARAM.md +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/doc/PROC.md +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/doc/TRANSLATE.md +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/commit_message.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/ctxtimer.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/deepagent.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/deepagent_architect.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/deepagent_code.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/deepagent_md.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/deepagent_merge.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/deepagent_spec.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/deepagent_task.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/deepagent_test.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/deepagent_translate.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/deobfuscate.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/external_help.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/glossary.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/history.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/obfuscate.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/rag.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/scan.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/__pycache__/webcrawl.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/commit_message.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/compress.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/ctxtimer.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/deepagent.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/deepagent_architect.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/deepagent_code.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/deepagent_md.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/deepagent_merge.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/deepagent_spec.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/deepagent_task.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/deepagent_test.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/deepagent_translate.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/deobfuscate.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/external_help.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/glossary.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/grounding.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/history.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/interview.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/obfuscate.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/py_error_trace.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/rag.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/scan.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/simargl_files.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/visual_search.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/webanalys.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/webask.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/webcrawl.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/flows/webindex.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/map.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/__pycache__/radogast-gate.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/__pycache__/tool-allowlist-gate.cpython-311.pyc +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/action-required.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/add-save.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/assist.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/autobkup.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/autocheck.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/collect-files.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/ctx_cut.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/ctx_expand.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/extract-code.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/extract-files.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/extract-list.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/grounding-check.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/ladder.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/md.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/mdx.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/pattern-gate.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/radogast-gate.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/regexp-extract.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/rude_words.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/scan-save.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/secret_check.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/sql_readonly_guard.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/tempctx-cut.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/proc/tool-allowlist-gate.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/profiles.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/prompts/analysis.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/prompts/sumarise.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/AddFunction.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/AskProject.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/CheckRequirements.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/DockerMySQL.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/DockerNginx.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/DockerPython.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/DockerStack.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/DuckDuckGoInstant.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/EnvTemplate.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/Explain.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/ExploreProjectStructure.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/GitIgnorePython.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/MySQLDump.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/NewScript.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/PipFreeze.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/PyPI.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/Refactor.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/RunAndFix.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/SQLiteSchema.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/Translate.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/WikiPage.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/WikiSearch.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/auto-bkup.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/deepagent_implement.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/deepagent_loop.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/deepagent_next.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/deepagent_plan.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/deepagent_spec_task.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/edit-control.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/parallel_call.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/personal/content/create-regular-content.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/personal/content/plan.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/personal/test/collect-data-from-test-environment.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/plan.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/remote/create-content-on-remote-server.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/set_ctx.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/simargl-cli_index_files.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/simargl-cli_index_units.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/simargl-cli_search.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/team-map-worker.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/team-search-worker.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/team-summarize.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/team-tree-worker.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/scripts/test.txt +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/_bcoder_data/teams/code-analysis.yaml +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/map_index.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/map_query.py +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/setup.cfg +0 -0
- {1bcoder-0.1.26 → 1bcoder-0.1.28}/tests/test_utils.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: 1bcoder
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.28
|
|
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
|
|
@@ -974,7 +974,8 @@ Aliases are loaded at startup from the global `aliases.txt` then the project-loc
|
|
|
974
974
|
### Scripts
|
|
975
975
|
|
|
976
976
|
Scripts are `.txt` files containing one command per line, stored in `.1bcoder/scripts/`.
|
|
977
|
-
Lines starting with
|
|
977
|
+
Lines starting with `#` are comments and skipped. Scripts can branch and loop using labels
|
|
978
|
+
and `GATE:` — see [Labels, branching, and loops](#labels-branching-and-loops-label-gate) below.
|
|
978
979
|
|
|
979
980
|
| Command | Description |
|
|
980
981
|
|---|---|
|
|
@@ -983,15 +984,15 @@ Lines starting with `[v]` are already done and skipped. Lines starting with `#`
|
|
|
983
984
|
| `/script open <N>` | Load script by number directly — shows the list but skips the prompt |
|
|
984
985
|
| `/script create [path]` | Create a new empty script |
|
|
985
986
|
| `/script create ctx [path]` | **Create script from this session's command history** |
|
|
986
|
-
| `/script show` | Display
|
|
987
|
-
| `/script add <command>` | Append a
|
|
987
|
+
| `/script show` | Display lines of the current script; `>` marks the current resume position |
|
|
988
|
+
| `/script add <command>` | Append a line to the current script |
|
|
988
989
|
| `/script clear` | Wipe current script completely |
|
|
989
|
-
| `/script reset` |
|
|
990
|
-
| `/script reapply [key=value ...]` |
|
|
990
|
+
| `/script reset` | Clear the saved resume position (start over from the top next run) |
|
|
991
|
+
| `/script reapply [key=value ...]` | Clear the resume position then apply automatically; prompts for any NaN `{{variables}}` before running |
|
|
991
992
|
| `/script refresh` | Reload script from disk and show contents |
|
|
992
|
-
| `/script run <file> [key=value ...]` | **Run all
|
|
993
|
-
| `/script apply [file] [key=value ...]` | Run
|
|
994
|
-
| `/script apply -y [file] [key=value ...]` | Run all
|
|
993
|
+
| `/script run <file> [key=value ...]` | **Run all lines automatically** — shorthand for `apply -y`; always starts fresh, ignoring any saved resume position |
|
|
994
|
+
| `/script apply [file] [key=value ...]` | Run lines one by one (Y/n/q per step); resumes from the last position if the script was interrupted |
|
|
995
|
+
| `/script apply -y [file] [key=value ...]` | Run all lines automatically; resumes from the last position if present |
|
|
995
996
|
|
|
996
997
|
**`/script create ctx`** captures all work commands typed this session (`/read`, `/edit`, `/fim`, `/fix`, `/patch`, `/run`, `/save`, `/bkup`, `/map`, `/model`, `/host`) into a ready-to-run plan:
|
|
997
998
|
|
|
@@ -1025,6 +1026,61 @@ Run a script non-interactively from the command line:
|
|
|
1025
1026
|
1bcoder --model llama3.2:1b --scriptapply my-fixes.txt --param file=calc.py
|
|
1026
1027
|
```
|
|
1027
1028
|
|
|
1029
|
+
#### Labels, branching, and loops (`:LABEL`, `GATE:`)
|
|
1030
|
+
|
|
1031
|
+
A script isn't limited to a straight top-to-bottom list — a label plus one conditional-jump
|
|
1032
|
+
instruction gives it branching and loops, no Python required for the common case:
|
|
1033
|
+
|
|
1034
|
+
- **`:LABEL`** — a bare line marking a jump target. Can be defined above or below the `GATE:`
|
|
1035
|
+
line that jumps to it.
|
|
1036
|
+
- **`GATE: <proc>('arg', ...) > :LABEL`** — runs `<proc>` (any file in `_bcoder_data/proc/` or
|
|
1037
|
+
`~/.1bcoder/proc/`), reusing the same `FAIL: reason` / silent-pass convention as `/proc gate on`.
|
|
1038
|
+
Proc **passes** (prints nothing) → continue to the next line. Proc **fails** (prints a `FAIL:`
|
|
1039
|
+
line) → jump to `:LABEL`. A label placed **above** the `GATE:` line turns it into a loop (keeps
|
|
1040
|
+
jumping back while the condition keeps failing); a label placed **below** makes it a plain
|
|
1041
|
+
skip/branch. A proc that can't be found, times out, or crashes stops the script with a clear
|
|
1042
|
+
error — it is never silently treated as a pass. A runaway loop stops automatically after 1000 steps.
|
|
1043
|
+
|
|
1044
|
+
`{{key}}` placeholders are substituted before `GATE:` is evaluated, including inside the
|
|
1045
|
+
parentheses, so a gate can check the live value of any session variable or `-> var` capture.
|
|
1046
|
+
|
|
1047
|
+
**`expr_gate` is for clean numeric/token values, not prose.** It's a built-in gate that evaluates
|
|
1048
|
+
a Python boolean expression against `{{vars}}` — `int`, `float`, `len`, `set`, `sorted`, and a few
|
|
1049
|
+
other safe builtins are available; no imports or file access. `{{var}}` substitution is a plain
|
|
1050
|
+
text splice with no quoting, so `expr_gate('int({{i}}) <= 0')` is safe (a number is valid Python
|
|
1051
|
+
wherever it lands), but splicing a freeform LLM reply into an eval'd expression — e.g.
|
|
1052
|
+
`expr_gate('{{reply}} != "WRONG"')` — breaks on the reply's own spaces/colons/quotes and always
|
|
1053
|
+
evaluates as an expression error (`FAIL`), regardless of what the reply actually said. For any
|
|
1054
|
+
check on freeform text, use `pattern-gate` instead — it matches a regex against the reply via
|
|
1055
|
+
stdin, not `eval()`, so arbitrary text is safe:
|
|
1056
|
+
|
|
1057
|
+
```
|
|
1058
|
+
GATE: pattern-gate('select \*', 'use explicit columns') > :FIX_QUERY
|
|
1059
|
+
```
|
|
1060
|
+
|
|
1061
|
+
A loop needs something that changes each pass — since scripts don't have arithmetic assignment,
|
|
1062
|
+
counting/state lives in a small proc instead (reading and writing its own counter file, or
|
|
1063
|
+
inspecting `{{var}}`/the last reply). For example, a proc that decrements a counter and prints
|
|
1064
|
+
`FAIL:` until it reaches zero:
|
|
1065
|
+
|
|
1066
|
+
```
|
|
1067
|
+
:LOOP
|
|
1068
|
+
GATE: countdown_gate() > :LOOP
|
|
1069
|
+
final step after the loop exits
|
|
1070
|
+
```
|
|
1071
|
+
|
|
1072
|
+
`_bcoder_data/scripts/SystemQueryRouter.txt` is a complete, runnable example combining both
|
|
1073
|
+
`GATE:` shapes — a plain skip (`> :EXIT`, label below) that routes off-topic requests around the
|
|
1074
|
+
rest of the script, and a loop (`> :LOOP`, label above) that keeps rephrasing until it gets more
|
|
1075
|
+
than one keyword — using `pattern-gate` throughout for exactly the reason above.
|
|
1076
|
+
|
|
1077
|
+
**Resuming an interrupted script**: the current line is tracked with a `#POS:N` header line,
|
|
1078
|
+
written automatically to the top of the script file after every step (not meant to be
|
|
1079
|
+
hand-edited). Interrupt an `/script apply` with `q`, do something else (switch `/model`, check
|
|
1080
|
+
`/var get`), then run `/script apply` on the same file again — it picks up from the same line,
|
|
1081
|
+
even after restarting 1bcoder. `/script run` always ignores any saved `#POS` and starts fresh.
|
|
1082
|
+
`#POS` is cleared automatically once a run reaches the end of the script.
|
|
1083
|
+
|
|
1028
1084
|
---
|
|
1029
1085
|
|
|
1030
1086
|
### Session variables (`/var`)
|
|
@@ -106,6 +106,7 @@ _bcoder_data/proc/autocheck.py
|
|
|
106
106
|
_bcoder_data/proc/collect-files.py
|
|
107
107
|
_bcoder_data/proc/ctx_cut.py
|
|
108
108
|
_bcoder_data/proc/ctx_expand.py
|
|
109
|
+
_bcoder_data/proc/expr_gate.py
|
|
109
110
|
_bcoder_data/proc/extract-code.py
|
|
110
111
|
_bcoder_data/proc/extract-files.py
|
|
111
112
|
_bcoder_data/proc/extract-list.py
|
|
@@ -145,6 +146,8 @@ _bcoder_data/scripts/PyPI.txt
|
|
|
145
146
|
_bcoder_data/scripts/Refactor.txt
|
|
146
147
|
_bcoder_data/scripts/RunAndFix.txt
|
|
147
148
|
_bcoder_data/scripts/SQLiteSchema.txt
|
|
149
|
+
_bcoder_data/scripts/SqlSelectGate.txt
|
|
150
|
+
_bcoder_data/scripts/SystemQueryRouter.txt
|
|
148
151
|
_bcoder_data/scripts/Translate.txt
|
|
149
152
|
_bcoder_data/scripts/WikiPage.txt
|
|
150
153
|
_bcoder_data/scripts/WikiSearch.txt
|