nothumanallowed 11.1.2 → 11.2.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/package.json +1 -1
- package/src/commands/collab.mjs +8 -4
- package/src/constants.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
4
4
|
"description": "NotHumanAllowed — 38 AI agents, 53 tools. Email, calendar, browser automation, screen capture, canvas, cron/heartbeat, GitHub, Notion, Slack, voice chat, 28 languages. Zero-dependency CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
package/src/commands/collab.mjs
CHANGED
|
@@ -320,8 +320,9 @@ async function cmdRead(args) {
|
|
|
320
320
|
const channel = getActiveChannel();
|
|
321
321
|
if (!channel) { fail('No active channel. Create or join one first.'); return; }
|
|
322
322
|
|
|
323
|
-
const
|
|
324
|
-
const
|
|
323
|
+
const showAll = args.includes('--all');
|
|
324
|
+
const limit = showAll ? 9999 : 10; // default: last 10 messages
|
|
325
|
+
const query = `?fp=${identity.fingerprint}&limit=${limit}`;
|
|
325
326
|
const result = await apiGet(`/channels/${channel.id}/messages${query}`);
|
|
326
327
|
if (result.error) { fail(result.error); return; }
|
|
327
328
|
|
|
@@ -333,9 +334,12 @@ async function cmdRead(args) {
|
|
|
333
334
|
// Derive channel key from ID + secret
|
|
334
335
|
const channelKey = deriveChannelKey(channel.id, channel.secret);
|
|
335
336
|
|
|
336
|
-
|
|
337
|
+
const msgs = result.messages.slice(-limit);
|
|
338
|
+
const total = result.total || result.messages.length;
|
|
339
|
+
const showing = msgs.length;
|
|
340
|
+
console.log(`\n ${BOLD}${channel.name}${NC} ${D}(showing ${showing}/${total} messages${showing < total ? ' — use --all for full history' : ''})${NC}\n`);
|
|
337
341
|
|
|
338
|
-
for (const msg of
|
|
342
|
+
for (const msg of msgs) {
|
|
339
343
|
const time = new Date(msg.timestamp).toLocaleTimeString();
|
|
340
344
|
const sender = result.members?.find(m => m.fingerprint === msg.senderFingerprint);
|
|
341
345
|
const senderName = sender?.displayName || msg.senderFingerprint.slice(0, 8);
|
package/src/constants.mjs
CHANGED
|
@@ -5,7 +5,7 @@ import { fileURLToPath } from 'url';
|
|
|
5
5
|
const __filename = fileURLToPath(import.meta.url);
|
|
6
6
|
const __dirname = path.dirname(__filename);
|
|
7
7
|
|
|
8
|
-
export const VERSION = '11.
|
|
8
|
+
export const VERSION = '11.2.0';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|