@omnicross/subscriptions 0.1.5 → 0.1.6
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/NOTICE +4 -33
- package/dist/index.cjs +315 -152
- package/dist/index.d.cts +12 -12
- package/dist/index.d.ts +12 -12
- package/dist/index.js +271 -108
- package/dist/oauth.d.cts +1 -5
- package/dist/oauth.d.ts +1 -5
- package/package.json +1 -1
package/NOTICE
CHANGED
|
@@ -1,41 +1,12 @@
|
|
|
1
1
|
@omnicross/subscriptions — THIRD-PARTY NOTICES
|
|
2
2
|
==============================================
|
|
3
3
|
|
|
4
|
-
This package contains the subscription-as-provider block (auth strategies,
|
|
5
|
-
account service, provider registry, dispatcher, OpenCodeGo routing)
|
|
6
|
-
|
|
7
|
-
clean-room, from the following third-party works. Those repositories are NOT
|
|
8
|
-
vendored into this tree; only original TypeScript that mirrors their routing
|
|
9
|
-
shape / config-data values lives here (see the in-code provenance comments).
|
|
4
|
+
This package contains the subscription-as-provider block (auth strategies,
|
|
5
|
+
account service, provider registry, dispatcher, and OpenCodeGo routing) and uses
|
|
6
|
+
the following third-party dependency. Its license applies to that dependency.
|
|
10
7
|
|
|
11
8
|
--------------------------------------------------------------------------------
|
|
12
|
-
1.
|
|
13
|
-
--------------------------------------------------------------------------------
|
|
14
|
-
|
|
15
|
-
The Codex (ChatGPT OAuth) upstream routing shape — the
|
|
16
|
-
`https://chatgpt.com/backend-api/codex/responses` endpoint dispatch in
|
|
17
|
-
`src/SubscriptionProviderRegistry.ts` — mirrors the route shape of
|
|
18
|
-
`claude-relay-service` (`src/routes/openaiRoutes.js`). Routing shape only; the
|
|
19
|
-
TypeScript is original, and the upstream repository is not vendored.
|
|
20
|
-
|
|
21
|
-
https://github.com/Wei-Shaw/claude-relay-service
|
|
22
|
-
Licensed under the MIT License.
|
|
23
|
-
|
|
24
|
-
--------------------------------------------------------------------------------
|
|
25
|
-
2. oc-go-cc (OpenCodeGo CC) — model-map + routing-shape / config-data
|
|
26
|
-
--------------------------------------------------------------------------------
|
|
27
|
-
|
|
28
|
-
The OpenCodeGo routing-shape, scenario router, model-map defaults, endpoint
|
|
29
|
-
shapes, and Anthropic-shape `x-api-key` fallback in
|
|
30
|
-
`src/opencodego/{defaults,endpoints,model-shape,ScenarioRouter}.ts` and
|
|
31
|
-
`src/auth/StaticBearerAuthStrategy.ts` are clean-room ports of the model-map and
|
|
32
|
-
routing shape from `oc-go-cc` (`internal/router/model_router.go`,
|
|
33
|
-
`internal/client/opencode.go`, `configs/config.example.json`). Configuration
|
|
34
|
-
data + routing shape only; the TypeScript is original, and the upstream
|
|
35
|
-
repository is not vendored.
|
|
36
|
-
|
|
37
|
-
--------------------------------------------------------------------------------
|
|
38
|
-
3. js-tiktoken (MIT License)
|
|
9
|
+
1. js-tiktoken (MIT License)
|
|
39
10
|
--------------------------------------------------------------------------------
|
|
40
11
|
|
|
41
12
|
`src/opencodego/token-count.ts` lazily imports `js-tiktoken` (cl100k_base
|