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
2 changes: 2 additions & 0 deletions pkgs/id/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,8 +157,10 @@ it is — a valid world capability, minted by the host's admin with
| `migrate-tags` | `migrate` | Add name/file auto-tags to existing files |
| `id` | | Print local node public ID |
| `key` | | Export or import a passphrase-wrapped identity key |
| `keyset` | | Show or change the identity's admin and device keys |
| `peers` | | Discover and list known peers |
| `world` | | Mint invites for, and join, multiplayer worlds |
| `gallery` | | Administer a program gallery directory |
| `match-audit` | | Export and verify signed match-audit v0 logs |
| `group` | | Groups: create, policy, add, remove, roles, join |
| `delegate` | | Grant a delegate a scope in a group |
Expand Down
2 changes: 2 additions & 0 deletions pkgs/id/crates/id-cli/src/cli/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,11 @@
//! list List all stored files
//! id Print node ID
//! key Export or import a local identity key
//! keyset Show or change this identity's keyset (admin key and devices)
//! peers Discover and list known peers
//! tag Manage metadata tags (set, del, list, search) (aliases: label, link)
//! world Mint invites for, and join, multiplayer worlds hosted over Iroh
//! gallery Administer a program gallery directory (removals, appeals, review)
//! match-audit Export and verify signed match-audit v0 logs
//! group Groups: create, policy, add, remove, set roles, list, join
//! delegate Grant a delegate a scope in a group
Expand Down
17 changes: 17 additions & 0 deletions pkgs/id/crates/id-cli/src/cli/world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1097,6 +1097,23 @@ pub enum WorldCommand {
#[arg(long)]
json: bool,
},
/// Print a durable world's owner report (#6308): joins, on-disk
/// storage, and which facts are unavailable and why. Local only: it
/// reads the world directory, contacts no host, never wakes a world
/// and writes nothing, so live-only facts (connected members,
/// program runs) are reported unavailable. Only the user who owns the
/// world directory, or root, may read it.
Owner {
/// Directory of the world to report on (the one holding
/// `journal.jsonl`).
dir: PathBuf,
/// The window the report covers, ending now, such as 12h or 7d.
#[arg(long, default_value = "7d", value_parser = crate::helpers::parse_duration_secs)]
since: u64,
/// Print one JSON object (schema version 1) instead of text.
#[arg(long)]
json: bool,
},
/// Inspect or copy a durable world's journal file (F11.12 journal
/// format management). Local only; no host is contacted.
Journal(WorldJournalArgs),
Expand Down
2 changes: 2 additions & 0 deletions pkgs/id/crates/id-cli/src/commands/world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ use crate::{
};

mod journal;
mod owner;
#[cfg(test)]
use journal::check_journal_bytes;
use journal::{journal_backup, print_journal_check, print_world_provenance, world_provenance};
Expand Down Expand Up @@ -991,6 +992,7 @@ pub async fn cmd_world(command: WorldCommand) -> Result<()> {
json,
} => fork_world_on_disk(&source, &dir, name.as_deref(), template, json),
WorldCommand::Provenance { dir, json } => print_world_provenance(&dir, json),
WorldCommand::Owner { dir, since, json } => owner::print_world_owner(&dir, since, json),
WorldCommand::Journal(args) => match args.action {
JournalCommand::Check { dir, json } => print_journal_check(&dir, json),
JournalCommand::Backup { dir, out } => journal_backup(&dir, &out),
Expand Down
Loading