@adminide-stack/yantra-mobile 12.0.190-alpha.0 → 12.0.191-alpha.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.
|
@@ -85,9 +85,10 @@ const DESIGN_TOOLBOX_ACTIONS = [{
|
|
|
85
85
|
icon: "movie-open-outline",
|
|
86
86
|
editsCurrent: false
|
|
87
87
|
}];
|
|
88
|
+
const INCLUDED_GROUP_LABEL = "Included with Yantra";
|
|
88
89
|
const PROVIDER_GROUP = {
|
|
89
|
-
"yantra-router":
|
|
90
|
-
groq:
|
|
90
|
+
"yantra-router": INCLUDED_GROUP_LABEL,
|
|
91
|
+
groq: INCLUDED_GROUP_LABEL,
|
|
91
92
|
anthropic: "Anthropic (BYOK)",
|
|
92
93
|
openai: "OpenAI (BYOK)",
|
|
93
94
|
google: "Google (BYOK)",
|
|
@@ -124,7 +125,9 @@ const MAX_REFERENCE_HTML = 16e3;
|
|
|
124
125
|
function briefWithReference(brief, reference) {
|
|
125
126
|
const html = reference.html.length > MAX_REFERENCE_HTML ? `${reference.html.slice(0, MAX_REFERENCE_HTML)}
|
|
126
127
|
<!-- \u2026reference truncated\u2026 -->` : reference.html;
|
|
127
|
-
return [`Use this existing design as reference/context \u2014 keep its design system, visual language, and structure, but produce a NEW, separate page (do not just return the reference).`, `Reference design: \u201C${reference.title}\u201D${reference.systemId ? ` (design system: ${reference.systemId})` : ""}.`,
|
|
128
|
+
return [`Use this existing design as reference/context \u2014 keep its design system, visual language, and structure, but produce a NEW, separate page (do not just return the reference).`, `Reference design: \u201C${reference.title}\u201D${reference.systemId ? ` (design system: ${reference.systemId})` : ""}.`, `\`\`\`html
|
|
129
|
+
${html}
|
|
130
|
+
\`\`\``, `Now create: ${brief}`].join("\n\n");
|
|
128
131
|
}
|
|
129
132
|
function normalizeSiteUrl(raw) {
|
|
130
133
|
var _a, _b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"designChat.js","sources":["../../../../src/features/design/surface/designChat.ts"],"sourcesContent":["/**\n * What the composer sends - native twin of the pieces the web agent pane\n * builds its turns from: surface-kit `chat` (`composeEditsMessage`,\n * `composeToolboxMessage`, annotation picks), design-surface\n * `components/designToolbox.ts`, `standalone/models.ts` and\n * `standalone/designAttachments.ts` (`attachmentsNote`).\n *\n * Every string is the web's, word for word: the generator and its skills are\n * tuned to these messages, so a phone turn must read like a web turn.\n *\n * Pure: runs under jest as-is.\n */\n\n/** The element under an annotation pin (kit `AnnotationTarget`). */\nexport interface AnnotationTarget {\n tag?: string;\n text?: string;\n label?: string;\n path?: string;\n}\n\n/** A numbered pin destined for the next send (kit `AnnotationPick`). */\nexport interface AnnotationPick {\n id: number;\n creationTitle: string;\n xPct: number;\n yPct: number;\n comment: string;\n target?: AnnotationTarget;\n}\n\nfunction describeTarget(p: AnnotationPick): string {\n const pos = `${Math.round(p.xPct)}%,${Math.round(p.yPct)}%`;\n const t = p.target;\n if (!t) return `@ ${pos}`;\n const anchor = (t.text || t.label || '').replace(/\\s+/g, ' ').trim();\n const tag = t.tag ? ` <${t.tag}>` : '';\n if (!anchor) return `→${tag || ' element'}${t.path ? ` in ${t.path}` : ''}, at ${pos}`;\n return `→${tag} \"${anchor}\"`;\n}\n\n/** The shell-parity edits message for a set of pins. */\nexport function composeEditsMessage(picks: readonly AnnotationPick[], subject = 'designs'): string {\n const lines = picks.map((p) => `- [${p.creationTitle} ${describeTarget(p)}]: ${p.comment || 'see pin'}`);\n return `Apply these edits to the ${subject}:\\n${lines.join('\\n')}`;\n}\n\n/** What a pin shows before it is sent: the element it resolved to. */\nexport function selectionLabel(t: AnnotationTarget | undefined): string {\n return (t?.text || t?.label || '').replace(/\\s+/g, ' ').trim().slice(0, 80);\n}\n\n/** The message a toolbox pick sends: the skill, the draft kept as intent, the seed. */\nexport function composeToolboxMessage(action: { skill: string; prompt?: string }, draft?: string): string {\n const parts = [`Selected skill: ${action.skill}. Use it as the primary workflow for this turn.`];\n if (draft && draft.trim()) parts.push(`Preserve the intent already in the composer: ${draft.trim()}`);\n if (action.prompt) parts.push(action.prompt);\n return parts.join('\\n\\n');\n}\n\nexport interface ToolboxAction {\n id: string;\n title: string;\n badge: string;\n description: string;\n skill: string;\n prompt: string;\n /** MaterialCommunityIcons glyph. */\n icon: string;\n /** True: operates on the open design (an in-place edit). */\n editsCurrent: boolean;\n}\n\n/** The curated follow-up actions (web DESIGN_TOOLBOX_ACTIONS). */\nexport const DESIGN_TOOLBOX_ACTIONS: readonly ToolboxAction[] = [\n {\n id: 'auto-match',\n title: 'Match next step',\n badge: 'Match',\n description: 'Define the taste bar first, then match skills, MCP, plugins, connectors, and files.',\n skill: 'creative-director',\n prompt: 'Act as the Creative Director orchestrator: first define what \"good-looking\" means here (audience, goal, brand feel, references, density, color/type/motion standards, and AI/template patterns to avoid), then choose the best combination of skills, plugins, and files, and complete the next concrete step. Explain why the resources were chosen.',\n icon: 'creation',\n editsCurrent: true,\n },\n {\n id: 'motion',\n title: 'Add animation / motion',\n badge: 'Motion',\n description: 'Add entrance, scroll, state-transition, and micro-interaction motion to the current HTML.',\n skill: 'emilkowalski-motion',\n prompt: 'Add high-quality motion to the current HTML / page element: choose the most useful 1-2 entrance, scroll, state-transition, or micro-interaction moments. Keep it restrained, prefer transform / opacity, and include prefers-reduced-motion fallbacks.',\n icon: 'play-circle-outline',\n editsCurrent: true,\n },\n {\n id: 'motion-polish',\n title: 'Polish motion',\n badge: 'Timing',\n description: 'Review timing, easing, performance, and reduced-motion fallbacks for existing motion.',\n skill: 'gsap-performance',\n prompt: 'Review and polish existing motion timing, easing, performance, and accessibility. Remove abrupt, cheap, or readability-harming animation; use a more refined timeline when needed.',\n icon: 'tune-vertical',\n editsCurrent: true,\n },\n {\n id: 'anti-ai-polish',\n title: 'Remove AI feel',\n badge: 'Taste',\n description: 'Remove template feel, AI gradients, cheap card stacks, and vague copy.',\n skill: 'impeccable-design-polish',\n prompt: 'Do one anti-AI-feel polish pass: remove templated layouts, cheap gradients/glows, meaningless card stacks, and vague copy. Preserve information and make it feel like a real designer delivered it.',\n icon: 'format-paint',\n editsCurrent: true,\n },\n {\n id: 'visual-polish',\n title: 'Design polish / ready to ship',\n badge: 'Polish',\n description: 'Audit visual hierarchy, type, spacing, responsive behavior, accessibility, and delivery quality.',\n skill: 'impeccable-design-polish',\n prompt: 'Polish this design until it is ready to ship: check hierarchy, typography, spacing, responsive behavior, button states, empty/loading/error states, and accessibility; directly fix the most important issues.',\n icon: 'palette-outline',\n editsCurrent: true,\n },\n {\n id: 'image-gen',\n title: 'Generate images / visual references',\n badge: 'Image',\n description: 'Plan section references, hero assets, illustrations, icons, or a moodboard.',\n skill: 'imagegen-frontend-web',\n prompt: 'Create the next visual-asset plan for this design: section references, hero assets, illustrations, icons, social images, or a moodboard. First decide what kind of image is missing, then provide executable generation prompts / a file plan.',\n icon: 'image-outline',\n editsCurrent: false,\n },\n {\n id: 'video-gen',\n title: 'Generate video / motion script',\n badge: 'Video',\n description: 'Turn the design into a short video, storyboard, or generation-ready prompt.',\n skill: 'video-hyperframes',\n prompt: 'Turn this design toward video: create a short-video storyboard, a Hyperframes / Remotion frame structure, or a generation-ready prompt. Prefer making the existing HTML / page content naturally become shots.',\n icon: 'movie-open-outline',\n editsCurrent: false,\n },\n];\n\nexport interface ModelOption {\n id: string;\n title: string;\n group: string;\n requiresKey: boolean;\n}\n\ntype Provider = 'yantra-router' | 'groq' | 'anthropic' | 'openai' | 'google' | 'xai' | 'moonshot' | 'bedrock';\n\nconst PROVIDER_GROUP: Record<Provider, string> = {\n 'yantra-router': 'Yantra Router',\n groq: 'Groq (no key)',\n anthropic: 'Anthropic (BYOK)',\n openai: 'OpenAI (BYOK)',\n google: 'Google (BYOK)',\n xai: 'xAI (BYOK)',\n moonshot: 'Moonshot (BYOK)',\n bedrock: 'Amazon Bedrock (BYOK)',\n};\n\nconst MODELS: Array<[string, string, Provider]> = [\n ['yantra-router/small', 'Yantra Small (Fast & Efficient)', 'yantra-router'],\n ['yantra-router/medium', 'Yantra Medium (Balanced)', 'yantra-router'],\n ['yantra-router/complex', 'Yantra Complex (High Quality)', 'yantra-router'],\n ['yantra-router/reasoning', 'Yantra Reasoning (Deep Thinking)', 'yantra-router'],\n ['groq/llama-3.3-70b-versatile', 'Meta Llama 3.3 70B', 'groq'],\n ['groq/llama-3.1-8b-instant', 'Meta Llama 3.1 8B', 'groq'],\n ['groq/meta-llama/llama-4-scout-17b-16e-instruct', 'Meta Llama 4 Scout 17B', 'groq'],\n ['anthropic/claude-opus-4-6', 'Claude Opus 4.6', 'anthropic'],\n ['anthropic/claude-sonnet-4', 'Claude Sonnet 4', 'anthropic'],\n ['anthropic/claude-opus-4-5', 'Claude Opus 4.5', 'anthropic'],\n ['anthropic/claude-haiku-4.5', 'Claude Haiku 4.5', 'anthropic'],\n ['openai/gpt-5.4', 'GPT-5.4', 'openai'],\n ['openai/gpt-5.4-pro', 'GPT-5.4 Pro', 'openai'],\n ['openai/gpt-5.4-mini', 'GPT-5.4 Mini', 'openai'],\n ['openai/gpt-5.4-nano', 'GPT-5.4 Nano', 'openai'],\n ['google/gemini-3.1-pro', 'Gemini 3.1 Pro', 'google'],\n ['google/gemini-3-flash', 'Gemini 3 Flash', 'google'],\n ['xai/grok-4.20', 'Grok 4.20', 'xai'],\n ['xai/grok-4.1-fast', 'Grok 4.1 Fast', 'xai'],\n ['xai/grok-4.20-reasoning', 'Grok 4.20 Reasoning', 'xai'],\n ['xai/grok-code-fast', 'Grok Code Fast', 'xai'],\n ['moonshot/kimi-k2.5', 'Kimi K2.5', 'moonshot'],\n ['moonshot/kimi-k2-thinking', 'Kimi K2 Thinking', 'moonshot'],\n ['moonshot/kimi-k2', 'Kimi K2', 'moonshot'],\n ['bedrock/anthropic.claude-sonnet-4-6-v1:0', 'Claude Sonnet 4.6', 'bedrock'],\n ['bedrock/anthropic.claude-opus-4-6-v1:0', 'Claude Opus 4.6', 'bedrock'],\n ['bedrock/amazon.nova-pro-v1:0', 'Amazon Nova Pro', 'bedrock'],\n ['bedrock/deepseek.deepseek-r1-v1:0', 'DeepSeek R1', 'bedrock'],\n];\n\n/** The static model registry (web REGISTRY_MODEL_OPTIONS): no-key providers lead. */\nexport const MODEL_OPTIONS: readonly ModelOption[] = MODELS.map(([id, title, provider]) => ({\n id,\n title,\n group: PROVIDER_GROUP[provider],\n requiresKey: provider !== 'yantra-router' && provider !== 'groq',\n}));\n\nexport const DEFAULT_MODEL_ID = 'yantra-router/medium';\n\nexport interface UploadedAttachment {\n name: string;\n mimeType: string;\n url: string | null;\n error?: string;\n}\n\n/** The block appended to a turn for its uploaded files (web `attachmentsNote`). */\nexport function attachmentsNote(uploaded: readonly UploadedAttachment[]): string {\n if (!uploaded.length) return '';\n const lines = uploaded.map((u) =>\n u.url\n ? `- ${u.name} (${u.mimeType}): ${u.url}`\n : `- ${u.name}: upload FAILED (${u.error ?? 'unknown error'}) — say so, do not invent this reference`,\n );\n const hasImage = uploaded.some((u) => u.url && u.mimeType.startsWith('image/'));\n const use = hasImage\n ? 'For an image/screenshot, LOOK at it and match what it shows — layout, spacing, type scale, colour and component structure. It is the visual reference for this design, not decoration.'\n : 'Read each one and use its contents as the source material for this design.';\n return (\n `\\n\\nREFERENCE FILES the user attached. Download each into your workspace first ` +\n `(curl -L -o). ${use}\\n${lines.join('\\n')}`\n );\n}\n\n/** A turn's text with its files: a sentence-less turn still says what to do with them. */\nexport function textWithUploads(text: string, uploaded: readonly UploadedAttachment[]): string {\n if (!uploaded.length) return text;\n return (text.trim() || 'Work from the attached reference file(s).') + attachmentsNote(uploaded);\n}\n\nconst MAX_REFERENCE_HTML = 16000;\n\n/**\n * \"New from this\": a NEW page that keeps the open design's system, visual\n * language and structure - the reference page rides in the brief, truncated\n * (web `briefWithReference`).\n */\nexport function briefWithReference(\n brief: string,\n reference: { title: string; html: string; systemId?: string },\n): string {\n const html =\n reference.html.length > MAX_REFERENCE_HTML\n ? `${reference.html.slice(0, MAX_REFERENCE_HTML)}\\n<!-- …reference truncated… -->`\n : reference.html;\n return [\n `Use this existing design as reference/context — keep its design system, visual language, and structure, but produce a NEW, separate page (do not just return the reference).`,\n `Reference design: “${reference.title}”${reference.systemId ? ` (design system: ${reference.systemId})` : ''}.`,\n '```html\\n' + html + '\\n```',\n `Now create: ${brief}`,\n ].join('\\n\\n');\n}\n\n/**\n * A site address as typed (\"github.com\", \"https://stripe.com/docs\") to the URL\n * the design-system reader takes, or '' when it is not one (kit `normalizeSiteUrl`).\n * Parsed by hand: RN's URL polyfill throws on most getters.\n */\nexport function normalizeSiteUrl(raw: string): string {\n const text = raw.trim();\n if (!text || /\\s/.test(text)) return '';\n const withScheme = /^https?:\\/\\//i.test(text) ? text : `https://${text}`;\n const m = /^(https?):\\/\\/([^/?#:]+)(:\\d+)?([/?#].*)?$/i.exec(withScheme);\n if (!m || !m[2].includes('.') || /^\\.|\\.$/.test(m[2])) return '';\n return `${m[1].toLowerCase()}://${m[2].toLowerCase()}${m[3] ?? ''}${m[4] ?? '/'}`;\n}\n\n/** A downloaded page's file name, the web's: `<template>-<system>.html`. */\nexport function designFileName(creation: { templateId: string; systemId: string }): string {\n const safe = (s: string) => s.replace(/[^A-Za-z0-9._-]+/g, '-').replace(/^-+|-+$/g, '');\n return `${safe(creation.templateId) || 'design'}-${safe(creation.systemId) || 'page'}.html`;\n}\n"],"names":[],"mappings":"AA8BA,SAAS,eAAe,CAA2B,EAAA;AACjD,EAAA,MAAM,GAAM,GAAA,CAAA,EAAG,IAAK,CAAA,KAAA,CAAM,CAAE,CAAA,IAAI,CAAC,CAAA,EAAA,EAAK,IAAK,CAAA,KAAA,CAAM,CAAE,CAAA,IAAI,CAAC,CAAA,CAAA,CAAA;AACxD,EAAA,MAAM,IAAI,CAAE,CAAA,MAAA;AACZ,EAAA,IAAI,CAAC,CAAA,EAAU,OAAA,CAAA,EAAA,EAAK,GAAG,CAAA,CAAA;AACvB,EAAM,MAAA,MAAA,GAAA,CAAU,CAAE,CAAA,IAAA,IAAQ,CAAE,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,GAAG,CAAA,IAAK,UAAU,IAAK,CAAA,CAAA,CAAE,CAAC,CAAC,GAAU,OAAA,EAAA;AAC9D,EAAO,OAAA,CAAA,EAAG,EAAE,CAAC,CAAA,CAAE,aAAa,CAAA,GAAA,EAAM,CAAE,CAAA,CAAC,CAAE,CAAA,WAAA,EAAa,CAAG,EAAA,CAAA,EAAA,GAAA,CAAA,CAAE,CAAC,CAAA,KAAH,IAAQ,GAAA,EAAA,GAAA,EAAE,IAAG,EAAE,GAAA,CAAA,CAAA,CAAC,CAAH,KAAA,IAAA,GAAA,EAAA,GAAQ,GAAG,CAAA,CAAA;AACjF;AAGO,SAAS,eAAe,QAGpB,EAAA;AACT,EAAM,MAAA,IAAA,GAAO,CAAC,CAAA,KAAc,CAAE,CAAA,OAAA,CAAQ,qBAAqB,GAAG,CAAA,CAAE,OAAQ,CAAA,UAAA,EAAY,EAAE,CAAA;AACtF,EAAO,OAAA,CAAA,EAAG,IAAK,CAAA,QAAA,CAAS,UAAU,CAAA,IAAK,QAAQ,CAAA,CAAA,EAAI,IAAK,CAAA,QAAA,CAAS,QAAQ,CAAA,IAAK,MAAM,CAAA,KAAA,CAAA;AACtF"}
|
|
1
|
+
{"version":3,"file":"designChat.js","sources":["../../../../src/features/design/surface/designChat.ts"],"sourcesContent":["/**\n * What the composer sends - native twin of the pieces the web agent pane\n * builds its turns from: surface-kit `chat` (`composeEditsMessage`,\n * `composeToolboxMessage`, annotation picks), design-surface\n * `components/designToolbox.ts`, `standalone/models.ts` and\n * `standalone/designAttachments.ts` (`attachmentsNote`).\n *\n * Every string is the web's, word for word: the generator and its skills are\n * tuned to these messages, so a phone turn must read like a web turn.\n *\n * Pure: runs under jest as-is.\n */\n\n/** The element under an annotation pin (kit `AnnotationTarget`). */\nexport interface AnnotationTarget {\n tag?: string;\n text?: string;\n label?: string;\n path?: string;\n}\n\n/** A numbered pin destined for the next send (kit `AnnotationPick`). */\nexport interface AnnotationPick {\n id: number;\n creationTitle: string;\n xPct: number;\n yPct: number;\n comment: string;\n target?: AnnotationTarget;\n}\n\nfunction describeTarget(p: AnnotationPick): string {\n const pos = `${Math.round(p.xPct)}%,${Math.round(p.yPct)}%`;\n const t = p.target;\n if (!t) return `@ ${pos}`;\n const anchor = (t.text || t.label || '').replace(/\\s+/g, ' ').trim();\n const tag = t.tag ? ` <${t.tag}>` : '';\n if (!anchor) return `→${tag || ' element'}${t.path ? ` in ${t.path}` : ''}, at ${pos}`;\n return `→${tag} \"${anchor}\"`;\n}\n\n/** The shell-parity edits message for a set of pins. */\nexport function composeEditsMessage(picks: readonly AnnotationPick[], subject = 'designs'): string {\n const lines = picks.map((p) => `- [${p.creationTitle} ${describeTarget(p)}]: ${p.comment || 'see pin'}`);\n return `Apply these edits to the ${subject}:\\n${lines.join('\\n')}`;\n}\n\n/** What a pin shows before it is sent: the element it resolved to. */\nexport function selectionLabel(t: AnnotationTarget | undefined): string {\n return (t?.text || t?.label || '').replace(/\\s+/g, ' ').trim().slice(0, 80);\n}\n\n/** The message a toolbox pick sends: the skill, the draft kept as intent, the seed. */\nexport function composeToolboxMessage(action: { skill: string; prompt?: string }, draft?: string): string {\n const parts = [`Selected skill: ${action.skill}. Use it as the primary workflow for this turn.`];\n if (draft && draft.trim()) parts.push(`Preserve the intent already in the composer: ${draft.trim()}`);\n if (action.prompt) parts.push(action.prompt);\n return parts.join('\\n\\n');\n}\n\nexport interface ToolboxAction {\n id: string;\n title: string;\n badge: string;\n description: string;\n skill: string;\n prompt: string;\n /** MaterialCommunityIcons glyph. */\n icon: string;\n /** True: operates on the open design (an in-place edit). */\n editsCurrent: boolean;\n}\n\n/** The curated follow-up actions (web DESIGN_TOOLBOX_ACTIONS). */\nexport const DESIGN_TOOLBOX_ACTIONS: readonly ToolboxAction[] = [\n {\n id: 'auto-match',\n title: 'Match next step',\n badge: 'Match',\n description: 'Define the taste bar first, then match skills, MCP, plugins, connectors, and files.',\n skill: 'creative-director',\n prompt: 'Act as the Creative Director orchestrator: first define what \"good-looking\" means here (audience, goal, brand feel, references, density, color/type/motion standards, and AI/template patterns to avoid), then choose the best combination of skills, plugins, and files, and complete the next concrete step. Explain why the resources were chosen.',\n icon: 'creation',\n editsCurrent: true,\n },\n {\n id: 'motion',\n title: 'Add animation / motion',\n badge: 'Motion',\n description: 'Add entrance, scroll, state-transition, and micro-interaction motion to the current HTML.',\n skill: 'emilkowalski-motion',\n prompt: 'Add high-quality motion to the current HTML / page element: choose the most useful 1-2 entrance, scroll, state-transition, or micro-interaction moments. Keep it restrained, prefer transform / opacity, and include prefers-reduced-motion fallbacks.',\n icon: 'play-circle-outline',\n editsCurrent: true,\n },\n {\n id: 'motion-polish',\n title: 'Polish motion',\n badge: 'Timing',\n description: 'Review timing, easing, performance, and reduced-motion fallbacks for existing motion.',\n skill: 'gsap-performance',\n prompt: 'Review and polish existing motion timing, easing, performance, and accessibility. Remove abrupt, cheap, or readability-harming animation; use a more refined timeline when needed.',\n icon: 'tune-vertical',\n editsCurrent: true,\n },\n {\n id: 'anti-ai-polish',\n title: 'Remove AI feel',\n badge: 'Taste',\n description: 'Remove template feel, AI gradients, cheap card stacks, and vague copy.',\n skill: 'impeccable-design-polish',\n prompt: 'Do one anti-AI-feel polish pass: remove templated layouts, cheap gradients/glows, meaningless card stacks, and vague copy. Preserve information and make it feel like a real designer delivered it.',\n icon: 'format-paint',\n editsCurrent: true,\n },\n {\n id: 'visual-polish',\n title: 'Design polish / ready to ship',\n badge: 'Polish',\n description: 'Audit visual hierarchy, type, spacing, responsive behavior, accessibility, and delivery quality.',\n skill: 'impeccable-design-polish',\n prompt: 'Polish this design until it is ready to ship: check hierarchy, typography, spacing, responsive behavior, button states, empty/loading/error states, and accessibility; directly fix the most important issues.',\n icon: 'palette-outline',\n editsCurrent: true,\n },\n {\n id: 'image-gen',\n title: 'Generate images / visual references',\n badge: 'Image',\n description: 'Plan section references, hero assets, illustrations, icons, or a moodboard.',\n skill: 'imagegen-frontend-web',\n prompt: 'Create the next visual-asset plan for this design: section references, hero assets, illustrations, icons, social images, or a moodboard. First decide what kind of image is missing, then provide executable generation prompts / a file plan.',\n icon: 'image-outline',\n editsCurrent: false,\n },\n {\n id: 'video-gen',\n title: 'Generate video / motion script',\n badge: 'Video',\n description: 'Turn the design into a short video, storyboard, or generation-ready prompt.',\n skill: 'video-hyperframes',\n prompt: 'Turn this design toward video: create a short-video storyboard, a Hyperframes / Remotion frame structure, or a generation-ready prompt. Prefer making the existing HTML / page content naturally become shots.',\n icon: 'movie-open-outline',\n editsCurrent: false,\n },\n];\n\nexport interface ModelOption {\n id: string;\n title: string;\n group: string;\n requiresKey: boolean;\n}\n\ntype Provider = 'yantra-router' | 'groq' | 'anthropic' | 'openai' | 'google' | 'xai' | 'moonshot' | 'bedrock';\n\n/** The models a person gets with Yantra share one title; the same strings as the web app's pickers. */\nconst INCLUDED_GROUP_LABEL = 'Included with Yantra';\n\nconst PROVIDER_GROUP: Record<Provider, string> = {\n 'yantra-router': INCLUDED_GROUP_LABEL,\n groq: INCLUDED_GROUP_LABEL,\n anthropic: 'Anthropic (BYOK)',\n openai: 'OpenAI (BYOK)',\n google: 'Google (BYOK)',\n xai: 'xAI (BYOK)',\n moonshot: 'Moonshot (BYOK)',\n bedrock: 'Amazon Bedrock (BYOK)',\n};\n\nconst MODELS: Array<[string, string, Provider]> = [\n ['yantra-router/small', 'Yantra Small (Fast & Efficient)', 'yantra-router'],\n ['yantra-router/medium', 'Yantra Medium (Balanced)', 'yantra-router'],\n ['yantra-router/complex', 'Yantra Complex (High Quality)', 'yantra-router'],\n ['yantra-router/reasoning', 'Yantra Reasoning (Deep Thinking)', 'yantra-router'],\n ['groq/llama-3.3-70b-versatile', 'Meta Llama 3.3 70B', 'groq'],\n ['groq/llama-3.1-8b-instant', 'Meta Llama 3.1 8B', 'groq'],\n ['groq/meta-llama/llama-4-scout-17b-16e-instruct', 'Meta Llama 4 Scout 17B', 'groq'],\n ['anthropic/claude-opus-4-6', 'Claude Opus 4.6', 'anthropic'],\n ['anthropic/claude-sonnet-4', 'Claude Sonnet 4', 'anthropic'],\n ['anthropic/claude-opus-4-5', 'Claude Opus 4.5', 'anthropic'],\n ['anthropic/claude-haiku-4.5', 'Claude Haiku 4.5', 'anthropic'],\n ['openai/gpt-5.4', 'GPT-5.4', 'openai'],\n ['openai/gpt-5.4-pro', 'GPT-5.4 Pro', 'openai'],\n ['openai/gpt-5.4-mini', 'GPT-5.4 Mini', 'openai'],\n ['openai/gpt-5.4-nano', 'GPT-5.4 Nano', 'openai'],\n ['google/gemini-3.1-pro', 'Gemini 3.1 Pro', 'google'],\n ['google/gemini-3-flash', 'Gemini 3 Flash', 'google'],\n ['xai/grok-4.20', 'Grok 4.20', 'xai'],\n ['xai/grok-4.1-fast', 'Grok 4.1 Fast', 'xai'],\n ['xai/grok-4.20-reasoning', 'Grok 4.20 Reasoning', 'xai'],\n ['xai/grok-code-fast', 'Grok Code Fast', 'xai'],\n ['moonshot/kimi-k2.5', 'Kimi K2.5', 'moonshot'],\n ['moonshot/kimi-k2-thinking', 'Kimi K2 Thinking', 'moonshot'],\n ['moonshot/kimi-k2', 'Kimi K2', 'moonshot'],\n ['bedrock/anthropic.claude-sonnet-4-6-v1:0', 'Claude Sonnet 4.6', 'bedrock'],\n ['bedrock/anthropic.claude-opus-4-6-v1:0', 'Claude Opus 4.6', 'bedrock'],\n ['bedrock/amazon.nova-pro-v1:0', 'Amazon Nova Pro', 'bedrock'],\n ['bedrock/deepseek.deepseek-r1-v1:0', 'DeepSeek R1', 'bedrock'],\n];\n\n/** The static model registry (web REGISTRY_MODEL_OPTIONS): no-key providers lead. */\nexport const MODEL_OPTIONS: readonly ModelOption[] = MODELS.map(([id, title, provider]) => ({\n id,\n title,\n group: PROVIDER_GROUP[provider],\n requiresKey: provider !== 'yantra-router' && provider !== 'groq',\n}));\n\nexport const DEFAULT_MODEL_ID = 'yantra-router/medium';\n\nexport interface UploadedAttachment {\n name: string;\n mimeType: string;\n url: string | null;\n error?: string;\n}\n\n/** The block appended to a turn for its uploaded files (web `attachmentsNote`). */\nexport function attachmentsNote(uploaded: readonly UploadedAttachment[]): string {\n if (!uploaded.length) return '';\n const lines = uploaded.map((u) =>\n u.url\n ? `- ${u.name} (${u.mimeType}): ${u.url}`\n : `- ${u.name}: upload FAILED (${u.error ?? 'unknown error'}) — say so, do not invent this reference`,\n );\n const hasImage = uploaded.some((u) => u.url && u.mimeType.startsWith('image/'));\n const use = hasImage\n ? 'For an image/screenshot, LOOK at it and match what it shows — layout, spacing, type scale, colour and component structure. It is the visual reference for this design, not decoration.'\n : 'Read each one and use its contents as the source material for this design.';\n return (\n `\\n\\nREFERENCE FILES the user attached. Download each into your workspace first ` +\n `(curl -L -o). ${use}\\n${lines.join('\\n')}`\n );\n}\n\n/** A turn's text with its files: a sentence-less turn still says what to do with them. */\nexport function textWithUploads(text: string, uploaded: readonly UploadedAttachment[]): string {\n if (!uploaded.length) return text;\n return (text.trim() || 'Work from the attached reference file(s).') + attachmentsNote(uploaded);\n}\n\nconst MAX_REFERENCE_HTML = 16000;\n\n/**\n * \"New from this\": a NEW page that keeps the open design's system, visual\n * language and structure - the reference page rides in the brief, truncated\n * (web `briefWithReference`).\n */\nexport function briefWithReference(\n brief: string,\n reference: { title: string; html: string; systemId?: string },\n): string {\n const html =\n reference.html.length > MAX_REFERENCE_HTML\n ? `${reference.html.slice(0, MAX_REFERENCE_HTML)}\\n<!-- …reference truncated… -->`\n : reference.html;\n return [\n `Use this existing design as reference/context — keep its design system, visual language, and structure, but produce a NEW, separate page (do not just return the reference).`,\n `Reference design: “${reference.title}”${reference.systemId ? ` (design system: ${reference.systemId})` : ''}.`,\n `\\`\\`\\`html\\n${html}\\n\\`\\`\\``,\n `Now create: ${brief}`,\n ].join('\\n\\n');\n}\n\n/**\n * A site address as typed (\"github.com\", \"https://stripe.com/docs\") to the URL\n * the design-system reader takes, or '' when it is not one (kit `normalizeSiteUrl`).\n * Parsed by hand: RN's URL polyfill throws on most getters.\n */\nexport function normalizeSiteUrl(raw: string): string {\n const text = raw.trim();\n if (!text || /\\s/.test(text)) return '';\n const withScheme = /^https?:\\/\\//i.test(text) ? text : `https://${text}`;\n const m = /^(https?):\\/\\/([^/?#:]+)(:\\d+)?([/?#].*)?$/i.exec(withScheme);\n if (!m || !m[2].includes('.') || /^\\.|\\.$/.test(m[2])) return '';\n return `${m[1].toLowerCase()}://${m[2].toLowerCase()}${m[3] ?? ''}${m[4] ?? '/'}`;\n}\n\n/** A downloaded page's file name, the web's: `<template>-<system>.html`. */\nexport function designFileName(creation: { templateId: string; systemId: string }): string {\n const safe = (s: string) => s.replace(/[^A-Za-z0-9._-]+/g, '-').replace(/^-+|-+$/g, '');\n return `${safe(creation.templateId) || 'design'}-${safe(creation.systemId) || 'page'}.html`;\n}\n"],"names":[],"mappings":"AA8BA,SAAS,eAAe,CAA2B,EAAA;AACjD,EAAA,MAAM,GAAM,GAAA,CAAA,EAAG,IAAK,CAAA,KAAA,CAAM,CAAE,CAAA,IAAI,CAAC,CAAA,EAAA,EAAK,IAAK,CAAA,KAAA,CAAM,CAAE,CAAA,IAAI,CAAC,CAAA,CAAA,CAAA;AACxD,EAAA,MAAM,IAAI,CAAE,CAAA,MAAA;AACZ,EAAA,IAAI,CAAC,CAAA,EAAU,OAAA,CAAA,EAAA,EAAK,GAAG,CAAA,CAAA;AACvB,EAAM,MAAA,MAAA,GAAA,CAAU,CAAE,CAAA,IAAA,IAAQ,CAAE,CAAA,KAAA,IAAS,IAAI,OAAQ,CAAA,MAAA,EAAQ,GAAG,CAAA,CAAE,IAAK,EAAA;AACnE,EAAA,MAAM,MAAM,CAAE,CAAA,GAAA,GAAM,CAAK,EAAA,EAAA,CAAA,CAAE,GAAG,CAAM,CAAA,CAAA,GAAA,EAAA;AACpC,EAAA,IAAI,CAAC,MAAA,EAAe,OAAA,CAAA,MAAA,EAAI,OAAO,UAAU,CAAA,EAAG,CAAE,CAAA,IAAA,GAAO,OAAO,CAAE,CAAA,IAAI,CAAK,CAAA,GAAA,EAAE,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,KAAH,IAAQ,GAAA,EAAA,GAAA,EAAE,IAAG,EAAE,GAAA,CAAA,CAAA,CAAC,CAAH,KAAA,IAAA,GAAA,EAAA,GAAQ,GAAG,CAAA,CAAA;AACjF;AAGO,SAAS,eAAe,QAGpB,EAAA;AACT,EAAM,MAAA,IAAA,GAAO,CAAC,CAAA,KAAc,CAAE,CAAA,OAAA,CAAQ,qBAAqB,GAAG,CAAA,CAAE,OAAQ,CAAA,UAAA,EAAY,EAAE,CAAA;AACtF,EAAO,OAAA,CAAA,EAAG,IAAK,CAAA,QAAA,CAAS,UAAU,CAAA,IAAK,QAAQ,CAAA,CAAA,EAAI,IAAK,CAAA,QAAA,CAAS,QAAQ,CAAA,IAAK,MAAM,CAAA,KAAA,CAAA;AACtF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adminide-stack/yantra-mobile",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.191-alpha.0",
|
|
4
4
|
"description": "Sample core for higher packages to depend on",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"@react-native-async-storage/async-storage": "*",
|
|
47
47
|
"@react-navigation/native": "*",
|
|
48
48
|
"@shopify/react-native-skia": "*",
|
|
49
|
-
"common": "12.0.
|
|
49
|
+
"common": "12.0.190-alpha.0",
|
|
50
50
|
"expo-background-task": "*",
|
|
51
51
|
"expo-camera": "*",
|
|
52
52
|
"expo-constants": "*",
|
|
@@ -71,5 +71,5 @@
|
|
|
71
71
|
"typescript": {
|
|
72
72
|
"definition": "lib/index.d.ts"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "a387943d8edb942e4c701e51d8551987cb3e1b77"
|
|
75
75
|
}
|