nothumanallowed 13.5.142 → 13.5.143

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": "13.5.142",
3
+ "version": "13.5.143",
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 = '13.5.142';
8
+ export const VERSION = '13.5.143';
9
9
  export const BASE_URL = 'https://nothumanallowed.com/cli';
10
10
  export const API_BASE = 'https://nothumanallowed.com/api/v1';
11
11
 
@@ -574,6 +574,41 @@ RULES:
574
574
  - API TIP: For npm package info, use fetch_url with the registry API: fetch_url("https://registry.npmjs.org/PACKAGE/latest") for version/description, and fetch_url("https://api.npmjs.org/downloads/point/last-week/PACKAGE") for weekly downloads. These are JSON APIs, much more reliable than scraping the npm website.
575
575
  `.trim();
576
576
 
577
+ // ── Liara compact system prompt ───────────────────────────────────────────────
578
+ // Used ONLY when provider === 'nha'. Liara already knows tool signatures from
579
+ // LoRA training — no verbose descriptions needed. Dynamic values (today, tz,
580
+ // language, profile, imap accounts) are still injected at runtime below.
581
+ export const LIARA_TOOL_DEFINITIONS = `You are Liara, the NHA personal AI assistant.
582
+ Today: {{TODAY}} | Timezone: {{TIMEZONE}} | Language: {{LANGUAGE}}
583
+
584
+ When the user's request requires an action, output one or more fenced JSON blocks:
585
+ \`\`\`json
586
+ {"action": "<tool_name>", "params": { ... }}
587
+ \`\`\`
588
+ Multiple blocks allowed for chaining. Include natural text before/between/after blocks.
589
+ Never output a JSON block as a suggestion — every block executes immediately.
590
+
591
+ AVAILABLE TOOLS:
592
+ gmail_list · gmail_read · gmail_send · gmail_draft · gmail_reply · gmail_mark_read · gmail_mark_unread · gmail_archive · gmail_delete · gmail_send_attach
593
+ imap_accounts · imap_list · imap_read · imap_send · imap_sync · imap_labels · imap_mark_read · imap_reply · imap_thread · imap_search · imap_mark_starred · imap_trash · imap_draft · imap_send_template · imap_bulk_send
594
+ calendar_today · calendar_tomorrow · calendar_upcoming · calendar_week · calendar_create · calendar_move · calendar_find · calendar_update · schedule_meeting · schedule_draft_email
595
+ task_list · task_add · task_done · task_move · task_delete · task_clear · task_edit
596
+ contact_search · contact_add · contact_update · contact_delete
597
+ gtask_list · gtask_add · gtask_complete
598
+ note_add · note_list
599
+ github_issues · github_prs · github_notifications · github_create_issue
600
+ notion_search · notion_page
601
+ slack_channels · slack_messages · slack_send
602
+ web_search · fetch_url
603
+ browser_open · browser_screenshot · browser_click · browser_type · browser_extract · browser_js · browser_wait · browser_scroll · browser_key · browser_close
604
+ cron_add · cron_list · cron_remove
605
+ screen_capture · screen_analyze
606
+ canvas_render · canvas_clear
607
+ collab_send · collab_read
608
+ file_list · file_read · file_write · file_info · file_search
609
+ drive_list · drive_read · drive_upload · drive_update · drive_delete · drive_info · drive_folder · drive_download
610
+ maps_directions · notify_remind · birthdays_upcoming · birthday_add · execute_code`.trim();
611
+
577
612
  // ── Action Parser ────────────────────────────────────────────────────────────
578
613
 
579
614
  /**
@@ -749,7 +784,13 @@ export async function buildSystemPrompt(persona, personaDescription, config, ini
749
784
  };
750
785
  const language = config?.language || LANG_MAP[langCode] || 'English';
751
786
 
752
- let prompt = TOOL_DEFINITIONS
787
+ // Liara (provider 'nha') uses the compact prompt tool signatures are
788
+ // already baked into the LoRA weights, no verbose descriptions needed.
789
+ // All other providers get the full TOOL_DEFINITIONS with descriptions.
790
+ const isLiara = config?.llm?.provider === 'nha';
791
+ const baseDefinitions = isLiara ? LIARA_TOOL_DEFINITIONS : TOOL_DEFINITIONS;
792
+
793
+ let prompt = baseDefinitions
753
794
  .replace('{{TODAY}}', today)
754
795
  .replace('{{TIMEZONE}}', tz)
755
796
  .replace(/\{\{LANGUAGE\}\}/g, language);