mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-24 22:39:26 +00:00
* 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
17 lines
667 B
TypeScript
Generated
17 lines
667 B
TypeScript
Generated
/**
|
|
* | 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 = {};
|