release: v0.7.8

This commit is contained in:
dexhorthy
2025-05-29 08:54:23 -07:00
parent d4a9e76456
commit e4fd91e504
38 changed files with 57 additions and 52 deletions

View File

@@ -175,7 +175,7 @@ update-examples-versions:
.PHONY: update-examples-ts-versions
update-examples-ts-versions:
find examples/*/package.json -type f -exec sed -i '' 's/"humanlayer": ".*"/"humanlayer": "$(VERSION)"/g' {} +
find examples/*/package.json -type f -exec sed -i '' 's/@humanlayer\/sdk": ".*"/@humanlayer\/sdk": "$(VERSION)"/g' {} +
.PHONY: update-examples-tokens
HUMANLAYER_API_KEY?=
@@ -280,7 +280,7 @@ release-plan: _release-plan-versions _release-branch-check _staging-env-check
@echo
@echo "Release steps:"
@echo "1. Publish TypeScript alpha:"
@echo " - cd humanlayer-ts && npm publish --tag alpha"
@echo " - cd humanlayer-ts && npm publish --tag alpha --access public"
@echo " - make update-examples-ts-versions VERSION=$(current-ts-version)"
@echo " - make smoke-test-examples-ts"
@echo
@@ -296,7 +296,7 @@ release-plan: _release-plan-versions _release-branch-check _staging-env-check
@echo
@echo "4. Publish TypeScript:"
@echo " - sed -i '' 's/$(current-ts-version)/$(new-version)/' humanlayer-ts/package.json"
@echo " - cd humanlayer-ts && npm publish"
@echo " - cd humanlayer-ts && npm publish --access public"
@echo " - make update-examples-ts-versions VERSION=$(new-version)"
@echo " - make smoke-test-examples-ts"
@echo
@@ -326,7 +326,7 @@ release-alpha: _check-uv-publish-token release-plan
: confirming release plan
@read -p "Press Enter to continue..."
@echo "Releasing..."
cd humanlayer-ts && npm run build && npm publish --tag alpha
cd humanlayer-ts && npm run build && npm publish --tag alpha --access public
:
: waiting for ts publish to complete
:
@@ -356,7 +356,7 @@ release-and-test-prod: _release-plan-versions _release-branch-check _production-
sed -i '' 's/$(current-ts-version)/$(new-version)/' humanlayer-ts/package.json
cat humanlayer-ts/package.json | grep version
@read -p "Press Enter to continue..."
cd humanlayer-ts && npm run build && npm publish
cd humanlayer-ts && npm run build && npm publish --access public
@$(MAKE) update-examples-ts-versions VERSION=$(new-version)
:
: waiting for ts publish to complete

View File

@@ -146,7 +146,7 @@ kwargs={"x": 2, "y": 5},
````
```typescript example.ts
import { humanlayer } from "humanlayer-sdk";
import { humanlayer } from "@humanlayer/sdk";
const botToken = "...YOUR BOT TOKEN";

View File

@@ -17,7 +17,7 @@ Classifications enable agents to collect structured data labels from humans. Com
## Basic Example
```typescript
import { humanlayer, ResponseOption } from "humanlayer-sdk";
import { humanlayer, ResponseOption } from "@humanlayer/sdk";
// Initialize with descriptive run ID
const hl = humanlayer({ runId: "email-classifier" });

View File

@@ -11,7 +11,7 @@ The [Vercel AI SDK](https://sdk.vercel.ai/docs) enables streaming AI responses i
## Installation
```bash
npm install humanlayer-sdk ai
npm install @humanlayer/sdk ai
```
## Basic Example
@@ -78,7 +78,7 @@ const { text, steps } = await generateText({
### API Route (app/api/chat/route.ts)
```typescript
import { humanlayer } from "humanlayer-sdk";
import { humanlayer } from "@humanlayer/sdk";
import { StreamingTextResponse, LangChainStream } from "ai";
import { ChatOpenAI } from "langchain/chat_models/openai";
import { AIMessage, HumanMessage, SystemMessage } from "langchain/schema";

View File

@@ -11,7 +11,7 @@ HumanLayer has [a dedicated client for TypeScript](https://github.com/humanlayer
Install the HumanLayer TypeScript SDK:
```bash
npm install humanlayer-sdk
npm install @humanlayer/sdk
```
## Basic Example
@@ -32,7 +32,7 @@ export HUMANLAYER_API_KEY=your-humanlayer-key
This basic example shows how to use HumanLayer as a tool in an OpenAI chat completion loop.
```typescript
import { humanlayer } from "humanlayer-sdk";
import { humanlayer } from "@humanlayer/sdk";
import OpenAI from "openai";
// Initialize clients
@@ -93,7 +93,11 @@ if (message.tool_calls) {
Configure how approvals are requested:
```typescript
import { humanlayer, ContactChannel, SlackContactChannel } from "humanlayer-sdk";
import {
humanlayer,
ContactChannel,
SlackContactChannel,
} from "@humanlayer/sdk";
const hl = humanlayer({
runId: "quickstart",

View File

@@ -33,7 +33,7 @@ grpcio==1.70.0
h11==0.14.0
httpcore==1.0.7
httpx==0.28.1
humanlayer==0.7.7
humanlayer==0.7.8
idna==3.10
importlib_metadata==8.5.0
installer==0.7.0

View File

@@ -1,5 +1,5 @@
controlflow
# install humanlayer
humanlayer==0.7.7
humanlayer==0.7.8
# or if you want an editable version
# -e ../../

View File

@@ -1,6 +1,6 @@
crewai
crewai-tools
# install humanlayer
humanlayer==0.7.7
humanlayer==0.7.8
# or if you want an editable version
# -e ../../

View File

@@ -1,6 +1,6 @@
crewai
crewai-tools
# install humanlayer
humanlayer==0.7.7
humanlayer==0.7.8
# or if you want an editable version
# -e ../../

View File

@@ -1,5 +1,5 @@
fastapi
uvicorn
python-dotenv
humanlayer==0.7.7
humanlayer==0.7.8
marvin

View File

@@ -1,4 +1,4 @@
fastapi
uvicorn
python-dotenv
humanlayer==0.7.7
humanlayer==0.7.8

View File

@@ -1,4 +1,4 @@
fastapi
uvicorn
python-dotenv
humanlayer==0.7.7
humanlayer==0.7.8

View File

@@ -2,4 +2,4 @@ flask
python-dotenv
langchain
langchain-openai
humanlayer==0.7.7
humanlayer==0.7.8

View File

@@ -19,7 +19,7 @@
"dependencies": {
"@gensx/core": "^0.3.7",
"@gensx/openai": "^0.1.19",
"humanlayer-sdk": "0.7.7",
"@humanlayer/sdk": "0.7.8-alpha.1",
"openai": "^4.90.0"
},
"devDependencies": {

View File

@@ -2,6 +2,6 @@ griptape[all]
python-dotenv
schema
# install humanlayer
humanlayer==0.7.7
humanlayer==0.7.8
# or if you want an editable version
#-e ../../

View File

@@ -2,6 +2,6 @@ langchain
langchain-anthropic
python-dotenv
# install humanlayer
humanlayer==0.7.7
humanlayer==0.7.8
# or if you want an editable version
# -e ../../

View File

@@ -2,4 +2,4 @@ langchain
langchain-ollama
python-dotenv
# install humanlayer
humanlayer==0.7.7
humanlayer==0.7.8

View File

@@ -2,5 +2,5 @@ langchain
langchain-openai
python-dotenv
# install humanlayer
humanlayer==0.7.7
humanlayer==0.7.8
# or if you want an editable version

View File

@@ -2,6 +2,6 @@ openai
python-dotenv
# install humanlayer
humanlayer==0.7.7
humanlayer==0.7.8
# or if you want an editable version
# -e ../../

View File

@@ -1,5 +1,5 @@
import { config } from "dotenv";
import { HumanLayer } from "humanlayer-sdk";
import { HumanLayer } from "@humanlayer/sdk";
import {
ClassifiedEmail,
classifyEmail,

View File

@@ -1,4 +1,4 @@
import { HumanLayer, ResponseOption } from "humanlayer-sdk";
import { HumanLayer, ResponseOption } from "@humanlayer/sdk";
import { config } from "dotenv";
import {
Classification,

View File

@@ -25,7 +25,7 @@
"@types/express": "^5.0.0",
"dotenv": "^16.4.7",
"express": "^4.21.2",
"humanlayer-sdk": "0.7.7",
"@humanlayer/sdk": "0.7.8-alpha.1",
"openai": "^4.0.0"
},
"devDependencies": {

View File

@@ -1,4 +1,4 @@
import { humanlayer } from "humanlayer-sdk";
import { humanlayer } from "@humanlayer/sdk";
const hlClient = humanlayer({ verbose: true, runId: "spline-reticulator" });

View File

@@ -7,7 +7,7 @@ import { AgentExecutor, createOpenAIFunctionsAgent } from "langchain/agents";
import { StructuredTool, Tool } from "@langchain/core/tools";
import { output, z } from "zod";
import { ZodObjectAny } from "@langchain/core/dist/types/zod";
import { humanlayer } from "humanlayer-sdk";
import { humanlayer } from "@humanlayer/sdk";
const hl = humanlayer({
verbose: true,

View File

@@ -21,7 +21,7 @@
"author": "HumanLayer Authors",
"license": "Apache-2.0",
"dependencies": {
"humanlayer-sdk": "0.7.7",
"@humanlayer/sdk": "0.7.8-alpha.1",
"langchain": "^0.2.19",
"openai": "^4.0.0"
},

View File

@@ -1,4 +1,4 @@
import { humanlayer } from "humanlayer-sdk";
import { humanlayer } from "@humanlayer/sdk";
import OpenAI from "openai";
import { ChatCompletionTool } from "openai/src/resources/index.js";

View File

@@ -1,4 +1,4 @@
import { ContactChannel, humanlayer } from "humanlayer-sdk";
import { ContactChannel, humanlayer } from "@humanlayer/sdk";
import OpenAI from "openai";
import { ChatCompletionTool } from "openai/src/resources/index.js";

View File

@@ -1,4 +1,4 @@
import { ContactChannel, humanlayer } from "humanlayer-sdk";
import { ContactChannel, humanlayer } from "@humanlayer/sdk";
import OpenAI from "openai";
import { ChatCompletionTool } from "openai/src/resources/index.js";

View File

@@ -1,4 +1,4 @@
import { humanlayer } from "humanlayer-sdk";
import { humanlayer } from "@humanlayer/sdk";
import OpenAI from "openai";
import { ChatCompletionTool } from "openai/src/resources/index.js";

View File

@@ -1,4 +1,4 @@
import { FunctionCall, humanlayer } from "humanlayer-sdk";
import { FunctionCall, humanlayer } from "@humanlayer/sdk";
const hl = humanlayer({ verbose: true, runId: "email-escalation" });

View File

@@ -1,4 +1,4 @@
import { EmailContactChannel, FunctionCall, humanlayer } from "humanlayer-sdk";
import { EmailContactChannel, FunctionCall, humanlayer } from "@humanlayer/sdk";
const hl = humanlayer({ verbose: true, runId: "email-multiple" });

View File

@@ -9,8 +9,8 @@
"version": "0.1.0",
"license": "Apache-2.0",
"dependencies": {
"@humanlayer/sdk": "0.7.8-alpha.1",
"dotenv": "^16.4.7",
"humanlayer": "0.7.7",
"openai": "^4.0.0"
},
"devDependencies": {
@@ -441,6 +441,12 @@
"node": ">=18"
}
},
"node_modules/@humanlayer/sdk": {
"version": "0.7.8-alpha.1",
"resolved": "https://registry.npmjs.org/@humanlayer/sdk/-/sdk-0.7.8-alpha.1.tgz",
"integrity": "sha512-UI5ELaQB0Lu26Eq0snoJ/A3ALJkn9TSbpasYHAokXI3EK79uHOGL1lHzjPD1m1UpAgGs23+qYwxam5WD70WzhA==",
"license": "Apache-2.0"
},
"node_modules/@jridgewell/resolve-uri": {
"version": "3.1.2",
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz",
@@ -899,12 +905,6 @@
"ms": "^2.0.0"
}
},
"node_modules/humanlayer": {
"version": "0.7.7",
"resolved": "https://registry.npmjs.org/humanlayer/-/humanlayer-0.7.7.tgz",
"integrity": "sha512-6pk+EvyHDPUJwDex5tGwv/11tn1ZeanRUr2hrDIF3F7zRqB6fstRilpRN5Glc4s+WdnzqCvaBsAQOHk9DyLDww==",
"license": "Apache-2.0"
},
"node_modules/make-error": {
"version": "1.3.6",
"resolved": "https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz",

View File

@@ -27,7 +27,7 @@
"license": "Apache-2.0",
"dependencies": {
"dotenv": "^16.4.7",
"humanlayer-sdk": "0.7.7",
"@humanlayer/sdk": "0.7.8-alpha.1",
"openai": "^4.0.0"
},
"devDependencies": {

View File

@@ -24,7 +24,7 @@
"chalk": "^5.4.1",
"commander": "^14.0.0",
"dotenv": "^16.5.0",
"humanlayer-sdk": "^0.7.7"
"@humanlayer/sdk": "^0.7.7"
},
"devDependencies": {
"@types/node": "^22.15.21",

View File

@@ -40,7 +40,7 @@
"dependencies": {
"@ai-sdk/openai": "^1.0.13",
"ai": "^4.0.26",
"humanlayer-sdk": "0.7.1-rc1"
"@humanlayer/sdk": "0.7.1-rc1"
},
"devDependencies": {
"@types/jest": "^29.5.14",

View File

@@ -1,6 +1,7 @@
{
"name": "humanlayer-sdk",
"version": "0.7.8-alpha.1",
"name": "@humanlayer/sdk",
"version": "0.7.8",
"private": false,
"description": "typescript client for humanlayer.dev",
"main": "./dist/index.cjs",
"module": "./dist/index.mjs",

View File

@@ -10,7 +10,7 @@ dependencies = [
"aiohttp>=3.11.10,<4.0.0",
]
name = "humanlayer"
version = "0.7.8-alpha.1"
version = "0.7.8"
description = "humanlayer"
readme = "README.md"

2
uv.lock generated
View File

@@ -508,7 +508,7 @@ wheels = [
[[package]]
name = "humanlayer"
version = "0.7.8a1"
version = "0.7.8"
source = { editable = "." }
dependencies = [
{ name = "aiohttp" },