blob: e7efdadd2a41ab318125f4d91906ab392dde1854 [file] [log] [blame]
Josh Bleecher Snyder4a370aa2025-07-28 23:19:48 +00001<!doctype html>
2<html>
3 <head>
4 <title>Sketch System Prompt Debug</title>
5 <style>
6 body {
7 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
8 margin: 40px;
9 }
10 h1 {
11 color: #333;
12 }
13 .prompt-container {
14 background: #f8f9fa;
15 border: 1px solid #e9ecef;
16 border-radius: 6px;
17 padding: 20px;
18 margin: 20px 0;
19 }
20 .prompt-content {
21 background: #ffffff;
22 border: 1px solid #d0d7de;
23 border-radius: 4px;
24 padding: 16px;
25 font-family: "SF Mono", Monaco, monospace;
26 font-size: 13px;
27 line-height: 1.5;
28 white-space: pre-wrap;
29 word-wrap: break-word;
30 max-height: 70vh;
31 overflow-y: auto;
32 }
33 .summary {
34 background: #e6f3ff;
35 border-left: 4px solid #0366d6;
36 padding: 16px;
37 margin-bottom: 30px;
38 }
39 .copy-button {
40 background: #0366d6;
41 color: white;
42 border: none;
43 padding: 8px 16px;
44 border-radius: 4px;
45 cursor: pointer;
46 margin-bottom: 10px;
47 font-size: 12px;
48 }
49 .copy-button:hover {
50 background: #0250a3;
51 }
52 .stats {
53 font-size: 0.9em;
54 color: #656d76;
55 margin-bottom: 10px;
56 }
57 </style>
58 </head>
59 <body>
60 <h1>Sketch System Prompt Debug</h1>
61 <div class="stats">
62 <strong>Length:</strong> {{.Length}} characters |
63 <strong>Lines:</strong> {{.Lines}}
64 </div>
65 <div class="prompt-container">
66 <button class="copy-button" onclick="copyToClipboard()">
67 Copy to Clipboard
68 </button>
69 <div class="prompt-content" id="prompt-content">{{.SystemPrompt}}</div>
70 </div>
71 <script>
72 function copyToClipboard() {
73 const content = document.getElementById("prompt-content").textContent;
74 navigator.clipboard
75 .writeText(content)
76 .then(() => {
77 const button = document.querySelector(".copy-button");
78 const originalText = button.textContent;
79 button.textContent = "Copied!";
80 setTimeout(() => {
81 button.textContent = originalText;
82 }, 2000);
83 })
84 .catch((err) => {
85 alert("Failed to copy to clipboard");
86 });
87 }
88 </script>
89 </body>
90</html>