spora 0.2.7 → 0.2.9

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 (30) hide show
  1. package/dist/chat.html +414 -0
  2. package/dist/{chunk-T3JHWIKX.js → chunk-6DPYNK2E.js} +2 -2
  3. package/dist/{chunk-IIQAE7OP.js → chunk-WNPGGDG4.js} +3 -3
  4. package/dist/cli.js +25 -25
  5. package/dist/cli.js.map +1 -1
  6. package/dist/{client-2ZSXZE3D.js → client-AYROLQHE.js} +4 -4
  7. package/dist/{client-2CURS7J6.js → client-JZGDSIOB.js} +4 -4
  8. package/dist/{colony-EFGAMLOX.js → colony-P32MRWYW.js} +4 -4
  9. package/dist/{heartbeat-2GVBKQPO.js → heartbeat-QZE7KGIS.js} +10 -10
  10. package/dist/{init-KNLVACRK.js → init-ERCWRTL4.js} +9 -8
  11. package/dist/init-ERCWRTL4.js.map +1 -0
  12. package/dist/logo.png +0 -0
  13. package/dist/{mcp-server.js → mcp-server-BN3N67L7.js} +20 -20
  14. package/dist/{queue-N64QLRAB.js → queue-GJ2QQIOC.js} +2 -2
  15. package/dist/web-chat/chat.html +4 -13
  16. package/dist/{web-chat-L5MVPVUR.js → web-chat-4XZKXNBY.js} +35 -5
  17. package/dist/web-chat-4XZKXNBY.js.map +1 -0
  18. package/dist/{x-client-SLAC2ON5.js → x-client-2WBZOI5I.js} +2 -2
  19. package/package.json +1 -1
  20. package/dist/init-KNLVACRK.js.map +0 -1
  21. package/dist/web-chat-L5MVPVUR.js.map +0 -1
  22. /package/dist/{chunk-T3JHWIKX.js.map → chunk-6DPYNK2E.js.map} +0 -0
  23. /package/dist/{chunk-IIQAE7OP.js.map → chunk-WNPGGDG4.js.map} +0 -0
  24. /package/dist/{client-2ZSXZE3D.js.map → client-AYROLQHE.js.map} +0 -0
  25. /package/dist/{client-2CURS7J6.js.map → client-JZGDSIOB.js.map} +0 -0
  26. /package/dist/{colony-EFGAMLOX.js.map → colony-P32MRWYW.js.map} +0 -0
  27. /package/dist/{heartbeat-2GVBKQPO.js.map → heartbeat-QZE7KGIS.js.map} +0 -0
  28. /package/dist/{mcp-server.js.map → mcp-server-BN3N67L7.js.map} +0 -0
  29. /package/dist/{queue-N64QLRAB.js.map → queue-GJ2QQIOC.js.map} +0 -0
  30. /package/dist/{x-client-SLAC2ON5.js.map → x-client-2WBZOI5I.js.map} +0 -0
package/dist/chat.html ADDED
@@ -0,0 +1,414 @@
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.0">
6
+ <title>Spora</title>
7
+ <style>
8
+ * {
9
+ margin: 0;
10
+ padding: 0;
11
+ box-sizing: border-box;
12
+ }
13
+
14
+ body {
15
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
16
+ background: #0a0a0a;
17
+ color: #fff;
18
+ height: 100vh;
19
+ display: flex;
20
+ flex-direction: column;
21
+ }
22
+
23
+ .header {
24
+ padding: 0.875rem 1.25rem;
25
+ border-bottom: 1px solid rgba(255, 255, 255, 0.08);
26
+ display: flex;
27
+ align-items: center;
28
+ gap: 0.75rem;
29
+ background: #0a0a0a;
30
+ }
31
+
32
+ .logo-img {
33
+ height: 24px;
34
+ width: auto;
35
+ }
36
+
37
+ .header-right {
38
+ margin-left: auto;
39
+ display: flex;
40
+ align-items: center;
41
+ gap: 0.5rem;
42
+ }
43
+
44
+ .status-dot {
45
+ width: 7px;
46
+ height: 7px;
47
+ border-radius: 50%;
48
+ background: #389e77;
49
+ animation: pulse 2s infinite;
50
+ }
51
+
52
+ .status-text {
53
+ font-size: 0.75rem;
54
+ color: rgba(255, 255, 255, 0.4);
55
+ }
56
+
57
+ @keyframes pulse {
58
+ 0%, 100% { opacity: 1; }
59
+ 50% { opacity: 0.5; }
60
+ }
61
+
62
+ .chat-container {
63
+ flex: 1;
64
+ overflow-y: auto;
65
+ padding: 1.25rem;
66
+ display: flex;
67
+ flex-direction: column;
68
+ gap: 0.875rem;
69
+ }
70
+
71
+ .chat-container::-webkit-scrollbar {
72
+ width: 4px;
73
+ }
74
+
75
+ .chat-container::-webkit-scrollbar-track {
76
+ background: transparent;
77
+ }
78
+
79
+ .chat-container::-webkit-scrollbar-thumb {
80
+ background: rgba(255, 255, 255, 0.1);
81
+ border-radius: 4px;
82
+ }
83
+
84
+ .message {
85
+ display: flex;
86
+ gap: 0.625rem;
87
+ animation: fadeIn 0.3s ease-in;
88
+ }
89
+
90
+ @keyframes fadeIn {
91
+ from { opacity: 0; transform: translateY(8px); }
92
+ to { opacity: 1; transform: translateY(0); }
93
+ }
94
+
95
+ .message.user {
96
+ justify-content: flex-end;
97
+ }
98
+
99
+ .message.assistant {
100
+ justify-content: flex-start;
101
+ }
102
+
103
+ .message-avatar {
104
+ width: 40px;
105
+ height: 40px;
106
+ border-radius: 50%;
107
+ background: #1a1a1a;
108
+ display: flex;
109
+ align-items: center;
110
+ justify-content: center;
111
+ flex-shrink: 0;
112
+ overflow: hidden;
113
+ border: 1px solid rgba(255, 255, 255, 0.08);
114
+ }
115
+
116
+ .message-avatar img {
117
+ width: 100%;
118
+ height: 100%;
119
+ object-fit: cover;
120
+ }
121
+
122
+ .message.user .message-avatar {
123
+ display: none;
124
+ }
125
+
126
+ .message-content {
127
+ max-width: 80%;
128
+ padding: 0.625rem 0.875rem;
129
+ border-radius: 0.875rem;
130
+ font-size: 0.8125rem;
131
+ line-height: 1.55;
132
+ white-space: pre-wrap;
133
+ }
134
+
135
+ .message.user .message-content {
136
+ background: #389e77;
137
+ color: #fff;
138
+ border-bottom-right-radius: 0.25rem;
139
+ }
140
+
141
+ .message.assistant .message-content {
142
+ background: #141414;
143
+ border: 1px solid rgba(255, 255, 255, 0.06);
144
+ border-bottom-left-radius: 0.25rem;
145
+ color: rgba(255, 255, 255, 0.9);
146
+ }
147
+
148
+ .input-container {
149
+ padding: 1rem 1.25rem;
150
+ border-top: 1px solid rgba(255, 255, 255, 0.08);
151
+ display: flex;
152
+ gap: 0.5rem;
153
+ background: #0a0a0a;
154
+ }
155
+
156
+ .input-box {
157
+ flex: 1;
158
+ background: #141414;
159
+ border: 1px solid rgba(255, 255, 255, 0.08);
160
+ border-radius: 0.625rem;
161
+ padding: 0.625rem 0.875rem;
162
+ color: #fff;
163
+ font-size: 0.8125rem;
164
+ font-family: inherit;
165
+ outline: none;
166
+ transition: border-color 0.2s;
167
+ }
168
+
169
+ .input-box:focus {
170
+ border-color: #389e77;
171
+ }
172
+
173
+ .input-box::placeholder {
174
+ color: rgba(255, 255, 255, 0.25);
175
+ }
176
+
177
+ .send-button {
178
+ background: #389e77;
179
+ color: #fff;
180
+ border: none;
181
+ padding: 0.625rem 1.125rem;
182
+ border-radius: 0.625rem;
183
+ font-weight: 600;
184
+ font-size: 0.8125rem;
185
+ cursor: pointer;
186
+ transition: background 0.2s, transform 0.15s;
187
+ }
188
+
189
+ .send-button:hover:not(:disabled) {
190
+ background: #4ab88a;
191
+ transform: scale(1.02);
192
+ }
193
+
194
+ .send-button:disabled {
195
+ opacity: 0.4;
196
+ cursor: not-allowed;
197
+ }
198
+
199
+ .loading {
200
+ display: flex;
201
+ gap: 0.25rem;
202
+ padding: 0.5rem 0;
203
+ }
204
+
205
+ .loading-dot {
206
+ width: 6px;
207
+ height: 6px;
208
+ border-radius: 50%;
209
+ background: rgba(255, 255, 255, 0.3);
210
+ animation: bounce 1.4s infinite ease-in-out both;
211
+ }
212
+
213
+ .loading-dot:nth-child(1) { animation-delay: -0.32s; }
214
+ .loading-dot:nth-child(2) { animation-delay: -0.16s; }
215
+
216
+ @keyframes bounce {
217
+ 0%, 80%, 100% { transform: scale(0); }
218
+ 40% { transform: scale(1); }
219
+ }
220
+ </style>
221
+ </head>
222
+ <body>
223
+ <div class="header">
224
+ <img class="logo-img" src="/logo.png" alt="Spora" />
225
+ <div class="header-right">
226
+ <span class="status-dot"></span>
227
+ <span class="status-text">Online</span>
228
+ </div>
229
+ </div>
230
+
231
+ <div class="chat-container" id="chatContainer">
232
+ </div>
233
+
234
+ <div class="input-container">
235
+ <input
236
+ type="text"
237
+ class="input-box"
238
+ id="messageInput"
239
+ placeholder="Message your agent..."
240
+ autocomplete="off"
241
+ />
242
+ <button class="send-button" id="sendButton">Send</button>
243
+ </div>
244
+
245
+ <script>
246
+ const chatContainer = document.getElementById('chatContainer');
247
+ const messageInput = document.getElementById('messageInput');
248
+ const sendButton = document.getElementById('sendButton');
249
+
250
+ let isLoading = false;
251
+ let agentName = 'Your Spore';
252
+ let agentPfp = null;
253
+
254
+ // Fetch agent identity and show welcome message
255
+ async function init() {
256
+ try {
257
+ const response = await fetch('/api/identity');
258
+ const data = await response.json();
259
+ if (data.identity) {
260
+ agentName = data.identity.name || 'Your Spore';
261
+ agentPfp = data.identity.profileImage || null;
262
+
263
+ // Update page title
264
+ document.title = `${agentName} - Spora`;
265
+ }
266
+ } catch (error) {
267
+ console.error('Failed to load identity:', error);
268
+ }
269
+
270
+ // Show welcome message from the agent
271
+ addMessage('assistant', `Hey! I'm ${agentName}. I've just been set up and I'm ready to start posting on X. What would you like me to do? You can tell me what to post, how to behave, or just chat with me.`);
272
+
273
+ // Load any existing messages
274
+ await loadMessages();
275
+ }
276
+
277
+ async function loadMessages() {
278
+ try {
279
+ const response = await fetch('/api/messages');
280
+ const data = await response.json();
281
+ if (data.messages && data.messages.length > 0) {
282
+ // Clear welcome message if there are existing messages
283
+ chatContainer.innerHTML = '';
284
+ data.messages.forEach(msg => {
285
+ addMessage(msg.role, msg.content, false);
286
+ });
287
+ }
288
+ } catch (error) {
289
+ console.error('Failed to load messages:', error);
290
+ }
291
+ }
292
+
293
+ function addMessage(role, content, animate = true) {
294
+ const messageDiv = document.createElement('div');
295
+ messageDiv.className = `message ${role}`;
296
+ if (!animate) messageDiv.style.animation = 'none';
297
+
298
+ if (role === 'assistant') {
299
+ const avatar = document.createElement('div');
300
+ avatar.className = 'message-avatar';
301
+ if (agentPfp) {
302
+ avatar.innerHTML = `<img src="${agentPfp}" alt="${agentName}" onerror="this.parentElement.textContent='${agentName.charAt(0).toUpperCase()}'" />`;
303
+ } else {
304
+ avatar.textContent = agentName.charAt(0).toUpperCase();
305
+ avatar.style.background = '#389e77';
306
+ avatar.style.color = '#fff';
307
+ avatar.style.fontSize = '0.75rem';
308
+ avatar.style.fontWeight = '700';
309
+ }
310
+ messageDiv.appendChild(avatar);
311
+ }
312
+
313
+ const contentDiv = document.createElement('div');
314
+ contentDiv.className = 'message-content';
315
+ contentDiv.textContent = content;
316
+
317
+ messageDiv.appendChild(contentDiv);
318
+
319
+ chatContainer.appendChild(messageDiv);
320
+ chatContainer.scrollTop = chatContainer.scrollHeight;
321
+ }
322
+
323
+ function showLoading() {
324
+ const loadingDiv = document.createElement('div');
325
+ loadingDiv.className = 'message assistant';
326
+ loadingDiv.id = 'loadingMessage';
327
+
328
+ const avatar = document.createElement('div');
329
+ avatar.className = 'message-avatar';
330
+ if (agentPfp) {
331
+ avatar.innerHTML = `<img src="${agentPfp}" alt="${agentName}" />`;
332
+ } else {
333
+ avatar.textContent = agentName.charAt(0).toUpperCase();
334
+ avatar.style.background = '#389e77';
335
+ avatar.style.color = '#fff';
336
+ avatar.style.fontSize = '0.75rem';
337
+ avatar.style.fontWeight = '700';
338
+ }
339
+
340
+ const loadingContent = document.createElement('div');
341
+ loadingContent.className = 'message-content';
342
+ loadingContent.innerHTML = `
343
+ <div class="loading">
344
+ <div class="loading-dot"></div>
345
+ <div class="loading-dot"></div>
346
+ <div class="loading-dot"></div>
347
+ </div>
348
+ `;
349
+
350
+ loadingDiv.appendChild(avatar);
351
+ loadingDiv.appendChild(loadingContent);
352
+
353
+ chatContainer.appendChild(loadingDiv);
354
+ chatContainer.scrollTop = chatContainer.scrollHeight;
355
+ }
356
+
357
+ function hideLoading() {
358
+ const loadingDiv = document.getElementById('loadingMessage');
359
+ if (loadingDiv) loadingDiv.remove();
360
+ }
361
+
362
+ async function sendMessage() {
363
+ const message = messageInput.value.trim();
364
+ if (!message || isLoading) return;
365
+
366
+ isLoading = true;
367
+ sendButton.disabled = true;
368
+ messageInput.disabled = true;
369
+
370
+ addMessage('user', message);
371
+ messageInput.value = '';
372
+
373
+ showLoading();
374
+
375
+ try {
376
+ const response = await fetch('/api/message', {
377
+ method: 'POST',
378
+ headers: { 'Content-Type': 'application/json' },
379
+ body: JSON.stringify({ message }),
380
+ });
381
+
382
+ const data = await response.json();
383
+ hideLoading();
384
+
385
+ if (data.response) {
386
+ addMessage('assistant', data.response);
387
+ } else if (data.error) {
388
+ addMessage('assistant', 'Something went wrong. Try again?');
389
+ }
390
+ } catch (error) {
391
+ hideLoading();
392
+ addMessage('assistant', 'Couldn\'t connect to the server. Try again?');
393
+ } finally {
394
+ isLoading = false;
395
+ sendButton.disabled = false;
396
+ messageInput.disabled = false;
397
+ messageInput.focus();
398
+ }
399
+ }
400
+
401
+ sendButton.addEventListener('click', sendMessage);
402
+ messageInput.addEventListener('keydown', (e) => {
403
+ if (e.key === 'Enter' && !e.shiftKey) {
404
+ e.preventDefault();
405
+ sendMessage();
406
+ }
407
+ });
408
+
409
+ // Initialize
410
+ init();
411
+ messageInput.focus();
412
+ </script>
413
+ </body>
414
+ </html>
@@ -67,7 +67,7 @@ async function flushQueue() {
67
67
  const now = /* @__PURE__ */ new Date();
68
68
  let posted = 0;
69
69
  let failed = 0;
70
- const { getXClient } = await import("./x-client-SLAC2ON5.js");
70
+ const { getXClient } = await import("./x-client-2WBZOI5I.js");
71
71
  const client = await getXClient();
72
72
  for (const entry of queue.entries) {
73
73
  if (entry.status !== "pending") continue;
@@ -121,4 +121,4 @@ export {
121
121
  flushQueue,
122
122
  showQueue
123
123
  };
124
- //# sourceMappingURL=chunk-T3JHWIKX.js.map
124
+ //# sourceMappingURL=chunk-6DPYNK2E.js.map
@@ -11,11 +11,11 @@ async function getXClient() {
11
11
  if (clientInstance) return clientInstance;
12
12
  const config = loadConfig();
13
13
  if (config.xMethod === "api") {
14
- const { XApiClient } = await import("./client-2ZSXZE3D.js");
14
+ const { XApiClient } = await import("./client-AYROLQHE.js");
15
15
  clientInstance = new XApiClient();
16
16
  logger.info("X client initialized: API mode");
17
17
  } else {
18
- const { XBrowserClient } = await import("./client-2CURS7J6.js");
18
+ const { XBrowserClient } = await import("./client-JZGDSIOB.js");
19
19
  clientInstance = new XBrowserClient();
20
20
  logger.info("X client initialized: Browser mode");
21
21
  }
@@ -29,4 +29,4 @@ export {
29
29
  getXClient,
30
30
  resetXClient
31
31
  };
32
- //# sourceMappingURL=chunk-IIQAE7OP.js.map
32
+ //# sourceMappingURL=chunk-WNPGGDG4.js.map
package/dist/cli.js CHANGED
@@ -123,11 +123,11 @@ program.command("init").description("Set up X account credentials for your Spore
123
123
  console.log(chalk.cyan(BANNER));
124
124
  console.log(chalk.bold("Welcome to Spora."));
125
125
  console.log(chalk.gray("The global town square for AI agents.\n"));
126
- const { runInit } = await import("./init-KNLVACRK.js");
126
+ const { runInit } = await import("./init-ERCWRTL4.js");
127
127
  await runInit(opts.token);
128
128
  });
129
129
  program.command("serve").description("Start the Spora MCP server (stdio)").action(async () => {
130
- const { startServer } = await import("./mcp-server.js");
130
+ const { startServer } = await import("./mcp-server-BN3N67L7.js");
131
131
  await startServer();
132
132
  });
133
133
  program.command("chat").description("Open web-based chat interface with your Spore").action(async () => {
@@ -135,7 +135,7 @@ program.command("chat").description("Open web-based chat interface with your Spo
135
135
  console.log(chalk.red("\u2717 No identity found. Run `spora create` first."));
136
136
  process.exit(1);
137
137
  }
138
- const { startWebChat } = await import("./web-chat-L5MVPVUR.js");
138
+ const { startWebChat } = await import("./web-chat-4XZKXNBY.js");
139
139
  await startWebChat();
140
140
  });
141
141
  program.command("tui").description("Start terminal-based chat interface (TUI)").action(async () => {
@@ -278,7 +278,7 @@ program.command("journal").description("Add a reflection to the evolution journa
278
278
  });
279
279
  program.command("post").description("Post a tweet").argument("<content>", "Tweet content (max 280 chars)").action(async (content) => {
280
280
  try {
281
- const { getXClient } = await import("./x-client-SLAC2ON5.js");
281
+ const { getXClient } = await import("./x-client-2WBZOI5I.js");
282
282
  const client = await getXClient();
283
283
  const result = await client.postTweet(content);
284
284
  console.log(JSON.stringify(result, null, 2));
@@ -289,7 +289,7 @@ program.command("post").description("Post a tweet").argument("<content>", "Tweet
289
289
  });
290
290
  program.command("reply").description("Reply to a tweet").argument("<tweetId>", "Tweet ID to reply to").argument("<content>", "Reply content").action(async (tweetId, content) => {
291
291
  try {
292
- const { getXClient } = await import("./x-client-SLAC2ON5.js");
292
+ const { getXClient } = await import("./x-client-2WBZOI5I.js");
293
293
  const client = await getXClient();
294
294
  const result = await client.replyToTweet(tweetId, content);
295
295
  console.log(JSON.stringify(result, null, 2));
@@ -300,7 +300,7 @@ program.command("reply").description("Reply to a tweet").argument("<tweetId>", "
300
300
  });
301
301
  program.command("like").description("Like a tweet").argument("<tweetId>", "Tweet ID").action(async (tweetId) => {
302
302
  try {
303
- const { getXClient } = await import("./x-client-SLAC2ON5.js");
303
+ const { getXClient } = await import("./x-client-2WBZOI5I.js");
304
304
  const client = await getXClient();
305
305
  const result = await client.likeTweet(tweetId);
306
306
  console.log(JSON.stringify(result, null, 2));
@@ -311,7 +311,7 @@ program.command("like").description("Like a tweet").argument("<tweetId>", "Tweet
311
311
  });
312
312
  program.command("retweet").description("Retweet a tweet").argument("<tweetId>", "Tweet ID").action(async (tweetId) => {
313
313
  try {
314
- const { getXClient } = await import("./x-client-SLAC2ON5.js");
314
+ const { getXClient } = await import("./x-client-2WBZOI5I.js");
315
315
  const client = await getXClient();
316
316
  const result = await client.retweet(tweetId);
317
317
  console.log(JSON.stringify(result, null, 2));
@@ -322,7 +322,7 @@ program.command("retweet").description("Retweet a tweet").argument("<tweetId>",
322
322
  });
323
323
  program.command("follow").description("Follow a user").argument("<handle>", "User handle or ID").action(async (handle) => {
324
324
  try {
325
- const { getXClient } = await import("./x-client-SLAC2ON5.js");
325
+ const { getXClient } = await import("./x-client-2WBZOI5I.js");
326
326
  const client = await getXClient();
327
327
  const result = await client.followUser(handle);
328
328
  console.log(JSON.stringify(result, null, 2));
@@ -333,7 +333,7 @@ program.command("follow").description("Follow a user").argument("<handle>", "Use
333
333
  });
334
334
  program.command("unfollow").description("Unfollow a user").argument("<handle>", "User handle or ID").action(async (handle) => {
335
335
  try {
336
- const { getXClient } = await import("./x-client-SLAC2ON5.js");
336
+ const { getXClient } = await import("./x-client-2WBZOI5I.js");
337
337
  const client = await getXClient();
338
338
  const result = await client.unfollowUser(handle);
339
339
  console.log(JSON.stringify(result, null, 2));
@@ -344,7 +344,7 @@ program.command("unfollow").description("Unfollow a user").argument("<handle>",
344
344
  });
345
345
  program.command("timeline").description("Read home timeline").option("-c, --count <n>", "Number of tweets", "20").action(async (opts) => {
346
346
  try {
347
- const { getXClient } = await import("./x-client-SLAC2ON5.js");
347
+ const { getXClient } = await import("./x-client-2WBZOI5I.js");
348
348
  const client = await getXClient();
349
349
  const result = await client.getTimeline({ count: parseInt(opts.count) });
350
350
  console.log(JSON.stringify(result, null, 2));
@@ -355,7 +355,7 @@ program.command("timeline").description("Read home timeline").option("-c, --coun
355
355
  });
356
356
  program.command("mentions").description("Read mentions").option("-c, --count <n>", "Number of mentions", "20").action(async (opts) => {
357
357
  try {
358
- const { getXClient } = await import("./x-client-SLAC2ON5.js");
358
+ const { getXClient } = await import("./x-client-2WBZOI5I.js");
359
359
  const client = await getXClient();
360
360
  const result = await client.getMentions({ count: parseInt(opts.count) });
361
361
  console.log(JSON.stringify(result, null, 2));
@@ -366,7 +366,7 @@ program.command("mentions").description("Read mentions").option("-c, --count <n>
366
366
  });
367
367
  program.command("search").description("Search for tweets").argument("<query>", "Search query").option("-c, --count <n>", "Number of results", "20").action(async (query, opts) => {
368
368
  try {
369
- const { getXClient } = await import("./x-client-SLAC2ON5.js");
369
+ const { getXClient } = await import("./x-client-2WBZOI5I.js");
370
370
  const client = await getXClient();
371
371
  const result = await client.searchTweets(query, { count: parseInt(opts.count) });
372
372
  console.log(JSON.stringify(result, null, 2));
@@ -377,7 +377,7 @@ program.command("search").description("Search for tweets").argument("<query>", "
377
377
  });
378
378
  program.command("profile").description("Get a user's X profile").argument("<handle>", "X handle (without @)").action(async (handle) => {
379
379
  try {
380
- const { getXClient } = await import("./x-client-SLAC2ON5.js");
380
+ const { getXClient } = await import("./x-client-2WBZOI5I.js");
381
381
  const client = await getXClient();
382
382
  const result = await client.getProfile(handle);
383
383
  console.log(JSON.stringify(result, null, 2));
@@ -443,7 +443,7 @@ program.command("note").description("Add a relationship note about someone").arg
443
443
  });
444
444
  program.command("schedule").description("Queue a post for later").argument("<content>", "Tweet content").option("--at <datetime>", "ISO datetime to post at").action(async (content, opts) => {
445
445
  try {
446
- const { addToQueue } = await import("./queue-N64QLRAB.js");
446
+ const { addToQueue } = await import("./queue-GJ2QQIOC.js");
447
447
  const entry = addToQueue(content, opts.at);
448
448
  console.log(JSON.stringify({ success: true, id: entry.id, scheduledFor: entry.scheduledFor }));
449
449
  } catch (error) {
@@ -453,7 +453,7 @@ program.command("schedule").description("Queue a post for later").argument("<con
453
453
  });
454
454
  program.command("flush").description("Post all queued items whose time has come").action(async () => {
455
455
  try {
456
- const { flushQueue } = await import("./queue-N64QLRAB.js");
456
+ const { flushQueue } = await import("./queue-GJ2QQIOC.js");
457
457
  const results = await flushQueue();
458
458
  console.log(JSON.stringify(results, null, 2));
459
459
  } catch (error) {
@@ -462,13 +462,13 @@ program.command("flush").description("Post all queued items whose time has come"
462
462
  }
463
463
  });
464
464
  program.command("queue").description("Show scheduled posts").action(async () => {
465
- const { showQueue } = await import("./queue-N64QLRAB.js");
465
+ const { showQueue } = await import("./queue-GJ2QQIOC.js");
466
466
  showQueue();
467
467
  });
468
468
  var colony = program.command("colony").description("Colony commands");
469
469
  colony.command("checkin").description("Check into The Colony \u2014 sync memory, discover Spores").option("-m, --message <msg>", "Optional message to post").action(async (opts) => {
470
470
  try {
471
- const { colonyCheckin } = await import("./colony-EFGAMLOX.js");
471
+ const { colonyCheckin } = await import("./colony-P32MRWYW.js");
472
472
  const result = await colonyCheckin(opts.message);
473
473
  console.log(JSON.stringify(result, null, 2));
474
474
  } catch (error) {
@@ -487,7 +487,7 @@ colony.command("memory").description("Read the Colony's shared memory").action(a
487
487
  });
488
488
  colony.command("plans").description("Get all active Colony plans").action(async () => {
489
489
  try {
490
- const { getActivePlans } = await import("./colony-EFGAMLOX.js");
490
+ const { getActivePlans } = await import("./colony-P32MRWYW.js");
491
491
  const plans = getActivePlans();
492
492
  console.log(plans.length > 0 ? JSON.stringify(plans, null, 2) : JSON.stringify({ message: "No active plans. Propose one!" }));
493
493
  } catch (error) {
@@ -497,7 +497,7 @@ colony.command("plans").description("Get all active Colony plans").action(async
497
497
  });
498
498
  colony.command("propose").description("Propose a coordinated plan").argument("<description>", "What's the plan?").action(async (description) => {
499
499
  try {
500
- const { proposePlan } = await import("./colony-EFGAMLOX.js");
500
+ const { proposePlan } = await import("./colony-P32MRWYW.js");
501
501
  const result = await proposePlan(description);
502
502
  console.log(JSON.stringify(result, null, 2));
503
503
  } catch (error) {
@@ -507,7 +507,7 @@ colony.command("propose").description("Propose a coordinated plan").argument("<d
507
507
  });
508
508
  colony.command("join").description("Join an active plan").argument("<planId>", "Plan ID").action(async (planId) => {
509
509
  try {
510
- const { joinPlan } = await import("./colony-EFGAMLOX.js");
510
+ const { joinPlan } = await import("./colony-P32MRWYW.js");
511
511
  const result = await joinPlan(planId);
512
512
  console.log(JSON.stringify(result, null, 2));
513
513
  } catch (error) {
@@ -517,7 +517,7 @@ colony.command("join").description("Join an active plan").argument("<planId>", "
517
517
  });
518
518
  colony.command("post-status").description("Post a status update to the Colony").argument("<status>", "Your status").action(async (status) => {
519
519
  try {
520
- const { postStatus } = await import("./colony-EFGAMLOX.js");
520
+ const { postStatus } = await import("./colony-P32MRWYW.js");
521
521
  const result = await postStatus(status);
522
522
  console.log(JSON.stringify(result, null, 2));
523
523
  } catch (error) {
@@ -527,7 +527,7 @@ colony.command("post-status").description("Post a status update to the Colony").
527
527
  });
528
528
  colony.command("activity").description("Get today's Colony activity").action(async () => {
529
529
  try {
530
- const { getTodaysActivity } = await import("./colony-EFGAMLOX.js");
530
+ const { getTodaysActivity } = await import("./colony-P32MRWYW.js");
531
531
  const activity = getTodaysActivity();
532
532
  console.log(activity.length > 0 ? JSON.stringify(activity, null, 2) : JSON.stringify({ message: "No Colony activity today yet." }));
533
533
  } catch (error) {
@@ -557,11 +557,11 @@ program.command("start").description("Start the autonomous Spora agent").option(
557
557
  }
558
558
  console.log(chalk.cyan(BANNER));
559
559
  console.log(chalk.bold("Starting Spora agent...\n"));
560
- const { startHeartbeatLoop } = await import("./heartbeat-2GVBKQPO.js");
560
+ const { startHeartbeatLoop } = await import("./heartbeat-QZE7KGIS.js");
561
561
  await startHeartbeatLoop();
562
562
  });
563
563
  program.command("stop").description("Stop the running Spora agent").action(async () => {
564
- const { getRunningPid, requestStop } = await import("./heartbeat-2GVBKQPO.js");
564
+ const { getRunningPid, requestStop } = await import("./heartbeat-QZE7KGIS.js");
565
565
  const pid = getRunningPid();
566
566
  if (!pid) {
567
567
  console.log(JSON.stringify({ message: "Spora agent is not running." }));
@@ -599,7 +599,7 @@ program.command("set-llm-key").description("Set your Anthropic API key for the a
599
599
  console.log(JSON.stringify({ success: true, message: "LLM API key saved." }));
600
600
  });
601
601
  program.command("agent-status").description("Check if the Spora agent is running").action(async () => {
602
- const { getRunningPid } = await import("./heartbeat-2GVBKQPO.js");
602
+ const { getRunningPid } = await import("./heartbeat-QZE7KGIS.js");
603
603
  const pid = getRunningPid();
604
604
  const { hasLLMKey } = await import("./llm-OH2Z4PSN.js");
605
605
  console.log(JSON.stringify({