@eliya-oss/agent-diff 0.1.0-alpha.184 → 0.1.0-alpha.185
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 +12 -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 +19 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @eliya-oss/agent-diff
|
|
2
2
|
|
|
3
|
+
## 0.1.0-alpha.185
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- fix(diff): a `.css` file is drawn in colour, with a property and its value in two colours.
|
|
8
|
+
|
|
9
|
+
<details><summary>What was wrong</summary>
|
|
10
|
+
|
|
11
|
+
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.
|
|
12
|
+
|
|
13
|
+
</details>
|
|
14
|
+
|
|
3
15
|
## 0.1.0-alpha.184
|
|
4
16
|
|
|
5
17
|
### 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.185";
|
|
10046
10046
|
//#endregion
|
|
10047
10047
|
//#region src/cli/error.ts
|
|
10048
10048
|
var UnknownCommand, MissingOption, UnknownField, UnknownOption, BadOption, RegistryUnanswered;
|
|
@@ -15260,6 +15260,21 @@ var init_watch = __esmMin((() => {
|
|
|
15260
15260
|
filings = (root) => changesTo(root, filed);
|
|
15261
15261
|
}));
|
|
15262
15262
|
//#endregion
|
|
15263
|
+
//#region src/tui/grammars.ts
|
|
15264
|
+
var besideThis, css, grammarsAdded;
|
|
15265
|
+
var init_grammars = __esmMin((() => {
|
|
15266
|
+
init_dist();
|
|
15267
|
+
besideThis = (path) => fileURLToPath(new URL(`./grammars/${path}`, import.meta.url));
|
|
15268
|
+
css = {
|
|
15269
|
+
filetype: "css",
|
|
15270
|
+
queries: { highlights: [besideThis("css/highlights.scm")] },
|
|
15271
|
+
wasm: besideThis("css/tree-sitter-css.wasm")
|
|
15272
|
+
};
|
|
15273
|
+
grammarsAdded = sync(() => {
|
|
15274
|
+
if (existsSync(css.wasm)) addDefaultParsers([css]);
|
|
15275
|
+
});
|
|
15276
|
+
}));
|
|
15277
|
+
//#endregion
|
|
15263
15278
|
//#region src/tui/command.ts
|
|
15264
15279
|
var EVERY_PANE, command, commands, TEXT_SCREENS, PRINTABLE_KEY, takesText, commandsFor, listableFor, glossaryFor, actionFor, GLYPHS, displayKey, heldOrRemoved, SWAPPED, hintOf, hintsFor;
|
|
15265
15280
|
var init_command = __esmMin((() => {
|
|
@@ -24125,6 +24140,7 @@ var init_app = __esmMin((() => {
|
|
|
24125
24140
|
init_git();
|
|
24126
24141
|
init_store();
|
|
24127
24142
|
init_watch();
|
|
24143
|
+
init_grammars();
|
|
24128
24144
|
init_command();
|
|
24129
24145
|
init_keys();
|
|
24130
24146
|
init_reduce();
|
|
@@ -24741,6 +24757,7 @@ var init_app = __esmMin((() => {
|
|
|
24741
24757
|
noticing = (app, root) => runForEach(answers(root), () => sync(() => app.answered()));
|
|
24742
24758
|
noticingFiled = (app, root) => runForEach(filings(root), () => sync(() => app.filed()));
|
|
24743
24759
|
launch = fn("Tui.launch")(function* (asked, renderer, options = {}) {
|
|
24760
|
+
yield* grammarsAdded;
|
|
24744
24761
|
const repo = yield* (yield* Git).realPathOf(asked);
|
|
24745
24762
|
const branches = yield* firstBranches(repo, options.branch, options.base);
|
|
24746
24763
|
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.185",
|
|
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": {
|