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 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
- 6efb7f7ce7e20a9999c41bbcc14199f5fe0197d7df3c4805d6b7ef7bcdf553b0 agentscm-aarch64-apple-darwin
2
- 856b11eaa2b8d3f436ccd8567fbe15f6023a7496e54afb550b7f3f031fb01b81 agentscm-aarch64-unknown-linux-musl
3
- 70df80f427ab7c1c0d6d67da51a56e3fb4c5fc725f946b95d118fa8afb7bc402 agentscm-x86_64-apple-darwin
4
- d76a2c34373ab74301ac8ec324303ba80fc86ac0841059fc5b8f5c31e5487bd1 agentscm-x86_64-pc-windows-msvc.exe
5
- 2462e7f91f88d73a36840b714f69cc5f630b73bdc47ba2bcea1a7438aa19f2eb agentscm-x86_64-unknown-linux-musl
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
- const launchArgs = (args) => (args.length === 0 || args[0].startsWith('-') ? ['quickstart', ...args] : args);
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.1",
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"},