mirror of
https://github.com/block/goose.git
synced 2026-07-09 16:09:22 +00:00
Fix canonical model output paths (#10196)
This commit is contained in:
parent
ba6fb2b56d
commit
a3854aee3d
4 changed files with 9 additions and 8 deletions
4
Justfile
4
Justfile
|
|
@ -313,8 +313,8 @@ prepare-release version:
|
|||
ui/desktop/package.json \
|
||||
ui/pnpm-lock.yaml \
|
||||
ui/desktop/openapi.json \
|
||||
crates/goose-providers/src/canonical/data/canonical_models.json \
|
||||
crates/goose-providers/src/canonical/data/provider_metadata.json
|
||||
crates/goose-provider-types/src/canonical/data/canonical_models.json \
|
||||
crates/goose-provider-types/src/canonical/data/provider_metadata.json
|
||||
@git commit --message "chore(release): release version {{ version }}"
|
||||
|
||||
set-openapi-version version:
|
||||
|
|
|
|||
|
|
@ -13,11 +13,11 @@ cargo run --bin build_canonical_models --no-check # Build only, skip checker
|
|||
|
||||
This script performs two operations by default:
|
||||
1. **Builds canonical models** - Fetches from OpenRouter API and updates the registry
|
||||
- Writes to: `crates/goose-providers/src/canonical/data/canonical_models.json`
|
||||
- Writes to: `crates/goose-provider-types/src/canonical/data/canonical_models.json`
|
||||
2. **Checks model mappings** (unless `--no-check` is passed) - Tests provider mappings and tracks changes over time
|
||||
- Reports unmapped models
|
||||
- Compares with previous runs (like a lock file)
|
||||
- Shows changed/added/removed mappings
|
||||
- Writes to: `crates/goose-providers/src/canonical/data/canonical_mapping_report.json`
|
||||
- Writes to: `crates/goose-provider-types/src/canonical/data/canonical_mapping_report.json`
|
||||
|
||||
The script is currently built from `crates/goose/src/bin/build_canonical_models.rs` and writes into this crate's `src/canonical/data` directory.
|
||||
|
|
|
|||
|
|
@ -321,7 +321,7 @@ impl MappingReport {
|
|||
|
||||
fn data_file_path(filename: &str) -> PathBuf {
|
||||
PathBuf::from(env!("CARGO_MANIFEST_DIR"))
|
||||
.join("../goose-providers/src/canonical/data")
|
||||
.join("../goose-provider-types/src/canonical/data")
|
||||
.join(filename)
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -11,8 +11,9 @@ ignore = [
|
|||
# the reachable path is through jsonwebtoken.
|
||||
"RUSTSEC-2023-0071",
|
||||
|
||||
# quick-xml: quadratic duplicate-attribute checks. Current paths are through
|
||||
# docx-rs, umya-spreadsheet, and bat/plist, and their latest releases do not
|
||||
# yet expose a quick-xml >= 0.41.0 upgrade path.
|
||||
# quick-xml: duplicate-attribute and namespace-declaration allocation issues.
|
||||
# Current paths are through docx-rs, umya-spreadsheet, and bat/plist, and their
|
||||
# latest releases do not yet expose a quick-xml >= 0.41.0 upgrade path.
|
||||
"RUSTSEC-2026-0194",
|
||||
"RUSTSEC-2026-0195",
|
||||
]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue