From 38a11cbfdc44165652ed730d09cfadcaf9f11548 Mon Sep 17 00:00:00 2001 From: Khurdhula-Harshavardhan Date: Mon, 10 Aug 2026 13:22:57 -0700 Subject: [PATCH] refactor: keep the js package on the @interfaze-ai scope MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit @interfaze-ai/interfaze is already published on jsr, so publishing the langchain package under @interfaze would split the org across two scopes for no gain. The python distribution stays interfaze-langchain — pypi has no scoping and the sdk there is plain `interfaze`, so there is nothing to match. --- CONTRIBUTING.md | 2 +- README.md | 6 +++--- js/README.md | 8 ++++---- js/jsr.json | 2 +- js/package-lock.json | 4 ++-- js/package.json | 2 +- js/src/chat_models.ts | 2 +- js/test/identity.test.ts | 2 +- 8 files changed, 14 insertions(+), 14 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 4955be4..0ab86d7 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,6 +1,6 @@ # Contributing -Two packages, one repo: [`python/`](./python) (`interfaze-langchain`) and [`js/`](./js) (`@interfaze/langchain`). A change to one usually needs the same change to the other — the two are kept behaviourally identical. +Two packages, one repo: [`python/`](./python) (`interfaze-langchain`) and [`js/`](./js) (`@interfaze-ai/langchain`). A change to one usually needs the same change to the other — the two are kept behaviourally identical. ## Setup diff --git a/README.md b/README.md index bb64ed7..12dde03 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Interfaze LangChain SDK -The official [LangChain](https://www.langchain.com) integration for [Interfaze](https://interfaze.ai), for both **Python** (`interfaze-langchain`) and **TypeScript / JavaScript** (`@interfaze/langchain`). +The official [LangChain](https://www.langchain.com) integration for [Interfaze](https://interfaze.ai), for both **Python** (`interfaze-langchain`) and **TypeScript / JavaScript** (`@interfaze-ai/langchain`). [Docs](https://interfaze.ai/docs) · [limits](https://interfaze.ai/docs/limits) · [pricing](https://interfaze.ai/pricing) · [dashboard](https://interfaze.ai) · [Python SDK](https://github.com/InterfazeAI/interfaze-python) · [TypeScript / JavaScript SDK](https://github.com/InterfazeAI/interfaze-js) @@ -17,7 +17,7 @@ pip install interfaze-langchain TypeScript / JavaScript: ```bash -npm install @interfaze/langchain +npm install @interfaze-ai/langchain ``` The TS structured-output and tool examples use `zod` for schemas (`npm install zod`); it's an optional peer. @@ -35,7 +35,7 @@ llm = ChatInterfaze(api_key="sk_...") # or set INTERFAZE_API_KEY and call ChatI TypeScript: ```ts -import { ChatInterfaze } from "@interfaze/langchain"; +import { ChatInterfaze } from "@interfaze-ai/langchain"; const llm = new ChatInterfaze({ apiKey: "sk_..." }); // or set INTERFAZE_API_KEY and call new ChatInterfaze() ``` diff --git a/js/README.md b/js/README.md index 80bb1a0..031b582 100644 --- a/js/README.md +++ b/js/README.md @@ -7,16 +7,16 @@ The official [LangChain](https://js.langchain.com) integration for [Interfaze](h ## Install ```bash -npm install @interfaze/langchain -# or: yarn add @interfaze/langchain · pnpm add @interfaze/langchain · bun add @interfaze/langchain +npm install @interfaze-ai/langchain +# or: yarn add @interfaze-ai/langchain · pnpm add @interfaze-ai/langchain · bun add @interfaze-ai/langchain ``` -`@langchain/openai`, `@langchain/core`, and `interfaze` are peer dependencies - `@interfaze/langchain` builds `ChatInterfaze` on top of them. The structured-output and tool examples below use `zod` for schemas (`npm install zod`); it's an optional peer. +`@langchain/openai`, `@langchain/core`, and `interfaze` are peer dependencies - `@interfaze-ai/langchain` builds `ChatInterfaze` on top of them. The structured-output and tool examples below use `zod` for schemas (`npm install zod`); it's an optional peer. ## Setup ```ts -import { ChatInterfaze } from "@interfaze/langchain"; +import { ChatInterfaze } from "@interfaze-ai/langchain"; const llm = new ChatInterfaze({ apiKey: "sk_..." }); // or set INTERFAZE_API_KEY and call new ChatInterfaze() ``` diff --git a/js/jsr.json b/js/jsr.json index 1abd328..5d6f1f0 100644 --- a/js/jsr.json +++ b/js/jsr.json @@ -1,5 +1,5 @@ { - "name": "@interfaze/langchain", + "name": "@interfaze-ai/langchain", "version": "1.0.0", "exports": "./src/index.ts", "publish": { diff --git a/js/package-lock.json b/js/package-lock.json index 6d1d0ec..09dce63 100644 --- a/js/package-lock.json +++ b/js/package-lock.json @@ -1,11 +1,11 @@ { - "name": "@interfaze/langchain", + "name": "@interfaze-ai/langchain", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "@interfaze/langchain", + "name": "@interfaze-ai/langchain", "version": "1.0.0", "license": "MIT", "devDependencies": { diff --git a/js/package.json b/js/package.json index b040aed..424d586 100644 --- a/js/package.json +++ b/js/package.json @@ -1,5 +1,5 @@ { - "name": "@interfaze/langchain", + "name": "@interfaze-ai/langchain", "version": "1.0.0", "description": "Interfaze LangChain integration for TypeScript/JavaScript", "license": "MIT", diff --git a/js/src/chat_models.ts b/js/src/chat_models.ts index 0546d8f..11a5db2 100644 --- a/js/src/chat_models.ts +++ b/js/src/chat_models.ts @@ -278,7 +278,7 @@ export class ChatInterfaze extends ChatOpenAICompletions { }); this.lc_serializable = false; this.interfazeReasoningEffort = reasoningEffort; - this._addVersion("@interfaze/langchain", VERSION); + this._addVersion("@interfaze-ai/langchain", VERSION); } // The parent spreads clientConfig wholesale, landing the api key and every default diff --git a/js/test/identity.test.ts b/js/test/identity.test.ts index a051604..7db699a 100644 --- a/js/test/identity.test.ts +++ b/js/test/identity.test.ts @@ -24,7 +24,7 @@ describe("provider identity", () => { it("records its own package version alongside core's", () => { const versions = (model as unknown as { metadata?: { versions?: Record } }).metadata?.versions ?? {}; - expect(versions["@interfaze/langchain"]).toBe(VERSION); + expect(versions["@interfaze-ai/langchain"]).toBe(VERSION); expect(versions["@langchain/core"]).toBeTypeOf("string"); });