chore: regenerate cordis/client service catalogs for openRouterUsage
Some checks failed
CI / python 3.10 / keyless SDK (push) Has been skipped
CI / python runtime / release-shaped Linux x64 (push) Has been skipped
CI / node 22.19 (push) Has been skipped
CI / node 26 (push) Has been skipped
CI / windows node 24 / wine blocking (push) Has been skipped
CI / wine apt cache (push) Successful in 1m11s
CI / serial / linux (push) Has been skipped
Deploy documentation / build (push) Failing after 1m34s
Deploy documentation / deploy (push) Has been skipped
Landlock Run / Matrix (push) Successful in 7s
Release (vendor) / Pack npm tarballs (push) Failing after 2m16s
Release (dsh) / Pack npm tarballs (push) Failing after 4m59s
Sandbox / sandbox e2e (landlock, ubuntu-24.04) (push) Successful in 2m52s
Sandbox / sandbox e2e (bwrap, ubuntu-latest) (push) Failing after 1m19s
Release (vendor) / Publish to npm (push) Has been skipped
Release (dsh) / Publish to npm (push) Has been skipped
CI / node 24 / static (push) Has been cancelled
CI / node 24 / coverage (push) Has been cancelled
CI / windows node 24 / native complete (push) Has been cancelled
CI / serial / linux (self-hosted standby) (push) Has been cancelled
CI / node 24 / snapshots and artifacts (push) Has been cancelled
Landlock Run / darwin (no platform package — degradation proof) (push) Has been cancelled
CI / serial / macos (push) Has been cancelled
CI / serial / windows (self-hosted standby) (push) Has been cancelled
CI / larger-runner-benchmark (16, linux, dsh-ubuntu-24-04-16core, typecheck) (push) Has been cancelled
CI / larger-runner-benchmark (16, windows, dsh-windows-2025-16core, production-site) (push) Has been cancelled
CI / larger-runner-benchmark (32, linux, dsh-ubuntu-24-04-32core, typecheck) (push) Has been cancelled
CI / larger-runner-benchmark (32, windows, dsh-windows-2025-32core, production-site) (push) Has been cancelled
CI / larger-runner-benchmark (4, linux, dsh-ubuntu-24-04-4core, typecheck) (push) Has been cancelled
CI / consolidated-runner-benchmark (4, windows, dsh-windows-2025-4core, 2) (push) Has been cancelled
CI / consolidated-runner-benchmark (64, linux, dsh-ubuntu-24-04-64core, 32) (push) Has been cancelled
CI / consolidated-runner-benchmark (64, windows, dsh-windows-2025-64core, 2) (push) Has been cancelled
CI / consolidated-runner-benchmark (8, linux, dsh-ubuntu-24-04-8core, 8) (push) Has been cancelled
CI / consolidated-runner-benchmark (8, windows, dsh-windows-2025-8core, 2) (push) Has been cancelled
CI / consolidated-runner-benchmark (96, linux, dsh-ubuntu-24-04-96core, 32) (push) Has been cancelled
CI / consolidated-runner-benchmark (96, windows, dsh-windows-2025-96core, 2) (push) Has been cancelled
Sandbox / sandbox e2e (landlock, ubuntu-24.04-arm) (push) Has been cancelled
CI / larger-runner-benchmark (4, windows, dsh-windows-2025-4core, production-site) (push) Has been cancelled
CI / larger-runner-benchmark (64, linux, dsh-ubuntu-24-04-64core, typecheck) (push) Has been cancelled
CI / larger-runner-benchmark (64, windows, dsh-windows-2025-64core, production-site) (push) Has been cancelled
CI / larger-runner-benchmark (8, linux, dsh-ubuntu-24-04-8core, typecheck) (push) Has been cancelled
CI / larger-runner-benchmark (8, windows, dsh-windows-2025-8core, production-site) (push) Has been cancelled
CI / larger-runner-benchmark (96, linux, dsh-ubuntu-24-04-96core, typecheck) (push) Has been cancelled
CI / larger-runner-benchmark (96, windows, dsh-windows-2025-96core, production-site) (push) Has been cancelled
CI / consolidated-runner-benchmark (16, linux, dsh-ubuntu-24-04-16core, 16) (push) Has been cancelled
CI / consolidated-runner-benchmark (16, windows, dsh-windows-2025-16core, 2) (push) Has been cancelled
CI / consolidated-runner-benchmark (32, linux, dsh-ubuntu-24-04-32core, 32) (push) Has been cancelled
CI / consolidated-runner-benchmark (32, windows, dsh-windows-2025-32core, 2) (push) Has been cancelled
CI / consolidated-runner-benchmark (4, linux, dsh-ubuntu-24-04-4core, 4) (push) Has been cancelled
CI / all checks passed (push) Has been cancelled
Sandbox / sandbox e2e (seatbelt, macos-latest) (push) Has been cancelled
Landlock Run / ${{ matrix.platform }} (push) Has been cancelled
E2E (real DeepSeek API) / e2e (push) Failing after 1m24s
Some checks failed
CI / python 3.10 / keyless SDK (push) Has been skipped
CI / python runtime / release-shaped Linux x64 (push) Has been skipped
CI / node 22.19 (push) Has been skipped
CI / node 26 (push) Has been skipped
CI / windows node 24 / wine blocking (push) Has been skipped
CI / wine apt cache (push) Successful in 1m11s
CI / serial / linux (push) Has been skipped
Deploy documentation / build (push) Failing after 1m34s
Deploy documentation / deploy (push) Has been skipped
Landlock Run / Matrix (push) Successful in 7s
Release (vendor) / Pack npm tarballs (push) Failing after 2m16s
Release (dsh) / Pack npm tarballs (push) Failing after 4m59s
Sandbox / sandbox e2e (landlock, ubuntu-24.04) (push) Successful in 2m52s
Sandbox / sandbox e2e (bwrap, ubuntu-latest) (push) Failing after 1m19s
Release (vendor) / Publish to npm (push) Has been skipped
Release (dsh) / Publish to npm (push) Has been skipped
CI / node 24 / static (push) Has been cancelled
CI / node 24 / coverage (push) Has been cancelled
CI / windows node 24 / native complete (push) Has been cancelled
CI / serial / linux (self-hosted standby) (push) Has been cancelled
CI / node 24 / snapshots and artifacts (push) Has been cancelled
Landlock Run / darwin (no platform package — degradation proof) (push) Has been cancelled
CI / serial / macos (push) Has been cancelled
CI / serial / windows (self-hosted standby) (push) Has been cancelled
CI / larger-runner-benchmark (16, linux, dsh-ubuntu-24-04-16core, typecheck) (push) Has been cancelled
CI / larger-runner-benchmark (16, windows, dsh-windows-2025-16core, production-site) (push) Has been cancelled
CI / larger-runner-benchmark (32, linux, dsh-ubuntu-24-04-32core, typecheck) (push) Has been cancelled
CI / larger-runner-benchmark (32, windows, dsh-windows-2025-32core, production-site) (push) Has been cancelled
CI / larger-runner-benchmark (4, linux, dsh-ubuntu-24-04-4core, typecheck) (push) Has been cancelled
CI / consolidated-runner-benchmark (4, windows, dsh-windows-2025-4core, 2) (push) Has been cancelled
CI / consolidated-runner-benchmark (64, linux, dsh-ubuntu-24-04-64core, 32) (push) Has been cancelled
CI / consolidated-runner-benchmark (64, windows, dsh-windows-2025-64core, 2) (push) Has been cancelled
CI / consolidated-runner-benchmark (8, linux, dsh-ubuntu-24-04-8core, 8) (push) Has been cancelled
CI / consolidated-runner-benchmark (8, windows, dsh-windows-2025-8core, 2) (push) Has been cancelled
CI / consolidated-runner-benchmark (96, linux, dsh-ubuntu-24-04-96core, 32) (push) Has been cancelled
CI / consolidated-runner-benchmark (96, windows, dsh-windows-2025-96core, 2) (push) Has been cancelled
Sandbox / sandbox e2e (landlock, ubuntu-24.04-arm) (push) Has been cancelled
CI / larger-runner-benchmark (4, windows, dsh-windows-2025-4core, production-site) (push) Has been cancelled
CI / larger-runner-benchmark (64, linux, dsh-ubuntu-24-04-64core, typecheck) (push) Has been cancelled
CI / larger-runner-benchmark (64, windows, dsh-windows-2025-64core, production-site) (push) Has been cancelled
CI / larger-runner-benchmark (8, linux, dsh-ubuntu-24-04-8core, typecheck) (push) Has been cancelled
CI / larger-runner-benchmark (8, windows, dsh-windows-2025-8core, production-site) (push) Has been cancelled
CI / larger-runner-benchmark (96, linux, dsh-ubuntu-24-04-96core, typecheck) (push) Has been cancelled
CI / larger-runner-benchmark (96, windows, dsh-windows-2025-96core, production-site) (push) Has been cancelled
CI / consolidated-runner-benchmark (16, linux, dsh-ubuntu-24-04-16core, 16) (push) Has been cancelled
CI / consolidated-runner-benchmark (16, windows, dsh-windows-2025-16core, 2) (push) Has been cancelled
CI / consolidated-runner-benchmark (32, linux, dsh-ubuntu-24-04-32core, 32) (push) Has been cancelled
CI / consolidated-runner-benchmark (32, windows, dsh-windows-2025-32core, 2) (push) Has been cancelled
CI / consolidated-runner-benchmark (4, linux, dsh-ubuntu-24-04-4core, 4) (push) Has been cancelled
CI / all checks passed (push) Has been cancelled
Sandbox / sandbox e2e (seatbelt, macos-latest) (push) Has been cancelled
Landlock Run / ${{ matrix.platform }} (push) Has been cancelled
E2E (real DeepSeek API) / e2e (push) Failing after 1m24s
The prior openrouter feature commit added the ctx.openRouterUsage Remote service without a SERVICE_PAGE partition entry or regenerated artifacts, so the committed api-catalog, slot-catalog, and llm-streaming subsystems docs were stale and the catalog byte-for-byte gate failed. Map the service to its documentation page, regenerate all three artifacts, and re-record the bilingual sidecar.
This commit is contained in:
@@ -2,5 +2,5 @@
|
||||
# side as of the last confirmed-consistent state. Both languages carry equal authority;
|
||||
# after editing either side, bring the other along and re-record with:
|
||||
# pnpm run verify-translation-pairing --write docs/subsystems/llm-streaming.md
|
||||
llm-streaming.md: 7c0e0865f8dcc0e7722bb2205d0129d9e0ca3086
|
||||
llm-streaming.zh.md: 5c31909ee79137c6c5eef101235b43a2419b1339
|
||||
llm-streaming.md: 6adaf86016a6bcab757c86d47c10518f41539fe7
|
||||
llm-streaming.zh.md: 20349f426b4976904941b4069dfe51e988a8b142
|
||||
|
||||
@@ -866,6 +866,22 @@ stream(options: GenerateOptions): AsyncIterable<StreamChunk>
|
||||
|
||||
Source: [`packages/llm/llm/src/index.ts:284`](../../packages/llm/llm/src/index.ts)
|
||||
|
||||
<a id="ctxopenrouterusage--openrouterusagegateway"></a>
|
||||
|
||||
### `ctx.openRouterUsage` — `OpenRouterUsageGateway`
|
||||
|
||||
OpenRouter usage + balance gateway (`ctx.openRouterUsage`).
|
||||
|
||||
```ts cordis-catalog
|
||||
/**
|
||||
* The latest known account snapshot.
|
||||
* @returns a fresh copy of the cached balance.
|
||||
*/
|
||||
@Remote('snapshot') snapshot(): OpenRouterBalance
|
||||
```
|
||||
|
||||
Source: [`packages/llm/openrouter-usage/src/index.ts:91`](../../packages/llm/openrouter-usage/src/index.ts)
|
||||
|
||||
<a id="llm-events"></a>
|
||||
|
||||
### `llm/*` events
|
||||
|
||||
@@ -872,6 +872,22 @@ stream(options: GenerateOptions): AsyncIterable<StreamChunk>
|
||||
|
||||
Source: [`packages/llm/llm/src/index.ts:284`](../../packages/llm/llm/src/index.ts)
|
||||
|
||||
<a id="ctxopenrouterusage--openrouterusagegateway"></a>
|
||||
|
||||
### `ctx.openRouterUsage` — `OpenRouterUsageGateway`
|
||||
|
||||
OpenRouter usage + balance gateway (`ctx.openRouterUsage`).
|
||||
|
||||
```ts cordis-catalog
|
||||
/**
|
||||
* The latest known account snapshot.
|
||||
* @returns a fresh copy of the cached balance.
|
||||
*/
|
||||
@Remote('snapshot') snapshot(): OpenRouterBalance
|
||||
```
|
||||
|
||||
Source: [`packages/llm/openrouter-usage/src/index.ts:91`](../../packages/llm/openrouter-usage/src/index.ts)
|
||||
|
||||
<a id="llm-events"></a>
|
||||
|
||||
### `llm/*` events
|
||||
|
||||
@@ -421,6 +421,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
|
||||
declaredBy: 'an entry in \'conversation\' (client-ui-conversation), so it exists while that entry is mounted',
|
||||
occupants: [
|
||||
'client-ui-conversation StatsLine id \'stats\'',
|
||||
'client-ui-openrouter-usage CostDock id \'openrouter-cost\'',
|
||||
],
|
||||
replaceRisk: 'none',
|
||||
example: 'return {\n inject: [\'slots\'],\n apply(ctx) {\n ctx.slots.inject(\'conversation.composer.dock\', () => ctx.slots.register(\n { name: \'conversation.composer.dock\', id: \'my-entry\', order: 100, label: \'My entry\' },\n () => React.createElement(\'div\', null, \'hello\'),\n ))\n },\n}',
|
||||
@@ -1527,6 +1528,7 @@ export const CLIENT_SLOT_API: readonly ClientSlotEntry[] = [
|
||||
slotInject: '',
|
||||
declaredBy: 'an entry in \'sidebar\' (client-ui-sidebar), so it exists while that entry is mounted',
|
||||
occupants: [
|
||||
'client-ui-openrouter-usage BalanceBadge id \'openrouter-balance\'',
|
||||
'client-ui-cordis CordisPanel id \'cordis-panel\'',
|
||||
],
|
||||
replaceRisk: 'none',
|
||||
|
||||
@@ -912,6 +912,19 @@ export const SERVICE_API: readonly ServiceApiEntry[] = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'openRouterUsage',
|
||||
summary: 'OpenRouter usage + balance gateway (`ctx.openRouterUsage`).',
|
||||
description: 'OpenRouter usage + balance gateway (`ctx.openRouterUsage`).',
|
||||
methods: [
|
||||
{
|
||||
signature: '@Remote(\'snapshot\') snapshot(): OpenRouterBalance',
|
||||
description: 'The latest known account snapshot.',
|
||||
parameters: [],
|
||||
returns: 'a fresh copy of the cached balance.',
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
key: 'permissionPresets',
|
||||
summary: 'Owns the deployment\'s permission presets and their write path.',
|
||||
@@ -3479,6 +3492,10 @@ export const TYPE_API: readonly TypeApiEntry[] = [
|
||||
name: 'OneShotSubagentDescriptorData',
|
||||
declaration: 'export interface OneShotSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: \'one-shot\';\n readonly label?: string;\n}',
|
||||
},
|
||||
{
|
||||
name: 'OpenRouterBalance',
|
||||
declaration: 'export interface OpenRouterBalance {\n balanceUsd: number | null;\n label: string | null;\n usageTokens: number | null;\n limitTokens: number | null;\n isFreeTier: boolean | null;\n updatedAt: number | null;\n currency: \'USD\';\n}',
|
||||
},
|
||||
{
|
||||
name: 'PermissionSelect',
|
||||
declaration: 'export interface PermissionSelect {\n options: PresetOption[];\n currentValue: string;\n}',
|
||||
|
||||
@@ -102,6 +102,7 @@ export const SERVICE_PAGE: Record<string, string> = {
|
||||
tools: 'tools.md',
|
||||
typert: 'typert.md',
|
||||
typertGateway: 'typert.md',
|
||||
openRouterUsage: 'llm-streaming.md',
|
||||
userQuestions: 'user-questions.md',
|
||||
web: 'web.md',
|
||||
workflowEngine: 'workflow.md',
|
||||
|
||||
Reference in New Issue
Block a user