feat: complete WorkBuddy parity and Windows release workflow

This commit is contained in:
xiaohan.yuan committed 2026-10-18 12:45:21 +08:00
1 parent 143516b3a8
commit d5512df549
434 files changed
+54977 -1854

No files matched your search

@@ -528,7 +528,7 @@ manifest.adaptations.push('Three conversation-shell rules are recovered alongsid
// --------------------------------------------------------------------------- types
const types=`/** Typed host contract for the recovered WorkBuddy 5.8.2 model selector. */
import type {ComponentType, ReactNode} from 'react'
export type ModelEffort='low'|'medium'|'high'|'xhigh'|'max'
export type ModelEffort='minimal'|'low'|'medium'|'high'|'xhigh'|'max'
export type ModelBusyLevel='idle'|'normal'|'busy'|'congested'|'unavailable'|'unknown'
export interface ModelBadgeSpec{label:string;color?:string;background?:string;icon?:string}
export interface ModelTierBadgeSpec{label:string;level?:'flagship'|'member';color?:string;background?:string}
@@ -644,7 +644,8 @@ manifest.hostBindings=[
{kind:'npm',name:'dompurify',names:['default']},
{kind:'npm',name:'react',names:['* as React','* as JSX (react/jsx-runtime)']},
]
const outputs=[[FOLDER+'source.mjs',moduleSource],[FOLDER+'source.d.mts',types],[FOLDER+'source.css',css]]
const hostSource=moduleSource.replace('var xW={low:', '// Host extension: models.dev exposes a minimal effort supported by the local kernel.\nvar xW={minimal:`极低`,low:')
const outputs=[[FOLDER+'source.mjs',hostSource],[FOLDER+'source.d.mts',types],[FOLDER+'source.css',css]]
manifest.outputs=outputs.map(([file,text])=>({file,sha256:sha(text),bytes:Buffer.byteLength(text)}))
outputs.push([FOLDER+'manifest.json',JSON.stringify(manifest,null,2)+'\n'])
const check=process.argv.includes('--check')