understand 0.0.2 → 0.0.3

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/understand +2 -2
  3. data/lib/understand.rb +1 -0
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 252786af152482e56365f8e13b52340e2a48d3a9a8ef726657d75357c92891cc
4
- data.tar.gz: 8a602e4f58a1320a166375289b7ba2332c4fc8f165ef24ba171602a6bbd4e3bf
3
+ metadata.gz: 7627e61fd4f5b3d7dcd2f8fe0bb687df7a25718892197393fc6acb2081a48918
4
+ data.tar.gz: ffaaa60277d32751fda3cf39d5cdb2f3a4013ff189053e431f42860e25a4e607
5
5
  SHA512:
6
- metadata.gz: e01bcc54fec5f2869272995d5c2a8f1f7c1de48f15452c2bb4347bc9e509a9abd275975a7a3b8d27ab70d033ffcaa91d6e60327accc9d1dc7b9a011296da73cd
7
- data.tar.gz: b52894980c0a327294734be6e893c806f84af9f20a3b66da03afdc8ff3789b7c200bd0b36ff8f8b0edbc6056c40ccec744a8e6a6273d1ae3803047c42088a9da
6
+ metadata.gz: 5df32d4d2f0b5282dbf99fffca4cec8f1b83dbdd94a2daade64b1681a27d8bd3ec72f517847081bec59b8cee52f397385ea163a0ad37b1a76547f36d464d06ca
7
+ data.tar.gz: 3f31ac9f15ef00a542b1899078db54ef71b48be1a7c1c5d2f79a47925834e01ff7852d11938de29aeddf51fc0a9a96c68ab4cf7df9a1c9cfc60c0fe1ac52113c
data/bin/understand CHANGED
@@ -1,6 +1,6 @@
1
1
  require "understand"
2
2
  require "bubbletea"
3
- require "lipgloss"
3
+ require "rainbow"
4
4
 
5
5
  class UnderstandCLI
6
6
  include Bubbletea::Model
@@ -45,7 +45,7 @@ class UnderstandCLI
45
45
 
46
46
  def view
47
47
  if @ai_processing
48
- "#{@ai_response_header} \n \n AI: #{@ai_response}"
48
+ "#{Rainbow(@ai_response_header).green} \n \n 🤖 AI: #{@ai_response}"
49
49
  else
50
50
  "💡 Understand your codebase now \n Enter your prompt: #{@user_prompt} \n\n (Press enter to submit)"
51
51
  end
data/lib/understand.rb CHANGED
@@ -6,6 +6,7 @@ class Understand
6
6
  files = Dir.glob("**/*").select { |f| File.file?(f) }
7
7
  Thread.new do
8
8
  files.each do |file|
9
+ understand_cli.ai_response = ""
9
10
  prompt = "Help me understand my application"
10
11
  prompt_for_ai = prompt + "--- File path: #{file} Content: #{File.read(file)}"
11
12
  understand_cli.ai_response_header = "💡 🔎 Understanding #{file}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: understand
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Indigo Tech
@@ -38,19 +38,19 @@ dependencies:
38
38
  - !ruby/object:Gem::Version
39
39
  version: 0.1.0
40
40
  - !ruby/object:Gem::Dependency
41
- name: lipgloss
41
+ name: rainbow
42
42
  requirement: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 0.2.0
46
+ version: 3.1.1
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 0.2.0
53
+ version: 3.1.1
54
54
  description: A gem to help you understand your codebases using the power of LLM's
55
55
  ( not a vibe coding tool )
56
56
  email: indigo@tech.tut