mirror of
https://github.com/moeru-ai/airi.git
synced 2026-08-14 00:48:06 +00:00
chore(stage-tamagotchi): cleanup unused code
Co-authored-by: Garfield Lee <3471836+Garfield550@users.noreply.github.com> Co-authored-by-agent: Codex
This commit is contained in:
co-authored by
Garfield Lee
parent
2eb05425c5
commit
1ae161c273
@@ -84,17 +84,15 @@ function createHostToolKit(options: { tools: TamagotchiToolRegistry }): KitRef<T
|
||||
*
|
||||
* Use when:
|
||||
* - Host bootstrap should depend on a kit-layer API instead of wiring widget/gamelet details inline
|
||||
* - Built-in kit registration and contributions should remain outside the host layer
|
||||
* - Built-in kit registration should remain outside the host layer
|
||||
*
|
||||
* Expects:
|
||||
* - `widgetsManager` is initialized before host construction
|
||||
*
|
||||
* Returns:
|
||||
* - Helpers to attach contributions and register built-in kits on the host
|
||||
* - Helpers to register built-in kits on the host
|
||||
*/
|
||||
export function createBuiltInExtensionKitRuntime(options: SetupExtensionHostOptions): {
|
||||
contributions: []
|
||||
attachHost: (host: ExtensionHost) => void
|
||||
registerHostKits: (host: ExtensionHost) => void
|
||||
tools: TamagotchiToolRegistry
|
||||
dispose: () => void
|
||||
@@ -103,10 +101,6 @@ export function createBuiltInExtensionKitRuntime(options: SetupExtensionHostOpti
|
||||
const tools = new TamagotchiToolRegistry()
|
||||
|
||||
return {
|
||||
contributions: [],
|
||||
attachHost(_host) {
|
||||
void options.widgetsManager
|
||||
},
|
||||
registerHostKits(host) {
|
||||
registerWidgetPluginKit(host)
|
||||
registerGameletPluginKit(host)
|
||||
|
||||
Reference in New Issue
Block a user