summaryrefslogtreecommitdiffhomepage
path: root/src/app/views/SystemPromptPane.svelte
blob: 0fb5a117d88f3eea37cdd3794c93316c85276acd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<script lang="ts">
  /**
   * The `system-prompt` view — a pointer to the global system-prompt template
   * that opens the full-page modal editor (half template / half variable
   * palette). The modal itself is CHROME (App shell state, outside the tree —
   * layout-00 decision 2); this view only raises the port. Unkeyed (like
   * today).
   */
  import type { AppViewPorts } from "../view-ports";

  let { ports }: { ports: AppViewPorts } = $props();
</script>

<div class="flex flex-col gap-2">
  <p class="text-xs opacity-60">
    Edit the global system prompt template with variable placeholders. Opens a full-page editor.
  </p>
  <button type="button" class="btn btn-primary btn-sm" onclick={() => ports.openSystemPromptBuilder()}>
    Open builder
  </button>
</div>