GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(desktop-commander): type the promote helper for the vitest import · developing-today/code@bcf673f

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • pkgs/desktop-commander/worker
    • promote.d.mts
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎pkgs/desktop-commander/worker/promote.d.mts‎

Copy file name to clipboard
+25Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Type surface for promote.mjs (a plain Node script; vitest tests import
2+
// its pure helper). deploymentStatus classifies the live deployment
3+
// against a provenance manifest: "already-promoted" when the manifest
4+
// version is already the sole 100% deployment, "at-baseline" when the
5+
// active version matches the manifest baseline, "drifted" otherwise.
6+
export type DeploymentStatus = "already-promoted" | "at-baseline" | "drifted";
7+
8+
export interface ManifestVersionEntry {
9+
version_id?: string;
10+
percentage?: number;
11+
}
12+
13+
export interface ManifestDeployment {
14+
versions?: ManifestVersionEntry[];
15+
}
16+
17+
export interface PromotionManifest {
18+
versionId: string;
19+
baselineVersionId: string;
20+
}
21+
22+
export function deploymentStatus(
23+
current: ManifestDeployment | undefined,
24+
manifest: PromotionManifest,
25+
): DeploymentStatus;

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.