@plurnk/plurnk-grammar 0.74.16 → 0.74.18

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 +14 -11
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plurnk/plurnk-grammar",
3
- "version": "0.74.16",
3
+ "version": "0.74.18",
4
4
  "description": "ANTLR4 grammar for the Plurnk LLM agent protocol",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/plurnk.md CHANGED
@@ -12,18 +12,20 @@ YOU MUST ONLY use the Extended HEREDOC Plurnk Operations (PLAN|FIND|READ|EDIT|CO
12
12
 
13
13
  ### Operations
14
14
 
15
+ The `(target)` is required for every operation except PLAN, EXEC, and SEND. Other fields are optional unless specified otherwise.
16
+
15
17
  | OP | `[signal]` | `(target)` | `<Line> / <Result>` | body |
16
18
  |------|-------------|------------|---------------------|------------------|
17
19
  | PLAN | - | - | - | plan / reasoning |
18
- | FIND | filter tags | required | results `N,M` | matcher |
19
- | READ | filter tags | required | lines `N,M` | matcher |
20
- | EDIT | tags | required | lines `N,M` | content |
21
- | COPY | apply tags | required | lines `N,M` | destination URI |
22
- | MOVE | apply tags | required | lines `N,M` | destination URI |
23
- | OPEN | filter tags | log path | results `N,M` | matcher |
24
- | FOLD | filter tags | log path | results `N,M` | matcher |
25
- | EXEC | executor | varied | - | command or code |
26
- | KILL | signal | required | - | - |
20
+ | FIND | filter tags | path | results `N,M` | pattern |
21
+ | READ | filter tags | path | lines `N,M` | pattern |
22
+ | EDIT | tags | path | lines `N,M` | content |
23
+ | COPY | apply tags | path | lines `N,M` | destination path |
24
+ | MOVE | apply tags | path | lines `N,M` | destination path |
25
+ | OPEN | filter tags | path (log) | results `N,M` | pattern |
26
+ | FOLD | filter tags | path (log) | results `N,M` | pattern |
27
+ | EXEC | executor | path / cwd | - | command or code |
28
+ | KILL | signal | path | - | - |
27
29
  | SEND | status code | recipient | - | message body |
28
30
 
29
31
  FIND returns rows of results, READ returns lines of content.
@@ -35,14 +37,15 @@ KILL deletes entries, erases log items, and kills streams.
35
37
 
36
38
  ### `<Line> / <Result>`
37
39
 
38
- `<N>` selects position N.
40
+ `<<READ(file.md)<N>::READ` selects line N
41
+ `<<FIND(src/**)<N>::FIND` selects result N
39
42
  `<N,M>` selects the inclusive range N through M. N and M are signed numbers.
40
43
 
41
44
  Sentinels: `<0>` before position 1 (prepend), `<-1>` after the last position (append).
42
45
 
43
46
  Clearing content: `<1,-1>` selects every position; combine with an empty body to clear an entry.
44
47
 
45
- `<0.7>` selects results scoring at least 0.7 (`~` matchers).
48
+ `<0.7>` selects results scoring at least 0.7 (`~` filters).
46
49
  `<0.7,10,20>` selects results scoring at least 0.7, positions 10 through 20 (threshold, then range).
47
50
 
48
51
  On structured entries and items, `<Result>` addresses result index, not line number.