@agentistics/agentop 2.72.0 → 2.75.0

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
@@ -1,7 +1,7 @@
1
1
  # @agentistics/agentop
2
2
 
3
3
  npm install for the `agentop` CLI — the same native binary published on
4
- [GitHub Releases](https://github.com/blpsoares/agentistics/releases) and
4
+ [GitHub Releases](https://github.com/agentistics/agentistics/releases) and
5
5
  installed by the project's `curl | bash` script. This package is only an
6
6
  **additional** install channel; it downloads and runs the identical binary,
7
7
  never a JS reimplementation.
@@ -29,7 +29,7 @@ agentop tui # terminal TUI
29
29
  agentop watch # daemon only
30
30
  ```
31
31
 
32
- See the [main README](https://github.com/blpsoares/agentistics#readme) for
32
+ See the [main README](https://github.com/agentistics/agentistics#readme) for
33
33
  full CLI documentation.
34
34
 
35
35
  ## Alternative install
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentistics/agentop",
3
- "version": "2.72.0",
3
+ "version": "2.75.0",
4
4
  "description": "agentop CLI — npm install for the same native binary distributed via install.sh (Linux x86_64 only)",
5
5
  "type": "commonjs",
6
6
  "bin": {
@@ -36,8 +36,8 @@
36
36
  "license": "FSL-1.1-ALv2",
37
37
  "repository": {
38
38
  "type": "git",
39
- "url": "git+https://github.com/blpsoares/agentistics.git",
39
+ "url": "git+https://github.com/agentistics/agentistics.git",
40
40
  "directory": "packages/agentop"
41
41
  },
42
- "homepage": "https://github.com/blpsoares/agentistics"
42
+ "homepage": "https://github.com/agentistics/agentistics"
43
43
  }
@@ -6,7 +6,10 @@
6
6
  // sync by hand. See CLAUDE.md's PKG_FILES comment in release.yml for the same
7
7
  // documented trade-off (two things that must agree, checked nowhere but here).
8
8
 
9
- const REPO = 'blpsoares/agentistics';
9
+ // The repository moved from blpsoares/ to agentistics/. Both owners are tried, new first, so a
10
+ // package published on either side of the transfer can still find its binary.
11
+ const REPOS = ['agentistics/agentistics', 'blpsoares/agentistics'];
12
+ const REPO = REPOS[0];
10
13
  const BINARY = 'agentop';
11
14
 
12
15
  // node's process.platform/process.arch -> the `uname -s` / `uname -m` strings
@@ -36,7 +39,7 @@ function displayArch(arch) {
36
39
  * @param {string} platform - process.platform value
37
40
  * @param {string} arch - process.arch value
38
41
  * @param {string} version - the npm package's own version (no leading "v")
39
- * @returns {{ok: true, url: string} | {ok: false, message: string}}
42
+ * @returns {{ok: true, url: string, urls: string[]} | {ok: false, message: string}}
40
43
  */
41
44
  function resolveAsset(platform, arch, version) {
42
45
  if (platform !== 'linux') {
@@ -53,10 +56,8 @@ function resolveAsset(platform, arch, version) {
53
56
  };
54
57
  }
55
58
 
56
- return {
57
- ok: true,
58
- url: `https://github.com/${REPO}/releases/download/v${version}/${BINARY}`,
59
- };
59
+ const urls = REPOS.map((r) => `https://github.com/${r}/releases/download/v${version}/${BINARY}`);
60
+ return { ok: true, url: urls[0], urls };
60
61
  }
61
62
 
62
63
  // True when the ancestor package.json (the root of whatever checkout this
@@ -79,4 +80,4 @@ function isMonorepoCheckout(ancestorPkg) {
79
80
  return ancestorPkg != null && ancestorPkg.name === 'agentistics';
80
81
  }
81
82
 
82
- module.exports = { resolveAsset, isMonorepoCheckout, REPO, BINARY };
83
+ module.exports = { resolveAsset, isMonorepoCheckout, REPO, REPOS, BINARY };
@@ -73,14 +73,24 @@ async function main() {
73
73
  if (!asset.ok) {
74
74
  console.error(asset.message);
75
75
  console.error(
76
- 'The agentop CLI is not available for this platform via npm. See https://github.com/blpsoares/agentistics for other install options.'
76
+ 'The agentop CLI is not available for this platform via npm. See https://github.com/agentistics/agentistics for other install options.'
77
77
  );
78
78
  process.exit(1);
79
79
  }
80
80
 
81
81
  fs.mkdirSync(BIN_DIR, { recursive: true });
82
- console.log(`Downloading agentop from ${asset.url} ...`);
83
- await download(asset.url, BIN_PATH, MAX_REDIRECTS);
82
+ let lastErr = null;
83
+ for (const url of asset.urls) {
84
+ console.log(`Downloading agentop from ${url} ...`);
85
+ try {
86
+ await download(url, BIN_PATH, MAX_REDIRECTS);
87
+ lastErr = null;
88
+ break;
89
+ } catch (err) {
90
+ lastErr = err;
91
+ }
92
+ }
93
+ if (lastErr) throw lastErr;
84
94
  fs.chmodSync(BIN_PATH, 0o755);
85
95
  console.log(`Installed: ${BIN_PATH}`);
86
96
  }