mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-11-09 20:07:43 +08:00
fix(desktop): type omitted rollout percentage explicitly
This commit is contained in:
@@ -40,7 +40,7 @@ export interface DesktopPublicationRecord {
|
||||
*/
|
||||
export async function createDesktopPublicationRecord(
|
||||
root: string,
|
||||
identity: { repository: string; runId: string; attempt: string; actor: string; destination: string; operation: 'publish' | 'rollback'; reason: string; stagingPercentage?: number },
|
||||
identity: { repository: string; runId: string; attempt: string; actor: string; destination: string; operation: 'publish' | 'rollback'; reason: string; stagingPercentage?: number | undefined },
|
||||
): Promise<DesktopPublicationRecord> {
|
||||
await mkdir(root, { recursive: true, mode: 0o700 })
|
||||
const staging = await mkdtemp(join(root, '.initializing-'))
|
||||
@@ -78,7 +78,7 @@ export async function wasDesktopAttemptPublished(root: string, expected: {
|
||||
runId: string
|
||||
attempt: string
|
||||
destination: string
|
||||
stagingPercentage?: number
|
||||
stagingPercentage?: number | undefined
|
||||
}): Promise<boolean> {
|
||||
let entries
|
||||
try { entries = await readdir(root, { withFileTypes: true }) } catch (error) {
|
||||
|
||||
@@ -62,7 +62,7 @@ export interface DesktopUploadPlanOptions {
|
||||
/** Publish only the installer at its fixed download URL, replacing the previous object. */
|
||||
readonly latest?: boolean
|
||||
/** Percentage of installations eligible for this publication; absent preserves packaged metadata. */
|
||||
readonly stagingPercentage?: number
|
||||
readonly stagingPercentage?: number | undefined
|
||||
readonly environment?: NodeJS.ProcessEnv
|
||||
readonly repositoryRoot?: string
|
||||
readonly appRoot?: string
|
||||
|
||||
Reference in New Issue
Block a user