crystil 0.6.0 → 0.7.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.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +110 -72
  3. data/README.md +6 -9
  4. data/lib/crystil/callables.rb +24 -0
  5. data/lib/crystil/client.rb +7 -0
  6. data/lib/crystil/collector.rb +127 -4
  7. data/lib/crystil/sentinel.rb +2 -19
  8. data/lib/crystil/version.rb +1 -1
  9. data/lib/crystil/wrappers/anthropic.rb +37 -36
  10. data/lib/crystil/wrappers/base.rb +25 -28
  11. data/lib/crystil/wrappers/blocked_call.rb +52 -0
  12. data/lib/crystil/wrappers/constants.rb +3 -0
  13. data/lib/crystil/wrappers/deep_copy.rb +52 -0
  14. data/lib/crystil/wrappers/event_stream.rb +21 -26
  15. data/lib/crystil/wrappers/geminiai.rb +57 -36
  16. data/lib/crystil/wrappers/google.rb +18 -18
  17. data/lib/crystil/wrappers/groq.rb +89 -101
  18. data/lib/crystil/wrappers/openai.rb +118 -101
  19. data/lib/crystil/wrappers/ruby_llm.rb +150 -101
  20. data/lib/crystil/wrappers/ruby_llm_query.rb +176 -0
  21. data/lib/crystil/wrappers/ruby_llm_record.rb +105 -0
  22. data/lib/crystil/wrappers/ruby_llm_response.rb +148 -0
  23. data/lib/crystil/wrappers/stopped_call.rb +88 -0
  24. data/lib/crystil.rb +2 -1
  25. data/sig/crystil/callables.rbs +6 -0
  26. data/sig/crystil/client.rbs +2 -0
  27. data/sig/crystil/collector.rbs +33 -1
  28. data/sig/crystil/sentinel.rbs +0 -1
  29. data/sig/crystil/wrappers/base.rbs +7 -5
  30. data/sig/crystil/wrappers/blocked_call.rbs +15 -0
  31. data/sig/crystil/wrappers/constants.rbs +1 -0
  32. data/sig/crystil/wrappers/deep_copy.rbs +12 -0
  33. data/sig/crystil/wrappers/event_stream.rbs +2 -2
  34. data/sig/crystil/wrappers/geminiai.rbs +2 -0
  35. data/sig/crystil/wrappers/openai.rbs +12 -0
  36. data/sig/crystil/wrappers/ruby_llm.rbs +11 -4
  37. data/sig/crystil/wrappers/ruby_llm_query.rbs +35 -0
  38. data/sig/crystil/wrappers/ruby_llm_record.rbs +21 -0
  39. data/sig/crystil/wrappers/ruby_llm_response.rbs +39 -0
  40. data/sig/crystil/wrappers/stopped_call.rbs +26 -0
  41. metadata +16 -2
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crystil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Crystil
@@ -39,6 +39,7 @@ files:
39
39
  - lib/crystil/api/workflow.rb
40
40
  - lib/crystil/api/workflows.rb
41
41
  - lib/crystil/attribution.rb
42
+ - lib/crystil/callables.rb
42
43
  - lib/crystil/client.rb
43
44
  - lib/crystil/collector.rb
44
45
  - lib/crystil/config.rb
@@ -47,19 +48,26 @@ files:
47
48
  - lib/crystil/version.rb
48
49
  - lib/crystil/wrappers/anthropic.rb
49
50
  - lib/crystil/wrappers/base.rb
51
+ - lib/crystil/wrappers/blocked_call.rb
50
52
  - lib/crystil/wrappers/constants.rb
53
+ - lib/crystil/wrappers/deep_copy.rb
51
54
  - lib/crystil/wrappers/event_stream.rb
52
55
  - lib/crystil/wrappers/geminiai.rb
53
56
  - lib/crystil/wrappers/google.rb
54
57
  - lib/crystil/wrappers/groq.rb
55
58
  - lib/crystil/wrappers/openai.rb
56
59
  - lib/crystil/wrappers/ruby_llm.rb
60
+ - lib/crystil/wrappers/ruby_llm_query.rb
61
+ - lib/crystil/wrappers/ruby_llm_record.rb
62
+ - lib/crystil/wrappers/ruby_llm_response.rb
63
+ - lib/crystil/wrappers/stopped_call.rb
57
64
  - sig/crystil/api/base.rbs
58
65
  - sig/crystil/api/invocation.rbs
59
66
  - sig/crystil/api/sentinel.rbs
60
67
  - sig/crystil/api/workflow.rbs
61
68
  - sig/crystil/api/workflows.rbs
62
69
  - sig/crystil/attribution.rbs
70
+ - sig/crystil/callables.rbs
63
71
  - sig/crystil/client.rbs
64
72
  - sig/crystil/collector.rbs
65
73
  - sig/crystil/config.rbs
@@ -68,13 +76,19 @@ files:
68
76
  - sig/crystil/version.rbs
69
77
  - sig/crystil/wrappers/anthropic.rbs
70
78
  - sig/crystil/wrappers/base.rbs
79
+ - sig/crystil/wrappers/blocked_call.rbs
71
80
  - sig/crystil/wrappers/constants.rbs
81
+ - sig/crystil/wrappers/deep_copy.rbs
72
82
  - sig/crystil/wrappers/event_stream.rbs
73
83
  - sig/crystil/wrappers/geminiai.rbs
74
84
  - sig/crystil/wrappers/google.rbs
75
85
  - sig/crystil/wrappers/groq.rbs
76
86
  - sig/crystil/wrappers/openai.rbs
77
87
  - sig/crystil/wrappers/ruby_llm.rbs
88
+ - sig/crystil/wrappers/ruby_llm_query.rbs
89
+ - sig/crystil/wrappers/ruby_llm_record.rbs
90
+ - sig/crystil/wrappers/ruby_llm_response.rbs
91
+ - sig/crystil/wrappers/stopped_call.rbs
78
92
  homepage: https://crystil.com
79
93
  licenses:
80
94
  - MIT
@@ -96,7 +110,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
96
110
  - !ruby/object:Gem::Version
97
111
  version: '0'
98
112
  requirements: []
99
- rubygems_version: 4.0.21
113
+ rubygems_version: 4.0.24
100
114
  specification_version: 4
101
115
  summary: Cost visibility for AI agents
102
116
  test_files: []