@12-apps/mcp 3.5.0 → 3.6.0

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.
@@ -1,6 +1,151 @@
1
1
  import { OnboardingStore, OnboardingStateSnapshot } from '@12-apps/onboarding';
2
- import { f as AiHostGuide, h as AiProvider, b as AiCapability, d as AiHostBrand } from '../guide-DV5MQbCg.js';
3
- export { A as AI_CAPABILITIES, a as AI_PERMISSION_MODEL, c as AiConnectPromptSpec, e as AiHostConfigureStage, g as AiHostLink, i as aiConnectPrompt, j as aiHostGuides, p as providerForHostId } from '../guide-DV5MQbCg.js';
2
+ import { e as AiHostGuide, g as AiProvider, A as AiCapability, c as AiHostBrand } from '../guide-KQNcXlMG.js';
3
+ export { b as AiConnectPromptSpec, d as AiHostConfigureStage, f as AiHostLink, h as aiConnectPrompt, p as providerForHostId } from '../guide-KQNcXlMG.js';
4
+ export { P as PT_BR_AI_CAPABILITIES, a as PT_BR_AI_CONNECT_PROMPT, b as PT_BR_AI_HOST_GUIDES, c as PT_BR_AI_PERMISSION_MODEL } from '../pt-BR-e1RnV2v8.js';
5
+
6
+ /**
7
+ * Every word the AI-integration screens render, as REQUIRED host config
8
+ * (FUT-760).
9
+ *
10
+ * These components used to take `capabilities` / `permissionModel` / `hosts` as
11
+ * OPTIONAL props defaulting to this package's own pt-BR, and to compile the rest
12
+ * of their sentences in outright. `guide.ts` even said so — "these are the
13
+ * shared defaults" — which is the anti-pattern named exactly: a host that
14
+ * configured nothing shipped one product's Portuguese, and nothing failed to
15
+ * say so.
16
+ *
17
+ * Split per screen rather than one flat map, because three of them
18
+ * (`AiLanding`, `AiCapabilities`, `AiStatusBoard`, `HostSelectStep`) are
19
+ * exported standalone and a host mounting only one should not have to supply
20
+ * words for screens it never renders.
21
+ */
22
+ /** The marketing block's headline and its supporting line. */
23
+ interface AiCapabilitiesCopy {
24
+ heading: string;
25
+ subheading: string;
26
+ }
27
+ /** One reassurance chip on the landing: an icon's label and its caption. */
28
+ interface AiTrustPoint {
29
+ /** Stable id — maps to the icon in the component. */
30
+ id: string;
31
+ label: string;
32
+ caption: string;
33
+ }
34
+ interface AiLandingCopy {
35
+ /** Small line above the headline. */
36
+ eyebrow: string;
37
+ /** The headline's second half, after the assistant names. */
38
+ titleTail: string;
39
+ /** The paragraph under the headline. */
40
+ lede: string;
41
+ /** The reassurance strip. Order is the order rendered. */
42
+ trust: readonly AiTrustPoint[];
43
+ /** The call to action that starts the guided flow. */
44
+ start: string;
45
+ }
46
+ /** The wizard's step labels, in the order the stepper shows them. */
47
+ interface AiFlowStepLabels {
48
+ select: string;
49
+ copyUrl: string;
50
+ configure: string;
51
+ connect: string;
52
+ install: string;
53
+ confirm: string;
54
+ }
55
+ /** The wizard's navigation words and each step's own sentences. */
56
+ interface AiFlowCopy {
57
+ /** The stepper's labels. Not sentences, but still the host's words. */
58
+ steps: AiFlowStepLabels;
59
+ back: string;
60
+ next: string;
61
+ advance: string;
62
+ finish: string;
63
+ copyUrl: string;
64
+ copied: string;
65
+ copyMessage: string;
66
+ /** The copy-the-URL step's heading. Names the host's own noun for a tenant. */
67
+ copyUrlTitle: string;
68
+ /** Under the MCP URL: what this value is and what happens on copy. */
69
+ urlCaption: string;
70
+ /** Under the paste-in prompt: what the assistant will do with it. */
71
+ promptCaption: string;
72
+ /** The "ask the assistant to connect" step heading. */
73
+ askTitle: string;
74
+ /** The one-click install step's body, for a host with a published plugin. */
75
+ installBody: string;
76
+ /** The install button on that step. */
77
+ installAction: string;
78
+ /** Heading over the paste-in message on the manual path. */
79
+ pasteTitle: string;
80
+ /** Caption under the paste-in message on the install path. */
81
+ pasteInstallCaption: string;
82
+ /** Confirmation once a host reports in. */
83
+ connectedTo(hostLabel: string): string;
84
+ waitingTitle: string;
85
+ waitingBody(hostLabel: string): string;
86
+ testNow: string;
87
+ }
88
+ interface AiStatusBoardCopy {
89
+ instructions: string;
90
+ connected: string;
91
+ notConnected: string;
92
+ connect: string;
93
+ disconnect: string;
94
+ disconnectTitle: string;
95
+ disconnectBody: string;
96
+ disconnectConfirm: string;
97
+ boardTitle: string;
98
+ boardCaption: string;
99
+ }
100
+ /**
101
+ * The one-line summary of a connection's recency.
102
+ *
103
+ * Functions rather than strings because the number is interpolated and the
104
+ * plural rule is the host language's, not this package's.
105
+ */
106
+ interface AiConnectionSummaryCopy {
107
+ /** Active within the last minute — no number to interpolate. */
108
+ activeNow: string;
109
+ activeMinutes(minutes: number): string;
110
+ activeHours(hours: number): string;
111
+ activeDays(days: number): string;
112
+ /** Connected, but too long ago to state a recency for. */
113
+ configured: string;
114
+ /** Appended after a host's name: `Claude Conectado`. */
115
+ connectedSuffix: string;
116
+ /** Several assistants at once, from an already-joined list of names. */
117
+ connectedSeveral(names: string): string;
118
+ /** Connected, but the provider was never attributed to a known assistant. */
119
+ connectedGeneric: string;
120
+ }
121
+ interface AiHostSelectCopy {
122
+ /** Why the owner is picking, under the host tiles. */
123
+ caption: string;
124
+ }
125
+ interface AiConnectGuideCopy {
126
+ /** The label on the MCP URL field. Names the host's own noun for a tenant. */
127
+ urlLabel: string;
128
+ /** Above the MCP URL field. */
129
+ urlHint: string;
130
+ /** Lead-in to the vendor's official connector docs link. */
131
+ moreInfo: string;
132
+ connectOn(hostLabel: string): string;
133
+ }
134
+ interface AiOnboardingCopy {
135
+ title: string;
136
+ editLabel: string;
137
+ }
138
+ /** Every screen's words, for a host mounting the whole flow. */
139
+ interface McpAiCopy {
140
+ capabilities: AiCapabilitiesCopy;
141
+ landing: AiLandingCopy;
142
+ flow: AiFlowCopy;
143
+ statusBoard: AiStatusBoardCopy;
144
+ summary: AiConnectionSummaryCopy;
145
+ hostSelect: AiHostSelectCopy;
146
+ connectGuide: AiConnectGuideCopy;
147
+ onboarding: AiOnboardingCopy;
148
+ }
4
149
 
5
150
  /**
6
151
  * Revoke a host's access. Returning a promise holds the confirmation popup in
@@ -23,16 +168,17 @@ interface HostStatus {
23
168
  * `announceAiConnection`), so several assistants can show connected at once.
24
169
  *
25
170
  * A connected box carries two more controls, because the pill it used to show
26
- * alone was a dead end in both directions: "Instruções" re-enters the host's
171
+ * alone was a dead end in both directions: "{copy.instructions}" re-enters the host's
27
172
  * setup steps (previously reachable only from a RED card, so an all-green board
28
173
  * hid them entirely), and "Desconectar" — when the app passes `onDisconnect` —
29
174
  * revokes access, which nothing in the UI could do at all.
30
175
  */
31
- declare function AiStatusBoard({ statuses, onConnect, onDisconnect, }: {
176
+ declare function AiStatusBoard({ statuses, onConnect, onDisconnect, copy, }: {
32
177
  statuses: readonly HostStatus[];
33
178
  onConnect: (hostId: string) => void;
34
179
  /** Revoke this host's access. Omit to render a read-only board. */
35
180
  onDisconnect?: DisconnectHandler;
181
+ copy: AiStatusBoardCopy;
36
182
  }): React.JSX.Element;
37
183
 
38
184
  /**
@@ -68,20 +214,20 @@ interface AiIntegrationOnboardingProps {
68
214
  /** Show the dev-only "reset onboarding" button. @default false */
69
215
  devReset?: boolean;
70
216
  /**
71
- * The platform operating this MCP server, as its OAuth consent button names
72
- * it. REQUIRED, and it is the reason `hosts` can have a default at all: one
73
- * ChatGPT step tells the owner which "Sign in with …" button to click, and
74
- * that button carries whoever runs the server. It used to be a hard-coded
75
- * name of a single STORE on one deployment, not even the product — so every
76
- * other adopter pointed its owners at a button that does not exist.
217
+ * Assistants offered in the flow, with their step-by-step instructions.
218
+ *
219
+ * REQUIRED since FUT-760. These used to default to this package's own pt-BR
220
+ * walkthrough, so a host that said nothing shipped one product's Portuguese
221
+ * and had no field to decline it. `PT_BR_AI_HOST_GUIDES(platformName)` is that
222
+ * exact content, now chosen by name.
77
223
  */
78
- platformName: string;
79
- /** Assistants offered in the flow. @default aiHostGuides(platformName) */
80
- hosts?: readonly AiHostGuide[];
81
- /** Capability cards on the landing. @default the shared AI_CAPABILITIES */
82
- capabilities?: readonly AiCapability[];
83
- /** Permission reassurance copy on the landing. @default AI_PERMISSION_MODEL */
84
- permissionModel?: string;
224
+ hosts: readonly AiHostGuide[];
225
+ /** Capability cards on the landing. REQUIRED see `hosts`. */
226
+ capabilities: readonly AiCapability[];
227
+ /** Permission reassurance copy on the landing. REQUIRED see `hosts`. */
228
+ permissionModel: string;
229
+ /** Every sentence the screens render. REQUIRED see `hosts`. */
230
+ copy: McpAiCopy;
85
231
  /**
86
232
  * Message the owner pastes into the assistant on the Conectar step.
87
233
  *
@@ -120,28 +266,33 @@ interface AiIntegrationOnboardingProps {
120
266
  * the live `connections` (one per connected assistant); content (hosts,
121
267
  * capabilities, copy) defaults to the shared guide but can be overridden per app.
122
268
  */
123
- declare function AiIntegrationOnboarding({ store, endpointUrl, initialState, connections, featureKey, devReset, platformName, hosts, capabilities, permissionModel, connectPrompt, onRetest, onDisconnect, }: AiIntegrationOnboardingProps): React.JSX.Element;
269
+ declare function AiIntegrationOnboarding({ store, endpointUrl, initialState, connections, featureKey, devReset, hosts, capabilities, permissionModel, connectPrompt, onRetest, onDisconnect, copy, }: AiIntegrationOnboardingProps): React.JSX.Element;
124
270
 
125
271
  /**
126
272
  * Homepage-style marketing landing for the AI integration (shown before the
127
273
  * owner starts): a hero, the permission reassurance, a trust/feature strip, and
128
274
  * the capability highlights. `onStart` begins the guided flow. `permissionModel`
129
- * and `capabilities` default to the shared copy; apps can override.
275
+ * and `capabilities` are REQUIRED host copy — the package ships no default
276
+ * sentence (FUT-760).
130
277
  */
131
- declare function AiLanding({ onStart, permissionModel, capabilities, }: {
278
+ declare function AiLanding({ onStart, permissionModel, capabilities, copy, capabilitiesCopy, }: {
132
279
  onStart: () => void;
133
- permissionModel?: string;
134
- capabilities?: readonly AiCapability[];
280
+ permissionModel: string;
281
+ capabilities: readonly AiCapability[];
282
+ copy: AiLandingCopy;
283
+ capabilitiesCopy: AiCapabilitiesCopy;
135
284
  }): React.JSX.Element;
136
285
 
137
286
  /**
138
287
  * Marketing block for the AI integration: a headline + a responsive grid of
139
288
  * capability cards. Shown on the onboarding landing (before the owner starts) to
140
289
  * sell the feature — "here's what the assistant does for you". `capabilities`
141
- * defaults to the shared set; apps can pass their own.
290
+ * and `copy` are REQUIRED host copy the package ships no default sentence
291
+ * (FUT-760).
142
292
  */
143
- declare function AiCapabilities({ capabilities, }: {
144
- capabilities?: readonly AiCapability[];
293
+ declare function AiCapabilities({ capabilities, copy, }: {
294
+ capabilities: readonly AiCapability[];
295
+ copy: AiCapabilitiesCopy;
145
296
  }): React.JSX.Element;
146
297
 
147
298
  /**
@@ -151,10 +302,11 @@ declare function AiCapabilities({ capabilities, }: {
151
302
  * is controlled (persisted by the onboarding flow) so a refresh resumes with the
152
303
  * same assistant highlighted.
153
304
  */
154
- declare function HostSelectStep({ hosts, selectedId, onSelect, }: {
305
+ declare function HostSelectStep({ hosts, selectedId, onSelect, copy, }: {
155
306
  hosts: readonly AiHostGuide[];
156
307
  selectedId: string | null;
157
308
  onSelect: (hostId: string) => void;
309
+ copy: AiHostSelectCopy;
158
310
  }): React.JSX.Element;
159
311
 
160
312
  /**
@@ -163,24 +315,28 @@ declare function HostSelectStep({ hosts, selectedId, onSelect, }: {
163
315
  * "Copiado" and `onCopy` fires after the clipboard write — the wizard uses it to
164
316
  * unlock the "Próximo" button on the Copiar-URL step.
165
317
  */
166
- declare function EndpointCopyBlock({ endpointUrl, copied, onCopy, }: {
318
+ declare function EndpointCopyBlock({ endpointUrl, copied, onCopy, flowCopy, copy, }: {
167
319
  endpointUrl: string;
168
320
  copied: boolean;
169
321
  onCopy: () => void;
322
+ flowCopy: AiFlowCopy;
323
+ copy: AiConnectGuideCopy;
170
324
  }): React.JSX.Element;
171
325
  /**
172
326
  * A copyable multi-line message block (preserves line breaks). Used on the
173
327
  * Conectar step for the prompt the owner pastes into the assistant so it
174
328
  * identifies itself and calls a tool (which registers the connection).
175
329
  */
176
- declare function PromptCopyBlock({ title, caption, message, }: {
330
+ declare function PromptCopyBlock({ title, caption, message, flowCopy, }: {
177
331
  title: string;
178
332
  caption: string;
179
333
  message: string;
334
+ flowCopy: AiFlowCopy;
180
335
  }): React.JSX.Element;
181
336
  /** The brand mark + "Conectar no <host>" header shared by the connect sub-steps. */
182
- declare function HostConnectHeader({ host }: {
337
+ declare function HostConnectHeader({ host, copy, }: {
183
338
  host: AiHostGuide;
339
+ copy: AiConnectGuideCopy;
184
340
  }): React.JSX.Element;
185
341
  /**
186
342
  * The primary direct-link button to a host's connector settings (nothing when it
@@ -236,4 +392,15 @@ interface FeatureBadgeItem {
236
392
  */
237
393
  declare function FeatureBadge({ icon, label, caption }: FeatureBadgeItem): React.JSX.Element;
238
394
 
239
- export { AiCapabilities, AiCapability, type AiConnection, AiHostBrand, AiHostGuide, AiIntegrationOnboarding, type AiIntegrationOnboardingProps, AiLanding, AiProvider, AiStatusBoard, CapabilityIcon, type DisconnectHandler, EndpointCopyBlock, FeatureBadge, type FeatureBadgeItem, HostBrandAvatar, HostConnectHeader, HostOpenButton, HostSelectStep, type HostStatus, HostStepList, McpEndpointUrl, PromptCopyBlock };
395
+ /**
396
+ * The pt-BR pack for the AI-integration screens — a NAMED constant a host
397
+ * passes by hand, never a default.
398
+ *
399
+ * The filename is what exempts this file from the copy-portability gate:
400
+ * Portuguese may ship, it may not be silent. Every sentence is VERBATIM what
401
+ * the components used to render, so a host adopting it sees no change on
402
+ * screen — what changes is that the words are chosen in a diff.
403
+ */
404
+ declare const PT_BR_MCP_AI_COPY: McpAiCopy;
405
+
406
+ export { AiCapabilities, type AiCapabilitiesCopy, AiCapability, type AiConnectGuideCopy, type AiConnection, type AiConnectionSummaryCopy, type AiFlowCopy, AiHostBrand, AiHostGuide, type AiHostSelectCopy, AiIntegrationOnboarding, type AiIntegrationOnboardingProps, AiLanding, type AiLandingCopy, type AiOnboardingCopy, AiProvider, AiStatusBoard, type AiStatusBoardCopy, type AiTrustPoint, CapabilityIcon, type DisconnectHandler, EndpointCopyBlock, FeatureBadge, type FeatureBadgeItem, HostBrandAvatar, HostConnectHeader, HostOpenButton, HostSelectStep, type HostStatus, HostStepList, type McpAiCopy, McpEndpointUrl, PT_BR_MCP_AI_COPY, PromptCopyBlock };