agentscm 0.1.0-alpha.8 → 0.1.2
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/README.md +2 -11
- package/SHA256SUMS +5 -5
- package/lib/install.js +4 -12
- package/package.json +25 -7
package/README.md
CHANGED
|
@@ -1,16 +1,7 @@
|
|
|
1
1
|
# agentscm
|
|
2
2
|
|
|
3
3
|
```
|
|
4
|
-
npx agentscm downloads the
|
|
5
|
-
GitHub Releases, verifies its SHA-256 checksum and build provenance, and then
|
|
6
|
-
starts the setup guide. It does not run install scripts. After verification it
|
|
7
|
-
marks that binary invocation as a verified install; the binary records one
|
|
8
|
-
installation indicator only after setup explains pseudonymous product telemetry
|
|
9
|
-
and the configured choice permits it. Disable this before any send with
|
|
10
|
-
`--no-telemetry`, `AGENTSCM_TELEMETRY=off`, or `DO_NOT_TRACK=1`.
|
|
11
|
-
The setup guide previews repository, hook and Hub changes; `agentscm uninstall`
|
|
12
|
-
reverses setup. Manage usage reporting with `agentscm telemetry status` and
|
|
13
|
-
`agentscm telemetry off`.
|
|
4
|
+
npx agentscm downloads the release binary from GitHub Releases and checks its SHA-256 checksum before it runs; no install scripts. Usage reporting is off until you run `agentscm telemetry on`.
|
|
14
5
|
```
|
|
15
6
|
|
|
16
7
|
## Usage
|
|
@@ -25,7 +16,7 @@ npx agentscm tray # optional macOS status-bar companion
|
|
|
25
16
|
|
|
26
17
|
The binary is kept in `~/.agentscm/bin` (`%USERPROFILE%\.agentscm\bin` on Windows). The checksum is always verified; provenance is verified when the GitHub CLI (`gh`) is installed and signed in, and otherwise the script says it was not checked. The notice above and that one-line result are printed when a version is first downloaded (not before `--help`); later runs start AgentSCM directly, and `AGENTSCM_INSTALL_VERBOSE=1` prints them on every run. Supported: Linux and macOS on x64 and arm64, and Windows on x64 (a subset of commands). Elsewhere, use Docker.
|
|
27
18
|
|
|
28
|
-
Details, manual verification and Docker: [docs/install.md](https://github.com/
|
|
19
|
+
Details, manual verification and Docker: [docs/install.md](https://github.com/agentscm/agentscm/blob/main/docs/install.md). Source and license (FSL-1.1-ALv2): https://github.com/agentscm/agentscm
|
|
29
20
|
|
|
30
21
|
The tray uses the same verified binary; there is no separate app install. It is an unsigned,
|
|
31
22
|
unnotarized macOS alpha and does not update itself. **Start at Login** is off until enabled in
|
package/SHA256SUMS
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
134fa9f76cb5e292490b40b2b3c4ebfead583c751876b39cf9fe027347b752d4 agentscm-aarch64-apple-darwin
|
|
2
|
+
eb74e540094e6afab91f7ae116dcf99fe32aa09d211b577e005417601fc0b0db agentscm-aarch64-unknown-linux-musl
|
|
3
|
+
934e2f6040b26a875871d56c3573e8be76d9a8618f0dacd925c00c0015591cde agentscm-x86_64-apple-darwin
|
|
4
|
+
a8e77a341d35edf2b4c60558e0fd451327133ded8df4d5a651b90e70534b4076 agentscm-x86_64-pc-windows-msvc.exe
|
|
5
|
+
1de99f972073f1606a61dec51f226f4c8e6991f8b43c0740405e03ecdb765201 agentscm-x86_64-unknown-linux-musl
|
package/lib/install.js
CHANGED
|
@@ -5,22 +5,13 @@ const os = require('node:os');
|
|
|
5
5
|
const path = require('node:path');
|
|
6
6
|
const { spawnSync } = require('node:child_process');
|
|
7
7
|
|
|
8
|
-
const REPO = '
|
|
8
|
+
const REPO = 'agentscm/agentscm';
|
|
9
9
|
const SUMS_MAX = 64 * 1024;
|
|
10
10
|
const BINARY_MAX = 200 * 1024 * 1024;
|
|
11
11
|
const VERIFY_OUTPUT_MAX = 1024 * 1024;
|
|
12
12
|
const BUDGET_MS = 600_000; // overall, for both downloads
|
|
13
13
|
|
|
14
|
-
const NOTICE_TEXT = `npx agentscm downloads the
|
|
15
|
-
GitHub Releases, verifies its SHA-256 checksum and build provenance, and then
|
|
16
|
-
starts the setup guide. It does not run install scripts. After verification it
|
|
17
|
-
marks that binary invocation as a verified install; the binary records one
|
|
18
|
-
installation indicator only after setup explains pseudonymous product telemetry
|
|
19
|
-
and the configured choice permits it. Disable this before any send with
|
|
20
|
-
\`--no-telemetry\`, \`AGENTSCM_TELEMETRY=off\`, or \`DO_NOT_TRACK=1\`.
|
|
21
|
-
The setup guide previews repository, hook and Hub changes; \`agentscm uninstall\`
|
|
22
|
-
reverses setup. Manage usage reporting with \`agentscm telemetry status\` and
|
|
23
|
-
\`agentscm telemetry off\`.`;
|
|
14
|
+
const NOTICE_TEXT = `npx agentscm downloads the release binary from GitHub Releases and checks its SHA-256 checksum before it runs; no install scripts. Usage reporting is off until you run \`agentscm telemetry on\`.`;
|
|
24
15
|
|
|
25
16
|
const TARGETS = {
|
|
26
17
|
'linux/x64': 'x86_64-unknown-linux-musl',
|
|
@@ -134,6 +125,7 @@ function checkProvenance(file, version, gap = provenanceGap(), run = spawnSync)
|
|
|
134
125
|
encoding: 'utf8',
|
|
135
126
|
stdio: ['ignore', 'pipe', 'pipe'],
|
|
136
127
|
maxBuffer: VERIFY_OUTPUT_MAX,
|
|
128
|
+
env: { ...process.env, GH_HOST: 'github.com' },
|
|
137
129
|
});
|
|
138
130
|
if (result.error || result.status !== 0) {
|
|
139
131
|
showVerifyOutput(result);
|
|
@@ -170,7 +162,7 @@ async function main(args) {
|
|
|
170
162
|
const dir = path.join(os.homedir(), '.agentscm', 'bin');
|
|
171
163
|
const binary = path.join(dir, names.versioned);
|
|
172
164
|
const announce = announces(args, !fs.existsSync(binary), verboseInstall());
|
|
173
|
-
if (announce) console.log(
|
|
165
|
+
if (announce) console.log(NOTICE_TEXT);
|
|
174
166
|
const signal = AbortSignal.timeout(BUDGET_MS);
|
|
175
167
|
const gap = provenanceGap(); // checked once: `gh auth status` goes over the network
|
|
176
168
|
if (gap && process.env.AGENTSCM_REQUIRE_PROVENANCE === '1') throw new Error(`AGENTSCM_REQUIRE_PROVENANCE=1 but ${gap}`);
|
package/package.json
CHANGED
|
@@ -1,14 +1,32 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentscm",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Downloads, verifies and starts the AgentSCM release binary.",
|
|
5
5
|
"license": "FSL-1.1-ALv2",
|
|
6
|
-
"repository": {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
"
|
|
11
|
-
"
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/agentscm/agentscm.git"
|
|
9
|
+
},
|
|
10
|
+
"homepage": "https://github.com/agentscm/agentscm",
|
|
11
|
+
"bin": {
|
|
12
|
+
"agentscm": "bin/agentscm.js"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"bin",
|
|
16
|
+
"lib",
|
|
17
|
+
"README.md",
|
|
18
|
+
"LICENSE",
|
|
19
|
+
"NOTICE",
|
|
20
|
+
"THIRD_PARTY_NOTICES.md",
|
|
21
|
+
"SHA256SUMS"
|
|
22
|
+
],
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">=18"
|
|
25
|
+
},
|
|
26
|
+
"publishConfig": {
|
|
27
|
+
"provenance": true,
|
|
28
|
+
"access": "public"
|
|
29
|
+
},
|
|
12
30
|
"scripts": {
|
|
13
31
|
"test": "node --test"
|
|
14
32
|
}
|