The commands a remote sandbox runs: those that work off its cache and reach the serving repository only through its grant. Anything else would act on a repository the sandbox does not have.
(name: &str)
| 450 | /// reach the serving repository only through its grant. Anything else |
| 451 | /// would act on a repository the sandbox does not have. |
| 452 | pub fn command_allowed(name: &str) -> bool { |
| 453 | matches!( |
| 454 | name, |
| 455 | "agent" |
| 456 | | "status" |
| 457 | | "add" |
| 458 | | "remove" |
| 459 | | "move" |
| 460 | | "restore" |
| 461 | | "record" |
| 462 | | "log" |
| 463 | | "change" |
| 464 | | "diff" |
| 465 | | "conflicts" |
| 466 | | "sandbox" |
| 467 | | "intent" |
| 468 | | "memory" |
| 469 | | "vault" |
| 470 | | "query" |
| 471 | | "triage" |
| 472 | | "session" |
| 473 | | "provenance" |
| 474 | | "identity" |
| 475 | | "completions" |
| 476 | ) |
| 477 | } |