sorbet-baml 0.3.0 → 0.4.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 (120) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +59 -0
  3. data/README.md +32 -11
  4. data/lib/sorbet_baml/dspy_tool_converter.rb +2 -2
  5. data/lib/sorbet_baml/dspy_tool_extensions.rb +1 -1
  6. data/lib/sorbet_baml/version.rb +1 -1
  7. data/lib/sorbet_baml.rb +4 -2
  8. metadata +3 -115
  9. data/.idea/.gitignore +0 -8
  10. data/.idea/inspectionProfiles/Project_Default.xml +0 -5
  11. data/.rspec +0 -3
  12. data/docs-site/.gitignore +0 -48
  13. data/docs-site/Gemfile +0 -5
  14. data/docs-site/Gemfile.lock +0 -140
  15. data/docs-site/Rakefile +0 -3
  16. data/docs-site/bridgetown.config.yml +0 -15
  17. data/docs-site/config/initializers.rb +0 -9
  18. data/docs-site/config/puma.rb +0 -9
  19. data/docs-site/config.ru +0 -5
  20. data/docs-site/esbuild.config.js +0 -11
  21. data/docs-site/frontend/javascript/index.js +0 -22
  22. data/docs-site/frontend/styles/index.css +0 -61
  23. data/docs-site/package.json +0 -18
  24. data/docs-site/postcss.config.js +0 -6
  25. data/docs-site/server/roda_app.rb +0 -9
  26. data/docs-site/src/_components/head.liquid +0 -26
  27. data/docs-site/src/_components/nav.liquid +0 -68
  28. data/docs-site/src/_layouts/default.liquid +0 -27
  29. data/docs-site/src/_layouts/doc.liquid +0 -39
  30. data/docs-site/src/advanced-usage.md +0 -598
  31. data/docs-site/src/getting-started.md +0 -170
  32. data/docs-site/src/index.md +0 -183
  33. data/docs-site/src/troubleshooting.md +0 -317
  34. data/docs-site/src/type-mapping.md +0 -236
  35. data/docs-site/tailwind.config.js +0 -85
  36. data/sorbet/config +0 -6
  37. data/sorbet/rbi/annotations/.gitattributes +0 -1
  38. data/sorbet/rbi/annotations/rainbow.rbi +0 -269
  39. data/sorbet/rbi/gems/.gitattributes +0 -1
  40. data/sorbet/rbi/gems/anthropic@1.5.0.rbi +0 -21252
  41. data/sorbet/rbi/gems/ast@2.4.3.rbi +0 -585
  42. data/sorbet/rbi/gems/async@2.27.3.rbi +0 -9
  43. data/sorbet/rbi/gems/benchmark@0.4.1.rbi +0 -619
  44. data/sorbet/rbi/gems/bigdecimal@3.2.2.rbi +0 -9
  45. data/sorbet/rbi/gems/byebug@11.1.3.rbi +0 -37
  46. data/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi +0 -424
  47. data/sorbet/rbi/gems/connection_pool@2.5.3.rbi +0 -9
  48. data/sorbet/rbi/gems/console@1.33.0.rbi +0 -9
  49. data/sorbet/rbi/gems/date@3.4.1.rbi +0 -75
  50. data/sorbet/rbi/gems/diff-lcs@1.6.2.rbi +0 -1134
  51. data/sorbet/rbi/gems/dry-configurable@1.3.0.rbi +0 -672
  52. data/sorbet/rbi/gems/dry-core@1.1.0.rbi +0 -1729
  53. data/sorbet/rbi/gems/dry-logger@1.1.0.rbi +0 -1317
  54. data/sorbet/rbi/gems/dspy@0.19.1.rbi +0 -6677
  55. data/sorbet/rbi/gems/erb@5.0.2.rbi +0 -878
  56. data/sorbet/rbi/gems/erubi@1.13.1.rbi +0 -155
  57. data/sorbet/rbi/gems/ffi@1.17.2.rbi +0 -2174
  58. data/sorbet/rbi/gems/fiber-annotation@0.2.0.rbi +0 -9
  59. data/sorbet/rbi/gems/fiber-local@1.1.0.rbi +0 -9
  60. data/sorbet/rbi/gems/fiber-storage@1.0.1.rbi +0 -9
  61. data/sorbet/rbi/gems/google-protobuf@4.32.0.rbi +0 -9
  62. data/sorbet/rbi/gems/googleapis-common-protos-types@1.20.0.rbi +0 -9
  63. data/sorbet/rbi/gems/informers@1.2.1.rbi +0 -1875
  64. data/sorbet/rbi/gems/io-console@0.8.1.rbi +0 -9
  65. data/sorbet/rbi/gems/io-event@1.12.1.rbi +0 -9
  66. data/sorbet/rbi/gems/json@2.13.2.rbi +0 -2087
  67. data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +0 -9
  68. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +0 -240
  69. data/sorbet/rbi/gems/logger@1.7.0.rbi +0 -963
  70. data/sorbet/rbi/gems/metrics@0.13.0.rbi +0 -9
  71. data/sorbet/rbi/gems/netrc@0.11.0.rbi +0 -159
  72. data/sorbet/rbi/gems/onnxruntime@0.10.0.rbi +0 -304
  73. data/sorbet/rbi/gems/openai@0.16.0.rbi +0 -68055
  74. data/sorbet/rbi/gems/opentelemetry-api@1.6.0.rbi +0 -9
  75. data/sorbet/rbi/gems/opentelemetry-common@0.22.0.rbi +0 -9
  76. data/sorbet/rbi/gems/opentelemetry-exporter-otlp@0.30.0.rbi +0 -9
  77. data/sorbet/rbi/gems/opentelemetry-registry@0.4.0.rbi +0 -9
  78. data/sorbet/rbi/gems/opentelemetry-sdk@1.8.1.rbi +0 -9
  79. data/sorbet/rbi/gems/opentelemetry-semantic_conventions@1.11.0.rbi +0 -9
  80. data/sorbet/rbi/gems/parallel@1.27.0.rbi +0 -291
  81. data/sorbet/rbi/gems/parser@3.3.9.0.rbi +0 -5535
  82. data/sorbet/rbi/gems/polars-df@0.20.0.rbi +0 -9
  83. data/sorbet/rbi/gems/pp@0.6.2.rbi +0 -368
  84. data/sorbet/rbi/gems/prettyprint@0.2.0.rbi +0 -477
  85. data/sorbet/rbi/gems/prism@1.4.0.rbi +0 -41732
  86. data/sorbet/rbi/gems/psych@5.2.6.rbi +0 -2469
  87. data/sorbet/rbi/gems/racc@1.8.1.rbi +0 -164
  88. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +0 -403
  89. data/sorbet/rbi/gems/rake@13.3.0.rbi +0 -3031
  90. data/sorbet/rbi/gems/rbi@0.3.6.rbi +0 -6893
  91. data/sorbet/rbi/gems/rbs@3.9.4.rbi +0 -6976
  92. data/sorbet/rbi/gems/rdoc@6.14.2.rbi +0 -12688
  93. data/sorbet/rbi/gems/regexp_parser@2.11.2.rbi +0 -3845
  94. data/sorbet/rbi/gems/reline@0.6.2.rbi +0 -2441
  95. data/sorbet/rbi/gems/rexml@3.4.1.rbi +0 -5240
  96. data/sorbet/rbi/gems/rspec-core@3.13.5.rbi +0 -11250
  97. data/sorbet/rbi/gems/rspec-expectations@3.13.5.rbi +0 -8189
  98. data/sorbet/rbi/gems/rspec-mocks@3.13.5.rbi +0 -5350
  99. data/sorbet/rbi/gems/rspec-support@3.13.4.rbi +0 -1630
  100. data/sorbet/rbi/gems/rspec@3.13.1.rbi +0 -83
  101. data/sorbet/rbi/gems/rubocop-ast@1.46.0.rbi +0 -7764
  102. data/sorbet/rbi/gems/rubocop-sorbet@0.10.5.rbi +0 -2386
  103. data/sorbet/rbi/gems/rubocop@1.79.2.rbi +0 -63321
  104. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +0 -1318
  105. data/sorbet/rbi/gems/sorbet-result@1.4.0.rbi +0 -242
  106. data/sorbet/rbi/gems/sorbet-schema@0.9.2.rbi +0 -743
  107. data/sorbet/rbi/gems/sorbet-struct-comparable@1.3.0.rbi +0 -48
  108. data/sorbet/rbi/gems/spoom@1.6.3.rbi +0 -6985
  109. data/sorbet/rbi/gems/stringio@3.1.7.rbi +0 -9
  110. data/sorbet/rbi/gems/tapioca@0.16.11.rbi +0 -3628
  111. data/sorbet/rbi/gems/thor@1.4.0.rbi +0 -4399
  112. data/sorbet/rbi/gems/tokenizers@0.5.5.rbi +0 -754
  113. data/sorbet/rbi/gems/traces@0.17.0.rbi +0 -9
  114. data/sorbet/rbi/gems/unicode-display_width@3.1.5.rbi +0 -132
  115. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +0 -251
  116. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +0 -435
  117. data/sorbet/rbi/gems/yard@0.9.37.rbi +0 -18379
  118. data/sorbet/rbi/gems/zeitwerk@2.7.3.rbi +0 -1429
  119. data/sorbet/tapioca/config.yml +0 -13
  120. data/sorbet/tapioca/require.rb +0 -4
@@ -1,155 +0,0 @@
1
- # typed: true
2
-
3
- # DO NOT EDIT MANUALLY
4
- # This is an autogenerated file for types exported from the `erubi` gem.
5
- # Please instead update this file by running `bin/tapioca gem erubi`.
6
-
7
-
8
- # source://erubi//lib/erubi.rb#3
9
- module Erubi
10
- private
11
-
12
- def h(_arg0); end
13
-
14
- class << self
15
- def h(_arg0); end
16
- end
17
- end
18
-
19
- # source://erubi//lib/erubi.rb#51
20
- class Erubi::Engine
21
- # Initialize a new Erubi::Engine. Options:
22
- # +:bufval+ :: The value to use for the buffer variable, as a string (default <tt>'::String.new'</tt>).
23
- # +:bufvar+ :: The variable name to use for the buffer variable, as a string.
24
- # +:chain_appends+ :: Whether to chain <tt><<</t> calls to the buffer variable. Offers better
25
- # performance, but can cause issues when the buffer variable is reassigned during
26
- # template rendering (default +false+).
27
- # +:ensure+ :: Wrap the template in a begin/ensure block restoring the previous value of bufvar.
28
- # +:escapefunc+ :: The function to use for escaping, as a string (default: <tt>'::Erubi.h'</tt>).
29
- # +:escape+ :: Whether to make <tt><%=</tt> escape by default, and <tt><%==</tt> not escape by default.
30
- # +:escape_html+ :: Same as +:escape+, with lower priority.
31
- # +:filename+ :: The filename for the template.
32
- # the resulting source code. Note this may cause problems if you are wrapping the resulting
33
- # source code in other code, because the magic comment only has an effect at the beginning of
34
- # the file, and having the magic comment later in the file can trigger warnings.
35
- # +:freeze_template_literals+ :: Whether to suffix all literal strings for template code with <tt>.freeze</tt>
36
- # (default: +true+ on Ruby 2.1+, +false+ on Ruby 2.0 and older).
37
- # Can be set to +false+ on Ruby 2.3+ when frozen string literals are enabled
38
- # in order to improve performance.
39
- # +:literal_prefix+ :: The prefix to output when using escaped tag delimiters (default <tt>'<%'</tt>).
40
- # +:literal_postfix+ :: The postfix to output when using escaped tag delimiters (default <tt>'%>'</tt>).
41
- # +:outvar+ :: Same as +:bufvar+, with lower priority.
42
- # +:postamble+ :: The postamble for the template, by default returns the resulting source code.
43
- # +:preamble+ :: The preamble for the template, by default initializes the buffer variable.
44
- # +:regexp+ :: The regexp to use for scanning.
45
- # +:src+ :: The initial value to use for the source code, an empty string by default.
46
- # +:trim+ :: Whether to trim leading and trailing whitespace, true by default.
47
- #
48
- # @return [Engine] a new instance of Engine
49
- #
50
- # source://erubi//lib/erubi.rb#91
51
- def initialize(input, properties = T.unsafe(nil)); end
52
-
53
- # The variable name used for the buffer variable.
54
- #
55
- # source://erubi//lib/erubi.rb#62
56
- def bufvar; end
57
-
58
- # The filename of the template, if one was given.
59
- #
60
- # source://erubi//lib/erubi.rb#59
61
- def filename; end
62
-
63
- # The frozen ruby source code generated from the template, which can be evaled.
64
- #
65
- # source://erubi//lib/erubi.rb#56
66
- def src; end
67
-
68
- private
69
-
70
- # :nocov:
71
- #
72
- # source://erubi//lib/erubi.rb#209
73
- def _dup_string_if_frozen(string); end
74
-
75
- # Add ruby code to the template
76
- #
77
- # source://erubi//lib/erubi.rb#232
78
- def add_code(code); end
79
-
80
- # Add the given ruby expression result to the template,
81
- # escaping it based on the indicator given and escape flag.
82
- #
83
- # source://erubi//lib/erubi.rb#241
84
- def add_expression(indicator, code); end
85
-
86
- # Add the result of Ruby expression to the template
87
- #
88
- # source://erubi//lib/erubi.rb#250
89
- def add_expression_result(code); end
90
-
91
- # Add the escaped result of Ruby expression to the template
92
- #
93
- # source://erubi//lib/erubi.rb#255
94
- def add_expression_result_escaped(code); end
95
-
96
- # Add the given postamble to the src. Can be overridden in subclasses
97
- # to make additional changes to src that depend on the current state.
98
- #
99
- # source://erubi//lib/erubi.rb#261
100
- def add_postamble(postamble); end
101
-
102
- # Add raw text to the template. Modifies argument if argument is mutable as a memory optimization.
103
- # Must be called with a string, cannot be called with nil (Rails's subclass depends on it).
104
- #
105
- # source://erubi//lib/erubi.rb#222
106
- def add_text(text); end
107
-
108
- # Raise an exception, as the base engine class does not support handling other indicators.
109
- #
110
- # @raise [ArgumentError]
111
- #
112
- # source://erubi//lib/erubi.rb#267
113
- def handle(indicator, code, tailch, rspace, lspace); end
114
-
115
- # Make sure that any current expression has been terminated.
116
- # The default is to terminate all expressions, but when
117
- # the chain_appends option is used, expressions may not be
118
- # terminated.
119
- #
120
- # source://erubi//lib/erubi.rb#295
121
- def terminate_expression; end
122
-
123
- # Make sure the buffer variable is the target of the next append
124
- # before yielding to the block. Mark that the buffer is the target
125
- # of the next append after the block executes.
126
- #
127
- # This method should only be called if the block will result in
128
- # code where << will append to the bufvar.
129
- #
130
- # source://erubi//lib/erubi.rb#277
131
- def with_buffer; end
132
- end
133
-
134
- # The default regular expression used for scanning.
135
- #
136
- # source://erubi//lib/erubi.rb#53
137
- Erubi::Engine::DEFAULT_REGEXP = T.let(T.unsafe(nil), Regexp)
138
-
139
- # source://erubi//lib/erubi.rb#17
140
- Erubi::FREEZE_TEMPLATE_LITERALS = T.let(T.unsafe(nil), TrueClass)
141
-
142
- # source://erubi//lib/erubi.rb#15
143
- Erubi::MATCH_METHOD = T.let(T.unsafe(nil), Symbol)
144
-
145
- # source://erubi//lib/erubi.rb#8
146
- Erubi::RANGE_FIRST = T.let(T.unsafe(nil), Integer)
147
-
148
- # source://erubi//lib/erubi.rb#9
149
- Erubi::RANGE_LAST = T.let(T.unsafe(nil), Integer)
150
-
151
- # source://erubi//lib/erubi.rb#16
152
- Erubi::SKIP_DEFINED_FOR_INSTANCE_VARIABLE = T.let(T.unsafe(nil), TrueClass)
153
-
154
- # source://erubi//lib/erubi.rb#4
155
- Erubi::VERSION = T.let(T.unsafe(nil), String)