Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ tracing-subscriber = { version = "0.3", features = ["env-filter"] }
anyhow = "1.0"
thiserror = "1.0"
clap = { version = "4.0", features = ["derive"] }
dirs = "5.0"

[workspace.package]
version = "0.1.12"
Expand Down
4 changes: 2 additions & 2 deletions gui/src/pages/ProjectSpecifications.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ const ProjectRequirements: Component = () => {
const requestBody: AgentExecutionRequest = {
user_prompt: prompt,
config: {
type: 'user-clarification',
type: 'requirements-gathering',
},
};

const response = await fetch(
'http://127.0.0.1:8080/agents/user-clarification/execute',
'http://127.0.0.1:8080/agents/requirements-gathering/execute',
{
method: 'POST',
headers: {
Expand Down
1 change: 1 addition & 0 deletions nocodo-api/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ tracing-subscriber.workspace = true
chrono.workspace = true
anyhow.workspace = true
home = "0.5"
dirs.workspace = true
rusqlite = { version = "0.37", features = ["bundled"] }
toml = "0.9"
config.workspace = true
Expand Down
8 changes: 4 additions & 4 deletions nocodo-api/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -123,16 +123,16 @@ allowed_origins = ["http://localhost:3000"]
}

fn get_config_path() -> PathBuf {
if let Some(home) = home::home_dir() {
home.join(".config/nocodo/api.toml")
if let Some(config_dir) = dirs::config_dir() {
config_dir.join("nocodo/api.toml")
} else {
PathBuf::from("api.toml")
}
}

fn get_default_db_path() -> PathBuf {
if let Some(home) = home::home_dir() {
home.join(".local/share/nocodo/api.db")
if let Some(data_dir) = dirs::data_local_dir() {
data_dir.join("nocodo/api.db")
} else {
PathBuf::from("api.db")
}
Expand Down