@agenticmail/enterprise 0.5.46 → 0.5.48

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.
@@ -0,0 +1,148 @@
1
+ import {
2
+ ALL_TOOLS,
3
+ init_tool_catalog
4
+ } from "./chunk-MINPSFLF.js";
5
+ import {
6
+ collectCommunityToolIds,
7
+ validateSkillManifest
8
+ } from "./chunk-TY7NVD4U.js";
9
+ import "./chunk-KFQGP6VL.js";
10
+
11
+ // src/engine/cli-validate.ts
12
+ init_tool_catalog();
13
+ async function runValidate(args) {
14
+ const chalk = (await import("chalk")).default;
15
+ const fs = await import("fs/promises");
16
+ const path = await import("path");
17
+ const jsonMode = args.includes("--json");
18
+ const allMode = args.includes("--all");
19
+ const pathArgs = args.filter((a) => !a.startsWith("--"));
20
+ const builtinIds = new Set(ALL_TOOLS.map((t) => t.id));
21
+ const communityDir = path.resolve(process.cwd(), "community-skills");
22
+ const reports = [];
23
+ if (allMode) {
24
+ let entries;
25
+ try {
26
+ entries = await fs.readdir(communityDir, { withFileTypes: true });
27
+ } catch {
28
+ if (jsonMode) {
29
+ console.log(JSON.stringify({ error: "community-skills/ directory not found" }));
30
+ } else {
31
+ console.error(chalk.red("Error: community-skills/ directory not found"));
32
+ }
33
+ process.exit(1);
34
+ return;
35
+ }
36
+ for (const entry of entries) {
37
+ if (!entry.isDirectory() || entry.name.startsWith("_") || entry.name.startsWith(".")) continue;
38
+ const skillDir = path.join(communityDir, entry.name);
39
+ const report = await validatePath(skillDir, builtinIds, communityDir);
40
+ reports.push(report);
41
+ }
42
+ } else {
43
+ const target = pathArgs[0];
44
+ if (!target) {
45
+ if (jsonMode) {
46
+ console.log(JSON.stringify({ error: "No path specified. Usage: npx @agenticmail/enterprise validate <path> [--all] [--json]" }));
47
+ } else {
48
+ console.log(`${chalk.bold("Usage:")} npx @agenticmail/enterprise validate <path>`);
49
+ console.log("");
50
+ console.log(" <path> Path to a skill directory or agenticmail-skill.json file");
51
+ console.log(" --all Validate all skills in community-skills/");
52
+ console.log(" --json Machine-readable JSON output");
53
+ }
54
+ process.exit(1);
55
+ return;
56
+ }
57
+ const report = await validatePath(path.resolve(target), builtinIds, communityDir);
58
+ reports.push(report);
59
+ }
60
+ if (jsonMode) {
61
+ console.log(JSON.stringify({ results: reports, totalErrors: reports.reduce((s, r) => s + r.errors.length, 0) }, null, 2));
62
+ } else {
63
+ console.log("");
64
+ for (const report of reports) {
65
+ if (report.valid) {
66
+ console.log(chalk.green(" \u2714") + " " + chalk.bold(report.skillId) + chalk.dim(` (${report.path})`));
67
+ } else {
68
+ console.log(chalk.red(" \u2718") + " " + chalk.bold(report.skillId) + chalk.dim(` (${report.path})`));
69
+ for (const err of report.errors) {
70
+ console.log(chalk.red(" \u2502 ") + err);
71
+ }
72
+ }
73
+ for (const warn of report.warnings) {
74
+ console.log(chalk.yellow(" \u26A0 ") + warn);
75
+ }
76
+ }
77
+ console.log("");
78
+ const passed = reports.filter((r) => r.valid).length;
79
+ const failed = reports.filter((r) => !r.valid).length;
80
+ if (failed > 0) {
81
+ console.log(chalk.red(` ${failed} failed`) + chalk.dim(`, ${passed} passed, ${reports.length} total`));
82
+ } else {
83
+ console.log(chalk.green(` ${passed} passed`) + chalk.dim(`, ${reports.length} total`));
84
+ }
85
+ console.log("");
86
+ }
87
+ if (reports.some((r) => !r.valid)) {
88
+ process.exit(1);
89
+ }
90
+ }
91
+ async function validatePath(targetPath, builtinIds, communityDir) {
92
+ const fs = await import("fs/promises");
93
+ const path = await import("path");
94
+ let manifestPath;
95
+ try {
96
+ const stat = await fs.stat(targetPath);
97
+ if (stat.isDirectory()) {
98
+ manifestPath = path.join(targetPath, "agenticmail-skill.json");
99
+ } else {
100
+ manifestPath = targetPath;
101
+ }
102
+ } catch {
103
+ return {
104
+ path: targetPath,
105
+ skillId: path.basename(targetPath),
106
+ valid: false,
107
+ errors: [`Path not found: ${targetPath}`],
108
+ warnings: []
109
+ };
110
+ }
111
+ let raw;
112
+ try {
113
+ raw = await fs.readFile(manifestPath, "utf-8");
114
+ } catch {
115
+ return {
116
+ path: manifestPath,
117
+ skillId: path.basename(path.dirname(manifestPath)),
118
+ valid: false,
119
+ errors: [`Cannot read: ${manifestPath}`],
120
+ warnings: []
121
+ };
122
+ }
123
+ let manifest;
124
+ try {
125
+ manifest = JSON.parse(raw);
126
+ } catch (err) {
127
+ return {
128
+ path: manifestPath,
129
+ skillId: path.basename(path.dirname(manifestPath)),
130
+ valid: false,
131
+ errors: [`Invalid JSON: ${err.message}`],
132
+ warnings: []
133
+ };
134
+ }
135
+ const communityIds = await collectCommunityToolIds(communityDir, manifest.id);
136
+ const allExistingIds = /* @__PURE__ */ new Set([...builtinIds, ...communityIds]);
137
+ const result = validateSkillManifest(manifest, { existingToolIds: allExistingIds });
138
+ return {
139
+ path: manifestPath,
140
+ skillId: manifest.id || path.basename(path.dirname(manifestPath)),
141
+ valid: result.valid,
142
+ errors: result.errors,
143
+ warnings: result.warnings
144
+ };
145
+ }
146
+ export {
147
+ runValidate
148
+ };
package/dist/cli.js CHANGED
@@ -5,7 +5,7 @@ var args = process.argv.slice(2);
5
5
  var command = args[0];
6
6
  switch (command) {
7
7
  case "validate":
8
- import("./cli-validate-QTV6662P.js").then((m) => m.runValidate(args.slice(1))).catch(fatal);
8
+ import("./cli-validate-QVUQDNGI.js").then((m) => m.runValidate(args.slice(1))).catch(fatal);
9
9
  break;
10
10
  case "build-skill":
11
11
  import("./cli-build-skill-AE7QC5C5.js").then((m) => m.runBuildSkill(args.slice(1))).catch(fatal);
@@ -48,7 +48,7 @@ Skill Development:
48
48
  break;
49
49
  case "setup":
50
50
  default:
51
- import("./setup-N3RQCS32.js").then((m) => m.runSetupWizard()).catch(fatal);
51
+ import("./setup-DRJP24W7.js").then((m) => m.runSetupWizard()).catch(fatal);
52
52
  break;
53
53
  }
54
54
  function fatal(err) {
@@ -0,0 +1,352 @@
1
+ /**
2
+ * Comprehensive IANA timezone list grouped by region.
3
+ * Used for timezone dropdown selectors across the dashboard.
4
+ */
5
+
6
+ export const TIMEZONE_GROUPS = {
7
+ 'US & Canada': [
8
+ 'America/New_York',
9
+ 'America/Chicago',
10
+ 'America/Denver',
11
+ 'America/Los_Angeles',
12
+ 'America/Anchorage',
13
+ 'Pacific/Honolulu',
14
+ 'America/Phoenix',
15
+ 'America/Indiana/Indianapolis',
16
+ 'America/Detroit',
17
+ 'America/Kentucky/Louisville',
18
+ 'America/Boise',
19
+ 'America/Juneau',
20
+ 'America/Adak',
21
+ 'America/Nome',
22
+ 'America/Sitka',
23
+ 'America/Yakutat',
24
+ 'America/Metlakatla',
25
+ 'America/Menominee',
26
+ 'America/North_Dakota/Center',
27
+ 'America/North_Dakota/New_Salem',
28
+ 'America/North_Dakota/Beulah',
29
+ 'America/Indiana/Knox',
30
+ 'America/Indiana/Marengo',
31
+ 'America/Indiana/Petersburg',
32
+ 'America/Indiana/Tell_City',
33
+ 'America/Indiana/Vevay',
34
+ 'America/Indiana/Vincennes',
35
+ 'America/Indiana/Winamac',
36
+ 'America/Kentucky/Monticello',
37
+ 'America/Toronto',
38
+ 'America/Vancouver',
39
+ 'America/Winnipeg',
40
+ 'America/Edmonton',
41
+ 'America/Halifax',
42
+ 'America/Regina',
43
+ 'America/St_Johns',
44
+ 'America/Yellowknife',
45
+ 'America/Whitehorse',
46
+ 'America/Iqaluit',
47
+ 'America/Moncton',
48
+ 'America/Thunder_Bay',
49
+ ],
50
+ 'Central & South America': [
51
+ 'America/Mexico_City',
52
+ 'America/Cancun',
53
+ 'America/Tijuana',
54
+ 'America/Bogota',
55
+ 'America/Lima',
56
+ 'America/Santiago',
57
+ 'America/Buenos_Aires',
58
+ 'America/Sao_Paulo',
59
+ 'America/Caracas',
60
+ 'America/Guatemala',
61
+ 'America/Havana',
62
+ 'America/Jamaica',
63
+ 'America/Panama',
64
+ 'America/Costa_Rica',
65
+ 'America/El_Salvador',
66
+ 'America/Tegucigalpa',
67
+ 'America/Managua',
68
+ 'America/Guayaquil',
69
+ 'America/La_Paz',
70
+ 'America/Asuncion',
71
+ 'America/Montevideo',
72
+ 'America/Guyana',
73
+ 'America/Paramaribo',
74
+ 'America/Port-au-Prince',
75
+ 'America/Santo_Domingo',
76
+ 'America/Puerto_Rico',
77
+ 'America/Martinique',
78
+ 'America/Barbados',
79
+ 'America/Curacao',
80
+ 'America/Aruba',
81
+ 'America/Trinidad',
82
+ 'America/Cayenne',
83
+ 'America/Belize',
84
+ 'America/Recife',
85
+ 'America/Fortaleza',
86
+ 'America/Manaus',
87
+ 'America/Belem',
88
+ 'America/Cuiaba',
89
+ 'America/Campo_Grande',
90
+ 'America/Porto_Velho',
91
+ 'America/Rio_Branco',
92
+ 'America/Noronha',
93
+ 'America/Araguaina',
94
+ 'America/Bahia',
95
+ 'America/Maceio',
96
+ 'America/Cordoba',
97
+ 'America/Mendoza',
98
+ 'America/Punta_Arenas',
99
+ ],
100
+ 'Europe': [
101
+ 'UTC',
102
+ 'Europe/London',
103
+ 'Europe/Dublin',
104
+ 'Europe/Lisbon',
105
+ 'Europe/Paris',
106
+ 'Europe/Berlin',
107
+ 'Europe/Amsterdam',
108
+ 'Europe/Brussels',
109
+ 'Europe/Zurich',
110
+ 'Europe/Vienna',
111
+ 'Europe/Rome',
112
+ 'Europe/Madrid',
113
+ 'Europe/Barcelona',
114
+ 'Europe/Stockholm',
115
+ 'Europe/Oslo',
116
+ 'Europe/Copenhagen',
117
+ 'Europe/Helsinki',
118
+ 'Europe/Warsaw',
119
+ 'Europe/Prague',
120
+ 'Europe/Budapest',
121
+ 'Europe/Bucharest',
122
+ 'Europe/Sofia',
123
+ 'Europe/Athens',
124
+ 'Europe/Istanbul',
125
+ 'Europe/Moscow',
126
+ 'Europe/Kiev',
127
+ 'Europe/Minsk',
128
+ 'Europe/Riga',
129
+ 'Europe/Tallinn',
130
+ 'Europe/Vilnius',
131
+ 'Europe/Belgrade',
132
+ 'Europe/Zagreb',
133
+ 'Europe/Ljubljana',
134
+ 'Europe/Sarajevo',
135
+ 'Europe/Skopje',
136
+ 'Europe/Bratislava',
137
+ 'Europe/Luxembourg',
138
+ 'Europe/Malta',
139
+ 'Europe/Monaco',
140
+ 'Europe/Andorra',
141
+ 'Europe/Gibraltar',
142
+ 'Europe/Tirane',
143
+ 'Europe/Chisinau',
144
+ 'Europe/Samara',
145
+ 'Europe/Volgograd',
146
+ 'Europe/Kaliningrad',
147
+ 'Atlantic/Reykjavik',
148
+ 'Atlantic/Azores',
149
+ 'Atlantic/Canary',
150
+ 'Atlantic/Faroe',
151
+ 'Atlantic/Madeira',
152
+ ],
153
+ 'Africa': [
154
+ 'Africa/Cairo',
155
+ 'Africa/Lagos',
156
+ 'Africa/Nairobi',
157
+ 'Africa/Johannesburg',
158
+ 'Africa/Casablanca',
159
+ 'Africa/Accra',
160
+ 'Africa/Algiers',
161
+ 'Africa/Tunis',
162
+ 'Africa/Tripoli',
163
+ 'Africa/Khartoum',
164
+ 'Africa/Addis_Ababa',
165
+ 'Africa/Dar_es_Salaam',
166
+ 'Africa/Kampala',
167
+ 'Africa/Maputo',
168
+ 'Africa/Lusaka',
169
+ 'Africa/Harare',
170
+ 'Africa/Windhoek',
171
+ 'Africa/Luanda',
172
+ 'Africa/Kinshasa',
173
+ 'Africa/Lubumbashi',
174
+ 'Africa/Douala',
175
+ 'Africa/Libreville',
176
+ 'Africa/Brazzaville',
177
+ 'Africa/Malabo',
178
+ 'Africa/Niamey',
179
+ 'Africa/Ndjamena',
180
+ 'Africa/Bamako',
181
+ 'Africa/Nouakchott',
182
+ 'Africa/Dakar',
183
+ 'Africa/Conakry',
184
+ 'Africa/Freetown',
185
+ 'Africa/Monrovia',
186
+ 'Africa/Abidjan',
187
+ 'Africa/Lome',
188
+ 'Africa/Porto-Novo',
189
+ 'Africa/Ouagadougou',
190
+ 'Africa/Banjul',
191
+ 'Africa/Bissau',
192
+ 'Africa/Sao_Tome',
193
+ 'Africa/Asmara',
194
+ 'Africa/Djibouti',
195
+ 'Africa/Mogadishu',
196
+ 'Africa/Juba',
197
+ 'Africa/Kigali',
198
+ 'Africa/Bujumbura',
199
+ 'Africa/Blantyre',
200
+ 'Africa/Gaborone',
201
+ 'Africa/Maseru',
202
+ 'Africa/Mbabane',
203
+ 'Indian/Antananarivo',
204
+ 'Indian/Mauritius',
205
+ 'Indian/Reunion',
206
+ 'Indian/Mayotte',
207
+ 'Indian/Comoro',
208
+ 'Atlantic/Cape_Verde',
209
+ ],
210
+ 'Asia': [
211
+ 'Asia/Dubai',
212
+ 'Asia/Riyadh',
213
+ 'Asia/Qatar',
214
+ 'Asia/Kuwait',
215
+ 'Asia/Bahrain',
216
+ 'Asia/Muscat',
217
+ 'Asia/Tehran',
218
+ 'Asia/Baghdad',
219
+ 'Asia/Amman',
220
+ 'Asia/Beirut',
221
+ 'Asia/Damascus',
222
+ 'Asia/Jerusalem',
223
+ 'Asia/Karachi',
224
+ 'Asia/Kolkata',
225
+ 'Asia/Colombo',
226
+ 'Asia/Dhaka',
227
+ 'Asia/Kathmandu',
228
+ 'Asia/Almaty',
229
+ 'Asia/Tashkent',
230
+ 'Asia/Bishkek',
231
+ 'Asia/Tbilisi',
232
+ 'Asia/Baku',
233
+ 'Asia/Yerevan',
234
+ 'Asia/Kabul',
235
+ 'Asia/Ashgabat',
236
+ 'Asia/Dushanbe',
237
+ 'Asia/Rangoon',
238
+ 'Asia/Bangkok',
239
+ 'Asia/Jakarta',
240
+ 'Asia/Ho_Chi_Minh',
241
+ 'Asia/Phnom_Penh',
242
+ 'Asia/Vientiane',
243
+ 'Asia/Singapore',
244
+ 'Asia/Kuala_Lumpur',
245
+ 'Asia/Brunei',
246
+ 'Asia/Manila',
247
+ 'Asia/Shanghai',
248
+ 'Asia/Hong_Kong',
249
+ 'Asia/Macau',
250
+ 'Asia/Taipei',
251
+ 'Asia/Seoul',
252
+ 'Asia/Tokyo',
253
+ 'Asia/Pyongyang',
254
+ 'Asia/Ulaanbaatar',
255
+ 'Asia/Vladivostok',
256
+ 'Asia/Irkutsk',
257
+ 'Asia/Krasnoyarsk',
258
+ 'Asia/Novosibirsk',
259
+ 'Asia/Omsk',
260
+ 'Asia/Yekaterinburg',
261
+ 'Asia/Magadan',
262
+ 'Asia/Kamchatka',
263
+ 'Asia/Sakhalin',
264
+ 'Asia/Yakutsk',
265
+ 'Asia/Chita',
266
+ 'Asia/Srednekolymsk',
267
+ 'Asia/Anadyr',
268
+ ],
269
+ 'Australia & Pacific': [
270
+ 'Australia/Sydney',
271
+ 'Australia/Melbourne',
272
+ 'Australia/Brisbane',
273
+ 'Australia/Perth',
274
+ 'Australia/Adelaide',
275
+ 'Australia/Hobart',
276
+ 'Australia/Darwin',
277
+ 'Australia/Lord_Howe',
278
+ 'Pacific/Auckland',
279
+ 'Pacific/Fiji',
280
+ 'Pacific/Chatham',
281
+ 'Pacific/Tongatapu',
282
+ 'Pacific/Apia',
283
+ 'Pacific/Noumea',
284
+ 'Pacific/Port_Moresby',
285
+ 'Pacific/Guadalcanal',
286
+ 'Pacific/Efate',
287
+ 'Pacific/Tarawa',
288
+ 'Pacific/Majuro',
289
+ 'Pacific/Kwajalein',
290
+ 'Pacific/Pago_Pago',
291
+ 'Pacific/Guam',
292
+ 'Pacific/Palau',
293
+ 'Pacific/Kosrae',
294
+ 'Pacific/Pohnpei',
295
+ 'Pacific/Chuuk',
296
+ 'Pacific/Wake',
297
+ 'Pacific/Midway',
298
+ 'Pacific/Gambier',
299
+ 'Pacific/Marquesas',
300
+ 'Pacific/Tahiti',
301
+ 'Pacific/Pitcairn',
302
+ 'Pacific/Easter',
303
+ 'Pacific/Galapagos',
304
+ 'Pacific/Rarotonga',
305
+ 'Pacific/Niue',
306
+ 'Pacific/Norfolk',
307
+ 'Indian/Maldives',
308
+ 'Indian/Chagos',
309
+ 'Indian/Cocos',
310
+ 'Indian/Christmas',
311
+ ],
312
+ };
313
+
314
+ /**
315
+ * Flat list of all timezones for simple iteration.
316
+ */
317
+ export const ALL_TIMEZONES = Object.values(TIMEZONE_GROUPS).flat();
318
+
319
+ /**
320
+ * Get a human-friendly label for a timezone.
321
+ * e.g. "America/New_York" → "America/New York (EST)"
322
+ */
323
+ export function getTimezoneLabel(tz) {
324
+ try {
325
+ const now = new Date();
326
+ const formatter = new Intl.DateTimeFormat('en-US', { timeZone: tz, timeZoneName: 'short' });
327
+ const parts = formatter.formatToParts(now);
328
+ const abbr = parts.find(p => p.type === 'timeZoneName')?.value || '';
329
+ const display = tz.replace(/_/g, ' ');
330
+ return abbr ? `${display} (${abbr})` : display;
331
+ } catch {
332
+ return tz.replace(/_/g, ' ');
333
+ }
334
+ }
335
+
336
+ /**
337
+ * Render a timezone <select> using Preact's h().
338
+ * @param {Function} h - Preact createElement
339
+ * @param {string} value - Current selected timezone
340
+ * @param {Function} onChange - Change handler (receives event)
341
+ * @param {object} [props] - Additional props for the <select> element
342
+ */
343
+ export function TimezoneSelect(h, value, onChange, props = {}) {
344
+ return h('select', { className: 'input', value, onChange, ...props },
345
+ h('option', { value: '' }, '-- Select Timezone --'),
346
+ Object.entries(TIMEZONE_GROUPS).map(([group, tzs]) =>
347
+ h('optgroup', { key: group, label: group },
348
+ tzs.map(tz => h('option', { key: tz, value: tz }, getTimezoneLabel(tz)))
349
+ )
350
+ )
351
+ );
352
+ }
@@ -1,5 +1,6 @@
1
1
  import { h, useState, useEffect, useCallback, Fragment, useApp, engineCall, buildAgentEmailMap, resolveAgentEmail, buildAgentDataMap, renderAgentBadge, getOrgId } from '../components/utils.js';
2
2
  import { I } from '../components/icons.js';
3
+ import { TimezoneSelect } from '../components/timezones.js';
3
4
 
4
5
  export function WorkforcePage() {
5
6
  const { toast } = useApp();
@@ -275,14 +276,27 @@ export function WorkforcePage() {
275
276
  ? h('tr', null, h('td', { colSpan: 5, style: { textAlign: 'center', color: 'var(--text-muted)', padding: 40 } }, 'No agents found'))
276
277
  : status.agents.map(a => h('tr', { key: a.agentId },
277
278
  h('td', null, renderAgentBadge(a.agentId || a.id, agentData)),
278
- h('td', null, statusBadge(a.status)),
279
+ h('td', null, statusBadge(a.clockStatus || a.status)),
279
280
  h('td', null, a.schedule
280
- ? (a.schedule.type || 'Standard') + ': ' + (a.schedule.start || '-') + ' - ' + (a.schedule.end || '-')
281
+ ? h(Fragment, null,
282
+ schedTypeBadge(a.schedule.scheduleType || a.schedule.type || 'standard'),
283
+ ' ',
284
+ a.schedule.scheduleType === 'standard' && a.schedule.config?.standardHours
285
+ ? (a.schedule.config.standardHours.start || '09:00') + ' - ' + (a.schedule.config.standardHours.end || '17:00')
286
+ : a.schedule.scheduleType === 'shift' && a.schedule.config?.shifts?.length
287
+ ? a.schedule.config.shifts[0].start + ' - ' + a.schedule.config.shifts[0].end
288
+ : (a.schedule.start || '-') + ' - ' + (a.schedule.end || '-')
289
+ )
281
290
  : h('span', { style: { color: 'var(--text-muted)' } }, 'None')),
282
- h('td', null, a.nextEvent ? formatTime(a.nextEvent) : '-'),
291
+ h('td', null, a.nextEvent
292
+ ? h(Fragment, null,
293
+ h('span', { className: 'badge', style: { background: a.nextEvent.type === 'clock_in' ? 'var(--success)' : 'var(--warning)', color: '#fff', marginRight: 4 } }, a.nextEvent.type === 'clock_in' ? 'Clock In' : 'Clock Out'),
294
+ formatTime(a.nextEvent.at)
295
+ )
296
+ : '-'),
283
297
  h('td', { style: { display: 'flex', gap: 4 } },
284
- a.status !== 'clocked_in' && h('button', { className: 'btn btn-ghost btn-sm', onClick: () => handleClockIn(a.agentId) }, I.play(), ' Clock In'),
285
- a.status === 'clocked_in' && h('button', { className: 'btn btn-ghost btn-sm', onClick: () => handleClockOut(a.agentId) }, I.pause(), ' Clock Out')
298
+ (a.clockStatus || a.status) !== 'clocked_in' && h('button', { className: 'btn btn-ghost btn-sm', onClick: () => handleClockIn(a.agentId || a.id) }, I.play(), ' Clock In'),
299
+ (a.clockStatus || a.status) === 'clocked_in' && h('button', { className: 'btn btn-ghost btn-sm', onClick: () => handleClockOut(a.agentId || a.id) }, I.pause(), ' Clock Out')
286
300
  )
287
301
  ))
288
302
  )
@@ -525,7 +539,7 @@ export function WorkforcePage() {
525
539
  // Timezone
526
540
  h('div', { className: 'form-group' },
527
541
  h('label', { className: 'form-label' }, 'Timezone'),
528
- h('input', { className: 'input', value: schedForm.timezone, onChange: e => setSchedForm({ ...schedForm, timezone: e.target.value }), placeholder: 'UTC' })
542
+ TimezoneSelect(h, schedForm.timezone, e => setSchedForm({ ...schedForm, timezone: e.target.value }))
529
543
  ),
530
544
  // Toggles
531
545
  h('div', { style: { display: 'grid', gridTemplateColumns: '1fr 1fr', gap: 12 } },
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  TenantManager,
21
21
  WorkforceManager,
22
22
  init_guardrails
23
- } from "./chunk-MZ3C426R.js";
23
+ } from "./chunk-QRFUGV66.js";
24
24
  import {
25
25
  AgentRuntime,
26
26
  EmailChannel,
@@ -35,7 +35,7 @@ import {
35
35
  executeTool,
36
36
  runAgentLoop,
37
37
  toolsToDefinitions
38
- } from "./chunk-TW2L3Z62.js";
38
+ } from "./chunk-WG3RK3S2.js";
39
39
  import "./chunk-TYW5XTOW.js";
40
40
  import {
41
41
  ValidationError,
@@ -50,11 +50,11 @@ import {
50
50
  requireRole,
51
51
  securityHeaders,
52
52
  validate
53
- } from "./chunk-VOMXULTW.js";
53
+ } from "./chunk-NU56PI3D.js";
54
54
  import {
55
55
  provision,
56
56
  runSetupWizard
57
- } from "./chunk-HKBAC2CE.js";
57
+ } from "./chunk-2CVPFHJD.js";
58
58
  import {
59
59
  ENGINE_TABLES,
60
60
  ENGINE_TABLES_POSTGRES,
@@ -92,7 +92,7 @@ import {
92
92
  BUILTIN_SKILLS,
93
93
  PRESET_PROFILES,
94
94
  PermissionEngine
95
- } from "./chunk-LKAFZ343.js";
95
+ } from "./chunk-4SAHG5E7.js";
96
96
  import {
97
97
  DatabaseAdapter
98
98
  } from "./chunk-FLRYMSKY.js";
@@ -108,7 +108,7 @@ import {
108
108
  generateToolPolicy,
109
109
  getToolsBySkill,
110
110
  init_tool_catalog
111
- } from "./chunk-X6UVWFHW.js";
111
+ } from "./chunk-MINPSFLF.js";
112
112
  import {
113
113
  VALID_CATEGORIES,
114
114
  VALID_RISK_LEVELS,