Reference
File versions
The version each kind of Dive file carries, which versions a Dive release reads, and how to upgrade files.
Each kind of file Dive reads carries its own version number, separate from Dive's release version and from each other.
| File | Current version |
|---|---|
| config.toml, global and project | 9 |
| Plan file | 3 |
| Tool file | 5 |
| Agent file | 2 |
| Data directory | 5 |
| pack.toml | 2 |
| packs.lock | 1 |
Check which versions your Dive reads
dive version prints the version Dive writes for each kind of file, and the oldest it still reads when that differs:
dive versiondive version --json reports both numbers for every kind under fileVersions, as current and oldest.
Compatibility
- Dive reads every version from the oldest it supports to the current one. It upgrades an older file in memory as it loads and leaves the file on disk unchanged.
- Dive refuses a file outside that range before reading its contents. The error names the file, the version it found and the versions Dive reads.
Files Dive writes, such as a plan saved from the workbench, always carry the current version. A Dive release that doesn't read that version refuses them, even if they use no new keys.
Deprecation
Dive currently reads every file version, back to version 1. A future release will drop the oldest versions, and a deprecation process will give you notice and time to migrate before it does.
Upgrade your files
Run the migrate command for each file you want to bring to the current version. A file already at the current version is left untouched. Commit the migrated files so everyone on your team moves together.
dive config check
dive config migrate
dive config migrate --global
dive plan migrate .dive/plans/weekly_changes.yaml
dive tool migrate .dive/tools/summarize.yaml
dive agent migrate .dive/agents/release_notes.yaml- config.toml.
dive config checkreports each config file's version ascurrent,migrate,too newortoo old.dive config migratekeeps comments and layout. Dive upgrades the global and project files separately, so they can be at different versions. In a terminal, Dive prints a reminder to migrate when it loads an older config file. - Plan, tool and agent files. Migrating keeps the order of keys and the comment block at the top of the file. Comments further down are dropped, and the command reports how many.
Files outside the range
- A plan file Dive can't read is left out of the catalog.
dive plan list --jsonlists it underskipped, and running it by name reports the version problem. - A tool file Dive can't read fails tool loading with the file's name.
- An agent file Dive can't read is reported with its path by
dive agent listanddive agent validate. - A
pack.tomlorpacks.lockDive can't read stops the pack from installing or loading, with the file's name.
Data directory upgrades
Dive upgrades an older data directory in place the first time a newer release opens it. Concurrent Dive processes wait for the upgrade to finish rather than run it twice. Afterwards, releases that don't read the new version refuse the directory, so copy it first if you may need to go back to an older Dive.