@disintegrator/raven-paseo 0.0.0 → 0.0.1

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Georges Haidar
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/OVERVIEW.md ADDED
@@ -0,0 +1,77 @@
1
+ Raven adds a Review panel for reviewing what an agent changed in a workspace: its branch against the pull
2
+ request's base (or the default branch), uncommitted work included.
3
+
4
+ When the branch does not sit directly on the default branch, the panel offers both bases, each with
5
+ its file and line counts. Examples are a pull request into another branch, or a branch built on one
6
+ that is not merged yet. Against its own base, the review shows only this branch's work; against the
7
+ default branch, it shows everything the branch would bring. Your choice is kept for the review until
8
+ the pull request moves to another base.
9
+
10
+ The change is cut into review units, one per changed declaration: a function, a type, a query, a
11
+ section of a document. You mark units as viewed. When the agent changes a unit you already viewed, it
12
+ comes back as "changed since you viewed it"; everything else stays viewed.
13
+
14
+ A file opens as its diff: the changed lines, with three lines around each and the rest folded away.
15
+ **File**, in the header of the file's pane, shows the whole file instead, with every changed line
16
+ still marked as added or removed; **Diff** folds it again, and `f` goes from one to the other. You
17
+ keep your place: the line at the top of the view stays there. The choice stays with the pane as you
18
+ walk the files, and files you open later start the same way. Opening one folded run shows the whole
19
+ of that file, for that file only.
20
+
21
+ Generated files are skipped, and each one says why: a `linguist-generated` rule, a "Code generated ...
22
+ DO NOT EDIT" header, or the lockfile list. Rules are git attributes. Add `review=show` or
23
+ `review=skip` to `.gitattributes` (shared), `.git/info/attributes` (yours, this repository) or your
24
+ global attributes file (yours, everywhere), or edit them from the panel. Shared rules are read from the
25
+ merge base, so a change cannot hide its own files.
26
+
27
+ Click any name in the code to open a pane to the right with its definition and references, split into
28
+ lines this change touched and lines it left alone. Panes lie on a canvas as trees, one for each file
29
+ you open from the outline: opening another file starts a new tree and leaves the others in place. A lookup from a
30
+ pane carries its line of inquiry on to the right; a second lookup from the same pane starts a new line
31
+ on its own lane below. A pane stays in view on every line that grew from it, so the pane on the left
32
+ is always the one you came from. Press `m` for a map of every line: click a pane there to return to
33
+ it, or its close button to close it. `h` and `l` move along a line, `J` and `K` between lines, and
34
+ `x` closes the focused pane. A close takes one pane: what was opened from it stays and moves one step
35
+ in. Hold Shift (`Shift+x`, or Shift with a close button) to close everything opened from it too. A
36
+ pane is as wide as half the view, two thirds of it or all of it: `1/2`, `2/3` and `1/1` in its
37
+ header, or `w` for the next width.
38
+
39
+ A lookup is answered twice. A text search answers at once and is labelled approximate. The file a
40
+ name is clicked in narrows the search: its imports, and what is written before the name, tell which
41
+ package or file can hold the definition. Then the language server for that file answers, and its
42
+ answer takes the first one's place, labelled precise: the right definition among same-named ones,
43
+ what the name is, and for an interface the types that implement it, split into those this change
44
+ touched and those it left alone. A name from the standard library or a dependency, such as
45
+ `bufio.NewScanner`, is shown as defined outside the repository, with a link to its documentation
46
+ and, from the language server, its source.
47
+
48
+ Language servers start when the review opens. Go (`gopls`), TypeScript and JavaScript, Rust and
49
+ Python work when their server is installed where Paseo's daemon can find it; the Lookups button in
50
+ the header says how each stands and why one could not be used. A server holds a whole project in
51
+ memory (gopls on a large Go module, about 11 GiB), so all of them together are kept within a budget
52
+ and stopped when idle. Which program serves which files is set in your own settings file,
53
+ `~/.config/raven/config.toml` (`docs/settings.md` in the repository describes it). A repository
54
+ under review cannot change it. A repository's own installed tools, such as the TypeScript in its
55
+ `node_modules`, are not run until you allow them: when a server is missing and the repository has
56
+ its own, Lookups asks, and one answer covers the repository and every worktree of it. The answer
57
+ is kept in `~/.local/state/raven`, so it outlives the plugin. A server reads the
58
+ files on disk, so it is asked only when the review is of what is checked out; removed lines are
59
+ always looked up by text search.
60
+
61
+ Line history shows the pull request that last changed each unchanged and removed line, beside the
62
+ line; the lane's edge is brighter the newer the change. Each block of removed lines says which pull
63
+ requests added it. A declaration's History button opens the commits that shaped it, newest first,
64
+ down to the one that created it; a sweeping change, such as a rename across a thousand files, is
65
+ folded. Clicking a pull request number opens its commit: the message, who wrote it, the files it
66
+ changed, and the pull request's description, which is fetched from GitHub with the `gh` command and
67
+ cached. The Line history button in the header turns the lane off.
68
+
69
+ Comments sit under their line. Send them to an agent in the workspace, with file and line context, or
70
+ copy them as Markdown.
71
+
72
+ Review state is kept in `~/.local/state/raven`, outside the repository and outside Paseo's
73
+ plugin settings. The panel runs in the desktop app and in the browser; phones show a short notice.
74
+ The plugin reads the workspace's repository with git, and reads pull requests from GitHub with `gh`,
75
+ cached in `~/.cache/raven`. It writes to the repository only to change attributes files when
76
+ you add or remove a rule. It starts the language servers named in your settings, in the workspace's
77
+ folder, and stops them when the plugin stops.
@@ -0,0 +1,182 @@
1
+ # Third-party notices
2
+
3
+ The raven binaries include the following packages. Each is used under the license below, whose
4
+ text is reproduced as the package ships it.
5
+
6
+ - @lezer/common 1.5.7 (MIT)
7
+ - @lezer/go 1.0.1 (MIT)
8
+ - @lezer/highlight 1.2.5 (MIT)
9
+ - @lezer/javascript 1.5.7 (MIT)
10
+ - @lezer/lr 1.4.13 (MIT)
11
+ - smol-toml 1.9.1 (BSD-3-Clause)
12
+
13
+ ## @lezer/common 1.5.7
14
+
15
+ License: MIT
16
+
17
+ ```text
18
+ MIT License
19
+
20
+ Copyright (C) 2018 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
21
+
22
+ Permission is hereby granted, free of charge, to any person obtaining a copy
23
+ of this software and associated documentation files (the "Software"), to deal
24
+ in the Software without restriction, including without limitation the rights
25
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
26
+ copies of the Software, and to permit persons to whom the Software is
27
+ furnished to do so, subject to the following conditions:
28
+
29
+ The above copyright notice and this permission notice shall be included in
30
+ all copies or substantial portions of the Software.
31
+
32
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
33
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
34
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
35
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
36
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
37
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
38
+ THE SOFTWARE.
39
+ ```
40
+
41
+ ## @lezer/go 1.0.1
42
+
43
+ License: MIT
44
+
45
+ ```text
46
+ MIT License
47
+
48
+ Copyright (C) 2020 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
49
+
50
+ Permission is hereby granted, free of charge, to any person obtaining a copy
51
+ of this software and associated documentation files (the "Software"), to deal
52
+ in the Software without restriction, including without limitation the rights
53
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
54
+ copies of the Software, and to permit persons to whom the Software is
55
+ furnished to do so, subject to the following conditions:
56
+
57
+ The above copyright notice and this permission notice shall be included in
58
+ all copies or substantial portions of the Software.
59
+
60
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
61
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
62
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
63
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
64
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
65
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
66
+ THE SOFTWARE.
67
+ ```
68
+
69
+ ## @lezer/highlight 1.2.5
70
+
71
+ License: MIT
72
+
73
+ ```text
74
+ MIT License
75
+
76
+ Copyright (C) 2018 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
77
+
78
+ Permission is hereby granted, free of charge, to any person obtaining a copy
79
+ of this software and associated documentation files (the "Software"), to deal
80
+ in the Software without restriction, including without limitation the rights
81
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
82
+ copies of the Software, and to permit persons to whom the Software is
83
+ furnished to do so, subject to the following conditions:
84
+
85
+ The above copyright notice and this permission notice shall be included in
86
+ all copies or substantial portions of the Software.
87
+
88
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
89
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
90
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
91
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
92
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
93
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
94
+ THE SOFTWARE.
95
+ ```
96
+
97
+ ## @lezer/javascript 1.5.7
98
+
99
+ License: MIT
100
+
101
+ ```text
102
+ MIT License
103
+
104
+ Copyright (C) 2018 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
105
+
106
+ Permission is hereby granted, free of charge, to any person obtaining a copy
107
+ of this software and associated documentation files (the "Software"), to deal
108
+ in the Software without restriction, including without limitation the rights
109
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
110
+ copies of the Software, and to permit persons to whom the Software is
111
+ furnished to do so, subject to the following conditions:
112
+
113
+ The above copyright notice and this permission notice shall be included in
114
+ all copies or substantial portions of the Software.
115
+
116
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
117
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
118
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
119
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
120
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
121
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
122
+ THE SOFTWARE.
123
+ ```
124
+
125
+ ## @lezer/lr 1.4.13
126
+
127
+ License: MIT
128
+
129
+ ```text
130
+ MIT License
131
+
132
+ Copyright (C) 2018 by Marijn Haverbeke <marijn@haverbeke.berlin> and others
133
+
134
+ Permission is hereby granted, free of charge, to any person obtaining a copy
135
+ of this software and associated documentation files (the "Software"), to deal
136
+ in the Software without restriction, including without limitation the rights
137
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
138
+ copies of the Software, and to permit persons to whom the Software is
139
+ furnished to do so, subject to the following conditions:
140
+
141
+ The above copyright notice and this permission notice shall be included in
142
+ all copies or substantial portions of the Software.
143
+
144
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
145
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
146
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
147
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
148
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
149
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
150
+ THE SOFTWARE.
151
+ ```
152
+
153
+ ## smol-toml 1.9.1
154
+
155
+ License: BSD-3-Clause
156
+
157
+ ```text
158
+ Copyright (c) Squirrel Chat et al., All rights reserved.
159
+
160
+ Redistribution and use in source and binary forms, with or without
161
+ modification, are permitted provided that the following conditions are met:
162
+
163
+ 1. Redistributions of source code must retain the above copyright notice, this
164
+ list of conditions and the following disclaimer.
165
+ 2. Redistributions in binary form must reproduce the above copyright notice,
166
+ this list of conditions and the following disclaimer in the
167
+ documentation and/or other materials provided with the distribution.
168
+ 3. Neither the name of the copyright holder nor the names of its contributors
169
+ may be used to endorse or promote products derived from this software without
170
+ specific prior written permission.
171
+
172
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
173
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
174
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
175
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
176
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
177
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
178
+ SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
179
+ CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
180
+ OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
181
+ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
182
+ ```