feat(metadata): replace aiAutofill boolean with autofillSource enum (#302)

* feat(metadata): replace aiAutofill boolean with autofillSource enum

* fix(agent): validate creation-context metadata and make writes transactional

Address code review feedback on the autofillSource migration:

- Update the agent system prompt to reference the 'metadata' parameter of
  create_file/create_version instead of the removed 'context' parameter,
  which was being silently discarded by the activity
- Write metadata inside the caller's transaction via the new
  metadataService.updateAssetMetadataInTx, keeping metadata rows atomic
  with asset creation instead of opening a separate non-atomic transaction
- Reject metadata keys that are not defined CREATION_CONTEXT fields of the
  project with a non-retryable ApplicationFailure before creating the asset
- Remove dead agentContext handling from autofillAiActivity and its tests,
  and drop the unused ai_autofill i18n keys (paraglide recompiled)
- Derive the DTO autofillSource enum from the AutofillSource const instead
  of a hardcoded z.enum to prevent drift
This commit is contained in:
Yiling-J
2026-08-13 13:41:46 +08:00
committed by GitHub
parent 96493a5493
commit 41b73feeab
57 changed files with 1118 additions and 663 deletions
@@ -0,0 +1,85 @@
import { useState } from 'react'
import { CircleHelp, Sparkles, Bot, Ban } from 'lucide-react'
import { m } from '@/ui/paraglide/messages.js'
import { Button } from '@/ui/components/ui/button'
import {
Dialog,
DialogContent,
DialogDescription,
DialogHeader,
DialogTitle,
DialogTrigger,
} from '@/ui/components/ui/dialog'
export function AutofillSourceHelpTrigger() {
const [open, setOpen] = useState(false)
return (
<Dialog open={open} onOpenChange={setOpen}>
<DialogTrigger asChild>
<Button
type="button"
variant="ghost"
size="icon"
className="h-4 w-4 p-0 hover:bg-transparent text-muted-foreground hover:text-foreground inline-flex items-center justify-center shrink-0 ml-1"
title={m.autofill_source_help_title()}
>
<CircleHelp className="h-3.5 w-3.5" />
<span className="sr-only">{m.autofill_source_help_title()}</span>
</Button>
</DialogTrigger>
<DialogContent className="sm:max-w-[500px]">
<DialogHeader>
<DialogTitle className="flex items-center gap-2">
<CircleHelp className="h-5 w-5 text-muted-foreground" />
{m.autofill_source_help_title()}
</DialogTitle>
<DialogDescription>{m.autofill_source_help_desc()}</DialogDescription>
</DialogHeader>
<div className="space-y-4 py-2">
{/* Option 1: None */}
<div className="rounded-lg border p-3.5 space-y-1.5 bg-muted/30">
<div className="flex items-center gap-2 font-medium text-sm">
<Ban className="h-4 w-4 text-muted-foreground shrink-0" />
<span>{m.autofill_source_none()}</span>
</div>
<p className="text-xs text-muted-foreground leading-relaxed">
{m.autofill_source_none_desc()}
</p>
<p className="text-xs italic text-muted-foreground/80">
{m.autofill_source_none_example()}
</p>
</div>
{/* Option 2: Content */}
<div className="rounded-lg border p-3.5 space-y-1.5 bg-muted/30">
<div className="flex items-center gap-2 font-medium text-sm">
<Sparkles className="h-4 w-4 text-amber-500 shrink-0" />
<span>{m.autofill_source_content()}</span>
</div>
<p className="text-xs text-muted-foreground leading-relaxed">
{m.autofill_source_content_desc()}
</p>
<p className="text-xs italic text-muted-foreground/80">
{m.autofill_source_content_example()}
</p>
</div>
{/* Option 3: Creation Context */}
<div className="rounded-lg border p-3.5 space-y-1.5 bg-muted/30">
<div className="flex items-center gap-2 font-medium text-sm">
<Bot className="h-4 w-4 text-blue-500 shrink-0" />
<span>{m.autofill_source_creation_context()}</span>
</div>
<p className="text-xs text-muted-foreground leading-relaxed">
{m.autofill_source_creation_context_desc()}
</p>
<p className="text-xs italic text-muted-foreground/80">
{m.autofill_source_creation_context_example()}
</p>
</div>
</div>
</DialogContent>
</Dialog>
)
}
+66 -27
View File
@@ -1,5 +1,6 @@
import {
FieldType,
AutofillSource,
type FieldInfo,
type FieldInfo as MetadataFieldInfo,
type SelectOption,
@@ -24,8 +25,32 @@ import { Popover, PopoverContent, PopoverTrigger } from '@/ui/components/ui/popo
import { Input } from '@/ui/components/ui/input'
import { Label } from '@/ui/components/ui/label'
import { Switch } from '@/ui/components/ui/switch'
import { ToggleGroup, ToggleGroupItem } from '@/ui/components/ui/toggle-group'
import { reorderFieldSubset } from '@/ui/lib/dnd-utils'
import { PointerActivationConstraints } from '@dnd-kit/dom'
import {
AlignLeft,
Calendar,
ChevronDown,
GripVertical,
Hash,
List,
Plus,
Search,
Settings,
Sparkles,
Bot,
Star,
Tags,
ToggleLeft,
Type,
X,
User,
Users,
} from 'lucide-react'
import { useMemo, useState, useEffect } from 'react'
import { AutofillSourceHelpTrigger } from '@/ui/components/autofill-source-help-dialog'
export const PREDEFINED_COLORS = ['red', 'orange', 'yellow', 'green', 'blue', 'purple', 'gray']
@@ -80,26 +105,6 @@ export function getRandomUnusedColor(existingOptions: SelectOption[] = []): stri
}
return PREDEFINED_COLORS[Math.floor(Math.random() * PREDEFINED_COLORS.length)]
}
import {
AlignLeft,
Calendar,
ChevronDown,
GripVertical,
Hash,
List,
Plus,
Search,
Settings,
Sparkles,
Star,
Tags,
ToggleLeft,
Type,
X,
User,
Users,
} from 'lucide-react'
import { useMemo, useState, useEffect } from 'react'
export const FIELD_TYPE_ICONS: Record<FieldType, React.ComponentType<{ className?: string }>> = {
[FieldType.text]: Type,
@@ -135,7 +140,12 @@ function SortableFieldItem({ field, index, onVisibilityChange }: SortableFieldIt
<GripVertical className="h-4 w-4 text-muted-foreground" />
</div>
{Icon && <Icon className="h-4 w-4 text-muted-foreground shrink-0" />}
{field.aiAutofill && <Sparkles className="h-4 w-4 text-muted-foreground shrink-0" />}
{field.config?.autofillSource === AutofillSource.CONTENT && (
<Sparkles className="h-4 w-4 text-muted-foreground shrink-0" />
)}
{field.config?.autofillSource === AutofillSource.CREATION_CONTEXT && (
<Bot className="h-4 w-4 text-muted-foreground shrink-0" />
)}
<span className="text-sm truncate">{field.config?.name}</span>
</div>
<Switch
@@ -158,7 +168,7 @@ export function FieldsManager({ projectId, onManageFields, onSave }: FieldsManag
const [view, setView] = useState<'list' | 'create'>('list')
const [newFieldName, setNewFieldName] = useState('')
const [newFieldType, setNewFieldType] = useState<FieldType | ''>('')
const [newAiAutofill, setNewAiAutofill] = useState(false)
const [newAutofillSource, setNewAutofillSource] = useState<AutofillSource>(AutofillSource.NONE)
const [newDescription, setNewDescription] = useState('')
const [newOptions, setNewOptions] = useState<SelectOption[]>([])
@@ -265,10 +275,10 @@ export function FieldsManager({ projectId, onManageFields, onSave }: FieldsManag
config: {
name: newFieldName,
type: newFieldType,
autofillSource: newAutofillSource,
...typeConfig,
},
label: newFieldName,
aiAutofill: newAiAutofill,
description: newDescription,
},
})
@@ -333,9 +343,38 @@ export function FieldsManager({ projectId, onManageFields, onSave }: FieldsManag
/>
</div>
<div className="flex items-center space-x-2">
<Switch id="ai-autofill" checked={newAiAutofill} onCheckedChange={setNewAiAutofill} />
<Label htmlFor="ai-autofill">{m.ai_autofill()}</Label>
<div className="space-y-2">
<div className="flex items-center gap-1">
<Label>{m.autofill_source()}</Label>
<AutofillSourceHelpTrigger />
</div>
<ToggleGroup
type="single"
value={newAutofillSource}
onValueChange={(val: string) => {
if (val) setNewAutofillSource(val as AutofillSource)
}}
className="w-full grid grid-cols-3 border rounded-md p-1 gap-1"
>
<ToggleGroupItem
value={AutofillSource.NONE}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_none()}
</ToggleGroupItem>
<ToggleGroupItem
value={AutofillSource.CONTENT}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_content()}
</ToggleGroupItem>
<ToggleGroupItem
value={AutofillSource.CREATION_CONTEXT}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_creation_context()}
</ToggleGroupItem>
</ToggleGroup>
</div>
{(newFieldType === FieldType.select || newFieldType === FieldType.selectMulti) && (
@@ -424,7 +463,7 @@ export function FieldsManager({ projectId, onManageFields, onSave }: FieldsManag
setView('list')
setNewFieldName('')
setNewFieldType('')
setNewAiAutofill(false)
setNewAutofillSource(AutofillSource.NONE)
setNewDescription('')
setNewOptions([])
}}
@@ -8,6 +8,7 @@ import { DragDropProvider, KeyboardSensor, PointerSensor, type DragEndEvent } fr
import { isSortable, useSortable } from '@dnd-kit/react/sortable'
import {
FieldType,
AutofillSource,
type FieldInfo,
type FieldInfo as MetadataFieldInfo,
type SelectOption,
@@ -22,6 +23,7 @@ import {
Plus,
Settings,
Sparkles,
Bot,
X,
} from 'lucide-react'
import { useEffect, useMemo, useState } from 'react'
@@ -44,8 +46,9 @@ import {
} from '@/ui/components/ui/dropdown-menu'
import { Input } from '@/ui/components/ui/input'
import { Label } from '@/ui/components/ui/label'
import { Switch } from '@/ui/components/ui/switch'
import { ToggleGroup, ToggleGroupItem } from '@/ui/components/ui/toggle-group'
import { cn } from '@/ui/lib/utils'
import { AutofillSourceHelpTrigger } from '@/ui/components/autofill-source-help-dialog'
type ManageFieldsDialogProps = {
projectId: string
@@ -111,7 +114,12 @@ function SortableFieldRow({
)}
{!isSortable && <div className="w-4" />} {/* Spacer */}
{Icon && <Icon className="h-4 w-4 text-muted-foreground shrink-0" />}
{field.aiAutofill && <Sparkles className="h-4 w-4 text-muted-foreground shrink-0" />}
{field.config?.autofillSource === AutofillSource.CONTENT && (
<Sparkles className="h-4 w-4 text-muted-foreground shrink-0" />
)}
{field.config?.autofillSource === AutofillSource.CREATION_CONTEXT && (
<Bot className="h-4 w-4 text-muted-foreground shrink-0" />
)}
<div className="flex-1 text-sm font-medium truncate">{field.config?.name}</div>
</div>
)
@@ -134,13 +142,13 @@ export function ManageFieldsDialog({ projectId, open, onOpenChange }: ManageFiel
const [editLabel, setEditLabel] = useState('')
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const [editConfig, setEditConfig] = useState<any>({})
const [editAiAutofill, setEditAiAutofill] = useState(false)
const [editAutofillSource, setEditAutofillSource] = useState<AutofillSource>(AutofillSource.NONE)
const [editDescription, setEditDescription] = useState('')
// Creator State
const [newName, setNewName] = useState('')
const [newType, setNewType] = useState<FieldType | ''>('')
const [newAiAutofill, setNewAiAutofill] = useState(false)
const [newAutofillSource, setNewAutofillSource] = useState<AutofillSource>(AutofillSource.NONE)
const [newDescription, setNewDescription] = useState('')
const [newOptions, setNewOptions] = useState<SelectOption[]>([])
@@ -251,12 +259,12 @@ export function ManageFieldsDialog({ projectId, open, onOpenChange }: ManageFiel
if (field) {
setEditLabel(field.config?.name || '') // Using name as label for now if label missing
setEditConfig(field.config || {})
setEditAiAutofill(field.aiAutofill || false)
setEditAutofillSource(field.config?.autofillSource ?? AutofillSource.NONE)
setEditDescription(field.description || '')
} else {
setEditLabel('')
setEditConfig({})
setEditAiAutofill(false)
setEditAutofillSource(AutofillSource.NONE)
setEditDescription('')
}
}
@@ -272,7 +280,7 @@ export function ManageFieldsDialog({ projectId, open, onOpenChange }: ManageFiel
setSelectedFieldId(null)
setNewName('')
setNewType('')
setNewAiAutofill(false)
setNewAutofillSource(AutofillSource.NONE)
setNewDescription('')
setNewOptions([])
}
@@ -312,11 +320,11 @@ export function ManageFieldsDialog({ projectId, open, onOpenChange }: ManageFiel
config: {
name: newName,
type: newType,
autofillSource: newAutofillSource,
...typeConfig,
},
label: newName,
scope: selectedGroup === SCOPE_GROUPS.PROJECT ? undefined : selectedGroup,
aiAutofill: newAiAutofill,
description: newDescription,
},
})
@@ -331,8 +339,8 @@ export function ManageFieldsDialog({ projectId, open, onOpenChange }: ManageFiel
...selectedField.config,
...editConfig,
name: editLabel,
autofillSource: editAutofillSource,
},
aiAutofill: editAiAutofill,
description: editDescription,
},
})
@@ -396,9 +404,38 @@ export function ManageFieldsDialog({ projectId, open, onOpenChange }: ManageFiel
placeholder={m.description_optional_placeholder()}
/>
</div>
<div className="flex items-center space-x-2">
<Switch checked={newAiAutofill} onCheckedChange={setNewAiAutofill} />
<Label>{m.ai_autofill()}</Label>
<div className="space-y-2">
<div className="flex items-center gap-1">
<Label>{m.autofill_source()}</Label>
<AutofillSourceHelpTrigger />
</div>
<ToggleGroup
type="single"
value={newAutofillSource}
onValueChange={(val: string) => {
if (val) setNewAutofillSource(val as AutofillSource)
}}
className="w-full grid grid-cols-3 border rounded-md p-1 gap-1"
>
<ToggleGroupItem
value={AutofillSource.NONE}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_none()}
</ToggleGroupItem>
<ToggleGroupItem
value={AutofillSource.CONTENT}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_content()}
</ToggleGroupItem>
<ToggleGroupItem
value={AutofillSource.CREATION_CONTEXT}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_creation_context()}
</ToggleGroupItem>
</ToggleGroup>
</div>
{(newType === FieldType.select || newType === FieldType.selectMulti) && (
@@ -518,13 +555,42 @@ export function ManageFieldsDialog({ projectId, open, onOpenChange }: ManageFiel
/>
</div>
<div className="flex items-center space-x-2">
<Switch
checked={editAiAutofill}
onCheckedChange={setEditAiAutofill}
<div className="space-y-2">
<div className="flex items-center gap-1">
<Label>{m.autofill_source()}</Label>
<AutofillSourceHelpTrigger />
</div>
<ToggleGroup
type="single"
value={isCreating ? newAutofillSource : editAutofillSource}
onValueChange={(val) => {
if (val) {
if (isCreating) setNewAutofillSource(val as AutofillSource)
else setEditAutofillSource(val as AutofillSource)
}
}}
disabled={isReadOnly}
/>
<Label>{m.ai_autofill()}</Label>
className="w-full grid grid-cols-3 border rounded-md p-1 gap-1"
>
<ToggleGroupItem
value={AutofillSource.NONE}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_none()}
</ToggleGroupItem>
<ToggleGroupItem
value={AutofillSource.CONTENT}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_content()}
</ToggleGroupItem>
<ToggleGroupItem
value={AutofillSource.CREATION_CONTEXT}
className="text-[11px] leading-tight py-1 px-1 h-auto min-h-[32px] w-full text-center justify-center whitespace-normal font-medium"
>
{m.autofill_source_creation_context()}
</ToggleGroupItem>
</ToggleGroup>
</div>
{/* TODO: Add specific option editors here */}
+12 -1
View File
@@ -701,7 +701,18 @@
"field_type": "Field Type",
"select_field_type": "Select field type",
"description_optional_placeholder": "Optional, used for AI autofill",
"ai_autofill": "AI Autofill",
"autofill_source": "Autofill Source",
"autofill_source_none": "None",
"autofill_source_content": "Content",
"autofill_source_creation_context": "Creation Context",
"autofill_source_help_title": "Autofill Source Guide",
"autofill_source_help_desc": "Understand how each autofill source option works and when to use it.",
"autofill_source_none_desc": "Metadata fields marked as 'None' will not be automatically populated by AI. They are meant for manual user entry.",
"autofill_source_none_example": "Example: Internal tags, manual notes, status tracking flags.",
"autofill_source_content_desc": "Fields marked as 'Content' are automatically analyzed and extracted from the asset's visual or textual content after upload. Note: A team owner must first create and enable an Autofill Agent in team settings for content extraction to run.",
"autofill_source_content_example": "Example: Image subject category, visual color palette, document summary, auto-detected language.",
"autofill_source_creation_context_desc": "Fields marked as 'Creation Context' capture details available at creation time (such as generation prompt, model, or provider). If an asset is created by a Shumai AI Agent, the agent will automatically populate these fields upon creation (without needing an Autofill Agent enabled). If uploaded manually by a human user, the user must enter these values manually.",
"autofill_source_creation_context_example": "Example: Generation prompt, AI model name, LLM provider, sampler seed parameters.",
"select_field_to_edit": "Select a field to edit options",
"type_label": "Type:",
"options": "Options",
+12 -1
View File
@@ -701,7 +701,18 @@
"field_type": "字段类型",
"select_field_type": "选择字段类型",
"description_optional_placeholder": "可选,用于 AI 自动填充",
"ai_autofill": "AI 自动填充",
"autofill_source": "自动填充来源",
"autofill_source_none": "无",
"autofill_source_content": "文件内容",
"autofill_source_creation_context": "创建上下文",
"autofill_source_help_title": "自动填充来源说明",
"autofill_source_help_desc": "了解每种自动填充来源的工作方式及适用场景。",
"autofill_source_none_desc": "设置为“无”的字段不会由 AI 自动填充,需由用户手动填写。",
"autofill_source_none_example": "示例:内部标签、手动备注、状态标记。",
"autofill_source_content_desc": "设置为“文件内容”的字段将在文件上传后,由 AI 自动分析并从文件的视觉或文本内容中提取填写。注意:需要团队 Owner 先在设置中创建并启用“Autofill Agent”(自动填充 Agent),上传后才会触发内容提取。",
"autofill_source_content_example": "示例:图片类别、主色调、文档摘要、自动识别语言。",
"autofill_source_creation_context_desc": "设置为“创建上下文”的字段用于记录生成资产时的上下文信息(如 Prompt、模型或供应商)。若文件由 Shumai AI Agent 生成/创建,Agent 会在创建时刻自动填入这些字段(无需启用 Autofill Agent);若由真实用户手动上传,则需用户手动填写,不会自动提取。",
"autofill_source_creation_context_example": "示例:生成 Prompt、AI 模型名称、LLM 供应商、采样种子参数。",
"select_field_to_edit": "选择一个字段以编辑选项",
"type_label": "类型:",
"options": "选项",
+12 -1
View File
@@ -662,7 +662,18 @@ export * from "./field_name_placeholder.js";
export * from "./field_type.js";
export * from "./select_field_type.js";
export * from "./description_optional_placeholder.js";
export * from "./ai_autofill.js";
export * from "./autofill_source.js";
export * from "./autofill_source_none.js";
export * from "./autofill_source_content.js";
export * from "./autofill_source_creation_context.js";
export * from "./autofill_source_help_title.js";
export * from "./autofill_source_help_desc.js";
export * from "./autofill_source_none_desc.js";
export * from "./autofill_source_none_example.js";
export * from "./autofill_source_content_desc.js";
export * from "./autofill_source_content_example.js";
export * from "./autofill_source_creation_context_desc.js";
export * from "./autofill_source_creation_context_example.js";
export * from "./select_field_to_edit.js";
export * from "./type_label.js";
export * from "./options.js";
+12 -1
View File
@@ -664,7 +664,18 @@ export * from './field_name_placeholder.js'
export * from './field_type.js'
export * from './select_field_type.js'
export * from './description_optional_placeholder.js'
export * from './ai_autofill.js'
export * from './autofill_source.js'
export * from './autofill_source_none.js'
export * from './autofill_source_content.js'
export * from './autofill_source_creation_context.js'
export * from './autofill_source_help_title.js'
export * from './autofill_source_help_desc.js'
export * from './autofill_source_none_desc.js'
export * from './autofill_source_none_example.js'
export * from './autofill_source_content_desc.js'
export * from './autofill_source_content_example.js'
export * from './autofill_source_creation_context_desc.js'
export * from './autofill_source_creation_context_example.js'
export * from './select_field_to_edit.js'
export * from './type_label.js'
export * from './options.js'
-29
View File
@@ -1,29 +0,0 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Ai_AutofillInputs */
const en_ai_autofill = /** @type {(inputs: Ai_AutofillInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`AI Autofill`)
};
const zh_ai_autofill = /** @type {(inputs: Ai_AutofillInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`AI 自动填充`)
};
/**
* | output |
* | --- |
* | "AI Autofill" |
*
* @param {Ai_AutofillInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const ai_autofill = /** @type {((inputs?: Ai_AutofillInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Ai_AutofillInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_ai_autofill(inputs)
return zh_ai_autofill(inputs)
});
@@ -1,16 +1,16 @@
/**
* | output |
* | --- |
* | "AI Autofill" |
* | "Autofill Source" |
*
* @param {Ai_AutofillInputs} inputs
* @param {Autofill_SourceInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const ai_autofill: ((inputs?: Ai_AutofillInputs, options?: {
export const autofill_source: ((inputs?: Autofill_SourceInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Ai_AutofillInputs, {
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_SourceInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Ai_AutofillInputs = {};
export type Autofill_SourceInputs = {};
+29
View File
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_SourceInputs */
const en_autofill_source = /** @type {(inputs: Autofill_SourceInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Autofill Source`)
};
const zh_autofill_source = /** @type {(inputs: Autofill_SourceInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`自动填充来源`)
};
/**
* | output |
* | --- |
* | "Autofill Source" |
*
* @param {Autofill_SourceInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source = /** @type {((inputs?: Autofill_SourceInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_SourceInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source(inputs)
return zh_autofill_source(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Content" |
*
* @param {Autofill_Source_ContentInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_content: ((inputs?: Autofill_Source_ContentInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_ContentInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_ContentInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_ContentInputs */
const en_autofill_source_content = /** @type {(inputs: Autofill_Source_ContentInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Content`)
};
const zh_autofill_source_content = /** @type {(inputs: Autofill_Source_ContentInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`文件内容`)
};
/**
* | output |
* | --- |
* | "Content" |
*
* @param {Autofill_Source_ContentInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_content = /** @type {((inputs?: Autofill_Source_ContentInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_ContentInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_content(inputs)
return zh_autofill_source_content(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Fields marked as 'Content' are automatically analyzed and extracted from the asset's visual or textual content after upload. Note: A team owner must first cr..." |
*
* @param {Autofill_Source_Content_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_content_desc: ((inputs?: Autofill_Source_Content_DescInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_Content_DescInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_Content_DescInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_Content_DescInputs */
const en_autofill_source_content_desc = /** @type {(inputs: Autofill_Source_Content_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Fields marked as 'Content' are automatically analyzed and extracted from the asset's visual or textual content after upload. Note: A team owner must first create and enable an Autofill Agent in team settings for content extraction to run.`)
};
const zh_autofill_source_content_desc = /** @type {(inputs: Autofill_Source_Content_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`设置为“文件内容”的字段将在文件上传后,由 AI 自动分析并从文件的视觉或文本内容中提取填写。注意:需要团队 Owner 先在设置中创建并启用“Autofill Agent”(自动填充 Agent),上传后才会触发内容提取。`)
};
/**
* | output |
* | --- |
* | "Fields marked as 'Content' are automatically analyzed and extracted from the asset's visual or textual content after upload. Note: A team owner must first cr..." |
*
* @param {Autofill_Source_Content_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_content_desc = /** @type {((inputs?: Autofill_Source_Content_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_Content_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_content_desc(inputs)
return zh_autofill_source_content_desc(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Example: Image subject category, visual color palette, document summary, auto-detected language." |
*
* @param {Autofill_Source_Content_ExampleInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_content_example: ((inputs?: Autofill_Source_Content_ExampleInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_Content_ExampleInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_Content_ExampleInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_Content_ExampleInputs */
const en_autofill_source_content_example = /** @type {(inputs: Autofill_Source_Content_ExampleInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Example: Image subject category, visual color palette, document summary, auto-detected language.`)
};
const zh_autofill_source_content_example = /** @type {(inputs: Autofill_Source_Content_ExampleInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`示例:图片类别、主色调、文档摘要、自动识别语言。`)
};
/**
* | output |
* | --- |
* | "Example: Image subject category, visual color palette, document summary, auto-detected language." |
*
* @param {Autofill_Source_Content_ExampleInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_content_example = /** @type {((inputs?: Autofill_Source_Content_ExampleInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_Content_ExampleInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_content_example(inputs)
return zh_autofill_source_content_example(inputs)
});
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Creation Context" |
*
* @param {Autofill_Source_Creation_ContextInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_creation_context: ((inputs?: Autofill_Source_Creation_ContextInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_Creation_ContextInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_Creation_ContextInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_Creation_ContextInputs */
const en_autofill_source_creation_context = /** @type {(inputs: Autofill_Source_Creation_ContextInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Creation Context`)
};
const zh_autofill_source_creation_context = /** @type {(inputs: Autofill_Source_Creation_ContextInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`创建上下文`)
};
/**
* | output |
* | --- |
* | "Creation Context" |
*
* @param {Autofill_Source_Creation_ContextInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_creation_context = /** @type {((inputs?: Autofill_Source_Creation_ContextInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_Creation_ContextInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_creation_context(inputs)
return zh_autofill_source_creation_context(inputs)
});
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Fields marked as 'Creation Context' capture details available at creation time (such as generation prompt, model, or provider). If an asset is created by a S..." |
*
* @param {Autofill_Source_Creation_Context_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_creation_context_desc: ((inputs?: Autofill_Source_Creation_Context_DescInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_Creation_Context_DescInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_Creation_Context_DescInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_Creation_Context_DescInputs */
const en_autofill_source_creation_context_desc = /** @type {(inputs: Autofill_Source_Creation_Context_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Fields marked as 'Creation Context' capture details available at creation time (such as generation prompt, model, or provider). If an asset is created by a Shumai AI Agent, the agent will automatically populate these fields upon creation (without needing an Autofill Agent enabled). If uploaded manually by a human user, the user must enter these values manually.`)
};
const zh_autofill_source_creation_context_desc = /** @type {(inputs: Autofill_Source_Creation_Context_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`设置为“创建上下文”的字段用于记录生成资产时的上下文信息(如 Prompt、模型或供应商)。若文件由 Shumai AI Agent 生成/创建,Agent 会在创建时刻自动填入这些字段(无需启用 Autofill Agent);若由真实用户手动上传,则需用户手动填写,不会自动提取。`)
};
/**
* | output |
* | --- |
* | "Fields marked as 'Creation Context' capture details available at creation time (such as generation prompt, model, or provider). If an asset is created by a S..." |
*
* @param {Autofill_Source_Creation_Context_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_creation_context_desc = /** @type {((inputs?: Autofill_Source_Creation_Context_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_Creation_Context_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_creation_context_desc(inputs)
return zh_autofill_source_creation_context_desc(inputs)
});
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Example: Generation prompt, AI model name, LLM provider, sampler seed parameters." |
*
* @param {Autofill_Source_Creation_Context_ExampleInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_creation_context_example: ((inputs?: Autofill_Source_Creation_Context_ExampleInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_Creation_Context_ExampleInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_Creation_Context_ExampleInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_Creation_Context_ExampleInputs */
const en_autofill_source_creation_context_example = /** @type {(inputs: Autofill_Source_Creation_Context_ExampleInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Example: Generation prompt, AI model name, LLM provider, sampler seed parameters.`)
};
const zh_autofill_source_creation_context_example = /** @type {(inputs: Autofill_Source_Creation_Context_ExampleInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`示例:生成 Prompt、AI 模型名称、LLM 供应商、采样种子参数。`)
};
/**
* | output |
* | --- |
* | "Example: Generation prompt, AI model name, LLM provider, sampler seed parameters." |
*
* @param {Autofill_Source_Creation_Context_ExampleInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_creation_context_example = /** @type {((inputs?: Autofill_Source_Creation_Context_ExampleInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_Creation_Context_ExampleInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_creation_context_example(inputs)
return zh_autofill_source_creation_context_example(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Understand how each autofill source option works and when to use it." |
*
* @param {Autofill_Source_Help_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_help_desc: ((inputs?: Autofill_Source_Help_DescInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_Help_DescInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_Help_DescInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_Help_DescInputs */
const en_autofill_source_help_desc = /** @type {(inputs: Autofill_Source_Help_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Understand how each autofill source option works and when to use it.`)
};
const zh_autofill_source_help_desc = /** @type {(inputs: Autofill_Source_Help_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`了解每种自动填充来源的工作方式及适用场景。`)
};
/**
* | output |
* | --- |
* | "Understand how each autofill source option works and when to use it." |
*
* @param {Autofill_Source_Help_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_help_desc = /** @type {((inputs?: Autofill_Source_Help_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_Help_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_help_desc(inputs)
return zh_autofill_source_help_desc(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Autofill Source Guide" |
*
* @param {Autofill_Source_Help_TitleInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_help_title: ((inputs?: Autofill_Source_Help_TitleInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_Help_TitleInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_Help_TitleInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_Help_TitleInputs */
const en_autofill_source_help_title = /** @type {(inputs: Autofill_Source_Help_TitleInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Autofill Source Guide`)
};
const zh_autofill_source_help_title = /** @type {(inputs: Autofill_Source_Help_TitleInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`自动填充来源说明`)
};
/**
* | output |
* | --- |
* | "Autofill Source Guide" |
*
* @param {Autofill_Source_Help_TitleInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_help_title = /** @type {((inputs?: Autofill_Source_Help_TitleInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_Help_TitleInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_help_title(inputs)
return zh_autofill_source_help_title(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "None" |
*
* @param {Autofill_Source_NoneInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_none: ((inputs?: Autofill_Source_NoneInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_NoneInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_NoneInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_NoneInputs */
const en_autofill_source_none = /** @type {(inputs: Autofill_Source_NoneInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`None`)
};
const zh_autofill_source_none = /** @type {(inputs: Autofill_Source_NoneInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`无`)
};
/**
* | output |
* | --- |
* | "None" |
*
* @param {Autofill_Source_NoneInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_none = /** @type {((inputs?: Autofill_Source_NoneInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_NoneInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_none(inputs)
return zh_autofill_source_none(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Metadata fields marked as 'None' will not be automatically populated by AI. They are meant for manual user entry." |
*
* @param {Autofill_Source_None_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_none_desc: ((inputs?: Autofill_Source_None_DescInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_None_DescInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_None_DescInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_None_DescInputs */
const en_autofill_source_none_desc = /** @type {(inputs: Autofill_Source_None_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Metadata fields marked as 'None' will not be automatically populated by AI. They are meant for manual user entry.`)
};
const zh_autofill_source_none_desc = /** @type {(inputs: Autofill_Source_None_DescInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`设置为“无”的字段不会由 AI 自动填充,需由用户手动填写。`)
};
/**
* | output |
* | --- |
* | "Metadata fields marked as 'None' will not be automatically populated by AI. They are meant for manual user entry." |
*
* @param {Autofill_Source_None_DescInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_none_desc = /** @type {((inputs?: Autofill_Source_None_DescInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_None_DescInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_none_desc(inputs)
return zh_autofill_source_none_desc(inputs)
});
+16
View File
@@ -0,0 +1,16 @@
/**
* | output |
* | --- |
* | "Example: Internal tags, manual notes, status tracking flags." |
*
* @param {Autofill_Source_None_ExampleInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_none_example: ((inputs?: Autofill_Source_None_ExampleInputs, options?: {
locale?: "en" | "zh";
}) => LocalizedString) & import("../runtime.js").MessageMetadata<Autofill_Source_None_ExampleInputs, {
locale?: "en" | "zh";
}, {}>;
export type LocalizedString = import("../runtime.js").LocalizedString;
export type Autofill_Source_None_ExampleInputs = {};
@@ -0,0 +1,29 @@
/* eslint-disable */
import { getLocale, experimentalStaticLocale } from '../runtime.js';
/** @typedef {import('../runtime.js').LocalizedString} LocalizedString */
/** @typedef {{}} Autofill_Source_None_ExampleInputs */
const en_autofill_source_none_example = /** @type {(inputs: Autofill_Source_None_ExampleInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`Example: Internal tags, manual notes, status tracking flags.`)
};
const zh_autofill_source_none_example = /** @type {(inputs: Autofill_Source_None_ExampleInputs) => LocalizedString} */ () => {
return /** @type {LocalizedString} */ (`示例:内部标签、手动备注、状态标记。`)
};
/**
* | output |
* | --- |
* | "Example: Internal tags, manual notes, status tracking flags." |
*
* @param {Autofill_Source_None_ExampleInputs} inputs
* @param {{ locale?: "en" | "zh" }} options
* @returns {LocalizedString}
*/
export const autofill_source_none_example = /** @type {((inputs?: Autofill_Source_None_ExampleInputs, options?: { locale?: "en" | "zh" }) => LocalizedString) & import('../runtime.js').MessageMetadata<Autofill_Source_None_ExampleInputs, { locale?: "en" | "zh" }, {}>} */ ((inputs = {}, options = {}) => {
const locale = experimentalStaticLocale ?? options.locale ?? getLocale()
if (locale === "en") return en_autofill_source_none_example(inputs)
return zh_autofill_source_none_example(inputs)
});