@firstflow/core 0.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.
@@ -0,0 +1,11 @@
1
+ import {
2
+ wrapProvider
3
+ } from "./chunk-RZMKPIBO.mjs";
4
+ import "./chunk-X3T7X4JQ.mjs";
5
+
6
+ // src/openai.ts
7
+ import RealOpenAI from "openai";
8
+ var OpenAI = wrapProvider(RealOpenAI);
9
+ export {
10
+ OpenAI
11
+ };
package/package.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "@firstflow/core",
3
+ "version": "0.0.5",
4
+ "description": "Firstflow Node SDK — cloud forwarding, LLM wrap, self-owned analytics",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.mjs",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "types": "./dist/index.d.ts",
11
+ "import": "./dist/index.mjs",
12
+ "require": "./dist/index.js"
13
+ },
14
+ "./openai": {
15
+ "types": "./dist/openai.d.ts",
16
+ "import": "./dist/openai.mjs",
17
+ "require": "./dist/openai.js"
18
+ },
19
+ "./anthropic": {
20
+ "types": "./dist/anthropic.d.ts",
21
+ "import": "./dist/anthropic.mjs",
22
+ "require": "./dist/anthropic.js"
23
+ }
24
+ },
25
+ "files": [
26
+ "dist"
27
+ ],
28
+ "license": "MIT",
29
+ "publishConfig": {
30
+ "access": "public"
31
+ },
32
+ "scripts": {
33
+ "build": "tsup",
34
+ "prepublishOnly": "npm run build",
35
+ "typecheck": "tsc --noEmit",
36
+ "test": "vitest run",
37
+ "verify": "npm run typecheck && npm run build && npm run test",
38
+ "smoke:a": "npx tsx scripts/smoke-a.ts",
39
+ "smoke:b": "npx tsx scripts/smoke-b.ts",
40
+ "smoke:anthropic": "npx tsx scripts/smoke-anthropic-a.ts",
41
+ "smoke:anthropic-stream": "npx tsx scripts/smoke-anthropic-b.ts"
42
+ },
43
+ "dependencies": {
44
+ "@opentelemetry/instrumentation-openai": "^0.15.0",
45
+ "@opentelemetry/resources": "^2.7.0",
46
+ "@opentelemetry/sdk-node": "^0.217.0",
47
+ "@traceloop/instrumentation-anthropic": "^0.26.0",
48
+ "jose": "^5.9.0"
49
+ },
50
+ "peerDependencies": {
51
+ "@anthropic-ai/sdk": ">=0.36.0",
52
+ "openai": ">=4.0.0"
53
+ },
54
+ "peerDependenciesMeta": {
55
+ "openai": {
56
+ "optional": true
57
+ },
58
+ "@anthropic-ai/sdk": {
59
+ "optional": true
60
+ }
61
+ },
62
+ "devDependencies": {
63
+ "@anthropic-ai/sdk": "^0.52.0",
64
+ "@types/node": "^22.0.0",
65
+ "openai": "^4.104.0",
66
+ "tsup": "^8.0.0",
67
+ "typescript": "^5.0.0",
68
+ "vitest": "^2.1.9"
69
+ },
70
+ "keywords": [
71
+ "firstflow",
72
+ "server",
73
+ "openai",
74
+ "anthropic",
75
+ "claude",
76
+ "opentelemetry"
77
+ ]
78
+ }