@bernierllc/openai-client 1.0.3 → 1.0.5

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.
Files changed (2) hide show
  1. package/README.md +11 -7
  2. package/package.json +13 -13
package/README.md CHANGED
@@ -259,17 +259,21 @@ if (result.success) {
259
259
  }
260
260
  ```
261
261
 
262
- ## Integration
262
+ ## Integration Status
263
263
 
264
264
  ### Logger Integration
265
+ **Status**: Integrated
265
266
 
266
- This package uses [@bernierllc/logger](../logger) for structured logging. Logs include:
267
+ **Justification**: This package uses `@bernierllc/logger` for structured logging of all AI operations. Logs include request/response metadata (model, tokens, cost), retry attempts and backoff delays, rate limit events, and error details to help with debugging and cost monitoring.
267
268
 
268
- - Request start/completion
269
- - Retry attempts
270
- - Rate limiting events
271
- - Cost and token usage
272
- - Error details
269
+ **Pattern**: Direct integration - logger is a required dependency for this package.
270
+
271
+ ### NeverHub Integration
272
+ **Status**: Not applicable
273
+
274
+ **Justification**: This is a core AI client package that provides OpenAI API connectivity. It does not participate in service discovery, event publishing, or service mesh operations. AI clients are infrastructure utilities that don't require service registration or discovery.
275
+
276
+ **Pattern**: Core utility - no service mesh integration needed. Service-level packages that use this client can integrate with NeverHub if needed.
273
277
 
274
278
  ### Retry Policy Integration
275
279
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bernierllc/openai-client",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "Type-safe OpenAI API client with automatic rate limiting, retry logic, streaming support, and cost tracking",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -9,16 +9,6 @@
9
9
  "README.md",
10
10
  "LICENSE"
11
11
  ],
12
- "scripts": {
13
- "build": "tsc",
14
- "dev": "tsc --watch",
15
- "test": "jest",
16
- "test:watch": "jest --watch",
17
- "test:coverage": "jest --coverage",
18
- "test:run": "jest --passWithNoTests",
19
- "lint": "eslint src/**/*.ts",
20
- "clean": "rimraf dist"
21
- },
22
12
  "keywords": [
23
13
  "openai",
24
14
  "gpt",
@@ -40,7 +30,7 @@
40
30
  "dependencies": {
41
31
  "openai": "^4.73.0",
42
32
  "@bernierllc/logger": "^1.0.1",
43
- "@bernierllc/retry-policy": "^0.1.3"
33
+ "@bernierllc/retry-policy": "^0.1.6"
44
34
  },
45
35
  "devDependencies": {
46
36
  "@types/jest": "^29.5.14",
@@ -55,5 +45,15 @@
55
45
  },
56
46
  "engines": {
57
47
  "node": ">=18.0.0"
48
+ },
49
+ "scripts": {
50
+ "build": "tsc",
51
+ "dev": "tsc --watch",
52
+ "test": "jest",
53
+ "test:watch": "jest --watch",
54
+ "test:coverage": "jest --coverage",
55
+ "test:run": "jest --passWithNoTests",
56
+ "lint": "eslint src/**/*.ts",
57
+ "clean": "rimraf dist"
58
58
  }
59
- }
59
+ }