@plurnk/plurnk-grammar 0.12.2 → 0.14.0

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 +4 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plurnk/plurnk-grammar",
3
- "version": "0.12.2",
3
+ "version": "0.14.0",
4
4
  "description": "ANTLR4 grammar for the Plurnk LLM agent protocol",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/plurnk.md CHANGED
@@ -37,6 +37,8 @@ Sentinels: `<0>` before position 1 (prepend), `<-1>` after the last position (ap
37
37
 
38
38
  Clearing content: `<1,-1>` selects every position; combine with an empty body to clear an entry.
39
39
 
40
+ On structured entries, `<L>` addresses item index, not line number.
41
+
40
42
  ## Body matcher dispatch (FIND, READ, SHOW, HIDE)
41
43
 
42
44
  | leading prefix | dialect | form |
@@ -54,6 +56,7 @@ URI-shaped: `[scheme://]rest`.
54
56
 
55
57
  * Bare paths (no scheme) default to local relative project file paths (leader `/` for absolute path).
56
58
  * Glob metacharacters (`*`, `**`, `?`, `[...]`) are allowed in path segments.
59
+ * Path suffix (`.json`, `.md`, `.txt`, etc.) declares mimetype; absent suffix defers to scheme default.
57
60
 
58
61
  Internal schemes:
59
62
 
@@ -110,6 +113,7 @@ Body content is character-perfect, exactly matching whitespace.
110
113
  <<EDIT(known://plan)<2>:- [x] Discover capital of France:EDIT
111
114
  <<EDIT(known://countries/france/capital)<-1>:[Wikipedia: Paris](https://en.wikipedia.org/wiki/Paris):EDIT
112
115
  <<EDIT(known://countries/france/capital)<1,-1>::EDIT
116
+ <<EDIT(known://users.json)<-1>:{"name":"Eve"}:EDIT
113
117
  <<COPY[archive,2026-05-14](known://draft):known://archive/2026-05-14/draft:COPY
114
118
  <<MOVE(known://draft/answer):known://final/answer:MOVE
115
119
  <<MOVE(known://obsolete/note):/dev/null:MOVE