diff --git a/examples/nodejs/package.json b/examples/nodejs/package.json index 2ada6fe..dbad984 100644 --- a/examples/nodejs/package.json +++ b/examples/nodejs/package.json @@ -1,60 +1,60 @@ { - "private": true, - "name": "everything", - "version": "0.0.0", - "description": "Everything example", - "type": "module", - "main": "index.js", - "scripts": { - "pipe.create": "npx tsx ./pipes/pipe.create.ts", - "pipe.run.chat": "npx tsx ./pipes/pipe.run.chat.ts", - "pipe.run.stream.chat": "npx tsx ./pipes/pipe.run.stream.chat.ts", - "memory.create": "npx tsx ./memory/memory.create.ts", - "memory.list": "npx tsx ./memory/memory.list.ts", - "memory.delete": "npx tsx ./memory/memory.delete.ts", - "memory.retrieve": "npx tsx ./memory/memory.retrieve.ts", - "memory.retrieve.filters.In": "npx tsx ./memory/memory.retrieve.filters.In.ts", - "memory.retrieve.filters.NotIn": "npx tsx ./memory/memory.retrieve.filters.NotIn.ts", - "memory.retrieve.filters.Eq": "npx tsx ./memory/memory.retrieve.filters.Eq.ts", - "memory.retrieve.filters.NotEq": "npx tsx ./memory/memory.retrieve.filters.NotEq.ts", - "memory.retrieve.filters.Or": "npx tsx ./memory/memory.retrieve.filters.Or.ts", - "memory.retrieve.filters.advanced": "npx tsx ./memory/memory.retrieve.filters.advanced.ts", - "memory.docs.list": "npx tsx ./memory/memory.docs.list.ts", - "memory.docs.delete": "npx tsx ./memory/memory.docs.delete.ts", - "memory.docs.upload": "npx tsx ./memory/memory.docs.upload.ts", - "memory.docs.retry-embed": "npx tsx ./memory/memory.docs.retry-embed.ts", - "pipe.update": "npx tsx ./pipes/pipe.update.ts", - "pipe.list": "npx tsx ./pipes/pipe.list.ts", - "pipe.run": "npx tsx ./pipes/pipe.run.ts", - "pipe.tool": "npx tsx ./pipes/pipe.tool.ts", - "pipe.tool.stream": "npx tsx ./pipes/pipe.tool.stream.ts", - "pipe.run.stream": "npx tsx ./pipes/pipe.run.stream.ts", - "pipe.run.stream.llmkey": "npx tsx ./pipes/pipe.run.stream.llmkey.ts", - "pipe.structured.outputs": "npx tsx ./pipes/pipe.structured.outputs.ts", - "tools.web-search": "npx tsx ./tools/web-search.ts", - "tools.crawl": "npx tsx ./tools/crawl.ts", - "tools.crawl.firecrawl": "npx tsx ./tools/crawl.firecrawl.ts", - "embed": "npx tsx ./embed/index.ts", - "chunker": "npx tsx ./chunker/index.ts", - "parser": "npx tsx ./parser/index.ts", - "threads.create": "npx tsx ./threads/threads.create.ts", - "threads.update": "npx tsx ./threads/threads.update.ts", - "threads.delete": "npx tsx ./threads/threads.delete.ts", - "threads.append": "npx tsx ./threads/threads.append.ts", - "threads.messages.list": "npx tsx ./threads/threads.messages.list.ts", - "threads.get": "npx tsx ./threads/threads.get.ts", - "workflow": "npx tsx ./workflows/workflows.ts", - "agent.run.mcp": "npx tsx ./agent/agent.run.mcp.ts" - }, - "keywords": [], - "author": "Ahmad Awais (https://twitter.com/MrAhmadAwais)", - "license": "UNLICENSED", - "dependencies": { - "@langbase/cli": "workspace:*", - "dotenv": "^16.4.5", - "langbase": "^1.1.64", - "uuid": "^11.1.0", - "zod": "^3.21.4", - "zod-to-json-schema": "^3.24.5" - } + "private": true, + "name": "everything", + "version": "0.0.0", + "description": "Everything example", + "type": "module", + "main": "index.js", + "scripts": { + "pipe.create": "npx tsx ./pipes/pipe.create.ts", + "pipe.run.chat": "npx tsx ./pipes/pipe.run.chat.ts", + "pipe.run.stream.chat": "npx tsx ./pipes/pipe.run.stream.chat.ts", + "memory.create": "npx tsx ./memory/memory.create.ts", + "memory.list": "npx tsx ./memory/memory.list.ts", + "memory.delete": "npx tsx ./memory/memory.delete.ts", + "memory.retrieve": "npx tsx ./memory/memory.retrieve.ts", + "memory.retrieve.filters.In": "npx tsx ./memory/memory.retrieve.filters.In.ts", + "memory.retrieve.filters.NotIn": "npx tsx ./memory/memory.retrieve.filters.NotIn.ts", + "memory.retrieve.filters.Eq": "npx tsx ./memory/memory.retrieve.filters.Eq.ts", + "memory.retrieve.filters.NotEq": "npx tsx ./memory/memory.retrieve.filters.NotEq.ts", + "memory.retrieve.filters.Or": "npx tsx ./memory/memory.retrieve.filters.Or.ts", + "memory.retrieve.filters.advanced": "npx tsx ./memory/memory.retrieve.filters.advanced.ts", + "memory.docs.list": "npx tsx ./memory/memory.docs.list.ts", + "memory.docs.delete": "npx tsx ./memory/memory.docs.delete.ts", + "memory.docs.upload": "npx tsx ./memory/memory.docs.upload.ts", + "memory.docs.retry-embed": "npx tsx ./memory/memory.docs.retry-embed.ts", + "pipe.update": "npx tsx ./pipes/pipe.update.ts", + "pipe.list": "npx tsx ./pipes/pipe.list.ts", + "pipe.run": "npx tsx ./pipes/pipe.run.ts", + "pipe.tool": "npx tsx ./pipes/pipe.tool.ts", + "pipe.tool.stream": "npx tsx ./pipes/pipe.tool.stream.ts", + "pipe.run.stream": "npx tsx ./pipes/pipe.run.stream.ts", + "pipe.run.stream.llmkey": "npx tsx ./pipes/pipe.run.stream.llmkey.ts", + "pipe.structured.outputs": "npx tsx ./pipes/pipe.structured.outputs.ts", + "tools.web-search": "npx tsx ./tools/web-search.ts", + "tools.crawl": "npx tsx ./tools/crawl.ts", + "tools.crawl.firecrawl": "npx tsx ./tools/crawl.firecrawl.ts", + "embed": "npx tsx ./embed/index.ts", + "chunker": "npx tsx ./chunker/index.ts", + "parser": "npx tsx ./parser/index.ts", + "threads.create": "npx tsx ./threads/threads.create.ts", + "threads.update": "npx tsx ./threads/threads.update.ts", + "threads.delete": "npx tsx ./threads/threads.delete.ts", + "threads.append": "npx tsx ./threads/threads.append.ts", + "threads.messages.list": "npx tsx ./threads/threads.messages.list.ts", + "threads.get": "npx tsx ./threads/threads.get.ts", + "workflow": "npx tsx ./workflows/workflows.ts", + "agent.run.mcp": "npx tsx ./agent/agent.run.mcp.ts" + }, + "keywords": [], + "author": "Ahmad Awais (https://twitter.com/MrAhmadAwais)", + "license": "UNLICENSED", + "dependencies": { + "@langbase/cli": "^0.1.7", + "dotenv": "^16.4.5", + "langbase": "1.2.0", + "uuid": "^11.1.0", + "zod": "^3.21.4", + "zod-to-json-schema": "^3.24.5" + } } diff --git a/packages/langbase/src/langbase/workflows.ts b/packages/langbase/src/langbase/workflows.ts index 9c6cb15..5e5640f 100644 --- a/packages/langbase/src/langbase/workflows.ts +++ b/packages/langbase/src/langbase/workflows.ts @@ -111,7 +111,6 @@ export class Workflow { } const result = await originalMethod.apply(this, newArgs); - console.log(`🔄 Intercepted method: ${fullPath}`, result); // Process result for tracing if we have an active collector if (_global._activeTraceCollector) {