Skip to content

Commit e2d197c

Browse files
toubatbrianlukasIO
andauthored
Add Agent related Protos for OTEL (#1318)
* Update package.json * update index file * Update packages/javascript/src/index.d.ts Co-authored-by: lukasIO <[email protected]> * Update packages/javascript/src/index.js Co-authored-by: lukasIO <[email protected]> --------- Co-authored-by: lukasIO <[email protected]>
1 parent 24a1d98 commit e2d197c

File tree

4 files changed

+8
-1
lines changed

4 files changed

+8
-1
lines changed

.changeset/honest-peas-cry.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@livekit/protocol": patch
3+
---
4+
5+
Generate agent protos

packages/javascript/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"main": "./dist/index.mjs",
2424
"types": "./dist/index.d.mts",
2525
"scripts": {
26-
"generate:proto": "mkdir -p src/gen && protoc --es_out src/gen --es_opt target=dts+js -I=../../protobufs ../../protobufs/livekit_*.proto",
26+
"generate:proto": "mkdir -p src/gen && protoc --es_out src/gen --es_opt target=dts+js -I=../../protobufs ../../protobufs/livekit_*.proto ../../protobufs/agent/livekit_*.proto",
2727
"generate:version": "genversion --esm --semi src/gen/version.js",
2828
"build": "pnpm generate:version && pnpm generate:proto && unbuild"
2929
},

packages/javascript/src/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export { protoInt64 } from "@bufbuild/protobuf";
2+
export * as AgentSession from "./gen/agent/livekit_agent_session_pb.js";
23
export * from "./gen/livekit_agent_dispatch_pb.js";
34
export * from "./gen/livekit_agent_pb.js";
45
export * from "./gen/livekit_connector_pb.js";

packages/javascript/src/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
// @ts-check
22
export { protoInt64 } from "@bufbuild/protobuf";
3+
export * as AgentSession from "./gen/agent/livekit_agent_session_pb.js";
34
export * from "./gen/livekit_agent_dispatch_pb.js";
45
export * from "./gen/livekit_agent_pb.js";
56
export * from "./gen/livekit_connector_pb.js";

0 commit comments

Comments
 (0)