Files
hermes-agent/apps/desktop/update-feed.d.cts
ethernet 3cc0abced2 fix(ci): restore isolated JS type contracts
Expose the updater feed helper in its declaration contract. Declare the
JS test workspace's type and native fixture dependencies so the minimal
Termux install can typecheck and run its check suite without hoisted deps.
2026-09-21 20:49:09 -04:00

28 lines
981 B
TypeScript

interface DarwinFeed {
/** Feed directory key under the public bucket, no trailing slash.
* e.g. "releases/darwin/stable" | "releases/darwin/light/canary" */
directory: string
/** Validated slug; existence is resolved through R2. */
channel: string
/** electron-updater manifest filename. e.g. "stable-mac.yml" */
fileName: string
/** Legacy nonstable feeds admit prereleases. */
allowPrerelease: boolean
}
/**
* Feed layout contract shared by the desktop runtime and the release
* pipeline. `light` selects the Light-variant feed directory.
* The generic-provider feed URL is PUBLIC_URL + '/' + directory + '/' + fileName.
*/
declare function darwinFeed(channel: string, light?: boolean): DarwinFeed
/** Validate and canonicalize the public updater feed base URL. */
declare function feedBaseUrl(raw: string | undefined): string | undefined
declare const contract: {
darwinFeed: typeof darwinFeed
feedBaseUrl: typeof feedBaseUrl
}
export = contract