agentscm 0.1.0-alpha.1 → 0.1.0-alpha.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 +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
|
+
57baaa8b417761515d2f5832e63c01cee5ed5e24076eb671ef8c4eb995d175a6 agentscm-aarch64-apple-darwin
|
|
2
|
+
a89ec476ba418b5a20fc6527a0182042e2cbe879d0db9d30916a9d417e714992 agentscm-aarch64-unknown-linux-musl
|
|
3
|
+
56c4f4cfe0e1aaa44dd39260bafdb226d68268a8bc07526544ea04c3ea359f18 agentscm-x86_64-apple-darwin
|
|
4
|
+
cb72e40e68cf6cbca25eeaa45723ee3276d8785e6cb5813244675cfb6453f1fb agentscm-x86_64-pc-windows-msvc.exe
|
|
5
|
+
c92278bfc96cf8e0705e769104e92c5071b3bbdf797c66036c47bded061d6da0 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.3",
|
|
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"},
|