@wengine-ai/ccr-provider-codex 1.0.0 → 1.0.2

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/plugin.js CHANGED
@@ -2309,14 +2309,18 @@ var codexLocales = {
2309
2309
  // src/plugin.ts
2310
2310
  var manifest = {
2311
2311
  name: "codex",
2312
- version: "1.0.0",
2312
+ version: "1.0.2",
2313
2313
  coreApi: "1",
2314
2314
  description: "Codex subscription managed provider: chatgpt.com backend-api/codex data plane, browser OAuth login (PKCE, loopback 1455/1457 + paste), model sync, usage and admin routes."
2315
2315
  };
2316
2316
  async function activate(ctx) {
2317
+ const upstreamHost = {
2318
+ ...ctx.host,
2319
+ getDirectDispatcher: () => ctx.host.getSubscriptionDispatcher ? ctx.host.getSubscriptionDispatcher() : ctx.host.getDirectDispatcher()
2320
+ };
2317
2321
  const service = new CodexAuthService({
2318
2322
  configDir: ctx.host.configDir,
2319
- host: ctx.host,
2323
+ host: upstreamHost,
2320
2324
  logger: ctx.log
2321
2325
  });
2322
2326
  class ActivatedCodexTransformer extends CodexTransformer {
@@ -2324,7 +2328,7 @@ async function activate(ctx) {
2324
2328
  super({ service });
2325
2329
  }
2326
2330
  }
2327
- const runtime = createCodexManagedRuntime({ service, host: ctx.host, log: ctx.log });
2331
+ const runtime = createCodexManagedRuntime({ service, host: upstreamHost, log: ctx.log });
2328
2332
  ctx.registerTransformer(ActivatedCodexTransformer);
2329
2333
  ctx.registerManagedRuntime(runtime);
2330
2334
  ctx.registerAdminRoutes((app) => registerCodexAdminRoutes(app, { getService: () => service }));
package/dist/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codex",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "coreApi": "1",
5
5
  "description": "Codex subscription managed provider: chatgpt.com backend-api/codex data plane, browser OAuth login (PKCE, loopback 1455/1457 + paste), model sync, usage and admin routes."
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wengine-ai/ccr-provider-codex",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Codex subscription provider plugin for claude-code-router: browser OAuth login, fixed-origin responses data plane, transformer, managed runtime, admin routes, config protector and UI card.",
5
5
  "type": "module",
6
6
  "main": "dist/plugin.js",