@iblai/mcp 1.0.0 → 1.1.3

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.
Files changed (66) hide show
  1. package/README.md +95 -142
  2. package/dist/index.js +129 -97
  3. package/dist/index.js.map +1 -1
  4. package/dist/prompts/create-playwright-test.d.ts +2 -0
  5. package/dist/prompts/create-playwright-test.d.ts.map +1 -0
  6. package/dist/prompts/create-playwright-test.js +99 -0
  7. package/dist/prompts/create-playwright-test.js.map +1 -0
  8. package/dist/prompts/index.d.ts +4 -0
  9. package/dist/prompts/index.d.ts.map +1 -0
  10. package/dist/prompts/index.js +4 -0
  11. package/dist/prompts/index.js.map +1 -0
  12. package/dist/prompts/setup-e2e-testing.d.ts +2 -0
  13. package/dist/prompts/setup-e2e-testing.d.ts.map +1 -0
  14. package/dist/prompts/setup-e2e-testing.js +162 -0
  15. package/dist/prompts/setup-e2e-testing.js.map +1 -0
  16. package/dist/prompts/setup-new-app.d.ts +2 -0
  17. package/dist/prompts/setup-new-app.d.ts.map +1 -0
  18. package/dist/prompts/setup-new-app.js +226 -0
  19. package/dist/prompts/setup-new-app.js.map +1 -0
  20. package/dist/resources/data-layer.js +14 -14
  21. package/dist/resources/guides-layout.js +5 -5
  22. package/dist/resources/guides-playwright.d.ts +8 -0
  23. package/dist/resources/guides-playwright.d.ts.map +1 -0
  24. package/dist/resources/guides-playwright.js +235 -0
  25. package/dist/resources/guides-playwright.js.map +1 -0
  26. package/dist/resources/guides-rbac.js +2 -2
  27. package/dist/resources/guides-theme.js +4 -4
  28. package/dist/resources/index.d.ts +3 -1
  29. package/dist/resources/index.d.ts.map +1 -1
  30. package/dist/resources/index.js +5 -1
  31. package/dist/resources/index.js.map +1 -1
  32. package/dist/resources/packages-overview.d.ts.map +1 -1
  33. package/dist/resources/packages-overview.js +12 -6
  34. package/dist/resources/packages-overview.js.map +1 -1
  35. package/dist/resources/packages-playwright.d.ts +8 -0
  36. package/dist/resources/packages-playwright.d.ts.map +1 -0
  37. package/dist/resources/packages-playwright.js +161 -0
  38. package/dist/resources/packages-playwright.js.map +1 -0
  39. package/dist/resources/web-containers.d.ts.map +1 -1
  40. package/dist/resources/web-containers.js +82 -22
  41. package/dist/resources/web-containers.js.map +1 -1
  42. package/dist/resources/web-utils.d.ts.map +1 -1
  43. package/dist/resources/web-utils.js +46 -9
  44. package/dist/resources/web-utils.js.map +1 -1
  45. package/dist/tools/api-query-info.d.ts.map +1 -1
  46. package/dist/tools/api-query-info.js +248 -238
  47. package/dist/tools/api-query-info.js.map +1 -1
  48. package/dist/tools/component-info.d.ts.map +1 -1
  49. package/dist/tools/component-info.js +945 -469
  50. package/dist/tools/component-info.js.map +1 -1
  51. package/dist/tools/hook-info.d.ts.map +1 -1
  52. package/dist/tools/hook-info.js +229 -98
  53. package/dist/tools/hook-info.js.map +1 -1
  54. package/dist/tools/index.d.ts +15 -1
  55. package/dist/tools/index.d.ts.map +1 -1
  56. package/dist/tools/index.js +3 -1
  57. package/dist/tools/index.js.map +1 -1
  58. package/dist/tools/page-template.js +8 -8
  59. package/dist/tools/page-template.js.map +1 -1
  60. package/dist/tools/playwright-helper-info.d.ts +16 -0
  61. package/dist/tools/playwright-helper-info.d.ts.map +1 -0
  62. package/dist/tools/playwright-helper-info.js +849 -0
  63. package/dist/tools/playwright-helper-info.js.map +1 -0
  64. package/dist/tools/provider-setup.js +4 -4
  65. package/dist/tools/provider-setup.js.map +1 -1
  66. package/package.json +19 -6
@@ -3,35 +3,35 @@ export const webContainers = {
3
3
  name: 'Web Containers Package',
4
4
  description: 'Shared React components built on Radix UI',
5
5
  mimeType: 'text/markdown',
6
- content: `# @iblai/web-containers
6
+ content: `# @iblai/iblai-js/web-containers
7
7
 
8
8
  Shared React component library built on Radix UI primitives with Tailwind CSS styling.
9
9
 
10
10
  ## UI Primitives (Radix UI-based)
11
11
 
12
- Located in \`@iblai/web-containers/components/ui/\`:
12
+ Located in \`@iblai/iblai-js/web-containers/components/ui/\`:
13
13
 
14
14
  | Component | Import | Description |
15
15
  |-----------|--------|-------------|
16
- | Button | \`import { Button } from '@iblai/web-containers'\` | Variants: default, destructive, outline, secondary, ghost, link |
17
- | Card | \`import { Card, CardHeader, CardContent, CardFooter } from '@iblai/web-containers'\` | Container for content grouping |
18
- | Dialog | \`import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@iblai/web-containers'\` | Modal dialog |
19
- | Input | \`import { Input } from '@iblai/web-containers'\` | Text input field |
20
- | Select | \`import { Select, SelectTrigger, SelectContent, SelectItem } from '@iblai/web-containers'\` | Dropdown select |
21
- | Tabs | \`import { Tabs, TabsList, TabsTrigger, TabsContent } from '@iblai/web-containers'\` | Tabbed interface |
22
- | Switch | \`import { Switch } from '@iblai/web-containers'\` | Toggle switch |
23
- | Checkbox | \`import { Checkbox } from '@iblai/web-containers'\` | Checkbox input |
24
- | Tooltip | \`import { Tooltip, TooltipTrigger, TooltipContent } from '@iblai/web-containers'\` | Hover tooltip |
25
- | Avatar | \`import { Avatar, AvatarImage, AvatarFallback } from '@iblai/web-containers'\` | User avatar |
26
- | Badge | \`import { Badge } from '@iblai/web-containers'\` | Inline label |
27
- | Skeleton | \`import { Skeleton } from '@iblai/web-containers'\` | Loading placeholder |
28
- | Toast/Toaster | \`import { Toaster, toast } from '@iblai/web-containers'\` | Notifications (Sonner) |
16
+ | Button | \`import { Button } from '@iblai/iblai-js/web-containers'\` | Variants: default, destructive, outline, secondary, ghost, link |
17
+ | Card | \`import { Card, CardHeader, CardContent, CardFooter } from '@iblai/iblai-js/web-containers'\` | Container for content grouping |
18
+ | Dialog | \`import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@iblai/iblai-js/web-containers'\` | Modal dialog |
19
+ | Input | \`import { Input } from '@iblai/iblai-js/web-containers'\` | Text input field |
20
+ | Select | \`import { Select, SelectTrigger, SelectContent, SelectItem } from '@iblai/iblai-js/web-containers'\` | Dropdown select |
21
+ | Tabs | \`import { Tabs, TabsList, TabsTrigger, TabsContent } from '@iblai/iblai-js/web-containers'\` | Tabbed interface |
22
+ | Switch | \`import { Switch } from '@iblai/iblai-js/web-containers'\` | Toggle switch |
23
+ | Checkbox | \`import { Checkbox } from '@iblai/iblai-js/web-containers'\` | Checkbox input |
24
+ | Tooltip | \`import { Tooltip, TooltipTrigger, TooltipContent } from '@iblai/iblai-js/web-containers'\` | Hover tooltip |
25
+ | Avatar | \`import { Avatar, AvatarImage, AvatarFallback } from '@iblai/iblai-js/web-containers'\` | User avatar |
26
+ | Badge | \`import { Badge } from '@iblai/iblai-js/web-containers'\` | Inline label |
27
+ | Skeleton | \`import { Skeleton } from '@iblai/iblai-js/web-containers'\` | Loading placeholder |
28
+ | Toast/Toaster | \`import { Toaster, toast } from '@iblai/iblai-js/web-containers'\` | Notifications (Sonner) |
29
29
 
30
30
  ## Feature Components
31
31
 
32
32
  ### Profile Management
33
33
  \`\`\`typescript
34
- import { Profile, Account, Security, Organization } from '@iblai/web-containers';
34
+ import { Profile, Account, Security, Organization } from '@iblai/iblai-js/web-containers';
35
35
 
36
36
  // Full profile with tabs
37
37
  <Profile
@@ -43,7 +43,7 @@ import { Profile, Account, Security, Organization } from '@iblai/web-containers'
43
43
 
44
44
  ### Notifications
45
45
  \`\`\`typescript
46
- import { NotificationDropdown, SendNotificationDialog } from '@iblai/web-containers';
46
+ import { NotificationDropdown, SendNotificationDialog } from '@iblai/iblai-js/web-containers';
47
47
 
48
48
  <NotificationDropdown
49
49
  org={tenantKey}
@@ -60,7 +60,7 @@ import {
60
60
  AnalyticsOverview,
61
61
  ChartFiltersProvider,
62
62
  useChartFilters,
63
- } from '@iblai/web-containers';
63
+ } from '@iblai/iblai-js/web-containers';
64
64
 
65
65
  <ChartFiltersProvider>
66
66
  <AnalyticsLayout>
@@ -71,7 +71,7 @@ import {
71
71
 
72
72
  ### Authentication Buttons
73
73
  \`\`\`typescript
74
- import { LoginButton, SignupButton } from '@iblai/web-containers';
74
+ import { LoginButton, SignupButton } from '@iblai/iblai-js/web-containers';
75
75
 
76
76
  <LoginButton
77
77
  authUrl="https://auth.example.com"
@@ -88,7 +88,7 @@ import { LoginButton, SignupButton } from '@iblai/web-containers';
88
88
  ## Utility Functions
89
89
 
90
90
  \`\`\`typescript
91
- import { cn, htmlToMarkdown, sanitizeHtml } from '@iblai/web-containers';
91
+ import { cn, htmlToMarkdown, sanitizeHtml } from '@iblai/iblai-js/web-containers';
92
92
 
93
93
  // Merge Tailwind classes with conflict resolution
94
94
  const className = cn('base-class', condition && 'conditional-class');
@@ -97,7 +97,67 @@ const className = cn('base-class', condition && 'conditional-class');
97
97
  ## Next.js Specific Exports
98
98
 
99
99
  \`\`\`typescript
100
- import { SsoLogin, ErrorPage, UserProfileDropdown } from '@iblai/web-containers/next';
100
+ import { SsoLogin, ErrorPage, UserProfileDropdown } from '@iblai/iblai-js/web-containers/next';
101
+ \`\`\`
102
+
103
+ ### AppSidebar
104
+ Collapsible sidebar for the Mentor app with configurable content and footer menu items.
105
+
106
+ \`\`\`typescript
107
+ import { AppSidebar } from '@iblai/iblai-js/web-containers/next';
108
+
109
+ <AppSidebar
110
+ logo={<img src="/logo.svg" alt="Logo" />}
111
+ contentItems={[
112
+ { icon: MessageSquare, label: 'Chat', onClick: () => navigate('/chat') },
113
+ { icon: Compass, label: 'Explore', onClick: () => navigate('/explore'), hasBorder: true },
114
+ ]}
115
+ footerItems={[
116
+ { icon: Settings, label: 'Settings', onClick: openSettings },
117
+ { icon: LogOut, label: 'Logout', onClick: handleLogout },
118
+ ]}
119
+ showProjects={false}
120
+ showPinnedMessages={false}
121
+ showRecentMessages={false}
122
+ />
123
+ \`\`\`
124
+
125
+ ### NavBar
126
+ Top navigation bar with user menu, new chat button, and optional mentor dropdown.
127
+
128
+ \`\`\`typescript
129
+ import { NavBar } from '@iblai/iblai-js/web-containers/next';
130
+
131
+ <NavBar
132
+ username={username}
133
+ isAuthenticated={true}
134
+ onNewChat={() => startNewChat()}
135
+ onSettings={() => openSettings()}
136
+ onLogout={() => handleLogout()}
137
+ onLogin={() => redirectToLogin()}
138
+ mentorName="My Mentor"
139
+ showMentorDropdown={false}
140
+ additionalMenuItems={[
141
+ { icon: User, label: 'Profile', onClick: openProfile },
142
+ ]}
143
+ />
144
+ \`\`\`
145
+
146
+ ### ConversationStarters
147
+ Displays guided prompt cards that users can click to start a chat session.
148
+
149
+ \`\`\`typescript
150
+ import { ConversationStarters } from '@iblai/iblai-js/web-containers/next';
151
+
152
+ <ConversationStarters
153
+ onTemplateSelect={(prompt) => sendMessage(prompt)}
154
+ guidedPrompts={[
155
+ { prompt: 'Help me study for my exam', icon: 'book-open' },
156
+ { prompt: 'Explain this concept', icon: 'lightbulb' },
157
+ ]}
158
+ disabled={isStreaming}
159
+ className="mt-4"
160
+ />
101
161
  \`\`\`
102
162
 
103
163
  ## Styling / Theme
@@ -115,7 +175,7 @@ The package uses CSS custom properties for theming:
115
175
 
116
176
  Import base styles in your app:
117
177
  \`\`\`typescript
118
- import '@iblai/web-containers/styles/base.css';
178
+ import '@iblai/iblai-js/web-containers/styles/base.css';
119
179
  \`\`\`
120
180
  `,
121
181
  };
@@ -1 +1 @@
1
- {"version":3,"file":"web-containers.js","sourceRoot":"","sources":["../../src/resources/web-containers.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,GAAG,EAAE,+BAA+B;IACpC,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE,2CAA2C;IACxD,QAAQ,EAAE,eAAe;IACzB,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkHV;CACA,CAAC"}
1
+ {"version":3,"file":"web-containers.js","sourceRoot":"","sources":["../../src/resources/web-containers.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,GAAG,EAAE,+BAA+B;IACpC,IAAI,EAAE,wBAAwB;IAC9B,WAAW,EAAE,2CAA2C;IACxD,QAAQ,EAAE,eAAe;IACzB,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8KV;CACA,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"web-utils.d.ts","sourceRoot":"","sources":["../../src/resources/web-utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;CAgNpB,CAAC"}
1
+ {"version":3,"file":"web-utils.d.ts","sourceRoot":"","sources":["../../src/resources/web-utils.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ;;;;;;CAqPpB,CAAC"}
@@ -3,7 +3,7 @@ export const webUtils = {
3
3
  name: 'Web Utils Package',
4
4
  description: 'Authentication, providers, and utility hooks',
5
5
  mimeType: 'text/markdown',
6
- content: `# @iblai/web-utils
6
+ content: `# @iblai/iblai-js/web-utils
7
7
 
8
8
  Authentication utilities, context providers, and React hooks for the IBL platform.
9
9
 
@@ -13,7 +13,7 @@ Authentication utilities, context providers, and React hooks for the IBL platfor
13
13
  Handles authentication middleware, token validation, and cross-SPA synchronization.
14
14
 
15
15
  \`\`\`typescript
16
- import { AuthProvider } from '@iblai/web-utils';
16
+ import { AuthProvider } from '@iblai/iblai-js/web-utils';
17
17
 
18
18
  <AuthProvider
19
19
  skip={pathname === '/sso-login' || pathname === '/version'}
@@ -35,7 +35,7 @@ import { AuthProvider } from '@iblai/web-utils';
35
35
  Manages multi-tenant context, tenant switching, and tenant metadata.
36
36
 
37
37
  \`\`\`typescript
38
- import { TenantProvider } from '@iblai/web-utils';
38
+ import { TenantProvider } from '@iblai/iblai-js/web-utils';
39
39
 
40
40
  <TenantProvider
41
41
  currentTenant={currentTenant}
@@ -52,7 +52,7 @@ import { TenantProvider } from '@iblai/web-utils';
52
52
  Manages AI mentor selection, authorization, and navigation.
53
53
 
54
54
  \`\`\`typescript
55
- import { MentorProvider } from '@iblai/web-utils';
55
+ import { MentorProvider } from '@iblai/iblai-js/web-utils';
56
56
 
57
57
  <MentorProvider
58
58
  username={username}
@@ -105,7 +105,7 @@ import { MentorProvider } from '@iblai/web-utils';
105
105
  Main hook for AI mentor chat with WebSocket streaming.
106
106
 
107
107
  \`\`\`typescript
108
- import { useAdvancedChat } from '@iblai/web-utils';
108
+ import { useAdvancedChat } from '@iblai/iblai-js/web-utils';
109
109
 
110
110
  const {
111
111
  messages,
@@ -134,7 +134,7 @@ const {
134
134
  Fetches mentor configuration.
135
135
 
136
136
  \`\`\`typescript
137
- import { useMentorSettings } from '@iblai/web-utils';
137
+ import { useMentorSettings } from '@iblai/iblai-js/web-utils';
138
138
 
139
139
  const {
140
140
  profileImage,
@@ -145,6 +145,43 @@ const {
145
145
  } = useMentorSettings({ mentorId, tenantKey, username });
146
146
  \`\`\`
147
147
 
148
+ ## Tenant Metadata Hook
149
+
150
+ ### useTenantMetadata
151
+ Fetches and provides tenant-level metadata configuration, including feature flags and platform settings.
152
+
153
+ \\\`\\\`\\\`typescript
154
+ import { useTenantMetadata } from '@iblai/iblai-js/web-utils';
155
+
156
+ const {
157
+ metadata,
158
+ platformName,
159
+ isLoading,
160
+ isError,
161
+ metadataLoaded,
162
+ isSkillsAssignmentsFeatureHidden,
163
+ isSkillsResumeFeatureHidden,
164
+ isMentorAIEnabled,
165
+ isSkillsLeaderBoardEnabled,
166
+ getEmbeddedMentorToUse,
167
+ isMentorInappropriateContentEnabled,
168
+ getAllMetadatas,
169
+ getSupportEmail,
170
+ } = useTenantMetadata({ org: tenantKey, spa: 'mentorAI' });
171
+
172
+ // Check if reporting inappropriate content is enabled (defaults to true)
173
+ if (isMentorInappropriateContentEnabled()) {
174
+ // Show report button
175
+ }
176
+ \\\`\\\`\\\`
177
+
178
+ **Tenant Metadata Config (MentorAI):**
179
+ - \\\`show_help\\\` (boolean, default: true) — Display help center link
180
+ - \\\`accessibility_menu\\\` (boolean, default: false) — Display accessibility menu
181
+ - \\\`mentor_include_community_mentors\\\` (boolean, default: true) — Allow community mentors
182
+ - \\\`mentor_report_inappropriate_content\\\` (boolean, default: true) — Allow users to report inappropriate content
183
+ - \\\`help_center_url\\\` (string, default: "https://docs.ibl.ai") — Help center URL
184
+
148
185
  ## Authentication Utilities
149
186
 
150
187
  \`\`\`typescript
@@ -154,7 +191,7 @@ import {
154
191
  handleLogout,
155
192
  syncAuthToCookies,
156
193
  clearAuthCookies,
157
- } from '@iblai/web-utils';
194
+ } from '@iblai/iblai-js/web-utils';
158
195
 
159
196
  // Check if user is logged in
160
197
  if (!isLoggedIn('axd_token')) {
@@ -175,7 +212,7 @@ handleLogout({
175
212
  ## File Upload Service
176
213
 
177
214
  \`\`\`typescript
178
- import { createFileReference, createMultipleFileReferences } from '@iblai/web-utils';
215
+ import { createFileReference, createMultipleFileReferences } from '@iblai/iblai-js/web-utils';
179
216
 
180
217
  // Single file upload
181
218
  const fileRef = await createFileReference({
@@ -203,7 +240,7 @@ import {
203
240
  LOCAL_STORAGE_KEYS,
204
241
  ANONYMOUS_USERNAME,
205
242
  TOOLS, // Web search, code interpreter, etc.
206
- } from '@iblai/web-utils';
243
+ } from '@iblai/iblai-js/web-utils';
207
244
  \`\`\`
208
245
  `,
209
246
  };
@@ -1 +1 @@
1
- {"version":3,"file":"web-utils.js","sourceRoot":"","sources":["../../src/resources/web-utils.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,GAAG,EAAE,0BAA0B;IAC/B,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,8CAA8C;IAC3D,QAAQ,EAAE,eAAe;IACzB,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0MV;CACA,CAAC"}
1
+ {"version":3,"file":"web-utils.js","sourceRoot":"","sources":["../../src/resources/web-utils.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,GAAG,EAAE,0BAA0B;IAC/B,IAAI,EAAE,mBAAmB;IACzB,WAAW,EAAE,8CAA8C;IAC3D,QAAQ,EAAE,eAAe;IACzB,OAAO,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+OV;CACA,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"api-query-info.d.ts","sourceRoot":"","sources":["../../src/tools/api-query-info.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;CAa5B,CAAC;AAyzEF,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAgKzD"}
1
+ {"version":3,"file":"api-query-info.d.ts","sourceRoot":"","sources":["../../src/tools/api-query-info.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;CAa5B,CAAC;AAm0EF,wBAAgB,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAgKzD"}