agentchannel 0.8.2 → 0.9.1
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 +152 -50
- package/dist/brain.d.ts +78 -0
- package/dist/brain.js +271 -0
- package/dist/brain.js.map +1 -0
- package/dist/cli.js +226 -8
- package/dist/cli.js.map +1 -1
- package/dist/config.d.ts +15 -0
- package/dist/config.js +66 -6
- package/dist/config.js.map +1 -1
- package/dist/crypto.d.ts +34 -4
- package/dist/crypto.js +42 -6
- package/dist/crypto.js.map +1 -1
- package/dist/distill.d.ts +24 -0
- package/dist/distill.js +404 -0
- package/dist/distill.js.map +1 -0
- package/dist/local-store.d.ts +7 -0
- package/dist/local-store.js +54 -0
- package/dist/local-store.js.map +1 -0
- package/dist/mqtt-client.d.ts +9 -0
- package/dist/mqtt-client.js +311 -21
- package/dist/mqtt-client.js.map +1 -1
- package/dist/server.js +45 -0
- package/dist/server.js.map +1 -1
- package/dist/store.d.ts +3 -0
- package/dist/store.js +16 -2
- package/dist/store.js.map +1 -1
- package/dist/tools/brain.d.ts +2 -0
- package/dist/tools/brain.js +96 -0
- package/dist/tools/brain.js.map +1 -0
- package/dist/tools/channel.js +6 -6
- package/dist/tools/channel.js.map +1 -1
- package/dist/tools/get-message.js +1 -1
- package/dist/tools/get-message.js.map +1 -1
- package/dist/tools/hooks.js +4 -4
- package/dist/tools/hooks.js.map +1 -1
- package/dist/tools/index.js +8 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/info.js +3 -1
- package/dist/tools/info.js.map +1 -1
- package/dist/tools/kick.d.ts +3 -0
- package/dist/tools/kick.js +52 -0
- package/dist/tools/kick.js.map +1 -0
- package/dist/tools/members.js +3 -3
- package/dist/tools/members.js.map +1 -1
- package/dist/tools/read.js +5 -4
- package/dist/tools/read.js.map +1 -1
- package/dist/tools/retract.d.ts +3 -0
- package/dist/tools/retract.js +27 -0
- package/dist/tools/retract.js.map +1 -0
- package/dist/tools/update-channel.d.ts +3 -0
- package/dist/tools/update-channel.js +50 -0
- package/dist/tools/update-channel.js.map +1 -0
- package/dist/types.d.ts +23 -1
- package/dist/web.d.ts +1 -0
- package/dist/web.js +85 -0
- package/dist/web.js.map +1 -1
- package/package.json +3 -2
- package/ui/app.js +517 -88
- package/ui/index.html +5 -6
- package/ui/style.css +39 -12
- package/LICENSE +0 -21
package/ui/index.html
CHANGED
|
@@ -10,13 +10,12 @@
|
|
|
10
10
|
<div class="app">
|
|
11
11
|
<div class="sidebar" id="sidebar">
|
|
12
12
|
<div class="sidebar__header">
|
|
13
|
-
<
|
|
13
|
+
<div class="sidebar__brand-group">
|
|
14
|
+
<span class="sidebar__brand"><span style="color:#00c858;margin-right:2px">#</span>AgentChannel</span>
|
|
15
|
+
<span class="sidebar__tagline">Agents' collective brain</span>
|
|
16
|
+
</div>
|
|
14
17
|
<button onclick="toggleSidebar()" class="sidebar__collapse" title="Hide sidebar"><svg width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2"><line x1="3" y1="6" x2="21" y2="6"/><line x1="3" y1="12" x2="21" y2="12"/><line x1="3" y1="18" x2="21" y2="18"/></svg></button>
|
|
15
|
-
<button onclick="toggleSidebar()" class="
|
|
16
|
-
</div>
|
|
17
|
-
<div class="sidebar__collapsed-logo"><span style="color:#00c858;font-size:1.2rem;font-weight:700">#</span></div>
|
|
18
|
-
<div class="sidebar__tagline-row">
|
|
19
|
-
<span class="sidebar__tagline"><svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="vertical-align:-1px;margin-right:3px"><rect x="3" y="11" width="18" height="11" rx="2"/><path d="M7 11V7a5 5 0 0 1 10 0v4"/></svg>Encrypted agent communications</span>
|
|
18
|
+
<button onclick="toggleSidebar()" class="sidebar__collapse-open" title="Show sidebar"><span style="color:#00c858;font-size:1.1rem;font-weight:700;cursor:pointer">#</span></button>
|
|
20
19
|
</div>
|
|
21
20
|
<div class="sidebar__channels" id="channel-list"></div>
|
|
22
21
|
<div id="update-banner" style="display:none;border-top:1px solid var(--border);background:var(--bg-alt)"></div>
|
package/ui/style.css
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
--border: rgba(255,255,255,0.06);
|
|
20
20
|
--accent: #00c858;
|
|
21
21
|
--accent-brand: #00c858;
|
|
22
|
-
--accent-brand-bg: rgba(0,200,88,0.
|
|
22
|
+
--accent-brand-bg: rgba(0,200,88,0.18);
|
|
23
23
|
--sidebar-active: rgba(255,255,255,0.06);
|
|
24
24
|
--tag: #7a8da8;
|
|
25
25
|
--tag-bg: rgba(100,130,180,0.06);
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
--text-sidebar: #6b7585; --text-sidebar-active: #d0d5de;
|
|
58
58
|
--mention-bg: rgba(0,200,88,0.08); --mention-text: #00c858;
|
|
59
59
|
--border: rgba(255,255,255,0.06); --accent: #00c858; --accent-brand: #00c858;
|
|
60
|
-
--accent-brand-bg: rgba(0,200,88,0.
|
|
60
|
+
--accent-brand-bg: rgba(0,200,88,0.18);
|
|
61
61
|
--sidebar-active: rgba(255,255,255,0.06);
|
|
62
62
|
--tag: #7a8da8; --tag-bg: rgba(100,130,180,0.06);
|
|
63
63
|
--icon-btn-bg: rgba(255,255,255,0.08); --icon-btn-border: rgba(255,255,255,0.12);
|
|
@@ -82,14 +82,16 @@
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
html { font-size: 16px; -webkit-font-smoothing: antialiased; }
|
|
85
|
+
input, textarea, select, button { outline: none; -webkit-appearance: none; }
|
|
86
|
+
input:focus, textarea:focus { border-color: var(--accent) !important; }
|
|
85
87
|
body { font-family: var(--font); background: var(--bg); color: var(--text); height: 100vh; overflow: hidden; }
|
|
86
88
|
|
|
87
89
|
.app { display: flex; height: 100vh; border-top: 1px solid var(--border); }
|
|
88
90
|
|
|
89
91
|
/* Sidebar */
|
|
90
92
|
.sidebar { width: 260px; background: var(--bg-sidebar); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; }
|
|
91
|
-
.sidebar__header { padding: 16px 20px
|
|
92
|
-
.
|
|
93
|
+
.sidebar__header { padding: 16px 16px 14px 20px; display: flex; align-items: flex-start; justify-content: space-between; }
|
|
94
|
+
.sidebar__brand-group { display: flex; flex-direction: column; gap: 1px; }
|
|
93
95
|
.sidebar__collapse { background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 4px; border-radius: 4px; line-height: 0; }
|
|
94
96
|
.sidebar__collapse:hover { color: var(--text); background: var(--bg-hover); }
|
|
95
97
|
.sidebar__brand { font-size: 1.05rem; font-weight: 700; color: var(--text); letter-spacing: -0.02em; }
|
|
@@ -101,7 +103,9 @@ body { font-family: var(--font); background: var(--bg); color: var(--text); heig
|
|
|
101
103
|
.sidebar__channel .icon { width: 0; margin-right: 0; }
|
|
102
104
|
.sidebar__channel .badge { margin-left: 4px; background: var(--text-muted); color: var(--bg); font-size: 0.5rem; font-weight: 600; min-width: 14px; height: 14px; border-radius: 7px; display: flex; align-items: center; justify-content: center; padding: 0 3px; opacity: 0.6; }
|
|
103
105
|
.sidebar__group { padding: 12px 12px 4px; font-size: 0.65rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.05em; }
|
|
104
|
-
.sidebar__channel.sub { padding-left:
|
|
106
|
+
.sidebar__channel.sub { padding-left: 22px; font-size: 0.78rem; }
|
|
107
|
+
.sidebar__create { color: var(--text-muted) !important; margin-top: 10px; }
|
|
108
|
+
.sidebar__create:hover { color: var(--accent) !important; }
|
|
105
109
|
.sidebar__status { padding: 16px 20px; font-size: 0.75rem; color: var(--text-muted); border-top: 1px solid var(--border); }
|
|
106
110
|
.sidebar__status.connected { color: var(--accent-brand); }
|
|
107
111
|
.sidebar__user { display: flex; align-items: center; gap: 8px; padding: 10px 16px; margin-top: auto; border-top: 1px solid var(--border); position: relative; overflow: hidden; }
|
|
@@ -145,8 +149,8 @@ body { font-family: var(--font); background: var(--bg); color: var(--text); heig
|
|
|
145
149
|
.copy-btn { position: absolute; top: 6px; right: 6px; background: var(--border); border: none; border-radius: 4px; color: var(--text-muted); font-size: 0.65rem; padding: 2px 6px; cursor: pointer; opacity: 0; transition: opacity 0.15s; }
|
|
146
150
|
.copy-btn:hover { color: var(--text); }
|
|
147
151
|
.conversation__text pre:hover .copy-btn, .readme-card pre:hover .copy-btn { opacity: 1; }
|
|
148
|
-
.msg-copy { position: absolute; top:
|
|
149
|
-
.msg-copy:hover { color: var(--text); }
|
|
152
|
+
.msg-copy { position: absolute; top: 4px; right: 8px; background: var(--bg); border: 1px solid var(--border); border-radius: 4px; color: var(--text-muted); cursor: pointer; opacity: 0; transition: opacity 0.15s; padding: 2px 6px; font-size: 0.65rem; }
|
|
153
|
+
.msg-copy:hover { color: var(--text); background: var(--bg-hover); }
|
|
150
154
|
.conversation:hover .msg-copy { opacity: 1; }
|
|
151
155
|
.conversation__text pre code, .readme-card pre code { background: none; padding: 0; font-size: 0.8rem; }
|
|
152
156
|
.conversation__text p { margin: 0 0 4px; }
|
|
@@ -161,7 +165,7 @@ body { font-family: var(--font); background: var(--bg); color: var(--text); heig
|
|
|
161
165
|
.conversation__text--grouped { }
|
|
162
166
|
|
|
163
167
|
.mention { background: var(--mention-bg); color: var(--mention-text); padding: 1px 4px; border-radius: 4px; font-weight: 500; font-size: 0.875rem; }
|
|
164
|
-
.channel-tag { background: var(--
|
|
168
|
+
.channel-tag { background: var(--mention-bg); color: var(--mention-text); padding: 1px 4px; border-radius: 4px; font-weight: 500; font-size: inherit; cursor: pointer; }
|
|
165
169
|
|
|
166
170
|
/* Subject */
|
|
167
171
|
.conversation__subject { font-weight: 600; font-size: 0.92rem; color: var(--text); margin-bottom: 2px; line-height: 1.4; }
|
|
@@ -209,14 +213,13 @@ body { font-family: var(--font); background: var(--bg); color: var(--text); heig
|
|
|
209
213
|
.sidebar.collapsed { width: 56px; overflow: hidden; }
|
|
210
214
|
.sidebar.collapsed .sidebar__header { padding: 12px 0; justify-content: center; }
|
|
211
215
|
.sidebar.collapsed .sidebar__brand,
|
|
212
|
-
.sidebar.collapsed .sidebar__tagline
|
|
216
|
+
.sidebar.collapsed .sidebar__tagline,
|
|
213
217
|
.sidebar.collapsed .sidebar__channels,
|
|
214
|
-
.sidebar.collapsed #update-banner { display: none; }
|
|
218
|
+
.sidebar.collapsed #update-banner { display: none !important; }
|
|
215
219
|
.sidebar.collapsed .sidebar__collapse { display: none; }
|
|
216
220
|
.sidebar__collapse-open { display: none; }
|
|
217
221
|
.sidebar.collapsed .sidebar__collapse-open { display: flex; }
|
|
218
|
-
.
|
|
219
|
-
.sidebar.collapsed .sidebar__collapsed-logo { display: block; text-align: center; margin: 12px 0 0; }
|
|
222
|
+
.sidebar.collapsed .sidebar__collapse-open { display: flex; justify-content: center; background: none; border: none; padding: 0; margin: 4px 0 0; }
|
|
220
223
|
.sidebar.collapsed .sidebar__user { flex-direction: column; align-items: center; gap: 6px; padding: 10px 0; background: none !important; }
|
|
221
224
|
.sidebar.collapsed .sidebar__user span[style*="flex:1"] { display: none; }
|
|
222
225
|
.sidebar.collapsed .sidebar__user-name { display: none; }
|
|
@@ -225,6 +228,30 @@ body { font-family: var(--font); background: var(--bg); color: var(--text); heig
|
|
|
225
228
|
.members.collapsed { width: 0; overflow: hidden; border: none; }
|
|
226
229
|
.sidebar, .members { transition: width 0.15s ease; }
|
|
227
230
|
|
|
231
|
+
/* Switch toggle (slider) */
|
|
232
|
+
.switch { position: relative; display: inline-block; width: 32px; height: 18px; flex-shrink: 0; }
|
|
233
|
+
.switch input { opacity: 0; width: 0; height: 0; }
|
|
234
|
+
.switch .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background: var(--border); border-radius: 18px; transition: 0.2s; }
|
|
235
|
+
.switch .slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 2px; bottom: 2px; background: var(--text-muted); border-radius: 50%; transition: 0.2s; }
|
|
236
|
+
.switch input:checked + .slider { background: var(--accent-brand); }
|
|
237
|
+
.switch input:checked + .slider:before { transform: translateX(14px); background: #fff; }
|
|
238
|
+
|
|
239
|
+
/* Channel row action icons — hidden by default, visible on hover */
|
|
240
|
+
.sidebar__channel-actions .sync-toggle,
|
|
241
|
+
.sidebar__channel-actions .sidebar__arrow { opacity: 0; transition: opacity 0.15s; }
|
|
242
|
+
.sidebar__channel:hover .sidebar__channel-actions .sync-toggle,
|
|
243
|
+
.sidebar__channel:hover .sidebar__channel-actions .sidebar__arrow { opacity: 0.6; }
|
|
244
|
+
.sidebar__channel:hover .sidebar__channel-actions .sync-toggle:hover,
|
|
245
|
+
.sidebar__channel:hover .sidebar__channel-actions .sidebar__arrow:hover { opacity: 1; }
|
|
246
|
+
/* Sync ON always shows a subtle indicator */
|
|
247
|
+
.sync-toggle[data-synced="1"] { opacity: 0.25 !important; }
|
|
248
|
+
.sidebar__channel:hover .sync-toggle[data-synced="1"] { opacity: 0.6 !important; }
|
|
249
|
+
.sidebar__channel:hover .sync-toggle[data-synced="1"]:hover { opacity: 1 !important; }
|
|
250
|
+
|
|
251
|
+
/* Retracted messages */
|
|
252
|
+
.retracted { text-decoration: line-through; opacity: 0.4; }
|
|
253
|
+
.retracted-label { font-size: 0.7rem; color: var(--text-muted); font-style: italic; margin-right: 4px; }
|
|
254
|
+
|
|
228
255
|
@media (max-width: 700px) {
|
|
229
256
|
.sidebar { width: 0; overflow: hidden; border: none; }
|
|
230
257
|
.members { width: 0; overflow: hidden; border: none; }
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 AgentChannel
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|