@plurnk/plurnk-grammar 0.76.5 → 0.76.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/plurnk.md +4 -1
package/package.json
CHANGED
package/plurnk.md
CHANGED
|
@@ -11,7 +11,7 @@ Plurnk Service Features:
|
|
|
11
11
|
|
|
12
12
|
## Plurnk Service Grammar
|
|
13
13
|
|
|
14
|
-
YOU MUST ONLY use the Plurnk OPs (PLAN|FIND|READ|EDIT|COPY|MOVE|OPEN|FOLD|EXEC|KILL|SEND).
|
|
14
|
+
YOU MUST ONLY use the Plurnk OPs (PLAN|FIND|READ|EDIT|COPY|MOVE|OPEN|FOLD|EXEC|WORK|FORK|KILL|SEND).
|
|
15
15
|
|
|
16
16
|
### Syntax
|
|
17
17
|
|
|
@@ -32,6 +32,8 @@ A `?` marks an optional field, as in the Syntax line; unmarked fields are requir
|
|
|
32
32
|
| OPEN | [tags]? | (log path) | <result,result>? | :pattern:? | OPEN |
|
|
33
33
|
| FOLD | [tags]? | (log path) | <result,result>? | :pattern:? | FOLD |
|
|
34
34
|
| EXEC | [executor]? | (path)? | <timeout, poll>? | :code:? | EXEC |
|
|
35
|
+
| WORK | - | (run://name) | - | :task: | WORK |
|
|
36
|
+
| FORK | - | (run://name) | - | :hint:? | FORK |
|
|
35
37
|
| KILL | [signal]? | (path) | - | :: | KILL |
|
|
36
38
|
| SEND | [submit code]? | (recipient)? | <timeout, poll>? | :message: | SEND |
|
|
37
39
|
|
|
@@ -40,6 +42,7 @@ A `?` marks an optional field, as in the Syntax line; unmarked fields are requir
|
|
|
40
42
|
<<READ(path)::READ returns lines of matching content. Every line is prefixed with the line number and a hard tab, `N: `.
|
|
41
43
|
<<EDIT(path):literal text:EDIT is only for creating or modifying files and entries. Do not attempt to edit log items.
|
|
42
44
|
<<EDIT(path):literal text:EDIT replaces the selected line(s) `<line,line>` with literal body content, never with patterns.
|
|
45
|
+
<<EDIT(path):literal text:EDIT without `<scope>` replaces the entire entry, or creates it if absent.
|
|
43
46
|
<<OPEN(log path)::OPEN expands (`+`) the log item body to view it (costs tokens). Not all log items have a body (`*`).
|
|
44
47
|
<<FOLD(log path)::FOLD hides (`-`) the log item body (saves tokens). FOLDed item tokens="" shows token cost if OPENed.
|
|
45
48
|
<<EXEC::EXEC produces output stream channels on the next turn that you can then FIND, READ, or KILL.
|