Build the current workspace snapshot on native CI runners

This branch snapshots the in-progress desktop workspace so GitHub-hosted Windows and Linux runners can package the same source tree that already passes local verification on macOS.

Constraint: Local Apple Silicon Docker/Wine packaging crashes before Windows artifacts are produced
Rejected: Publish from the incomplete base repo state | remote typecheck failed because current source additions were missing
Confidence: medium
Scope-risk: broad
Directive: Treat this branch as a build snapshot only; do not merge it without reviewing the unrelated workspace changes it contains
Tested: local typecheck, lint, workspace typecheck, unit tests, integration tests, e2e smoke, macOS signed release upload
Not-tested: Native Windows/Linux artifacts before this CI run
This commit is contained in:
ZacharyZhang-NY committed 2026-04-04 03:28:14 -04:00
1 parent 0e497cd892
commit b772e1c758
271 files changed
+35047 -22879

No files matched your search

+11 -11
View File
@@ -1,4 +1,4 @@
import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
import { describe, it, expect, vi, beforeEach, afterEach, type MockInstance } from "vitest";
/**
* Tests for the retry-aware failure escalation pipeline.
@@ -15,19 +15,19 @@ import { describe, it, expect, vi, beforeEach, afterEach } from "vitest";
// and verifying the calls it makes to the database and notification system.
interface MockDb {
getTaskRetryCount: ReturnType<typeof vi.fn>;
incrementTaskRetryCount: ReturnType<typeof vi.fn>;
resetTaskRetryCount: ReturnType<typeof vi.fn>;
getChainOfCommand: ReturnType<typeof vi.fn>;
getCeoForCompany: ReturnType<typeof vi.fn>;
advanceTaskStatus: ReturnType<typeof vi.fn>;
getTaskRetryCount: MockInstance & ((taskId: string) => number);
incrementTaskRetryCount: MockInstance & ((taskId: string) => void);
resetTaskRetryCount: MockInstance & ((taskId: string) => void);
getChainOfCommand: MockInstance & ((agentId: string) => { id: string; name: string }[]);
getCeoForCompany: MockInstance & ((companyId: string) => { id: string; name: string } | null);
advanceTaskStatus: MockInstance & ((taskId: string, status: string, note: string) => { previousStatus: string });
}
interface MockDeps {
db: MockDb;
wakeAgentIfPossible: ReturnType<typeof vi.fn>;
notify: ReturnType<typeof vi.fn>;
logger: { info: ReturnType<typeof vi.fn>; warn: ReturnType<typeof vi.fn>; error: ReturnType<typeof vi.fn> };
wakeAgentIfPossible: MockInstance & ((agentId: string, companyId: string, reason: string) => string);
notify: MockInstance & ((...args: unknown[]) => void);
logger: { info: MockInstance & ((...args: unknown[]) => void); warn: MockInstance & ((...args: unknown[]) => void); error: MockInstance & ((...args: unknown[]) => void) };
}
const MAX_RETRY_ATTEMPTS = 2;
@@ -146,7 +146,7 @@ function createMockDeps(): MockDeps {
warn: vi.fn(),
error: vi.fn(),
},
};
} as unknown as MockDeps;
}
const RUN = { taskId: "task-1", agentId: "agent-1", companyId: "company-1" };