agentscm 0.1.0-alpha.1 → 0.1.0-alpha.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 +1 -0
- package/SHA256SUMS +5 -5
- package/lib/install.js +4 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -13,6 +13,7 @@ writes it, and can be undone with `agentscm uninstall`.
|
|
|
13
13
|
```sh
|
|
14
14
|
npx agentscm # starts the setup guide (`agentscm quickstart`)
|
|
15
15
|
npx agentscm --yes # passes flags to `agentscm quickstart`
|
|
16
|
+
npx agentscm --version # prints the version (`--help` also passes through)
|
|
16
17
|
npx agentscm uninstall # runs any other subcommand as given
|
|
17
18
|
```
|
|
18
19
|
|
package/SHA256SUMS
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
451160526f9d38f959d55982fc1cb3a2b6ed45f625895398f52bb4b121d9540b agentscm-aarch64-apple-darwin
|
|
2
|
+
74d27db64b48a7ddbf1a462e4003a732c64f4c206bb0e45c6d07ca279dfd26e7 agentscm-aarch64-unknown-linux-musl
|
|
3
|
+
46c6f142707eadcb6212f1730b124c4f9a9ba16aa8f7d31a68af23cba623b8f9 agentscm-x86_64-apple-darwin
|
|
4
|
+
b7e35e46a14d82d704fd439b015836a25580dd6bb5876ed347cc8a32aa8c8b8e agentscm-x86_64-pc-windows-msvc.exe
|
|
5
|
+
4110c40f366a2d33e9b8595dbdccdb571c5a0e85005a1b70cf9e2280c45cd5a4 agentscm-x86_64-unknown-linux-musl
|
package/lib/install.js
CHANGED
|
@@ -38,7 +38,10 @@ const installNames = (version, platform) => platform === 'win32'
|
|
|
38
38
|
const urlFor = (version, asset) => `https://github.com/${REPO}/releases/download/v${version}/${asset}`;
|
|
39
39
|
|
|
40
40
|
// A bare `npx agentscm` or a leading flag starts the setup guide; any other first argument is a subcommand.
|
|
41
|
-
|
|
41
|
+
// The binary's own top-level flags pass through; any other leading flag goes to the setup guide.
|
|
42
|
+
const TOP_LEVEL_FLAGS = new Set(['--version', '-V', '--help', '-h']);
|
|
43
|
+
const launchArgs = (args) =>
|
|
44
|
+
args.length === 0 || (args[0].startsWith('-') && !TOP_LEVEL_FLAGS.has(args[0])) ? ['quickstart', ...args] : args;
|
|
42
45
|
|
|
43
46
|
// Strict: every line must be `<64 lowercase hex> agentscm-<target>[.exe]`, and the asset appears exactly once.
|
|
44
47
|
function parseSums(text, target) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentscm",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.2",
|
|
4
4
|
"description": "Downloads, verifies and starts the AgentSCM release binary.",
|
|
5
5
|
"license": "FSL-1.1-ALv2",
|
|
6
6
|
"repository": {"type": "git", "url": "git+https://github.com/counterbranch/agentscm.git"},
|