diff --git a/agents/package.json b/agents/package.json index 45c6d7b..2ef1b07 100644 --- a/agents/package.json +++ b/agents/package.json @@ -13,7 +13,7 @@ "src" ], "scripts": { - "build": "tsup --onSuccess \"tsc --declaration --emitDeclarationOnly\"", + "build": "tsup --splitting true --onSuccess \"tsc --declaration --emitDeclarationOnly\"", "clean": "rm -rf dist", "clean:build": "pnpm clean && pnpm build", "lint": "eslint -f unix \"src/**/*.ts\"", diff --git a/agents/src/ipc/job_main.ts b/agents/src/ipc/job_main.ts index f986d17..3f298ce 100644 --- a/agents/src/ipc/job_main.ts +++ b/agents/src/ipc/job_main.ts @@ -90,7 +90,6 @@ const startJob = ( (async () => { if (process.send) { - console.log("AAAAAAAAAAAAAA") // process.argv: // [0] `node' // [1] import.meta.filename diff --git a/examples/package.json b/examples/package.json index cb87055..1e94c0c 100644 --- a/examples/package.json +++ b/examples/package.json @@ -9,6 +9,7 @@ "minimal": "pnpm exec tsx src/minimal_assistant.ts" }, "devDependencies": { + "@types/node": "^22.5.5", "tsx": "^4.19.2", "typescript": "^5.0.0" }, diff --git a/examples/src/multimodal_agent.ts b/examples/src/multimodal_agent.ts index 1da7399..b6edd02 100644 --- a/examples/src/multimodal_agent.ts +++ b/examples/src/multimodal_agent.ts @@ -3,7 +3,6 @@ // SPDX-License-Identifier: Apache-2.0 const { JobContext, WorkerOptions, cli, defineAgent, llm, multimodal } = require('@livekit/agents'); const openai = require('@livekit/agents-plugin-openai'); -const { fileURLToPath } = require('node:url'); const { z } = require('zod'); export default defineAgent({ diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 50ddfe2..41f4aa2 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -152,6 +152,9 @@ importers: specifier: ^3.23.8 version: 3.23.8 devDependencies: + '@types/node': + specifier: ^22.5.5 + version: 22.5.5 tsx: specifier: ^4.19.2 version: 4.19.2