ommlds 0.0.0.dev469__tar.gz → 0.0.0.dev475__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.
- {ommlds-0.0.0.dev469/ommlds.egg-info → ommlds-0.0.0.dev475}/PKG-INFO +10 -7
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/.omlish-manifests.json +50 -4
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/__about__.py +8 -2
- ommlds-0.0.0.dev475/ommlds/backends/tinygrad/models/llama3/__init__.py +28 -0
- ommlds-0.0.0.dev475/ommlds/cli/asyncs.py +30 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/inject.py +7 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/main.py +3 -15
- ommlds-0.0.0.dev475/ommlds/cli/main2.py +220 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/backends/catalog.py +13 -8
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/backends/inject.py +16 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/user/inject.py +7 -0
- ommlds-0.0.0.dev475/ommlds/cli/sessions/chat/chat/user/inputs.py +105 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/user/interactive.py +7 -5
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/configs.py +2 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/inject.py +1 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/catalogs/base.py +7 -1
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/anthropic/chat.py +5 -1
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/anthropic/stream.py +11 -5
- ommlds-0.0.0.dev475/ommlds/minichain/backends/impls/dummy/chat.py +69 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/google/chat.py +9 -2
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/google/search.py +6 -1
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/google/stream.py +11 -5
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/mistral.py +9 -2
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/ollama/chat.py +2 -2
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/openai/chat.py +9 -2
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/openai/completion.py +9 -2
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/openai/embedding.py +9 -2
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/openai/stream.py +11 -5
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/tinygrad/chat.py +3 -3
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/strings/parsing.py +1 -1
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/strings/resolving.py +4 -1
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/resources.py +28 -3
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/stream/services.py +19 -16
- ommlds-0.0.0.dev475/ommlds/nanochat/LICENSE +21 -0
- ommlds-0.0.0.dev475/ommlds/nanochat/rustbpe/LICENSE +21 -0
- ommlds-0.0.0.dev475/ommlds/nanochat/tokenizers.py +406 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/tools/git.py +4 -1
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/wiki/analyze.py +2 -2
- ommlds-0.0.0.dev475/ommlds/wiki/text/__init__.py +0 -0
- ommlds-0.0.0.dev475/ommlds/wiki/utils/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475/ommlds.egg-info}/PKG-INFO +10 -7
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds.egg-info/SOURCES.txt +10 -1
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds.egg-info/requires.txt +10 -6
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/pyproject.toml +11 -7
- ommlds-0.0.0.dev469/ommlds/backends/tinygrad/models/llama3/__init__.py +0 -20
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/LICENSE +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/MANIFEST.in +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/README.md +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/_hacks/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/_hacks/funcs.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/_hacks/names.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/_hacks/params.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/_hacks/patches.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/anthropic/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/anthropic/protocol/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/anthropic/protocol/_marshal.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/anthropic/protocol/sse/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/anthropic/protocol/sse/_marshal.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/anthropic/protocol/sse/assemble.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/anthropic/protocol/sse/events.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/anthropic/protocol/types.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/google/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/google/protocol/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/google/protocol/_marshal.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/google/protocol/types.py +0 -0
- {ommlds-0.0.0.dev469/ommlds → ommlds-0.0.0.dev475/ommlds/backends}/huggingface.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/llamacpp/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/llamacpp/buildwheel.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/llamacpp/logging.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/mlx/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/mlx/__main__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/mlx/caching.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/mlx/cli.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/mlx/generation.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/mlx/limits.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/mlx/loading.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/mlx/tokenization/LICENSE +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/mlx/tokenization/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/mlx/tokenization/detokenization/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/mlx/tokenization/detokenization/base.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/mlx/tokenization/detokenization/bpe.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/mlx/tokenization/detokenization/naive.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/mlx/tokenization/detokenization/spm.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/mlx/tokenization/loading.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/mlx/tokenization/tokenization.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/mlx/tokenization/types.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/ollama/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/ollama/protocol.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/openai/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/openai/protocol/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/openai/protocol/_common.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/openai/protocol/_marshal.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/openai/protocol/chatcompletion/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/openai/protocol/chatcompletion/chunk.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/openai/protocol/chatcompletion/contentpart.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/openai/protocol/chatcompletion/message.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/openai/protocol/chatcompletion/request.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/openai/protocol/chatcompletion/response.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/openai/protocol/chatcompletion/responseformat.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/openai/protocol/chatcompletion/tokenlogprob.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/openai/protocol/completionusage.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/LICENSE +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/llama3/__main__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/llama3/attention.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/llama3/cli.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/llama3/fetch.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/llama3/llm.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/llama3/loading.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/llama3/quantization.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/llama3/sampling.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/llama3/tokenization.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/llama3/transformer.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/sdxl/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/sdxl/__main__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/sdxl/cli.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/sdxl/clip.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/sdxl/sdxl.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/models/sdxl/unet.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/tinygrad/tinygrad.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/torch/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/torch/backends.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/torch/devices.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/torch/purge.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/transformers/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/transformers/filecache.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/backends/transformers/streamers.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/__main__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/backends/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/backends/inject.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/backends/standard.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/base.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/backends/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/backends/injection.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/backends/types.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/ai/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/ai/inject.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/ai/injection.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/ai/rendering.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/ai/services.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/ai/tools.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/ai/types.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/state/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/state/inject.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/state/inmemory.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/state/storage.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/state/types.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/user/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/user/oneshot.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/chat/user/types.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/content/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/content/messages.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/content/strings.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/driver.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/phases/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/phases/inject.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/phases/injection.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/phases/manager.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/phases/types.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/rendering/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/rendering/inject.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/rendering/markdown.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/rendering/raw.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/rendering/types.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/session.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/tools/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/tools/confirmation.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/tools/execution.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/tools/inject.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/tools/injection.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/tools/rendering.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/chat/tools/weather.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/completion/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/completion/configs.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/completion/inject.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/completion/session.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/embedding/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/embedding/configs.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/embedding/inject.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/embedding/session.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/sessions/inject.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/state/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/state/inject.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/cli/state/storage.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/datasets/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/datasets/lib/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/datasets/lib/movies.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/_marshal.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/_typedvalues.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/catalogs/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/catalogs/simple.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/catalogs/strings.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/anthropic/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/anthropic/names.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/anthropic/protocol.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/duckduckgo/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/duckduckgo/search.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/backends/impls/google → ommlds-0.0.0.dev475/ommlds/minichain/backends/impls/dummy}/__init__.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/backends/impls/huggingface → ommlds-0.0.0.dev475/ommlds/minichain/backends/impls/google}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/google/names.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/google/tools.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/backends/impls/llamacpp → ommlds-0.0.0.dev475/ommlds/minichain/backends/impls/huggingface}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/huggingface/configs.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/huggingface/repos.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/backends/impls/mlx → ommlds-0.0.0.dev475/ommlds/minichain/backends/impls/llamacpp}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/llamacpp/chat.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/llamacpp/completion.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/llamacpp/format.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/llamacpp/stream.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/backends/impls/ollama → ommlds-0.0.0.dev475/ommlds/minichain/backends/impls/mlx}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/mlx/chat.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/backends/impls/openai → ommlds-0.0.0.dev475/ommlds/minichain/backends/impls/ollama}/__init__.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/backends/impls/sentencepiece → ommlds-0.0.0.dev475/ommlds/minichain/backends/impls/openai}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/openai/format.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/openai/names.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/backends/impls/tinygrad → ommlds-0.0.0.dev475/ommlds/minichain/backends/impls/sentencepiece}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/sentencepiece/tokens.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/sqlite.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/backends/impls/tokenizers → ommlds-0.0.0.dev475/ommlds/minichain/backends/impls/tinygrad}/__init__.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/backends/impls/transformers → ommlds-0.0.0.dev475/ommlds/minichain/backends/impls/tokenizers}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/tokenizers/tokens.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/backends/strings → ommlds-0.0.0.dev475/ommlds/minichain/backends/impls/transformers}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/transformers/sentence.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/transformers/tokens.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/impls/transformers/transformers.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/chat → ommlds-0.0.0.dev475/ommlds/minichain/backends/strings}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/backends/strings/manifests.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/chat/choices → ommlds-0.0.0.dev475/ommlds/minichain/chat}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/_marshal.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/chat/stream → ommlds-0.0.0.dev475/ommlds/minichain/chat/choices}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/choices/adapters.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/choices/services.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/choices/types.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/formats.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/history.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/messages.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/metadata.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/services.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/chat/tools → ommlds-0.0.0.dev475/ommlds/minichain/chat/stream}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/stream/_marshal.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/stream/adapters.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/stream/joining.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/stream/services.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/stream/types.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/templating.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/chat/transforms → ommlds-0.0.0.dev475/ommlds/minichain/chat/tools}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/tools/execution.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/tools/ids.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/tools/parsing.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/tools/types.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/content → ommlds-0.0.0.dev475/ommlds/minichain/chat}/transforms/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/transforms/base.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/transforms/metadata.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/transforms/services.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/chat/types.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/completion.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/configs.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/_marshal.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/images.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/json.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/materialize.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/metadata.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/namespaces.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/placeholders.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/prepare.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/sequence.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/simple.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/text.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/lib → ommlds-0.0.0.dev475/ommlds/minichain/content/transforms}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/transforms/base.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/transforms/interleave.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/transforms/squeeze.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/transforms/stringify.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/transforms/strings.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/content/types.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/docs/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/docs/docs.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/docs/dtypes.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/docs/filters.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/envs.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/json.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/lib/code → ommlds-0.0.0.dev475/ommlds/minichain/lib}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/lib/bash.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/lib/fs → ommlds-0.0.0.dev475/ommlds/minichain/lib/code}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/lib/code/prompts.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/lib/fs/tools → ommlds-0.0.0.dev475/ommlds/minichain/lib/fs}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/lib/fs/binfiles.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/lib/fs/context.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/lib/fs/errors.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/lib/fs/suggestions.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/lib/fs/tools/recursivels → ommlds-0.0.0.dev475/ommlds/minichain/lib/fs/tools}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/lib/fs/tools/edit.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/lib/fs/tools/ls.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/lib/fs/tools/read.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/lib/todo → ommlds-0.0.0.dev475/ommlds/minichain/lib/fs/tools/recursivels}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/lib/fs/tools/recursivels/execution.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/lib/fs/tools/recursivels/rendering.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/lib/fs/tools/recursivels/running.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/lib/todo/tools → ommlds-0.0.0.dev475/ommlds/minichain/lib/todo}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/lib/todo/context.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/llms → ommlds-0.0.0.dev475/ommlds/minichain/lib/todo/tools}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/lib/todo/tools/read.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/lib/todo/tools/write.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/lib/todo/types.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/models → ommlds-0.0.0.dev475/ommlds/minichain/llms}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/llms/_marshal.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/llms/tokens.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/llms/types.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/metadata.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/models/repos → ommlds-0.0.0.dev475/ommlds/minichain/models}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/models/configs.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/models/names.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/registries → ommlds-0.0.0.dev475/ommlds/minichain/models/repos}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/models/repos/resolving.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/stream → ommlds-0.0.0.dev475/ommlds/minichain/registries}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/registries/globals.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/registries/manifests.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/registries/registry.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/search.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/services/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/services/_marshal.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/services/_origclasses.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/services/_typedvalues.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/services/facades.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/services/requests.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/services/responses.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/services/services.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/standard.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/text → ommlds-0.0.0.dev475/ommlds/minichain/stream}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/stream/wrap.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/text/toolparsing → ommlds-0.0.0.dev475/ommlds/minichain/text}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/text/applypatch.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/tools → ommlds-0.0.0.dev475/ommlds/minichain/text/toolparsing}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/text/toolparsing/base.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/text/toolparsing/dumb.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/text/toolparsing/llamacpp/LICENSE +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/text/toolparsing/llamacpp/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/text/toolparsing/llamacpp/hermes2.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/text/toolparsing/llamacpp/llama31.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/text/toolparsing/llamacpp/types.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/text/toolparsing/llamacpp/utils.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/tokens/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/tokens/specials.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/tokens/tokenizers.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/tokens/types.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/tokens/vocabs.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/tools/execution → ommlds-0.0.0.dev475/ommlds/minichain/tools}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/tools/_marshal.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/minichain/vectors → ommlds-0.0.0.dev475/ommlds/minichain/tools/execution}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/tools/execution/catalog.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/tools/execution/context.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/tools/execution/errors.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/tools/execution/executors.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/tools/execution/reflect.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/tools/fns.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/tools/jsonschema.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/tools/reflect.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/tools/types.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/types.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/utils.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/server → ommlds-0.0.0.dev475/ommlds/minichain/vectors}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/vectors/_marshal.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/vectors/embeddings.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/vectors/index.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/vectors/search.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/vectors/similarity.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/vectors/stores.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/minichain/vectors/types.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/tools → ommlds-0.0.0.dev475/ommlds/nanochat}/__init__.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/wiki → ommlds-0.0.0.dev475/ommlds/server}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/server/__main__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/server/cli.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/server/client.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/server/server.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/server/service.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/wiki/text → ommlds-0.0.0.dev475/ommlds/tools}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/tools/ocr.py +0 -0
- {ommlds-0.0.0.dev469/ommlds/wiki/utils → ommlds-0.0.0.dev475/ommlds/wiki}/__init__.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/wiki/convert.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/wiki/models.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/wiki/text/mfh.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/wiki/text/wtp.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/wiki/utils/io.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/wiki/utils/progress.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/wiki/utils/xml.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds/wiki/xml.py +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds.egg-info/dependency_links.txt +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds.egg-info/entry_points.txt +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/ommlds.egg-info/top_level.txt +0 -0
- {ommlds-0.0.0.dev469 → ommlds-0.0.0.dev475}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: ommlds
|
|
3
|
-
Version: 0.0.0.
|
|
3
|
+
Version: 0.0.0.dev475
|
|
4
4
|
Summary: ommlds
|
|
5
5
|
Author: wrmsr
|
|
6
6
|
License-Expression: BSD-3-Clause
|
|
@@ -14,8 +14,8 @@ Classifier: Programming Language :: Python :: 3.13
|
|
|
14
14
|
Requires-Python: >=3.13
|
|
15
15
|
Description-Content-Type: text/markdown
|
|
16
16
|
License-File: LICENSE
|
|
17
|
-
Requires-Dist: omdev==0.0.0.
|
|
18
|
-
Requires-Dist: omlish==0.0.0.
|
|
17
|
+
Requires-Dist: omdev==0.0.0.dev475
|
|
18
|
+
Requires-Dist: omlish==0.0.0.dev475
|
|
19
19
|
Provides-Extra: all
|
|
20
20
|
Requires-Dist: llama-cpp-python~=0.3; extra == "all"
|
|
21
21
|
Requires-Dist: mlx~=0.29; extra == "all"
|
|
@@ -27,12 +27,13 @@ Requires-Dist: torch~=2.9; extra == "all"
|
|
|
27
27
|
Requires-Dist: transformers~=4.57; extra == "all"
|
|
28
28
|
Requires-Dist: sentence-transformers~=5.1; extra == "all"
|
|
29
29
|
Requires-Dist: huggingface-hub~=0.36; extra == "all"
|
|
30
|
-
Requires-Dist: datasets~=4.
|
|
30
|
+
Requires-Dist: datasets~=4.4; extra == "all"
|
|
31
|
+
Requires-Dist: regex>=2025.0; extra == "all"
|
|
31
32
|
Requires-Dist: numpy>=1.26; extra == "all"
|
|
32
33
|
Requires-Dist: pytesseract~=0.3; extra == "all"
|
|
33
34
|
Requires-Dist: rapidocr-onnxruntime~=1.4; extra == "all"
|
|
34
35
|
Requires-Dist: pillow~=12.0; extra == "all"
|
|
35
|
-
Requires-Dist: ddgs~=9.
|
|
36
|
+
Requires-Dist: ddgs~=9.8; extra == "all"
|
|
36
37
|
Requires-Dist: mwparserfromhell~=0.7; extra == "all"
|
|
37
38
|
Requires-Dist: wikitextparser~=0.56; extra == "all"
|
|
38
39
|
Requires-Dist: lxml>=5.3; python_version < "3.13" and extra == "all"
|
|
@@ -48,7 +49,9 @@ Requires-Dist: transformers~=4.57; extra == "backends"
|
|
|
48
49
|
Requires-Dist: sentence-transformers~=5.1; extra == "backends"
|
|
49
50
|
Provides-Extra: huggingface
|
|
50
51
|
Requires-Dist: huggingface-hub~=0.36; extra == "huggingface"
|
|
51
|
-
Requires-Dist: datasets~=4.
|
|
52
|
+
Requires-Dist: datasets~=4.4; extra == "huggingface"
|
|
53
|
+
Provides-Extra: nanochat
|
|
54
|
+
Requires-Dist: regex>=2025.0; extra == "nanochat"
|
|
52
55
|
Provides-Extra: numpy
|
|
53
56
|
Requires-Dist: numpy>=1.26; extra == "numpy"
|
|
54
57
|
Provides-Extra: ocr
|
|
@@ -57,7 +60,7 @@ Requires-Dist: rapidocr-onnxruntime~=1.4; extra == "ocr"
|
|
|
57
60
|
Provides-Extra: pillow
|
|
58
61
|
Requires-Dist: pillow~=12.0; extra == "pillow"
|
|
59
62
|
Provides-Extra: search
|
|
60
|
-
Requires-Dist: ddgs~=9.
|
|
63
|
+
Requires-Dist: ddgs~=9.8; extra == "search"
|
|
61
64
|
Provides-Extra: wiki
|
|
62
65
|
Requires-Dist: mwparserfromhell~=0.7; extra == "wiki"
|
|
63
66
|
Requires-Dist: wikitextparser~=0.56; extra == "wiki"
|
|
@@ -91,6 +91,52 @@
|
|
|
91
91
|
}
|
|
92
92
|
}
|
|
93
93
|
},
|
|
94
|
+
{
|
|
95
|
+
"module": ".minichain.backends.impls.dummy.chat",
|
|
96
|
+
"attr": null,
|
|
97
|
+
"file": "ommlds/minichain/backends/impls/dummy/chat.py",
|
|
98
|
+
"line": 26,
|
|
99
|
+
"value": {
|
|
100
|
+
"!.minichain.registries.manifests.RegistryManifest": {
|
|
101
|
+
"module": "ommlds.minichain.backends.impls.dummy.chat",
|
|
102
|
+
"attr": "DummyChatChoicesService",
|
|
103
|
+
"name": "dummy",
|
|
104
|
+
"aliases": null,
|
|
105
|
+
"type": "ChatChoicesService"
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"module": ".minichain.backends.impls.dummy.chat",
|
|
111
|
+
"attr": null,
|
|
112
|
+
"file": "ommlds/minichain/backends/impls/dummy/chat.py",
|
|
113
|
+
"line": 39,
|
|
114
|
+
"value": {
|
|
115
|
+
"!.minichain.registries.manifests.RegistryManifest": {
|
|
116
|
+
"module": "ommlds.minichain.backends.impls.dummy.chat",
|
|
117
|
+
"attr": "DummyChatChoicesStreamService",
|
|
118
|
+
"name": "dummy",
|
|
119
|
+
"aliases": null,
|
|
120
|
+
"type": "ChatChoicesStreamService"
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
"module": ".minichain.backends.impls.dummy.chat",
|
|
126
|
+
"attr": null,
|
|
127
|
+
"file": "ommlds/minichain/backends/impls/dummy/chat.py",
|
|
128
|
+
"line": 63,
|
|
129
|
+
"value": {
|
|
130
|
+
"!.minichain.backends.strings.manifests.BackendStringsManifest": {
|
|
131
|
+
"service_cls_names": [
|
|
132
|
+
"ChatChoicesService",
|
|
133
|
+
"ChatChoicesStreamService"
|
|
134
|
+
],
|
|
135
|
+
"backend_name": "dummy",
|
|
136
|
+
"model_names": null
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
},
|
|
94
140
|
{
|
|
95
141
|
"module": ".minichain.backends.impls.google.chat",
|
|
96
142
|
"attr": null,
|
|
@@ -468,7 +514,7 @@
|
|
|
468
514
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
469
515
|
"module": "ommlds.minichain.backends.impls.tinygrad.chat",
|
|
470
516
|
"attr": "TinygradLlama3ChatChoicesService",
|
|
471
|
-
"name": "
|
|
517
|
+
"name": "tinygrad-llama3",
|
|
472
518
|
"aliases": null,
|
|
473
519
|
"type": "ChatChoicesService"
|
|
474
520
|
}
|
|
@@ -483,7 +529,7 @@
|
|
|
483
529
|
"!.minichain.registries.manifests.RegistryManifest": {
|
|
484
530
|
"module": "ommlds.minichain.backends.impls.tinygrad.chat",
|
|
485
531
|
"attr": "TinygradLlama3ChatChoicesStreamService",
|
|
486
|
-
"name": "
|
|
532
|
+
"name": "tinygrad-llama3",
|
|
487
533
|
"aliases": null,
|
|
488
534
|
"type": "ChatChoicesStreamService"
|
|
489
535
|
}
|
|
@@ -500,7 +546,7 @@
|
|
|
500
546
|
"ChatChoicesService",
|
|
501
547
|
"ChatChoicesStreamService"
|
|
502
548
|
],
|
|
503
|
-
"backend_name": "
|
|
549
|
+
"backend_name": "tinygrad-llama3",
|
|
504
550
|
"model_names": null
|
|
505
551
|
}
|
|
506
552
|
}
|
|
@@ -714,7 +760,7 @@
|
|
|
714
760
|
"module": ".tools.git",
|
|
715
761
|
"attr": null,
|
|
716
762
|
"file": "ommlds/tools/git.py",
|
|
717
|
-
"line":
|
|
763
|
+
"line": 189,
|
|
718
764
|
"value": {
|
|
719
765
|
"!omdev.tools.git.messages.GitMessageGeneratorManifest": {
|
|
720
766
|
"module": "ommlds.tools.git",
|
|
@@ -38,7 +38,11 @@ class Project(ProjectBase):
|
|
|
38
38
|
|
|
39
39
|
'huggingface': [
|
|
40
40
|
'huggingface-hub ~= 0.36',
|
|
41
|
-
'datasets ~= 4.
|
|
41
|
+
'datasets ~= 4.4',
|
|
42
|
+
],
|
|
43
|
+
|
|
44
|
+
'nanochat': [
|
|
45
|
+
'regex >= 2025.0',
|
|
42
46
|
],
|
|
43
47
|
|
|
44
48
|
'numpy': [
|
|
@@ -56,7 +60,7 @@ class Project(ProjectBase):
|
|
|
56
60
|
],
|
|
57
61
|
|
|
58
62
|
'search': [
|
|
59
|
-
'ddgs ~= 9.
|
|
63
|
+
'ddgs ~= 9.8',
|
|
60
64
|
],
|
|
61
65
|
|
|
62
66
|
'wiki': [
|
|
@@ -76,6 +80,8 @@ class Project(ProjectBase):
|
|
|
76
80
|
|
|
77
81
|
|
|
78
82
|
class Setuptools(SetuptoolsBase):
|
|
83
|
+
rs = True
|
|
84
|
+
|
|
79
85
|
find_packages = {
|
|
80
86
|
'include': [Project.name, f'{Project.name}.*'],
|
|
81
87
|
'exclude': [*SetuptoolsBase.find_packages['exclude']],
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# ruff: noqa: I001
|
|
2
|
+
|
|
3
|
+
# https://github.com/tinygrad/tinygrad/blob/2d6d8b735506464367b0315f9a2f424e0d19f66e/examples/llama3.py
|
|
4
|
+
# https://github.com/tinygrad/tinygrad/blob/ef17af85c6d3f84d1e1cc084d6dee8ced3d1a33e/extra/models/llama.py
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
from omlish import lang as _lang
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
with _lang.auto_proxy_init(globals()):
|
|
11
|
+
from .fetch import ( # noqa
|
|
12
|
+
fetch_model,
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
from .llm import ( # noqa
|
|
16
|
+
Llama3Llm,
|
|
17
|
+
run_llm,
|
|
18
|
+
run_llm_to_stop,
|
|
19
|
+
RunLlmToStopResult,
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
from .tokenization import ( # noqa
|
|
23
|
+
Tokenizer,
|
|
24
|
+
)
|
|
25
|
+
|
|
26
|
+
from .transformer import ( # noqa
|
|
27
|
+
Transformer,
|
|
28
|
+
)
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import abc
|
|
2
|
+
import functools
|
|
3
|
+
import typing as ta
|
|
4
|
+
|
|
5
|
+
from omlish import lang
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
with lang.auto_proxy_import(globals()):
|
|
9
|
+
import anyio
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = ta.TypeVar('T')
|
|
13
|
+
P = ta.ParamSpec('P')
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
##
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class AsyncThreadRunner(lang.Abstract):
|
|
20
|
+
@abc.abstractmethod
|
|
21
|
+
def run_in_thread(self, fn: ta.Callable[P, T], *args: P.args, **kwargs: P.kwargs) -> ta.Awaitable[T]:
|
|
22
|
+
raise NotImplementedError
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
##
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class AnyioAsyncThreadRunner(AsyncThreadRunner):
|
|
29
|
+
def run_in_thread(self, fn: ta.Callable[P, T], *args: P.args, **kwargs: P.kwargs) -> ta.Awaitable[T]:
|
|
30
|
+
return anyio.to_thread.run_sync(functools.partial(fn, *args, **kwargs))
|
|
@@ -5,6 +5,7 @@ from omlish import lang
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
with lang.auto_proxy_import(globals()):
|
|
8
|
+
from . import asyncs
|
|
8
9
|
from .backends import inject as _backends
|
|
9
10
|
from .sessions import inject as _sessions
|
|
10
11
|
from .state import inject as _state
|
|
@@ -34,4 +35,10 @@ def bind_main(
|
|
|
34
35
|
|
|
35
36
|
#
|
|
36
37
|
|
|
38
|
+
els.extend([
|
|
39
|
+
inj.bind(asyncs.AsyncThreadRunner, to_ctor=asyncs.AnyioAsyncThreadRunner),
|
|
40
|
+
])
|
|
41
|
+
|
|
42
|
+
#
|
|
43
|
+
|
|
37
44
|
return inj.as_elements(*els)
|
|
@@ -4,10 +4,8 @@ See:
|
|
|
4
4
|
- https://github.com/TheR1D/shell_gpt
|
|
5
5
|
- https://github.com/paul-gauthier/aider
|
|
6
6
|
"""
|
|
7
|
-
import argparse
|
|
8
7
|
import functools
|
|
9
8
|
import os.path
|
|
10
|
-
import sys
|
|
11
9
|
import typing as ta
|
|
12
10
|
|
|
13
11
|
import anyio
|
|
@@ -16,7 +14,7 @@ from omdev.home.secrets import load_secrets
|
|
|
16
14
|
from omlish import check
|
|
17
15
|
from omlish import inject as inj
|
|
18
16
|
from omlish import lang
|
|
19
|
-
from omlish.
|
|
17
|
+
from omlish.argparse import all as ap
|
|
20
18
|
from omlish.logs import all as logs
|
|
21
19
|
from omlish.subprocesses.editor import edit_text_with_user_editor
|
|
22
20
|
from omlish.subprocesses.sync import subprocesses
|
|
@@ -39,7 +37,7 @@ else:
|
|
|
39
37
|
|
|
40
38
|
|
|
41
39
|
async def _a_main(args: ta.Any = None) -> None:
|
|
42
|
-
parser =
|
|
40
|
+
parser = ap.ArgumentParser()
|
|
43
41
|
parser.add_argument('prompt', nargs='*')
|
|
44
42
|
|
|
45
43
|
parser.add_argument('-b', '--backend', default='openai')
|
|
@@ -105,16 +103,6 @@ async def _a_main(args: ta.Any = None) -> None:
|
|
|
105
103
|
elif not args.prompt:
|
|
106
104
|
raise ValueError('Must provide prompt')
|
|
107
105
|
|
|
108
|
-
else:
|
|
109
|
-
prompt = ' '.join(args.prompt)
|
|
110
|
-
|
|
111
|
-
# FIXME: ptk / maysync
|
|
112
|
-
if not sys.stdin.isatty() and not pycharm.is_pycharm_hosted():
|
|
113
|
-
stdin_data = sys.stdin.read()
|
|
114
|
-
prompt = '\n'.join([prompt, stdin_data])
|
|
115
|
-
|
|
116
|
-
content = prompt
|
|
117
|
-
|
|
118
106
|
#
|
|
119
107
|
|
|
120
108
|
# FIXME: lol garbage
|
|
@@ -191,7 +179,7 @@ def _main(args: ta.Any = None) -> None:
|
|
|
191
179
|
_a_main,
|
|
192
180
|
args,
|
|
193
181
|
),
|
|
194
|
-
backend='
|
|
182
|
+
# backend='trio',
|
|
195
183
|
) # noqa
|
|
196
184
|
|
|
197
185
|
|
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
"""
|
|
2
|
+
TODO:
|
|
3
|
+
- bootstrap lol
|
|
4
|
+
"""
|
|
5
|
+
import abc
|
|
6
|
+
import functools
|
|
7
|
+
import typing as ta
|
|
8
|
+
|
|
9
|
+
import anyio
|
|
10
|
+
|
|
11
|
+
from omlish import check
|
|
12
|
+
from omlish import dataclasses as dc
|
|
13
|
+
from omlish import inject as inj
|
|
14
|
+
from omlish import lang
|
|
15
|
+
from omlish.argparse import all as ap
|
|
16
|
+
from omlish.logs import all as logs
|
|
17
|
+
|
|
18
|
+
from .inject import bind_main
|
|
19
|
+
from .sessions.base import Session
|
|
20
|
+
from .sessions.chat.configs import ChatConfig
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
##
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
MAIN_EXTRA_ARGS: ta.Sequence[ap.Arg] = [
|
|
27
|
+
ap.arg('-v', '--verbose', action='store_true'),
|
|
28
|
+
]
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
def _process_main_extra_args(args: ap.Namespace) -> None:
|
|
32
|
+
if args.verbose:
|
|
33
|
+
logs.configure_standard_logging('DEBUG')
|
|
34
|
+
else:
|
|
35
|
+
logs.configure_standard_logging('INFO')
|
|
36
|
+
logs.silence_noisy_loggers()
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
##
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
class Profile(lang.Abstract):
|
|
43
|
+
@abc.abstractmethod
|
|
44
|
+
def run(self, argv: ta.Sequence[str]) -> ta.Awaitable[None]:
|
|
45
|
+
raise NotImplementedError
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
##
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
# class ChatAspect(lang.Abstract):
|
|
52
|
+
# def get_parser_args(self) -> ta.Sequence[ap.Arg]: ...
|
|
53
|
+
# def set_args(self, args: ap.Namespace) -> None: ...
|
|
54
|
+
# def configure(self, cfg: ChatConfig) -> ChatConfig: ...
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
class ChatProfile(Profile):
|
|
58
|
+
_args: ap.Namespace
|
|
59
|
+
|
|
60
|
+
#
|
|
61
|
+
|
|
62
|
+
BACKEND_ARGS: ta.ClassVar[ta.Sequence[ap.Arg]] = [
|
|
63
|
+
ap.arg('-b', '--backend', group='backend'),
|
|
64
|
+
]
|
|
65
|
+
|
|
66
|
+
def configure_backend(self, cfg: ChatConfig) -> ChatConfig:
|
|
67
|
+
return dc.replace(
|
|
68
|
+
cfg,
|
|
69
|
+
backend=self._args.backend,
|
|
70
|
+
)
|
|
71
|
+
|
|
72
|
+
#
|
|
73
|
+
|
|
74
|
+
INPUT_ARGS: ta.ClassVar[ta.Sequence[ap.Arg]] = [
|
|
75
|
+
ap.arg('message', nargs='*', group='input'),
|
|
76
|
+
ap.arg('-i', '--interactive', action='store_true', group='input'),
|
|
77
|
+
ap.arg('-e', '--editor', action='store_true', group='input'),
|
|
78
|
+
]
|
|
79
|
+
|
|
80
|
+
def configure_input(self, cfg: ChatConfig) -> ChatConfig:
|
|
81
|
+
if self._args.editor:
|
|
82
|
+
check.arg(not self._args.interactive)
|
|
83
|
+
check.arg(not self._args.message)
|
|
84
|
+
raise NotImplementedError
|
|
85
|
+
|
|
86
|
+
elif self._args.interactive:
|
|
87
|
+
check.arg(not self._args.message)
|
|
88
|
+
return dc.replace(
|
|
89
|
+
cfg,
|
|
90
|
+
interactive=True,
|
|
91
|
+
)
|
|
92
|
+
|
|
93
|
+
elif self._args.message:
|
|
94
|
+
# TODO: '-' -> stdin
|
|
95
|
+
return dc.replace(
|
|
96
|
+
cfg,
|
|
97
|
+
initial_user_content=' '.join(self._args.message),
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
else:
|
|
101
|
+
raise ValueError('Must specify input')
|
|
102
|
+
|
|
103
|
+
#
|
|
104
|
+
|
|
105
|
+
STATE_ARGS: ta.ClassVar[ta.Sequence[ap.Arg]] = [
|
|
106
|
+
ap.arg('-n', '--new', action='store_true', group='state'),
|
|
107
|
+
ap.arg('--ephemeral', action='store_true', group='state'),
|
|
108
|
+
]
|
|
109
|
+
|
|
110
|
+
def configure_state(self, cfg: ChatConfig) -> ChatConfig:
|
|
111
|
+
return dc.replace(
|
|
112
|
+
cfg,
|
|
113
|
+
state='ephemeral' if self._args.ephemeral else 'new' if self._args.new else 'continue',
|
|
114
|
+
)
|
|
115
|
+
|
|
116
|
+
#
|
|
117
|
+
|
|
118
|
+
OUTPUT_ARGS: ta.ClassVar[ta.Sequence[ap.Arg]] = [
|
|
119
|
+
ap.arg('-s', '--stream', action='store_true', group='output'),
|
|
120
|
+
ap.arg('-M', '--markdown', action='store_true', group='output'),
|
|
121
|
+
]
|
|
122
|
+
|
|
123
|
+
def configure_output(self, cfg: ChatConfig) -> ChatConfig:
|
|
124
|
+
return dc.replace(
|
|
125
|
+
cfg,
|
|
126
|
+
stream=bool(self._args.stream),
|
|
127
|
+
markdown=bool(self._args.markdown),
|
|
128
|
+
)
|
|
129
|
+
|
|
130
|
+
#
|
|
131
|
+
|
|
132
|
+
async def run(self, argv: ta.Sequence[str]) -> None:
|
|
133
|
+
parser = ap.ArgumentParser()
|
|
134
|
+
|
|
135
|
+
for grp_name, grp_args in [
|
|
136
|
+
('backend', self.BACKEND_ARGS),
|
|
137
|
+
('input', self.INPUT_ARGS),
|
|
138
|
+
('state', self.STATE_ARGS),
|
|
139
|
+
('output', self.OUTPUT_ARGS),
|
|
140
|
+
]:
|
|
141
|
+
grp = parser.add_argument_group(grp_name)
|
|
142
|
+
for a in grp_args:
|
|
143
|
+
grp.add_argument(*a.args, **a.kwargs)
|
|
144
|
+
|
|
145
|
+
self._args = parser.parse_args(argv)
|
|
146
|
+
|
|
147
|
+
cfg = ChatConfig()
|
|
148
|
+
cfg = self.configure_backend(cfg)
|
|
149
|
+
cfg = self.configure_input(cfg)
|
|
150
|
+
cfg = self.configure_state(cfg)
|
|
151
|
+
cfg = self.configure_output(cfg)
|
|
152
|
+
|
|
153
|
+
# session_cfg = ChatConfig(
|
|
154
|
+
# initial_system_content=system_content,
|
|
155
|
+
# enable_tools=(
|
|
156
|
+
# args.enable_fs_tools or
|
|
157
|
+
# args.enable_todo_tools or
|
|
158
|
+
# args.enable_unsafe_tools_do_not_use_lol or
|
|
159
|
+
# args.enable_test_weather_tool or
|
|
160
|
+
# args.code
|
|
161
|
+
# ),
|
|
162
|
+
# enabled_tools={ # noqa
|
|
163
|
+
# *(['fs'] if args.enable_fs_tools else []),
|
|
164
|
+
# *(['todo'] if args.enable_todo_tools else []),
|
|
165
|
+
# *(['weather'] if args.enable_test_weather_tool else []),
|
|
166
|
+
# # FIXME: enable_unsafe_tools_do_not_use_lol
|
|
167
|
+
# },
|
|
168
|
+
# dangerous_no_tool_confirmation=bool(args.dangerous_no_tool_confirmation),
|
|
169
|
+
# )
|
|
170
|
+
|
|
171
|
+
with inj.create_managed_injector(bind_main(
|
|
172
|
+
session_cfg=cfg,
|
|
173
|
+
enable_backend_strings=True,
|
|
174
|
+
)) as injector:
|
|
175
|
+
await injector[Session].run()
|
|
176
|
+
|
|
177
|
+
|
|
178
|
+
##
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
PROFILE_TYPES: ta.Mapping[str, type[Profile]] = {
|
|
182
|
+
'chat': ChatProfile,
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
##
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
MAIN_PROFILE_ARGS: ta.Sequence[ap.Arg] = [
|
|
190
|
+
ap.arg('profile', nargs='?', default='chat'),
|
|
191
|
+
ap.arg('args', nargs=ap.REMAINDER),
|
|
192
|
+
]
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
async def _a_main(argv: ta.Any = None) -> None:
|
|
196
|
+
parser = ap.ArgumentParser()
|
|
197
|
+
|
|
198
|
+
for a in [*MAIN_EXTRA_ARGS, *MAIN_PROFILE_ARGS]:
|
|
199
|
+
parser.add_argument(*a.args, **a.kwargs)
|
|
200
|
+
|
|
201
|
+
args, unk_args = parser.parse_known_args(argv)
|
|
202
|
+
|
|
203
|
+
_process_main_extra_args(args)
|
|
204
|
+
|
|
205
|
+
profile_cls = PROFILE_TYPES[args.profile]
|
|
206
|
+
profile = profile_cls()
|
|
207
|
+
await profile.run([*unk_args, *args.args])
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
def _main(args: ta.Any = None) -> None:
|
|
211
|
+
anyio.run(
|
|
212
|
+
functools.partial(
|
|
213
|
+
_a_main,
|
|
214
|
+
args,
|
|
215
|
+
),
|
|
216
|
+
) # noqa
|
|
217
|
+
|
|
218
|
+
|
|
219
|
+
if __name__ == '__main__':
|
|
220
|
+
_main()
|
|
@@ -15,33 +15,38 @@ from .types import ServiceT
|
|
|
15
15
|
##
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
class
|
|
18
|
+
class CatalogBackendProvider(BackendProvider[ServiceT], lang.Abstract):
|
|
19
|
+
class Instantiator(lang.Func2['mc.BackendCatalog.Backend', BackendConfigs | None, ta.Awaitable[ta.Any]]):
|
|
20
|
+
pass
|
|
21
|
+
|
|
19
22
|
def __init__(
|
|
20
23
|
self,
|
|
21
24
|
*,
|
|
22
25
|
name: BackendName,
|
|
23
26
|
catalog: 'mc.BackendCatalog',
|
|
24
27
|
configs: BackendConfigs | None = None,
|
|
28
|
+
instantiator: Instantiator | None = None,
|
|
25
29
|
) -> None:
|
|
26
30
|
super().__init__()
|
|
27
31
|
|
|
28
32
|
self._name = name
|
|
29
33
|
self._catalog = catalog
|
|
30
34
|
self._configs = configs
|
|
35
|
+
if instantiator is None:
|
|
36
|
+
instantiator = CatalogBackendProvider.Instantiator(lang.as_async(lambda be, cfgs: be.factory(*cfgs or [])))
|
|
37
|
+
self._instantiator = instantiator
|
|
31
38
|
|
|
32
39
|
@contextlib.asynccontextmanager
|
|
33
40
|
async def _provide_backend(self, cls: type[ServiceT]) -> ta.AsyncIterator[ServiceT]:
|
|
41
|
+
be = self._catalog.get_backend(cls, self._name)
|
|
42
|
+
|
|
34
43
|
service: ServiceT
|
|
35
|
-
async with lang.async_or_sync_maybe_managing(self.
|
|
36
|
-
cls,
|
|
37
|
-
self._name,
|
|
38
|
-
*(self._configs or []),
|
|
39
|
-
)) as service:
|
|
44
|
+
async with lang.async_or_sync_maybe_managing(await self._instantiator(be, self._configs)) as service:
|
|
40
45
|
yield service
|
|
41
46
|
|
|
42
47
|
|
|
43
48
|
class CatalogChatChoicesServiceBackendProvider(
|
|
44
|
-
|
|
49
|
+
CatalogBackendProvider['mc.ChatChoicesService'],
|
|
45
50
|
ChatChoicesServiceBackendProvider,
|
|
46
51
|
):
|
|
47
52
|
def provide_backend(self) -> ta.AsyncContextManager['mc.ChatChoicesService']:
|
|
@@ -49,7 +54,7 @@ class CatalogChatChoicesServiceBackendProvider(
|
|
|
49
54
|
|
|
50
55
|
|
|
51
56
|
class CatalogChatChoicesStreamServiceBackendProvider(
|
|
52
|
-
|
|
57
|
+
CatalogBackendProvider['mc.ChatChoicesStreamService'],
|
|
53
58
|
ChatChoicesStreamServiceBackendProvider,
|
|
54
59
|
):
|
|
55
60
|
def provide_backend(self) -> ta.AsyncContextManager['mc.ChatChoicesStreamService']:
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import typing as ta
|
|
2
|
+
|
|
1
3
|
from omlish import inject as inj
|
|
2
4
|
from omlish import lang
|
|
5
|
+
from omlish import typedvalues as tv
|
|
3
6
|
|
|
7
|
+
from ..... import minichain as mc
|
|
4
8
|
from .injection import backend_configs
|
|
5
9
|
|
|
6
10
|
|
|
@@ -34,4 +38,16 @@ def bind_backends(
|
|
|
34
38
|
|
|
35
39
|
#
|
|
36
40
|
|
|
41
|
+
async def catalog_backend_instantiator_provider(injector: inj.AsyncInjector) -> _catalog.CatalogBackendProvider.Instantiator: # noqa
|
|
42
|
+
async def inner(be: 'mc.BackendCatalog.Backend', cfgs: _types.BackendConfigs | None) -> ta.Any:
|
|
43
|
+
kwt = inj.build_kwargs_target(be.factory, non_strict=True)
|
|
44
|
+
kw = await injector.provide_kwargs(kwt)
|
|
45
|
+
return be.factory(*tv.collect(*(be.configs or []), *(cfgs or []), override=True), **kw)
|
|
46
|
+
|
|
47
|
+
return _catalog.CatalogBackendProvider.Instantiator(inner)
|
|
48
|
+
|
|
49
|
+
els.append(inj.bind(_catalog.CatalogBackendProvider.Instantiator, to_async_fn=catalog_backend_instantiator_provider)) # noqa
|
|
50
|
+
|
|
51
|
+
#
|
|
52
|
+
|
|
37
53
|
return inj.as_elements(*els)
|
|
@@ -11,6 +11,7 @@ from ...phases.types import ChatPhaseCallback
|
|
|
11
11
|
|
|
12
12
|
with lang.auto_proxy_import(globals()):
|
|
13
13
|
from ..state import types as _state
|
|
14
|
+
from . import inputs as _inputs
|
|
14
15
|
from . import interactive as _interactive
|
|
15
16
|
from . import oneshot as _oneshot
|
|
16
17
|
from . import types as _types
|
|
@@ -24,6 +25,7 @@ def bind_user(
|
|
|
24
25
|
initial_system_content: ta.Optional['mc.Content'] = None,
|
|
25
26
|
initial_user_content: ta.Optional['mc.Content'] = None,
|
|
26
27
|
interactive: bool = False,
|
|
28
|
+
use_readline: bool | ta.Literal['auto'] = False,
|
|
27
29
|
) -> inj.Elements:
|
|
28
30
|
els: list[inj.Elemental] = []
|
|
29
31
|
|
|
@@ -49,6 +51,11 @@ def bind_user(
|
|
|
49
51
|
|
|
50
52
|
els.append(inj.bind(_types.UserChatInput, to_ctor=_interactive.InteractiveUserChatInput, singleton=True))
|
|
51
53
|
|
|
54
|
+
els.extend([
|
|
55
|
+
inj.bind(_inputs.SyncStringInput, to_const=_inputs.InputSyncStringInput(use_readline=use_readline)), # noqa
|
|
56
|
+
inj.bind(_inputs.AsyncStringInput, to_ctor=_inputs.ThreadAsyncStringInput, singleton=True),
|
|
57
|
+
])
|
|
58
|
+
|
|
52
59
|
else:
|
|
53
60
|
if initial_user_content is None:
|
|
54
61
|
raise ValueError('Initial user content is required for non-interactive chat')
|