@eliya-oss/agent-diff 0.1.0-alpha.184 → 0.1.0-alpha.186
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/CHANGELOG.md +18 -0
- package/dist/grammars/css/LICENSE +21 -0
- package/dist/grammars/css/highlights.scm +76 -0
- package/dist/grammars/css/tree-sitter-css.wasm +0 -0
- package/dist/main.js +21 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.186
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- feat(CLI): `adiff comment list` takes `--base`, and each comment it lists carries the time it was sent.
|
|
8
|
+
|
|
9
|
+
## 0.1.0-alpha.185
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- fix(diff): a `.css` file is drawn in colour, with a property and its value in two colours.
|
|
14
|
+
|
|
15
|
+
<details><summary>What was wrong</summary>
|
|
16
|
+
|
|
17
|
+
The terminal library knows a `.css` file is CSS but carries no grammar for it, so every stylesheet read as plain text beside the coloured component that used it.
|
|
18
|
+
|
|
19
|
+
</details>
|
|
20
|
+
|
|
3
21
|
## 0.1.0-alpha.184
|
|
4
22
|
|
|
5
23
|
### Patch Changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Max Brunsfeld
|
|
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.
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
(comment) @comment
|
|
2
|
+
|
|
3
|
+
(tag_name) @tag
|
|
4
|
+
(nesting_selector) @tag
|
|
5
|
+
(universal_selector) @tag
|
|
6
|
+
|
|
7
|
+
"~" @operator
|
|
8
|
+
">" @operator
|
|
9
|
+
"+" @operator
|
|
10
|
+
"-" @operator
|
|
11
|
+
"*" @operator
|
|
12
|
+
"/" @operator
|
|
13
|
+
"=" @operator
|
|
14
|
+
"^=" @operator
|
|
15
|
+
"|=" @operator
|
|
16
|
+
"~=" @operator
|
|
17
|
+
"$=" @operator
|
|
18
|
+
"*=" @operator
|
|
19
|
+
|
|
20
|
+
"and" @operator
|
|
21
|
+
"or" @operator
|
|
22
|
+
"not" @operator
|
|
23
|
+
"only" @operator
|
|
24
|
+
|
|
25
|
+
(attribute_selector (plain_value) @string)
|
|
26
|
+
|
|
27
|
+
((property_name) @variable
|
|
28
|
+
(#match? @variable "^--"))
|
|
29
|
+
((plain_value) @variable
|
|
30
|
+
(#match? @variable "^--"))
|
|
31
|
+
|
|
32
|
+
(class_name) @property
|
|
33
|
+
(id_name) @property
|
|
34
|
+
(namespace_name) @property
|
|
35
|
+
(property_name) @property
|
|
36
|
+
(feature_name) @property
|
|
37
|
+
|
|
38
|
+
(pseudo_element_selector (tag_name) @attribute)
|
|
39
|
+
(pseudo_class_selector (class_name) @attribute)
|
|
40
|
+
(attribute_name) @attribute
|
|
41
|
+
|
|
42
|
+
(function_name) @function
|
|
43
|
+
|
|
44
|
+
"@media" @keyword
|
|
45
|
+
"@import" @keyword
|
|
46
|
+
"@charset" @keyword
|
|
47
|
+
"@namespace" @keyword
|
|
48
|
+
"@supports" @keyword
|
|
49
|
+
"@keyframes" @keyword
|
|
50
|
+
(at_keyword) @keyword
|
|
51
|
+
(to) @keyword
|
|
52
|
+
(from) @keyword
|
|
53
|
+
(important) @keyword
|
|
54
|
+
|
|
55
|
+
(string_value) @string
|
|
56
|
+
(color_value) @string.special
|
|
57
|
+
|
|
58
|
+
(integer_value) @number
|
|
59
|
+
(float_value) @number
|
|
60
|
+
(unit) @type
|
|
61
|
+
|
|
62
|
+
[
|
|
63
|
+
"#"
|
|
64
|
+
","
|
|
65
|
+
"."
|
|
66
|
+
":"
|
|
67
|
+
"::"
|
|
68
|
+
";"
|
|
69
|
+
] @punctuation.delimiter
|
|
70
|
+
|
|
71
|
+
[
|
|
72
|
+
"{"
|
|
73
|
+
")"
|
|
74
|
+
"("
|
|
75
|
+
"}"
|
|
76
|
+
] @punctuation.bracket
|
|
Binary file
|
package/dist/main.js
CHANGED
|
@@ -6,7 +6,7 @@ import { fileURLToPath } from "node:url";
|
|
|
6
6
|
import { join, resolve } from "node:path";
|
|
7
7
|
import { promisify } from "node:util";
|
|
8
8
|
import { homedir, hostname, platform } from "node:os";
|
|
9
|
-
import { ASCIIFontRenderable, BoxRenderable, CodeRenderable, KeyEvent, LineNumberRenderable, RGBA, StyledText, SyntaxStyle, TextRenderable, TextareaRenderable, bg, bold, createCliRenderer, defaultTextareaKeyBindings, fg, fonts, getTreeSitterClient, pathToFiletype, stripAnsiSequences, t } from "@opentui/core";
|
|
9
|
+
import { ASCIIFontRenderable, BoxRenderable, CodeRenderable, KeyEvent, LineNumberRenderable, RGBA, StyledText, SyntaxStyle, TextRenderable, TextareaRenderable, addDefaultParsers, bg, bold, createCliRenderer, defaultTextareaKeyBindings, fg, fonts, getTreeSitterClient, pathToFiletype, stripAnsiSequences, t } from "@opentui/core";
|
|
10
10
|
import { existsSync, mkdirSync, watch } from "node:fs";
|
|
11
11
|
//#region \0rolldown/runtime.js
|
|
12
12
|
var __defProp = Object.defineProperty;
|
|
@@ -10042,7 +10042,7 @@ var init_config = __esmMin((() => {
|
|
|
10042
10042
|
//#region package.json
|
|
10043
10043
|
init_pane();
|
|
10044
10044
|
init_config();
|
|
10045
|
-
var version$1 = "0.1.0-alpha.
|
|
10045
|
+
var version$1 = "0.1.0-alpha.186";
|
|
10046
10046
|
//#endregion
|
|
10047
10047
|
//#region src/cli/error.ts
|
|
10048
10048
|
var UnknownCommand, MissingOption, UnknownField, UnknownOption, BadOption, RegistryUnanswered;
|
|
@@ -10629,7 +10629,7 @@ var init_catalog = __esmMin((() => {
|
|
|
10629
10629
|
group: FOLLOW_UP,
|
|
10630
10630
|
addresses: "review",
|
|
10631
10631
|
safety: "read",
|
|
10632
|
-
options: [...
|
|
10632
|
+
options: [...based],
|
|
10633
10633
|
dataKey: "comments",
|
|
10634
10634
|
example: "adiff comment list --worktree . --fields id,body,settled"
|
|
10635
10635
|
},
|
|
@@ -13507,6 +13507,7 @@ var init_threads$1 = __esmMin((() => {
|
|
|
13507
13507
|
end: sits.end,
|
|
13508
13508
|
snippet: comment.anchor.snippet,
|
|
13509
13509
|
body: comment.body,
|
|
13510
|
+
at: batch.at,
|
|
13510
13511
|
state: stateOf$2(turns, mine.at(-1)?.asks === true, settled, Object.hasOwn(conversation.removed, comment.id)),
|
|
13511
13512
|
stale: batch.head !== conversation.head,
|
|
13512
13513
|
outside: !conversation.shown.has(comment.anchor.path) || !sits.placed,
|
|
@@ -15260,6 +15261,21 @@ var init_watch = __esmMin((() => {
|
|
|
15260
15261
|
filings = (root) => changesTo(root, filed);
|
|
15261
15262
|
}));
|
|
15262
15263
|
//#endregion
|
|
15264
|
+
//#region src/tui/grammars.ts
|
|
15265
|
+
var besideThis, css, grammarsAdded;
|
|
15266
|
+
var init_grammars = __esmMin((() => {
|
|
15267
|
+
init_dist();
|
|
15268
|
+
besideThis = (path) => fileURLToPath(new URL(`./grammars/${path}`, import.meta.url));
|
|
15269
|
+
css = {
|
|
15270
|
+
filetype: "css",
|
|
15271
|
+
queries: { highlights: [besideThis("css/highlights.scm")] },
|
|
15272
|
+
wasm: besideThis("css/tree-sitter-css.wasm")
|
|
15273
|
+
};
|
|
15274
|
+
grammarsAdded = sync(() => {
|
|
15275
|
+
if (existsSync(css.wasm)) addDefaultParsers([css]);
|
|
15276
|
+
});
|
|
15277
|
+
}));
|
|
15278
|
+
//#endregion
|
|
15263
15279
|
//#region src/tui/command.ts
|
|
15264
15280
|
var EVERY_PANE, command, commands, TEXT_SCREENS, PRINTABLE_KEY, takesText, commandsFor, listableFor, glossaryFor, actionFor, GLYPHS, displayKey, heldOrRemoved, SWAPPED, hintOf, hintsFor;
|
|
15265
15281
|
var init_command = __esmMin((() => {
|
|
@@ -24125,6 +24141,7 @@ var init_app = __esmMin((() => {
|
|
|
24125
24141
|
init_git();
|
|
24126
24142
|
init_store();
|
|
24127
24143
|
init_watch();
|
|
24144
|
+
init_grammars();
|
|
24128
24145
|
init_command();
|
|
24129
24146
|
init_keys();
|
|
24130
24147
|
init_reduce();
|
|
@@ -24741,6 +24758,7 @@ var init_app = __esmMin((() => {
|
|
|
24741
24758
|
noticing = (app, root) => runForEach(answers(root), () => sync(() => app.answered()));
|
|
24742
24759
|
noticingFiled = (app, root) => runForEach(filings(root), () => sync(() => app.filed()));
|
|
24743
24760
|
launch = fn("Tui.launch")(function* (asked, renderer, options = {}) {
|
|
24761
|
+
yield* grammarsAdded;
|
|
24744
24762
|
const repo = yield* (yield* Git).realPathOf(asked);
|
|
24745
24763
|
const branches = yield* firstBranches(repo, options.branch, options.base);
|
|
24746
24764
|
const opensOn = openingOn(branches, options.branch);
|
package/package.json
CHANGED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"bin": {
|
|
24
24
|
"adiff": "./bin/adiff.js"
|
|
25
25
|
},
|
|
26
|
-
"version": "0.1.0-alpha.
|
|
26
|
+
"version": "0.1.0-alpha.186",
|
|
27
27
|
"description": "Review the work an agent left you without losing the thread: comments live on the lines, the agent answers them, and each point stays open until you settle it.",
|
|
28
28
|
"license": "MIT",
|
|
29
29
|
"repository": {
|