@vymalo/opencode-oauth2 0.2.0 → 0.2.1
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/dist/index.d.ts +1 -9
- package/dist/index.js +5 -7
- package/dist/index.js.map +1 -1
- package/dist/lib.d.ts +9 -0
- package/dist/lib.js +8 -0
- package/dist/lib.js.map +1 -0
- package/package.json +12 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export { createJsonConsoleLogger, type LogLevel, type Logger } from "./logging.js";
|
|
3
|
-
export { buildModelsUrl, fetchModels } from "./model-discovery.js";
|
|
4
|
-
export { diffModels, normalizeModelId, normalizeModelList } from "./model-normalization.js";
|
|
5
|
-
export { OAuth2ModelSyncPlugin, type PluginOptions } from "./plugin.js";
|
|
6
|
-
export { resolveCacheDir, FileCacheStore } from "./cache.js";
|
|
7
|
-
export { createOpencodeOauth2Plugin, OpencodeOauth2Plugin, OpencodeOauth2Plugin as default } from "./opencode.js";
|
|
8
|
-
export type { OpenCodePluginFactoryOptions } from "./opencode.js";
|
|
9
|
-
export type { CachedServerState, ModelDiff, NormalizedModel, RawModel, ServerSnapshot, TokenSet } from "./types.js";
|
|
1
|
+
export { default } from "./opencode.js";
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
export {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export {
|
|
6
|
-
export { resolveCacheDir, FileCacheStore } from "./cache.js";
|
|
7
|
-
export { createOpencodeOauth2Plugin, OpencodeOauth2Plugin, OpencodeOauth2Plugin as default } from "./opencode.js";
|
|
1
|
+
// OpenCode plugin entry. The host iterates every named export of this module
|
|
2
|
+
// and rejects any export that isn't a Plugin function (or { server: Plugin }).
|
|
3
|
+
// Only the plugin function lives here; the library API is in ./lib.ts and is
|
|
4
|
+
// exposed via the "./lib" subpath in package.json.
|
|
5
|
+
export { default } from "./opencode.js";
|
|
8
6
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,+EAA+E;AAC/E,6EAA6E;AAC7E,mDAAmD;AACnD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC"}
|
package/dist/lib.d.ts
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { DEFAULT_HTTP_TIMEOUT_MS, DEFAULT_SYNC_INTERVAL_MINUTES, type OAuth2ModelSyncConfig, type OAuth2ModelSyncConfigInput, type OAuthServerConfig, type OAuthServerConfigInput, validateConfig } from "./config.js";
|
|
2
|
+
export { createJsonConsoleLogger, type LogLevel, type Logger } from "./logging.js";
|
|
3
|
+
export { buildModelsUrl, fetchModels } from "./model-discovery.js";
|
|
4
|
+
export { diffModels, normalizeModelId, normalizeModelList } from "./model-normalization.js";
|
|
5
|
+
export { OAuth2ModelSyncPlugin, type PluginOptions } from "./plugin.js";
|
|
6
|
+
export { resolveCacheDir, FileCacheStore } from "./cache.js";
|
|
7
|
+
export { createOpencodeOauth2Plugin } from "./opencode.js";
|
|
8
|
+
export type { OpenCodePluginFactoryOptions } from "./opencode.js";
|
|
9
|
+
export type { CachedServerState, ModelDiff, NormalizedModel, RawModel, ServerSnapshot, TokenSet } from "./types.js";
|
package/dist/lib.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export { DEFAULT_HTTP_TIMEOUT_MS, DEFAULT_SYNC_INTERVAL_MINUTES, validateConfig } from "./config.js";
|
|
2
|
+
export { createJsonConsoleLogger } from "./logging.js";
|
|
3
|
+
export { buildModelsUrl, fetchModels } from "./model-discovery.js";
|
|
4
|
+
export { diffModels, normalizeModelId, normalizeModelList } from "./model-normalization.js";
|
|
5
|
+
export { OAuth2ModelSyncPlugin } from "./plugin.js";
|
|
6
|
+
export { resolveCacheDir, FileCacheStore } from "./cache.js";
|
|
7
|
+
export { createOpencodeOauth2Plugin } from "./opencode.js";
|
|
8
|
+
//# sourceMappingURL=lib.js.map
|
package/dist/lib.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lib.js","sourceRoot":"","sources":["../src/lib.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,6BAA6B,EAK7B,cAAc,EACf,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,uBAAuB,EAA8B,MAAM,cAAc,CAAC;AAEnF,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnE,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAE5F,OAAO,EAAE,qBAAqB,EAAsB,MAAM,aAAa,CAAC;AAExE,OAAO,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE7D,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vymalo/opencode-oauth2",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "OpenCode plugin for OAuth2/OIDC-secured, OpenAI-compatible model providers with periodic model sync.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "vymalo contributors",
|
|
@@ -25,6 +25,17 @@
|
|
|
25
25
|
"type": "module",
|
|
26
26
|
"main": "dist/index.js",
|
|
27
27
|
"types": "dist/index.d.ts",
|
|
28
|
+
"exports": {
|
|
29
|
+
".": {
|
|
30
|
+
"types": "./dist/index.d.ts",
|
|
31
|
+
"import": "./dist/index.js"
|
|
32
|
+
},
|
|
33
|
+
"./lib": {
|
|
34
|
+
"types": "./dist/lib.d.ts",
|
|
35
|
+
"import": "./dist/lib.js"
|
|
36
|
+
},
|
|
37
|
+
"./package.json": "./package.json"
|
|
38
|
+
},
|
|
28
39
|
"sideEffects": false,
|
|
29
40
|
"files": [
|
|
30
41
|
"dist"
|