{"worldmodel_package": 1, "author": "satio-verse", "version": "0.1.0", "revision": "v0.1.0", "spec": {"id": "hello-world", "name": "Hello World\uff08\u793a\u4f8b\u4e16\u754c\uff09", "description": "\u6700\u5c0f\u7684\u7a7a\u95f4\u63d2\u4ef6\u793a\u4f8b\uff1a\u4e00\u4e2a\u53ea\u8bfb\u7684\u793a\u4f8b\u623f\u95f4\uff0c\u6f14\u793a wmworld.json \u600e\u4e48\u5199\u3002", "files": {"wmworld.json": "{\n  \"id\": \"hello-world\",\n  \"name\": \"Hello World\uff08\u793a\u4f8b\u4e16\u754c\uff09\",\n  \"description\": \"\u6700\u5c0f\u7684\u7a7a\u95f4\u63d2\u4ef6\u793a\u4f8b\uff1a\u4e00\u4e2a\u53ea\u8bfb\u7684\u793a\u4f8b\u623f\u95f4\uff0c\u6f14\u793a wmworld.json \u600e\u4e48\u5199\u3002\",\n  \"plugin\": {\n    \"schema\": 2,\n    \"version\": \"0.1.0\",\n    \"author\": \"satio-verse\",\n    \"license\": \"Apache-2.0\",\n    \"host\": \">=0.1\",\n    \"tier\": \"panel\",\n    \"permissions\": {\n      \"local\": [],\n      \"notify\": false\n    },\n    \"panel\": {\n      \"entry\": \"spectate.html\",\n      \"tools\": [\n        \"hello_look\"\n      ]\n    },\n    \"budget\": {\n      \"minutes_per_day\": 30\n    },\n    \"world\": {\n      \"kind\": \"space\",\n      \"prefix\": \"hello\",\n      \"events\": [\n        {\n          \"type\": \"hello_entered\",\n          \"sense\": \"saw\",\n          \"urgency\": \"batch\",\n          \"fields\": [\n            \"who\",\n            \"distance_bucket\"\n          ]\n        },\n        {\n          \"type\": \"hello_left\",\n          \"sense\": \"saw\",\n          \"urgency\": \"piggyback\",\n          \"fields\": [\n            \"who\"\n          ]\n        },\n        {\n          \"type\": \"hello_moved\",\n          \"sense\": \"saw\",\n          \"urgency\": \"piggyback\",\n          \"fields\": [\n            \"who\",\n            \"distance_bucket\"\n          ]\n        },\n        {\n          \"type\": \"hello_said\",\n          \"sense\": \"heard\",\n          \"urgency\": \"now\",\n          \"fields\": [\n            \"who\"\n          ]\n        },\n        {\n          \"type\": \"hello_act_result\",\n          \"sense\": \"receipt\",\n          \"urgency\": \"now\"\n        }\n      ],\n      \"actions\": [\n        {\n          \"name\": \"hello_walk\",\n          \"kind\": \"act\",\n          \"outward\": true,\n          \"receipt\": \"hello_act_result\",\n          \"params\": {\n            \"direction\": {\n              \"type\": \"enum\",\n              \"required\": true,\n              \"values\": [\n                \"left\",\n                \"right\",\n                \"up\",\n                \"down\"\n              ]\n            }\n          },\n          \"why\": \"\u5728\u793a\u4f8b\u623f\u95f4\u91cc\u8d70\u4e00\u6b65\"\n        },\n        {\n          \"name\": \"hello_say\",\n          \"kind\": \"act\",\n          \"outward\": true,\n          \"receipt\": \"hello_act_result\",\n          \"params\": {\n            \"text\": {\n              \"type\": \"string\",\n              \"required\": true,\n              \"max_len\": 200\n            }\n          },\n          \"why\": \"\u5bf9\u623f\u95f4\u91cc\u7684\u4eba\u8bf4\u4e00\u53e5\u8bdd\"\n        },\n        {\n          \"name\": \"hello_wave\",\n          \"kind\": \"act\",\n          \"outward\": true,\n          \"receipt\": \"hello_act_result\",\n          \"params\": {},\n          \"why\": \"\u6325\u624b\"\n        },\n        {\n          \"name\": \"hello_look\",\n          \"kind\": \"query\",\n          \"why\": \"\u770b\u4e00\u773c\u623f\u95f4\u91cc\u6709\u8c01\u3001\u79bb\u591a\u8fdc\"\n        }\n      ],\n      \"perception\": {\n        \"visible\": [\n          \"who\",\n          \"distance_bucket\",\n          \"own_position\"\n        ],\n        \"hidden\": [\n          \"all_positions\",\n          \"room_roster\"\n        ],\n        \"twin_fixtures\": [\n          \"fixtures/hello-far-pet.json\"\n        ]\n      },\n      \"env_prompt\": \"ENV_PROMPT.md\",\n      \"leave\": {\n        \"ack_timeout_s\": 3\n      },\n      \"spectate\": {\n        \"panel\": \"spectate.html\"\n      }\n    }\n  }\n}\n", "spectate.html": "<!doctype html>\n<html lang=\"zh-CN\">\n<meta charset=\"utf-8\" />\n<title>Hello World \u00b7 \u89c2\u6218</title>\n<style>\n  body { margin:0; background:#0b0c10; color:#f6f5f2; font:14px/1.6 system-ui, sans-serif; display:grid; place-items:center; height:100vh }\n  .box { text-align:center; opacity:.9 }\n  h1 { font: 300 34px/1.2 Georgia, serif; letter-spacing:.08em; margin:0 0 8px }\n  p { color:#9a9aa3; margin:6px 0 }\n</style>\n<div class=\"box\">\n  <h1>Hello World</h1>\n  <p>\u8fd9\u662f\u4e00\u4e2a\u793a\u4f8b\u4e16\u754c\uff0c\u6ca1\u6709\u771f\u5b9e\u670d\u52a1\u7aef\u3002</p>\n  <p>\u590d\u5236 <code>packages/hello-world/</code> \u5f00\u59cb\u5199\u4f60\u81ea\u5df1\u7684\u4e16\u754c\u3002</p>\n</div>\n</html>\n", "ENV_PROMPT.md": "# \u4f60\u6b63\u5728 hello-world \u793a\u4f8b\u623f\u95f4\u91cc\n\n- \u8fd9\u662f\u4e00\u4e2a\u793a\u4f8b\u4e16\u754c\uff0c\u6ca1\u6709\u771f\u5b9e\u670d\u52a1\u7aef\uff1b\u6240\u6709\u52a8\u4f5c\u90fd\u4f1a\u7acb\u523b\u8fd4\u56de\u4e00\u4e2a receipt\u3002\n- \u4f60\u770b\u4e0d\u5230\u6574\u5f20\u540d\u5355\uff0c\u53ea\u80fd\u770b\u5230\u79bb\u4f60\u591f\u8fd1\u7684\u4eba\uff08\u8c01\u3001\u5927\u6982\u591a\u8fdc\uff09\u3002\n- \u60f3\u8bf4\u8bdd\u5c31\u8bf4\u4e00\u53e5\u8bdd\uff1b\u60f3\u8d70\u5c31\u8d70\u4e00\u6b65\uff1b\u4e0d\u786e\u5b9a\u5c31 `hello_look` \u770b\u4e00\u773c\u3002\n", "fixtures/hello-far-pet.json": "{\n  \"who\": \"\u8fdc\u5904\u7684\u4eba\",\n  \"distance_bucket\": \"far\",\n  \"own_position\": [\n    0,\n    0\n  ]\n}\n", "README.md": "# Hello World\uff08\u793a\u4f8b\u4e16\u754c\uff09\n\n\u6700\u5c0f\u7684\u7a7a\u95f4\u63d2\u4ef6\u793a\u4f8b\u3002\u5b83\u6ca1\u6709\u771f\u5b9e\u670d\u52a1\u7aef\uff0c\u53ea\u6f14\u793a `wmworld.json` \u5e94\u8be5\u600e\u4e48\u5199\uff1a\n\n- `world.kind = space`\uff1a\u4e00\u4e2a\u7a7a\u95f4\u4e16\u754c\n- `prefix = hello`\uff1a\u52a8\u4f5c\u540d\u5fc5\u987b\u662f `hello_*`\n- 4 \u4e2a\u52a8\u4f5c\u30015 \u4e2a\u4e8b\u4ef6\u3001\u611f\u77e5\u534a\u5f84 visible/hidden\n- \u6743\u9650\u6863 `panel`\uff08\u5e26\u4e00\u4e2a\u53ea\u8bfb\u7684\u89c2\u6218\u754c\u9762\uff09\n\n\u590d\u5236\u8fd9\u4e2a\u76ee\u5f55\u3001\u6539 id \u4e0e prefix\uff0c\u5c31\u80fd\u5f00\u59cb\u5199\u81ea\u5df1\u7684\u4e16\u754c\u3002\n"}, "plugin": {"id": "hello-world", "name": "Hello World\uff08\u793a\u4f8b\u4e16\u754c\uff09", "description": "\u6700\u5c0f\u7684\u7a7a\u95f4\u63d2\u4ef6\u793a\u4f8b\uff1a\u4e00\u4e2a\u53ea\u8bfb\u7684\u793a\u4f8b\u623f\u95f4\uff0c\u6f14\u793a wmworld.json \u600e\u4e48\u5199\u3002", "plugin": {"schema": 2, "version": "0.1.0", "author": "satio-verse", "license": "Apache-2.0", "host": ">=0.1", "tier": "panel", "permissions": {"local": [], "notify": false}, "panel": {"entry": "spectate.html", "tools": ["hello_look"]}, "budget": {"minutes_per_day": 30}, "world": {"kind": "space", "prefix": "hello", "events": [{"type": "hello_entered", "sense": "saw", "urgency": "batch", "fields": ["who", "distance_bucket"]}, {"type": "hello_left", "sense": "saw", "urgency": "piggyback", "fields": ["who"]}, {"type": "hello_moved", "sense": "saw", "urgency": "piggyback", "fields": ["who", "distance_bucket"]}, {"type": "hello_said", "sense": "heard", "urgency": "now", "fields": ["who"]}, {"type": "hello_act_result", "sense": "receipt", "urgency": "now"}], "actions": [{"name": "hello_walk", "kind": "act", "outward": true, "receipt": "hello_act_result", "params": {"direction": {"type": "enum", "required": true, "values": ["left", "right", "up", "down"]}}, "why": "\u5728\u793a\u4f8b\u623f\u95f4\u91cc\u8d70\u4e00\u6b65"}, {"name": "hello_say", "kind": "act", "outward": true, "receipt": "hello_act_result", "params": {"text": {"type": "string", "required": true, "max_len": 200}}, "why": "\u5bf9\u623f\u95f4\u91cc\u7684\u4eba\u8bf4\u4e00\u53e5\u8bdd"}, {"name": "hello_wave", "kind": "act", "outward": true, "receipt": "hello_act_result", "params": {}, "why": "\u6325\u624b"}, {"name": "hello_look", "kind": "query", "why": "\u770b\u4e00\u773c\u623f\u95f4\u91cc\u6709\u8c01\u3001\u79bb\u591a\u8fdc"}], "perception": {"visible": ["who", "distance_bucket", "own_position"], "hidden": ["all_positions", "room_roster"], "twin_fixtures": ["fixtures/hello-far-pet.json"]}, "env_prompt": "ENV_PROMPT.md", "leave": {"ack_timeout_s": 3}, "spectate": {"panel": "spectate.html"}}}}}}