nothumanallowed 13.2.61 → 13.2.63
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.2.
|
|
3
|
+
"version": "13.2.63",
|
|
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.2.
|
|
8
|
+
export const VERSION = '13.2.63';
|
|
9
9
|
export const BASE_URL = 'https://nothumanallowed.com/cli';
|
|
10
10
|
export const API_BASE = 'https://nothumanallowed.com/api/v1';
|
|
11
11
|
|
|
@@ -75,7 +75,11 @@ export async function listEvents(config, calendarId = 'primary', timeMin, timeMa
|
|
|
75
75
|
});
|
|
76
76
|
|
|
77
77
|
const data = await calFetch(config, `/calendars/${encodeURIComponent(calendarId)}/events?${params}`);
|
|
78
|
-
const events = (data.items || []).map(
|
|
78
|
+
const events = (data.items || []).map(raw => {
|
|
79
|
+
const e = parseEvent(raw);
|
|
80
|
+
e.calendarId = calendarId; // propagate real calendarId
|
|
81
|
+
return e;
|
|
82
|
+
});
|
|
79
83
|
|
|
80
84
|
// Cache events
|
|
81
85
|
cacheEvents(timeMin, events);
|
|
@@ -99,6 +103,8 @@ export async function getTodayEvents(config) {
|
|
|
99
103
|
const events = await listEvents(config, cal.id, startOfDay, endOfDay);
|
|
100
104
|
for (const e of events) {
|
|
101
105
|
e.calendarName = cal.summary;
|
|
106
|
+
e.calendarId = cal.id;
|
|
107
|
+
e.readOnly = cal.accessRole === 'reader' || cal.accessRole === 'freeBusyReader';
|
|
102
108
|
allEvents.push(e);
|
|
103
109
|
}
|
|
104
110
|
} catch { /* skip failed calendars */ }
|
|
@@ -116,7 +122,24 @@ export async function getEventsForDate(config, date) {
|
|
|
116
122
|
const d = new Date(date);
|
|
117
123
|
const startOfDay = new Date(d.getFullYear(), d.getMonth(), d.getDate());
|
|
118
124
|
const endOfDay = new Date(startOfDay.getTime() + 86400000);
|
|
119
|
-
|
|
125
|
+
|
|
126
|
+
// Load from all calendars so calendarId is always accurate
|
|
127
|
+
const calendars = await listCalendars(config);
|
|
128
|
+
const allEvents = [];
|
|
129
|
+
for (const cal of calendars) {
|
|
130
|
+
if (cal.accessRole === 'freeBusyReader') continue;
|
|
131
|
+
try {
|
|
132
|
+
const events = await listEvents(config, cal.id, startOfDay, endOfDay);
|
|
133
|
+
for (const e of events) {
|
|
134
|
+
e.calendarName = cal.summary;
|
|
135
|
+
e.calendarId = cal.id;
|
|
136
|
+
e.readOnly = cal.accessRole === 'reader' || cal.accessRole === 'freeBusyReader';
|
|
137
|
+
allEvents.push(e);
|
|
138
|
+
}
|
|
139
|
+
} catch { /* skip */ }
|
|
140
|
+
}
|
|
141
|
+
allEvents.sort((a, b) => new Date(a.start).getTime() - new Date(b.start).getTime());
|
|
142
|
+
return allEvents;
|
|
120
143
|
}
|
|
121
144
|
|
|
122
145
|
/**
|
package/src/services/web-ui.mjs
CHANGED
|
@@ -1204,12 +1204,15 @@ function openDayDetail(dateStr){
|
|
|
1204
1204
|
h+='<div style="display:flex;align-items:flex-start;gap:6px;margin-bottom:4px">';
|
|
1205
1205
|
h+='<div style="flex:1"><div style="color:var(--amber);font-weight:700;font-size:13px;margin-bottom:4px">'+esc(timeStr)+'</div>';
|
|
1206
1206
|
h+='<div style="color:var(--bright);font-size:15px;font-weight:700;margin-bottom:6px">'+esc(x.summary)+'</div></div>';
|
|
1207
|
-
if(x.id){
|
|
1207
|
+
if(x.id&&!x.readOnly){
|
|
1208
1208
|
h+='<div style="display:flex;gap:4px;flex-shrink:0">';
|
|
1209
1209
|
h+='<button onclick="openEventFormByIdx('+idx+')" style="background:var(--bg2);border:1px solid var(--border);color:var(--text);padding:3px 8px;border-radius:4px;font-size:11px">Edit</button>';
|
|
1210
1210
|
h+='<button onclick="deleteCalEventByIdx('+idx+')" style="background:var(--bg2);border:1px solid var(--red);color:var(--red);padding:3px 8px;border-radius:4px;font-size:11px">Delete</button>';
|
|
1211
1211
|
h+='</div>';
|
|
1212
1212
|
}
|
|
1213
|
+
if(x.readOnly){
|
|
1214
|
+
h+='<span style="font-size:9px;color:var(--dim);flex-shrink:0;padding-top:2px">read-only</span>';
|
|
1215
|
+
}
|
|
1213
1216
|
h+='</div>';
|
|
1214
1217
|
if(x.location)h+='<div style="color:var(--cyan);font-size:12px;margin-bottom:4px">Location: '+esc(x.location)+'</div>';
|
|
1215
1218
|
if(x.organizer)h+='<div style="color:var(--dim);font-size:11px;margin-bottom:4px">Organizer: '+esc(x.organizer)+'</div>';
|