|
@@ -124,7 +124,7 @@
|
|
|
<p><a href="/goals">← Goals</a></p>
|
|
<p><a href="/goals">← Goals</a></p>
|
|
|
<h2 stm-if="goal.exists"><span class="goal-icon">🎯</span> #<span stm-text="goal.id">id</span> —
|
|
<h2 stm-if="goal.exists"><span class="goal-icon">🎯</span> #<span stm-text="goal.id">id</span> —
|
|
|
<span stm-text="goal.title">title</span></h2>
|
|
<span stm-text="goal.title">title</span></h2>
|
|
|
- <p stm-if="!goal.exists" class="muted">Goal not found.</p>
|
|
|
|
|
|
|
+ <p stm-if="!goal.exists" class="text-muted">Goal not found.</p>
|
|
|
|
|
|
|
|
<div stm-if="goal.exists">
|
|
<div stm-if="goal.exists">
|
|
|
<!-- Status head (first, always): lifecycle badge, branch
|
|
<!-- Status head (first, always): lifecycle badge, branch
|
|
@@ -142,7 +142,7 @@
|
|
|
</div>
|
|
</div>
|
|
|
<p><span stm-attribute.class="'badge badge-' + goal.status" stm-text="goal.display">status</span>
|
|
<p><span stm-attribute.class="'badge badge-' + goal.status" stm-text="goal.display">status</span>
|
|
|
· goal branch <code stm-text="goal.branch_name">branch</code>
|
|
· goal branch <code stm-text="goal.branch_name">branch</code>
|
|
|
- <span class="muted">from</span> <code stm-text="goal.base_branch">base</code>
|
|
|
|
|
|
|
+ <span class="text-muted">from</span> <code stm-text="goal.base_branch">base</code>
|
|
|
<a stm-if="goal.compare_url.length > 0" stm-attribute.href="goal.compare_url"
|
|
<a stm-if="goal.compare_url.length > 0" stm-attribute.href="goal.compare_url"
|
|
|
target="_blank" rel="noopener">· compare changes</a>
|
|
target="_blank" rel="noopener">· compare changes</a>
|
|
|
· priority <strong stm-text="goal.priority">3</strong>
|
|
· priority <strong stm-text="goal.priority">3</strong>
|
|
@@ -150,7 +150,7 @@
|
|
|
<strong stm-text="goal.agent_saddle">saddle</strong></span></p>
|
|
<strong stm-text="goal.agent_saddle">saddle</strong></span></p>
|
|
|
<pstm-fragment name="goal-branches"
|
|
<pstm-fragment name="goal-branches"
|
|
|
note=""(the daemon's /status report)""/>
|
|
note=""(the daemon's /status report)""/>
|
|
|
- <p class="muted">Project:
|
|
|
|
|
|
|
+ <p class="text-muted">Project:
|
|
|
<a stm-attribute.href="'/projects/' + goal.project_id" stm-text="goal.project_name">project</a>
|
|
<a stm-attribute.href="'/projects/' + goal.project_id" stm-text="goal.project_name">project</a>
|
|
|
· Created <span stm-text="goal.created_display">when</span>
|
|
· Created <span stm-text="goal.created_display">when</span>
|
|
|
<span stm-if="goal.started_display.length > 0"> · Started
|
|
<span stm-if="goal.started_display.length > 0"> · Started
|
|
@@ -158,13 +158,13 @@
|
|
|
<span stm-if="goal.completed_display.length > 0"> · Finished
|
|
<span stm-if="goal.completed_display.length > 0"> · Finished
|
|
|
<span stm-text="goal.completed_display">when</span></span></p>
|
|
<span stm-text="goal.completed_display">when</span></span></p>
|
|
|
<p>
|
|
<p>
|
|
|
- <button type="button" class="primary" stm-if="goal.start != null"
|
|
|
|
|
|
|
+ <button type="button" class="btn-primary" stm-if="goal.start != null"
|
|
|
stm-action="goal.start">Start goal</button>
|
|
stm-action="goal.start">Start goal</button>
|
|
|
<button type="button" stm-if="goal.pause != null"
|
|
<button type="button" stm-if="goal.pause != null"
|
|
|
stm-action="goal.pause">Pause</button>
|
|
stm-action="goal.pause">Pause</button>
|
|
|
<button type="button" stm-if="goal.resume != null"
|
|
<button type="button" stm-if="goal.resume != null"
|
|
|
stm-action="goal.resume">Resume</button>
|
|
stm-action="goal.resume">Resume</button>
|
|
|
- <button type="button" class="primary" stm-if="goal.retry_run != null"
|
|
|
|
|
|
|
+ <button type="button" class="btn-primary" stm-if="goal.retry_run != null"
|
|
|
stm-action="goal.retry_run">Retry supervision</button>
|
|
stm-action="goal.retry_run">Retry supervision</button>
|
|
|
<button type="button" stm-if="goal.requeue_run != null"
|
|
<button type="button" stm-if="goal.requeue_run != null"
|
|
|
stm-action="goal.requeue_run"
|
|
stm-action="goal.requeue_run"
|
|
@@ -178,20 +178,20 @@
|
|
|
stm-action="goal.cancel"
|
|
stm-action="goal.cancel"
|
|
|
stm-confirm="Cancel this goal? Its tasks are cancelled with it.">Cancel goal</button>
|
|
stm-confirm="Cancel this goal? Its tasks are cancelled with it.">Cancel goal</button>
|
|
|
</p>
|
|
</p>
|
|
|
- <p class="muted" stm-if="goal.status == 'draft'">Starting locks the brief and
|
|
|
|
|
|
|
+ <p class="text-muted" stm-if="goal.status == 'draft'">Starting locks the brief and
|
|
|
hands the goal to its agent (an orchestrate-mode run task, priority 3).</p>
|
|
hands the goal to its agent (an orchestrate-mode run task, priority 3).</p>
|
|
|
- <p class="muted" stm-if="goal.status == 'paused'">Paused — supervision frozen;
|
|
|
|
|
|
|
+ <p class="text-muted" stm-if="goal.status == 'paused'">Paused — supervision frozen;
|
|
|
task events queue and coalesce into the resume.</p>
|
|
task events queue and coalesce into the resume.</p>
|
|
|
<!-- Plan 15 C4: the ONE muted activity line (the
|
|
<!-- Plan 15 C4: the ONE muted activity line (the
|
|
|
Current-activity card is gone) — what the run is
|
|
Current-activity card is gone) — what the run is
|
|
|
doing right now, folded into the status head. -->
|
|
doing right now, folded into the status head. -->
|
|
|
- <p class="muted" stm-if="goal.current_activity.length > 0"
|
|
|
|
|
|
|
+ <p class="text-muted" stm-if="goal.current_activity.length > 0"
|
|
|
stm-text="goal.current_activity">activity</p>
|
|
stm-text="goal.current_activity">activity</p>
|
|
|
- <p class="muted" stm-if="goal.saddle_health.length > 0"
|
|
|
|
|
|
|
+ <p class="text-muted" stm-if="goal.saddle_health.length > 0"
|
|
|
stm-text="goal.saddle_health">health</p>
|
|
stm-text="goal.saddle_health">health</p>
|
|
|
<!-- S5: the goal's aggregate LLM usage across its tasks
|
|
<!-- S5: the goal's aggregate LLM usage across its tasks
|
|
|
(the run plus the workers) — empty renders nothing. -->
|
|
(the run plus the workers) — empty renders nothing. -->
|
|
|
- <p class="muted" stm-if="goal.usage_line.length > 0"
|
|
|
|
|
|
|
+ <p class="text-muted" stm-if="goal.usage_line.length > 0"
|
|
|
stm-text="goal.usage_line">LLM: 1,234 calls · 45.2M in / 1.1M out tok · 3h 12m</p>
|
|
stm-text="goal.usage_line">LLM: 1,234 calls · 45.2M in / 1.1M out tok · 3h 12m</p>
|
|
|
</section>
|
|
</section>
|
|
|
|
|
|
|
@@ -203,7 +203,7 @@
|
|
|
<section class="card">
|
|
<section class="card">
|
|
|
<h3>Agent progress</h3>
|
|
<h3>Agent progress</h3>
|
|
|
<pstm-fragment name="progress-feed" entries="goal.progress"/>
|
|
<pstm-fragment name="progress-feed" entries="goal.progress"/>
|
|
|
- <p stm-if="goal.progress.length == 0" class="muted">No progress reports yet — the goal
|
|
|
|
|
|
|
+ <p stm-if="goal.progress.length == 0" class="text-muted">No progress reports yet — the goal
|
|
|
agent reports via <code>saddle progress-update</code>.</p>
|
|
agent reports via <code>saddle progress-update</code>.</p>
|
|
|
</section>
|
|
</section>
|
|
|
|
|
|
|
@@ -220,7 +220,7 @@
|
|
|
<p><span stm-attribute.class="'badge badge-block-' + block.block_type"
|
|
<p><span stm-attribute.class="'badge badge-block-' + block.block_type"
|
|
|
stm-text="block.block_type">kind</span>
|
|
stm-text="block.block_type">kind</span>
|
|
|
<strong stm-text="block.question">question</strong>
|
|
<strong stm-text="block.question">question</strong>
|
|
|
- <span class="muted" stm-text="block.created_display">when</span></p>
|
|
|
|
|
|
|
+ <span class="text-muted" stm-text="block.created_display">when</span></p>
|
|
|
<!-- The pending completion review renders in the rich
|
|
<!-- The pending completion review renders in the rich
|
|
|
review form (highlight-remarks queue shared with
|
|
review form (highlight-remarks queue shared with
|
|
|
the plan review; push chips + compare above the
|
|
the plan review; push chips + compare above the
|
|
@@ -235,19 +235,19 @@
|
|
|
<div class="md rfc-body goal-body" data-plan-body
|
|
<div class="md rfc-body goal-body" data-plan-body
|
|
|
stm-markdown="block.body">report</div>
|
|
stm-markdown="block.body">report</div>
|
|
|
<div class="actions">
|
|
<div class="actions">
|
|
|
- <form stm-action="block.answer_action" class="inline">
|
|
|
|
|
|
|
+ <form stm-action="block.answer_action" class="cluster">
|
|
|
<input type="hidden" name="verdict" value="accept">
|
|
<input type="hidden" name="verdict" value="accept">
|
|
|
- <button type="submit" class="approve" data-plan-accept>Accept goal</button>
|
|
|
|
|
|
|
+ <button type="submit" class="btn-primary" data-plan-accept>Accept goal</button>
|
|
|
</form>
|
|
</form>
|
|
|
<button type="button" data-plan-toggle>Reject with feedback</button>
|
|
<button type="button" data-plan-toggle>Reject with feedback</button>
|
|
|
</div>
|
|
</div>
|
|
|
<div data-plan-feedback hidden>
|
|
<div data-plan-feedback hidden>
|
|
|
- <p class="muted">Highlight report text to attach a remark to it — the queue
|
|
|
|
|
|
|
+ <p class="text-muted">Highlight report text to attach a remark to it — the queue
|
|
|
rides the rejection numbered, then clears. Accepting ignores the queue.</p>
|
|
rides the rejection numbered, then clears. Accepting ignores the queue.</p>
|
|
|
<ul class="plan-comments" data-plan-remarks></ul>
|
|
<ul class="plan-comments" data-plan-remarks></ul>
|
|
|
<textarea name="feedback" rows="2"
|
|
<textarea name="feedback" rows="2"
|
|
|
placeholder="Additional feedback (optional)"></textarea>
|
|
placeholder="Additional feedback (optional)"></textarea>
|
|
|
- <button type="button" class="primary" data-plan-submit>Submit feedback</button>
|
|
|
|
|
|
|
+ <button type="button" class="btn-primary" data-plan-submit>Submit feedback</button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div stm-if="!block.is_completion_review">
|
|
<div stm-if="!block.is_completion_review">
|
|
@@ -263,7 +263,7 @@
|
|
|
<p><span stm-attribute.class="'badge badge-block-' + block.block_type"
|
|
<p><span stm-attribute.class="'badge badge-block-' + block.block_type"
|
|
|
stm-text="block.block_type">kind</span>
|
|
stm-text="block.block_type">kind</span>
|
|
|
<strong stm-text="block.question">question</strong>
|
|
<strong stm-text="block.question">question</strong>
|
|
|
- <span class="muted" stm-text="block.created_display">when</span></p>
|
|
|
|
|
|
|
+ <span class="text-muted" stm-text="block.created_display">when</span></p>
|
|
|
<div stm-if="block.show_body && block.body.length > 0"
|
|
<div stm-if="block.show_body && block.body.length > 0"
|
|
|
class="md rfc-body goal-body" stm-markdown="block.body">body</div>
|
|
class="md rfc-body goal-body" stm-markdown="block.body">body</div>
|
|
|
<blockquote stm-if="block.answered" class="term-comment-quote">
|
|
<blockquote stm-if="block.answered" class="term-comment-quote">
|
|
@@ -301,19 +301,19 @@
|
|
|
<div class="md rfc-body goal-body" data-plan-body
|
|
<div class="md rfc-body goal-body" data-plan-body
|
|
|
stm-markdown="goal.plan_pending_block.body">revision</div>
|
|
stm-markdown="goal.plan_pending_block.body">revision</div>
|
|
|
<div class="actions">
|
|
<div class="actions">
|
|
|
- <form stm-action="goal.plan_pending_block.answer_action" class="inline">
|
|
|
|
|
|
|
+ <form stm-action="goal.plan_pending_block.answer_action" class="cluster">
|
|
|
<input type="hidden" name="verdict" value="accept">
|
|
<input type="hidden" name="verdict" value="accept">
|
|
|
- <button type="submit" class="approve" data-plan-accept>Approve plan</button>
|
|
|
|
|
|
|
+ <button type="submit" class="btn-primary" data-plan-accept>Approve plan</button>
|
|
|
</form>
|
|
</form>
|
|
|
<button type="button" data-plan-toggle>Reject with feedback</button>
|
|
<button type="button" data-plan-toggle>Reject with feedback</button>
|
|
|
</div>
|
|
</div>
|
|
|
<div data-plan-feedback hidden>
|
|
<div data-plan-feedback hidden>
|
|
|
- <p class="muted">Highlight plan text to attach a remark to it — the queue
|
|
|
|
|
|
|
+ <p class="text-muted">Highlight plan text to attach a remark to it — the queue
|
|
|
rides the rejection numbered, then clears. Approving ignores the queue.</p>
|
|
rides the rejection numbered, then clears. Approving ignores the queue.</p>
|
|
|
<ul class="plan-comments" data-plan-remarks></ul>
|
|
<ul class="plan-comments" data-plan-remarks></ul>
|
|
|
<textarea name="feedback" rows="2"
|
|
<textarea name="feedback" rows="2"
|
|
|
placeholder="Additional feedback (optional)"></textarea>
|
|
placeholder="Additional feedback (optional)"></textarea>
|
|
|
- <button type="button" class="primary" data-plan-submit>Submit feedback</button>
|
|
|
|
|
|
|
+ <button type="button" class="btn-primary" data-plan-submit>Submit feedback</button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
@@ -323,11 +323,11 @@
|
|
|
stm-text="goal.plan_revisions.length">0</span>)</summary>
|
|
stm-text="goal.plan_revisions.length">0</span>)</summary>
|
|
|
<div stm-if="goal.plan.length > 0" class="md rfc-body goal-body" data-plan-body
|
|
<div stm-if="goal.plan.length > 0" class="md rfc-body goal-body" data-plan-body
|
|
|
stm-markdown="goal.plan">plan</div>
|
|
stm-markdown="goal.plan">plan</div>
|
|
|
- <p stm-if="goal.plan.length == 0" class="muted">No approved plan yet.</p>
|
|
|
|
|
|
|
+ <p stm-if="goal.plan.length == 0" class="text-muted">No approved plan yet.</p>
|
|
|
<div stm-for-revision-in="goal.plan_revisions" class="plan-revision">
|
|
<div stm-for-revision-in="goal.plan_revisions" class="plan-revision">
|
|
|
<p><span stm-attribute.class="'badge ' + (revision.approved ? 'badge-done' : (revision.answered ? 'badge-failed' : 'badge-plan'))"
|
|
<p><span stm-attribute.class="'badge ' + (revision.approved ? 'badge-done' : (revision.answered ? 'badge-failed' : 'badge-plan'))"
|
|
|
stm-text="revision.approved ? 'approved' : (revision.answered ? 'rejected' : 'pending')">verdict</span>
|
|
stm-text="revision.approved ? 'approved' : (revision.answered ? 'rejected' : 'pending')">verdict</span>
|
|
|
- <span class="muted">Revision #<span stm-text="revision.id">n</span> — <span stm-text="revision.created_display">when</span></span></p>
|
|
|
|
|
|
|
+ <span class="text-muted">Revision #<span stm-text="revision.id">n</span> — <span stm-text="revision.created_display">when</span></span></p>
|
|
|
<details>
|
|
<details>
|
|
|
<summary>Submitted markdown</summary>
|
|
<summary>Submitted markdown</summary>
|
|
|
<div class="md rfc-body" stm-markdown="revision.body">body</div>
|
|
<div class="md rfc-body" stm-markdown="revision.body">body</div>
|
|
@@ -360,7 +360,7 @@
|
|
|
<button type="button" stm-attribute.class="window.goalFilterClass('failed')"
|
|
<button type="button" stm-attribute.class="window.goalFilterClass('failed')"
|
|
|
onclick="window.goalSetFilter('failed')"
|
|
onclick="window.goalSetFilter('failed')"
|
|
|
stm-text="'failed ' + goal.failed_tasks">failed</button>
|
|
stm-text="'failed ' + goal.failed_tasks">failed</button>
|
|
|
- <span class="muted">— click a status to filter</span>
|
|
|
|
|
|
|
+ <span class="text-muted">— click a status to filter</span>
|
|
|
</p>
|
|
</p>
|
|
|
<table>
|
|
<table>
|
|
|
<thead><tr><th>#</th><th>Title</th><th>Status</th><th>Mode</th><th>Requires</th><th>Created by</th></tr></thead>
|
|
<thead><tr><th>#</th><th>Title</th><th>Status</th><th>Mode</th><th>Requires</th><th>Created by</th></tr></thead>
|
|
@@ -378,10 +378,10 @@
|
|
|
<td><span stm-for-capability-in="goal_task.capabilities">
|
|
<td><span stm-for-capability-in="goal_task.capabilities">
|
|
|
<span class="badge badge-capability"
|
|
<span class="badge badge-capability"
|
|
|
stm-text="capability">tag</span> </span></td>
|
|
stm-text="capability">tag</span> </span></td>
|
|
|
- <td class="muted" stm-text="goal_task.creator">who</td>
|
|
|
|
|
|
|
+ <td class="text-muted" stm-text="goal_task.creator">who</td>
|
|
|
</tr>
|
|
</tr>
|
|
|
<tr stm-if="goal.goal_tasks.length == 0">
|
|
<tr stm-if="goal.goal_tasks.length == 0">
|
|
|
- <td colspan="6" class="muted">No tasks yet — the goal agent fans
|
|
|
|
|
|
|
+ <td colspan="6" class="text-muted">No tasks yet — the goal agent fans
|
|
|
them out once the plan is approved.</td></tr>
|
|
them out once the plan is approved.</td></tr>
|
|
|
</tbody>
|
|
</tbody>
|
|
|
</table>
|
|
</table>
|
|
@@ -398,20 +398,20 @@
|
|
|
<section class="card" data-long-form data-field="goal"
|
|
<section class="card" data-long-form data-field="goal"
|
|
|
data-lf-open="0">
|
|
data-lf-open="0">
|
|
|
<h3>Initial brief
|
|
<h3>Initial brief
|
|
|
- <button type="button" class="inline" stm-if="goal.update != null"
|
|
|
|
|
|
|
+ <button type="button" class="btn-ghost" stm-if="goal.update != null"
|
|
|
data-lf-toggle>Edit</button>
|
|
data-lf-toggle>Edit</button>
|
|
|
- <span class="muted" stm-if="goal.started_display.length > 0">(locked)</span></h3>
|
|
|
|
|
|
|
+ <span class="text-muted" stm-if="goal.started_display.length > 0">(locked)</span></h3>
|
|
|
<div data-lf-view>
|
|
<div data-lf-view>
|
|
|
<div class="md rfc-body goal-body" data-brief-body stm-markdown="goal.brief">brief</div>
|
|
<div class="md rfc-body goal-body" data-brief-body stm-markdown="goal.brief">brief</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div stm-if="goal.update != null">
|
|
<div stm-if="goal.update != null">
|
|
|
<form data-lf-edit hidden stm-action="goal.update">
|
|
<form data-lf-edit hidden stm-action="goal.update">
|
|
|
- <div class="form-row"><label>Title</label>
|
|
|
|
|
|
|
+ <div class="field"><label>Title</label>
|
|
|
<input type="text" name="title" data-lf-src="goal.title"></div>
|
|
<input type="text" name="title" data-lf-src="goal.title"></div>
|
|
|
- <div class="form-row"><label>Brief (markdown)</label>
|
|
|
|
|
|
|
+ <div class="field"><label>Brief (markdown)</label>
|
|
|
<textarea name="brief" rows="8"
|
|
<textarea name="brief" rows="8"
|
|
|
data-lf-src="goal.brief">brief</textarea></div>
|
|
data-lf-src="goal.brief">brief</textarea></div>
|
|
|
- <div class="form-row"><label>Priority (1–9)</label>
|
|
|
|
|
|
|
+ <div class="field"><label>Priority (1–9)</label>
|
|
|
<input type="number" name="priority" min="1" max="9"
|
|
<input type="number" name="priority" min="1" max="9"
|
|
|
data-lf-src="goal.priority"></div>
|
|
data-lf-src="goal.priority"></div>
|
|
|
<button type="submit">Save</button>
|
|
<button type="submit">Save</button>
|
|
@@ -426,14 +426,14 @@
|
|
|
<p stm-if="goal.links.length > 0"><span stm-for-link-in="goal.links">
|
|
<p stm-if="goal.links.length > 0"><span stm-for-link-in="goal.links">
|
|
|
<span stm-attribute.class="'badge badge-' + link.relationship"
|
|
<span stm-attribute.class="'badge badge-' + link.relationship"
|
|
|
stm-text="link.name + ' (' + link.relationship + ')'">link</span>
|
|
stm-text="link.name + ' (' + link.relationship + ')'">link</span>
|
|
|
- <button type="button" class="inline" stm-action="link.remove"
|
|
|
|
|
|
|
+ <button type="button" class="btn-ghost" stm-action="link.remove"
|
|
|
stm-confirm="Remove this link?">×</button>
|
|
stm-confirm="Remove this link?">×</button>
|
|
|
<input type="hidden" name="link_id" stm-attribute.value="link.id">
|
|
<input type="hidden" name="link_id" stm-attribute.value="link.id">
|
|
|
</span></p>
|
|
</span></p>
|
|
|
- <p stm-if="goal.links.length == 0" class="muted">Only the primary project.</p>
|
|
|
|
|
|
|
+ <p stm-if="goal.links.length == 0" class="text-muted">Only the primary project.</p>
|
|
|
<details stm-if="!goal.terminal">
|
|
<details stm-if="!goal.terminal">
|
|
|
<summary>Link a project</summary>
|
|
<summary>Link a project</summary>
|
|
|
- <form class="inline" stm-action="goal.add_link">
|
|
|
|
|
|
|
+ <form class="cluster" stm-action="goal.add_link">
|
|
|
<select name="linked_project_id" required>
|
|
<select name="linked_project_id" required>
|
|
|
<option stm-for-project-in="goal.project_options" stm-attribute.value="project.id"
|
|
<option stm-for-project-in="goal.project_options" stm-attribute.value="project.id"
|
|
|
stm-text="project.name">project</option>
|
|
stm-text="project.name">project</option>
|
|
@@ -444,7 +444,7 @@
|
|
|
</select>
|
|
</select>
|
|
|
<button type="submit">Link</button>
|
|
<button type="submit">Link</button>
|
|
|
</form>
|
|
</form>
|
|
|
- <form class="inline" stm-action="goal.apply_stack"
|
|
|
|
|
|
|
+ <form class="cluster" stm-action="goal.apply_stack"
|
|
|
stm-if="goal.stack_options.length > 0" style="margin-top: 0.5em;">
|
|
stm-if="goal.stack_options.length > 0" style="margin-top: 0.5em;">
|
|
|
<label for="goal-stack">Apply stack</label>
|
|
<label for="goal-stack">Apply stack</label>
|
|
|
<select id="goal-stack" name="stack_id" required>
|
|
<select id="goal-stack" name="stack_id" required>
|
|
@@ -460,13 +460,13 @@
|
|
|
the agent and every worker it fans out. -->
|
|
the agent and every worker it fans out. -->
|
|
|
<section class="card">
|
|
<section class="card">
|
|
|
<h3>Rules</h3>
|
|
<h3>Rules</h3>
|
|
|
- <p class="muted">The effective set dispatched with this goal's work — task rules,
|
|
|
|
|
|
|
+ <p class="text-muted">The effective set dispatched with this goal's work — task rules,
|
|
|
the primary project's, then co-developed projects' in link order.</p>
|
|
the primary project's, then co-developed projects' in link order.</p>
|
|
|
<div stm-for-rule-in="goal.rules" class="rule-card">
|
|
<div stm-for-rule-in="goal.rules" class="rule-card">
|
|
|
<h4 stm-text="rule.name">name</h4>
|
|
<h4 stm-text="rule.name">name</h4>
|
|
|
<div class="md" stm-markdown="rule.body">body</div>
|
|
<div class="md" stm-markdown="rule.body">body</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <p stm-if="goal.rules.length == 0" class="muted">No rules apply to this goal.</p>
|
|
|
|
|
|
|
+ <p stm-if="goal.rules.length == 0" class="text-muted">No rules apply to this goal.</p>
|
|
|
</section>
|
|
</section>
|
|
|
|
|
|
|
|
<!-- The supervision narrative (plan 14 B6): state events
|
|
<!-- The supervision narrative (plan 14 B6): state events
|
|
@@ -474,10 +474,10 @@
|
|
|
feed reads as events-with-occasional-footnotes. -->
|
|
feed reads as events-with-occasional-footnotes. -->
|
|
|
<section class="card">
|
|
<section class="card">
|
|
|
<h3>Supervision narrative</h3>
|
|
<h3>Supervision narrative</h3>
|
|
|
- <p stm-if="goal.events.length == 0" class="muted">Nothing yet — start the goal.</p>
|
|
|
|
|
|
|
+ <p stm-if="goal.events.length == 0" class="text-muted">Nothing yet — start the goal.</p>
|
|
|
<div stm-for-event-in="goal.events"
|
|
<div stm-for-event-in="goal.events"
|
|
|
stm-attribute.class="'goal-event' + (event.kind == 'comment' ? ' footnote' : '')">
|
|
stm-attribute.class="'goal-event' + (event.kind == 'comment' ? ' footnote' : '')">
|
|
|
- <span class="muted" stm-text="event.at_display">when</span>
|
|
|
|
|
|
|
+ <span class="text-muted" stm-text="event.at_display">when</span>
|
|
|
<span stm-attribute.class="'badge badge-goal-' + event.kind"
|
|
<span stm-attribute.class="'badge badge-goal-' + event.kind"
|
|
|
stm-text="event.kind.replace('-', ' ')">kind</span>
|
|
stm-text="event.kind.replace('-', ' ')">kind</span>
|
|
|
<!-- Comment events render as footnotes (plan 13 B4
|
|
<!-- Comment events render as footnotes (plan 13 B4
|
|
@@ -509,11 +509,11 @@
|
|
|
<p class="comment-meta">
|
|
<p class="comment-meta">
|
|
|
<strong stm-if="!comment.is_system" stm-text="comment.author">author</strong>
|
|
<strong stm-if="!comment.is_system" stm-text="comment.author">author</strong>
|
|
|
<span stm-if="comment.is_system" class="system-label">system</span>
|
|
<span stm-if="comment.is_system" class="system-label">system</span>
|
|
|
- <span class="muted" stm-text="comment.created_display">when</span>
|
|
|
|
|
|
|
+ <span class="text-muted" stm-text="comment.created_display">when</span>
|
|
|
</p>
|
|
</p>
|
|
|
</div>
|
|
</div>
|
|
|
- <p stm-if="goal.comments.length == 0" class="muted">No comments yet.</p>
|
|
|
|
|
- <p stm-if="goal.run_task_id == 0" class="muted">The goal agent has not started
|
|
|
|
|
|
|
+ <p stm-if="goal.comments.length == 0" class="text-muted">No comments yet.</p>
|
|
|
|
|
+ <p stm-if="goal.run_task_id == 0" class="text-muted">The goal agent has not started
|
|
|
yet — comments open with its run.</p>
|
|
yet — comments open with its run.</p>
|
|
|
<!-- Goal 8 task 4: the composer stays OPEN on terminal
|
|
<!-- Goal 8 task 4: the composer stays OPEN on terminal
|
|
|
goals — a comment there re-opens the goal and
|
|
goals — a comment there re-opens the goal and
|
|
@@ -521,13 +521,13 @@
|
|
|
the resume (cancelled goals stay closed: their
|
|
the resume (cancelled goals stay closed: their
|
|
|
composer keeps the run gate alone). -->
|
|
composer keeps the run gate alone). -->
|
|
|
<form stm-if="goal.run_task_id > 0" stm-action="goal.comment">
|
|
<form stm-if="goal.run_task_id > 0" stm-action="goal.comment">
|
|
|
- <div class="form-row"><label for="goal-comment-body">Add comment</label>
|
|
|
|
|
|
|
+ <div class="field"><label for="goal-comment-body">Add comment</label>
|
|
|
<textarea id="goal-comment-body" name="body" rows="3"
|
|
<textarea id="goal-comment-body" name="body" rows="3"
|
|
|
placeholder="A timeless note for a future reader — status belongs in progress updates (markdown)"></textarea></div>
|
|
placeholder="A timeless note for a future reader — status belongs in progress updates (markdown)"></textarea></div>
|
|
|
- <p stm-if="goal.terminal && goal.status != 'cancelled'" class="muted">
|
|
|
|
|
|
|
+ <p stm-if="goal.terminal && goal.status != 'cancelled'" class="text-muted">
|
|
|
This goal is terminal — commenting re-opens it: the agent resumes
|
|
This goal is terminal — commenting re-opens it: the agent resumes
|
|
|
with your comment and submits a fresh completion report.</p>
|
|
with your comment and submits a fresh completion report.</p>
|
|
|
- <button type="submit" class="primary">Comment</button>
|
|
|
|
|
|
|
+ <button type="submit" class="btn-primary">Comment</button>
|
|
|
</form>
|
|
</form>
|
|
|
<dialog id="quote-comment-dialog">
|
|
<dialog id="quote-comment-dialog">
|
|
|
<h3>Comment on selected text</h3>
|
|
<h3>Comment on selected text</h3>
|
|
@@ -537,7 +537,7 @@
|
|
|
<input type="hidden" name="return_to">
|
|
<input type="hidden" name="return_to">
|
|
|
<textarea name="body" rows="4" placeholder="Your comment…"
|
|
<textarea name="body" rows="4" placeholder="Your comment…"
|
|
|
style="width:100%; margin:0.5em 0;"></textarea>
|
|
style="width:100%; margin:0.5em 0;"></textarea>
|
|
|
- <button type="submit" class="primary">Send comment</button>
|
|
|
|
|
|
|
+ <button type="submit" class="btn-primary">Send comment</button>
|
|
|
<button type="button"
|
|
<button type="button"
|
|
|
onclick="document.getElementById('quote-comment-dialog').close()">Cancel</button>
|
|
onclick="document.getElementById('quote-comment-dialog').close()">Cancel</button>
|
|
|
</form>
|
|
</form>
|
|
@@ -550,7 +550,7 @@
|
|
|
<h3>Goal agent runs</h3>
|
|
<h3>Goal agent runs</h3>
|
|
|
<p><a stm-attribute.href="'/tasks/' + goal.run_task_id + '/log'"
|
|
<p><a stm-attribute.href="'/tasks/' + goal.run_task_id + '/log'"
|
|
|
target="_blank" rel="noopener">Event log</a>
|
|
target="_blank" rel="noopener">Event log</a>
|
|
|
- <span class="muted">— run task
|
|
|
|
|
|
|
+ <span class="text-muted">— run task
|
|
|
#<span stm-text="goal.run_task_id">id</span></span></p>
|
|
#<span stm-text="goal.run_task_id">id</span></span></p>
|
|
|
<table>
|
|
<table>
|
|
|
<thead><tr><th>Run</th><th>Saddle</th><th>Started</th><th>Ended</th><th>Outcome</th></tr></thead>
|
|
<thead><tr><th>Run</th><th>Saddle</th><th>Started</th><th>Ended</th><th>Outcome</th></tr></thead>
|
|
@@ -558,9 +558,9 @@
|
|
|
<tr stm-for-run-in="goal.runs">
|
|
<tr stm-for-run-in="goal.runs">
|
|
|
<td><a stm-attribute.href="run.terminal_url" target="_blank" rel="noopener"
|
|
<td><a stm-attribute.href="run.terminal_url" target="_blank" rel="noopener"
|
|
|
stm-text="'session ' + run.id">run</a></td>
|
|
stm-text="'session ' + run.id">run</a></td>
|
|
|
- <td class="muted" stm-text="run.saddle_name">saddle</td>
|
|
|
|
|
- <td class="muted" stm-text="run.started_display">when</td>
|
|
|
|
|
- <td class="muted" stm-text="run.ended_display">when</td>
|
|
|
|
|
|
|
+ <td class="text-muted" stm-text="run.saddle_name">saddle</td>
|
|
|
|
|
+ <td class="text-muted" stm-text="run.started_display">when</td>
|
|
|
|
|
+ <td class="text-muted" stm-text="run.ended_display">when</td>
|
|
|
<td><span stm-if="run.open" class="badge badge-working">open</span>
|
|
<td><span stm-if="run.open" class="badge badge-working">open</span>
|
|
|
<span stm-if="!run.open" stm-text="run.outcome">outcome</span></td>
|
|
<span stm-if="!run.open" stm-text="run.outcome">outcome</span></td>
|
|
|
</tr>
|
|
</tr>
|