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 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
+ 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
- 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.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"},