Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import { defineMcpClientConnection } from "#public/connections/index.js";

export default defineMcpClientConnection({
approval: () => "user-approval",
description: "Retain request-time connection approval shorthand",
url: "https://example.com/mcp",
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineDynamic, defineInstructions } from "#public/instructions/index.js";

export default defineDynamic({
events: {
"session.started": () =>
defineInstructions({
markdown: "Retain dynamic instructions authoring.",
}),
},
});
11 changes: 11 additions & 0 deletions packages/eve/extension-contracts/compatibility/dynamicSkill/v1.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import { defineDynamic, defineSkill } from "#public/skills/index.js";

export default defineDynamic({
events: {
"session.started": () =>
defineSkill({
description: "Retain dynamic skill authoring",
markdown: "# Retained skill",
}),
},
});
14 changes: 14 additions & 0 deletions packages/eve/extension-contracts/compatibility/dynamicTool/v3.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
import { defineDynamic, defineTool } from "#public/tools/index.js";

export default defineDynamic({
events: {
"session.started": () => ({
inspect: defineTool({
approval: () => "user-approval",
description: "Retain dynamic request-time approval shorthand",
inputSchema: { type: "object", properties: {} },
execute: async () => ({ ok: true }),
}),
}),
},
});
9 changes: 9 additions & 0 deletions packages/eve/extension-contracts/compatibility/hook/v2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import { defineHook } from "#public/hooks/index.js";

export default defineHook({
events: {
"input.requested"(event, ctx) {
console.info("input requested", event.data.requests.length, ctx.session.id);
},
},
});
10 changes: 10 additions & 0 deletions packages/eve/extension-contracts/compatibility/tool/v2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { defineTool } from "#public/tools/index.js";

export default defineTool({
approval: ({ toolInput }) => (toolInput?.confirmed === true ? "not-applicable" : "user-approval"),
description: "Retain request-time approval function shorthand",
inputSchema: { type: "object", properties: { confirmed: { type: "boolean" } } },
async execute(input, ctx) {
return { input, sessionId: ctx.session.id };
},
});
15 changes: 15 additions & 0 deletions packages/eve/extension-contracts/reports/connection/v3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"kind": "eve-extension-capability-contract",
"capability": "connection",
"epoch": 3,
"sha256": "d710e0f9607b6f58b4b488547844c452a3278b36cfbedcbb987c93d5b753fcf2",
"exports": [
"ConnectionAuthorizationFailedError",
"ConnectionAuthorizationRequiredError",
"defineInteractiveAuthorization",
"defineMcpClientConnection",
"defineOpenAPIConnection",
"isConnectionAuthorizationFailedError",
"isConnectionAuthorizationRequiredError"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"kind": "eve-extension-capability-contract",
"capability": "dynamicInstructions",
"epoch": 2,
"sha256": "ef164033630f1192feca8a476fee58e505eda94c82d35e130fb4eda5ebc6690c",
"exports": ["defineDynamic"]
}
7 changes: 7 additions & 0 deletions packages/eve/extension-contracts/reports/dynamicSkill/v2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"kind": "eve-extension-capability-contract",
"capability": "dynamicSkill",
"epoch": 2,
"sha256": "ef164033630f1192feca8a476fee58e505eda94c82d35e130fb4eda5ebc6690c",
"exports": ["defineDynamic"]
}
13 changes: 13 additions & 0 deletions packages/eve/extension-contracts/reports/dynamicTool/v4.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"kind": "eve-extension-capability-contract",
"capability": "dynamicTool",
"epoch": 4,
"sha256": "0e6adad8133cbf29ddc790e0f40fc9bed8fca9bccc2db1592ca0ed04f8f29e95",
"exports": [
"DynamicToolEntry",
"DynamicToolEvents",
"DynamicToolResult",
"DynamicToolSet",
"defineDynamic"
]
}
7 changes: 7 additions & 0 deletions packages/eve/extension-contracts/reports/hook/v3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"kind": "eve-extension-capability-contract",
"capability": "hook",
"epoch": 3,
"sha256": "7fcba2edf86a310a94cf4ed9c9a1ac1ad1c10ecee2393be1c2dc282f34301344",
"exports": ["defineHook"]
}
19 changes: 19 additions & 0 deletions packages/eve/extension-contracts/reports/tool/v3.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"kind": "eve-extension-capability-contract",
"capability": "tool",
"epoch": 3,
"sha256": "979ad6f9d2519e66f407331c2891fdba62a4779af50a2110dc552f24d5fdd548",
"exports": [
"defineBashTool",
"defineGlobTool",
"defineGrepTool",
"defineReadFileTool",
"defineTool",
"defineWriteFileTool",
"disableTool",
"experimental_workflow",
"isDisabledToolSentinel",
"isExperimentalWorkflowToolDefinition",
"toolResultFrom"
]
}
12 changes: 6 additions & 6 deletions packages/eve/src/compiler/extension-compatibility.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,14 @@ interface ExtensionCapabilityContract {

const EXTENSION_CAPABILITY_CONTRACTS = {
extension: { current: 1, supported: [1], dropped: {} },
tool: { current: 2, supported: [1, 2], dropped: {} },
dynamicTool: { current: 3, supported: [1, 2, 3], dropped: {} },
connection: { current: 2, supported: [1, 2], dropped: {} },
hook: { current: 2, supported: [1, 2], dropped: {} },
tool: { current: 3, supported: [1, 2, 3], dropped: {} },
dynamicTool: { current: 4, supported: [1, 2, 3, 4], dropped: {} },
connection: { current: 3, supported: [1, 2, 3], dropped: {} },
hook: { current: 3, supported: [1, 2, 3], dropped: {} },
skill: { current: 1, supported: [1], dropped: {} },
dynamicSkill: { current: 1, supported: [1], dropped: {} },
dynamicSkill: { current: 2, supported: [1, 2], dropped: {} },
instructions: { current: 1, supported: [1], dropped: {} },
dynamicInstructions: { current: 1, supported: [1], dropped: {} },
dynamicInstructions: { current: 2, supported: [1, 2], dropped: {} },
config: { current: 1, supported: [1], dropped: {} },
state: { current: 2, supported: [1, 2], dropped: {} },
} as const satisfies Record<string, ExtensionCapabilityContract>;
Expand Down
2 changes: 1 addition & 1 deletion research/hitl-approver-authorization.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
issue: 1021
issue: "1021"
status: proposed
last_updated: "2026-07-29"
---
Expand Down