ollama_chat 0.0.113 → 0.0.114
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 +81 -0
- data/README.md +7 -0
- data/bin/ollama_chat_log +1 -1
- data/bin/ollama_chat_send +3 -1
- data/lib/ollama_chat/chat.rb +30 -14
- data/lib/ollama_chat/commands.rb +36 -18
- data/lib/ollama_chat/compaction.rb +289 -0
- data/lib/ollama_chat/config_handling.rb +32 -0
- data/lib/ollama_chat/database/migrations/010_add_enabled_to_collections.rb +7 -0
- data/lib/ollama_chat/database/models/app_state.rb +48 -16
- data/lib/ollama_chat/database/models/session.rb +1 -2
- data/lib/ollama_chat/database.rb +4 -2
- data/lib/ollama_chat/information.rb +53 -6
- data/lib/ollama_chat/logging.rb +3 -2
- data/lib/ollama_chat/message.rb +22 -1
- data/lib/ollama_chat/message_format.rb +1 -2
- data/lib/ollama_chat/message_list.rb +223 -9
- data/lib/ollama_chat/model_handling.rb +1 -1
- data/lib/ollama_chat/oc.rb +17 -7
- data/lib/ollama_chat/ollama_chat_config/default_config.yml +68 -3
- data/lib/ollama_chat/parsing.rb +2 -1
- data/lib/ollama_chat/prompt_handling.rb +1 -1
- data/lib/ollama_chat/prompt_management.rb +1 -0
- data/lib/ollama_chat/rag_handling.rb +19 -5
- data/lib/ollama_chat/session_management.rb +5 -3
- data/lib/ollama_chat/token_estimator/crude.rb +1 -1
- data/lib/ollama_chat/token_estimator.rb +1 -1
- data/lib/ollama_chat/tools/concern.rb +17 -0
- data/lib/ollama_chat/tools/directory_structure.rb +11 -7
- data/lib/ollama_chat/tools/eval_ruby.rb +16 -6
- data/lib/ollama_chat/tools/get_rfc.rb +2 -0
- data/lib/ollama_chat/tools/lookup_group.rb +100 -0
- data/lib/ollama_chat/tools/paste_from_clipboard.rb +1 -1
- data/lib/ollama_chat/tools/patch_file.rb +23 -5
- data/lib/ollama_chat/tools/read_file.rb +1 -1
- data/lib/ollama_chat/tools/resolve_tag.rb +1 -1
- data/lib/ollama_chat/tools/search_knowledge.rb +7 -1
- data/lib/ollama_chat/tools/write_file.rb +25 -6
- data/lib/ollama_chat/tools.rb +1 -0
- data/lib/ollama_chat/utils/analyze_directory.rb +5 -4
- data/lib/ollama_chat/utils/fetcher.rb +1 -1
- data/lib/ollama_chat/utils/log_rotation.rb +29 -0
- data/lib/ollama_chat/utils/tag_resolver.rb +3 -3
- data/lib/ollama_chat/utils.rb +1 -0
- data/lib/ollama_chat/version.rb +1 -1
- data/lib/ollama_chat.rb +7 -0
- data/ollama_chat.gemspec +5 -5
- data/spec/ollama_chat/commands_spec.rb +25 -0
- data/spec/ollama_chat/compaction_spec.rb +381 -0
- data/spec/ollama_chat/config_handling_spec.rb +60 -0
- data/spec/ollama_chat/message_list_spec.rb +229 -0
- data/spec/ollama_chat/message_spec.rb +143 -0
- data/spec/ollama_chat/rag_handling_spec.rb +3 -0
- data/spec/ollama_chat/system_prompt_management_spec.rb +0 -2
- data/spec/ollama_chat/tools/browse_spec.rb +7 -0
- data/spec/ollama_chat/tools/compute_bmi_spec.rb +15 -0
- data/spec/ollama_chat/tools/concern_spec.rb +77 -0
- data/spec/ollama_chat/tools/copy_to_clipboard_spec.rb +8 -0
- data/spec/ollama_chat/tools/delete_file_spec.rb +8 -0
- data/spec/ollama_chat/tools/directory_structure_spec.rb +4 -0
- data/spec/ollama_chat/tools/execute_grep_spec.rb +13 -0
- data/spec/ollama_chat/tools/execute_ri_spec.rb +8 -0
- data/spec/ollama_chat/tools/file_context_spec.rb +5 -0
- data/spec/ollama_chat/tools/gem_path_lookup_spec.rb +2 -0
- data/spec/ollama_chat/tools/generate_image_spec.rb +12 -0
- data/spec/ollama_chat/tools/generate_password_spec.rb +5 -0
- data/spec/ollama_chat/tools/get_cve_spec.rb +4 -0
- data/spec/ollama_chat/tools/get_endoflife_spec.rb +4 -0
- data/spec/ollama_chat/tools/get_ghr_spec.rb +6 -0
- data/spec/ollama_chat/tools/get_location_spec.rb +4 -0
- data/spec/ollama_chat/tools/get_rfc_spec.rb +2 -0
- data/spec/ollama_chat/tools/get_time_spec.rb +2 -0
- data/spec/ollama_chat/tools/get_url_spec.rb +7 -0
- data/spec/ollama_chat/tools/lookup_group_spec.rb +111 -0
- data/spec/ollama_chat/tools/move_file_spec.rb +10 -0
- data/spec/ollama_chat/tools/open_file_in_editor_spec.rb +6 -0
- data/spec/ollama_chat/tools/paste_from_clipboard_spec.rb +5 -0
- data/spec/ollama_chat/tools/paste_into_editor_spec.rb +6 -0
- data/spec/ollama_chat/tools/patch_file_spec.rb +62 -0
- data/spec/ollama_chat/tools/read_file_spec.rb +7 -0
- data/spec/ollama_chat/tools/resolve_tag_spec.rb +46 -0
- data/spec/ollama_chat/tools/roll_dice_spec.rb +11 -0
- data/spec/ollama_chat/tools/run_tests_spec.rb +8 -0
- data/spec/ollama_chat/tools/search_knowledge_spec.rb +2 -0
- data/spec/ollama_chat/tools/write_file_spec.rb +96 -0
- data/spec/ollama_chat/utils/analyze_directory_spec.rb +46 -7
- data/spec/ollama_chat/utils/log_rotation_spec.rb +71 -0
- data/spec/spec_helper.rb +2 -1
- metadata +19 -1
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ollama_chat
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.114
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Florian Frank
|
|
@@ -484,6 +484,7 @@ extra_rdoc_files:
|
|
|
484
484
|
- lib/ollama_chat/clipboard.rb
|
|
485
485
|
- lib/ollama_chat/command_concern.rb
|
|
486
486
|
- lib/ollama_chat/commands.rb
|
|
487
|
+
- lib/ollama_chat/compaction.rb
|
|
487
488
|
- lib/ollama_chat/config_handling.rb
|
|
488
489
|
- lib/ollama_chat/conversation.rb
|
|
489
490
|
- lib/ollama_chat/database.rb
|
|
@@ -498,6 +499,7 @@ extra_rdoc_files:
|
|
|
498
499
|
- lib/ollama_chat/database/migrations/007_add_collections_table.rb
|
|
499
500
|
- lib/ollama_chat/database/migrations/008_drop_think_mode_constraint.rb
|
|
500
501
|
- lib/ollama_chat/database/migrations/009_add_app_states_table.rb
|
|
502
|
+
- lib/ollama_chat/database/migrations/010_add_enabled_to_collections.rb
|
|
501
503
|
- lib/ollama_chat/database/models/app_state.rb
|
|
502
504
|
- lib/ollama_chat/database/models/collection.rb
|
|
503
505
|
- lib/ollama_chat/database/models/favourite.rb
|
|
@@ -568,6 +570,7 @@ extra_rdoc_files:
|
|
|
568
570
|
- lib/ollama_chat/tools/get_rfc.rb
|
|
569
571
|
- lib/ollama_chat/tools/get_time.rb
|
|
570
572
|
- lib/ollama_chat/tools/get_url.rb
|
|
573
|
+
- lib/ollama_chat/tools/lookup_group.rb
|
|
571
574
|
- lib/ollama_chat/tools/move_file.rb
|
|
572
575
|
- lib/ollama_chat/tools/open_file_in_editor.rb
|
|
573
576
|
- lib/ollama_chat/tools/paste_from_clipboard.rb
|
|
@@ -587,6 +590,7 @@ extra_rdoc_files:
|
|
|
587
590
|
- lib/ollama_chat/utils/chooser.rb
|
|
588
591
|
- lib/ollama_chat/utils/fetcher.rb
|
|
589
592
|
- lib/ollama_chat/utils/json_jsonl_io.rb
|
|
593
|
+
- lib/ollama_chat/utils/log_rotation.rb
|
|
590
594
|
- lib/ollama_chat/utils/log_viewer.rb
|
|
591
595
|
- lib/ollama_chat/utils/path_completer.rb
|
|
592
596
|
- lib/ollama_chat/utils/path_validator.rb
|
|
@@ -616,6 +620,7 @@ files:
|
|
|
616
620
|
- lib/ollama_chat/clipboard.rb
|
|
617
621
|
- lib/ollama_chat/command_concern.rb
|
|
618
622
|
- lib/ollama_chat/commands.rb
|
|
623
|
+
- lib/ollama_chat/compaction.rb
|
|
619
624
|
- lib/ollama_chat/config_handling.rb
|
|
620
625
|
- lib/ollama_chat/conversation.rb
|
|
621
626
|
- lib/ollama_chat/database.rb
|
|
@@ -630,6 +635,7 @@ files:
|
|
|
630
635
|
- lib/ollama_chat/database/migrations/007_add_collections_table.rb
|
|
631
636
|
- lib/ollama_chat/database/migrations/008_drop_think_mode_constraint.rb
|
|
632
637
|
- lib/ollama_chat/database/migrations/009_add_app_states_table.rb
|
|
638
|
+
- lib/ollama_chat/database/migrations/010_add_enabled_to_collections.rb
|
|
633
639
|
- lib/ollama_chat/database/models/app_state.rb
|
|
634
640
|
- lib/ollama_chat/database/models/collection.rb
|
|
635
641
|
- lib/ollama_chat/database/models/favourite.rb
|
|
@@ -701,6 +707,7 @@ files:
|
|
|
701
707
|
- lib/ollama_chat/tools/get_rfc.rb
|
|
702
708
|
- lib/ollama_chat/tools/get_time.rb
|
|
703
709
|
- lib/ollama_chat/tools/get_url.rb
|
|
710
|
+
- lib/ollama_chat/tools/lookup_group.rb
|
|
704
711
|
- lib/ollama_chat/tools/move_file.rb
|
|
705
712
|
- lib/ollama_chat/tools/open_file_in_editor.rb
|
|
706
713
|
- lib/ollama_chat/tools/paste_from_clipboard.rb
|
|
@@ -720,6 +727,7 @@ files:
|
|
|
720
727
|
- lib/ollama_chat/utils/chooser.rb
|
|
721
728
|
- lib/ollama_chat/utils/fetcher.rb
|
|
722
729
|
- lib/ollama_chat/utils/json_jsonl_io.rb
|
|
730
|
+
- lib/ollama_chat/utils/log_rotation.rb
|
|
723
731
|
- lib/ollama_chat/utils/log_viewer.rb
|
|
724
732
|
- lib/ollama_chat/utils/path_completer.rb
|
|
725
733
|
- lib/ollama_chat/utils/path_validator.rb
|
|
@@ -762,6 +770,7 @@ files:
|
|
|
762
770
|
- spec/ollama_chat/chat_spec.rb
|
|
763
771
|
- spec/ollama_chat/clipboard_spec.rb
|
|
764
772
|
- spec/ollama_chat/commands_spec.rb
|
|
773
|
+
- spec/ollama_chat/compaction_spec.rb
|
|
765
774
|
- spec/ollama_chat/config_handling_spec.rb
|
|
766
775
|
- spec/ollama_chat/conversation_spec.rb
|
|
767
776
|
- spec/ollama_chat/database/models/favourite_spec.rb
|
|
@@ -775,6 +784,7 @@ files:
|
|
|
775
784
|
- spec/ollama_chat/message_editing_spec.rb
|
|
776
785
|
- spec/ollama_chat/message_list_spec.rb
|
|
777
786
|
- spec/ollama_chat/message_output_spec.rb
|
|
787
|
+
- spec/ollama_chat/message_spec.rb
|
|
778
788
|
- spec/ollama_chat/model_handling_spec.rb
|
|
779
789
|
- spec/ollama_chat/parsing_spec.rb
|
|
780
790
|
- spec/ollama_chat/prompt_handling_spec.rb
|
|
@@ -792,6 +802,7 @@ files:
|
|
|
792
802
|
- spec/ollama_chat/tool_calling_spec.rb
|
|
793
803
|
- spec/ollama_chat/tools/browse_spec.rb
|
|
794
804
|
- spec/ollama_chat/tools/compute_bmi_spec.rb
|
|
805
|
+
- spec/ollama_chat/tools/concern_spec.rb
|
|
795
806
|
- spec/ollama_chat/tools/copy_to_clipboard_spec.rb
|
|
796
807
|
- spec/ollama_chat/tools/delete_file_spec.rb
|
|
797
808
|
- spec/ollama_chat/tools/directory_structure_spec.rb
|
|
@@ -811,6 +822,7 @@ files:
|
|
|
811
822
|
- spec/ollama_chat/tools/get_rfc_spec.rb
|
|
812
823
|
- spec/ollama_chat/tools/get_time_spec.rb
|
|
813
824
|
- spec/ollama_chat/tools/get_url_spec.rb
|
|
825
|
+
- spec/ollama_chat/tools/lookup_group_spec.rb
|
|
814
826
|
- spec/ollama_chat/tools/move_file_spec.rb
|
|
815
827
|
- spec/ollama_chat/tools/open_file_in_editor_spec.rb
|
|
816
828
|
- spec/ollama_chat/tools/paste_from_clipboard_spec.rb
|
|
@@ -826,6 +838,7 @@ files:
|
|
|
826
838
|
- spec/ollama_chat/utils/analyze_directory_spec.rb
|
|
827
839
|
- spec/ollama_chat/utils/cache_fetcher_spec.rb
|
|
828
840
|
- spec/ollama_chat/utils/fetcher_spec.rb
|
|
841
|
+
- spec/ollama_chat/utils/log_rotation_spec.rb
|
|
829
842
|
- spec/ollama_chat/utils/log_viewer_spec.rb
|
|
830
843
|
- spec/ollama_chat/utils/path_completer_spec.rb
|
|
831
844
|
- spec/ollama_chat/utils/png_metadata_extractor_spec.rb
|
|
@@ -863,6 +876,7 @@ test_files:
|
|
|
863
876
|
- spec/ollama_chat/chat_spec.rb
|
|
864
877
|
- spec/ollama_chat/clipboard_spec.rb
|
|
865
878
|
- spec/ollama_chat/commands_spec.rb
|
|
879
|
+
- spec/ollama_chat/compaction_spec.rb
|
|
866
880
|
- spec/ollama_chat/config_handling_spec.rb
|
|
867
881
|
- spec/ollama_chat/conversation_spec.rb
|
|
868
882
|
- spec/ollama_chat/database/models/favourite_spec.rb
|
|
@@ -876,6 +890,7 @@ test_files:
|
|
|
876
890
|
- spec/ollama_chat/message_editing_spec.rb
|
|
877
891
|
- spec/ollama_chat/message_list_spec.rb
|
|
878
892
|
- spec/ollama_chat/message_output_spec.rb
|
|
893
|
+
- spec/ollama_chat/message_spec.rb
|
|
879
894
|
- spec/ollama_chat/model_handling_spec.rb
|
|
880
895
|
- spec/ollama_chat/parsing_spec.rb
|
|
881
896
|
- spec/ollama_chat/prompt_handling_spec.rb
|
|
@@ -893,6 +908,7 @@ test_files:
|
|
|
893
908
|
- spec/ollama_chat/tool_calling_spec.rb
|
|
894
909
|
- spec/ollama_chat/tools/browse_spec.rb
|
|
895
910
|
- spec/ollama_chat/tools/compute_bmi_spec.rb
|
|
911
|
+
- spec/ollama_chat/tools/concern_spec.rb
|
|
896
912
|
- spec/ollama_chat/tools/copy_to_clipboard_spec.rb
|
|
897
913
|
- spec/ollama_chat/tools/delete_file_spec.rb
|
|
898
914
|
- spec/ollama_chat/tools/directory_structure_spec.rb
|
|
@@ -912,6 +928,7 @@ test_files:
|
|
|
912
928
|
- spec/ollama_chat/tools/get_rfc_spec.rb
|
|
913
929
|
- spec/ollama_chat/tools/get_time_spec.rb
|
|
914
930
|
- spec/ollama_chat/tools/get_url_spec.rb
|
|
931
|
+
- spec/ollama_chat/tools/lookup_group_spec.rb
|
|
915
932
|
- spec/ollama_chat/tools/move_file_spec.rb
|
|
916
933
|
- spec/ollama_chat/tools/open_file_in_editor_spec.rb
|
|
917
934
|
- spec/ollama_chat/tools/paste_from_clipboard_spec.rb
|
|
@@ -927,6 +944,7 @@ test_files:
|
|
|
927
944
|
- spec/ollama_chat/utils/analyze_directory_spec.rb
|
|
928
945
|
- spec/ollama_chat/utils/cache_fetcher_spec.rb
|
|
929
946
|
- spec/ollama_chat/utils/fetcher_spec.rb
|
|
947
|
+
- spec/ollama_chat/utils/log_rotation_spec.rb
|
|
930
948
|
- spec/ollama_chat/utils/log_viewer_spec.rb
|
|
931
949
|
- spec/ollama_chat/utils/path_completer_spec.rb
|
|
932
950
|
- spec/ollama_chat/utils/png_metadata_extractor_spec.rb
|