@plurnk/plurnk-grammar 0.74.9 → 0.74.11
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/dist/plurnk.gbnf +18 -11
- package/package.json +1 -1
- package/plurnk.md +11 -3
package/dist/plurnk.gbnf
CHANGED
|
@@ -240,7 +240,8 @@ rz-chan-b9 ::= ("<" rz-chan-b1 | [^\x00-\x08\x0B-\x0C\x0E-\x1F\x7F<>] rz-chan-b0
|
|
|
240
240
|
think-block ::= "<think>" rz-think-b0 "</think>"
|
|
241
241
|
channel-block ::= "<|channel>" rz-chan-b0 "<channel|>"
|
|
242
242
|
reasoning ::= think-block | channel-block
|
|
243
|
-
root-turn ::= reasoning? preplan plan sep
|
|
243
|
+
root-turn ::= reasoning? preplan plan sep turn-body sep
|
|
244
|
+
turn-body ::= send-final-any | batch-step batch-step* send-final-no200
|
|
244
245
|
op-statement-6 ::= tags? target line? ":" copy-1-b0 ":COPY1"
|
|
245
246
|
op-statement-7 ::= tags? target line? ":" copy-2-b0 ":COPY2"
|
|
246
247
|
op-statement-5 ::= tags? target line? ":" copy-b0 ":COPY" | "1" op-statement-6 | "2" op-statement-7
|
|
@@ -287,17 +288,13 @@ op-statement-45 ::= tags? target line? ":" open-b0 ":OPEN" | "1" op-statement-46
|
|
|
287
288
|
op-statement-44 ::= "N" op-statement-45
|
|
288
289
|
op-statement-43 ::= "E" op-statement-44
|
|
289
290
|
op-statement-42 ::= "P" op-statement-43
|
|
290
|
-
op-statement-
|
|
291
|
-
op-statement-
|
|
291
|
+
op-statement-52 ::= tags? target line? ":" read-1-b0 ":READ1"
|
|
292
|
+
op-statement-53 ::= tags? target line? ":" read-2-b0 ":READ2"
|
|
293
|
+
op-statement-51 ::= tags? target line? ":" read-b0 ":READ" | "1" op-statement-52 | "2" op-statement-53
|
|
294
|
+
op-statement-50 ::= "D" op-statement-51
|
|
292
295
|
op-statement-49 ::= "A" op-statement-50
|
|
293
|
-
op-statement-48 ::= "
|
|
294
|
-
op-statement-
|
|
295
|
-
op-statement-57 ::= tags? target line? ":" read-2-b0 ":READ2"
|
|
296
|
-
op-statement-55 ::= tags? target line? ":" read-b0 ":READ" | "1" op-statement-56 | "2" op-statement-57
|
|
297
|
-
op-statement-54 ::= "D" op-statement-55
|
|
298
|
-
op-statement-53 ::= "A" op-statement-54
|
|
299
|
-
op-statement-52 ::= "E" op-statement-53
|
|
300
|
-
op-statement-1 ::= "C" op-statement-2 | "E" op-statement-8 | "F" op-statement-19 | "K" op-statement-30 | "M" op-statement-36 | "O" op-statement-42 | "P" op-statement-48 | "R" op-statement-52
|
|
296
|
+
op-statement-48 ::= "E" op-statement-49
|
|
297
|
+
op-statement-1 ::= "C" op-statement-2 | "E" op-statement-8 | "F" op-statement-19 | "K" op-statement-30 | "M" op-statement-36 | "O" op-statement-42 | "R" op-statement-48
|
|
301
298
|
op-statement-0 ::= "<" op-statement-1
|
|
302
299
|
op-statement ::= "<" op-statement-0
|
|
303
300
|
send-mid-any-6 ::= "[" status-mid "]" target ":" send-1-b0 ":SEND1" | target ":" send-1-b0 ":SEND1" | "[" status-mid "]" ":" send-1-b0 ":SEND1" | ":" send-1-b0 ":SEND1"
|
|
@@ -318,7 +315,17 @@ send-final-any-2 ::= "E" send-final-any-3
|
|
|
318
315
|
send-final-any-1 ::= "S" send-final-any-2
|
|
319
316
|
send-final-any-0 ::= "<" send-final-any-1
|
|
320
317
|
send-final-any ::= "<" send-final-any-0
|
|
318
|
+
send-final-no200-6 ::= "[" status-final-no200 "]" target? ":" send-1-b0ne ":SEND1"
|
|
319
|
+
send-final-no200-7 ::= "[" status-final-no200 "]" target? ":" send-2-b0ne ":SEND2"
|
|
320
|
+
send-final-no200-5 ::= "[" status-final-no200 "]" target? ":" send-b0ne ":SEND" | "1" send-final-no200-6 | "2" send-final-no200-7
|
|
321
|
+
send-final-no200-4 ::= "D" send-final-no200-5
|
|
322
|
+
send-final-no200-3 ::= "N" send-final-no200-4
|
|
323
|
+
send-final-no200-2 ::= "E" send-final-no200-3
|
|
324
|
+
send-final-no200-1 ::= "S" send-final-no200-2
|
|
325
|
+
send-final-no200-0 ::= "<" send-final-no200-1
|
|
326
|
+
send-final-no200 ::= "<" send-final-no200-0
|
|
321
327
|
status-final ::= "102" | "200" | "202" | "300" | "499"
|
|
328
|
+
status-final-no200 ::= "102" | "202" | "300" | "499"
|
|
322
329
|
status-mid ::= "10" [0-13-9] | "1" [1-9] [0-9] | "20" [13-9] | "2" [1-9] [0-9] | "30" [1-9] | "3" [1-9] [0-9] | "4" [0-8] [0-9] | "49" [0-8] | [05-9] [0-9] [0-9]
|
|
323
330
|
tags ::= "[" tag tag-rest* "]"
|
|
324
331
|
tag ::= [A-Za-z0-9_.-]+
|
package/package.json
CHANGED
package/plurnk.md
CHANGED
|
@@ -89,11 +89,19 @@ Body content is character-perfect, exactly matching whitespace.
|
|
|
89
89
|
## Imperatives
|
|
90
90
|
|
|
91
91
|
YOU MUST begin the turn with <<PLAN:plan goes here:PLAN
|
|
92
|
+
YOU MUST NOT emit free text between operations.
|
|
92
93
|
YOU MUST ONLY use EXEC commands for actions that can't be performed with Extended HEREDOC Plurnk Operations.
|
|
94
|
+
YOU MUST prune irrelevant log items with FOLD or KILL to maximize signal/token and avoid an active context token budget overflow.
|
|
93
95
|
YOU SHOULD document all relevant questions and uncertainties into taxonomized, tagged, and topical unknown:/// entries.
|
|
94
|
-
YOU SHOULD
|
|
95
|
-
|
|
96
|
-
YOU MUST terminate the turn by SENDing a message to the user with the proper status code
|
|
96
|
+
YOU SHOULD distill source information into taxonomized, tagged, and topical known:/// entries, preferring source content over recall.
|
|
97
|
+
|
|
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`
|
|
99
|
+
* 102: submit a continuing turn with status code 102: <<SEND[102]:Forking a research run, submitting operations, and optimizing log relevance.:SEND
|
|
100
|
+
* 200: submit a final turn with status code 200: <<SEND[200]:Operations returned. Tasks successfully performed.:SEND
|
|
101
|
+
* 202: submit a waiting/idle loop with status code 202: <<SEND[202]:Parked until the capital-checker reports.:SEND
|
|
102
|
+
* 499: submit a failed loop with status code 499: <<SEND[499]:Aborted: Unrecoverable internal error:SEND
|
|
103
|
+
|
|
104
|
+
YOU MUST NOT perform a final turn termination (200) containing discovery operations. Continue (102) to receive the responses.
|
|
97
105
|
|
|
98
106
|
## Examples
|
|
99
107
|
|