@vegalabs/cli 0.1.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 +202 -0
- package/NOTICE +6 -0
- package/README.md +84 -0
- package/bin/vega.cjs +33 -0
- package/dist/entry.js +10349 -0
- package/dist/rg-1nt2c2vg. +0 -0
- package/dist/rg-6zx7mhes.exe +0 -0
- package/dist/rg-87es5scq. +0 -0
- package/dist/rg-bkfd568m. +0 -0
- package/dist/rg-xcw2q3fd. +0 -0
- package/dist/tree-sitter-c_sharp-tags-krggt7ep.scm +23 -0
- package/dist/tree-sitter-cpp-tags-8wb1fc43.scm +29 -0
- package/dist/tree-sitter-go-tags-051vehfr.scm +26 -0
- package/dist/tree-sitter-java-tags-hb8g75z5.scm +19 -0
- package/dist/tree-sitter-javascript-tags-1vn24jqh.scm +16 -0
- package/dist/tree-sitter-python-tags-mtzz1sj5.scm +12 -0
- package/dist/tree-sitter-ruby-tags-bgd22x7y.scm +58 -0
- package/dist/tree-sitter-rust-tags-1pqgxchh.scm +26 -0
- package/dist/tree-sitter-typescript-tags-7thccg3r.scm +22 -0
- package/dist/vendor/ripgrep/arm64-darwin/rg +0 -0
- package/dist/vendor/ripgrep/arm64-linux/rg +0 -0
- package/dist/vendor/ripgrep/x64-darwin/rg +0 -0
- package/dist/vendor/ripgrep/x64-linux/rg +0 -0
- package/package.json +109 -0
- package/tree-sitter.wasm +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
(class_declaration
|
|
2
|
+
name: (identifier) @identifier
|
|
3
|
+
)
|
|
4
|
+
|
|
5
|
+
(interface_declaration
|
|
6
|
+
name: (identifier) @identifier
|
|
7
|
+
)
|
|
8
|
+
|
|
9
|
+
(method_declaration
|
|
10
|
+
name: (identifier) @identifier
|
|
11
|
+
)
|
|
12
|
+
|
|
13
|
+
; Method calls
|
|
14
|
+
(invocation_expression
|
|
15
|
+
function: (identifier) @call.identifier)
|
|
16
|
+
|
|
17
|
+
(invocation_expression
|
|
18
|
+
function: (member_access_expression
|
|
19
|
+
name: (identifier) @call.identifier))
|
|
20
|
+
|
|
21
|
+
; Constructor calls
|
|
22
|
+
(object_creation_expression
|
|
23
|
+
type: (identifier) @call.identifier)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
(struct_specifier name: (type_identifier) @identifier)
|
|
2
|
+
|
|
3
|
+
(declaration type: (union_specifier name: (type_identifier) @identifier))
|
|
4
|
+
|
|
5
|
+
(function_declarator declarator: (identifier) @identifier)
|
|
6
|
+
|
|
7
|
+
(function_declarator declarator: (field_identifier) @identifier)
|
|
8
|
+
|
|
9
|
+
(function_declarator declarator: (qualified_identifier scope: (namespace_identifier) name: (identifier) @identifier))
|
|
10
|
+
|
|
11
|
+
(type_definition declarator: (type_identifier) @identifier)
|
|
12
|
+
|
|
13
|
+
(enum_specifier name: (type_identifier) @identifier)
|
|
14
|
+
|
|
15
|
+
(class_specifier name: (type_identifier) @identifier)
|
|
16
|
+
|
|
17
|
+
; Function calls
|
|
18
|
+
(call_expression
|
|
19
|
+
function: (identifier) @call.identifier)
|
|
20
|
+
|
|
21
|
+
(call_expression
|
|
22
|
+
function: (field_expression field: (field_identifier) @call.identifier))
|
|
23
|
+
|
|
24
|
+
; Constructor calls
|
|
25
|
+
(class_specifier
|
|
26
|
+
name: (type_identifier) @call.identifier)
|
|
27
|
+
|
|
28
|
+
(new_expression
|
|
29
|
+
type: (type_identifier) @call.identifier)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(
|
|
2
|
+
(comment)*
|
|
3
|
+
.
|
|
4
|
+
(function_declaration
|
|
5
|
+
name: (identifier) @identifier)
|
|
6
|
+
)
|
|
7
|
+
|
|
8
|
+
(
|
|
9
|
+
(comment)*
|
|
10
|
+
.
|
|
11
|
+
(method_declaration
|
|
12
|
+
name: (field_identifier) @identifier)
|
|
13
|
+
)
|
|
14
|
+
|
|
15
|
+
(type_spec
|
|
16
|
+
name: (type_identifier) @identifier)
|
|
17
|
+
|
|
18
|
+
(type_identifier) @identifier
|
|
19
|
+
|
|
20
|
+
(call_expression
|
|
21
|
+
function: [
|
|
22
|
+
(identifier) @call.identifier
|
|
23
|
+
(parenthesized_expression (identifier) @call.identifier)
|
|
24
|
+
(selector_expression field: (field_identifier) @call.identifier)
|
|
25
|
+
(parenthesized_expression (selector_expression field: (field_identifier) @call.identifier))
|
|
26
|
+
])
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
(class_declaration
|
|
2
|
+
name: (identifier) @identifier)
|
|
3
|
+
|
|
4
|
+
(interface_declaration
|
|
5
|
+
name: (identifier) @identifier) @definition.interface
|
|
6
|
+
|
|
7
|
+
(method_declaration
|
|
8
|
+
name: (identifier) @identifier)
|
|
9
|
+
|
|
10
|
+
(method_invocation
|
|
11
|
+
name: (identifier) @call.identifier)
|
|
12
|
+
|
|
13
|
+
(type_list
|
|
14
|
+
(type_identifier) @call.identifier)
|
|
15
|
+
|
|
16
|
+
(object_creation_expression
|
|
17
|
+
type: (type_identifier) @call.identifier)
|
|
18
|
+
|
|
19
|
+
(superclass (type_identifier) @call.identifier)
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
(function_declaration name: (identifier) @identifier)
|
|
2
|
+
(class_declaration name: (identifier) @identifier)
|
|
3
|
+
(method_definition name: (property_identifier) @identifier)
|
|
4
|
+
|
|
5
|
+
(export_statement
|
|
6
|
+
declaration: (lexical_declaration
|
|
7
|
+
(variable_declarator
|
|
8
|
+
name: (identifier) @identifier)))
|
|
9
|
+
(export_statement
|
|
10
|
+
declaration: (variable_declaration
|
|
11
|
+
(variable_declarator
|
|
12
|
+
name: (identifier) @identifier)))
|
|
13
|
+
|
|
14
|
+
(call_expression function: (identifier) @call.identifier)
|
|
15
|
+
(call_expression function: (member_expression property: (property_identifier) @call.identifier))
|
|
16
|
+
(new_expression constructor: (identifier) @call.identifier)
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
; Method definitions
|
|
2
|
+
|
|
3
|
+
(
|
|
4
|
+
[
|
|
5
|
+
(method
|
|
6
|
+
name: (_) @identifier)
|
|
7
|
+
(singleton_method
|
|
8
|
+
name: (_) @identifier)
|
|
9
|
+
]
|
|
10
|
+
)
|
|
11
|
+
|
|
12
|
+
(alias
|
|
13
|
+
name: (_) @identifier)
|
|
14
|
+
|
|
15
|
+
; (setter
|
|
16
|
+
; (identifier) @identifier)
|
|
17
|
+
|
|
18
|
+
; Class definitions
|
|
19
|
+
|
|
20
|
+
(
|
|
21
|
+
(comment)*
|
|
22
|
+
.
|
|
23
|
+
[
|
|
24
|
+
(class
|
|
25
|
+
name: [
|
|
26
|
+
(constant) @identifier
|
|
27
|
+
(scope_resolution
|
|
28
|
+
name: (_) @identifier)
|
|
29
|
+
])
|
|
30
|
+
(singleton_class
|
|
31
|
+
value: [
|
|
32
|
+
(constant) @identifier
|
|
33
|
+
(scope_resolution
|
|
34
|
+
name: (_) @identifier)
|
|
35
|
+
])
|
|
36
|
+
]
|
|
37
|
+
)
|
|
38
|
+
|
|
39
|
+
; Module definitions
|
|
40
|
+
|
|
41
|
+
(
|
|
42
|
+
(module
|
|
43
|
+
name: [
|
|
44
|
+
(constant) @identifier
|
|
45
|
+
(scope_resolution
|
|
46
|
+
name: (_) @identifier)
|
|
47
|
+
])
|
|
48
|
+
)
|
|
49
|
+
|
|
50
|
+
; Calls
|
|
51
|
+
|
|
52
|
+
(call method: (identifier) @call.identifier)
|
|
53
|
+
|
|
54
|
+
(
|
|
55
|
+
[(identifier) (constant)] @call.identifier
|
|
56
|
+
(#is-not? local)
|
|
57
|
+
(#not-match? @call.identifier "^(lambda|load|require|require_relative|__FILE__|__LINE__)$")
|
|
58
|
+
)
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(struct_item name: (type_identifier) @identifier)
|
|
2
|
+
(enum_item name: (type_identifier) @identifier)
|
|
3
|
+
(union_item name: (type_identifier) @identifier)
|
|
4
|
+
(type_item name: (type_identifier) @identifier)
|
|
5
|
+
(trait_item name: (type_identifier) @identifier)
|
|
6
|
+
(function_item name: (identifier) @identifier)
|
|
7
|
+
(macro_definition name: (identifier) @identifier)
|
|
8
|
+
(mod_item name: (identifier) @identifier)
|
|
9
|
+
(const_item name: (identifier) @identifier)
|
|
10
|
+
(static_item name: (identifier) @identifier)
|
|
11
|
+
|
|
12
|
+
; Function and macro calls
|
|
13
|
+
(call_expression function: (identifier) @call.identifier)
|
|
14
|
+
(call_expression function: (field_expression field: (field_identifier) @call.identifier))
|
|
15
|
+
(macro_invocation macro: (identifier) @call.identifier)
|
|
16
|
+
|
|
17
|
+
; Struct instantiation
|
|
18
|
+
(struct_expression (type_identifier) @call.identifier)
|
|
19
|
+
|
|
20
|
+
; Enum variant usage
|
|
21
|
+
(scoped_identifier path: (identifier) name: (identifier) @call.identifier)
|
|
22
|
+
|
|
23
|
+
; implementations
|
|
24
|
+
|
|
25
|
+
(impl_item trait: (type_identifier) @call.identifier)
|
|
26
|
+
(impl_item type: (type_identifier) @call.identifier !trait)
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
(function_declaration name: (identifier) @identifier)
|
|
2
|
+
(class_declaration name: (type_identifier) @identifier)
|
|
3
|
+
(interface_declaration name: (type_identifier) @identifier)
|
|
4
|
+
(method_definition name: (property_identifier) @identifier)
|
|
5
|
+
|
|
6
|
+
(export_statement
|
|
7
|
+
declaration: (function_declaration
|
|
8
|
+
name: (identifier) @identifier))
|
|
9
|
+
|
|
10
|
+
(export_statement
|
|
11
|
+
declaration: (lexical_declaration
|
|
12
|
+
(variable_declarator
|
|
13
|
+
name: (identifier) @identifier)))
|
|
14
|
+
|
|
15
|
+
(export_statement
|
|
16
|
+
declaration: (variable_declaration
|
|
17
|
+
(variable_declarator
|
|
18
|
+
name: (identifier) @identifier)))
|
|
19
|
+
|
|
20
|
+
(call_expression function: (identifier) @call.identifier)
|
|
21
|
+
(call_expression function: (member_expression property: (property_identifier) @call.identifier))
|
|
22
|
+
(new_expression constructor: (identifier) @call.identifier)
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@vegalabs/cli",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"private": false,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"vega": "./bin/vega.cjs"
|
|
8
|
+
},
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"bun": "./src/entry.ts",
|
|
12
|
+
"import": "./dist/index.js",
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"default": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"dev": "bun run prebuild:agents && bun run src/entry.ts --cwd ..",
|
|
19
|
+
"prebuild:agents": "bun run scripts/prebuild-agents.ts",
|
|
20
|
+
"build:binary": "bun ./scripts/build-binary.ts vega $npm_package_version",
|
|
21
|
+
"release": "bun run scripts/release.ts",
|
|
22
|
+
"test": "NODE_ENV=production bun test $(bun run --silent test:files)",
|
|
23
|
+
"test:files": "find src \\( -name '*.test.ts' -o -name '*.test.tsx' \\) ! -name '*.integration.test.ts' ! -name '*.integration.test.tsx' 2>/dev/null | sort",
|
|
24
|
+
"test:files:integration": "find src \\( -name '*.integration.test.ts' -o -name '*.integration.test.tsx' \\) 2>/dev/null | sort",
|
|
25
|
+
"test:tmux-poc": "bun run src/__tests__/tmux-poc.ts",
|
|
26
|
+
"typecheck": "tsc --noEmit -p .",
|
|
27
|
+
"build:dist": "bun run scripts/build-dist.ts",
|
|
28
|
+
"prepack": "bun run build:dist"
|
|
29
|
+
},
|
|
30
|
+
"sideEffects": [
|
|
31
|
+
"./src/pre-init/*.ts"
|
|
32
|
+
],
|
|
33
|
+
"engines": {
|
|
34
|
+
"bun": ">=1.2"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@ai-sdk/provider": "^2.0.3",
|
|
38
|
+
"@ai-sdk/provider-utils": "^3.0.37",
|
|
39
|
+
"@modelcontextprotocol/sdk": "^1.30.0",
|
|
40
|
+
"@opentui/core": "0.3.4",
|
|
41
|
+
"@opentui/react": "0.3.4",
|
|
42
|
+
"@tanstack/react-query": "^5.102.8",
|
|
43
|
+
"ai": "^7.0.97",
|
|
44
|
+
"commander": "^14.0.3",
|
|
45
|
+
"diff": "^8.0.4",
|
|
46
|
+
"gpt-tokenizer": "^2.9.0",
|
|
47
|
+
"gray-matter": "^4.0.3",
|
|
48
|
+
"ignore": "^6.0.2",
|
|
49
|
+
"immer": "^10.2.0",
|
|
50
|
+
"ipaddr.js": "^1.9.1",
|
|
51
|
+
"jimp": "^1.6.0",
|
|
52
|
+
"lodash": "^4.17.23",
|
|
53
|
+
"micromatch": "^4.0.8",
|
|
54
|
+
"node-machine-id": "^1.1.12",
|
|
55
|
+
"open": "^10.2.0",
|
|
56
|
+
"picocolors": "^1.1.1",
|
|
57
|
+
"pino": "9.4.0",
|
|
58
|
+
"posthog-node": "^5.52.1",
|
|
59
|
+
"react": "^19.3.0",
|
|
60
|
+
"remark-breaks": "^4.0.0",
|
|
61
|
+
"remark-gfm": "^4.0.1",
|
|
62
|
+
"remark-parse": "^11.0.0",
|
|
63
|
+
"seedrandom": "^3.0.5",
|
|
64
|
+
"string-width": "^7.2.0",
|
|
65
|
+
"systeminformation": "^5.30.7",
|
|
66
|
+
"ts-pattern": "^5.9.0",
|
|
67
|
+
"unified": "^11.0.5",
|
|
68
|
+
"web-tree-sitter": "0.25.10",
|
|
69
|
+
"wsl-utils": "^0.1.0",
|
|
70
|
+
"zod": "^4.6.2",
|
|
71
|
+
"zod-from-json-schema": "^0.4.2",
|
|
72
|
+
"zustand": "^5.0.15"
|
|
73
|
+
},
|
|
74
|
+
"devDependencies": {
|
|
75
|
+
"@types/react": "19.2.14",
|
|
76
|
+
"@types/react-reconciler": "^0.32.0",
|
|
77
|
+
"react-dom": "^19.0.0",
|
|
78
|
+
"strip-ansi": "^7.1.2"
|
|
79
|
+
},
|
|
80
|
+
"description": "VEGA — AI coding agent for the terminal. BYOK: works with any OpenAI-compatible endpoint.",
|
|
81
|
+
"author": "VEGA contributors",
|
|
82
|
+
"license": "Apache-2.0",
|
|
83
|
+
"files": [
|
|
84
|
+
"dist",
|
|
85
|
+
"bin/vega.cjs",
|
|
86
|
+
"tree-sitter.wasm",
|
|
87
|
+
"README.md",
|
|
88
|
+
"LICENSE",
|
|
89
|
+
"NOTICE"
|
|
90
|
+
],
|
|
91
|
+
"repository": {
|
|
92
|
+
"type": "git",
|
|
93
|
+
"url": "git+https://github.com/CocoCopi/vega-cli.git",
|
|
94
|
+
"directory": "cli"
|
|
95
|
+
},
|
|
96
|
+
"homepage": "https://github.com/CocoCopi/vega-cli#readme",
|
|
97
|
+
"bugs": {
|
|
98
|
+
"url": "https://github.com/CocoCopi/vega-cli/issues"
|
|
99
|
+
},
|
|
100
|
+
"keywords": [
|
|
101
|
+
"vega",
|
|
102
|
+
"ai",
|
|
103
|
+
"coding-agent",
|
|
104
|
+
"cli",
|
|
105
|
+
"terminal",
|
|
106
|
+
"byok",
|
|
107
|
+
"llm"
|
|
108
|
+
]
|
|
109
|
+
}
|
package/tree-sitter.wasm
ADDED
|
Binary file
|