@unity-china/codely-cli 1.0.0-rc.54 → 1.0.0-rc.58
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/bundle/builtin-agents/unity-insight.toml +1 -1
- package/bundle/gemini.js +2078 -2138
- package/bundle/gemini.js.LEGAL.txt +59 -46
- package/bundle/gemini.nologgers.js.LEGAL.txt +607 -0
- package/bundle/gemini.nosentry.js.LEGAL.txt +607 -0
- package/bundle/loop-detection-policies/default.toml +3 -2
- package/bundle/node_modules/tree-sitter-bash/package.json +60 -0
- package/bundle/node_modules/tree-sitter-bash/tree-sitter-bash.wasm +0 -0
- package/bundle/node_modules/web-tree-sitter/package.json +98 -0
- package/bundle/node_modules/web-tree-sitter/tree-sitter.wasm +0 -0
- package/bundle/policies/plan.toml +5 -20
- package/bundle/sandbox-macos-permissive-closed.sb +1 -1
- package/bundle/sandbox-macos-permissive-open.sb +1 -1
- package/bundle/sandbox-macos-permissive-proxied.sb +2 -2
- package/bundle/sandbox-macos-restrictive-closed.sb +1 -1
- package/bundle/sandbox-macos-restrictive-open.sb +1 -1
- package/bundle/sandbox-macos-restrictive-proxied.sb +2 -2
- package/bundle/web-ui/dist/public/app.js +40 -40
- package/package.json +4 -6
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "web-tree-sitter",
|
|
3
|
+
"version": "0.25.10",
|
|
4
|
+
"description": "Tree-sitter bindings for the web",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/tree-sitter/tree-sitter.git",
|
|
8
|
+
"directory": "lib/binding_web"
|
|
9
|
+
},
|
|
10
|
+
"license": "MIT",
|
|
11
|
+
"author": {
|
|
12
|
+
"name": "Max Brunsfeld",
|
|
13
|
+
"email": "maxbrunsfeld@gmail.com"
|
|
14
|
+
},
|
|
15
|
+
"maintainers": [
|
|
16
|
+
{
|
|
17
|
+
"name": "Amaan Qureshi",
|
|
18
|
+
"email": "amaanq12@gmail.com"
|
|
19
|
+
}
|
|
20
|
+
],
|
|
21
|
+
"type": "module",
|
|
22
|
+
"exports": {
|
|
23
|
+
".": {
|
|
24
|
+
"import": "./tree-sitter.js",
|
|
25
|
+
"require": "./tree-sitter.cjs",
|
|
26
|
+
"types": "./web-tree-sitter.d.ts"
|
|
27
|
+
},
|
|
28
|
+
"./tree-sitter.wasm": "./tree-sitter.wasm",
|
|
29
|
+
"./debug": {
|
|
30
|
+
"import": "./debug/tree-sitter.js",
|
|
31
|
+
"require": "./debug/tree-sitter.cjs",
|
|
32
|
+
"types": "./web-tree-sitter.d.ts"
|
|
33
|
+
},
|
|
34
|
+
"./debug/tree-sitter.wasm": "./debug/tree-sitter.wasm"
|
|
35
|
+
},
|
|
36
|
+
"types": "web-tree-sitter.d.ts",
|
|
37
|
+
"keywords": [
|
|
38
|
+
"incremental",
|
|
39
|
+
"parsing",
|
|
40
|
+
"tree-sitter",
|
|
41
|
+
"wasm"
|
|
42
|
+
],
|
|
43
|
+
"files": [
|
|
44
|
+
"README.md",
|
|
45
|
+
"tree-sitter.cjs",
|
|
46
|
+
"tree-sitter.cjs.map",
|
|
47
|
+
"tree-sitter.js",
|
|
48
|
+
"tree-sitter.js.map",
|
|
49
|
+
"tree-sitter.wasm",
|
|
50
|
+
"tree-sitter.wasm.map",
|
|
51
|
+
"debug/tree-sitter.cjs",
|
|
52
|
+
"debug/tree-sitter.cjs.map",
|
|
53
|
+
"debug/tree-sitter.js",
|
|
54
|
+
"debug/tree-sitter.js.map",
|
|
55
|
+
"debug/tree-sitter.wasm",
|
|
56
|
+
"debug/tree-sitter.wasm.map",
|
|
57
|
+
"web-tree-sitter.d.ts",
|
|
58
|
+
"web-tree-sitter.d.ts.map",
|
|
59
|
+
"src/**/*.ts",
|
|
60
|
+
"lib/*.c",
|
|
61
|
+
"lib/*.h"
|
|
62
|
+
],
|
|
63
|
+
"devDependencies": {
|
|
64
|
+
"@eslint/js": "^9.20.0",
|
|
65
|
+
"@types/node": "^22.13.1",
|
|
66
|
+
"@vitest/coverage-v8": "^3.0.5",
|
|
67
|
+
"dts-buddy": "^0.5.4",
|
|
68
|
+
"esbuild": "^0.24.2",
|
|
69
|
+
"eslint": "^9.19.0",
|
|
70
|
+
"source-map": "^0.7.4",
|
|
71
|
+
"tsx": "^4.19.2",
|
|
72
|
+
"typescript": "^5.7.3",
|
|
73
|
+
"typescript-eslint": "^8.22.0",
|
|
74
|
+
"vitest": "^3.0.4"
|
|
75
|
+
},
|
|
76
|
+
"peerDependencies": {
|
|
77
|
+
"@types/emscripten": "^1.40.0"
|
|
78
|
+
},
|
|
79
|
+
"peerDependenciesMeta": {
|
|
80
|
+
"@types/emscripten": {
|
|
81
|
+
"optional": true
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"scripts": {
|
|
85
|
+
"build:ts": "tsc -b . && node script/build.js",
|
|
86
|
+
"build:wasm": "cd ../../ && cargo xtask build-wasm",
|
|
87
|
+
"build:wasm:debug": "cd ../../ && cargo xtask build-wasm --debug",
|
|
88
|
+
"build": "npm run build:wasm && npm run build:ts",
|
|
89
|
+
"build:debug": "npm run build:wasm:debug && npm run build:ts -- --debug",
|
|
90
|
+
"build:dts": "node script/generate-dts.js",
|
|
91
|
+
"lint": "eslint src/*.ts script/*.ts test/*.ts",
|
|
92
|
+
"lint:fix": "eslint src/*.ts script/*.ts test/*.ts --fix",
|
|
93
|
+
"test": "vitest run",
|
|
94
|
+
"test:watch": "vitest",
|
|
95
|
+
"prepack": "cp ../../LICENSE .",
|
|
96
|
+
"prepublishOnly": "tsx script/check-artifacts-fresh.ts"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
Binary file
|
|
@@ -86,18 +86,10 @@ decision = "allow"
|
|
|
86
86
|
priority = 70
|
|
87
87
|
modes = ["plan"]
|
|
88
88
|
|
|
89
|
-
# ---
|
|
90
|
-
# The
|
|
91
|
-
#
|
|
92
|
-
#
|
|
93
|
-
[[rule]]
|
|
94
|
-
toolName = "write_file"
|
|
95
|
-
decision = "allow"
|
|
96
|
-
priority = 70
|
|
97
|
-
modes = ["plan"]
|
|
98
|
-
argsPattern = "\"file_path\"\\s*:\\s*\"[^\"]*[/\\\\]+\\.codely-cli[/\\\\]+tmp[/\\\\]+[a-f0-9]{64}[/\\\\]+plans[/\\\\]+[a-zA-Z0-9_\\-][a-zA-Z0-9_\\-.]*\\.md\""
|
|
99
|
-
|
|
100
|
-
# write_file outside the plans directory requires approval (interactive)
|
|
89
|
+
# --- Plan file writes ---
|
|
90
|
+
# The path-specific ALLOW rules are added at runtime by policy-config.ts because
|
|
91
|
+
# the user-level Codely home can be relocated via CODELY_CLI_HOME.
|
|
92
|
+
# write_file outside the resolved plans root requires approval (interactive)
|
|
101
93
|
# or is denied (non-interactive via ask-downgrade)
|
|
102
94
|
[[rule]]
|
|
103
95
|
toolName = "write_file"
|
|
@@ -105,14 +97,7 @@ decision = "ask_user"
|
|
|
105
97
|
priority = 65
|
|
106
98
|
modes = ["plan"]
|
|
107
99
|
|
|
108
|
-
|
|
109
|
-
toolName = "replace"
|
|
110
|
-
decision = "allow"
|
|
111
|
-
priority = 70
|
|
112
|
-
modes = ["plan"]
|
|
113
|
-
argsPattern = "\"file_path\"\\s*:\\s*\"[^\"]*[/\\\\]+\\.codely-cli[/\\\\]+tmp[/\\\\]+[a-f0-9]{64}[/\\\\]+plans[/\\\\]+[a-zA-Z0-9_\\-][a-zA-Z0-9_\\-.]*\\.md\""
|
|
114
|
-
|
|
115
|
-
# replace outside the plans directory requires approval (interactive)
|
|
100
|
+
# replace outside the resolved plans root requires approval (interactive)
|
|
116
101
|
# or is denied (non-interactive via ask-downgrade)
|
|
117
102
|
[[rule]]
|
|
118
103
|
toolName = "replace"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
(subpath (param "TARGET_DIR"))
|
|
10
10
|
(subpath (param "TMP_DIR"))
|
|
11
11
|
(subpath (param "CACHE_DIR"))
|
|
12
|
-
(subpath (
|
|
12
|
+
(subpath (param "CODELY_HOME_DIR"))
|
|
13
13
|
(subpath (string-append (param "HOME_DIR") "/.npm"))
|
|
14
14
|
(subpath (string-append (param "HOME_DIR") "/.cache"))
|
|
15
15
|
(subpath (string-append (param "HOME_DIR") "/.gitconfig"))
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
(subpath (param "TARGET_DIR"))
|
|
10
10
|
(subpath (param "TMP_DIR"))
|
|
11
11
|
(subpath (param "CACHE_DIR"))
|
|
12
|
-
(subpath (
|
|
12
|
+
(subpath (param "CODELY_HOME_DIR"))
|
|
13
13
|
(subpath (string-append (param "HOME_DIR") "/.npm"))
|
|
14
14
|
(subpath (string-append (param "HOME_DIR") "/.cache"))
|
|
15
15
|
(subpath (string-append (param "HOME_DIR") "/.gitconfig"))
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
(subpath (param "TARGET_DIR"))
|
|
10
10
|
(subpath (param "TMP_DIR"))
|
|
11
11
|
(subpath (param "CACHE_DIR"))
|
|
12
|
-
(subpath (
|
|
12
|
+
(subpath (param "CODELY_HOME_DIR"))
|
|
13
13
|
(subpath (string-append (param "HOME_DIR") "/.npm"))
|
|
14
14
|
(subpath (string-append (param "HOME_DIR") "/.cache"))
|
|
15
15
|
(subpath (string-append (param "HOME_DIR") "/.gitconfig"))
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
(allow network-inbound (local ip "localhost:9229"))
|
|
30
30
|
|
|
31
31
|
;; deny all outbound network traffic EXCEPT through proxy on localhost:8877
|
|
32
|
-
;; set `
|
|
32
|
+
;; set `CODELY_SANDBOX_PROXY_COMMAND=<command>` to run proxy alongside sandbox
|
|
33
33
|
;; proxy must listen on :::8877 (see docs/examples/proxy-script.md)
|
|
34
34
|
(deny network-outbound)
|
|
35
35
|
(allow network-outbound (remote tcp "localhost:8877"))
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
(subpath (param "TARGET_DIR"))
|
|
68
68
|
(subpath (param "TMP_DIR"))
|
|
69
69
|
(subpath (param "CACHE_DIR"))
|
|
70
|
-
(subpath (
|
|
70
|
+
(subpath (param "CODELY_HOME_DIR"))
|
|
71
71
|
(subpath (string-append (param "HOME_DIR") "/.npm"))
|
|
72
72
|
(subpath (string-append (param "HOME_DIR") "/.cache"))
|
|
73
73
|
(subpath (string-append (param "HOME_DIR") "/.gitconfig"))
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
(subpath (param "TARGET_DIR"))
|
|
68
68
|
(subpath (param "TMP_DIR"))
|
|
69
69
|
(subpath (param "CACHE_DIR"))
|
|
70
|
-
(subpath (
|
|
70
|
+
(subpath (param "CODELY_HOME_DIR"))
|
|
71
71
|
(subpath (string-append (param "HOME_DIR") "/.npm"))
|
|
72
72
|
(subpath (string-append (param "HOME_DIR") "/.cache"))
|
|
73
73
|
(subpath (string-append (param "HOME_DIR") "/.gitconfig"))
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
(subpath (param "TARGET_DIR"))
|
|
68
68
|
(subpath (param "TMP_DIR"))
|
|
69
69
|
(subpath (param "CACHE_DIR"))
|
|
70
|
-
(subpath (
|
|
70
|
+
(subpath (param "CODELY_HOME_DIR"))
|
|
71
71
|
(subpath (string-append (param "HOME_DIR") "/.npm"))
|
|
72
72
|
(subpath (string-append (param "HOME_DIR") "/.cache"))
|
|
73
73
|
(subpath (string-append (param "HOME_DIR") "/.gitconfig"))
|
|
@@ -93,6 +93,6 @@
|
|
|
93
93
|
(allow network-inbound (local ip "localhost:9229"))
|
|
94
94
|
|
|
95
95
|
;; allow outbound network traffic through proxy on localhost:8877
|
|
96
|
-
;; set `
|
|
96
|
+
;; set `CODELY_SANDBOX_PROXY_COMMAND=<command>` to run proxy alongside sandbox
|
|
97
97
|
;; proxy must listen on :::8877 (see docs/examples/proxy-script.md)
|
|
98
98
|
(allow network-outbound (remote tcp "localhost:8877"))
|