create-orcha 0.1.5 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/bin/create-orcha.js +1 -1
- package/package.json +1 -1
- package/template/AGENTS.md +9 -19
- package/template/README.md +12 -13
- package/template/orcha/AGENTS.md +9 -2
- package/template/package.json +5 -10
- package/template/playground.json +0 -49
- package/template/public/app.js +0 -1388
- package/template/public/index.html +0 -224
- package/template/public/orcha-logo.svg +0 -4
- package/template/public/styles.css +0 -548
- package/template/scripts/build.mjs +0 -20
- package/template/src/server.ts +0 -624
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="UTF-8" />
|
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
-
<meta name="color-scheme" content="light" />
|
|
7
|
-
<title>Orcha Playground</title>
|
|
8
|
-
<link rel="icon" href="/orcha-logo.svg" type="image/svg+xml" />
|
|
9
|
-
<link rel="stylesheet" href="/styles.css" />
|
|
10
|
-
</head>
|
|
11
|
-
<body>
|
|
12
|
-
<div class="app-shell">
|
|
13
|
-
<aside class="agent-sidebar">
|
|
14
|
-
<header class="brand">
|
|
15
|
-
<img class="brand-mark" src="/orcha-logo.svg" alt="Orcha" />
|
|
16
|
-
<div><strong>Orcha</strong><span>Playground</span></div>
|
|
17
|
-
</header>
|
|
18
|
-
<div class="sidebar-heading">
|
|
19
|
-
<span>Agents</span><span id="agent-count" class="count">0</span>
|
|
20
|
-
</div>
|
|
21
|
-
<nav id="agent-list" class="agent-list"></nav>
|
|
22
|
-
</aside>
|
|
23
|
-
|
|
24
|
-
<main class="main">
|
|
25
|
-
<header class="agent-header">
|
|
26
|
-
<div>
|
|
27
|
-
<span class="overline">Selected agent</span>
|
|
28
|
-
<h1 id="agent-title">Choose an agent</h1>
|
|
29
|
-
<p id="agent-description">Select an agent from the left.</p>
|
|
30
|
-
</div>
|
|
31
|
-
<div id="agent-badges" class="badges"></div>
|
|
32
|
-
</header>
|
|
33
|
-
|
|
34
|
-
<nav class="main-tabs" aria-label="Agent workspace">
|
|
35
|
-
<button class="main-tab active" data-view="overview">Overview</button>
|
|
36
|
-
<button class="main-tab" data-view="actions">Actions</button>
|
|
37
|
-
<button class="main-tab" data-view="run">Try</button>
|
|
38
|
-
<button class="main-tab" data-view="tests">Tests</button>
|
|
39
|
-
<button class="main-tab" data-view="evaluations">Evaluations</button>
|
|
40
|
-
<button id="sessions-tab" class="main-tab" data-view="sessions" disabled>Sessions</button>
|
|
41
|
-
</nav>
|
|
42
|
-
|
|
43
|
-
<div id="overview-view" class="main-view active">
|
|
44
|
-
<section class="section">
|
|
45
|
-
<div class="section-title">
|
|
46
|
-
<div><span class="overline">Configuration</span><h2>Model</h2></div>
|
|
47
|
-
</div>
|
|
48
|
-
<div id="configuration-grid" class="configuration-grid"></div>
|
|
49
|
-
<details class="detail-panel">
|
|
50
|
-
<summary>System instructions</summary>
|
|
51
|
-
<pre id="system-instructions" class="instruction-text"></pre>
|
|
52
|
-
</details>
|
|
53
|
-
</section>
|
|
54
|
-
<section class="section">
|
|
55
|
-
<div class="section-title">
|
|
56
|
-
<div><span class="overline">Knowledge</span><h2>Skills</h2></div>
|
|
57
|
-
<span id="skill-count" class="count"></span>
|
|
58
|
-
</div>
|
|
59
|
-
<div id="skill-list" class="card-list"></div>
|
|
60
|
-
</section>
|
|
61
|
-
<section class="section">
|
|
62
|
-
<div class="section-title">
|
|
63
|
-
<div><span class="overline">Delegation</span><h2>Subagents</h2></div>
|
|
64
|
-
<span id="subagent-count" class="count"></span>
|
|
65
|
-
</div>
|
|
66
|
-
<div id="subagent-list" class="card-list"></div>
|
|
67
|
-
</section>
|
|
68
|
-
</div>
|
|
69
|
-
|
|
70
|
-
<div id="actions-view" class="main-view">
|
|
71
|
-
<section class="section">
|
|
72
|
-
<div class="section-title">
|
|
73
|
-
<div><span class="overline">Registered tools</span><h2>Actions</h2></div>
|
|
74
|
-
<span id="action-count" class="count"></span>
|
|
75
|
-
</div>
|
|
76
|
-
<div id="action-list" class="card-list"></div>
|
|
77
|
-
</section>
|
|
78
|
-
</div>
|
|
79
|
-
|
|
80
|
-
<div id="run-view" class="main-view">
|
|
81
|
-
<section id="run-section" class="section run-section">
|
|
82
|
-
<div class="section-title">
|
|
83
|
-
<div><span class="overline">New execution</span><h2>Try agent</h2></div>
|
|
84
|
-
<button id="clear-run" class="quiet-button">Clear</button>
|
|
85
|
-
</div>
|
|
86
|
-
<div id="examples" class="examples"></div>
|
|
87
|
-
<div class="input-card">
|
|
88
|
-
<div class="input-toolbar">
|
|
89
|
-
<div class="segmented" aria-label="Input format">
|
|
90
|
-
<button class="segment active" data-mode="text">Text</button>
|
|
91
|
-
<button class="segment" data-mode="json">Content JSON</button>
|
|
92
|
-
</div>
|
|
93
|
-
<span id="input-help">Send a plain text message.</span>
|
|
94
|
-
</div>
|
|
95
|
-
<textarea id="prompt" rows="3" placeholder="Enter a message…"></textarea>
|
|
96
|
-
<footer>
|
|
97
|
-
<span><kbd>⌘</kbd><kbd>Enter</kbd> to run</span>
|
|
98
|
-
<button id="run-button" class="primary-button">Try agent</button>
|
|
99
|
-
</footer>
|
|
100
|
-
</div>
|
|
101
|
-
</section>
|
|
102
|
-
<section id="live-section" class="section hidden">
|
|
103
|
-
<div class="section-title">
|
|
104
|
-
<div><span class="overline">Live execution</span><h2 id="live-session-label">Running</h2></div>
|
|
105
|
-
<span id="run-status" class="status"></span>
|
|
106
|
-
</div>
|
|
107
|
-
<div id="live-timeline" class="timeline"></div>
|
|
108
|
-
</section>
|
|
109
|
-
<section id="client-actions" class="section client-actions hidden">
|
|
110
|
-
<div class="section-title">
|
|
111
|
-
<div><span class="overline">Application boundary</span><h2>Client action results</h2></div>
|
|
112
|
-
</div>
|
|
113
|
-
<p class="section-copy">This run is paused. Supply one JSON result for every requested action.</p>
|
|
114
|
-
<div id="client-action-fields"></div>
|
|
115
|
-
<button id="submit-tool-results" class="primary-button">Continue paused run</button>
|
|
116
|
-
</section>
|
|
117
|
-
</div>
|
|
118
|
-
|
|
119
|
-
<div id="tests-view" class="main-view">
|
|
120
|
-
<section class="section">
|
|
121
|
-
<div class="section-title">
|
|
122
|
-
<div><span class="overline">Model-backed checks</span><h2>Agent tests</h2></div>
|
|
123
|
-
<button id="run-tests" class="primary-button"><span aria-hidden="true">▶</span> Run all tests</button>
|
|
124
|
-
</div>
|
|
125
|
-
<p class="section-copy">Runs every test registered for this agent with real model calls, mocked action responses, durable test sessions, and evaluation thresholds.</p>
|
|
126
|
-
<div id="test-summary" class="test-summary empty">Tests have not been run in this playground process.</div>
|
|
127
|
-
<div id="test-results" class="test-results"></div>
|
|
128
|
-
</section>
|
|
129
|
-
</div>
|
|
130
|
-
|
|
131
|
-
<div id="evaluations-view" class="main-view">
|
|
132
|
-
<section class="section">
|
|
133
|
-
<div class="section-title">
|
|
134
|
-
<div><span class="overline">Registered judges</span><h2>Evaluations</h2></div>
|
|
135
|
-
</div>
|
|
136
|
-
<div id="evaluation-definitions" class="card-list"></div>
|
|
137
|
-
</section>
|
|
138
|
-
<section class="section">
|
|
139
|
-
<div class="section-title">
|
|
140
|
-
<div><span class="overline">Selected session</span><h2 id="evaluation-session">Results</h2></div>
|
|
141
|
-
</div>
|
|
142
|
-
<div id="evaluation-results" class="evaluation-results empty">Open a session to inspect its evaluation metrics.</div>
|
|
143
|
-
</section>
|
|
144
|
-
</div>
|
|
145
|
-
|
|
146
|
-
<div id="sessions-view" class="main-view">
|
|
147
|
-
<section id="sessions-index" class="section">
|
|
148
|
-
<div class="section-title">
|
|
149
|
-
<div><span class="overline">Durable sessions</span><h2>All sessions</h2></div>
|
|
150
|
-
<span id="center-session-count" class="count">0</span>
|
|
151
|
-
</div>
|
|
152
|
-
<div id="center-session-list" class="center-session-list"></div>
|
|
153
|
-
</section>
|
|
154
|
-
<div id="session-history" class="hidden">
|
|
155
|
-
<section class="section">
|
|
156
|
-
<div class="section-title">
|
|
157
|
-
<div>
|
|
158
|
-
<button id="back-to-sessions" class="back-button">← All sessions</button>
|
|
159
|
-
<h2 id="session-title">History</h2>
|
|
160
|
-
</div>
|
|
161
|
-
<button id="resume-session" class="primary-button">Continue session</button>
|
|
162
|
-
</div>
|
|
163
|
-
<div id="session-timeline" class="timeline"></div>
|
|
164
|
-
</section>
|
|
165
|
-
<section class="section">
|
|
166
|
-
<details>
|
|
167
|
-
<summary>Session data</summary>
|
|
168
|
-
<div class="raw-toolbar"><span>Storage-neutral events or projected child history</span><button id="copy-events" class="quiet-button">Copy</button></div>
|
|
169
|
-
<pre id="raw-events" class="raw-events"></pre>
|
|
170
|
-
</details>
|
|
171
|
-
</section>
|
|
172
|
-
</div>
|
|
173
|
-
</div>
|
|
174
|
-
</main>
|
|
175
|
-
|
|
176
|
-
<aside class="session-sidebar">
|
|
177
|
-
<div id="session-list-panel">
|
|
178
|
-
<header class="sessions-header">
|
|
179
|
-
<div>
|
|
180
|
-
<span class="overline">Selected agent</span>
|
|
181
|
-
<h2>Sessions <span id="session-count-side" class="session-count-side">0</span></h2>
|
|
182
|
-
</div>
|
|
183
|
-
<button id="refresh-sessions" class="icon-button" title="Refresh">↻</button>
|
|
184
|
-
</header>
|
|
185
|
-
<button id="new-session" class="new-session-button">+ New session</button>
|
|
186
|
-
<label class="session-search">
|
|
187
|
-
<span>⌕</span>
|
|
188
|
-
<input id="session-search" type="search" placeholder="Search sessions…" />
|
|
189
|
-
</label>
|
|
190
|
-
<div id="session-list" class="session-list">
|
|
191
|
-
<div class="empty">Select an agent to load sessions.</div>
|
|
192
|
-
</div>
|
|
193
|
-
</div>
|
|
194
|
-
<div id="session-inspector" class="session-inspector hidden">
|
|
195
|
-
<header class="sessions-header inspector-header">
|
|
196
|
-
<button id="close-session-inspector" class="back-button">← Sessions</button>
|
|
197
|
-
<span id="inspector-status" class="status"></span>
|
|
198
|
-
</header>
|
|
199
|
-
<div class="inspector-body">
|
|
200
|
-
<span class="overline">Selected session</span>
|
|
201
|
-
<h2 id="inspector-title">Session</h2>
|
|
202
|
-
<div id="session-summary" class="inspector-summary"></div>
|
|
203
|
-
<section class="inspector-section">
|
|
204
|
-
<div class="inspector-section-title">
|
|
205
|
-
<span class="overline">Delegation</span>
|
|
206
|
-
<strong>Child sessions</strong>
|
|
207
|
-
</div>
|
|
208
|
-
<div id="inspector-children" class="inspector-evaluations empty">No child sessions.</div>
|
|
209
|
-
</section>
|
|
210
|
-
<section class="inspector-section">
|
|
211
|
-
<div class="inspector-section-title">
|
|
212
|
-
<span class="overline">Quality</span>
|
|
213
|
-
<strong>Evaluations</strong>
|
|
214
|
-
</div>
|
|
215
|
-
<div id="inspector-evaluations" class="inspector-evaluations empty">No evaluation results.</div>
|
|
216
|
-
</section>
|
|
217
|
-
</div>
|
|
218
|
-
</div>
|
|
219
|
-
</aside>
|
|
220
|
-
</div>
|
|
221
|
-
<div id="toast" class="toast" role="status"></div>
|
|
222
|
-
<script type="module" src="/app.js"></script>
|
|
223
|
-
</body>
|
|
224
|
-
</html>
|