@atopos31/agent-rss 0.1.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/bin/agent-rss +38 -0
- package/package.json +34 -0
- package/scripts/postinstall.js +7 -0
package/bin/agent-rss
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
const { execFileSync } = require('child_process');
|
|
4
|
+
const path = require('path');
|
|
5
|
+
|
|
6
|
+
const PACKAGES = {
|
|
7
|
+
'darwin-arm64': '@atopos31/agent-rss-darwin-arm64',
|
|
8
|
+
'darwin-x64': '@atopos31/agent-rss-darwin-x64',
|
|
9
|
+
'linux-arm64': '@atopos31/agent-rss-linux-arm64',
|
|
10
|
+
'linux-x64': '@atopos31/agent-rss-linux-x64',
|
|
11
|
+
'win32-x64': '@atopos31/agent-rss-win32-x64',
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
const platform = process.platform;
|
|
15
|
+
const arch = process.arch === 'x64' ? 'x64' : process.arch;
|
|
16
|
+
const key = `${platform}-${arch}`;
|
|
17
|
+
const pkg = PACKAGES[key];
|
|
18
|
+
|
|
19
|
+
if (!pkg) {
|
|
20
|
+
console.error(`Unsupported platform: ${key}`);
|
|
21
|
+
process.exit(1);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
let binPath;
|
|
25
|
+
try {
|
|
26
|
+
const pkgPath = require.resolve(`${pkg}/package.json`);
|
|
27
|
+
const binName = platform === 'win32' ? 'agent-rss.exe' : 'agent-rss';
|
|
28
|
+
binPath = path.join(path.dirname(pkgPath), 'bin', binName);
|
|
29
|
+
} catch {
|
|
30
|
+
console.error(`Package ${pkg} not found. Try reinstalling.`);
|
|
31
|
+
process.exit(1);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
try {
|
|
35
|
+
execFileSync(binPath, process.argv.slice(2), { stdio: 'inherit' });
|
|
36
|
+
} catch (e) {
|
|
37
|
+
process.exit(e.status ?? 1);
|
|
38
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@atopos31/agent-rss",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "CLI RSS tool for AI agents",
|
|
5
|
+
"bin": {
|
|
6
|
+
"agent-rss": "bin/agent-rss"
|
|
7
|
+
},
|
|
8
|
+
"scripts": {
|
|
9
|
+
"postinstall": "node scripts/postinstall.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"bin",
|
|
13
|
+
"scripts"
|
|
14
|
+
],
|
|
15
|
+
"repository": {
|
|
16
|
+
"type": "git",
|
|
17
|
+
"url": "git+https://github.com/atopos31/agent-rss.git"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [
|
|
20
|
+
"rss",
|
|
21
|
+
"cli",
|
|
22
|
+
"agent",
|
|
23
|
+
"feed"
|
|
24
|
+
],
|
|
25
|
+
"author": "atopos31",
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"optionalDependencies": {
|
|
28
|
+
"@atopos31/agent-rss-darwin-arm64": "0.1.0",
|
|
29
|
+
"@atopos31/agent-rss-darwin-x64": "0.1.0",
|
|
30
|
+
"@atopos31/agent-rss-linux-arm64": "0.1.0",
|
|
31
|
+
"@atopos31/agent-rss-linux-x64": "0.1.0",
|
|
32
|
+
"@atopos31/agent-rss-win32-x64": "0.1.0"
|
|
33
|
+
}
|
|
34
|
+
}
|