nothumanallowed 14.1.49 → 14.1.50

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nothumanallowed",
3
- "version": "14.1.49",
3
+ "version": "14.1.50",
4
4
  "description": "NotHumanAllowed — 38 AI agents, 80 tools, Studio (visual agentic workflows). Email, calendar, browser automation, screen capture, canvas, cron/heartbeat, Alexandria E2E messaging, GitHub, Notion, Slack, voice chat, free AI (Liara), 28 languages. Zero-dependency CLI.",
5
5
  "type": "module",
6
6
  "bin": {
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 = '14.1.49';
8
+ export const VERSION = '14.1.50';
9
9
  export const BASE_URL = 'https://nothumanallowed.com/cli';
10
10
  export const API_BASE = 'https://nothumanallowed.com/api/v1';
11
11
 
@@ -13,9 +13,9 @@ export function register(router) {
13
13
 
14
14
  router.get('/api/github/repos', async (_req, res) => {
15
15
  try {
16
- const { listRepos } = await import('../../services/github.mjs');
16
+ const { listUserRepos } = await import('../../services/github.mjs');
17
17
  const config = loadConfig();
18
- sendJSON(res, 200, { repos: await listRepos(config) });
18
+ sendJSON(res, 200, { repos: await listUserRepos(config) });
19
19
  } catch (e) {
20
20
  if (e.message?.includes('token') || e.message?.includes('not configured')) return sendJSON(res, 200, { repos: [], authRequired: true });
21
21
  sendError(res, 500, e.message);
@@ -24,9 +24,9 @@ export function register(router) {
24
24
 
25
25
  router.get('/api/github', async (req, res) => {
26
26
  try {
27
- const { getNotifications } = await import('../../services/github.mjs');
27
+ const { listNotifications } = await import('../../services/github.mjs');
28
28
  const config = loadConfig();
29
- sendJSON(res, 200, { notifications: await getNotifications(config) });
29
+ sendJSON(res, 200, { notifications: await listNotifications(config) });
30
30
  } catch (e) {
31
31
  if (e.message?.includes('token') || e.message?.includes('not configured')) return sendJSON(res, 200, { notifications: [], authRequired: true });
32
32
  sendError(res, 500, e.message);
@@ -59,10 +59,9 @@ export function register(router) {
59
59
 
60
60
  router.post('/api/github/mark-read', async (req, res) => {
61
61
  try {
62
- const { markNotificationRead } = await import('../../services/github.mjs');
63
- const body = await parseBody(req);
62
+ const { markNotificationsRead } = await import('../../services/github.mjs');
64
63
  const config = loadConfig();
65
- await markNotificationRead(config, body.id);
64
+ await markNotificationsRead(config);
66
65
  sendJSON(res, 200, { ok: true });
67
66
  } catch (e) { sendError(res, 500, e.message); }
68
67
  });