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
4 changes: 4 additions & 0 deletions .fernignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@ src/humanloop.client.ts
src/overload.ts
src/error.ts
src/context.ts
src/cli.ts
src/cache
src/sync

# Tests

# Modified due to issues with OTEL
tests/unit/fetcher/stream-wrappers/webpack.test.ts
tests/custom/

# CI Action

Expand Down
7 changes: 6 additions & 1 deletion jest.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ export default {
preset: "ts-jest",
testEnvironment: "node",
moduleNameMapper: {
"^(?!.*node_modules)(.+)\\.js$": "$1",
// Only map .js files in our src directory, not node_modules
"^src/(.+)\\.js$": "<rootDir>/src/$1",
},
// Add transformIgnorePatterns to handle ESM modules in node_modules
transformIgnorePatterns: [
"node_modules/(?!(@traceloop|js-tiktoken|base64-js)/)",
],
};
8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "humanloop",
"version": "0.8.21-beta1",
"version": "0.8.21",
"private": false,
"repository": "https://github.com/humanloop/humanloop-node",
"main": "./index.js",
Expand All @@ -26,6 +26,8 @@
"@traceloop/instrumentation-cohere": ">=0.11.1",
"@traceloop/instrumentation-openai": ">=0.11.3",
"@traceloop/ai-semantic-conventions": ">=0.11.6",
"dotenv": "^16.5.0",
"commander": "^14.0.0",
"cli-progress": "^3.12.0",
"lodash": "^4.17.21"
},
Expand All @@ -46,7 +48,6 @@
"openai": "^4.74.0",
"@anthropic-ai/sdk": "^0.32.1",
"cohere-ai": "^7.15.0",
"dotenv": "^16.4.6",
"jsonschema": "^1.4.1",
"@types/cli-progress": "^3.11.6",
"@types/lodash": "4.14.74",
Expand All @@ -56,5 +57,8 @@
"fs": false,
"os": false,
"path": false
},
"bin": {
"humanloop": "./cli.js"
}
}
4 changes: 2 additions & 2 deletions reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -1342,7 +1342,7 @@ await client.prompts.updateMonitoring("pr_30gco7dx6JDq4200GVOHa", {
</dl>
</details>

<details><summary><code>client.prompts.<a href="/src/api/resources/prompts/client/Client.ts">serialize</a>(id, { ...params }) -> void</code></summary>
<details><summary><code>client.prompts.<a href="/src/api/resources/prompts/client/Client.ts">serialize</a>(id, { ...params }) -> string</code></summary>
<dl>
<dd>

Expand Down Expand Up @@ -7313,7 +7313,7 @@ await client.agents.updateMonitoring("ag_1234567890", {
</dl>
</details>

<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">serialize</a>(id, { ...params }) -> void</code></summary>
<details><summary><code>client.agents.<a href="/src/api/resources/agents/client/Client.ts">serialize</a>(id, { ...params }) -> string</code></summary>
<dl>
<dd>

Expand Down
Loading
Loading