@ory/github-copilot 1.5.3 → 1.6.0
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/README.md +7 -0
- package/dist/handlers.js +4 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -27,5 +27,12 @@ Copilot's permission handling.
|
|
|
27
27
|
Copilot hook timeouts are controlled by Copilot itself and are fail-open; Copilot
|
|
28
28
|
surfaces a timeout warning, and the timed-out process may not persist an Ory event.
|
|
29
29
|
|
|
30
|
+
MCP tools: Copilot CLI's hooks reference does not document how MCP tools are
|
|
31
|
+
named in `toolName` or which server a call targets. The plugin treats only the
|
|
32
|
+
explicit `mcp__<server>__<tool>` and `mcp:<server>:<tool>` forms as MCP calls
|
|
33
|
+
(checked as `McpServer:<server>` and `McpTool:<server>:<tool>`); no native
|
|
34
|
+
Copilot tool uses those forms. Whether Copilot CLI emits either form is
|
|
35
|
+
unverified, so other MCP tool names are checked as native tools.
|
|
36
|
+
|
|
30
37
|
For noninteractive Copilot cloud agent jobs, use the separate repository recipe
|
|
31
38
|
in [`examples/github-copilot-cloud-agent`](../../examples/github-copilot-cloud-agent).
|
package/dist/handlers.js
CHANGED
|
@@ -36,6 +36,10 @@ async function handleHookEvent(event, input, client, deps = {}) {
|
|
|
36
36
|
toolName: input.toolName ?? "unknown",
|
|
37
37
|
toolArgs: toolArgs(input),
|
|
38
38
|
subjectFallback: input.sessionId ? `session:${input.sessionId}` : undefined,
|
|
39
|
+
// Copilot CLI does not document how MCP tools are named in hooks.
|
|
40
|
+
// Only the explicit `mcp__<server>__<tool>` / `mcp:<server>:<tool>`
|
|
41
|
+
// forms are treated as MCP; no native Copilot tool uses them.
|
|
42
|
+
mcpTool: (0, argus_1.parseMcpToolName)(input.toolName ?? "") ?? undefined,
|
|
39
43
|
});
|
|
40
44
|
return result.blocked
|
|
41
45
|
? {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ory/github-copilot",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Ory plugin for GitHub Copilot CLI: skills, local Ory tooling, and authentication, authorization, and audit for every tool call",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"homepage": "https://github.com/ory/ory-agent-plugins/tree/main/packages/github-copilot",
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"reova": "^0.7.0",
|
|
50
|
-
"@ory/argus": "1.
|
|
50
|
+
"@ory/argus": "1.6.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"typescript": "^
|
|
53
|
+
"typescript": "^7.0.2"
|
|
54
54
|
},
|
|
55
55
|
"engines": {
|
|
56
56
|
"node": ">=22"
|