hwjcode-personal 1.1.121
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/README.md +278 -0
- package/bundle/assets/help/cli-help-knowledge.md +1933 -0
- package/bundle/assets/sounds/confirmation-required.wav +0 -0
- package/bundle/assets/sounds/response-complete.wav +0 -0
- package/bundle/assets/sounds/selection-made.wav +0 -0
- package/bundle/fix-binary-permissions.js +215 -0
- package/bundle/hwjcode.js +8247 -0
- package/bundle/login/templates/authSelectPage.html +1332 -0
- package/bundle/login/templates/deepv.ico +0 -0
- package/bundle/login/templates/feishu.ico +0 -0
- package/bundle/node_modules/@vscode/ripgrep/bin/darwin-arm64-rg +0 -0
- package/bundle/node_modules/@vscode/ripgrep/bin/darwin-x64-rg +0 -0
- package/bundle/node_modules/@vscode/ripgrep/bin/linux-arm-rg +0 -0
- package/bundle/node_modules/@vscode/ripgrep/bin/linux-arm64-rg +0 -0
- package/bundle/node_modules/@vscode/ripgrep/bin/linux-x64-rg +0 -0
- package/bundle/node_modules/@vscode/ripgrep/bin/rg +0 -0
- package/bundle/node_modules/@vscode/ripgrep/bin/win32-arm64-rg.exe +0 -0
- package/bundle/node_modules/@vscode/ripgrep/bin/win32-ia32-rg.exe +0 -0
- package/bundle/node_modules/@vscode/ripgrep/bin/win32-x64-rg.exe +0 -0
- package/bundle/node_modules/@vscode/ripgrep/lib/download.js +357 -0
- package/bundle/node_modules/@vscode/ripgrep/lib/index.d.ts +1 -0
- package/bundle/node_modules/@vscode/ripgrep/lib/index.js +42 -0
- package/bundle/node_modules/@vscode/ripgrep/lib/postinstall.js +121 -0
- package/bundle/node_modules/@vscode/ripgrep/package.json +24 -0
- package/bundle/node_modules/yoga-layout/dist/binaries/yoga-wasm-base64-esm.js +75 -0
- package/bundle/node_modules/yoga-layout/dist/src/generated/YGEnums.d.ts +189 -0
- package/bundle/node_modules/yoga-layout/dist/src/generated/YGEnums.js +211 -0
- package/bundle/node_modules/yoga-layout/dist/src/generated/YGEnums.js.map +1 -0
- package/bundle/node_modules/yoga-layout/dist/src/index.d.ts +12 -0
- package/bundle/node_modules/yoga-layout/dist/src/index.js +16 -0
- package/bundle/node_modules/yoga-layout/dist/src/index.js.map +1 -0
- package/bundle/node_modules/yoga-layout/dist/src/load.d.ts +11 -0
- package/bundle/node_modules/yoga-layout/dist/src/load.js +17 -0
- package/bundle/node_modules/yoga-layout/dist/src/load.js.map +1 -0
- package/bundle/node_modules/yoga-layout/dist/src/wrapAssembly.d.ts +155 -0
- package/bundle/node_modules/yoga-layout/dist/src/wrapAssembly.js +125 -0
- package/bundle/node_modules/yoga-layout/dist/src/wrapAssembly.js.map +1 -0
- package/bundle/node_modules/yoga-layout/package.json +53 -0
- package/bundle/package.json +5 -0
- package/bundle/sandbox-macos-permissive-closed.sb +26 -0
- package/bundle/sandbox-macos-permissive-open.sb +19 -0
- package/bundle/sandbox-macos-permissive-proxied.sb +31 -0
- package/bundle/sandbox-macos-restrictive-closed.sb +87 -0
- package/bundle/sandbox-macos-restrictive-open.sb +90 -0
- package/bundle/sandbox-macos-restrictive-proxied.sb +92 -0
- package/package.json +154 -0
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "yoga-layout",
|
|
3
|
+
"version": "3.2.1",
|
|
4
|
+
"description": "An embeddable and performant flexbox layout engine with bindings for multiple languages",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"author": "Meta Open Source",
|
|
7
|
+
"homepage": "https://yogalayout.dev/",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git@github.com:facebook/yoga.git"
|
|
11
|
+
},
|
|
12
|
+
"type": "module",
|
|
13
|
+
"main": "./dist/src/index.js",
|
|
14
|
+
"types": "./dist/src/index.d.ts",
|
|
15
|
+
"exports": {
|
|
16
|
+
".": "./dist/src/index.js",
|
|
17
|
+
"./load": "./dist/src/load.js"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist/binaries/**",
|
|
21
|
+
"dist/src/**",
|
|
22
|
+
"src/**"
|
|
23
|
+
],
|
|
24
|
+
"scripts": {
|
|
25
|
+
"benchmark": "just benchmark --config just.config.cjs",
|
|
26
|
+
"build": "just build --config just.config.cjs",
|
|
27
|
+
"clang-format": "just clang-format --config just.config.cjs",
|
|
28
|
+
"clang-format:fix": "just clang-format --fix --config just.config.cjs",
|
|
29
|
+
"clean": "just clean --config just.config.cjs",
|
|
30
|
+
"lint": "eslint .",
|
|
31
|
+
"lint:fix": "eslint . --fix",
|
|
32
|
+
"prepack": "just prepack --config just.config.cjs",
|
|
33
|
+
"test": "just test --config just.config.cjs",
|
|
34
|
+
"tsc": "tsc --noEmit"
|
|
35
|
+
},
|
|
36
|
+
"devDependencies": {
|
|
37
|
+
"@babel/cli": "^7.23.0",
|
|
38
|
+
"@babel/core": "^7.23.0",
|
|
39
|
+
"@babel/preset-env": "^7.23.0",
|
|
40
|
+
"@babel/preset-typescript": "^7.23.0",
|
|
41
|
+
"@types/jest": "^29.5.1",
|
|
42
|
+
"@types/node": "^16.18.25",
|
|
43
|
+
"@types/which": "^3.0.0",
|
|
44
|
+
"@yogalayout/cmake-bin": "3.28.0-1",
|
|
45
|
+
"babel-register-esm": "^1.2.5",
|
|
46
|
+
"clang-format": "^1.8.0",
|
|
47
|
+
"glob": "^10.4.2",
|
|
48
|
+
"jest": "^29.3.1",
|
|
49
|
+
"just-scripts": "^2.1.0",
|
|
50
|
+
"ninja-binaries": "^1.11.1",
|
|
51
|
+
"which": "^3.0.0"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
(version 1)
|
|
2
|
+
|
|
3
|
+
;; allow everything by default
|
|
4
|
+
(allow default)
|
|
5
|
+
|
|
6
|
+
;; deny all writes EXCEPT under specific paths
|
|
7
|
+
(deny file-write*)
|
|
8
|
+
(allow file-write*
|
|
9
|
+
(subpath (param "TARGET_DIR"))
|
|
10
|
+
(subpath (param "TMP_DIR"))
|
|
11
|
+
(subpath (param "CACHE_DIR"))
|
|
12
|
+
(subpath (string-append (param "HOME_DIR") "/.gemini"))
|
|
13
|
+
(subpath (string-append (param "HOME_DIR") "/.npm"))
|
|
14
|
+
(subpath (string-append (param "HOME_DIR") "/.cache"))
|
|
15
|
+
(subpath (string-append (param "HOME_DIR") "/.gitconfig"))
|
|
16
|
+
(literal "/dev/stdout")
|
|
17
|
+
(literal "/dev/stderr")
|
|
18
|
+
(literal "/dev/null")
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
;; deny all inbound network traffic EXCEPT on debugger port
|
|
22
|
+
(deny network-inbound)
|
|
23
|
+
(allow network-inbound (local ip "localhost:9229"))
|
|
24
|
+
|
|
25
|
+
;; deny all outbound network traffic
|
|
26
|
+
(deny network-outbound)
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
(version 1)
|
|
2
|
+
|
|
3
|
+
;; allow everything by default
|
|
4
|
+
(allow default)
|
|
5
|
+
|
|
6
|
+
;; deny all writes EXCEPT under specific paths
|
|
7
|
+
(deny file-write*)
|
|
8
|
+
(allow file-write*
|
|
9
|
+
(subpath (param "TARGET_DIR"))
|
|
10
|
+
(subpath (param "TMP_DIR"))
|
|
11
|
+
(subpath (param "CACHE_DIR"))
|
|
12
|
+
(subpath (string-append (param "HOME_DIR") "/.gemini"))
|
|
13
|
+
(subpath (string-append (param "HOME_DIR") "/.npm"))
|
|
14
|
+
(subpath (string-append (param "HOME_DIR") "/.cache"))
|
|
15
|
+
(subpath (string-append (param "HOME_DIR") "/.gitconfig"))
|
|
16
|
+
(literal "/dev/stdout")
|
|
17
|
+
(literal "/dev/stderr")
|
|
18
|
+
(literal "/dev/null")
|
|
19
|
+
)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
(version 1)
|
|
2
|
+
|
|
3
|
+
;; allow everything by default
|
|
4
|
+
(allow default)
|
|
5
|
+
|
|
6
|
+
;; deny all writes EXCEPT under specific paths
|
|
7
|
+
(deny file-write*)
|
|
8
|
+
(allow file-write*
|
|
9
|
+
(subpath (param "TARGET_DIR"))
|
|
10
|
+
(subpath (param "TMP_DIR"))
|
|
11
|
+
(subpath (param "CACHE_DIR"))
|
|
12
|
+
(subpath (string-append (param "HOME_DIR") "/.gemini"))
|
|
13
|
+
(subpath (string-append (param "HOME_DIR") "/.npm"))
|
|
14
|
+
(subpath (string-append (param "HOME_DIR") "/.cache"))
|
|
15
|
+
(subpath (string-append (param "HOME_DIR") "/.gitconfig"))
|
|
16
|
+
(literal "/dev/stdout")
|
|
17
|
+
(literal "/dev/stderr")
|
|
18
|
+
(literal "/dev/null")
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
;; deny all inbound network traffic EXCEPT on debugger port
|
|
22
|
+
(deny network-inbound)
|
|
23
|
+
(allow network-inbound (local ip "localhost:9229"))
|
|
24
|
+
|
|
25
|
+
;; deny all outbound network traffic EXCEPT through proxy on localhost:8877
|
|
26
|
+
;; set `GEMINI_SANDBOX_PROXY_COMMAND=<command>` to run proxy alongside sandbox
|
|
27
|
+
;; proxy must listen on :::8877 (see docs/examples/proxy-script.md)
|
|
28
|
+
(deny network-outbound)
|
|
29
|
+
(allow network-outbound (remote tcp "localhost:8877"))
|
|
30
|
+
|
|
31
|
+
(allow network-bind (local ip "*:*"))
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
(version 1)
|
|
2
|
+
|
|
3
|
+
;; deny everything by default
|
|
4
|
+
(deny default)
|
|
5
|
+
|
|
6
|
+
;; allow reading files from anywhere on host
|
|
7
|
+
(allow file-read*)
|
|
8
|
+
|
|
9
|
+
;; allow exec/fork (children inherit policy)
|
|
10
|
+
(allow process-exec)
|
|
11
|
+
(allow process-fork)
|
|
12
|
+
|
|
13
|
+
;; allow signals to self, e.g. SIGPIPE on write to closed pipe
|
|
14
|
+
(allow signal (target self))
|
|
15
|
+
|
|
16
|
+
;; allow read access to specific information about system
|
|
17
|
+
;; from https://source.chromium.org/chromium/chromium/src/+/main:sandbox/policy/mac/common.sb;l=273-319;drc=7b3962fe2e5fc9e2ee58000dc8fbf3429d84d3bd
|
|
18
|
+
(allow sysctl-read
|
|
19
|
+
(sysctl-name "hw.activecpu")
|
|
20
|
+
(sysctl-name "hw.busfrequency_compat")
|
|
21
|
+
(sysctl-name "hw.byteorder")
|
|
22
|
+
(sysctl-name "hw.cacheconfig")
|
|
23
|
+
(sysctl-name "hw.cachelinesize_compat")
|
|
24
|
+
(sysctl-name "hw.cpufamily")
|
|
25
|
+
(sysctl-name "hw.cpufrequency_compat")
|
|
26
|
+
(sysctl-name "hw.cputype")
|
|
27
|
+
(sysctl-name "hw.l1dcachesize_compat")
|
|
28
|
+
(sysctl-name "hw.l1icachesize_compat")
|
|
29
|
+
(sysctl-name "hw.l2cachesize_compat")
|
|
30
|
+
(sysctl-name "hw.l3cachesize_compat")
|
|
31
|
+
(sysctl-name "hw.logicalcpu_max")
|
|
32
|
+
(sysctl-name "hw.machine")
|
|
33
|
+
(sysctl-name "hw.ncpu")
|
|
34
|
+
(sysctl-name "hw.nperflevels")
|
|
35
|
+
(sysctl-name "hw.optional.arm.FEAT_BF16")
|
|
36
|
+
(sysctl-name "hw.optional.arm.FEAT_DotProd")
|
|
37
|
+
(sysctl-name "hw.optional.arm.FEAT_FCMA")
|
|
38
|
+
(sysctl-name "hw.optional.arm.FEAT_FHM")
|
|
39
|
+
(sysctl-name "hw.optional.arm.FEAT_FP16")
|
|
40
|
+
(sysctl-name "hw.optional.arm.FEAT_I8MM")
|
|
41
|
+
(sysctl-name "hw.optional.arm.FEAT_JSCVT")
|
|
42
|
+
(sysctl-name "hw.optional.arm.FEAT_LSE")
|
|
43
|
+
(sysctl-name "hw.optional.arm.FEAT_RDM")
|
|
44
|
+
(sysctl-name "hw.optional.arm.FEAT_SHA512")
|
|
45
|
+
(sysctl-name "hw.optional.armv8_2_sha512")
|
|
46
|
+
(sysctl-name "hw.packages")
|
|
47
|
+
(sysctl-name "hw.pagesize_compat")
|
|
48
|
+
(sysctl-name "hw.physicalcpu_max")
|
|
49
|
+
(sysctl-name "hw.tbfrequency_compat")
|
|
50
|
+
(sysctl-name "hw.vectorunit")
|
|
51
|
+
(sysctl-name "kern.hostname")
|
|
52
|
+
(sysctl-name "kern.maxfilesperproc")
|
|
53
|
+
(sysctl-name "kern.osproductversion")
|
|
54
|
+
(sysctl-name "kern.osrelease")
|
|
55
|
+
(sysctl-name "kern.ostype")
|
|
56
|
+
(sysctl-name "kern.osvariant_status")
|
|
57
|
+
(sysctl-name "kern.osversion")
|
|
58
|
+
(sysctl-name "kern.secure_kernel")
|
|
59
|
+
(sysctl-name "kern.usrstack64")
|
|
60
|
+
(sysctl-name "kern.version")
|
|
61
|
+
(sysctl-name "sysctl.proc_cputype")
|
|
62
|
+
(sysctl-name-prefix "hw.perflevel")
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
;; allow writes to specific paths
|
|
66
|
+
(allow file-write*
|
|
67
|
+
(subpath (param "TARGET_DIR"))
|
|
68
|
+
(subpath (param "TMP_DIR"))
|
|
69
|
+
(subpath (param "CACHE_DIR"))
|
|
70
|
+
(subpath (string-append (param "HOME_DIR") "/.gemini"))
|
|
71
|
+
(subpath (string-append (param "HOME_DIR") "/.npm"))
|
|
72
|
+
(subpath (string-append (param "HOME_DIR") "/.cache"))
|
|
73
|
+
(subpath (string-append (param "HOME_DIR") "/.gitconfig"))
|
|
74
|
+
(literal "/dev/stdout")
|
|
75
|
+
(literal "/dev/stderr")
|
|
76
|
+
(literal "/dev/null")
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
;; allow communication with sysmond for process listing (e.g. for pgrep)
|
|
80
|
+
(allow mach-lookup (global-name "com.apple.sysmond"))
|
|
81
|
+
|
|
82
|
+
;; enable terminal access required by ink
|
|
83
|
+
;; fixes setRawMode EPERM failure (at node:tty:81:24)
|
|
84
|
+
(allow file-ioctl (regex #"^/dev/tty.*"))
|
|
85
|
+
|
|
86
|
+
;; allow inbound network traffic on debugger port
|
|
87
|
+
(allow network-inbound (local ip "localhost:9229"))
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
(version 1)
|
|
2
|
+
|
|
3
|
+
;; deny everything by default
|
|
4
|
+
(deny default)
|
|
5
|
+
|
|
6
|
+
;; allow reading files from anywhere on host
|
|
7
|
+
(allow file-read*)
|
|
8
|
+
|
|
9
|
+
;; allow exec/fork (children inherit policy)
|
|
10
|
+
(allow process-exec)
|
|
11
|
+
(allow process-fork)
|
|
12
|
+
|
|
13
|
+
;; allow signals to self, e.g. SIGPIPE on write to closed pipe
|
|
14
|
+
(allow signal (target self))
|
|
15
|
+
|
|
16
|
+
;; allow read access to specific information about system
|
|
17
|
+
;; from https://source.chromium.org/chromium/chromium/src/+/main:sandbox/policy/mac/common.sb;l=273-319;drc=7b3962fe2e5fc9e2ee58000dc8fbf3429d84d3bd
|
|
18
|
+
(allow sysctl-read
|
|
19
|
+
(sysctl-name "hw.activecpu")
|
|
20
|
+
(sysctl-name "hw.busfrequency_compat")
|
|
21
|
+
(sysctl-name "hw.byteorder")
|
|
22
|
+
(sysctl-name "hw.cacheconfig")
|
|
23
|
+
(sysctl-name "hw.cachelinesize_compat")
|
|
24
|
+
(sysctl-name "hw.cpufamily")
|
|
25
|
+
(sysctl-name "hw.cpufrequency_compat")
|
|
26
|
+
(sysctl-name "hw.cputype")
|
|
27
|
+
(sysctl-name "hw.l1dcachesize_compat")
|
|
28
|
+
(sysctl-name "hw.l1icachesize_compat")
|
|
29
|
+
(sysctl-name "hw.l2cachesize_compat")
|
|
30
|
+
(sysctl-name "hw.l3cachesize_compat")
|
|
31
|
+
(sysctl-name "hw.logicalcpu_max")
|
|
32
|
+
(sysctl-name "hw.machine")
|
|
33
|
+
(sysctl-name "hw.ncpu")
|
|
34
|
+
(sysctl-name "hw.nperflevels")
|
|
35
|
+
(sysctl-name "hw.optional.arm.FEAT_BF16")
|
|
36
|
+
(sysctl-name "hw.optional.arm.FEAT_DotProd")
|
|
37
|
+
(sysctl-name "hw.optional.arm.FEAT_FCMA")
|
|
38
|
+
(sysctl-name "hw.optional.arm.FEAT_FHM")
|
|
39
|
+
(sysctl-name "hw.optional.arm.FEAT_FP16")
|
|
40
|
+
(sysctl-name "hw.optional.arm.FEAT_I8MM")
|
|
41
|
+
(sysctl-name "hw.optional.arm.FEAT_JSCVT")
|
|
42
|
+
(sysctl-name "hw.optional.arm.FEAT_LSE")
|
|
43
|
+
(sysctl-name "hw.optional.arm.FEAT_RDM")
|
|
44
|
+
(sysctl-name "hw.optional.arm.FEAT_SHA512")
|
|
45
|
+
(sysctl-name "hw.optional.armv8_2_sha512")
|
|
46
|
+
(sysctl-name "hw.packages")
|
|
47
|
+
(sysctl-name "hw.pagesize_compat")
|
|
48
|
+
(sysctl-name "hw.physicalcpu_max")
|
|
49
|
+
(sysctl-name "hw.tbfrequency_compat")
|
|
50
|
+
(sysctl-name "hw.vectorunit")
|
|
51
|
+
(sysctl-name "kern.hostname")
|
|
52
|
+
(sysctl-name "kern.maxfilesperproc")
|
|
53
|
+
(sysctl-name "kern.osproductversion")
|
|
54
|
+
(sysctl-name "kern.osrelease")
|
|
55
|
+
(sysctl-name "kern.ostype")
|
|
56
|
+
(sysctl-name "kern.osvariant_status")
|
|
57
|
+
(sysctl-name "kern.osversion")
|
|
58
|
+
(sysctl-name "kern.secure_kernel")
|
|
59
|
+
(sysctl-name "kern.usrstack64")
|
|
60
|
+
(sysctl-name "kern.version")
|
|
61
|
+
(sysctl-name "sysctl.proc_cputype")
|
|
62
|
+
(sysctl-name-prefix "hw.perflevel")
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
;; allow writes to specific paths
|
|
66
|
+
(allow file-write*
|
|
67
|
+
(subpath (param "TARGET_DIR"))
|
|
68
|
+
(subpath (param "TMP_DIR"))
|
|
69
|
+
(subpath (param "CACHE_DIR"))
|
|
70
|
+
(subpath (string-append (param "HOME_DIR") "/.gemini"))
|
|
71
|
+
(subpath (string-append (param "HOME_DIR") "/.npm"))
|
|
72
|
+
(subpath (string-append (param "HOME_DIR") "/.cache"))
|
|
73
|
+
(subpath (string-append (param "HOME_DIR") "/.gitconfig"))
|
|
74
|
+
(literal "/dev/stdout")
|
|
75
|
+
(literal "/dev/stderr")
|
|
76
|
+
(literal "/dev/null")
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
;; allow communication with sysmond for process listing (e.g. for pgrep)
|
|
80
|
+
(allow mach-lookup (global-name "com.apple.sysmond"))
|
|
81
|
+
|
|
82
|
+
;; enable terminal access required by ink
|
|
83
|
+
;; fixes setRawMode EPERM failure (at node:tty:81:24)
|
|
84
|
+
(allow file-ioctl (regex #"^/dev/tty.*"))
|
|
85
|
+
|
|
86
|
+
;; allow inbound network traffic on debugger port
|
|
87
|
+
(allow network-inbound (local ip "localhost:9229"))
|
|
88
|
+
|
|
89
|
+
;; allow all outbound network traffic
|
|
90
|
+
(allow network-outbound)
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
(version 1)
|
|
2
|
+
|
|
3
|
+
;; deny everything by default
|
|
4
|
+
(deny default)
|
|
5
|
+
|
|
6
|
+
;; allow reading files from anywhere on host
|
|
7
|
+
(allow file-read*)
|
|
8
|
+
|
|
9
|
+
;; allow exec/fork (children inherit policy)
|
|
10
|
+
(allow process-exec)
|
|
11
|
+
(allow process-fork)
|
|
12
|
+
|
|
13
|
+
;; allow signals to self, e.g. SIGPIPE on write to closed pipe
|
|
14
|
+
(allow signal (target self))
|
|
15
|
+
|
|
16
|
+
;; allow read access to specific information about system
|
|
17
|
+
;; from https://source.chromium.org/chromium/chromium/src/+/main:sandbox/policy/mac/common.sb;l=273-319;drc=7b3962fe2e5fc9e2ee58000dc8fbf3429d84d3bd
|
|
18
|
+
(allow sysctl-read
|
|
19
|
+
(sysctl-name "hw.activecpu")
|
|
20
|
+
(sysctl-name "hw.busfrequency_compat")
|
|
21
|
+
(sysctl-name "hw.byteorder")
|
|
22
|
+
(sysctl-name "hw.cacheconfig")
|
|
23
|
+
(sysctl-name "hw.cachelinesize_compat")
|
|
24
|
+
(sysctl-name "hw.cpufamily")
|
|
25
|
+
(sysctl-name "hw.cpufrequency_compat")
|
|
26
|
+
(sysctl-name "hw.cputype")
|
|
27
|
+
(sysctl-name "hw.l1dcachesize_compat")
|
|
28
|
+
(sysctl-name "hw.l1icachesize_compat")
|
|
29
|
+
(sysctl-name "hw.l2cachesize_compat")
|
|
30
|
+
(sysctl-name "hw.l3cachesize_compat")
|
|
31
|
+
(sysctl-name "hw.logicalcpu_max")
|
|
32
|
+
(sysctl-name "hw.machine")
|
|
33
|
+
(sysctl-name "hw.ncpu")
|
|
34
|
+
(sysctl-name "hw.nperflevels")
|
|
35
|
+
(sysctl-name "hw.optional.arm.FEAT_BF16")
|
|
36
|
+
(sysctl-name "hw.optional.arm.FEAT_DotProd")
|
|
37
|
+
(sysctl-name "hw.optional.arm.FEAT_FCMA")
|
|
38
|
+
(sysctl-name "hw.optional.arm.FEAT_FHM")
|
|
39
|
+
(sysctl-name "hw.optional.arm.FEAT_FP16")
|
|
40
|
+
(sysctl-name "hw.optional.arm.FEAT_I8MM")
|
|
41
|
+
(sysctl-name "hw.optional.arm.FEAT_JSCVT")
|
|
42
|
+
(sysctl-name "hw.optional.arm.FEAT_LSE")
|
|
43
|
+
(sysctl-name "hw.optional.arm.FEAT_RDM")
|
|
44
|
+
(sysctl-name "hw.optional.arm.FEAT_SHA512")
|
|
45
|
+
(sysctl-name "hw.optional.armv8_2_sha512")
|
|
46
|
+
(sysctl-name "hw.packages")
|
|
47
|
+
(sysctl-name "hw.pagesize_compat")
|
|
48
|
+
(sysctl-name "hw.physicalcpu_max")
|
|
49
|
+
(sysctl-name "hw.tbfrequency_compat")
|
|
50
|
+
(sysctl-name "hw.vectorunit")
|
|
51
|
+
(sysctl-name "kern.hostname")
|
|
52
|
+
(sysctl-name "kern.maxfilesperproc")
|
|
53
|
+
(sysctl-name "kern.osproductversion")
|
|
54
|
+
(sysctl-name "kern.osrelease")
|
|
55
|
+
(sysctl-name "kern.ostype")
|
|
56
|
+
(sysctl-name "kern.osvariant_status")
|
|
57
|
+
(sysctl-name "kern.osversion")
|
|
58
|
+
(sysctl-name "kern.secure_kernel")
|
|
59
|
+
(sysctl-name "kern.usrstack64")
|
|
60
|
+
(sysctl-name "kern.version")
|
|
61
|
+
(sysctl-name "sysctl.proc_cputype")
|
|
62
|
+
(sysctl-name-prefix "hw.perflevel")
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
;; allow writes to specific paths
|
|
66
|
+
(allow file-write*
|
|
67
|
+
(subpath (param "TARGET_DIR"))
|
|
68
|
+
(subpath (param "TMP_DIR"))
|
|
69
|
+
(subpath (param "CACHE_DIR"))
|
|
70
|
+
(subpath (string-append (param "HOME_DIR") "/.gemini"))
|
|
71
|
+
(subpath (string-append (param "HOME_DIR") "/.npm"))
|
|
72
|
+
(subpath (string-append (param "HOME_DIR") "/.cache"))
|
|
73
|
+
(subpath (string-append (param "HOME_DIR") "/.gitconfig"))
|
|
74
|
+
(literal "/dev/stdout")
|
|
75
|
+
(literal "/dev/stderr")
|
|
76
|
+
(literal "/dev/null")
|
|
77
|
+
)
|
|
78
|
+
|
|
79
|
+
;; allow communication with sysmond for process listing (e.g. for pgrep)
|
|
80
|
+
(allow mach-lookup (global-name "com.apple.sysmond"))
|
|
81
|
+
|
|
82
|
+
;; enable terminal access required by ink
|
|
83
|
+
;; fixes setRawMode EPERM failure (at node:tty:81:24)
|
|
84
|
+
(allow file-ioctl (regex #"^/dev/tty.*"))
|
|
85
|
+
|
|
86
|
+
;; allow inbound network traffic on debugger port
|
|
87
|
+
(allow network-inbound (local ip "localhost:9229"))
|
|
88
|
+
|
|
89
|
+
;; allow outbound network traffic through proxy on localhost:8877
|
|
90
|
+
;; set `GEMINI_SANDBOX_PROXY_COMMAND=<command>` to run proxy alongside sandbox
|
|
91
|
+
;; proxy must listen on :::8877 (see docs/examples/proxy-script.md)
|
|
92
|
+
(allow network-outbound (remote tcp "localhost:8877"))
|
package/package.json
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "hwjcode-personal",
|
|
3
|
+
"version": "1.1.121",
|
|
4
|
+
"engines": {
|
|
5
|
+
"node": ">=20.0.0"
|
|
6
|
+
},
|
|
7
|
+
"type": "module",
|
|
8
|
+
"workspaces": [
|
|
9
|
+
"packages/cli",
|
|
10
|
+
"packages/core"
|
|
11
|
+
],
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "git+https://github.com/hwj123hwj/hwjcode.git"
|
|
15
|
+
},
|
|
16
|
+
"keywords": [
|
|
17
|
+
"ai",
|
|
18
|
+
"coding-assistant",
|
|
19
|
+
"hwjcode",
|
|
20
|
+
"cli",
|
|
21
|
+
"gemini",
|
|
22
|
+
"code-generation",
|
|
23
|
+
"ai-assistant",
|
|
24
|
+
"developer-tools"
|
|
25
|
+
],
|
|
26
|
+
"author": "Easy Code Team",
|
|
27
|
+
"license": "Apache-2.0",
|
|
28
|
+
"homepage": "https://github.com/hwj123hwj/hwjcode#readme",
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/hwj123hwj/hwjcode/issues"
|
|
31
|
+
},
|
|
32
|
+
"config": {
|
|
33
|
+
"sandboxImageUri": "us-docker.pkg.dev/gemini-code-dev/gemini-cli/sandbox:0.1.13"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"start": "node scripts/start.js",
|
|
37
|
+
"dev": "cross-env FILE_DEBUG=1 LOG_TO_FILE=true DEEPX_SERVER_URL=http://localhost:4001/v1 DEEPX_WEB_URL=http://localhost:4001 node scripts/start.js",
|
|
38
|
+
"debug": "cross-env DEBUG=1 DEEPX_SERVER_URL=http://localhost:4001/v1 DEEPX_WEB_URL=http://localhost:4001 node --inspect-brk scripts/start.js",
|
|
39
|
+
"auth:npm": "npx google-artifactregistry-auth",
|
|
40
|
+
"auth:docker": "gcloud auth configure-docker us-west1-docker.pkg.dev",
|
|
41
|
+
"auth": "npm run auth:npm && npm run auth:docker",
|
|
42
|
+
"generate": "node scripts/generate-git-commit-info.js",
|
|
43
|
+
"build": "node scripts/build.js",
|
|
44
|
+
"build:packages": "npm run build --workspaces",
|
|
45
|
+
"bundle": "cross-env BUILD_ENV=production npm run build && cross-env BUILD_ENV=production node esbuild.config.js && cross-env BUILD_ENV=production node scripts/copy_bundle_assets.js",
|
|
46
|
+
"bundle:dev": "cross-env BUILD_ENV=development npm run build && cross-env BUILD_ENV=development node esbuild.config.js && cross-env BUILD_ENV=development node scripts/copy_bundle_assets.js",
|
|
47
|
+
"bundle:prod": "cross-env BUILD_ENV=production npm run build && cross-env BUILD_ENV=production node esbuild.config.js && cross-env BUILD_ENV=production DOWNLOAD_ALL_PLATFORMS=true node scripts/copy_bundle_assets.js",
|
|
48
|
+
"bundle:cross-platform:dev": "cross-env BUILD_ENV=development DOWNLOAD_ALL_PLATFORMS=true npm run build && cross-env BUILD_ENV=development node esbuild.config.js && cross-env BUILD_ENV=development DOWNLOAD_ALL_PLATFORMS=true node scripts/copy_bundle_assets.js",
|
|
49
|
+
"bundle:cross-platform:prod": "cross-env BUILD_ENV=production DOWNLOAD_ALL_PLATFORMS=true npm run build && cross-env BUILD_ENV=production node esbuild.config.js && cross-env BUILD_ENV=production DOWNLOAD_ALL_PLATFORMS=true node scripts/copy_bundle_assets.js",
|
|
50
|
+
"pack:dev": "cross-env ENABLE_CHECKPOINTING=true npm run bundle:cross-platform:dev && cross-env BUILD_ENV=development ENABLE_CHECKPOINTING=true node scripts/newpack.js",
|
|
51
|
+
"pack:prod": "cross-env ENABLE_CHECKPOINTING=true npm run bundle:cross-platform:prod && cross-env BUILD_ENV=production ENABLE_CHECKPOINTING=true node scripts/newpack.js",
|
|
52
|
+
"pack:prod:ci": "cross-env ENABLE_CHECKPOINTING=true npm run bundle:cross-platform:prod && cross-env BUILD_ENV=production ENABLE_CHECKPOINTING=true node scripts/newpack.js -- --no-version-bump",
|
|
53
|
+
"test": "npm run test --workspaces",
|
|
54
|
+
"test:ci": "npm run test:ci --workspaces --if-present && npm run test:scripts",
|
|
55
|
+
"test:scripts": "vitest run --config ./scripts/tests/vitest.config.ts",
|
|
56
|
+
"test:e2e": "npm run test:integration:sandbox:none -- --verbose --keep-output",
|
|
57
|
+
"test:integration:all": "npm run test:integration:sandbox:none && npm run test:integration:sandbox:docker && npm run test:integration:sandbox:podman",
|
|
58
|
+
"test:integration:sandbox:none": "GEMINI_SANDBOX=false node integration-tests/run-tests.js",
|
|
59
|
+
"test:integration:sandbox:docker": "GEMINI_SANDBOX=docker node integration-tests/run-tests.js",
|
|
60
|
+
"test:integration:sandbox:podman": "GEMINI_SANDBOX=podman node integration-tests/run-tests.js",
|
|
61
|
+
"lint": "eslint . --ext .ts,.tsx && eslint integration-tests",
|
|
62
|
+
"lint:fix": "eslint . --fix && eslint integration-tests --fix",
|
|
63
|
+
"lint:ci": "eslint . --ext .ts,.tsx --max-warnings 0 && eslint integration-tests --max-warnings 0",
|
|
64
|
+
"format": "prettier --write .",
|
|
65
|
+
"typecheck": "npm run typecheck --workspaces --if-present",
|
|
66
|
+
"preflight": "npm run clean && npm ci && npm run format && npm run lint:ci && npm run build && npm run typecheck && npm run test:ci",
|
|
67
|
+
"prepare": "node scripts/prepare.js",
|
|
68
|
+
"prepublishOnly": "node scripts/prepare-publish.js && cross-env BUILD_ENV=production NPM_PUBLISH_MODE=1 npm run bundle:prod",
|
|
69
|
+
"postpublish": "node scripts/restore-after-publish.js",
|
|
70
|
+
"prepare:package": "node scripts/prepare-package.js",
|
|
71
|
+
"release:version": "node scripts/version.js",
|
|
72
|
+
"telemetry": "node scripts/telemetry.js",
|
|
73
|
+
"clean": "node scripts/clean.js",
|
|
74
|
+
"env:production": "./scripts/switch-env.sh production",
|
|
75
|
+
"env:development": "./scripts/switch-env.sh development",
|
|
76
|
+
"env:test": "./scripts/switch-env.sh test"
|
|
77
|
+
},
|
|
78
|
+
"bin": {
|
|
79
|
+
"hwjcode-personal": "bundle/hwjcode.js"
|
|
80
|
+
},
|
|
81
|
+
"preferGlobal": true,
|
|
82
|
+
"files": [
|
|
83
|
+
"bundle/",
|
|
84
|
+
"README.md",
|
|
85
|
+
"LICENSE"
|
|
86
|
+
],
|
|
87
|
+
"devDependencies": {
|
|
88
|
+
"@testing-library/dom": "^10.4.1",
|
|
89
|
+
"@testing-library/react": "^16.3.1",
|
|
90
|
+
"@types/fs-extra": "^11.0.4",
|
|
91
|
+
"@types/micromatch": "^4.0.9",
|
|
92
|
+
"@types/mime-types": "^3.0.1",
|
|
93
|
+
"@types/minimatch": "^5.1.2",
|
|
94
|
+
"@types/mock-fs": "^4.13.4",
|
|
95
|
+
"@types/node": "^20.19.28",
|
|
96
|
+
"@types/pidusage": "^2.0.5",
|
|
97
|
+
"@types/shell-quote": "^1.7.5",
|
|
98
|
+
"@vitest/coverage-v8": "^3.2.6",
|
|
99
|
+
"chalk": "^5.6.2",
|
|
100
|
+
"cli-progress": "^3.12.0",
|
|
101
|
+
"concurrently": "^9.2.0",
|
|
102
|
+
"cross-env": "^7.0.3",
|
|
103
|
+
"esbuild": "^0.25.0",
|
|
104
|
+
"eslint": "^9.24.0",
|
|
105
|
+
"eslint-config-prettier": "^10.1.2",
|
|
106
|
+
"eslint-plugin-import": "^2.31.0",
|
|
107
|
+
"eslint-plugin-react": "^7.37.5",
|
|
108
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
109
|
+
"glob": "^10.4.5",
|
|
110
|
+
"globals": "^16.0.0",
|
|
111
|
+
"ink": "npm:@jrichman/ink@6.6.9",
|
|
112
|
+
"json": "^11.0.0",
|
|
113
|
+
"lodash": "^4.17.21",
|
|
114
|
+
"memfs": "^4.17.2",
|
|
115
|
+
"mock-fs": "^5.5.0",
|
|
116
|
+
"ora": "^9.0.0",
|
|
117
|
+
"prettier": "^3.5.3",
|
|
118
|
+
"react-devtools-core": "^6.1.2",
|
|
119
|
+
"typescript-eslint": "^8.30.1",
|
|
120
|
+
"vitest": "3.2.6",
|
|
121
|
+
"yargs": "17.7.2"
|
|
122
|
+
},
|
|
123
|
+
"dependencies": {
|
|
124
|
+
"@larksuiteoapi/node-sdk": "^1.66.0",
|
|
125
|
+
"@vscode/ripgrep": "^1.15.14",
|
|
126
|
+
"fs-extra": "^11.3.1",
|
|
127
|
+
"gradient-string": "^2.0.2",
|
|
128
|
+
"open": "^10.0.0",
|
|
129
|
+
"pidtree": "^0.6.0",
|
|
130
|
+
"pidusage": "^4.0.1",
|
|
131
|
+
"qrcode-terminal": "^0.12.0",
|
|
132
|
+
"undici": "^7.10.0"
|
|
133
|
+
},
|
|
134
|
+
"overrides": {
|
|
135
|
+
"eslint": {
|
|
136
|
+
"ajv": "^6.12.6"
|
|
137
|
+
},
|
|
138
|
+
"@eslint/eslintrc": {
|
|
139
|
+
"ajv": "^6.12.6"
|
|
140
|
+
},
|
|
141
|
+
"ajv": "^8.17.1",
|
|
142
|
+
"ink": "npm:@jrichman/ink@6.6.9",
|
|
143
|
+
"wrap-ansi": "^7.0.0",
|
|
144
|
+
"axios": "^1.16.0",
|
|
145
|
+
"js-yaml": "^4.1.0"
|
|
146
|
+
},
|
|
147
|
+
"allowScripts": {
|
|
148
|
+
"esbuild": true,
|
|
149
|
+
"fsevents": true,
|
|
150
|
+
"keytar": true,
|
|
151
|
+
"protobufjs": true,
|
|
152
|
+
"@vscode/ripgrep": true
|
|
153
|
+
}
|
|
154
|
+
}
|