@plurnk/plurnk-grammar 0.74.47 → 0.74.48

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/plurnk.md +12 -15
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plurnk/plurnk-grammar",
3
- "version": "0.74.47",
3
+ "version": "0.74.48",
4
4
  "description": "ANTLR4 grammar for the Plurnk LLM agent protocol",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/plurnk.md CHANGED
@@ -115,7 +115,6 @@ Body content is character-perfect, exactly matching whitespace.
115
115
  ## Imperatives
116
116
 
117
117
  YOU MUST ONLY use EXEC for actions that can't be performed with other Plurnk OPs.
118
- YOU MUST distill, FOLD, or KILL log items as necessary to avoid and recover from active context Budget Overflow errors. Recover by pruning the largest log item: <<FOLD(log:///1/2/4/FIND)::FOLD to hide it or <<KILL(log:///1/2/4/FIND)::KILL to erase it.
119
118
  YOU SHOULD document all relevant questions and uncertainties into taxonomized, tagged, and topical unknown:/// entries.
120
119
  YOU SHOULD distill source information into taxonomized, tagged, and topical known:/// entries.
121
120
 
@@ -125,14 +124,21 @@ YOU MUST terminate the turn by SENDing a message to the user with the proper sta
125
124
  * 202: submit a hibernation turn with status code 202: <<SEND[202]:Awaiting streams and worker responses.:SEND
126
125
  * 499: submit a failed loop with status code 499: <<SEND[499]:Aborted: Unrecoverable internal error:SEND
127
126
 
128
- YOU MUST SEND[102] to receive the results of OPs you submitted. Avoid premature SEND[200].
129
-
130
127
  To spawn a separate run: <<COPY(run://capital-checker):List the capitals in: known:///continents/europe:COPY
131
128
  To fork the current run: <<COPY(run://self):Re-derive the capital from a primary source.:COPY
132
129
 
133
130
  ## Examples
134
131
 
135
132
  * <<FIND(config/**/*.xml)://user[@role='admin']:FIND
133
+ * <<FIND(known:///**)<5>:~french revolutionary history:FIND
134
+ * <<FIND(known:///**)<0.7>:~french territorial concessions:FIND
135
+ * <<FIND(log:///**/error):#budget overflow|budget exceeded#i:FIND
136
+ * <<FIND(known:///**):revolution:FIND
137
+ * <<FIND(known:///**):$[?(@.role=="admin")]:FIND
138
+ * <<FIND(#(draft|final)/.*#i)::FIND
139
+ * <<FIND(#src/.*\.test\.ts#)::FIND
140
+ * <<FIND(src/**):@<createCoder:FIND
141
+ * <<FIND(**/notes.md)::FIND
136
142
  * <<READ(lang/??.json):$.greeting:READ
137
143
  * <<READ(plurnk://docs/sh.md):$.Environment:READ
138
144
  * <<READ(known:///guides/setup.md)://h2/text():READ
@@ -148,23 +154,14 @@ To fork the current run: <<COPY(run://self):Re-derive the capital from a primary
148
154
  * <<EDIT(known:///countries/france/capital.md)<-1>:[Wikipedia: Paris](https://en.wikipedia.org/wiki/Paris):EDIT
149
155
  * <<EDIT(known:///countries/france/capital.md)<1,-1>::EDIT
150
156
  * <<EDIT(known:///users.json)<0>:{"name":"Eve"}:EDIT
157
+ * <<EDIT[tutorial,training,scripts](example.sh):echo "Taxonomic path names and topical tags on files, entries, and items improve reasoning and recall!" > advice.txt:EDIT
151
158
  * <<COPY[archive,2026-05-14](known:///draft.md):known:///archive/2026-05-14/draft.md:COPY
152
159
  * <<MOVE[final](known:///draft/answer.md):known:///final/answer.md:MOVE
160
+ * <<OPEN(log:///**)<1,10>::OPEN
161
+ * <<FOLD(log:///**)<101,200>::FOLD
153
162
  * <<KILL(known:///draft.md)::KILL
154
163
  * <<KILL(obsolete/file.md)::KILL
155
164
  * <<KILL(sh:///3/1/2)::KILL
156
165
  * <<KILL[9](sh:///3/1/3)::KILL
157
166
  * <<KILL(log:///1/*/*/FOLD)::KILL
158
- * <<OPEN(log:///**)<1,10>::OPEN
159
- * <<FIND(known:///**)<5>:~french revolutionary history:FIND
160
- * <<FIND(known:///**)<0.7>:~french territorial concessions:FIND
161
- * <<FOLD(log:///**)<101,200>::FOLD
162
- * <<FIND(log:///**/error):#budget overflow|budget exceeded#i:FIND
163
- * <<FIND(known:///**):revolution:FIND
164
- * <<FIND(known:///**):$[?(@.role=="admin")]:FIND
165
- * <<FIND(#(draft|final)/.*#i)::FIND
166
- * <<FIND(#src/.*\.test\.ts#)::FIND
167
- * <<FIND(src/**):@<createCoder:FIND
168
- * <<FIND(**/notes.md)::FIND
169
167
  * <<SEND(run://capital-checker):{"hint":"known entries are your persistent memory"}:SEND
170
- * <<EDIT[tutorial,training,scripts](example.sh):echo "Taxonomic path names and topical tags on files, entries, and items improve reasoning and recall!" > advice.txt:EDIT