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

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:
2026-08-20 22:16:17 +07:00
parent 99b63abde6
commit e818e37f0a
6 changed files with 54 additions and 2 deletions

View File

@@ -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',

View File

@@ -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}',