mirror of
https://github.com/rowboatlabs/rowboat.git
synced 2026-04-25 16:36:22 +02:00
fix: base dir in copilot
This commit is contained in:
parent
e914aa2832
commit
432ec0ee90
1 changed files with 3 additions and 2 deletions
|
|
@ -5,12 +5,13 @@ import { stdin as input, stdout as output } from "process";
|
|||
import { z } from "zod";
|
||||
import * as fs from "fs/promises";
|
||||
import * as path from "path";
|
||||
import * as os from "os";
|
||||
|
||||
const model = openai("gpt-4.1");
|
||||
const rl = readline.createInterface({ input, output });
|
||||
|
||||
// Base directory for file operations
|
||||
const BASE_DIR = "/Users/tusharmagar/.rowboat";
|
||||
// Base directory for file operations - dynamically use user's home directory
|
||||
const BASE_DIR = path.join(os.homedir(), ".rowboat");
|
||||
|
||||
// Ensure base directory exists
|
||||
async function ensureBaseDir() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue