reevesagents 1.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.
@@ -0,0 +1,178 @@
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" />
6
+ <meta name="color-scheme" content="dark" />
7
+ <title>ReevesAgents web</title>
8
+ <link rel="stylesheet" href="xterm.css" />
9
+ <link rel="stylesheet" href="app.css" />
10
+ </head>
11
+ <body>
12
+ <header class="topbar">
13
+ <div class="brand">
14
+ <div id="brand-duck" class="brand-duck" aria-hidden="true"></div>
15
+ <span class="brand-lockup">
16
+ <span class="brand-name">ReevesAgents</span>
17
+ <span id="brand-beta" class="brand-beta">web · beta</span>
18
+ </span>
19
+ </div>
20
+ <div class="topbar-actions">
21
+ <span id="conn" class="conn" data-state="idle" title="live update stream">live</span>
22
+ <label class="language-picker" title="Language">
23
+ <span id="language-label" class="language-label">Language</span>
24
+ <select id="language-select" aria-label="Language"></select>
25
+ </label>
26
+ <button id="new-agent-btn" class="btn btn-agent" type="button">New agent</button>
27
+ <button id="new-run-btn" class="btn btn-accent" type="button">New run</button>
28
+ </div>
29
+ </header>
30
+
31
+ <main class="layout">
32
+ <aside class="sidebar" aria-label="agents">
33
+ <div class="sidebar-top">
34
+ <div>
35
+ <div class="sidebar-title">Agents</div>
36
+ <div class="sidebar-kicker">active agents</div>
37
+ </div>
38
+ <div id="sidebar-count" class="sidebar-count">0</div>
39
+ </div>
40
+ <div id="sidebar-list" class="sidebar-list"></div>
41
+ <div id="sidebar-empty" class="sidebar-empty">
42
+ <div class="empty-title">No agents yet</div>
43
+ <div class="empty-body">Create a run, then add provider agents as the work grows.</div>
44
+ <button id="empty-new-run" class="btn btn-accent empty-action" type="button">New run</button>
45
+ </div>
46
+ </aside>
47
+
48
+ <section id="stage" class="stage">
49
+ <div class="stage-head">
50
+ <div>
51
+ <div id="stage-title" class="stage-title">No agent selected</div>
52
+ <div id="stage-sub" class="stage-sub">Pick an agent on the left, or create a run.</div>
53
+ </div>
54
+ <div class="stage-head-actions">
55
+ <button id="stage-add-agent" class="btn btn-secondary" type="button" hidden>Add agent</button>
56
+ <div id="stage-status" class="stage-status" hidden></div>
57
+ </div>
58
+ </div>
59
+ <div id="term-wrap" class="term-wrap">
60
+ <div id="term-host" class="term-host"></div>
61
+ <div id="stage-overlay" class="stage-overlay">
62
+ <div class="overlay-card">
63
+ <div class="overlay-eyebrow">web agent</div>
64
+ <div class="overlay-title">No agent attached</div>
65
+ <div class="overlay-body">
66
+ Select an agent to open its live pane. Closing the browser leaves the run active.
67
+ </div>
68
+ <div class="overlay-actions">
69
+ <button id="overlay-new-run" class="btn btn-accent" type="button">New run</button>
70
+ <button id="overlay-new-agent" class="btn btn-agent" type="button" hidden>New agent</button>
71
+ </div>
72
+ </div>
73
+ </div>
74
+ </div>
75
+ </section>
76
+ </main>
77
+
78
+ <dialog id="new-dialog" class="dialog">
79
+ <form id="new-form" method="dialog">
80
+ <div class="dialog-header">
81
+ <div id="new-dialog-title" class="dialog-title">New run</div>
82
+ <div id="new-dialog-subtitle" class="dialog-subtitle">Start a run with its first agent.</div>
83
+ </div>
84
+
85
+ <div class="create-switch" role="tablist" aria-label="Create type">
86
+ <button id="create-run-tab" class="create-tab" type="button" role="tab">New run</button>
87
+ <button id="create-agent-tab" class="create-tab" type="button" role="tab">New agent</button>
88
+ </div>
89
+
90
+ <div id="target-run-note" class="dialog-note" hidden></div>
91
+
92
+ <label class="field" id="agent-run-field" hidden>
93
+ <span class="field-label">Run</span>
94
+ <select id="f-agent-run"></select>
95
+ <span id="agent-run-help" class="field-help">Choose the active run that will receive this agent.</span>
96
+ </label>
97
+
98
+ <label class="field" id="run-name-field">
99
+ <span class="field-label">Run name</span>
100
+ <input id="f-run-name" type="text" maxlength="80" placeholder="release check" autocomplete="off" />
101
+ <span id="run-name-help" class="field-help">Shown in the run list and history.</span>
102
+ </label>
103
+
104
+ <div class="field provider-field">
105
+ <div class="field-label">Provider</div>
106
+ <select id="f-provider" required tabindex="-1" aria-hidden="true"></select>
107
+ <div id="provider-grid" class="provider-grid" role="listbox" aria-label="Provider"></div>
108
+ <span id="provider-help" class="field-help">Choose the provider CLI that will run this agent.</span>
109
+ </div>
110
+
111
+ <div class="create-options-grid">
112
+ <label class="field model-field">
113
+ <span class="field-label">Model</span>
114
+ <select id="f-model"></select>
115
+ <span id="model-help" class="field-help">Provider default is safest when unsure.</span>
116
+ </label>
117
+
118
+ <div class="field permissions-field">
119
+ <div class="field-label">Permission mode</div>
120
+ <select id="f-permissions" required tabindex="-1" aria-hidden="true">
121
+ <option value="ask">Ask first</option>
122
+ <option value="skip">Skip prompts</option>
123
+ </select>
124
+ <div id="permission-grid" class="permission-grid" role="radiogroup" aria-label="Permission mode">
125
+ <button class="permission-option" type="button" role="radio" data-permission="ask">
126
+ <span class="permission-title">Ask first</span>
127
+ <span class="permission-meta">Keep provider approval prompts</span>
128
+ </button>
129
+ <button class="permission-option" type="button" role="radio" data-permission="skip">
130
+ <span class="permission-title">Skip prompts</span>
131
+ <span class="permission-meta">Use only in trusted workspaces</span>
132
+ </button>
133
+ </div>
134
+ <span id="permissions-help" class="field-help">Ask first is safer. Skip prompts only in trusted workspaces.</span>
135
+ </div>
136
+ </div>
137
+
138
+ <label class="field" id="agent-name-field">
139
+ <span class="field-label">Agent name <span class="field-opt">optional</span></span>
140
+ <input id="f-nickname" type="text" maxlength="40" placeholder="planner" autocomplete="off" />
141
+ <span id="agent-name-help" class="field-help">Optional display name and tmux window name.</span>
142
+ </label>
143
+
144
+ <label class="field" id="mode-field" hidden>
145
+ <span class="field-label">New run mode</span>
146
+ <select id="f-mode">
147
+ <option value="spawner">Agent run</option>
148
+ <option value="orchestrator">Orchestrator MCP · pre-beta</option>
149
+ </select>
150
+ <span id="mode-help" class="field-help">Normal runs are direct agent workspaces. Orchestrator MCP is pre-beta.</span>
151
+ </label>
152
+
153
+ <label class="field" id="cwd-field">
154
+ <span class="field-label">Working directory</span>
155
+ <input id="f-cwd" type="text" placeholder="defaults to the server's directory" autocomplete="off" />
156
+ <span id="cwd-help" class="field-help">Agents start in this directory.</span>
157
+ </label>
158
+
159
+ <label class="field" id="prompt-field">
160
+ <span class="field-label">Initial prompt <span class="field-opt">optional, typed in on start</span></span>
161
+ <textarea id="f-prompt" rows="3" placeholder="What should this agent start working on?"></textarea>
162
+ <span id="prompt-help" class="field-help">Sent to the agent after its window opens.</span>
163
+ </label>
164
+
165
+ <div id="new-error" class="dialog-error" hidden></div>
166
+
167
+ <div class="dialog-actions">
168
+ <button type="button" id="new-cancel" class="btn">Cancel</button>
169
+ <button type="submit" id="new-submit" class="btn btn-accent">Create</button>
170
+ </div>
171
+ </form>
172
+ </dialog>
173
+
174
+ <script src="xterm.js"></script>
175
+ <script src="addon-fit.js"></script>
176
+ <script src="app.js"></script>
177
+ </body>
178
+ </html>
@@ -0,0 +1,285 @@
1
+ /**
2
+ * Copyright (c) 2014 The xterm.js authors. All rights reserved.
3
+ * Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
4
+ * https://github.com/chjj/term.js
5
+ * @license MIT
6
+ *
7
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ * of this software and associated documentation files (the "Software"), to deal
9
+ * in the Software without restriction, including without limitation the rights
10
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ * copies of the Software, and to permit persons to whom the Software is
12
+ * furnished to do so, subject to the following conditions:
13
+ *
14
+ * The above copyright notice and this permission notice shall be included in
15
+ * all copies or substantial portions of the Software.
16
+ *
17
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23
+ * THE SOFTWARE.
24
+ *
25
+ * Originally forked from (with the author's permission):
26
+ * Fabrice Bellard's javascript vt100 for jslinux:
27
+ * http://bellard.org/jslinux/
28
+ * Copyright (c) 2011 Fabrice Bellard
29
+ * The original design remains. The terminal itself
30
+ * has been extended to include xterm CSI codes, among
31
+ * other features.
32
+ */
33
+
34
+ /**
35
+ * Default styles for xterm.js
36
+ */
37
+
38
+ .xterm {
39
+ cursor: text;
40
+ position: relative;
41
+ user-select: none;
42
+ -ms-user-select: none;
43
+ -webkit-user-select: none;
44
+ }
45
+
46
+ .xterm.focus,
47
+ .xterm:focus {
48
+ outline: none;
49
+ }
50
+
51
+ .xterm .xterm-helpers {
52
+ position: absolute;
53
+ top: 0;
54
+ /**
55
+ * The z-index of the helpers must be higher than the canvases in order for
56
+ * IMEs to appear on top.
57
+ */
58
+ z-index: 5;
59
+ }
60
+
61
+ .xterm .xterm-helper-textarea {
62
+ padding: 0;
63
+ border: 0;
64
+ margin: 0;
65
+ /* Move textarea out of the screen to the far left, so that the cursor is not visible */
66
+ position: absolute;
67
+ opacity: 0;
68
+ left: -9999em;
69
+ top: 0;
70
+ width: 0;
71
+ height: 0;
72
+ z-index: -5;
73
+ /** Prevent wrapping so the IME appears against the textarea at the correct position */
74
+ white-space: nowrap;
75
+ overflow: hidden;
76
+ resize: none;
77
+ }
78
+
79
+ .xterm .composition-view {
80
+ /* TODO: Composition position got messed up somewhere */
81
+ background: #000;
82
+ color: #FFF;
83
+ display: none;
84
+ position: absolute;
85
+ white-space: nowrap;
86
+ z-index: 1;
87
+ }
88
+
89
+ .xterm .composition-view.active {
90
+ display: block;
91
+ }
92
+
93
+ .xterm .xterm-viewport {
94
+ /* On OS X this is required in order for the scroll bar to appear fully opaque */
95
+ background-color: #000;
96
+ overflow-y: scroll;
97
+ cursor: default;
98
+ position: absolute;
99
+ right: 0;
100
+ left: 0;
101
+ top: 0;
102
+ bottom: 0;
103
+ }
104
+
105
+ .xterm .xterm-screen {
106
+ position: relative;
107
+ }
108
+
109
+ .xterm .xterm-screen canvas {
110
+ position: absolute;
111
+ left: 0;
112
+ top: 0;
113
+ }
114
+
115
+ .xterm-char-measure-element {
116
+ display: inline-block;
117
+ visibility: hidden;
118
+ position: absolute;
119
+ top: 0;
120
+ left: -9999em;
121
+ line-height: normal;
122
+ }
123
+
124
+ .xterm.enable-mouse-events {
125
+ /* When mouse events are enabled (eg. tmux), revert to the standard pointer cursor */
126
+ cursor: default;
127
+ }
128
+
129
+ .xterm.xterm-cursor-pointer,
130
+ .xterm .xterm-cursor-pointer {
131
+ cursor: pointer;
132
+ }
133
+
134
+ .xterm.column-select.focus {
135
+ /* Column selection mode */
136
+ cursor: crosshair;
137
+ }
138
+
139
+ .xterm .xterm-accessibility:not(.debug),
140
+ .xterm .xterm-message {
141
+ position: absolute;
142
+ left: 0;
143
+ top: 0;
144
+ bottom: 0;
145
+ right: 0;
146
+ z-index: 10;
147
+ color: transparent;
148
+ pointer-events: none;
149
+ }
150
+
151
+ .xterm .xterm-accessibility-tree:not(.debug) *::selection {
152
+ color: transparent;
153
+ }
154
+
155
+ .xterm .xterm-accessibility-tree {
156
+ font-family: monospace;
157
+ user-select: text;
158
+ white-space: pre;
159
+ }
160
+
161
+ .xterm .xterm-accessibility-tree > div {
162
+ transform-origin: left;
163
+ width: fit-content;
164
+ }
165
+
166
+ .xterm .live-region {
167
+ position: absolute;
168
+ left: -9999px;
169
+ width: 1px;
170
+ height: 1px;
171
+ overflow: hidden;
172
+ }
173
+
174
+ .xterm-dim {
175
+ /* Dim should not apply to background, so the opacity of the foreground color is applied
176
+ * explicitly in the generated class and reset to 1 here */
177
+ opacity: 1 !important;
178
+ }
179
+
180
+ .xterm-underline-1 { text-decoration: underline; }
181
+ .xterm-underline-2 { text-decoration: double underline; }
182
+ .xterm-underline-3 { text-decoration: wavy underline; }
183
+ .xterm-underline-4 { text-decoration: dotted underline; }
184
+ .xterm-underline-5 { text-decoration: dashed underline; }
185
+
186
+ .xterm-overline {
187
+ text-decoration: overline;
188
+ }
189
+
190
+ .xterm-overline.xterm-underline-1 { text-decoration: overline underline; }
191
+ .xterm-overline.xterm-underline-2 { text-decoration: overline double underline; }
192
+ .xterm-overline.xterm-underline-3 { text-decoration: overline wavy underline; }
193
+ .xterm-overline.xterm-underline-4 { text-decoration: overline dotted underline; }
194
+ .xterm-overline.xterm-underline-5 { text-decoration: overline dashed underline; }
195
+
196
+ .xterm-strikethrough {
197
+ text-decoration: line-through;
198
+ }
199
+
200
+ .xterm-screen .xterm-decoration-container .xterm-decoration {
201
+ z-index: 6;
202
+ position: absolute;
203
+ }
204
+
205
+ .xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer {
206
+ z-index: 7;
207
+ }
208
+
209
+ .xterm-decoration-overview-ruler {
210
+ z-index: 8;
211
+ position: absolute;
212
+ top: 0;
213
+ right: 0;
214
+ pointer-events: none;
215
+ }
216
+
217
+ .xterm-decoration-top {
218
+ z-index: 2;
219
+ position: relative;
220
+ }
221
+
222
+
223
+
224
+ /* Derived from vs/base/browser/ui/scrollbar/media/scrollbar.css */
225
+
226
+ /* xterm.js customization: Override xterm's cursor style */
227
+ .xterm .xterm-scrollable-element > .scrollbar {
228
+ cursor: default;
229
+ }
230
+
231
+ /* Arrows */
232
+ .xterm .xterm-scrollable-element > .scrollbar > .scra {
233
+ cursor: pointer;
234
+ font-size: 11px !important;
235
+ }
236
+
237
+ .xterm .xterm-scrollable-element > .visible {
238
+ opacity: 1;
239
+
240
+ /* Background rule added for IE9 - to allow clicks on dom node */
241
+ background:rgba(0,0,0,0);
242
+
243
+ transition: opacity 100ms linear;
244
+ /* In front of peek view */
245
+ z-index: 11;
246
+ }
247
+ .xterm .xterm-scrollable-element > .invisible {
248
+ opacity: 0;
249
+ pointer-events: none;
250
+ }
251
+ .xterm .xterm-scrollable-element > .invisible.fade {
252
+ transition: opacity 800ms linear;
253
+ }
254
+
255
+ /* Scrollable Content Inset Shadow */
256
+ .xterm .xterm-scrollable-element > .shadow {
257
+ position: absolute;
258
+ display: none;
259
+ }
260
+ .xterm .xterm-scrollable-element > .shadow.top {
261
+ display: block;
262
+ top: 0;
263
+ left: 3px;
264
+ height: 3px;
265
+ width: 100%;
266
+ box-shadow: var(--vscode-scrollbar-shadow, #000) 0 6px 6px -6px inset;
267
+ }
268
+ .xterm .xterm-scrollable-element > .shadow.left {
269
+ display: block;
270
+ top: 3px;
271
+ left: 0;
272
+ height: 100%;
273
+ width: 3px;
274
+ box-shadow: var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset;
275
+ }
276
+ .xterm .xterm-scrollable-element > .shadow.top-left-corner {
277
+ display: block;
278
+ top: 0;
279
+ left: 0;
280
+ height: 3px;
281
+ width: 3px;
282
+ }
283
+ .xterm .xterm-scrollable-element > .shadow.top.left {
284
+ box-shadow: var(--vscode-scrollbar-shadow, #000) 6px 0 6px -6px inset;
285
+ }