rubyn 0.1.7 → 0.1.8

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b608a9d2f94acf82de5f6867e77deb5c718d0181014b90bc2438fb2a77be159c
4
- data.tar.gz: 60fef63b740da2e1d133123b94baf2fe10a42965b676451265e38c27b7f51d44
3
+ metadata.gz: abb102eaff3078770055217b013e8daaa71e713d0dfa3c1abb419bcd0ef9b892
4
+ data.tar.gz: 343670bf894c172b8657f20baefb9b669505a74a44f735ba40468d504e916c2f
5
5
  SHA512:
6
- metadata.gz: e681790e738cb8ef39ff1722ae8693b8491aa63e402b21842501480a1b1e14b41b4717b746362b9d3d847725760b264284d6f6c2ce51a152f5db4eabdb178465
7
- data.tar.gz: ebf58936f9b3699c192934819cd872fa4f58d5d3e8428bc98b2b3c8bc3f683dbea65a5a192958338911287e3115cef7da3378cc8a73d32c904d78443d6054b0e
6
+ metadata.gz: 9295d1f4873dcba0b94100aef252ce772fee4cf552b533339437a9fa8055bf8faace0f3e73d79fbd32f403af3bd15dad310591b0b9084ad03b1382a41eac3638
7
+ data.tar.gz: 0bcaa62f14839ec58858c6024889ec7e3bac197e8469774a45cbf9016a466ed957915e3bb482fd50acd339e1e5b030849e69f2441018cdaaa2ac06c82825a7f0
@@ -55,7 +55,7 @@ module Rubyn
55
55
  end
56
56
 
57
57
  def submit_tool_results(conversation_id:, tool_results:, project_token:)
58
- post("/api/v1/ai/agent/tool_results", {
58
+ post_with_recovery("/api/v1/ai/agent/tool_results", {
59
59
  conversation_id: conversation_id,
60
60
  tool_results: tool_results,
61
61
  project_token: project_token
@@ -35,6 +35,9 @@ module Rubyn
35
35
  dispatch_input(input, formatter)
36
36
  end
37
37
 
38
+ formatter.newline
39
+ formatter.info("Session ended.")
40
+ rescue Interrupt
38
41
  formatter.newline
39
42
  formatter.info("Session ended.")
40
43
  end
@@ -85,6 +85,10 @@ module Rubyn
85
85
 
86
86
  formatter.info("Authenticated as: #{result.dig("user", "email")}")
87
87
  formatter.info("Plan: #{result.dig("user", "plan")}")
88
+
89
+ if result.dig("user", "organization_name")
90
+ formatter.info("Team: #{result.dig("user", "organization_name")}")
91
+ end
88
92
  rescue Rubyn::AuthenticationError
89
93
  spinner.stop_error("Invalid!")
90
94
  formatter.error("API key is invalid. Get your key at https://rubyn.dev/settings")
@@ -29,10 +29,6 @@
29
29
  <svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M13 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V9z"/><polyline points="13 2 13 9 20 9"/></svg>
30
30
  Files
31
31
  <% end %>
32
- <%= link_to rubyn.agent_path, class: ("active" if current_page?(rubyn.agent_path)) do %>
33
- <svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
34
- Agent
35
- <% end %>
36
32
  <%= link_to rubyn.settings_path, class: ("active" if current_page?(rubyn.settings_path)) do %>
37
33
  <svg class="nav-icon" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9a1.65 1.65 0 0 0-.33-1.82l-.06-.06a2 2 0 0 1 2.83-2.83l.06.06A1.65 1.65 0 0 0 9 4.68a1.65 1.65 0 0 0 1-1.51V3a2 2 0 0 1 4 0v.09a1.65 1.65 0 0 0 1 1.51 1.65 1.65 0 0 0 1.82-.33l.06-.06a2 2 0 0 1 2.83 2.83l-.06.06A1.65 1.65 0 0 0 19.4 9a1.65 1.65 0 0 0 1.51 1H21a2 2 0 0 1 0 4h-.09a1.65 1.65 0 0 0-1.51 1z"/></svg>
38
34
  Settings
@@ -64,12 +64,6 @@
64
64
  </span>
65
65
  Browse Files
66
66
  <% end %>
67
- <%= link_to rubyn.agent_path, class: "rubyn-action-card" do %>
68
- <span class="rubyn-action-icon rubyn-action-icon--agent">
69
- <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><path d="M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z"/></svg>
70
- </span>
71
- Start Agent
72
- <% end %>
73
67
  <%= link_to rubyn.settings_path, class: "rubyn-action-card" do %>
74
68
  <span class="rubyn-action-icon rubyn-action-icon--settings">
75
69
  <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><circle cx="12" cy="12" r="3"/><path d="M19.4 15a1.65 1.65 0 0 0 .33 1.82l.06.06a2 2 0 0 1-2.83 2.83l-.06-.06a1.65 1.65 0 0 0-1.82-.33 1.65 1.65 0 0 0-1 1.51V21a2 2 0 0 1-4 0v-.09A1.65 1.65 0 0 0 9 19.4a1.65 1.65 0 0 0-1.82.33l-.06.06a2 2 0 0 1-2.83-2.83l.06-.06A1.65 1.65 0 0 0 4.68 15a1.65 1.65 0 0 0-1.51-1H3a2 2 0 0 1 0-4h.09A1.65 1.65 0 0 0 4.6 9"/></svg>
@@ -4,7 +4,8 @@ Rubyn::Engine.routes.draw do
4
4
  root to: "dashboard#index"
5
5
 
6
6
  resources :files, only: [:index]
7
- resource :agent, only: %i[show create], controller: "agent"
7
+ # Agent is CLI-only requires local tool execution
8
+ # resource :agent, only: %i[show create], controller: "agent"
8
9
  resource :refactor, only: %i[show create update], controller: "refactor"
9
10
  resource :specs, only: %i[show create], controller: "specs"
10
11
  resource :reviews, only: %i[show create], controller: "reviews"
data/lib/rubyn/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Rubyn
4
- VERSION = "0.1.7"
4
+ VERSION = "0.1.8"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyn
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - matthewsuttles