@crvouga/mockingbird-service-openai 0.1.0
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/CHANGELOG.md +5 -0
- package/DISCOVERY.md +55 -0
- package/README.md +193 -0
- package/SUPPORT.md +26 -0
- package/dist/chunk-I6E3KEW7.js +818 -0
- package/dist/chunk-I6E3KEW7.js.map +7 -0
- package/dist/chunk-JAE7QQJM.js +4098 -0
- package/dist/chunk-JAE7QQJM.js.map +7 -0
- package/dist/cli.js +19 -0
- package/dist/cli.js.map +7 -0
- package/dist/index.d.ts +1134 -0
- package/dist/index.js +31 -0
- package/dist/index.js.map +7 -0
- package/dist/server.d.ts +1571 -0
- package/dist/server.js +12 -0
- package/dist/server.js.map +7 -0
- package/openapi.yaml +3656 -0
- package/package.json +131 -0
package/package.json
ADDED
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@crvouga/mockingbird-service-openai",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Local scripted OpenAI mock: chat/tool loops, SSE, embeddings, models, files and staged uploads without billed inference.",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"sideEffects": false,
|
|
8
|
+
"files": [
|
|
9
|
+
"dist",
|
|
10
|
+
"README.md",
|
|
11
|
+
"CHANGELOG.md",
|
|
12
|
+
"DISCOVERY.md",
|
|
13
|
+
"SUPPORT.md",
|
|
14
|
+
"openapi.yaml"
|
|
15
|
+
],
|
|
16
|
+
"main": "./dist/index.js",
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"exports": {
|
|
19
|
+
".": {
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"default": "./dist/index.js"
|
|
22
|
+
},
|
|
23
|
+
"./server": {
|
|
24
|
+
"types": "./dist/server.d.ts",
|
|
25
|
+
"default": "./dist/server.js"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"bin": {
|
|
29
|
+
"mockingbird-openai": "./dist/cli.js"
|
|
30
|
+
},
|
|
31
|
+
"publishConfig": {
|
|
32
|
+
"access": "public",
|
|
33
|
+
"provenance": true
|
|
34
|
+
},
|
|
35
|
+
"repository": {
|
|
36
|
+
"type": "git",
|
|
37
|
+
"url": "git+https://github.com/crvouga/mockingbird.git",
|
|
38
|
+
"directory": "packages/service/openai"
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://github.com/crvouga/mockingbird/tree/main/packages/service/openai#readme",
|
|
41
|
+
"keywords": [
|
|
42
|
+
"mockingbird",
|
|
43
|
+
"service",
|
|
44
|
+
"openai",
|
|
45
|
+
"ai",
|
|
46
|
+
"testing"
|
|
47
|
+
],
|
|
48
|
+
"mockingbird": {
|
|
49
|
+
"runtime": "portable",
|
|
50
|
+
"entries": {
|
|
51
|
+
"server": "node",
|
|
52
|
+
"cli": "node"
|
|
53
|
+
},
|
|
54
|
+
"layer": "service",
|
|
55
|
+
"category": "ai",
|
|
56
|
+
"displayName": "OpenAI",
|
|
57
|
+
"status": "wip",
|
|
58
|
+
"vendor": {
|
|
59
|
+
"website": "https://openai.com",
|
|
60
|
+
"docs": "https://developers.openai.com/api/reference/resources/chat/subresources/completions/methods/create",
|
|
61
|
+
"description": "OpenAI provides chat, embeddings and agent APIs; this mock uses local scripts only.",
|
|
62
|
+
"icon": "openai"
|
|
63
|
+
},
|
|
64
|
+
"parity": "Scripted chat/tool calls, SSE, embeddings, models, files and uploads",
|
|
65
|
+
"parityTier": "cold",
|
|
66
|
+
"playground": {
|
|
67
|
+
"headers": {
|
|
68
|
+
"authorization": "Bearer fixture-openai-token"
|
|
69
|
+
},
|
|
70
|
+
"operation": "ListModels"
|
|
71
|
+
},
|
|
72
|
+
"discovery": {
|
|
73
|
+
"guide": "DISCOVERY.md",
|
|
74
|
+
"behavior": "README.md",
|
|
75
|
+
"capabilities": "SUPPORT.md",
|
|
76
|
+
"contract": "openapi.yaml",
|
|
77
|
+
"types": "dist/index.d.ts",
|
|
78
|
+
"oracle": {
|
|
79
|
+
"kind": "Official documentation and local SDK oracle",
|
|
80
|
+
"command": "bun run parity:service -- openai",
|
|
81
|
+
"note": "Live billed inference is disabled by repository policy. The package parity runner exits 2; tests verify official SDKs locally."
|
|
82
|
+
},
|
|
83
|
+
"introspection": [
|
|
84
|
+
"GET /__admin/health",
|
|
85
|
+
"GET /__admin",
|
|
86
|
+
"GET /__admin/state",
|
|
87
|
+
"GET /__admin/requests",
|
|
88
|
+
"GET /__admin/metrics",
|
|
89
|
+
"GET /__admin/faults/presets",
|
|
90
|
+
"GET /__admin/ui"
|
|
91
|
+
],
|
|
92
|
+
"reporting": "https://github.com/crvouga/mockingbird/blob/main/docs/REPORTING_ISSUES.md"
|
|
93
|
+
}
|
|
94
|
+
},
|
|
95
|
+
"scripts": {
|
|
96
|
+
"generate": "bun ../../openapi/codegen/dist/cli.js",
|
|
97
|
+
"generate:check": "bun ../../openapi/codegen/dist/cli.js --check",
|
|
98
|
+
"openapi:check": "bun ../../openapi/codegen/dist/cli.js --validate",
|
|
99
|
+
"build": "bun ../../../scripts/bundle-service.ts",
|
|
100
|
+
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
101
|
+
"lint": "biome check .",
|
|
102
|
+
"test": "bun test",
|
|
103
|
+
"parity": "bun scripts/parity.ts",
|
|
104
|
+
"portability": "bun ../../../scripts/portability.ts",
|
|
105
|
+
"pack:check": "bun ../../../scripts/pack-check.ts"
|
|
106
|
+
},
|
|
107
|
+
"dependencies": {
|
|
108
|
+
"@crvouga/mockingbird-service-sqlite": "2.1.1",
|
|
109
|
+
"hono": "4.11.9",
|
|
110
|
+
"@noble/hashes": "2.4.0",
|
|
111
|
+
"@noble/ciphers": "2.4.0"
|
|
112
|
+
},
|
|
113
|
+
"devDependencies": {
|
|
114
|
+
"fast-check": "4.9.0",
|
|
115
|
+
"@crvouga/mockingbird-testing": "0.1.0",
|
|
116
|
+
"@crvouga/mockingbird-service-sqlite": "0.0.0-development",
|
|
117
|
+
"@crvouga/mockingbird-parity": "0.0.0-development",
|
|
118
|
+
"@crvouga/mockingbird-credentials": "0.0.0-development",
|
|
119
|
+
"@crvouga/mockingbird-openapi-codegen": "0.1.0",
|
|
120
|
+
"@crvouga/mockingbird-openapi-metadata": "0.0.0-development",
|
|
121
|
+
"@crvouga/mockingbird-core": "0.0.0-development",
|
|
122
|
+
"@crvouga/mockingbird-sqlite": "0.0.0-development",
|
|
123
|
+
"@crvouga/mockingbird-openapi": "0.0.0-development",
|
|
124
|
+
"@crvouga/mockingbird-service": "0.0.0-development",
|
|
125
|
+
"@crvouga/mockingbird-http-codec": "0.0.0-development",
|
|
126
|
+
"@crvouga/mockingbird-adapter-node": "0.0.0-development",
|
|
127
|
+
"@ai-sdk/openai": "4.0.83",
|
|
128
|
+
"ai": "7.0.127",
|
|
129
|
+
"openai": "7.27.0"
|
|
130
|
+
}
|
|
131
|
+
}
|