move api folder to core (#5539)

* move api folder to core

* fix incorrect import path mock in test setup

* fix import in zai.ts

* fix additional import errors
This commit is contained in:
celestial-vault authored and GitHub committed 2025-08-19 12:54:11 +03:00
1 parent f676f2be78
commit 803574e7f3
86 files changed
+248 -222

No files matched your search

+1 -1
View File
@@ -1,9 +1,9 @@
import { Anthropic } from "@anthropic-ai/sdk"
import { writeFile } from "@utils/fs"
import os from "os"
import * as path from "path"
import { HostProvider } from "@/hosts/host-provider"
import { ShowMessageType } from "@/shared/proto/host/window"
import { writeFile } from "@utils/fs"
import { openFile } from "./open-file"
export async function downloadTask(dateTs: number, conversationHistory: Anthropic.MessageParam[]) {
+4 -4
View File
@@ -1,10 +1,10 @@
import * as path from "path"
import * as os from "os"
import * as vscode from "vscode"
import { writeFile } from "@utils/fs"
import { arePathsEqual } from "@utils/path"
import * as os from "os"
import * as path from "path"
import * as vscode from "vscode"
import { HostProvider } from "@/hosts/host-provider"
import { ShowMessageRequest, ShowMessageType } from "@/shared/proto/host/window"
import { writeFile } from "@utils/fs"
export async function openImage(dataUri: string) {
const matches = dataUri.match(/^data:image\/([a-zA-Z]+);base64,(.+)$/)
+1 -1
View File
@@ -1,6 +1,6 @@
import fs from "fs/promises"
import * as path from "path"
import sizeOf from "image-size"
import * as path from "path"
import { HostProvider } from "@/hosts/host-provider"
import { ShowMessageType } from "@/shared/proto/host/window"