opencode-ruby 0.0.1.alpha2
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 +7 -0
- data/CHANGELOG.md +51 -0
- data/LICENSE +18 -0
- data/README.md +162 -0
- data/examples/conversation_recipe.rb +153 -0
- data/lib/opencode/client.rb +564 -0
- data/lib/opencode/error.rb +28 -0
- data/lib/opencode/instrumentation.rb +76 -0
- data/lib/opencode/part_source.rb +62 -0
- data/lib/opencode/prompts.rb +87 -0
- data/lib/opencode/reply.rb +549 -0
- data/lib/opencode/reply_observer.rb +101 -0
- data/lib/opencode/response_parser.rb +169 -0
- data/lib/opencode/todo.rb +43 -0
- data/lib/opencode/tool_part.rb +152 -0
- data/lib/opencode/tracer.rb +50 -0
- data/lib/opencode/version.rb +5 -0
- data/lib/opencode-ruby.rb +26 -0
- data/opencode-ruby.gemspec +45 -0
- metadata +129 -0
metadata
ADDED
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: opencode-ruby
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.1.alpha2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Ajay Krishnan
|
|
8
|
+
bindir: bin
|
|
9
|
+
cert_chain: []
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
11
|
+
dependencies:
|
|
12
|
+
- !ruby/object:Gem::Dependency
|
|
13
|
+
name: activesupport
|
|
14
|
+
requirement: !ruby/object:Gem::Requirement
|
|
15
|
+
requirements:
|
|
16
|
+
- - ">="
|
|
17
|
+
- !ruby/object:Gem::Version
|
|
18
|
+
version: '6.1'
|
|
19
|
+
- - "<"
|
|
20
|
+
- !ruby/object:Gem::Version
|
|
21
|
+
version: '9.0'
|
|
22
|
+
type: :runtime
|
|
23
|
+
prerelease: false
|
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
+
requirements:
|
|
26
|
+
- - ">="
|
|
27
|
+
- !ruby/object:Gem::Version
|
|
28
|
+
version: '6.1'
|
|
29
|
+
- - "<"
|
|
30
|
+
- !ruby/object:Gem::Version
|
|
31
|
+
version: '9.0'
|
|
32
|
+
- !ruby/object:Gem::Dependency
|
|
33
|
+
name: minitest
|
|
34
|
+
requirement: !ruby/object:Gem::Requirement
|
|
35
|
+
requirements:
|
|
36
|
+
- - "~>"
|
|
37
|
+
- !ruby/object:Gem::Version
|
|
38
|
+
version: '5.20'
|
|
39
|
+
type: :development
|
|
40
|
+
prerelease: false
|
|
41
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
42
|
+
requirements:
|
|
43
|
+
- - "~>"
|
|
44
|
+
- !ruby/object:Gem::Version
|
|
45
|
+
version: '5.20'
|
|
46
|
+
- !ruby/object:Gem::Dependency
|
|
47
|
+
name: rake
|
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
|
49
|
+
requirements:
|
|
50
|
+
- - "~>"
|
|
51
|
+
- !ruby/object:Gem::Version
|
|
52
|
+
version: '13.0'
|
|
53
|
+
type: :development
|
|
54
|
+
prerelease: false
|
|
55
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
56
|
+
requirements:
|
|
57
|
+
- - "~>"
|
|
58
|
+
- !ruby/object:Gem::Version
|
|
59
|
+
version: '13.0'
|
|
60
|
+
- !ruby/object:Gem::Dependency
|
|
61
|
+
name: webmock
|
|
62
|
+
requirement: !ruby/object:Gem::Requirement
|
|
63
|
+
requirements:
|
|
64
|
+
- - "~>"
|
|
65
|
+
- !ruby/object:Gem::Version
|
|
66
|
+
version: '3.20'
|
|
67
|
+
type: :development
|
|
68
|
+
prerelease: false
|
|
69
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
70
|
+
requirements:
|
|
71
|
+
- - "~>"
|
|
72
|
+
- !ruby/object:Gem::Version
|
|
73
|
+
version: '3.20'
|
|
74
|
+
description: |
|
|
75
|
+
Hand-rolled, opinionated Ruby SDK for OpenCode's REST + SSE API.
|
|
76
|
+
Block-form streaming, value-object responses, automatic SSE
|
|
77
|
+
reconnection. Complement to opencode_client (auto-generated from
|
|
78
|
+
OpenAPI) — pick this one if you want a small Ruby-idiomatic surface;
|
|
79
|
+
pick opencode_client if you want every endpoint with generated types.
|
|
80
|
+
email:
|
|
81
|
+
- opencode-ruby@ajay.to
|
|
82
|
+
executables: []
|
|
83
|
+
extensions: []
|
|
84
|
+
extra_rdoc_files: []
|
|
85
|
+
files:
|
|
86
|
+
- CHANGELOG.md
|
|
87
|
+
- LICENSE
|
|
88
|
+
- README.md
|
|
89
|
+
- examples/conversation_recipe.rb
|
|
90
|
+
- lib/opencode-ruby.rb
|
|
91
|
+
- lib/opencode/client.rb
|
|
92
|
+
- lib/opencode/error.rb
|
|
93
|
+
- lib/opencode/instrumentation.rb
|
|
94
|
+
- lib/opencode/part_source.rb
|
|
95
|
+
- lib/opencode/prompts.rb
|
|
96
|
+
- lib/opencode/reply.rb
|
|
97
|
+
- lib/opencode/reply_observer.rb
|
|
98
|
+
- lib/opencode/response_parser.rb
|
|
99
|
+
- lib/opencode/todo.rb
|
|
100
|
+
- lib/opencode/tool_part.rb
|
|
101
|
+
- lib/opencode/tracer.rb
|
|
102
|
+
- lib/opencode/version.rb
|
|
103
|
+
- opencode-ruby.gemspec
|
|
104
|
+
homepage: https://github.com/ajaynomics/opencode-ruby
|
|
105
|
+
licenses:
|
|
106
|
+
- MIT
|
|
107
|
+
metadata:
|
|
108
|
+
homepage_uri: https://github.com/ajaynomics/opencode-ruby
|
|
109
|
+
source_code_uri: https://github.com/ajaynomics/opencode-ruby
|
|
110
|
+
changelog_uri: https://github.com/ajaynomics/opencode-ruby/blob/main/CHANGELOG.md
|
|
111
|
+
bug_tracker_uri: https://github.com/ajaynomics/opencode-ruby/issues
|
|
112
|
+
rdoc_options: []
|
|
113
|
+
require_paths:
|
|
114
|
+
- lib
|
|
115
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
116
|
+
requirements:
|
|
117
|
+
- - ">="
|
|
118
|
+
- !ruby/object:Gem::Version
|
|
119
|
+
version: 3.2.0
|
|
120
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - ">="
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: '0'
|
|
125
|
+
requirements: []
|
|
126
|
+
rubygems_version: 3.6.9
|
|
127
|
+
specification_version: 4
|
|
128
|
+
summary: Idiomatic Ruby client for OpenCode (HTTP + SSE).
|
|
129
|
+
test_files: []
|