aia 0.5.16 → 0.5.17
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/.version +2 -0
- data/CHANGELOG.md +3 -0
- data/README.md +4 -5
- data/justfile +21 -9
- data/lib/aia/version.rb +4 -4
- data/main.just +21 -9
- data/man/aia.1.md +1 -1
- metadata +9 -9
- data/.semver +0 -6
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: ddc10008cf6ed5ee904b4ceca4126f4edb9fc9e3d28f9fc524a5d136a2fe504c
         | 
| 4 | 
            +
              data.tar.gz: 617a3bb5cdf9c6804dd3f9d33c4a46b6e475e53a5900ccef989f108599226caa
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: be279990213e7e7076030f53befce105a399a3d58aca7e00f8ccb0894c88bceadc54d1552ae6da20beb5bc03de5b42ee3aeb64535e2cde232c9b8a4ec9fb7896
         | 
| 7 | 
            +
              data.tar.gz: e34424f951c6ee06cd22feef9771ffe9dc029bf20d00b67e51eafa18e520a8f74cb06e0848cc83a2879c1dc58a69124e91b1a09e7bba8f5cbc3febb35bac5821
         | 
    
        data/.version
    ADDED
    
    
    
        data/CHANGELOG.md
    CHANGED
    
    
    
        data/README.md
    CHANGED
    
    | @@ -6,16 +6,15 @@ It leverages the `prompt_manager` gem to manage prompts for the `mods` and `sgpt | |
| 6 6 |  | 
| 7 7 | 
             
            **Most Recent Change**: Refer to the [Changelog](CHANGELOG.md)
         | 
| 8 8 |  | 
| 9 | 
            -
             | 
| 9 | 
            +
            > v0.5.17
         | 
| 10 | 
            +
            > - replaced gem semver with versionaire
         | 
| 11 | 
            +
            >
         | 
| 10 12 | 
             
            > v0.5.16
         | 
| 11 13 | 
             
            > - fixed bugs with the prompt pipeline
         | 
| 12 14 | 
             
            > - Added new backend "client" which is an `aia` internal client to the OpenAI API that allows both text-to-speech and speech-to-text
         | 
| 13 15 | 
             
            > - Added --image_size and --image_quality to support image generation with the dall-e-2 and dall-e-3 models using the new internal `aia` OpenAI client.
         | 
| 14 16 | 
             
            >
         | 
| 15 | 
            -
             | 
| 16 | 
            -
            > - Support piped content by appending to end of prompt text
         | 
| 17 | 
            -
            > - fixed bugs with directives entered as follow-up while in chat mode
         | 
| 18 | 
            -
            >
         | 
| 17 | 
            +
             | 
| 19 18 |  | 
| 20 19 |  | 
| 21 20 | 
             
            <!-- Tocer[start]: Auto-generated, don't remove. -->
         | 
    
        data/justfile
    CHANGED
    
    | @@ -1,10 +1,12 @@ | |
| 1 1 | 
             
            # aia/main.just
         | 
| 2 2 | 
             
            #
         | 
| 3 3 | 
             
            # Support man pages with ...
         | 
| 4 | 
            -
            # gem install kramdown-man
         | 
| 4 | 
            +
            # gem install kramdown-man versionaire
         | 
| 5 5 | 
             
            #
         | 
| 6 6 |  | 
| 7 | 
            -
            RR | 
| 7 | 
            +
            RR                := env_var('RR')
         | 
| 8 | 
            +
            version_filepath  := env_var('RR') + "/.version"
         | 
| 9 | 
            +
            man_filepath      := env_var('RR') + "/man/aia.1.md"
         | 
| 8 10 |  | 
| 9 11 | 
             
            # with ~/.justfile
         | 
| 10 12 |  | 
| @@ -115,7 +117,7 @@ mods_delete_all: | |
| 115 117 |  | 
| 116 118 | 
             
            module_repo := "/Users/dewayne/sandbox/git_repos/repo.just"
         | 
| 117 119 | 
             
            module_gem := "/Users/dewayne/sandbox/git_repos/gem.just"
         | 
| 118 | 
            -
            module_version := "/Users/dewayne/just_modules/ | 
| 120 | 
            +
            module_version := "/Users/dewayne/just_modules/version_versionaire.just"
         | 
| 119 121 | 
             
            module_git := "/Users/dewayne/just_modules/git.just"
         | 
| 120 122 |  | 
| 121 123 |  | 
| @@ -170,7 +172,7 @@ tag_push_and_bump: tag push bump | |
| 170 172 |  | 
| 171 173 | 
             
            # Create a git tag for the current version
         | 
| 172 174 | 
             
            tag:
         | 
| 173 | 
            -
              git tag  | 
| 175 | 
            +
              git tag v`head -1 {{version_filepath}}`
         | 
| 174 176 |  | 
| 175 177 | 
             
            # Push the git current working directory and all tags
         | 
| 176 178 | 
             
            push:
         | 
| @@ -180,12 +182,22 @@ push: | |
| 180 182 |  | 
| 181 183 | 
             
            alias inc := bump
         | 
| 182 184 |  | 
| 183 | 
            -
            #  | 
| 185 | 
            +
            # Increment version's level: major.minor.patch
         | 
| 184 186 | 
             
            @bump level='patch':
         | 
| 185 | 
            -
               | 
| 186 | 
            -
               | 
| 187 | 
            -
               | 
| 188 | 
            -
             | 
| 187 | 
            +
              #!/usr/bin/env ruby
         | 
| 188 | 
            +
              require 'versionaire'
         | 
| 189 | 
            +
              old_version = Versionaire::Version File.read("{{version_filepath}}").strip
         | 
| 190 | 
            +
              level = "{{level}}".to_sym
         | 
| 191 | 
            +
              new_version = old_version.bump level
         | 
| 192 | 
            +
              puts "Bumping #{level}:  #{old_version} to #{new_version}"
         | 
| 193 | 
            +
              File.open("{{version_filepath}}", 'w')
         | 
| 194 | 
            +
              .write(new_version.to_s + "\n")
         | 
| 195 | 
            +
              #
         | 
| 196 | 
            +
              content = File.read({{man_filepath}}).sub(old_version, new_version)
         | 
| 197 | 
            +
              #
         | 
| 198 | 
            +
              File.write({{man_filepath}}, content)
         | 
| 199 | 
            +
              #
         | 
| 200 | 
            +
              `git add {{version_filepath}} {{man_filepath}}`
         | 
| 189 201 |  | 
| 190 202 |  | 
| 191 203 | 
             
            # Module repo
         | 
    
        data/lib/aia/version.rb
    CHANGED
    
    | @@ -1,10 +1,10 @@ | |
| 1 1 | 
             
            # lib/aia/version.rb
         | 
| 2 2 | 
             
            # frozen_string_literal: true
         | 
| 3 3 |  | 
| 4 | 
            -
            require ' | 
| 4 | 
            +
            require 'versionaire'
         | 
| 5 5 |  | 
| 6 6 | 
             
            module AIA
         | 
| 7 | 
            -
              # | 
| 8 | 
            -
               | 
| 9 | 
            -
               | 
| 7 | 
            +
              VERSION_FILEPATH  = "#{__dir__}/../../.version"
         | 
| 8 | 
            +
              VERSION           = Versionaire::Version File.read(VERSION_FILEPATH).strip
         | 
| 9 | 
            +
              def self.version  = VERSION
         | 
| 10 10 | 
             
            end
         | 
    
        data/main.just
    CHANGED
    
    | @@ -1,10 +1,12 @@ | |
| 1 1 | 
             
            # aia/main.just
         | 
| 2 2 | 
             
            #
         | 
| 3 3 | 
             
            # Support man pages with ...
         | 
| 4 | 
            -
            # gem install kramdown-man
         | 
| 4 | 
            +
            # gem install kramdown-man versionaire
         | 
| 5 5 | 
             
            #
         | 
| 6 6 |  | 
| 7 | 
            -
            RR | 
| 7 | 
            +
            RR                := env_var('RR')
         | 
| 8 | 
            +
            version_filepath  := env_var('RR') + "/.version"
         | 
| 9 | 
            +
            man_filepath      := env_var('RR') + "/man/aia.1.md"
         | 
| 8 10 |  | 
| 9 11 | 
             
            with ~/.justfile
         | 
| 10 12 |  | 
| @@ -13,7 +15,7 @@ with ~/.justfile | |
| 13 15 |  | 
| 14 16 | 
             
            module repo /Users/dewayne/sandbox/git_repos/repo.just
         | 
| 15 17 | 
             
            module gem /Users/dewayne/sandbox/git_repos/gem.just
         | 
| 16 | 
            -
            module version /Users/dewayne/just_modules/ | 
| 18 | 
            +
            module version /Users/dewayne/just_modules/version_versionaire.just
         | 
| 17 19 | 
             
            module git /Users/dewayne/just_modules/git.just
         | 
| 18 20 |  | 
| 19 21 |  | 
| @@ -68,7 +70,7 @@ tag_push_and_bump: tag push bump | |
| 68 70 |  | 
| 69 71 | 
             
            # Create a git tag for the current version
         | 
| 70 72 | 
             
            tag:
         | 
| 71 | 
            -
              git tag  | 
| 73 | 
            +
              git tag v`head -1 {{version_filepath}}`
         | 
| 72 74 |  | 
| 73 75 | 
             
            # Push the git current working directory and all tags
         | 
| 74 76 | 
             
            push:
         | 
| @@ -78,9 +80,19 @@ push: | |
| 78 80 |  | 
| 79 81 | 
             
            alias inc := bump
         | 
| 80 82 |  | 
| 81 | 
            -
            #  | 
| 83 | 
            +
            # Increment version's level: major.minor.patch
         | 
| 82 84 | 
             
            @bump level='patch':
         | 
| 83 | 
            -
               | 
| 84 | 
            -
               | 
| 85 | 
            -
               | 
| 86 | 
            -
             | 
| 85 | 
            +
              #!/usr/bin/env ruby
         | 
| 86 | 
            +
              require 'versionaire'
         | 
| 87 | 
            +
              old_version = Versionaire::Version File.read("{{version_filepath}}").strip
         | 
| 88 | 
            +
              level = "{{level}}".to_sym
         | 
| 89 | 
            +
              new_version = old_version.bump level
         | 
| 90 | 
            +
              puts "Bumping #{level}:  #{old_version} to #{new_version}"
         | 
| 91 | 
            +
              File.open("{{version_filepath}}", 'w')
         | 
| 92 | 
            +
              .write(new_version.to_s + "\n")
         | 
| 93 | 
            +
              #
         | 
| 94 | 
            +
              content = File.read({{man_filepath}}).sub(old_version, new_version)
         | 
| 95 | 
            +
              #
         | 
| 96 | 
            +
              File.write({{man_filepath}}, content)
         | 
| 97 | 
            +
              #
         | 
| 98 | 
            +
              `git add {{version_filepath}} {{man_filepath}}`
         | 
    
        data/man/aia.1.md
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,14 +1,14 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: aia
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.5. | 
| 4 | 
            +
              version: 0.5.17
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Dewayne VanHoozer
         | 
| 8 8 | 
             
            autorequire:
         | 
| 9 9 | 
             
            bindir: bin
         | 
| 10 10 | 
             
            cert_chain: []
         | 
| 11 | 
            -
            date: 2024- | 
| 11 | 
            +
            date: 2024-05-20 00:00:00.000000000 Z
         | 
| 12 12 | 
             
            dependencies:
         | 
| 13 13 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 14 14 | 
             
              name: hashie
         | 
| @@ -81,7 +81,7 @@ dependencies: | |
| 81 81 | 
             
                  - !ruby/object:Gem::Version
         | 
| 82 82 | 
             
                    version: '0'
         | 
| 83 83 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 84 | 
            -
              name:  | 
| 84 | 
            +
              name: shellwords
         | 
| 85 85 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 86 86 | 
             
                requirements:
         | 
| 87 87 | 
             
                - - ">="
         | 
| @@ -95,7 +95,7 @@ dependencies: | |
| 95 95 | 
             
                  - !ruby/object:Gem::Version
         | 
| 96 96 | 
             
                    version: '0'
         | 
| 97 97 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 98 | 
            -
              name:  | 
| 98 | 
            +
              name: toml-rb
         | 
| 99 99 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 100 100 | 
             
                requirements:
         | 
| 101 101 | 
             
                - - ">="
         | 
| @@ -109,7 +109,7 @@ dependencies: | |
| 109 109 | 
             
                  - !ruby/object:Gem::Version
         | 
| 110 110 | 
             
                    version: '0'
         | 
| 111 111 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 112 | 
            -
              name:  | 
| 112 | 
            +
              name: tty-screen
         | 
| 113 113 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 114 114 | 
             
                requirements:
         | 
| 115 115 | 
             
                - - ">="
         | 
| @@ -123,7 +123,7 @@ dependencies: | |
| 123 123 | 
             
                  - !ruby/object:Gem::Version
         | 
| 124 124 | 
             
                    version: '0'
         | 
| 125 125 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 126 | 
            -
              name: tty- | 
| 126 | 
            +
              name: tty-spinner
         | 
| 127 127 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 128 128 | 
             
                requirements:
         | 
| 129 129 | 
             
                - - ">="
         | 
| @@ -137,7 +137,7 @@ dependencies: | |
| 137 137 | 
             
                  - !ruby/object:Gem::Version
         | 
| 138 138 | 
             
                    version: '0'
         | 
| 139 139 | 
             
            - !ruby/object:Gem::Dependency
         | 
| 140 | 
            -
              name:  | 
| 140 | 
            +
              name: versionaire
         | 
| 141 141 | 
             
              requirement: !ruby/object:Gem::Requirement
         | 
| 142 142 | 
             
                requirements:
         | 
| 143 143 | 
             
                - - ">="
         | 
| @@ -255,7 +255,7 @@ files: | |
| 255 255 | 
             
            - ".better-commits.json"
         | 
| 256 256 | 
             
            - ".config/tocer/configuration.yml"
         | 
| 257 257 | 
             
            - ".envrc"
         | 
| 258 | 
            -
            - ". | 
| 258 | 
            +
            - ".version"
         | 
| 259 259 | 
             
            - CHANGELOG.md
         | 
| 260 260 | 
             
            - LICENSE
         | 
| 261 261 | 
             
            - LICENSE.txt
         | 
| @@ -317,7 +317,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement | |
| 317 317 | 
             
                - !ruby/object:Gem::Version
         | 
| 318 318 | 
             
                  version: '0'
         | 
| 319 319 | 
             
            requirements: []
         | 
| 320 | 
            -
            rubygems_version: 3.5. | 
| 320 | 
            +
            rubygems_version: 3.5.10
         | 
| 321 321 | 
             
            signing_key:
         | 
| 322 322 | 
             
            specification_version: 4
         | 
| 323 323 | 
             
            summary: AI Assistant (aia) a command-line (CLI) utility
         |