Closed jurij-jukic closed 6 months ago
messaging
capability: if you don't have it and the process is not public you cannot message them. Feel free to make this sentence clearer
- It is a
messaging
capability: if you don't have it and the process is not public you cannot message them. Feel free to make this sentence clearer does this mean:
- if the process doesnt have a messaging capability granted by the script and that process is not public, it cannot message the script?
- also, why would a process need to be public to message the script?
- change
camelCase
paramters tosnake_case
(we neglected to update this when code changes and so should do it now while we're here)
PackageId
stays camelCase
, correct?
PackageId
stayscamelCase
, correct?
Yes -- rust types are like FooBar
, but all our json fields should be like hello_world
.
- It is a
messaging
capability: if you don't have it and the process is not public you cannot message them. Feel free to make this sentence clearer does this mean:
- if the process doesnt have a messaging capability granted by the script and that process is not public, it cannot message the script?
- also, why would a process need to be public to message the script?
Sorry, when I say a process, P, "has a cap" I mean "a process/module has granted P a cap. So what I meant here was: when you set foo:bar:baz.os
in your scripts grant_capabilities
field, you are giving foo:bar:baz.os
the messaging
capability for your script so that it can message your script back, e.g., to Respond with whatever result.
So in general, a process must either grant messaging
for you to message them OR they can register as public in which case anyone can message them.
added a link to terminal syntax at the top of the page, please check
I feel like the list of commands should be on a separate reference page. All docs in section 2 were conceptual, so it feel weird to have this here. Though, I'm not really sure where to put it.
'For your scripts to be usable by the terminal, you must include a
pkg/scripts.json
file.''
grantCapabilities
(Array): An array ofProcessId
s as strings which represent which processes will be able to message this script back'issuer
andparams
)