@lordierclaw/bluenote-term 0.4.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/bin/bluenote-term.js +7 -0
- package/bin/bluenote-term.ts +7 -0
- package/bin/bn.ts +7 -0
- package/dist/app-t3b9bp7k.js +33 -0
- package/dist/command-0v6na3yp.js +35 -0
- package/dist/command-efmr44ky.js +69823 -0
- package/dist/command.js +201 -0
- package/dist/entry-9xj9qt6a.js +1060 -0
- package/dist/highlights-25px198m.js +7 -0
- package/dist/highlights-3v8s2sge.js +7 -0
- package/dist/highlights-9ftarw6a.js +7 -0
- package/dist/highlights-a9pkzpkp.js +7 -0
- package/dist/highlights-eq9cgrbb.scm +604 -0
- package/dist/highlights-ghv9g403.scm +205 -0
- package/dist/highlights-hk7bwhj4.scm +284 -0
- package/dist/highlights-njnvvqgn.js +7 -0
- package/dist/highlights-r812a2qc.scm +150 -0
- package/dist/highlights-x6tmsnaa.scm +115 -0
- package/dist/injections-6zvhaks7.js +7 -0
- package/dist/injections-73j83es3.scm +27 -0
- package/dist/tree-sitter-javascript-jcz708z6.js +7 -0
- package/dist/tree-sitter-javascript-nd0q4pe9.wasm +0 -0
- package/dist/tree-sitter-markdown-411r6y9b.wasm +0 -0
- package/dist/tree-sitter-markdown-7a146rpb.js +7 -0
- package/dist/tree-sitter-markdown_inline-8ph78a4b.js +7 -0
- package/dist/tree-sitter-markdown_inline-j5349f42.wasm +0 -0
- package/dist/tree-sitter-typescript-3zsd3cky.js +7 -0
- package/dist/tree-sitter-typescript-zxjzwt75.wasm +0 -0
- package/dist/tree-sitter-zig-e78zbjpm.wasm +0 -0
- package/dist/tree-sitter-zig-ea20rsfb.js +7 -0
- package/package.json +38 -0
- package/src/command.d.ts +22 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
; Query from: https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/99ddf573531c4dbe53f743ecbc1595af5eb1d32f/queries/markdown_inline/highlights.scm
|
|
2
|
+
; From MDeiml/tree-sitter-markdown
|
|
3
|
+
(code_span) @markup.raw @nospell
|
|
4
|
+
|
|
5
|
+
(emphasis) @markup.italic
|
|
6
|
+
|
|
7
|
+
(strong_emphasis) @markup.strong
|
|
8
|
+
|
|
9
|
+
(strikethrough) @markup.strikethrough
|
|
10
|
+
|
|
11
|
+
(shortcut_link
|
|
12
|
+
(link_text) @nospell)
|
|
13
|
+
|
|
14
|
+
[
|
|
15
|
+
(backslash_escape)
|
|
16
|
+
(hard_line_break)
|
|
17
|
+
] @string.escape
|
|
18
|
+
|
|
19
|
+
; Conceal codeblock and text style markers
|
|
20
|
+
([
|
|
21
|
+
(code_span_delimiter)
|
|
22
|
+
(emphasis_delimiter)
|
|
23
|
+
] @conceal
|
|
24
|
+
(#set! conceal ""))
|
|
25
|
+
|
|
26
|
+
; Inline links - style all parts
|
|
27
|
+
(inline_link
|
|
28
|
+
["[" "(" ")"] @markup.link)
|
|
29
|
+
|
|
30
|
+
(inline_link
|
|
31
|
+
"]" @markup.link.bracket.close)
|
|
32
|
+
|
|
33
|
+
; Conceal opening bracket
|
|
34
|
+
((inline_link
|
|
35
|
+
"[" @conceal)
|
|
36
|
+
(#set! conceal ""))
|
|
37
|
+
|
|
38
|
+
; Conceal closing bracket with space replacement
|
|
39
|
+
((inline_link
|
|
40
|
+
"]" @conceal)
|
|
41
|
+
(#set! conceal " "))
|
|
42
|
+
|
|
43
|
+
; Conceal image links
|
|
44
|
+
(image
|
|
45
|
+
[
|
|
46
|
+
"!"
|
|
47
|
+
"["
|
|
48
|
+
"]"
|
|
49
|
+
"("
|
|
50
|
+
(link_destination)
|
|
51
|
+
")"
|
|
52
|
+
] @markup.link
|
|
53
|
+
(#set! conceal ""))
|
|
54
|
+
|
|
55
|
+
; Conceal full reference links
|
|
56
|
+
(full_reference_link
|
|
57
|
+
[
|
|
58
|
+
"["
|
|
59
|
+
"]"
|
|
60
|
+
(link_label)
|
|
61
|
+
] @markup.link
|
|
62
|
+
(#set! conceal ""))
|
|
63
|
+
|
|
64
|
+
; Conceal collapsed reference links
|
|
65
|
+
(collapsed_reference_link
|
|
66
|
+
[
|
|
67
|
+
"["
|
|
68
|
+
"]"
|
|
69
|
+
] @markup.link
|
|
70
|
+
(#set! conceal ""))
|
|
71
|
+
|
|
72
|
+
; Conceal shortcut links
|
|
73
|
+
(shortcut_link
|
|
74
|
+
[
|
|
75
|
+
"["
|
|
76
|
+
"]"
|
|
77
|
+
] @markup.link
|
|
78
|
+
(#set! conceal ""))
|
|
79
|
+
|
|
80
|
+
[
|
|
81
|
+
(link_destination)
|
|
82
|
+
(uri_autolink)
|
|
83
|
+
] @markup.link.url @nospell
|
|
84
|
+
|
|
85
|
+
[
|
|
86
|
+
(link_label)
|
|
87
|
+
(link_text)
|
|
88
|
+
(link_title)
|
|
89
|
+
(image_description)
|
|
90
|
+
] @markup.link.label
|
|
91
|
+
|
|
92
|
+
; Replace common HTML entities.
|
|
93
|
+
((entity_reference) @character.special
|
|
94
|
+
(#eq? @character.special " ")
|
|
95
|
+
(#set! conceal ""))
|
|
96
|
+
|
|
97
|
+
((entity_reference) @character.special
|
|
98
|
+
(#eq? @character.special "<")
|
|
99
|
+
(#set! conceal "<"))
|
|
100
|
+
|
|
101
|
+
((entity_reference) @character.special
|
|
102
|
+
(#eq? @character.special ">")
|
|
103
|
+
(#set! conceal ">"))
|
|
104
|
+
|
|
105
|
+
((entity_reference) @character.special
|
|
106
|
+
(#eq? @character.special "&")
|
|
107
|
+
(#set! conceal "&"))
|
|
108
|
+
|
|
109
|
+
((entity_reference) @character.special
|
|
110
|
+
(#eq? @character.special """)
|
|
111
|
+
(#set! conceal "\""))
|
|
112
|
+
|
|
113
|
+
((entity_reference) @character.special
|
|
114
|
+
(#any-of? @character.special " " " ")
|
|
115
|
+
(#set! conceal " "))
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
; Query from: https://raw.githubusercontent.com/nvim-treesitter/nvim-treesitter/refs/heads/master/queries/markdown/injections.scm
|
|
2
|
+
(fenced_code_block
|
|
3
|
+
(info_string
|
|
4
|
+
(language) @_lang)
|
|
5
|
+
(code_fence_content) @injection.content
|
|
6
|
+
(#set-lang-from-info-string! @_lang))
|
|
7
|
+
|
|
8
|
+
((html_block) @injection.content
|
|
9
|
+
(#set! injection.language "html")
|
|
10
|
+
(#set! injection.combined)
|
|
11
|
+
(#set! injection.include-children))
|
|
12
|
+
|
|
13
|
+
((minus_metadata) @injection.content
|
|
14
|
+
(#set! injection.language "yaml")
|
|
15
|
+
(#offset! @injection.content 1 0 -1 0)
|
|
16
|
+
(#set! injection.include-children))
|
|
17
|
+
|
|
18
|
+
((plus_metadata) @injection.content
|
|
19
|
+
(#set! injection.language "toml")
|
|
20
|
+
(#offset! @injection.content 1 0 -1 0)
|
|
21
|
+
(#set! injection.include-children))
|
|
22
|
+
|
|
23
|
+
([
|
|
24
|
+
(inline)
|
|
25
|
+
(pipe_table_cell)
|
|
26
|
+
] @injection.content
|
|
27
|
+
(#set! injection.language "markdown_inline"))
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import"./command-0v6na3yp.js";
|
|
2
|
+
|
|
3
|
+
// node_modules/.bun/@opentui+core@0.2.14+dab2f449f18c4e79/node_modules/@opentui/core/assets/javascript/tree-sitter-javascript.wasm
|
|
4
|
+
var tree_sitter_javascript_default = "./tree-sitter-javascript-nd0q4pe9.wasm";
|
|
5
|
+
export {
|
|
6
|
+
tree_sitter_javascript_default as default
|
|
7
|
+
};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import"./command-0v6na3yp.js";
|
|
2
|
+
|
|
3
|
+
// node_modules/.bun/@opentui+core@0.2.14+dab2f449f18c4e79/node_modules/@opentui/core/assets/markdown/tree-sitter-markdown.wasm
|
|
4
|
+
var tree_sitter_markdown_default = "./tree-sitter-markdown-411r6y9b.wasm";
|
|
5
|
+
export {
|
|
6
|
+
tree_sitter_markdown_default as default
|
|
7
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import"./command-0v6na3yp.js";
|
|
2
|
+
|
|
3
|
+
// node_modules/.bun/@opentui+core@0.2.14+dab2f449f18c4e79/node_modules/@opentui/core/assets/markdown_inline/tree-sitter-markdown_inline.wasm
|
|
4
|
+
var tree_sitter_markdown_inline_default = "./tree-sitter-markdown_inline-j5349f42.wasm";
|
|
5
|
+
export {
|
|
6
|
+
tree_sitter_markdown_inline_default as default
|
|
7
|
+
};
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import"./command-0v6na3yp.js";
|
|
2
|
+
|
|
3
|
+
// node_modules/.bun/@opentui+core@0.2.14+dab2f449f18c4e79/node_modules/@opentui/core/assets/typescript/tree-sitter-typescript.wasm
|
|
4
|
+
var tree_sitter_typescript_default = "./tree-sitter-typescript-zxjzwt75.wasm";
|
|
5
|
+
export {
|
|
6
|
+
tree_sitter_typescript_default as default
|
|
7
|
+
};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import"./command-0v6na3yp.js";
|
|
2
|
+
|
|
3
|
+
// node_modules/.bun/@opentui+core@0.2.14+dab2f449f18c4e79/node_modules/@opentui/core/assets/zig/tree-sitter-zig.wasm
|
|
4
|
+
var tree_sitter_zig_default = "./tree-sitter-zig-e78zbjpm.wasm";
|
|
5
|
+
export {
|
|
6
|
+
tree_sitter_zig_default as default
|
|
7
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@lordierclaw/bluenote-term",
|
|
3
|
+
"version": "0.4.1",
|
|
4
|
+
"license": "Apache-2.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"files": [
|
|
7
|
+
"bin",
|
|
8
|
+
"dist",
|
|
9
|
+
"src/command.d.ts"
|
|
10
|
+
],
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./src/command.d.ts",
|
|
14
|
+
"import": "./dist/command.js"
|
|
15
|
+
},
|
|
16
|
+
"./command": {
|
|
17
|
+
"types": "./src/command.d.ts",
|
|
18
|
+
"import": "./dist/command.js"
|
|
19
|
+
},
|
|
20
|
+
"./package.json": "./package.json"
|
|
21
|
+
},
|
|
22
|
+
"bin": {
|
|
23
|
+
"bluenote-term": "./bin/bluenote-term.js"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build:package-runtime": "bun ../../scripts/build-package-runtime.ts",
|
|
27
|
+
"prepack": "bun run build:package-runtime"
|
|
28
|
+
},
|
|
29
|
+
"engines": {
|
|
30
|
+
"bun": ">=1.3.0",
|
|
31
|
+
"node": ">=20.0.0"
|
|
32
|
+
},
|
|
33
|
+
"dependencies": {
|
|
34
|
+
"@lordierclaw/bluenote-core": "0.4.1",
|
|
35
|
+
"@opentui/core": "0.2.14",
|
|
36
|
+
"clipboardy": "5.3.1"
|
|
37
|
+
}
|
|
38
|
+
}
|
package/src/command.d.ts
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { CliResult } from "@lordierclaw/bluenote-core"
|
|
2
|
+
|
|
3
|
+
export interface TuiCommandWriter {
|
|
4
|
+
write(chunk: string): unknown
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface TuiCommandIO {
|
|
8
|
+
stdout: TuiCommandWriter
|
|
9
|
+
stderr: TuiCommandWriter
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export interface RunTuiCommandOptions {
|
|
13
|
+
io?: TuiCommandIO
|
|
14
|
+
version?: string
|
|
15
|
+
cliRunner?: (args: string[], version: string) => Promise<CliResult>
|
|
16
|
+
tuiRunner?: () => Promise<CliResult>
|
|
17
|
+
env?: Record<string, string | undefined>
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export declare function runTuiCommand(args?: string[], options?: RunTuiCommandOptions): Promise<number>
|
|
21
|
+
|
|
22
|
+
export declare function runCommand(args: string[], options?: RunTuiCommandOptions): Promise<number>
|