nothumanallowed 13.5.108 → 13.5.110
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 +14 -5
- package/src/constants.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.110",
|
|
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
|
@@ -3215,11 +3215,20 @@ ${rawText.slice(0, 18000)}`;
|
|
|
3215
3215
|
const _cp2 = travelTask.match(/\b(?:a|in)\s+([A-Z][a-zA-Z\u00C0-\u017E]{2,}(?:\s+[A-Z][a-zA-Z\u00C0-\u017E]+)?)/);
|
|
3216
3216
|
// P3: "a/in <lowercase city>" (case insensitive)
|
|
3217
3217
|
const _cp3 = travelTask.match(/\b(?:a|in|at|near)\s+([a-zA-Z\u00C0-\u017E]{3,}(?:\s+[a-zA-Z\u00C0-\u017E]+)?)/i);
|
|
3218
|
-
// P4:
|
|
3219
|
-
|
|
3220
|
-
const
|
|
3221
|
-
|
|
3222
|
-
|
|
3218
|
+
// P4: known cities via word-split — also checks adjectival forms (mantovana→mantova, milanese→milano)
|
|
3219
|
+
const _knownCitiesArr = ['Milano','Roma','Napoli','Torino','Firenze','Bologna','Venezia','Genova','Palermo','Bari','Catania','Verona','Padova','Trieste','Brescia','Bergamo','Modena','Parma','Reggio','Mantova','Ferrara','Vicenza','Treviso','Udine','Trento','Bolzano','Perugia','Ancona','Pescara','Foggia','Salerno','Taranto','Cagliari','Sassari','Siena','Pisa','Lucca','Arezzo','Rimini','Ravenna','Prato','Livorno','Messina','Paris','Lyon','Marseille','Nice','Bordeaux','Toulouse','Strasbourg','Nantes','Madrid','Barcelona','Sevilla','Valencia','Bilbao','Malaga','Lisbon','Porto','Berlin','Munich','Hamburg','Frankfurt','Stuttgart','Cologne','Amsterdam','Rotterdam','Brussels','Vienna','Zurich','Geneva','Prague','Warsaw','Budapest','Bucharest','Athens','Istanbul','London','Manchester','Edinburgh','Dublin','Copenhagen','Stockholm','Oslo','Helsinki','Tokyo','Osaka','Seoul','Beijing','Shanghai','Singapore','Sydney','Melbourne','Toronto','Montreal','Vancouver','Dubai','Bangkok','Mumbai','Delhi','Cairo','Nairobi'];
|
|
3220
|
+
const _taskWords = travelTask.toLowerCase().split(/[\s,;:.!?]+/);
|
|
3221
|
+
// Exact match, then prefix match (with and without final vowel) for demonyms
|
|
3222
|
+
// e.g. mantovana→mantova, veneziano→venezia, milanese→milano (milan+ese)
|
|
3223
|
+
const _cp4found = _knownCitiesArr.find(c => _taskWords.includes(c.toLowerCase()))
|
|
3224
|
+
|| _knownCitiesArr.find(c => {
|
|
3225
|
+
const cl = c.toLowerCase();
|
|
3226
|
+
const cl0 = cl.slice(0, -1); // without final vowel (milan from milano)
|
|
3227
|
+
return c.length >= 4 && _taskWords.some(w => w.length > cl.length - 1 && (w.toLowerCase().startsWith(cl) || (cl0.length >= 4 && w.toLowerCase().startsWith(cl0))));
|
|
3228
|
+
});
|
|
3229
|
+
// P5: "zona <city>" or "zona di <city>" — only if P4 didn't find anything
|
|
3230
|
+
const _cp5 = !_cp4found && travelTask.match(/zona\s+(?:di\s+)?([a-zA-Z\u00C0-\u017E]{3,})/i);
|
|
3231
|
+
const _cityRaw = (_cp1 && _cp1[1]) || (_cp2 && _cp2[1]) || (_cp3 && _cp3[1]) || _cp4found || (_cp5 && _cp5[1]) || null;
|
|
3223
3232
|
if (_cityRaw) {
|
|
3224
3233
|
city = _cityRaw.replace(_stopRx, '').trim();
|
|
3225
3234
|
if (city.length < 2) city = null;
|
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.110';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|