@hemansubedi/aether-ai 1.0.0 → 1.0.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
@@ -43,6 +43,36 @@ Aether is a TypeScript CLI agent that turns your terminal into an autonomous cod
43
43
 
44
44
  Aether installs like KiloCode and runs like Claude Code. One line, no setup beyond Node.js 20+.
45
45
 
46
+ ### CLI flags
47
+
48
+ `aether-ai` understands standard flags before the prompt:
49
+
50
+ | Flag | Description |
51
+ |------|-------------|
52
+ | `-v`, `--version` | Print the version (`aether-ai 1.0.0`) and exit |
53
+ | `-h`, `--help` | Print the help text (same as `/help`) and exit |
54
+ | `--plan` | Start in plan mode (step-by-step approval) |
55
+ | `--yolo` | Start in yolo mode (autonomous execution) |
56
+ | `--no-stream` | Disable streaming output in one-shot mode |
57
+
58
+ ```text
59
+ $ aether-ai --version
60
+ aether-ai 1.0.0
61
+
62
+ $ aether-ai --help
63
+ Aether - the free, unlimited, multi-provider LLM CLI
64
+
65
+ Usage: aether-ai [options] [prompt]
66
+
67
+ Options:
68
+ -h, --help Show this help text and exit
69
+ -v, --version Print the version and exit
70
+ --plan Run in plan mode (step-by-step approval)
71
+ --yolo Run in yolo mode (autonomous execution)
72
+ --no-stream Disable streaming output in one-shot mode
73
+ ```
74
+
75
+ Flags are parsed from `process.argv` before the remaining args are treated as the prompt, so `aether-ai --yolo "fix the tests"` runs the prompt in yolo mode.
46
76
  ### Install
47
77
 
48
78
  | Platform | Command |
@@ -72,7 +102,7 @@ $ npx tsx src/index.ts
72
102
 
73
103
  +- Aether --------------------------------------------------+
74
104
  | |
75
- | ollama-local · qwen2.5:7b |
105
+ | ollama-local · qwen2.5:7b |
76
106
  | |
77
107
  | ? Build a REST API in Node.js with CRUD endpoints |
78
108
  | |
@@ -97,16 +127,16 @@ $ npx tsx src/index.ts /arena
97
127
 
98
128
  ? Prompt: write a hello world server
99
129
  ? Running 3 models in parallel...
100
- ? [Model A] ollama-local · qwen2.5:7b
101
- ? [Model B] openrouter-free · llama-3.1-8b:free
102
- ? [Model C] groq · llama-3.1-8b-instant
130
+ ? [Model A] ollama-local · qwen2.5:7b
131
+ ? [Model B] openrouter-free · llama-3.1-8b:free
132
+ ? [Model C] groq · llama-3.1-8b-instant
103
133
  ? Voting...
104
134
  ? Winner: Model A (Elo +12)
105
135
 
106
136
  ELO LEADERBOARD
107
- 1. Model A 1240 ████████████
108
- 2. Model B 1215 ██████████
109
- 3. Model C 1142 ████████
137
+ 1. Model A 1240 ████████████
138
+ 2. Model B 1215 ██████████
139
+ 3. Model C 1142 ████████
110
140
  ```
111
141
 
112
142
  Session stats:
@@ -353,6 +383,7 @@ Add in local-first Ollama (priority 1, zero cost), zero-install one-shot mode (`
353
383
  [MIT License](LICENSE) -- built by [Hemansubedi10](https://github.com/hemansubedi10).
354
384
 
355
385
  Full docs: [docs/aether.md](docs/aether.md) | [INSTALL.md](INSTALL.md) | [Report an issue](https://github.com/hemansubedi10/aether/issues)
386
+
356
387
  ## Install via npm
357
388
 
358
389
  ```bash
@@ -360,31 +391,13 @@ npm install -g aether-ai
360
391
  aether-ai "your prompt"
361
392
  ```
362
393
 
363
- The package is published on npm: [npmjs.com/package/aether](https://www.npmjs.com/package/aether-ai).
364
-
365
- ## Install
366
-
367
- Install the Aether CLI globally:
368
-
369
- bash
370
- npm install -g aether-ai
371
-
372
-
394
+ The package is published on npm: [npmjs.com/package/aether-ai](https://www.npmjs.com/package/aether-ai).
373
395
 
374
396
  ## Publishing
375
397
 
376
- Aether is published on npm as **`aether-ai`**. Install it globally with:
377
-
378
- ```bash
379
- npm install -g aether-ai
380
- aether-ai "your prompt"
381
- ```
382
-
383
- Package page: [npmjs.com/package/aether-ai](https://www.npmjs.com/package/aether-ai).
384
-
385
- ### Trusted Publishing (OIDC � no token needed)
398
+ Aether is published on npm as **`aether-ai`**. New versions are published automatically by a GitHub Actions workflow using npm **Trusted Publishing**. There is no npm token to manage — GitHub Actions authenticates to npm via OpenID Connect.
386
399
 
387
- New versions are published automatically by a GitHub Actions workflow using npm **Trusted Publishing**. There is no npm token to manage � GitHub Actions authenticates to npm via OpenID Connect.
400
+ ### Trusted Publishing (OIDC - no token needed)
388
401
 
389
402
  To release a new version:
390
403
 
package/dist/index.js CHANGED
@@ -169,13 +169,51 @@ import { GitTool } from "./git.js";
169
169
  import { Checkpoint } from "./checkpoint.js";
170
170
  import { Skills } from "./skills.js";
171
171
  // CLI entrypoint
172
+ import { createRequire } from "node:module";
173
+ const require = createRequire(import.meta.url);
174
+ const VERSION = require("../package.json").version;
175
+ function getHelpText() {
176
+ const lines = [];
177
+ lines.push("Aether - the free, unlimited, multi-provider LLM CLI");
178
+ lines.push("");
179
+ lines.push("Usage: aether-ai [options] [prompt]");
180
+ lines.push("");
181
+ lines.push("Options:");
182
+ lines.push(" -h, --help Show this help text and exit");
183
+ lines.push(" -v, --version Print the version and exit");
184
+ lines.push(" --plan Run in plan mode (step-by-step approval)");
185
+ lines.push(" --yolo Run in yolo mode (autonomous execution)");
186
+ lines.push(" --no-stream Disable streaming output in one-shot mode");
187
+ lines.push("");
188
+ lines.push("Commands (prefix a prompt with /):");
189
+ lines.push(" /help Show all available commands");
190
+ lines.push(" /model <name> Switch the active model");
191
+ lines.push(" /provider <name> Switch the active provider");
192
+ lines.push(" /models List all available models across providers");
193
+ lines.push(" /providers Show provider health status");
194
+ lines.push(" /combo ... Manage named provider/model combos");
195
+ lines.push(" /session ... Manage sessions");
196
+ lines.push(" /arena Enter arena mode (compare models)");
197
+ lines.push(" /cost Show token usage and estimated cost summary");
198
+ lines.push(" /stats Show session stats, cost summary, and provider health");
199
+ lines.push(" /skills List available custom skills");
200
+ lines.push(" /connect ... Connect an API key for a provider");
201
+ lines.push(" /exit Exit the TUI");
202
+ lines.push("");
203
+ lines.push("When no prompt is given, Aether starts an interactive TUI.");
204
+ return lines.join("\n");
205
+ }
172
206
  function isMainModule() {
173
- // Robust across tsx/Node and Windows path formatting.
207
+ // Robust across tsx/Node and Windows path formatting. The compiled bin is
208
+ // dist/index.js; tsx may also hand us src/index.ts directly.
174
209
  const self = import.meta.url.replace(/\/$/g, "");
175
210
  const argv1 = "file://" + path.resolve(process.argv[1] ?? "");
176
211
  if (self === argv1)
177
212
  return true;
178
- // Also match when invoked via `tsx` where argv may be a .ts source file.
213
+ const binNames = ["dist/index.js", "src/index.ts"];
214
+ if (binNames.includes(path.basename(process.argv[1] ?? "")))
215
+ return true;
216
+ // Also match when invoked via tsx where argv may be a .ts source file.
179
217
  try {
180
218
  const selfPath = new URL(self).pathname;
181
219
  const argvPath = path.resolve(process.argv[1] ?? "");
@@ -189,9 +227,10 @@ function isMainModule() {
189
227
  return false;
190
228
  }
191
229
  if (isMainModule()) {
192
- // Parse CLI flags: --plan and --yolo set the agent mode and are stripped
193
- // from the prompt args.
230
+ // Parse CLI flags: --plan, --yolo, --no-stream, --version and --help are
231
+ // consumed here and stripped from the prompt args.
194
232
  let modeFlag = null;
233
+ let noStream = false;
195
234
  const promptArgs = [];
196
235
  for (const arg of process.argv.slice(2)) {
197
236
  if (arg === "--plan") {
@@ -200,6 +239,17 @@ if (isMainModule()) {
200
239
  else if (arg === "--yolo") {
201
240
  modeFlag = "yolo";
202
241
  }
242
+ else if (arg === "--no-stream") {
243
+ noStream = true;
244
+ }
245
+ else if (arg === "--version" || arg === "-v") {
246
+ process.stdout.write("aether-ai " + VERSION + "\n");
247
+ process.exit(0);
248
+ }
249
+ else if (arg === "--help" || arg === "-h") {
250
+ process.stdout.write(getHelpText() + "\n");
251
+ process.exit(0);
252
+ }
203
253
  else {
204
254
  promptArgs.push(arg);
205
255
  }
package/package.json CHANGED
@@ -1,34 +1,46 @@
1
- {
2
- "name": "@hemansubedi/aether-ai",
3
- "version": "1.0.0",
4
- "description": "The Aether CLI: the free, unlimited, multi-provider LLM CLI - install like KiloCode, run like Claude Code.",
5
- "type": "module",
6
- "main": "dist/index.js",
7
- "bin": {
8
- "aether-ai": "dist/index.js",
9
- "aether-ai-server": "dist/server.js"
10
- },
11
- "scripts": {
12
- "build": "tsc",
13
- "start": "node dist/index.js",
14
- "dev": "tsx src/index.ts"
15
- },
16
- "engines": { "node": ">=20" },
17
- "keywords": ["llm", "cli", "ai", "router", "ollama", "openrouter", "free"],
18
- "author": "Heman Subedi <hemansubedi66@gmail.com>",
19
- "license": "MIT",
20
- "homepage": "https://github.com/hemansubedi10/aether",
21
- "repository": {
22
- "type": "git",
23
- "url": "https://github.com/hemansubedi10/aether.git"
24
- },
25
- "dependencies": {},
26
- "devDependencies": {
27
- "typescript": "^7.0.0",
28
- "tsx": "^4.0.0",
29
- "@types/node": "^22.0.0"
30
- },
31
- "publishConfig": {
32
- "access": "public"
33
- }
34
- }
1
+ {
2
+ "name": "@hemansubedi/aether-ai",
3
+ "version": "1.0.3",
4
+ "description": "The Aether CLI: the free, unlimited, multi-provider LLM CLI - install like KiloCode, run like Claude Code.",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "bin": {
8
+ "aether": "dist/index.js",
9
+ "aether-ai": "dist/index.js",
10
+ "aether-server": "dist/server.js",
11
+ "aether-ai-server": "dist/server.js"
12
+ },
13
+ "scripts": {
14
+ "build": "tsc",
15
+ "start": "node dist/index.js",
16
+ "dev": "tsx src/index.ts"
17
+ },
18
+ "engines": {
19
+ "node": ">=20"
20
+ },
21
+ "keywords": [
22
+ "llm",
23
+ "cli",
24
+ "ai",
25
+ "router",
26
+ "ollama",
27
+ "openrouter",
28
+ "free"
29
+ ],
30
+ "author": "Heman Subedi <hemansubedi66@gmail.com>",
31
+ "license": "MIT",
32
+ "homepage": "https://github.com/hemansubedi10/aether",
33
+ "repository": {
34
+ "type": "git",
35
+ "url": "https://github.com/hemansubedi10/aether.git"
36
+ },
37
+ "dependencies": {},
38
+ "devDependencies": {
39
+ "typescript": "^7.0.0",
40
+ "tsx": "^4.0.0",
41
+ "@types/node": "^22.0.0"
42
+ },
43
+ "publishConfig": {
44
+ "access": "public"
45
+ }
46
+ }
package/src/index.ts CHANGED
@@ -179,12 +179,51 @@ import { Checkpoint } from "./checkpoint.js";
179
179
  import { Skills } from "./skills.js";
180
180
 
181
181
  // CLI entrypoint
182
- function isMainModule(): boolean {
183
- // Robust across tsx/Node and Windows path formatting.
182
+ import { createRequire } from "node:module";
183
+ const require = createRequire(import.meta.url);
184
+ const VERSION: string = require("../package.json").version;
185
+
186
+ function getHelpText() {
187
+ const lines = [];
188
+ lines.push("Aether - the free, unlimited, multi-provider LLM CLI");
189
+ lines.push("");
190
+ lines.push("Usage: aether-ai [options] [prompt]");
191
+ lines.push("");
192
+ lines.push("Options:");
193
+ lines.push(" -h, --help Show this help text and exit");
194
+ lines.push(" -v, --version Print the version and exit");
195
+ lines.push(" --plan Run in plan mode (step-by-step approval)");
196
+ lines.push(" --yolo Run in yolo mode (autonomous execution)");
197
+ lines.push(" --no-stream Disable streaming output in one-shot mode");
198
+ lines.push("");
199
+ lines.push("Commands (prefix a prompt with /):");
200
+ lines.push(" /help Show all available commands");
201
+ lines.push(" /model <name> Switch the active model");
202
+ lines.push(" /provider <name> Switch the active provider");
203
+ lines.push(" /models List all available models across providers");
204
+ lines.push(" /providers Show provider health status");
205
+ lines.push(" /combo ... Manage named provider/model combos");
206
+ lines.push(" /session ... Manage sessions");
207
+ lines.push(" /arena Enter arena mode (compare models)");
208
+ lines.push(" /cost Show token usage and estimated cost summary");
209
+ lines.push(" /stats Show session stats, cost summary, and provider health");
210
+ lines.push(" /skills List available custom skills");
211
+ lines.push(" /connect ... Connect an API key for a provider");
212
+ lines.push(" /exit Exit the TUI");
213
+ lines.push("");
214
+ lines.push("When no prompt is given, Aether starts an interactive TUI.");
215
+ return lines.join("\n");
216
+ }
217
+
218
+ function isMainModule() {
219
+ // Robust across tsx/Node and Windows path formatting. The compiled bin is
220
+ // dist/index.js; tsx may also hand us src/index.ts directly.
184
221
  const self = import.meta.url.replace(/\/$/g, "");
185
222
  const argv1 = "file://" + path.resolve(process.argv[1] ?? "");
186
223
  if (self === argv1) return true;
187
- // Also match when invoked via `tsx` where argv may be a .ts source file.
224
+ const binNames = ["dist/index.js", "src/index.ts"];
225
+ if (binNames.includes(path.basename(process.argv[1] ?? ""))) return true;
226
+ // Also match when invoked via tsx where argv may be a .ts source file.
188
227
  try {
189
228
  const selfPath = new URL(self).pathname;
190
229
  const argvPath = path.resolve(process.argv[1] ?? "");
@@ -197,15 +236,24 @@ function isMainModule(): boolean {
197
236
  }
198
237
 
199
238
  if (isMainModule()) {
200
- // Parse CLI flags: --plan and --yolo set the agent mode and are stripped
201
- // from the prompt args.
202
- let modeFlag: string | null = null;
203
- const promptArgs: string[] = [];
239
+ // Parse CLI flags: --plan, --yolo, --no-stream, --version and --help are
240
+ // consumed here and stripped from the prompt args.
241
+ let modeFlag = null;
242
+ let noStream = false;
243
+ const promptArgs = [];
204
244
  for (const arg of process.argv.slice(2)) {
205
245
  if (arg === "--plan") {
206
246
  modeFlag = "plan";
207
247
  } else if (arg === "--yolo") {
208
248
  modeFlag = "yolo";
249
+ } else if (arg === "--no-stream") {
250
+ noStream = true;
251
+ } else if (arg === "--version" || arg === "-v") {
252
+ process.stdout.write("aether-ai " + VERSION + "\n");
253
+ process.exit(0);
254
+ } else if (arg === "--help" || arg === "-h") {
255
+ process.stdout.write(getHelpText() + "\n");
256
+ process.exit(0);
209
257
  } else {
210
258
  promptArgs.push(arg);
211
259
  }