agentscm 0.1.0-alpha.8 → 0.1.3

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 CHANGED
@@ -1,16 +1,7 @@
1
1
  # agentscm
2
2
 
3
3
  ```
4
- npx agentscm downloads the AgentSCM release binary for your platform from
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/counterbranch/agentscm/blob/main/docs/install.md). Source and license (FSL-1.1-ALv2): https://github.com/counterbranch/agentscm
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
- c8399fe5c2d79948f69b755035a155160e00e9ba42f48b25764dd159f01999cb agentscm-aarch64-apple-darwin
2
- 1109a798c6464c1a96172cdf1551f87a99d913358faa068de1efdec527277400 agentscm-aarch64-unknown-linux-musl
3
- 70ad2806a3f972cf47c43c012cf64c526642b9ad1e2499b24374cf19308a45ea agentscm-x86_64-apple-darwin
4
- 61528640c7037356ce5c9b662af34c6cfd5b9096dde76f499754190aab81bf88 agentscm-x86_64-pc-windows-msvc.exe
5
- 8a684085a031f1885a648f6498aa956f76af64b0a57a0540c2cab8388ad7bc13 agentscm-x86_64-unknown-linux-musl
1
+ 14196e232b447cbfea996133cfc1f458b5c391967569032eb0aa9df6ecd63adb agentscm-aarch64-apple-darwin
2
+ 0b6369ec982232b340920deb2a49def0238e00e054ea7f66d3c74a1eff22fa6b agentscm-aarch64-unknown-linux-musl
3
+ 0117aad062efaeba7ce1332066605ced7d51304b253408f13ec4ecc60c05595c agentscm-x86_64-apple-darwin
4
+ 1dc8c108484c4ebefd230318525cd8c2541e7bcd848edd21c356b5f2ea296a48 agentscm-x86_64-pc-windows-msvc.exe
5
+ 85dd2ed4adf5f447e7b97b563d776ee1159680870b13dcbdcecc6b697065a43d 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 = 'counterbranch/agentscm';
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 AgentSCM release binary for your platform from
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(`${NOTICE_TEXT}\n`);
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.0-alpha.8",
3
+ "version": "0.1.3",
4
4
  "description": "Downloads, verifies and starts the AgentSCM release binary.",
5
5
  "license": "FSL-1.1-ALv2",
6
- "repository": {"type": "git", "url": "git+https://github.com/counterbranch/agentscm.git"},
7
- "homepage": "https://github.com/counterbranch/agentscm",
8
- "bin": {"agentscm": "bin/agentscm.js"},
9
- "files": ["bin", "lib", "README.md", "LICENSE", "NOTICE", "THIRD_PARTY_NOTICES.md", "SHA256SUMS"],
10
- "engines": {"node": ">=18"},
11
- "publishConfig": {"provenance": true, "access": "public"},
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
  }