| 1929 | 1929 | return `* **${id}**: <code>${inject.value}</code> (${positionName}, depth: ${inject.depth}, scan: ${inject.scan ?? false}, role: ${inject.role ?? extension_prompt_roles.SYSTEM})`; |
| 1930 | 1930 | }) |
| 1931 | 1931 | .join('\n'); |
| 1932 | 1932 | return `### Script injections:\n${injectsStr || 'No script injections for the current chat'}`; |
| 1933 | 1933 | }; |
| 1934 | 1934 | |
| 1935 | 1935 | return await slashCommandReturnHelper.doReturn(returnType ?? 'popup-html', chat_metadata.script_injects ?? {}, { objectToStringFunc: buildTextValue }); |
| 1936 | 1936 | } |
| 1937 | 1937 | |
| 1938 | 1938 | /** |