diff --git a/js/package.json b/js/package.json index e36f5069..27c7c081 100644 --- a/js/package.json +++ b/js/package.json @@ -1,6 +1,6 @@ { "name": "langsmith", - "version": "0.0.34", + "version": "0.0.35", "description": "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform.", "files": [ "dist/", diff --git a/js/src/cli/main.ts b/js/src/cli/main.ts index 55de4f9f..873f9f94 100644 --- a/js/src/cli/main.ts +++ b/js/src/cli/main.ts @@ -4,7 +4,6 @@ import * as util from "util"; import { Command } from "commander"; import * as child_process from "child_process"; import { - getDockerEnvironment, getLangChainEnvVars, getRuntimeEnvironment, setEnvironmentVariable, @@ -295,11 +294,9 @@ class SmithCommand { async env() { const env = await getRuntimeEnvironment(); - const dockerEnv = await getDockerEnvironment(); const envVars = await getLangChainEnvVars(); const envDict = { ...env, - ...dockerEnv, ...envVars, }; // Pretty print diff --git a/js/src/utils/env.ts b/js/src/utils/env.ts index c39fe8f0..91d4f799 100644 --- a/js/src/utils/env.ts +++ b/js/src/utils/env.ts @@ -1,5 +1,3 @@ -import { exec } from "child_process"; - // Inlined from https://github.com/flexdinesh/browser-or-node declare global { const Deno: @@ -78,58 +76,6 @@ export async function getRuntimeEnvironment(): Promise { return runtimeEnvironment; } -export async function getDockerEnvironment(): Promise<{ - dockerVersion: string | undefined; - dockerComposeCommand: string | undefined; - dockerComposeVersion: string | undefined; -}> { - const getDockerVersion = () => - new Promise((resolve) => { - exec("docker --version", (error, stdout) => { - if (error) { - resolve(undefined); - } else { - resolve(stdout.trim()); - } - }); - }); - - const getDockerComposeCommand = () => - new Promise((resolve) => { - exec("which docker-compose", (error, stdout) => { - if (error) { - resolve(undefined); - } else { - resolve(stdout.trim()); - } - }); - }); - - const getDockerComposeVersion = () => - new Promise((resolve) => { - exec("docker-compose --version", (error, stdout) => { - if (error) { - resolve(undefined); - } else { - resolve(stdout.trim()); - } - }); - }); - - const [dockerVersion, dockerComposeCommand, dockerComposeVersion] = - await Promise.all([ - getDockerVersion(), - getDockerComposeCommand(), - getDockerComposeVersion(), - ]); - - return { - dockerVersion, - dockerComposeCommand, - dockerComposeVersion, - }; -} - /** * Retrieves the LangChain-specific environment variables from the current runtime environment. * Sensitive keys (containing the word "key") have their values redacted for security. diff --git a/python/pyproject.toml b/python/pyproject.toml index c61cd47e..8fec5eb8 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "langsmith" -version = "0.0.34" +version = "0.0.35" description = "Client library to connect to the LangSmith LLM Tracing and Evaluation Platform." authors = ["LangChain "] license = "MIT"