aia 0.5.18 → 0.8.0
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/.envrc +1 -0
- data/.version +1 -1
- data/CHANGELOG.md +39 -5
- data/README.md +388 -219
- data/Rakefile +16 -5
- data/_notes.txt +231 -0
- data/bin/aia +3 -2
- data/examples/README.md +140 -0
- data/examples/headlines +21 -0
- data/lib/aia/ai_client_adapter.rb +210 -0
- data/lib/aia/chat_processor_service.rb +120 -0
- data/lib/aia/config.rb +473 -4
- data/lib/aia/context_manager.rb +58 -0
- data/lib/aia/directive_processor.rb +267 -0
- data/lib/aia/{tools/fzf.rb → fzf.rb} +9 -17
- data/lib/aia/history_manager.rb +85 -0
- data/lib/aia/prompt_handler.rb +178 -0
- data/lib/aia/session.rb +215 -0
- data/lib/aia/shell_command_executor.rb +109 -0
- data/lib/aia/ui_presenter.rb +110 -0
- data/lib/aia/utility.rb +24 -0
- data/lib/aia/version.rb +9 -6
- data/lib/aia.rb +57 -61
- data/lib/extensions/openstruct_merge.rb +44 -0
- metadata +29 -43
- data/LICENSE.txt +0 -21
- data/doc/aia_and_pre_compositional_prompts.md +0 -474
- data/lib/aia/clause.rb +0 -7
- data/lib/aia/cli.rb +0 -452
- data/lib/aia/directives.rb +0 -142
- data/lib/aia/dynamic_content.rb +0 -26
- data/lib/aia/logging.rb +0 -62
- data/lib/aia/main.rb +0 -265
- data/lib/aia/prompt.rb +0 -275
- data/lib/aia/tools/ai_client_backend.rb +0 -92
- data/lib/aia/tools/backend_common.rb +0 -58
- data/lib/aia/tools/client.rb +0 -197
- data/lib/aia/tools/editor.rb +0 -52
- data/lib/aia/tools/glow.rb +0 -90
- data/lib/aia/tools/llm.rb +0 -77
- data/lib/aia/tools/mods.rb +0 -100
- data/lib/aia/tools/sgpt.rb +0 -79
- data/lib/aia/tools/subl.rb +0 -68
- data/lib/aia/tools/vim.rb +0 -93
- data/lib/aia/tools.rb +0 -88
- data/lib/aia/user_query.rb +0 -21
- data/lib/core_ext/string_wrap.rb +0 -73
- data/lib/core_ext/tty-spinner_log.rb +0 -25
- data/man/aia.1 +0 -272
- data/man/aia.1.md +0 -236
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a77cfcc71cea66fafd6eb8c17666eee983f7903a60f528e3bb396d8bdac0488
|
4
|
+
data.tar.gz: c9424c2a40f886a231b10fe569276ba0b8e3e9feb435b38a0257852a91103629
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6f96bdaafd932c34637cbd05415dc4a5c856ecaf386780426d10db5f1dade03a2368c7a767698c385754467b3882bf50faa972a8dedfcd0a5b040777b86d4bb7
|
7
|
+
data.tar.gz: 0cfd3aa1b9750a7ae83dbb21ef737647f64b9cf67cb2a428864b7f22edbccaf317c9dbee205e2995cfdb3809b883f792722aac281a82869477caba3e70d04d23
|
data/.envrc
CHANGED
data/.version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.
|
1
|
+
0.8.0
|
data/CHANGELOG.md
CHANGED
@@ -1,10 +1,44 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
### [0.5.18] 2024-10-26
|
4
|
-
- updated dependencies; using prompt_manager v0.4.2
|
1
|
+
# Changelog
|
2
|
+
## [Unreleased]
|
5
3
|
|
6
4
|
## Released
|
7
5
|
|
6
|
+
### [0.8.0] WIP - 2025-04-15
|
7
|
+
- Updated PromptManager to v0.5.1 which has some of the functionality that was originally developed in the AIA.
|
8
|
+
- Enhanced README.md to include a comprehensive table of configuration options with defaults and associated environment variables.
|
9
|
+
- Added a note in README.md about the expandability of configuration options from a config file for dynamic prompt generation.
|
10
|
+
- Improved shell command protection by ensuring dangerous patterns are checked and confirmed before execution.
|
11
|
+
- Ensured version consistency across `.version`, `aia.gemspec`, and `lib/aia/version.rb`.
|
12
|
+
- Verified and updated documentation to ensure readiness for release on RubyGems.org.
|
13
|
+
|
14
|
+
### [0.7.1] WIP - 2025-03-22
|
15
|
+
- Added `UIPresenter` class for handling user interface presentation.
|
16
|
+
- Added `DirectiveProcessor` class for processing chat-based directives.
|
17
|
+
- Added `HistoryManager` class for managing conversation and variable history.
|
18
|
+
- Added `ShellCommandExecutor` class for executing shell commands.
|
19
|
+
- Added `ChatProcessorService` class for managing conversation processing logic.
|
20
|
+
- Added `PromptProcessor` class for processing prompts.
|
21
|
+
- Enhanced `Session` class to manage interactive session logic.
|
22
|
+
- Updated `Config` class to handle new configuration options and defaults.
|
23
|
+
- Improved handling of chat prompts and AI interactions.
|
24
|
+
- Added support for dynamic content processing in prompts, including shell commands and ERB.
|
25
|
+
- Improved error handling and user feedback for directive processing.
|
26
|
+
- Enhanced logging and output options for chat sessions.
|
27
|
+
|
28
|
+
### [0.7.0] WIP - 2025-03-17
|
29
|
+
- Major code refactoring for better organization and maintainability:
|
30
|
+
- Extracted `DirectiveProcessor` class to handle chat-based directives
|
31
|
+
- Extracted `HistoryManager` class for conversation and variable history management
|
32
|
+
- Extracted `UIPresenter` class for UI-related functionality
|
33
|
+
- Extracted `ChatProcessorService` class for prompt processing and AI interactions
|
34
|
+
- Significantly reduced complexity of the `Session` class by applying separation of concerns
|
35
|
+
- Enhanced the `//clear` directive to properly reset conversation context
|
36
|
+
- Improved output handling to suppress STDOUT when chat mode is off and output file is specified
|
37
|
+
- Updated spinner format in the process_prompt method for better user experience
|
38
|
+
|
39
|
+
### [0.6.?] WIP
|
40
|
+
- Implemented Tony Stark's Clean Slate Protocol on the develop branch
|
41
|
+
|
8
42
|
### [0.5.17] 2024-05-17
|
9
43
|
- removed replaced `semver` with `versionaire`
|
10
44
|
|
@@ -59,7 +93,7 @@
|
|
59
93
|
- Adding processing for directives, shell integration and erb to the follow up prompt in a chat session
|
60
94
|
- some code refactoring.
|
61
95
|
|
62
|
-
|
96
|
+
## [0.5.3] 2024-01-14
|
63
97
|
- adding ability to render markdown to the terminal using the "glow" CLI utility
|
64
98
|
|
65
99
|
### [0.5.2] 2024-01-13
|