docs: AG Native bundle reverse engineering analysis — plannerResponse/Whi renderer structure, V8 cache fix, known-issues update

This commit is contained in:
Variet Worker
2026-04-12 07:05:57 +09:00
parent eef59e6bb2
commit 353265bed8
25 changed files with 1236 additions and 33 deletions

27
test_hub.py Normal file
View File

@@ -0,0 +1,27 @@
import asyncio
from bot import GravityBot
import discord
class FakeChannel:
async def send(self, embed, view=None):
print("Sent to channel successfully!")
class FakeMsg:
id = 999
return FakeMsg()
async def test():
bot = GravityBot(asyncio.Queue())
bot.project_channels["gravity_control"] = FakeChannel()
class FakeHub:
def get_active_count(self, proj): return 1
bot.hub = FakeHub()
await bot._hub_on_pending("gravity_control", {
"request_id": "test1",
"command": "Running1 command",
"description": "test",
"step_type": "",
"buttons": [{"text": "Proceed", "index": 0}],
"timestamp": 12345678.0
})
asyncio.run(test())