@codyn06/cboard 0.0.1 → 0.2.0
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 +21 -0
- package/README.md +71 -3
- package/THIRD_PARTY_NOTICES +29 -0
- package/bin/cboard-context.js +15 -0
- package/bin/cboard.js +5 -0
- package/dist/adapters/bash.d.ts +2 -0
- package/dist/adapters/bash.js +14 -0
- package/dist/adapters/c-family.d.ts +2 -0
- package/dist/adapters/c-family.js +81 -0
- package/dist/adapters/csharp.d.ts +2 -0
- package/dist/adapters/csharp.js +47 -0
- package/dist/adapters/extra-languages.d.ts +3 -0
- package/dist/adapters/extra-languages.js +15 -0
- package/dist/adapters/go.d.ts +2 -0
- package/dist/adapters/go.js +42 -0
- package/dist/adapters/grammar.d.ts +21 -0
- package/dist/adapters/grammar.js +54 -0
- package/dist/adapters/index.d.ts +20 -0
- package/dist/adapters/index.js +62 -0
- package/dist/adapters/java.d.ts +2 -0
- package/dist/adapters/java.js +36 -0
- package/dist/adapters/kotlin.d.ts +2 -0
- package/dist/adapters/kotlin.js +65 -0
- package/dist/adapters/lua-family.d.ts +2 -0
- package/dist/adapters/lua-family.js +186 -0
- package/dist/adapters/php.d.ts +2 -0
- package/dist/adapters/php.js +28 -0
- package/dist/adapters/python.d.ts +2 -0
- package/dist/adapters/python.js +68 -0
- package/dist/adapters/ruby.d.ts +2 -0
- package/dist/adapters/ruby.js +46 -0
- package/dist/adapters/rust.d.ts +2 -0
- package/dist/adapters/rust.js +85 -0
- package/dist/adapters/swift.d.ts +2 -0
- package/dist/adapters/swift.js +38 -0
- package/dist/adapters/types.d.ts +61 -0
- package/dist/adapters/types.js +1 -0
- package/dist/adapters/typescript.d.ts +2 -0
- package/dist/adapters/typescript.js +52 -0
- package/dist/api.d.ts +56 -0
- package/dist/api.js +439 -0
- package/dist/cboard.d.ts +2 -0
- package/dist/cboard.js +151 -0
- package/dist/cli.d.ts +27 -0
- package/dist/cli.js +180 -0
- package/dist/docs-parse.d.ts +64 -0
- package/dist/docs-parse.js +762 -0
- package/dist/docs.d.ts +39 -0
- package/dist/docs.js +243 -0
- package/dist/extract.d.ts +36 -0
- package/dist/extract.js +480 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +5 -0
- package/dist/issues.d.ts +44 -0
- package/dist/issues.js +138 -0
- package/dist/languages.d.ts +9 -0
- package/dist/languages.js +128 -0
- package/dist/model.d.ts +85 -0
- package/dist/model.js +1 -0
- package/dist/wake.d.ts +13 -0
- package/dist/wake.js +33 -0
- package/grammars/LICENSES/README.md +3 -0
- package/grammars/LICENSES/c.LICENSE +21 -0
- package/grammars/LICENSES/kotlin.LICENSE +21 -0
- package/grammars/LICENSES/lua.LICENSE +21 -0
- package/grammars/LICENSES/luau.LICENSE +21 -0
- package/grammars/LICENSES/swift.LICENSE +21 -0
- package/grammars/manifest.json +39 -0
- package/grammars/tree-sitter-c.wasm +0 -0
- package/grammars/tree-sitter-kotlin.wasm +0 -0
- package/grammars/tree-sitter-lua.wasm +0 -0
- package/grammars/tree-sitter-luau.wasm +0 -0
- package/grammars/tree-sitter-swift.wasm +0 -0
- package/kit/cboard-connect.js +869 -0
- package/kit/cboard-kit/brief.js +512 -0
- package/kit/cboard-kit/config.js +250 -0
- package/kit/cboard-kit/connect-check.js +95 -0
- package/kit/cboard-kit/device.js +192 -0
- package/kit/cboard-kit/drift.js +55 -0
- package/kit/cboard-kit/headers.js +46 -0
- package/kit/cboard-kit/mcp.js +97 -0
- package/kit/cboard-kit/references.js +70 -0
- package/kit/cboard-kit/skill/SKILL.md +170 -0
- package/kit/cboard-kit/wait.js +45 -0
- package/package.json +47 -5
- package/queries/bash/imports.scm +11 -0
- package/queries/bash/symbols.scm +1 -0
- package/queries/c/imports.scm +2 -0
- package/queries/c/symbols.scm +10 -0
- package/queries/cpp/imports.scm +2 -0
- package/queries/cpp/symbols.scm +11 -0
- package/queries/csharp/imports.scm +2 -0
- package/queries/csharp/symbols.scm +10 -0
- package/queries/go/imports.scm +2 -0
- package/queries/go/symbols.scm +8 -0
- package/queries/java/imports.scm +2 -0
- package/queries/java/symbols.scm +9 -0
- package/queries/javascript/imports.scm +3 -0
- package/queries/javascript/symbols.scm +16 -0
- package/queries/kotlin/imports.scm +2 -0
- package/queries/kotlin/symbols.scm +4 -0
- package/queries/lua/imports.scm +5 -0
- package/queries/lua/symbols.scm +6 -0
- package/queries/luau/imports.scm +5 -0
- package/queries/luau/symbols.scm +9 -0
- package/queries/php/imports.scm +6 -0
- package/queries/php/symbols.scm +7 -0
- package/queries/python/imports.scm +3 -0
- package/queries/python/symbols.scm +8 -0
- package/queries/ruby/imports.scm +2 -0
- package/queries/ruby/symbols.scm +4 -0
- package/queries/rust/imports.scm +5 -0
- package/queries/rust/symbols.scm +11 -0
- package/queries/swift/imports.scm +2 -0
- package/queries/swift/symbols.scm +5 -0
- package/queries/typescript/imports.scm +3 -0
- package/queries/typescript/symbols.scm +20 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
/** File extension (lower case, with dot) to language name. */
|
|
2
|
+
const byExtension = {
|
|
3
|
+
".ts": "typescript",
|
|
4
|
+
".mts": "typescript",
|
|
5
|
+
".cts": "typescript",
|
|
6
|
+
".tsx": "tsx",
|
|
7
|
+
".js": "javascript",
|
|
8
|
+
".mjs": "javascript",
|
|
9
|
+
".cjs": "javascript",
|
|
10
|
+
".jsx": "jsx",
|
|
11
|
+
".py": "python",
|
|
12
|
+
".go": "go",
|
|
13
|
+
".rs": "rust",
|
|
14
|
+
".java": "java",
|
|
15
|
+
".kt": "kotlin",
|
|
16
|
+
".kts": "kotlin",
|
|
17
|
+
".swift": "swift",
|
|
18
|
+
".cs": "csharp",
|
|
19
|
+
".c": "c",
|
|
20
|
+
".h": "c",
|
|
21
|
+
".cpp": "cpp",
|
|
22
|
+
".cc": "cpp",
|
|
23
|
+
".cxx": "cpp",
|
|
24
|
+
".hpp": "cpp",
|
|
25
|
+
".hh": "cpp",
|
|
26
|
+
".rb": "ruby",
|
|
27
|
+
".php": "php",
|
|
28
|
+
".sh": "shell",
|
|
29
|
+
".bash": "shell",
|
|
30
|
+
".zsh": "shell",
|
|
31
|
+
".ps1": "powershell",
|
|
32
|
+
".lua": "lua",
|
|
33
|
+
".luau": "luau",
|
|
34
|
+
".sql": "sql",
|
|
35
|
+
".html": "html",
|
|
36
|
+
".htm": "html",
|
|
37
|
+
".css": "css",
|
|
38
|
+
".scss": "scss",
|
|
39
|
+
".json": "json",
|
|
40
|
+
".jsonc": "json",
|
|
41
|
+
".yaml": "yaml",
|
|
42
|
+
".yml": "yaml",
|
|
43
|
+
".toml": "toml",
|
|
44
|
+
".md": "markdown",
|
|
45
|
+
".mdx": "mdx",
|
|
46
|
+
".xml": "xml",
|
|
47
|
+
".vue": "vue",
|
|
48
|
+
".svelte": "svelte",
|
|
49
|
+
".dart": "dart",
|
|
50
|
+
".scala": "scala",
|
|
51
|
+
".ex": "elixir",
|
|
52
|
+
".exs": "elixir",
|
|
53
|
+
".erl": "erlang",
|
|
54
|
+
".hs": "haskell",
|
|
55
|
+
".ml": "ocaml",
|
|
56
|
+
".r": "r",
|
|
57
|
+
".jl": "julia",
|
|
58
|
+
".zig": "zig",
|
|
59
|
+
".nim": "nim",
|
|
60
|
+
".gd": "gdscript",
|
|
61
|
+
".tf": "terraform",
|
|
62
|
+
};
|
|
63
|
+
const byFilename = { Dockerfile: "dockerfile", Makefile: "make" };
|
|
64
|
+
const byInterpreter = {
|
|
65
|
+
node: "javascript",
|
|
66
|
+
deno: "typescript",
|
|
67
|
+
bash: "shell",
|
|
68
|
+
sh: "shell",
|
|
69
|
+
zsh: "shell",
|
|
70
|
+
python: "python",
|
|
71
|
+
ruby: "ruby",
|
|
72
|
+
php: "php",
|
|
73
|
+
lua: "lua",
|
|
74
|
+
luau: "luau",
|
|
75
|
+
pwsh: "powershell",
|
|
76
|
+
};
|
|
77
|
+
/** Languages the TS/JS grammar parses for symbols and imports. */
|
|
78
|
+
export const parsedLanguages = new Set(["typescript", "tsx", "javascript", "jsx"]);
|
|
79
|
+
/** Language for a path; `head` (the file's first bytes as text) is used for shebangs of extensionless scripts. */
|
|
80
|
+
export function languageOf(path, head = "") {
|
|
81
|
+
const name = path.slice(path.lastIndexOf("/") + 1);
|
|
82
|
+
const dot = name.lastIndexOf(".");
|
|
83
|
+
if (dot > 0)
|
|
84
|
+
return byExtension[name.slice(dot).toLowerCase()];
|
|
85
|
+
if (byFilename[name])
|
|
86
|
+
return byFilename[name];
|
|
87
|
+
if (dot === -1 && head.startsWith("#!")) {
|
|
88
|
+
const words = (head.split(/\r?\n/, 1)[0] ?? "").slice(2).trim().split(/\s+/);
|
|
89
|
+
const program = (words[0] ?? "").split("/").pop();
|
|
90
|
+
const interpreter = program === "env" ? words.find((w, i) => i > 0 && !w.startsWith("-")) : program;
|
|
91
|
+
// python3 and python3.12 map to python
|
|
92
|
+
return interpreter ? byInterpreter[interpreter.replace(/[\d.]+$/, "")] : undefined;
|
|
93
|
+
}
|
|
94
|
+
return undefined;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Tiny glob: `**` any depth, `*` within a segment, `?` one character. A pattern without a slash
|
|
98
|
+
* matches the base name at any depth; a trailing slash means a directory prefix.
|
|
99
|
+
*/
|
|
100
|
+
export function globMatcher(pattern) {
|
|
101
|
+
let glob = pattern.replace(/^\.?\//, "");
|
|
102
|
+
const anchored = glob.slice(0, -1).includes("/");
|
|
103
|
+
if (glob.endsWith("/"))
|
|
104
|
+
glob += "**";
|
|
105
|
+
let source = "";
|
|
106
|
+
for (let i = 0; i < glob.length; i++) {
|
|
107
|
+
const c = glob[i] ?? "";
|
|
108
|
+
if (c === "*" && glob[i + 1] === "*") {
|
|
109
|
+
if (glob[i + 2] === "/") {
|
|
110
|
+
source += "(?:.*/)?";
|
|
111
|
+
i += 2;
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
source += ".*";
|
|
115
|
+
i += 1;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
else if (c === "*")
|
|
119
|
+
source += "[^/]*";
|
|
120
|
+
else if (c === "?")
|
|
121
|
+
source += "[^/]";
|
|
122
|
+
else
|
|
123
|
+
source += c.replace(/[.+^${}()|[\]\\]/g, "\\$&");
|
|
124
|
+
}
|
|
125
|
+
const re = new RegExp(`^${source}$`);
|
|
126
|
+
const dirPrefix = pattern.endsWith("/") && !anchored;
|
|
127
|
+
return (path) => re.test(anchored ? path : dirPrefix ? path : (path.split("/").pop() ?? path));
|
|
128
|
+
}
|
package/dist/model.d.ts
ADDED
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
export interface Location {
|
|
2
|
+
kind: "repo";
|
|
3
|
+
repo: string;
|
|
4
|
+
commit: string;
|
|
5
|
+
path: string;
|
|
6
|
+
startLine: number;
|
|
7
|
+
endLine: number;
|
|
8
|
+
}
|
|
9
|
+
export interface NodeInput {
|
|
10
|
+
ref?: string;
|
|
11
|
+
clientKey: string;
|
|
12
|
+
namespace: string;
|
|
13
|
+
type: string;
|
|
14
|
+
title: string;
|
|
15
|
+
body: string;
|
|
16
|
+
status?: string;
|
|
17
|
+
properties: Record<string, unknown>;
|
|
18
|
+
provenance: Location[];
|
|
19
|
+
derivation: "extracted";
|
|
20
|
+
}
|
|
21
|
+
export interface EdgeInput {
|
|
22
|
+
type: string;
|
|
23
|
+
from: string;
|
|
24
|
+
to: string;
|
|
25
|
+
provenance: Location[];
|
|
26
|
+
derivation: "extracted" | "inferred";
|
|
27
|
+
properties: Record<string, unknown>;
|
|
28
|
+
}
|
|
29
|
+
export interface Snapshot {
|
|
30
|
+
nodes: NodeInput[];
|
|
31
|
+
edges: EdgeInput[];
|
|
32
|
+
}
|
|
33
|
+
export interface RemoteNode extends NodeInput {
|
|
34
|
+
id: string;
|
|
35
|
+
revision: number;
|
|
36
|
+
lifecycle: string;
|
|
37
|
+
}
|
|
38
|
+
export interface RemoteEdge extends EdgeInput {
|
|
39
|
+
id: string;
|
|
40
|
+
revision: number;
|
|
41
|
+
lifecycle: string;
|
|
42
|
+
}
|
|
43
|
+
export interface Revision {
|
|
44
|
+
nodeId: string;
|
|
45
|
+
expectedRevision: number;
|
|
46
|
+
title?: string;
|
|
47
|
+
body?: string;
|
|
48
|
+
status?: string;
|
|
49
|
+
properties?: Record<string, unknown>;
|
|
50
|
+
provenance: Location[];
|
|
51
|
+
derivation?: "extracted";
|
|
52
|
+
lifecycle?: string;
|
|
53
|
+
reason?: string;
|
|
54
|
+
}
|
|
55
|
+
export interface EdgeRevision {
|
|
56
|
+
edgeId: string;
|
|
57
|
+
expectedRevision: number;
|
|
58
|
+
provenance: Location[];
|
|
59
|
+
lifecycle: string;
|
|
60
|
+
reason: string;
|
|
61
|
+
properties?: Record<string, unknown>;
|
|
62
|
+
derivation?: "extracted" | "inferred";
|
|
63
|
+
}
|
|
64
|
+
export interface Contribution {
|
|
65
|
+
contributionId: string;
|
|
66
|
+
summary: string;
|
|
67
|
+
nodes: NodeInput[];
|
|
68
|
+
edges: EdgeInput[];
|
|
69
|
+
revisions: Revision[];
|
|
70
|
+
edgeRevisions: EdgeRevision[];
|
|
71
|
+
}
|
|
72
|
+
export interface Receipt {
|
|
73
|
+
status: "applied" | "returned";
|
|
74
|
+
conflicts: unknown[];
|
|
75
|
+
nodeIds: string[];
|
|
76
|
+
edgeIds: string[];
|
|
77
|
+
graphRevision: number;
|
|
78
|
+
}
|
|
79
|
+
export interface Result {
|
|
80
|
+
nodes: RemoteNode[];
|
|
81
|
+
edges: RemoteEdge[];
|
|
82
|
+
revision: number;
|
|
83
|
+
truncated: boolean;
|
|
84
|
+
nextCursor?: string;
|
|
85
|
+
}
|
package/dist/model.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/wake.d.ts
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
export declare const WAKE_MESSAGE = "hosted service is waking up (up to a minute)";
|
|
2
|
+
export declare const WAKE_BUDGET_MS = 90000;
|
|
3
|
+
export interface WakeOptions {
|
|
4
|
+
budgetMs?: number;
|
|
5
|
+
attemptMs?: number;
|
|
6
|
+
onWake?: (message: string) => void;
|
|
7
|
+
sleep?: (ms: number) => Promise<void>;
|
|
8
|
+
now?: () => number;
|
|
9
|
+
}
|
|
10
|
+
/** A failure that may be the service waking: a network error, a timeout or a 5xx. */
|
|
11
|
+
export declare function isTransient(error: unknown): boolean;
|
|
12
|
+
/** Runs `attempt` until it succeeds, fails for good, or the budget is spent (backoff 1 s to 10 s). */
|
|
13
|
+
export declare function retryWake<T>(attempt: (timeoutMs: number) => Promise<T>, { budgetMs, attemptMs, onWake, sleep, now, }?: WakeOptions): Promise<T>;
|
package/dist/wake.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// Cold-start wait for the code-sync client. Mirrors scripts/cboard-kit/wait.js (the kit is plain
|
|
2
|
+
// JS that ships separately and cannot be imported here); keep the two in step.
|
|
3
|
+
export const WAKE_MESSAGE = "hosted service is waking up (up to a minute)";
|
|
4
|
+
export const WAKE_BUDGET_MS = 90_000;
|
|
5
|
+
/** A failure that may be the service waking: a network error, a timeout or a 5xx. */
|
|
6
|
+
export function isTransient(error) {
|
|
7
|
+
const status = error?.status;
|
|
8
|
+
if (typeof status === "number")
|
|
9
|
+
return status >= 500;
|
|
10
|
+
return error instanceof TypeError || error?.name === "TimeoutError";
|
|
11
|
+
}
|
|
12
|
+
/** Runs `attempt` until it succeeds, fails for good, or the budget is spent (backoff 1 s to 10 s). */
|
|
13
|
+
export async function retryWake(attempt, { budgetMs = WAKE_BUDGET_MS, attemptMs = 30_000, onWake = (m) => void process.stderr.write(`cboard: ${m}\n`), sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms)), now = Date.now, } = {}) {
|
|
14
|
+
const start = now();
|
|
15
|
+
let delay = 1000;
|
|
16
|
+
let woke = false;
|
|
17
|
+
for (;;) {
|
|
18
|
+
const left = budgetMs - (now() - start);
|
|
19
|
+
try {
|
|
20
|
+
return await attempt(Math.max(1000, Math.min(attemptMs, left)));
|
|
21
|
+
}
|
|
22
|
+
catch (error) {
|
|
23
|
+
if (!isTransient(error) || budgetMs - (now() - start) <= delay)
|
|
24
|
+
throw error;
|
|
25
|
+
if (!woke) {
|
|
26
|
+
woke = true;
|
|
27
|
+
onWake(WAKE_MESSAGE);
|
|
28
|
+
}
|
|
29
|
+
await sleep(delay);
|
|
30
|
+
delay = Math.min(delay * 2, 10_000);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014 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,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2024 Amaan Qureshi <amaanq12@gmail.com>
|
|
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,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Munif Tanjim
|
|
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,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Amaan Qureshi <amaanq12@gmail.com>
|
|
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,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 alex-pinkus
|
|
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,39 @@
|
|
|
1
|
+
{
|
|
2
|
+
"grammars": {
|
|
3
|
+
"luau": {
|
|
4
|
+
"file": "tree-sitter-luau.wasm",
|
|
5
|
+
"source": "npm:tree-sitter-luau",
|
|
6
|
+
"version": "1.2.0",
|
|
7
|
+
"sha256": "f1647052518f2bdfae8e8c0b033ffdeca1193d69d11c78ba20f84c8374fd0fe3",
|
|
8
|
+
"licence": "MIT (LICENSES/luau.LICENSE)"
|
|
9
|
+
},
|
|
10
|
+
"lua": {
|
|
11
|
+
"file": "tree-sitter-lua.wasm",
|
|
12
|
+
"source": "npm:@tree-sitter-grammars/tree-sitter-lua",
|
|
13
|
+
"version": "0.4.1",
|
|
14
|
+
"sha256": "6d95607fc7d78964cfdf065ccb1ba76be5ed217c5ec0d0a3cace13c59fa1ae43",
|
|
15
|
+
"licence": "MIT (LICENSES/lua.LICENSE)"
|
|
16
|
+
},
|
|
17
|
+
"c": {
|
|
18
|
+
"file": "tree-sitter-c.wasm",
|
|
19
|
+
"source": "npm:tree-sitter-c",
|
|
20
|
+
"version": "0.24.1",
|
|
21
|
+
"sha256": "c852c2a85ebf2beb636aa3b0ef7f7e70458684d74f6741b20dcb296885bed9f9",
|
|
22
|
+
"licence": "MIT (LICENSES/c.LICENSE)"
|
|
23
|
+
},
|
|
24
|
+
"kotlin": {
|
|
25
|
+
"file": "tree-sitter-kotlin.wasm",
|
|
26
|
+
"source": "npm:@tree-sitter-grammars/tree-sitter-kotlin",
|
|
27
|
+
"version": "1.1.0",
|
|
28
|
+
"sha256": "7009d69453bc8735e438b2818a633efb21c88f99782769abba60dffedfab73f7",
|
|
29
|
+
"licence": "MIT (LICENSES/kotlin.LICENSE)"
|
|
30
|
+
},
|
|
31
|
+
"swift": {
|
|
32
|
+
"file": "tree-sitter-swift.wasm",
|
|
33
|
+
"source": "github:alex-pinkus/tree-sitter-swift (release asset)",
|
|
34
|
+
"version": "0.7.3",
|
|
35
|
+
"sha256": "0258a7ef17303a8079ffe0748b3583d59656b5c3e8653fca7b6451b3e6689eb2",
|
|
36
|
+
"licence": "MIT (LICENSES/swift.LICENSE)"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|