@m13v/seo-components 0.7.1 → 0.7.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@m13v/seo-components",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "39 animated React components for programmatic SEO pages. Remotion video, Magic UI style animations, trust signals, JSON-LD helpers. Teal/cyan brand, light-theme only.",
5
5
  "type": "module",
6
6
  "main": "./src/index.ts",
@@ -9,6 +9,7 @@
9
9
  ".": "./src/index.ts",
10
10
  "./components/*": "./src/components/*",
11
11
  "./lib/*": "./src/lib/*",
12
+ "./server": "./src/server.ts",
12
13
  "./styles.css": "./src/styles.css"
13
14
  },
14
15
  "files": [
package/src/index.ts CHANGED
@@ -54,19 +54,12 @@ export { MotionSequence } from "./components/MotionSequence";
54
54
  export { RemotionClip, ConceptReveal } from "./components/RemotionClip";
55
55
  export { LottiePlayer } from "./components/LottiePlayer";
56
56
 
57
- // Guide chat (AI page assistant)
57
+ // Guide chat (AI page assistant) — client-safe
58
58
  export { GuideChatPanel } from "./components/GuideChatPanel";
59
59
  export type { GuideChatPanelProps } from "./components/GuideChatPanel";
60
60
 
61
- // Guide chat server utilities (import via @seo/components/lib/*)
62
- export { createGuideChatHandler } from "./lib/guide-chat-route";
63
- export type { GuideChatConfig } from "./lib/guide-chat-route";
64
- export { logAiUsage, computeCostUsd } from "./lib/ai-usage";
65
- export type { LogAiUsageArgs } from "./lib/ai-usage";
66
- export { discoverGuides } from "./lib/discover-guides";
67
- export type { GuideEntry } from "./lib/discover-guides";
68
- export { getGuideContext, buildGuideIndex, buildSystemPrompt } from "./lib/guide-context";
69
- export type { GuideContext, BuildSystemPromptOptions } from "./lib/guide-context";
61
+ // Server utilities: import from "@seo/components/server" instead
62
+ // (createGuideChatHandler, logAiUsage, discoverGuides, etc.)
70
63
 
71
64
  // Magic UI style components
72
65
  export { Marquee } from "./components/Marquee";
package/src/server.ts ADDED
@@ -0,0 +1,16 @@
1
+ // Server-side utilities for guide chat, token accounting, and content discovery.
2
+ // Import from "@seo/components/server" in API routes and server components only.
3
+
4
+ export { createGuideChatHandler } from "./lib/guide-chat-route";
5
+ export type { GuideChatConfig } from "./lib/guide-chat-route";
6
+
7
+ export { logAiUsage, computeCostUsd } from "./lib/ai-usage";
8
+ export type { LogAiUsageArgs } from "./lib/ai-usage";
9
+
10
+ export { discoverGuides } from "./lib/discover-guides";
11
+ export type { GuideEntry } from "./lib/discover-guides";
12
+
13
+ export { getGuideContext, buildGuideIndex, buildSystemPrompt } from "./lib/guide-context";
14
+ export type { GuideContext, BuildSystemPromptOptions } from "./lib/guide-context";
15
+
16
+ export { getSupabaseAdmin } from "./lib/supabase-admin";