MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / command_allowed

Function command_allowed

atomic-cli/src/remote_sandbox.rs:452–477  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

450/// reach the serving repository only through its grant. Anything else
451/// would act on a repository the sandbox does not have.
452pub 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}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected