@standardagents/code 0.14.1 → 0.14.2-darwin-arm64
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/Standard Code Daemon.app/Contents/CodeResources +0 -0
- package/Standard Code Daemon.app/Contents/Helpers/tmux +0 -0
- package/Standard Code Daemon.app/Contents/Info.plist +42 -0
- package/Standard Code Daemon.app/Contents/MacOS/standardd +0 -0
- package/Standard Code Daemon.app/Contents/Resources/tmux/TMUX-ARTIFACT-MANIFEST.sha256 +6 -0
- package/Standard Code Daemon.app/Contents/Resources/tmux/TMUX-ARTIFACT-METADATA.txt +23 -0
- package/Standard Code Daemon.app/Contents/Resources/tmux/TMUX-BUILD-TOOLS.txt +11 -0
- package/Standard Code Daemon.app/Contents/Resources/tmux/TMUX-OTOOL-L.txt +4 -0
- package/Standard Code Daemon.app/Contents/Resources/tmux/TMUX-SIGNED-RUNTIME.sha256 +1 -0
- package/Standard Code Daemon.app/Contents/Resources/tmux/licenses/libevent.txt +99 -0
- package/Standard Code Daemon.app/Contents/Resources/tmux/licenses/tmux.txt +13 -0
- package/Standard Code Daemon.app/Contents/_CodeSignature/CodeResources +203 -0
- package/Standard Code.app/Contents/CodeResources +0 -0
- package/Standard Code.app/Contents/Info.plist +42 -0
- package/Standard Code.app/Contents/MacOS/standard +0 -0
- package/Standard Code.app/Contents/_CodeSignature/CodeResources +115 -0
- package/licenses/THIRD-PARTY.txt +119 -0
- package/manifest.json +1 -0
- package/manifest.sig +1 -0
- package/package.json +16 -28
- package/bin/standard.mjs +0 -4
- package/bin/standardd.mjs +0 -4
- package/lib/artifact.mjs +0 -218
- package/lib/backend-profile.mjs +0 -114
- package/lib/launcher.mjs +0 -75
- package/lib/platform.mjs +0 -50
- package/postinstall.mjs +0 -12
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDisplayName</key>
|
|
6
|
+
<string>Standard Code Daemon</string>
|
|
7
|
+
<key>CFBundleExecutable</key>
|
|
8
|
+
<string>standardd</string>
|
|
9
|
+
<key>CFBundleIdentifier</key>
|
|
10
|
+
<string>ai.standardcode.standardd</string>
|
|
11
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
12
|
+
<string>6.0</string>
|
|
13
|
+
<key>CFBundleName</key>
|
|
14
|
+
<string>Standard Code Daemon</string>
|
|
15
|
+
<key>CFBundlePackageType</key>
|
|
16
|
+
<string>APPL</string>
|
|
17
|
+
<key>CFBundleShortVersionString</key>
|
|
18
|
+
<string>0.14.2</string>
|
|
19
|
+
<key>CFBundleVersion</key>
|
|
20
|
+
<string>1</string>
|
|
21
|
+
<key>LSBackgroundOnly</key>
|
|
22
|
+
<true/>
|
|
23
|
+
<key>LSMinimumSystemVersion</key>
|
|
24
|
+
<string>11.0</string>
|
|
25
|
+
<key>NSLocalNetworkUsageDescription</key>
|
|
26
|
+
<string>Standard Code uses your local network to establish faster, encrypted direct connections to your other devices.</string>
|
|
27
|
+
<key>StandardCodeChannel</key>
|
|
28
|
+
<string>team</string>
|
|
29
|
+
<key>StandardCodeCommit</key>
|
|
30
|
+
<string>89a5a75f1ec0949a1ae901c7316179aa7727a348</string>
|
|
31
|
+
<key>StandardCodeComponent</key>
|
|
32
|
+
<string>standardd</string>
|
|
33
|
+
<key>StandardCodeRelease</key>
|
|
34
|
+
<string>npm-89a5a75f1ec0</string>
|
|
35
|
+
<key>StandardCodeTmuxSHA256</key>
|
|
36
|
+
<string>2f6ba676fd95fe5ca5ab0cd54f746eda02663471e167f14f60f7fbca19b0c648</string>
|
|
37
|
+
<key>StandardCodeUnixProtocol</key>
|
|
38
|
+
<integer>1</integer>
|
|
39
|
+
<key>StandardCodeVersion</key>
|
|
40
|
+
<string>0.14.2</string>
|
|
41
|
+
</dict>
|
|
42
|
+
</plist>
|
|
Binary file
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
32e74b689e0f1353fa20c6d714a5d1f45c88d8757f46094361928111ee5c0ae0 TMUX-ARTIFACT-METADATA.txt
|
|
2
|
+
75e5bf01ea23453cc6ba0f8e8ebb3d46642ff0535caa38b0b00d890c316899f8 TMUX-BUILD-TOOLS.txt
|
|
3
|
+
c605dc056bca03c6bfd54ce657b59dfa77e3da6808f9198f18327383c3feb96a TMUX-OTOOL-L.txt
|
|
4
|
+
96a642638b68f6f03ba5825a59c0c56a70d93c8a77ba17edbfeece69578f77e5 bin/tmux
|
|
5
|
+
ff02effc9b331edcdac387d198691bfa3e575e7d244ad10cb826aa51ef085670 licenses/libevent.txt
|
|
6
|
+
2116115d46eeb1e736acfa562eed14fe6c34760794bc5b484642fe694adde0fd licenses/tmux.txt
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
artifact_format=standard-tmux-artifact-v1
|
|
2
|
+
platform=darwin
|
|
3
|
+
architecture=arm64
|
|
4
|
+
deployment_target=13.0
|
|
5
|
+
tmux_version=3.7
|
|
6
|
+
tmux_url=https://github.com/tmux/tmux/releases/download/3.7/tmux-3.7.tar.gz
|
|
7
|
+
tmux_sha256=2344f191501b8a73eb71dd6c5fd5dcf8c765f5066f34ab46f04b3013dc7bc1a5
|
|
8
|
+
tmux_archive_bytes=788832
|
|
9
|
+
libevent_version=2.1.12-stable
|
|
10
|
+
libevent_url=https://github.com/libevent/libevent/releases/download/release-2.1.12-stable/libevent-2.1.12-stable.tar.gz
|
|
11
|
+
libevent_sha256=92e6de1be9ec176428fd2367677e61ceffc2ee1cb119035037a27d346b0403bb
|
|
12
|
+
libevent_archive_bytes=1100847
|
|
13
|
+
libevent_pipe2=disabled
|
|
14
|
+
source_date_epoch=1779667200
|
|
15
|
+
toolchain_binding=TMUX-BUILD-TOOLS.txt
|
|
16
|
+
utf8proc=disabled
|
|
17
|
+
signed=false
|
|
18
|
+
binary_sha256=96a642638b68f6f03ba5825a59c0c56a70d93c8a77ba17edbfeece69578f77e5
|
|
19
|
+
build_tools_sha256=75e5bf01ea23453cc6ba0f8e8ebb3d46642ff0535caa38b0b00d890c316899f8
|
|
20
|
+
build_recipe_sha256=81663af07b9cbb3e7362c76c65e077179416e9d647acccd3e0b1f23f57e395e7
|
|
21
|
+
cache_key=e50e1dae9fcd83b28f3468cbbf99560771836aa548e4fee716b0ac4b902f5dbe
|
|
22
|
+
dynamic_dependencies=apple-system-only
|
|
23
|
+
release_signing=developer-id-during-bundle-assembly
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
build_tools_format=standard-tmux-build-tools-v1
|
|
2
|
+
host_platform=Darwin
|
|
3
|
+
host_architecture=arm64
|
|
4
|
+
macos_product_version=26.6.2
|
|
5
|
+
macos_build_version=25G83
|
|
6
|
+
sdk_version=26.5
|
|
7
|
+
cc_version=Apple clang version 21.0.0 (clang-2100.1.1.101)
|
|
8
|
+
make_version=GNU Make 3.81
|
|
9
|
+
tar_version=bsdtar 3.5.3 - libarchive 3.7.4 zlib/1.2.12 liblzma/5.4.3 bz2lib/1.0.8
|
|
10
|
+
deployment_target=13.0
|
|
11
|
+
source_date_epoch=1779667200
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2f6ba676fd95fe5ca5ab0cd54f746eda02663471e167f14f60f7fbca19b0c648
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
Libevent is available for use under the following license, commonly known
|
|
2
|
+
as the 3-clause (or "modified") BSD license:
|
|
3
|
+
|
|
4
|
+
==============================
|
|
5
|
+
Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
|
|
6
|
+
Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
|
|
7
|
+
|
|
8
|
+
Redistribution and use in source and binary forms, with or without
|
|
9
|
+
modification, are permitted provided that the following conditions
|
|
10
|
+
are met:
|
|
11
|
+
1. Redistributions of source code must retain the above copyright
|
|
12
|
+
notice, this list of conditions and the following disclaimer.
|
|
13
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
14
|
+
notice, this list of conditions and the following disclaimer in the
|
|
15
|
+
documentation and/or other materials provided with the distribution.
|
|
16
|
+
3. The name of the author may not be used to endorse or promote products
|
|
17
|
+
derived from this software without specific prior written permission.
|
|
18
|
+
|
|
19
|
+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
20
|
+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
21
|
+
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
22
|
+
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
23
|
+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
24
|
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
25
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
26
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
27
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
28
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
29
|
+
==============================
|
|
30
|
+
|
|
31
|
+
Portions of Libevent are based on works by others, also made available by
|
|
32
|
+
them under the three-clause BSD license above. The copyright notices are
|
|
33
|
+
available in the corresponding source files; the license is as above. Here's
|
|
34
|
+
a list:
|
|
35
|
+
|
|
36
|
+
log.c:
|
|
37
|
+
Copyright (c) 2000 Dug Song <dugsong@monkey.org>
|
|
38
|
+
Copyright (c) 1993 The Regents of the University of California.
|
|
39
|
+
|
|
40
|
+
strlcpy.c:
|
|
41
|
+
Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
|
|
42
|
+
|
|
43
|
+
win32select.c:
|
|
44
|
+
Copyright (c) 2003 Michael A. Davis <mike@datanerds.net>
|
|
45
|
+
|
|
46
|
+
evport.c:
|
|
47
|
+
Copyright (c) 2007 Sun Microsystems
|
|
48
|
+
|
|
49
|
+
ht-internal.h:
|
|
50
|
+
Copyright (c) 2002 Christopher Clark
|
|
51
|
+
|
|
52
|
+
minheap-internal.h:
|
|
53
|
+
Copyright (c) 2006 Maxim Yegorushkin <maxim.yegorushkin@gmail.com>
|
|
54
|
+
|
|
55
|
+
==============================
|
|
56
|
+
|
|
57
|
+
The arc4module is available under the following, sometimes called the
|
|
58
|
+
"OpenBSD" license:
|
|
59
|
+
|
|
60
|
+
Copyright (c) 1996, David Mazieres <dm@uun.org>
|
|
61
|
+
Copyright (c) 2008, Damien Miller <djm@openbsd.org>
|
|
62
|
+
|
|
63
|
+
Permission to use, copy, modify, and distribute this software for any
|
|
64
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
65
|
+
copyright notice and this permission notice appear in all copies.
|
|
66
|
+
|
|
67
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
68
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
69
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
70
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
71
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
72
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
73
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
74
|
+
|
|
75
|
+
==============================
|
|
76
|
+
|
|
77
|
+
The Windows timer code is based on code from libutp, which is
|
|
78
|
+
distributed under this license, sometimes called the "MIT" license.
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
Copyright (c) 2010 BitTorrent, Inc.
|
|
82
|
+
|
|
83
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
84
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
85
|
+
in the Software without restriction, including without limitation the rights
|
|
86
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
87
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
88
|
+
furnished to do so, subject to the following conditions:
|
|
89
|
+
|
|
90
|
+
The above copyright notice and this permission notice shall be included in
|
|
91
|
+
all copies or substantial portions of the Software.
|
|
92
|
+
|
|
93
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
94
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
95
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
96
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
97
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
98
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
99
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright (c) Various Authors
|
|
2
|
+
|
|
3
|
+
Permission to use, copy, modify, and distribute this software for any
|
|
4
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
5
|
+
copyright notice and this permission notice appear in all copies.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
8
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
9
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
10
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
11
|
+
WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
|
|
12
|
+
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
|
13
|
+
OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,203 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>files</key>
|
|
6
|
+
<dict>
|
|
7
|
+
<key>Resources/tmux/TMUX-ARTIFACT-MANIFEST.sha256</key>
|
|
8
|
+
<data>
|
|
9
|
+
kESj5i6FmjgfkzuglstFavIM1so=
|
|
10
|
+
</data>
|
|
11
|
+
<key>Resources/tmux/TMUX-ARTIFACT-METADATA.txt</key>
|
|
12
|
+
<data>
|
|
13
|
+
MtCUjGVr1Q+w85JeBmJodWcJN+k=
|
|
14
|
+
</data>
|
|
15
|
+
<key>Resources/tmux/TMUX-BUILD-TOOLS.txt</key>
|
|
16
|
+
<data>
|
|
17
|
+
VJcmcv/XLV1EK1bFKB32JfLK6w8=
|
|
18
|
+
</data>
|
|
19
|
+
<key>Resources/tmux/TMUX-OTOOL-L.txt</key>
|
|
20
|
+
<data>
|
|
21
|
+
8ztx2++vZJeMO18rPt7X5VkQsnM=
|
|
22
|
+
</data>
|
|
23
|
+
<key>Resources/tmux/TMUX-SIGNED-RUNTIME.sha256</key>
|
|
24
|
+
<data>
|
|
25
|
+
x1YGFIxlqL7g0HopY1/32prdDjQ=
|
|
26
|
+
</data>
|
|
27
|
+
<key>Resources/tmux/licenses/libevent.txt</key>
|
|
28
|
+
<data>
|
|
29
|
+
DzdTdLh3VQreLgAZBaH5ybcShxQ=
|
|
30
|
+
</data>
|
|
31
|
+
<key>Resources/tmux/licenses/tmux.txt</key>
|
|
32
|
+
<data>
|
|
33
|
+
IiVEsDh0LBePRUj+bZVDFm3wiLA=
|
|
34
|
+
</data>
|
|
35
|
+
</dict>
|
|
36
|
+
<key>files2</key>
|
|
37
|
+
<dict>
|
|
38
|
+
<key>Helpers/tmux</key>
|
|
39
|
+
<dict>
|
|
40
|
+
<key>cdhash</key>
|
|
41
|
+
<data>
|
|
42
|
+
Y+FtdXopi+ATATkQYLeD9A1Yy4Q=
|
|
43
|
+
</data>
|
|
44
|
+
<key>requirement</key>
|
|
45
|
+
<string>identifier "ai.standardcode.tmux" and anchor apple generic and certificate 1[field.1.2.840.113635.100.6.2.6] /* exists */ and certificate leaf[field.1.2.840.113635.100.6.1.13] /* exists */ and certificate leaf[subject.OU] = T98555J4F3</string>
|
|
46
|
+
</dict>
|
|
47
|
+
<key>Resources/tmux/TMUX-ARTIFACT-MANIFEST.sha256</key>
|
|
48
|
+
<dict>
|
|
49
|
+
<key>hash2</key>
|
|
50
|
+
<data>
|
|
51
|
+
W8VmcDUk2flBhX9Pi3NInL0zIY/tPqu6B/L6iugCg8o=
|
|
52
|
+
</data>
|
|
53
|
+
</dict>
|
|
54
|
+
<key>Resources/tmux/TMUX-ARTIFACT-METADATA.txt</key>
|
|
55
|
+
<dict>
|
|
56
|
+
<key>hash2</key>
|
|
57
|
+
<data>
|
|
58
|
+
MudLaJ4PE1P6IMbXFKXR9FyI2HV/RglDYZKBEe5cCuA=
|
|
59
|
+
</data>
|
|
60
|
+
</dict>
|
|
61
|
+
<key>Resources/tmux/TMUX-BUILD-TOOLS.txt</key>
|
|
62
|
+
<dict>
|
|
63
|
+
<key>hash2</key>
|
|
64
|
+
<data>
|
|
65
|
+
deW/AeojRTzGug+Ojrs9RmQv8FNcqjiwsA2JDDFomfg=
|
|
66
|
+
</data>
|
|
67
|
+
</dict>
|
|
68
|
+
<key>Resources/tmux/TMUX-OTOOL-L.txt</key>
|
|
69
|
+
<dict>
|
|
70
|
+
<key>hash2</key>
|
|
71
|
+
<data>
|
|
72
|
+
xgXcBWvKA8a/1UzmV7Wd+nfj2mgI+RmPGDJzg8P+uWo=
|
|
73
|
+
</data>
|
|
74
|
+
</dict>
|
|
75
|
+
<key>Resources/tmux/TMUX-SIGNED-RUNTIME.sha256</key>
|
|
76
|
+
<dict>
|
|
77
|
+
<key>hash2</key>
|
|
78
|
+
<data>
|
|
79
|
+
klwYrvS/Ecli9MTs0icNY1IorJ7RMOMr2EPOVYHbsgw=
|
|
80
|
+
</data>
|
|
81
|
+
</dict>
|
|
82
|
+
<key>Resources/tmux/licenses/libevent.txt</key>
|
|
83
|
+
<dict>
|
|
84
|
+
<key>hash2</key>
|
|
85
|
+
<data>
|
|
86
|
+
/wLv/JszHtzaw4fRmGkb+j5XXn0kStEMuCaqUe8IVnA=
|
|
87
|
+
</data>
|
|
88
|
+
</dict>
|
|
89
|
+
<key>Resources/tmux/licenses/tmux.txt</key>
|
|
90
|
+
<dict>
|
|
91
|
+
<key>hash2</key>
|
|
92
|
+
<data>
|
|
93
|
+
IRYRXUbusec2rPpWLu0U/mw0dgeUvFtIRkL+aUrd4P0=
|
|
94
|
+
</data>
|
|
95
|
+
</dict>
|
|
96
|
+
</dict>
|
|
97
|
+
<key>rules</key>
|
|
98
|
+
<dict>
|
|
99
|
+
<key>^Resources/</key>
|
|
100
|
+
<true/>
|
|
101
|
+
<key>^Resources/.*\.lproj/</key>
|
|
102
|
+
<dict>
|
|
103
|
+
<key>optional</key>
|
|
104
|
+
<true/>
|
|
105
|
+
<key>weight</key>
|
|
106
|
+
<real>1000</real>
|
|
107
|
+
</dict>
|
|
108
|
+
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
|
109
|
+
<dict>
|
|
110
|
+
<key>omit</key>
|
|
111
|
+
<true/>
|
|
112
|
+
<key>weight</key>
|
|
113
|
+
<real>1100</real>
|
|
114
|
+
</dict>
|
|
115
|
+
<key>^Resources/Base\.lproj/</key>
|
|
116
|
+
<dict>
|
|
117
|
+
<key>weight</key>
|
|
118
|
+
<real>1010</real>
|
|
119
|
+
</dict>
|
|
120
|
+
<key>^version.plist$</key>
|
|
121
|
+
<true/>
|
|
122
|
+
</dict>
|
|
123
|
+
<key>rules2</key>
|
|
124
|
+
<dict>
|
|
125
|
+
<key>.*\.dSYM($|/)</key>
|
|
126
|
+
<dict>
|
|
127
|
+
<key>weight</key>
|
|
128
|
+
<real>11</real>
|
|
129
|
+
</dict>
|
|
130
|
+
<key>^(.*/)?\.DS_Store$</key>
|
|
131
|
+
<dict>
|
|
132
|
+
<key>omit</key>
|
|
133
|
+
<true/>
|
|
134
|
+
<key>weight</key>
|
|
135
|
+
<real>2000</real>
|
|
136
|
+
</dict>
|
|
137
|
+
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
|
|
138
|
+
<dict>
|
|
139
|
+
<key>nested</key>
|
|
140
|
+
<true/>
|
|
141
|
+
<key>weight</key>
|
|
142
|
+
<real>10</real>
|
|
143
|
+
</dict>
|
|
144
|
+
<key>^.*</key>
|
|
145
|
+
<true/>
|
|
146
|
+
<key>^Info\.plist$</key>
|
|
147
|
+
<dict>
|
|
148
|
+
<key>omit</key>
|
|
149
|
+
<true/>
|
|
150
|
+
<key>weight</key>
|
|
151
|
+
<real>20</real>
|
|
152
|
+
</dict>
|
|
153
|
+
<key>^PkgInfo$</key>
|
|
154
|
+
<dict>
|
|
155
|
+
<key>omit</key>
|
|
156
|
+
<true/>
|
|
157
|
+
<key>weight</key>
|
|
158
|
+
<real>20</real>
|
|
159
|
+
</dict>
|
|
160
|
+
<key>^Resources/</key>
|
|
161
|
+
<dict>
|
|
162
|
+
<key>weight</key>
|
|
163
|
+
<real>20</real>
|
|
164
|
+
</dict>
|
|
165
|
+
<key>^Resources/.*\.lproj/</key>
|
|
166
|
+
<dict>
|
|
167
|
+
<key>optional</key>
|
|
168
|
+
<true/>
|
|
169
|
+
<key>weight</key>
|
|
170
|
+
<real>1000</real>
|
|
171
|
+
</dict>
|
|
172
|
+
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
|
173
|
+
<dict>
|
|
174
|
+
<key>omit</key>
|
|
175
|
+
<true/>
|
|
176
|
+
<key>weight</key>
|
|
177
|
+
<real>1100</real>
|
|
178
|
+
</dict>
|
|
179
|
+
<key>^Resources/Base\.lproj/</key>
|
|
180
|
+
<dict>
|
|
181
|
+
<key>weight</key>
|
|
182
|
+
<real>1010</real>
|
|
183
|
+
</dict>
|
|
184
|
+
<key>^[^/]+$</key>
|
|
185
|
+
<dict>
|
|
186
|
+
<key>nested</key>
|
|
187
|
+
<true/>
|
|
188
|
+
<key>weight</key>
|
|
189
|
+
<real>10</real>
|
|
190
|
+
</dict>
|
|
191
|
+
<key>^embedded\.provisionprofile$</key>
|
|
192
|
+
<dict>
|
|
193
|
+
<key>weight</key>
|
|
194
|
+
<real>20</real>
|
|
195
|
+
</dict>
|
|
196
|
+
<key>^version\.plist$</key>
|
|
197
|
+
<dict>
|
|
198
|
+
<key>weight</key>
|
|
199
|
+
<real>20</real>
|
|
200
|
+
</dict>
|
|
201
|
+
</dict>
|
|
202
|
+
</dict>
|
|
203
|
+
</plist>
|
|
Binary file
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDisplayName</key>
|
|
6
|
+
<string>Standard Code</string>
|
|
7
|
+
<key>CFBundleExecutable</key>
|
|
8
|
+
<string>standard</string>
|
|
9
|
+
<key>CFBundleIdentifier</key>
|
|
10
|
+
<string>ai.standardcode.standard</string>
|
|
11
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
12
|
+
<string>6.0</string>
|
|
13
|
+
<key>CFBundleName</key>
|
|
14
|
+
<string>Standard Code</string>
|
|
15
|
+
<key>CFBundlePackageType</key>
|
|
16
|
+
<string>APPL</string>
|
|
17
|
+
<key>CFBundleShortVersionString</key>
|
|
18
|
+
<string>0.14.2</string>
|
|
19
|
+
<key>CFBundleVersion</key>
|
|
20
|
+
<string>1</string>
|
|
21
|
+
<key>LSMinimumSystemVersion</key>
|
|
22
|
+
<string>11.0</string>
|
|
23
|
+
<key>LSUIElement</key>
|
|
24
|
+
<true/>
|
|
25
|
+
<key>NSLocalNetworkUsageDescription</key>
|
|
26
|
+
<string>Standard Code uses your local network to establish faster, encrypted direct connections to your other devices.</string>
|
|
27
|
+
<key>StandardCodeChannel</key>
|
|
28
|
+
<string>team</string>
|
|
29
|
+
<key>StandardCodeCommit</key>
|
|
30
|
+
<string>89a5a75f1ec0949a1ae901c7316179aa7727a348</string>
|
|
31
|
+
<key>StandardCodeComponent</key>
|
|
32
|
+
<string>standard</string>
|
|
33
|
+
<key>StandardCodeDaemonRelease</key>
|
|
34
|
+
<string>npm-89a5a75f1ec0</string>
|
|
35
|
+
<key>StandardCodeRelease</key>
|
|
36
|
+
<string>npm-89a5a75f1ec0</string>
|
|
37
|
+
<key>StandardCodeUnixProtocol</key>
|
|
38
|
+
<integer>1</integer>
|
|
39
|
+
<key>StandardCodeVersion</key>
|
|
40
|
+
<string>0.14.2</string>
|
|
41
|
+
</dict>
|
|
42
|
+
</plist>
|
|
Binary file
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>files</key>
|
|
6
|
+
<dict/>
|
|
7
|
+
<key>files2</key>
|
|
8
|
+
<dict/>
|
|
9
|
+
<key>rules</key>
|
|
10
|
+
<dict>
|
|
11
|
+
<key>^Resources/</key>
|
|
12
|
+
<true/>
|
|
13
|
+
<key>^Resources/.*\.lproj/</key>
|
|
14
|
+
<dict>
|
|
15
|
+
<key>optional</key>
|
|
16
|
+
<true/>
|
|
17
|
+
<key>weight</key>
|
|
18
|
+
<real>1000</real>
|
|
19
|
+
</dict>
|
|
20
|
+
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
|
21
|
+
<dict>
|
|
22
|
+
<key>omit</key>
|
|
23
|
+
<true/>
|
|
24
|
+
<key>weight</key>
|
|
25
|
+
<real>1100</real>
|
|
26
|
+
</dict>
|
|
27
|
+
<key>^Resources/Base\.lproj/</key>
|
|
28
|
+
<dict>
|
|
29
|
+
<key>weight</key>
|
|
30
|
+
<real>1010</real>
|
|
31
|
+
</dict>
|
|
32
|
+
<key>^version.plist$</key>
|
|
33
|
+
<true/>
|
|
34
|
+
</dict>
|
|
35
|
+
<key>rules2</key>
|
|
36
|
+
<dict>
|
|
37
|
+
<key>.*\.dSYM($|/)</key>
|
|
38
|
+
<dict>
|
|
39
|
+
<key>weight</key>
|
|
40
|
+
<real>11</real>
|
|
41
|
+
</dict>
|
|
42
|
+
<key>^(.*/)?\.DS_Store$</key>
|
|
43
|
+
<dict>
|
|
44
|
+
<key>omit</key>
|
|
45
|
+
<true/>
|
|
46
|
+
<key>weight</key>
|
|
47
|
+
<real>2000</real>
|
|
48
|
+
</dict>
|
|
49
|
+
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
|
|
50
|
+
<dict>
|
|
51
|
+
<key>nested</key>
|
|
52
|
+
<true/>
|
|
53
|
+
<key>weight</key>
|
|
54
|
+
<real>10</real>
|
|
55
|
+
</dict>
|
|
56
|
+
<key>^.*</key>
|
|
57
|
+
<true/>
|
|
58
|
+
<key>^Info\.plist$</key>
|
|
59
|
+
<dict>
|
|
60
|
+
<key>omit</key>
|
|
61
|
+
<true/>
|
|
62
|
+
<key>weight</key>
|
|
63
|
+
<real>20</real>
|
|
64
|
+
</dict>
|
|
65
|
+
<key>^PkgInfo$</key>
|
|
66
|
+
<dict>
|
|
67
|
+
<key>omit</key>
|
|
68
|
+
<true/>
|
|
69
|
+
<key>weight</key>
|
|
70
|
+
<real>20</real>
|
|
71
|
+
</dict>
|
|
72
|
+
<key>^Resources/</key>
|
|
73
|
+
<dict>
|
|
74
|
+
<key>weight</key>
|
|
75
|
+
<real>20</real>
|
|
76
|
+
</dict>
|
|
77
|
+
<key>^Resources/.*\.lproj/</key>
|
|
78
|
+
<dict>
|
|
79
|
+
<key>optional</key>
|
|
80
|
+
<true/>
|
|
81
|
+
<key>weight</key>
|
|
82
|
+
<real>1000</real>
|
|
83
|
+
</dict>
|
|
84
|
+
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
|
85
|
+
<dict>
|
|
86
|
+
<key>omit</key>
|
|
87
|
+
<true/>
|
|
88
|
+
<key>weight</key>
|
|
89
|
+
<real>1100</real>
|
|
90
|
+
</dict>
|
|
91
|
+
<key>^Resources/Base\.lproj/</key>
|
|
92
|
+
<dict>
|
|
93
|
+
<key>weight</key>
|
|
94
|
+
<real>1010</real>
|
|
95
|
+
</dict>
|
|
96
|
+
<key>^[^/]+$</key>
|
|
97
|
+
<dict>
|
|
98
|
+
<key>nested</key>
|
|
99
|
+
<true/>
|
|
100
|
+
<key>weight</key>
|
|
101
|
+
<real>10</real>
|
|
102
|
+
</dict>
|
|
103
|
+
<key>^embedded\.provisionprofile$</key>
|
|
104
|
+
<dict>
|
|
105
|
+
<key>weight</key>
|
|
106
|
+
<real>20</real>
|
|
107
|
+
</dict>
|
|
108
|
+
<key>^version\.plist$</key>
|
|
109
|
+
<dict>
|
|
110
|
+
<key>weight</key>
|
|
111
|
+
<real>20</real>
|
|
112
|
+
</dict>
|
|
113
|
+
</dict>
|
|
114
|
+
</dict>
|
|
115
|
+
</plist>
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
libevent.txt
|
|
2
|
+
============
|
|
3
|
+
Libevent is available for use under the following license, commonly known
|
|
4
|
+
as the 3-clause (or "modified") BSD license:
|
|
5
|
+
|
|
6
|
+
==============================
|
|
7
|
+
Copyright (c) 2000-2007 Niels Provos <provos@citi.umich.edu>
|
|
8
|
+
Copyright (c) 2007-2012 Niels Provos and Nick Mathewson
|
|
9
|
+
|
|
10
|
+
Redistribution and use in source and binary forms, with or without
|
|
11
|
+
modification, are permitted provided that the following conditions
|
|
12
|
+
are met:
|
|
13
|
+
1. Redistributions of source code must retain the above copyright
|
|
14
|
+
notice, this list of conditions and the following disclaimer.
|
|
15
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
16
|
+
notice, this list of conditions and the following disclaimer in the
|
|
17
|
+
documentation and/or other materials provided with the distribution.
|
|
18
|
+
3. The name of the author may not be used to endorse or promote products
|
|
19
|
+
derived from this software without specific prior written permission.
|
|
20
|
+
|
|
21
|
+
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
|
22
|
+
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
|
23
|
+
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
|
24
|
+
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
|
25
|
+
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
|
26
|
+
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
27
|
+
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
28
|
+
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
29
|
+
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
|
30
|
+
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
31
|
+
==============================
|
|
32
|
+
|
|
33
|
+
Portions of Libevent are based on works by others, also made available by
|
|
34
|
+
them under the three-clause BSD license above. The copyright notices are
|
|
35
|
+
available in the corresponding source files; the license is as above. Here's
|
|
36
|
+
a list:
|
|
37
|
+
|
|
38
|
+
log.c:
|
|
39
|
+
Copyright (c) 2000 Dug Song <dugsong@monkey.org>
|
|
40
|
+
Copyright (c) 1993 The Regents of the University of California.
|
|
41
|
+
|
|
42
|
+
strlcpy.c:
|
|
43
|
+
Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
|
|
44
|
+
|
|
45
|
+
win32select.c:
|
|
46
|
+
Copyright (c) 2003 Michael A. Davis <mike@datanerds.net>
|
|
47
|
+
|
|
48
|
+
evport.c:
|
|
49
|
+
Copyright (c) 2007 Sun Microsystems
|
|
50
|
+
|
|
51
|
+
ht-internal.h:
|
|
52
|
+
Copyright (c) 2002 Christopher Clark
|
|
53
|
+
|
|
54
|
+
minheap-internal.h:
|
|
55
|
+
Copyright (c) 2006 Maxim Yegorushkin <maxim.yegorushkin@gmail.com>
|
|
56
|
+
|
|
57
|
+
==============================
|
|
58
|
+
|
|
59
|
+
The arc4module is available under the following, sometimes called the
|
|
60
|
+
"OpenBSD" license:
|
|
61
|
+
|
|
62
|
+
Copyright (c) 1996, David Mazieres <dm@uun.org>
|
|
63
|
+
Copyright (c) 2008, Damien Miller <djm@openbsd.org>
|
|
64
|
+
|
|
65
|
+
Permission to use, copy, modify, and distribute this software for any
|
|
66
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
67
|
+
copyright notice and this permission notice appear in all copies.
|
|
68
|
+
|
|
69
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
70
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
71
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
72
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
73
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
74
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
75
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
76
|
+
|
|
77
|
+
==============================
|
|
78
|
+
|
|
79
|
+
The Windows timer code is based on code from libutp, which is
|
|
80
|
+
distributed under this license, sometimes called the "MIT" license.
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
Copyright (c) 2010 BitTorrent, Inc.
|
|
84
|
+
|
|
85
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
86
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
87
|
+
in the Software without restriction, including without limitation the rights
|
|
88
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
89
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
90
|
+
furnished to do so, subject to the following conditions:
|
|
91
|
+
|
|
92
|
+
The above copyright notice and this permission notice shall be included in
|
|
93
|
+
all copies or substantial portions of the Software.
|
|
94
|
+
|
|
95
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
96
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
97
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
98
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
99
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
100
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
101
|
+
THE SOFTWARE.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
tmux.txt
|
|
105
|
+
========
|
|
106
|
+
Copyright (c) Various Authors
|
|
107
|
+
|
|
108
|
+
Permission to use, copy, modify, and distribute this software for any
|
|
109
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
110
|
+
copyright notice and this permission notice appear in all copies.
|
|
111
|
+
|
|
112
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
113
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
114
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
115
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
116
|
+
WHATSOEVER RESULTING FROM LOSS OF MIND, USE, DATA OR PROFITS, WHETHER
|
|
117
|
+
IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
|
118
|
+
OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
119
|
+
|
package/manifest.json
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"schema":3,"format":"standard-npm-native-target-v3","repository":"standardagents/code-rs","commit":"89a5a75f1ec0949a1ae901c7316179aa7727a348","version":"0.14.2","target":"aarch64-apple-darwin","runtime":{"tmuxVersion":"3.7","tmuxSha256":"2f6ba676fd95fe5ca5ab0cd54f746eda02663471e167f14f60f7fbca19b0c648","accountUpdateProtocol":1},"signing":{"algorithm":"ed25519","keyId":"team-2026-1","platformCodeSignature":"apple-developer-id","notarization":{"status":"Accepted","submissionId":"db46c036-4523-4c73-9f3a-18f200f2df0e"}},"files":[{"path":"Standard Code.app/Contents/CodeResources","size":1653,"sha256":"ca043c10b7ada901830711fb98f1e0b62172777e59f1596e3dac18d65af1e864"},{"path":"Standard Code.app/Contents/Info.plist","size":1397,"sha256":"4e2010ff7257aa92e7192d7bdbaa27c8418671176c3a23834f70ce530b127919"},{"path":"Standard Code.app/Contents/MacOS/standard","size":15124480,"sha256":"445a90ede34bff38ad18a23a9e63d217274b06ffca36ae0794f21b6ab0a4aec3"},{"path":"Standard Code.app/Contents/_CodeSignature/CodeResources","size":2200,"sha256":"6686de10a28a2fe11b36cbb86dcbacc827cfc4ea116b4dabf1845e5aee629e9b"},{"path":"Standard Code Daemon.app/Contents/CodeResources","size":1674,"sha256":"35271ee8c6ad7f5a0121346d53f7f2abc1ffe5854650092c0838f4e020b149c2"},{"path":"Standard Code Daemon.app/Contents/Info.plist","size":1464,"sha256":"9a29fb03abf5c1edc2e9365bb23f2d0636d6d3ae54a04519008d1dd6a055c692"},{"path":"Standard Code Daemon.app/Contents/MacOS/standardd","size":16946832,"sha256":"2af102e188d84c0cc37c9cccc0c01075a42ace9759ec36fe9a2c204d8353ec62"},{"path":"Standard Code Daemon.app/Contents/Helpers/tmux","size":1229696,"sha256":"2f6ba676fd95fe5ca5ab0cd54f746eda02663471e167f14f60f7fbca19b0c648"},{"path":"Standard Code Daemon.app/Contents/_CodeSignature/CodeResources","size":4438,"sha256":"ce40bdb6cac9e18103b962ff095a77f7067ffbb78a5b32029cecd010c1e6d77d"},{"path":"Standard Code Daemon.app/Contents/Resources/tmux/TMUX-ARTIFACT-MANIFEST.sha256","size":510,"sha256":"5bc566703524d9f941857f4f8b73489cbd33218fed3eabba07f2fa8ae80283ca"},{"path":"Standard Code Daemon.app/Contents/Resources/tmux/TMUX-ARTIFACT-METADATA.txt","size":1096,"sha256":"32e74b689e0f1353fa20c6d714a5d1f45c88d8757f46094361928111ee5c0ae0"},{"path":"Standard Code Daemon.app/Contents/Resources/tmux/TMUX-BUILD-TOOLS.txt","size":387,"sha256":"75e5bf01ea23453cc6ba0f8e8ebb3d46642ff0535caa38b0b00d890c316899f8"},{"path":"Standard Code Daemon.app/Contents/Resources/tmux/TMUX-OTOOL-L.txt","size":259,"sha256":"c605dc056bca03c6bfd54ce657b59dfa77e3da6808f9198f18327383c3feb96a"},{"path":"Standard Code Daemon.app/Contents/Resources/tmux/TMUX-SIGNED-RUNTIME.sha256","size":65,"sha256":"925c18aef4bf11c962f4c4ecd2270d635228ac9ed130e32bd843ce5581dbb20c"},{"path":"Standard Code Daemon.app/Contents/Resources/tmux/licenses/libevent.txt","size":4528,"sha256":"ff02effc9b331edcdac387d198691bfa3e575e7d244ad10cb826aa51ef085670"},{"path":"Standard Code Daemon.app/Contents/Resources/tmux/licenses/tmux.txt","size":731,"sha256":"2116115d46eeb1e736acfa562eed14fe6c34760794bc5b484642fe694adde0fd"},{"path":"licenses/THIRD-PARTY.txt","size":5306,"sha256":"8a03d349b280b03332f6ec1093d868ad77d29a4871f3b4a6c61471da6f53da44"}]}
|
package/manifest.sig
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Cy5jiNPa7DaqzG4i4KqXPlqoUc8w5ZAnfAYpj1a7x3HjRQYUwOI/8LpH1s//wmZgQu8eJcFfEV7yl52yZ2/YAA==
|
package/package.json
CHANGED
|
@@ -1,39 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@standardagents/code",
|
|
3
|
-
"version": "0.14.
|
|
4
|
-
"description": "
|
|
5
|
-
"type": "module",
|
|
6
|
-
"license": "UNLICENSED",
|
|
3
|
+
"version": "0.14.2-darwin-arm64",
|
|
4
|
+
"description": "Standard native binaries for darwin-arm64.",
|
|
7
5
|
"repository": {
|
|
8
6
|
"type": "git",
|
|
9
7
|
"url": "git+https://github.com/standardagents/code-rs.git"
|
|
10
8
|
},
|
|
9
|
+
"license": "UNLICENSED",
|
|
10
|
+
"os": [
|
|
11
|
+
"darwin"
|
|
12
|
+
],
|
|
13
|
+
"cpu": [
|
|
14
|
+
"arm64"
|
|
15
|
+
],
|
|
16
|
+
"files": [
|
|
17
|
+
"Standard Code.app",
|
|
18
|
+
"Standard Code Daemon.app",
|
|
19
|
+
"licenses",
|
|
20
|
+
"manifest.json",
|
|
21
|
+
"manifest.sig"
|
|
22
|
+
],
|
|
11
23
|
"publishConfig": {
|
|
12
24
|
"access": "public",
|
|
13
25
|
"registry": "https://registry.npmjs.org/"
|
|
14
|
-
},
|
|
15
|
-
"engines": {
|
|
16
|
-
"node": ">=20"
|
|
17
|
-
},
|
|
18
|
-
"bin": {
|
|
19
|
-
"standard": "bin/standard.mjs",
|
|
20
|
-
"standardd": "bin/standardd.mjs"
|
|
21
|
-
},
|
|
22
|
-
"files": [
|
|
23
|
-
"bin",
|
|
24
|
-
"lib",
|
|
25
|
-
"postinstall.mjs"
|
|
26
|
-
],
|
|
27
|
-
"scripts": {
|
|
28
|
-
"postinstall": "node postinstall.mjs"
|
|
29
|
-
},
|
|
30
|
-
"optionalDependencies": {
|
|
31
|
-
"@standardagents/code-darwin-arm64": "npm:@standardagents/code@0.14.1-darwin-arm64",
|
|
32
|
-
"@standardagents/code-linux-x64-gnu": "npm:@standardagents/code@0.14.1-linux-x64-gnu"
|
|
33
|
-
},
|
|
34
|
-
"standardUpgrade": {
|
|
35
|
-
"schema": 1,
|
|
36
|
-
"reader": 1,
|
|
37
|
-
"bridge": null
|
|
38
26
|
}
|
|
39
27
|
}
|
package/bin/standard.mjs
DELETED
package/bin/standardd.mjs
DELETED
package/lib/artifact.mjs
DELETED
|
@@ -1,218 +0,0 @@
|
|
|
1
|
-
import { createHash, createPublicKey, verify } from 'node:crypto'
|
|
2
|
-
import { closeSync, constants, fstatSync, lstatSync, openSync, readSync, readdirSync } from 'node:fs'
|
|
3
|
-
import { dirname, join } from 'node:path'
|
|
4
|
-
import { isPreviewBuild, normalizeBackendProfile } from './backend-profile.mjs'
|
|
5
|
-
|
|
6
|
-
export const ARTIFACT_FORMAT = 'standard-npm-native-target-v2'
|
|
7
|
-
export const ARTIFACT_FILES = Object.freeze([
|
|
8
|
-
'bin/standard', 'bin/standardd', 'bin/tmux', 'licenses/THIRD-PARTY.txt',
|
|
9
|
-
])
|
|
10
|
-
export const BUNDLE_ARTIFACT_FORMAT = 'standard-npm-native-target-v3'
|
|
11
|
-
export const BUNDLE_ARTIFACT_FILES = Object.freeze([
|
|
12
|
-
// Stapled notarization tickets are distinct from the code signature seals.
|
|
13
|
-
'Standard Code.app/Contents/CodeResources',
|
|
14
|
-
'Standard Code.app/Contents/Info.plist',
|
|
15
|
-
'Standard Code.app/Contents/MacOS/standard',
|
|
16
|
-
'Standard Code.app/Contents/_CodeSignature/CodeResources',
|
|
17
|
-
'Standard Code Daemon.app/Contents/CodeResources',
|
|
18
|
-
'Standard Code Daemon.app/Contents/Info.plist',
|
|
19
|
-
'Standard Code Daemon.app/Contents/MacOS/standardd',
|
|
20
|
-
'Standard Code Daemon.app/Contents/Helpers/tmux',
|
|
21
|
-
'Standard Code Daemon.app/Contents/_CodeSignature/CodeResources',
|
|
22
|
-
...['TMUX-ARTIFACT-MANIFEST.sha256', 'TMUX-ARTIFACT-METADATA.txt',
|
|
23
|
-
'TMUX-BUILD-TOOLS.txt', 'TMUX-OTOOL-L.txt', 'TMUX-SIGNED-RUNTIME.sha256',
|
|
24
|
-
'licenses/libevent.txt', 'licenses/tmux.txt',
|
|
25
|
-
].map(path => `Standard Code Daemon.app/Contents/Resources/tmux/${path}`),
|
|
26
|
-
'licenses/THIRD-PARTY.txt',
|
|
27
|
-
])
|
|
28
|
-
|
|
29
|
-
export const RUNNER_ASSET_NAMES = Object.freeze([
|
|
30
|
-
'index.mjs', 'worker.mjs', 'loader.mjs', 'sdk.mjs', 'runtime.json', 'THIRD-PARTY.txt',
|
|
31
|
-
])
|
|
32
|
-
export const MAX_RUNNER_ASSET_BYTES = 16 * 1024 * 1024
|
|
33
|
-
export const RUNNER_ARTIFACT_FILES = Object.freeze([
|
|
34
|
-
...ARTIFACT_FILES, ...RUNNER_ASSET_NAMES.map(name => `lib/standard-plugin-runner/${name}`),
|
|
35
|
-
])
|
|
36
|
-
export const BUNDLE_RUNNER_ARTIFACT_FILES = Object.freeze([
|
|
37
|
-
...BUNDLE_ARTIFACT_FILES,
|
|
38
|
-
...RUNNER_ASSET_NAMES.map(name => `Standard Code Daemon.app/Contents/Resources/plugin-runner/${name}`),
|
|
39
|
-
])
|
|
40
|
-
|
|
41
|
-
export function artifactFiles(manifest) {
|
|
42
|
-
const hasRunner = manifest.files?.some(file => file.path?.includes('/plugin-runner/') || file.path?.startsWith('lib/standard-plugin-runner/'))
|
|
43
|
-
if (manifest.schema === 2 && manifest.format === ARTIFACT_FORMAT
|
|
44
|
-
&& manifest.target?.endsWith('-unknown-linux-gnu')) return hasRunner ? RUNNER_ARTIFACT_FILES : ARTIFACT_FILES
|
|
45
|
-
if (manifest.schema === 3 && manifest.format === BUNDLE_ARTIFACT_FORMAT
|
|
46
|
-
&& manifest.target?.endsWith('-apple-darwin')) return hasRunner ? BUNDLE_RUNNER_ARTIFACT_FILES : BUNDLE_ARTIFACT_FILES
|
|
47
|
-
throw new Error('Native artifact identity is invalid')
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
export function artifactBinaryPath(manifest, command) {
|
|
51
|
-
if (!['standard', 'standardd', 'tmux'].includes(command)) throw new Error('Invalid artifact command')
|
|
52
|
-
artifactFiles(manifest)
|
|
53
|
-
if (manifest.target.endsWith('-unknown-linux-gnu')) return `bin/${command}`
|
|
54
|
-
if (command === 'tmux') return 'Standard Code Daemon.app/Contents/Helpers/tmux'
|
|
55
|
-
return `${command === 'standard' ? 'Standard Code' : 'Standard Code Daemon'}.app/Contents/MacOS/${command}`
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function artifactDirectories(files) {
|
|
59
|
-
const directories = new Set()
|
|
60
|
-
for (const file of files) {
|
|
61
|
-
for (let directory = dirname(file); directory !== '.'; directory = dirname(directory)) directories.add(directory)
|
|
62
|
-
}
|
|
63
|
-
return [...directories].sort()
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Bundle signatures seal resources too: reject unmanifested contents and links
|
|
67
|
-
// at every directory level, including links in an executable's ancestors.
|
|
68
|
-
export function verifyArtifactTree(root, files, metadata = ['manifest.json', 'manifest.sig', 'package.json']) {
|
|
69
|
-
const allowedFiles = new Set([...files, ...metadata])
|
|
70
|
-
const allowedDirectories = new Set(artifactDirectories(files))
|
|
71
|
-
function visit(relative) {
|
|
72
|
-
const path = join(root, relative)
|
|
73
|
-
if (!lstatSync(path).isDirectory()) throw new Error(`Invalid artifact directory: ${path}`)
|
|
74
|
-
for (const name of readdirSync(path)) {
|
|
75
|
-
const child = relative ? `${relative}/${name}` : name
|
|
76
|
-
const entry = lstatSync(join(root, child))
|
|
77
|
-
if (entry.isDirectory() && allowedDirectories.has(child)) visit(child)
|
|
78
|
-
else if (!entry.isFile() || !allowedFiles.has(child)) throw new Error(`Unexpected artifact content: ${child}`)
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
visit('')
|
|
82
|
-
for (const directory of allowedDirectories) {
|
|
83
|
-
if (!lstatSync(join(root, directory)).isDirectory()) throw new Error(`Invalid artifact directory: ${directory}`)
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
export const ARTIFACT_TARGETS = Object.freeze([
|
|
88
|
-
'aarch64-apple-darwin', 'x86_64-apple-darwin',
|
|
89
|
-
'aarch64-unknown-linux-gnu', 'x86_64-unknown-linux-gnu',
|
|
90
|
-
])
|
|
91
|
-
// Public trust anchor, not a credential. Never obtain the verification key
|
|
92
|
-
// from the package being verified or a mutable registry response.
|
|
93
|
-
export const ARTIFACT_PUBLIC_KEY = `-----BEGIN PUBLIC KEY-----
|
|
94
|
-
MCowBQYDK2VwAyEAk+Ndu0WtdSgUFkraXP5CAUlQqzm+EN/My2AwkoPOMqg=
|
|
95
|
-
-----END PUBLIC KEY-----
|
|
96
|
-
`
|
|
97
|
-
|
|
98
|
-
export function validArtifactVersion(version) {
|
|
99
|
-
return typeof version === 'string'
|
|
100
|
-
&& /^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/.test(version)
|
|
101
|
-
&& (version.match(/^[^-]+-(.*)$/)?.[1].split('.') ?? []).every(part => !/^0\d+$/.test(part))
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
function regularFile(path, limit) {
|
|
105
|
-
const descriptor = openSync(path, constants.O_RDONLY | constants.O_NOFOLLOW)
|
|
106
|
-
try {
|
|
107
|
-
const metadata = fstatSync(descriptor)
|
|
108
|
-
if (!metadata.isFile() || metadata.size < 1 || metadata.size > limit) throw new Error(`Invalid artifact file: ${path}`)
|
|
109
|
-
return { descriptor, metadata }
|
|
110
|
-
} catch (error) { closeSync(descriptor); throw error }
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
function boundedBytes(path, limit) {
|
|
114
|
-
const { descriptor } = regularFile(path, limit)
|
|
115
|
-
try {
|
|
116
|
-
const buffer = Buffer.alloc(limit + 1)
|
|
117
|
-
let size = 0
|
|
118
|
-
while (size <= limit) {
|
|
119
|
-
const count = readSync(descriptor, buffer, size, buffer.length - size, null)
|
|
120
|
-
if (!count) return buffer.subarray(0, size)
|
|
121
|
-
size += count
|
|
122
|
-
}
|
|
123
|
-
throw new Error(`Artifact exceeds size limit: ${path}`)
|
|
124
|
-
} finally { closeSync(descriptor) }
|
|
125
|
-
}
|
|
126
|
-
|
|
127
|
-
export function verifyNativeArtifact(root, expected = {}, publicKey = ARTIFACT_PUBLIC_KEY) {
|
|
128
|
-
for (const directory of [root]) {
|
|
129
|
-
if (!lstatSync(directory).isDirectory()) throw new Error(`Invalid artifact directory: ${directory}`)
|
|
130
|
-
}
|
|
131
|
-
const bytes = boundedBytes(join(root, 'manifest.json'), 64 * 1024)
|
|
132
|
-
const signature = boundedBytes(join(root, 'manifest.sig'), 256).toString('utf8').trim()
|
|
133
|
-
const key = createPublicKey(publicKey)
|
|
134
|
-
if (key.asymmetricKeyType !== 'ed25519' || !verify(null, bytes, key, Buffer.from(signature, 'base64'))) {
|
|
135
|
-
throw new Error('Native artifact signature is invalid')
|
|
136
|
-
}
|
|
137
|
-
const manifest = JSON.parse(bytes)
|
|
138
|
-
const files = artifactFiles(manifest)
|
|
139
|
-
if (manifest.repository !== 'standardagents/code-rs'
|
|
140
|
-
|| !ARTIFACT_TARGETS.includes(manifest.target)
|
|
141
|
-
|| !/^[0-9a-f]{40}$/.test(manifest.commit)
|
|
142
|
-
|| !validArtifactVersion(manifest.version)
|
|
143
|
-
|| ['commit', 'version', 'target'].some(name => expected[name] != null && manifest[name] !== expected[name])
|
|
144
|
-
|| manifest.signing?.algorithm !== 'ed25519') throw new Error('Native artifact identity is invalid')
|
|
145
|
-
if (Object.hasOwn(manifest, 'backendProfile') && (manifest.backendProfile == null || manifest.backendProfile === '')) {
|
|
146
|
-
throw new Error('Native artifact backend profile cannot be null')
|
|
147
|
-
}
|
|
148
|
-
const backendProfile = normalizeBackendProfile(manifest.backendProfile)
|
|
149
|
-
if (backendProfile && !isPreviewBuild(manifest.version)) {
|
|
150
|
-
throw new Error('Native artifact preview backend profile is not valid for this version')
|
|
151
|
-
}
|
|
152
|
-
if (!Array.isArray(manifest.files) || manifest.files.map(file => file.path).sort().join(',') !== [...files].sort().join(',')) {
|
|
153
|
-
throw new Error('Native artifact file manifest is invalid')
|
|
154
|
-
}
|
|
155
|
-
const runnerFiles = manifest.target.endsWith('-apple-darwin')
|
|
156
|
-
? BUNDLE_RUNNER_ARTIFACT_FILES.slice(BUNDLE_ARTIFACT_FILES.length)
|
|
157
|
-
: RUNNER_ARTIFACT_FILES.slice(ARTIFACT_FILES.length)
|
|
158
|
-
if (!manifest.files.some(file => runnerFiles.includes(file.path))) {
|
|
159
|
-
for (const path of runnerFiles) {
|
|
160
|
-
try { lstatSync(join(root, path)) }
|
|
161
|
-
catch (error) { if (error.code === 'ENOENT') continue; throw error }
|
|
162
|
-
throw new Error('Native artifact contains unsigned plugin runner files')
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
if (manifest.schema === 3) verifyArtifactTree(root, files)
|
|
166
|
-
else for (const directory of artifactDirectories(files)) {
|
|
167
|
-
if (!lstatSync(join(root, directory)).isDirectory()) throw new Error(`Invalid artifact directory: ${directory}`)
|
|
168
|
-
}
|
|
169
|
-
const tmux = manifest.files.find(file => file.path === artifactBinaryPath(manifest, 'tmux'))
|
|
170
|
-
if (manifest.runtime?.tmuxVersion !== '3.7' || manifest.runtime.tmuxSha256 !== tmux.sha256) {
|
|
171
|
-
throw new Error('Native artifact tmux identity is invalid')
|
|
172
|
-
}
|
|
173
|
-
const protocol = manifest.runtime.accountUpdateProtocol
|
|
174
|
-
if (protocol != null && (!Number.isSafeInteger(protocol) || protocol < 1 || protocol > 0xffff_ffff)) {
|
|
175
|
-
throw new Error('Native artifact account update protocol is invalid')
|
|
176
|
-
}
|
|
177
|
-
if (manifest.target.endsWith('-apple-darwin')
|
|
178
|
-
&& (manifest.signing.platformCodeSignature !== 'apple-developer-id'
|
|
179
|
-
|| manifest.signing.notarization?.status !== 'Accepted'
|
|
180
|
-
|| !/^[0-9a-f]{8}(?:-[0-9a-f]{4}){3}-[0-9a-f]{12}$/i.test(manifest.signing.notarization?.submissionId ?? ''))) {
|
|
181
|
-
throw new Error('macOS artifact lacks signed notarization acceptance')
|
|
182
|
-
}
|
|
183
|
-
if (manifest.target.endsWith('-unknown-linux-gnu')
|
|
184
|
-
&& !/^\d+\.\d+(?:\.\d+)?$/.test(manifest.runtime.minimumGlibc ?? '')) throw new Error('Linux artifact lacks its glibc requirement')
|
|
185
|
-
const buffer = Buffer.alloc(1024 * 1024)
|
|
186
|
-
for (const file of manifest.files) {
|
|
187
|
-
if (!Number.isSafeInteger(file.size) || !/^[0-9a-f]{64}$/.test(file.sha256)) throw new Error('Native artifact file metadata is invalid')
|
|
188
|
-
const path = join(root, file.path)
|
|
189
|
-
const { descriptor, metadata } = regularFile(path, runnerFiles.includes(file.path)
|
|
190
|
-
? MAX_RUNNER_ASSET_BYTES : 256 * 1024 * 1024)
|
|
191
|
-
try {
|
|
192
|
-
if (metadata.size !== file.size) throw new Error(`Native artifact size mismatch: ${file.path}`)
|
|
193
|
-
const hash = createHash('sha256')
|
|
194
|
-
let size = 0
|
|
195
|
-
for (;;) {
|
|
196
|
-
const count = readSync(descriptor, buffer, 0, buffer.length, null)
|
|
197
|
-
if (!count) break
|
|
198
|
-
size += count
|
|
199
|
-
if (size > file.size) throw new Error(`Native artifact grew while verifying: ${file.path}`)
|
|
200
|
-
hash.update(buffer.subarray(0, count))
|
|
201
|
-
}
|
|
202
|
-
if (size !== file.size || hash.digest('hex') !== file.sha256) throw new Error(`Native artifact digest mismatch: ${file.path}`)
|
|
203
|
-
} finally { closeSync(descriptor) }
|
|
204
|
-
}
|
|
205
|
-
return manifest
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
export function requireCompatibleGlibc(manifest, runtimeVersion) {
|
|
209
|
-
if (!manifest.target.endsWith('-unknown-linux-gnu')) return
|
|
210
|
-
const minimum = manifest.runtime.minimumGlibc
|
|
211
|
-
if (!/^\d+\.\d+(?:\.\d+)?$/.test(runtimeVersion ?? '')) throw new Error('Cannot determine this machine’s glibc version')
|
|
212
|
-
const actual = runtimeVersion.split('.').map(Number)
|
|
213
|
-
const required = minimum.split('.').map(Number)
|
|
214
|
-
for (let index = 0; index < 3; index++) {
|
|
215
|
-
if ((actual[index] ?? 0) > (required[index] ?? 0)) return
|
|
216
|
-
if ((actual[index] ?? 0) < (required[index] ?? 0)) throw new Error(`This Standard build requires glibc ${minimum}; this machine has ${runtimeVersion}`)
|
|
217
|
-
}
|
|
218
|
-
}
|
package/lib/backend-profile.mjs
DELETED
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
const PROFILE_KEYS = ['schema', 'id', 'label', 'apiOrigin', 'relayEnvironment']
|
|
2
|
-
const PROFILE_ID = /^[a-z0-9][a-z0-9-]{0,47}$/
|
|
3
|
-
const DNS_LABEL = /^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/
|
|
4
|
-
const PROFILE_HOST_SUFFIXES = ['.standardcode.ai', '.standardagentbuilder.com']
|
|
5
|
-
|
|
6
|
-
export const BACKEND_PROFILE_SCHEMA = 1
|
|
7
|
-
|
|
8
|
-
export function isPreviewBuild(version) {
|
|
9
|
-
return typeof version === 'string' && /-(?:issue|branch)\./.test(version)
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
* Validate and normalize the preview backend profile embedded in a native
|
|
14
|
-
* artifact. Production is represented by an absent or null profile.
|
|
15
|
-
*/
|
|
16
|
-
export function normalizeBackendProfile(value) {
|
|
17
|
-
if (value == null || value === '') return null
|
|
18
|
-
if (!isPlainObject(value)) throw new Error('backend profile must be an object')
|
|
19
|
-
const keys = Object.keys(value).sort()
|
|
20
|
-
if (keys.join(',') !== [...PROFILE_KEYS].sort().join(',')) {
|
|
21
|
-
throw new Error('backend profile has unexpected fields')
|
|
22
|
-
}
|
|
23
|
-
if (value.schema !== BACKEND_PROFILE_SCHEMA) throw new Error('backend profile schema is unsupported')
|
|
24
|
-
if (typeof value.id !== 'string' || !PROFILE_ID.test(value.id) || value.id === 'production') {
|
|
25
|
-
throw new Error('backend profile id is invalid')
|
|
26
|
-
}
|
|
27
|
-
if (typeof value.label !== 'string' || !/^[\x20-\x7e]{1,64}$/.test(value.label)) {
|
|
28
|
-
throw new Error('backend profile label must be printable ASCII up to 64 characters')
|
|
29
|
-
}
|
|
30
|
-
const apiOrigin = canonicalApiOrigin(value.apiOrigin)
|
|
31
|
-
if (apiOrigin === 'https://api.standardcode.ai') {
|
|
32
|
-
throw new Error('preview backend profile cannot use the production API origin')
|
|
33
|
-
}
|
|
34
|
-
if (!['staging', 'production'].includes(value.relayEnvironment)) {
|
|
35
|
-
throw new Error('backend profile relayEnvironment must be staging or production')
|
|
36
|
-
}
|
|
37
|
-
return {
|
|
38
|
-
schema: BACKEND_PROFILE_SCHEMA,
|
|
39
|
-
id: value.id,
|
|
40
|
-
label: value.label,
|
|
41
|
-
apiOrigin,
|
|
42
|
-
relayEnvironment: value.relayEnvironment,
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
export function serializeBackendProfile(value) {
|
|
47
|
-
const profile = normalizeBackendProfile(value)
|
|
48
|
-
return profile ? JSON.stringify(profile) : ''
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
export function backendProfilesEqual(left, right) {
|
|
52
|
-
const a = normalizeBackendProfile(left)
|
|
53
|
-
const b = normalizeBackendProfile(right)
|
|
54
|
-
return JSON.stringify(a) === JSON.stringify(b)
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export function backendProfileIdentitiesEqual(left, right) {
|
|
58
|
-
const a = normalizeBackendProfile(left)
|
|
59
|
-
const b = normalizeBackendProfile(right)
|
|
60
|
-
return (a?.id ?? 'production') === (b?.id ?? 'production')
|
|
61
|
-
&& (a?.apiOrigin ?? 'https://api.standardcode.ai') === (b?.apiOrigin ?? 'https://api.standardcode.ai')
|
|
62
|
-
&& (a?.relayEnvironment ?? 'production') === (b?.relayEnvironment ?? 'production')
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export async function backendProfileFingerprint(value) {
|
|
66
|
-
const profile = normalizeBackendProfile(value)
|
|
67
|
-
const id = profile?.id ?? 'production'
|
|
68
|
-
const apiOrigin = profile?.apiOrigin ?? 'https://api.standardcode.ai'
|
|
69
|
-
const relayEnvironment = profile?.relayEnvironment ?? 'production'
|
|
70
|
-
const bytes = new TextEncoder().encode(
|
|
71
|
-
`standard-backend-v1\0${id}\0${apiOrigin}\0${relayEnvironment}`,
|
|
72
|
-
)
|
|
73
|
-
const digest = await crypto.subtle.digest('SHA-256', bytes)
|
|
74
|
-
return Array.from(new Uint8Array(digest), byte => byte.toString(16).padStart(2, '0')).join('')
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/** A preview backend has a separate follow channel on the same Git branch. */
|
|
78
|
-
export async function backendProfileTag(baseTag, value) {
|
|
79
|
-
const profile = normalizeBackendProfile(value)
|
|
80
|
-
if (!profile) return baseTag
|
|
81
|
-
if (!/^(?:branch-|issue-)[a-z0-9-]+$/.test(baseTag)) {
|
|
82
|
-
throw new Error('preview backend profiles require a branch channel')
|
|
83
|
-
}
|
|
84
|
-
const tag = `${baseTag}-b-${(await backendProfileFingerprint(profile)).slice(0, 16)}`
|
|
85
|
-
if (tag.length > 64) throw new Error('backend-specific channel exceeds the tag length limit')
|
|
86
|
-
return tag
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export function canonicalApiOrigin(value) {
|
|
90
|
-
if (typeof value !== 'string' || !value || value.trim() !== value) {
|
|
91
|
-
throw new Error('backend profile apiOrigin must be a canonical HTTPS origin')
|
|
92
|
-
}
|
|
93
|
-
let url
|
|
94
|
-
try { url = new URL(value) } catch { throw new Error('backend profile apiOrigin must be a canonical HTTPS origin') }
|
|
95
|
-
if (url.protocol !== 'https:' || url.username || url.password || url.port
|
|
96
|
-
|| !['', '/'].includes(url.pathname) || url.search || url.hash
|
|
97
|
-
|| value !== url.origin) {
|
|
98
|
-
throw new Error('backend profile apiOrigin must be a canonical HTTPS origin')
|
|
99
|
-
}
|
|
100
|
-
const hostname = url.hostname
|
|
101
|
-
if (!hostname || hostname.length > 253 || hostname !== hostname.toLowerCase()) {
|
|
102
|
-
throw new Error('backend profile apiOrigin hostname is invalid')
|
|
103
|
-
}
|
|
104
|
-
const labels = hostname.split('.')
|
|
105
|
-
if (labels.some(label => !DNS_LABEL.test(label))
|
|
106
|
-
|| !PROFILE_HOST_SUFFIXES.some(suffix => hostname.endsWith(suffix))) {
|
|
107
|
-
throw new Error('backend profile apiOrigin hostname is not a supported first-party host')
|
|
108
|
-
}
|
|
109
|
-
return url.origin
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
function isPlainObject(value) {
|
|
113
|
-
return value !== null && typeof value === 'object' && !Array.isArray(value)
|
|
114
|
-
}
|
package/lib/launcher.mjs
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { spawnSync } from 'node:child_process'
|
|
2
|
-
import { readFileSync, realpathSync, statSync } from 'node:fs'
|
|
3
|
-
import { createRequire } from 'node:module'
|
|
4
|
-
import { dirname, join } from 'node:path'
|
|
5
|
-
import process from 'node:process'
|
|
6
|
-
|
|
7
|
-
import { platformPackage } from './platform.mjs'
|
|
8
|
-
import { artifactBinaryPath, requireCompatibleGlibc, verifyNativeArtifact } from './artifact.mjs'
|
|
9
|
-
|
|
10
|
-
const require = createRequire(import.meta.url)
|
|
11
|
-
const COMMANDS = new Set(['standard', 'standardd'])
|
|
12
|
-
|
|
13
|
-
export function resolveBinary(command, options = {}) {
|
|
14
|
-
if (!COMMANDS.has(command)) {
|
|
15
|
-
throw new Error(`Unknown Standard executable: ${command}`)
|
|
16
|
-
}
|
|
17
|
-
const environment = options.environment ?? process.env
|
|
18
|
-
const overrideDirectory = environment.STANDARD_CODE_BINARY_DIR
|
|
19
|
-
const binaryPath = overrideDirectory
|
|
20
|
-
? join(overrideDirectory, command)
|
|
21
|
-
: resolvePackagedBinary(command, options)
|
|
22
|
-
const stat = statSync(binaryPath)
|
|
23
|
-
if (!stat.isFile()) {
|
|
24
|
-
throw new Error(`Resolved Standard executable is not a file: ${binaryPath}`)
|
|
25
|
-
}
|
|
26
|
-
return binaryPath
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function resolvePackagedBinary(command, options) {
|
|
30
|
-
const platform = platformPackage(
|
|
31
|
-
options.platform,
|
|
32
|
-
options.architecture,
|
|
33
|
-
options.report,
|
|
34
|
-
)
|
|
35
|
-
const resolve = options.resolve ?? require.resolve
|
|
36
|
-
try {
|
|
37
|
-
const root = dirname(realpathSync(resolve(`${platform.packageName}/manifest.json`)))
|
|
38
|
-
const version = JSON.parse(readFileSync(new URL('../package.json', import.meta.url))).version
|
|
39
|
-
const artifact = verifyNativeArtifact(root, { version, target: platform.rustTarget })
|
|
40
|
-
const report = options.report ?? process.report
|
|
41
|
-
requireCompatibleGlibc(artifact, report?.getReport()?.header?.glibcVersionRuntime)
|
|
42
|
-
return join(root, artifactBinaryPath(artifact, command))
|
|
43
|
-
} catch (error) {
|
|
44
|
-
const detail = error instanceof Error ? error.message : String(error)
|
|
45
|
-
throw new Error(
|
|
46
|
-
`The native package ${platform.packageName} is missing or incomplete. `
|
|
47
|
-
+ `Reinstall @standardagents/code for this platform. (${detail})`,
|
|
48
|
-
)
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export function spawnBinary(command, args, options = {}) {
|
|
53
|
-
const binary = resolveBinary(command, options)
|
|
54
|
-
return spawnSync(binary, args, {
|
|
55
|
-
stdio: options.stdio ?? 'inherit',
|
|
56
|
-
env: options.environment ?? process.env,
|
|
57
|
-
})
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function main(command) {
|
|
61
|
-
try {
|
|
62
|
-
const result = spawnBinary(command, process.argv.slice(2))
|
|
63
|
-
if (result.error) throw result.error
|
|
64
|
-
if (result.signal) {
|
|
65
|
-
console.error(`${command} terminated by ${result.signal}`)
|
|
66
|
-
process.exitCode = 1
|
|
67
|
-
return
|
|
68
|
-
}
|
|
69
|
-
process.exitCode = result.status ?? 1
|
|
70
|
-
} catch (error) {
|
|
71
|
-
const detail = error instanceof Error ? error.message : String(error)
|
|
72
|
-
console.error(`${command}: ${detail}`)
|
|
73
|
-
process.exitCode = 1
|
|
74
|
-
}
|
|
75
|
-
}
|
package/lib/platform.mjs
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
const PLATFORMS = new Map([
|
|
2
|
-
['darwin:arm64', {
|
|
3
|
-
packageName: '@standardagents/code-darwin-arm64',
|
|
4
|
-
rustTarget: 'aarch64-apple-darwin',
|
|
5
|
-
}],
|
|
6
|
-
['darwin:x64', {
|
|
7
|
-
packageName: '@standardagents/code-darwin-x64',
|
|
8
|
-
rustTarget: 'x86_64-apple-darwin',
|
|
9
|
-
}],
|
|
10
|
-
['linux:arm64', {
|
|
11
|
-
packageName: '@standardagents/code-linux-arm64-gnu',
|
|
12
|
-
rustTarget: 'aarch64-unknown-linux-gnu',
|
|
13
|
-
}],
|
|
14
|
-
['linux:x64', {
|
|
15
|
-
packageName: '@standardagents/code-linux-x64-gnu',
|
|
16
|
-
rustTarget: 'x86_64-unknown-linux-gnu',
|
|
17
|
-
}],
|
|
18
|
-
])
|
|
19
|
-
|
|
20
|
-
export function platformPackage(
|
|
21
|
-
platform = process.platform,
|
|
22
|
-
architecture = process.arch,
|
|
23
|
-
report = process.report,
|
|
24
|
-
) {
|
|
25
|
-
const entry = PLATFORMS.get(`${platform}:${architecture}`)
|
|
26
|
-
if (!entry) {
|
|
27
|
-
throw new Error(
|
|
28
|
-
`Standard does not yet provide binaries for ${platform}/${architecture}; `
|
|
29
|
-
+ 'Phase 0 supports macOS and glibc Linux on arm64/x64.',
|
|
30
|
-
)
|
|
31
|
-
}
|
|
32
|
-
if (platform === 'linux' && !isGlibc(report)) {
|
|
33
|
-
throw new Error(
|
|
34
|
-
'Standard Phase 0 Linux packages require glibc; a musl build is not published yet.',
|
|
35
|
-
)
|
|
36
|
-
}
|
|
37
|
-
return entry
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export function supportedPlatforms() {
|
|
41
|
-
return [...PLATFORMS.values()].map((entry) => ({ ...entry }))
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
function isGlibc(report) {
|
|
45
|
-
try {
|
|
46
|
-
return Boolean(report?.getReport()?.header?.glibcVersionRuntime)
|
|
47
|
-
} catch {
|
|
48
|
-
return false
|
|
49
|
-
}
|
|
50
|
-
}
|
package/postinstall.mjs
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { chmodSync } from 'node:fs'
|
|
2
|
-
|
|
3
|
-
import { resolveBinary } from './lib/launcher.mjs'
|
|
4
|
-
|
|
5
|
-
for (const command of ['standard', 'standardd']) {
|
|
6
|
-
try {
|
|
7
|
-
chmodSync(resolveBinary(command), 0o755)
|
|
8
|
-
} catch (error) {
|
|
9
|
-
const detail = error instanceof Error ? error.message : String(error)
|
|
10
|
-
console.warn(`@standardagents/code: ${detail}`)
|
|
11
|
-
}
|
|
12
|
-
}
|