feat: remove legacy OpenCode runtime
Cut product flows over to Coding/Pi and retain only the migration-owned v1 boundary. Promote supported native optional packages because electron-builder omitted pnpm transitive optional closure from the packaged ASAR.
This commit is contained in:
@@ -6,7 +6,7 @@ import {
|
||||
createWorksSubmissionBindingStore,
|
||||
readWorksSubmissionBinding,
|
||||
} from '@electron/services/works-submission-binding';
|
||||
import type { OpencodeProject } from '@electron/opencode/project-store';
|
||||
import type { CodingProject } from '@electron/coding-projects/project-store';
|
||||
import {
|
||||
WORKS_SUBMISSION_BINDING_FILE_NAME,
|
||||
WORKS_SUBMISSION_BINDING_SCHEMA_VERSION,
|
||||
@@ -14,7 +14,7 @@ import {
|
||||
|
||||
const temporaryDirectories: string[] = [];
|
||||
|
||||
async function createProject(): Promise<OpencodeProject> {
|
||||
async function createProject(): Promise<CodingProject> {
|
||||
const projectPath = await mkdtemp(join(tmpdir(), 'makelore-submission-binding-'));
|
||||
temporaryDirectories.push(projectPath);
|
||||
return {
|
||||
@@ -27,7 +27,7 @@ async function createProject(): Promise<OpencodeProject> {
|
||||
};
|
||||
}
|
||||
|
||||
function createStore(project: OpencodeProject) {
|
||||
function createStore(project: CodingProject) {
|
||||
return { listProjects: vi.fn(async () => [project]) };
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user