Repository navigation
Expand file tree
/
Copy pathpackage.json
More file actions
387 lines (387 loc) · 13.1 KB
/
Copy pathpackage.json
File metadata and controls
387 lines (387 loc) · 13.1 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
{
"name": "context-relay",
"displayName": "ContextRelay for Microsoft 365",
"description": "Surface Microsoft 365 context (SharePoint, OneDrive, Teams, Mail, WorkIQ) in a VS Code side panel",
"version": "0.2.0",
"publisher": "KazushiKamegawa",
"categories": [
"Other"
],
"keywords": [
"chat",
"copilot",
"github-copilot",
"microsoft-365",
"teams",
"m365",
"graph",
"sharepoint",
"onedrive",
"outlook",
"mail",
"handoff",
"context",
"search",
"productivity"
],
"icon": "media/icon.png",
"preview": false,
"pricing": "Free",
"license": "MIT",
"homepage": "https://github.com/kkamegawa/ContextRelay/blob/main/README.md",
"repository": {
"type": "git",
"url": "https://github.com/kkamegawa/ContextRelay.git"
},
"bugs": {
"url": "https://github.com/kkamegawa/ContextRelay/issues"
},
"engines": {
"node": ">=22.12.0",
"vscode": "^1.140.0"
},
"main": "./dist/extension.js",
"contributes": {
"viewsContainers": {
"activitybar": [
{
"id": "contextRelay",
"title": "ContextRelay",
"icon": "media/contextRelay-icon.svg"
}
],
"secondarySidebar": [
{
"id": "contextRelaySecondary",
"title": "ContextRelay",
"icon": "media/contextRelay-icon.svg"
}
]
},
"views": {
"contextRelay": [
{
"type": "webview",
"id": "contextRelay.chatView",
"name": "ContextRelay"
}
]
},
"commands": [
{
"command": "contextRelay.openPanel",
"title": "ContextRelay: Open Panel"
},
{
"command": "contextRelay.search",
"title": "ContextRelay: Search"
},
{
"command": "contextRelay.clearChat",
"title": "ContextRelay: Clear Chat"
},
{
"command": "contextRelay.clearCache",
"title": "ContextRelay: Clear Cache"
},
{
"command": "contextRelay.clearSnippets",
"title": "ContextRelay: Clear All Snippets"
},
{
"command": "contextRelay.generateHandoffDocs",
"title": "ContextRelay: Generate Handoff Docs"
},
{
"command": "contextRelay.openCopilotChat",
"title": "ContextRelay: Open Copilot Chat with Handoff Prompt"
},
{
"command": "contextRelay.openHandoffDoc",
"title": "ContextRelay: Open HANDOFF Document"
},
{
"command": "contextRelay.copyHandoffPrompt",
"title": "ContextRelay: Copy Handoff Prompt to Clipboard"
},
{
"command": "contextRelay.moveToSecondarySideBar",
"title": "ContextRelay: Move to Secondary Side Bar",
"icon": "$(layout-sidebar-right)"
},
{
"command": "contextRelay.moveToPrimarySideBar",
"title": "ContextRelay: Move to Primary Side Bar",
"icon": "$(layout-sidebar-left)"
},
{
"command": "contextRelay.moveChatToEditorArea",
"title": "ContextRelay: Move Chat into Editor Area",
"shortTitle": "Move Chat into Editor Area"
},
{
"command": "contextRelay.moveChatToNewWindow",
"title": "ContextRelay: Move Chat into New Window",
"shortTitle": "Move Chat into New Window"
},
{
"command": "contextRelay.showDebugLog",
"title": "ContextRelay: Show Debug Log",
"shortTitle": "Show Debug Log"
},
{
"command": "contextRelay.openSettings",
"title": "ContextRelay: Chat Settings",
"shortTitle": "Chat Settings"
},
{
"command": "contextRelay.attachFile",
"title": "ContextRelay: Attach File to Chat"
}
],
"menus": {
"view/title": [
{
"command": "contextRelay.moveToSecondarySideBar",
"when": "view == contextRelay.chatView && contextRelay.viewLocation != 'auxiliarybar'",
"group": "navigation@100"
},
{
"command": "contextRelay.moveToPrimarySideBar",
"when": "view == contextRelay.chatView && contextRelay.viewLocation != 'sidebar'",
"group": "navigation@100"
},
{
"command": "contextRelay.moveChatToEditorArea",
"when": "view == contextRelay.chatView",
"group": "1_move@1"
},
{
"command": "contextRelay.moveChatToNewWindow",
"when": "view == contextRelay.chatView",
"group": "1_move@2"
},
{
"command": "contextRelay.showDebugLog",
"when": "view == contextRelay.chatView",
"group": "2_debug@1"
},
{
"command": "contextRelay.openSettings",
"when": "view == contextRelay.chatView",
"group": "3_settings@1"
}
]
},
"configuration": {
"title": "ContextRelay",
"properties": {
"contextRelay.maxResults": {
"type": "number",
"default": 10,
"description": "Number of search results returned per source"
},
"contextRelay.outputDir": {
"type": "string",
"default": ".contextrelay",
"description": "Directory where handoff documents are saved"
},
"contextRelay.auth.clientId": {
"type": "string",
"default": "",
"description": "Microsoft Entra application (client) ID injected into the built-in VS Code Microsoft auth provider via VSCODE_CLIENT_ID"
},
"contextRelay.auth.tenantId": {
"type": "string",
"default": "organizations",
"description": "Tenant ID or domain injected into the built-in VS Code Microsoft auth provider via VSCODE_TENANT"
},
"contextRelay.cache.ttlSeconds": {
"type": "number",
"default": 300,
"description": "Cache TTL in seconds"
},
"contextRelay.cache.maxEntries": {
"type": "number",
"default": 200,
"description": "Maximum number of cached entries (LRU eviction)"
},
"contextRelay.cache.persistWorkspaceState": {
"type": "boolean",
"default": true,
"description": "Persist cache snapshot in workspace state"
},
"contextRelay.enableChatPreview": {
"type": "boolean",
"default": true,
"description": "Enable the Chat tab (Copilot Chat API is in beta)"
},
"contextRelay.enableGraphDebugLogging": {
"type": "boolean",
"default": false,
"description": "Enable Graph API debug logging in the ContextRelay Debug output channel"
},
"contextRelay.enableWorkIqDebugLogging": {
"type": "boolean",
"default": false,
"description": "Enable Work IQ API debug logging in the ContextRelay Debug output channel"
},
"contextRelay.adapters.mail": {
"type": "boolean",
"default": true,
"description": "Enable Exchange Mail adapter"
},
"contextRelay.adapters.teams": {
"type": "boolean",
"default": true,
"description": "Enable Teams adapter"
},
"contextRelay.adapters.sharepoint": {
"type": "boolean",
"default": true,
"description": "Enable SharePoint adapter"
},
"contextRelay.adapters.onedrive": {
"type": "boolean",
"default": true,
"description": "Enable OneDrive adapter"
},
"contextRelay.adapters.onenote": {
"type": "boolean",
"default": true,
"description": "Enable OneNote adapter"
},
"contextRelay.adapters.planner": {
"type": "boolean",
"default": true,
"description": "Enable Planner adapter"
},
"contextRelay.adapters.todo": {
"type": "boolean",
"default": true,
"description": "Enable Microsoft To Do adapter"
},
"contextRelay.adapters.connectors": {
"type": "boolean",
"default": false,
"description": "Enable Copilot connectors adapter"
},
"contextRelay.embedded.enabled": {
"type": "boolean",
"default": false,
"description": "Enable SharePoint Embedded retrieval (Preview, pay-as-you-go). Requires owner-granted application access and delegated FileStorageContainer.Selected permission."
},
"contextRelay.embedded.sources": {
"type": "array",
"default": [],
"description": "Named SharePoint Embedded container types. /embedded accepts a natural-language query and lets you select one enabled source by name. Adding an ID does not grant application or user access.",
"items": {
"type": "object",
"required": [
"name",
"containerTypeId",
"enabled"
],
"additionalProperties": false,
"properties": {
"name": {
"type": "string",
"minLength": 1,
"description": "Friendly source name shown in the picker and results."
},
"containerTypeId": {
"type": "string",
"pattern": "^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$",
"description": "Container type GUID configured during setup; not entered in search queries."
},
"enabled": {
"type": "boolean",
"default": true,
"description": "Make this source available to /embedded."
}
}
}
},
"contextRelay.chat.attachActiveEditor": {
"type": "boolean",
"default": false,
"description": "Automatically include the active editor (or its selection) as chat context, like GitHub Copilot's editor context. When enabled, every Copilot message with an open workspace file is grounded on that file (web grounding is turned off for the turn). Off by default."
},
"contextRelay.chat.streamResponses": {
"type": "boolean",
"default": true,
"description": "Render Microsoft 365 Copilot chat replies incrementally using the Chat API's streamed endpoint. Falls back to the synchronous endpoint automatically if streaming isn't available."
},
"contextRelay.chat.maxAttachedFiles": {
"type": "number",
"default": 5,
"description": "Maximum number of local files that can be attached to a single chat message (# mentions, drag-and-drop, the attach picker, and the active editor combined)"
}
}
}
},
"overrides": {
"flatted": "3.4.2",
"serialize-javascript": "7.1.3",
"glob": "14.0.4",
"minimatch": "11.0.5",
"diff": "9.0.0",
"brace-expansion": "5.0.12",
"shell-quote": "1.11.0",
"js-yaml": "5.4.2",
"postcss": "8.5.29",
"source-map-js": "1.2.2",
"nanoid": "3.3.18",
"fast-uri": "3.1.9"
},
"scripts": {
"vscode:prepublish": "npm run package",
"security:check": "node scripts/run-audit-safe.cjs",
"precompile": "npm run security:check",
"compile:types": "tsc -p ./ --noEmit",
"compile:webview": "tsc -p ./tsconfig.webview.json --noEmit",
"bundle:webview": "node esbuild.mjs",
"bundle:webview:prod": "node esbuild.mjs --production",
"compile": "npm run compile:types && npm run compile:webview && webpack --mode development --devtool hidden-source-map && npm run bundle:webview",
"watch:extension": "webpack --mode development --devtool hidden-source-map --watch",
"watch:webview": "node esbuild.mjs --watch",
"watch": "concurrently -k \"npm:watch:extension\" \"npm:watch:webview\"",
"prepackage": "npm run security:check",
"package": "npm run compile:types && npm run compile:webview && webpack --mode production --devtool hidden-source-map && npm run bundle:webview:prod",
"vsce:package": "npx --yes @vscode/vsce@3.9.1 package --no-dependencies",
"version:resolve": "node scripts/tag-version.cjs",
"version:from-tag": "node scripts/tag-version.cjs --apply",
"compile-tests": "tsc -p ./tsconfig.test.json",
"pretest": "npm run compile-tests",
"test": "mocha --ui tdd --timeout 10000 \"out-test/src/test/suite/**/*.test.js\"",
"test:security": "npm run security:check",
"lint": "eslint src --ext ts"
},
"devDependencies": {
"@types/mocha": "^10.0.10",
"@types/node": "^26.6.6",
"@types/sanitize-html": "^2.16.2",
"@types/vscode": "^1.140.0",
"@typescript-eslint/eslint-plugin": "^8.72.1",
"@typescript-eslint/parser": "8.72.1",
"@typescript/native": "npm:typescript@^7.0.2",
"@vscode/test-electron": "^3.1.0",
"concurrently": "^10.0.6",
"esbuild": "^0.28.2",
"eslint": "^10.13.0",
"happy-dom": "^21.0.4",
"mocha": "12.0.3",
"ts-loader": "^9.6.2",
"typescript": "npm:@typescript/typescript6@^6.0.2",
"webpack": "^5.112.2",
"webpack-cli": "^7.2.3"
},
"dependencies": {
"jszip": "^3.10.2",
"marked": "^18.1.2",
"sanitize-html": "^2.18.1"
},
"allowScripts": {
"esbuild@0.28.2": true
}
}