summaryrefslogtreecommitdiff
path: root/ocaml/lib/effects.ml
diff options
context:
space:
mode:
authorpolwex <polwex@sortug.com>2025-10-06 04:19:06 +0700
committerpolwex <polwex@sortug.com>2025-10-06 04:19:06 +0700
commite927376355a1b07e5385dedad7a0d6c5d5bb1f92 (patch)
treeb43320310709ec70b0322f7b13b1c3e88aff0236 /ocaml/lib/effects.ml
parent24eac75c69b3d74388bbbc8ee2b6792e7590e4c6 (diff)
ames done
Diffstat (limited to 'ocaml/lib/effects.ml')
-rw-r--r--ocaml/lib/effects.ml10
1 files changed, 10 insertions, 0 deletions
diff --git a/ocaml/lib/effects.ml b/ocaml/lib/effects.ml
index e73af3e..f0d9955 100644
--- a/ocaml/lib/effects.ml
+++ b/ocaml/lib/effects.ml
@@ -92,6 +92,16 @@ let log_ovum ~msg:_ =
(Noun.atom 0); (* simplified - would be text *)
}
+(* Create an Ames packet ovum *)
+let ames_packet ~from:_ ~data:_ =
+ {
+ wire = Noun.atom 0; (* simplified routing *)
+ card = Noun.cell
+ (Noun.atom 2) (* ames tag *)
+ (Noun.atom 0); (* simplified - would be packet data *)
+ }
+ (* Note: from and data ignored for now, would be encoded in card *)
+
(* Parse effects from Arvo output
*
* In a real implementation, this would parse the noun structure