graphlit-client 1.0.20260107002 → 1.0.20260107004

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/client.js CHANGED
@@ -5,7 +5,6 @@ import { ApolloClient, InMemoryCache, createHttpLink, ApolloLink, ApolloError, }
5
5
  import { RetryLink } from "@apollo/client/link/retry/index.js";
6
6
  import * as Types from "./generated/graphql-types.js";
7
7
  import * as Documents from "./generated/graphql-documents.js";
8
- import * as dotenv from "dotenv";
9
8
  import { getServiceType, getModelName, getModelEnum } from "./model-mapping.js";
10
9
  import { UIEventAdapter } from "./streaming/ui-event-adapter.js";
11
10
  import { formatMessagesForOpenAI, formatMessagesForAnthropic, formatMessagesForGoogle, formatMessagesForMistral, formatMessagesForBedrock, } from "./streaming/llm-formatters.js";
@@ -182,7 +181,14 @@ class Graphlit {
182
181
  : undefined) ||
183
182
  "https://data-scus.graphlit.io/api/v1/graphql";
184
183
  if (typeof process !== "undefined") {
185
- dotenv.config();
184
+ // Attempt to load dotenv if available (optional dependency)
185
+ try {
186
+ // eslint-disable-next-line @typescript-eslint/no-require-imports
187
+ require("dotenv").config();
188
+ }
189
+ catch {
190
+ // dotenv not installed, user must set env vars manually
191
+ }
186
192
  this.organizationId =
187
193
  options.organizationId || process.env.GRAPHLIT_ORGANIZATION_ID;
188
194
  this.environmentId =
@@ -2512,14 +2512,6 @@ export const LookupContents = gql `
2512
2512
  language {
2513
2513
  languages
2514
2514
  }
2515
- parent {
2516
- id
2517
- name
2518
- }
2519
- children {
2520
- id
2521
- name
2522
- }
2523
2515
  feed {
2524
2516
  id
2525
2517
  name
@@ -21999,16 +21999,6 @@ export type LookupContentsQuery = {
21999
21999
  __typename?: 'LanguageMetadata';
22000
22000
  languages?: Array<string | null> | null;
22001
22001
  } | null;
22002
- parent?: {
22003
- __typename?: 'Content';
22004
- id: string;
22005
- name: string;
22006
- } | null;
22007
- children?: Array<{
22008
- __typename?: 'Content';
22009
- id: string;
22010
- name: string;
22011
- } | null> | null;
22012
22002
  feed?: {
22013
22003
  __typename?: 'Feed';
22014
22004
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphlit-client",
3
- "version": "1.0.20260107002",
3
+ "version": "1.0.20260107004",
4
4
  "description": "Graphlit API Client for TypeScript",
5
5
  "type": "module",
6
6
  "main": "./dist/client.js",