release/1.8.0 (#4577)

Co-authored-by: Jack Amadeo <jackamadeo@block.xyz>
Co-authored-by: Zane <75694352+zanesq@users.noreply.github.com>
Co-authored-by: Zane Staggs <zane@squareup.com>
Co-authored-by: Lifei Zhou <lifei@squareup.com>
This commit is contained in:
Alex Hancock
2025-09-11 13:59:55 -04:00
committed by GitHub
parent a535a17bab
commit d63781a552
6 changed files with 21 additions and 17 deletions
Generated
+6 -6
View File
@@ -2636,7 +2636,7 @@ dependencies = [
[[package]] [[package]]
name = "goose" name = "goose"
version = "1.7.0" version = "1.8.0"
dependencies = [ dependencies = [
"ahash", "ahash",
"anyhow", "anyhow",
@@ -2710,7 +2710,7 @@ dependencies = [
[[package]] [[package]]
name = "goose-bench" name = "goose-bench"
version = "1.7.0" version = "1.8.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"async-trait", "async-trait",
@@ -2733,7 +2733,7 @@ dependencies = [
[[package]] [[package]]
name = "goose-cli" name = "goose-cli"
version = "1.7.0" version = "1.8.0"
dependencies = [ dependencies = [
"agent-client-protocol", "agent-client-protocol",
"anstream", "anstream",
@@ -2787,7 +2787,7 @@ dependencies = [
[[package]] [[package]]
name = "goose-mcp" name = "goose-mcp"
version = "1.7.0" version = "1.8.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"async-trait", "async-trait",
@@ -2838,7 +2838,7 @@ dependencies = [
[[package]] [[package]]
name = "goose-server" name = "goose-server"
version = "1.7.0" version = "1.8.0"
dependencies = [ dependencies = [
"anyhow", "anyhow",
"async-trait", "async-trait",
@@ -2877,7 +2877,7 @@ dependencies = [
[[package]] [[package]]
name = "goose-test" name = "goose-test"
version = "1.7.0" version = "1.8.0"
dependencies = [ dependencies = [
"clap", "clap",
"serde_json", "serde_json",
+1 -1
View File
@@ -4,7 +4,7 @@ resolver = "2"
[workspace.package] [workspace.package]
edition = "2021" edition = "2021"
version = "1.7.0" version = "1.8.0"
authors = ["Block <ai-oss-tools@block.xyz>"] authors = ["Block <ai-oss-tools@block.xyz>"]
license = "Apache-2.0" license = "Apache-2.0"
repository = "https://github.com/block/goose" repository = "https://github.com/block/goose"
+10 -6
View File
@@ -31,7 +31,7 @@ fn short_id_from_path(path: &str) -> String {
format!("{:016x}", h) format!("{:016x}", h)
} }
fn load_recipes_from_path(path: &PathBuf) -> Result<Vec<RecipeManifestWithPath>> { fn load_recipes_from_path(path: &PathBuf, is_global: bool) -> Result<Vec<RecipeManifestWithPath>> {
let mut recipe_manifests_with_path = Vec::new(); let mut recipe_manifests_with_path = Vec::new();
if path.exists() { if path.exists() {
for entry in fs::read_dir(path)? { for entry in fs::read_dir(path)? {
@@ -43,14 +43,18 @@ fn load_recipes_from_path(path: &PathBuf) -> Result<Vec<RecipeManifestWithPath>>
let Ok(recipe) = Recipe::from_content(&recipe_file.content) else { let Ok(recipe) = Recipe::from_content(&recipe_file.content) else {
continue; continue;
}; };
let Ok(recipe_metadata) = RecipeManifestMetadata::from_yaml_file(&path) else {
continue;
};
let Ok(last_modified) = fs::metadata(path.clone()).map(|m| { let Ok(last_modified) = fs::metadata(path.clone()).map(|m| {
chrono::DateTime::<chrono::Utc>::from(m.modified().unwrap()).to_rfc3339() chrono::DateTime::<chrono::Utc>::from(m.modified().unwrap()).to_rfc3339()
}) else { }) else {
continue; continue;
}; };
let recipe_metadata =
RecipeManifestMetadata::from_yaml_file(&path).unwrap_or_else(|_| {
RecipeManifestMetadata {
name: recipe.title.clone(),
is_global,
}
});
let manifest_with_path = RecipeManifestWithPath { let manifest_with_path = RecipeManifestWithPath {
id: short_id_from_path(recipe_file.file_path.to_string_lossy().as_ref()), id: short_id_from_path(recipe_file.file_path.to_string_lossy().as_ref()),
@@ -78,8 +82,8 @@ pub fn get_all_recipes_manifests() -> Result<Vec<RecipeManifestWithPath>> {
let mut recipe_manifests_with_path = Vec::new(); let mut recipe_manifests_with_path = Vec::new();
recipe_manifests_with_path.extend(load_recipes_from_path(&local_recipe_path)?); recipe_manifests_with_path.extend(load_recipes_from_path(&local_recipe_path, false)?);
recipe_manifests_with_path.extend(load_recipes_from_path(&global_recipe_path)?); recipe_manifests_with_path.extend(load_recipes_from_path(&global_recipe_path, true)?);
recipe_manifests_with_path.sort_by(|a, b| b.last_modified.cmp(&a.last_modified)); recipe_manifests_with_path.sort_by(|a, b| b.last_modified.cmp(&a.last_modified));
Ok(recipe_manifests_with_path) Ok(recipe_manifests_with_path)
+1 -1
View File
@@ -10,7 +10,7 @@
"license": { "license": {
"name": "Apache-2.0" "name": "Apache-2.0"
}, },
"version": "1.7.0" "version": "1.8.0"
}, },
"paths": { "paths": {
"/agent/add_sub_recipes": { "/agent/add_sub_recipes": {
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "goose-app", "name": "goose-app",
"version": "1.7.0", "version": "1.8.0",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "goose-app", "name": "goose-app",
"version": "1.7.0", "version": "1.8.0",
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"@ai-sdk/openai": "^2.0.14", "@ai-sdk/openai": "^2.0.14",
+1 -1
View File
@@ -1,7 +1,7 @@
{ {
"name": "goose-app", "name": "goose-app",
"productName": "Goose", "productName": "Goose",
"version": "1.7.0", "version": "1.8.0",
"description": "Goose App", "description": "Goose App",
"engines": { "engines": {
"node": "^22.17.1" "node": "^22.17.1"