{{ t.get(prompt.prompt_key,prompt.prompt_key) }}{{ t[prompt.prompt_key ~ '_purpose'] }}{{ t.prompt_revision_unavailable if failed else (t.prompt_custom if mode == 'custom' else t.prompt_builtin_default) }}
{% if prompt.prompt_key == 'profile.generate' %} {% set unavailable = prompt.reason == 'injected_component' or (not prompt.effective and not prompt.builtin) %} {% if not failed %}{{ t.prompt_mode }}: {{ t.prompt_custom if mode == 'custom' else t.prompt_auto }}
{% endif %}- {{ t.prompt_capability }}
- {{ t.get('prompt_state_' ~ prompt.status,t.get('prompt_' ~ prompt.status,prompt.status)) }} {% if prompt.reason %}
- {{ t.prompt_reason }}
{{ prompt.reason }}· {{ t.get('prompt_reason_' ~ prompt.reason, prompt.reason) }} {% endif %}
- {{ t.prompt_saved_revision }}
- {{ prompt.artifact.revision if prompt.artifact else t.prompt_not_saved }}
{{ t.prompt_unavailable }}. {{ t.prompt_unavailable_body }}
{% else %} {% set shown = opened.content.instructions if opened else (prompt.effective.instructions if prompt.effective else (prompt.builtin.instructions if prompt.builtin else '')) %}{{ t.prompt_instructions if opened or prompt.effective else t.prompt_builtin_template }}
{% if opened and opened.content.mode == 'auto' and not shown %}{{ t.prompt_opened_auto_summary }}
{% else %}{{ shown }}
{% endif %}
{% if prompt.builtin %}
{% if shown != prompt.builtin.instructions %}
{{ t.prompt_builtin_template }} · {{ prompt.builtin.version }}
{{ prompt.builtin.instructions }}{{ t.prompt_builtin_matches_effective }}
{% endif %}{{ t.prompt_builtin_version }}: {{ prompt.builtin.version }}
{% endif %} {% endif %} {% set demonstrations = opened.content.demonstrations if opened else (prompt.effective.demonstrations if prompt.effective else []) %} {% if demonstrations %}{{ t.prompt_demonstrations }}
{{ demonstrations|tojson(indent=2) }}{% endif %}
{% endif %}
- {{ t.prompt_explain_auto }}
- {{ t.prompt_explain_no_effect }}
- {{ t.prompt_explain_timing }}
- {{ t.prompt_explain_constraints }}
{{ t.prompt_status }}: {{ t.get('prompt_state_' ~ prompt.status,t.get('prompt_' ~ prompt.status,prompt.status)) }}{% if prompt.reason %} — {{ t.get('prompt_reason_' ~ prompt.reason, prompt.reason) }}{% endif %}
{% if not failed %}{{ t.prompt_mode }}: {{ t.prompt_custom if mode == 'custom' else t.prompt_auto }}
{{ t.prompt_instructions if opened or prompt.effective else t.prompt_builtin_template }}
{{ opened.content.instructions if opened else (prompt.effective.instructions if prompt.effective else (prompt.builtin.instructions if prompt.builtin else '')) }}
{% if opened %}← {{ t.prompt_return_current }}{% elif prompt.artifact %}{{ t.revision_history }} →{% endif %}
{% set demonstrations = opened.content.demonstrations if opened else (prompt.effective.demonstrations if prompt.effective else []) %}
{% if demonstrations %}{{ t.prompt_demonstrations }}
{{ demonstrations|tojson(indent=2) }}{% endif %}
{% else %}{{ prompt.prompt_key }}{{ read_error(errors.prompt_selected,t.prompt_revision) }}{% endif %}
{% endif %}