Create soul.html template
Some checks failed
Tests / lint (pull_request) Failing after 16s
Tests / test (pull_request) Has been skipped

This commit is contained in:
2026-03-22 23:24:49 +00:00
parent 070f13b6f3
commit 234963446f

View File

@@ -0,0 +1,45 @@
{% extends "base.html" %}
{% block title %}Soul Management - Timmy Dashboard{% endblock %}
{% block content %}
<div class="container py-4">
<div class="d-flex justify-content-between align-items-center mb-4">
<div>
<h1 class="h3 mb-0">Soul Management</h1>
<p class="text-muted">Define the core identity, values, and personality of your agent.</p>
</div>
<a href="/" class="btn btn-outline-secondary btn-sm">Back to Dashboard</a>
</div>
<div class="card shadow-sm">
<div class="card-header bg-white py-3">
<h5 class="card-title mb-0">Core Identity (soul.md)</h5>
</div>
<div class="card-body">
<form hx-post="/system/soul/update" hx-swap="none" hx-on::after-request="if(event.detail.successful) alert('Soul updated successfully!')">
<div class="mb-3">
<label for="soulContent" class="form-label">Soul Content (Markdown)</label>
<textarea class="form-control font-monospace" id="soulContent" name="content" rows="20" placeholder="# Agent Identity..." style="font-size: 0.9rem;">{{ soul_content }}</textarea>
<div class="form-text">This content is injected into the agent's system prompt to define its core persona.</div>
</div>
<div class="d-flex justify-content-end">
<button type="submit" class="btn btn-primary">Save Changes</button>
</div>
</form>
</div>
</div>
<div class="mt-4">
<div class="alert alert-info">
<h6 class="alert-heading">What is the Soul?</h6>
<p class="mb-0 small">
The Soul (<code>soul.md</code>) is the most fundamental layer of the agent's memory.
Unlike episodic memories or facts, the Soul defines <strong>who</strong> the agent is, its primary mission,
and its ethical boundaries. It is always prioritized in the agent's thinking process.
</p>
</div>
</div>
</div>
{% endblock %}