Skip to content

Feature/openrouter integration#16

Merged
dewitt4 merged 2 commits into
mainfrom
feature/openrouter-integration
Apr 6, 2026
Merged

Feature/openrouter integration#16
dewitt4 merged 2 commits into
mainfrom
feature/openrouter-integration

Conversation

@dewitt4
Copy link
Copy Markdown
Contributor

@dewitt4 dewitt4 commented Apr 6, 2026

This pull request introduces a new plugin package, openrouter-gateway, to the monorepo. It includes all necessary configuration, manifest, and dependency management files to support development, testing, and integration with the Agentbase ecosystem. Additionally, the pnpm-lock.yaml is updated to register the new package and adjust dependency resolutions for related dev tools.

New Plugin Package Addition:

  • Added the openrouter-gateway plugin under packages/plugins/official/, including configuration for plugin metadata, endpoints, settings, and permissions in manifest.json.
  • Created package.json with build, test, and lint scripts, and specified dependencies and devDependencies for TypeScript and Jest integration.

TypeScript and Testing Configuration:

  • Added TypeScript configuration files: tsconfig.json for main sources, tsconfig.test.json for tests, and __tests__/tsconfig.json for test-specific settings. These ensure proper compilation and type checking for both source and test code. [1] [2] [3]

Monorepo Dependency and Lockfile Updates:

  • Updated pnpm-lock.yaml to include the new openrouter-gateway package, its dependencies, and to adjust Jest and TypeScript dependency graphs for all affected packages. This ensures consistent development and testing environments across the monorepo. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15]

dewitt4 added 2 commits April 6, 2026 14:56
Introduce a new @agentbase/plugin-openrouter-gateway plugin that routes AI model calls through OpenRouter. Implements model fetching with 1h cache, callWithFallback (automatic fallbacks on 429/5xx), per-user per-day cost tracking (cents), header helpers, and conversation/app hooks. Registers endpoints (GET /models, GET /usage, PUT /config, GET /config, POST /test) and includes manifest, package/tsconfig files, and comprehensive Jest tests for helpers, endpoints, hooks, and constants.
Add "ignoreDeprecations": "6.0" to the OpenRouter plugin tsconfig to suppress TypeScript 6.0 deprecation diagnostics during type checking. This reduces noise from deprecation warnings while keeping existing compiler options intact.
@dewitt4 dewitt4 self-assigned this Apr 6, 2026
@dewitt4 dewitt4 added the enhancement New feature or request label Apr 6, 2026
@dewitt4 dewitt4 merged commit f82ef8a into main Apr 6, 2026
4 checks passed
@dewitt4 dewitt4 deleted the feature/openrouter-integration branch April 6, 2026 22:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant