@mapomodule/mcp 1.0.0-beta.2 → 1.0.0-experimental.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.
Files changed (50) hide show
  1. package/README.md +26 -24
  2. package/dist/build.mjs +66 -4
  3. package/dist/cli.mjs +8 -1
  4. package/dist/knowledge/api.json +1 -1
  5. package/dist/knowledge/docs.json +1 -1
  6. package/dist/module.json +1 -1
  7. package/dist/runtime/core/ai-setup/catalog.d.ts +0 -0
  8. package/dist/runtime/core/ai-setup/catalog.js +411 -0
  9. package/dist/runtime/core/ai-setup/index.d.ts +0 -0
  10. package/dist/runtime/core/ai-setup/index.js +20 -0
  11. package/dist/runtime/core/ai-setup/plan.d.ts +0 -0
  12. package/dist/runtime/core/ai-setup/plan.js +640 -0
  13. package/dist/runtime/core/ai-setup/questions.d.ts +0 -0
  14. package/dist/runtime/core/ai-setup/questions.js +237 -0
  15. package/dist/runtime/core/indexer.js +10 -3
  16. package/dist/runtime/core/instructions.js +3 -2
  17. package/dist/runtime/core/prompts.js +25 -1
  18. package/dist/runtime/core/recipes.js +408 -4
  19. package/dist/runtime/core/search.js +2 -1
  20. package/dist/runtime/core/tools/ai.d.ts +0 -0
  21. package/dist/runtime/core/tools/ai.js +125 -0
  22. package/dist/runtime/core/tools/api.js +7 -1
  23. package/dist/runtime/mcp/handlers/mapo/prompts/ai-setup.js +3 -0
  24. package/dist/runtime/mcp/handlers/mapo/tools/ai-setup.js +3 -0
  25. package/package.json +1 -1
  26. package/src/__tests__/aiSetup.test.ts +330 -0
  27. package/src/__tests__/cli.test.ts +1 -0
  28. package/src/__tests__/composables.test.ts +95 -0
  29. package/src/__tests__/indexer.test.ts +19 -0
  30. package/src/__tests__/knowledge.test.ts +48 -0
  31. package/src/__tests__/overview.test.ts +11 -0
  32. package/src/__tests__/recipes.test.ts +69 -0
  33. package/src/__tests__/search.test.ts +16 -0
  34. package/src/__tests__/tools.test.ts +27 -1
  35. package/src/build/extract-components.ts +33 -5
  36. package/src/build/extract-composables.ts +65 -2
  37. package/src/cli.ts +8 -1
  38. package/src/runtime/core/ai-setup/catalog.ts +475 -0
  39. package/src/runtime/core/ai-setup/index.ts +29 -0
  40. package/src/runtime/core/ai-setup/plan.ts +706 -0
  41. package/src/runtime/core/ai-setup/questions.ts +290 -0
  42. package/src/runtime/core/indexer.ts +16 -4
  43. package/src/runtime/core/instructions.ts +3 -2
  44. package/src/runtime/core/prompts.ts +28 -0
  45. package/src/runtime/core/recipes.ts +429 -4
  46. package/src/runtime/core/search.ts +4 -1
  47. package/src/runtime/core/tools/ai.ts +209 -0
  48. package/src/runtime/core/tools/api.ts +8 -0
  49. package/src/runtime/mcp/handlers/mapo/prompts/ai-setup.ts +4 -0
  50. package/src/runtime/mcp/handlers/mapo/tools/ai-setup.ts +4 -0
@@ -0,0 +1,290 @@
1
+ /**
2
+ * The interview of `mapo_ai_setup`: what to ask a developer before turning
3
+ * the AI on, in three rounds of three questions. Each question says why it
4
+ * matters and which argument of the tool its answer fills, so the assistant
5
+ * can call the tool again with the answers and get the plan.
6
+ */
7
+
8
+ /** An answer a question offers. */
9
+ export interface AiQuestionOption {
10
+ label: string;
11
+ /** What it means, and what it costs or brings. */
12
+ detail: string;
13
+ /** The value to pass, in the argument the question fills. */
14
+ pass: string;
15
+ recommended?: boolean;
16
+ }
17
+
18
+ export interface AiQuestion {
19
+ id: string;
20
+ round: 1 | 2 | 3;
21
+ question: string;
22
+ /** Why the answer matters. */
23
+ why: string;
24
+ /** The arguments of `mapo_ai_setup` the answer fills. */
25
+ fills: string[];
26
+ options: AiQuestionOption[];
27
+ /** More than one option may apply. */
28
+ several?: boolean;
29
+ }
30
+
31
+ export const AI_ROUNDS: Record<AiQuestion["round"], string> = {
32
+ 1: "What the AI is for",
33
+ 2: "Models, keys and people",
34
+ 3: "Tokens, forms and production",
35
+ };
36
+
37
+ export const AI_QUESTIONS: AiQuestion[] = [
38
+ {
39
+ id: "task",
40
+ round: 1,
41
+ question: "What should the AI do for the operators?",
42
+ why: "It decides between Magic Fill, which works out of the box, and a page of the app that calls the gateway.",
43
+ fills: ["need", "wants"],
44
+ options: [
45
+ {
46
+ label: "Fill the record they are editing",
47
+ detail:
48
+ "From a text or files, on every detail page: Magic Fill. The operator checks every value before saving.",
49
+ pass: 'wants: ["fill-record"]',
50
+ recommended: true,
51
+ },
52
+ {
53
+ label: "Create several records from one source",
54
+ detail:
55
+ 'A programme, a sheet: a page of the app calls `run` with `task: "extract"`. Mapo has no import page of its own yet.',
56
+ pass: 'wants: ["extract-records"]',
57
+ },
58
+ {
59
+ label: "Something else",
60
+ detail:
61
+ "Write the need in `need`, and map it to the needs of the catalog (`wants`): the plan says what the module can and cannot do.",
62
+ pass: "need: <their words>",
63
+ },
64
+ ],
65
+ several: true,
66
+ },
67
+ {
68
+ id: "sources",
69
+ round: 1,
70
+ question: "What do the operators start from?",
71
+ why: "The gateway reads text formats today; PDFs and images are not read yet.",
72
+ fills: ["wants", "ownFormat"],
73
+ options: [
74
+ {
75
+ label: "Texts, web pages, Markdown, CSV, Excel, JSON",
76
+ detail:
77
+ "Mapo reads them all: pasted or attached in Magic Fill's panel.",
78
+ pass: 'wants: ["files"]',
79
+ recommended: true,
80
+ },
81
+ {
82
+ label: "PDFs, scans or images",
83
+ detail:
84
+ "Not yet in Mapo. A reader of the app can turn them into text meanwhile, with a library the app installs.",
85
+ pass: 'wants: ["pdf-images"]',
86
+ },
87
+ {
88
+ label: "A format of the app's own",
89
+ detail:
90
+ "A calendar, an export: a reader of the app, in a Nitro plugin. Give its file extension.",
91
+ pass: 'wants: ["own-format"], ownFormat: "ics"',
92
+ },
93
+ ],
94
+ several: true,
95
+ },
96
+ {
97
+ id: "data",
98
+ round: 1,
99
+ question: "May the records and their sources go to a cloud provider?",
100
+ why: "A cloud model sees what the operator sends; a model on the company's servers keeps it inside. Ask whoever answers for the data, not only the developer.",
101
+ fills: ["dataMayLeave"],
102
+ options: [
103
+ {
104
+ label: "Yes, to a provider we have a contract with",
105
+ detail: "OpenAI or Anthropic, with the region the contract gives.",
106
+ pass: "dataMayLeave: true",
107
+ },
108
+ {
109
+ label: "No, they stay on our servers",
110
+ detail:
111
+ "Ollama, or a server that speaks OpenAI's API (LM Studio, vLLM, llama.cpp), at an address of the app's network. No key, no cost per token; the hardware decides the speed.",
112
+ pass: "dataMayLeave: false",
113
+ },
114
+ {
115
+ label: "Not sure yet",
116
+ detail:
117
+ "Start with the mock in development, which sends nothing anywhere, and decide before production.",
118
+ pass: 'providers: ["mock"]',
119
+ },
120
+ ],
121
+ },
122
+ {
123
+ id: "providers",
124
+ round: 2,
125
+ question: "Which models?",
126
+ why: "Each provider is enabled in `mapo.ai.providers`; the operators pick among the models it lists, within what the admins give them.",
127
+ fills: ["providers"],
128
+ options: [
129
+ {
130
+ label: "OpenAI or Anthropic",
131
+ detail:
132
+ "The best extraction; costs per token. Their efficient models are enough for most forms.",
133
+ pass: 'providers: ["openai"] or ["anthropic"], or both',
134
+ recommended: true,
135
+ },
136
+ {
137
+ label: "Ollama or an OpenAI-compatible server",
138
+ detail:
139
+ "Models on the company's servers: free per token, slower on modest hardware, weaker on large forms.",
140
+ pass: 'providers: ["ollama"] or ["openai-compatible"]',
141
+ },
142
+ {
143
+ label: "Another AI service",
144
+ detail: "A provider of the app's own, registered in a Nitro plugin.",
145
+ pass: 'providers: ["own"]',
146
+ },
147
+ ],
148
+ several: true,
149
+ },
150
+ {
151
+ id: "keys",
152
+ round: 2,
153
+ question: "Who holds the keys, and who pays for the tokens?",
154
+ why: "A call uses the key nearest its user: their own token where allowed, else the admins' assignment to them, their group or everyone, else the project's key.",
155
+ fills: ["keys"],
156
+ options: [
157
+ {
158
+ label: "One project key",
159
+ detail:
160
+ "In the server's environment, never in `nuxt.config.ts`. The simplest start: one bill.",
161
+ pass: 'keys: ["project"]',
162
+ recommended: true,
163
+ },
164
+ {
165
+ label: "Keys per team, assigned by the AI's admins",
166
+ detail:
167
+ "On the AI settings page, without a deploy: a key and the models for everyone, a group or a user.",
168
+ pass: 'keys: ["assigned"]',
169
+ },
170
+ {
171
+ label: "Each operator's own token",
172
+ detail:
173
+ "Allowed by an assignment; each user saves theirs on the AI settings page and pays for their calls.",
174
+ pass: 'keys: ["personal"]',
175
+ },
176
+ ],
177
+ several: true,
178
+ },
179
+ {
180
+ id: "people",
181
+ round: 2,
182
+ question: "Who may use the AI, and who administers it?",
183
+ why: "The gateway asks the backend who is signed in; a rule that cannot be read lets fewer users in, never more.",
184
+ fills: ["userGroups", "userPermissions", "allowedFlag", "adminGroups"],
185
+ options: [
186
+ {
187
+ label: "Every signed-in user; superusers administer",
188
+ detail: "The defaults: nothing to configure.",
189
+ pass: "",
190
+ recommended: true,
191
+ },
192
+ {
193
+ label: "Some groups or permissions",
194
+ detail:
195
+ "`mapo.ai.users` and `mapo.ai.admin`, by the groups or permissions the backend gives.",
196
+ pass: 'userGroups: ["editors"], adminGroups: ["ai-admins"]',
197
+ },
198
+ {
199
+ label: "A rule of the backend",
200
+ detail:
201
+ "Such as internal accounts only: a field of the user the backend returns, checked by a `mapo-ai:user` hook.",
202
+ pass: 'allowedFlag: "is_internal"',
203
+ },
204
+ ],
205
+ several: true,
206
+ },
207
+ {
208
+ id: "tokens",
209
+ round: 3,
210
+ question: "How do you keep the tokens and their cost in check?",
211
+ why: "Every call is audited with its tokens; a price per model turns them into money. The form's size, the source's length and the model decide what a call costs.",
212
+ fills: ["costs", "perUserPerMinute"],
213
+ options: [
214
+ {
215
+ label: "Watch the usage, with costs",
216
+ detail:
217
+ "The usage by user, model and day on the AI settings page, in money once `mapo.ai.prices` prices the models.",
218
+ pass: "costs: true",
219
+ recommended: true,
220
+ },
221
+ {
222
+ label: "Also cap the calls per user",
223
+ detail:
224
+ "`mapo.ai.limits.perUserPerMinute`, 20 by default, counted by each server process.",
225
+ pass: "perUserPerMinute: 10",
226
+ },
227
+ {
228
+ label: "Tokens only",
229
+ detail: "The usage in tokens, without prices.",
230
+ pass: "costs: false",
231
+ },
232
+ ],
233
+ several: true,
234
+ },
235
+ {
236
+ id: "forms",
237
+ round: 3,
238
+ question: "Where does Magic Fill show, and what must the AI never see?",
239
+ why: "Magic Fill is on every detail page by default. Fields named as secrets, read-only fields and media never reach the AI; others are kept out with `ai: { exclude: true }`. Rules the AI must always follow, such as the city or the tone, go in `instructions`.",
240
+ fills: ["magicFill", "instructions", "wants"],
241
+ options: [
242
+ {
243
+ label: "On every detail page",
244
+ detail:
245
+ "Nothing to configure; a field's `ai` option keeps it out, guides the model or keeps a relation's names from the provider.",
246
+ pass: 'magicFill: "every-page"',
247
+ recommended: true,
248
+ },
249
+ {
250
+ label: "Not on some pages",
251
+ detail: "`definePageMeta({ magicFill: false })` on those pages.",
252
+ pass: 'magicFill: "some-pages"',
253
+ },
254
+ {
255
+ label: "A panel of our own instead",
256
+ detail:
257
+ "`mapo.ai.magicFill: false`, and `useMapoAiFill()` in a detail extension of the app.",
258
+ pass: 'magicFill: "own-panel"',
259
+ },
260
+ ],
261
+ },
262
+ {
263
+ id: "deploy",
264
+ round: 3,
265
+ question: "Where does the server run in production?",
266
+ why: "The keys, tokens, settings and audit are sealed in the Nitro storage `mapo-ai`: they need a place that lasts, shared by every instance, and the same secret everywhere.",
267
+ fills: ["deploy"],
268
+ options: [
269
+ {
270
+ label: "One Node server with a lasting disk",
271
+ detail:
272
+ "The module's default: `.data/mapo-ai` on the server; a persistent volume in a container.",
273
+ pass: 'deploy: "single-node"',
274
+ recommended: true,
275
+ },
276
+ {
277
+ label: "Several instances or containers",
278
+ detail:
279
+ "One shared store, such as Redis, and the same secret on all of them.",
280
+ pass: 'deploy: "several-instances"',
281
+ },
282
+ {
283
+ label: "Serverless or edge",
284
+ detail:
285
+ "A function's file system does not last: mount a driver, Redis on functions that run Node, one that works over HTTP (Upstash, Cloudflare KV) on an edge runtime.",
286
+ pass: 'deploy: "serverless"',
287
+ },
288
+ ],
289
+ },
290
+ ];
@@ -233,9 +233,14 @@ export function chunkMarkdown(path: string, markdown: string): DocChunk[] {
233
233
  return chunks;
234
234
  }
235
235
 
236
- /** Builds the BM25 inverted index over already-chunked docs. */
236
+ /**
237
+ * Builds the BM25 inverted index over already-chunked docs. The postings
238
+ * are gathered in a `Map` and copied into the table at the end, so a word
239
+ * named like a property every object has (`constructor`) gets a list of
240
+ * its own instead of the inherited property.
241
+ */
237
242
  export function buildIndex(chunks: DocChunk[]): Bm25Index {
238
- const terms: Record<string, Array<[number, number]>> = {};
243
+ const postingsByTerm = new Map<string, Array<[number, number]>>();
239
244
  const lengths: number[] = [];
240
245
 
241
246
  chunks.forEach((chunk, chunkIndex) => {
@@ -253,7 +258,9 @@ export function buildIndex(chunks: DocChunk[]): Bm25Index {
253
258
 
254
259
  let length = 0;
255
260
  for (const [term, frequency] of counts) {
256
- (terms[term] ??= []).push([chunkIndex, frequency]);
261
+ const postings = postingsByTerm.get(term) ?? [];
262
+ postings.push([chunkIndex, frequency]);
263
+ postingsByTerm.set(term, postings);
257
264
  length += frequency;
258
265
  }
259
266
  lengths.push(length);
@@ -261,7 +268,12 @@ export function buildIndex(chunks: DocChunk[]): Bm25Index {
261
268
 
262
269
  const total = chunks.length;
263
270
  const avgLength = total ? lengths.reduce((a, b) => a + b, 0) / total : 0;
264
- return { terms, lengths, avgLength, total };
271
+ return {
272
+ terms: Object.fromEntries(postingsByTerm),
273
+ lengths,
274
+ avgLength,
275
+ total,
276
+ };
265
277
  }
266
278
 
267
279
  /** Reads every doc under `docsRoot` and returns the full knowledge payload. */
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * Every `mapo_*` name below must be a real tool: a test checks it.
8
8
  */
9
- export const MAPO_INSTRUCTIONS = `Mapo v2 is a Nuxt 4 admin framework (Vue 3, Nuxt UI v4, Pinia, @nuxtjs/i18n) for building backoffices on a REST API that follows Django REST Framework conventions. An app registers "@nuxt/ui" and then "mapomodule", and configures everything under the \`mapo\` key. The packages: @mapomodule/core ($mapoFetch, useCrud, useMapoAuth, the auth/permissions/roles middleware), store (Pinia stores), uikit (layouts, sidebar, MapoList, MapoDetail, media and menu managers, theming, MapoOverride), form (FieldDescriptor arrays rendered through a field registry, useMapoForm), i18n and utils. A page is declarative: definePageMeta (layout, middleware, label, icon, permissions) plus one Mapo component with props; the sidebar is built from route metadata. Mapo v2 is a rewrite of v1 (Nuxt 2, Vuex, Axios): v1 APIs do not exist here.
9
+ export const MAPO_INSTRUCTIONS = `Mapo v2 is a Nuxt 4 admin framework (Vue 3, Nuxt UI v4, Pinia, @nuxtjs/i18n) for building backoffices on a REST API that follows Django REST Framework conventions. An app registers "@nuxt/ui" and then "mapomodule", and configures everything under the \`mapo\` key. The packages: @mapomodule/core ($mapoFetch, useCrud, useMapoAuth, the auth/permissions/roles middleware), store (Pinia stores), uikit (layouts, sidebar, MapoList, MapoDetail, media and menu managers, theming, MapoOverride), form (FieldDescriptor arrays rendered through a field registry, useMapoForm), i18n and utils; ai is experimental, published on npm's \`experimental\` dist-tag only (\`pnpm add mapomodule@experimental\`), and opt-in with \`mapo.ai\` (AI-assisted data entry: today the AI gateway, for signed-in users only: \`status\`; \`read\`, which reads a file (text, Markdown, JSON, HTML, CSV, XLSX) into the text \`run\` takes, with readers the app can replace (registerMapoAiReader() in a Nitro plugin, the \`mapo-ai:read\` hook, \`mapo.ai.readers\` to turn a format off); and \`run\`, which asks a provider to fill a record or to extract the records of a source and answers one checked outcome per field; \`mapo.ai.providers\` enables the providers: Mapo's mock, \`openai\` and \`anthropic\` (OpenAI's and Anthropic's models, with the project's key in the environment: NUXT_MAPO_AI_PROVIDERS_OPENAI_API_KEY, NUXT_MAPO_AI_PROVIDERS_ANTHROPIC_API_KEY), \`ollama\` and \`openai-compatible\` (models on the app's own servers, at the \`baseURL\` the app sets, with their key in the environment), or one the app registers with registerMapoAiProvider() in a Nitro plugin; each call uses the key nearest the user: their own token where an admin allows it, a key the AI's admins assign to them, a group or everyone (/_mapo/ai/keys, which also narrows the models), or the project's, and \`status\` says the level, never the key; an AI settings page (/ai-settings, or <MapoAiSettings /> in a page of the app) lets each user pick their provider and model and check the connection, and the AI's admins assign keys and change how the AI works (instructions, verification rules, secret fields, prompt cache, Anthropic's fallbacks, models added where the app sets adminModels), and read the usage summed from the audit, with costs where mapo.ai.prices prices the models; \`mapo.ai.admin\` and \`mapo.ai.users\` say who administers and who may use the AI; its encrypted storage is sealed with the NUXT_MAPO_AI_SECRET environment variable, which \`run\` needs in production; Magic Fill is on every MapoDetail (a button in the sidebar card opens a panel: a text or files, the operator's instructions, "What I send to the AI" from \`run/preview\`, the model; a banner above the form follows the call, with Cancel, sums up the session (applied, kept, changed by the operator, waiting, already in the record), with Undo all, and previews the values that wait, to fill, to replace (before and after) or without proof, with a tick each (a list's items one by one, added after the record's own) and Apply selected, and takes the operator to each field that waits with Next to check), and \`mapo.ai.magicFill: false\` or definePageMeta({ magicFill: false }) turns it off; a field's descriptor guides the AI with \`ai\` (\`hint\`, \`exclude\`, and \`list: false\` to keep a relation's records from the provider), as \`x-mapo-ai\` does in a backend's schema; underneath, in a detail extension, useMapoAiFill() fills the form through \`run\`, looking up the related records the AI names with the operator's session (a short list to pick from, or a search by name), writing each value a quote verifies into an empty field and marking the others for the operator, in one session across answers that undo() or a save ends, and useMapoAiRead() sends a file to \`read\`). A page is declarative: definePageMeta (layout, middleware, label, icon, permissions) plus one Mapo component with props; the sidebar is built from route metadata. Mapo v2 is a rewrite of v1 (Nuxt 2, Vuex, Axios): v1 APIs do not exist here.
10
10
 
11
11
  Workflow:
12
12
  1. New to the project or the task? Read the overview: the mapo://overview resource, or mapo_get_doc({ path: "guide/concepts.md" }).
@@ -15,4 +15,5 @@ Workflow:
15
15
  4. Use mapo_search_docs for anything the recipes do not cover, then mapo_get_doc to read the exact section. Prefer these over recalling Mapo APIs from memory.
16
16
  5. Never invent component props, slots or field types: look them up with mapo_component_api, mapo_list_field_types and mapo_composable_api, which read the installed source.
17
17
  6. mapo_backend_schema maps the backend's OpenAPI schema to field descriptors, and mapo_scaffold generates pages, fields and overrides in Mapo's own patterns (a dry run unless asked to write).
18
- 7. Cite the doc path you relied on when you produce code.`;
18
+ 7. To turn on the AI module or Magic Fill, call mapo_ai_setup: it asks the developer what the AI is for, says what the module can and cannot do, and proposes the configuration, the keys and tokens, and the files.
19
+ 8. Cite the doc path you relied on when you produce code.`;
@@ -140,11 +140,39 @@ Pick the lightest layer that does the job, in this order:
140
140
  Say which layer you chose and why.`,
141
141
  };
142
142
 
143
+ export const aiSetupPrompt: MapoPrompt<{ need?: string }> = {
144
+ name: "mapo-ai-setup",
145
+ title: "Set up the AI and Magic Fill",
146
+ description:
147
+ "Turn on @mapomodule/ai and Magic Fill: what it can do for a need, its configuration, the keys and the tokens.",
148
+ argsSchema: {
149
+ need: optional(
150
+ "What the AI should do, e.g. 'fill events from the press releases editors paste'",
151
+ ),
152
+ },
153
+ render: ({
154
+ need,
155
+ }) => `Help me turn on Mapo's AI module and Magic Fill in this project${
156
+ need ? `, for this need: ${need}` : ""
157
+ }.
158
+
159
+ Follow this order and do not skip a step:
160
+ 1. mapo_inspect_app — see whether @mapomodule/ai and @mapomodule/uikit are installed, and the order of the modules. If the dev server is not running, say so and go on.
161
+ 2. mapo_ai_setup with my need only — read its questions, and map my need to its \`wants\`.
162
+ 3. Ask me its questions one round at a time, at most three, the recommended answer first, and wait for my answers. Tell me plainly when the module cannot do something I need, and what it offers instead.
163
+ 4. mapo_ai_setup with my answers — show me whether the module can do it, the configuration, the keys and tokens, the files and the checks. Ask again what it lists under "Still to ask".
164
+ 5. Only after my OK: merge the \`mapo.ai\` block into nuxt.config.ts and create the plugins with mapo_ai_setup and \`write: true\`. Give me the environment variables' names: I set their values myself. Never write a key, a token or the secret in a file.
165
+ 6. Tell me how to check it, with the plan's "Check it" and mapo_doctor.
166
+
167
+ Cite the docs pages the plan points at, and read them with mapo_get_doc when you need more.`,
168
+ };
169
+
143
170
  export const PROMPTS = [
144
171
  crudPagePrompt,
145
172
  customFieldPrompt,
146
173
  debugFormPrompt,
147
174
  migratePrompt,
148
175
  themePrompt,
176
+ aiSetupPrompt,
149
177
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
150
178
  ] as Array<MapoPrompt<any>>;