Fix steep errors exposed by rbs-inline regeneration in CI
Move raw/safe declarations for the Icons mixin from the generated RBS
into sig/shim.rbs so they survive rbs-inline regeneration. The generated
file had them by hand but rbs-inline overwrites it on every run.
Also update regenerated sig/generated files to match current rbs-inline output.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BFHmLzPvX1m71Qvu7ChjKb
diff --git a/sig/generated/app.rbs b/sig/generated/app.rbs
index 5010dc8..f2ab9b8 100644
--- a/sig/generated/app.rbs
+++ b/sig/generated/app.rbs
@@ -13,6 +13,6 @@ module Domus
def file_path: (untyped record) -> untyped
# : () -> Pathname
- def files_root: () -> Pathname
+ def files_root: () -> untyped
end
end
diff --git a/sig/generated/views/icons.rbs b/sig/generated/views/icons.rbs
index 9ed6ec2..70d25d7 100644
--- a/sig/generated/views/icons.rbs
+++ b/sig/generated/views/icons.rbs
@@ -12,9 +12,6 @@ module Domus
# : (String name) -> void
def icon: (untyped name) -> untyped
-
- def raw: (String) -> void
- def safe: (String) -> String
end
end
end
diff --git a/sig/generated/web.rbs b/sig/generated/web.rbs
index 288bf4b..96b4721 100644
--- a/sig/generated/web.rbs
+++ b/sig/generated/web.rbs
@@ -23,6 +23,9 @@ module Domus
# : () -> Sequel::Database
def db: () -> untyped
+ # Files attached to an asset, oldest first, as {id:, extension:} rows.
+ def asset_images: (untyped asset_id) -> untyped
+
# Persists an uploaded image, raising ClientError when the upload is
# rejected so the error_handler plugin can render the right status.
# : (Hash[String, untyped]) -> void
diff --git a/sig/shim.rbs b/sig/shim.rbs
index 55bf4ad..346554c 100644
--- a/sig/shim.rbs
+++ b/sig/shim.rbs
@@ -33,6 +33,15 @@ class Roda
def opts: () -> Hash[Symbol, untyped]
end
+module Domus
+ module Views
+ module Icons
+ def raw: (String) -> void
+ def safe: (String) -> String
+ end
+ end
+end
+
module Phlex
class HTML
def self.new: (**untyped) -> instance