The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 24, 10:15 UTC
fix(contracts): include tool.denied in runtime event types (#9770)
Co-authored-by: Simone <185146821+Lucenx9@users.noreply.github.com>
Simone committed
Sep 4, 2026 at 22:48 UTC
b7d6e65021b021207424c56cb32d6d711fd875fb
2 files changed
+11
-2
packages/contracts/src/providerRuntime.test.ts
+10
-2
@@ -1,11 +1,19 @@
1
-import { describe, expect, it } from "vite-plus/test";
1
+import { describe, expect, expectTypeOf, it } from "vite-plus/test";
2
import * as Schema from "effect/Schema";
3
4
-import { classifyTaskAgentKind, ProviderRuntimeEvent } from "./providerRuntime.ts";
4
+import {
5
+ classifyTaskAgentKind,
6
+ ProviderRuntimeEvent,
7
+ type ProviderRuntimeEventType,
8
+} from "./providerRuntime.ts";
9
10
const decodeRuntimeEvent = Schema.decodeUnknownSync(ProviderRuntimeEvent);
11
12
describe("ProviderRuntimeEvent", () => {
13
+ it("includes every runtime event in the public event type", () => {
14
+ expectTypeOf<ProviderRuntimeEvent["type"]>().toEqualTypeOf<ProviderRuntimeEventType>();
15
+ });
16
+
17
it("requires input and output totals for complete turn usage", () => {
18
const completeEvent = {
19
type: "turn.completed",
packages/contracts/src/providerRuntime.ts
+1
@@ -186,6 +186,7 @@ const ProviderRuntimeEventType = Schema.Literals([
186
"hook.completed",
187
"tool.progress",
188
"tool.summary",
189
+ "tool.denied",
190
"auth.status",
191
"account.updated",
192
"account.rate-limits.updated",