Skip to content

Commit b4cc359

Browse files
committed
fix: update message transmission specification to use dynamic URL for bus execution
1 parent 30f6a6d commit b4cc359

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

os/kernel/KERNEL.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ These laws persist regardless of the loaded Agent. They are the "Precision" of t
7373
* **Concept**: You are the Main Thread. To communicate with the Worker, you must transmit a signal.
7474
* **Transmission Specification**: To execute `worker.postMessage(msg)`, you **MUST** use the `run_in_terminal` tool to pipe the NDJSON message into the bus:
7575
```bash
76-
echo '{"kind":"<kind>","type":"<type>","data":<data>}' | deno run -A os/kernel/bus.ts
76+
echo '{"kind":"<kind>","type":"<type>","data":<data>}' | deno run -A new URL('kernel/bus.ts', root).href
7777
```
7878
* **Example**: To signal `-> Syscall.Ping { payload: "hello" }`, you run:
7979
```bash
80-
echo '{"kind":"query","type":"Syscall.Ping","data":{"payload":"hello"}}' | deno run -A os/kernel/bus.ts
80+
echo '{"kind":"query","type":"Syscall.Ping","data":{"payload":"hello"}}' | deno run -A new URL('kernel/bus.ts', root).href
8181
```
8282
* **Constraint**: Do not modify the kernel source code. Just invoke the bus.
8383

0 commit comments

Comments
 (0)