nightona 0.191.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 +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +22 -0
- data/.ruby-version +1 -0
- data/CODE_OF_CONDUCT.md +132 -0
- data/LICENSE +190 -0
- data/README.md +184 -0
- data/Rakefile +12 -0
- data/lib/nightona/code_interpreter.rb +359 -0
- data/lib/nightona/common/charts.rb +124 -0
- data/lib/nightona/common/code_interpreter.rb +56 -0
- data/lib/nightona/common/code_language.rb +14 -0
- data/lib/nightona/common/file_system.rb +26 -0
- data/lib/nightona/common/git.rb +19 -0
- data/lib/nightona/common/image.rb +500 -0
- data/lib/nightona/common/nightona.rb +230 -0
- data/lib/nightona/common/process.rb +149 -0
- data/lib/nightona/common/pty.rb +309 -0
- data/lib/nightona/common/resources.rb +39 -0
- data/lib/nightona/common/response.rb +83 -0
- data/lib/nightona/common/snapshot.rb +124 -0
- data/lib/nightona/computer_use.rb +919 -0
- data/lib/nightona/config.rb +116 -0
- data/lib/nightona/file_system.rb +451 -0
- data/lib/nightona/file_transfer.rb +383 -0
- data/lib/nightona/git.rb +334 -0
- data/lib/nightona/lsp_server.rb +139 -0
- data/lib/nightona/nightona.rb +336 -0
- data/lib/nightona/object_storage.rb +172 -0
- data/lib/nightona/otel.rb +183 -0
- data/lib/nightona/process.rb +550 -0
- data/lib/nightona/sandbox.rb +751 -0
- data/lib/nightona/sdk/version.rb +10 -0
- data/lib/nightona/sdk.rb +56 -0
- data/lib/nightona/snapshot_service.rb +238 -0
- data/lib/nightona/util.rb +80 -0
- data/lib/nightona/volume.rb +46 -0
- data/lib/nightona/volume_service.rb +61 -0
- data/lib/nightona.rb +10 -0
- data/project.json +100 -0
- data/scripts/generate-docs.rb +402 -0
- data/sig/nightona/sdk.rbs +6 -0
- metadata +242 -0
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# Copyright Daytona Platforms Inc.
|
|
3
|
+
# SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
# frozen_string_literal: true
|
|
5
|
+
|
|
6
|
+
require 'fileutils'
|
|
7
|
+
require 'tmpdir'
|
|
8
|
+
require 'yard'
|
|
9
|
+
|
|
10
|
+
# Configuration
|
|
11
|
+
DOCS_OUTPUT_DIR = File.expand_path('../../../apps/docs/src/content/docs/en/ruby-sdk', __dir__)
|
|
12
|
+
LIB_DIR = File.expand_path('../lib/nightona', __dir__)
|
|
13
|
+
|
|
14
|
+
# Classes to document: [file_path, output_filename, class_name]
|
|
15
|
+
CLASSES_TO_DOCUMENT = [
|
|
16
|
+
['config.rb', 'config.mdx', 'Nightona::Config'],
|
|
17
|
+
['nightona.rb', 'nightona.mdx', 'Nightona::Nightona'],
|
|
18
|
+
['sandbox.rb', 'sandbox.mdx', 'Nightona::Sandbox'],
|
|
19
|
+
['file_system.rb', 'file-system.mdx', 'Nightona::FileSystem'],
|
|
20
|
+
['git.rb', 'git.mdx', 'Nightona::Git'],
|
|
21
|
+
['process.rb', 'process.mdx', 'Nightona::Process'],
|
|
22
|
+
['lsp_server.rb', 'lsp-server.mdx', 'Nightona::LspServer'],
|
|
23
|
+
['volume.rb', 'volume.mdx', 'Nightona::Volume'],
|
|
24
|
+
['object_storage.rb', 'object-storage.mdx', 'Nightona::ObjectStorage'],
|
|
25
|
+
['computer_use.rb', 'computer-use.mdx', 'Nightona::ComputerUse'],
|
|
26
|
+
['computer_use.rb', 'computer-use.mdx', 'Nightona::ComputerUse::Accessibility'],
|
|
27
|
+
['snapshot_service.rb', 'snapshot.mdx', 'Nightona::SnapshotService'],
|
|
28
|
+
['volume_service.rb', 'volume-service.mdx', 'Nightona::VolumeService'],
|
|
29
|
+
['common/charts.rb', 'charts.mdx', 'Nightona::Chart'],
|
|
30
|
+
['common/image.rb', 'image.mdx', 'Nightona::Image']
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
def extract_class_name_from_path(class_name)
|
|
34
|
+
# Extract the simple class name from the full path
|
|
35
|
+
class_name.split('::').last
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def add_frontmatter(content, class_name)
|
|
39
|
+
simple_name = extract_class_name_from_path(class_name)
|
|
40
|
+
frontmatter = <<~FRONTMATTER
|
|
41
|
+
---
|
|
42
|
+
title: "#{simple_name}"
|
|
43
|
+
hideTitleOnPage: true
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
FRONTMATTER
|
|
47
|
+
|
|
48
|
+
frontmatter + content
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def format_type(types)
|
|
52
|
+
return 'Object' if types.nil? || types.empty?
|
|
53
|
+
|
|
54
|
+
# Join types and escape special characters that break MDX
|
|
55
|
+
type_str = types.join(', ')
|
|
56
|
+
# Escape special chars that break MDX parsing
|
|
57
|
+
# Replace :: with a single : to avoid MDX issues while keeping readability
|
|
58
|
+
type_str = type_str.gsub('::', ':')
|
|
59
|
+
# Escape angle brackets
|
|
60
|
+
type_str.gsub('<', '\\<').gsub('>', '\\>')
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def clean_description(description)
|
|
64
|
+
return '' if description.nil? || description.empty?
|
|
65
|
+
|
|
66
|
+
# Remove rubocop directive lines
|
|
67
|
+
cleaned = description.to_s.lines.reject { |line| line.strip.start_with?('rubocop:') }.join
|
|
68
|
+
cleaned.strip
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
def extract_class_description(obj)
|
|
72
|
+
description = clean_description(obj.docstring)
|
|
73
|
+
|
|
74
|
+
# If no class-level description, try to get it from the first method or constructor
|
|
75
|
+
if description.empty? && obj.is_a?(YARD::CodeObjects::ClassObject)
|
|
76
|
+
# Try to find a description from the constructor or first documented method
|
|
77
|
+
constructor = obj.meths.find { |m| m.name == :initialize }
|
|
78
|
+
if constructor && constructor.docstring && !constructor.docstring.empty?
|
|
79
|
+
# Extract just the summary (first paragraph) from constructor docs
|
|
80
|
+
constructor_desc = clean_description(constructor.docstring)
|
|
81
|
+
first_paragraph = constructor_desc.split("\n\n").first
|
|
82
|
+
if first_paragraph && !first_paragraph.empty?
|
|
83
|
+
# Make it a class-level description
|
|
84
|
+
extract_class_name_from_path(obj.path)
|
|
85
|
+
description = first_paragraph.gsub(/^(Initializes|Creates a new)/, 'Main class for')
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# If still empty, generate a basic description
|
|
90
|
+
if description.empty?
|
|
91
|
+
simple_name = extract_class_name_from_path(obj.path)
|
|
92
|
+
description = "#{simple_name} class for Nightona SDK."
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
|
+
description
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
def extract_attributes(obj)
|
|
100
|
+
attributes = []
|
|
101
|
+
|
|
102
|
+
return attributes unless obj.is_a?(YARD::CodeObjects::ClassObject)
|
|
103
|
+
|
|
104
|
+
# Collect all attributes
|
|
105
|
+
read_attrs = obj.attributes[:read] || {}
|
|
106
|
+
write_attrs = obj.attributes[:write] || {}
|
|
107
|
+
all_attrs = (read_attrs.keys + write_attrs.keys).uniq
|
|
108
|
+
|
|
109
|
+
all_attrs.each do |name|
|
|
110
|
+
attr_obj = read_attrs[name] || write_attrs[name]
|
|
111
|
+
type = attr_obj.docstring.tag(:return)&.types
|
|
112
|
+
type_str = format_type(type)
|
|
113
|
+
desc = attr_obj.docstring.to_s.split("\n").first || ''
|
|
114
|
+
|
|
115
|
+
attributes << {
|
|
116
|
+
name: name,
|
|
117
|
+
type: type_str,
|
|
118
|
+
description: desc
|
|
119
|
+
}
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
attributes
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
def generate_markdown_for_object(obj)
|
|
126
|
+
content = []
|
|
127
|
+
|
|
128
|
+
# Add main heading
|
|
129
|
+
content << "## #{obj.name}"
|
|
130
|
+
content << ''
|
|
131
|
+
|
|
132
|
+
# Add class description
|
|
133
|
+
description = extract_class_description(obj)
|
|
134
|
+
unless description.empty?
|
|
135
|
+
content << description
|
|
136
|
+
content << ''
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Add attributes/properties section (matching Python/TypeScript format)
|
|
140
|
+
if obj.is_a?(YARD::CodeObjects::ClassObject)
|
|
141
|
+
attributes = extract_attributes(obj)
|
|
142
|
+
|
|
143
|
+
if attributes.any?
|
|
144
|
+
content << '**Attributes**:'
|
|
145
|
+
content << ''
|
|
146
|
+
attributes.each do |attr|
|
|
147
|
+
content << "- `#{attr[:name]}` _#{attr[:type]}_ - #{attr[:description]}"
|
|
148
|
+
end
|
|
149
|
+
content << ''
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Add class-level examples (before constructors, matching Python/TypeScript)
|
|
154
|
+
examples = obj.tags(:example)
|
|
155
|
+
if examples.any?
|
|
156
|
+
content << '**Examples:**'
|
|
157
|
+
content << ''
|
|
158
|
+
examples.each do |example|
|
|
159
|
+
content << '```ruby'
|
|
160
|
+
content << example.text.strip
|
|
161
|
+
content << '```'
|
|
162
|
+
content << ''
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Add constructors section
|
|
167
|
+
if obj.is_a?(YARD::CodeObjects::ClassObject)
|
|
168
|
+
constructor = obj.meths.find { |m| m.name == :initialize }
|
|
169
|
+
if constructor
|
|
170
|
+
content << '### Constructors'
|
|
171
|
+
content << ''
|
|
172
|
+
content << "#### new #{extract_class_name_from_path(obj.path)}()"
|
|
173
|
+
content << ''
|
|
174
|
+
|
|
175
|
+
# Method signature
|
|
176
|
+
content << '```ruby'
|
|
177
|
+
params_str = constructor.parameters.map { |p| p[0] }.join(', ')
|
|
178
|
+
content << "def initialize(#{params_str})"
|
|
179
|
+
content << '```'
|
|
180
|
+
content << ''
|
|
181
|
+
|
|
182
|
+
# Constructor description
|
|
183
|
+
if constructor.docstring && !constructor.docstring.empty?
|
|
184
|
+
desc = clean_description(constructor.docstring)
|
|
185
|
+
unless desc.empty?
|
|
186
|
+
content << desc
|
|
187
|
+
content << ''
|
|
188
|
+
end
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
# Parameters
|
|
192
|
+
params = constructor.tags(:param)
|
|
193
|
+
if params.any?
|
|
194
|
+
content << '**Parameters**:'
|
|
195
|
+
content << ''
|
|
196
|
+
params.each do |param|
|
|
197
|
+
types = format_type(param.types)
|
|
198
|
+
content << "- `#{param.name}` _#{types}_ - #{param.text}"
|
|
199
|
+
end
|
|
200
|
+
content << ''
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Returns
|
|
204
|
+
return_tag = constructor.tag(:return)
|
|
205
|
+
if return_tag
|
|
206
|
+
types = format_type(return_tag.types)
|
|
207
|
+
text = return_tag.text.to_s.strip
|
|
208
|
+
content << '**Returns**:'
|
|
209
|
+
content << ''
|
|
210
|
+
content << if text.empty?
|
|
211
|
+
"- `#{types}`"
|
|
212
|
+
else
|
|
213
|
+
"- `#{types}` - #{text}"
|
|
214
|
+
end
|
|
215
|
+
content << ''
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# Raises
|
|
219
|
+
raises = constructor.tags(:raise)
|
|
220
|
+
if raises.any?
|
|
221
|
+
content << '**Raises**:'
|
|
222
|
+
content << ''
|
|
223
|
+
raises.each do |raise_tag|
|
|
224
|
+
types = format_type(raise_tag.types)
|
|
225
|
+
content << "- `#{types}` - #{raise_tag.text}"
|
|
226
|
+
end
|
|
227
|
+
content << ''
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Add methods section
|
|
233
|
+
if obj.is_a?(YARD::CodeObjects::ClassObject)
|
|
234
|
+
methods = obj.meths.select { |m| m.scope == :instance && m.visibility == :public && m.name != :initialize }
|
|
235
|
+
|
|
236
|
+
if methods.any?
|
|
237
|
+
content << '### Methods'
|
|
238
|
+
content << ''
|
|
239
|
+
|
|
240
|
+
methods.each do |method|
|
|
241
|
+
content << "#### #{method.name}()"
|
|
242
|
+
content << ''
|
|
243
|
+
|
|
244
|
+
# Method signature
|
|
245
|
+
content << '```ruby'
|
|
246
|
+
params_str = method.parameters.map { |p| p[0] }.join(', ')
|
|
247
|
+
content << "def #{method.name}(#{params_str})"
|
|
248
|
+
content << '```'
|
|
249
|
+
content << ''
|
|
250
|
+
|
|
251
|
+
# Method description
|
|
252
|
+
if method.docstring && !method.docstring.empty?
|
|
253
|
+
desc = clean_description(method.docstring)
|
|
254
|
+
unless desc.empty?
|
|
255
|
+
content << desc
|
|
256
|
+
content << ''
|
|
257
|
+
end
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Parameters
|
|
261
|
+
params = method.tags(:param)
|
|
262
|
+
if params.any?
|
|
263
|
+
content << '**Parameters**:'
|
|
264
|
+
content << ''
|
|
265
|
+
params.each do |param|
|
|
266
|
+
types = format_type(param.types)
|
|
267
|
+
content << "- `#{param.name}` _#{types}_ - #{param.text}"
|
|
268
|
+
end
|
|
269
|
+
content << ''
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
# Returns
|
|
273
|
+
return_tag = method.tag(:return)
|
|
274
|
+
if return_tag
|
|
275
|
+
types = format_type(return_tag.types)
|
|
276
|
+
text = return_tag.text.to_s.strip
|
|
277
|
+
content << '**Returns**:'
|
|
278
|
+
content << ''
|
|
279
|
+
# Only add description if it's meaningful and not just repeating the type
|
|
280
|
+
content << if text.empty? || text.start_with?('Array<') || text.start_with?('Hash<')
|
|
281
|
+
"- `#{types}`"
|
|
282
|
+
else
|
|
283
|
+
"- `#{types}` - #{text}"
|
|
284
|
+
end
|
|
285
|
+
content << ''
|
|
286
|
+
end
|
|
287
|
+
|
|
288
|
+
# Raises
|
|
289
|
+
raises = method.tags(:raise)
|
|
290
|
+
if raises.any?
|
|
291
|
+
content << '**Raises**:'
|
|
292
|
+
content << ''
|
|
293
|
+
raises.each do |raise_tag|
|
|
294
|
+
types = format_type(raise_tag.types)
|
|
295
|
+
content << "- `#{types}` - #{raise_tag.text}"
|
|
296
|
+
end
|
|
297
|
+
content << ''
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
# Method-level examples
|
|
301
|
+
examples = method.tags(:example)
|
|
302
|
+
next unless examples.any?
|
|
303
|
+
|
|
304
|
+
content << '**Examples:**'
|
|
305
|
+
content << ''
|
|
306
|
+
examples.each do |example|
|
|
307
|
+
content << '```ruby'
|
|
308
|
+
content << example.text.strip
|
|
309
|
+
content << '```'
|
|
310
|
+
content << ''
|
|
311
|
+
end
|
|
312
|
+
end
|
|
313
|
+
end
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
content.join("\n")
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
def post_process_markdown(content)
|
|
320
|
+
# Remove excessive blank lines (more than 2 consecutive)
|
|
321
|
+
content = content.gsub(/\n{3,}/, "\n\n")
|
|
322
|
+
|
|
323
|
+
# Remove blank lines inside code blocks
|
|
324
|
+
content = content.gsub("```ruby\n\n", "```ruby\n")
|
|
325
|
+
content = content.gsub("\n\n```", "\n```")
|
|
326
|
+
|
|
327
|
+
# Ensure consistent spacing around sections
|
|
328
|
+
content = content.gsub(/\n(\*\*[^*]+\*\*:)\n([^\n])/, "\n\\1\n\n\\2")
|
|
329
|
+
|
|
330
|
+
# Ensure code blocks have proper spacing
|
|
331
|
+
content = content.gsub(/([^\n])\n```/, "\\1\n\n```")
|
|
332
|
+
content = content.gsub(/```\n([^\n])/, "```\n\n\\1")
|
|
333
|
+
|
|
334
|
+
# Clean up trailing whitespace
|
|
335
|
+
content = content.lines.map(&:rstrip).join("\n")
|
|
336
|
+
|
|
337
|
+
# Ensure file ends with single newline
|
|
338
|
+
content.strip + "\n"
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
def generate_docs_for_class(file_path, output_filename, class_name)
|
|
342
|
+
full_path = File.join(LIB_DIR, file_path)
|
|
343
|
+
|
|
344
|
+
unless File.exist?(full_path)
|
|
345
|
+
puts "⚠️ File not found: #{full_path}"
|
|
346
|
+
return
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
puts "📝 Generating docs for #{class_name}..."
|
|
350
|
+
|
|
351
|
+
begin
|
|
352
|
+
# Clear and parse with YARD
|
|
353
|
+
YARD::Registry.clear
|
|
354
|
+
YARD::Parser::SourceParser.parse(full_path)
|
|
355
|
+
|
|
356
|
+
# Get the class object
|
|
357
|
+
obj = YARD::Registry.at(class_name)
|
|
358
|
+
|
|
359
|
+
unless obj
|
|
360
|
+
puts "⚠️ Class #{class_name} not found in registry"
|
|
361
|
+
return
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
# Generate markdown content
|
|
365
|
+
markdown_content = generate_markdown_for_object(obj)
|
|
366
|
+
|
|
367
|
+
# Post-process for consistency
|
|
368
|
+
markdown_content = post_process_markdown(markdown_content)
|
|
369
|
+
|
|
370
|
+
# Add frontmatter
|
|
371
|
+
final_content = add_frontmatter(markdown_content, class_name)
|
|
372
|
+
|
|
373
|
+
# Write to output file
|
|
374
|
+
output_path = File.join(DOCS_OUTPUT_DIR, output_filename)
|
|
375
|
+
if File.exist?(output_path)
|
|
376
|
+
File.write(output_path, "#{File.read(output_path).rstrip}\n\n#{markdown_content}")
|
|
377
|
+
else
|
|
378
|
+
File.write(output_path, final_content)
|
|
379
|
+
end
|
|
380
|
+
|
|
381
|
+
puts "✅ Generated: #{output_filename}"
|
|
382
|
+
rescue StandardError => e
|
|
383
|
+
puts "❌ Error generating docs for #{class_name}: #{e.message}"
|
|
384
|
+
puts e.backtrace.first(5).join("\n") if ENV['DEBUG']
|
|
385
|
+
end
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
# Main execution
|
|
389
|
+
puts '🚀 Starting documentation generation...'
|
|
390
|
+
puts "📂 Output directory: #{DOCS_OUTPUT_DIR}"
|
|
391
|
+
puts ''
|
|
392
|
+
|
|
393
|
+
# Ensure output directory exists
|
|
394
|
+
FileUtils.mkdir_p(DOCS_OUTPUT_DIR)
|
|
395
|
+
|
|
396
|
+
# Generate docs for each class
|
|
397
|
+
CLASSES_TO_DOCUMENT.each do |file_path, output_filename, class_name|
|
|
398
|
+
generate_docs_for_class(file_path, output_filename, class_name)
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
puts ''
|
|
402
|
+
puts '✨ Documentation generation complete!'
|
metadata
ADDED
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: nightona
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.191.0
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Daytona Platforms Inc.
|
|
8
|
+
- Nightona contributors
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: opentelemetry-exporter-otlp
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '0.29'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '0.29'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: opentelemetry-exporter-otlp-metrics
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '0.1'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '0.1'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: opentelemetry-metrics-sdk
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "~>"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '0.2'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "~>"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '0.2'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: opentelemetry-sdk
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '1.4'
|
|
62
|
+
type: :runtime
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '1.4'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: aws-sdk-s3
|
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
|
72
|
+
requirements:
|
|
73
|
+
- - "~>"
|
|
74
|
+
- !ruby/object:Gem::Version
|
|
75
|
+
version: '1.0'
|
|
76
|
+
type: :runtime
|
|
77
|
+
prerelease: false
|
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
79
|
+
requirements:
|
|
80
|
+
- - "~>"
|
|
81
|
+
- !ruby/object:Gem::Version
|
|
82
|
+
version: '1.0'
|
|
83
|
+
- !ruby/object:Gem::Dependency
|
|
84
|
+
name: dotenv
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - "~>"
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '2.0'
|
|
90
|
+
type: :runtime
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - "~>"
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '2.0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: nightona_api_client
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - '='
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: 0.191.0
|
|
104
|
+
type: :runtime
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - '='
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: 0.191.0
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: nightona_toolbox_api_client
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - '='
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: 0.191.0
|
|
118
|
+
type: :runtime
|
|
119
|
+
prerelease: false
|
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
121
|
+
requirements:
|
|
122
|
+
- - '='
|
|
123
|
+
- !ruby/object:Gem::Version
|
|
124
|
+
version: 0.191.0
|
|
125
|
+
- !ruby/object:Gem::Dependency
|
|
126
|
+
name: observer
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - "~>"
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: '0.1'
|
|
132
|
+
type: :runtime
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
- - "~>"
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: '0.1'
|
|
139
|
+
- !ruby/object:Gem::Dependency
|
|
140
|
+
name: toml
|
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
|
142
|
+
requirements:
|
|
143
|
+
- - "~>"
|
|
144
|
+
- !ruby/object:Gem::Version
|
|
145
|
+
version: '0.3'
|
|
146
|
+
type: :runtime
|
|
147
|
+
prerelease: false
|
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
149
|
+
requirements:
|
|
150
|
+
- - "~>"
|
|
151
|
+
- !ruby/object:Gem::Version
|
|
152
|
+
version: '0.3'
|
|
153
|
+
- !ruby/object:Gem::Dependency
|
|
154
|
+
name: websocket-client-simple
|
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
|
156
|
+
requirements:
|
|
157
|
+
- - "~>"
|
|
158
|
+
- !ruby/object:Gem::Version
|
|
159
|
+
version: '0.6'
|
|
160
|
+
type: :runtime
|
|
161
|
+
prerelease: false
|
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
163
|
+
requirements:
|
|
164
|
+
- - "~>"
|
|
165
|
+
- !ruby/object:Gem::Version
|
|
166
|
+
version: '0.6'
|
|
167
|
+
description: 'High-level Ruby SDK for Nightona: sandboxes, git, filesystem, LSP, process,
|
|
168
|
+
and object storage.'
|
|
169
|
+
email:
|
|
170
|
+
- support@daytona.io
|
|
171
|
+
- amaraaamka0404@gmail.com
|
|
172
|
+
executables: []
|
|
173
|
+
extensions: []
|
|
174
|
+
extra_rdoc_files: []
|
|
175
|
+
files:
|
|
176
|
+
- ".rspec"
|
|
177
|
+
- ".rubocop.yml"
|
|
178
|
+
- ".ruby-version"
|
|
179
|
+
- CODE_OF_CONDUCT.md
|
|
180
|
+
- LICENSE
|
|
181
|
+
- README.md
|
|
182
|
+
- Rakefile
|
|
183
|
+
- lib/nightona.rb
|
|
184
|
+
- lib/nightona/code_interpreter.rb
|
|
185
|
+
- lib/nightona/common/charts.rb
|
|
186
|
+
- lib/nightona/common/code_interpreter.rb
|
|
187
|
+
- lib/nightona/common/code_language.rb
|
|
188
|
+
- lib/nightona/common/file_system.rb
|
|
189
|
+
- lib/nightona/common/git.rb
|
|
190
|
+
- lib/nightona/common/image.rb
|
|
191
|
+
- lib/nightona/common/nightona.rb
|
|
192
|
+
- lib/nightona/common/process.rb
|
|
193
|
+
- lib/nightona/common/pty.rb
|
|
194
|
+
- lib/nightona/common/resources.rb
|
|
195
|
+
- lib/nightona/common/response.rb
|
|
196
|
+
- lib/nightona/common/snapshot.rb
|
|
197
|
+
- lib/nightona/computer_use.rb
|
|
198
|
+
- lib/nightona/config.rb
|
|
199
|
+
- lib/nightona/file_system.rb
|
|
200
|
+
- lib/nightona/file_transfer.rb
|
|
201
|
+
- lib/nightona/git.rb
|
|
202
|
+
- lib/nightona/lsp_server.rb
|
|
203
|
+
- lib/nightona/nightona.rb
|
|
204
|
+
- lib/nightona/object_storage.rb
|
|
205
|
+
- lib/nightona/otel.rb
|
|
206
|
+
- lib/nightona/process.rb
|
|
207
|
+
- lib/nightona/sandbox.rb
|
|
208
|
+
- lib/nightona/sdk.rb
|
|
209
|
+
- lib/nightona/sdk/version.rb
|
|
210
|
+
- lib/nightona/snapshot_service.rb
|
|
211
|
+
- lib/nightona/util.rb
|
|
212
|
+
- lib/nightona/volume.rb
|
|
213
|
+
- lib/nightona/volume_service.rb
|
|
214
|
+
- project.json
|
|
215
|
+
- scripts/generate-docs.rb
|
|
216
|
+
- sig/nightona/sdk.rbs
|
|
217
|
+
homepage: https://github.com/nightona-co/nightona
|
|
218
|
+
licenses: []
|
|
219
|
+
metadata:
|
|
220
|
+
allowed_push_host: https://rubygems.org
|
|
221
|
+
homepage_uri: https://github.com/nightona-co/nightona
|
|
222
|
+
source_code_uri: https://github.com/nightona-co/nightona
|
|
223
|
+
changelog_uri: https://github.com/nightona-co/nightona/releases
|
|
224
|
+
rubygems_mfa_required: 'true'
|
|
225
|
+
rdoc_options: []
|
|
226
|
+
require_paths:
|
|
227
|
+
- lib
|
|
228
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
229
|
+
requirements:
|
|
230
|
+
- - ">="
|
|
231
|
+
- !ruby/object:Gem::Version
|
|
232
|
+
version: 3.2.0
|
|
233
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
234
|
+
requirements:
|
|
235
|
+
- - ">="
|
|
236
|
+
- !ruby/object:Gem::Version
|
|
237
|
+
version: '0'
|
|
238
|
+
requirements: []
|
|
239
|
+
rubygems_version: 3.6.9
|
|
240
|
+
specification_version: 4
|
|
241
|
+
summary: Ruby SDK for Nightona
|
|
242
|
+
test_files: []
|