@plurnk/plurnk-grammar 0.74.20 → 0.74.22
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 +1 -1
- package/plurnk.md +6 -5
package/package.json
CHANGED
package/plurnk.md
CHANGED
|
@@ -30,10 +30,11 @@ The `(target)` is required for every operation except PLAN, EXEC, and SEND. Othe
|
|
|
30
30
|
|
|
31
31
|
FIND returns rows of results, READ returns lines of content.
|
|
32
32
|
READ output prefixes every line with line numbers and a hard tab, `N: `. The prefix is not part of the source.
|
|
33
|
-
EDIT is only for adding or modifying entries. Do not attempt to edit log items.
|
|
33
|
+
EDIT is only for adding or modifying files and entries. Do not attempt to edit log items.
|
|
34
|
+
EDIT replaces the selected line(s) `<N,M>` with literal body content, never with patterns.
|
|
34
35
|
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 (`*`).
|
|
35
36
|
EXEC produces output stream channels on the next turn that you can then OPEN, FOLD, FIND, READ, or KILL.
|
|
36
|
-
KILL deletes entries, erases log items, and kills streams.
|
|
37
|
+
KILL deletes files and entries, erases log items, and kills streams.
|
|
37
38
|
SEND[202] to hibernate on runs with ongoing polled streams. SEND[200] fully ends the run.
|
|
38
39
|
|
|
39
40
|
### `<Line> / <Result>`
|
|
@@ -49,11 +50,11 @@ Clearing content: `<1,-1>` selects every position; combine with an empty body to
|
|
|
49
50
|
`<0.7>` selects results scoring at least 0.7 (`~` filters).
|
|
50
51
|
`<0.7,10,20>` selects results scoring at least 0.7, positions 10 through 20 (threshold, then range).
|
|
51
52
|
|
|
52
|
-
On structured entries and items, `<Result>` addresses result index, not line number.
|
|
53
|
+
On structured files, entries, and items, `<Result>` addresses result index, not line number.
|
|
53
54
|
|
|
54
55
|
### Pattern Filtering (FIND, READ, OPEN, FOLD)
|
|
55
56
|
|
|
56
|
-
Plurnk System enables project-wide pattern matching and filtering, including structural and semantic dialects, of all entries.
|
|
57
|
+
Plurnk System enables project-wide pattern matching and filtering, including structural and semantic dialects, of all files, entries, and items.
|
|
57
58
|
|
|
58
59
|
| leading prefix | dialect | form |
|
|
59
60
|
|----------------|----------|-----------------------------------|
|
|
@@ -143,4 +144,4 @@ YOU MUST SEND[102] to receive the results of operations you submitted.
|
|
|
143
144
|
* <<FIND(#src/.*\.test\.ts#)::FIND
|
|
144
145
|
* <<FIND(src/**):@<createCoder:FIND
|
|
145
146
|
* <<SEND(run://capital-checker):{"hint":"known entries are your persistent memory"}:SEND
|
|
146
|
-
* <<EDIT[tutorial,training,scripts](example.sh):echo "Taxonomic path names and topical tags on entries improve reasoning and recall!" > advice.txt:EDIT
|
|
147
|
+
* <<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
|