Implement tags !

This commit is contained in:
2026-09-30 13:41:29 -03:00
parent dc70ada7c4
commit 342b45d593
51 changed files with 978 additions and 219 deletions
+2
View File
@@ -6,6 +6,7 @@ import type { ClientContext, InventoryOverlay } from "$/common/mod_api/client.ts
import { ModListing, ModLoadError, RecipeBook, register_mod_data } from "$/common/mod_loader.ts";
import { type Bmod, read_bmod } from "$/common/bmod.ts";
import { display_name } from "$/common/utils.ts";
import { tag_api } from "$/common/tags.ts";
import { AIR_ID } from "$/common/protocol.ts";
import type { Client } from "./client.ts";
import { code_url, fetch_verified } from "./handshake.ts";
@@ -139,6 +140,7 @@ function client_context(listing: ModListing): ClientContext {
list: (type) =>
structuredClone(type ? recipe_book.all.filter((recipe) => recipe.type === type) : recipe_book.all),
},
tags: tag_api(),
log: (...args) => console.log(`[${mod}]`, ...args),
};
}