nothumanallowed 13.5.33 → 13.5.34
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/ui.mjs +39 -8
- package/src/constants.mjs +1 -1
- package/src/services/web-ui.mjs +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nothumanallowed",
|
|
3
|
-
"version": "13.5.
|
|
3
|
+
"version": "13.5.34",
|
|
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/commands/ui.mjs
CHANGED
|
@@ -3050,6 +3050,21 @@ ${rawText.slice(0, 18000)}`;
|
|
|
3050
3050
|
} else if (agent === 'WebSearchAgent' || agent === 'ResearchAgent') {
|
|
3051
3051
|
sendToken('[Searching the web and reading pages...] ');
|
|
3052
3052
|
try {
|
|
3053
|
+
// If the task or stepPrompt contains explicit URLs, fetch them directly first
|
|
3054
|
+
const explicitUrls = (task + ' ' + stepPrompt).match(/https?:\/\/[^\s"'<>)]+/g);
|
|
3055
|
+
if (explicitUrls && explicitUrls.length > 0) {
|
|
3056
|
+
const uniqueUrls = [...new Set(explicitUrls)].slice(0, 4);
|
|
3057
|
+
for (const u of uniqueUrls) {
|
|
3058
|
+
sendToken(`[Fetching ${u}...] `);
|
|
3059
|
+
try {
|
|
3060
|
+
const fetchRes = await withTimeout(executeTool('fetch_url', { url: u }, config), 30000);
|
|
3061
|
+
const fetchStr = typeof fetchRes === 'string' ? fetchRes : JSON.stringify(fetchRes);
|
|
3062
|
+
if (fetchStr && fetchStr.length > 100) {
|
|
3063
|
+
toolData += (toolData ? '\n\n' : '') + `## Page content: ${u}\n${fetchStr.slice(0, 8000)}`;
|
|
3064
|
+
}
|
|
3065
|
+
} catch (e) { toolData += (toolData ? '\n\n' : '') + `## Fetch ${u} failed: ${e.message}`; }
|
|
3066
|
+
}
|
|
3067
|
+
}
|
|
3053
3068
|
// If there is document context from a previous step, ask the LLM to derive
|
|
3054
3069
|
// the optimal search queries. This is generic and works for any document/task.
|
|
3055
3070
|
let searchQueries = [stepPrompt.slice(0, 120)];
|
|
@@ -3111,17 +3126,33 @@ ${rawText.slice(0, 18000)}`;
|
|
|
3111
3126
|
} catch (e) { toolData = toolData || `Web search failed: ${e.message}`; }
|
|
3112
3127
|
|
|
3113
3128
|
} else if (agent === 'BrowserAgent') {
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3129
|
+
// Collect all URLs from stepPrompt + task, plus infer subpaths mentioned (e.g. /about, /docs)
|
|
3130
|
+
const allUrlMatches = [...new Set((stepPrompt + ' ' + task).match(/https?:\/\/[^\s"'<>)]+/g) || [])];
|
|
3131
|
+
// Also extract any relative paths like /about, /download, /docs mentioned near a base URL
|
|
3132
|
+
const baseUrlMatch = (stepPrompt + ' ' + task).match(/https?:\/\/[^\s"'<>/]+/);
|
|
3133
|
+
if (baseUrlMatch) {
|
|
3134
|
+
const base = baseUrlMatch[0].replace(/\/$/, '');
|
|
3135
|
+
const subpaths = (stepPrompt + ' ' + task).match(/\/[a-z][a-z0-9_/-]*/g) || [];
|
|
3136
|
+
for (const sp of subpaths) {
|
|
3137
|
+
if (sp.length > 1 && sp.length < 40) allUrlMatches.push(base + sp);
|
|
3138
|
+
}
|
|
3139
|
+
}
|
|
3140
|
+
const urlsToFetch = [...new Set(allUrlMatches)].slice(0, 5);
|
|
3141
|
+
if (urlsToFetch.length > 0) {
|
|
3142
|
+
for (const u of urlsToFetch) {
|
|
3143
|
+
sendToken(`[Fetching ${u}...] `);
|
|
3144
|
+
try {
|
|
3145
|
+
const fetchResult = await withTimeout(executeTool('fetch_url', { url: u }, config), 30000);
|
|
3146
|
+
const fetchStr = typeof fetchResult === 'string' ? fetchResult : JSON.stringify(fetchResult);
|
|
3147
|
+
if (fetchStr && fetchStr.length > 100) {
|
|
3148
|
+
toolData += (toolData ? '\n\n' : '') + `## Page: ${u}\n${fetchStr.slice(0, 8000)}`;
|
|
3149
|
+
}
|
|
3150
|
+
} catch (e) { toolData += (toolData ? '\n\n' : '') + `## Fetch ${u} failed: ${e.message}`; }
|
|
3151
|
+
}
|
|
3121
3152
|
} else {
|
|
3122
3153
|
sendToken('[Searching web...] ');
|
|
3123
3154
|
try {
|
|
3124
|
-
const searchResult = await withTimeout(executeTool('web_search', { query: stepPrompt }, config),
|
|
3155
|
+
const searchResult = await withTimeout(executeTool('web_search', { query: stepPrompt }, config), 30000);
|
|
3125
3156
|
toolData = typeof searchResult === 'string' ? searchResult : JSON.stringify(searchResult);
|
|
3126
3157
|
} catch (e) { toolData = `Browser search failed: ${e.message}`; }
|
|
3127
3158
|
}
|
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.
|
|
8
|
+
export const VERSION = '13.5.34';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|
package/src/services/web-ui.mjs
CHANGED
|
@@ -3338,7 +3338,7 @@ var studioAbortController = null;
|
|
|
3338
3338
|
var parlActiveAgent = null; // active agent label during parliament streaming
|
|
3339
3339
|
var parlDoneAgents = {}; // set of completed agent labels during parliament
|
|
3340
3340
|
var _parlPersistHtml = null; // persists parliament block HTML across tab navigations
|
|
3341
|
-
var _PARL_STAMP = '<!--nha-parl-v13.5.
|
|
3341
|
+
var _PARL_STAMP = '<!--nha-parl-v13.5.34-->';
|
|
3342
3342
|
|
|
3343
3343
|
function stopStudio() {
|
|
3344
3344
|
if (!studioState.running) return;
|