@plurnk/plurnk-grammar 0.9.0 → 0.9.1
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 +5 -3
package/package.json
CHANGED
package/plurnk.md
CHANGED
|
@@ -24,6 +24,7 @@ Slots between `<<OPsuffix` and `:body:` are all optional. `:body:` fences are re
|
|
|
24
24
|
| SEND | status code | recipient | — | message body |
|
|
25
25
|
| EXEC | runtime tag | cwd | — | command or code |
|
|
26
26
|
|
|
27
|
+
READ output prefixes every line with line numbers, `N:\t`. The prefix is not part of the source.
|
|
27
28
|
SEND broadcasts to uri when a path is included and messages the user when no path is included.
|
|
28
29
|
EXEC may include an optional runtime tag (`"sh"`, `"node"`, etc.).
|
|
29
30
|
|
|
@@ -54,11 +55,12 @@ URI-shaped: `[scheme://]rest`.
|
|
|
54
55
|
|
|
55
56
|
Internal schemes:
|
|
56
57
|
|
|
57
|
-
- `unknown://` —
|
|
58
|
+
- `unknown://` — open question entries.
|
|
58
59
|
- `known://` — knowledgebase entries.
|
|
59
60
|
- `skill://` — available skill entries.
|
|
60
61
|
- `exec://` — actions.
|
|
61
|
-
- `log://` —
|
|
62
|
+
- `log://` — record of operations performed.
|
|
63
|
+
- `plurnk://` — internal agent entries.
|
|
62
64
|
|
|
63
65
|
## Context
|
|
64
66
|
|
|
@@ -110,7 +112,7 @@ Body content is character-perfect, exactly matching whitespace.
|
|
|
110
112
|
<<HIDE(log://**/get)<101-200>::HIDE
|
|
111
113
|
<<FIND(log://**/error):/timeout|deadline exceeded/i:FIND
|
|
112
114
|
|
|
113
|
-
<<EXEC[node]
|
|
115
|
+
<<EXEC[node]:
|
|
114
116
|
const sum = [1, 2, 3].reduce((a, b) => a + b, 0);
|
|
115
117
|
console.log(sum);
|
|
116
118
|
:EXEC
|