ollama_chat 0.0.87 → 0.0.89
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.
- checksums.yaml +4 -4
- data/CHANGES.md +86 -0
- data/lib/ollama_chat/chat.rb +2 -822
- data/lib/ollama_chat/clipboard.rb +4 -4
- data/lib/ollama_chat/commands.rb +873 -0
- data/lib/ollama_chat/database/migrations/004_add_profile_to_model_options.rb +56 -0
- data/lib/ollama_chat/database/models/model_options.rb +1 -2
- data/lib/ollama_chat/dialog.rb +2 -2
- data/lib/ollama_chat/information.rb +14 -3
- data/lib/ollama_chat/input_content.rb +7 -2
- data/lib/ollama_chat/message_format.rb +16 -8
- data/lib/ollama_chat/message_list.rb +20 -12
- data/lib/ollama_chat/message_output.rb +17 -10
- data/lib/ollama_chat/model_handling.rb +57 -34
- data/lib/ollama_chat/ollama_chat_config/default_config.yml +1 -1
- data/lib/ollama_chat/personae_management.rb +1 -1
- data/lib/ollama_chat/source_fetching.rb +15 -21
- data/lib/ollama_chat/switches.rb +62 -5
- data/lib/ollama_chat/tools/directory_structure.rb +2 -1
- data/lib/ollama_chat/utils/analyze_directory.rb +2 -2
- data/lib/ollama_chat/version.rb +1 -1
- data/lib/ollama_chat.rb +1 -1
- data/ollama_chat.gemspec +4 -4
- data/spec/ollama_chat/chat_spec.rb +72 -14
- data/spec/ollama_chat/message_list_spec.rb +16 -10
- data/spec/ollama_chat/message_output_spec.rb +31 -3
- data/spec/ollama_chat/source_fetching_spec.rb +1 -1
- data/spec/ollama_chat/switches_spec.rb +81 -4
- data/spec/ollama_chat/utils/analyze_directory_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -0
- metadata +5 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 119b526f7f7e18270e2896d68dc8f254e5a27b545f54a3c713fd9778a435b2c7
|
|
4
|
+
data.tar.gz: 25906dc5d000f2b419e9a992bb61bb477fdf76e508b88af2b3f3bdaa4d082296
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 5ea6804f5fb644099b84e563b461439043f32c38d33d1bb8bf7d90241b7b72edc6c5639cb1800e4230aeb161dfab3181f4b754210aa149c7fa796079b7e62d95
|
|
7
|
+
data.tar.gz: 9ebbe67e51acb4fd944817e674bc35b69822be59cfff5a74b070039431251b4a1ea23da9308cfebc13aee207f1b8c754b160f3b5c30e36d03100207f004824f2
|
data/CHANGES.md
CHANGED
|
@@ -1,5 +1,91 @@
|
|
|
1
1
|
# Changes
|
|
2
2
|
|
|
3
|
+
## 2026-06-15 v0.0.89
|
|
4
|
+
|
|
5
|
+
### New Features
|
|
6
|
+
|
|
7
|
+
- **Model Option Profiles**: Added support for model option profiles, including
|
|
8
|
+
a new `profile` column in the database with a composite unique index on
|
|
9
|
+
`[:model_name, :profile]`.
|
|
10
|
+
- Enhanced `OllamaChat::ModelHandling` methods (`get_stored_model_options`,
|
|
11
|
+
`store_model_options`) to support a `profile` parameter.
|
|
12
|
+
- Implemented `choose_profile_for_model` for interactive profile selection.
|
|
13
|
+
- Added the `-p` flag to `/model` and `/session` commands via
|
|
14
|
+
`lib/ollama_chat/dialog.rb`.
|
|
15
|
+
- **Thinking Visibility Overrides**: Introduced `-t` and `-s` flags for the
|
|
16
|
+
`/list` and `/last` commands to override thinking visibility, propagating the
|
|
17
|
+
`think_loud` parameter through `OllamaChat::MessageList#list_conversation`,
|
|
18
|
+
`OllamaChat::MessageList#show_last`, and `OllamaChat::MessageFormat`.
|
|
19
|
+
- **Session Information**: The application now calls `info_session` during the
|
|
20
|
+
initialization of `OllamaChat::Chat` to display session information on
|
|
21
|
+
startup.
|
|
22
|
+
|
|
23
|
+
### Enhancements & Refactoring
|
|
24
|
+
|
|
25
|
+
- **Command Standardization**:
|
|
26
|
+
- Standardized the use of the `-e` flag for editing across multiple
|
|
27
|
+
commands: `/input`, `/regenerate`, `/pipe`, `/output`, `/copy`, and
|
|
28
|
+
`/paste`.
|
|
29
|
+
- Replaced "Flags:" with "Options:" in help text for several chat commands.
|
|
30
|
+
- Added a specific editor hook using `edit_text` for the `/input` command
|
|
31
|
+
to allow editing imported content.
|
|
32
|
+
- **Code Architecture**:
|
|
33
|
+
- Extracted all chat command definitions into a new separate module
|
|
34
|
+
`OllamaChat::Commands` located in `lib/ollama_chat/commands.rb`.
|
|
35
|
+
- Updated `OllamaChat::Chat` and the main library entry point to utilize
|
|
36
|
+
this new module instead of inline definitions or
|
|
37
|
+
`OllamaChat::CommandConcern`.
|
|
38
|
+
- **Message Output**:
|
|
39
|
+
- Enhanced `OllamaChat::MessageOutput#pipe` and `#output` to accept an
|
|
40
|
+
`edit` parameter.
|
|
41
|
+
- Refactored `OllamaChat::MessageOutput#attempt_to_write_file` to receive
|
|
42
|
+
raw content instead of a message object.
|
|
43
|
+
|
|
44
|
+
### Bug Fixes & Documentation
|
|
45
|
+
|
|
46
|
+
- **Persona Management**: Updated `select_persona_path` in
|
|
47
|
+
`lib/ollama_chat/personae_management.rb` to pass `edit: false` to
|
|
48
|
+
`perform_copy_to_clipboard`, preventing persona path copies from triggering
|
|
49
|
+
edit mode.
|
|
50
|
+
- **Documentation**: Corrected YARD documentation for the `edit` parameter in
|
|
51
|
+
`lib/ollama_chat/clipboard.rb` and `lib/ollama_chat/message_output.rb`,
|
|
52
|
+
changing the type from `Boolean` to `truthy/falsy`.
|
|
53
|
+
- **Packaging**: Added `lib/ollama_chat/commands.rb` to the `files` and
|
|
54
|
+
`extra_rdoc_files` sections of the gemspec.
|
|
55
|
+
|
|
56
|
+
## 2026-06-03 v0.0.88
|
|
57
|
+
|
|
58
|
+
### Added
|
|
59
|
+
|
|
60
|
+
- Implemented a transition callback system for switches via the
|
|
61
|
+
`PerformCallbacks` module, allowing `OllamaChat::Switches::Switch` and
|
|
62
|
+
`OllamaChat::Switches::DatabaseSwitch` to trigger procs on state changes.
|
|
63
|
+
- Added conditional inclusion of `runtime_info` in the system prompt based on
|
|
64
|
+
the state of `@chat.runtime_info.on?`.
|
|
65
|
+
- Automated system prompt resets when toggling runtime information by adding
|
|
66
|
+
callbacks to the `@runtime_info` switch that trigger `reset_system_prompt`.
|
|
67
|
+
|
|
68
|
+
### Changed
|
|
69
|
+
|
|
70
|
+
- Updated `lib/ollama_chat/chat.rb` to utilize `@messages.system_name` instead
|
|
71
|
+
of `@system` within the `change_system_prompt` method.
|
|
72
|
+
- Refactored file handling in `lib/ollama_chat/input_content.rb` by adding a
|
|
73
|
+
`skip_blank` parameter to `provide_file_set_content`, and updated
|
|
74
|
+
`summarize`, `embed`, and `import` commands to use `skip_blank: true`.
|
|
75
|
+
- Simplified directory exclusion logic in `analyze_directory.rb` by using
|
|
76
|
+
strings and `child.basename.fnmatch?` for pattern matching instead of
|
|
77
|
+
expanded `Pathname` objects.
|
|
78
|
+
- Refactored `embed` and `embed_source` in `lib/ollama_chat/source_fetching.rb`
|
|
79
|
+
using guard clauses and updated the corresponding prompt in
|
|
80
|
+
`default_config.yml`. You might need to reset the prompt for it to continue
|
|
81
|
+
working.
|
|
82
|
+
- Clarified documentation for the `suffix` parameter in the
|
|
83
|
+
`directory_structure` tool, including notes on filtering by file extensions.
|
|
84
|
+
|
|
85
|
+
### Fixed
|
|
86
|
+
|
|
87
|
+
- Corrected control flow within the summary writing loop.
|
|
88
|
+
|
|
3
89
|
## 2026-05-28 v0.0.87
|
|
4
90
|
|
|
5
91
|
### Features
|