@aemi-cli/aemi 0.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.
Files changed (2) hide show
  1. package/bin/aemi +32 -0
  2. package/package.json +31 -0
package/bin/aemi ADDED
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env node
2
+
3
+ const { execFileSync } = require("child_process");
4
+
5
+ const PLATFORMS = {
6
+ "darwin-arm64": "@aemi-cli/darwin-arm64",
7
+ "darwin-x64": "@aemi-cli/darwin-x64",
8
+ "linux-arm64": "@aemi-cli/linux-arm64",
9
+ "linux-x64": "@aemi-cli/linux-x64",
10
+ };
11
+
12
+ const key = `${process.platform}-${process.arch}`;
13
+ const pkg = PLATFORMS[key];
14
+
15
+ if (!pkg) {
16
+ console.error(`Unsupported platform: ${key}`);
17
+ process.exit(1);
18
+ }
19
+
20
+ let binPath;
21
+ try {
22
+ binPath = require.resolve(`${pkg}/bin/aemi`);
23
+ } catch {
24
+ console.error(
25
+ `Could not find the binary for your platform (${key}).\n` +
26
+ `Expected package: ${pkg}\n\n` +
27
+ `Try reinstalling: npm install aemi`
28
+ );
29
+ process.exit(1);
30
+ }
31
+
32
+ execFileSync(binPath, process.argv.slice(2), { stdio: "inherit" });
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "@aemi-cli/aemi",
3
+ "version": "0.0.6",
4
+ "description": "LLM CLI routing tool with Telegram and Discord bot integration",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/KyongSik-Yoon/aemi"
9
+ },
10
+ "homepage": "https://www.jennifersoft.com",
11
+ "keywords": [
12
+ "cli",
13
+ "ai",
14
+ "llm",
15
+ "telegram",
16
+ "discord",
17
+ "claude",
18
+ "codex",
19
+ "gemini",
20
+ "opencode"
21
+ ],
22
+ "bin": {
23
+ "aemi": "bin/aemi"
24
+ },
25
+ "optionalDependencies": {
26
+ "@aemi-cli/linux-x64": "0.0.6",
27
+ "@aemi-cli/linux-arm64": "0.0.6",
28
+ "@aemi-cli/darwin-x64": "0.0.6",
29
+ "@aemi-cli/darwin-arm64": "0.0.6"
30
+ }
31
+ }