@essentialai/cogent-server 2.0.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 (166) hide show
  1. package/.env.example +68 -0
  2. package/CHANGELOG.md +16 -0
  3. package/Caddyfile +8 -0
  4. package/Dockerfile +46 -0
  5. package/LICENSE +190 -0
  6. package/README.md +89 -0
  7. package/config.json.example +16 -0
  8. package/dist/__tests__/helpers.d.ts +56 -0
  9. package/dist/__tests__/helpers.d.ts.map +1 -0
  10. package/dist/__tests__/helpers.js +138 -0
  11. package/dist/__tests__/helpers.js.map +1 -0
  12. package/dist/app.d.ts +38 -0
  13. package/dist/app.d.ts.map +1 -0
  14. package/dist/app.js +60 -0
  15. package/dist/app.js.map +1 -0
  16. package/dist/config.d.ts +88 -0
  17. package/dist/config.d.ts.map +1 -0
  18. package/dist/config.js +148 -0
  19. package/dist/config.js.map +1 -0
  20. package/dist/index.d.ts +2 -0
  21. package/dist/index.d.ts.map +1 -0
  22. package/dist/index.js +102 -0
  23. package/dist/index.js.map +1 -0
  24. package/dist/middleware/auth.d.ts +15 -0
  25. package/dist/middleware/auth.d.ts.map +1 -0
  26. package/dist/middleware/auth.js +47 -0
  27. package/dist/middleware/auth.js.map +1 -0
  28. package/dist/middleware/error-handler.d.ts +14 -0
  29. package/dist/middleware/error-handler.d.ts.map +1 -0
  30. package/dist/middleware/error-handler.js +26 -0
  31. package/dist/middleware/error-handler.js.map +1 -0
  32. package/dist/middleware/not-found.d.ts +8 -0
  33. package/dist/middleware/not-found.d.ts.map +1 -0
  34. package/dist/middleware/not-found.js +12 -0
  35. package/dist/middleware/not-found.js.map +1 -0
  36. package/dist/middleware/request-logger.d.ts +17 -0
  37. package/dist/middleware/request-logger.d.ts.map +1 -0
  38. package/dist/middleware/request-logger.js +65 -0
  39. package/dist/middleware/request-logger.js.map +1 -0
  40. package/dist/middleware/ws-auth.d.ts +21 -0
  41. package/dist/middleware/ws-auth.d.ts.map +1 -0
  42. package/dist/middleware/ws-auth.js +59 -0
  43. package/dist/middleware/ws-auth.js.map +1 -0
  44. package/dist/routes/health.d.ts +11 -0
  45. package/dist/routes/health.d.ts.map +1 -0
  46. package/dist/routes/health.js +34 -0
  47. package/dist/routes/health.js.map +1 -0
  48. package/dist/routes/messages.d.ts +19 -0
  49. package/dist/routes/messages.d.ts.map +1 -0
  50. package/dist/routes/messages.js +154 -0
  51. package/dist/routes/messages.js.map +1 -0
  52. package/dist/routes/peers.d.ts +17 -0
  53. package/dist/routes/peers.d.ts.map +1 -0
  54. package/dist/routes/peers.js +169 -0
  55. package/dist/routes/peers.js.map +1 -0
  56. package/dist/routes/poll.d.ts +15 -0
  57. package/dist/routes/poll.d.ts.map +1 -0
  58. package/dist/routes/poll.js +97 -0
  59. package/dist/routes/poll.js.map +1 -0
  60. package/dist/routes/sessions.d.ts +14 -0
  61. package/dist/routes/sessions.d.ts.map +1 -0
  62. package/dist/routes/sessions.js +113 -0
  63. package/dist/routes/sessions.js.map +1 -0
  64. package/dist/routes/ui.d.ts +21 -0
  65. package/dist/routes/ui.d.ts.map +1 -0
  66. package/dist/routes/ui.js +173 -0
  67. package/dist/routes/ui.js.map +1 -0
  68. package/dist/routes/validation-hook.d.ts +18 -0
  69. package/dist/routes/validation-hook.d.ts.map +1 -0
  70. package/dist/routes/validation-hook.js +24 -0
  71. package/dist/routes/validation-hook.js.map +1 -0
  72. package/dist/services/auth-service.d.ts +48 -0
  73. package/dist/services/auth-service.d.ts.map +1 -0
  74. package/dist/services/auth-service.js +63 -0
  75. package/dist/services/auth-service.js.map +1 -0
  76. package/dist/services/connection-manager.d.ts +108 -0
  77. package/dist/services/connection-manager.d.ts.map +1 -0
  78. package/dist/services/connection-manager.js +216 -0
  79. package/dist/services/connection-manager.js.map +1 -0
  80. package/dist/services/message-queue.d.ts +56 -0
  81. package/dist/services/message-queue.d.ts.map +1 -0
  82. package/dist/services/message-queue.js +164 -0
  83. package/dist/services/message-queue.js.map +1 -0
  84. package/dist/services/peer-cleanup.d.ts +39 -0
  85. package/dist/services/peer-cleanup.d.ts.map +1 -0
  86. package/dist/services/peer-cleanup.js +96 -0
  87. package/dist/services/peer-cleanup.js.map +1 -0
  88. package/dist/services/session-cleanup.d.ts +44 -0
  89. package/dist/services/session-cleanup.d.ts.map +1 -0
  90. package/dist/services/session-cleanup.js +100 -0
  91. package/dist/services/session-cleanup.js.map +1 -0
  92. package/dist/services/session-store.d.ts +103 -0
  93. package/dist/services/session-store.d.ts.map +1 -0
  94. package/dist/services/session-store.js +292 -0
  95. package/dist/services/session-store.js.map +1 -0
  96. package/dist/services/stats-service.d.ts +48 -0
  97. package/dist/services/stats-service.d.ts.map +1 -0
  98. package/dist/services/stats-service.js +77 -0
  99. package/dist/services/stats-service.js.map +1 -0
  100. package/dist/types.d.ts +60 -0
  101. package/dist/types.d.ts.map +1 -0
  102. package/dist/types.js +2 -0
  103. package/dist/types.js.map +1 -0
  104. package/dist/ui/components/Footer.d.ts +7 -0
  105. package/dist/ui/components/Footer.d.ts.map +1 -0
  106. package/dist/ui/components/Footer.js +17 -0
  107. package/dist/ui/components/Footer.js.map +1 -0
  108. package/dist/ui/components/Layout.d.ts +13 -0
  109. package/dist/ui/components/Layout.d.ts.map +1 -0
  110. package/dist/ui/components/Layout.js +11 -0
  111. package/dist/ui/components/Layout.js.map +1 -0
  112. package/dist/ui/components/NavBar.d.ts +12 -0
  113. package/dist/ui/components/NavBar.d.ts.map +1 -0
  114. package/dist/ui/components/NavBar.js +60 -0
  115. package/dist/ui/components/NavBar.js.map +1 -0
  116. package/dist/ui/components/StatCard.d.ts +14 -0
  117. package/dist/ui/components/StatCard.d.ts.map +1 -0
  118. package/dist/ui/components/StatCard.js +32 -0
  119. package/dist/ui/components/StatCard.js.map +1 -0
  120. package/dist/ui/components/Terminal.d.ts +13 -0
  121. package/dist/ui/components/Terminal.d.ts.map +1 -0
  122. package/dist/ui/components/Terminal.js +37 -0
  123. package/dist/ui/components/Terminal.js.map +1 -0
  124. package/dist/ui/pages/AdminDashboard.d.ts +13 -0
  125. package/dist/ui/pages/AdminDashboard.d.ts.map +1 -0
  126. package/dist/ui/pages/AdminDashboard.js +59 -0
  127. package/dist/ui/pages/AdminDashboard.js.map +1 -0
  128. package/dist/ui/pages/HowToPage.d.ts +8 -0
  129. package/dist/ui/pages/HowToPage.d.ts.map +1 -0
  130. package/dist/ui/pages/HowToPage.js +312 -0
  131. package/dist/ui/pages/HowToPage.js.map +1 -0
  132. package/dist/ui/pages/LandingPage.d.ts +13 -0
  133. package/dist/ui/pages/LandingPage.d.ts.map +1 -0
  134. package/dist/ui/pages/LandingPage.js +160 -0
  135. package/dist/ui/pages/LandingPage.js.map +1 -0
  136. package/dist/ui/pages/MessageLog.d.ts +25 -0
  137. package/dist/ui/pages/MessageLog.d.ts.map +1 -0
  138. package/dist/ui/pages/MessageLog.js +146 -0
  139. package/dist/ui/pages/MessageLog.js.map +1 -0
  140. package/dist/ui/pages/SessionDetail.d.ts +14 -0
  141. package/dist/ui/pages/SessionDetail.d.ts.map +1 -0
  142. package/dist/ui/pages/SessionDetail.js +165 -0
  143. package/dist/ui/pages/SessionDetail.js.map +1 -0
  144. package/dist/ui/pages/SessionList.d.ts +22 -0
  145. package/dist/ui/pages/SessionList.d.ts.map +1 -0
  146. package/dist/ui/pages/SessionList.js +88 -0
  147. package/dist/ui/pages/SessionList.js.map +1 -0
  148. package/dist/ui/styles/theme.d.ts +35 -0
  149. package/dist/ui/styles/theme.d.ts.map +1 -0
  150. package/dist/ui/styles/theme.js +65 -0
  151. package/dist/ui/styles/theme.js.map +1 -0
  152. package/dist/ws/frames.d.ts +82 -0
  153. package/dist/ws/frames.d.ts.map +1 -0
  154. package/dist/ws/frames.js +68 -0
  155. package/dist/ws/frames.js.map +1 -0
  156. package/dist/ws/handler.d.ts +26 -0
  157. package/dist/ws/handler.d.ts.map +1 -0
  158. package/dist/ws/handler.js +72 -0
  159. package/dist/ws/handler.js.map +1 -0
  160. package/dist/ws/heartbeat.d.ts +18 -0
  161. package/dist/ws/heartbeat.d.ts.map +1 -0
  162. package/dist/ws/heartbeat.js +39 -0
  163. package/dist/ws/heartbeat.js.map +1 -0
  164. package/docker-compose.yml +38 -0
  165. package/nginx.conf.example +63 -0
  166. package/package.json +61 -0
@@ -0,0 +1,160 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "hono/jsx/jsx-runtime";
2
+ import { css } from "hono/css";
3
+ import { Layout } from "../components/Layout.js";
4
+ import { StatCard } from "../components/StatCard.js";
5
+ import { Terminal } from "../components/Terminal.js";
6
+ import { colors, cursorBlink } from "../styles/theme.js";
7
+ // --- Styles ---
8
+ const container = css `
9
+ max-width: 960px;
10
+ margin: 0 auto;
11
+ padding: 2rem 1.5rem;
12
+ `;
13
+ const heroSection = css `
14
+ text-align: center;
15
+ padding: 3rem 0 2rem;
16
+ `;
17
+ const heroTitle = css `
18
+ font-size: 2.5rem;
19
+ font-weight: 700;
20
+ color: ${colors.green};
21
+ margin: 0 0 0.75rem 0;
22
+ `;
23
+ const asciiLogo = css `
24
+ font-size: 0.45rem;
25
+ line-height: 1.15;
26
+ margin: 0;
27
+ color: ${colors.green};
28
+ font-family: inherit;
29
+ display: inline-block;
30
+ text-align: left;
31
+ `;
32
+ const heroSubtitle = css `
33
+ font-size: 1rem;
34
+ color: ${colors.textMuted};
35
+ margin: 0;
36
+ `;
37
+ const cursor = css `
38
+ display: inline-block;
39
+ width: 3px;
40
+ height: 2.85rem;
41
+ background: ${colors.green};
42
+ margin-left: 4px;
43
+ vertical-align: bottom;
44
+ animation: ${cursorBlink} 1s step-end infinite;
45
+ `;
46
+ const statsRow = css `
47
+ display: flex;
48
+ gap: 1.5rem;
49
+ flex-wrap: wrap;
50
+ justify-content: center;
51
+ margin: 2rem 0 3rem;
52
+ `;
53
+ const section = css `
54
+ margin-bottom: 2.5rem;
55
+ `;
56
+ const sectionTitle = css `
57
+ font-size: 1.1rem;
58
+ color: ${colors.text};
59
+ margin: 0 0 1rem 0;
60
+ font-weight: 700;
61
+ `;
62
+ const codeBlock = css `
63
+ background: ${colors.bg};
64
+ border: 1px solid ${colors.border};
65
+ border-radius: 4px;
66
+ padding: 1rem;
67
+ color: ${colors.green};
68
+ font-size: 0.9rem;
69
+ overflow-x: auto;
70
+ white-space: pre;
71
+ margin: 0.75rem 0;
72
+ `;
73
+ const noteText = css `
74
+ color: ${colors.textMuted};
75
+ font-size: 0.85rem;
76
+ margin: 0.75rem 0;
77
+ `;
78
+ const stepNumber = css `
79
+ color: ${colors.amber};
80
+ font-weight: 700;
81
+ `;
82
+ const stepCommand = css `
83
+ color: ${colors.green};
84
+ `;
85
+ const stepLine = css `
86
+ margin: 0.75rem 0;
87
+ line-height: 1.6;
88
+ `;
89
+ const promptChar = css `
90
+ color: ${colors.textMuted};
91
+ margin-right: 0.5rem;
92
+ `;
93
+ const howToLink = css `
94
+ display: block;
95
+ background: ${colors.bgCard};
96
+ border: 1px solid ${colors.border};
97
+ border-radius: 8px;
98
+ padding: 1.5rem 2rem;
99
+ text-align: center;
100
+ text-decoration: none;
101
+ transition: border-color 0.2s;
102
+ margin-bottom: 2.5rem;
103
+ &:hover {
104
+ border-color: ${colors.green};
105
+ text-decoration: none;
106
+ }
107
+ `;
108
+ const howToTitle = css `
109
+ font-size: 1.1rem;
110
+ color: ${colors.green};
111
+ font-weight: 700;
112
+ margin: 0 0 0.5rem 0;
113
+ `;
114
+ const howToDesc = css `
115
+ font-size: 0.85rem;
116
+ color: ${colors.textMuted};
117
+ margin: 0;
118
+ `;
119
+ const footer = css `
120
+ text-align: center;
121
+ padding: 2rem 0;
122
+ color: ${colors.textMuted};
123
+ font-size: 0.8rem;
124
+ border-top: 1px solid ${colors.border};
125
+ margin-top: 2rem;
126
+ `;
127
+ // --- JSON config snippet for manual setup ---
128
+ const mcpConfigSnippet = `{
129
+ "mcpServers": {
130
+ "cogent-bridge": {
131
+ "command": "npx",
132
+ "args": ["-y", "@essentialai/cogent-bridge"],
133
+ "env": {
134
+ "COGENT_ENDPOINT": "https://cogent.tools"
135
+ }
136
+ }
137
+ }
138
+ }`;
139
+ // --- SSE inline script ---
140
+ const sseScript = `
141
+ const es = new EventSource('/ui/stats/stream');
142
+ es.addEventListener('stats', (e) => {
143
+ const d = JSON.parse(e.data);
144
+ const el = (id) => document.getElementById(id);
145
+ if (el('stat-sessions')) el('stat-sessions').textContent = d.activeSessions;
146
+ if (el('stat-agents')) el('stat-agents').textContent = d.connectedAgents;
147
+ if (el('stat-messages')) el('stat-messages').textContent = d.totalMessagesRelayed;
148
+ });
149
+ `;
150
+ /**
151
+ * Full landing page with hero, live stats, installation instructions,
152
+ * connection guide, and SSE script for real-time stat updates.
153
+ */
154
+ export const LandingPage = ({ stats }) => (_jsx(Layout, { title: "COGENT", children: _jsxs("div", { class: container, children: [_jsxs("div", { class: heroSection, children: [_jsxs("h1", { class: heroTitle, children: [_jsx("pre", { class: asciiLogo, children: ` ██████╗ ██████╗ ██████╗ ███████╗███╗ ██╗████████╗
155
+ ██╔════╝██╔═══██╗██╔════╝ ██╔════╝████╗ ██║╚══██╔══╝
156
+ ██║ ██║ ██║██║ ███╗█████╗ ██╔██╗ ██║ ██║
157
+ ██║ ██║ ██║██║ ██║██╔══╝ ██║╚██╗██║ ██║
158
+ ╚██████╗╚██████╔╝╚██████╔╝███████╗██║ ╚████║ ██║
159
+ ╚═════╝ ╚═════╝ ╚═════╝ ╚══════╝╚═╝ ╚═══╝ ╚═╝` }), _jsx("span", { class: cursor })] }), _jsx("p", { class: heroSubtitle, children: "Real-time relay for Claude Code inter-session communication" }), _jsxs("p", { class: heroSubtitle, style: "margin-top: 0.5rem; font-size: 0.8rem;", children: ["by ", _jsx("a", { href: "https://essentialai.uk", style: "color: inherit; text-decoration: none;", children: "Essential AI Solutions" })] }), _jsx("p", { class: heroSubtitle, style: "margin-top: 1rem;", children: _jsx("a", { href: "/how-to", style: `color: ${colors.green}; font-weight: 700;`, children: "How-To Guide \u2192" }) })] }), _jsxs("div", { class: statsRow, children: [_jsx(StatCard, { id: "stat-sessions", value: stats.activeSessions, label: "Active Sessions" }), _jsx(StatCard, { id: "stat-agents", value: stats.connectedAgents, label: "Connected Agents" }), _jsx(StatCard, { id: "stat-messages", value: stats.totalMessagesRelayed, label: "Messages Relayed" })] }), _jsxs("div", { class: section, children: [_jsx("h2", { class: sectionTitle, children: "Install via Plugin Marketplace (Recommended)" }), _jsxs(Terminal, { title: "Two Commands \u2014 Full Setup", children: [_jsx("p", { class: noteText, children: "Install the plugin with slash commands, auto-discovery, and cloud relay:" }), _jsxs("div", { class: codeBlock, children: [_jsx("span", { class: promptChar, children: "$" }), _jsx("span", { class: stepCommand, children: "claude plugin marketplace add eaisdevelopment/cogent" })] }), _jsxs("div", { class: codeBlock, children: [_jsx("span", { class: promptChar, children: "$" }), _jsx("span", { class: stepCommand, children: "claude plugin install cogent@cogent" })] }), _jsxs("p", { class: noteText, children: ["Restart Claude Code. Use ", _jsx("span", { class: stepCommand, children: "/cogent:register" }), " to join the bridge \u2014 session discovery, registration, and message protocol are handled automatically."] })] })] }), _jsxs("div", { class: section, children: [_jsx("h2", { class: sectionTitle, children: "Alternative: Manual MCP Setup" }), _jsxs(Terminal, { title: "MCP Tools Only (No Slash Commands)", children: [_jsx("p", { class: noteText, children: "Or use a single command to register the MCP server directly:" }), _jsxs("div", { class: codeBlock, children: [_jsx("span", { class: promptChar, children: "$" }), _jsx("span", { class: stepCommand, children: "claude mcp add cogent -e COGENT_ENDPOINT=https://cogent.tools -s user -- npx -y @essentialai/cogent-bridge" })] }), _jsxs("p", { class: noteText, children: ["This gives you the six ", _jsx("span", { class: stepCommand, children: "cogent_" }), " MCP tools. For slash commands (", _jsx("span", { class: stepCommand, children: "/cogent:register" }), ", etc.), use the Plugin Marketplace above."] })] })] }), _jsxs("div", { class: section, children: [_jsx("h2", { class: sectionTitle, children: "Quick Start" }), _jsxs(Terminal, { title: "Quick Start", children: [_jsxs("div", { class: stepLine, children: [_jsx("span", { class: stepNumber, children: "1." }), " Create a channel with a friendly name"] }), _jsxs("div", { class: codeBlock, children: [_jsx("span", { class: promptChar, children: ">" }), _jsx("span", { class: stepCommand, children: ` Create a Cogent channel called "my-project" with secret "team-secret"` })] }), _jsxs("p", { class: noteText, children: ["Returns a channel name (e.g., ", _jsx("span", { class: stepCommand, children: "my-project" }), ") and a secret to share. Omit the name to auto-generate one (e.g., ", _jsx("span", { class: stepCommand, children: "swift-fox-a3f1" }), ")."] }), _jsxs("div", { class: stepLine, children: [_jsx("span", { class: stepNumber, children: "2." }), " Join from another Claude Code instance using the channel name"] }), _jsxs("div", { class: codeBlock, children: [_jsx("span", { class: promptChar, children: ">" }), _jsx("span", { class: stepCommand, children: ` Join Cogent channel "my-project" with secret "team-secret"` })] }), _jsxs("div", { class: stepLine, children: [_jsx("span", { class: stepNumber, children: "3." }), " Start communicating"] }), _jsxs("div", { class: codeBlock, children: [_jsx("span", { class: promptChar, children: ">" }), _jsx("span", { class: stepCommand, children: ` Register as "backend" and send a message to "frontend"` })] })] })] }), _jsxs("a", { href: "/how-to", class: howToLink, children: [_jsx("div", { class: howToTitle, children: "How Teams Deliver Faster with Cogent \u2192" }), _jsx("p", { class: howToDesc, children: "Real-world use cases, command examples, and best practices for parallel development, cross-team bug fixes, API contract negotiation, and more." })] }), _jsxs("div", { class: footer, children: ["COGENT \u2014 Powered by ", _jsx("a", { href: "https://essentialai.uk", style: "color: inherit;", children: "Essential AI Solutions Ltd." }), " \u2014 ", _jsx("a", { href: "/", style: "color: inherit;", children: "cogent.tools" })] }), _jsx("script", { dangerouslySetInnerHTML: { __html: sseScript } })] }) }));
160
+ //# sourceMappingURL=LandingPage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LandingPage.js","sourceRoot":"","sources":["../../../src/ui/pages/LandingPage.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,GAAG,EAAE,MAAM,UAAU,CAAC;AAC/B,OAAO,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAC;AACjD,OAAO,E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0 +1,25 @@
1
+ import type { FC } from "hono/jsx";
2
+ import type { MessageRecord } from "@essentialai/cogent";
3
+ /** A message record enriched with the session it belongs to. */
4
+ export interface MessageWithSession extends MessageRecord {
5
+ sessionId: string;
6
+ }
7
+ /** Filter state for the message log. */
8
+ export interface MessageFilters {
9
+ sessionId?: string;
10
+ peerId?: string;
11
+ query?: string;
12
+ }
13
+ /** Props for the MessageLog page. */
14
+ interface MessageLogProps {
15
+ messages: MessageWithSession[];
16
+ filters: MessageFilters;
17
+ sessions: string[];
18
+ }
19
+ /**
20
+ * Filterable message log viewer across all sessions.
21
+ * Supports filtering by session, peer ID, and text content search.
22
+ */
23
+ export declare const MessageLog: FC<MessageLogProps>;
24
+ export {};
25
+ //# sourceMappingURL=MessageLog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageLog.d.ts","sourceRoot":"","sources":["../../../src/ui/pages/MessageLog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAMnC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAEzD,gEAAgE;AAChE,MAAM,WAAW,kBAAmB,SAAQ,aAAa;IACvD,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wCAAwC;AACxC,MAAM,WAAW,cAAc;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,qCAAqC;AACrC,UAAU,eAAe;IACvB,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,OAAO,EAAE,cAAc,CAAC;IACxB,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAoJD;;;GAGG;AACH,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAoG1C,CAAC"}
@@ -0,0 +1,146 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "hono/jsx/jsx-runtime";
2
+ import { css } from "hono/css";
3
+ import { Layout } from "../components/Layout.js";
4
+ import { NavBar } from "../components/NavBar.js";
5
+ import { Footer } from "../components/Footer.js";
6
+ import { colors, fonts } from "../styles/theme.js";
7
+ const container = css `
8
+ max-width: 960px;
9
+ margin: 0 auto;
10
+ padding: 0 1.5rem 2rem;
11
+ `;
12
+ const pageTitle = css `
13
+ font-size: 1.5rem;
14
+ font-weight: 700;
15
+ color: ${colors.text};
16
+ margin: 0 0 2rem 0;
17
+ `;
18
+ const filterForm = css `
19
+ display: flex;
20
+ gap: 0.75rem;
21
+ flex-wrap: wrap;
22
+ align-items: flex-end;
23
+ margin-bottom: 2rem;
24
+ padding: 1rem;
25
+ background: ${colors.bgCard};
26
+ border: 1px solid ${colors.border};
27
+ border-radius: 6px;
28
+ `;
29
+ const filterGroup = css `
30
+ display: flex;
31
+ flex-direction: column;
32
+ gap: 0.25rem;
33
+ `;
34
+ const filterLabel = css `
35
+ font-size: 0.7rem;
36
+ color: ${colors.textMuted};
37
+ text-transform: uppercase;
38
+ letter-spacing: 0.05em;
39
+ `;
40
+ const selectStyle = css `
41
+ background: ${colors.bg};
42
+ border: 1px solid ${colors.border};
43
+ color: ${colors.text};
44
+ padding: 0.4rem 0.6rem;
45
+ border-radius: 3px;
46
+ font-family: ${fonts.mono};
47
+ font-size: 0.8rem;
48
+ min-width: 140px;
49
+ `;
50
+ const inputStyle = css `
51
+ background: ${colors.bg};
52
+ border: 1px solid ${colors.border};
53
+ color: ${colors.text};
54
+ padding: 0.4rem 0.6rem;
55
+ border-radius: 3px;
56
+ font-family: ${fonts.mono};
57
+ font-size: 0.8rem;
58
+ min-width: 120px;
59
+ `;
60
+ const filterBtn = css `
61
+ background: ${colors.bgCard};
62
+ border: 1px solid ${colors.cyan};
63
+ color: ${colors.cyan};
64
+ padding: 0.4rem 1rem;
65
+ border-radius: 3px;
66
+ cursor: pointer;
67
+ font-family: ${fonts.mono};
68
+ font-size: 0.8rem;
69
+
70
+ &:hover {
71
+ background: ${colors.cyan};
72
+ color: ${colors.bg};
73
+ }
74
+ `;
75
+ const tableWrapper = css `
76
+ overflow-x: auto;
77
+ `;
78
+ const tableStyle = css `
79
+ width: 100%;
80
+ border-collapse: collapse;
81
+ font-family: ${fonts.mono};
82
+ font-size: 0.8rem;
83
+
84
+ th {
85
+ text-align: left;
86
+ padding: 0.6rem 0.75rem;
87
+ color: ${colors.textMuted};
88
+ font-weight: 700;
89
+ text-transform: uppercase;
90
+ letter-spacing: 0.05em;
91
+ font-size: 0.7rem;
92
+ border-bottom: 1px solid ${colors.border};
93
+ }
94
+
95
+ td {
96
+ padding: 0.6rem 0.75rem;
97
+ border-bottom: 1px solid ${colors.border};
98
+ color: ${colors.text};
99
+ vertical-align: middle;
100
+ }
101
+
102
+ tr:nth-child(even) td {
103
+ background: ${colors.bgCard};
104
+ }
105
+
106
+ tr:hover td {
107
+ background: #1c2333;
108
+ }
109
+ `;
110
+ const sessionCell = css `
111
+ color: ${colors.textMuted};
112
+ font-size: 0.75rem;
113
+ `;
114
+ const fromCell = css `
115
+ color: ${colors.cyan};
116
+ `;
117
+ const toCell = css `
118
+ color: ${colors.amber};
119
+ `;
120
+ const contentCell = css `
121
+ max-width: 300px;
122
+ white-space: nowrap;
123
+ overflow: hidden;
124
+ text-overflow: ellipsis;
125
+ `;
126
+ const emptyState = css `
127
+ text-align: center;
128
+ padding: 3rem 1rem;
129
+ color: ${colors.textMuted};
130
+ font-size: 0.9rem;
131
+ `;
132
+ const resultCount = css `
133
+ color: ${colors.textMuted};
134
+ font-size: 0.8rem;
135
+ margin-bottom: 1rem;
136
+ `;
137
+ /**
138
+ * Filterable message log viewer across all sessions.
139
+ * Supports filtering by session, peer ID, and text content search.
140
+ */
141
+ export const MessageLog = ({ messages, filters, sessions, }) => (_jsxs(Layout, { title: "Message Log", children: [_jsx(NavBar, { active: "messages" }), _jsxs("div", { class: container, children: [_jsx("h1", { class: pageTitle, children: "Message Log" }), _jsxs("form", { method: "get", action: "/admin/messages", class: filterForm, children: [_jsxs("div", { class: filterGroup, children: [_jsx("label", { class: filterLabel, children: "Session" }), _jsxs("select", { name: "sessionId", class: selectStyle, children: [_jsx("option", { value: "", children: "All Sessions" }), sessions.map((sid) => (_jsx("option", { value: sid, selected: filters.sessionId === sid, children: sid.length > 24 ? sid.slice(0, 24) + "..." : sid })))] })] }), _jsxs("div", { class: filterGroup, children: [_jsx("label", { class: filterLabel, children: "Peer ID" }), _jsx("input", { type: "text", name: "peerId", class: inputStyle, placeholder: "any peer", value: filters.peerId ?? "" })] }), _jsxs("div", { class: filterGroup, children: [_jsx("label", { class: filterLabel, children: "Search" }), _jsx("input", { type: "text", name: "q", class: inputStyle, placeholder: "message text", value: filters.query ?? "" })] }), _jsx("button", { type: "submit", class: filterBtn, children: "Filter" })] }), _jsxs("div", { class: resultCount, children: ["Showing ", messages.length, " message", messages.length !== 1 ? "s" : ""] }), messages.length === 0 ? (_jsx("div", { class: emptyState, children: "No messages match filters." })) : (_jsx("div", { class: tableWrapper, children: _jsxs("table", { class: tableStyle, children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "Timestamp" }), _jsx("th", { children: "Session" }), _jsx("th", { children: "From" }), _jsx("th", { children: "To" }), _jsx("th", { children: "Content" })] }) }), _jsx("tbody", { children: messages.map((msg) => (_jsxs("tr", { children: [_jsx("td", { children: new Date(msg.timestamp).toLocaleString() }), _jsx("td", { class: sessionCell, children: msg.sessionId.length > 12
142
+ ? msg.sessionId.slice(0, 12) + "..."
143
+ : msg.sessionId }), _jsx("td", { class: fromCell, children: msg.fromPeerId }), _jsx("td", { class: toCell, children: msg.toPeerId }), _jsx("td", { class: contentCell, title: msg.message, children: msg.message.length > 100
144
+ ? msg.message.slice(0, 100) + "..."
145
+ : msg.message })] }))) })] }) })), _jsx(Footer, {})] })] }));
146
+ //# sourceMappingURL=MessageLog.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageLog.js","sourceRoot":"","sources":["../../../src/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0BACG,QAAQ,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CACrB,yBACE,uBACG,IAAI,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,cAAc,EAAE,GACtC,EACL,aAAI,KAAK,EAAE,WAAW,YACnB,GAAG,CAAC,SAAS,CAAC,MAAM,GAAG,EAAE;gDACxB,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK;gDACpC,CAAC,CAAC,GAAG,CAAC,SAAS,GACd,EACL,aAAI,KAAK,EAAE,QAAQ,YAAG,GAAG,CAAC,UAAU,GAAM,EAC1C,aAAI,KAAK,EAAE,MAAM,YAAG,GAAG,CAAC,QAAQ,GAAM,EACtC,aACE,KAAK,EAAE,WAAW,EAClB,KAAK,EAAE,GAAG,CAAC,OAAO,YAEjB,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,GAAG;gDACvB,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK;gDACnC,CAAC,CAAC,GAAG,CAAC,OAAO,GACZ,IACF,CACN,CAAC,GACI,IACF,GACJ,CACP,EAED,KAAC,MAAM,KAAG,IACN,IACC,CACV,CAAC"}
@@ -0,0 +1,14 @@
1
+ import type { FC } from "hono/jsx";
2
+ import type { SessionFileState } from "../../types.js";
3
+ /** Props for the SessionDetail page. */
4
+ interface SessionDetailProps {
5
+ session: SessionFileState;
6
+ connectedPeerIds: string[];
7
+ }
8
+ /**
9
+ * Session detail page with session info, peer table with online/offline status,
10
+ * peer delete forms, and the last 20 messages in reverse chronological order.
11
+ */
12
+ export declare const SessionDetail: FC<SessionDetailProps>;
13
+ export {};
14
+ //# sourceMappingURL=SessionDetail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionDetail.d.ts","sourceRoot":"","sources":["../../../src/ui/pages/SessionDetail.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAMnC,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,wCAAwC;AACxC,UAAU,kBAAkB;IAC1B,OAAO,EAAE,gBAAgB,CAAC;IAC1B,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B;AA4JD;;;GAGG;AACH,eAAO,MAAM,aAAa,EAAE,EAAE,CAAC,kBAAkB,CA8IhD,CAAC"}
@@ -0,0 +1,165 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "hono/jsx/jsx-runtime";
2
+ import { css } from "hono/css";
3
+ import { Layout } from "../components/Layout.js";
4
+ import { NavBar } from "../components/NavBar.js";
5
+ import { Footer } from "../components/Footer.js";
6
+ import { colors, fonts } from "../styles/theme.js";
7
+ const container = css `
8
+ max-width: 960px;
9
+ margin: 0 auto;
10
+ padding: 0 1.5rem 2rem;
11
+ `;
12
+ const pageTitle = css `
13
+ font-size: 1.5rem;
14
+ font-weight: 700;
15
+ color: ${colors.text};
16
+ margin: 0 0 0.5rem 0;
17
+ `;
18
+ const backLinkStyle = css `
19
+ color: ${colors.textMuted};
20
+ font-size: 0.8rem;
21
+ text-decoration: none;
22
+ display: inline-block;
23
+ margin-bottom: 1.5rem;
24
+ &:hover {
25
+ color: ${colors.cyan};
26
+ text-decoration: none;
27
+ }
28
+ `;
29
+ const infoSection = css `
30
+ background: ${colors.bgCard};
31
+ border: 1px solid ${colors.border};
32
+ border-radius: 6px;
33
+ padding: 1.25rem;
34
+ margin-bottom: 2rem;
35
+ `;
36
+ const infoRow = css `
37
+ display: flex;
38
+ gap: 0.5rem;
39
+ margin-bottom: 0.4rem;
40
+ font-size: 0.85rem;
41
+ `;
42
+ const infoLabel = css `
43
+ color: ${colors.textMuted};
44
+ min-width: 120px;
45
+ `;
46
+ const infoValue = css `
47
+ color: ${colors.text};
48
+ `;
49
+ const sectionTitle = css `
50
+ font-size: 1rem;
51
+ font-weight: 700;
52
+ color: ${colors.text};
53
+ margin: 0 0 1rem 0;
54
+ `;
55
+ const tableStyle = css `
56
+ width: 100%;
57
+ border-collapse: collapse;
58
+ font-family: ${fonts.mono};
59
+ font-size: 0.8rem;
60
+
61
+ th {
62
+ text-align: left;
63
+ padding: 0.6rem 0.75rem;
64
+ color: ${colors.textMuted};
65
+ font-weight: 700;
66
+ text-transform: uppercase;
67
+ letter-spacing: 0.05em;
68
+ font-size: 0.7rem;
69
+ border-bottom: 1px solid ${colors.border};
70
+ }
71
+
72
+ td {
73
+ padding: 0.6rem 0.75rem;
74
+ border-bottom: 1px solid ${colors.border};
75
+ color: ${colors.text};
76
+ vertical-align: middle;
77
+ }
78
+
79
+ tr:hover td {
80
+ background: ${colors.bgCard};
81
+ }
82
+ `;
83
+ const statusOnline = css `
84
+ color: ${colors.green};
85
+ font-weight: 700;
86
+ `;
87
+ const statusOffline = css `
88
+ color: ${colors.textMuted};
89
+ `;
90
+ const deleteBtn = css `
91
+ background: transparent;
92
+ border: 1px solid ${colors.red};
93
+ color: ${colors.red};
94
+ padding: 0.25rem 0.6rem;
95
+ border-radius: 3px;
96
+ cursor: pointer;
97
+ font-family: ${fonts.mono};
98
+ font-size: 0.75rem;
99
+
100
+ &:hover {
101
+ background: ${colors.red};
102
+ color: ${colors.bg};
103
+ }
104
+ `;
105
+ const messagesSection = css `
106
+ margin-top: 2rem;
107
+ `;
108
+ const messageLine = css `
109
+ font-family: ${fonts.mono};
110
+ font-size: 0.8rem;
111
+ padding: 0.4rem 0.75rem;
112
+ border-bottom: 1px solid ${colors.border};
113
+ color: ${colors.text};
114
+
115
+ &:nth-child(even) {
116
+ background: ${colors.bgCard};
117
+ }
118
+ `;
119
+ const msgTimestamp = css `
120
+ color: ${colors.textMuted};
121
+ margin-right: 0.75rem;
122
+ font-size: 0.75rem;
123
+ `;
124
+ const msgFrom = css `
125
+ color: ${colors.cyan};
126
+ margin-right: 0.5rem;
127
+ `;
128
+ const msgArrow = css `
129
+ color: ${colors.textMuted};
130
+ margin-right: 0.5rem;
131
+ `;
132
+ const msgTo = css `
133
+ color: ${colors.amber};
134
+ margin-right: 0.75rem;
135
+ `;
136
+ const emptyState = css `
137
+ text-align: center;
138
+ padding: 2rem 1rem;
139
+ color: ${colors.textMuted};
140
+ font-size: 0.85rem;
141
+ `;
142
+ /**
143
+ * Session detail page with session info, peer table with online/offline status,
144
+ * peer delete forms, and the last 20 messages in reverse chronological order.
145
+ */
146
+ export const SessionDetail = ({ session, connectedPeerIds, }) => {
147
+ const peers = Object.entries(session.peers);
148
+ const recentMessages = [...session.messages]
149
+ .reverse()
150
+ .slice(0, 20);
151
+ const sessionId = session.sessionId;
152
+ return (_jsxs(Layout, { title: `Session: ${sessionId}`, children: [_jsx(NavBar, { active: "sessions" }), _jsxs("div", { class: container, children: [_jsx("a", { href: "/admin/sessions", class: backLinkStyle, children: "\u2190 Back to Sessions" }), _jsxs("h1", { class: pageTitle, children: ["Session: ", sessionId] }), _jsxs("div", { class: infoSection, children: [_jsxs("div", { class: infoRow, children: [_jsx("span", { class: infoLabel, children: "Session ID:" }), _jsx("span", { class: infoValue, children: sessionId })] }), session.label && (_jsxs("div", { class: infoRow, children: [_jsx("span", { class: infoLabel, children: "Label:" }), _jsx("span", { class: infoValue, children: session.label })] })), _jsxs("div", { class: infoRow, children: [_jsx("span", { class: infoLabel, children: "Created:" }), _jsx("span", { class: infoValue, children: new Date(session.createdAt).toLocaleString() })] }), _jsxs("div", { class: infoRow, children: [_jsx("span", { class: infoLabel, children: "Tokens:" }), _jsx("span", { class: infoValue, children: session.tokens.length })] }), _jsxs("div", { class: infoRow, children: [_jsx("span", { class: infoLabel, children: "Messages:" }), _jsx("span", { class: infoValue, children: session.messages.length })] })] }), _jsxs("h2", { class: sectionTitle, children: ["Peers (", peers.length, " registered, ", connectedPeerIds.length, " connected)"] }), peers.length === 0 ? (_jsx("div", { class: emptyState, children: "No peers registered." })) : (_jsxs("table", { class: tableStyle, children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "Peer ID" }), _jsx("th", { children: "Name" }), _jsx("th", { children: "Project" }), _jsx("th", { children: "Registered" }), _jsx("th", { children: "Status" }), _jsx("th", { children: "Actions" })] }) }), _jsx("tbody", { children: peers.map(([peerId, peer]) => {
153
+ const isOnline = connectedPeerIds.includes(peerId);
154
+ return (_jsxs("tr", { children: [_jsx("td", { children: peerId }), _jsx("td", { children: peer.label ?? "-" }), _jsx("td", { children: peer.cwd ?? "-" }), _jsx("td", { children: peer.registeredAt
155
+ ? new Date(peer.registeredAt).toLocaleString()
156
+ : "-" }), _jsx("td", { children: isOnline ? (_jsx("span", { class: statusOnline, children: "ONLINE" })) : (_jsx("span", { class: statusOffline, children: "offline" })) }), _jsx("td", { children: _jsx("form", { method: "post", action: "/admin/sessions/" +
157
+ sessionId +
158
+ "/peers/" +
159
+ peerId +
160
+ "/delete", style: "display:inline", children: _jsx("button", { type: "submit", class: deleteBtn, onclick: "return confirm('Remove this peer from the session?')", children: "Remove" }) }) })] }));
161
+ }) })] })), _jsxs("div", { class: messagesSection, children: [_jsxs("h2", { class: sectionTitle, children: ["Recent Messages (", Math.min(20, session.messages.length), " of", " ", session.messages.length, ")"] }), recentMessages.length === 0 ? (_jsx("div", { class: emptyState, children: "No messages in this session." })) : (recentMessages.map((msg) => (_jsxs("div", { class: messageLine, children: [_jsx("span", { class: msgTimestamp, children: new Date(msg.timestamp).toLocaleString() }), _jsx("span", { class: msgFrom, children: msg.fromPeerId }), _jsx("span", { class: msgArrow, children: "\u2192" }), _jsx("span", { class: msgTo, children: msg.toPeerId }), msg.message.length > 100
162
+ ? msg.message.slice(0, 100) + "..."
163
+ : msg.message] }))))] }), _jsx(Footer, {})] })] }));
164
+ };
165
+ //# sourceMappingURL=SessionDetail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionDetail.js","sourceRoot":"","sources":["../../../src/ui/pages/SessionDetail.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE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AE,UAAU,6CAAoC,CAC3D,CAAC,CAAC,CAAC,CACF,cAAc,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAC1B,eAAK,KAAK,EAAE,WAAW,aACrB,eAAM,KAAK,EAAE,YAAY,YACtB,IAAI,IAAI,CAAC,GAAG,CAAC,SAAS,CAAC,CAAC,cAAc,EAAE,GACpC,EACP,eAAM,KAAK,EAAE,OAAO,YAAG,GAAG,CAAC,UAAU,GAAQ,EAC7C,eAAM,KAAK,EAAE,QAAQ,uBAAe,EACpC,eAAM,KAAK,EAAE,KAAK,YAAG,GAAG,CAAC,QAAQ,GAAQ,EACxC,GAAG,CAAC,OAAO,CAAC,MAAM,GAAG,GAAG;wCACvB,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,CAAC,GAAG,KAAK;wCACnC,CAAC,CAAC,GAAG,CAAC,OAAO,IACX,CACP,CAAC,CACH,IACG,EAEN,KAAC,MAAM,KAAG,IACN,IACC,CACV,CAAC;AACJ,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import type { FC } from "hono/jsx";
2
+ /** Shape of a session summary passed to the SessionList page. */
3
+ export interface SessionSummary {
4
+ sessionId: string;
5
+ label?: string;
6
+ createdAt: string;
7
+ creatorIp?: string;
8
+ peerCount: number;
9
+ messageCount: number;
10
+ connectedPeerIds: string[];
11
+ }
12
+ /** Props for the SessionList page. */
13
+ interface SessionListProps {
14
+ sessions: SessionSummary[];
15
+ }
16
+ /**
17
+ * Session list page with table of all sessions.
18
+ * Each row links to the session detail page and has a delete button.
19
+ */
20
+ export declare const SessionList: FC<SessionListProps>;
21
+ export {};
22
+ //# sourceMappingURL=SessionList.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SessionList.d.ts","sourceRoot":"","sources":["../../../src/ui/pages/SessionList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,UAAU,CAAC;AAOnC,iEAAiE;AACjE,MAAM,WAAW,cAAc;IAC7B,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,gBAAgB,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,sCAAsC;AACtC,UAAU,gBAAgB;IACxB,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC5B;AAoFD;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAuE5C,CAAC"}