@omnicross/subscriptions 0.1.9 → 0.2.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/LICENSE +21 -21
- package/NOTICE +12 -12
- package/README.md +15 -15
- package/dist/index.cjs +874 -2
- package/dist/index.d.cts +97 -1
- package/dist/index.d.ts +97 -1
- package/dist/index.js +872 -0
- package/package.json +60 -59
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 Sayo
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Sayo
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/NOTICE
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
@omnicross/subscriptions — THIRD-PARTY NOTICES
|
|
2
|
-
==============================================
|
|
3
|
-
|
|
1
|
+
@omnicross/subscriptions — THIRD-PARTY NOTICES
|
|
2
|
+
==============================================
|
|
3
|
+
|
|
4
4
|
This package contains the subscription-as-provider block (auth strategies,
|
|
5
5
|
account service, provider registry, dispatcher, and OpenCodeGo routing) and uses
|
|
6
6
|
the following third-party dependency. Its license applies to that dependency.
|
|
7
|
-
|
|
8
|
-
--------------------------------------------------------------------------------
|
|
7
|
+
|
|
8
|
+
--------------------------------------------------------------------------------
|
|
9
9
|
1. js-tiktoken (MIT License)
|
|
10
|
-
--------------------------------------------------------------------------------
|
|
11
|
-
|
|
12
|
-
`src/opencodego/token-count.ts` lazily imports `js-tiktoken` (cl100k_base
|
|
13
|
-
encoding) to estimate input-token counts for OpenCodeGo scenario routing.
|
|
14
|
-
|
|
15
|
-
https://github.com/dqbd/tiktoken
|
|
16
|
-
Licensed under the MIT License.
|
|
10
|
+
--------------------------------------------------------------------------------
|
|
11
|
+
|
|
12
|
+
`src/opencodego/token-count.ts` lazily imports `js-tiktoken` (cl100k_base
|
|
13
|
+
encoding) to estimate input-token counts for OpenCodeGo scenario routing.
|
|
14
|
+
|
|
15
|
+
https://github.com/dqbd/tiktoken
|
|
16
|
+
Licensed under the MIT License.
|
package/README.md
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
# @omnicross/subscriptions
|
|
2
|
-
|
|
3
|
-
omnicross subscription-as-provider support — pass-through / OAuth-bearer / static-bearer auth strategies, the Claude / Codex / Gemini OAuth flows, and the OpenCodeGo scenario dispatcher + fallback chain.
|
|
4
|
-
|
|
5
|
-
Part of the [omnicross](https://github.com/Dumoedss/omnicross) monorepo — see the root README for the full overview.
|
|
6
|
-
|
|
7
|
-
```bash
|
|
8
|
-
npm install @omnicross/subscriptions
|
|
9
|
-
```
|
|
10
|
-
|
|
11
|
-
## License
|
|
12
|
-
|
|
13
|
-
[MIT](LICENSE)
|
|
14
|
-
|
|
15
|
-
This package adapts third-party work under its own license — see the `NOTICE` file.
|
|
1
|
+
# @omnicross/subscriptions
|
|
2
|
+
|
|
3
|
+
omnicross subscription-as-provider support — pass-through / OAuth-bearer / static-bearer auth strategies, the Claude / Codex / Gemini OAuth flows, and the OpenCodeGo scenario dispatcher + fallback chain.
|
|
4
|
+
|
|
5
|
+
Part of the [omnicross](https://github.com/Dumoedss/omnicross) monorepo — see the root README for the full overview.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install @omnicross/subscriptions
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## License
|
|
12
|
+
|
|
13
|
+
[MIT](LICENSE)
|
|
14
|
+
|
|
15
|
+
This package adapts third-party work under its own license — see the `NOTICE` file.
|