Merge origin/main

This commit is contained in:
pakrym-oai
2026-03-10 09:58:07 -07:00
49 changed files with 10870 additions and 119 deletions

View File

@@ -22,13 +22,20 @@ function __codexCloneContentItem(item) {
}
}
function __codexNormalizeContentItems(value) {
function __codexNormalizeRawContentItems(value) {
if (Array.isArray(value)) {
return value.flatMap((entry) => __codexNormalizeContentItems(entry));
return value.flatMap((entry) => __codexNormalizeRawContentItems(entry));
}
return [__codexCloneContentItem(value)];
}
function __codexNormalizeContentItems(value) {
if (typeof value === 'string') {
return [{ type: 'input_text', text: value }];
}
return __codexNormalizeRawContentItems(value);
}
Object.defineProperty(globalThis, '__codexContentItems', {
value: __codexContentItems,
configurable: true,