2. Replace luastra.json
luastra/navigation · luastra/host · navigation.history · about 20 minutesnavigation.history + ui.render
The host capability is required for URL/history mutations and platform Back responses.
When to use it
Replace the generated manifest before calling any Host history or system Back response API.
Focused example
{
"schemaVersion": 2,
"project": { "id": "dev.luastra.history-recipe", "entry": "app/main" },
"sdk": { "contract": 1 },
"capabilities": ["navigation.history", "ui.render"],
"modules": [
{
"id": "app/main",
"source": "src/main.luau",
"dependencies": ["luastra/app", "luastra/host", "luastra/navigation", "luastra/ui"]
},
{
"id": "app/tests/history",
"source": "tests/smoke.luau",
"dependencies": ["app/main", "luastra/navigation"]
}
],
"tests": ["app/tests/history"]
}