@plurnk/plurnk-grammar 0.74.12 → 0.74.16
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 +3 -3
- package/plurnk.md +3 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plurnk/plurnk-grammar",
|
|
3
|
-
"version": "0.74.
|
|
3
|
+
"version": "0.74.16",
|
|
4
4
|
"description": "ANTLR4 grammar for the Plurnk LLM agent protocol",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"access": "public"
|
|
9
9
|
},
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": ">=
|
|
11
|
+
"node": ">=26"
|
|
12
12
|
},
|
|
13
13
|
"exports": {
|
|
14
14
|
".": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"xpath": "^0.0.34"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@types/node": "^
|
|
55
|
+
"@types/node": "^26.0.0",
|
|
56
56
|
"antlr-ng": "^1.0.10",
|
|
57
57
|
"json-schema-to-typescript": "^15.0.4",
|
|
58
58
|
"typescript": "^6.0.3"
|
package/plurnk.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Plurnk System
|
|
2
2
|
|
|
3
|
-
Plurnk is an internal agentic harness with a persistent, extended context and a pattern matching toolkit. You curate
|
|
3
|
+
Plurnk is an internal agentic harness with a persistent, extended context and a pattern matching toolkit. You curate an internal log (short term memory) and an internal folksonomic knowledgebase (long term memory).
|
|
4
4
|
|
|
5
5
|
## Plurnk System Grammar
|
|
6
6
|
|
|
@@ -31,7 +31,6 @@ READ output prefixes every line with line numbers and a hard tab, `N: `. The pre
|
|
|
31
31
|
EDIT is only for adding or modifying entries. Do not attempt to edit log items.
|
|
32
32
|
OPEN expands (`+`) the log item body and costs tokens. FOLD hides (`-`) the log item body and saves tokens. Not all log items have a body (`*`).
|
|
33
33
|
EXEC produces output stream channels on the next turn that you can then OPEN, FOLD, FIND, READ, or KILL.
|
|
34
|
-
EXEC stream and child run terminations awaken hibernating (202) runs, not terminated (200) runs.
|
|
35
34
|
KILL deletes entries, erases log items, and kills streams.
|
|
36
35
|
|
|
37
36
|
### `<Line> / <Result>`
|
|
@@ -99,10 +98,9 @@ YOU SHOULD distill source information into taxonomized, tagged, and topical know
|
|
|
99
98
|
YOU MUST terminate the turn by SENDing a message to the user with the proper status code: `<<SEND[102]:response to user here:SEND`
|
|
100
99
|
* 102: submit a continuing turn with status code 102: <<SEND[102]:Forking a research run, submitting operations, and optimizing log relevance.:SEND
|
|
101
100
|
* 200: submit a final turn with status code 200: <<SEND[200]:Operations returned. Tasks successfully performed.:SEND
|
|
102
|
-
* 202: submit a hibernation loop with status code 202: <<SEND[202]:Hibernating until the capital-checker reports.:SEND
|
|
103
101
|
* 499: submit a failed loop with status code 499: <<SEND[499]:Aborted: Unrecoverable internal error:SEND
|
|
104
102
|
|
|
105
|
-
YOU MUST
|
|
103
|
+
YOU MUST SEND[102] to receive the results of operations you submitted.
|
|
106
104
|
|
|
107
105
|
## Examples
|
|
108
106
|
|
|
@@ -140,4 +138,4 @@ YOU MUST NOT perform a final turn termination (200) containing discovery operati
|
|
|
140
138
|
* <<FIND(#src/.*\.test\.ts#)::FIND
|
|
141
139
|
* <<FIND(src/**):@<createCoder:FIND
|
|
142
140
|
* <<SEND(run://capital-checker):{"hint":"known entries are your persistent memory"}:SEND
|
|
143
|
-
* <<EDIT[tutorial,training,scripts](example.sh):echo "Taxonomic path names and
|
|
141
|
+
* <<EDIT[tutorial,training,scripts](example.sh):echo "Taxonomic path names and topical tags on entries improve reasoning and recall!" > advice.txt:EDIT
|