- Control Plane API with Gemini integration - Executors: Deploy, Analytics, Marketing - MCP Adapter for Continue integration - VSCode/VSCodium extension - Tool registry and run tracking - In-memory storage for local dev - Terraform infrastructure setup
12 lines
492 B
TypeScript
12 lines
492 B
TypeScript
import { Storage } from "@google-cloud/storage";
|
|
import { config } from "../config.js";
|
|
|
|
const storage = new Storage({ projectId: config.projectId });
|
|
|
|
export async function writeArtifactText(prefix: string, filename: string, content: string) {
|
|
const bucket = storage.bucket(config.artifactsBucket);
|
|
const file = bucket.file(`${prefix}/${filename}`);
|
|
await file.save(content, { contentType: "text/plain" });
|
|
return { bucket: config.artifactsBucket, path: `${prefix}/${filename}` };
|
|
}
|