Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
421 lines (421 loc) · 15.4 KB
/
Copy pathpackage.json
File metadata and controls
421 lines (421 loc) · 15.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
{
"name": "easymail",
"displayName": "EasyMail",
"description": "Local Outlook digest collection, Copilot analysis, and dashboard for classic Outlook.",
"version": "1.0.0",
"publisher": "Wsr-7",
"private": true,
"icon": "media/icon.png",
"engines": {
"vscode": "^1.90.0"
},
"categories": [
"Other"
],
"activationEvents": [
"onStartupFinished",
"onCommand:easyMail.pullMail",
"onCommand:easyMail.loadMore",
"onCommand:easyMail.generateSampleDigest",
"onCommand:easyMail.analyze",
"onCommand:easyMail.analyzeThread",
"onCommand:easyMail.analyzeAllAllowed",
"onCommand:easyMail.loadModels",
"onCommand:easyMail.generateReports",
"onCommand:easyMail.openDailyBrief",
"onCommand:easyMail.openThreadReport",
"onCommand:easyMail.openSingleMailReport",
"onCommand:easyMail.selectFolders",
"onCommand:easyMail.openGuide",
"onCommand:easyMail.openReplyTemplate",
"onCommand:easyMail.clearLocalCache",
"onCommand:easyMail.openWorkbench",
"onView:easyMail.dashboard"
],
"main": "./out/extension.js",
"files": [
"out/extension.js",
"out/lib/**",
"scripts/collect-outlook-mails.vbs",
"scripts/collect-outlook-meetings.vbs",
"scripts/compose-outlook-mail.vbs",
"scripts/open-outlook-mail.vbs",
"prompts/**",
"media/icon.png",
"media/activity-icon.svg",
"LICENSE",
"README_zh.md",
"docs/user-guide.md",
"default-config.json"
],
"contributes": {
"configuration": {
"title": "EasyMail",
"properties": {
"easyMail.rangeMode": {
"type": "string",
"order": 1,
"enum": [
"recentHours",
"maxItems"
],
"enumItemLabels": [
"Recent Hours",
"Max Items"
],
"default": "recentHours",
"description": "Mail pull range mode."
},
"easyMail.recentHours": {
"type": "number",
"order": 2,
"default": 24,
"minimum": 1,
"description": "Pull mails received within the last N hours."
},
"easyMail.maxItems": {
"type": "number",
"order": 3,
"default": 50,
"minimum": 1,
"description": "Maximum number of mails to pull."
},
"easyMail.folders": {
"type": "array",
"order": 4,
"items": {
"type": "string"
},
"default": [
"Inbox",
"Sent Items"
],
"description": "Outlook folders to scan. Prefer the EasyMail: Select Outlook Folders command to load available folders from Outlook, or enter names/paths such as Inbox, Sent Items, Inbox/Project, or Mailbox Name/Inbox. Inbox-only legacy values are expanded to Inbox and Sent Items."
},
"easyMail.bodyExcerptChars": {
"type": "number",
"order": 5,
"default": 1500,
"minimum": 100,
"description": "Maximum body characters per mail sent to Copilot."
},
"easyMail.sampleMode": {
"type": "boolean",
"order": 6,
"default": false,
"description": "Generate sample mail data instead of reading Outlook."
},
"easyMail.outputLanguage": {
"type": "string",
"order": 11,
"enum": [
"zh-CN",
"en-US"
],
"enumItemLabels": [
"简体中文",
"English"
],
"default": "en-US",
"description": "Dashboard and analysis output language."
},
"easyMail.draftLanguage": {
"type": "string",
"order": 12,
"enum": [
"auto",
"en",
"zh-CN"
],
"enumItemLabels": [
"Auto",
"English",
"简体中文"
],
"default": "auto",
"description": "Draft reply language. Auto follows the source mail or thread language."
},
"easyMail.draftGeneration": {
"type": "string",
"order": 12.5,
"enum": [
"auto",
"onDemand"
],
"enumItemLabels": [
"Auto",
"On demand"
],
"default": "auto",
"description": "Draft generation mode. On demand significantly speeds up analysis; use Generate Draft in the workbench when a reply is needed."
},
"easyMail.autoAnalyzeMaxClassificationLevel": {
"type": "number",
"order": 13,
"enum": [
0,
1,
2,
3
],
"enumItemLabels": [
"PUBLIC",
"INTERNAL",
"REGISTERED",
"HIGH REGISTERED"
],
"default": 2,
"minimum": 0,
"maximum": 3,
"description": "Maximum mail classification level allowed for analysis."
},
"easyMail.hardBlockKeywords": {
"type": "array",
"order": 13.1,
"items": { "type": "string" },
"default": ["password", "passwd", "pwd", "api_key", "apikey", "access_token", "auth_token", "secret_key", "private_key", "credential", "credentials", "密码", "口令", "密钥", "私钥", "凭证", "令牌"],
"markdownDescription": "Case-insensitive substring matches that block Copilot analysis. An empty array disables this keyword protection layer."
},
"easyMail.manualConfirmKeywords": {
"type": "array",
"order": 13.2,
"items": { "type": "string" },
"default": [],
"markdownDescription": "Case-insensitive substring matches that force manual confirmation before Copilot analysis, regardless of the mail classification or automatic-analysis threshold. An empty array disables this layer."
},
"easyMail.classificationLevel3Keywords": {
"type": "array",
"order": 13.3,
"items": { "type": "string" },
"default": ["high registered", "highly restricted", "secret"],
"markdownDescription": "Case-insensitive substring matches that classify mail as HIGH REGISTERED (level 3), affecting its badge and threshold comparison. Setting easyMail.autoAnalyzeMaxClassificationLevel to 3 allows automatic analysis unless another security gate requires confirmation. An empty array disables keyword elevation to this level."
},
"easyMail.classificationLevel2Keywords": {
"type": "array",
"order": 13.4,
"items": { "type": "string" },
"default": ["registered", "restricted", "confidential", "contract", "budget"],
"markdownDescription": "Case-insensitive substring matches that classify mail as REGISTERED (level 2). An empty array disables keyword elevation to this level."
},
"easyMail.mailStoreRetentionDays": {
"type": "number",
"order": 14,
"default": 7,
"minimum": 1,
"description": "Raw local mail queue retention days."
},
"easyMail.mailIndexRetentionDays": {
"type": "number",
"order": 15,
"default": 7,
"minimum": 1,
"description": "Local de-duplication index retention days."
},
"easyMail.analysisRetentionDays": {
"type": "number",
"order": 16,
"default": 7,
"minimum": 1,
"description": "Analysis summary retention days."
},
"easyMail.meetingDaysAhead": {
"type": "number",
"order": 7,
"default": 2,
"minimum": 1,
"description": "Collect meetings within the next N days from Outlook calendar."
},
"easyMail.collectorTimeoutSeconds": {
"type": "number",
"order": 8,
"default": 120,
"minimum": 10,
"description": "Timeout in seconds for the Outlook mail/meeting collector scripts. Increase for large mailboxes or slow Outlook cold starts."
},
"easyMail.importantSenders": {
"type": "array",
"order": 4.1,
"items": {
"type": "string",
"default": "name@example.com"
},
"default": [],
"markdownDescription": "Important senders, mail groups, or keywords matched into `importantSender`. Examples: `person@example.com`, `team-alerts@company.com`, `Customer A`, `Project Phoenix`."
},
"easyMail.ignoredSenders": {
"type": "array",
"order": 4.2,
"items": {
"type": "string",
"default": "no-reply@example.com"
},
"default": [],
"markdownDescription": "Unanalysed mail whose sender display name or email address contains any entry is placed in Ignored. Matching is case-insensitive. Examples: `no-reply@example.com`, `System Notifications`."
},
"easyMail.modelFamily": {
"type": "string",
"order": 9,
"default": "",
"description": "Copilot model identifier. Recommended: choose an available model with EasyMail: Load Copilot Models and the dashboard model dropdown. Manual Settings entry is fallback only."
}
}
},
"viewsContainers": {
"activitybar": [
{
"id": "easyMail",
"title": "EasyMail",
"icon": "media/activity-icon.svg"
}
]
},
"views": {
"easyMail": [
{
"type": "webview",
"id": "easyMail.dashboard",
"name": "Dashboard"
}
]
},
"walkthroughs": [
{
"id": "easyMail.gettingStarted",
"title": "Get Started with EasyMail",
"description": "Collect local Outlook mail, review pending items, and analyze with GitHub Copilot.",
"steps": [
{
"id": "easyMail.openDashboard",
"title": "Open the Dashboard",
"description": "Open the EasyMail view from the Activity Bar. Use the language button in the top-right corner to switch between English and Simplified Chinese.",
"media": {
"markdown": "readme.md"
},
"completionEvents": [
"onView:easyMail.dashboard"
]
},
{
"id": "easyMail.configure",
"title": "Configure Mail Range",
"description": "Click Settings, then More Settings (VS Code Settings), to edit mail range, folders, retention, and security settings. Use EasyMail: Select Outlook Folders to load folder choices from Outlook. Use Load Models and the Analysis Model dropdown in the dashboard for model selection.",
"completionEvents": [
"onCommand:easyMail.openSettings"
]
},
{
"id": "easyMail.fetch",
"title": "Fetch New Mail",
"description": "Click Fetch New to collect recent Outlook mail. After the first fetch, More History becomes available for loading older mail per folder.",
"completionEvents": [
"onCommand:easyMail.pullMail"
]
},
{
"id": "easyMail.analyze",
"title": "Analyze with Copilot",
"description": "Choose an Analysis Model from the dashboard, then run Analyze Next Batch, Analyze Selected, or Analyze All Allowed.",
"completionEvents": [
"onCommand:easyMail.analyze",
"onCommand:easyMail.analyzeAllAllowed"
]
}
]
}
],
"commands": [
{
"command": "easyMail.pullMail",
"title": "EasyMail: Fetch New Mail"
},
{
"command": "easyMail.loadMore",
"title": "EasyMail: More History"
},
{
"command": "easyMail.generateSampleDigest",
"title": "EasyMail: Generate Sample Digest"
},
{
"command": "easyMail.analyze",
"title": "EasyMail: Analyze Next Batch with Copilot"
},
{
"command": "easyMail.analyzeThread",
"title": "EasyMail: Analyze Thread with Copilot"
},
{
"command": "easyMail.analyzeAllAllowed",
"title": "EasyMail: Analyze All Allowed with Copilot"
},
{
"command": "easyMail.loadModels",
"title": "EasyMail: Load Copilot Models"
},
{
"command": "easyMail.openDigest",
"title": "EasyMail: Open Digest"
},
{
"command": "easyMail.openSummary",
"title": "EasyMail: Open Summary"
},
{
"command": "easyMail.generateReports",
"title": "EasyMail: Generate Reports"
},
{
"command": "easyMail.openDailyBrief",
"title": "EasyMail: Open Daily Brief"
},
{
"command": "easyMail.openThreadReport",
"title": "EasyMail: Open Thread Report"
},
{
"command": "easyMail.openSingleMailReport",
"title": "EasyMail: Open Single Mail Report"
},
{
"command": "easyMail.openSettings",
"title": "EasyMail: Open Settings"
},
{
"command": "easyMail.selectFolders",
"title": "EasyMail: Select Outlook Folders"
},
{
"command": "easyMail.openGuide",
"title": "EasyMail: Open User Guide"
},
{
"command": "easyMail.openReplyTemplate",
"title": "EasyMail: Open Reply Template"
},
{
"command": "easyMail.openPromptConfig",
"title": "EasyMail: Open Prompt Config"
},
{
"command": "easyMail.clearLocalCache",
"title": "EasyMail: Clear Local Cache"
},
{
"command": "easyMail.openWorkbench",
"title": "EasyMail: Open Workbench"
}
]
},
"scripts": {
"compile": "node scripts/clean-out.js && tsc -p .",
"test": "npm run compile && node --test out/test/digest.test.js out/test/analysis-schema.test.js out/test/summary.test.js out/test/dashboard-state.test.js out/test/mail-store.test.js out/test/classification.test.js out/test/prompt-config.test.js out/test/thread-engine.test.js out/test/thread-timeline.test.js out/test/redaction.test.js out/test/security-gate.test.js out/test/thread-analysis-schema.test.js out/test/thread-prompt-builder.test.js out/test/app-analysis.test.js out/test/extension-cancellation.test.js out/test/report-single-mail.test.js out/test/report-thread.test.js out/test/report-daily.test.js out/test/llm-provider.test.js out/test/guide-webview.test.js out/test/reply-template.test.js out/test/draft-prompt.test.js out/test/analysis-translation.test.js out/test/html-utils.test.js out/test/config-utils.test.js out/test/dashboard-labels.test.js out/test/process-runner.test.js out/test/app-data.test.js out/test/dashboard-render.test.js out/test/message-handler.test.js out/test/sidebar-render.test.js out/test/workbench-render.test.js out/test/meeting-digest.test.js out/test/meeting-store.test.js out/test/next-actions.test.js out/test/collector-scripts.test.js out/test/marketplace-details.test.js",
"package:vsix": "npm run compile && vsce package --allow-missing-repository --readme-path docs/marketplace-details.md --out releases/easymail-1.0.0.vsix",
"validate:sample": "powershell -NoProfile -ExecutionPolicy Bypass -File scripts/run-sample-validation.ps1"
},
"devDependencies": {
"@types/node": "^24.0.0",
"@types/vscode": "^1.90.0",
"@vscode/vsce": "^3.6.2",
"typescript": "^5.8.3"
}
}