@oddessentials/agent-guild 0.4.0 → 0.6.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.
Files changed (91) hide show
  1. package/README.md +13 -8
  2. package/bin/agent-guild-report.mjs +14 -1
  3. package/bin/agent-guild.mjs +85 -46
  4. package/config/providers.default.json +4 -0
  5. package/package.json +1 -1
  6. package/src/manager/changelog.mjs +195 -0
  7. package/src/manager/launch.mjs +64 -0
  8. package/src/manager/main.mjs +27 -4
  9. package/src/manager/news.mjs +5 -5
  10. package/src/manager/providers.mjs +11 -0
  11. package/src/manager/server.mjs +52 -16
  12. package/src/manager/session-history.mjs +496 -0
  13. package/src/manager/session-manager.mjs +4 -0
  14. package/src/manager/session.mjs +16 -0
  15. package/src/report/hooks.mjs +4 -0
  16. package/web/app.js +754 -56
  17. package/web/art/art.css +372 -159
  18. package/web/art/characters/anthropic/idle.avif +0 -0
  19. package/web/art/characters/anthropic/idle.webp +0 -0
  20. package/web/art/characters/anthropic/locked.avif +0 -0
  21. package/web/art/characters/anthropic/locked.webp +0 -0
  22. package/web/art/characters/anthropic/working.avif +0 -0
  23. package/web/art/characters/anthropic/working.webp +0 -0
  24. package/web/art/characters/google/idle.avif +0 -0
  25. package/web/art/characters/google/idle.webp +0 -0
  26. package/web/art/characters/google/locked.avif +0 -0
  27. package/web/art/characters/google/locked.webp +0 -0
  28. package/web/art/characters/google/working.avif +0 -0
  29. package/web/art/characters/google/working.webp +0 -0
  30. package/web/art/characters/openai/idle.avif +0 -0
  31. package/web/art/characters/openai/idle.webp +0 -0
  32. package/web/art/characters/openai/locked.avif +0 -0
  33. package/web/art/characters/openai/locked.webp +0 -0
  34. package/web/art/characters/openai/working.avif +0 -0
  35. package/web/art/characters/openai/working.webp +0 -0
  36. package/web/art/characters/shell/idle.avif +0 -0
  37. package/web/art/characters/shell/idle.webp +0 -0
  38. package/web/art/characters/shell/locked.avif +0 -0
  39. package/web/art/characters/shell/locked.webp +0 -0
  40. package/web/art/characters/shell/working.avif +0 -0
  41. package/web/art/characters/shell/working.webp +0 -0
  42. package/web/art/characters/xai/idle.avif +0 -0
  43. package/web/art/characters/xai/idle.webp +0 -0
  44. package/web/art/characters/xai/locked.avif +0 -0
  45. package/web/art/characters/xai/locked.webp +0 -0
  46. package/web/art/characters/xai/working.avif +0 -0
  47. package/web/art/characters/xai/working.webp +0 -0
  48. package/web/art/icons/anthropic.avif +0 -0
  49. package/web/art/icons/anthropic.webp +0 -0
  50. package/web/art/icons/google.avif +0 -0
  51. package/web/art/icons/google.webp +0 -0
  52. package/web/art/icons/openai.avif +0 -0
  53. package/web/art/icons/openai.webp +0 -0
  54. package/web/art/icons/shell.avif +0 -0
  55. package/web/art/icons/shell.webp +0 -0
  56. package/web/art/icons/xai.avif +0 -0
  57. package/web/art/icons/xai.webp +0 -0
  58. package/web/art/page-light.avif +0 -0
  59. package/web/art/page-light.webp +0 -0
  60. package/web/art/page.avif +0 -0
  61. package/web/art/page.webp +0 -0
  62. package/web/art/ui/empty-state.avif +0 -0
  63. package/web/art/ui/empty-state.webp +0 -0
  64. package/web/art/ui/favicon.png +0 -0
  65. package/web/art/ui/frame-ornate.png +0 -0
  66. package/web/art/ui/guild-crest.png +0 -0
  67. package/web/fonts/OFL.txt +93 -0
  68. package/web/fonts/cinzel.woff2 +0 -0
  69. package/web/index.html +82 -14
  70. package/web/styles.css +208 -68
  71. package/web/art/characters/anthropic/idle.png +0 -0
  72. package/web/art/characters/anthropic/locked.png +0 -0
  73. package/web/art/characters/anthropic/working.png +0 -0
  74. package/web/art/characters/google/idle.png +0 -0
  75. package/web/art/characters/google/locked.png +0 -0
  76. package/web/art/characters/google/working.png +0 -0
  77. package/web/art/characters/openai/idle.png +0 -0
  78. package/web/art/characters/openai/locked.png +0 -0
  79. package/web/art/characters/openai/working.png +0 -0
  80. package/web/art/characters/shell/idle.png +0 -0
  81. package/web/art/characters/shell/locked.png +0 -0
  82. package/web/art/characters/shell/working.png +0 -0
  83. package/web/art/characters/xai/idle.png +0 -0
  84. package/web/art/characters/xai/locked.png +0 -0
  85. package/web/art/characters/xai/working.png +0 -0
  86. package/web/art/icons/anthropic.png +0 -0
  87. package/web/art/icons/google.png +0 -0
  88. package/web/art/icons/openai.png +0 -0
  89. package/web/art/icons/shell.png +0 -0
  90. package/web/art/icons/xai.png +0 -0
  91. package/web/art/page.png +0 -0
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,93 @@
1
+ Copyright 2020 The Cinzel Project Authors (https://github.com/NDISCOVER/Cinzel)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file
package/web/index.html CHANGED
@@ -6,7 +6,8 @@
6
6
  <title>Agent Guild</title>
7
7
  <meta name="color-scheme" content="light dark">
8
8
  <script src="/theme.js"></script>
9
- <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='8' fill='%235B5BD6'/%3E%3Cpath d='M9 22l7-12 7 12' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E">
9
+ <link rel="icon" href="/art/ui/favicon.png" type="image/png">
10
+ <link rel="preload" href="/fonts/cinzel.woff2" as="font" type="font/woff2" crossorigin>
10
11
  <link rel="stylesheet" href="/vendor/xterm/xterm.css">
11
12
  <link rel="stylesheet" href="/styles.css">
12
13
  <link rel="stylesheet" href="/art/art.css">
@@ -14,8 +15,8 @@
14
15
  <body>
15
16
  <header class="topbar">
16
17
  <div class="brand">
17
- <svg class="brand-mark" viewBox="0 0 32 32" aria-hidden="true"><rect width="32" height="32" rx="8" fill="currentColor"/><path d="M9 22l7-12 7 12" stroke="#fff" stroke-width="3" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>
18
18
  <h1>Agent Guild</h1>
19
+ <button id="version" class="version" type="button" aria-haspopup="dialog" hidden></button>
19
20
  </div>
20
21
  <div class="topbar-end">
21
22
  <div id="connection" class="connection" role="status" aria-live="polite">
@@ -24,6 +25,7 @@
24
25
  <span id="upgrade-note" class="upgrade-note" hidden></span>
25
26
  <button id="upgrade" class="btn upgrade" type="button" hidden></button>
26
27
  <button id="theme-toggle" class="btn theme-toggle" type="button"></button>
28
+ <button id="restart-manager" class="btn restart-manager" type="button" hidden>Restart manager</button>
27
29
  <button id="stop-manager" class="btn danger stop-manager" type="button" hidden title="Stop the session manager. This ends every session.">Stop manager</button>
28
30
  </div>
29
31
  </header>
@@ -73,9 +75,15 @@
73
75
  <section id="stopped" class="auth notice" hidden aria-live="polite">
74
76
  <h2 id="stopped-title">Stopping the session manager…</h2>
75
77
  <p id="stopped-text">Ending every session. This can take a few seconds.</p>
76
- <p>To start again, run this command or double-click the launcher:</p>
77
- <pre>agent-guild open</pre>
78
- <p>This page reconnects by itself when the manager is back.</p>
78
+ <div id="stopped-help" class="stopped-help" hidden>
79
+ <p id="stopped-how">To start again, open a terminal and run:</p>
80
+ <div class="command">
81
+ <pre>agent-guild open</pre>
82
+ <button id="copy-command" class="btn" type="button" title="Copy the command">Copy</button>
83
+ </div>
84
+ <p id="stopped-launcher" hidden>Or double-click <code id="stopped-launcher-path"></code> in your file manager.</p>
85
+ <p>This page reconnects by itself when the manager is back.</p>
86
+ </div>
79
87
  </section>
80
88
 
81
89
  <div id="terminal-panel" class="terminal-panel" hidden role="dialog" aria-modal="false" aria-labelledby="panel-title">
@@ -131,24 +139,70 @@
131
139
  <p id="news-status" class="news-status" hidden></p>
132
140
  </dialog>
133
141
 
142
+ <dialog id="changelog" class="news-panel" aria-labelledby="changelog-title">
143
+ <div class="news-bar">
144
+ <div class="news-heading">
145
+ <h2 id="changelog-title">What’s new</h2>
146
+ <p id="changelog-sub" class="sub"></p>
147
+ </div>
148
+ <button id="changelog-close" class="btn" type="button">Close</button>
149
+ </div>
150
+ <div class="news-body">
151
+ <div id="changelog-actions" class="changelog-actions" hidden>
152
+ <button id="changelog-upgrade" class="btn upgrade" type="button" hidden></button>
153
+ <button id="changelog-restart" class="btn restart-manager pending" type="button" hidden></button>
154
+ </div>
155
+ <ol id="changelog-list" class="changelog-list"></ol>
156
+ <p id="changelog-note" class="news-empty" hidden></p>
157
+ </div>
158
+ <p id="changelog-status" class="news-status" hidden></p>
159
+ </dialog>
160
+
161
+ <dialog id="history" class="models history" aria-labelledby="history-title">
162
+ <div class="models-bar">
163
+ <span id="history-icon" class="provider-icon small"></span>
164
+ <div class="models-heading">
165
+ <h2 id="history-title"></h2>
166
+ <p id="history-sub" class="sub"></p>
167
+ </div>
168
+ <button id="history-close" class="btn" type="button">Close</button>
169
+ </div>
170
+ <div class="history-tools">
171
+ <input id="history-filter" type="search" placeholder="Filter by title, folder or id" aria-label="Filter sessions" spellcheck="false" autocomplete="off">
172
+ <label class="history-here"><input id="history-here" type="checkbox"><span>Working folder only</span></label>
173
+ </div>
174
+ <div class="models-body">
175
+ <div id="history-list" class="history-list" role="list"></div>
176
+ <p id="history-note" class="models-note"></p>
177
+ </div>
178
+ <form id="history-form" class="history-form">
179
+ <label for="history-id">Resume by id</label>
180
+ <input id="history-id" type="text" placeholder="Session id or name" spellcheck="false" autocomplete="off">
181
+ <button type="submit" class="btn">Resume</button>
182
+ </form>
183
+ </dialog>
184
+
134
185
  <div id="tip" class="tip" aria-hidden="true" hidden><strong id="tip-title"></strong><span id="tip-source"></span><p id="tip-text"></p></div>
135
186
 
136
187
  <div id="toast" class="toast" role="alert" hidden></div>
137
188
 
138
189
  <template id="provider-template">
139
190
  <article class="provider" role="listitem">
140
- <span class="provider-icon"></span>
141
- <span class="provider-text">
142
- <span class="vendor-line"><span class="vendor"></span><span class="tier" hidden></span></span>
143
- <span class="tool"></span>
144
- <span class="state"></span>
145
- </span>
191
+ <span class="card-art" aria-hidden="true"></span>
192
+ <div class="provider-head">
193
+ <span class="provider-icon"></span>
194
+ <span class="provider-text">
195
+ <span class="vendor-line"><span class="vendor"></span><span class="tier" hidden></span></span>
196
+ <span class="tool"></span>
197
+ <span class="state"></span>
198
+ </span>
199
+ </div>
146
200
  <div class="accounts" role="tablist" aria-label="Accounts" hidden></div>
147
201
  <div class="usage"></div>
148
202
  <div class="model-stats"></div>
149
203
  <div class="provider-links">
150
- <a class="console-link usage-link" target="_blank" rel="noopener noreferrer">Usage ↗</a>
151
- <a class="console-link billing-link" target="_blank" rel="noopener noreferrer">Billing ↗</a>
204
+ <a class="console-link usage-link" target="_blank" rel="noopener noreferrer">Usage</a>
205
+ <a class="console-link billing-link" target="_blank" rel="noopener noreferrer">Billing</a>
152
206
  </div>
153
207
  <div class="provider-actions">
154
208
  <button class="btn primary new" type="button">New</button>
@@ -194,14 +248,27 @@
194
248
  </section>
195
249
  </template>
196
250
 
251
+ <template id="history-template">
252
+ <article class="history-row" role="listitem">
253
+ <div class="history-main">
254
+ <div class="history-title"></div>
255
+ <div class="history-meta"></div>
256
+ </div>
257
+ <button class="session-id" type="button"></button>
258
+ <button class="btn primary history-resume" type="button"></button>
259
+ </article>
260
+ </template>
261
+
197
262
  <template id="session-template">
198
263
  <article class="session-card" role="listitem" tabindex="0">
264
+ <span class="card-art" aria-hidden="true"></span>
265
+ <span class="card-aura" aria-hidden="true"></span>
199
266
  <span class="level-badge" aria-hidden="true"></span>
200
267
  <div class="card-top">
201
268
  <span class="provider-icon"></span>
202
269
  <div class="card-title">
203
270
  <div class="name"></div>
204
- <div class="meta"></div>
271
+ <div class="meta"><span class="meta-text"></span><button class="session-id" type="button" hidden></button></div>
205
272
  </div>
206
273
  <button class="model-pill" type="button"></button>
207
274
  <span class="status-pill"></span>
@@ -213,6 +280,7 @@
213
280
  </div>
214
281
  <div class="card-actions">
215
282
  <button class="btn primary open" type="button">Open</button>
283
+ <button class="btn resume" type="button" hidden>Resume</button>
216
284
  <button class="btn rename" type="button">Rename</button>
217
285
  <button class="btn danger stop" type="button">Stop</button>
218
286
  <button class="btn remove" type="button">Remove</button>