Skip to content

Commit

Permalink
Fixup diagram * -> /
Browse files Browse the repository at this point in the history
  • Loading branch information
expede committed Jul 2, 2024
1 parent 800b1d7 commit d24805b
Showing 1 changed file with 11 additions and 26 deletions.
37 changes: 11 additions & 26 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -426,44 +426,29 @@ The wildcard ability grants access to all other capabilities for the specified r
%%{ init: { 'flowchart': { 'curve': 'linear' } } }%%
flowchart BT
*
/
msg/* --> *
/msg --> /
subgraph msgGraph [ ]
msg/send --> msg/*
msg/receive --> msg/*
/msg/send --> /msg
/msg/receive --> /msg
end
crud/* --> *
/crud --> /
subgraph crudGraph [ ]
crud/read --> crud/*
crud/mutate --> crud/*
/crud/read --> /crud
/crud/mutate --> /crud
subgraph mutationGraph [ ]
crud/create --> crud/mutate
crud/update --> crud/mutate
crud/destroy --> crud/mutate
/crud/mutate/create --> /crud/mutate
/crud/mutate/update --> /crud/mutate
/crud/mutate/destroy --> /crud/mutate
end
end
... --> *
... --> /
```

Conceptually it has this shape:

``` ts
{
"cmd": "*",
"args": {
"cmd": string, // Some other command
"args": {[string]: any} // That commad's arguments
},
// ...
}
```

Since the nesting is fully redundant and infinitely nestable, it is instead used only in proof chains, and SHOULD NOT be invoked directly.

### Reserved Commands

#### `/ucan` Namespace
Expand Down

0 comments on commit d24805b

Please sign in to comment.