post-engineer-mcp 1.34.0 → 1.35.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.
- package/README.md +7 -6
- package/dist/prompt-base.d.ts +4 -0
- package/dist/prompt-base.js +124 -0
- package/dist/prompt-base.js.map +1 -0
- package/dist/prompts.js +10 -86
- package/dist/prompts.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -162,18 +162,19 @@ Passing a `recordId` fails fast with an error naming the right field.
|
|
|
162
162
|
The server serves the prompts hub from the Post Engineer web platform over
|
|
163
163
|
the MCP [prompts capability](https://modelcontextprotocol.io/docs/concepts/prompts),
|
|
164
164
|
so MCP clients (Cursor, Claude) list them as slash commands. Each prompt is
|
|
165
|
-
zero-arg
|
|
166
|
-
|
|
165
|
+
zero-arg: the agent asks you for the persona, accounts, and timing when you
|
|
166
|
+
run it. The copy is kept in sync with the web
|
|
167
167
|
hub by a sync test (`prompts-sync.test.ts`).
|
|
168
168
|
|
|
169
169
|
- `/daily-news`: Daily news becomes a video — turn one top GNews story of the day into one persona video, validated before any token is spent.
|
|
170
170
|
- `/github-prs`: GitHub PRs become videos — turn a GitHub pull request into one persona video.
|
|
171
171
|
- `/full-setup`: Full setup becomes videos — connect accounts, create a persona, validate the script, and publish your first video without skipping a step.
|
|
172
172
|
|
|
173
|
-
Add a new prompt to
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
173
|
+
Add a new prompt's text to `shared/prompt-base/prompt-base.ts` and run
|
|
174
|
+
`node scripts/sync-prompt-base.mjs`. Then add its entry to the web hub
|
|
175
|
+
(`apps/web/app/recipes/prompts.ts` + its i18n title/description) and the same
|
|
176
|
+
slug, title, description, and text export to `src/prompts.ts`; `pnpm test`
|
|
177
|
+
fails if they drift.
|
|
177
178
|
|
|
178
179
|
## Links
|
|
179
180
|
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
// Shared prompt base: single source of truth for the web prompts hub and
|
|
2
|
+
// the MCP prompts hub. Every served prompt is composed as
|
|
3
|
+
// [...SHARED_PROMPT_BASE, '', ...specificLines].join('\n'), so the
|
|
4
|
+
// delivered text is complete and standalone: the agent receives the
|
|
5
|
+
// whole prompt in one paste, never a bare "see the base prompt"
|
|
6
|
+
// reference.
|
|
7
|
+
// DO NOT EDIT this copy directly in apps/web or apps/mcp: the files at
|
|
8
|
+
// apps/web/lib/generation/prompt-base.ts and apps/mcp/src/prompt-base.ts
|
|
9
|
+
// are generated copies of this file. Edit here, then run
|
|
10
|
+
// `node scripts/sync-prompt-base.mjs` from the repo root. The per-app
|
|
11
|
+
// prompt-base-shared tests fail loudly if a generated copy ever drifts,
|
|
12
|
+
// so a stale copy can never pass CI silently. The sync script is
|
|
13
|
+
// deliberately NOT wired into prebuild/pretest: both apps' package.json
|
|
14
|
+
// files are guard-protected paths, and auto-regeneration is a
|
|
15
|
+
// convenience, not a correctness requirement.
|
|
16
|
+
// Rules that apply to every prompt go in SHARED_PROMPT_BASE. Topic-specific
|
|
17
|
+
// steps go in the prompt that owns them, below, so the base stays short and
|
|
18
|
+
// every prompt stays cheap. Web and MCP serve these exports unchanged.
|
|
19
|
+
// This file has no imports, so the same bytes compile under the web
|
|
20
|
+
// bundler resolution and the MCP NodeNext resolution.
|
|
21
|
+
export const SHARED_PROMPT_BASE = [
|
|
22
|
+
'Ask me, do not make me fill anything in:',
|
|
23
|
+
'Before any step that costs tokens, call list_personas, list_social_accounts, and get_token_balance, then ask only what you still need. Offer my real personas and accounts as choices. Ask one short question at a time, in the language I write in.',
|
|
24
|
+
'Ask which persona, which accounts, one video or a routine (daily or weekly), and publish now or at what date, time, and timezone.',
|
|
25
|
+
'Routines: Post Engineer has no recurring schedule; one generate_persona_video call makes and publishes one video. For a routine, rerun this prompt from your own scheduler if you have one, or schedule several videos ahead, at most 30 days out, each spending tokens. Tell me which you can do; never promise automatic posting you did not set up.',
|
|
26
|
+
'Before generating, show me the persona, accounts, title, and time, and wait for my yes: the post is real and spends tokens. Once I approve a routine, its runs reuse those answers and need no new yes.',
|
|
27
|
+
'',
|
|
28
|
+
'Write like a human, never like generic AI:',
|
|
29
|
+
'Facts: use concrete detail from the source: names, places, numbers. Only facts the source supports; if a detail is missing, ask me or leave it out, never invent it. Name who said it, never "experts say".',
|
|
30
|
+
'Voice: if I share a sample of my writing, match its words and rhythm. If the persona niche does not say who this video is for, ask me.',
|
|
31
|
+
'Hook: its only job is to make me want the next sentence. Open a question I need answered, break what I expect, drop me into a specific moment, name a payoff, or lead with a named fact. Draft three on different angles and keep the strongest. Never promise more than the video delivers. No "have you ever wondered" or "did you know".',
|
|
32
|
+
'Body: one idea, in plain spoken sentences of mixed length. Say who did what: no "mistakes were made", no "the data tells us". Most lines stay plain; allow one or two punchy moments.',
|
|
33
|
+
'CTA: one specific action tied to this video, never a generic "follow for more".',
|
|
34
|
+
"Cut: unlock, elevate, seamless, game-changer, next-level, delve, \"the future of\", \"a new era\", \"it's not just X, it's Y\", forced groups of three, runs of fragments, \"let's dive in\", \"here's the thing\", \"honestly?\", upbeat closers, all-caps emphasis, stacked hedges, filler.",
|
|
35
|
+
'No em dashes. Do not sand off real voice: one short line or one "however" is fine; clusters of these habits are the problem.',
|
|
36
|
+
'Test each line: could I picture it, could it be proven true or false, and could another creator say it about another topic? If yes to the last, rewrite it.',
|
|
37
|
+
'Before validate_script, read it aloud and ask what still sounds like AI and which fact is not in the source. Fix both.',
|
|
38
|
+
'',
|
|
39
|
+
'Script contract, every video script follows it:',
|
|
40
|
+
'Segments: first hook, last CTA, exactly one of each, at least one body, at most 12 segments.',
|
|
41
|
+
'Length: 60–200 words total; hook 15–40 words, aim for 20–30 (8–12 seconds), ending with terminal punctuation; body at least 30 words; CTA 5–20 words.',
|
|
42
|
+
'Spoken English only, language "en": no links, hashtags, markdown, emoji, or stage directions in any segment.',
|
|
43
|
+
'Propose a title; it is mandatory with every generate_persona_video call.',
|
|
44
|
+
'Call validate_script with the segments and fix any named error until it passes. Validate before any token is spent; never generate from an unvalidated script.',
|
|
45
|
+
'Then call score_draft with kind "script", the segments joined by newlines, the persona, and the network; it spends no tokens. Show me the score and every reason, fix what it names, re-validate, and score again. The score is advice checked by rules, not proof the script is good: never bend facts to gain points, and ask me to decide if it stays low.',
|
|
46
|
+
'',
|
|
47
|
+
'Generation is always tied to publishing:',
|
|
48
|
+
'One generate_persona_video call generates and publishes the video; there is no orphan video and no separate schedule step.',
|
|
49
|
+
'mode "scheduled" needs startAt (ISO datetime, 3h-30d ahead), times (HH:MM), and timezone; mode "asap" needs no startAt or times.',
|
|
50
|
+
];
|
|
51
|
+
export const FULL_SETUP_PROMPT = [
|
|
52
|
+
...SHARED_PROMPT_BASE,
|
|
53
|
+
'',
|
|
54
|
+
'Set up Post Engineer end to end and publish your first video. Follow the',
|
|
55
|
+
'steps in order; do not skip ahead of validation or the publish confirmation.',
|
|
56
|
+
'',
|
|
57
|
+
'1. Call list_social_accounts. Ask which of youtube, instagram, linkedin',
|
|
58
|
+
' the user wants; for each one that is missing, call connect_account with',
|
|
59
|
+
' that provider and hand the returned https OAuth link to the user to',
|
|
60
|
+
' finish in the browser, then re-check with list_social_accounts.',
|
|
61
|
+
'2. Bluesky is optional. If the user wants it, ask for the handle and the',
|
|
62
|
+
' app password (never the main password); use the app password only in',
|
|
63
|
+
' connect_account and never repeat, print, or log it.',
|
|
64
|
+
'3. Ask what the channel is about and what to call the persona. Call',
|
|
65
|
+
' list_faces and list_voices, let the user pick a face and a voice,',
|
|
66
|
+
' then call create_persona with name, avatarUrl, voiceId,',
|
|
67
|
+
' language "en-US" (English only for now) and niche. Remember the personaId.',
|
|
68
|
+
'4. Call get_token_balance first, ask what the first video is about, then',
|
|
69
|
+
' write the script as segments following the contract above and call',
|
|
70
|
+
' validate_script until it passes.',
|
|
71
|
+
'5. Before generating, tell the user the video IS published as a',
|
|
72
|
+
' real post, and confirm the providers/accounts and the mode (scheduled|asap)',
|
|
73
|
+
' with the user. Also ask if they want a routine after this first video.',
|
|
74
|
+
' Warning: Bluesky video publishing is',
|
|
75
|
+
' currently being fixed (issue #327); Bluesky is optional and can be',
|
|
76
|
+
' skipped.',
|
|
77
|
+
'6. Call generate_persona_video once with that personaId, the validated',
|
|
78
|
+
' segments unchanged, the confirmed title, language "en", the confirmed',
|
|
79
|
+
' providers with their account IDs from list_social_accounts, and the',
|
|
80
|
+
' confirmed mode. Then call get_video_task_progress until done and share the',
|
|
81
|
+
' get_video_status URL.',
|
|
82
|
+
].join('\n');
|
|
83
|
+
export const DAILY_NEWS_PROMPT = [
|
|
84
|
+
...SHARED_PROMPT_BASE,
|
|
85
|
+
'',
|
|
86
|
+
"Turn one top story from today's GNews headlines (lang=en, country=us) into",
|
|
87
|
+
'one Post Engineer video. My GNews key is in your own environment as',
|
|
88
|
+
'YOUR_GNEWS_KEY: never print it, never paste it anywhere else. If it is',
|
|
89
|
+
'missing, tell me to set it; never ask me to paste it in chat.',
|
|
90
|
+
'',
|
|
91
|
+
'1. Pick one clear single event with a named place. Skip round-ups, opinion',
|
|
92
|
+
' pieces, and stories sourced only from a social post. Attribute',
|
|
93
|
+
' single-sourced claims.',
|
|
94
|
+
'2. Write the script as segments following the contract above and call',
|
|
95
|
+
' validate_script until it passes.',
|
|
96
|
+
'3. For media, prefer a photo of the actual place in the story. Check a',
|
|
97
|
+
' public URL with check_media first and attach it only on ok; or upload',
|
|
98
|
+
' a local file with upload_media shortly before generating and use the',
|
|
99
|
+
' mediaId. At most 6 medias. Skip a failed photo, never force it.',
|
|
100
|
+
'4. Call generate_persona_video with the confirmed personaId, the validated',
|
|
101
|
+
' segments unchanged, the confirmed title, language "en", the confirmed',
|
|
102
|
+
' providers with account IDs from list_social_accounts, and the confirmed',
|
|
103
|
+
' mode.',
|
|
104
|
+
'5. Poll get_video_task_progress on the taskId until done, then share the',
|
|
105
|
+
' final video URL from get_video_status.',
|
|
106
|
+
].join('\n');
|
|
107
|
+
export const GITHUB_PRS_PROMPT = [
|
|
108
|
+
...SHARED_PROMPT_BASE,
|
|
109
|
+
'',
|
|
110
|
+
'Turn one GitHub pull request into one persona video.',
|
|
111
|
+
'',
|
|
112
|
+
'1. Ask me which PR. If you can read the repo, fetch its title, description,',
|
|
113
|
+
' and changes yourself; otherwise ask me for them.',
|
|
114
|
+
'2. Write the script as segments following the contract above and call',
|
|
115
|
+
' validate_script until it passes.',
|
|
116
|
+
'3. Media: at most 6, only if they match the PR (screenshots, diagrams, or',
|
|
117
|
+
' repo visuals); otherwise generate without media.',
|
|
118
|
+
'4. Call generate_persona_video, the singular video tool, once with the',
|
|
119
|
+
' confirmed personaId, the validated segments unchanged, the confirmed',
|
|
120
|
+
' title, language "en", the confirmed accounts, and the confirmed mode.',
|
|
121
|
+
'5. Never invent PR details: if the title, description, or change summary is',
|
|
122
|
+
' missing, ask for it instead of guessing.',
|
|
123
|
+
].join('\n');
|
|
124
|
+
//# sourceMappingURL=prompt-base.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-base.js","sourceRoot":"","sources":["../src/prompt-base.ts"],"names":[],"mappings":"AAAA,yEAAyE;AACzE,0DAA0D;AAC1D,mEAAmE;AACnE,oEAAoE;AACpE,gEAAgE;AAChE,aAAa;AACb,uEAAuE;AACvE,yEAAyE;AACzE,yDAAyD;AACzD,sEAAsE;AACtE,wEAAwE;AACxE,iEAAiE;AACjE,wEAAwE;AACxE,8DAA8D;AAC9D,8CAA8C;AAC9C,4EAA4E;AAC5E,4EAA4E;AAC5E,uEAAuE;AACvE,oEAAoE;AACpE,sDAAsD;AAEtD,MAAM,CAAC,MAAM,kBAAkB,GAAa;IAC1C,0CAA0C;IAC1C,sPAAsP;IACtP,mIAAmI;IACnI,wVAAwV;IACxV,yMAAyM;IACzM,EAAE;IACF,4CAA4C;IAC5C,6MAA6M;IAC7M,wIAAwI;IACxI,6UAA6U;IAC7U,uLAAuL;IACvL,iFAAiF;IACjF,+RAA+R;IAC/R,8HAA8H;IAC9H,6JAA6J;IAC7J,wHAAwH;IAC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,qDAAqD;IACrD,uEAAuE;IACvE,qCAAqC;IACrC,2EAA2E;IAC3E,qDAAqD;IACrD,wEAAwE;IACxE,yEAAyE;IACzE,0EAA0E;IAC1E,6EAA6E;IAC7E,6CAA6C;CAC9C,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC"}
|
package/dist/prompts.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
//---------------
|
|
2
|
-
// MCP prompts hub
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
// the two drift. Prompts are zero-arg: placeholders stay in the text.
|
|
2
|
+
// MCP prompts hub: slash commands for the recipes prompts. Prompt texts
|
|
3
|
+
// come from ./prompt-base.ts, a generated copy of
|
|
4
|
+
// shared/prompt-base/prompt-base.ts, because the published tarball cannot
|
|
5
|
+
// import outside src. Slugs, titles and descriptions mirror the web hub;
|
|
6
|
+
// prompts-sync.test.ts fails when they drift. Prompts are zero-arg: the
|
|
7
|
+
// agent asks the user for values.
|
|
9
8
|
//---------------
|
|
9
|
+
import { DAILY_NEWS_PROMPT, FULL_SETUP_PROMPT, GITHUB_PRS_PROMPT } from './prompt-base.js';
|
|
10
10
|
export const HUB_PROMPTS = [
|
|
11
11
|
{
|
|
12
12
|
slug: "daily-news",
|
|
@@ -14,33 +14,7 @@ export const HUB_PROMPTS = [
|
|
|
14
14
|
description: [
|
|
15
15
|
"Turn one news story of the day into one persona video, validated before any token is spent.",
|
|
16
16
|
].join("\n"),
|
|
17
|
-
prompt:
|
|
18
|
-
"Turn one top story from today's GNews headlines (lang=en, country=us) into",
|
|
19
|
-
"one Post Engineer video. My GNews key is in your own environment as",
|
|
20
|
-
"YOUR_GNEWS_KEY — never print it, never paste it anywhere else.",
|
|
21
|
-
"",
|
|
22
|
-
"Rules:",
|
|
23
|
-
"1. Pick one clear single event with a named place. Skip round-ups, opinion",
|
|
24
|
-
" pieces, and stories sourced only from a social post.",
|
|
25
|
-
"2. Write the script as segments: first hook (aim 20-30 words, end with",
|
|
26
|
-
" terminal punctuation), then body segments (at least 30 words total),",
|
|
27
|
-
" last CTA (5-20 words). Total 60–200 words, spoken English only, no",
|
|
28
|
-
" links, hashtags, markdown, emoji, or stage directions. Only facts the",
|
|
29
|
-
" source supports; attribute single-sourced claims.",
|
|
30
|
-
"3. Call validate_script with those segments. Fix any named error and",
|
|
31
|
-
" re-validate until it passes. Do not generate before it passes.",
|
|
32
|
-
"4. For media, prefer a photo of the actual place in the story. Check a",
|
|
33
|
-
" public URL with check_media first and attach it only on ok; or upload",
|
|
34
|
-
" a local file with upload_media shortly before generating and use the",
|
|
35
|
-
" mediaId. At most 6 medias. Skip a failed photo, never force it.",
|
|
36
|
-
"5. Call generate_persona_video with personaId [PERSONA_ID], the validated",
|
|
37
|
-
" segments unchanged, title [STORY_TITLE], language \"en\", providers",
|
|
38
|
-
" [PROVIDERS] with account IDs from list_social_accounts, mode",
|
|
39
|
-
" [scheduled|asap] (scheduled needs startAt [ISO_DATETIME] + times",
|
|
40
|
-
" [HH:MM] in timezone [TIMEZONE]; asap needs no startAt/times).",
|
|
41
|
-
"6. Poll get_video_task_progress on the taskId until done, then share the",
|
|
42
|
-
" final video URL from get_video_status.",
|
|
43
|
-
].join("\n"),
|
|
17
|
+
prompt: DAILY_NEWS_PROMPT,
|
|
44
18
|
},
|
|
45
19
|
{
|
|
46
20
|
slug: "github-prs",
|
|
@@ -48,26 +22,7 @@ export const HUB_PROMPTS = [
|
|
|
48
22
|
description: [
|
|
49
23
|
"Turn your GitHub pull requests into persona videos.",
|
|
50
24
|
].join("\n"),
|
|
51
|
-
prompt:
|
|
52
|
-
"Turn this GitHub pull request into one persona video.",
|
|
53
|
-
"",
|
|
54
|
-
"PR to use (paste the PR title, description, and a short change summary, plus any linked issues):",
|
|
55
|
-
"- Title: ...",
|
|
56
|
-
"- Description: ...",
|
|
57
|
-
"- What changed: ...",
|
|
58
|
-
"- Linked issues: ...",
|
|
59
|
-
"",
|
|
60
|
-
"Rules:",
|
|
61
|
-
"- Use the Post Engineer MCP server and the singular video tool, generate_persona_video.",
|
|
62
|
-
"- First, call validate_script with your script and only proceed when it is valid — validate before any token is debited.",
|
|
63
|
-
"- Script: spoken text only, no links, hashtags, markdown, emojis, or stage directions.",
|
|
64
|
-
"- Structure: first segment is the hook, last segment is the CTA, exactly one of each.",
|
|
65
|
-
"- Length: 60–200 words total, hook 20–30 words (8–12 seconds), body at least 30 words, CTA 5–20 words, at most 12 segments.",
|
|
66
|
-
"- Language: en only.",
|
|
67
|
-
"- Media: at most 6, only if they match the PR (screenshots, diagrams, or repo visuals); otherwise generate without media.",
|
|
68
|
-
"- Then generate one video for this PR and publish it where the user asked, scheduled or asap.",
|
|
69
|
-
"- Never invent PR details: if the title, description, or change summary is missing, ask for it instead of guessing.",
|
|
70
|
-
].join("\n"),
|
|
25
|
+
prompt: GITHUB_PRS_PROMPT,
|
|
71
26
|
},
|
|
72
27
|
{
|
|
73
28
|
slug: "full-setup",
|
|
@@ -75,38 +30,7 @@ export const HUB_PROMPTS = [
|
|
|
75
30
|
description: [
|
|
76
31
|
"Connect accounts, create a persona, validate the script, and publish your first video without skipping a step.",
|
|
77
32
|
].join("\n"),
|
|
78
|
-
prompt:
|
|
79
|
-
"Set up Post Engineer end to end and publish your first video. Follow the",
|
|
80
|
-
"steps in order; do not skip ahead of validation or the publish confirmation.",
|
|
81
|
-
"",
|
|
82
|
-
"1. Call list_social_accounts. Ask which of youtube, instagram, linkedin",
|
|
83
|
-
" the user wants; for each one that is missing, call connect_account with",
|
|
84
|
-
" that provider and hand the returned https OAuth link to the user to",
|
|
85
|
-
" finish in the browser, then re-check with list_social_accounts.",
|
|
86
|
-
"2. Bluesky is optional. If the user wants it, ask for the handle and the",
|
|
87
|
-
" app password (never the main password); use the app password only in",
|
|
88
|
-
" connect_account and never repeat, print, or log it.",
|
|
89
|
-
"3. Call list_faces and list_voices, let the user pick a face and a voice,",
|
|
90
|
-
" then call create_persona with name, avatarUrl, voiceId,",
|
|
91
|
-
" language \"en-US\" (English only for now) and niche. Remember the personaId.",
|
|
92
|
-
"4. Call get_token_balance first. Then write the script as segments: hook",
|
|
93
|
-
" first, CTA last, 60–200 words total, spoken English only, no links,",
|
|
94
|
-
" hashtags, markdown, emoji, or stage directions. Call validate_script",
|
|
95
|
-
" and fix any named error until it passes — validate before any token is",
|
|
96
|
-
" spent.",
|
|
97
|
-
"5. Before generating, tell the user the video IS published as a",
|
|
98
|
-
" real post, and confirm the providers/accounts and the mode (scheduled|asap)",
|
|
99
|
-
" with the user. Warning: Bluesky video publishing is",
|
|
100
|
-
" currently being fixed (issue #327); Bluesky is optional and can be",
|
|
101
|
-
" skipped.",
|
|
102
|
-
"6. Call generate_persona_video once with that personaId, the validated",
|
|
103
|
-
" segments unchanged, title [VIDEO_TITLE], language \"en\", the confirmed",
|
|
104
|
-
" providers with their account IDs from list_social_accounts, and the",
|
|
105
|
-
" confirmed mode (scheduled needs startAt [ISO_DATETIME, 3h-30d ahead] +",
|
|
106
|
-
" times [HH:MM] in timezone [TIMEZONE]; asap needs no startAt/times).",
|
|
107
|
-
" Then call get_video_task_progress until done and share the",
|
|
108
|
-
" get_video_status URL.",
|
|
109
|
-
].join("\n"),
|
|
33
|
+
prompt: FULL_SETUP_PROMPT,
|
|
110
34
|
},
|
|
111
35
|
];
|
|
112
36
|
export function registerPrompts(server) {
|
package/dist/prompts.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB,
|
|
1
|
+
{"version":3,"file":"prompts.js","sourceRoot":"","sources":["../src/prompts.ts"],"names":[],"mappings":"AAAA,iBAAiB;AACjB,wEAAwE;AACxE,kDAAkD;AAClD,0EAA0E;AAC1E,yEAAyE;AACzE,wEAAwE;AACxE,kCAAkC;AAClC,iBAAiB;AAGjB,OAAO,EAAE,iBAAiB,EAAE,iB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