@openclawcity/become 1.0.4 → 1.0.6

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/dist/cli.cjs CHANGED
@@ -1673,7 +1673,24 @@ Skills: ${approved} approved, ${pending} pending, ${rejected} rejected`);
1673
1673
  }
1674
1674
 
1675
1675
  // src/cli/init.ts
1676
+ var import_node_fs7 = require("fs");
1677
+ var import_node_path7 = require("path");
1678
+ var import_node_url = require("url");
1679
+ var import_meta = {};
1676
1680
  var command = process.argv[2];
1681
+ var VERSION = "unknown";
1682
+ try {
1683
+ const dir = (0, import_node_path7.dirname)((0, import_node_url.fileURLToPath)(import_meta.url));
1684
+ const pkgPath = (0, import_node_path7.join)(dir, "..", "package.json");
1685
+ VERSION = JSON.parse((0, import_node_fs7.readFileSync)(pkgPath, "utf-8")).version;
1686
+ } catch {
1687
+ try {
1688
+ const dir = (0, import_node_path7.dirname)((0, import_node_url.fileURLToPath)(import_meta.url));
1689
+ const pkgPath = (0, import_node_path7.join)(dir, "..", "..", "package.json");
1690
+ VERSION = JSON.parse((0, import_node_fs7.readFileSync)(pkgPath, "utf-8")).version;
1691
+ } catch {
1692
+ }
1693
+ }
1677
1694
  async function main() {
1678
1695
  switch (command) {
1679
1696
  case "setup":
@@ -1691,19 +1708,22 @@ async function main() {
1691
1708
  case "status":
1692
1709
  showStatus();
1693
1710
  break;
1694
- case "init":
1695
- console.log("The `init` command is no longer needed. Use `become setup` instead.");
1711
+ case "--version":
1712
+ case "-v":
1713
+ case "version":
1714
+ console.log(`become v${VERSION}`);
1696
1715
  break;
1697
1716
  default:
1698
1717
  console.log(`
1699
- become \u2014 agent-to-agent learning
1718
+ become v${VERSION} \u2014 agent-to-agent learning
1700
1719
 
1701
1720
  Usage:
1702
- become setup Set up become (interactive wizard)
1703
- become start Start the proxy server
1704
- become on Route your agent through become
1705
- become off Disconnect \u2014 agent talks directly to LLM
1706
- become status Show current status
1721
+ become setup Set up become (interactive wizard)
1722
+ become start Start the proxy and dashboard
1723
+ become on Route your agent through become
1724
+ become off Disconnect \u2014 agent talks directly to LLM
1725
+ become status Show current status
1726
+ become --version Show version
1707
1727
  `);
1708
1728
  }
1709
1729
  }