commit 045117aaf65aa29f19d4c83f74b82eab61263f2e
parent a51bcec280225cd2c443b4b80a44d7942c6955b8
Author: triesap <tyson@radroots.org>
Date: Wed, 8 Apr 2026 17:12:54 +0000
src: scaffold core and stdio packages
- create hyf_core and hyf_stdio package directories
- move the main entrypoint to hyf_stdio.server.run_stdio_server
- keep the slice structural with placeholder core and stdio modules only
- verify the bootstrap shape with pixi run run
Diffstat:
14 files changed, 48 insertions(+), 1 deletion(-)
diff --git a/src/hyf_core/__init__.mojo b/src/hyf_core/__init__.mojo
@@ -0,0 +1 @@
+
diff --git a/src/hyf_core/backends/__init__.mojo b/src/hyf_core/backends/__init__.mojo
@@ -0,0 +1 @@
+
diff --git a/src/hyf_core/backends/null_backend.mojo b/src/hyf_core/backends/null_backend.mojo
@@ -0,0 +1,3 @@
+def backend_name() -> String:
+ return "null"
+
diff --git a/src/hyf_core/capabilities/__init__.mojo b/src/hyf_core/capabilities/__init__.mojo
@@ -0,0 +1 @@
+
diff --git a/src/hyf_core/capabilities/registry.mojo b/src/hyf_core/capabilities/registry.mojo
@@ -0,0 +1,3 @@
+def bootstrap_capability_count() -> Int:
+ return 0
+
diff --git a/src/hyf_core/errors.mojo b/src/hyf_core/errors.mojo
@@ -0,0 +1,3 @@
+def core_error_module_name() -> String:
+ return "hyf_core.errors"
+
diff --git a/src/hyf_core/provenance.mojo b/src/hyf_core/provenance.mojo
@@ -0,0 +1,3 @@
+def provenance_module_name() -> String:
+ return "hyf_core.provenance"
+
diff --git a/src/hyf_core/request_context.mojo b/src/hyf_core/request_context.mojo
@@ -0,0 +1,3 @@
+def request_context_module_name() -> String:
+ return "hyf_core.request_context"
+
diff --git a/src/hyf_stdio/__init__.mojo b/src/hyf_stdio/__init__.mojo
@@ -0,0 +1 @@
+
diff --git a/src/hyf_stdio/control/__init__.mojo b/src/hyf_stdio/control/__init__.mojo
@@ -0,0 +1 @@
+
diff --git a/src/hyf_stdio/envelope.mojo b/src/hyf_stdio/envelope.mojo
@@ -0,0 +1,3 @@
+def envelope_module_name() -> String:
+ return "hyf_stdio.envelope"
+
diff --git a/src/hyf_stdio/errors.mojo b/src/hyf_stdio/errors.mojo
@@ -0,0 +1,3 @@
+def stdio_error_module_name() -> String:
+ return "hyf_stdio.errors"
+
diff --git a/src/hyf_stdio/server.mojo b/src/hyf_stdio/server.mojo
@@ -0,0 +1,18 @@
+from hyf_core.backends.null_backend import backend_name
+from hyf_core.capabilities.registry import bootstrap_capability_count
+from hyf_core.errors import core_error_module_name
+from hyf_core.provenance import provenance_module_name
+from hyf_core.request_context import request_context_module_name
+from hyf_stdio.envelope import envelope_module_name
+from hyf_stdio.errors import stdio_error_module_name
+
+
+def run_stdio_server() raises:
+ _ = backend_name()
+ _ = bootstrap_capability_count()
+ _ = core_error_module_name()
+ _ = provenance_module_name()
+ _ = request_context_module_name()
+ _ = envelope_module_name()
+ _ = stdio_error_module_name()
+
diff --git a/src/main.mojo b/src/main.mojo
@@ -1,2 +1,5 @@
+from hyf_stdio.server import run_stdio_server
+
+
def main() raises:
- pass
+ run_stdio_server()