@fayz-ai/plugin-menu 0.10.0 → 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +25 -1
- package/dist/index.js.map +1 -1
- package/dist/migrations/index.d.ts +1 -0
- package/dist/migrations/index.d.ts.map +1 -1
- package/package.json +6 -5
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const MIGRATION_001_MENU_BASE = "-- Menu Plugin: base tables.\n--\n-- Three levels, because a restaurant does not have \"a menu\": it has a lunch\n-- menu, a weekend menu and a delivery menu, and the same dish appears in more\n-- than one of them at more than one price.\n-- plg_menu_menus \u2014 the menu itself, with when and where it is served\n-- plg_menu_sections \u2014 ordered sections inside a menu\n-- plg_menu_placements \u2014 an item's seat in a section (order + price override)\n-- Items stay in public.products (the spine); plg_menu_items carries only what\n-- is menu-specific about a product.\n\nCREATE TABLE IF NOT EXISTS public.plg_menu_menus (\n id uuid PRIMARY KEY DEFAULT gen_random_uuid(),\n tenant_id uuid NOT NULL REFERENCES public.tenants(id) ON DELETE CASCADE,\n name text NOT NULL,\n description text,\n is_active boolean NOT NULL DEFAULT true,\n sort_order integer NOT NULL DEFAULT 0,\n -- Where it shows: pos | delivery | digital.\n channels text[] NOT NULL DEFAULT ARRAY['pos','delivery','digital']::text[],\n -- { days:[0..6], start:'HH:MM', end:'HH:MM', from:'YYYY-MM-DD', to:'YYYY-MM-DD' }\n -- An empty object means \"always\", which is the common case.\n availability jsonb NOT NULL DEFAULT '{}'::jsonb,\n created_at timestamptz NOT NULL DEFAULT now(),\n updated_at timestamptz NOT NULL DEFAULT now()\n);\nALTER TABLE public.plg_menu_menus ENABLE ROW LEVEL SECURITY;\nCREATE INDEX IF NOT EXISTS idx_plg_menu_menus_tenant ON public.plg_menu_menus(tenant_id, sort_order);\n\nCREATE TABLE IF NOT EXISTS public.plg_menu_sections (\n id uuid PRIMARY KEY DEFAULT gen_random_uuid(),\n tenant_id uuid NOT NULL REFERENCES public.tenants(id) ON DELETE CASCADE,\n menu_id uuid NOT NULL REFERENCES public.plg_menu_menus(id) ON DELETE CASCADE,\n name text NOT NULL,\n description text,\n image_url text,\n sort_order integer NOT NULL DEFAULT 0,\n is_active boolean NOT NULL DEFAULT true,\n availability jsonb NOT NULL DEFAULT '{}'::jsonb,\n -- Set when the section was adopted from a legacy flat category, so the\n -- backfill can run twice without doubling the sections.\n legacy_category_id uuid,\n created_at timestamptz NOT NULL DEFAULT now(),\n updated_at timestamptz NOT NULL DEFAULT now()\n);\nALTER TABLE public.plg_menu_sections ENABLE ROW LEVEL SECURITY;\nCREATE INDEX IF NOT EXISTS idx_plg_menu_sections_menu ON public.plg_menu_sections(menu_id, sort_order);\nCREATE INDEX IF NOT EXISTS idx_plg_menu_sections_tenant ON public.plg_menu_sections(tenant_id);\nCREATE UNIQUE INDEX IF NOT EXISTS uq_plg_menu_sections_legacy ON public.plg_menu_sections(menu_id, legacy_category_id)\n WHERE legacy_category_id IS NOT NULL;\n\nCREATE TABLE IF NOT EXISTS public.plg_menu_placements (\n id uuid PRIMARY KEY DEFAULT gen_random_uuid(),\n tenant_id uuid NOT NULL REFERENCES public.tenants(id) ON DELETE CASCADE,\n section_id uuid NOT NULL REFERENCES public.plg_menu_sections(id) ON DELETE CASCADE,\n item_id uuid NOT NULL REFERENCES public.products(id) ON DELETE CASCADE,\n sort_order integer NOT NULL DEFAULT 0,\n price_override numeric(14,2),\n is_active boolean NOT NULL DEFAULT true,\n created_at timestamptz NOT NULL DEFAULT now(),\n updated_at timestamptz NOT NULL DEFAULT now()\n);\nALTER TABLE public.plg_menu_placements ENABLE ROW LEVEL SECURITY;\nCREATE INDEX IF NOT EXISTS idx_plg_menu_placements_section ON public.plg_menu_placements(section_id, sort_order);\nCREATE INDEX IF NOT EXISTS idx_plg_menu_placements_item ON public.plg_menu_placements(item_id);\nCREATE UNIQUE INDEX IF NOT EXISTS uq_plg_menu_placements_seat ON public.plg_menu_placements(section_id, item_id);\n\nCREATE TABLE IF NOT EXISTS public.plg_menu_items (\n product_id uuid PRIMARY KEY REFERENCES public.products(id) ON DELETE CASCADE,\n tenant_id uuid NOT NULL REFERENCES public.tenants(id) ON DELETE CASCADE,\n status text NOT NULL DEFAULT 'available',\n available_for_pos boolean NOT NULL DEFAULT true,\n available_for_delivery boolean NOT NULL DEFAULT true,\n delivery_price numeric(14,2),\n prep_time_minutes integer,\n allergens text[] NOT NULL DEFAULT ARRAY[]::text[],\n dietary_tags text[] NOT NULL DEFAULT ARRAY[]::text[],\n is_featured boolean NOT NULL DEFAULT false,\n sort_order integer NOT NULL DEFAULT 0,\n created_at timestamptz NOT NULL DEFAULT now(),\n updated_at timestamptz NOT NULL DEFAULT now()\n);\nALTER TABLE public.plg_menu_items ENABLE ROW LEVEL SECURITY;\nCREATE INDEX IF NOT EXISTS idx_plg_menu_items_tenant ON public.plg_menu_items(tenant_id);\n\n-- Modifier groups (add-ons): declared by the plugin's registries, owned here.\nCREATE TABLE IF NOT EXISTS public.plg_menu_modifier_groups (\n id uuid PRIMARY KEY DEFAULT gen_random_uuid(),\n tenant_id uuid NOT NULL REFERENCES public.tenants(id) ON DELETE CASCADE,\n name text NOT NULL,\n min_selections integer NOT NULL DEFAULT 0,\n max_selections integer NOT NULL DEFAULT 1,\n is_required boolean NOT NULL DEFAULT false,\n sort_order integer NOT NULL DEFAULT 0,\n created_at timestamptz NOT NULL DEFAULT now()\n);\nALTER TABLE public.plg_menu_modifier_groups ENABLE ROW LEVEL SECURITY;\nCREATE INDEX IF NOT EXISTS idx_plg_menu_modifier_groups_tenant ON public.plg_menu_modifier_groups(tenant_id);\n\nCREATE TABLE IF NOT EXISTS public.plg_menu_modifiers (\n id uuid PRIMARY KEY DEFAULT gen_random_uuid(),\n tenant_id uuid NOT NULL REFERENCES public.tenants(id) ON DELETE CASCADE,\n group_id uuid NOT NULL REFERENCES public.plg_menu_modifier_groups(id) ON DELETE CASCADE,\n name text NOT NULL,\n price_adjustment numeric(14,2) NOT NULL DEFAULT 0,\n is_active boolean NOT NULL DEFAULT true,\n sort_order integer NOT NULL DEFAULT 0,\n created_at timestamptz NOT NULL DEFAULT now()\n);\nALTER TABLE public.plg_menu_modifiers ENABLE ROW LEVEL SECURITY;\nCREATE INDEX IF NOT EXISTS idx_plg_menu_modifiers_group ON public.plg_menu_modifiers(group_id, sort_order);\n\nCREATE TABLE IF NOT EXISTS public.plg_menu_item_modifier_groups (\n id uuid PRIMARY KEY DEFAULT gen_random_uuid(),\n tenant_id uuid NOT NULL REFERENCES public.tenants(id) ON DELETE CASCADE,\n product_id uuid NOT NULL REFERENCES public.products(id) ON DELETE CASCADE,\n group_id uuid NOT NULL REFERENCES public.plg_menu_modifier_groups(id) ON DELETE CASCADE,\n sort_order integer NOT NULL DEFAULT 0\n);\nALTER TABLE public.plg_menu_item_modifier_groups ENABLE ROW LEVEL SECURITY;\nCREATE UNIQUE INDEX IF NOT EXISTS uq_plg_menu_item_modifier_groups ON public.plg_menu_item_modifier_groups(product_id, group_id);\n\nCREATE TABLE IF NOT EXISTS public.plg_menu_allergens (\n id uuid PRIMARY KEY DEFAULT gen_random_uuid(),\n tenant_id uuid NOT NULL REFERENCES public.tenants(id) ON DELETE CASCADE,\n name text NOT NULL,\n icon text,\n is_active boolean NOT NULL DEFAULT true,\n created_at timestamptz NOT NULL DEFAULT now()\n);\nALTER TABLE public.plg_menu_allergens ENABLE ROW LEVEL SECURITY;\nCREATE INDEX IF NOT EXISTS idx_plg_menu_allergens_tenant ON public.plg_menu_allergens(tenant_id);\n\nCREATE TABLE IF NOT EXISTS public.plg_menu_dietary_tags (\n id uuid PRIMARY KEY DEFAULT gen_random_uuid(),\n tenant_id uuid NOT NULL REFERENCES public.tenants(id) ON DELETE CASCADE,\n name text NOT NULL,\n color text,\n is_active boolean NOT NULL DEFAULT true,\n created_at timestamptz NOT NULL DEFAULT now()\n);\nALTER TABLE public.plg_menu_dietary_tags ENABLE ROW LEVEL SECURITY;\nCREATE INDEX IF NOT EXISTS idx_plg_menu_dietary_tags_tenant ON public.plg_menu_dietary_tags(tenant_id);\n\n-- Canonical per-tenant RLS + grants for every table above.\nDO $$\nDECLARE t text;\nBEGIN\n FOR t IN SELECT unnest(ARRAY[\n 'plg_menu_menus','plg_menu_sections','plg_menu_placements','plg_menu_items',\n 'plg_menu_modifier_groups','plg_menu_modifiers','plg_menu_item_modifier_groups',\n 'plg_menu_allergens','plg_menu_dietary_tags'\n ])\n LOOP\n EXECUTE format('ALTER TABLE public.%I ENABLE ROW LEVEL SECURITY', t);\n EXECUTE format('GRANT SELECT, INSERT, UPDATE, DELETE ON public.%I TO authenticated', t);\n IF NOT EXISTS (SELECT 1 FROM pg_policies WHERE schemaname='public' AND tablename=t AND policyname=t||'_select') THEN\n EXECUTE format('CREATE POLICY %I ON public.%I FOR SELECT TO authenticated USING (tenant_id IN (SELECT public.user_tenant_ids()))', t||'_select', t);\n END IF;\n IF NOT EXISTS (SELECT 1 FROM pg_policies WHERE schemaname='public' AND tablename=t AND policyname=t||'_insert') THEN\n EXECUTE format('CREATE POLICY %I ON public.%I FOR INSERT TO authenticated WITH CHECK (tenant_id IN (SELECT public.user_tenant_ids()))', t||'_insert', t);\n END IF;\n IF NOT EXISTS (SELECT 1 FROM pg_policies WHERE schemaname='public' AND tablename=t AND policyname=t||'_update') THEN\n EXECUTE format('CREATE POLICY %I ON public.%I FOR UPDATE TO authenticated USING (tenant_id IN (SELECT public.user_tenant_ids()))', t||'_update', t);\n END IF;\n IF NOT EXISTS (SELECT 1 FROM pg_policies WHERE schemaname='public' AND tablename=t AND policyname=t||'_delete') THEN\n EXECUTE format('CREATE POLICY %I ON public.%I FOR DELETE TO authenticated USING (tenant_id IN (SELECT public.user_tenant_ids()))', t||'_delete', t);\n END IF;\n END LOOP;\nEND $$;\n";
|
|
2
2
|
export declare const MIGRATION_002_MENU_BACKFILL = "-- Menu Plugin: adopt whatever menu already exists in the pool.\n--\n-- Pools that ran the incubator version of this plugin have a flat world:\n-- categories in public.categories (kind='menu_category'), item flags in a\n-- public.menu_items extension, and no menus at all. Rather than ask the\n-- restaurant to type its menu again, the first menu is BUILT from that data:\n-- one \"Card\u00E1pio principal\" per tenant, its sections are the old categories, and\n-- every product already sitting in a category takes its seat.\n--\n-- Every step is guarded twice: by the existence of the legacy object (a fresh\n-- pool has none of it) and by a NOT EXISTS on the target, so re-applying does\n-- nothing. The legacy tables are never written to or dropped \u2014 an app still\n-- reading them keeps working.\n\nDO $$\nDECLARE\n has_categories boolean := to_regclass('public.categories') IS NOT NULL;\n has_legacy_items boolean := to_regclass('public.menu_items') IS NOT NULL;\n has_products boolean := to_regclass('public.products') IS NOT NULL;\n has_category_kind boolean := EXISTS (\n SELECT 1 FROM information_schema.columns\n WHERE table_schema='public' AND table_name='categories' AND column_name='kind'\n );\n has_product_category boolean := EXISTS (\n SELECT 1 FROM information_schema.columns\n WHERE table_schema='public' AND table_name='products' AND column_name='category_id'\n );\nBEGIN\n -- 1. One default menu per tenant that has menu categories or menu items.\n IF has_categories AND has_category_kind THEN\n EXECUTE $sql$\n INSERT INTO public.plg_menu_menus (tenant_id, name, description, sort_order)\n SELECT DISTINCT c.tenant_id, 'Card\u00E1pio principal', NULL, 0\n FROM public.categories c\n WHERE c.kind = 'menu_category'\n AND c.tenant_id IS NOT NULL\n AND NOT EXISTS (SELECT 1 FROM public.plg_menu_menus m WHERE m.tenant_id = c.tenant_id)\n $sql$;\n END IF;\n\n IF has_legacy_items THEN\n EXECUTE $sql$\n INSERT INTO public.plg_menu_menus (tenant_id, name, description, sort_order)\n SELECT DISTINCT mi.tenant_id, 'Card\u00E1pio principal', NULL, 0\n FROM public.menu_items mi\n WHERE mi.tenant_id IS NOT NULL\n AND NOT EXISTS (SELECT 1 FROM public.plg_menu_menus m WHERE m.tenant_id = mi.tenant_id)\n $sql$;\n END IF;\n\n -- 2. Sections from the flat categories, keeping name and order.\n IF has_categories AND has_category_kind THEN\n EXECUTE $sql$\n INSERT INTO public.plg_menu_sections (tenant_id, menu_id, name, sort_order, is_active, legacy_category_id)\n SELECT c.tenant_id, m.id, c.name,\n COALESCE(NULLIF(c.sort_order, 0), row_number() OVER (PARTITION BY c.tenant_id ORDER BY c.sort_order, c.name)),\n COALESCE(c.is_active, true), c.id\n FROM public.categories c\n JOIN public.plg_menu_menus m\n ON m.tenant_id = c.tenant_id AND m.sort_order = 0\n WHERE c.kind = 'menu_category'\n AND NOT EXISTS (\n SELECT 1 FROM public.plg_menu_sections s\n WHERE s.menu_id = m.id AND s.legacy_category_id = c.id\n )\n $sql$;\n END IF;\n\n -- 3. Seat every product that already belongs to one of those categories.\n IF has_products AND has_product_category AND has_categories AND has_category_kind THEN\n EXECUTE $sql$\n INSERT INTO public.plg_menu_placements (tenant_id, section_id, item_id, sort_order)\n SELECT p.tenant_id, s.id, p.id,\n row_number() OVER (PARTITION BY s.id ORDER BY p.name)\n FROM public.products p\n JOIN public.plg_menu_sections s ON s.legacy_category_id = p.category_id AND s.tenant_id = p.tenant_id\n WHERE NOT EXISTS (\n SELECT 1 FROM public.plg_menu_placements pl\n WHERE pl.section_id = s.id AND pl.item_id = p.id\n )\n $sql$;\n END IF;\n\n -- 4. Carry the menu-specific item flags over from the legacy extension.\n IF has_legacy_items THEN\n EXECUTE $sql$\n INSERT INTO public.plg_menu_items (\n product_id, tenant_id, status, available_for_pos, available_for_delivery,\n delivery_price, prep_time_minutes, allergens, dietary_tags, is_featured, sort_order\n )\n SELECT mi.product_id, mi.tenant_id,\n COALESCE(mi.status, 'available'),\n COALESCE(mi.available_for_pos, true),\n COALESCE(mi.available_for_delivery, true),\n mi.delivery_price, mi.prep_time_minutes,\n COALESCE(mi.allergens, ARRAY[]::text[]),\n COALESCE(mi.dietary_tags, ARRAY[]::text[]),\n COALESCE(mi.is_featured, false),\n COALESCE(mi.sort_order, 0)\n FROM public.menu_items mi\n WHERE mi.tenant_id IS NOT NULL\n ON CONFLICT (product_id) DO NOTHING\n $sql$;\n END IF;\nEND $$;\n\n-- Seed the allergen / dietary registries once per tenant that has a menu.\nINSERT INTO public.plg_menu_allergens (tenant_id, name, icon)\nSELECT m.tenant_id, v.name, v.icon\nFROM (SELECT DISTINCT tenant_id FROM public.plg_menu_menus) m\nCROSS JOIN (VALUES\n ('Gl\u00FAten', 'Wheat'), ('Lactose', 'Milk'), ('Ovos', 'Egg'),\n ('Amendoim', 'Nut'), ('Frutos do mar', 'Fish'), ('Soja', 'Bean')\n) AS v(name, icon)\nWHERE NOT EXISTS (\n SELECT 1 FROM public.plg_menu_allergens a WHERE a.tenant_id = m.tenant_id AND a.name = v.name\n);\n\nINSERT INTO public.plg_menu_dietary_tags (tenant_id, name, color)\nSELECT m.tenant_id, v.name, v.color\nFROM (SELECT DISTINCT tenant_id FROM public.plg_menu_menus) m\nCROSS JOIN (VALUES\n ('Vegetariano', 'green'), ('Vegano', 'emerald'), ('Sem gl\u00FAten', 'amber')\n) AS v(name, color)\nWHERE NOT EXISTS (\n SELECT 1 FROM public.plg_menu_dietary_tags d WHERE d.tenant_id = m.tenant_id AND d.name = v.name\n);\n";
|
|
3
3
|
export declare const MIGRATION_003_MENU_STORAGE = "-- Menu Plugin: bucket for item, section and import photos.\n--\n-- Public on read: these images are the menu the customer looks at, and a signed\n-- URL per dish would mean re-signing the whole menu on every render. Writing is\n-- the guarded half \u2014 only a member of the tenant whose folder it is.\n-- Path grammar: {tenant_id}/{item|section|menu|import}/{uuid}.{ext}\n\nINSERT INTO storage.buckets (id, name, public, file_size_limit, allowed_mime_types)\nVALUES (\n 'menu-images',\n 'menu-images',\n true,\n 8388608, -- 8 MB: a phone photo of a menu page, already compressed by the client\n ARRAY['image/jpeg','image/png','image/webp','image/heic','image/heif']\n)\nON CONFLICT (id) DO UPDATE SET\n public = EXCLUDED.public,\n file_size_limit = EXCLUDED.file_size_limit,\n allowed_mime_types = EXCLUDED.allowed_mime_types;\n\nDROP POLICY IF EXISTS plg_menu_images_read ON storage.objects;\nDROP POLICY IF EXISTS plg_menu_images_insert ON storage.objects;\nDROP POLICY IF EXISTS plg_menu_images_update ON storage.objects;\nDROP POLICY IF EXISTS plg_menu_images_delete ON storage.objects;\n\nCREATE POLICY plg_menu_images_read ON storage.objects\n FOR SELECT TO anon, authenticated\n USING (bucket_id = 'menu-images');\n\nCREATE POLICY plg_menu_images_insert ON storage.objects\n FOR INSERT TO authenticated\n WITH CHECK (\n bucket_id = 'menu-images'\n AND (storage.foldername(name))[1] IN (SELECT public.user_tenant_ids()::text)\n );\n\nCREATE POLICY plg_menu_images_update ON storage.objects\n FOR UPDATE TO authenticated\n USING (\n bucket_id = 'menu-images'\n AND (storage.foldername(name))[1] IN (SELECT public.user_tenant_ids()::text)\n );\n\nCREATE POLICY plg_menu_images_delete ON storage.objects\n FOR DELETE TO authenticated\n USING (\n bucket_id = 'menu-images'\n AND (storage.foldername(name))[1] IN (SELECT public.user_tenant_ids()::text)\n );\n";
|
|
4
|
+
export declare const MIGRATION_004_THE_MENU_DECLARES_ITS_SPECIES = "-- ---------------------------------------------------------------------------\n-- 004_the_menu_declares_its_species.sql \u2014 the card\u00E1pio's taxonomy becomes a row\n-- (#274, ADR 0017).\n--\n-- The base owns the FORM of a Category; this plugin owns the species of it that\n-- a restaurant has. 147 named this case explicitly and left the declaring here,\n-- which is the rule the registry exists to make enforceable: a species is\n-- written by a plugin, in a row, with a foreign key behind it \u2014 not chosen as a\n-- literal and hoped to be unique.\n-- ---------------------------------------------------------------------------\n\nDO $$\nBEGIN\n IF to_regprocedure('public.register_kind(text, text, text, text[], jsonb, text)') IS NULL THEN\n RAISE NOTICE 'plugin-menu 004: register_kind missing (spine < 147) \u2014 skipped';\n RETURN;\n END IF;\n\n PERFORM public.register_kind(\n 'category', 'menu_category', 'menu', NULL, NULL,\n 'Uma se\u00E7\u00E3o do card\u00E1pio: entradas, pratos, bebidas, sobremesas.');\nEND $$;\n";
|
|
4
5
|
export declare const MIGRATIONS: Array<{
|
|
5
6
|
id: string;
|
|
6
7
|
sql: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB,s/RA0KnC,CAAA;AAED,eAAO,MAAM,2BAA2B,qnLA+HvC,CAAA;AAED,eAAO,MAAM,0BAA0B,g4DAiDtC,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB,s/RA0KnC,CAAA;AAED,eAAO,MAAM,2BAA2B,qnLA+HvC,CAAA;AAED,eAAO,MAAM,0BAA0B,g4DAiDtC,CAAA;AAED,eAAO,MAAM,2CAA2C,iiCAsBvD,CAAA;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAKzD,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fayz-ai/plugin-menu",
|
|
3
3
|
"fayz": {
|
|
4
|
-
"status": "beta"
|
|
4
|
+
"status": "beta",
|
|
5
|
+
"dependencies": []
|
|
5
6
|
},
|
|
6
|
-
"version": "0.10.
|
|
7
|
+
"version": "0.10.1",
|
|
7
8
|
"description": "Fayz SDK — plugin-menu plugin",
|
|
8
9
|
"type": "module",
|
|
9
10
|
"sideEffects": false,
|
|
@@ -30,10 +31,10 @@
|
|
|
30
31
|
"@dnd-kit/core": "^6.3.1",
|
|
31
32
|
"@dnd-kit/sortable": "^10.0.0",
|
|
32
33
|
"@dnd-kit/utilities": "^3.2.2",
|
|
33
|
-
"@fayz-ai/core": "^0.
|
|
34
|
+
"@fayz-ai/core": "^0.16.0",
|
|
34
35
|
"@fayz-ai/sdk": "^0.15.0",
|
|
35
|
-
"@fayz-ai/admin": "^0.
|
|
36
|
-
"@fayz-ai/ui": "^0.
|
|
36
|
+
"@fayz-ai/admin": "^0.16.0",
|
|
37
|
+
"@fayz-ai/ui": "^0.16.0"
|
|
37
38
|
},
|
|
38
39
|
"devDependencies": {
|
|
39
40
|
"@types/react": "^18.3.0",
|