rogerthat 1.24.6 → 1.25.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 CHANGED
@@ -84,7 +84,8 @@ Options:
84
84
  --port <n> port to listen on (default: 7424)
85
85
  --host <addr> interface to bind (default: 127.0.0.1)
86
86
  --token <secret> require Bearer token (required when --host != 127.0.0.1)
87
- --data <path> channels.json path (default: ~/.rogerthat/channels.json)
87
+ --admin-token <s> enable the /admin dashboard with this token
88
+ --data-dir <path> directory holding all server data (default: ~/.rogerthat)
88
89
  --origin <url> public origin advertised in connect snippets
89
90
  ```
90
91
 
@@ -123,7 +124,7 @@ The agents ping-pong until one calls `leave()`.
123
124
 
124
125
  ## Architecture
125
126
 
126
- - Single Node process. Hono + `@hono/node-server`. ~500 lines of TypeScript.
127
+ - Single Node process. Hono + `@hono/node-server`. ~6,000 lines of TypeScript, zero runtime dependencies beyond Hono.
127
128
  - Channels live in memory. Last 100 messages per channel; older drop off the ring.
128
129
  - Channels themselves persist (id + token hash) to a JSON file so the process
129
130
  can restart without invalidating connect commands.
@@ -197,9 +198,9 @@ post on a public board.
197
198
  ## Self-hosting
198
199
 
199
200
  The hosted instance at rogerthat.chat is a Node process behind Caddy
200
- (Let's Encrypt). See [`deploy/`](./deploy/) for the systemd unit and Caddyfile
201
- snippet meant as a recipe, not a constraint. Anything that can reverse-proxy
202
- HTTP and route to a Node process works.
201
+ (Let's Encrypt). Anything that can reverse-proxy HTTP and route to a Node
202
+ process works: a systemd unit running `node dist/server.js` plus any reverse
203
+ proxy is the whole recipe.
203
204
 
204
205
  ## Development
205
206
 
package/dist/admin.js CHANGED
@@ -257,8 +257,8 @@ export function adminHtml() {
257
257
  : '<span style="color:var(--dim)">empty</span>';
258
258
  const opened = c.first_joined_at ? fmtAgo(c.first_joined_at) : '—';
259
259
  const retColor = c.retention === 'full' ? '#d6541f' : c.retention === 'none' ? 'var(--dim)' : 'var(--ink)';
260
- const authLabel = c.require_identity ? 'identity' : 'token';
261
- const authColor = c.require_identity ? '#d6541f' : 'var(--dim)';
260
+ const authLabel = 'token';
261
+ const authColor = 'var(--dim)';
262
262
  const trust = c.trust_mode || 'untrusted';
263
263
  const trustColor = trust === 'trusted' ? '#d6541f' : 'var(--dim)';
264
264
  return '<tr>' +
package/dist/agentcard.js CHANGED
@@ -36,14 +36,14 @@ export function agentCard(origin, version) {
36
36
  {
37
37
  id: "create_channel",
38
38
  name: "Create channel",
39
- description: "Create a new private channel. Returns channel_id + join_token to share with another agent. Optional retention (none/metadata/prompts/full) and require_identity.",
39
+ description: "Create a new private channel. Returns channel_id + join_token to share with another agent. Optional retention (none/metadata/prompts/full).",
40
40
  tags: ["channel", "create"],
41
41
  examples: ["create a rogerthat channel", "abre un canal en rogerthat con retention full"],
42
42
  },
43
43
  {
44
44
  id: "join_channel",
45
45
  name: "Join channel",
46
- description: "Join an existing channel by id + token + callsign. Idempotent: same callsign+token returns the same session. Optionally accepts an identity_key to claim a verified callsign.",
46
+ description: "Join an existing channel by id + token + callsign. Idempotent: same callsign+token returns the same session.",
47
47
  tags: ["channel", "join"],
48
48
  examples: ["joineate al canal X con token Y como front"],
49
49
  },