@embedder/embedder 1.1.1 → 2.0.6
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/assets/_commonjsHelpers-C1uRMj_j.js +1 -0
- package/assets/cli-Ccqv_iE9.js +865 -0
- package/assets/devtools-B4JKPJyU.js +1 -0
- package/assets/index-B3hJUcJE.js +1 -0
- package/assets/index-BSFXqd02.js +1 -0
- package/assets/index-DjlgDVzW.js +1 -0
- package/cli.js +2 -0
- package/package.json +15 -96
- package/LICENSE +0 -36
- package/bundle/embedder.js +0 -618
- package/bundle/gdb-debugger-python/gdb_bridge.py +0 -392
- package/bundle/gdb-debugger-python/requirements.txt +0 -1
- package/bundle/postinstall-for-users.js +0 -515
- package/bundle/repomap-bridge.js +0 -6
- package/bundle/repomap-python/importance.py +0 -58
- package/bundle/repomap-python/queries/tree-sitter-language-pack/README.md +0 -9
- package/bundle/repomap-python/queries/tree-sitter-language-pack/arduino-tags.scm +0 -5
- package/bundle/repomap-python/queries/tree-sitter-language-pack/c-tags.scm +0 -9
- package/bundle/repomap-python/queries/tree-sitter-language-pack/chatito-tags.scm +0 -16
- package/bundle/repomap-python/queries/tree-sitter-language-pack/commonlisp-tags.scm +0 -122
- package/bundle/repomap-python/queries/tree-sitter-language-pack/cpp-tags.scm +0 -15
- package/bundle/repomap-python/queries/tree-sitter-language-pack/csharp-tags.scm +0 -26
- package/bundle/repomap-python/queries/tree-sitter-language-pack/d-tags.scm +0 -26
- package/bundle/repomap-python/queries/tree-sitter-language-pack/dart-tags.scm +0 -92
- package/bundle/repomap-python/queries/tree-sitter-language-pack/elisp-tags.scm +0 -5
- package/bundle/repomap-python/queries/tree-sitter-language-pack/elixir-tags.scm +0 -54
- package/bundle/repomap-python/queries/tree-sitter-language-pack/elm-tags.scm +0 -19
- package/bundle/repomap-python/queries/tree-sitter-language-pack/gleam-tags.scm +0 -41
- package/bundle/repomap-python/queries/tree-sitter-language-pack/go-tags.scm +0 -42
- package/bundle/repomap-python/queries/tree-sitter-language-pack/java-tags.scm +0 -20
- package/bundle/repomap-python/queries/tree-sitter-language-pack/javascript-tags.scm +0 -88
- package/bundle/repomap-python/queries/tree-sitter-language-pack/lua-tags.scm +0 -34
- package/bundle/repomap-python/queries/tree-sitter-language-pack/ocaml-tags.scm +0 -115
- package/bundle/repomap-python/queries/tree-sitter-language-pack/ocaml_interface-tags.scm +0 -98
- package/bundle/repomap-python/queries/tree-sitter-language-pack/pony-tags.scm +0 -39
- package/bundle/repomap-python/queries/tree-sitter-language-pack/properties-tags.scm +0 -5
- package/bundle/repomap-python/queries/tree-sitter-language-pack/python-tags.scm +0 -14
- package/bundle/repomap-python/queries/tree-sitter-language-pack/r-tags.scm +0 -21
- package/bundle/repomap-python/queries/tree-sitter-language-pack/racket-tags.scm +0 -12
- package/bundle/repomap-python/queries/tree-sitter-language-pack/ruby-tags.scm +0 -64
- package/bundle/repomap-python/queries/tree-sitter-language-pack/rust-tags.scm +0 -60
- package/bundle/repomap-python/queries/tree-sitter-language-pack/solidity-tags.scm +0 -43
- package/bundle/repomap-python/queries/tree-sitter-language-pack/swift-tags.scm +0 -51
- package/bundle/repomap-python/queries/tree-sitter-language-pack/udev-tags.scm +0 -20
- package/bundle/repomap-python/queries/tree-sitter-languages/README.md +0 -24
- package/bundle/repomap-python/queries/tree-sitter-languages/c-tags.scm +0 -9
- package/bundle/repomap-python/queries/tree-sitter-languages/c_sharp-tags.scm +0 -46
- package/bundle/repomap-python/queries/tree-sitter-languages/cpp-tags.scm +0 -15
- package/bundle/repomap-python/queries/tree-sitter-languages/dart-tags.scm +0 -91
- package/bundle/repomap-python/queries/tree-sitter-languages/elisp-tags.scm +0 -8
- package/bundle/repomap-python/queries/tree-sitter-languages/elixir-tags.scm +0 -54
- package/bundle/repomap-python/queries/tree-sitter-languages/elm-tags.scm +0 -19
- package/bundle/repomap-python/queries/tree-sitter-languages/go-tags.scm +0 -30
- package/bundle/repomap-python/queries/tree-sitter-languages/hcl-tags.scm +0 -77
- package/bundle/repomap-python/queries/tree-sitter-languages/java-tags.scm +0 -20
- package/bundle/repomap-python/queries/tree-sitter-languages/javascript-tags.scm +0 -88
- package/bundle/repomap-python/queries/tree-sitter-languages/kotlin-tags.scm +0 -27
- package/bundle/repomap-python/queries/tree-sitter-languages/ocaml-tags.scm +0 -115
- package/bundle/repomap-python/queries/tree-sitter-languages/ocaml_interface-tags.scm +0 -98
- package/bundle/repomap-python/queries/tree-sitter-languages/php-tags.scm +0 -26
- package/bundle/repomap-python/queries/tree-sitter-languages/python-tags.scm +0 -12
- package/bundle/repomap-python/queries/tree-sitter-languages/ql-tags.scm +0 -26
- package/bundle/repomap-python/queries/tree-sitter-languages/ruby-tags.scm +0 -64
- package/bundle/repomap-python/queries/tree-sitter-languages/rust-tags.scm +0 -60
- package/bundle/repomap-python/queries/tree-sitter-languages/scala-tags.scm +0 -65
- package/bundle/repomap-python/queries/tree-sitter-languages/typescript-tags.scm +0 -41
- package/bundle/repomap-python/repomap.py +0 -229
- package/bundle/repomap-python/repomap_bridge.py +0 -234
- package/bundle/repomap-python/repomap_class.py +0 -637
- package/bundle/repomap-python/repomap_server.py +0 -561
- package/bundle/repomap-python/requirements.txt +0 -7
- package/bundle/repomap-python/scm.py +0 -59
- package/bundle/repomap-python/utils.py +0 -58
- package/bundle/sandbox-macos-permissive-closed.sb +0 -26
- package/bundle/sandbox-macos-permissive-open.sb +0 -19
- package/bundle/sandbox-macos-permissive-proxied.sb +0 -31
- package/bundle/sandbox-macos-restrictive-closed.sb +0 -87
- package/bundle/sandbox-macos-restrictive-open.sb +0 -90
- package/bundle/sandbox-macos-restrictive-proxied.sb +0 -92
- package/postinstall.js +0 -42
|
@@ -1,26 +0,0 @@
|
|
|
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") "/.embedder"))
|
|
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)
|
|
@@ -1,19 +0,0 @@
|
|
|
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") "/.embedder"))
|
|
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
|
-
)
|
|
@@ -1,31 +0,0 @@
|
|
|
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") "/.embedder"))
|
|
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 "*:*"))
|
|
@@ -1,87 +0,0 @@
|
|
|
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") "/.embedder"))
|
|
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"))
|
|
@@ -1,90 +0,0 @@
|
|
|
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") "/.embedder"))
|
|
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)
|
|
@@ -1,92 +0,0 @@
|
|
|
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") "/.embedder"))
|
|
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/postinstall.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
/**
|
|
3
|
-
* Cross-platform postinstall runner.
|
|
4
|
-
* Prefers bundle/postinstall-for-users.js when present (tarball installs),
|
|
5
|
-
* falls back to scripts/postinstall-for-users.js for source installs.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { spawnSync } from 'child_process';
|
|
9
|
-
import { existsSync } from 'fs';
|
|
10
|
-
import { dirname, join } from 'path';
|
|
11
|
-
import { fileURLToPath } from 'url';
|
|
12
|
-
|
|
13
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
14
|
-
const __dirname = dirname(__filename);
|
|
15
|
-
|
|
16
|
-
const candidates = [
|
|
17
|
-
join(__dirname, 'bundle', 'postinstall-for-users.js'),
|
|
18
|
-
join(__dirname, 'scripts', 'postinstall-for-users.js'),
|
|
19
|
-
];
|
|
20
|
-
|
|
21
|
-
const target = candidates.find((p) => existsSync(p));
|
|
22
|
-
|
|
23
|
-
if (!target) {
|
|
24
|
-
console.log('No postinstall script found. Skipping.');
|
|
25
|
-
process.exit(0);
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
const result = spawnSync(process.execPath, [target], {
|
|
29
|
-
stdio: 'inherit',
|
|
30
|
-
shell: false,
|
|
31
|
-
windowsHide: true,
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
if (result.error) {
|
|
35
|
-
console.error('Failed to run postinstall script:', result.error.message);
|
|
36
|
-
if (process.env.FAIL_ON_PYTHON_ERROR === 'true') {
|
|
37
|
-
process.exit(1);
|
|
38
|
-
}
|
|
39
|
-
process.exit(0);
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
process.exit(typeof result.status === 'number' ? result.status : 0);
|